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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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

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.
*/
/*

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 es1,zs8,w17,K75,oN5,Ggs,zg,bo4,qEg,Ko,Gg,x5L,TLE,rL,H1,$5L,l8o,Qms,UE,nNN,Mhm,Rm,U51,Rsg,Oom,F75,SEE,u4g,D5h,smg,BL1,gNL,Cg,YL,Xs,ck1,kL,xL,Aks,TX,va,p15,eCh,Va,fg,Cok,YU1,bg5,DT,kX1,qUg,xYg,NY,T68,$Y1,QhE,lT1,mYE,t4,Xa7,ya,aTN,r4N,WcL,TL,Po4,RCh,xZ,UY4,kZ,vL7,ITo,SUm,dYs,DYL,Ma,sh1,N6E,B64,tSN,gL1,y4N,c4h,pas,eWE,wls,oZ4,Yq1,qq1,Tfm,xak,fv,$aL,MEE,SE,rC7,Ua4,P$m,I3L,RWL,W58,df,jhs,D3,i$,Na,L57,Bl,EZ1,hWg,Ov1,AC,F5k,VEN,Sqs,dao,uYg,DaL,iv8,Nfk,yo,BfN,gZL,yC4,ACh,Gy,pl5,Cl8,bl,oao,bYL,zj8,XL7,
kyh,qCL,ay1,$gm,Mgs,HYg,UgN,IyE,W2E,hjo,OY1,Vg5,SCh,Dgm,Nw1,sTg,tg4,jT7,ct1,eX1,G6N,ht,bqh,Jn7,k6E,ul,dw,il,At,ec,z6,aG8,bC,Mcm,U15,IGE,WgN,PCN,lC,RXL,mg,av,nq,M1,hXE,Oqg,Eo5,Fgg,Vc8,S_1,ugs,d1N,D1o,N5m,vZ,U_,svN,B57,tck,jvs,go4,ynL,cnN,An1,Vp,fq,Sc,uC,iC,pZE,N1,zno,Gm1,BZ,YtL,bJ1,XV8,jc,J0m,km1,qtg,yp,$X8,An,mXg,a0E,ZG,M8E,nyE,r0N,HJ1,UX1,vys,zm,I0h,WIs,CJ,P4s,Rnk,we,KJ,oM,Gm,LIm,OJN,hnh,Yy,FI8,V87,f0s,XK,ky,qX,xy,$y,l4,Sts,uKk,DXN,iJm,sMN,Be7,t84,gy8,jM4,y04,mI,c0g,A01,pVs,evo,zvN,CZ4,woL,KaN,o21,
re,G54,Ut,vV,Yvo,JAE,k51,qvm,T9E,$G8,lH4,n2E,Mn4,rAg,HhE,UGm,v2m,IHk,Lag,PV,hvL,OhL,E2h,Fas,Vn5,fHg,uU5,AA7,Zho,po5,C0g,wCk,Vb,Kpk,YH5,JGg,kth,qH8,x6E,Tpg,$64,lKL,QI7,aKh,nJk,bjL,MaE,rGN,Hjk,U6m,vJm,IKN,Wpg,P0o,Ro7,EJs,hog,fK5,Fp4,Vag,d6L,D6g,ijm,SH5,sIs,uy5,tam,z5,gJ8,Ch,Kh,jI1,cGs,AG4,eGg,JR8,Cig,zG1,KME,GRm,wRs,l_1,xmN,QV4,mmh,a_1,nio,M55,Hdg,rRk,Umg,viL,I_E,WM1,RGh,hGE,Od8,Ei1,V54,FME,jV8,bZ,yR8,ARs,ZdL,pRo,ey1,zy8,wiN,Ksg,oBL,lZ,Q4,GN4,q31,nh,Uv,l6m,mv1,Ph1,Po,hyk,O0k,f64,Fs4,Vsm,Ev,S38,uFN,
Dvk,i0g,N3m,sXE,B3g,tss,gBL,yJ7,cJ1,Z0E,AJk,z_o,Bo,jn,w57,K0L,ojE,GT7,YRE,bps,Jfg,qRL,kTg,YJ,Xy,rfg,xJ,PM1,R_s,Tt,h_g,L0k,DEg,ipL,Nag,Ba5,yfo,Af7,Zpo,p5E,eUh,zU4,QM,wnN,M6,oOg,GEN,YOg,Xnm,K1h,Ckg,bC5,aI,kEk,$Us,xU1,mUE,azm,nOs,rXm,HCN,vON,W1k,Pkm,RUk,L1g,RI,hU5,EO4,OCs,F1E,fzm,OH,dUL,VM,Sa,fj,sC4,uem,yXs,z6E,K$1,wQL,Yc8,i0,XQg,JHL,xD1,TKE,tG,lVE,ja,yM,aVs,rHk,iZg,NKg,sOs,AG,BKm,ZK,gIN,jOk,yHL,cH1,ZZL,Cd,pQ1,e$g,Kd,Yi,wA5,KA5,oWN,bGm,XAs,k01,q8m,aO8,nWN,lOs,r2g,HGo,Ux1,mM,nd,Mm,PB7,R$m,HR,LA1,h$7,
OGg,EW1,VCN,fON,S85,uh4,FAE,dx5,WR,iG1,gWo,PR,tC4,jk4,Dx7,y2g,Ld,A2L,ZG1,pAo,eDg,CYk,zD1,wr7,Gos,KbE,bih,TNm,lPm,m$7,Myg,n11,aPk,rwm,HiE,v17,Wbs,IPN,RD1,D_,hD8,Oig,E11,Fbg,SXE,d$7,uug,D$L,iig,NNE,sph,tyN,jpk,Awh,prh,Zig,xB,eNo,g18,Y6N,Xf7,JgE,kjs,aX,q6g,TQs,QSg,nkL,aEE,ULN,vkE,IEs,Wm7,RNg,Fm7,Lms,OKo,Eko,VA7,fE7,uVL,S6h,DLg,dLk,O3,iKh,sSE,BQE,ygE,D6,ih,cg4,Agm,Nv,eA1,js,yj,ci,K64,AJ,Yk7,ex,b4o,XHE,JOE,kqs,wa,qkL,xqk,TkE,ldg,mqN,MJ5,H4o,TT,Uqk,vzg,IdN,W6o,P7E,RA7,L6s,hA5,m0,F64,VJ5,fdg,Sko,unh,dqo,
Dqm,i4h,Nk7,sum,BkE,tJ7,gzs,Is,o5E,GU8,W5,P5,Rs,YGN,bW1,XJk,JUs,kUk,qGh,xpE,mp1,acm,n51,MBE,rUg,ER,VZ,fp,Sx,DI,iM,NE,Up1,B5,Ick,tf,WJ7,P67,jx,Rk1,LJs,hkN,Dpg,NPN,jg4,ZW7,AUN,iW7,pJg,CEs,lL4,bP7,MLg,JK1,aL7,rKL,eu,UHs,CC,IL5,Wi1,Rdg,Lih,hd8,E$s,oC,VLs,fLs,Sx5,uC7,dH1,DHo,iP7,Fi1,BOL,tLg,g$7,YO,pIN,e9o,ZP1,CAg,w91,oph,Gxo,KO1,xFg,$FN,Q5L,afo,QG,Ifh,UF4,vp1,h9N,Eps,FOo,VQ1,ffh,Sms,uHs,IC,j55,cEL,tQk,Boo,yEN,DFg,Zm4,Xjg,ztg,Cwh,wjs,ae4,Mj1,mTm,WB1,Qos,dF1,IeE,etN,bUh,nfg,AE5,Nom,imL,s5h,gpE,le7,Bn,iUo,
sog,BGs,tjh,gf1,C3L,Yz5,b75,CZ,Jmg,xK8,Qxs,lhL,ahN,nTE,rms,UKg,H71,vT1,Ih7,WT4,P38,LTg,Rhs,$I,fh1,V31,FTo,DK1,Szs,i7m,dKg,NEL,sxL,jx7,t3m,gTm,cmg,pFk,eP5,w0g,K8E,osk,GV5,bso,JSL,MD,qAo,$l1,xls,lWo,nsg,M47,Ulm,IW8,IO,WQ,L8N,hP1,PQ,RO,Osk,LZ,hH,Es1,Oc,F8h,Ec,V45,fWs,Vr,SA8,uZg,dl1,Dlh,is1,se8,N$E,t4s,yS4,jeg,cSN,ASg,B$g,ZsL,zim,eio,gs7,CH4,wM7,DV,KUm,GOg,o3g,YQ1,bML,J81,XMk,kO5,ND,xZ1,Thk,qQ1,lrN,Qn4,mZg,r8o,v3k,LUL,FU1,sc,SQs,u9h,BQ,dZ8,yr,cQ,to1,gK,pZ,g3h,jnL,c87,A8h,pMg,z05,C5L,wW1,KD8,Y75,q7g,Jdg,
Gk5,xI1,T4N,ok,kkE,$Is,bB,lso,QP7,mIg,as1,Hb7,nds,rdL,WDm,P5g,Edk,Ob8,fsE,N44,sPN,tvk,jPm,ydg,Adh,Zb4,pWs,zx7,CS1,wTg,Gvh,JLE,kvs,Yy5,xJg,$Jk,TJg,qy1,lgg,mJg,agN,nl8,M27,rLE,nG,Mx,U8,Ik,vlL,Ig8,PSN,hxE,WA,PA,OVg,Rk,V2g,fg1,SyL,h2,NJk,gl4,yL8,cL5,ALm,pT4,em7,zmL,KE4,E8,oQN,bkk,Fh,X2L,x3g,Vt,lAo,fG,dM,DO,QiN,aAE,m3E,Ml4,rT1,Hkm,U3o,nQE,Rm1,LEL,Okh,FE1,ubk,SS4,d31,ik1,NB4,siL,BBo,tl8,gQE,jih,AT1,yTN,t2,p21,gM,el1,cA,A2,zlL,CGg,wqg,Kxh,ouN,ZO,GDg,YV7,bRE,XqN,kD5,qV1,x_m,Tq1,$_s,QKg,l7L,pG,a7o,Mqs,rQh,
HRL,U_g,Wx4,Rlk,wN,hlk,Euo,Fx8,Vqs,f7g,SV8,uo1,d_s,D_E,PGg,Lx5,iR1,Nqm,gum,jK8,yQ8,cQ4,kp5,TSE,$ts,lvE,xts,rI8,vGh,HN1,Iv4,RSm,hS8,EGm,Sn1,fvk,iNg,x1,NSs,sZg,$1,BS8,lY,t_4,gGL,jZ1,cI1,yIL,AIs,ZNh,pEm,eT4,YJg,Xmo,kak,J11,KX1,Csm,xn1,$ng,nPh,M1g,Un4,LXL,Ocg,ni,EPm,V1h,fok,uxm,Num,t1h,y14,c1m,A18,ZcL,wv4,pm4,YrL,brs,Xvs,ks5,UX,qrE,TD8,$Vs,l21,Qr4,mV7,a2N,nK5,rpo,Hr1,Rp,UVm,vKg,I21,PLL,hw,Wh1,Lho,Fh5,Fu,V6L,f21,Sr7,DV5,irh,uAo,srN,jrN,ypg,cpo,DP,Ap1,zgN,CKh,Br,oms,wtg,KWh,bAm,Xth,JhL,TUh,QYs,llL,$Bk,
mBg,nm4,MO5,Il1,rhs,WWL,Rgh,PKN,VOL,uSo,DB5,NUh,ZA4,RS,efk,Ku1,GCN,Wf,dQ,qf7,lw1,$45,m41,aw7,Mks,nRo,rig,HHg,DE,yUg,x41,Q2k,TA8,SA,Iwg,Wu1,Pt7,ZE,OHE,pK,ER7,Fus,VkE,fw1,Sf1,zq,uDg,d44,D4k,iHk,NAN,ou,s2E,gRg,yio,cih,wcm,obg,Gd1,Yss,Xcs,Jlm,Tq,qsh,x2E,Ttk,$2k,lMh,QlE,aMh,M08,H3m,U25,LS8,Pmh,hKL,FSN,V0h,rk,fM8,Ss1,uzg,i31,slN,Nts,t07,jlo,Iu,cl1,Al1,ylk,Z3k,pcL,zOE,whh,Cz1,KFL,eOL,oq8,Gr8,Y27,bE8,Xh7,JYg,kr1,q2m,xeL,lSk,$eh,QQk,aSs,meh,WH,nqs,HE1,WF7,Mf5,LF5,hOo,OEL,Eq4,fS8,sQs,BXo,gq1,jQg,i7,ZE8,C9g,
oVN,Nq,Xkg,GBg,YWm,bx7,Jug,$w1,gk,lCh,Q67,aC1,nVL,Mw4,ru5,Uwg,vVN,Fj1,Ljh,Oxg,fCE,Vws,SW4,uGg,Dwh,Ny8,Byk,gV4,j6g,cug,GA7,X$N,kAL,qZo,xCg,Tn5,$Ck,Q07,mC5,MN5,r5g,HBE,UCo,vE4,IkN,Wy1,P2o,oX4,XU7,og,GU,Y5,JBo,k$g,JU,xd4,rBL,PTg,I5N,BiL,tGo,gXh,$dN,MG7,mdE,yB1,cB5,ABg,ZTh,Udm,pU1,zRN,wp8,Gh5,YD1,nW,lNg,mNL,nvN,Meh,UN4,IN7,vvk,RRL,hR1,utN,fNN,Evm,SD7,F9h,dN4,s$N,V$,fW,pp7,c_1,zcs,Cc4,Kvg,oU1,u6,G_L,XKN,JrE,k_k,qah,nUE,aR7,gP,IR8,Zc,PcL,Rck,Lvs,hcg,O$5,EU7,Fvg,VI1,fRN,Sas,uON,eL,dQ1,DQs,i$7,Nbg,s7L,Bb4,
tIo,gUL,CP,j71,yr4,cr4,Arg,Z$k,pKL,eE5,zEg,CWk,wO1,KqL,o0k,GMo,Y$,bDm,Jzm,qdm,$Mg,mMk,aQ7,n0g,rzE,UME,v08,IQ8,$$,hE7,REk,ODg,E04,Fqs,SdL,u$L,dMo,iD7,WI,sz7,vI,tU4,g04,PI,jz1,yzg,czg,Az7,LP,zFk,wP8,bQ5,Y51,Jak,knL,uE,q58,xOk,$O1,QBL,mOo,nAg,MZ8,l95,rah,WY4,hF1,OQm,dO,EAm,FYm,dO1,VZk,S5N,umo,tZs,iQN,gA5,ya1,AaN,ZQo,pP1,e5m,z5N,C_8,Koh,oDg,GSE,Y$m,ba7,JF1,q$N,$j1,aqN,rFo,UjE,Wo4,gO,P_k,R51,Lo7,h51,Oao,Fog,VR1,fqE,S$4,uQ4,djL,DjN,iaL,N_4,s_N,B_m,gDg,tRg,cF1,ZaL,cI,pS7,CI1,zqE,o74,GY8,YbN,Je8,x7o,qbm,
XX4,lZk,$75,Mzk,Qj1,Cm,aZg,PIm,U77,v7h,IZg,WC8,RqN,hq4,LCE,wo,Km,ucm,E7m,Sb8,fZg,FC5,Vz7,i54,sj7,tzo,Bso,g7g,Aeo,ceg,pXL,CF1,KQN,zHk,o6E,YK1,Gcm,XY4,qKE,XH,xf7,TrE,QRs,r6E,PF4,kp,LQN,O8s,Qk,VPh,E6k,FQg,lA,dfN,fJh,SKm,Df7,Nr4,i8h,tPh,g6h,y61,c61,A61,Z88,pY1,z3o,Cah,Lm,K3h,ohg,XBE,J3k,Vk,k7L,xAk,r31,iA,QG1,M$1,mA7,ato,It5,vhg,L3g,W31,h31,OuL,sm,F3g,V$1,ft1,Ehs,go,Sp1,B9,iug,y3L,c34,A31,Zuo,pBg,euN,KPE,CQm,weh,zug,Gu1,JNg,kug,TzL,$ig,QD7,n_1,mi8,aDh,MWE,H2L,UiE,v_8,ID4,WPm,PQL,LP1,O2o,E_h,fDE,VWg,ud1,
SYE,dih,Dig,NzL,sDk,peh,ANm,Cvg,w_s,X_7,Jbg,k2E,qe5,xSh,Tgk,Qyh,mS5,apg,Mi5,rb5,HnL,US4,vM7,Ipm,Pvs,RMg,Lr8,$f,Frs,EMs,Ono,hM5,fpk,dSo,Se8,inE,NgE,BgL,ti7,gMg,jyg,ybE,ezE,cb1,Ab7,Zn5,zzk,Crg,w6o,p_L,ao,Gfh,bIh,YlE,MT,X6s,kfE,ql4,xym,JjN,T84,$y7,lY4,QLk,mys,nSL,MX7,rj1,HI7,IYk,vSo,hz1,Uyg,Hj,OI1,WH7,LHL,FHE,VXN,fY4,Sls,uTk,Dyk,iIo,N81,B85,tXh,jL1,cjg,zI5,p6s,eIo,ZI1,Ajs,Cq4,ET,wy4,FW,KGo,oH1,J$h,qIE,x81,T7g,$8g,lUL,QH4,De,iw,r$g,aUs,m8o,nHg,EH4,hIg,Mbh,LG8,d8k,D8N,i_g,N77,sH4,gHo,y$1,A$5,pyo,eZo,zZ1,
oCN,Kno,GWg,bXo,kT,kW8,qoN,xcg,TV4,$cg,lBL,Qag,xT,l3,nCE,MK1,HXN,IB5,OXN,So7,fBh,uvs,Dc8,iX7,NV8,sak,BVh,tKs,rE,gCk,eQ1,zQ7,Axh,cxs,pz4,ZX4,GQg,Y0h,b61,XdN,J9g,kQE,TZ1,x0m,q0g,H6o,Mr5,U01,v9N,I1k,RQh,hQg,Wko,Px7,d0g,i64,sfN,trm,jfE,c9s,ep1,zpk,CX4,oeo,KKo,w35,GFm,YB5,bl1,X37,JW5,kFE,qBk,xR7,TTL,$Rk,QNm,mRL,auh,ne7,M7o,rW7,UR1,ve5,Ium,WKE,PXE,Rph,Eek,FKm,fuN,uBk,SBN,dR1,FR,DR1,ilk,NTo,sN1,jN1,ge4,yWs,cW1,AW4,Zlk,p3s,er8,zr4,CuE,wG8,KwE,oF1,GIm,Yh5,bS7,XGh,kIo,Jy5,qh7,xW5,TRo,$W8,lb7,QFE,mW1,ab7,sz,
Mt8,rym,HSm,UW4,vFs,Ww8,Pum,Rrk,Lw1,hrN,OSE,Fwh,Vt5,Shh,j3,DWg,ttE,sFs,NR8,iSk,BR5,yyg,cy1,Ay1,ZSg,e4E,z4E,CDL,KL1,wug,oYs,GHo,Yu4,JVE,kHL,qu1,xhg,Tjm,$h4,mhE,a$5,w$,Uh1,vY1,WLL,LLN,R45,h41,O1k,Ks,GV,FLh,VTm,XZ,JS,dh1,f$L,Sug,Njo,stg,Bjh,tTE,cVL,Z11,pu1,eem,zeg,CRk,Kem,o8g,Glo,Y97,bzo,X8N,JPs,xs,klg,q98,$s,xs4,T0h,$sm,li1,QWs,ms1,m8,ae,ais,n8N,ns,MD1,rP4,Hzk,Us7,Iig,We8,Re4,Feg,E8g,Ozk,VDs,fig,sWg,ds1,Ds1,iz7,u67,N07,B01,tDs,jW7,cPg,r$,p8E,e1m,z1o,CjN,wb7,onL,YL1,Jv1,Td1,qLE,H0,kZ1,aXm,M9g,UA,rv4,
HOL,Uo5,vns,IX8,Pjh,R11,h1g,OOo,FZ8,V9k,dog,uM1,iO8,Nd7,sE1,Bdo,gn1,jEo,yv7,cv4,Av1,ZO8,pbs,ewo,zws,wsk,K_N,Xs5,J75,kJ5,qN1,OA,$zN,lmh,Qd7,mzg,amL,ng4,r74,Hyh,Uzg,vgE,W_m,Pym,Rw5,Vz,L_5,hwE,F_h,VMg,S4,un,ulm,fmg,dzk,NYN,Dz8,sdk,tM4,sA,gg8,jdg,y7k,Zy7,eah,B0,Cf8,wNN,KRm,ow1,Gwh,YMg,bwm,XNk,xko,TWN,mk4,$kg,Q9g,an5,nwL,Mmm,UkL,vws,Inm,PfN,Ra7,Vmo,FR5,iw7,BW1,ps,tms,gwh,cRg,eo,j9m,yDo,ADm,e2g,z2s,bL7,Xxo,Jo8,kbo,qP5,xu5,$u4,la7,mum,nc1,Qcg,aag,roL,MH1,Uu4,WtL,vc7,PUk,R2E,LtE,h27,OLo,Ecs,VHg,Ft4,dug,Nl4,
Du4,sc1,Bl8,tH4,X9,gco,jck,TO,co1,yoo,Aoo,px5,ZLL,w4L,K4k,Gz4,YFh,X41,JZL,kzk,qF5,$PL,QAh,nx5,a41,Md1,rZ4,HF1,I47,f4N,L41,uws,dPg,iFh,Ncs,gxo,jA7,yZ4,cZ7,AZ1,ZFo,zYk,CPE,wgs,KdN,Y1h,Xg4,JMN,bfg,q1h,k3L,Qqs,mr1,aFg,n4o,MFg,rM8,Hfg,v4g,PP8,RYE,Ldg,E4g,Ofo,fF5,ui1,drs,Dr1,ifm,Nxg,Bxh,sqh,g41,ZfE,CV1,z8N,wD5,KNo,oto,Yi1,Vg,XD5,dh,keg,xb1,TI4,ajs,MV4,vtm,WNh,PVE,LNm,h8s,Ot5,FNg,fj4,Si4,db7,NI1,itg,Db1,BM,BI1,sU7,tVs,gt1,jUh,ycN,cc1,Ac1,Zt1,ebL,zbL,CNg,ww7,KV1,orL,GPs,Yw5,beL,Xwh,kPL,qwo,x91,Mpm,rsE,Heh,
vr7,IxN,WVL,LV4,ev,fx4,Sw4,d9o,D9E,ie5,Nv8,s1L,Cb,ZeE,b0,w4,oP,pwm,esa,w1c,oNY,K7Y,Yd,GgC,YEa,bos,X1Y;es1=function(){var e,z;return typeof CSS!=="undefined"&&((z=(e=CSS).supports)==null?void 0:z.call(e,"selector(:has(*))"))};
zs8=function(e){return e.visibility!=="hidden"&&e.display!=="none"};
w17=function(e){if(es1()||e.tagName!=="DETAILS"?!e.matches(Cgo):e.querySelector("summary")!==null)return-1;e=e.getAttribute("tabindex")||"0";return Number(e)};
K75=function(e){return e.some(function(z){return w17(z)>0})};
oN5=function(e){if(e.textContent||e.ariaLabel)return!0;if(e instanceof HTMLInputElement){if(!e.labels)return!1;e=_.b(e.labels);for(var z=e.next();!z.done;z=e.next())if(z.value.textContent)return!0}return!1};
Ggs=function(e){return e.sort(function(z,C){return w17(C)-w17(z)})};
_.YE1=function(e){e=Array.from(e.querySelectorAll(Cgo)).filter(function(z){return(zs8(z.style)?zs8(window.getComputedStyle(z)):!1)&&oN5(z)});
return K75(e)?Ggs(e):e};
_.eh=function(e,z){if(Error.captureStackTrace)Error.captureStackTrace(this,_.eh);else{var C=Error().stack;C&&(this.stack=C)}e&&(this.message=String(e));z!==void 0&&(this.cause=z)};
zg=function(){throw Error("E");};
bo4=function(e,z){z=String.fromCharCode.apply(null,z);return e==null?z:e+z};
qEg=function(e){var z=!1;z=z===void 0?!1:z;if(X15){if(z&&(Jkm?!e.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e)))throw Error("F");e=(kgg||(kgg=new TextEncoder)).encode(e)}else{for(var C=0,w=new Uint8Array(3*e.length),K=0;K<e.length;K++){var G=e.charCodeAt(K);if(G<128)w[C++]=G;else{if(G<2048)w[C++]=G>>6|192;else{if(G>=55296&&G<=57343){if(G<=56319&&K<e.length){var X=e.charCodeAt(++K);if(X>=56320&&X<=57343){G=(G-55296)*1024+X-56320+65536;w[C++]=G>>18|
240;w[C++]=G>>12&63|128;w[C++]=G>>6&63|128;w[C++]=G&63|128;continue}else K--}if(z)throw Error("F");G=65533}w[C++]=G>>12|224;w[C++]=G>>6&63|128}w[C++]=G&63|128}}e=C===w.length?w:w.subarray(0,C)}return e};
Ko=function(e){_.wL.setTimeout(function(){throw e;},0)};
_.om=function(e,z){return e.lastIndexOf(z,0)==0};
Gg=function(e,z){var C=e.length-z.length;return C>=0&&e.indexOf(z,C)==C};
_.bg=function(e){return/^[\s\xa0]*$/.test(e)};
_.X4=function(e,z){return e.indexOf(z)!=-1};
_.q5=function(e,z){return _.X4(e.toLowerCase(),z.toLowerCase())};
_.Tg=function(e,z){var C=0;e=xN(String(e)).split(".");z=xN(String(z)).split(".");for(var w=Math.max(e.length,z.length),K=0;C==0&&K<w;K++){var G=e[K]||"",X=z[K]||"";do{G=/(\d*)(\D*)(.*)/.exec(G)||["","","",""];X=/(\d*)(\D*)(.*)/.exec(X)||["","","",""];if(G[0].length==0&&X[0].length==0)break;C=x5L(G[1].length==0?0:parseInt(G[1],10),X[1].length==0?0:parseInt(X[1],10))||x5L(G[2].length==0,X[2].length==0)||x5L(G[2],X[2]);G=G[3];X=X[3]}while(C==0)}return C};
x5L=function(e,z){return e<z?-1:e>z?1:0};
_.Q1=function(){var e=_.wL.navigator;return e&&(e=e.userAgent)?e:""};
TLE=function(e){if(!m7||!no)return!1;for(var z=0;z<no.brands.length;z++){var C=no.brands[z].brand;if(C&&_.X4(C,e))return!0}return!1};
rL=function(e){return _.X4(_.Q1(),e)};
H1=function(){return m7?!!no&&no.brands.length>0:!1};
$5L=function(){return H1()?!1:rL("Opera")};
l8o=function(){return H1()?!1:rL("Trident")||rL("MSIE")};
Qms=function(){return H1()?TLE("Microsoft Edge"):rL("Edg/")};
UE=function(){return rL("Firefox")||rL("FxiOS")};
_.m51=function(){return rL("Safari")&&!(_.W1()||(H1()?0:rL("Coast"))||$5L()||(H1()?0:rL("Edge"))||Qms()||(H1()?TLE("Opera"):rL("OPR"))||UE()||rL("Silk")||rL("Android"))};
_.W1=function(){return H1()?TLE("Chromium"):(rL("Chrome")||rL("CriOS"))&&!(H1()?0:rL("Edge"))||rL("Silk")};
_.a8N=function(){return rL("Android")&&!(_.W1()||UE()||$5L()||rL("Silk"))};
nNN=function(e){var z={};e.forEach(function(C){z[C[0]]=C[1]});
return function(C){return z[C.find(function(w){return w in z})]||""}};
Mhm=function(e){var z=_.Q1();if(e==="Internet Explorer"){if(l8o())if((e=/rv: *([\d\.]*)/.exec(z))&&e[1])z=e[1];else{e="";var C=/MSIE +([\d\.]+)/.exec(z);if(C&&C[1])if(z=/Trident\/(\d.\d)/.exec(z),C[1]=="7.0")if(z&&z[1])switch(z[1]){case "4.0":e="8.0";break;case "5.0":e="9.0";break;case "6.0":e="10.0";break;case "7.0":e="11.0"}else e="7.0";else e=C[1];z=e}else z="";return z}var w=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");C=[];for(var K;K=w.exec(z);)C.push([K[1],K[2],K[3]||void 0]);
z=nNN(C);switch(e){case "Opera":if($5L())return z(["Version","Opera"]);if(H1()?TLE("Opera"):rL("OPR"))return z(["OPR"]);break;case "Microsoft Edge":if(H1()?0:rL("Edge"))return z(["Edge"]);if(Qms())return z(["Edg"]);break;case "Chromium":if(_.W1())return z(["Chrome","CriOS","HeadlessChrome"])}return e==="Firefox"&&UE()||e==="Safari"&&_.m51()||e==="Android Browser"&&_.a8N()||e==="Silk"&&rL("Silk")?(z=C[2])&&z[1]||"":""};
_.rk1=function(e){if(H1()&&e!=="Silk"){var z=no.brands.find(function(C){return C.brand===e});
if(!z||!z.version)return NaN;z=z.version.split(".")}else{z=Mhm(e);if(z==="")return NaN;z=z.split(".")}return z.length===0?NaN:Number(z[0])};
Rm=function(){return m7?!!no&&!!no.platform:!1};
_.Ho7=function(){return Rm()?no.platform==="Android":rL("Android")};
U51=function(){return rL("iPhone")&&!rL("iPod")&&!rL("iPad")};
_.Lo=function(){return U51()||rL("iPad")||rL("iPod")};
_.vNo=function(){return Rm()?no.platform==="macOS":rL("Macintosh")};
_.I81=function(){return Rm()?no.platform==="Windows":rL("Windows")};
_.W7h=function(){return Rm()?no.platform==="Chrome OS":rL("CrOS")};
_.hk=function(e){return e[e.length-1]};
_.OE=function(e,z,C){z=_.Pgg(e,z,C);return z<0?null:typeof e==="string"?e.charAt(z):e[z]};
_.Pgg=function(e,z,C){for(var w=e.length,K=typeof e==="string"?e.split(""):e,G=0;G<w;G++)if(G in K&&z.call(C,K[G],G,e))return G;return-1};
Rsg=function(e){for(var z=_.F4,C=typeof e==="string"?e.split(""):e,w=e.length-1;w>=0;w--)if(w in C&&z.call(void 0,C[w],w,e))return w;return-1};
_.Sh=function(e,z){return _.V1(e,z)>=0};
_.L7k=function(e,z){_.Sh(e,z)||e.push(z)};
_.D8=function(e,z){z=_.V1(e,z);var C;(C=z>=0)&&_.hsE(e,z);return C};
_.hsE=function(e,z){Array.prototype.splice.call(e,z,1)};
_.ig=function(e){var z=e.length;if(z>0){for(var C=Array(z),w=0;w<z;w++)C[w]=e[w];return C}return[]};
_.tk=function(e,z){for(var C=1;C<arguments.length;C++){var w=arguments[C];if(_.B1(w)){var K=e.length||0,G=w.length||0;e.length=K+G;for(var X=0;X<G;X++)e[K+X]=w[X]}else e.push(w)}};
_.ENg=function(e,z,C,w){Array.prototype.splice.apply(e,Oom(arguments,1))};
Oom=function(e,z,C){return arguments.length<=2?Array.prototype.slice.call(e,z):Array.prototype.slice.call(e,z,C)};
F75=function(e,z){z=z||e;for(var C=0,w=0,K={};w<e.length;){var G=e[w++],X=_.gL(G)?"o"+_.c1(G):(typeof G).charAt(0)+G;Object.prototype.hasOwnProperty.call(K,X)||(K[X]=!0,z[C++]=G)}z.length=C};
_.f8m=function(e,z,C){C=C||_.Vhh;for(var w=0,K=e.length,G;w<K;){var X=w+(K-w>>>1);var J=C(z,e[X]);J>0?w=X+1:(K=X,G=!J)}return G?w:-w-1};
_.Z8=function(e,z,C){if(!_.B1(e)||!_.B1(z)||e.length!=z.length)return!1;var w=e.length;C=C||SEE;for(var K=0;K<w;K++)if(!C(e[K],z[K]))return!1;return!0};
_.Vhh=function(e,z){return e>z?1:e<z?-1:0};
SEE=function(e,z){return e===z};
u4g=function(e,z,C){z=Array.prototype.splice.call(e,z,1);Array.prototype.splice.call(e,C,0,z[0])};
D5h=function(e){return d5E[e]||""};
smg=function(e){if(!ios)return _.po(e);e=NLo.test(e)?e.replace(NLo,D5h):e;e=atob(e);for(var z=new Uint8Array(e.length),C=0;C<e.length;C++)z[C]=e.charCodeAt(C);return z};
BL1=function(e,z){e.__closure__error__context__984382||(e.__closure__error__context__984382={});e.__closure__error__context__984382.severity=z};
_.eS=function(e){e=Error(e);BL1(e,"warning");return e};
gNL=function(e,z){if(e!=null){var C;var w=(C=ths)!=null?C:ths={};C=w[e]||0;C>=z||(w[e]=C+1,e=Error(),BL1(e,"incident"),Ko(e))}};
Cg=function(e,z,C){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(C===void 0?0:C)&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():z};
YL=function(e,z){oh||_.GX in e||jm4(e,ykL);e[_.GX]|=z};
Xs=function(e,z){oh||_.GX in e||jm4(e,ykL);e[_.GX]=z};
ck1=function(e){if(4&e)return 512&e?512:1024&e?1024:0};
kL=function(e){YL(e,34);return e};
xL=function(e){YL(e,8192);return e};
Aks=function(e){YL(e,32);return e};
TX=function(){return typeof BigInt==="function"};
va=function(e,z){return z===void 0?e.copyOnWrite!==MY&&!!(2&(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.GX]|0)):!!(2&z)&&e.copyOnWrite!==MY};
_.EU=function(e,z){if(e!=null)if(typeof e==="string")e=e?new Wa(e,Rh):_.h4();else if(e.constructor!==Wa)if(Zo4&&e!=null&&e instanceof Uint8Array)e=e.length?new Wa(new Uint8Array(e),Rh):_.h4();else{if(!z)throw Error();e=void 0}return e};
p15=function(e,z){if(typeof z!=="number"||z<0||z>=e.length)throw Error();};
eCh=function(e,z,C){var w=z&128?0:-1,K=e.length,G;if(G=!!K)G=e[K-1],G=G!=null&&typeof G==="object"&&G.constructor===Object;var X=K+(G?-1:0);for(z=z&128?1:0;z<X;z++)C(z-w,e[z]);if(G){e=e[K-1];for(var J in e)!isNaN(J)&&C(+J,e[J])}};
Va=function(e){return e&128?Fs:void 0};
fg=function(e){e.isGuard_doNotManuallySetPrettyPlease=!0;return e};
Cok=function(){var e=zCE;return fg(function(z){for(var C in e)if(z===e[C]&&!/^[0-9]+$/.test(C))return!0;return!1})};
_.SS=function(e){var z=e;if(wa7(z)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(z))throw Error(String(z));}else if(Kc4(z)&&!Number.isSafeInteger(z))throw Error(String(z));return oLm?BigInt(e):e=GXh(e)?e?"1":"0":wa7(e)?e.trim()||"0":String(e)};
YU1=function(e,z){if(e.length>z.length)return!1;if(e.length<z.length||e===z)return!0;for(var C=0;C<e.length;C++){var w=e[C],K=z[C];if(w>K)return!1;if(w<K)return!0}};
bg5=function(e){var z=e>>>0;uo=z;d6=(e-z)/4294967296>>>0};
DT=function(e){if(e<0){bg5(-e);var z=_.b(Xa7(uo,d6));e=z.next().value;z=z.next().value;uo=e>>>0;d6=z>>>0}else bg5(e)};
kX1=function(e){var z=J4L||(J4L=new DataView(new ArrayBuffer(8)));z.setFloat32(0,+e,!0);d6=0;uo=z.getUint32(0,!0)};
qUg=function(e,z){var C=z*4294967296+(e>>>0);return Number.isSafeInteger(C)?C:_.io(e,z)};
xYg=function(e,z){return _.SS(TX()?BigInt.asUintN(64,(BigInt(z>>>0)<<BigInt(32))+BigInt(e>>>0)):_.io(e,z))};
NY=function(e,z){var C=z&2147483648;C&&(e=~e+1>>>0,z=~z>>>0,e==0&&(z=z+1>>>0));e=qUg(e,z);return typeof e==="number"?C?-e:e:C?"-"+e:e};
T68=function(e,z){return TX()?_.SS(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(z))<<BigInt(32))+BigInt.asUintN(32,BigInt(e)))):_.SS(_.sU(e,z))};
$Y1=function(e){var z=uo,C=d6,w=C>>31;C=(C<<1|z>>>31)^w;e(z<<1^w,C)};
QhE=function(e,z){return lT1(e,z,NY)};
lT1=function(e,z,C){var w=-(e&1);e=(e>>>1|z<<31)^w;z=z>>>1^w;return C(e,z)};
_.io=function(e,z){z>>>=0;e>>>=0;if(z<=2097151)var C=""+(4294967296*z+e);else TX()?C=""+(BigInt(z)<<BigInt(32)|BigInt(e)):(C=(e>>>24|z<<8)&16777215,z=z>>16&65535,e=(e&16777215)+C*6777216+z*6710656,C+=z*8147497,z*=2,e>=1E7&&(C+=e/1E7>>>0,e%=1E7),C>=1E7&&(z+=C/1E7>>>0,C%=1E7),C=z+mYE(C)+mYE(e));return C};
mYE=function(e){e=String(e);return"0000000".slice(e.length)+e};
_.sU=function(e,z){z&2147483648?TX()?e=""+(BigInt(z|0)<<BigInt(32)|BigInt(e>>>0)):(z=_.b(Xa7(e,z)),e=z.next().value,z=z.next().value,e="-"+_.io(e,z)):e=_.io(e,z);return e};
t4=function(e){if(e.length<16)DT(Number(e));else if(TX())e=BigInt(e),uo=Number(e&BigInt(4294967295))>>>0,d6=Number(e>>BigInt(32)&BigInt(4294967295));else{var z=+(e[0]==="-");d6=uo=0;for(var C=e.length,w=z,K=(C-z)%6+z;K<=C;w=K,K+=6)w=Number(e.slice(w,K)),d6*=1E6,uo=uo*1E6+w,uo>=4294967296&&(d6+=Math.trunc(uo/4294967296),d6>>>=0,uo>>>=0);z&&(z=_.b(Xa7(uo,d6)),e=z.next().value,z=z.next().value,uo=e,d6=z)}};
Xa7=function(e,z){z=~z;e?e=~e+1:z+=1;return[e,z]};
ya=function(e){return Array.prototype.slice.call(e)};
_.ca=function(e,z){throw Error(z===void 0?"unexpected value "+e+"!":z);};
_.ZT=function(e){if(e!=null&&typeof e!=="number")throw Error("L`"+typeof e+"`"+e);return e};
_.pg=function(e){if(e==null||typeof e==="number")return e;if(e==="NaN"||e==="Infinity"||e==="-Infinity")return Number(e)};
aTN=function(e){if(e!=null&&typeof e!=="boolean")throw Error("M`"+_.zL(e)+"`"+e);return e};
_.nLk=function(e){if(e==null||typeof e==="boolean")return e;if(typeof e==="number")return!!e};
_.Kv=function(e){switch(typeof e){case "bigint":return!0;case "number":return Cv(e);case "string":return MSs.test(e);default:return!1}};
_.GL=function(e){if(!Cv(e))throw _.eS("enum");return e|0};
_.YZ=function(e){return e==null?e:Cv(e)?e|0:void 0};
r4N=function(e){if(typeof e!=="number")throw _.eS("int32");if(!Cv(e))throw _.eS("int32");return e|0};
_.XY=function(e){return e==null?e:r4N(e)};
_.JC=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Cv(e)?e|0:void 0};
_.Hg1=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Cv(e)?e>>>0:void 0};
WcL=function(e){var z=0;z=z===void 0?0:z;if(!_.Kv(e))throw _.eS("int64");var C=typeof e;switch(z){case 512:switch(C){case "string":return kZ(e);case "bigint":return String(qa(64,e));default:return UY4(e)}case 1024:switch(C){case "string":return vL7(e);case "bigint":return _.SS(qa(64,e));default:return ITo(e)}case 0:switch(C){case "string":return kZ(e);case "bigint":return _.SS(qa(64,e));default:return xZ(e)}default:return _.ca(z,"Unknown format requested type for int64")}};
TL=function(e){return e==null?e:WcL(e)};
Po4=function(e){var z=e.length;if(e[0]==="-"?z<20||z===20&&e<="-9223372036854775808":z<19||z===19&&e<="9223372036854775807")return e;t4(e);return _.sU(uo,d6)};
RCh=function(e){if(e[0]==="-")var z=!1;else z=e.length,z=z<20?!0:z===20&&e<="18446744073709551615";if(z)return e;t4(e);return _.io(uo,d6)};
xZ=function(e){e=$Z(e);l$(e)||(DT(e),e=NY(uo,d6));return e};
_.Lco=function(e){e=$Z(e);e>=0&&l$(e)||(DT(e),e=qUg(uo,d6));return e};
UY4=function(e){e=$Z(e);l$(e)?e=String(e):(DT(e),e=_.sU(uo,d6));return e};
_.hCg=function(e){e=$Z(e);e>=0&&l$(e)?e=String(e):(DT(e),e=_.io(uo,d6));return e};
kZ=function(e){var z=$Z(Number(e));if(l$(z))return String(z);z=e.indexOf(".");z!==-1&&(e=e.substring(0,z));return Po4(e)};
vL7=function(e){var z=$Z(Number(e));if(l$(z))return _.SS(z);z=e.indexOf(".");z!==-1&&(e=e.substring(0,z));return TX()?_.SS(qa(64,BigInt(e))):_.SS(Po4(e))};
ITo=function(e){return l$(e)?_.SS(xZ(e)):_.SS(UY4(e))};
_.OgN=function(e){return l$(e)?_.SS(_.Lco(e)):_.SS(_.hCg(e))};
_.EL4=function(e){var z=$Z(Number(e));if(l$(z)&&z>=0)return String(z);z=e.indexOf(".");z!==-1&&(e=e.substring(0,z));return RCh(e)};
_.Fcg=function(e){var z=$Z(Number(e));if(l$(z)&&z>=0)return _.SS(z);z=e.indexOf(".");z!==-1&&(e=e.substring(0,z));return TX()?_.SS((0,_.Qo)(64,BigInt(e))):_.SS(RCh(e))};
_.fTo=function(e){if(e==null)return e;if(typeof e==="bigint")return VS4(e)?e=Number(e):(e=qa(64,e),e=VS4(e)?Number(e):String(e)),e;if(_.Kv(e))return typeof e==="number"?xZ(e):kZ(e)};
SUm=function(e,z){z=z===void 0?!1:z;var C=typeof e;if(e==null)return e;if(C==="bigint")return String(qa(64,e));if(_.Kv(e))return C==="string"?kZ(e):z?UY4(e):xZ(e)};
_.us7=function(e){var z=typeof e;if(e==null)return e;if(z==="bigint")return _.SS(qa(64,e));if(_.Kv(e))return z==="string"?vL7(e):ITo(e)};
dYs=function(e){if(e==null)return e;var z=typeof e;if(z==="bigint")return String(qa(64,e));if(_.Kv(e)){if(z==="string")return kZ(e);if(z==="number")return xZ(e)}};
DYL=function(e){if(e==null)return e;var z=typeof e;if(z==="bigint")return String((0,_.Qo)(64,e));if(_.Kv(e)){if(z==="string")return _.EL4(e);if(z==="number")return _.Lco(e)}};
_.m5=function(e){if(typeof e!=="string")throw Error();return e};
Ma=function(e){if(e!=null&&typeof e!=="string")throw Error();return e};
_.Hl=function(e){return e==null||typeof e==="string"?e:void 0};
sh1=function(e,z,C,w){if(e!=null&&e[vl]===Ib)return e;if(!Array.isArray(e))return C?w&2?z[igo]||(z[igo]=N6E(z)):new z:void 0;C=e[_.GX]|0;w=C|w&32|w&2;w!==C&&Xs(e,w);return new z(e)};
N6E=function(e){e=new e;kL(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return e};
B64=function(e,z,C){e=z?r4N(e):_.JC(e);return e==null?C?0:void 0:e|0};
tSN=function(e){return e};
gL1=function(e){return e};
y4N=function(e,z,C,w,K,G){e=sh1(e,w,C,G);K&&(e=jhs(e));return e};
c4h=function(e){return[e,this.get(e)]};
pas=function(){return A4g||(A4g=new Pl(kL([]),void 0,void 0,void 0,Zgs))};
eWE=function(e){var z=Rb(hC);return z?e[z]:void 0};
wls=function(e,z){var C=C===void 0?!1:C;if(Rb(zW8)&&Rb(hC)&&void 0===zW8){var w=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=w[hC];if(!K)return;if(K=K.reviveUnknownFields)try{K(w,z,C$E);return}catch(G){Ko(G)}}C&&(e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(C=Rb(hC))&&C in e&&(e=e[C])&&delete e[z])};
oZ4=function(e,z){var C=Rb(hC),w;oh&&C&&((w=e[C])==null?void 0:w[z])!=null&&gNL(K5h,3)};
Yq1=function(e,z){z<100||gNL(GLo,1)};
qq1=function(e,z,C,w){var K=w!==void 0;w=!!w;var G=Rb(hC),X;!K&&oh&&G&&(X=e[G])&&bv1(X,Yq1);G=[];var J=e.length;X=4294967295;var q=!1,T=!!(z&64),Q=T?z&128?0:-1:void 0;if(!(z&1)){var m=J&&e[J-1];m!=null&&typeof m==="object"&&m.constructor===Object?(J--,X=J):m=void 0;if(T&&!(z&128)&&!K){q=!0;var a;X=((a=XlE)!=null?a:tSN)(X-Q,Q,e,m,void 0)+Q}}z=void 0;for(a=0;a<J;a++){var n=e[a];if(n!=null&&(n=C(n,w))!=null)if(T&&a>=X){var H=a-Q,I=void 0;((I=z)!=null?I:z={})[H]=n}else G[a]=n}if(m)for(var L in m)J=m[L],
J!=null&&(J=C(J,w))!=null&&(a=+L,n=void 0,T&&!Number.isNaN(a)&&(n=a+Q)<X?G[n]=J:(a=void 0,((a=z)!=null?a:z={})[L]=J));z&&(q?G.push(z):G[X]=z);K&&Rb(hC)&&(e=eWE(e))&&e instanceof JC4&&(G[hC]=kLm(e));return G};
Tfm=function(e){e[0]=xak(e[0]);e[1]=xak(e[1]);return e};
xak=function(e){switch(typeof e){case "number":return Number.isFinite(e)?e:""+e;case "bigint":return VS4(e)?Number(e):""+e;case "boolean":return e?1:0;case "object":if(Array.isArray(e)){var z=e[_.GX]|0;return e.length===0&&z&1?void 0:qq1(e,z,xak)}if(e!=null&&e[vl]===Ib)return $aL(e);if(e instanceof Wa){z=e.JSC$8989_value_;if(z==null)e="";else if(typeof z==="string")e=z;else{if(ios){for(var C="",w=0,K=z.length-10240;w<K;)C+=String.fromCharCode.apply(null,z.subarray(w,w+=10240));C+=String.fromCharCode.apply(null,
w?z.subarray(w):z);z=btoa(C)}else z=_.FY(z);e=e.JSC$8989_value_=z}return e}if(e instanceof Pl)return e=e.size!==0?l3N(e,Tfm):void 0,e;return}return e};
fv=function(e,z){if(z){XlE=z==null||z===tSN||z[QbE]!==mah?tSN:z;try{return $aL(e)}finally{XlE=void 0}}return $aL(e)};
$aL=function(e){e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return qq1(e,e[_.GX]|0,xak)};
MEE=function(e){switch(typeof e){case "boolean":return a3E||(a3E=[0,void 0,!0]);case "number":return e>0?void 0:e===0?nZ4||(nZ4=[0,void 0]):[-e,void 0];case "string":return[0,e];case "object":return e}};
SE=function(e,z){return rC7(e,z[0],z[1])};
_.u$=function(e,z,C){return rC7(e,z,C,2048)};
rC7=function(e,z,C,w){w=w===void 0?0:w;if(e==null){var K=32;C?(e=[C],K|=128):e=[];z&&(K=K&-16760833|(z&1023)<<14)}else{if(!Array.isArray(e))throw Error("O");K=e[_.GX]|0;if(Hv8&&1&K)throw Error("P");2048&K&&!(2&K)&&Ua4();if(K&256)throw Error("Q");if(K&64)return(K|w)!==K&&Xs(e,K|w),e;if(C&&(K|=128,C!==e[0]))throw Error("R");a:{C=e;K|=64;var G=C.length;if(G){var X=G-1,J=C[X];if(J!=null&&typeof J==="object"&&J.constructor===Object){z=K&128?0:-1;X-=z;if(X>=1024)throw Error("T");for(var q in J)G=+q,G<X&&
(C[G+z]=J[q],delete J[q]);K=K&-16760833|(X&1023)<<14;break a}}if(z){q=Math.max(z,G-(K&128?0:-1));if(q>1024)throw Error("U");K=K&-16760833|(q&1023)<<14}}}Xs(e,K|64|w);return e};
Ua4=function(){if(Hv8)throw Error("S");gNL(vZs,5)};
P$m=function(e,z){if(typeof e!=="object")return e;if(Array.isArray(e)){var C=e[_.GX]|0;return e.length===0&&C&1?void 0:I3L(e,C,z)}if(e!=null&&e[vl]===Ib)return W58(e);if(e instanceof Pl){z=e.arrayState;if(z&2)return e;if(!e.size)return;C=kL(l3N(e));if(e.valueCtor)for(e=0;e<C.length;e++){var w=C[e],K=w[1];K==null||typeof K!=="object"?K=void 0:K!=null&&K[vl]===Ib?K=W58(K):Array.isArray(K)?K=I3L(K,K[_.GX]|0,!!(z&32)):K=void 0;w[1]=K}return C}if(e instanceof Wa)return e};
I3L=function(e,z,C){if(z&2)return e;!C||4096&z||16&z?e=df(e,z,!1,C&&!(z&16)):(YL(e,34),z&4&&Object.freeze(e));return e};
RWL=function(e,z,C){e=new e.constructor(z);C&&(e.copyOnWrite=MY);e.noLegacyNull=MY;return e};
W58=function(e){var z=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=z[_.GX]|0;return va(e,C)?e:L57(e,z,C)?RWL(e,z):df(z,C)};
df=function(e,z,C,w){w!=null||(w=!!(34&z));e=qq1(e,z,P$m,w);w=32;C&&(w|=2);z=z&16769217|w;Xs(e,z);return e};
jhs=function(e){var z=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=z[_.GX]|0;return va(e,C)?L57(e,z,C)?RWL(e,z,!0):new e.constructor(df(z,C,!1)):e};
D3=function(e){if(e.copyOnWrite!==MY)return!1;var z=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=df(z,z[_.GX]|0);YL(z,2048);e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=z;e.copyOnWrite=void 0;e.noLegacyNull=void 0;return!0};
i$=function(e){if(!D3(e)&&va(e,e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.GX]|0))throw Error();};
Na=function(e,z){z===void 0&&(z=e[_.GX]|0);z&32&&!(z&4096)&&Xs(e,z|4096)};
L57=function(e,z,C){return C&2?!0:C&32&&!(C&4096)?(Xs(z,C|2),e.copyOnWrite=MY,!0):!1};
Bl=function(e,z,C,w,K){var G=C+(K?0:-1),X=e.length-1;if(X>=1+(K?0:-1)&&G>=X){var J=e[X];if(J!=null&&typeof J==="object"&&J.constructor===Object)return J[C]=w,z}if(G<=X)return e[G]=w,z;if(w!==void 0){var q;X=((q=z)!=null?q:z=e[_.GX]|0)>>14&1023||536870912;C>=X?w!=null&&(G={},e[X+(K?0:-1)]=(G[C]=w,G)):e[G]=w}return z};
_.cl=function(e,z,C,w,K){var G=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=G[_.GX]|0;w=va(e,X)?1:w;K=!!K||w===3;w===2&&D3(e)&&(G=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=G[_.GX]|0);e=hWg(G,z);var J=e===tC?7:e[_.GX]|0,q=Ov1(J,X);var T=4&q?!1:!0;if(T){4&q&&(e=ya(e),J=0,q=yo(q,X),X=Bl(G,X,z,e));for(var Q=0,m=0;Q<e.length;Q++){var a=C(e[Q]);a!=null&&(e[m++]=a)}m<Q&&(e.length=m);C=(q|4)&-513;q=C&=-1025;q&=-4097}q!==J&&(Xs(e,q),2&q&&Object.freeze(e));return e=EZ1(e,q,G,
X,z,w,T,K)};
EZ1=function(e,z,C,w,K,G,X,J){var q=z;G===1||(G!==4?0:2&z||!(16&z)&&32&w)?AC(z)||(z|=!e.length||X&&!(4096&z)||32&w&&!(4096&z||16&z)?2:256,z!==q&&Xs(e,z),Object.freeze(e)):(G===2&&AC(z)&&(e=ya(e),q=0,z=yo(z,w),w=Bl(C,w,K,e)),AC(z)||(J||(z|=16),z!==q&&Xs(e,z)));2&z||!(4096&z||16&z)||Na(C,w);return e};
hWg=function(e,z,C){e=Z3(e,z,C);return Array.isArray(e)?e:tC};
Ov1=function(e,z){2&z&&(e|=2);return e|1};
AC=function(e){return!!(2&e)&&!!(4&e)||!!(256&e)};
F5k=function(e){return _.EU(e,!0)};
VEN=function(e){e=ya(e);for(var z=0;z<e.length;z++){var C=e[z]=ya(e[z]);Array.isArray(C[1])&&(C[1]=kL(C[1]))}return xL(e)};
_.f3E=function(e,z,C,w,K){var G=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=G[_.GX]|0;var J=va(e,X);a:{!J&&D3(e)&&(G=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=G[_.GX]|0);var q=Z3(G,z);e=!1;if(q==null){if(J){z=pas();break a}q=[]}else if(q.constructor===Pl)if(q.arrayState&2&&!J)q=l3N(q);else{z=q;break a}else Array.isArray(q)?e=!!((q[_.GX]|0)&2):q=[];if(J){if(!q.length){z=pas();break a}e||(e=!0,kL(q))}else e&&(e=!1,xL(q),q=VEN(q));!e&&X&32&&Aks(q);w=new Pl(q,C,w,K);X=
Bl(G,X,z,w);e||Na(G,X);z=w}!J&&C&&(z.callToMutableOnAccess=!0);return z};
_.pv=function(e,z,C,w){i$(e);var K=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=K[_.GX]|0;if(C==null)return Bl(K,G,z),e;var X=C===tC?7:C[_.GX]|0,J=X,q=AC(X),T=q||Object.isFrozen(C);q||(X=0);T||(C=ya(C),J=0,X=yo(X,G),T=!1);X|=5;var Q;q=(Q=ck1(X))!=null?Q:0;for(Q=0;Q<C.length;Q++){var m=C[Q],a=w(m,q);Object.is(m,a)||(T&&(C=ya(C),J=0,X=yo(X,G),T=!1),C[Q]=a)}X!==J&&(T&&(C=ya(C),X=yo(X,G)),Xs(C,X));Bl(K,G,z,C);return e};
_.eg=function(e,z,C,w,K){i$(e);var G=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Bl(G,G[_.GX]|0,z,(w==="0"?Number(C)===0:C===w)?void 0:C,K);return e};
_.zy=function(e,z,C){if(z&2)throw Error();var w=Va(z),K=hWg(e,C,w),G=K===tC?7:K[_.GX]|0,X=Ov1(G,z);if(2&X||AC(X)||16&X)X===G||AC(X)||Xs(K,X),K=ya(K),G=0,X=yo(X,z),Bl(e,z,C,K,w);X&=-13;X!==G&&Xs(K,X);return K};
Sqs=function(e){if(oh){var z;return(z=e[KY])!=null?z:e[KY]=new Map}if(KY in e)return e[KY];z=new Map;Object.defineProperty(e,KY,{value:z});return z};
dao=function(e,z,C,w,K){var G=Sqs(e),X=uYg(G,e,z,C,K);X!==w&&(X&&(z=Bl(e,z,X,void 0,K)),G.set(C,w));return z};
uYg=function(e,z,C,w,K){var G=e.get(w);if(G!=null)return G;for(var X=G=0;X<w.length;X++){var J=w[X];Z3(z,J,K)!=null&&(G!==0&&(C=Bl(z,C,G,void 0,K)),G=J)}e.set(w,G);return G};
DaL=function(e,z,C,w,K){var G=!1;w=Z3(e,w,K,function(X){var J=sh1(X,C,!1,z);G=J!==X&&J!=null;return J});
if(w!=null)return G&&!va(w)&&Na(e,z),w};
iv8=function(e,z,C,w,K,G,X,J){var q=va(e,C);G=q?1:G;X=!!X||G===3;q=J&&!q;(G===2||q)&&D3(e)&&(z=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C=z[_.GX]|0);e=hWg(z,K);var T=e===tC?7:e[_.GX]|0,Q=Ov1(T,C);if(J=!(4&Q)){var m=e,a=C,n=!!(2&Q);n&&(a|=2);for(var H=!n,I=!0,L=0,h=0;L<m.length;L++){var E=sh1(m[L],w,!1,a);if(E instanceof w){if(!n){var N=va(E);H&&(H=!N);I&&(I=N)}m[h++]=E}}h<L&&(m.length=h);Q|=4;Q=I?Q&-4097:Q|4096;Q=H?Q|8:Q&-9}Q!==T&&(Xs(e,Q),2&Q&&Object.freeze(e));if(q&&!(8&Q||!e.length&&
(G===1||(G!==4?0:2&Q||!(16&Q)&&32&C)))){AC(Q)&&(e=ya(e),Q=yo(Q,C),C=Bl(z,C,K,e));w=e;q=Q;for(T=0;T<w.length;T++)m=w[T],Q=jhs(m),m!==Q&&(w[T]=Q);q|=8;Q=q=w.length?q|4096:q&-4097;Xs(e,Q)}return e=EZ1(e,Q,z,C,K,G,J,X)};
Nfk=function(e){e==null&&(e=void 0);return e};
yo=function(e,z){return e=(2&z?e|2:e&-3)&-273};
_.sbL=function(e,z,C,w,K){i$(e);z=_.cl(e,z,K,2,!0);var G;K=(G=ck1(z===tC?7:z[_.GX]|0))!=null?G:0;z.push(C(w,K));return e};
BfN=function(e,z,C,w,K,G,X){i$(e);var J=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;e=iv8(e,J,J[_.GX]|0,C,z,2,!0);if(G&&X)K!=null||(K=e.length-1),p15(e,K),e.splice(K,G),e.length||(e[_.GX]&=-4097);else{if(G){if(typeof K!=="number"||K<0||K>e.length)throw Error();}else w=w!=null?w:new C;K!=void 0?e.splice(K,G,w):e.push(w);K=C=e===tC?7:e[_.GX]|0;(w=va(w))?(C&=-9,e.length===1&&(C&=-4097)):C|=4096;C!==K&&Xs(e,C);w||Na(J)}};
gZL=function(e,z){if(typeof e==="string")return new oT(smg(e),z);if(Array.isArray(e))return new oT(new Uint8Array(e),z);if(e.constructor===Uint8Array)return new oT(e,!1);if(e.constructor===ArrayBuffer)return e=new Uint8Array(e),new oT(e,!1);if(e.constructor===Wa)return z=tEg(e)||new Uint8Array(0),new oT(z,!0,e);if(e instanceof Uint8Array)return e=e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new oT(e,!1);throw Error();};
yC4=function(e){switch(typeof e){case "string":jbN(e)}};
ACh=function(e){switch(typeof e){case "string":cC7(e)}};
Gy=function(){var e=function(){throw Error();};
Object.setPrototypeOf(e,e.prototype);return e};
pl5=function(e,z){var C=C===void 0?Zv4:C;return new Ya(e,z,C)};
Cl8=function(e,z,C,w,K){ejE(e,C,zj8(z,w),K)};
bl=function(e,z,C,w){var K=w[e];if(K)return K;K={};K.binaryFields=w;K.messageMetadata=MEE(w[0]);var G=w[1],X=1;G&&G.constructor===Object&&(K.extensions=G,G=w[++X],typeof G==="function"&&(K.isMessageSet=!0,wLh!=null||(wLh=G),K2h!=null||(K2h=w[X+1]),G=w[X+=2]));for(var J={};G&&oao(G);){for(var q=0;q<G.length;q++)J[G[q]]=G;G=w[++X]}for(q=1;G!==void 0;){typeof G==="number"&&(q+=G,G=w[++X]);var T=void 0;if(G instanceof Ya)var Q=G;else Q=Gyo,X--;G=void 0;if((G=Q)==null?0:G.$$isMsg){G=w[++X];T=w;var m=X;
typeof G==="function"&&(G=G(),T[m]=G);T=G}G=w[++X];m=q+1;typeof G==="number"&&G<0&&(m-=G,G=w[++X]);for(;q<m;q++){var a=J[q];T?C(K,q,Q,T,a):z(K,q,Q,a)}}return w[e]=K};
oao=function(e){return Array.isArray(e)&&!!e.length&&typeof e[0]==="number"&&e[0]>0};
bYL=function(e){return Array.isArray(e)?e[0]instanceof Ya?e:[YCE,e]:[e,void 0]};
zj8=function(e,z){if(e instanceof _.X2)return e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(e))return SE(e,z)};
XL7=function(e,z,C,w){var K=C.$$binaryReaderFn;e[z]=w?function(G,X,J){return K(G,X,J,w)}:K};
kyh=function(e,z,C,w,K){var G=C.$$binaryReaderFn,X,J;e[z]=function(q,T,Q){return G(q,T,Q,J||(J=bl(Jt1,XL7,kyh,w).messageMetadata),X||(X=qCL(w)),K)}};
qCL=function(e){var z=e[xg1];if(z!=null)return z;var C=bl(Jt1,XL7,kyh,e);z=C.isMessageSet?function(w,K){return wLh(w,K,C)}:function(w,K){for(;Tw5(K)&&K.nextWireType_!=4;){var G=K.nextField_,X=C[G];
if(X==null){var J=C.extensions;J&&(J=J[G])&&(J=$gm(J),J!=null&&(X=C[G]=J))}if(X==null||!X(K,w,G)){J=K;X=J.fieldCursor_;lyN(J);if(J.discardUnknownFields)var q=void 0;else{var T=J.decoder_.cursor_-X;J.decoder_.cursor_=X;q=QT4(J.decoder_,T)}T=J=X=void 0;var Q=w;q&&((X=(J=(T=Q[hC])!=null?T:Q[hC]=new JC4)[G])!=null?X:J[G]=[]).push(q)}}if(w=eWE(w))w.reviveUnknownFields=C.binaryFields[mg4];return!0};
e[xg1]=z;e[mg4]=ay1.bind(e);return z};
ay1=function(e,z,C,w){var K=this[Jt1],G=this[xg1],X=SE(void 0,K.messageMetadata),J=eWE(e);if(J){var q=!1,T=K.extensions;if(T){K=function(H,I,L){if(L.length!==0)if(T[I])for(H=_.b(L),I=H.next();!I.done;I=H.next()){I=na1(I.value);try{q=!0,G(X,I)}finally{I.free()}}else w==null||w(e,I,L)};
if(z==null)bv1(J,K);else if(J!=null){var Q=J[z];Q&&K(J,z,Q)}if(q){var m=e[_.GX]|0;if(m&2&&m&2048&&(C==null||!C.reviveIntoImmutable))throw Error();var a=Va(m),n=function(H,I){if(Z3(e,H,a)!=null)switch(C==null?void 0:C.resolutionBehavior){case 1:return;default:throw Error();}I!=null&&(m=Bl(e,m,H,I,a));delete J[H]};
z==null?eCh(X,X[_.GX]|0,function(H,I){n(H,I)}):n(z,Z3(X,z,a))}}}};
$gm=function(e){e=bYL(e);var z=e[0].$$binaryReaderFn;if(e=e[1]){var C=qCL(e),w=bl(Jt1,XL7,kyh,e).messageMetadata;return function(K,G,X){return z(K,G,X,w,C)}}return z};
Mgs=function(e,z,C){e[z]=C.$$binaryWriterFn};
HYg=function(e,z,C,w){var K,G,X=C.$$binaryWriterFn;e[z]=function(J,q,T){return X(J,q,T,G||(G=bl(rth,Mgs,HYg,w).messageMetadata),K||(K=UgN(w)))}};
UgN=function(e){var z=e[vaN];if(!z){var C=bl(rth,Mgs,HYg,e);z=function(w,K){return IyE(w,K,C)};
e[vaN]=z}return z};
IyE=function(e,z,C){eCh(e,e[_.GX]|0,function(w,K){if(K!=null){var G=W2E(C,w);G?G(z,K,w):w<500||gNL(Plg,3)}});
(e=eWE(e))&&bv1(e,function(w,K,G){ka(z,z.encoder_.end());for(w=0;w<G.length;w++)ka(z,tEg(G[w])||new Uint8Array(0))})};
W2E=function(e,z){var C=e[z];if(C)return C;if(C=e.extensions)if(C=C[z]){C=bYL(C);var w=C[0].$$binaryWriterFn;if(C=C[1]){var K=UgN(C),G=bl(rth,Mgs,HYg,C).messageMetadata;C=e.isMessageSet?K2h(G,K):function(X,J,q){return w(X,J,q,G,K)}}else C=w;
return e[z]=C}};
_.Rjh=function(e,z,C){if(Array.isArray(z)){var w=z[_.GX]|0;if(w&4)return z;for(var K=0,G=0;K<z.length;K++){var X=e(z[K]);X!=null&&(z[G++]=X)}G<K&&(z.length=G);e=w|1;C&&(e=(e|4)&-1537);e!==w&&Xs(z,e);C&&e&2&&Object.freeze(z);return z}};
_.qg=function(e,z,C){return new Ya(e,z,C)};
_.L2s=function(e,z,C){return new Ya(e,z,C)};
_.xa=function(e,z,C){Bl(e,e[_.GX]|0,z,C,Va(e[_.GX]|0))};
hjo=function(e,z,C){z=_.pg(z);z!=null&&(_.Ty(e,C,1),e=e.encoder_,C=J4L||(J4L=new DataView(new ArrayBuffer(8))),C.setFloat64(0,+z,!0),uo=C.getUint32(0,!0),d6=C.getUint32(4,!0),_.ll(e,uo),_.ll(e,d6))};
OY1=function(e,z,C){z=_.pg(z);z!=null&&(_.Ty(e,C,5),e=e.encoder_,kX1(z),_.ll(e,uo))};
_.m2=function(e,z,C){z=dYs(z);if(z!=null&&(yC4(z),z!=null))switch(_.Ty(e,C,0),typeof z){case "number":e=e.encoder_;DT(z);QL(e,uo,d6);break;case "bigint":C=BigInt.asUintN(64,z);C=new Eao(Number(C&BigInt(4294967295)),Number(C>>BigInt(32)));QL(e.encoder_,C.JSC$9032_lo,C.JSC$9032_hi);break;default:C=jbN(z),QL(e.encoder_,C.JSC$9032_lo,C.JSC$9032_hi)}};
Vg5=function(e,z,C){z=DYL(z);if(z!=null&&(ACh(z),z!=null))switch(_.Ty(e,C,0),typeof z){case "number":e=e.encoder_;DT(z);QL(e,uo,d6);break;case "bigint":C=F21(z);QL(e.encoder_,C.JSC$9030_lo,C.JSC$9030_hi);break;default:C=cC7(z),QL(e.encoder_,C.JSC$9030_lo,C.JSC$9030_hi)}};
SCh=function(e,z,C){z=_.JC(z);z!=null&&z!=null&&(_.Ty(e,C,0),_.fyh(e.encoder_,z))};
_.dgE=function(e,z,C){u21(e,C,DYL(z))};
Dgm=function(e,z,C){z=_.nLk(z);z!=null&&(_.Ty(e,C,0),e.encoder_.JSC$9034_buffer_.push(z?1:0))};
Nw1=function(e,z,C){z=_.Hl(z);z!=null&&iY1(e,C,qEg(z))};
sTg=function(e,z,C,w,K){ejE(e,C,zj8(z,w),K)};
_.Bwm=function(e,z,C){z=z==null||typeof z=="string"||z instanceof Wa?z:void 0;z!=null&&iY1(e,C,gZL(z,!0).buffer)};
tg4=function(e,z,C){z=_.Hg1(z);z!=null&&z!=null&&(_.Ty(e,C,0),aT(e.encoder_,z))};
_.gaN=function(e,z,C){z=_.JC(z);z!=null&&(z=parseInt(z,10),_.Ty(e,C,0),_.fyh(e.encoder_,z))};
jT7=function(e,z,C){if(e.nextWireType_!==0)return!1;_.xa(z,C,_.nY(e.decoder_,T68));return!0};
_.yt4=function(e,z,C,w){if(e.nextWireType_!==0)return!1;_.Mg(z,C,w,_.nY(e.decoder_,T68));return!0};
ct1=function(e,z,C){if(e.nextWireType_!==0)return!1;_.xa(z,C,_.nY(e.decoder_,xYg));return!0};
_.ZYm=function(e,z,C){if(e.nextWireType_!==1)return!1;_.xa(z,C,Ats(e.decoder_));return!0};
_.UC=function(e,z){return function(C,w){var K={treatNewDataAsImmutable:!0};w&&Object.assign(K,w);C=na1(C,void 0,void 0,K);try{var G=new e,X=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;qCL(z)(X,C);var J=G}finally{C.free()}return J}};
_.vL=function(e){return function(z){return pL1(z,e)}};
eX1=function(e){return function(){return pL1(this,e)}};
_.zX4=function(e){return fg(function(z){return z instanceof e&&!va(z)})};
_.IT=function(e){return function(z){return CCs(e,z)}};
G6N=function(e,z){return wZm({child:e,origin:z||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Kgg,getPayloadCase:function(C){return C.getPayloadCase()},
createInitMessage:function(C){var w=new WL,K=new oog;C=_.PL(K,1,C);return _.RT(w,5,LY,C)}})};
ht=function(e){return{valueOf:e}.valueOf()};
bqh=function(){var e=null;if(!Y_L)return e;try{var z=function(C){return C};
e=Y_L.createPolicy("goog#html",{createHTML:z,createScript:z,createScriptURL:z})}catch(C){}return e};
Jn7=function(){XZg===void 0&&(XZg=bqh());return XZg};
_.EC=function(e){var z=Jn7();e=z?z.createScriptURL(e):e;return new OC(e)};
_.F2=function(e){if(e instanceof OC)return e.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.VL=function(e){return Object.isFrozen(e)&&Object.isFrozen(e.raw)};
k6E=function(e){return e.toString().indexOf("`")===-1};
ul=function(e){return new _.Sg(q_N,e)};
dw=function(e){return e instanceof _.Sg};
_.Dy=function(e){if(dw(e))return e.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
il=function(e){return new x1h(function(z){return z.substr(0,e.length+1).toLowerCase()===e+":"})};
_.Ng=function(e,z){z=z===void 0?T51:z;if(dw(e))return e;for(var C=0;C<z.length;++C){var w=z[C];if(w instanceof x1h&&w.isValid(e))return ul(e)}};
_.gw=function(e,z){z=z===void 0?T51:z;return _.Ng(e,z)||sC};
_.jg=function(e){var z=window;if(typeof MediaSource!=="undefined"&&e instanceof MediaSource||typeof z.ManagedMediaSource!=="undefined"&&e instanceof z.ManagedMediaSource)return ul(URL.createObjectURL(e));z=e.type;z.toLowerCase()==="application/octet-stream"?z=!0:(z=z.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),z=(z==null?void 0:z.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(z[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(z[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(z[1])||/^font\/[\w-]+$/i.test(z[1])));if(!z)throw Error("Z");return ul(URL.createObjectURL(e))};
_.$1m=function(e){for(var z=_.yL.apply(1,arguments),C=[e[0]],w=0;w<z.length;w++)C.push(String(z[w])),C.push(e[w+1]);return ul(C.join(""))};
_.Qvk=function(e){if(!lGE){a:{var z=document.createElement("a");try{z.href=e}catch(C){e=void 0;break a}e=z.protocol;e=e===":"||e===""?"https:":e}return e}try{z=new URL(e)}catch(C){return"https:"}return z.protocol};
_.cL=function(e){e instanceof _.Sg?e=_.Dy(e):e=m1h.test(e)?e:void 0;return e};
At=function(e,z){z=_.cL(z);z!==void 0&&(e.href=z)};
ec=function(e){var z=Jn7();e=z?z.createHTML(e):e;return new Zy(e)};
z6=function(e){if(e instanceof Zy)return e.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Cq=function(e,z){e.src=_.F2(z).toString()};
aG8=function(e,z){e.setAttribute("sandbox","");for(var C=0;C<z.length;C++)e.sandbox.supports&&!e.sandbox.supports(z[C])||e.sandbox.add(z[C])};
_.w5=function(e,z,C){e.removeAttribute("srcdoc");switch(z){case 0:if(C instanceof OC)throw new noL("TrustedResourceUrl",0);aG8(e,[]);z=_.cL(C);z!==void 0&&(e.src=z);break;case 1:if(!(C instanceof OC))throw new noL(typeof C,1);aG8(e,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Cq(e,C);break;case 2:if(C instanceof OC)throw new noL("TrustedResourceUrl",2);aG8(e,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
z=_.cL(C);z!==void 0&&(e.src=z);break;default:_.ca(z)}};
_.Kq=function(e,z,C,w){z=_.cL(z);return z!==void 0?e.open(z,C,w):null};
_.ov=function(e){e=e===void 0?document:e;var z,C;e=(C=(z=e).querySelector)==null?void 0:C.call(z,"script[nonce]");return e==null?"":e.nonce||e.getAttribute("nonce")||""};
_.Yo=function(e){var z=Jn7();e=z?z.createScript(e):e;return new _.G6(e)};
bC=function(e){if(e instanceof _.G6)return e.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
Mcm=function(e){var z=_.ov(e.ownerDocument);z&&e.setAttribute("nonce",z)};
_.Xg=function(e,z){e.textContent=bC(z);Mcm(e)};
_.Jn=function(e,z){e.src=_.F2(z);Mcm(e)};
_.ko=function(e,z){if(e.nodeType===1&&/^(script|style)$/i.test(e.tagName))throw Error("Z");e.innerHTML=z6(z)};
_.xo=function(e,z,C,w){if(e.length===0)throw Error("Z");e=e.map(function(G){if(G instanceof rnE)G=G.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return G});
var K=C.toLowerCase();if(e.every(function(G){return K.indexOf(G)!==0}))throw Error("aa`"+C);
z.setAttribute(C,w)};
_.T6=function(e,z,C){if(z instanceof OC)e.href=_.F2(z).toString(),e.rel=C;else{if(Hq4.indexOf(C)===-1)throw Error("ba`"+C);z=_.cL(z);z!==void 0&&(e.href=z,e.rel=C)}};
U15=function(e){if(e instanceof $o)return e.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.vo1=function(e,z){z=_.cL(z);z!==void 0&&(e.href=z)};
IGE=function(e){return new Worker(_.F2(e),void 0)};
WgN=function(e){return _.EC(e)};
PCN=function(e,z){e&&(z=e.indexOf(z),0<=z&&e.splice(z,1))};
lC=function(e){return typeof e==="function"};
RXL=function(e){return e instanceof Qp||e&&"closed"in e&&lC(e.remove)&&lC(e.add)&&lC(e.unsubscribe)};
mg=function(){};
av=function(e){LgE(function(){throw e;})};
nq=function(e){return e};
M1=function(){return hXE(_.yL.apply(0,arguments))};
hXE=function(e){return e.length===0?nq:e.length===1?e[0]:function(z){return e.reduce(function(C,w){return w(C)},z)}};
Oqg=function(e){var z;return(z=e!=null?e:void 0)!=null?z:Promise};
Eo5=function(e,z){return new r5(function(C){var w=0;return z.schedule(function(){w===e.length?C.complete():(C.next(e[w++]),C.closed||this.schedule())})})};
Fgg=function(e,z){if(!e)throw Error("ca");return new r5(function(C){var w=new Qp;w.add(z.schedule(function(){var K=e[Symbol.asyncIterator]();w.add(z.schedule(function(){var G=this;K.next().then(function(X){X.done?C.complete():(C.next(X.value),G.schedule())})}))}));
return w})};
Vc8=function(e,z,C){z=z.schedule(function(){try{C.call(this)}catch(w){e.error(w)}},0);
e.add(z)};
S_1=function(e,z){return new r5(function(C){var w;C.add(z.schedule(function(){w=e[fG7]();Vc8(C,z,function(){var K=w.next(),G=K.value;K.done?C.complete():(C.next(G),this.schedule())})}));
return function(){var K;return lC((K=w)==null?void 0:K.return)&&w.return()}})};
ugs=function(e,z){return new r5(function(C){var w=new Qp;w.add(z.schedule(function(){var K=e[HZ]();w.add(K.subscribe({next:function(G){w.add(z.schedule(function(){return C.next(G)}))},
error:function(G){w.add(z.schedule(function(){return C.error(G)}))},
complete:function(){w.add(z.schedule(function(){return C.complete()}))}}))}));
return w})};
d1N=function(e,z){return new r5(function(C){return z.schedule(function(){return e.then(function(w){C.add(z.schedule(function(){C.next(w);C.add(z.schedule(function(){return C.complete()}))}))},function(w){C.add(z.schedule(function(){return C.error(w)}))})})})};
D1o=function(e){return new TypeError("da`"+(e!==null&&typeof e==="object"?"an invalid object":"'"+e+"'"))};
N5m=function(e,z){if(e!=null){if(lC(e[HZ]))return ugs(e,z);if(iqo(e))return Eo5(e,z);if(lC(e==null?void 0:e.then))return d1N(e,z);if(Symbol.asyncIterator&&lC(e==null?void 0:e[Symbol.asyncIterator]))return Fgg(e,z);if(lC(e==null?void 0:e[fG7]))return S_1(e,z)}throw D1o(e);};
vZ=function(e,z){return z?N5m(e,z):U_(e)};
U_=function(e){if(e instanceof r5)return e;if(e!=null){if(lC(e[HZ]))return svN(e);if(iqo(e))return B57(e);if(lC(e==null?void 0:e.then))return tck(e);if(Symbol.asyncIterator&&lC(e==null?void 0:e[Symbol.asyncIterator]))return go4(e);if(lC(e==null?void 0:e[fG7]))return jvs(e)}throw D1o(e);};
svN=function(e){return new r5(function(z){var C=e[HZ]();if(lC(C.subscribe))return C.subscribe(z);throw new TypeError("ea");})};
B57=function(e){return new r5(function(z){for(var C=0;C<e.length&&!z.closed;C++)z.next(e[C]);z.complete()})};
tck=function(e){return new r5(function(z){e.then(function(C){z.closed||(z.next(C),z.complete())},function(C){return z.error(C)}).then(null,av)})};
jvs=function(e){return new r5(function(z){for(var C=e[fG7]();!z.closed;){var w=C.next(),K=w.value;w.done?z.complete():z.next(K)}return function(){return lC(C==null?void 0:C.return)&&C.return()}})};
go4=function(e){return new r5(function(z){ynL(e,z).catch(function(C){return z.error(C)})})};
ynL=function(e,z){var C,w,K,G,X,J;return _.k(function(q){switch(q.nextAddress){case 1:_.Iv(q,2,3),G=_.WZ(e);case 5:return q.yield(G.next(),8);case 8:w=q.yieldResult;if(w.done){q.jumpTo(3);break}X=w.value;z.next(X);q.jumpTo(5);break;case 3:_.PZ(q);_.Rv(q,9);if(!w||w.done||!(K=G.return)){q.jumpTo(9);break}return q.yield(K.call(G),9);case 9:_.PZ(q,0,0,1);if(C)throw C.error;_.hn(q,10,1);break;case 10:_.hn(q,4);break;case 2:J=_.O_(q);C={error:J};q.jumpTo(3);break;case 4:z.complete(),_.E_(q)}})};
cnN=function(e,z){return z?Eo5(e,z):B57(e)};
An1=function(e){return lC(e[e.length-1])?e.pop():void 0};
Vp=function(e){var z=e[e.length-1];return z&&lC(z.schedule)?e.pop():void 0};
fq=function(){var e=_.yL.apply(0,arguments),z=Vp(e);return z?Eo5(e,z):cnN(e)};
Sc=function(e){var z=lC(e)?e:function(){return e};
return new r5(function(C){return C.error(z())})};
uC=function(e){return function(z){if(lC(z==null?void 0:z.lift))return z.lift(function(C){try{return e(C,this)}catch(w){this.error(w)}});
throw new TypeError("fa");}};
iC=function(){return uC(function(e,z){var C=null;e._refCount++;var w=new DG(z,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)C=null;else{var K=e._connection,G=C;C=null;!K||G&&K!==G||K.unsubscribe();z.unsubscribe()}});
e.subscribe(w);w.closed||(C=e.connect())})};
pZE=function(){var e=Zq7;var z=z===void 0?0:z;return uC(function(C,w){w.add(e.schedule(function(){return C.subscribe(w)},z))})};
N1=function(e){return uC(function(z,C){var w=0;z.subscribe(new DG(C,function(K){C.next(e.call(void 0,K,w++))}))})};
zno=function(e){return N1(function(z){return enk(z)?e.apply(null,_.s_(z)):e(z)})};
Gm1=function(e){if(e.length===1){var z=e[0];if(C4E(z))return{args:z,keys:null};if(z&&typeof z==="object"&&wV1(z)===KI8)return e=oy4(z),{args:e.map(function(C){return z[C]}),
keys:e}}return{args:e,keys:null}};
BZ=function(){var e=_.yL.apply(0,arguments),z=Vp(e),C=An1(e);e=Gm1(e);var w=e.args,K=e.keys;if(w.length===0)return vZ([],z);z=new r5(YtL(w,z,K?function(G){for(var X={},J=0;J<G.length;J++)X[K[J]]=G[J];return X}:nq));
return C?z.pipe(zno(C)):z};
YtL=function(e,z,C){C=C===void 0?nq:C;return function(w){bJ1(z,function(){for(var K=e.length,G=Array(K),X=K,J=e.map(function(){return!1}),q=!0,T={i$jscomp$218:0};T.i$jscomp$218<K;T={i$jscomp$218:T.i$jscomp$218},T.i$jscomp$218++)bJ1(z,function(Q){return function(){vZ(e[Q.i$jscomp$218],z).subscribe(new tn(w,function(m){G[Q.i$jscomp$218]=m;
q&&(J[Q.i$jscomp$218]=!0,q=!J.every(nq));q||w.next(C(G.slice()))},function(){return--X===0}))}}(T),w)},w)}};
bJ1=function(e,z,C){e?C.add(e.schedule(z)):z()};
XV8=function(e,z,C,w){var K=[],G=0,X=0,J=!1,q=function(T){G++;U_(C(T,X++)).subscribe(new DG(z,function(Q){z.next(Q)},void 0,function(){G--;
for(var Q={};K.length&&G<w;Q={bufferedValue:void 0})Q.bufferedValue=K.shift(),q(Q.bufferedValue);!J||K.length||G||z.complete()}))};
e.subscribe(new DG(z,function(T){return G<w?q(T):K.push(T)},void 0,function(){J=!0;
!J||K.length||G||z.complete()}));
return function(){K=null}};
jc=function(e,z){var C=C===void 0?Infinity:C;if(lC(z))return jc(function(w,K){return N1(function(G,X){return z(w,G,K,X)})(U_(e(w,K)))},C);
typeof z==="number"&&(C=z);return uC(function(w,K){return XV8(w,K,e,C)})};
J0m=function(e){e=e===void 0?Infinity:e;return jc(nq,e)};
km1=function(){var e=_.yL.apply(0,arguments);return J0m(1)(cnN(e,Vp(e)))};
qtg=function(e){return new r5(function(z){U_(e()).subscribe(z)})};
yp=function(e,z,C){if(lC(C)){var w=C;C=void 0}if(w)return yp(e,z,C).pipe(zno(w));w=_.b(lC(e.addEventListener)&&lC(e.removeEventListener)?xXm.map(function(X){return function(J){return e[X](z,J,C)}}):lC(e.addListener)&&lC(e.removeListener)?Teg.map($X8(e,z)):lC(e.on)&&lC(e.off)?l04.map($X8(e,z)):[]);
var K=w.next().value,G=w.next().value;return!K&&iqo(e)?jc(function(X){return yp(X,z,C)})(cnN(e)):new r5(function(X){if(!K)throw new TypeError("ga");
var J=function(){var q=_.yL.apply(0,arguments);return X.next(1<q.length?q:q[0])};
K(J);return function(){return G(J)}})};
$X8=function(e,z){return function(C){return function(w){return e[C](z,w)}}};
An=function(){var e=_.yL.apply(0,arguments),z=Vp(e);var C=typeof e[e.length-1]==="number"?e.pop():Infinity;return e.length?e.length===1?U_(e[0]):J0m(C)(cnN(e,z)):cZ};
mXg=function(e){return e.length===1&&QMh(e[0])?e[0]:e};
a0E=function(){var e=mXg(_.yL.apply(0,arguments));return uC(function(z,C){var w=[z].concat(_.s_(e)),K=function(){if(!C.closed)if(w.length>0){try{var G=U_(w.shift())}catch(J){K();return}var X=new DG(C,void 0,mg,mg);C.add(G.subscribe(X));X.add(K)}else C.complete()};
K()})};
ZG=function(e){return uC(function(z,C){var w=0;z.subscribe(new DG(C,function(K){return e.call(void 0,K,w++)&&C.next(K)}))})};
M8E=function(){var e=_.yL.apply(0,arguments);e=mXg(e);return e.length===1?U_(e[0]):new r5(nyE(e))};
nyE=function(e){return function(z){for(var C=[],w={i$jscomp$221:0};C&&!z.closed&&w.i$jscomp$221<e.length;w={i$jscomp$221:w.i$jscomp$221},w.i$jscomp$221++)C.push(U_(e[w.i$jscomp$221]).subscribe(new DG(z,function(K){return function(G){if(C){for(var X=0;X<C.length;X++)X!==K.i$jscomp$221&&C[X].unsubscribe();C=null}z.next(G)}}(w))))}};
r0N=function(){var e=_.yL.apply(0,arguments),z=An1(e),C=mXg(e);return C.length?new r5(function(w){var K=C.map(function(){return[]}),G=C.map(function(){return!1});
w.add(function(){K=G=null});
for(var X={sourceIndex$jscomp$1:0};!w.closed&&X.sourceIndex$jscomp$1<C.length;X={sourceIndex$jscomp$1:X.sourceIndex$jscomp$1},X.sourceIndex$jscomp$1++)U_(C[X.sourceIndex$jscomp$1]).subscribe(new DG(w,function(J){return function(q){K[J.sourceIndex$jscomp$1].push(q);K.every(function(T){return T.length})&&(q=K.map(function(T){return T.shift()}),w.next(z?z.apply(null,_.s_(q)):q),K.some(function(T,Q){return!T.length&&G[Q]})&&w.complete())}}(X),void 0,function(J){return function(){G[J.sourceIndex$jscomp$1]=
!0;
!K[J.sourceIndex$jscomp$1].length&&w.complete()}}(X)));
return function(){K=G=null}}):cZ};
HJ1=function(e){var z,C,w;return!!e&&typeof e.active==="boolean"&&typeof((z=e.clock)==null?void 0:z.now)==="function"&&((C=e.clock)==null?void 0:C.timeline)!==void 0&&!((w=e.lastMeasurement)==null||!w.timestamp)&&typeof e.equivalentTo==="function"&&typeof e.extrapolateToNow==="function"&&typeof e.extrapolateToTime==="function"&&typeof e.map==="function"&&typeof e.joinWith==="function"};
UX1=function(e){function z(C){return typeof C==="boolean"||typeof C==="string"||typeof C==="number"||C===void 0||C===null}
return z(e)?!0:Array.isArray(e)?e.every(z):typeof e==="object"?Object.keys(e).every(function(C){return typeof C==="string"})&&Object.values(e).every(function(C){return Array.isArray(C)?C.every(z):z(C)}):!1};
vys=function(e){if(UX1(e))return e;if(HJ1(e))return{lastMeasurement:{value:vys(e.lastMeasurement.value),timestamp:pq(e.lastMeasurement.timestamp,new e8(0,e.lastMeasurement.timestamp.timeline))},active:e.active};try{return JSON.parse(JSON.stringify(e))}catch(z){}return String(e)};
zm=function(e,z){return function(C){return new r5(function(w){return C.subscribe(function(K){e.timeExecution(z,function(){w.next(K)})()},function(K){e.timeExecution(z,function(){w.error(K)})()},function(){e.timeExecution(z,function(){w.complete()})()})})}};
I0h=function(e,z){var C=!1;return new r5(function(w){var K=e.setTimeout(function(){C=!0;w.next(!0);w.complete()},z);
return function(){C||e.clearTimeout(K)}})};
WIs=function(e){e=e.global;if(e.fetchLater)return e.fetchLater.bind(e)};
CJ=function(e){return uC(function(z,C){var w=null,K=!1,G;w=z.subscribe(new DG(C,void 0,function(X){G=U_(e(X,CJ(e)(z)));w?(w.unsubscribe(),w=null,G.subscribe(C)):K=!0}));
K&&(w.unsubscribe(),w=null,G.subscribe(C))})};
P4s=function(e,z,C){return function(w,K){var G=C,X=z,J=0;w.subscribe(new DG(K,function(q){var T=J++;X=G?e(X,q,T):(G=!0,q);K.next(X)},void 0,void 0))}};
Rnk=function(e){e=e===void 0?null:e;return uC(function(z,C){var w=!1;z.subscribe(new DG(C,function(K){w=!0;C.next(K)},void 0,function(){w||C.next(e);
C.complete()}))})};
we=function(){return uC(function(e,z){e.subscribe(new DG(z,mg))})};
KJ=function(e){return uC(function(z,C){z.subscribe(new DG(C,function(){return C.next(e)}))})};
oM=function(e){return e<=0?function(){return cZ}:uC(function(z,C){var w=0;
z.subscribe(new DG(C,function(K){++w<=e&&(C.next(K),e<=w&&C.complete())}))})};
Gm=function(e){var z=z===void 0?nq:z;var C;e=(C=e)!=null?C:LIm;return uC(function(w,K){var G,X=!0;w.subscribe(new DG(K,function(J){var q=z(J);if(X||!e(G,q))X=!1,G=q,K.next(J)}))})};
LIm=function(e,z){return e===z};
OJN=function(e){e=e===void 0?hnh:e;return uC(function(z,C){var w=!1;z.subscribe(new DG(C,function(K){w=!0;C.next(K)},void 0,function(){return w?C.complete():C.error(e())}))})};
hnh=function(){return new EyN};
Yy=function(){var e=_.yL.apply(0,arguments);return function(z){return km1(z,fq.apply(null,_.s_(e)))}};
FI8=function(e){return uC(function(z,C){var w=0;z.subscribe(new DG(C,function(K){e.call(void 0,K,w++,z)||(C.next(!1),C.complete())},void 0,function(){C.next(!0);
C.complete()}))})};
V87=function(){return uC(function(e,z){var C=[];e.subscribe(new DG(z,function(w){C.push(w);1<C.length&&C.shift()},void 0,function(){for(var w=_.b(C),K=w.next();!K.done;K=w.next())z.next(K.value);
z.complete()},function(){C=null}))})};
f0s=function(e,z){var C=arguments.length>=2;return function(w){return w.pipe(e?ZG(function(K,G){return e(K,G,w)}):nq,V87(),C?Rnk(z):OJN(function(){return new EyN}))}};
XK=function(e){var z=lC(e)?e:function(){return e};
return lC()?uC(function(C,w){var K=z();(void 0)(K).subscribe(w).add(C.subscribe(K))}):function(C){var w=new b4(C,z);
lC(C==null?void 0:C.lift)&&(w.lift=C.lift);w.source=C;w.subjectFactory=z;return w}};
ky=function(e){var z=new J0(e,void 0,void 0);return function(C){return XK(function(){return z})(C)}};
qX=function(e,z){return uC(P4s(e,z,arguments.length>=2))};
xy=function(){var e=_.yL.apply(0,arguments),z=Vp(e);return uC(function(C,w){(z?km1(e,C,z):km1(e,C)).subscribe(w)})};
$y=function(e){return uC(function(z,C){var w=null,K=0,G=!1;z.subscribe(new DG(C,function(X){var J;(J=w)==null||J.unsubscribe();J=K++;U_(e(X,J)).subscribe(w=new DG(C,function(q){return C.next(q)},void 0,function(){w=null;
G&&!w&&C.complete()}))},void 0,function(){(G=!0,!w)&&C.complete()}))})};
l4=function(e,z){z=z===void 0?!1:z;return uC(function(C,w){var K=0;C.subscribe(new DG(w,function(G){var X=e(G,K++);(X||z)&&w.next(G);!X&&w.complete()}))})};
Sts=function(e,z,C){var w=lC(e)||z||C?{next:e,error:z,complete:C}:e;return w?uC(function(K,G){K.subscribe(new DG(G,function(X){var J;(J=w.next)==null||J.call(w,X);G.next(X)},function(X){var J;
(J=w.error)==null||J.call(w,X);G.error(X)},function(){var X;
(X=w.complete)==null||X.call(w);G.complete()}))}):nq};
uKk=function(){var e=_.yL.apply(0,arguments),z=An1(e);return uC(function(C,w){for(var K=e.length,G=Array(K),X=e.map(function(){return!1}),J=!1,q={i$jscomp$231:0};q.i$jscomp$231<K;q={i$jscomp$231:q.i$jscomp$231},q.i$jscomp$231++)U_(e[q.i$jscomp$231]).subscribe(new DG(w,function(T){return function(Q){G[T.i$jscomp$231]=Q;
J||X[T.i$jscomp$231]||(X[T.i$jscomp$231]=!0,(J=X.every(nq))&&(X=null))}}(q),void 0,mg));
C.subscribe(new DG(w,function(T){J&&(T=[T].concat(_.s_(G)),w.next(z?z.apply(null,_.s_(T)):T))}))})};
DXN=function(e){var z=dXs;if(z)for(var C in z)Object.prototype.hasOwnProperty.call(z,C)&&e(z[C],C,z)};
iJm=function(){var e=[];DXN(function(z){e.push(z)});
return e};
sMN=function(e){try{return!!e&&e.location.href!=null&&NeN(e,"foo")}catch(z){return!1}};
_.Qb=function(e){return new rnE(e[0].toLowerCase())};
Be7=function(e){for(var z=_.yL.apply(1,arguments),C=e[0],w=0;w<e.length-1;w++)C+=String(z[w]),C+=e[w+1];z=document.implementation.createHTMLDocument("");w=z.createElement("style");z.head.appendChild(w);z=w.sheet;z.insertRule(C,0);if(z.cssRules.length===1&&(C=z.cssRules[0],C instanceof CSSStyleRule))return new $o(C.cssText.replace(/</g,"\\3C "))};
t84=function(e){try{return new URL(e,window.document.baseURI)}catch(z){return new URL("about:invalid")}};
gy8=function(e,z){var C=z.createRange();C.selectNode(z.body);e=ec(e);return C.createContextualFragment(z6(e))};
jM4=function(e){e=e.nodeName;return typeof e==="string"?e:"FORM"};
y04=function(e){e=e.nodeType;return e===1||typeof e!=="number"};
mI=function(e,z,C){e.setAttribute(z,C)};
c0g=function(e){return e.parts.map(function(z){var C=z.descriptor;return""+z.url+(C?" "+C:"")}).join(" , ")};
_.nJ=function(e){var z=_.yL.apply(1,arguments);if(z.length===0)return _.EC(e[0]);for(var C=e[0],w=0;w<z.length;w++)C+=encodeURIComponent(z[w])+e[w+1];return _.EC(C)};
_.MX=function(e,z){e=_.F2(e).toString();var C=e.split(/[?#]/),w=/[?]/.test(e)?"?"+C[1]:"";return A01(C[0],w,/[#]/.test(e)?"#"+(w?C[2]:C[1]):"",z)};
A01=function(e,z,C,w){function K(X,J){X!=null&&(Array.isArray(X)?X.forEach(function(q){return K(q,J)}):(z+=G+encodeURIComponent(J)+"="+encodeURIComponent(X),G="&"))}
var G=z.length?"&":"?";w.constructor===Object&&(w=Object.entries(w));Array.isArray(w)?w.forEach(function(X){return K(X[1],X[0])}):w.forEach(K);
return _.EC(e+z+C)};
pVs=function(){var e=bC(ZJ5).toString();return _.EC(URL.createObjectURL(new Blob([e],{type:"text/javascript"})))};
evo=function(e){var z=[],C=0,w;for(w in e)z[C++]=w;return z};
zvN=function(e,z){for(var C in e)if(e[C]==z)return!0;return!1};
CZ4=function(e,z,C){for(var w in e)if(z.call(C,e[w],w,e))return w};
woL=function(e){if(!e||typeof e!=="object")return e;if(typeof e.clone==="function")return e.clone();if(typeof Map!=="undefined"&&e instanceof Map)return new Map(e);if(typeof Set!=="undefined"&&e instanceof Set)return new Set(e);if(e instanceof Date)return new Date(e.getTime());var z=Array.isArray(e)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(e)||e instanceof DataView?{}:new e.constructor(e.length),C;for(C in e)z[C]=woL(e[C]);return z};
KaN=function(e){var z=arguments.length;if(z==1&&Array.isArray(arguments[0]))return KaN.apply(null,arguments[0]);if(z%2)throw Error("ma");for(var C={},w=0;w<z;w+=2)C[arguments[w]]=arguments[w+1];return C};
o21=function(e){var z=arguments.length;if(z==1&&Array.isArray(arguments[0]))return o21.apply(null,arguments[0]);for(var C={},w=0;w<z;w++)C[arguments[w]]=!0;return C};
re=function(e,z,C,w){this.top=e;this.right=z;this.bottom=C;this.left=w};
G54=function(e){e=e.global;if(e.PendingGetBeacon)return e.PendingGetBeacon};
Ut=function(e){return function(z){return z.pipe(Yvo(e,XK(new HV)))}};
vV=function(e){return function(z){return z.pipe(Yvo(e,ky(1)))}};
Yvo=function(e,z){function C(w){return new r5(function(K){return w.subscribe(function(G){IM(e,function(){return void K.next(G)},3)},function(G){IM(e,function(){return void K.error(G)},3)},function(){IM(e,function(){return void K.complete()},3)})})}
return M1(C,pZE(),z,iC(),C)};
JAE=function(e){var z=bh8(e);return z===null?new WV(null):z.pipe(N1(function(C){C=C.serialize();if(Xog)C=_.wL.btoa(C);else{for(var w=[],K=0,G=0;G<C.length;G++){var X=C.charCodeAt(G);X>255&&(w[K++]=X&255,X>>=8);w[K++]=X}C=_.FY(w)}return C}),oM(1),vV(e.queue))};
k51=function(e){var z=z===void 0?{}:z;if(typeof Event==="function")return new Event(e,z);if(typeof document!=="undefined"){var C=document.createEvent("CustomEvent");C.initCustomEvent(e,z.bubbles||!1,z.cancelable||!1,z.detail);return C}throw Error();};
qvm=function(e){return typeof e==="string"?document.getElementById(e):e};
T9E=function(e){var z=!1;z=z===void 0?!1:z;if(e.tagName==="IMG"){if(e.complete&&(!e.naturalWidth||!e.naturalHeight))return!0;var C;if(z&&((C=e.style)==null?void 0:C.display)==="none")return!0}var w,K;return xG1.test((w=e.getAttribute("width"))!=null?w:"")&&xG1.test((K=e.getAttribute("height"))!=null?K:"")};
$G8=function(e,z){if(e.tagName==="IMG")return e.naturalWidth&&e.naturalHeight?!0:!1;try{if(e.readyState)var C=e.readyState;else{var w,K;C=(w=e.contentWindow)==null?void 0:(K=w.document)==null?void 0:K.readyState}return C==="complete"}catch(G){return z===void 0?!1:z}};
lH4=function(e){e||(e=function(z,C,w){z.addEventListener(C,w)});
return e};
n2E=function(e,z){var C=Q4L();C=C===void 0?new mG1:C;if(e=qvm(e)){var w=lH4(w);for(var K=!1,G=function(L){K||(K=!0,z(L))},X,J=2,q=0;q<aHh.length;++q)if(aHh[q]===e.tagName){J=3;
X=[e];break}X||(X=e.querySelectorAll(aHh.join(",")));var T=0,Q=0,m=!0,a=e=!1;q={};for(var n=0;n<X.length;q={isImg:void 0},n++){var H=X[n];if(!T9E(H))if(q.isImg=H.tagName==="IMG",$G8(H,C.crossDomainLoadedDefault))e=!0,q.isImg&&(m=!0);else{T++;var I=function(L){return function(h){T--;!T&&m&&G(J);L.isImg&&(h=h&&h.type==="error",Q--,h||(m=!0),!Q&&a&&m&&G(J))}}(q);
w(H,"load",I);q.isImg&&(Q++,w(H,"error",I))}}Q===0&&(m=!0);X=null;X=_.wL.document.readyState==="complete";if(T===0&&!e&&X)J=5;else if(T||!e){w(_.wL,"load",function(){!C.pendingImagesBlockLoad||!Q&&m?G(4):a=!0});
return}G(J)}};
Mn4=function(e,z,C){if(e)for(var w=0;e!=null&&w<500&&!C(e);++w)e=z(e)};
rAg=function(e,z){Mn4(e,function(C){try{return C===C.parent?null:C.parent}catch(w){}return null},z)};
HhE=function(e,z){if(e.tagName=="IFRAME")z(e);else{e=e.querySelectorAll("IFRAME");for(var C=0;C<e.length&&!z(e[C]);++C);}};
UGm=function(e){return(e=e.ownerDocument)&&(e.parentWindow||e.defaultView)||null};
v2m=function(e,z,C){try{var w=JSON.parse(C.data)}catch(X){}if(typeof w==="object"&&w&&w.type==="creativeLoad"){var K=UGm(e);if(C.source&&K){var G;rAg(C.source,function(X){try{if(X.parent===K)return G=X,!0}catch(J){}});
G&&HhE(e,function(X){if(X.contentWindow===G)return z(w),!0})}}};
IHk=function(e){return typeof e==="string"?document.getElementById(e):e};
Lag=function(){var e={};return e[0]=_.nJ(WaE,"current"),e[1]=_.nJ(PZ4),e[2]=_.nJ(Rv1),e};
PV=function(e,z){return e.left===z.left&&e.top===z.top&&e.width===z.width&&e.height===z.height};
hvL=function(e,z){return{left:Math.max(e.left,z.left),top:Math.max(e.top,z.top),width:Math.max(0,Math.min(e.left+e.width,z.left+z.width)-Math.max(e.left,z.left)),height:Math.max(0,Math.min(e.top+e.height,z.top+z.height)-Math.max(e.top,z.top))}};
OhL=function(e,z){return{left:Math.round(e.left+z.x),top:Math.round(e.top+z.y),width:e.width,height:e.height}};
E2h=function(e,z,C){if(e&&z!==null&&z!=z.top){if(!z.top)return new _.RM(-12245933,-12245933);z=z.top}try{return(C===void 0?0:C)?(new _.RM(z.innerWidth,z.innerHeight)).round():_.LJ(z).round()}catch(w){return new _.RM(-12245933,-12245933)}};
Fas=function(e,z,C){try{if(e){if(!z.top)return new re(-12245933,-12245933,-12245933,-12245933);z=z.top}var w=E2h(e,z,C),K=w.height,G=w.width;if(G===-12245933)return new re(G,G,G,G);var X=h0(Ot(z.document)),J=X.x,q=X.y;return new re(q,J+G,q+K,J)}catch(T){return new re(-12245933,-12245933,-12245933,-12245933)}};
Vn5=function(e){var z;return(z=e.google_tag_data)!=null?z:e.google_tag_data={}};
fHg=function(e){var z,C;return typeof((z=e.navigator)==null?void 0:(C=z.userAgentData)==null?void 0:C.getHighEntropyValues)==="function"};
uU5=function(e){if(!fHg(e))return null;var z=Vn5(e);if(z.uach_promise)return z.uach_promise;e=e.navigator.userAgentData.getHighEntropyValues(Sv1).then(function(C){z.uach!=null||(z.uach=C);return C});
return z.uach_promise=e};
AA7=function(e){var z;return dGo(DG7(ihm(N9m(s4o(B9g(tnL(g21(j41(new yA8,e.architecture||""),e.bitness||""),e.mobile||!1),e.model||""),e.platform||""),e.platformVersion||""),e.uaFullVersion||""),((z=e.fullVersionList)==null?void 0:z.map(function(C){var w=new cAh;w=_.Et(w,1,C.brand);return _.Et(w,2,C.version)}))||[]),e.wow64||!1)};
Zho=function(e){var z,C;return(C=(z=uU5(e))==null?void 0:z.then(function(w){return AA7(w)}))!=null?C:null};
po5=function(e,z){return new r5(function(C){var w=!1,K=Array(z.length);K.fill(void 0);var G=new Set,X=new Set,J=function(m,a){e.running?(K[a]=m,G.add(a),w||(w=!0,IM(e,function(){w=!1;C.next(_.ig(K))},1))):C.error(new FK(a))},q=function(m,a){X.add(a);
G.add(a);IM(e,function(){C.error(m)},1)},T=function(m){X.add(m);
IM(e,function(){X.size===z.length&&C.complete()},1)},Q=z.map(function(m,a){return m.subscribe(function(n){return void J(n,a)},function(n){return void q(n,a)},function(){return void T(a)})});
return function(){Q.forEach(function(m){return void m.unsubscribe()})}})};
C0g=function(e,z,C){function w(){if(z.debugChannel){var L=z.debugChannel,h=L.next;var E={creativeId:z.debugNames.getName(C),requiredSignals:K,signals:Object.assign({},G),hasPrematurelyCompleted:X,errorMessage:J,erroredSignalKey:q};E={specMajor:2,specMinor:0,specPatch:0,timestamp:pq(z.timeProvider.now(),new e8(0,z.timeProvider.timeline)),instanceId:z.debugNames.getName(z.symbol),creativeState:E};h.call(L,E)}}
for(var K=Object.keys(e),G={},X=!1,J=null,q=null,T={},Q=new Set,m=[],a=[],n=_.b(K),H=n.next(),I={};!H.done;I={key$jscomp$394:void 0},H=n.next())I.key$jscomp$394=H.value,H=e[I.key$jscomp$394],H instanceof WV?(T[I.key$jscomp$394]=H.value,Q.add(I.key$jscomp$394),z.debugChannel&&(G[String(I.key$jscomp$394)]=vys(H.value))):(H=H.pipe(Gm(function(L,h){return HJ1(L)||HJ1(h)?!1:L===h}),N1(function(L){return function(h){z.debugChannel&&(G[String(L.key$jscomp$394)]=vys(h),w());
var E={};return E[L.key$jscomp$394]=h,E}}(I)),CJ(function(L){return function(h){if(h instanceof FK)throw new eo8(String(L.key$jscomp$394));
throw h;}}(I)),Sts(function(L){return function(){Q.add(L.key$jscomp$394)}}(I),function(L){return function(h){q=String(L.key$jscomp$394);
J=String(h);w()}}(I),function(L){return function(){Q.has(L.key$jscomp$394)||(X=!0,w())}}(I))),a.push(I.key$jscomp$394),m.push(H));
(e=Object.keys(G).length>0)&&w();n=po5(z.queue,m).pipe(CJ(function(L){if(L instanceof FK)throw new zoh(String(a[L.inputObservableIndex]));throw L;}),N1(function(L){return Object.freeze(Object.assign.apply(Object,[{},
T].concat(_.s_(L))))}));
return(m=m.length>0)&&e?An(fq(Object.freeze(T)),n):m?n:fq(Object.freeze(T))};
wCk=function(e,z,C,w,K){return e.performanceMonitor.timeExecution.bind(e.performanceMonitor)(733,function(){var G={};try{return z.pipe(CJ(function(X){w(Object.assign({},G,{error:X}));return cZ}),jc(function(X){try{var J=C(e,X)}catch(T){return w(Object.assign({},G,{error:T instanceof Error?T:String(T)})),cZ}var q={};
return C0g(J,e,X.symbol).pipe(Sts(function(T){q=T}),ky(1),iC()).pipe(K,CJ(function(T){w(Object.assign({},q,{error:T}));
return cZ}),Yy(void 0),N1(function(){return!0}))})).pipe(qX(function(X){return X+1},0),CJ(function(X){w(Object.assign({},G,{error:X}));
return cZ}))}catch(X){return w(Object.assign({},G,{error:X})),cZ}})()};
Vb=function(e){var z=new Map;if(typeof e!=="object"||e===null)return z;Object.values(e).forEach(function(C){C&&typeof C.extrapolateToNow==="function"&&(z.has(C.clock.timeline)||z.set(C.clock.timeline,C.clock.now()))});
return z};
Kpk=function(e,z){return typeof e==="string"?encodeURIComponent(e):typeof e==="number"?String(e):Array.isArray(e)?e.map(function(C){return Kpk(C,z)}).join(","):e instanceof e8?e.toString():e&&typeof e.extrapolateToNow==="function"?Kpk(e.extrapolateUsingTimestampMap(z).value,z):e===!0?"1":e===!1?"0":e===void 0||e===null?null:e instanceof oJh?Gt5(e):[e.top,
e.left,e.top+e.height,e.left+e.width].join()};
YH5=function(e,z){e=Object.entries(e).map(function(C){var w=_.b(C);C=w.next().value;w=w.next().value;w=Kpk(w,z);return w===null?"":C+"="+w}).filter(function(C){return C!==""});
return e.length?e.join("&"):""};
JGg=function(e,z){var C=bjL,w=XC7;z=z===void 0?.01:z;return function(K){z>0&&Math.random()<=z&&(e.global.HTMLFencedFrameElement&&e.global.fence&&typeof e.global.fence.reportEvent==="function"&&e.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),K=Object.assign({},K,{errorMessage:K.error instanceof Error&&K.error.message?K.error.message:String(K.error),errorStack:K.error instanceof Error&&K.error.stack?String(K.error.stack):null,errorName:K.error instanceof
Error&&K.error.name?String(K.error.name):null,errorContext:String(e.performanceMonitor.timedFunctionContext),errorEscapedQueryId:K.escapedQueryId}),C(Object.assign({},K,{payloadMapper:function(){return function(G){try{return w(Object.assign({},G))}catch(X){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Vb(K)).forEach(function(G){e.beaconFactory.makeBeacon(G).sendNow()}))}};
kth=function(){var e=_.yL.apply(0,arguments);return function(z){var C=z.pipe(ky(1),iC());z=e.map(function(w){return C.pipe(w,Yy(!0))});
return BZ(z).pipe(oM(1),we())}};
qH8=function(){var e=_.yL.apply(0,arguments);return function(z){var C=z.pipe(ky(1),iC());z=e.map(function(w){return C.pipe(w,Yy(!0))});
return An.apply(null,_.s_(z)).pipe(oM(1),we())}};
x6E=function(e,z){return function(C){var w=C.pipe(ky(1),iC());C=w.pipe(e,Yy(!0));w=w.pipe(M1(z,ky(),iC()),Yy(!0));C=BZ([C,w]);return M8E(C,w).pipe(oM(1),we())}};
Tpg=function(e,z,C){C(!0)};
$64=function(e,z){return M1($y(function(C){var w=e(C),K=z(C),G={};return w&&K&&G?new r5(function(X){K(w,G,function(J){X.next(Object.assign({},C,{canEmit:J}));X.complete()});
return function(){}}):fJ}),ZG(function(C){return C.canEmit}))};
lKL=function(e){var z={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(C){return C.pipe($y(function(w){return new r5(function(K){function G(){J.disconnect();q.unsubscribe()}
var X=e.MutationObserver;if(X&&w.ref!==void 0){var J=new X(function(T){K.next(T)});
J.observe(w.ref,z);var q=w.JSC$9529_released.subscribe(G);return G}})}))}};
QI7=function(e){if(e.measurementDeferralState===3)return null;if(e.timeOnScreenReason!==void 0){var z=e.creativeFound===!1?"n":null;if(z!==null)return z}return e.geometricMeasurementErrors instanceof S8?"msf":e.contextValidationErrors instanceof u4?"c":e.contextVisibilityKnown===!1?"pv":e.geometricMeasurementErrors||e.contextValidationErrors?"x":null};
aKh=function(e,z){return e.replace(m6E,function(C,w){try{var K=_.de.get(z,w);if(K==null||K.toString()==null)return C;K=K.toString();if(K==""||!_.bg(K==null?"":String(K)))return encodeURIComponent(K).replace(/%2C/g,",")}catch(G){}return C})};
nJk=function(e,z){var C=Object.assign({},e),w=e.userAgentClientHints;C=(delete C.userAgentClientHints,C);C=e.payloadMapper(C);var K=YH5(C,z);return _.i4(e.urlPrefixes,function(G){var X="";typeof w==="string"&&(X="&"+YH5({uach:w},z));var J={};return aKh(G,(J.VIEWABILITY=K,J))+X})};
bjL=function(e,z){var C=e.payloadMapper(e),w=YH5(C,z);return w?_.i4(e.urlPrefixes,function(K){K=K.indexOf("?")>=0?K:K+"?";K="?&".indexOf(K.slice(-1))>=0?K:K+"&";return K+w}):e.urlPrefixes};
MaE=function(){return M1(ZG(function(e){return e!==void 0}),N1(function(e){return e}))};
rGN=function(e){return M1(N1(function(){return!0}),xy(!1),vV(e))};
Hjk=function(e){return e.length<=0?cZ:BZ(e.map(function(z){var C=0;return z.pipe(N1(function(w){return{index:C++,value:w}}))})).pipe(ZG(function(z){return z.every(function(C){return C.index===z[0].index})}),N1(function(z){return z.map(function(C){return C.value})}))};
U6m=function(e,z){e.currentState&&(e.previousState=e.currentState);e.currentState=z;e.previousState&&e.previousState.value?(z=Math.max(0,pq(z.timestamp,e.previousState.timestamp)),e.totalTime+=z,e.consecutiveTime+=z):e.consecutiveTime=0;return e};
vJm=function(){return M1(qX(U6m,{totalTime:0,consecutiveTime:0}),N1(function(e){return e.totalTime}))};
IKN=function(){return M1(qX(U6m,{totalTime:0,consecutiveTime:0}),N1(function(e){return e.consecutiveTime}))};
Wpg=function(e,z){return function(C){return Hjk(z.map(function(w){return C.pipe(e(w))}))}};
P0o=function(){var e;return M1(Sts(function(z){return void(e=z.timestamp)}),IKN(),N1(function(z){return{timestamp:e,
value:Math.round(z)}}))};
Ro7=function(e,z){return PV(e.topWindowViewportExternalGeometry,z.topWindowViewportExternalGeometry)&&PV(e.elementGeometry,z.elementGeometry)&&PV(e.exposedViewportLocalGeometry,z.exposedViewportLocalGeometry)&&PV(e.intersectionGeometry,z.intersectionGeometry)&&e.elementGeometrySourceName===z.elementGeometrySourceName&&e.measurementRequests===z.measurementRequests&&e.viewportGeometrySourceName===z.viewportGeometrySourceName&&e.viewportLocalAppOffset.x===z.viewportLocalAppOffset.x&&e.viewportLocalAppOffset.y===
z.viewportLocalAppOffset.y};
EJs=function(e,z){return function(C){return function(w){var K=w.pipe(XK(new HV),iC());w=C.element.pipe(Gm());K=K.pipe(N1(function(G){return G.value}));
return BZ([w,K,z]).pipe(N1(function(G){var X=_.b(G);G=X.next().value;var J=X.next().value;X=X.next().value;if(G.ref===void 0)var q={top:0,left:0,width:0,height:0};else{q=G.ref.getBoundingClientRect();var T=G.ref,Q=e.global,m=new _.st(0,0),a=BV(_.t0(T));if(NeN(a,"parent")){do{if(a==Q)var n=_.ge(T);else n=Lp1(T),n=new _.st(n.left,n.top);m.x+=n.x;m.y+=n.y}while(a&&a!=Q&&a!=a.parent&&(T=a.frameElement)&&(a=a.parent))}q={top:m.y,left:m.x,width:q.width,height:q.height}}q=OhL(q,J.viewportLocalAppOffset);
Q=hvL(q,J.exposedViewportLocalGeometry);m=e.timeProvider.now();a=Object;T=a.assign;if(X!==2||e.inCrossDomainIframe||Q.width<=0||Q.height<=0)var H=!1;else try{var I=e.document.elementFromPoint(Q.left+Q.width/2,Q.top+Q.height/2);H=I?!hog(I,G):!1}catch(L){H=!1}return{timestamp:m,value:T.call(a,{},J,{elementGeometrySourceName:"geo",intersectionGeometry:H?Ojk.intersectionGeometry:Q,elementGeometry:q})}}),Ut(e.queue))}}};
hog=function(e,z,C){C=C===void 0?0:C;return e.ref===void 0||z.ref===void 0?!1:e.ref===z.ref||_.j8(z.ref,function(w){return w===e.ref})?!0:z.ref.ownerDocument&&z.ref.ownerDocument.defaultView&&z.ref.ownerDocument.defaultView===z.ref.ownerDocument.defaultView.top?!1:C<10&&z.ref.ownerDocument&&z.ref.ownerDocument.defaultView&&z.ref.ownerDocument.defaultView.frameElement?hog(e,new yb(z.ref.ownerDocument.defaultView.frameElement),C+1):!0};
fK5=function(e){return function(z){return z.pipe(e.ResizeObserver?Fp4(e):Vag(e),ky(1),iC())}};
Fp4=function(e){return function(z){return z.pipe($y(function(C){var w=e.ResizeObserver;if(!w||C.ref===void 0)return fq(Ojk.elementGeometry);var K=(new r5(function(G){function X(){C.ref!==void 0&&J.unobserve(C.ref);J.disconnect();q.unsubscribe()}
if(C.ref===void 0)return G.complete(),function(){};
var J=new w(function(T){T.forEach(function(Q){G.next(Q)})});
J.observe(C.ref);var q=C.JSC$9529_released.subscribe(X);return X})).pipe(zm(e.performanceMonitor,736),N1(function(G){return G.contentRect}));
return An(fq(C.ref.getBoundingClientRect()),K)}),Gm(PV))}};
Vag=function(e){return function(z){var C=z.pipe(lKL(e)),w=e.onResize;C=An(z.pipe(N1(function(){return k51("resize")})),C,w);
return BZ(z,C).pipe(zm(e.performanceMonitor,737),N1(function(K){K=_.b(K).next().value;return K.ref===void 0?void 0:K.ref.getBoundingClientRect()}),MaE(),Gm(PV))}};
d6L=function(e,z){var C=SH5(e,z).pipe(ky(1),iC());return function(w){return function(K){K=K.pipe($y(function(G){return G.element}),Gm());
return BZ([C,K]).pipe($y(function(G){var X=_.b(G);G=X.next().value;X=X.next().value;return uy5(e,G.intersectionObserver,fK5(e),G.observations,w,G.flushRecords,X)}),Ut(e.queue))}}};
D6g=function(e){return N1(function(z){return z.value.viewportGeometrySourceName!=="nio"?z:Object.assign({},z,{value:Object.assign({},z.value,{exposedViewportLocalGeometry:cV(e,!0),topWindowViewportExternalGeometry:cV(e,!0)})})})};
ijm=function(e,z){return fq(z).pipe(e,N1(function(){return z}))};
SH5=function(e,z){return e.timeProvider.timeline!==Np1?Sc(new S8(2)):e.MutationObserver?typeof IntersectionObserver==="undefined"?Sc(new S8(0)):(new r5(function(C){var w=new HV,K=new Z0(w.next.bind(w),{threshold:[].concat(_.s_(z))});C.next({observations:w.pipe(zm(e.performanceMonitor,735)),intersectionObserver:K,flushRecords:function(G){G=K.takeRecords(G);G.length>0&&w.next(G)}})})).pipe(oM(1),ky(1),iC()):Sc(new S8(1))};
sIs=function(e){return N5m(e.sort(function(z,C){return z.time-C.time}),Zq7)};
uy5=function(e,z,C,w,K,G,X){return new r5(function(J){function q(){H||(H=!0,X.ref!==void 0&&z.unobserve(K,X.ref),Q.unsubscribe(),n.unsubscribe(),a.unsubscribe(),I.unsubscribe())}
if(X.ref!==void 0){Bpo(z,K);z.observe(K,X.ref);var T=new pJ({timestamp:e.timeProvider.now(),value:Object.assign({},Ojk,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),Q=w.pipe(jc(function(L){return sIs(L)}),ZG(function(L){return L.target===X.ref}),N1(function(L){return{timestamp:new e8(L.time,Np1),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:L.rootBounds||en,topWindowViewportExternalGeometry:L.rootBounds||cV(e,!0),measurementRequests:m,elementGeometrySourceName:"nio",intersectionGeometry:L.intersectionRect,elementGeometry:L.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:L.isIntersecting,isV2Visible:L.isVisible}}}),XK(T),iC()).subscribe(J),m=new HV,a=m.subscribe(function(){G(K);
J.next({timestamp:e.timeProvider.now(),value:T.value.value});X.ref!==void 0&&(z.unobserve(K,X.ref),z.observe(K,X.ref))}),n=ijm(C,X).subscribe(function(){m.next()}),H=!1,I=X.JSC$9529_released.subscribe(function(){return q()});
return q}})};
tam=function(e,z){var C=e.getOnBackgrounded().pipe(N1(function(){return"b"}));
return M8E(z,C).pipe(oM(1),vV(e.queue))};
z5=function(e){return function(z){var C;return z.pipe(Sts(function(w){return void(C=w.timestamp)}),N1(function(w){return w.value}),e,N1(function(w){return{timestamp:C,
value:w}}))}};
gJ8=function(e){return e.intersectionGeometry.width*e.intersectionGeometry.height/(e.elementGeometry.width*e.elementGeometry.height)};
Ch=function(e,z,C){C=C===void 0?function(w,K){return w===K}:C;
return e.timestamp.equals(z.timestamp)&&C(e.value,z.value)};
Kh=function(e,z){return z.pipe(N1(function(C){return new w9(e.timeProvider,{timestamp:e.timeProvider.now(),value:C})}))};
jI1=function(e){return function(z){return z.pipe(uKk(e),N1(function(C){var w=_.b(C);C=w.next().value;w=w.next().value;var K=C.value;return{timestamp:C.timestamp,value:K>=1?!0:K<=0?!1:K>=w}}))}};
cGs=function(){return M1(ZG(function(e,z){return z>0}),yGm,xy(-1),Gm())};
AG4=function(e,z,C){return e?BZ([z,C]).pipe(ZG(function(w){var K=_.b(w);w=K.next().value;K=K.next().value;return w.timestamp.equals(K.timestamp)}),N1(function(w){var K=_.b(w);
w=K.next().value;K=K.next().value;return w.value>K.value?w:K})):z};
eGg=function(e){return function(z){var C=z.pipe(Zj4),w=z.pipe(pCg);return e instanceof r5?e.pipe($y(function(K){return AG4(K,C,w)})):AG4(e.value,C,w)}};
JR8=function(e,z,C,w){var K=w.geometryIsOccluded,G=w.exposureThreshold,X=w.wasLargeAdAtRender,J=w.allowLargeAdThreshold,q=w.largeAdExposureThreshold,T=w.mayUseViewportShareExposure,Q=w.hasMeasurementStarted;w=w.useIntersectionObserverV2;z=zG1(e,C,z);C=Cig(e,C);w=wRs(z,w);var m=KME(e,K,T,z),a=m.pipe(N1(function(g){return g.value}),Gm(),vV(e),qX(function(g,y){return Math.max(g,y)},0)),n=m.pipe(N1(function(g){return g.value}),cGs(),vV(e)),H=z.pipe(oig,N1(function(g){return g.value}),oM(2),Gm(),vV(e));
X=GRm(e,z,X,J);var I=X.pipe(xy(!1),Gm(),N1(function(g){return g?q:G}));
J=m.pipe(jI1(I),Gm(),vV(e));var L=BZ([J,z]).pipe(ZG(function(g){var y=_.b(g);g=y.next().value;y=y.next().value;return g.timestamp.equals(y.timestamp)}),N1(function(g){var y=_.b(g);
g=y.next().value;y=y.next().value;return{visible:g.value,geometry:y.value.elementGeometry}}),qX(function(g,y){return!y.visible&&g.visible?g:y},{visible:!1,
geometry:en}),N1(function(g){return g.geometry}),xy(en),vV(e),Gm(PV));
T=T instanceof r5?T.pipe(Gm(),KJ()):fJ;I=BZ([T,I]).pipe(KJ());var h=z.pipe(ZG(function(g){return g.value.viewportGeometrySourceName!=="ns"&&g.value.elementGeometrySourceName!=="ns"}),qX(function(g){return g+1},0),xy(0),vV(e)),E=C.pipe(KJ(!0),xy(!1),vV(e));
E=BZ([Q,E]).pipe(N1(function(g){var y=_.b(g);g=y.next().value;y=y.next().value;return g&&!y}),vV(e));
var N=z.pipe(Yg1,Gm()),D=N.pipe(N1(function(g){return g.value}),qX(function(g,y){return Math.max(g,y)},0),Gm(),vV(e));
e=N.pipe(N1(function(g){return g.value}),cGs(),vV(e));
return{shouldResetExposureSignals:T,shouldResetViewabilitySignals:I,geometrySignals:{readyGeometryWithDefault:z,measurementStrategy:z.pipe(bd1),creativePosition:L.pipe(Gm(PV)),visible:J.pipe(Gm(Ch)),timestampedExposure:m.pipe(Gm(Ch)),maximumExposure:a,minimumExposure:n,browserSize:z.pipe(XR7,Gm(_.Z8)),timestampedScreenShare:N,maxScreenShare:D,minScreenShare:e,geometricMeasurementErrors:C,measurementRequests:z.pipe(N1(function(g){return g.value.measurementRequests})),
isLargeAd:X,geometryIsOccluded:K,hasMeasurementStarted:Q,geometryMeasurable:E,validMeasurementCount:h,loadTimeExposure:H,v2VisibilityBitVector:w}}};
Cig=function(e,z){return z.pipe(ZG(function(){return!1}),N1(function(C){return C}),CJ(function(C){return o4(new WV(C),e)}))};
zG1=function(e,z,C){return z.pipe(a0E(fJ),vV(e)).pipe(Gm(function(w,K){return Ch(w,K,Ro7)}),xy({timestamp:C.now(),
value:Ojk}),vV(e))};
KME=function(e,z,C,w){C=w.pipe(eGg(C),z5(N1(function(K){return Math.round(K*100)/100})),vV(e));
return z instanceof WV?C:BZ([C,z]).pipe(N1(function(K){var G=_.b(K);K=G.next().value;G=G.next().value;return{timestamp:G.timestamp.maximum(K.timestamp),value:G.value?0:K.value}}),Gm(Ch),vV(e))};
GRm=function(e,z,C,w){z=[z.pipe(N1(function(K){return K.value.elementGeometry.width*K.value.elementGeometry.height>=242500}))];
C instanceof r5&&z.push(C.pipe(N1(function(K){return!!K})));
C=BZ(z);return w?C.pipe(N1(function(K){return K.some(function(G){return G})}),xy(!1),Gm(),vV(e)):o4(new WV(!1),e)};
wRs=function(e,z){e=BZ([e,z]).pipe(N1(function(K){var G=_.b(K);K=G.next().value;if(G.next().value&&K.value.isIntersecting)return K.value.isV2Visible}),Gm());
var C=e.pipe(N1(function(K){return K===void 0?!0:K}),qX(function(K,G){return K||!G},!1)),w=e.pipe(qX(function(K,G){return G===void 0?K:G?!1:K!=null?K:!0},void 0),N1(function(K){return!!K}));
return BZ([z,r0N(e,C,w)]).pipe(N1(function(K){var G=_.b(K);K=G.next().value;var X=_.b(G.next().value);G=X.next().value;var J=X.next().value;X=X.next().value;var q=0;if(!K)return 0;if(G===void 0)return 16;G&&(q|=1);G||(q|=2);J&&(q|=4);X&&(q|=8);return q}))};
l_1=function(e,z,C,w,K){var G=kR7.timeThresholdMs;var X=X===void 0?new qgE(z,w):X;return(new r5(function(J){var q=C.pipe(xy(void 0),$y(function(){return xmN(K)})).pipe(N1(function(T){var Q=T.value;
T=T.timestamp;var m=Q.visible;Q=Q.consecutiveViewTime;var a=Q>=G;a||!m?T11(X):(T=Math.max(0,pq(z.now(),T)),$m8(X,Math.max(0,G-Q-T)));return a}),qX(function(T,Q){return Q||T},!1),Gm()).subscribe(J);
return function(){X.dispose();q.unsubscribe()}})).pipe(l4(function(J){return!J},!0),vV(e))};
xmN=function(e){return Hjk([e,e.pipe(P0o())]).pipe(N1(function(z){var C=_.b(z);z=C.next().value;C=C.next().value;return{timestamp:z.timestamp,value:{visible:z.value,consecutiveViewTime:C.value}}}),Gm(function(z,C){return Ch(z,C,function(w,K){return w.consecutiveViewTime===K.consecutiveViewTime&&w.visible===K.visible})}))};
QV4=function(){return M1(IKN(),qX(function(e,z){return Math.max(e,z)},0),N1(function(e){return Math.round(e)}))};
mmh=function(e){return M1(jI1(fq(e)),QV4())};
a_1=function(e,z){return z instanceof r5?z.pipe($y(function(C){return(C=C?15:null)?Sc(new S8(C)):e})):(z=z.value?15:null)?Sc(new S8(z)):e};
nio=function(e){var z=new S8(13);if(e.length<1)return{chain:cZ,capturedErrors:cZ};var C=new HV,w=e[0];return{chain:e.slice(1).reduce(function(K,G){return K.pipe(CJ(function(X){C.next(X);return G}))},w).pipe(CJ(function(K){C.next(K);
return Sc(z)}),XK(new HV),iC()),
capturedErrors:C}};
M55=function(e,z){var C=e.pipe(XK(new HV),iC());return $y(function(w){return C.pipe(z(w))})};
Hdg=function(e,z){if(e.inCrossDomainIframe)return Sc(new S8(6));var C=new HV;return An(fq({}),z,C).pipe(N1(function(){return{timestamp:e.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:rRk(e),topWindowViewportExternalGeometry:cV(e,!0),measurementRequests:C,viewportLocalAppOffset:{x:0,y:0}}}}),Ut(e.queue))};
rRk=function(e){var z=cV(e,!1);if(!e.inIframe||!sMN(e.global.parent)||e.global.parent===e.global)return z;var C=new G5(e.global.parent,e.debugChannel);C.beaconFactory=e.beaconFactory;C=rRk(C);e=e.global.frameElement.getBoundingClientRect();return hvL(OhL(hvL(C,e),{x:z.left-e.left,y:z.top-e.top}),z)};
Umg=function(e){if(e.prerendering)return 3;var z;return(z={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||""])!=null?z:0};
viL=function(e){return e.document.JSC$9540_onVisibilityChange.pipe(N1(function(z){return z==="visible"}),Gm(),vV(e.queue))};
I_E=function(e,z,C){var w;return z.pipe(Gm(),$y(function(K){return C.pipe(N1(function(){if(!w){w=!0;try{K.next()}finally{w=!1}}return!0}))}),xy(!1),vV(e.queue))};
WM1=function(e){return M1(z5(N1(function(z){return z>=1?!0:z<=0?!1:z>=e})),vJm(),N1(function(z){return Math.round(z)}))};
RGh=function(e,z,C,w,K){var G=Pi8;if(G.length>1)for(var X=0;X<G.length-1;X++)if(G[X]<G[X+1])throw Error();X=K.pipe(xy(void 0),$y(function(){return C.pipe(P0o())}),Gm(),vV(e));
K=K.pipe(xy(void 0),$y(function(){return C.pipe(QV4())}),Gm(),vV(e));
return{totalMeasurementTime:w.pipe(xy(void 0),$y(function(){return z.pipe(N1(function(J){return{timestamp:J.timestamp,value:!0}}),vJm())}),Gm(),vV(e)),
totalUnviewedTime:w.pipe(xy(void 0),$y(function(){return z.pipe(N1(function(J){return{timestamp:J.timestamp,value:J.value===0}}),vJm())}),Gm(),vV(e)),
maxTimeOnScreen:w.pipe(xy(void 0),$y(function(){return z.pipe(Wpg(mmh,G))}),Gm(_.Z8),vV(e)),
timeOnScreen:w.pipe(xy(void 0),$y(function(){return z.pipe(Wpg(WM1,G),N1(function(J){return J.map(function(q,T){return T>0?q-J[T-1]:q})}))}),Gm(_.Z8),vV(e)),
maxConsecutiveViewTime:K,consecutiveViewTime:X.pipe(Gm(Ch),vV(e))}};
hGE=function(e){var z=!0;z=z===void 0?!1:z;return M1($y(function(C){return LME(e.document,C,z)}),vV(e.queue))};
Od8=function(e,z,C){var w=C.pipe(N1(function(K){return{value:K,timestamp:e.timeProvider.now()}}),Gm(Ch));
return z instanceof r5?z.pipe(Gm(),$y(function(K){return K?o4(new WV({value:!1,timestamp:e.timeProvider.now()}),e.queue):w})):z.value===!1?w:new WV(!1)};
Ei1=function(e,z,C,w,K,G,X){var J=kR7;z=z instanceof r5?z.pipe(xy(!1),Gm()):z;var q=!e.isMobile();C=Od8(e,C,w);e=X.measurableCreative.pipe(rGN(e.queue));return Object.assign({},J,{geometryIsOccluded:C,wasLargeAdAtRender:K,allowLargeAdThreshold:q,mayUseViewportShareExposure:z,hasMeasurementStarted:e,useIntersectionObserverV2:G})};
V54=function(e,z,C,w,K,G){var X=1;G=G===void 0?!0:G;X=X===void 0?.01:X;var J=J===void 0?e.timeProvider.intervalObservable(100).pipe(vV(e.queue)):J;return e.performanceMonitor.timeExecution(916,function(){return FME(e,z.pipe(Ut(e.queue)),C.pipe(Ut(e.queue)),w,K,G,X,J)})()};
FME=function(e,z,C,w,K,G,X,J){var q=viL(e).pipe(N1(function(Q){return!Q})),T=new f_g(e,[new SgN(e,Pi8),
new u1L(e,J)]);J=kth(dm4,Dmm);return wCk(e,z,function(Q,m){var a=o4(new WV(m.element),Q.queue).pipe(hGE(Q),vV(Q.queue)),n={loadedElement:a,shouldMeasure:a.pipe(KJ(!0)),measurableCreative:a.pipe(N1(function(g){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:o4(new WV(g),Q.queue)})})),
creativeSearchResult:o4(new WV("mue"),Q.queue)},H=new WV(!1),I=new WV(!1),L=new WV(17),h=new WV(!1),E=new WV(!1),N=o4(Y2,Q.queue);H=T.buildGeometrySource(n,{inApp:H,useV2:!1,requestSource:o4(L,Q.queue)}).geometrySource;n=Ei1(Q,h,I,q,E,N,n);I=JR8(Q.queue,Q.timeProvider,H,n);n=I.geometrySignals;h=I.shouldResetViewabilitySignals;I=RGh(Q.queue,n.timestampedExposure,n.visible,I.shouldResetExposureSignals,h);h=l_1(Q.queue,Q.timeProvider,h,n.measurementRequests,n.visible);E=C.pipe(ZG(function(g){return g===
m.element.ref}),N1(function(){return"ur"}));
N=I0h(Q.timeProvider,K).pipe(KJ("t"));E=tam(Q,An(E,N));N=I_E(Q,n.measurementRequests,E.pipe(ZG(function(g){return g!==null})));
H=E.pipe(ZG(function(g){return g!==null}),N1(function(){return Umg(Q.global.document)===1}));
var D=ido(Q.document);return Object.assign({},{beaconFactory:new WV(Q.beaconFactory),context:new WV(Q),inferredPingId:new WV("lidar2"),timeOnScreenPingId:new WV("lidartos"),binaryContext:new WV(17),binaryVersion:new WV(w),requestSource:L,contextValidationErrors:new WV(Q.validate()?null:new u4),contextVisibilityKnown:new WV(D),payloadMapper:new WV(XC7),endOfSessionReason:E,timeOnScreenReason:E,requestMeasurementOnEndOfSession:N,hasImpressionFired:N1g,crossDomainIframeState:new WV(Q.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Y2,inFetchLaterBeaconExperiment:Y2,isTurtlex:Y2,turtlexReportEventData:new WV(""),reportFencedFrameEvent:fJ,isViewableAttributionEnabled:Y2,inViewableAttributionExperiment:new WV(0),fetchBeaconFactory:fJ,supportsPendingBeacon:Y2,supportsFetchLater:Y2,emit:new WV(Tpg),beginToRenderEvent:new WV(Symbol()),activeViewUnmeasurableEvent:new WV(Symbol()),activeViewViewableEvent:new WV(Symbol()),creativeFound:N1g,immediateUrlPrefixes:new WV(m.immediateUrls),timeOnScreenUrlPrefixes:new WV(m.timeOnScreenUrls),
cpmavUrls:fJ,viewableRelayUrls:fJ,measurementDeferralState:new WV(2),urlSerializer:new WV(nJk),viewUrlSerializer:new WV(sV1),isCreativeLoaded:a.pipe(rGN(Q.queue)),pageVisible:q.pipe(N1(function(g){return!g})),
eosPageVisible:H,timestampedExposureHistory:n.timestampedExposure.pipe(qX(function(g,y){g.push(y);return g},[]))},n,{viewable:Kh(Q,h),
maxTimeOnScreen:Kh(Q,I.maxTimeOnScreen),timeOnScreen:Kh(Q,I.timeOnScreen),maxConsecutiveViewTime:Kh(Q,I.maxConsecutiveViewTime),consecutiveViewTime:I.consecutiveViewTime.pipe(N1(function(g){return new w9(Q.timeProvider,g)})),
totalMeasurementTime:Kh(Q,I.totalMeasurementTime),totalUnviewedTime:Kh(Q,I.totalUnviewedTime),userAgentClientHints:JAE(Q),clientOrderPingCounter:new WV(new oJh)})},JGg(e,X),qH8(G?x6E(J,B1N):x6E(J,t55),gio))};
jV8=function(e){var z=_.yL.apply(1,arguments).filter(Boolean).join("&");if(!z)return e;var C=e.match(/[?&]adurl=/);return C?e.slice(0,C.index+1)+z+"&"+e.slice(C.index+1):e+(e.indexOf("?")<0?"?":"&")+z};
bZ=function(e,z){return z?"&"+e+"="+encodeURIComponent(z):""};
yR8=function(){try{var e,z;return!!((e=window)==null?0:(z=e.top)==null?0:z.location.href)&&!1}catch(C){return!0}};
_.XU=function(e){e&&typeof e.dispose=="function"&&e.dispose()};
_.JA=function(e){for(var z=0,C=arguments.length;z<C;++z){var w=arguments[z];_.B1(w)?_.JA.apply(null,w):_.XU(w)}};
ARs=function(){var e=cRg();e=e===void 0?"bevasrsg":e;return new Promise(function(z){var C=window===window.top?window:yR8()?window:window.top,w=C[e],K;((K=w)==null?0:K.bevasrs)?z(new qG(w.bevasrs)):(w||(w={},w=(w.nqfbel=[],w),C[e]=w),w.nqfbel.push(function(G){z(new qG(G))}))})};
ZdL=function(e){var z={c:e.tZ,e:e.wHa,mc:e.ss7,me:e.fuG};e.kY&&(z.co={c:e.kY.v9e,a:e.kY.nbv,s:e.kY.aMA});return z};
pRo=function(e){var z,C,w={tZ:e.c,wHa:e.e,ss7:(z=e.mc)!=null?z:!1,fuG:(C=e.me)!=null?C:!1};e.co&&(w.kY={v9e:e.co.c,nbv:e.co.a,aMA:e.co.s});return w};
ey1=function(e){return function(){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(e(),2);z=C.yieldResult;return C.return({f:function(){return z.em2()},
c:function(w){return z.bV9(w)},
m:function(w){return z.jD(pRo(w))},
mws:function(w){return z.ywQ(pRo(w))}})})}};
zy8=function(e,z){var C=cRg();C=C===void 0?"bevasrsg":C;z={s:function(G){var X;return e.snapshot(Object.assign({},G.c&&{tZ:G.c},G.s&&{ztP:G.s},{hye:(X=G.p)!=null?X:!0}))},
e:function(G){var X;return void((X=e.zrz)==null?void 0:X.call(e,G))},
c:function(G,X){return e.l1e(G,X)},
p:e.bMn,l:function(){return e.bZv()},
wpc:z?ey1(z):void 0};var w=window===window.top?window:yR8()?window:window.top,K=w[C];if(K){K.bevasrs=z;if(K.nqfbel!==void 0)for(C=_.b(K.nqfbel),w=C.next();!w.done;w=C.next())w=w.value,w(z);K.nqfbel=void 0}else K={},K=(K.bevasrs=z,K.nqfbel=void 0,K),w[C]=K};
wiN=function(e){var z=z===void 0?52:z;var C=[];_.x2(e,Ch8,6,_.T5()).forEach(function(w){_.$2(w,2)<=z&&C.push(_.$2(w,1))});
return C};
Ksg=function(e){var z=z===void 0?52:z;var C=[];_.x2(e,Ch8,6,_.T5()).forEach(function(w){_.$2(w,2)>z&&C.push(_.$2(w,1))});
return C};
oBL=function(e){e.then(function(){},function(){})};
lZ=function(e){return{fieldType:1,fieldName:e}};
Q4=function(e){return{fieldType:2,fieldName:e}};
_.ma=function(e){return{fieldType:3,fieldName:e}};
GN4=function(){function e(){K[0]=1732584193;K[1]=4023233417;K[2]=2562383102;K[3]=271733878;K[4]=3285377520;Q=T=0}
function z(m){for(var a=X,n=0;n<64;n+=4)a[n/4]=m[n]<<24|m[n+1]<<16|m[n+2]<<8|m[n+3];for(n=16;n<80;n++)m=a[n-3]^a[n-8]^a[n-14]^a[n-16],a[n]=(m<<1|m>>>31)&4294967295;m=K[0];var H=K[1],I=K[2],L=K[3],h=K[4];for(n=0;n<80;n++){if(n<40)if(n<20){var E=L^H&(I^L);var N=1518500249}else E=H^I^L,N=1859775393;else n<60?(E=H&I|L&(H|I),N=2400959708):(E=H^I^L,N=3395469782);E=((m<<5|m>>>27)&4294967295)+E+h+N+a[n]&4294967295;h=L;L=I;I=(H<<30|H>>>2)&4294967295;H=m;m=E}K[0]=K[0]+m&4294967295;K[1]=K[1]+H&4294967295;K[2]=
K[2]+I&4294967295;K[3]=K[3]+L&4294967295;K[4]=K[4]+h&4294967295}
function C(m,a){if(typeof m==="string"){m=unescape(encodeURIComponent(m));for(var n=[],H=0,I=m.length;H<I;++H)n.push(m.charCodeAt(H));m=n}a||(a=m.length);n=0;if(T==0)for(;n+64<a;)z(m.slice(n,n+64)),n+=64,Q+=64;for(;n<a;)if(G[T++]=m[n++],Q++,T==64)for(T=0,z(G);n+64<a;)z(m.slice(n,n+64)),n+=64,Q+=64}
function w(){var m=[],a=Q*8;T<56?C(J,56-T):C(J,64-(T-56));for(var n=63;n>=56;n--)G[n]=a&255,a>>>=8;z(G);for(n=a=0;n<5;n++)for(var H=24;H>=0;H-=8)m[a++]=K[n]>>H&255;return m}
for(var K=[],G=[],X=[],J=[128],q=1;q<64;++q)J[q]=0;var T,Q;e();return{reset:e,update:C,digest:w,digestString:function(){for(var m=w(),a="",n=0;n<m.length;n++)a+="0123456789ABCDEF".charAt(Math.floor(m[n]/16))+"0123456789ABCDEF".charAt(m[n]%16);return a}}};
q31=function(e,z){z=z===void 0?Y3m:z;if(!b0g){var C;e=(C=e.navigator)==null?void 0:C.userAgentData;if(!e||typeof e.getHighEntropyValues!=="function"||e.brands&&typeof e.brands.map!=="function")return Promise.reject(Error("ua"));Xik((e.brands||[]).map(function(K){var G=new JJ8;G=_.Et(G,1,K.brand);return _.Et(G,2,K.version)}));
typeof e.mobile==="boolean"&&_.a4(kN1,2,e.mobile);b0g=e.getHighEntropyValues(z)}var w=new Set(z);return b0g.then(function(K){var G=kN1.clone();w.has("platform")&&_.Et(G,3,K.platform);w.has("platformVersion")&&_.Et(G,4,K.platformVersion);w.has("architecture")&&_.Et(G,5,K.architecture);w.has("model")&&_.Et(G,6,K.model);w.has("uaFullVersion")&&_.Et(G,7,K.uaFullVersion);return G.serialize()}).catch(function(){return kN1.serialize()})};
nh=function(e,z,C,w){this.initialValue_=e;this.maxValue_=z;this.currBaseValue_=this.currValue_=e;this.randomFactor_=C||0;this.backoffFactor_=w||2};
Uv=function(e){this.src=e;this.listeners={};this.typeCount_=0};
l6m=function(){for(var e;e=xvh.remove();){try{e.fn.call(e.scope)}catch(z){Ko(z)}T34.put(e)}$v8=!1};
_.QX7=function(e){switch(e){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}};
mv1=function(e){switch(e){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""}};
_.a6E=function(){};
Ph1=function(e,z,C,w){e=nBm(Msm(rJg(new _.vo(1828,"0"),e),new H0k)).disableWithCredentials();z.length&&UvN(e,vBN(new I61,z));w!==void 0&&(e.destinationUrl=w);var K=new Ws7(1828,"","",!1,"",e.build());_.I4(K,e);var G=new Wo({flush:function(X){try{K.flush(X)}catch(J){C(J)}}});
G.addOnDisposeCallback(function(){setTimeout(function(){try{G.snapshotAndFlush()}finally{K.dispose()}})});
G.invocationLimit=1E5;G.flushInterval=3E4;G.JSC$9956_flushTimer.setInterval(3E4);return G};
Po=function(){var e,z,C;return(C=(e=globalThis.performance)==null?void 0:(z=e.now)==null?void 0:z.call(e))!=null?C:Date.now()};
hyk=function(e,z){if(e.disable)return new Ryk;z=z?wiN(z):[];e={sC:e.sC,mjx:e.r02,puZ:e.hNJ,destinationUrl:e.destinationUrl,aBQ:e.aBQ,khQ:e.khQ};z=z===void 0?[]:z;return new Ls4(e,z)};
O0k=function(e){if(!e)return null;e=_.R4(e,2);return e===null||e===void 0?null:ec(e)};
_.EBm=function(e){if(!e)return null;e=_.R4(e,4);return e===null||e===void 0?null:_.EC(e)};
f64=function(e,z){return z?Fs4(z):e?Vsm(e):Promise.resolve()};
Fs4=function(e){return new Promise(function(z,C){var w=_.Lh("SCRIPT"),K=_.EBm(e);_.Jn(w,K);w.onload=function(){_.hA(w);z()};
w.onerror=function(){_.hA(w);C(Error("Fa"))};
(Ov("HEAD")[0]||document.documentElement).appendChild(w)})};
Vsm=function(e){return new Promise(function(z){var C=_.Lh("SCRIPT");if(e){var w=_.R4(e,6);w=w===null||w===void 0?null:_.Yo(w)}else w=null;_.Xg(C,w);(Ov("HEAD")[0]||document.documentElement).appendChild(C);_.hA(C);z()})};
Ev=function(e,z,C){var w,K=new Promise(function(G){w=setTimeout(G,z)});
return Promise.race([e.finally(function(){return void clearTimeout(w)}),
K.then(C)])};
S38=function(e,z){try{return globalThis.sessionStorage.setItem(e,z),!0}catch(C){return!1}};
uFN=function(e,z,C,w){z=z===void 0?0:z;C=C===void 0?e.length:C;var K=0;for(w&&(K=uFN(w));z<C;z++)w=typeof e==="string"?e.charCodeAt(z):e[z],K=dv5(31,K)+w|0;return K};
Dvk=function(e,z){return[uFN(e,0,e.length>>1,z),uFN(e,e.length>>1)]};
i0g=function(e){var z=_.b(Dvk(e,FU));e=z.next().value;z=z.next().value;return e.toString(16)+z.toString(16)};
N3m=function(e,z){var C=Dvk(z);e=new Uint32Array(e.buffer);z=e[0];var w=_.b(C);C=w.next().value;w=w.next().value;for(var K=1;K<e.length;K+=2){for(var G=z,X=K,J=C,q=w,T=0;T<22;T++)X=X>>>8|X<<24,X+=G|0,X^=J+38293,G=G<<3|G>>>29,G^=X,q=q>>>8|q<<24,q+=J|0,q^=T+38293,J=J<<3|J>>>29,J^=q;G=[G,X];e[K]^=G[0];K+1<e.length&&(e[K+1]^=G[1])}};
sXE=function(e,z,C,w,K){var G=(4-(FU.length+C.length)%4)%4,X=new Uint8Array(4+G+FU.length+4+C.length),J=new DataView(X.buffer),q=0;J.setUint32(q,Math.random()*4294967295);q=q+4+G;X.set(FU,q);q+=FU.length;J.setUint32(q,K);X.set(C,q+4);N3m(X,w);return e.insert(z,function(T){return void globalThis.sessionStorage.removeItem(T)})?S38(z,_.FY(X))?"s":"t":"i"};
B3g=function(e,z){var C=globalThis.sessionStorage.getItem(e);if(!C)return["m"];try{var w=_.po(C);N3m(w,z)}catch(K){return globalThis.sessionStorage.removeItem(e),["c"]}for(z=4;z<7&&w[z]===0;)z++;for(C=0;C<FU.length;C++)if(w[z++]!==FU[C])return globalThis.sessionStorage.removeItem(e),["d"];C=(new DataView(w.buffer)).getUint32(z);return Math.floor(Date.now()/1E3)>=C?(globalThis.sessionStorage.removeItem(e),["e"]):["a",new Uint8Array(w.buffer,z+4)]};
tss=function(e){return globalThis.TextEncoder?(new TextEncoder).encode(e):_.V4(e)};
gBL=function(e){var z=e,C;return function(){if(z){var w=z;z=void 0;C=w.apply(this,arguments)}return C}};
yJ7=function(e){return fg(function(z){if(z instanceof e)return!0;var C,w,K=z==null?void 0:(C=z.ownerDocument)==null?void 0:(w=C.defaultView)==null?void 0:w[e.name];return jXm(K)&&z instanceof K})};
_.d9=function(e,z,C){_.Sn.call(this);this.JSC$10170_listener_=e;this.JSC$10170_interval_=z||0;this.handler_=C;this.callback_=(0,_.uZ)(this.JSC$10172_doAction_,this)};
_.iZ=function(e){e=cJ1(e);return _.EC(e)};
cJ1=function(e){return e===null?"null":e===void 0?"undefined":e};
Z0E=function(e){if(e&&e.focus)if(e!==document.activeElement)e.focus();else return AJk(function(){return _.k(function(z){document.activeElement&&document.activeElement.blur();return z.return(AJk(function(){e.focus()}))})})};
_.pi1=function(e){var z=z===void 0?5:z;setTimeout(function(){var C;return _.k(function(w){w.nextAddress==1&&(C=document.activeElement);if(w.nextAddress!=5)return(document.activeElement===C||document.activeElement===document.body)&&z>=0&&e?w.yield(Z0E(e),5):w.jumpTo(0);if(document.activeElement===e)return w.return();e=e.parentElement;--z;return w.jumpTo(2)})},15)};
AJk=function(e){return new Promise(function(z){requestAnimationFrame(function(){z(e())})})};
z_o=function(e){if(_.NG)e(_.NG);else{var z;((z=e_E)!=null?z:e_E=[]).push(e)}};
Bo=function(){!_.NG&&_.sv&&_.CMg(_.sv());return _.NG};
_.CMg=function(e){_.NG=e;var z;(z=e_E)==null||z.forEach(z_o);e_E=void 0};
_.tA=function(e){_.NG&&_.NG.beforeLoadModuleCode(e)};
_.g9=function(){_.NG&&_.NG.JSC$11224_setLoaded()};
jn=function(e){return VS4(e)?Number(e):String(e)};
w57=function(e){this.action=e;this.wfv=!1};
K0L=function(e,z){w57.call(this,"set-drive-options");this.appId=e;this.appOrigin=z};
ojE=function(e){w57.call(this,"visibility");this.visible=e};
GT7=function(e,z,C){y4.call(this,e,z,C)};
YRE=function(e){co.call(this,e)};
bps=function(e){e=e&&e.getWindow()||window;return e.gadgets&&e.gadgets.rpc};
Jfg=function(e,z){var C=z&&z.getWindow()||window;if(bps(z))e();else if(X54)X54.push(e);else var w=X54=[e],K=C.setInterval(function(){if(bps(z)){C.clearInterval(K);for(var G=0;G<w.length;G++)w[G]();X54=null}},100)};
qRL=function(e,z){var C=new AA(e);_.I4(z,C);var w={passive:!1};z.listen(C,"mousewheel",function(K){return void kTg(e,K)},w).listen(e,"scroll",function(K){return void kTg(e,K)},w)};
kTg=function(e,z){var C;a:{for(C=z.target;C;){if(C.nodeType==1){var w=_.ZH(C,"overflowY");if(w=="auto"||w=="scroll")break a}C=C.parentNode}C=null}if(!C||!_.ph(e,C)||C.scrollHeight==C.clientHeight||z.deltaY>0&&Math.abs(C.scrollTop-(C.scrollHeight-C.clientHeight))<=1||z.deltaY<0&&C.scrollTop==0)z.preventDefault(),z.stopPropagation()};
YJ=function(e,z,C,w,K,G,X,J,q){J=J===void 0?!1:J;q=q===void 0?!1:q;y4.call(this,void 0,void 0,void 0);y4.call(this,G?G+" picker modal-dialog":"picker modal-dialog",!0,C);_.ea(e,"protocol");this.iframeManager_=new xEE;this.targetId_=zt();this.rpcToken_=zt();e=_.Cj(e);_.Kj(e,"hostId");C=_.Kj(e,"parent");this.useGapi_=!q&&!0||(C==null?void 0:C.includes("onepick.corp.google.com"));J&&_.oI(e,"fv2","true");this.setUrl(e.toString());this.preferredDialogWidth_=w;this.preferredDialogHeight_=K;w!==void 0||
K!==void 0?w=!0:(w=_.Kj(_.Cj(e.toString()),"hostId"),Tag||(Tag=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),w=!Tag.has(w));this.autoSizeDialog_=w;this.JSC$10360_gadgetsDomHelper_=X||this.JSC$10311_dom_;z&&(X=this.JSC$10360_gadgetsDomHelper_,z=_.Kj(_.Cj(this.JSC$10362_url_),"grugl")=="true"?$Eo:lIg,bps(X)||(X=X||Ot(document),w=X.createElement("SCRIPT"),_.Jn(w,z),w.type="text/javascript",X.JSC$9495_document_.body.appendChild(w)));
e=e.toString();z=null;X=e.indexOf("/picker?");X>-1?z=e.substring(0,X+8-1):Gg(e,"/picker")&&(z=e);z&&this.setRelayUrl(z+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(e=this.buttons_,e.JSC$10345_element_=this.buttonEl_,e.render()):_.ko(this.buttonEl_,Qs7),_.Gt(this.buttonEl_,!!this.buttons_))};
_.Mx7=function(e){var z=z===void 0?mEE:z;var C=_.c1(e),w=function(G){G=_.b(G);G.next();G=b0(G);return z(C,G)},K=function(G){var X=_.b(G);
G=X.next().value;X=b0(X);return e.apply(G,X)};
return function(){var G=_.yL.apply(0,arguments),X=this||_.wL,J=aI1.get(X);J||(J={},aI1.set(X,J));return nj8(J,[this].concat(_.s_(G)),K,w)}};
Xy=function(e){var z={};e=e.replace(/\r/g,"").split("\n");for(var C=0;C<e.length;C++){var w=e[C],K=w.indexOf(":");K<0||(z[w.substring(0,K)]=w.substring(K+2,w.length))}return z};
rfg=function(e,z,C){C=C===void 0?function(){}:C;
return e?z():C()};
_.UEE=function(e){var z;return((z=Hpk.documentOverride)!=null?z:e).__wizdispatcher};
_.kJ=function(e){var z=JG;JG=e;return z};
_.IIg=function(e){return e===vjE||(e==null?void 0:e.name)==="\u0275NotFound"};
_.q6=function(e,z){var C;if((C=e)==null?0:C.isDisposed)throw Error("jb`"+String(e.debugName));for(;e!==void 0;){C=e;if(C.retrieve)return C.retrieve(z,{optional:!0});e=e.parent}return vjE};
xJ=function(e){return{"\u0275prov":{providedIn:"root",token:Symbol(e),factory:void 0,value:void 0}}};
_.W08=function(e){var z=JG;if(!z){switch(e===void 0?3:e){case 0:e=Error("ib");break;case 1:e=Error("kb");break;case 2:e=Error("lb");break;default:e=Error("mb")}throw e;}return z};
PM1=function(e){var z=_.kJ(e);e={};return e[Symbol.dispose]=function(){_.kJ(z)},e};
R_s=function(e,z){e.disposables||(e.disposables=[]);e.disposables.push(z)};
Tt=function(e){var z=JG;z&&!z.isDisposed&&(R_s(z,e),e.parent=z)};
h_g=function(e){if(e.disposables){for(var z=_.b(e.disposables),C=z.next();!C.done;C=z.next())C=C.value,typeof C==="function"?C():L0k(C);e.disposables.length=0}};
L0k=function(e){if(!e.isDisposed){e.isDisposed=!0;var z;(z=e[Symbol.dispose])==null||z.call(e);delete e.parent;h_g(e)}};
DEg=function(e){var z={retrieve:function(C){switch(C.\u0275prov.token){case Op5.\u0275prov.token:var w=e.asyncDeps;break;case _.Ej1.\u0275prov.token:w=e.rootElement;break;case F0s.\u0275prov.token:w=e.modelRootElement;break;case Vxg.\u0275prov.token:w=e.appContext;break;case fIo.\u0275prov.token:w=e.rendererData;break;case SRo.\u0275prov.token:w=e.injectingConstructor;break;case u0o.\u0275prov.token:w=e.dispatcher}if(w)C=w;else a:{for(w=z.parent;w;){var K=w;if(K.retrieve){C=K.retrieve(C);break a}w=
w.parent}w=C.\u0275prov.token;K=dEN[w];K!==void 0?C=K:(K=C.\u0275prov.providedIn,C.\u0275prov.factory?(C=C.\u0275prov.factory(),w&&K==="root"&&(dEN[w]=C)):C=vjE)}return C}};
Tt(z);return z};
ipL=function(){var e=_.W08(1),z=_.q6(e,Vxg);if(!_.IIg(z))return z;e=_.q6(e,u0o);if(!_.IIg(e))return e.getOptionalAppContext()};
Nag=function(e){if(typeof document!=="undefined"&&document&&document.getElementById&&(e=document.getElementById(e))){var z=e.tagName.toUpperCase();if(z=="SCRIPT"||z=="LINK")return e}return null};
Ba5=function(e,z){if((e=e===void 0?"":e)&&z)throw Error("sb");var C="";var w=_.wL._F_jsUrl;(e=z||Nag(e))&&(C=e.src?e.src:e.getAttribute("href"));if(w&&C){if(w!=C)throw Error("tb`"+w+"`"+C);C=w}else C=w||C;if(!ssm(C))throw Error("ub");return C};
yfo=function(){if(!tx1){tx1=!0;try{var e=Ba5(_.wL._F_jsUrl?"":"base-js")}catch(w){return}var z=gj8(js1(e)),C=Object.keys(z);C.length!==0&&z_o(function(w){for(var K=_.b(C),G=K.next();!G.done;G=K.next()){G=G.value;for(var X=_.b(Object.keys(z[G])),J=X.next();!J.done;J=X.next())w.addExtraEdge(G,J.value)}})}};
Af7=function(){var e=Object.assign({},cfm);Object.getOwnPropertyNames(cfm).forEach(function(z){$J[z]!==void 0&&(e[z]=$J[z])});
return e};
Zpo=function(e,z){if($J.enablePerformanceTiming){var C,w;(w=(C=performance).mark)==null||w.call(C,e+"Start__"+z)}};
p5E=function(e,z){if($J.enablePerformanceTiming){var C,w;(w=(C=performance).measure)==null||w.call(C,e+"__"+z,e+"Start__"+z)}};
eUh=function(e,z,C){var w;return e&&z?e+"__"+z:(w=e!=null?e:z)!=null?w:C};
zU4=function(e,z){return Object.is(e,z)};
QM=function(e){var z=l0;l0=e;return z};
wnN=function(e){if(mp)throw Error("Z");if(l0!==null){var z=l0.producersTail;if(z===void 0||z.producer!==e){var C=void 0,w=l0.recomputing;if(w&&(C=z!==void 0?z.nextProducer:l0.producers,C!==void 0&&C.producer===e)){l0.producersTail=C;C.lastReadVersion=e.version;return}var K=e.consumersTail,G;if(!(G=K===void 0||K.consumer!==l0)){if(w){a:{G=l0;w=G.producersTail;if(w!==void 0){G=G.producers;do{if(G===K){w=!0;break a}if(G===w)break;G=G.nextProducer}while(G!==void 0)}w=!1}w=!w}G=w}G&&(w=aI(l0),C={producer:e,
consumer:l0,nextProducer:C,prevConsumer:K,lastReadVersion:e.version,nextConsumer:void 0},l0.producersTail=C,z!==void 0?z.nextProducer=C:l0.producers=C,w&&Ckg(e,C))}}};
M6=function(e){if(!aI(e)||e.dirty)if(e.dirty||e.lastCleanEpoch!==nj)(e.producerMustRecompute(e)||K1h(e))&&e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=nj};
oOg=function(e){if(e.consumers!==void 0){var z=mp;mp=!0;try{for(var C=e.consumers;C!==void 0;C=C.nextConsumer){var w=C.consumer;w.dirty||(e=void 0,w.dirty=!0,oOg(w),(e=w.consumerMarkedDirty)==null||e.call(w,w))}}finally{mp=z}}};
GEN=function(){var e;return((e=l0)==null?void 0:e.consumerAllowSignalWrites)!==!1};
YOg=function(e){e&&(e.producersTail=void 0,e.recomputing=!0);return QM(e)};
Xnm=function(e){e.recomputing=!1;var z=e.producersTail,C=z!==void 0?z.nextProducer:e.producers;if(C!==void 0){if(aI(e)){do C=bC5(C);while(C!==void 0)}z!==void 0?z.nextProducer=void 0:e.producers=void 0}};
K1h=function(e){for(e=e.producers;e!==void 0;e=e.nextProducer){var z=e.producer,C=e.lastReadVersion;if(C!==z.version)return!0;M6(z);if(C!==z.version)return!0}return!1};
Ckg=function(e,z){var C=e.consumersTail,w=aI(e);C!==void 0?(z.nextConsumer=C.nextConsumer,C.nextConsumer=z):(z.nextConsumer=void 0,e.consumers=z);z.prevConsumer=C;e.consumersTail=z;if(!w)for(e=e.producers;e!==void 0;e=e.nextProducer)Ckg(e.producer,e)};
bC5=function(e){var z=e.producer,C=e.nextProducer,w=e.nextConsumer,K=e.prevConsumer;e.nextConsumer=void 0;e.prevConsumer=void 0;w!==void 0?w.prevConsumer=K:z.consumersTail=K;if(K!==void 0)K.nextConsumer=w;else if(z.consumers=w,!aI(z))for(e=z.producers;e!==void 0;)e=bC5(e);return C};
aI=function(e){return e.consumerIsAlwaysLive||e.consumers!==void 0};
kEk=function(e){var z=Object.create(JX7);z.computation=e;e=function(){M6(z);wnN(z);if(z.value===rp)throw z.error;return z.value};
e[HC]=z;return e};
$Us=function(e,z){var C=Object.create(qO5);C.value=e;z!==void 0&&(C.equal=z);e=function(){wnN(C);return C.value};
e[HC]=C;return[e,function(w){return xU1(C,w)},
function(w){GEN()||TmL(C);xU1(C,w(C.value))}]};
xU1=function(e,z){GEN()||TmL(e);if(!e.equal(e.value,z)){e.value=z;e.version++;nj++;oOg(e);var C;(C=lzg)==null||C(e)}};
mUE=function(e,z,C){var w=Object.create(QC5);w.source=e;w.computation=z;C!=void 0&&(w.equal=C);e=function(){M6(w);wnN(w);if(w.value===rp)throw w.error;return w.value};
e[HC]=w;return e};
_.UH=function(e){var z=QM(null);try{return e()}finally{QM(z)}};
azm=function(e,z){Zpo("signalSet",z.debugName);try{e()}finally{p5E("signalSet",z.debugName)}};
nOs=function(e,z,C){e=$Us(e,z.equals);var w=e[0],K=w[HC];K.debugName=eUh(z.debugName,C,"[signal]");if(!$J.enablePerformanceTiming)return e;var G=e[1],X=e[2];return[w,function(J){azm(function(){return void G(J)},K)},
function(J){azm(function(){return void X(J)},K)}]};
rXm=function(e){var z=Object.create(Mum);z.debugName=e;!JG||Tt(z);return z};
HCN=function(e,z){var C=rXm(z);z=_.kJ(C);try{e(C)}finally{_.kJ(z)}return function(){return void L0k(C)}};
vON=function(e){return vC(e)&&UUg in e};
_.II=function(e,z,C){return nOs(e,z!=null?z:{},C===void 0?"":C)};
W1k=function(e,z){var C=_.b(_.II(e,void 0,"cPpJzc"));e=C.next().value;C=C.next().value;e[Izg]=C;e[WC]=z;return e};
Pkm=function(e){return!!e&&typeof e==="object"&&Object.getPrototypeOf(e)===Object.prototype};
RUk=function(e){return typeof e==="function"&&Izg in e&&typeof e[Izg]==="function"};
L1g=function(e,z){Object.defineProperty(e,WC,{get:function(){return z}})};
RI=function(e,z){if(PC(e)){var C=e.map(function(G){return RI(G,z)});
L1g(C,z);return C}if(Pkm(e)){C={};e=_.b(Object.entries(e));for(var w=e.next();!w.done;w=e.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;C[w]=RI(K,z)}L1g(C,z);return C}return W1k(e,z)};
hU5=function(e){if(PC(e))return e.map(function(K){return hU5(K)});
if(Pkm(e)){var z={};e=_.b(Object.entries(e));for(var C=e.next();!C.done;C=e.next()){var w=_.b(C.value);C=w.next().value;w=w.next().value;z[C]=hU5(w)}return z}return RUk(e)?e():e};
EO4=function(){var e={height:0,width:0};if(!Pkm(e))throw Error("Jb");var z=Symbol("Kb");return[RI(e,z),function(C,w){if(C[WC]===z)if(typeof w==="function"){var K=[].concat(_.s_(hU5(C)));w=w(K)||K;OCs(C,[].concat(_.s_(w)))}else OCs(C,w);else throw Error("Lb");}]};
OCs=function(e,z){if(RUk(e))e[Izg](z);else if(PC(e)&&PC(z))z=RI(z,e[WC]),e.length=0,e.push.apply(e,_.s_(z));else if((Pkm(e)||PC(e))&&(PC(z)||typeof z==="object"&&z!==null)){z=_.b(Object.entries(z));for(var C=z.next();!C.done;C=z.next()){var w=_.b(C.value);C=w.next().value;w=w.next().value;var K=e,G=K[C];Object.hasOwn(e,C)?OCs(G,w):K[C]=RI(w,e[WC])}}else throw Error("Mb");};
F1E=function(e){return Object.create(Object.assign({},Lj,e))};
fzm=function(){var e;return(e=Vug)!=null?e:Vug=F1E({consumerAllowSignalWrites:!0})};
_.hG=function(e,z,C){C=C===void 0?"":C;e=kEk(e);var w=e[HC];w.debugName=eUh(z==null?void 0:z.debugName,C,"[computed]");(z==null?void 0:z.equals)!=null&&(w.equal=z.equals);return e};
OH=function(e){var z=QM(SON);try{e()}finally{QM(z)}};
dUL=function(e,z,C){var w=uem(e);EH={name:C?w+" ("+C+")":w,isReactive:e.componentType!==Fy,parent:EH};e=z();EH=EH.parent;return e};
VM=function(){var e=EH;return e?e.isReactive:!1};
Sa=function(e,z,C){var w=EH;z&&(EH=z);try{return C==null?e():e.call(C)}catch(G){e=G;fj(e,EH);if(e!==DUk){iCL=EH;z=[];for(C=JG;C;){var K=void 0;z.push((K=C.debugName)!=null?K:"[context]");K=void 0;C=(K=C.parent)!=null?K:null}Nmo=z.reverse()}DUk=e;throw e;}finally{EH=w}};
fj=function(e,z){try{var C=sC4(z);if(C&&!e.componentStack&&(e.componentStack=C,$J.enableComponentStacksInErrorMessages)){var w=e.message+"\n\nComponent stack: "+C;e.stack&&(e.stack=e.stack.replace(e.message,w));e.message=w}}catch(K){}};
sC4=function(e){if(vC(e)&&e.name!==void 0&&e.isReactive!==void 0&&e.parent!==void 0||e===null){for(var z=0,C="";z<20&&e;)C+=e.name+" > ",e=e.parent,z++;e=C.slice(0,-3)}else if($J.enableContextBasedComponentStacks){a:{for(e=e===void 0?JG:e;e;){if(vON(e))break a;z=void 0;e=(z=e.parent)!=null?z:null}e=null}e=e.getComponentStack().slice(0,20).join(" > ")}else e="";return e};
uem=function(e){return e.debugName||e.name||"[component]"};
yXs=function(e){switch(e.onInitType){case Bm1:tu8.schedule(e);break;case gOm:$J.enableQueueEffectAndOnInitInitialRuns?jC4.enqueue(e):jC4.schedule(e);break;default:_.ca(e.onInitType)}};
z6E=function(e){if(!e.isDisposed)switch(e.effectType){case u0:cXm.schedule(e);break;case AXg:ZCE.schedule(e);break;case png:$J.enableQueueEffectAndOnInitInitialRuns||e.version!==0?e65.enqueue(e):e65.schedule(e);break;default:_.ca(e.effectType)}};
K$1=function(){if(dp>0)$J.flushRenderEffectsDuringRender&&cXm.flush();else{for(var e=_.b(Cps),z=e.next();!z.done;z=e.next())z.value.flush();wQL()}};
wQL=function(){_.k(function(e){if(e.nextAddress==1)return e.yield(Promise.resolve(),2);for(var z=_.b(oIg),C=z.next();!C.done;C=z.next())C.value.flush();_.E_(e)})};
Yc8=function(e){DK=!0;try{for(var z=_.b(e),C=z.next();!C.done;C=z.next()){for(var w=C.value,K=[w],G=w;G.parent!==void 0;)G=G.parent,G47(G)&&e.has(G)&&K.push(G);for(;K.length>0;){var X=K.pop();e.delete(X);X.run()}}}finally{DK=!1}};
i0=function(e){dp--;if(e){e=_.b(bZE);for(var z=e.next();!z.done;z=e.next())z.value.clear()}else dp>0||DK&&!$J.flushRenderEffectsDuringRender||K$1()};
XQg=function(e,z,C){e=Object.create(e);z&&(e.fn=z);C&&(e.debugName=C);Tt(e);e.componentStack=EH;return e};
JHL=function(e){if(!e.isDisposed){if(mp)throw Error("Qb");var z=_.kJ(e);Zpo("effectRun",e.debugName);try{Sa(function(){e.dirty=!1;if(!(e.version>0)||K1h(e)){e.version++;var C=YOg(e);try{e.cleanup(),e.fn()}finally{QM(C),e&&Xnm(e)}}},e.componentStack,e)}catch(C){throw $J.enableContextBasedComponentStacks&&fj(C),C;
}finally{p5E("effectRun",e.debugName),_.kJ(z)}}};
_.N6=function(e,z){e=XQg(k4N,e,z);z6E(e)};
_.sH=function(e,z){e=XQg(qch,e,z);z6E(e)};
xD1=function(e){return e};
TKE=function(e,z,C){function w(){return K()}
C=C===void 0?"":C;var K=typeof e==="function"?mUE(e,xD1,z==null?void 0:z.equals):mUE(e.source,e.computation,z==null?void 0:z.equals);var G=K[HC];G.debugName=eUh(z==null?void 0:z.debugName,C,"[linkedSignal]");w[HC]=G;return[w,function(X){azm(function(){M6(G);xU1(G,X);G.dirty=!1;G.lastCleanEpoch=nj},G)},
function(X){azm(function(){M6(G);GEN()||TmL(G);xU1(G,X(G.value));G.dirty=!1;G.lastCleanEpoch=nj},G)}]};
_.BC=function(e){var z=JG;if(z){var C=EH;R_s(z,function(){var w=QM(fzm());try{Sa(function(){return void e()},C)}catch(K){throw $J.enableContextBasedComponentStacks&&fj(K),K;
}finally{QM(w)}})}};
tG=function(e,z){var C={};(z===void 0||z)&&Tt(C);z=_.kJ(C);try{e(C)}finally{_.kJ(z)}return function(){return void L0k(C)}};
_.gp=function(e){return typeof e==="function"?e():(e==null?0:e[$D8])?e.get():e};
lVE=function(e){if(JG)throw Error("nb");tG(e,!1)};
ja=function(e,z){e=_.kJ(e);try{return _.UH(z)}finally{_.kJ(e)}};
yM=function(e,z){var C=sC4(iCL),w,K;var G=(K=(w=Nmo)==null?void 0:w.slice())!=null?K:[];z={componentStack:C,contextTrace:G,errorSeverity:3,featureFlags:Af7(),tagName:z};return[e,z]};
aVs=function(e,z,C){if(Object.hasOwnProperty.call(QOg,e)&&(e=QOg[e],Object.hasOwnProperty.call(e,z)&&(e=e[z],e instanceof Array))){for(var w=null,K=!1,G=0,X=e.length;G<X;++G){var J=e[G],q=J.contingentAttribute;if(!q)return J.contract;w===null&&(w={});q=Object.hasOwnProperty.call(w,q)?w[q]:w[q]=C(q);if(q===J.requiredValue)return J.contract;q==null&&(K=!0)}if(K)return null}z=mD4[z];return typeof z==="number"?z:null};
rHk=function(e,z,C){var w=null;(e=nIh[e])&&(w=e[z]);return typeof w!=="number"&&((e=nIh["*"])&&(w=e[z]),typeof w!=="number")?!1:!0===MYs[w][String(C).toLowerCase()]};
iZg=function(e,z){z=aVs(e.toLowerCase(),z,function(){var w;(w=$J.handleError)==null||w.call.apply(w,[$J].concat(_.s_(yM(Error("Tb"),e.toLowerCase()))))});
if(z===null)return null;var C;return(C=HZ4[z])!=null?C:null};
NKg=function(e,z,C){if(C===null||C===void 0)return C;z=z.toLowerCase();e=iZg(e,z);return e===null?C:e(z,C)};
sOs=function(){};
AG=function(e,z){for(;e.length>z;)e.pop()};
BKm=function(e){e=Array(e);AG(e,0);return e};
ZK=function(e,z,C){if(C==null)e.removeAttribute(z);else{var w;(w=z.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":z.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?e.setAttributeNS(w,z,C):e.setAttribute(z,C)}};
gIN=function(e,z,C){e=e.style;if(typeof C==="string")e.cssText=C;else{e.cssText="";for(var w in C)if(tYk.call(C,w)){z=e;var K=w,G=C[w];K.indexOf("-")>=0?z.setProperty(K,G):z[K]=G}}};
jOk=function(e,z,C){var w=typeof C;w==="object"||w==="function"?e[z]=C:ZK(e,z,C)};
yHL=function(){var e=new sOs;e[zR.default]=jOk;e.style=gIN;return e};
cH1=function(e,z,C,w){(w[z]||w[zR.default])(e,z,C)};
ZZL=function(e,z,C){z=new AH7(z,C);return e.__incrementalDOMData=z};
Cd=function(e,z){if(e.__incrementalDOMData)return e.__incrementalDOMData;var C=e.nodeType===1?e.localName:e.nodeName,w=e.nodeType===1?e.getAttribute("key"):null;z=ZZL(e,C,e.nodeType===1?w||z:null);if(e.nodeType===1&&(e=e.attributes,C=e.length)){w=z._attrsArr||(z._attrsArr=BKm(C*2));for(var K=0,G=0;K<C;K+=1,G+=2){var X=e[K],J=X.value;w[G]=X.name;w[G+1]=J}}return z};
pQ1=function(e,z,C,w,K){return z==C&&w==K};
e$g=function(e){for(var z=w1,C=Kd();C!==e;){var w=C.nextSibling;z.removeChild(C);oV.deleted.push(C);C=w}};
Kd=function(){return GR?GR.nextSibling:w1.firstChild};
Yi=function(){GR=Kd()};
wA5=function(e,z,C){Yi();var w;a:{if(w=GR){do{var K=w,G=e,X=z,J=Cd(K,X);if(z$7(K,G,J.nameOrCtor,X,J.key))break a}while(z&&(w=w.nextSibling))}w=null}w||(e==="#text"?(C=bi.createTextNode(""),ZZL(C,"#text",null),e=C):(w=bi,K=w1,typeof e==="function"?w=new e:w=(K=e==="svg"?"http://www.w3.org/2000/svg":e==="math"?"http://www.w3.org/1998/Math/MathML":K==null||Cd(K).nameOrCtor==="foreignObject"?null:K.namespaceURI)?w.createElementNS(K,e):w.createElement(e),ZZL(w,e,z),e=w,C&&e.setAttribute("nonce",C)),oV.created.push(e),
w=e);C=w;if(C!==GR){if(CB7.indexOf(C)>=0)for(e=w1,z=C.nextSibling,w=GR;w!==null&&w!==C;)K=w.nextSibling,e.insertBefore(w,z),w=K;else w1.insertBefore(C,GR);GR=C}};
KA5=function(e,z,C){wA5(e,z,C);w1=GR;GR=null;return w1};
oWN=function(){e$g(null);GR=w1;w1=w1.parentNode};
bGm=function(e,z){z=z===void 0?{}:z;var C=z.matches===void 0?pQ1:z.matches;return function(w,K,G){var X=oV,J=bi,q=CB7,T=X1,Q=JR,m=GR,a=w1,n=z$7;bi=w.ownerDocument;oV=new G01(w);z$7=C;X1=[];JR=[];GR=null;var H=w1=w.parentNode,I,L=Y8N.call(w);if((I=L.nodeType===11||L.nodeType===9?L.activeElement:null)&&w.contains(I)){for(L=[];I!==H;)L.push(I),I=I.parentNode||(H?I.host:null);H=L}else H=[];CB7=H;try{return e(w,K,G)}finally{w=oV,ki&&w.deleted.length>0&&ki(w.deleted),bi=J,oV=X,z$7=n,X1=T,JR=Q,GR=m,w1=a,
CB7=q}}};
XAs=function(e,z,C,w){qm.push(cH1);qm.push(e);qm.push(z);qm.push(C);qm.push(w)};
k01=function(e,z,C){var w=JR;z=z._attrsArr||(z._attrsArr=BKm(w.length));for(var K=!z.length||!1,G=0;G<w.length;G+=2){var X=w[G];if(K)z[G]=X;else if(z[G]!==X)break;var J=w[G+1];if(K||z[G+1]!==J)z[G+1]=J,XAs(e,X,J,C)}if(G<w.length||G<z.length){for(G=K=G;G<z.length;G+=2)xi[z[G]]=z[G+1];for(G=K;G<w.length;G+=2)K=w[G],X=w[G+1],xi[K]!==X&&XAs(e,K,X,C),z[G]=K,z[G+1]=X,delete xi[K];AG(z,w.length);for(var q in xi)XAs(e,q,void 0,C),delete xi[q]}e=J2E;J2E=C=qm.length;for(q=e;q<C;q+=5)(0,qm[q])(qm[q+1],qm[q+
2],qm[q+3],qm[q+4]);J2E=e;AG(qm,e);AG(w,0)};
q8m=function(e){wA5("#text",null);var z=GR;var C=Cd(z);if(C.text!==e){C=C.text=e;for(var w=1;w<arguments.length;w+=1)C=(0,arguments[w])(C);z.data!==C&&(z.data=C)}};
aO8=function(e,z,C){if(C===!1&&xx1.has(z))ZK(e,z,null);else if(z!=="idomKey"&&z!=="skip"&&z!=="skipchildren"&&z!=="children"&&z!=="el")if(z.startsWith("on")){if(z[2]!==":")throw Error("Sb`"+z);if(C===void 0||C===null){var w;(w=$J.handleError)==null||w.call.apply(w,[$J].concat(_.s_(yM(Error("Xb`"+z),e.tagName))));e[z]=void 0}else{var K=z.slice(3);w=VM();if(K==="jsaction"){C=Array.isArray(C)?C:[C];C=_.b(C);for(var G=C.next();!G.done;G=C.next()){G=G.value;if(typeof G!=="object"||G===null||typeof G.selfReg!==
"function")throw Error("$b`"+z);G.selfReg(0,e,w?_.BC:function(){})}}else{if(typeof C!=="object"||C===null)throw Error("Yb`"+z+"`"+typeof C);
if(typeof C.getFn!=="function")throw Error("Zb`"+z+"`"+Object.keys(C));if(C.selfReg)C.selfReg(0,e,K,w?_.BC:function(){});
else if(w&&e["on"+K]===void 0){var X=C.getFn(0);e.addEventListener(K,X);_.BC(function(){return void e.removeEventListener(K,X)})}else if(w||!TMm.includes(K))e["on"+K]=C.getFn(0)}}}else{if(z.startsWith("data-")&&typeof C==="string")try{C=$x4(C)}catch(J){C="zSoyz"}typeof C!=="function"||e._disposeEffects!=null?((w=z.startsWith("prop:"))&&(z=z.slice(5)),$J.enableAttributeSanitization&&(w&&lOs(e.tagName)||(C=NKg(e.tagName,z,C))),z==="style"?("function"==typeof _.TR&&C instanceof _.TR&&(C=C.toString()),
Qkg(e,z,C)):w?e[z]=C:mx1(e,z,C)):(e._signalProps||(e._signalProps=[]),e._signalValues||(e._signalValues=[]),e._signalProps.push(z))}};
nWN=function(e,z,C){C=(C===void 0?{}:C).isReactive;if(z==null?0:z.el){var w=z.el,K;(K=w.onRender)==null||K.call(w,e);e._disposeRef||(e._disposeRef=function(){var G;(G=w.onUnmount)==null||G.call(w);delete e._disposeRef},C&&_.BC(function(){var G;
(G=e._disposeRef)==null||G.call(e)}))}};
lOs=function(e){return e.length>0&&e.includes("-")&&!MCg.includes(e.toLowerCase())};
r2g=function(e){return vC(e)&&$i in e};
HGo=function(e){return r2g(e)?e[$i].flattened:e};
Ux1=function(e,z){var C=_.yL.apply(2,arguments),w;z=(w=z)!=null?w:{};w={};return w.type=e,w.props=z,w.children=C,w[li]=!0,w};
_.Qw=function(e){return e.children};
mM=function(e){var z=vW8!==Ux1;vW8=e?IOE:Ux1;return z};
_.aV=function(e){return _.gL(e)?"nodeType"in e:!1};
nd=function(){return document.createTextNode("")};
Mm=function(e){e=document.createTextNode(String(e));e._isSignalTextNode=!0;return e};
PB7=function(e){return e!=null&&e.contentKind===r1||e instanceof Zy||WAg(e)};
R$m=function(e){var z=document.createElement("div");if(WAg(e)&&O0k(e))_.ko(z,O0k(e));else if(e instanceof Zy)_.ko(z,e);else if(e!=null&&e.contentKind===r1){if(e.contentKind!==r1)throw Error("Wb");e=ec(e.toString());_.ko(z,e)}e=_.b(z.childNodes);for(var C=e.next();!C.done;C=e.next())C.value._isSafeOrSanitizedHtmlNode=!0;return z};
HR=function(e){e=typeof e;return e==="string"||e==="number"||e==="boolean"};
LA1=function(e){return e instanceof OC||dw(e)||e instanceof $o||"function"==typeof _.TR&&e instanceof _.TR};
h$7=function(e,z){var C=e.parentElement;if(!C)return z;C.replaceChild(z,e);return z};
OGg=function(e,z){var C=e[0].parentElement;if(C)if(e[0].previousSibling||e[e.length-1].nextSibling){C.insertBefore(z,e[0]);for(var w=e.length-1;w>=0;w--)C.removeChild(e[w])}else C.textContent="",C.appendChild(z);return z};
EW1=function(e,z){if(e[0].parentElement)for(var C=e[0].parentElement,w=z.length,K=e.length,G=w,X=0,J=0,q=e[K-1].nextSibling,T=null;X<K||J<G;)if(e[X]===z[J])X++,J++;else{for(;e[K-1]===z[G-1];)K--,G--;if(K===X)for(var Q=G<w?J?z[J-1].nextSibling:z[G-J]:q;J<G;){var m=z[J++];C.insertBefore(m,Q)}else if(G===J)for(;X<K;)Q=e[X],T&&T.has(Q)||C.removeChild(Q),X++;else if(e[X]===z[G-1]&&z[J]===e[K-1])Q=e[--K].nextSibling,C.insertBefore(z[J++],e[X++].nextSibling),C.insertBefore(z[--G],Q),e[K]=z[G];else{if(!T)for(T=
new Map,Q=J;Q<G;)T.set(z[Q],Q++);Q=T.get(e[X]);if(Q==null)C.removeChild(e[X]),X++;else if(J<Q&&Q<G){m=X;for(var a=1,n=void 0;++m<K&&m<G&&(n=T.get(e[m]))!=null&&n===Q+a;)a++;if(a>Q-J)for(m=e[X];J<Q;)C.insertBefore(z[J++],m);else C.replaceChild(z[J++],e[X++])}else X++}}return z};
VCN=function(e){if(Array.isArray(e)){if(e.length>1)throw Error("jc`"+e.length+"`"+e.map(FAE).join(", "));e=e[0]}if(e==null)return null;if(!(e instanceof _.G6)){var z,C;if((z=window)==null?0:(C=z.trustedTypes)==null?0:C.isScript(e))throw Error("ic");if(String(e).trim().length===0)return null;throw Error("kc`"+FAE(e));}return e};
fON=function(e,z){z=VCN(z);z!==null&&_.Xg(e,z)};
S85=function(e){if(Array.isArray(e)){if(e.length>1)throw Error("lc`"+e.length+"`"+e.map(FAE).join(", "));e=e[0]}if(e==null)return null;if(!(e instanceof $o)){if(String(e).trim().length===0)return null;throw Error("mc`"+FAE(e));}return e};
uh4=function(e,z){z=S85(z);z!==null&&(e.textContent=U15(z))};
FAE=function(e){return"("+typeof e+") "+(e!=null&&typeof e==="object"?e.constructor.name:typeof e)+" "+e};
dx5=function(){};
WR=function(e,z){z=z===void 0?{}:z;var C=Dx7(),w=!0,K,G=!!$J.legacyTriggerSoyRendererEvents;G&&(K=ipL());_.N6(function(){var X=!w&&z.isControlFlowComponent&&G,J=X?C[$i].flattened[0].parentElement:void 0;w=!1;_.Ug.setUp();z.isControlFlowComponent&&dp++;var q=C[0],T=C[$i].flattened,Q=mM(!0);try{var m=e(),a=iG1(q,m,C);Array.isArray(a)||(C[$i].flattened=[a]);var n=C[$i].flattened;if(T&&(!Array.isArray(T)||T.length!==0)){var H=Array.isArray(T)?T[0]:T,I=H[vR],L=H._disposeEffects;H._disposeEffects=void 0;
H=Array.isArray(n)?n[0]:n;H[vR]=I;H[vR]&&(H[vR].numNodes=H===n?1:n.length);H._disposeEffects=L}C[0]=a;z.isControlFlowComponent&&i0(!1)}catch(h){throw z.isControlFlowComponent&&i0(!0),h;}finally{mM(Q),_.Ug.tearDown()}X&&(X=K,X!=null||(X=_.UEE(document).getAppContext()),X.get(NMh).JSC$29820_getEventTarget().dispatchEvent(new skE(BM1,J,r1)))},z.debugName);
return C};
iG1=function(e,z,C){for(;typeof z==="function";)z=z();if(z!=null&&z[li]){var w,K,G;(G=$J.handleError)==null||G.call.apply(G,[$J].concat(_.s_(yM(Error("nc`"+((w=z.type)==null?void 0:w.TAG_NAME)),(K=z.type)==null?void 0:K.TAG_NAME))))}if(e==null)return z==null?nd():HR(z)?Mm(z):LA1(z)?Mm(z.toString()):_.aV(z)?z:z.length===0?nd():tC4(z,C);if(_.aV(e)){if(z==null)return h$7(e,nd());if(HR(z))return gWo(e,z);if(LA1(z))return gWo(e,z.toString());if(_.aV(z))return h$7(e,z);if(z.length===0)return h$7(e,nd());
z=tC4(z,C);EW1([e],C[$i].flattened);return z}e=PR(e);if(z==null)return OGg(e,nd());if(HR(z))return OGg(e,Mm(z));if(LA1(z))return OGg(e,Mm(z.toString()));if(_.aV(z))return EW1(e,[z])[0];if(z.length===0)return OGg(e,nd());z=tC4(z,C);EW1(e,C[$i].flattened);return z};
gWo=function(e,z){e.nodeType===Node.TEXT_NODE?e.textContent!==String(z)&&(e.textContent=String(z)):e=h$7(e,Mm(z));return e};
PR=function(e,z,C){return jk4(e,z!=null?z:[],C===void 0?!1:C)};
tC4=function(e,z){var C=PR(e,void 0,!0);if(C.length===0)return nd();z[$i].flattened=C;return e};
jk4=function(e,z,C,w,K){z=z===void 0?[]:z;C=C===void 0?!1:C;K=K===void 0?-1:K;if(e==null)return z;if(e instanceof RV){var G=e.render();return jk4(G,z,C,w,K)}if(_.aV(z)&&z.nodeType===Node.ELEMENT_NODE)switch(z.tagName){case "SCRIPT":fON(z,e);return;case "STYLE":uh4(z,e);return}HR(e)&&(e=Mm(e),w&&C&&(w[K]=e));if(PB7(e)){C=R$m(e);C=Array.from(C.childNodes);C=_.b(C);for(G=C.next();!G.done;G=C.next())y2g(z,G.value);return z}LA1(e)&&(e=Mm(e.toString()),w&&C&&(w[K]=e));if(_.aV(e))return y2g(z,e);if(Array.isArray(e)){for(G=
0;G<e.length;G++)jk4(e[G],z,C,e,G);return z}if(typeof e==="function"){G=WR(function(){var J=e();return J!=null&&!HR(J)&&PB7(J)?(J=R$m(J),Array.from(J.childNodes)):J},{debugName:"qmF2ne",
debugFn:e})[0];if(Array.isArray(G)){C=_.b(G);for(G=C.next();!G.done;G=C.next())y2g(z,G.value);return z}w&&C&&(w[K]=G);return y2g(z,G)}if(e!=null&&e[li]){w=e;K=mM(!0);var X=vW8;try{G=X.apply(null,[w.type,w.props].concat(_.s_(w.children)))}finally{mM(K)}return jk4(G,z,C)}(X=$J.handleError)==null||X.call.apply(X,[$J].concat(_.s_(yM(Error("oc")))));return z};
Dx7=function(e){var z={};z=Object.assign([],(z[$i]={flattened:[]},z));if(!e)return z;z[0]=tC4(e,z);return z};
y2g=function(e,z){Array.isArray(e)?e.push(z):e.appendChild(z);return e};
Ld=function(e){if(!$J.enableLazyTsx)return e;if(Array.isArray(e)){for(var z=0;z<e.length;z++)e[z]=Ld(e[z]);return e}return e instanceof RV?(e=e.render(),Ld(e)):e};
A2L=function(e,z){var C,w,K=uem(e),G=function(n){w=n;n=mM(!0);var H=QM(hR);Zpo("render",K);try{C=Ld(e(z))}finally{p5E("render",K),QM(H),mM(n)}};
G=$J.enableContextPerComponent?HCN(G,K):tG(G,$J.alwaysTrackContexts||!!JG);vON(w);if(!z.renderedFromIdom){var X=_.kJ(w);try{return c2h(e,z,C),C}finally{_.kJ(X)}}!r2g(C)&&Array.isArray(C)&&(C=Dx7(C));var J=HGo(C);X=Array.isArray(J)?J[0]:J;var q=!1;if(X){var T,Q=(T=z==null?void 0:z.idomKey)!=null?T:e;T=J!==X;X._disposeEffects=G;var m=X[vR]||{},a=r2g(C)?C:m.sourceDynamicRange;Object.assign(m,{key:Q,numNodes:T?J.length:1,context:w,higherOrder:!!X[vR],sourceDynamicRange:a});X[vR]=m}else q=!0;(function(){var n=
_.kJ(w);try{c2h(e,z,J)}finally{_.kJ(n)}})();
q&&G();return C};
ZG1=function(e){var z={},C;for(C in e)z={prev$jscomp$24:void 0,next$jscomp$33:void 0},z.prev$jscomp$24=Og[C],z.next$jscomp$33=e[C],Og[C]=function(w){return function(){var K=_.yL.apply(0,arguments);w.prev$jscomp$24.apply(null,_.s_(K));w.next$jscomp$33.apply(null,_.s_(K))}}(z)};
pAo=function(){if(VM())throw Error("pc");return Eg};
eDg=function(e,z){if(!e.__unmounted&&z){e.__unmounted=!0;try{e.didUnmount()}catch(K){var C,w;(w=$J.handleError)==null||w.call.apply(w,[$J].concat(_.s_(yM(K,(C=e.__type)==null?void 0:C.TAG_NAME))))}Og.didUnmount(e);e.el=null;z.__instance&&delete z.__instance}};
CYk=function(e,z,C){e._signalProps!=null&&e._disposeEffects==null&&((C===void 0?0:C)?e._disposeEffects=tG(function(){return void zD1(e,z)},$J.alwaysTrackContexts||!!JG):zD1(e,z))};
zD1=function(e,z){_.N6(function(){for(var C=e._signalProps,w=e._signalValues,K=0;K<C.length;K++){var G=C[K],X=z[G]();w[K]!==X&&(w[K]=X,aO8(e,G,X))}},"e3YVbb")};
wr7=function(e,z,C){var w,K=[];e._disposeEffects=tG(function(){_.N6(function(){var G=C();if(G===null||G===void 0)G="";if(HR(G)||G===null)w!=null||(w=document.createTextNode("")),w.parentNode!==e&&(w._isSignalTextNode=!0,e.insertBefore(w,z)),w.textContent=String(G);else if(PB7(G)){for(var X=K.length>0?K[K.length-1].nextSibling:z,J=_.b(K),q=J.next();!q.done;q=J.next())e.removeChild(q.value);G=R$m(G);K=Array.from(G.childNodes);G=_.b(K);for(J=G.next();!J.done;J=G.next())e.insertBefore(J.value,X)}else throw q=
(J=(X=EH)==null?void 0:X.name)!=null?J:"unknown",Error("ec`"+q+"`"+typeof G);},"VvDgC")},$J.alwaysTrackContexts||!!JG)};
Gos=function(e,z){var C=_.yL.apply(2,arguments);z!=null||(z={});return!$J.enableLazyTsx||EH!=null&&!VM()?KbE(e,z,C):new o11(e,z,C)};
KbE=function(e,z,C){if(e===_.Qw)return C;if(typeof e==="function")return EH&&!VM()&&(z.renderedFromIdom=!0),dUL(e,function(){var G=YXs(e,z,C);if(G)return G;C.length>0&&(z.children=C.length===1?C[0]:C);if(e.componentType===Fy){var X;HCN(function(){var J=z;if(e.componentType!==Fy)X=!1;else{J||(J={});var q=new F1(J,e),T=QM(hR);try{var Q=q.render(J)}finally{QM(T)}Q instanceof HTMLElement?(Q.__instance=q,q.el=Q,q.__type=e,e.TAG_NAME=Q.tagName.toLowerCase(),Og.didPatch(q),X=Q):X=Q}},e.name);
if(X)return X}return A2L(e,z)},z.debugInstance);
var w=bih(e,z),K;for(K in z)aO8(w,K,z[K]);CYk(w,z);PR(C,w);nWN(w,z,{isReactive:!0});Xrm(w,z);return w};
bih=function(e,z){e=(Jw5.has(e.toLowerCase())?0:koL.has(e.startsWith("svg:")?e.replace("svg:",""):e))?document.createElementNS("http://www.w3.org/2000/svg",e.startsWith("svg:")?e.replace("svg:",""):e):qX7(e,z)||document.createElement(e);e[x$1]=!0;return e};
TNm=function(e){if(e){var z;(z=e._disposeRef)==null||z.call(e);var C;(C=e._disposeEffects)==null||C.call(e);e.__instance&&e.__instance instanceof Vw&&(z=e.__instance,eDg(z,e),z instanceof F1&&z.disposeEffects());for(z=0;z<e.childNodes.length;z++)TNm(e.childNodes[z])}};
lPm=function(e){$$N.push(e)===1&&requestAnimationFrame(function(){setTimeout(function(){var z=[].concat(_.s_($$N));$$N=[];z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;try{for(var w=0;w<C.length;w++)TNm(C[w])}catch(K){w=C=void 0,(w=(C=$J).handleError)==null||w.call.apply(w,[C].concat(_.s_(yM(K))))}}})})};
_.x=function(e,z){return vW8.apply(null,[e,z].concat(_.s_(_.yL.apply(2,arguments))))};
_.fd=function(e){return e};
_.S5=function(e){return{isDefault:!0,children:e.children}};
_.l=function(e){var z=e.cond;if(z===void 0)return e.else&&e.else();var C=_.hG(function(){return!!z()},void 0,"JHVi8"),w=function(){var K=z();
if(!K){var G;(G=$J.handleError)==null||G.call.apply(G,[$J].concat(_.s_(yM(Qph.nonNullableCondIsNull()))))}return K};
return WR(function(){var K=C(),G;tG(function(){var X=QM(hR);try{G=Ld(K?e.then(w):e.else&&e.else())}finally{QM(X)}},!0);
return G},{debugName:e.debugInstance,
debugFn:e.then,isControlFlowComponent:!0})};
m$7=function(e){return _.l(e)};
_.ui=function(e){return e.keyBy==="INDEX"?aPk(e):n11(e)};
Myg=function(e){e=_.b(e);for(var z=e.next();!z.done;z=e.next()){var C=void 0;(C=z.value)==null||C()}};
n11=function(e){var z=e.keyBy===void 0||e.keyBy==="REFERENCE",C=z?function(Q){return Q}:e.keyBy,w=[],K=[],G=[],X=[],J=[],q=[],T=!0;
_.BC(function(){Myg(X)});
return WR(function(){var Q=rwm(e),m=Q.length;if(m===0){if(w.length===0&&!T)return G;Myg(X);w=Q;K=[];for(Q=0;Q<w.length;Q++)K.push(C(w[Q]));G=[];X=[];J=[];q=[];e.fallback&&(X[0]=HiE(function(){G[0]=Ld(e.fallback())}));
T=!1;return G}for(var a=new U$h,n=w.length-1;n>=0;n--)a.push(K[n],n);n=Array(m);for(var H=Array(m),I=Array(m),L=Array(m),h=Array(z?0:m),E={i$jscomp$451:0};E.i$jscomp$451<m;E={i$jscomp$451:E.i$jscomp$451,item$jscomp$104:void 0,key$jscomp$563:void 0},E.i$jscomp$451++){E.item$jscomp$104=Q[E.i$jscomp$451];E.key$jscomp$563=C(E.item$jscomp$104);var N=a.pop(E.key$jscomp$563);N!=null?(I[E.i$jscomp$451]=G[N],H[E.i$jscomp$451]=K[N],n[E.i$jscomp$451]=X[N],L[E.i$jscomp$451]=J[N],z||(h[E.i$jscomp$451]=q[N]),OH(function(D){return function(){L[D.i$jscomp$451](D.i$jscomp$451);
if(!z)h[D.i$jscomp$451](D.item$jscomp$104)}}(E)),delete X[N]):n[E.i$jscomp$451]=HiE(function(D){return function(){var g=_.b(_.II(D.i$jscomp$451,void 0,"Fqk1zd")),y=g.next().value;
g=g.next().value;L[D.i$jscomp$451]=g;H[D.i$jscomp$451]=D.key$jscomp$563;if(z)I[D.i$jscomp$451]=Ld(e.children(D.item$jscomp$104,y));else{var Z=_.b(_.II(D.item$jscomp$104,void 0,"GBj5de"));g=Z.next().value;Z=Z.next().value;h[D.i$jscomp$451]=Z;I[D.i$jscomp$451]=Ld(e.children(g,y))}}}(E))}Myg(X);
w=Q;K=H;G=I;X=n;J=L;q=h;T=!1;return I},{debugName:e.debugInstance,
debugFn:e.each,isControlFlowComponent:!0})};
aPk=function(e){var z=[],C=[],w=[],K=[],G=!1;_.BC(function(){Myg(K)});
return WR(function(){var X=rwm(e);G&&X.length>0&&(K.pop()(),z.pop(),G=!1);for(var J=Array(X.length),q={i$jscomp$452:0};q.i$jscomp$452<X.length;q={i$jscomp$452:q.i$jscomp$452},q.i$jscomp$452++)if(q.i$jscomp$452<z.length)z[q.i$jscomp$452]!==X[q.i$jscomp$452]&&(OH(function(Q){return function(){return void C[Q.i$jscomp$452](X[Q.i$jscomp$452])}}(q)),z[q.i$jscomp$452]=X[q.i$jscomp$452]),J[q.i$jscomp$452]=w[q.i$jscomp$452];
else{var T=HiE(function(Q){return function(){z[Q.i$jscomp$452]=X[Q.i$jscomp$452];var m=_.b(_.II(X[Q.i$jscomp$452],void 0,"JMMLmd")),a=m.next().value;m=m.next().value;C[Q.i$jscomp$452]=m;J[Q.i$jscomp$452]=Ld(e.children(a,Q.i$jscomp$452))}}(q));
K[q.i$jscomp$452]=T}for(;z.length>X.length;)z.pop(),K.pop()(),C.pop();X.length===0&&!G&&e.fallback&&(q=HiE(function(){J[0]=Ld(e.fallback())}),K[0]=q,G=!0);
return w=J},{debugName:e.debugInstance,
isControlFlowComponent:!0})};
rwm=function(e){e=e.each();return Array.isArray(e)?e:Array.from(e)};
HiE=function(e){var z=JG;return tG(function(C){var w=QM(hR);try{C.parent=z,e(C)}finally{QM(w)}},!1)};
_.d1=function(e){var z=v17(e),C=_.hG(function(){return IPN(z)},void 0,"F1PF4");
return WR(function(){var w=C(),K;tG(function(){var G=QM(hR);try{K=Ld(w())}finally{QM(G)}});
return K},{debugName:e.debugInstance,
isControlFlowComponent:!0})};
v17=function(e){e=e.children;return Array.isArray(e)?e:[e]};
Wbs=function(e){var z=e.props;e=e.getChildren()[0];return z.when?{when:z.when,children:e}:{isDefault:!0,children:e}};
IPN=function(e){var z=function(){return null};
e=_.b(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,C!=null&&C[li]&&(C=C.type===_.S5?{isDefault:!0,children:C.children[0]}:{when:C.props.when,children:C.children[0]}),C instanceof RV&&(C=Wbs(C)),C.isDefault)z=C.children;else if(C.when())return C.children;return z};
RD1=function(e){var z=null,C,w={get value(){var G,X;(X=(G=K).validateGetValue)==null||X.call(G);return K.__value},set value(G){var X,J;(J=(X=K).validateSetValue)==null||J.call(X,G);K.__value=G;K.__hasBeenSet=!0}},K=(w.__value=null,w.__hasBeenSet=!1,w.__hasErrored=!1,w.onRender=function(G){if(C&&G!==C){C._disposeRef=void 0;var X;(X=z)==null||X()}C=G;z=e(G)||null},w.onUnmount=function(){var G;
(G=z)==null||G();z=K.value=null},w[_.PYh]=!0,w);
return K};
D_=function(e){return typeof e==="symbol"};
hD8=function(e){var z=pAo();if(z==null)throw _.LbE.PRIMITIVE_INVALID_HOOK_CALL();var C=z.hookCounter++;z.hooks||(z.hooks=[]);var w=z.hooks;w[C]||(w[C]={key:e,host:z});if(e!==w[C].key){if(z.__type){var K;e=(K=z.__type)==null?void 0:K.name}else e=z instanceof F1?uem(z.functionComponent):"<"+z.el.tagName.toLowerCase()+">";throw _.LbE.OUT_OF_ORDER_HOOK_CALL(e);}return w[C]};
Oig=function(e,z){return!e||e.length!==(z==null?void 0:z.length)||e.some(function(C,w){return C!==z[w]})};
E11=function(e,z){var C=hD8("onChange"),w=pAo();Oig(C.deps,z)&&(C.deps=z,C.pendingEffect=e,w.__syncEffects||(w.__syncEffects=[]),w.__syncEffects.push(C))};
_.ii=function(e,z,C){C!=null||(C={});C=C.appContext;var w=!!$J.legacyTriggerSoyRendererEvents;_.Ug.setUp();try{var K=Fbg(e,z,C);w&&(z=C,z!=null||(z=_.UEE(document).getAppContext()),z.get(NMh).JSC$29820_getEventTarget().dispatchEvent(new skE(Vyh,e,r1)));_.Ug.log(e);return K}finally{_.Ug.tearDown()}};
Fbg=function(e,z,C){var w=Sa(function(){var K=QM(hR);try{return tG(function(){var G=_.UEE(_.t0(e)),X;var J=DEg({rootElement:{value:e},appContext:C||(G==null?void 0:(X=G.getOptionalAppContext)==null?void 0:X.call(G)),dispatcher:G});G=_.kJ(J);J=mM(!0);dp++;try{PR(z(),e),i0(!1)}catch(q){throw i0(!0),q;}finally{mM(J),_.kJ(G)}},!1)}catch(G){throw $J.enableContextBasedComponentStacks&&fj(G),G;
}finally{QM(K)}});
e[fPs]=!0;return function(){e.textContent="";w();e[fPs]=!1}};
_.Nm=function(e){if(G47(l0)){var z;(z=$J.handleError)==null||z.call.apply(z,[$J].concat(_.s_(yM(Error("dc")))))}var C=JG,w=EH;yXs({onInitType:gOm,run:function(){if(C&&!C.isDisposed){var K=_.kJ(C);try{Sa(function(){return void e()},w)}catch(G){throw $J.enableContextBasedComponentStacks&&fj(G),G;
}finally{_.kJ(K)}}}})};
SXE=function(e,z){E11(function(){return _.UH(e)},z)};
_.sg=function(e){VM()?_.Nm(function(){_.UH(e)}):E11(function(){return _.UH(e)},[])};
d$7=function(e){var z=[].concat(_.s_(e));e.length=0;e=_.b(z);for(z=e.next();!z.done;z=e.next()){z=z.value;uug(z);var C=z.pendingEffect;z.pendingEffect=null;if(C=C==null?void 0:C())z.pendingCleanup=C}};
uug=function(e){var z=e.pendingCleanup;e.pendingCleanup=null;z==null||z()};
D$L=function(e,z){if(VM())return e();var C=hD8("useMemoInternal");Oig(C.deps,z)&&(C.deps=z,C.value=e());return C.value};
iig=function(e,z){return D$L(e,z)};
NNE=function(e){return D$L(function(){return{value:e}},[])};
_.BR=function(e,z){if(!e)return null;e=Object.keys(e);e=_.b(e);for(var C=e.next();!C.done;C=e.next()){C=C.value;var w=C.toLowerCase();if(w.indexOf(z,w.length-z.length)>-1)return C}return null};
_.g1=function(){var e=arguments,z=_.tR;e.length>1?z[e[0]]=e[1]:e.length===1&&Object.assign(z,e[0])};
_.j5=function(e,z){return e in _.tR?_.tR[e]:z};
_.cR=function(e,z){return!!_.j5(e,z)};
sph=function(e){var z=_.tR.EXPERIMENT_FLAGS;return z?z[e]:void 0};
tyN=function(e){BNg.forEach(function(z){return z(e)})};
_.Z_=function(e){return e&&window.yterr?function(){try{return e.apply(this,arguments)}catch(z){_.AR(z)}}:e};
_.AR=function(e){var z=_.pd("yt.logging.errors.log");z?z(e,"ERROR",void 0,void 0,void 0,void 0,void 0):(z=_.j5("ERRORS",[]),z.push([e,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.g1("ERRORS",z));tyN(e)};
_.es=function(e,z,C,w,K){var G=_.pd("yt.logging.errors.log");G?G(e,"WARNING",z,C,w,void 0,K):(G=_.j5("ERRORS",[]),G.push([e,"WARNING",z,C,w,void 0,K]),_.g1("ERRORS",G))};
jpk=function(e,z){z=e.split(z);for(var C={},w=0,K=z.length;w<K;w++){var G=z[w].split("=");if(G.length===1&&G[0]||G.length===2)try{var X=g18(G[0]||""),J=g18(G[1]||"");if(X in C){var q=C[X];Array.isArray(q)?_.tk(q,J):C[X]=[q,J]}else C[X]=J}catch(a){var T=a,Q=G[0],m=String(jpk);T.args=[{key:Q,value:G[1],query:e,method:yw7===m?"unchanged":m}];cw1.hasOwnProperty(Q)||_.es(T)}}return C};
Awh=function(e){var z=[];_.de.forEach(e,function(C,w){var K=_.K0(w);C=Array.isArray(C)?C:[C];_.oX(C,function(G){G==""?z.push(K):z.push(K+"="+_.K0(G))})});
return z.join("&")};
_.GN=function(e){e.charAt(0)==="?"&&(e=e.substring(1));return jpk(e,"&")};
_.YB=function(e){return e.indexOf("?")!==-1?(e=(e||"").split("#")[0],e=e.split("?",2),_.GN(e.length>1?e[1]:e[0])):{}};
_.bh=function(e,z){return Zig(e,z||{},!0)};
prh=function(e,z){return Zig(e,z||{},!1)};
Zig=function(e,z,C){var w=e.split("#",2);e=w[0];w=w.length>1?"#"+w[1]:"";var K=e.split("?",2);e=K[0];K=_.GN(K[1]||"");for(var G in z)if(C||!_.de.containsKey(K,G))K[G]=z[G];return _.XF(e,K)+w};
xB=function(e){if(!z)var z=window.location.href;var C=_.JJ(e)[1]||null,w=_.kB(e);return C&&w?qv(e,z):w?_.kB(z)===w&&(Number(_.JJ(z)[4]||null)||null)===(Number(_.JJ(e)[4]||null)||null):!0};
_.zNg=function(e){e=eNo(e);return e===null?!1:e[0]==="com"&&e[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
eNo=function(e){e=_.kB(e);return e!==null?e.split(".").reverse():null};
g18=function(e){return e&&e.match(Cd1)?e:TN(e)};
_.$B=function(e){return new wfN(e)};
_.lh=function(){Km8||(Km8=new okN);return Km8};
Y6N=function(){var e=Gj8;return function(){var z=_.lh();if(!z.resolve(_.$B(e))){var C={};z.addProvider((C.provide=e,C.useClass=e,C[Qj]=void 0,C))}return z.resolve(e)}};
Xf7=function(e){var z=_.ms,C,w;_.k(function(K){C=_.lh();return(w=C.resolve(_.$B(z)))?(e(w),K.return(Promise.resolve(w))):K.return(C.resolve(new bK1(z)).then(function(G){e(G);return G}))})};
_.M=function(e){e=aX(e);return typeof e==="string"&&e==="false"?!1:!!e};
_.n0=function(e,z){e=aX(e);return e===void 0&&z!==void 0?z:Number(e||0)};
JgE=function(e){e=aX(e);return Array.isArray(e)?_.i4(e,function(z){return Number(z||0)}):[Number(e||0)]};
_.Mv=function(e){e=aX(e);return e!==void 0?String(e):""};
_.r3=function(e){e=aX(e);return Array.isArray(e)?_.i4(e,function(z){return String(z||"")}):[String(e||"")]};
kjs=function(){return _.j5("EXPERIMENTS_TOKEN","")};
aX=function(e){return _.j5("EXPERIMENT_FLAGS",{})[e]};
q6g=function(){for(var e=[],z=_.j5("EXPERIMENTS_FORCED_FLAGS",{}),C=_.b(Object.keys(z)),w=C.next();!w.done;w=C.next())w=w.value,e.push({key:w,value:String(z[w])});C=_.j5("EXPERIMENT_FLAGS",{});w=_.b(Object.keys(C));for(var K=w.next();!K.done;K=w.next())K=K.value,K.startsWith("force_")&&z[K]===void 0&&e.push({key:K,value:String(C[K])});return e};
TQs=function(){if(!xLo)return null;var e=xLo();return"open"in e?e:null};
_.$Lm=function(e){switch(_.Hi(e)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Hi=function(e){return e&&"status"in e?e.status:-1};
_.U3=function(e,z){typeof e==="function"&&(e=_.Z_(e));return window.setTimeout(e,z)};
_.vi=function(e,z){typeof e==="function"&&(e=_.Z_(e));return window.setInterval(e,z)};
_.Wi=function(e){window.clearTimeout(e)};
QSg=function(e){e=_.YB(e);for(var z=_.b(lEg),C=z.next();!C.done;C=z.next())if(e[C.value]!==void 0)return!0;return!1};
nkL=function(e,z,C,w,K,G,X,J,q){C=C===void 0?"GET":C;w=w===void 0?"":w;J=J===void 0?!1:J;var T=TQs();if(!T)return null;var Q=function(){(T&&"readyState"in T?T.readyState:0)===4&&z&&_.Z_(z)(T)};
"onloadend"in T?T.addEventListener("loadend",Q,!1):T.onreadystatechange=Q;_.M("debug_forward_web_query_parameters")&&(e=mLN(e,window.location.search));T.open(C,e,!0);G&&(T.responseType=G);X&&(T.withCredentials=!0);C=C==="POST"&&(window.FormData===void 0||!(w instanceof FormData));if(K=aEE(e,K))for(var m in K)T.setRequestHeader(m,K[m]),"content-type"===m.toLowerCase()&&(C=!1);C&&T.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q&&"onprogress"in T&&(T.onprogress=function(){q(T.responseText)});
if(J&&"setAttributionReporting"in XMLHttpRequest.prototype){e={eventSourceEligible:!0,triggerEligible:!1};try{T.setAttributionReporting(e)}catch(a){_.es(a)}}T.send(w);return T};
aEE=function(e,z){z=z===void 0?{}:z;var C=xB(e),w=_.j5("INNERTUBE_CLIENT_NAME"),K=_.M("web_ajax_ignore_global_headers_if_set"),G;for(G in MAs){var X=_.j5(MAs[G]),J=G==="X-Goog-AuthUser"||G==="X-Goog-PageId";G!=="X-Goog-Visitor-Id"||X||(X=_.j5("VISITOR_DATA"));var q;if(!(q=!X)){if(!(q=C||(_.kB(e)?!1:!0))){q=e;var T;if(T=_.M("add_auth_headers_to_remarketing_google_dot_com_ping")&&G==="Authorization"&&(w==="TVHTML5"||w==="TVHTML5_UNPLUGGED"||w==="TVHTML5_SIMPLY"))T=eNo(q),T=T===null?!1:T[1]==="google"?
!0:T[2]==="google"?T[0]==="au"&&T[1]==="com"?!0:T[0]==="uk"&&T[1]==="co"?!0:!1:!1;T&&(q=_.Pi(q)||"",q=q.split("/"),q="/"+(q.length>1?q[1]:""),T=q==="/pagead");q=T?!0:!1}q=!q}q||K&&z[G]!==void 0||w==="TVHTML5_UNPLUGGED"&&J||(z[G]=X)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];if(C||!_.kB(e))z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(C||!_.kB(e)){try{var Q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}Q&&(z["X-YouTube-Time-Zone"]=
Q)}document.location.hostname.endsWith("youtubeeducation.com")||!C&&_.kB(e)||(z["X-YouTube-Ad-Signals"]=Awh(rgh()));return z};
_.HKk=function(e,z){var C=_.kB(e);_.M("debug_handle_relative_url_for_query_forward_killswitch")||!C&&xB(e)&&(C=document.location.hostname);var w=_.Pi(e);w=(C=C&&(C.endsWith("youtube.com")||C.endsWith("youtube-nocookie.com")))&&w&&w.startsWith("/api/");if(!C||w)return e;var K=_.GN(z),G={};_.oX(lEg,function(X){K[X]&&(G[X]=K[X])});
return prh(e,G)};
ULN=function(e,z){z.method="POST";z.postParams||(z.postParams={});return _.RX(e,z)};
vkE=function(e,z){var C=_.j5("XSRF_FIELD_NAME"),w;z.headers&&(w=z.headers["Content-Type"]);return!z.excludeXsrf&&(!_.kB(e)||z.withCredentials||_.kB(e)===document.location.hostname)&&z.method==="POST"&&(!w||w==="application/x-www-form-urlencoded")&&!(z.postParams&&z.postParams[C])};
_.RX=function(e,z){var C=z.format||"JSON";e=IEs(e,z);var w=Wm7(e,z),K=!1,G=Pd1(e,function(q){if(!K){K=!0;J&&_.Wi(J);var T=_.$Lm(q),Q=null,m=400<=q.status&&q.status<500,a=500<=q.status&&q.status<600;if(T||m||a)Q=RNg(e,C,q,z.convertToSafeHtml);T&&(T=Lms(C,q,Q));Q=Q||{};m=z.context||_.wL;T?z.onSuccess&&z.onSuccess.call(m,q,Q):z.onError&&z.onError.call(m,q,Q);z.onFinish&&z.onFinish.call(m,q,Q)}},z.method,w,z.headers,z.responseType,z.withCredentials,!1,z.onProgress);
w=z.timeout||0;if(z.onTimeout&&w>0){var X=z.onTimeout;var J=_.U3(function(){K||(K=!0,G.abort(),_.Wi(J),X.call(z.context||_.wL,G))},w)}return G};
IEs=function(e,z){z.includeDomain&&(e=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+e);var C=_.j5("XSRF_FIELD_NAME");if(z=z.urlParams)z[C]&&delete z[C],e=_.bh(e,z);return e};
Wm7=function(e,z){var C=_.j5("XSRF_FIELD_NAME"),w=_.j5("XSRF_TOKEN"),K=z.postBody||"",G=z.postParams;vkE(e,z)&&(G||(G={}),G[C]=w);(_.M("ajax_parse_query_data_only_when_filled")&&G&&Object.keys(G).length>0||G)&&typeof K==="string"&&(K=_.GN(K),_.de.extend(K,G),K=z.postBodyFormat&&z.postBodyFormat==="JSON"?JSON.stringify(K):_.L0(K));G=K||G&&!_.de.isEmpty(G);!hNo&&G&&z.method!=="POST"&&(hNo=!0,_.AR(Error("Jc")));return K};
RNg=function(e,z,C,w){var K=null;switch(z){case "JSON":try{var G=C.responseText}catch(X){throw w=Error("Kc"),w.params=e,_.es(w),X;}e=C.getResponseHeader("Content-Type")||"";G&&e.indexOf("json")>=0&&(G.substring(0,5)===")]}'\n"&&(G=G.substring(5)),K=JSON.parse(G));break;case "XML":if(e=(e=C.responseXML)?OKo(e):null)K={},_.oX(e.getElementsByTagName("*"),function(X){K[X.tagName]=Eko(X)})}w&&Fm7(K);
return K};
Fm7=function(e){if(_.gL(e))for(var z in e)z==="html_content"||Gg(z,"_html")?e[z]=ec(e[z]):Fm7(e[z])};
Lms=function(e,z,C){if(z&&z.status===204)return!0;switch(e){case "JSON":return!!C;case "XML":return Number(C&&C.return_code)===0;case "RAW":return!0;default:return!!C}};
OKo=function(e){return e?(e=("responseXML"in e?e.responseXML:e).getElementsByTagName("root"))&&e.length>0?e[0]:null:null};
Eko=function(e){var z="";_.oX(e.childNodes,function(C){z+=C.nodeValue});
return z};
VA7=function(e){if(e.name==="JavaException")return!0;e=e.stack;return e.includes("chrome://")||e.includes("-extension://")||e.includes("webkit-masked-url://")};
fE7=function(e){if(!e.stack)return!0;var z=!e.stack.includes("\n");return z&&e.stack.includes("ErrorType: ")||z&&e.stack.includes("Anonymous function (Unknown script")||e.stack.toLowerCase()==="not available"||e.fileName==="user-script"||e.fileName.startsWith("user-script:")?!0:!1};
_.hJ=function(e){_.Sn.call(this);this.JSC$10688_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!e};
uVL=function(e,z){var C=e.length,w=0,K=function(){return e.charCodeAt(w++)};
do{var G=S6h(K);if(G===Infinity)break;var X=G>>3;switch(G&7){case 0:G=S6h(K);if(X===z)return G;break;case 1:if(X===z)return;w+=8;break;case 2:G=S6h(K);if(X===z)return e.substr(w,G);w+=G;break;case 5:if(X===z)return;w+=4;break;default:return}}while(w<C)};
S6h=function(e){var z=e(),C=z&127;if(z<128)return C;z=e();C|=(z&127)<<7;if(z<128)return C;z=e();C|=(z&127)<<14;if(z<128)return C;z=e();return z<128?C|(z&127)<<21:Infinity};
DLg=function(e,z,C,w){if(e)if(Array.isArray(e)){var K=w;for(w=0;w<e.length&&!(e[w]&&(K+=dLk(w,e[w],z,C),K>500));w++);w=K}else if(typeof e==="object")for(K in e){if(e[K]){var G=K;var X=e[K],J=z,q=C;G=typeof X!=="string"||G!=="clickTrackingParams"&&G!=="trackingParams"?0:(X=uVL(atob(X.replace(/-/g,"+").replace(/_/g,"/")),2))?dLk(G+".ve",X,J,q):0;w+=G;w+=dLk(K,e[K],z,C);if(w>500)break}}else C[z]=O3(e),w+=C[z].length;else C[z]=O3(e),w+=C[z].length;return w};
dLk=function(e,z,C,w){C+="."+e;e=O3(z);w[C]=e;return C.length+e.length};
O3=function(e){try{return(typeof e==="string"?e:String(JSON.stringify(e))).substr(0,500)}catch(z){return"unable to serialize "+typeof e+" ("+z.message+")"}};
iKh=function(e){switch(e){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}};
_.FF=function(e,z,C,w,K){_.E3.set(e,z,{maxAge:C,path:"/",domain:w===void 0?"youtube.com":w,secure:K===void 0?!1:K})};
_.NQk=function(e,z,C){_.E3.remove(e,z===void 0?"/":z,C===void 0?"youtube.com":C)};
_.Vj=function(){if(_.M("embeds_web_enable_cookie_detection_fix")){if(!_.wL.navigator.cookieEnabled)return!1}else if(!_.E3.isEnabled())return!1;if(!_.E3.isEmpty())return!0;_.M("embeds_web_enable_cookie_detection_fix")?_.E3.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.E3.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.E3.get("TESTCOOKIESENABLED")!=="1")return!1;_.E3.remove("TESTCOOKIESENABLED");return!0};
sSE=function(){var e=_.wL.navigator;return e?e.connection:void 0};
BQE=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){}};
_.gks=function(){var e=sSE();if(e){var z=tAm[e.type||"unknown"]||"CONN_UNKNOWN";e=tAm[e.effectiveType||"unknown"]||"CONN_UNKNOWN";z==="CONN_CELLULAR_UNKNOWN"&&e!=="CONN_UNKNOWN"&&(z=e);if(z!=="CONN_UNKNOWN")return z;if(e!=="CONN_UNKNOWN")return e}};
ygE=function(){var e=sSE();if(e!=null&&e.effectiveType)return jS1.hasOwnProperty(e.effectiveType)?jS1[e.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Ss=function(){try{return _.f0(),!0}catch(e){return!1}};
_.f0=function(e){if(_.j5("DATASYNC_ID")!==void 0)return _.j5("DATASYNC_ID");throw new _.uh("Datasync ID not set",e===void 0?"unknown":e);};
_.d3=function(e){this.mechanism=e};
D6=function(e){this.mechanism=e};
ih=function(e){this.storage_=e;this.cachedIsStorageAvailable_=null};
cg4=function(){var e=null;try{e=_.wL.localStorage||null}catch(z){}ih.call(this,e)};
Agm=function(){var e=null;try{e=_.wL.sessionStorage||null}catch(z){}ih.call(this,e)};
Nv=function(e,z){this.mechanism_=e;this.JSC$10791_prefix_=z+"::"};
_.s3=function(e){var z=new cg4;return z.isAvailable()?e?new Nv(z,e):z:null};
_.ZK1=function(e){var z=new Agm;return z.isAvailable()?e?new Nv(z,e):z:null};
eA1=function(){var e;return(e=pfm())==null?void 0:e.get("LAST_RESULT_ENTRY_KEY",!0)};
_.g3=function(e){zAN||(_.Bi?_.Bi.logError(e):(_.tJ.push({type:"ERROR",payload:e}),_.tJ.length>10&&_.tJ.shift()))};
js=function(e,z){zAN||(_.Bi?_.Bi.logEvent(e,z):(_.tJ.push({type:"EVENT",eventType:e,payload:z}),_.tJ.length>10&&_.tJ.shift()))};
yj=function(e){if(e.indexOf(":")>=0)throw Error("Rc");};
ci=function(e){return e.substr(0,e.indexOf(":"))||e};
K64=function(){return(C7s||wHm)&&AJ("applewebkit")&&!AJ("version")&&(!AJ("safari")||AJ("gsa/"))};
AJ=function(e){var z=_.Q1();return z?z.toLowerCase().indexOf(e)>=0:!1};
Yk7=function(e,z,C,w){z=ci(z);var K=e instanceof Error?e:Error("Sc`"+e);if(K instanceof Z6)return K;e={objectStoreNames:C,dbName:z,dbVersion:w};if(K.name==="QuotaExceededError")return new Z6("QUOTA_EXCEEDED",e);if(_.p0&&K.name==="UnknownError")return new Z6("QUOTA_MAYBE_EXCEEDED",e);if(K instanceof ozs)return new Z6("MISSING_INDEX",Object.assign({},e,{objectStore:K.objectStore,index:K.index}));if(K.name==="InvalidStateError"&&Gqs.some(function(G){return K.message.includes(G)}))return new Z6("EXECUTE_TRANSACTION_ON_CLOSED_DB",
e);
if(K.name==="AbortError")return new Z6("UNKNOWN_ABORT",e,K.message);K.args=[Object.assign({},e,{name:"IdbError",originalName:K.name})];K.level="WARNING";return K};
ex=function(e,z,C){var w=eA1();return new Z6("IDB_NOT_SUPPORTED",{context:{caller:e,publicName:z,version:C,hasSucceededOnce:w==null?void 0:w.hasSucceededOnce}})};
b4o=function(e){if(!e)throw Error();throw e;};
XHE=function(e){return e};
JOE=function(e,z,C){var w=function(){try{e.removeEventListener("success",K),e.removeEventListener("error",G)}catch(X){}},K=function(){z(e.result);
w()},G=function(){C(e.error);
w()};
e.addEventListener("success",K);e.addEventListener("error",G)};
kqs=function(e){return new Promise(function(z,C){JOE(e,z,C)})};
wa=function(e){return new zT(new Cp(function(z,C){JOE(e,z,C)}))};
qkL=function(e,z){return new zT(new Cp(function(C,w){var K=function(){var G=e?z(e):null;G?G.then(function(X){e=X;K()},w):C()};
K()}))};
xqk=function(e,z,C){return new Promise(function(w,K){var G=z!==void 0?self.indexedDB.open(e,z):self.indexedDB.open(e);var X=C.blocked,J=C.blocking,q=C.terminated,T=C.upgrade,Q=C.closed,m,a=function(){m||(m=new Kp(G.result,{closed:Q}));return m};
G.addEventListener("upgradeneeded",function(n){try{if(n.newVersion===null)throw Error("Xc");if(G.transaction===null)throw Error("Yc");n.dataLoss&&n.dataLoss!=="none"&&js("IDB_DATA_CORRUPTED",{reason:n.dataLossMessage||"unknown reason",dbName:ci(e)});var H=a(),I=new GT(G.transaction);T&&T(H,function(L){return n.oldVersion<L&&n.newVersion>=L},I);
I.done.catch(function(L){K(L)})}catch(L){K(L)}});
G.addEventListener("success",function(){var n=G.result;J&&n.addEventListener("versionchange",function(){J(a())});
n.addEventListener("close",function(){js("IDB_UNEXPECTEDLY_CLOSED",{dbName:ci(e),dbVersion:n.version});q&&q()});
w(a())});
G.addEventListener("error",function(){K(G.error)});
X&&G.addEventListener("blocked",function(){X()})})};
TkE=function(e,z,C){C=C===void 0?{}:C;return xqk(e,z,C)};
_.bM=function(e,z){z=z===void 0?{}:z;var C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return _.Iv(X,2),C=self.indexedDB.deleteDatabase(e),w=z,(K=w.blocked)&&C.addEventListener("blocked",function(){K()}),X.yield(kqs(C),4);
if(X.nextAddress!=2)return _.Yj(X,0);G=_.O_(X);throw Yk7(G,e,"",-1);})};
ldg=function(e,z){var C;return _.k(function(w){if(w.nextAddress==1)return w.yield(_.X0($qh,z),2);C=w.yieldResult;return w.return(_.Jf(C,["databases"],{enableRetries:!0,mode:"readwrite"},function(K){var G=K.objectStore("databases");return G.get(e.actualName).then(function(X){if(X?e.actualName!==X.actualName||e.publicName!==X.publicName||e.userIdentifier!==X.userIdentifier:1)return G.put(e).then(function(){})})}))})};
_.kj=function(e,z){var C;return _.k(function(w){if(w.nextAddress==1)return e?w.yield(_.X0($qh,z),2):w.return();C=w.yieldResult;return w.return(C.delete("databases",e))})};
_.Qu1=function(e,z){var C,w;return _.k(function(K){return K.nextAddress==1?(C=[],K.yield(_.X0($qh,z),2)):K.nextAddress!=3?(w=K.yieldResult,K.yield(_.Jf(w,["databases"],{enableRetries:!0,mode:"readonly"},function(G){C.length=0;return qE(G.objectStore("databases"),{},function(X){e(X.getValue())&&C.push(X.getValue());return X.continue()})}),3)):K.return(C)})};
mqN=function(e,z){return _.Qu1(function(C){return C.publicName===e&&C.userIdentifier!==void 0},z)};
MJ5=function(){var e,z,C,w;return _.k(function(K){switch(K.nextAddress){case 1:e=eA1();if((z=e)==null?0:z.hasSucceededOnce)return K.return(!0);var G;if(G=ad8)G=/WebKit\/([0-9]+)/.exec(_.Q1()),G=!!(G&&parseInt(G[1],10)>=600);G&&(G=/WebKit\/([0-9]+)/.exec(_.Q1()),G=!(G&&parseInt(G[1],10)>=602));if(G||xj)return K.return(!1);try{if(C=self,!(C.indexedDB&&C.IDBIndex&&C.IDBKeyRange&&C.IDBObjectStore))return K.return(!1)}catch(X){return K.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return K.return(!1);
_.Iv(K,2);w={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return K.yield(ldg(w,nzg),4);case 4:return K.yield(_.kj("yt-idb-test-do-not-use",nzg),5);case 5:return K.return(!0);case 2:return _.O_(K),K.return(!1)}})};
H4o=function(){if(rO4!==void 0)return rO4;zAN=!0;return rO4=MJ5().then(function(e){zAN=!1;var z;if((z=pfm())!=null&&z.hasLocalStorage()){var C;z={hasSucceededOnce:((C=eA1())==null?void 0:C.hasSucceededOnce)||e};var w;(w=pfm())==null||w.set("LAST_RESULT_ENTRY_KEY",z,2592E3,!0)}return e})};
TT=function(){return _.pd("ytglobal.idbToken_")||void 0};
_.QZ=function(){var e=TT();return e?Promise.resolve(e):H4o().then(function(z){(z=z?nzg:void 0)&&_.lM("ytglobal.idbToken_",z);return z})};
Uqk=function(e){if(!_.Ss())throw e=new Z6("AUTH_INVALID",{dbName:e}),_.g3(e),e;var z=_.f0();return{actualName:e+":"+z,publicName:e,userIdentifier:z}};
vzg=function(e,z,C,w){var K,G,X,J,q,T;return _.k(function(Q){switch(Q.nextAddress){case 1:return G=(K=Error().stack)!=null?K:"",Q.yield(_.QZ(),2);case 2:X=Q.yieldResult;if(!X)throw J=ex("openDbImpl",e,z),_.M("ytidb_async_stack_killswitch")||(J.stack=J.stack+"\n"+G.substring(G.indexOf("\n")+1)),_.g3(J),J;yj(e);q=C?{actualName:e,publicName:e,userIdentifier:void 0}:Uqk(e);_.Iv(Q,3);return Q.yield(ldg(q,X),5);case 5:return Q.yield(TkE(q.actualName,z,w),6);case 6:return Q.return(Q.yieldResult);case 3:return T=
_.O_(Q),_.Iv(Q,7),Q.yield(_.kj(q.actualName,X),9);case 9:_.Yj(Q,8);break;case 7:_.O_(Q);case 8:throw T;}})};
IdN=function(e,z,C){C=C===void 0?{}:C;return vzg(e,z,!1,C)};
W6o=function(e,z,C){C=C===void 0?{}:C;return vzg(e,z,!0,C)};
P7E=function(e,z){z=z===void 0?{}:z;var C,w;return _.k(function(K){if(K.nextAddress==1)return K.yield(_.QZ(),2);if(K.nextAddress!=3){C=K.yieldResult;if(!C)return K.return();yj(e);w=Uqk(e);return K.yield(_.bM(w.actualName,z),3)}return K.yield(_.kj(w.actualName,C),0)})};
RA7=function(e,z,C){e=e.map(function(w){return _.k(function(K){return K.nextAddress==1?K.yield(_.bM(w.actualName,z),2):K.yield(_.kj(w.actualName,C),0)})});
return Promise.all(e).then(function(){})};
L6s=function(e){var z=z===void 0?{}:z;var C,w;return _.k(function(K){if(K.nextAddress==1)return K.yield(_.QZ(),2);if(K.nextAddress!=3){C=K.yieldResult;if(!C)return K.return();yj(e);return K.yield(mqN(e,C),3)}w=K.yieldResult;return K.yield(RA7(w,z,C),0)})};
hA5=function(e,z){z=z===void 0?{}:z;var C;return _.k(function(w){if(w.nextAddress==1)return w.yield(_.QZ(),2);if(w.nextAddress!=3){C=w.yieldResult;if(!C)return w.return();yj(e);return w.yield(_.bM(e,z),3)}return w.yield(_.kj(e,C),0)})};
m0=function(e,z){return O4m(e,z)};
F64=function(e){return _.X0(Ezk(),e)};
VJ5=function(e,z,C,w){var K,G,X;return _.k(function(J){switch(J.nextAddress){case 1:return K={config:e,hashData:z,timestamp:w!==void 0?w:(0,_.as)()},J.yield(F64(C),2);case 2:return G=J.yieldResult,J.yield(G.clear("hotConfigStore"),3);case 3:return J.yield(G.put("hotConfigStore",K),4);case 4:return X=J.yieldResult,J.return(X)}})};
fdg=function(e,z,C,w,K){var G,X,J;return _.k(function(q){switch(q.nextAddress){case 1:return G={config:e,hashData:z,configData:C,timestamp:K!==void 0?K:(0,_.as)()},q.yield(F64(w),2);case 2:return X=q.yieldResult,q.yield(X.clear("coldConfigStore"),3);case 3:return q.yield(X.put("coldConfigStore",G),4);case 4:return J=q.yieldResult,q.return(J)}})};
Sko=function(e){var z,C;return _.k(function(w){return w.nextAddress==1?w.yield(F64(e),2):w.nextAddress!=3?(z=w.yieldResult,C=void 0,w.yield(_.Jf(z,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(K){return _.np(K.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(G){C=G.getValue()})}),3)):w.return(C)})};
unh=function(e){var z,C;return _.k(function(w){return w.nextAddress==1?w.yield(F64(e),2):w.nextAddress!=3?(z=w.yieldResult,C=void 0,w.yield(_.Jf(z,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(K){return _.np(K.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(G){C=G.getValue()})}),3)):w.return(C)})};
dqo=function(){return _.k(function(e){return e.yield(L6s("ytGcfConfig"),0)})};
Dqm=function(){return"INNERTUBE_API_KEY"in _.tR&&"INNERTUBE_API_VERSION"in _.tR};
_.ME=function(){return{innertubeApiKey:_.j5("INNERTUBE_API_KEY"),innertubeApiVersion:_.j5("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.j5("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.j5("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.j5("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.j5("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.j5("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.j5("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.j5("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.cR("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.cR("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.j5("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.ju7=function(e){var z={client:{hl:e.innertubeContextHostLanguage,gl:e.innertubeContextGeoLocation,clientName:e.innertubeContextClientName,clientVersion:e.innertubeContextClientVersion,configInfo:e.innertubeContextClientConfigInfo}};navigator.userAgent&&(z.client.userAgent=String(navigator.userAgent));var C=_.wL.devicePixelRatio;C&&C!=1&&(z.client.screenDensityFloat=String(C));C=kjs();C!==""&&(z.client.experimentsToken=C);C=q6g();C.length>0&&(z.request={internalExperimentFlags:C});i4h(e,void 0,z);
Nk7(void 0,z);sum(void 0,z);BkE(e,void 0,z);tJ7(void 0,z);_.M("start_client_gcf")&&gzs(void 0,z);_.j5("DELEGATED_SESSION_ID")&&!_.M("pageid_as_header_web")&&(z.user={onBehalfOfUser:_.j5("DELEGATED_SESSION_ID")});!_.M("fill_delegate_context_in_gel_killswitch")&&(e=_.j5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z.user=Object.assign({},z.user,{serializedDelegationContext:e}));e=_.j5("INNERTUBE_CONTEXT");var w;if(_.M("enable_persistent_device_token")&&(e==null?0:(w=e.client)==null?0:w.rolloutToken)){var K;
z.client.rolloutToken=e==null?void 0:(K=e.client)==null?void 0:K.rolloutToken}w=Object;K=w.assign;e=z.client;C={};for(var G=_.b(Object.entries(_.GN(_.j5("DEVICE","")))),X=G.next();!X.done;X=G.next()){var J=_.b(X.value);X=J.next().value;J=J.next().value;X==="cbrand"?C.deviceMake=J:X==="cmodel"?C.deviceModel=J:X==="cbr"?C.browserName=J:X==="cbrver"?C.browserVersion=J:X==="cos"?C.osName=J:X==="cosver"?C.osVersion=J:X==="cplatform"&&(C.platform=J)}z.client=K.call(w,e,C);return z};
i4h=function(e,z,C){e=e.innertubeContextClientName;if(e==="WEB"||e==="MWEB"||e===1||e===2)if(z){C=_.ra(z,yO1,96)||new yO1;var w=cOE();w=Object.keys(AOs).indexOf(w);w=w===-1?null:w;w!==null&&_.H5(C,3,w);_.PL(z,96,C)}else C&&(C.client.mainAppWebInfo=(w=C.client.mainAppWebInfo)!=null?w:{},C.client.mainAppWebInfo.webDisplayMode=cOE())};
Nk7=function(e,z){var C=_.pd("yt.embedded_player.embed_url");C&&(e?(z=_.ra(e,Z4g,7)||new Z4g,_.Et(z,4,C),_.PL(e,7,z)):z&&(z.thirdParty={embedUrl:C}))};
sum=function(e,z){var C;if(_.M("web_log_memory_total_kbytes")&&((C=_.wL.navigator)==null?0:C.deviceMemory)){var w;C=(w=_.wL.navigator)==null?void 0:w.deviceMemory;e?_.UR(e,95,TL(C*1E6)):z&&(z.client.memoryTotalKbytes=""+C*1E6)}};
BkE=function(e,z,C){if(e.appInstallData)if(z){var w;C=(w=_.ra(z,v5,62))!=null?w:new v5;_.Et(C,6,e.appInstallData);_.PL(z,62,C)}else C&&(C.client.configInfo=C.client.configInfo||{},C.client.configInfo.appInstallData=e.appInstallData)};
tJ7=function(e,z){var C=_.gks();C&&(e?_.H5(e,61,pHL[C]):z&&(z.client.connectionType=C));_.M("web_log_effective_connection_type")&&(C=ygE())&&(e?_.H5(e,94,eko[C]):z&&(z.client.effectiveConnectionType=C))};
_.wJg=function(e,z,C){C=C===void 0?{}:C;var w={};_.j5("EOM_VISITOR_DATA")?w={"X-Goog-EOM-Visitor-Id":_.j5("EOM_VISITOR_DATA")}:w={"X-Goog-Visitor-Id":C.visitorData||_.j5("VISITOR_DATA","")};if(z&&z.includes("www.youtube-nocookie.com"))return w;z=C.authorization||_.j5("AUTHORIZATION");z||(e?z="Bearer "+_.pd("gapi.auth.getToken")().access_token:(zkh.instance||(zkh.instance=new zkh),e=C6h(),_.M("pageid_as_header_web")||delete e["X-Goog-PageId"],w=Object.assign({},w,e)));z&&(w.Authorization=z);return w};
gzs=function(e,z){var C=KJg();if(C){var w=C.coldConfigData,K=C.coldHashData;C=C.hotHashData;if(e){var G;z=(G=_.ra(e,v5,62))!=null?G:new v5;w=_.Et(z,1,w);_.Et(w,3,K).setHotHashData(C);_.PL(e,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},w&&(z.client.configInfo.coldConfigData=w),K&&(z.client.configInfo.coldHashData=K),C&&(z.client.configInfo.hotHashData=C))}};
Is=function(e){for(var z=e.length;--z>=0;)e[z]=0};
o5E=function(e,z,C,w,K){this.static_tree=e;this.extra_bits=z;this.extra_base=C;this.elems=w;this.max_length=K;this.has_stree=e&&e.length};
GU8=function(e,z){this.dyn_tree=e;this.max_code=0;this.stat_desc=z};
W5=function(e,z){e.pending_buf[e.pending++]=z&255;e.pending_buf[e.pending++]=z>>>8&255};
P5=function(e,z,C){e.bi_valid>16-C?(e.bi_buf|=z<<e.bi_valid&65535,W5(e,e.bi_buf),e.bi_buf=z>>16-e.bi_valid,e.bi_valid+=C-16):(e.bi_buf|=z<<e.bi_valid&65535,e.bi_valid+=C)};
Rs=function(e,z,C){P5(e,C[z*2],C[z*2+1])};
YGN=function(e,z){var C=0;do C|=e&1,e>>>=1,C<<=1;while(--z>0);return C>>>1};
bW1=function(e,z,C){var w=Array(16),K=0,G;for(G=1;G<=15;G++)w[G]=K=K+C[G-1]<<1;for(C=0;C<=z;C++)K=e[C*2+1],K!==0&&(e[C*2]=YGN(w[K]++,K))};
XJk=function(e){var z;for(z=0;z<286;z++)e.dyn_ltree[z*2]=0;for(z=0;z<30;z++)e.dyn_dtree[z*2]=0;for(z=0;z<19;z++)e.bl_tree[z*2]=0;e.dyn_ltree[512]=1;e.opt_len=e.static_len=0;e.last_lit=e.matches=0};
JUs=function(e){e.bi_valid>8?W5(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf);e.bi_buf=0;e.bi_valid=0};
kUk=function(e,z,C){JUs(e);W5(e,C);W5(e,~C);Lp.arraySet(e.pending_buf,e.window,z,C,e.pending);e.pending+=C};
qGh=function(e,z,C,w){var K=z*2,G=C*2;return e[K]<e[G]||e[K]===e[G]&&w[z]<=w[C]};
xpE=function(e,z,C){for(var w=e.heap[C],K=C<<1;K<=e.heap_len;){K<e.heap_len&&qGh(z,e.heap[K+1],e.heap[K],e.depth)&&K++;if(qGh(z,w,e.heap[K],e.depth))break;e.heap[C]=e.heap[K];C=K;K<<=1}e.heap[C]=w};
mp1=function(e,z,C){var w=0;if(e.last_lit!==0){do{var K=e.pending_buf[e.d_buf+w*2]<<8|e.pending_buf[e.d_buf+w*2+1];var G=e.pending_buf[e.l_buf+w];w++;if(K===0)Rs(e,G,z);else{var X=hf[G];Rs(e,X+256+1,z);var J=TPh[X];J!==0&&(G-=$pg[X],P5(e,G,J));K--;X=K<256?OR[K]:OR[256+(K>>>7)];Rs(e,X,C);J=lcL[X];J!==0&&(K-=Qg5[X],P5(e,K,J))}}while(w<e.last_lit)}Rs(e,256,z)};
acm=function(e,z){var C=z.dyn_tree,w=z.stat_desc.static_tree,K=z.stat_desc.has_stree,G=z.stat_desc.elems,X,J=-1;e.heap_len=0;e.heap_max=573;for(X=0;X<G;X++)C[X*2]!==0?(e.heap[++e.heap_len]=J=X,e.depth[X]=0):C[X*2+1]=0;for(;e.heap_len<2;){var q=e.heap[++e.heap_len]=J<2?++J:0;C[q*2]=1;e.depth[q]=0;e.opt_len--;K&&(e.static_len-=w[q*2+1])}z.max_code=J;for(X=e.heap_len>>1;X>=1;X--)xpE(e,C,X);q=G;do X=e.heap[1],e.heap[1]=e.heap[e.heap_len--],xpE(e,C,1),w=e.heap[1],e.heap[--e.heap_max]=X,e.heap[--e.heap_max]=
w,C[q*2]=C[X*2]+C[w*2],e.depth[q]=(e.depth[X]>=e.depth[w]?e.depth[X]:e.depth[w])+1,C[X*2+1]=C[w*2+1]=q,e.heap[1]=q++,xpE(e,C,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1];X=z.dyn_tree;q=z.max_code;w=z.stat_desc.static_tree;K=z.stat_desc.has_stree;G=z.stat_desc.extra_bits;var T=z.stat_desc.extra_base,Q=z.stat_desc.max_length,m,a=0;for(m=0;m<=15;m++)e.bl_count[m]=0;X[e.heap[e.heap_max]*2+1]=0;for(z=e.heap_max+1;z<573;z++){var n=e.heap[z];m=X[X[n*2+1]*2+1]+1;m>Q&&(m=Q,a++);X[n*2+1]=m;if(!(n>
q)){e.bl_count[m]++;var H=0;n>=T&&(H=G[n-T]);var I=X[n*2];e.opt_len+=I*(m+H);K&&(e.static_len+=I*(w[n*2+1]+H))}}if(a!==0){do{for(m=Q-1;e.bl_count[m]===0;)m--;e.bl_count[m]--;e.bl_count[m+1]+=2;e.bl_count[Q]--;a-=2}while(a>0);for(m=Q;m!==0;m--)for(n=e.bl_count[m];n!==0;)w=e.heap[--z],w>q||(X[w*2+1]!==m&&(e.opt_len+=(m-X[w*2+1])*X[w*2],X[w*2+1]=m),n--)}bW1(C,J,e.bl_count)};
n51=function(e,z,C){var w,K=-1,G=z[1],X=0,J=7,q=4;G===0&&(J=138,q=3);z[(C+1)*2+1]=65535;for(w=0;w<=C;w++){var T=G;G=z[(w+1)*2+1];++X<J&&T===G||(X<q?e.bl_tree[T*2]+=X:T!==0?(T!==K&&e.bl_tree[T*2]++,e.bl_tree[32]++):X<=10?e.bl_tree[34]++:e.bl_tree[36]++,X=0,K=T,G===0?(J=138,q=3):T===G?(J=6,q=3):(J=7,q=4))}};
MBE=function(e,z,C){var w,K=-1,G=z[1],X=0,J=7,q=4;G===0&&(J=138,q=3);for(w=0;w<=C;w++){var T=G;G=z[(w+1)*2+1];if(!(++X<J&&T===G)){if(X<q){do Rs(e,T,e.bl_tree);while(--X!==0)}else T!==0?(T!==K&&(Rs(e,T,e.bl_tree),X--),Rs(e,16,e.bl_tree),P5(e,X-3,2)):X<=10?(Rs(e,17,e.bl_tree),P5(e,X-3,3)):(Rs(e,18,e.bl_tree),P5(e,X-11,7));X=0;K=T;G===0?(J=138,q=3):T===G?(J=6,q=3):(J=7,q=4)}}};
rUg=function(e){var z=4093624447,C;for(C=0;C<=31;C++,z>>>=1)if(z&1&&e.dyn_ltree[C*2]!==0)return 0;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return 1;for(C=32;C<256;C++)if(e.dyn_ltree[C*2]!==0)return 1;return 0};
ER=function(e,z,C){e.pending_buf[e.d_buf+e.last_lit*2]=z>>>8&255;e.pending_buf[e.d_buf+e.last_lit*2+1]=z&255;e.pending_buf[e.l_buf+e.last_lit]=C&255;e.last_lit++;z===0?e.dyn_ltree[C*2]++:(e.matches++,z--,e.dyn_ltree[(hf[C]+256+1)*2]++,e.dyn_dtree[(z<256?OR[z]:OR[256+(z>>>7)])*2]++);return e.last_lit===e.lit_bufsize-1};
VZ=function(e,z){e.msg=F0[z];return z};
fp=function(e){for(var z=e.length;--z>=0;)e[z]=0};
Sx=function(e){var z=e.state,C=z.pending;C>e.avail_out&&(C=e.avail_out);C!==0&&(Lp.arraySet(e.output,z.pending_buf,z.pending_out,C,e.next_out),e.next_out+=C,z.pending_out+=C,e.total_out+=C,e.avail_out-=C,z.pending-=C,z.pending===0&&(z.pending_out=0))};
DI=function(e,z){var C=e.block_start>=0?e.block_start:-1,w=e.strstart-e.block_start,K=0;if(e.level>0){e.strm.data_type===2&&(e.strm.data_type=rUg(e));acm(e,e.l_desc);acm(e,e.d_desc);n51(e,e.dyn_ltree,e.l_desc.max_code);n51(e,e.dyn_dtree,e.d_desc.max_code);acm(e,e.bl_desc);for(K=18;K>=3&&e.bl_tree[HWo[K]*2+1]===0;K--);e.opt_len+=3*(K+1)+5+5+4;var G=e.opt_len+3+7>>>3;var X=e.static_len+3+7>>>3;X<=G&&(G=X)}else G=X=w+5;if(w+4<=G&&C!==-1)P5(e,z?1:0,3),kUk(e,C,w);else if(e.strategy===4||X===G)P5(e,2+(z?
1:0),3),mp1(e,uM,da);else{P5(e,4+(z?1:0),3);C=e.l_desc.max_code+1;w=e.d_desc.max_code+1;K+=1;P5(e,C-257,5);P5(e,w-1,5);P5(e,K-4,4);for(G=0;G<K;G++)P5(e,e.bl_tree[HWo[G]*2+1],3);MBE(e,e.dyn_ltree,C-1);MBE(e,e.dyn_dtree,w-1);mp1(e,e.dyn_ltree,e.dyn_dtree)}XJk(e);z&&JUs(e);e.block_start=e.strstart;Sx(e.strm)};
iM=function(e,z){e.pending_buf[e.pending++]=z};
NE=function(e,z){e.pending_buf[e.pending++]=z>>>8&255;e.pending_buf[e.pending++]=z&255};
Up1=function(e,z){var C=e.max_chain_length,w=e.strstart,K=e.prev_length,G=e.nice_match,X=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,J=e.window,q=e.w_mask,T=e.prev,Q=e.strstart+258,m=J[w+K-1],a=J[w+K];e.prev_length>=e.good_match&&(C>>=2);G>e.lookahead&&(G=e.lookahead);do{var n=z;if(J[n+K]===a&&J[n+K-1]===m&&J[n]===J[w]&&J[++n]===J[w+1]){w+=2;for(n++;J[++w]===J[++n]&&J[++w]===J[++n]&&J[++w]===J[++n]&&J[++w]===J[++n]&&J[++w]===J[++n]&&J[++w]===J[++n]&&J[++w]===J[++n]&&J[++w]===J[++n]&&w<Q;);
n=258-(Q-w);w=Q-258;if(n>K){e.match_start=z;K=n;if(n>=G)break;m=J[w+K-1];a=J[w+K]}}}while((z=T[z&q])>X&&--C!==0);return K<=e.lookahead?K:e.lookahead};
B5=function(e){var z=e.w_size,C;do{var w=e.window_size-e.lookahead-e.strstart;if(e.strstart>=z+(z-262)){Lp.arraySet(e.window,e.window,z,z,0);e.match_start-=z;e.strstart-=z;e.block_start-=z;var K=C=e.hash_size;do{var G=e.head[--K];e.head[K]=G>=z?G-z:0}while(--C);K=C=z;do G=e.prev[--K],e.prev[K]=G>=z?G-z:0;while(--C);w+=z}if(e.strm.avail_in===0)break;K=e.strm;C=e.window;G=e.strstart+e.lookahead;var X=K.avail_in;X>w&&(X=w);X===0?C=0:(K.avail_in-=X,Lp.arraySet(C,K.input,K.next_in,X,G),K.state.wrap===
1?K.adler=v55(K.adler,C,X,G):K.state.wrap===2&&(K.adler=sR(K.adler,C,X,G)),K.next_in+=X,K.total_in+=X,C=X);e.lookahead+=C;if(e.lookahead+e.insert>=3)for(w=e.strstart-e.insert,e.ins_h=e.window[w],e.ins_h=(e.ins_h<<e.hash_shift^e.window[w+1])&e.hash_mask;e.insert&&!(e.ins_h=(e.ins_h<<e.hash_shift^e.window[w+3-1])&e.hash_mask,e.prev[w&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=w,w++,e.insert--,e.lookahead+e.insert<3););}while(e.lookahead<262&&e.strm.avail_in!==0)};
Ick=function(e,z){for(var C;;){if(e.lookahead<262){B5(e);if(e.lookahead<262&&z===0)return 1;if(e.lookahead===0)break}C=0;e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,C=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);C!==0&&e.strstart-C<=e.w_size-262&&(e.match_length=Up1(e,C));if(e.match_length>=3)if(C=ER(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;
do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else C=ER(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(C&&(DI(e,!1),e.strm.avail_out===0))return 1}e.insert=e.strstart<2?e.strstart:2;return z===4?(DI(e,
!0),e.strm.avail_out===0?3:4):e.last_lit&&(DI(e,!1),e.strm.avail_out===0)?1:2};
tf=function(e,z){for(var C,w;;){if(e.lookahead<262){B5(e);if(e.lookahead<262&&z===0)return 1;if(e.lookahead===0)break}C=0;e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,C=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);e.prev_length=e.match_length;e.prev_match=e.match_start;e.match_length=2;C!==0&&e.prev_length<e.max_lazy_match&&e.strstart-C<=e.w_size-262&&(e.match_length=Up1(e,C),e.match_length<=5&&(e.strategy===1||e.match_length===3&&
e.strstart-e.match_start>4096)&&(e.match_length=2));if(e.prev_length>=3&&e.match_length<=e.prev_length){w=e.strstart+e.lookahead-3;C=ER(e,e.strstart-1-e.prev_match,e.prev_length-3);e.lookahead-=e.prev_length-1;e.prev_length-=2;do++e.strstart<=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);e.match_available=0;e.match_length=2;e.strstart++;if(C&&(DI(e,!1),e.strm.avail_out===0))return 1}else if(e.match_available){if((C=
ER(e,0,e.window[e.strstart-1]))&&DI(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return 1}else e.match_available=1,e.strstart++,e.lookahead--}e.match_available&&(ER(e,0,e.window[e.strstart-1]),e.match_available=0);e.insert=e.strstart<2?e.strstart:2;return z===4?(DI(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(DI(e,!1),e.strm.avail_out===0)?1:2};
WJ7=function(e,z){for(var C,w,K,G=e.window;;){if(e.lookahead<=258){B5(e);if(e.lookahead<=258&&z===0)return 1;if(e.lookahead===0)break}e.match_length=0;if(e.lookahead>=3&&e.strstart>0&&(w=e.strstart-1,C=G[w],C===G[++w]&&C===G[++w]&&C===G[++w])){for(K=e.strstart+258;C===G[++w]&&C===G[++w]&&C===G[++w]&&C===G[++w]&&C===G[++w]&&C===G[++w]&&C===G[++w]&&C===G[++w]&&w<K;);e.match_length=258-(K-w);e.match_length>e.lookahead&&(e.match_length=e.lookahead)}e.match_length>=3?(C=ER(e,1,e.match_length-3),e.lookahead-=
e.match_length,e.strstart+=e.match_length,e.match_length=0):(C=ER(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++);if(C&&(DI(e,!1),e.strm.avail_out===0))return 1}e.insert=0;return z===4?(DI(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(DI(e,!1),e.strm.avail_out===0)?1:2};
P67=function(e,z){for(var C;;){if(e.lookahead===0&&(B5(e),e.lookahead===0)){if(z===0)return 1;break}e.match_length=0;C=ER(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++;if(C&&(DI(e,!1),e.strm.avail_out===0))return 1}e.insert=0;return z===4?(DI(e,!0),e.strm.avail_out===0?3:4):e.last_lit&&(DI(e,!1),e.strm.avail_out===0)?1:2};
jx=function(e,z,C,w,K){this.good_length=e;this.max_lazy=z;this.nice_length=C;this.max_chain=w;this.func=K};
Rk1=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 Lp.Buf16(1146);this.dyn_dtree=new Lp.Buf16(122);this.bl_tree=new Lp.Buf16(78);fp(this.dyn_ltree);fp(this.dyn_dtree);fp(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Lp.Buf16(16);this.heap=new Lp.Buf16(573);fp(this.heap);this.heap_max=this.heap_len=0;this.depth=new Lp.Buf16(573);fp(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};
LJs=function(e,z){if(!e||!e.state||z>5||z<0)return e?VZ(e,-2):-2;var C=e.state;if(!e.output||!e.input&&e.avail_in!==0||C.status===666&&z!==4)return VZ(e,e.avail_out===0?-5:-2);C.strm=e;var w=C.last_flush;C.last_flush=z;if(C.status===42)if(C.wrap===2)e.adler=0,iM(C,31),iM(C,139),iM(C,8),C.gzhead?(iM(C,(C.gzhead.text?1:0)+(C.gzhead.hcrc?2:0)+(C.gzhead.extra?4:0)+(C.gzhead.name?8:0)+(C.gzhead.comment?16:0)),iM(C,C.gzhead.time&255),iM(C,C.gzhead.time>>8&255),iM(C,C.gzhead.time>>16&255),iM(C,C.gzhead.time>>
24&255),iM(C,C.level===9?2:C.strategy>=2||C.level<2?4:0),iM(C,C.gzhead.os&255),C.gzhead.extra&&C.gzhead.extra.length&&(iM(C,C.gzhead.extra.length&255),iM(C,C.gzhead.extra.length>>8&255)),C.gzhead.hcrc&&(e.adler=sR(e.adler,C.pending_buf,C.pending,0)),C.gzindex=0,C.status=69):(iM(C,0),iM(C,0),iM(C,0),iM(C,0),iM(C,0),iM(C,C.level===9?2:C.strategy>=2||C.level<2?4:0),iM(C,3),C.status=113);else{var K=8+(C.w_bits-8<<4)<<8;K|=(C.strategy>=2||C.level<2?0:C.level<6?1:C.level===6?2:3)<<6;C.strstart!==0&&(K|=
32);C.status=113;NE(C,K+(31-K%31));C.strstart!==0&&(NE(C,e.adler>>>16),NE(C,e.adler&65535));e.adler=1}if(C.status===69)if(C.gzhead.extra){for(K=C.pending;C.gzindex<(C.gzhead.extra.length&65535)&&(C.pending!==C.pending_buf_size||(C.gzhead.hcrc&&C.pending>K&&(e.adler=sR(e.adler,C.pending_buf,C.pending-K,K)),Sx(e),K=C.pending,C.pending!==C.pending_buf_size));)iM(C,C.gzhead.extra[C.gzindex]&255),C.gzindex++;C.gzhead.hcrc&&C.pending>K&&(e.adler=sR(e.adler,C.pending_buf,C.pending-K,K));C.gzindex===C.gzhead.extra.length&&
(C.gzindex=0,C.status=73)}else C.status=73;if(C.status===73)if(C.gzhead.name){K=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>K&&(e.adler=sR(e.adler,C.pending_buf,C.pending-K,K)),Sx(e),K=C.pending,C.pending===C.pending_buf_size)){var G=1;break}G=C.gzindex<C.gzhead.name.length?C.gzhead.name.charCodeAt(C.gzindex++)&255:0;iM(C,G)}while(G!==0);C.gzhead.hcrc&&C.pending>K&&(e.adler=sR(e.adler,C.pending_buf,C.pending-K,K));G===0&&(C.gzindex=0,C.status=91)}else C.status=91;if(C.status===
91)if(C.gzhead.comment){K=C.pending;do{if(C.pending===C.pending_buf_size&&(C.gzhead.hcrc&&C.pending>K&&(e.adler=sR(e.adler,C.pending_buf,C.pending-K,K)),Sx(e),K=C.pending,C.pending===C.pending_buf_size)){G=1;break}G=C.gzindex<C.gzhead.comment.length?C.gzhead.comment.charCodeAt(C.gzindex++)&255:0;iM(C,G)}while(G!==0);C.gzhead.hcrc&&C.pending>K&&(e.adler=sR(e.adler,C.pending_buf,C.pending-K,K));G===0&&(C.status=103)}else C.status=103;C.status===103&&(C.gzhead.hcrc?(C.pending+2>C.pending_buf_size&&Sx(e),
C.pending+2<=C.pending_buf_size&&(iM(C,e.adler&255),iM(C,e.adler>>8&255),e.adler=0,C.status=113)):C.status=113);if(C.pending!==0){if(Sx(e),e.avail_out===0)return C.last_flush=-1,0}else if(e.avail_in===0&&(z<<1)-(z>4?9:0)<=(w<<1)-(w>4?9:0)&&z!==4)return VZ(e,-5);if(C.status===666&&e.avail_in!==0)return VZ(e,-5);if(e.avail_in!==0||C.lookahead!==0||z!==0&&C.status!==666){w=C.strategy===2?P67(C,z):C.strategy===3?WJ7(C,z):yZ[C.level].func(C,z);if(w===3||w===4)C.status=666;if(w===1||w===3)return e.avail_out===
0&&(C.last_flush=-1),0;if(w===2&&(z===1?(P5(C,2,3),Rs(C,256,uM),C.bi_valid===16?(W5(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):C.bi_valid>=8&&(C.pending_buf[C.pending++]=C.bi_buf&255,C.bi_buf>>=8,C.bi_valid-=8)):z!==5&&(P5(C,0,3),kUk(C,0,0),z===3&&(fp(C.head),C.lookahead===0&&(C.strstart=0,C.block_start=0,C.insert=0))),Sx(e),e.avail_out===0))return C.last_flush=-1,0}if(z!==4)return 0;if(C.wrap<=0)return 1;C.wrap===2?(iM(C,e.adler&255),iM(C,e.adler>>8&255),iM(C,e.adler>>16&255),iM(C,e.adler>>24&255),iM(C,
e.total_in&255),iM(C,e.total_in>>8&255),iM(C,e.total_in>>16&255),iM(C,e.total_in>>24&255)):(NE(C,e.adler>>>16),NE(C,e.adler&65535));Sx(e);C.wrap>0&&(C.wrap=-C.wrap);return C.pending!==0?0:1};
hkN=function(e){if(!(this instanceof hkN))return new hkN(e);e=this.options=Lp.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new OWo;this.strm.avail_out=0;var z=this.strm;var C=e.level,w=e.method,K=e.windowBits,G=e.memLevel,X=e.strategy;if(z){var J=1;C===-1&&(C=6);K<0?(J=0,K=-K):K>15&&
(J=2,K-=16);if(G<1||G>9||w!==8||K<8||K>15||C<0||C>9||X<0||X>4)z=VZ(z,-2);else{K===8&&(K=9);var q=new Rk1;z.state=q;q.strm=z;q.wrap=J;q.gzhead=null;q.w_bits=K;q.w_size=1<<q.w_bits;q.w_mask=q.w_size-1;q.hash_bits=G+7;q.hash_size=1<<q.hash_bits;q.hash_mask=q.hash_size-1;q.hash_shift=~~((q.hash_bits+3-1)/3);q.window=new Lp.Buf8(q.w_size*2);q.head=new Lp.Buf16(q.hash_size);q.prev=new Lp.Buf16(q.w_size);q.lit_bufsize=1<<G+6;q.pending_buf_size=q.lit_bufsize*4;q.pending_buf=new Lp.Buf8(q.pending_buf_size);
q.d_buf=q.lit_bufsize;q.l_buf=3*q.lit_bufsize;q.level=C;q.strategy=X;q.method=w;if(z&&z.state){z.total_in=z.total_out=0;z.data_type=2;C=z.state;C.pending=0;C.pending_out=0;C.wrap<0&&(C.wrap=-C.wrap);C.status=C.wrap?42:113;z.adler=C.wrap===2?0:1;C.last_flush=0;if(!E5h){w=Array(16);for(G=X=0;G<28;G++)for($pg[G]=X,K=0;K<1<<TPh[G];K++)hf[X++]=G;hf[X-1]=G;for(G=X=0;G<16;G++)for(Qg5[G]=X,K=0;K<1<<lcL[G];K++)OR[X++]=G;for(X>>=7;G<30;G++)for(Qg5[G]=X<<7,K=0;K<1<<lcL[G]-7;K++)OR[256+X++]=G;for(K=0;K<=15;K++)w[K]=
0;for(K=0;K<=143;)uM[K*2+1]=8,K++,w[8]++;for(;K<=255;)uM[K*2+1]=9,K++,w[9]++;for(;K<=279;)uM[K*2+1]=7,K++,w[7]++;for(;K<=287;)uM[K*2+1]=8,K++,w[8]++;bW1(uM,287,w);for(K=0;K<30;K++)da[K*2+1]=5,da[K*2]=YGN(K,5);FJE=new o5E(uM,TPh,257,286,15);VB1=new o5E(da,lcL,0,30,15);fco=new o5E([],SG8,0,19,7);E5h=!0}C.l_desc=new GU8(C.dyn_ltree,FJE);C.d_desc=new GU8(C.dyn_dtree,VB1);C.bl_desc=new GU8(C.bl_tree,fco);C.bi_buf=0;C.bi_valid=0;XJk(C);C=0}else C=VZ(z,-2);C===0&&(z=z.state,z.window_size=2*z.w_size,fp(z.head),
z.max_lazy_match=yZ[z.level].max_lazy,z.good_match=yZ[z.level].good_length,z.nice_match=yZ[z.level].nice_length,z.max_chain_length=yZ[z.level].max_chain,z.strstart=0,z.block_start=0,z.lookahead=0,z.insert=0,z.match_length=z.prev_length=2,z.match_available=0,z.ins_h=0);z=C}}else z=-2;if(z!==0)throw Error(F0[z]);e.header&&(z=this.strm)&&z.state&&z.state.wrap===2&&(z.state.gzhead=e.header);if(e.dictionary){var T;typeof e.dictionary==="string"?T=uNg(e.dictionary):dp1.call(e.dictionary)==="[object ArrayBuffer]"?
T=new Uint8Array(e.dictionary):T=e.dictionary;e=this.strm;G=T;X=G.length;if(e&&e.state)if(T=e.state,z=T.wrap,z===2||z===1&&T.status!==42||T.lookahead)z=-2;else{z===1&&(e.adler=v55(e.adler,G,X,0));T.wrap=0;X>=T.w_size&&(z===0&&(fp(T.head),T.strstart=0,T.block_start=0,T.insert=0),C=new Lp.Buf8(T.w_size),Lp.arraySet(C,G,X-T.w_size,T.w_size,0),G=C,X=T.w_size);C=e.avail_in;w=e.next_in;K=e.input;e.avail_in=X;e.next_in=0;e.input=G;for(B5(T);T.lookahead>=3;){G=T.strstart;X=T.lookahead-2;do T.ins_h=(T.ins_h<<
T.hash_shift^T.window[G+3-1])&T.hash_mask,T.prev[G&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=G,G++;while(--X);T.strstart=G;T.lookahead=2;B5(T)}T.strstart+=T.lookahead;T.block_start=T.strstart;T.insert=T.lookahead;T.lookahead=0;T.match_length=T.prev_length=2;T.match_available=0;e.next_in=w;e.input=K;e.avail_in=C;T.wrap=z;z=0}else z=-2;if(z!==0)throw Error(F0[z]);this._dict_set=!0}};
Dpg=function(e,z){z=z||{};z.gzip=!0;z=new hkN(z);z.push(e,!0);if(z.err)throw z.msg||F0[z.err];return z.result};
NPN=function(e,z){var C=iW7();C&&C.publish.call(C,e.toString(),e,z)};
jg4=function(e,z,C){var w=iW7();if(!w)return 0;var K=w.subscribe(e.toString(),function(G,X){var J=_.pd("ytPubsub2Pubsub2SkipSubKey");J&&J==K||(J=function(){if(sgE[K])try{if(X&&e instanceof BP7&&e!=G)try{var q=e.dataClass,T=X;if(!T.args||!T.version)throw Error("$c");try{if(!q.version_){var Q=new q;q.version_=Q.version}var m=q.version_}catch(a){}if(!m||T.version!=m)throw Error("ad");try{X=Reflect.construct(q,_.ig(T.args))}catch(a){throw a.message="yt.pubsub2.Data.deserialize(): "+a.message,a;}}catch(a){throw a.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+e.toString()+": "+a.message,a;}z.call(C||window,X)}catch(a){_.AR(a)}},tBL[e.toString()]?_.pd("yt.scheduler.instance")?_.c5.addLowPriorityJob(J):_.U3(J,0):J())});
sgE[K]=!0;g54[e.toString()]||(g54[e.toString()]=[]);g54[e.toString()].push(K);return K};
ZW7=function(){var e=yUg,z=jg4(cUg,function(C){e.apply(void 0,arguments);AUN(z)});
return z};
AUN=function(e){var z=iW7();z&&(typeof e==="number"&&(e=[e]),_.oX(e,function(C){z.unsubscribeByKey(C);delete sgE[C]}))};
iW7=function(){return _.pd("ytPubsub2Pubsub2Instance")};
pJg=function(e,z,C){C=C===void 0?{sampleRate:.1}:C;Math.random()<Math.min(.02,C.sampleRate/100)&&NPN("meta_logging_csi_event",{timerName:e,timelineData:z})};
_.ed7=function(e){return e?(e=e.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Yo(e):null:null};
_.Af=function(e){return e?(e=e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.EC(e):null:null};
CEs=function(){zdh||(zdh=_.Af(_.j5("WORKER_SERIALIZATION_URL")));return zdh||void 0};
_.Ki1=function(){var e=CEs();wI8||e===void 0||(wI8=IGE(e));return wI8};
_.o$h=function(){return typeof Worker==="function"&&CEs()?!0:!1};
_.XI1=function(){if(_.o$h()&&!G84){var e=function(C){C=C.data;if(C.op==="gzippedGelBatch"){var w=YxL.get(C.key);w&&(bP7(C.gzippedBatch,w.latencyPayload,w.url,w.options,w.sendFn),YxL.delete(C.key))}},z=_.Ki1();
z&&(z.addEventListener("message",e),z.onerror=function(){YxL.clear()},G84=!0)}};
lL4=function(e,z,C,w,K){K=K===void 0?!1:K;var G={startTime:(0,_.as)(),ticks:{},infos:{}};if(ZI)try{var X=JK1(z);if(X!=null&&(X>k85||X<qx4))w(e,C);else{if(_.M("gzip_gel_with_worker")&&(_.M("initial_gzip_use_main_thread")&&!xHs||!_.M("initial_gzip_use_main_thread"))){G84||_.XI1();var J=_.Ki1();if(J&&!K){YxL.set(TOE,{latencyPayload:G,url:e,options:C,sendFn:w});J.postMessage({op:"gelBatchToGzip",serializedBatch:z,key:TOE});TOE++;return}}var q=Dpg($Ho(z));bP7(q,G,e,C,w)}}catch(T){_.es(T),w(e,C)}else w(e,
C)};
bP7=function(e,z,C,w,K){xHs=!1;var G=(0,_.as)();z.ticks.gelc=G;pp++;_.M("disable_compression_due_to_performance_degredation")&&G-z.startTime>=Q38&&(mH8++,ZI=!1);aL7(z);w.headers||(w.headers={});w.headers["Content-Encoding"]="gzip";w.postBody=e;w.postParams=void 0;K(C,w)};
MLg=function(e){var z=z===void 0?!1:z;var C=C===void 0?!1:C;var w=(0,_.as)(),K={startTime:w,ticks:{},infos:{}},G=z?_.pd("yt.logging.gzipForFetch",!1):!0;if(ZI&&G){if(!e.body)return e;try{var X=C?e.body:typeof e.body==="string"?e.body:JSON.stringify(e.body);G=X;if(!C&&typeof X==="string"){var J=JK1(X);if(J!=null&&(J>k85||J<qx4))return e;C=z?{level:1}:void 0;G=Dpg($Ho(X),C);var q=(0,_.as)();K.ticks.gelc=q;if(z){pp++;if((_.M("disable_compression_due_to_performance_degredation")||_.M("disable_compression_due_to_performance_degradation_lr"))&&
q-w>=Q38)if(mH8++,_.M("abandon_compression_after_N_slow_zips_lr")){z=mH8/pp;var T=n$s/_.n0("compression_disable_point");pp>0&&pp%_.n0("compression_disable_point")===0&&z>=T&&(ZI=!1)}else ZI=!1;aL7(K)}}e.headers=Object.assign({},{"Content-Encoding":"gzip"},e.headers||{});e.body=G;return e}catch(Q){return _.es(Q),e}}else return e};
JK1=function(e){try{return(new Blob(e.split(""))).size}catch(z){return _.es(z),null}};
aL7=function(e){_.M("gel_compression_csi_killswitch")||!_.M("log_gel_compression_latency")&&!_.M("log_gel_compression_latency_lr")||pJg("gel_compression",e,{sampleRate:.1})};
rKL=function(){this.blockSize=-1};
eu=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.total_=this.inbuf_=0;this.reset()};
UHs=function(e){e=Object.assign({},e);delete e.Authorization;var z=_.HPg();if(z){var C=new eu;C.update(_.j5("INNERTUBE_API_KEY"));C.update(z);e.hash=_.FY(C.digest(),3)}return e};
CC=function(){v$4||(v$4=new _.zE("yt.innertube"));return v$4};
IL5=function(e,z,C,w){if(w)return null;w=CC().get("nextId",!0)||1;var K=CC().get("requests",!0)||{};K[w]={method:e,request:z,authState:UHs(C),requestTime:Math.round((0,_.as)())};CC().set("nextId",w+1,86400,!0);CC().set("requests",K,86400,!0);return w};
Wi1=function(e){var z=CC().get("requests",!0)||{};delete z[e];CC().set("requests",z,86400,!0)};
Rdg=function(e){var z=CC().get("requests",!0);if(z){for(var C in z){var w=z[C];if(!(Math.round((0,_.as)())-w.requestTime<6E4)){var K=w.authState,G=UHs(_.wJg(!1));_.de.equals(K,G)&&(K=w.request,"requestTimeMs"in K&&(K.requestTimeMs=Math.round((0,_.as)())),PEo(e,w.method,K,{}));delete z[C]}}CC().set("requests",z,86400,!0)}};
Lih=function(e){var z;return(e=e==null?void 0:(z=e.error)==null?void 0:z.code)&&e>=400&&e<=599?!1:!0};
hd8=function(e){var z;e=e==null?void 0:(z=e.error)==null?void 0:z.code;return!(e!==400&&e!==415)};
E$s=function(){if(OPN)return OPN();var e={};OPN=m0("LogsDatabaseV2",{objectStores:(e.LogsRequestsStore={addedAtVersion:2},e),shared:!1,upgrade:function(z,C,w){C(2)&&wm(z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});C(3);C(5)&&(w=w.objectStore("LogsRequestsStore"),w.JSC$10850_wrapped.indexNames.contains("newRequest")&&w.JSC$10850_wrapped.deleteIndex("newRequest"),KC(w,"newRequestV2",["status","interface","timestamp"]));C(7)&&z.JSC$10835_wrapped.objectStoreNames.contains("sapisid")&&z.JSC$10835_wrapped.deleteObjectStore("sapisid");
C(9)&&z.JSC$10835_wrapped.objectStoreNames.contains("SWHealthLog")&&z.JSC$10835_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return OPN()};
oC=function(e){return _.X0(E$s(),e)};
VLs=function(e,z){var C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return C={startTime:(0,_.as)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},X.yield(oC(z),2);if(X.nextAddress!=3)return w=X.yieldResult,K=Object.assign({},e,{options:JSON.parse(JSON.stringify(e.options)),interface:_.j5("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),X.yield(w.put("LogsRequestsStore",K),3);G=X.yieldResult;C.ticks.tc=(0,_.as)();Fi1(C);return X.return(G)})};
fLs=function(e,z){var C,w,K,G,X,J,q,T,Q;return _.k(function(m){if(m.nextAddress==1)return C={startTime:(0,_.as)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},m.yield(oC(z),2);if(m.nextAddress!=3)return w=m.yieldResult,K=_.j5("INNERTUBE_CONTEXT_CLIENT_NAME",0),G=[e,K,0],X=[e,K,(0,_.as)()],J=IDBKeyRange.bound(G,X),q="prev",_.M("use_fifo_for_networkless")&&(q="next"),T=void 0,Q=e==="NEW"?"readwrite":"readonly",_.M("use_readonly_for_get_most_recent_by_status_killswitch")&&(Q="readwrite"),
m.yield(_.Jf(w,["LogsRequestsStore"],{mode:Q,enableRetries:!0},function(a){return _.np(a.objectStore("LogsRequestsStore").index("newRequestV2"),{query:J,direction:q},function(n){n.getValue()&&(T=n.getValue(),e==="NEW"&&(T.status="QUEUED",n.update(T)))})}),3);
C.ticks.tc=(0,_.as)();Fi1(C);return m.return(T)})};
Sx5=function(e,z){var C;return _.k(function(w){if(w.nextAddress==1)return w.yield(oC(z),2);C=w.yieldResult;return w.return(_.Jf(C,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(K){var G=K.objectStore("LogsRequestsStore");return G.get(e).then(function(X){if(X)return X.status="QUEUED",G.put(X).then(function(){return X})})}))})};
uC7=function(e,z,C,w){C=C===void 0?!0:C;var K;return _.k(function(G){if(G.nextAddress==1)return G.yield(oC(z),2);K=G.yieldResult;return G.return(_.Jf(K,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){var J=X.objectStore("LogsRequestsStore");return J.get(e).then(function(q){return q?(q.status="NEW",C&&(q.sendCount+=1),w!==void 0&&(q.options.compress=w),J.put(q).then(function(){return q})):zT.resolve(void 0)})}))})};
dH1=function(e,z){var C;return _.k(function(w){if(w.nextAddress==1)return w.yield(oC(z),2);C=w.yieldResult;return w.return(C.delete("LogsRequestsStore",e))})};
DHo=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(oC(e),2);z=w.yieldResult;C=(0,_.as)()-2592E6;return w.yield(_.Jf(z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(K){return qE(K.objectStore("LogsRequestsStore"),{},function(G){if(G.getValue().timestamp<=C)return G.delete().then(function(){return G.continue()})})}),0)})};
iP7=function(){_.k(function(e){return e.yield(L6s("LogsDatabaseV2"),0)})};
Fi1=function(e){_.M("nwl_csi_killswitch")||pJg("networkless_performance",e,{sampleRate:1})};
_.s3o=function(e){return _.X0(NON(),e)};
BOL=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(_.s3o(e),2);z=w.yieldResult;C=(0,_.as)()-2592E6;return w.yield(_.Jf(z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(K){return qE(K.objectStore("SWHealthLog"),{},function(G){if(G.getValue().timestamp<=C)return G.delete().then(function(){return G.continue()})})}),0)})};
tLg=function(e){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(_.s3o(e),2);z=C.yieldResult;return C.yield(z.clear("SWHealthLog"),0)})};
_.GE=function(e,z,C,w,K,G,X){K=K===void 0?"":K;G=G===void 0?!1:G;X=X===void 0?!1:X;if(e)if(C&&!AJ("cobalt"))_.es(new _.uh("Legacy referrer-scrubbed ping detected")),e&&g$7(e,void 0,{scrubReferrer:!0});else if(K)nkL(e,z,"POST",K,w);else if(_.j5("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||w||X)nkL(e,z,"GET","",w,void 0,G,X);else{b:{try{c:{var J=new j3L({url:e});if(J.urlParamValues_.dsh==="1")var q=null;else{var T=J.urlParamValues_.ae;if(T==="1"){var Q=J.urlParamValues_.adurl;if(Q)try{q={version:3,directUrl:decodeURIComponent(Q),
asyncUrl:jV8(J.JSC$9645_url_,"act=1","ri=1",yKm(J))};break c}catch(H){}}q=T==="2"?{version:4,directUrl:jV8(J.JSC$9645_url_,"dct=1","suid="+J.suid_,"ri=1"),asyncUrl:jV8(J.JSC$9645_url_,"act=1","ri=1","suid="+J.suid_)}:null}}if(q){var m=_.Pi(e);var a=!(!m||!m.endsWith("/aclk")||_.ea(e,"ri")!=="1");break b}}catch(H){}a=!1}if(a){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,"")){var n=!0;break b}}catch(H){}n=!1}n?(z&&z(),C=!0):C=!1}else C=!1;C||g$7(e,z)}};
g$7=function(e,z,C){C=C===void 0?{}:C;var w=new Image,K=""+cKs++;AKL[K]=w;w.onload=w.onerror=function(){z&&AKL[K]&&z();delete AKL[K]};
C.scrubReferrer&&(w.referrerPolicy="no-referrer");w.src=e};
YO=function(e,z){ZP1(e,z==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
pIN=function(e){var z;return((z=document.featurePolicy)==null?0:z.allowedFeatures().includes("attribution-reporting"))?e+"&nis=6":e+"&nis=5"};
e9o=function(e){if(!e)return!1;try{var z;if(((z=_.GN(e))==null?void 0:z.asm)==="4")return!0}catch(C){_.AR(C)}return!1};
ZP1=function(e,z){z?(e=pIN(e),_.GE(e,void 0,void 0,void 0,"",!0,!0)):_.GE(e)};
CAg=function(){z94||(z94=new _.zE("yt.offline"));return z94};
w91=function(e){if(_.M("offline_error_handling")){var z=CAg().get("errors",!0)||{};z[e.message]={name:e.name,stack:e.stack};e.level&&(z[e.message].level=e.level);CAg().set("errors",z,2592E3,!0)}};
oph=function(e,z,C,w){w=w===void 0?!1:w;z=_.M("web_fp_via_jspb")?Object.assign({},z):z;_.M("use_cfr_monitor")&&KO1(e,z);if(_.M("use_request_time_ms_header"))z.headers&&xB(e)&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.as)())));else{var K;if((K=z.postParams)==null?0:K.requestTimeMs)z.postParams.requestTimeMs=Math.round((0,_.as)())}C&&Object.keys(z).length===0?_.GE(e):z.compress?z.postBody?(typeof z.postBody!=="string"&&(z.postBody=JSON.stringify(z.postBody)),lL4(e,z.postBody,
z,_.RX,w)):lL4(e,JSON.stringify(z.postParams),z,ULN,w):_.RX(e,z)};
Gxo=function(e,z){_.M("use_event_time_ms_header")&&xB(e)&&(z.headers||(z.headers={}),z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.as)())));return z};
_.bm4=function(){Ymm||(Ymm=new _.bk({logOfflineErrors:!0,enablePolling:!0}));return Ymm};
KO1=function(e,z){var C=z.onError?z.onError:function(){};
z.onError=function(K,G){Xe().requestComplete(e,!1);C(K,G)};
var w=z.onSuccess?z.onSuccess:function(){};
z.onSuccess=function(K,G){Xe().requestComplete(e,!0);w(K,G)}};
_.X9h=function(){return _.kB(document.location.toString())!=="www.youtube-nocookie.com"};
_.qm1=function(){return _.pd("ytNetworklessLoggingInitializationOptions")?_.JEg.isNwlInitialized:_.kx4};
xFg=function(e,z){if(_.M("polymer_on_demand_shady_dom")){var C;var w=(C=e.__shady_native_firstElementChild)!=null?C:e.firstElementChild}else w=e.firstElementChild;for(;w;){if(e=z(w)?w:xFg(w,z))return e;w=w.nextElementSibling}return null};
$FN=function(){var e=document;if("visibilityState"in e)return e.visibilityState;var z=Tok+"VisibilityState";if(z in e)return e[z]};
_.lfN=function(e,z){var C;JX(e,function(w){C=z[w];return!!C});
return C};
_.qU=function(e){var z=Q5L(e);z?z.focus(void 0):_.kO(e)};
Q5L=function(e){return(e=xFg(e,function(z){return _.xO(z)?mFL(z)&&!!z.offsetParent:!1}))?e:null};
_.kO=function(e,z){e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1");e.focus(z)};
afo=function(e,z,C,w){w=w===void 0?{}:w;e.addEventListener&&(z!="mouseenter"||"onmouseenter"in document?z!="mouseleave"||"onmouseenter"in document?z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"):z="mouseout":z="mouseover");return _.de.findKey(TE,function(K){var G=typeof K[4]==="boolean"&&K[4]==!!w,X=_.gL(K[4])&&_.gL(w)&&_.de.equals(K[4],w);return!!K.length&&K[0]==e&&K[1]==z&&K[2]==C&&(G||X)})};
_.lk=function(e,z,C,w){w=w===void 0?{}:w;if(!e||!e.addEventListener&&!e.attachEvent)return"";var K=afo(e,z,C,w);if(K)return K;K=++npN.count+"";var G=!(z!="mouseenter"&&z!="mouseleave"||!e.addEventListener||"onmouseenter"in document);var X=G?function(J){J=new $O(J);if(!_.j8(J.relatedTarget,function(q){return q==e},!0))return J.currentTarget=e,J.type=z,C.call(e,J)}:function(J){J=new $O(J);
J.currentTarget=e;return C.call(e,J)};
X=_.Z_(X);e.addEventListener?(z=="mouseenter"&&G?z="mouseover":z=="mouseleave"&&G?z="mouseout":z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"),MQE()||typeof w==="boolean"?e.addEventListener(z,X,w):e.addEventListener(z,X,!!w.capture)):e.attachEvent("on"+z,X);TE[K]=[e,z,C,X,w];return K};
_.Hm7=function(e,z,C){var w=w===void 0?{}:w;var K=_.lk(e,z,function(){_.rE7(K);C.apply(e,arguments)},w)};
_.rE7=function(e){e&&(typeof e=="string"&&(e=[e]),_.oX(e,function(z){if(z in TE){var C=TE[z],w=C[0],K=C[1],G=C[3];C=C[4];w.removeEventListener?MQE()||typeof C==="boolean"?w.removeEventListener(K,G,C):w.removeEventListener(K,G,!!C.capture):w.detachEvent&&w.detachEvent("on"+K,G);delete TE[z]}}))};
QG=function(e){this.callback_=e;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(e=0;e<4;e++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.lk(window,"mousemove",(0,_.uZ)(this.onMouseMove_,this));this.timerId_=_.vi((0,_.uZ)(this.checkPosition_,this),25)};
Ifh=function(){var e={};var z=e.preferMobileEvents===void 0?!1:e.preferMobileEvents;e=e.enableScrollEventListener===void 0?!0:e.enableScrollEventListener;if(_.pd("_lact",window)==null){var C=parseInt(_.j5("LACT"),10);C=isFinite(C)?Date.now()-Math.max(C,0):-1;_.lM("_lact",C,window);_.lM("_fact",C,window);C==-1&&_.m1();UF4(window,z,e);new QG(function(){vp1("mouse",100)})}};
UF4=function(e,z,C){z=z===void 0?!1:z;C=C===void 0?!0:C;_.lk(e.document,"keydown",_.m1);_.lk(e.document,"keyup",_.m1);_.lk(e.document,"mousedown",_.m1);_.lk(e.document,"mouseup",_.m1);z?_.lk(e,"touchmove",function(){vp1("touchmove",200)},{passive:!0}):(_.lk(e,"resize",function(){vp1("resize",200)}),C&&_.lk(e,"scroll",function(){vp1("scroll",200)}));
_.lk(e.document,"touchstart",_.m1,{passive:!0});_.lk(e.document,"touchend",_.m1,{passive:!0})};
vp1=function(e,z){WOs[e]||(WOs[e]=!0,_.c5.addLowPriorityJob(function(){_.m1();WOs[e]=!1},z))};
_.m1=function(){_.pd("_lact",window)==null&&Ifh();var e=Date.now();_.lM("_lact",e,window);_.pd("_fact",window)==-1&&_.lM("_fact",e,window);(e=_.pd("ytglobal.ytUtilActivityCallback_"))&&e()};
_.aC=function(){var e=_.pd("_lact",window);return e==null?-1:Math.max(Date.now()-e,0)};
_.Hn=function(e,z,C){var w=_.nC();if(w&&z){var K=w.subscribe(e,function(){var G=arguments,X=function(){MU[K]&&z.apply&&typeof z.apply=="function"&&z.apply(C||window,G)};
try{_.PAs[e]?X():_.U3(X,0)}catch(J){_.AR(J)}},C);
MU[K]=!0;rm[e]||(rm[e]=[]);rm[e].push(K);return K}return 0};
_.R9o=function(e){var z=_.nC();z&&(typeof e==="number"?e=[e]:typeof e==="string"&&(e=[parseInt(e,10)]),_.oX(e,function(C){z.unsubscribeByKey(C);delete MU[C]}))};
_.LOh=function(e,z){var C=_.nC();C&&C.publish.apply(C,arguments)};
_.OmN=function(e){var z=_.nC();if(z)if(z.clear(e),e)h9N(e);else for(var C in rm)h9N(C)};
_.nC=function(){return _.wL.ytPubsubPubsubInstance};
h9N=function(e){rm[e]&&(e=rm[e],_.oX(e,function(z){MU[z]&&delete MU[z]}),e.length=0)};
Eps=function(){var e,z;return"h5vcc"in UO&&((e=UO.h5vcc.traceEvent)==null?0:e.traceBegin)&&((z=UO.h5vcc.traceEvent)==null?0:z.traceEnd)?1:"performance"in UO&&UO.performance.mark&&UO.performance.measure?2:0};
FOo=function(e){var z=Eps();switch(z){case 1:UO.h5vcc.traceEvent.traceBegin("YTLR",e);break;case 2:UO.performance.mark(e+"-start");break;case 0:break;default:_.ca(z,"unknown trace type")}};
VQ1=function(e){var z=Eps();switch(z){case 1:UO.h5vcc.traceEvent.traceEnd("YTLR",e);break;case 2:z=e+"-start";var C=e+"-end";UO.performance.mark(C);UO.performance.measure(e,z,C);break;case 0:break;default:_.ca(z,"unknown trace type")}};
ffh=function(e){var z,C;(C=(z=window).onerror)==null||C.call(z,e.message,"",0,0,e)};
Sms=function(e){if(_.M("web_lifecycle_error_handling_killswitch"))return e();try{return e()}catch(z){ffh(z)}};
uHs=function(e){return[e.auth===void 0?"undefined":e.auth,e.isJspb===void 0?"undefined":e.isJspb,e.cttAuthInfo===void 0?"undefined":e.cttAuthInfo,e.tier===void 0?"undefined":e.tier].join("/")};
_.r=function(e,z){if(e)return e[z.name]};
IC=function(){var e=_.pd("yt.logging.ims");e||(e=new vn,_.lM("yt.logging.ims",e));return e};
j55=function(e,z){if(e.endpoint==="log_event"){dF1(e);var C=DFg(e),w=imL(e.payload)||"",K=Nom(w),G=200;if(K){if(K.enabled===!1&&!_.M("web_payload_policy_disabled_killswitch"))return;G=s5h(K.tier);if(G===400){Boo(e,z);return}}Wn[C]=!0;C={cttAuthInfo:C,isJspb:!1,tier:G};IC().storePayload(C,e.payload);tQk(z,!1,C,gpE(w))}};
cEL=function(e,z,C){if(z.endpoint==="log_event"){dF1(void 0,z);var w=DFg(z,!0),K=Nom(e),G=200;if(K){if(K.enabled===!1&&!_.M("web_payload_policy_disabled_killswitch"))return;G=s5h(K.tier);if(G===400){yEN(e,z,C);return}}Wn[w]=!0;w={cttAuthInfo:w,isJspb:!0,tier:G};IC().storePayload(w,fv(z.payload));tQk(C,!0,w,gpE(e))}};
tQk=function(e,z,C,w){z=z===void 0?!1:z;w=w===void 0?!1:w;e&&(Pn=new e);e=_.n0("tvhtml5_logging_max_batch_ads_fork")||_.n0("tvhtml5_logging_max_batch")||_.n0("web_logging_max_batch")||100;var K=(0,_.as)(),G=AE5(z,C.tier),X=G.lastDebounceQueueFromLogTimeMs;w&&(G.useVideoStatsEndPoint=!0);w=0;C&&(w=IC().getSequenceCount(C));var J=function(){Zm4({writeThenSend:!0},z,C.tier)};
w>=1E3?J():w>=e?p9g||(p9g=etN(function(){J();p9g=void 0},0)):K-X>=10&&(ztg(z,C.tier),G.lastDebounceQueueFromLogTimeMs=K)};
Boo=function(e,z){if(e.endpoint==="log_event"){_.M("more_accurate_gel_parser")&&IC().storePayload({isJspb:!1},e.payload);dF1(e);var C=DFg(e),w=new Map;w.set(C,[e.payload]);var K=imL(e.payload)||"";z&&(Pn=new z);return new _.RC(function(G,X){Pn&&Pn.isReady()?Cwh(w,Pn,G,X,{bypassNetworkless:!0},!0,gpE(K)):G()})}};
yEN=function(e,z,C){if(z.endpoint==="log_event"){dF1(void 0,z);var w=DFg(z,!0),K=new Map;K.set(w,[fv(z.payload)]);C&&(Pn=new C);return new _.RC(function(G){Pn&&Pn.isReady()?wjs(K,Pn,G,{bypassNetworkless:!0},!0,gpE(e)):G()})}};
DFg=function(e,z){var C="";if(e.dangerousLogToVisitorSession)C="visitorOnlyApprovedKey";else if(e.cttAuthInfo){if(z===void 0?0:z){z=e.cttAuthInfo.token;C=e.cttAuthInfo;var w=new KBs;C.videoId?w.setVideoId(C.videoId):C.playlistId&&hX(w,2,of7,Ma(C.playlistId));G9E[z]=w}else z=e.cttAuthInfo,C={},z.videoId?C.videoId=z.videoId:z.playlistId&&(C.playlistId=z.playlistId),YTh[e.cttAuthInfo.token]=C;C=e.cttAuthInfo.token}return C};
Zm4=function(e,z,C){e=e===void 0?{}:e;z=z===void 0?!1:z;new _.RC(function(w,K){var G=AE5(z,C),X=G.useVideoStatsEndPoint;G.useVideoStatsEndPoint=!1;bUh(G.queueTimer);bUh(G.queueMaxTimer);G.queueMaxTimer=0;Pn&&Pn.isReady()?C===void 0&&_.M("enable_web_tiered_gel")?Xjg(w,K,e,z,300,X):Xjg(w,K,e,z,C,X):(ztg(z,C),w())})};
Xjg=function(e,z,C,w,K,G){var X=Pn;C=C===void 0?{}:C;w=w===void 0?!1:w;K=K===void 0?200:K;G=G===void 0?!1:G;var J=new Map,q=new Map,T={isJspb:w,cttAuthInfo:void 0,tier:K},Q={isJspb:w,cttAuthInfo:void 0};if(w){z=_.b(Object.keys(Wn));for(K=z.next();!K.done;K=z.next())K=K.value,q=_.M("enable_web_tiered_gel")?IC().smartExtractMatchingEntries({keys:[T,Q],sizeLimit:1E3}):IC().extractMatchingEntries({isJspb:!0,cttAuthInfo:K}),q.length>0&&J.set(K,q),(_.M("web_fp_via_jspb_and_json")&&C.writeThenSend||!_.M("web_fp_via_jspb_and_json"))&&
delete Wn[K];wjs(J,X,e,C,!1,G)}else{J=_.b(Object.keys(Wn));for(T=J.next();!T.done;T=J.next())T=T.value,Q=_.M("enable_web_tiered_gel")?IC().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:T,tier:K},{isJspb:!1,cttAuthInfo:T}],sizeLimit:1E3}):IC().extractMatchingEntries({isJspb:!1,cttAuthInfo:T}),Q.length>0&&q.set(T,Q),(_.M("web_fp_via_jspb_and_json")&&C.writeThenSend||!_.M("web_fp_via_jspb_and_json"))&&delete Wn[T];Cwh(q,X,e,z,C,!1,G)}};
ztg=function(e,z){e=e===void 0?!1:e;z=z===void 0?200:z;var C=function(){Zm4({writeThenSend:!0},e,z)},w=AE5(e,z),K=w===Jq1||w===k9k?5E3:qT7;
_.M("web_gel_timeout_cap")&&!w.queueMaxTimer&&(K=etN(function(){C()},K),w.queueMaxTimer=K);
bUh(w.queueTimer);K=_.j5("LOGGING_BATCH_TIMEOUT",_.n0("web_gel_debounce_ms",1E4));_.M("shorten_initial_gel_batch_timeout")&&xTL&&(K=TG4);K=etN(function(){_.n0("gel_min_batch_size")>0?IC().getSequenceCount({cttAuthInfo:void 0,isJspb:e,tier:z})>=$Tg&&C():C()},K);
w.queueTimer=K};
Cwh=function(e,z,C,w,K,G,X){K=K===void 0?{}:K;var J=Math.round((0,_.as)()),q=e.size,T=le7(X);e=_.b(e);var Q=e.next();for(X={};!Q.done;X={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},Q=e.next()){var m=_.b(Q.value);Q=m.next().value;m=m.next().value;X.batchRequest=_.de.unsafeClone({context:_.ju7(z.config_||_.ME())});if(!_.B1(m)&&!_.M("throw_err_when_logevent_malformed_killswitch")){w();break}X.batchRequest.events=m;
(m=YTh[Q])&&Qos(X.batchRequest,Q,m);delete YTh[Q];X.dangerousLogToVisitorSession=Q==="visitorOnlyApprovedKey";mTm(X.batchRequest,J,X.dangerousLogToVisitorSession);ae4(K);X.onSuccess$jscomp$3=function(a){_.M("start_client_gcf")&&_.c5.addLowPriorityJob(function(){return _.k(function(n){return n.yield(nfg(a),0)})});
q--;q||C()};
X.networkFailures=0;X.onError$jscomp$5=function(a){return function(){a.networkFailures++;if(K.bypassNetworkless&&a.networkFailures===1)try{PEo(z,T,a.batchRequest,Mj1({writeThenSend:!0},a.dangerousLogToVisitorSession,a.onSuccess$jscomp$3,a.onError$jscomp$5,G)),xTL=!1}catch(n){_.AR(n),w()}q--;q||C()}}(X);
try{PEo(z,T,X.batchRequest,Mj1(K,X.dangerousLogToVisitorSession,X.onSuccess$jscomp$3,X.onError$jscomp$5,G)),xTL=!1}catch(a){_.AR(a),w()}}};
wjs=function(e,z,C,w,K,G){w=w===void 0?{}:w;var X=Math.round((0,_.as)()),J={value:e.size},q=new Map([].concat(_.s_(e)));q=_.b(q);for(var T=q.next();!T.done;T=q.next()){var Q=_.b(T.value).next().value,m=e.get(Q);T=new rq1;var a=z.config_||_.ME(),n=new OO,H=new HUk;_.Et(H,1,a.innertubeContextHostLanguage);_.Et(H,2,a.innertubeContextGeoLocation);_.H5(H,16,a.innertubeContextClientNameFieldNumber);_.Et(H,17,a.innertubeContextClientVersion);if(a.innertubeContextClientConfigInfo){var I=a.innertubeContextClientConfigInfo,
L=new v5;I.coldConfigData&&_.Et(L,1,I.coldConfigData);I.appInstallData&&_.Et(L,6,I.appInstallData);I.coldHashData&&_.Et(L,3,I.coldHashData);I.hotHashData&&L.setHotHashData(I.hotHashData);_.PL(H,62,L)}(I=_.wL.devicePixelRatio)&&I!=1&&_.UR(H,65,_.ZT(I));I=kjs();I!==""&&_.Et(H,54,I);I=q6g();if(I.length>0){L=new UTE;for(var h=0;h<I.length;h++){var E=new EO;E.setKey(I[h].key);hX(E,2,vfo,Ma(I[h].value));Fe(L,15,EO,E)}_.PL(n,5,L)}i4h(a,H);Nk7(n);sum(H);BkE(a,H);tJ7(H);_.M("start_client_gcf")&&gzs(H);_.j5("DELEGATED_SESSION_ID")&&
!_.M("pageid_as_header_web")&&(a=new VG,_.Et(a,3,_.j5("DELEGATED_SESSION_ID")));!_.M("fill_delegate_context_in_gel_killswitch")&&(I=_.j5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L=_.ra(n,VG,3)||new VG,a=n,I=_.Et(L,18,I),_.PL(a,3,I));a=H;I=_.b(Object.entries(_.GN(_.j5("DEVICE",""))));for(L=I.next();!L.done;L=I.next())h=_.b(L.value),L=h.next().value,h=h.next().value,L==="cbrand"?_.Et(a,12,h):L==="cmodel"?_.Et(a,13,h):L==="cbr"?_.Et(a,87,h):L==="cbrver"?_.Et(a,88,h):L==="cos"?_.Et(a,18,
h):L==="cosver"?_.Et(a,19,h):L==="cplatform"&&_.H5(a,42,iKh(h));n.setClient(H);_.PL(T,1,n);if(H=G9E[Q])a:{if(_.R4(H,fC(H,of7,1)))n=1;else if(H.getPlaylistId())n=2;else break a;_.PL(T,4,H);H=T.getContext()||new OO;a=_.ra(H,VG,3)||new VG;I=new Su;I.setToken(Q);_.H5(I,1,n);Fe(a,12,Su,I);_.PL(H,3,a)}delete G9E[Q];Q=Q==="visitorOnlyApprovedKey";IeE()||_.uk(T,2,X);!Q&&(n=_.j5("EVENT_ID"))&&(H=WB1(),a=new Pwg,_.Et(a,1,n),_.uk(a,2,H),_.PL(T,5,a));ae4(w);if(_.M("jspb_serialize_with_worker")&&(n=_.Ki1())&&
w.writeThenSend){_.Rt4.set(LBh,{client:z,resolve:C,networklessOptions:w,isIsolated:K,useVSSEndpoint:G,dangerousLogToVisitorSession:Q,requestsOutstanding:J});n.postMessage({op:"gelBatchToSerialize",batchRequest:fv(T),clientEvents:m,key:LBh});LBh++;break}if(m){n=[];for(H=0;H<m.length;H++)try{n.push(new dm(m[H]))}catch(N){_.AR(new _.uh("Transport failed to deserialize "+String(m[H])))}m=n}else m=[];m=_.b(m);for(n=m.next();!n.done;n=m.next())Fe(T,3,dm,n.value);m={startTime:(0,_.as)(),ticks:{},infos:{}};
T=T.serialize();m.ticks.geljspc=(0,_.as)();_.M("log_jspb_serialize_latency")&&pJg("gel_jspb_serialize",m,{sampleRate:.1});_.htk(T,z,C,w,K,G,Q,J)}};
_.htk=function(e,z,C,w,K,G,X,J){w=w===void 0?{}:w;J=J===void 0?{value:0}:J;G=le7(G);w=Mj1(w,X,function(q){_.M("start_client_gcf")&&_.c5.addLowPriorityJob(function(){return _.k(function(T){return T.yield(nfg(q),0)})});
J.value--;J.value||C()},function(){J.value--;
J.value||C()},K);
w.headers["Content-Type"]="application/json+protobuf";w.postBodyFormat="JSPB";w.postBody=e;PEo(z,G,"",w);xTL=!1};
ae4=function(e){_.M("always_send_and_write")&&(e.writeThenSend=!1)};
Mj1=function(e,z,C,w,K){e={retry:!0,onSuccess:C,onError:w,networklessOptions:e,dangerousLogToVisitorSession:z,bypassMonitoring:!!K,headers:{},postBodyFormat:"",postBody:"",compress:_.M("compress_gel")||_.M("compress_gel_lr")};IeE()&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.as)())));return e};
mTm=function(e,z,C){IeE()||(e.requestTimeMs=String(z));_.M("unsplit_gel_payloads_in_logs")&&(e.unsplitGelPayloadsInLogs=!0);!C&&(z=_.j5("EVENT_ID"))&&(C=WB1(),e.serializedClientEventId={serializedEventId:z,clientCounter:String(C)})};
WB1=function(){var e=_.j5("BATCH_CLIENT_COUNTER")||0;e||(e=Math.floor(Math.random()*65535/2));e++;e>65535&&(e=1);_.g1("BATCH_CLIENT_COUNTER",e);return e};
Qos=function(e,z,C){if(C.videoId)var w="VIDEO";else if(C.playlistId)w="PLAYLIST";else return;e.credentialTransferTokenTargetId=C;e.context=e.context||{};e.context.user=e.context.user||{};e.context.user.credentialTransferTokens=[{token:z,scope:w}]};
dF1=function(e,z){var C=_.Mv("il_payload_scraping")==="enable_il_payload_scraping";if(!_.pd("yt.logging.transport.enableScrapingForTest"))if(C)OU4=[],_.lM("yt.logging.transport.enableScrapingForTest",!0),_.lM("yt.logging.transport.scrapedPayloadsForTesting",OU4),_.lM("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.lM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.lM("yt.logging.transport.scrapeClientEvent",!0);else return;C=_.pd("yt.logging.transport.scrapedPayloadsForTesting");var w=_.pd("yt.logging.transport.payloadToScrape");z&&(z=_.pd("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(z.payload)())&&C.push(z);z=_.pd("yt.logging.transport.scrapeClientEvent");if(w&&w.length>=1)for(var K=0;K<w.length;K++)if(e&&e.payload[w[K]])if(z)C.push(e.payload);else{var G=void 0;C.push(((G=e)==null?void 0:G.payload)[w[K]])}_.lM("yt.logging.transport.scrapedPayloadsForTesting",
C)};
IeE=function(){return _.M("use_request_time_ms_header")||_.M("lr_use_request_time_ms_header")};
etN=function(e,z){return _.M("transport_use_scheduler")===!1?_.U3(e,z):_.M("logging_avoid_blocking_during_navigation")||_.M("lr_logging_avoid_blocking_during_navigation")?_.Dz(_.c5,function(){if(_.EfE().currentState==="none")e();else{var C={};_.EfE().install((C.none={callback:e},C))}},z):_.Dz(_.c5,e,z)};
bUh=function(e){_.M("transport_use_scheduler")?_.c5.cancelJob(e):_.Wi(e)};
nfg=function(e){var z,C,w,K,G,X,J,q,T,Q;return _.k(function(m){return m.nextAddress==1?(w=(z=e)==null?void 0:(C=z.responseContext)==null?void 0:C.globalConfigGroup,K=_.r(w,FBh),X=(G=w)==null?void 0:G.hotHashData,J=_.r(w,Vjo),T=(q=w)==null?void 0:q.coldHashData,(Q=_.lh().resolve(_.$B(ik)))?X?K?m.yield(feg(Q,X,K),2):m.yield(feg(Q,X),2):m.jumpTo(2):m.return()):T?J?m.yield(STL(Q,T,J),0):m.yield(STL(Q,T),0):m.jumpTo(0)})};
AE5=function(e,z){z=z===void 0?200:z;return e?z===300?Jq1:uWL:z===300?k9k:dTg};
Nom=function(e){if(_.M("enable_web_tiered_gel")){e=DTN[e||""];var z,C,w,K=_.lh().resolve(_.$B(ik))==null?void 0:(z=NU())==null?void 0:(C=z.loggingHotConfig)==null?void 0:(w=C.eventLoggingConfig)==null?void 0:w.payloadPolicies;if(K)for(z=0;z<K.length;z++)if(K[z].payloadNumber===e)return K[z]}};
imL=function(e){e=Object.keys(e);e=_.b(e);for(var z=e.next();!z.done;z=e.next())if(z=z.value,DTN[z])return z};
s5h=function(e){switch(e){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}};
gpE=function(e){return e==="gelDebuggingEvent"};
le7=function(e){return(e===void 0?0:e)&&_.M("vss_through_gel_video_stats")?"video_stats":"log_event"};
Bn=function(e,z,C,w){w=w===void 0?{}:w;var K={},G=Math.round(w.timestamp||(0,_.as)());K.eventTimeMs=G<Number.MAX_SAFE_INTEGER?G:0;K[e]=z;e=_.aC();K.context={lastActivityMs:String(w.timestamp||!isFinite(e)?-1:e)};w.sequenceGroup&&!_.M("web_gel_sequence_info_killswitch")&&(e=K.context,z=w.sequenceGroup,z={index:iUo(z),groupKey:z},e.sequence=z,w.endOfSequence&&delete sO[w.sequenceGroup]);_.M("web_tag_automated_log_events")&&(K.context.automatedLogEventSource=w.automatedLogEventSource);(w.sendIsolatedPayload?
Boo:j55)({endpoint:"log_event",payload:K,cttAuthInfo:w.cttAuthInfo,dangerousLogToVisitorSession:w.dangerousLogToVisitorSession},C)};
iUo=function(e){sO[e]=e in sO?sO[e]+1:0;return sO[e]};
_.gm=function(e,z,C){C=C===void 0?{}:C;var w=tX;_.cR("ytLoggingEventsDefaultDisabled",!1)&&tX===tX&&(w=null);Bn(e,z,w,C)};
_.ju=function(){if(_.M("web_fp_via_jspb")){var e=!0;e=e===void 0?!1:e;var z=NGE;NGE=[];if(z){z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,e?Bn(C.payloadName,C.payload,tX,C.options):_.gm(C.payloadName,C.payload,C.options)}Zm4(void 0,!0);if(!_.M("web_fp_via_jspb_and_json"))return}Zm4(void 0,!1)};
sog=function(e,z){var C;if((C=z)==null?0:C.componentStack)return z;if(e=e.componentStack)z||(z={}),z.componentStack=e;return z};
BGs=function(){_.oX(_.j5("ERRORS")||[],function(e){_.yG.apply(null,e)});
_.g1("ERRORS",[])};
_.cn=function(e){_.yG(e)};
_.AX=function(e){_.yG(e,"WARNING")};
tjh=function(e){e instanceof Error?_.yG(e):(e=_.gL(e)?JSON.stringify(e):String(e),e=new _.uh(e),e.name="RejectedPromiseError",_.AX(e))};
gf1=function(e,z,C,w,K,G){z=z===void 0?"Unknown file":z;C=C===void 0?0:C;var X=!1,J=sph("log_window_onerror_fraction");if(J&&Math.random()<J)X=!0;else{J=document.getElementsByTagName("script");for(var q=0,T=J.length;q<T;q++)if(J[q].src.indexOf("/debug-")>0){X=!0;break}}X&&(X=!1,K?X=!0:(typeof e==="string"?J=e:ErrorEvent&&e instanceof ErrorEvent?(X=!0,J=e.message,z=e.filename,C=e.lineno,w=e.colno):(J="Unknown error",z="Unknown file",C=0),K=new _.uh(J),K.name="UnhandledWindowError",K.message=J,K.fileName=
z,K.lineNumber=C,isNaN(w)?delete K.columnNumber:K.columnNumber=w),_.M("wiz_enable_component_stack_propagation_killswitch")||(G=sog(K,G)),G&&_.Zz(K,G),X?_.yG(K):_.AX(K))};
_.yG=function(e,z,C,w,K,G,X,J){G=G===void 0?{}:G;G.name=C||_.j5("INNERTUBE_CONTEXT_CLIENT_NAME",1);G.version=w||_.j5("INNERTUBE_CONTEXT_CLIENT_VERSION");C=G;z=z===void 0?"ERROR":z;X=X===void 0?!1:X;z=z===void 0?"ERROR":z;X=X===void 0?!1:X;if(e&&(e.hasOwnProperty("level")&&e.level&&(z=e.level),_.M("console_log_js_exceptions")&&(w=[],w.push("Name: "+e.name),w.push("Message: "+e.message),e.hasOwnProperty("params")&&w.push("Error Params: "+JSON.stringify(e.params)),e.hasOwnProperty("args")&&w.push("Error args: "+
JSON.stringify(e.args)),w.push("File name: "+e.fileName),w.push("Stacktrace: "+e.stack),w=w.join("\n"),window.console.log(w,e)),!(jok>=5))){w=[];K=_.b(yq8);for(G=K.next();!G.done;G=K.next()){G=G.value;try{G()&&w.push(G())}catch(L){}}w=[].concat(_.s_(cqg),_.s_(w));var q=Aq8(e);K=q.message||"Unknown Error";G=q.name||"UnknownError";var T=q.stack||e.stacktrace||"Not available";if(T.startsWith(G+": "+K)){var Q=T.split("\n");Q.shift();T=Q.join("\n")}Q=q.lineNumber||"Not available";q=q.fileName||"Not available";
var m=0;if(e.hasOwnProperty("args")&&e.args&&e.args.length)for(var a=0;a<e.args.length&&!(m=DLg(e.args[a],"params."+a,C,m),m>=500);a++);else if(e.hasOwnProperty("params")&&e.params){var n=e.params;if(typeof e.params==="object")for(a in n){if(n[a]){var H="params."+a,I=O3(n[a]);C[H]=I;m+=H.length+I.length;if(m>500)break}}else C.params=O3(n)}if(w.length)for(a=0;a<w.length&&!(m=DLg(w[a],"params.context."+a,C,m),m>=500);a++);navigator.vendor&&!C.hasOwnProperty("vendor")&&(C["device.vendor"]=navigator.vendor);
a={message:K,name:G,lineNumber:Q,fileName:q,stack:T,params:C,sampleWeight:1};C=Number(e.columnNumber);isNaN(C)||(a.lineNumber=a.lineNumber+":"+C);if(e.level==="IGNORED")e=0;else a:{e=ZUL();C=_.b(e.messageWeights);for(w=C.next();!w.done;w=C.next())if(w=w.value,a.message&&a.message.match(w.messageRegExp)){e=w.weight;break a}e=_.b(e.callbackWeights);for(C=e.next();!C.done;C=e.next())if(C=C.value,C.callback(a)){e=C.weight;break a}e=1}a.sampleWeight=e;e=_.b(pj1);for(C=e.next();!C.done;C=e.next())if(C=
C.value,C.patternsForType[a.name])for(K=_.b(C.patternsForType[a.name]),w=K.next();!w.done;w=K.next())if(G=w.value,w=a.message.match(G.regexp)){a.params["params.error.original"]=w[0];K=G.groups;G={};for(Q=0;Q<K.length;Q++)G[K[Q]]=w[Q+1],a.params["params.error."+K[Q]]=w[Q+1];a.message=C.messageFn(G);break}a.params||(a.params={});e=ZUL();a.params["params.errorServiceSignature"]="msg="+e.messageWeights.length+"&cb="+e.callbackWeights.length;a.params["params.serviceWorker"]="false";_.wL.document&&_.wL.document.querySelectorAll&&
(a.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new pC(eh5,"sample")).constructor!==pC&&(a.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(a);if(a.sampleWeight!==0&&!zhk.has(a.message)){if(X)C3L(z===void 0?"ERROR":z,a);else{z=z===void 0?"ERROR":z;z==="ERROR"?(eY.publish("handleError",a),_.M("record_app_crashed_web")&&wF1===0&&a.sampleWeight===1&&(wF1++,X={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.M("report_client_error_with_app_crash_ks")||
(X.systemHealth={crashData:{clientError:{logMessage:{message:a.message}}}}),_.gm("appCrashed",X)),KT5++):z==="WARNING"&&eY.publish("handleWarning",a);if(_.M("kevlar_gel_error_routing")){X=z;J=J===void 0?{}:J;b:{e=_.b(oT1);for(C=e.next();!C.done;C=e.next())if(AJ(C.value.toLowerCase())){e=!0;break b}e=!1}if(e)J=void 0;else{C={stackTrace:a.stack};a.fileName&&(C.filename=a.fileName);e=a.lineNumber&&a.lineNumber.split?a.lineNumber.split(":"):[];e.length!==0&&(e.length!==1||isNaN(Number(e[0]))?e.length!==
2||isNaN(Number(e[0]))||isNaN(Number(e[1]))||(C.lineNumber=Number(e[0]),C.columnNumber=Number(e[1])):C.lineNumber=Number(e[0]));e={level:"ERROR_LEVEL_UNKNOWN",message:a.message,errorClassName:a.name,sampleWeight:a.sampleWeight};X==="ERROR"?e.level="ERROR_LEVEL_ERROR":X==="WARNING"&&(e.level="ERROR_LEVEL_WARNNING");C={isObfuscated:!0,browserStackInfo:C};J.pageUrl=window.location.href;J.kvPairs=[];_.j5("FEXP_EXPERIMENTS")&&(J.experimentIds=_.j5("FEXP_EXPERIMENTS"));w=_.j5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!sph("web_disable_gel_stp_ecatcher_killswitch")&&w)for(K=_.b(Object.keys(w)),G=K.next();!G.done;G=K.next())G=G.value,J.kvPairs.push({key:G,value:String(w[G])});if(w=a.params)for(K=_.b(Object.keys(w)),G=K.next();!G.done;G=K.next())G=G.value,J.kvPairs.push({key:"client."+G,value:String(w[G])});w=_.j5("SERVER_NAME");K=_.j5("SERVER_VERSION");w&&K&&(J.kvPairs.push({key:"server.name",value:w}),J.kvPairs.push({key:"server.version",value:K}));J={errorMetadata:J,stackTrace:C,logMessage:e}}J&&(_.gm("clientError",
J),(X==="ERROR"||_.M("errors_flush_gel_always_killswitch"))&&_.ju())}_.M("suppress_error_204_logging")||C3L(z,a)}try{zhk.add(a.message)}catch(L){}jok++}}};
C3L=function(e,z){var C=z.params||{};e={urlParams:{a:"logerror",t:"jserror",type:z.name,msg:z.message.substr(0,250),line:z.lineNumber,level:e,"client.name":C.name},postParams:{url:_.j5("PAGE_NAME",window.location.href),file:z.fileName},method:"POST"};C.version&&(e["client.version"]=C.version);if(e.postParams){z.stack&&(e.postParams.stack=z.stack);z=_.b(Object.keys(C));for(var w=z.next();!w.done;w=z.next())w=w.value,e.postParams["client."+w]=C[w];if(C=_.j5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(z=
_.b(Object.keys(C)),w=z.next();!w.done;w=z.next())w=w.value,e.postParams[w]=C[w];(C=_.j5("LAVA_VERSION"))&&(e.postParams["lava.version"]=C);C=_.j5("SERVER_NAME");z=_.j5("SERVER_VERSION");C&&z&&(e.postParams["server.name"]=C,e.postParams["server.version"]=z)}_.RX(_.j5("ECATCHER_REPORT_HOST","")+"/error_204",e)};
_.Gis=function(e,z){z=z===void 0?"ERROR":z;var C=C===void 0?{}:C;var w=_.pd("ytbin.polymer.shared.lib.tampering.info");w&&(w=w())&&(C["params.tamperingInfo"]=w.sort().join(","));_.yG(e,z,void 0,void 0,!0,C)};
_.Zz=function(e){var z=_.yL.apply(1,arguments);e.args||(e.args=[]);Array.isArray(e.args)&&e.args.push.apply(e.args,_.s_(z))};
Yz5=function(e){e.level="IGNORED"};
b75=function(e,z){cqg.push(e);z();cqg.pop()};
CZ=function(e,z){for(var C in z)z.hasOwnProperty(C)&&(e=_.z4(e,C,z[C]));return e};
_.XFo=function(e,z,C){C=C===void 0?!1:C;if(!e)return null;if(e.adInfoDialogEndpoint||e.backstageImageUploadEndpoint||e.confirmDialogEndpoint||e.clientActionEndpoint||e.createBackstagePostDialogEndpoint||e.createCommentReplyDialogEndpoint||e.flowEndpoint||e.guideBuilderEndpoint||e.liveChatDialogEndpoint||e.modalEndpoint||e.openPopupAction||e.shareEndpoint||e.shareEntityEndpoint||e.showLiveChatItemEndpoint||e.subscriptionManagerEndpoint||e.unlimitedCreateFamilyEndpoint||e.unlimitedFamilyFlowEndpoint||
e.updateCommentDialogEndpoint||e.updateCommentReplyDialogEndpoint||e.userFeedbackEndpoint||e.videoEditorEndpoint||e.ypcCancelSurveyEndpoint)return z=_.n0("polymer_report_client_url_requested_rate"),!C&&Math.random()<z&&_.AX(new _.uh("urlForEndpoint used on client endpoint",e)),null;var w=_.n0("polymer_report_missing_web_navigation_endpoint_rate");if(e.liveChatEndpoint||e.liveChatReplayEndpoint)w=0;if(!e.commandMetadata&&!e.clickTrackingParams&&Math.random()<w){var K={},G;for(G in e)K[G]="1";_.AX(new _.uh("Missing navigation data",
K))}K="";if(e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.url)K=e.commandMetadata.webCommandMetadata.url;else if(e.searchEndpoint)Math.random()<w&&_.AX(new _.uh("Should not manually handle search",e)),K="/results?search_query="+encodeURIComponent(e.searchEndpoint.query).replace(/%20/g,"+"),e.searchEndpoint.params&&(K+="&sp="+e.searchEndpoint.params);else if(e.watchEndpoint)Math.random()<w&&_.AX(new _.uh("Should not manually handle watch",e)),K="/watch?v="+
e.watchEndpoint.videoId,e.watchEndpoint.playlistId&&(K+="&list="+e.watchEndpoint.playlistId),e.watchEndpoint.index&&(K+="&index="+e.watchEndpoint.index),e.watchEndpoint.startTimeSeconds&&(K+="&t="+e.watchEndpoint.startTimeSeconds);else if(e.browseEndpoint)w=e.browseEndpoint.browseId,(G=e.browseEndpoint.canonicalBaseUrl)?K=G:w&&(K=w.substr(0,2),K=K==="FE"?w==="FEwhat_to_watch"?"/":w==="FEmy_videos"?"/my_videos":"/feed/"+w.substr(2):K==="VL"?"/playlist?list="+w.substr(2):"/channel/"+w),K&&e.browseEndpoint.query&&
(K=CZ(K+"/search",{query:e.browseEndpoint.query})),K&&e.browseEndpoint.params&&(K=CZ(K,{params:e.browseEndpoint.params}));else{if(e.urlEndpoint)return e.urlEndpoint.url;e.signInEndpoint?(K="https://accounts.google.com/ServiceLogin",w={},_.de.extend(w,z||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),z=w):e.uploadEndpoint?K="//www.youtube.com/upload":e.liveChatEndpoint?(K=e.liveChatEndpoint,w=_.de.clone(K),_.gL(K.continuation)&&(G=Object.keys(K.continuation)[0],
w.continuation=K.continuation[G].continuation),K=CZ("/youtubei/v1/live_chat/get_live_chat",w)):e.liveChatReplayEndpoint?(K=_.de.clone(e.liveChatReplayEndpoint),K.currentPlayerState&&(_.de.extend(K,K.currentPlayerState),delete K.currentPlayerState),K=CZ("/youtubei/v1/live_chat/get_live_chat_replay",K)):e.liveChatItemContextMenuEndpoint?K=CZ("/youtubei/v1/live_chat/get_item_context_menu",e.liveChatItemContextMenuEndpoint):e.liveChatPurchaseMessageEndpoint?K=CZ("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
e.liveChatPurchaseMessageEndpoint):e.openSuperStickerBuyFlowCommand?K=CZ("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",e.openSuperStickerBuyFlowCommand):e.videoEditEndpoint?K=CZ("/edit",{video_id:e.videoEditEndpoint.videoId}):e.liveDashboardEndpoint?K=e.liveDashboardEndpoint.videoId?CZ("/live_dashboard",{v:e.liveDashboardEndpoint.videoId}):"/live_dashboard":e.signalNavigationEndpoint&&e.signalNavigationEndpoint.signal&&e.signalNavigationEndpoint.signal==="WEBCAM"?K="/webcam":e.getPdgBuyFlowCommand&&
(K=CZ(e.getPdgBuyFlowCommand.buyflowApiPath,{params:e.getPdgBuyFlowCommand.params}))}return K||C?CZ(K,z||{}):(_.AX(new _.uh("Error: Can't construct url for endpoint","keys:"+Object.keys(e).sort().join(","),e)),null)};
Jmg=function(e){if(e){if(e.browseEndpoint)return!!e.browseEndpoint.nofollow;if(e.watchEndpoint)return!!e.watchEndpoint.nofollow;if(e.urlEndpoint)return!!e.urlEndpoint.nofollow}return!1};
_.qz4=function(e,z){var C=z+e,w=kiE.get(C);if(w)return w;e=z+"-"+e.replace(/([A-Z])/g,"-$1").toLowerCase();kiE.set(C,e);return e};
xK8=function(e){var z=_.BR(e,"action")||_.BR(e,"command")||_.BR(e,"endpoint");if(!z)return null;z=_.qz4(z,"yt");_.r(e,_.wK)&&(z+="-"+_.r(e,_.wK).signal.toLowerCase().replace(/_/g,"-"));return z};
Qxs=function(e){try{var z=Object.keys(e)}catch(K){return[]}for(var C=0;C<z.length;C++){var w=z[C];if(TEN.test(w)||$KN.test(w))return lhL(e[w])}return[]};
lhL=function(e){return e.command?[e.command]:e.onExecutionAction?[e.onExecutionAction]:e.onResponseReceivedCommand?[e.onResponseReceivedCommand]:e.updateFlowCommand?[e.updateFlowCommand]:e.clientActions?e.clientActions:e.action?[e.action]:e.actions||e.commands||e.onResponseReceivedActions||e.onResponseReceivedCommands||e.onResponseReceivedEndpoints||[]};
ahN=function(e,z){z=z===void 0?!1:z;var C=_.lh().resolve(_.$B(KZ));C||(C=new mKs,_.lh().addProvider({provide:KZ,useValue:C}));return C&&e&&!_.de.isEmpty(e)?C.getUrl(e,z):""};
nTE=function(e,z,C){C=C===void 0?"":C;if(z){e.data=z;var w=ahN(z);w?(At(e,w),Jmg(z)||!xB(w)?e.rel="nofollow":e.removeAttribute("rel"),_.r(z,_.oO)&&_.r(z,_.oO).target==="TARGET_NEW_WINDOW"?e.target="_blank":C?e.target=C:e.removeAttribute("target")):(e.removeAttribute("href"),e.removeAttribute("rel"),e.removeAttribute("target"))}};
_.JH=function(e,z){var C=JG;if(VM())M3g(e,function(){var G=_.yL.apply(0,arguments);ja(C,function(){z.apply(null,_.s_(G))})});
else{var w=_.G4.getInstance(),K=NNE(z);E11(function(){K.value=z});
_.sg(function(){var G={},X=_.YI(w,(G[e]=function(){var J=_.yL.apply(0,arguments);ja(C,function(){K.value.apply(K,_.s_(J))})},G));
return function(){var J={};_.XL(w,(J[e]="",J),X)}})}};
_.kI=function(e,z){return rms(e,!1,z)};
_.qD=function(e,z){return rms(e,!0,z)};
rms=function(e,z,C){return VM()?H71(e,z,C):UKg(e,z,C)};
UKg=function(e,z,C){return D$L(function(){return H71(e,z,C)},[])};
H71=function(e,z,C){var w=RD1(function(K){w.value=K;var G=function(){var X=QM(null);try{return C==null?void 0:C(K)}finally{QM(X)}}();
return function(){G==null||G()}});
w.__expectedTagName=e;w.__optional=z;w.isIdom=!VM();return w};
vT1=function(e){var z=JG,C=EH;return{getFn:function(){return function(w){if(!z.isDisposed){var K=function(){return e(w)};
Sa(function(){return _.UH(K)},C)!==!0&&w.stopPropagation()}}}}};
Ih7=function(e){if(typeof e.children==="function")return e.children(),null;e=_.b(e.children);for(var z=e.next();!z.done;z=e.next())z=z.value,z();return null};
WT4=function(e){var z;return((z=e.prototype)==null?void 0:z.render)===void 0};
P38=function(e){var z=Array.isArray(e.items)?e.items:Array.from(e.items);e=e.children;return(Array.isArray(z)?z:Array.from(z)).map(e)};
LTg=function(e,z,C){C=C===void 0?!1:C;Sa(function(){return Rhs(e,z,C)})};
Rhs=function(e,z,C){var w=null;dp++;C=(C===void 0?0:C)?hhg:O78;try{w=C(e,function(){$I(z)}),i0(!1)}catch(K){throw i0(!0),K;
}return w===null?e:w};
$I=function(e){if(e!==void 0&&e!==null)if(e instanceof RV)for(var z=w1;Kd()!=null&&x$1 in Kd()&&z.contains(Kd());)Yi();else if(Array.isArray(e))for(z=_.b(e),e=z.next();!e.done;e=z.next())$I(e.value);else if(e instanceof OC||e instanceof $o||"function"==typeof _.TR&&e instanceof _.TR)q8m(e.toString());else if(_.aV(e)){if(Kd()!==e){var C,w;z=(w=(C=EH)==null?void 0:C.name)!=null?w:"unknown";throw Error("hc`"+e.tagName+"`"+z);}Yi()}else if(e!=null&&e.contentKind===r1||e instanceof Zy||WAg(e))for(z=R$m(e),
z=Array.from(z.childNodes),z=_.b(z),e=z.next();!e.done;e=z.next())w1.appendChild(e.value),Yi();else if(dw(e)&&(e=e.toString()),C=typeof e,C==="boolean"||C==="number"||C==="string")q8m(e);else if(typeof e==="function"){z=w1;var K=Kd();K&&(K._isSignalTextNode||K._isSafeOrSanitizedHtmlNode)||wr7(z,K,e);Yi()}else if(e.type===P38)$I(e.type(Object.assign({},e.props,{children:e.children[0]})));else{if(typeof e.type==="string"){a:{e.__open||KA5(e.type,e.props.idomKey);K=w1;for(z in e.props)if(e.props[z]!==
ET1){var G=e.props[z];C=JR;C.push(z);C.push(G)}z=$J.attributes;z=z===void 0?lp:z;G=w1;C=Cd(G);k01(G,C,z);CYk(K,e.props,!0);if((e.props.skip||e.props.skipchildren)&&w1.hasChildNodes())GR=w1.lastChild;else{if(e.type==="style"&&S85(e.children)===null){GR=w1.lastChild;z=void 0;break a}$I(e.children)}oWN();e.__open&&(e.__open=!1);nWN(K,e.props);z=K}return z}if(e.type===_.Qw)$I(e.children);else if(!FTo(e)){z=e;try{V31(z)}catch(X){e=X,(G=$J.handleError)==null||G.call.apply(G,[$J].concat(_.s_(yM(e,(K=z.type)==
null?void 0:K.TAG_NAME))))}z.__open&&(oWN(),z.__open=!1)}}};
fh1=function(e,z){var C;WT4(e)?C=new F1(z,e):C=new e(z);C.__type=e;C.__updateContext={nextState:C.state,isForced:!1};return C};
V31=function(e){var z=e.type,C=z.TAG_NAME;if(z===Ih7)e.props.children=e.children,z(e.props);else{e.children.length>0&&(e.props.children=e.children);var w;(w=e.props).idomKey||(w.idomKey=z);if(C){var K=KA5(C,e.props.idomKey);e.__open=!0;var G=K.__instance}G||(G=fh1(z,e.props),G.props=null,K&&(K.__instance=G,G.el=K));var X;C=((X=G.__updateContext)!=null?X:{nextState:G.state,isForced:!1}).nextState;G.__updateContext=void 0;z.getDerivedStateFromProps&&(C=z.getDerivedStateFromProps(e.props,C));G.props=
e.props;G.state=C;X=function(){var J=G;Og.beforeRender(J);var q=J.render(J.props);q?(J.props.idomKey&&(q.props.idomKey=J.props.idomKey),J=q):J=void 0;if(q=J)if(q.__open=e.__open,J=$I(q),e.__open=q.__open,!z.TAG_NAME)if(J)z.TAG_NAME=J.tagName.toLowerCase(),J.__instance=G,G.el=J;else{var T;if((T=G.hooks)==null?0:T.length){var Q;(Q=$J.handleError)==null||Q.call.apply(Q,[$J].concat(_.s_(yM(Error("od")))))}}G.didPatch();Og.didPatch(G)};
(C=G.functionComponent)?dUL(C,X,G.props.debugInstance):X()}};
FTo=function(e){var z=e.type;if(!WT4(z)||z===Ih7||z.componentType===Fy)return!1;e.props.children=e.children.length>1?e.children:e.children[0];var C,w=(C=e.props.idomKey)!=null?C:e.type,K;if(Kd()&&((K=Kd()[vR])==null?void 0:K.key)===w){var G=Kd(),X=G[vR];if(!X)throw Error("gc`"+G.tagName);var J;(J=X.updateSignalsFromIdomProps)==null||J.call(X,e.props);Szs(X);return!0}if(uRL.has(z.name))throw J=z.name,z=(X=(G=EH)==null?void 0:G.name)!=null?X:"unknown",Error("fc`"+J+"`"+z);YXs(e.type,e.props,e.children);
e.props.renderedFromIdom=!0;(J=dUL(e.type,function(){return A2L(e.type,e.props)},e.props.debugInstance))&&dKg(J);
return!0};
DK1=function(e){for(var z=0;z<PR(e).length;z++)Yi()};
Szs=function(e){var z=i7m();if(z)DK1(z);else for(var C=0;C<e.numNodes;C++)(z=i7m())?DK1(z):Yi()};
i7m=function(){var e;return(e=Kd()[vR])==null?void 0:e.sourceDynamicRange};
dKg=function(e){e=HGo(e);e=Array.isArray(e)?e:[e];e=_.b(e);for(var z=e.next();!z.done;z=e.next())w1.insertBefore(z.value,Kd()),Yi()};
NEL=function(){var e=pAo(),z=D$L(function(){return{value:0}},[]);
return[z.value,function(C){if(Eg!==null){var w;(w=$J.handleError)==null||w.call.apply(w,[$J].concat(_.s_(yM(Error("pd")))))}z.value=typeof C==="function"?C(z.value):C;e.__updateContext={nextState:e.state,isForced:!0};C=_.kJ(e.effectContext);w=mM(!1);try{if(e.el){var K,G={},X=(G.props=e.props,G.type=e.__type,G.children=(K=e.props.children)!=null?K:[],G[li]=!0,G);try{LTg(e.el,X,!0)}catch(T){var J,q;(q=$J.handleError)==null||q.call.apply(q,[$J].concat(_.s_(yM(T,(J=e.__type)==null?void 0:J.TAG_NAME))))}}}finally{mM(w),
_.kJ(C)}}]};
_.Qr=function(e,z){var C=JG,w=function(K){ja(C,function(){z(K)})};
window.addEventListener(e,w,void 0);_.BC(function(){window.removeEventListener(e,w,void 0)})};
_.aO=function(e){var z=JG;return function(C){var w,K=(w=e.observer)!=null?w:_.lh().resolve(m$);w=sxL(C);var G=[];e.showOption&&G.push(K.observe(C,function(){ja(z,function(){e.visibilityCallback(!0,C)})},e.showOption));
e.hideOption&&G.push(K.observe(C,function(){ja(z,function(){e.visibilityCallback(!1,C)})},e.hideOption));
e.prescanOption&&e.prescanCallback&&G.push(K.observe(C,function(){ja(z,function(){e.prescanCallback()})},e.prescanOption));
var X;w.visibilityMonitorKeys=((X=w.visibilityMonitorKeys)!=null?X:[]).concat(G)}};
sxL=function(e){var z;return(z=e.polymerController)!=null?z:e};
jx7=function(e,z){var C=BEg;return _.x(_.Qw,null,rfg($J.enableLazyTsx,function(){return _.x(t3m,{id:C,value:e,children:z})},function(){var w=gTm(C,e);
Tt(w);w=_.kJ(w);try{return z()}finally{_.kJ(w)}}))};
t3m=function(e){var z=e.children;e=gTm(e.id,e.value);Tt(e);e=_.kJ(e);try{return _.x(_.Qw,null,Ld(z()))}finally{_.kJ(e)}};
gTm=function(e,z){return Object.assign(Object.create(ym5),{id:e,contextValue:z})};
cmg=function(e){var z,C=JG;_.N6(function(){var w=_.kJ(C),K=mM(!z);try{if(z)LTg(z,e.children(),!0);else if(z=Ld(e.children()),!(z instanceof Element))throw Error("qd");}finally{mM(K),_.kJ(w)}},"g");
return z};
_.Amo=function(e,z){var C;z=tG(function(){var w=mM(!0);dp++;try{C=PR(e()),i0(!1)}catch(K){throw i0(!0),K;}finally{mM(w)}},z===void 0?!1:z);
return[C,z]};
pFk=function(e){var z=new Z7h;z.abort(e);return z.signal};
eP5=function(){if(this.aborted){var e;throw(e=this.reason)!=null?e:new DOMException("signal is aborted without reason","AbortError");}};
w0g=function(e){var z=new Z7h;e=_.b(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,C.aborted){z.abort(C.reason);break}else zPh.set(z.signal,z),Cn5.add(C,z.signal);return z.signal};
K8E=function(){for(var e=_.b(Cn5.get(this)),z=e.next();!z.done;z=e.next())zPh.get(z.value).abort(this.reason)};
osk=function(e){var z=new Z7h;setTimeout(function(){z.abort(new DOMException("signal timed out","TimeoutError"))},e);
return z.signal};
GV5=function(){var e,z;return{promise:new Promise(function(C,w){e=C;z=w}),
resolve:e,reject:z}};
bso=function(e){var z=GV5(),C=z.promise;YA8.set(e,{promise:C,resolve:z.resolve,reject:z.reject});nZ||(nZ=[],queueMicrotask(function(){var w=[].concat(_.s_(nZ));nZ=null;var K=Bo().loadMultiple(w);w=_.b(w);for(var G=w.next();!G.done;G=w.next())G=G.value,K[G].then(YA8.get(G).resolve,YA8.get(G).reject)}));
nZ.push(e);return C};
JSL=function(e){e=e.buf.charCodeAt(e.pos++);return X0o[e]};
MD=function(e){var z=0,C=0;do{var w=JSL(e);z|=(w&31)<<C;C+=5}while(w&32);return z<0?z+4294967296:z};
qAo=function(e,z,C,w){var K=!0;K=K===void 0?!1:K;z=z===void 0?!1:z;w=w===void 0?{}:w;var G=w.cssRowKey||"",X=w.combinedSignature||"";!G&&window&&window._F_cssRowKey&&(G=window._F_cssRowKey,!X&&window._F_combinedSignature&&(X=window._F_combinedSignature));if(G&&typeof window._F_installCss!=="function")throw Error("Ad");var J=w.loaderClass||_.rK;e=Nag(e===void 0?"base-js":e);z=new J(WgN(Ba5("",e)),G,X,K,z);K=w.useCors||e&&e.hasAttribute("crossorigin");e=w.corsMode||e&&e.getAttribute("crossorigin");
K&&(z.useCors_=K);e&&(z.corsMode_=e);w.urlMaxLength&&(z.urlMaxLength=w.urlMaxLength);C&&(z.insertPos=C);w.fetchPriority&&(z.fetchPriority=w.fetchPriority);var q=Bo();q.JSC$10223_loader_=z;q.setBatchModeEnabled(!0);_.kV4=w.batchingStrategy==="BATCH"?bso:function(T){return Promise.resolve(q.load(T))}};
$l1=function(e,z,C){xls(e,z);e[z][T$g].unshift(C)};
xls=function(e,z){if(!e[z]||!e[z][T$g]){var C=e[z],w=C?[C]:[];e[z]=function(){for(var K=_.b(w),G=K.next();!G.done;G=K.next())G.value.apply(this,arguments)};
e[z][T$g]=w}};
lWo=function(e){if(!e)return[];var z=[];e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=C.value,Array.isArray(C)?z.push.apply(z,_.s_(lWo(C))):z.push(C);return z};
_.Uc=function(e,z){if(e&&Qe5.test(e)||e==="//")return e;if(ml5===void 0){ml5=!1;try{var C=new URL("b","http://a");C.pathname="c%20d";ml5=C.href==="http://a/c%20d"}catch(w){}}z||(z=document.baseURI||window.location.href);if(ml5)try{return(new URL(e,z)).href}catch(w){return e}HQ||(HQ=document.implementation.createHTMLDocument("temp"),HQ.base=HQ.createElement("base"),HQ.head.appendChild(HQ.base),HQ.anchor=HQ.createElement("a"),HQ.body.appendChild(HQ.anchor));HQ.base.href=z;HQ.anchor.href=e;return HQ.anchor.href||
e};
nsg=function(e,z){return e.replace(aWL,function(C,w,K,G){return w+"'"+_.Uc(K.replace(/["']/g,""),z)+"'"+G})};
M47=function(e){return e.substring(0,e.lastIndexOf("/")+1)};
Ulm=function(){rS4=!1;for(var e=vQ.length,z=0;z<e;z++){var C=vQ[z];if(C)try{C()}catch(w){setTimeout(function(){throw w;})}}vQ.splice(0,e);
Hs4+=e};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(e){console.log("["+e.is+"]: registered")};
IW8=function(e){vs1.push(e)};
IO=function(e){return W8L[e]||(W8L[e]=e.indexOf("-")<0?e:e.replace(Pn8,function(z){return z[1].toUpperCase()}))};
WQ=function(e){return W8L[e]||(W8L[e]=e.replace(RPk,"-$1").toLowerCase())};
L8N=function(e,z){var C=z.parentInfo&&L8N(e,z.parentInfo);if(C)for(e=C.firstChild,C=0;e;e=e.nextSibling){if(z.parentIndex===C++)return e}else return e};
hP1=function(e,z){e=e._methodHost||e;return function(C){if(e[z])e[z](C,C.detail);else console.warn("listener method `"+z+"` not defined")}};
PQ=function(e){return e.indexOf(".")>=0};
RO=function(e){var z=e.indexOf(".");return z===-1?e:e.slice(0,z)};
Osk=function(e,z){return e.indexOf(z+".")===0};
LZ=function(e,z){return z.indexOf(e+".")===0};
hH=function(e,z,C){return z+C.slice(e.length)};
Es1=function(e,z){return e===z||Osk(e,z)||LZ(e,z)};
Oc=function(e){if(Array.isArray(e)){for(var z=[],C=0;C<e.length;C++)for(var w=e[C].toString().split("."),K=0;K<w.length;K++)z.push(w[K]);return z.join(".")}return e};
F8h=function(e){return Array.isArray(e)?Oc(e).split("."):e.toString().split(".")};
Ec=function(e,z,C){z=F8h(z);for(var w=0;w<z.length;w++){if(!e)return;e=e[z[w]]}C&&(C.path=z.join("."));return e};
V45=function(e,z,C){var w=F8h(z),K=w[w.length-1];if(w.length>1){for(z=0;z<w.length-1;z++)if(e=e[w[z]],!e)return;e[K]=C}else e[z]=C;return w.join(".")};
fWs=function(e,z,C){var w=e[z];if(!w)w=e[z]={};else if(!e.hasOwnProperty(z)&&(w=e[z]=Object.create(e[z]),C))for(var K in w)for(e=w[K],z=w[K]=Array(e.length),C=0;C<e.length;C++)z[C]=e[C];return w};
Vr=function(e,z,C,w,K,G){if(z){var X=!1,J=FL++,q;for(q in C){var T=K?RO(q):q;if(T=z[T])for(var Q=0,m=T.length,a=void 0;Q<m&&(a=T[Q]);Q++)a.info&&a.info.lastRun===J||K&&!SA8(q,a.trigger)||(a.info&&(a.info.lastRun=J),a.fn(e,q,C,w,a.info,K,G),X=!0)}return X}return!1};
SA8=function(e,z){if(z){var C=z.name;return C==e||!(!z.structured||!Osk(C,e))||!(!z.wildcard||!LZ(C,e))}return!0};
uZg=function(e,z,C,w,K){z=typeof K.method==="string"?e[K.method]:K.method;C=K.property;z?z.call(e,e.__data[C],w[C]):K.dynamicFn||console.warn("observer method `"+K.method+"` not defined")};
dl1=function(e,z,C,w){C={value:C,queueProperty:!0};w&&(C.path=w);(0,_.fZ)(e).dispatchEvent(new CustomEvent(z,{detail:C}))};
Dlh=function(e,z,C,w,K,G){G=(w=(G?RO(z):z)!=z?z:null)?Ec(e,w):e.__data[z];w&&G===void 0&&(G=C[z]);dl1(e,K.eventName,G,w)};
is1=function(e,z,C,w,K){C=e.__data[z];SY&&(C=SY(C,K.attrName,"attribute",e));e._propertyToAttribute(z,K.attrName,C)};
se8=function(e){var z=e.constructor.__orderedComputedDeps;if(!z){z=new Map;for(var C=e.__computeEffects,w=N$E(e),K=w.counts,G=w.ready,X=w.total;w=G.shift();)z.set(w,z.size),(w=C[w])&&w.forEach(function(J){J=J.info.methodInfo;--X;--K[J]===0&&G.push(J)});
X!==0&&console.warn("Computed graph for "+e.localName+" incomplete; circular?");e.constructor.__orderedComputedDeps=z}return z};
N$E=function(e){var z=e.__computeInfo,C={};e=e.__computeEffects;var w=[],K=0,G;for(G in z){var X=z[G];K+=C[G]=X.args.filter(function(q){return!q.literal}).length+(X.dynamicFn?1:0)}for(var J in e)z[J]||w.push(J);
return{counts:C,ready:w,total:K}};
t4s=function(e,z,C,w,K){z=B$g(e,z,C,w,K);if(z===up)return!1;K=K.methodInfo;if(e.__dataHasAccessor&&e.__dataHasAccessor[K])return e._setPendingProperty(K,z,!0);e[K]=z;return!1};
yS4=function(e,z,C,w,K,G,X){C.bindings=C.bindings||[];w={kind:w,target:K,parts:G,literal:X,isCompound:G.length!==1};C.bindings.push(w);w.target&&w.kind!="attribute"&&w.kind!="text"&&!w.isCompound&&w.parts[0].mode==="{"&&(C=w.parts[0],G=C.negate,w.listenerEvent=C.event||WQ(K)+"-changed",w.listenerNegate=G);K=z.nodeInfoList.length;for(C=0;C<w.parts.length;C++){var J=w.parts[C];J.compoundIndex=C;G=e;X=z;var q=w,T=J,Q=K;if(!T.literal)if(q.kind==="attribute"&&q.target[0]==="-")console.warn("Cannot set attribute "+
q.target+' because "-" is not a valid attribute starting character');else for(J=T.dependencies,q={index:Q,binding:q,part:T,evaluator:G},T=0;T<J.length;T++)Q=J[T],typeof Q=="string"&&(Q=gs7(Q),Q.wildcard=!0),G._addTemplatePropertyEffect(X,Q.rootProperty,{fn:jeg,info:q,trigger:Q})}};
jeg=function(e,z,C,w,K,G,X){X=X[K.index];var J=K.binding,q=K.part;G&&q.source&&z.length>q.source.length&&J.kind=="property"&&!J.isCompound&&X.__isPropertyEffectsClient&&X.__dataHasAccessor&&X.__dataHasAccessor[J.target]?(C=C[z],z=hH(q.source,J.target,z),X._setPendingPropertyOrPath(z,C,!1,!0)&&e._enqueueClient(X)):(z=K.evaluator._evaluateBinding(e,q,z,C,w,G),z!==up&&(J.isCompound&&(C=X.__dataCompoundStorage[J.target],C[q.compoundIndex]=z,z=C.join("")),J.kind==="attribute"||J.target!=="textContent"&&
(J.target!=="value"||X.localName!=="input"&&X.localName!=="textarea")||(z=z==void 0?"":z),q=z,SY&&(q=SY(q,J.target,J.kind,X)),J.kind=="attribute"?e._valueToNodeAttribute(X,q,J.target):(J=J.target,X.__isPropertyEffectsClient&&X.__dataHasAccessor&&X.__dataHasAccessor[J]?X.__readOnly&&X.__readOnly[J]||X._setPendingProperty(J,q)&&e._enqueueClient(X):e._setUnmanagedPropertyToNode(X,J,q))))};
cSN=function(e,z,C){if(C.listenerEvent){var w=C.parts[0];e.addEventListener(C.listenerEvent,function(K){var G=C.target,X=w.source,J=w.negate,q=K.detail,T=q&&q.path;T?(X=hH(G,X,T),K=q&&q.value):K=K.currentTarget[G];z.__readOnly&&z.__readOnly[X]||!z._setPendingPropertyOrPath(X,J?!K:K,!0,!!T)||q&&q.queueProperty||z._invalidateProperties()})}};
ASg=function(e,z,C,w,K,G){G=z.static||G&&(typeof G!=="object"||G[z.methodName]);K={methodName:z.methodName,args:z.args,methodInfo:K,dynamicFn:G};for(var X=0,J=void 0;X<z.args.length&&(J=z.args[X]);X++)J.literal||e._addPropertyEffect(J.rootProperty,C,{fn:w,info:K,trigger:J});G&&e._addPropertyEffect(z.methodName,C,{fn:w,info:K});return K};
B$g=function(e,z,C,w,K){w=e._methodHost||e;var G=w[K.methodName];if(G)return e=e._marshalArgs(K.args,z,C),e===up?up:G.apply(w,e);K.dynamicFn||console.warn("method `"+K.methodName+"` not defined")};
ZsL=function(e){for(var z="",C=0;C<e.length;C++)z+=e[C].literal||"";return z};
zim=function(e){if(e=e.match(/([^\s]+?)\(([\s\S]*)\)/)){var z={methodName:e[1],static:!0,args:p0g};return e[2].trim()?eio(e[2].replace(/\\,/g,"&comma;").split(","),z):z}return null};
eio=function(e,z){z.args=e.map(function(C){C=gs7(C);C.literal||(z.static=!1);return C},this);
return z};
gs7=function(e){e=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var z={name:e,value:"",literal:!1},C=e[0];C==="-"&&(C=e[1]);C>="0"&&C<="9"&&(C="#");switch(C){case "'":case '"':z.value=e.slice(1,-1);z.literal=!0;break;case "#":z.value=Number(e),z.literal=!0}z.literal||(z.rootProperty=RO(e),z.structured=PQ(e),z.structured&&(z.wildcard=e.slice(-2)==".*",z.wildcard&&(z.name=e.slice(0,-2))));return z};
CH4=function(e,z,C){e=Ec(e,C);e===void 0&&(e=z[C]);return e};
wM7=function(e,z,C,w){w={indexSplices:w};dK&&!e._overrideLegacyUndefined&&(z.splices=w);e.notifyPath(C+".splices",w);e.notifyPath(C+".length",z.length);dK&&!e._overrideLegacyUndefined&&(w.indexSplices=[])};
DV=function(e,z,C,w,K,G){wM7(e,z,C,[{index:w,addedCount:K,removed:G,object:z,type:"splice"}])};
KUm=function(e){e=nsg((e.body?e.body:e).textContent,e.baseURI);var z=document.createElement("style");z.textContent=e;return z};
GOg=function(e){e=e.trim().split(/\s+/);for(var z=[],C=0;C<e.length;C++)z.push.apply(z,_.s_(o3g(e[C])));return z};
o3g=function(e){var z=ip.import(e);if(!z)return console.warn("Could not find style data in module named",e),[];if(z._styles===void 0){e=[];e.push.apply(e,_.s_(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z)));var C=z.querySelector("template");C&&e.push.apply(e,_.s_(YQ1(C,z.assetpath)));z._styles=e}return z._styles};
YQ1=function(e,z){if(!e._styles){for(var C=[],w=e.content.querySelectorAll("style"),K=0;K<w.length;K++){var G=w[K],X=G.getAttribute("include");X&&C.push.apply(C,_.s_(GOg(X).filter(function(J,q,T){return T.indexOf(J)===q})));
z&&(G.textContent=nsg(G.textContent,z));C.push(G)}e._styles=C}return e._styles};
bML=function(e){return(e=ip.import(e))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(e){var z=[];e=e.querySelectorAll("link[rel=import][type~=css]");for(var C=0;C<e.length;C++){var w=e[C];if(w.import){var K=w.import;if((w=w.hasAttribute("shady-unscoped"))&&!K._unscopedStyle){var G=KUm(K);G.setAttribute("shady-unscoped","");K._unscopedStyle=G}else K._style||(K._style=KUm(K));z.push(w?K._unscopedStyle:K._style)}}return z};
J81=function(e){e=e.trim().split(/\s+/);for(var z="",C=0;C<e.length;C++)z+=XMk(e[C]);return z};
XMk=function(e){var z=ip.import(e);if(z&&z._cssText===void 0){var C=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(z),w=z.querySelector("template");w&&(C+=kO5(w,z.assetpath));z._cssText=C||null}z||console.warn("Could not find style data in module named",e);return z&&z._cssText||""};
kO5=function(e,z){var C="";e=YQ1(e,z);for(z=0;z<e.length;z++){var w=e[z];w.parentNode&&w.parentNode.removeChild(w);C+=w.textContent}return C};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(e){var z="";e=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e);for(var C=0;C<e.length;C++)z+=e[C].textContent;return z};
ND=function(e,z){return{index:e,removed:[],addedCount:z}};
xZ1=function(e,z,C,w){var K=0,G=0,X=0,J=0,q=Math.min(z-K,w-G);if(K==0&&G==0)a:{for(X=0;X<q;X++)if(e[X]!==C[X])break a;X=q}if(z==e.length&&w==C.length){J=e.length;for(var T=C.length,Q=0;Q<q-X&&qQ1(e[--J],C[--T]);)Q++;J=Q}K+=X;G+=X;z-=J;w-=J;if(z-K==0&&w-G==0)return[];if(K==z){for(z=ND(K,0);G<w;)z.removed.push(C[G++]);return[z]}if(G==w)return[ND(K,z-K)];q=K;X=G;w=w-X+1;J=z-q+1;z=Array(w);for(T=0;T<w;T++)z[T]=Array(J),z[T][0]=T;for(T=0;T<J;T++)z[0][T]=T;for(T=1;T<w;T++)for(Q=1;Q<J;Q++)if(e[q+Q-1]===
C[X+T-1])z[T][Q]=z[T-1][Q-1];else{var m=z[T-1][Q]+1,a=z[T][Q-1]+1;z[T][Q]=m<a?m:a}q=z.length-1;X=z[0].length-1;w=z[q][X];for(e=[];q>0||X>0;)q==0?(e.push(2),X--):X==0?(e.push(3),q--):(J=z[q-1][X-1],T=z[q-1][X],Q=z[q][X-1],m=T<Q?T<J?T:J:Q<J?Q:J,m==J?(J==w?e.push(0):(e.push(1),w=J),q--,X--):m==T?(e.push(3),q--,w=T):(e.push(2),X--,w=Q));e.reverse();z=void 0;q=[];for(X=0;X<e.length;X++)switch(e[X]){case 0:z&&(q.push(z),z=void 0);K++;G++;break;case 1:z||(z=ND(K,0));z.addedCount++;K++;z.removed.push(C[G]);
G++;break;case 2:z||(z=ND(K,0));z.addedCount++;K++;break;case 3:z||(z=ND(K,0)),z.removed.push(C[G]),G++}z&&q.push(z);return q};
Thk=function(e,z){return xZ1(e,e.length,z,z.length)};
qQ1=function(e,z){return e===z};
lrN=function(e){if(e instanceof $Zs)return e.value;throw Error("Id`"+e);};
Qn4=function(e,z){for(var C in z)C===null?e.style.removeProperty(C):e.style.setProperty(C,z[C])};
mZg=function(e,z){return(e=window.getComputedStyle(e).getPropertyValue(z))?e.trim():""};
r8o=function(e){requestAnimationFrame(function(){arg?arg(e):(n3N||(n3N=new Promise(function(z){Mos=z}),document.readyState==="complete"?Mos():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Mos()})),n3N.then(function(){e&&e()}))})};
v3k=function(e){HMo=e&&e.shimcssproperties?!1:UZm||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
LUL=function(e){if(!(Irg.indexOf(e)>-1)&&e!=="touchend"&&WU1&&PH1&&Rih)return{passive:!0}};
FU1=function(e){for(var z=hiL?["click"]:Irg,C=0,w;C<z.length;C++)w=z[C],e?(OM1.length=0,document.addEventListener(w,E3o,!0)):document.removeEventListener(w,E3o,!0)};
sc=function(e){var z=e.type;return Irg.indexOf(z)>-1?z==="mousemove"?(z=e.buttons===void 0?1:e.buttons,e instanceof window.MouseEvent&&!Vo7&&(z=frm[e.which]||0),!!(z&1)):(e.button===void 0?0:e.button)===0:!1};
SQs=function(e){if(e.type==="click"){if(e.detail===0)return!0;var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);if(!z.nodeType||z.nodeType!==Node.ELEMENT_NODE)return!0;z=z.getBoundingClientRect();var C=e.pageX;e=e.pageY;return!(C>=z.left&&C<=z.right&&e>=z.top&&e<=z.bottom)}return!1};
u9h=function(e,z,C){e.movefn=z;e.upfn=C;document.addEventListener("mousemove",z);document.addEventListener("mouseup",C)};
BQ=function(e){document.removeEventListener("mousemove",e.movefn);document.removeEventListener("mouseup",e.upfn);e.movefn=null;e.upfn=null};
dZ8=function(e,z){for(var C=document.elementFromPoint(e,z),w=C;w&&w.shadowRoot&&!window.ShadyDOM;){var K=w;w=w.shadowRoot.elementFromPoint(e,z);if(K===w)break;w&&(C=w)}return C};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){var z=DZm(e);return z.length>0?z[0]:e.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){var z=e.type,C=e.currentTarget.__polymerGestures;if(C&&(C=C[z])){if(!e.__polymerGesturesHandled&&(e.__polymerGesturesHandled={},z.slice(0,5)==="touch")){var w=e.changedTouches[0];z==="touchstart"&&e.touches.length===1&&(iMg=w.identifier);if(iMg!==w.identifier)return;WU1||(z==="touchstart"||z==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e)}w=
e.__polymerGesturesHandled;if(!w.skip){for(var K=0,G;K<tH.length;K++)G=tH[K],C[G.name]&&!w[G.name]&&G.flow&&G.flow.start.indexOf(e.type)>-1&&G.reset&&G.reset();for(K=0;K<tH.length;K++)G=tH[K],C[G.name]&&!w[G.name]&&(w[G.name]=!0,G[z](e))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){var z=e.changedTouches[0],C=e.type;if(C==="touchstart")Nh8=z.clientX,snm=z.clientY,Bh4=!1;else if(C==="touchmove"&&!Bh4){Bh4=!0;C="auto";for(var w=DZm(e),K=0,G;K<w.length;K++)if(G=w[K],G.__polymerGesturesTouchAction){C=G.__polymerGesturesTouchAction;break}w=!1;K=Math.abs(Nh8-z.clientX);z=Math.abs(snm-z.clientY);e.cancelable&&(C==="none"?w=!0:C==="pan-x"?w=z>K:C==="pan-y"&&(w=K>z));w?e.preventDefault():
gK("track")}};
yr=function(e,z,C){return jY[z]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,z,C),!0):!1};
cQ=function(e,z,C){return jY[z]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e,z,C),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e,z,C){var w=jY[z],K=w.deps,G=w.name,X=e.__polymerGestures;X||(e.__polymerGestures=X={});for(var J=0,q,T;J<K.length;J++)q=K[J],hiL&&Irg.indexOf(q)>-1&&q!=="click"||((T=X[q])||(X[q]=T={_count:0}),T._count===0&&e.addEventListener(q,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,LUL(q)),T[G]=(T[G]||0)+1,T._count=(T._count||0)+1);e.addEventListener(z,C);w.touchAction&&_.AH(e,w.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e,z,C){var w=jY[z],K=w.deps;w=w.name;var G=e.__polymerGestures;if(G)for(var X=0,J,q;X<K.length;X++)J=K[X],(q=G[J])&&q[w]&&(q[w]=(q[w]||1)-1,q._count=(q._count||1)-1,q._count===0&&e.removeEventListener(J,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,LUL(J)));e.removeEventListener(z,C)};
to1=function(e){tH.push(e);for(var z=0;z<e.emits.length;z++)jY[e.emits[z]]=e};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e){for(var z=0,C;z<tH.length;z++){C=tH[z];for(var w=0,K;w<C.emits.length;w++)if(K=C.emits[w],K===e)return C}return null};
_.AH=function(e,z){WU1&&e instanceof HTMLElement&&ZV.run(function(){e.style.touchAction=z});
e.__polymerGesturesTouchAction=z};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(e,z,C){z=new Event(z,{bubbles:!0,cancelable:!0,composed:!0});z.detail=C;(0,_.fZ)(e).dispatchEvent(z);z.defaultPrevented&&(e=C.preventer||C.sourceEvent)&&e.preventDefault&&e.preventDefault()};
gK=function(e){e=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);e.info&&(e.info.prevent=!0)};
pZ=function(e,z,C,w){z&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,e,{x:C.clientX,y:C.clientY,sourceEvent:C,preventer:w,prevent:function(K){return gK(K)}})};
g3h=function(e,z,C){if(e.prevent)return!1;if(e.started)return!0;C=Math.abs(e.y-C);return Math.abs(e.x-z)>=5||C>=5};
jnL=function(e,z,C){if(z){var w=e.moves[e.moves.length-2],K=e.moves[e.moves.length-1],G=K.x-e.x,X=K.y-e.y,J=0;if(w){var q=K.x-w.x;J=K.y-w.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"track",{state:e.state,x:C.clientX,y:C.clientY,dx:G,dy:X,ddx:q,ddy:J,sourceEvent:C,hover:function(){return dZ8(C.clientX,C.clientY)}})}};
c87=function(e,z,C){var w=Math.abs(z.clientX-e.x),K=Math.abs(z.clientY-e.y),G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C||z);!G||y8E[G.localName]&&G.hasAttribute("disabled")||!(isNaN(w)||isNaN(K)||w<=25&&K<=25||SQs(z))||e.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,"tap",{x:z.clientX,y:z.clientY,sourceEvent:z,preventer:C})};
A8h=function(e,z,C,w,K){var G;K&&(G=typeof C==="object"&&C!==null)&&(w=e.__dataTemp[z]);w=w!==C&&(w===w||C===C);G&&w&&(e.__dataTemp[z]=C);return w};
pMg=function(){if(eC&&!z0){if(!ZM1){ZM1=!0;var e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(e)}return!0}return!1};
z05=function(){return e0m};
C5L=function(e,z){e0m=e;Object.setPrototypeOf(e,z.prototype);new z;e0m=null};
wW1=function(e,z){for(var C=0;C<z.length;C++){var w=z[C];if(!!e!=!!w.__hideTemplateChildren__)if(w.nodeType===Node.TEXT_NODE)e?(w.__polymerTextContent__=w.textContent,w.textContent=""):w.textContent=w.__polymerTextContent__;else if(w.localName==="slot")if(e)w.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.fZ)((0,_.fZ)(w).parentNode).replaceChild(w.__polymerReplaced__,w);else{var K=w.__polymerReplaced__;K&&(0,_.fZ)((0,_.fZ)(K).parentNode).replaceChild(w,K)}else w.style&&(e?(w.__polymerDisplay__=
w.style.display,w.style.display="none"):w.style.display=w.__polymerDisplay__);w.__hideTemplateChildren__=e;w._showHideChildren&&w._showHideChildren(e)}};
KD8=function(e){return(e=e.__dataHost)&&e._methodHost||e};
Y75=function(e,z,C){var w=C.mutableData?od1:KG;ok.mixin&&(w=ok.mixin(w));var K=function(){return w.apply(this,arguments)||this};
_.U(K,w);K.prototype.__templatizeOptions=C;K.prototype._bindTemplate(e);Gk5(K,e,z,C);return K};
q7g=function(e,z,C,w){var K=C.forwardHostProp;if(K&&z.hasHostProps){var G=e.localName=="template",X=z.templatizeTemplateClass;if(!X){if(G){var J=C.mutableData?bb1:XW1;X=function(){return J.apply(this,arguments)||this};
_.U(X,J);X=z.templatizeTemplateClass=X}else{var q=e.constructor;X=function(){return q.apply(this,arguments)||this};
_.U(X,q);X=z.templatizeTemplateClass=X}var T=z.hostProps,Q;for(Q in T)X.prototype._addPropertyEffect("_host_"+Q,X.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Jdg(K)}),X.prototype._createNotifyingProperty("_host_"+Q);G0&&w&&kkE(z,C,w)}e.__dataProto&&Object.assign(e.__data,e.__dataProto);if(G)C5L(e,X),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,X.prototype);z=z.hostProps;for(var m in z)m="_host_"+m,m in e&&(z=e[m],delete e[m],e.__data[m]=
z)}}};
Jdg=function(e){return function(z,C,w){e.call(z.__templatizeOwner,C.substring(6),w[C])}};
Gk5=function(e,z,C,w){var K=C.hostProps||{},G;for(G in w.instanceProps){delete K[G];var X=w.notifyInstanceProp;X&&e.prototype._addPropertyEffect(G,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:xI1(X)})}if(w.forwardHostProp&&z.__dataHost)for(var J in K)C.hasHostProps||(C.hasHostProps=!0),e.prototype._addPropertyEffect(J,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:T4N()})};
xI1=function(e){return function(z,C,w){e.call(z.__templatizeOwner,z,C,w[C])}};
T4N=function(){return function(e,z,C){e.__dataHost._setPendingPropertyOrPath("_host_"+z,C[z],!0,!0)}};
ok=function(e,z,C){if(YW&&!KD8(e))throw Error("Od");C=C||{};if(e.__templatizeOwner)throw Error("Pd");e.__templatizeOwner=z;var w=(z?z.constructor:KG)._parseTemplate(e),K=w.templatizeInstanceClass;K||(K=Y75(e,w,C),w.templatizeInstanceClass=K);var G=KD8(e);q7g(e,w,C,G);C=function(){return K.apply(this,arguments)||this};
_.U(C,K);C.prototype._methodHost=G;C.prototype.__dataHost=e;C.prototype.__templatizeOwner=z;C.prototype.__hostProps=w.hostProps;return C};
kkE=function(e,z,C){C=C.constructor._properties;e=e.propertyEffects;z=z.instanceProps;for(var w in e)if(!(C[w]||z&&z[w]))for(var K=e[w],G=0;G<K.length;G++){var X=K[G].info.part;if(!X.signature||!X.signature.static){console.warn("Property '"+w+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
$Is=function(e,z){for(var C;z;)if(C=z.__dataHost?z:z.__templatizeInstance)if(C.__dataHost!=e)z=C.__dataHost;else return C;else z=(0,_.fZ)(z).parentNode;return null};
bB=function(e){return e.localName==="slot"};
lso=function(){for(var e=Xh.prototype,z="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),C={},w=0;w<z.length;C={method$jscomp$33:void 0},w++)C.method$jscomp$33=z[w],e[C.method$jscomp$33]=function(K){return function(){return this.node[K.method$jscomp$33].apply(this.node,arguments)}}(C)};
QP7=function(e,z){for(var C={},w=0;w<z.length;C={name$jscomp$448:void 0},w++)C.name$jscomp$448=z[w],Object.defineProperty(e,C.name$jscomp$448,{get:function(K){return function(){return this.node[K.name$jscomp$448]}}(C),
configurable:!0})};
mIg=function(){for(var e=Xh.prototype,z=["textContent","innerHTML","className"],C={},w=0;w<z.length;C={name$jscomp$449:void 0},w++)C.name$jscomp$449=z[w],Object.defineProperty(e,C.name$jscomp$449,{get:function(K){return function(){return this.node[K.name$jscomp$449]}}(C),
set:function(K){return function(G){this.node[K.name$jscomp$449]=G}}(C),
configurable:!0})};
as1=function(){J2=document.documentElement.getAttribute("dir");J2=document.documentElement.getAttribute("dir");for(var e=0;e<kW.length;e++){var z=kW[e];z.__autoDirOptOut||z.setAttribute("dir",J2)}};
Hb7=function(){qx=!0;requestAnimationFrame(function(){qx=!1;nds(Mv7);setTimeout(function(){for(var e=0,z=xW.length;e<z;e++)rdL(xW.shift())})})};
nds=function(e){for(;e.length;)rdL(e.shift())};
rdL=function(e){var z=e[0],C=e[1];e=e[2];try{C.apply(z,e)}catch(w){setTimeout(function(){throw w;})}};
_.UI1=function(e,z,C){qx||Hb7();Mv7.push([e,z,C])};
_.T0=function(e,z,C){qx||Hb7();xW.push([e,z,C])};
WDm=function(e,z){z=z===void 0?!1:z;if(!vdg||!IsL||!vdg.handlesDynamicScoping)return null;var C=IsL.ScopingShim;if(!C)return null;var w=C.scopeForNode(e),K=(0,_.fZ)(e).getRootNode(),G=function(X){if((0,_.fZ)(X).getRootNode()===K){var J=Array.from(vdg.nativeMethods.querySelectorAll.call(X,"*"));J.push(X);for(X=0;X<J.length;X++){var q=J[X];if((0,_.fZ)(q).getRootNode()===K){var T=C.currentScopeForNode(q);T!==w&&(T!==""&&C.unscopeNode(q,T),C.scopeNode(q,w))}}}};
G(e);return z?(z=new MutationObserver(function(X){for(var J=0;J<X.length;J++)for(var q=X[J],T=0;T<q.addedNodes.length;T++){var Q=q.addedNodes[T];Q.nodeType===Node.ELEMENT_NODE&&G(Q)}}),z.observe(e,{childList:!0,
subtree:!0}),z):null};
P5g=function(){document.body.removeAttribute("unresolved")};
Edk=function(e){var z=e=e.replace(R05,"").replace(LD1,""),C=new h01;C.start=0;C.end=z.length;for(var w=C,K=0,G=z.length;K<G;K++)if(z[K]==="{"){w.rules||(w.rules=[]);var X=w,J=X.rules[X.rules.length-1]||null;w=new h01;w.start=K+1;w.parent=X;w.previous=J;X.rules.push(w)}else z[K]==="}"&&(w.end=K+1,w=w.parent||C);return Ob8(C,e)};
Ob8=function(e,z){var C=z.substring(e.start,e.end-1);e.parsedCssText=e.cssText=C.trim();e.parent&&(C=z.substring(e.previous?e.previous.end:e.parent.start,e.start-1),C=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(C),C=C.replace(FDg," "),C=C.substring(C.lastIndexOf(";")+1),C=e.parsedSelector=e.selector=C.trim(),e.atRule=C.indexOf("@")===0,e.atRule?C.indexOf("@media")===0?e.type=4:C.match(Vvo)&&(e.type=7,e.keyframesName=e.selector.split(FDg).pop()):C.indexOf("--")===
0?e.type=1E3:e.type=1);if(C=e.rules)for(var w=0,K=C.length,G=void 0;w<K&&(G=C[w]);w++)Ob8(G,z);return e};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var z=arguments[1],C=6-z.length;C--;)z="0"+z;return"\\"+z})};
fsE=function(e,z,C){C=C===void 0?"":C;var w="";if(e.cssText||e.rules){var K=e.rules;if(K&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(K))for(var G=0,X=K.length,J=void 0;G<X&&(J=K[G]);G++)w=fsE(J,z,w);else z?z=e.cssText:(z=e.cssText,z=z.replace(S71,"").replace(uXg,""),z=z.replace(dIg,"").replace(DI8,"")),(w=z.trim())&&(w="  "+w+"\n")}w&&(e.selector&&(C+=e.selector+" {\n"),C+=w,e.selector&&(C+="}\n\n"));return C};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(e){e=e[0];return!!e&&!!e.selector&&e.selector.indexOf("--")===0};
N44=function(e){if(e=ibh[e])e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1};
sPN=function(e){return e._applyShimCurrentVersion===e._applyShimNextVersion};
tvk=function(e){e._applyShimValidatingVersion=e._applyShimNextVersion;e._validating||(e._validating=!0,B4h.then(function(){e._applyShimCurrentVersion=e._applyShimNextVersion;e._validating=!1}))};
jPm=function(e){if(!e)return"";typeof e==="string"&&(e=Edk(e));return fsE(e,gdo)};
ydg=function(e){!e.__cssRules&&e.textContent&&(e.__cssRules=Edk(e.textContent));return e.__cssRules||null};
Adh=function(e,z,C,w){if(e){var K=!1,G=e.type;if(w&&G===4){var X=e.selector.match(cdg);X&&(window.matchMedia(X[1]).matches||(K=!0))}G===1?z(e):C&&G===7?C(e):G===1E3&&(K=!0);if((e=e.rules)&&!K)for(K=0,G=e.length,X=void 0;K<G&&(X=e[K]);K++)Adh(X,z,C,w)}};
Zb4=function(e,z){var C=e.indexOf("var(");if(C===-1)return z(e,"","","");a:{var w=0;var K=C+3;for(var G=e.length;K<G;K++)if(e[K]==="(")w++;else if(e[K]===")"&&--w===0)break a;K=-1}w=e.substring(C+4,K);C=e.substring(0,C);e=Zb4(e.substring(K+1),z);G=w.indexOf(",");if(G===-1)return z(C,w.trim(),"",e);K=w.substring(0,G).trim();w=w.substring(G+1).trim();return z(C,K,w,e)};
pWs=function(e){if($W!==void 0)return $W;if(e.__cssBuild===void 0){var z=e.getAttribute("css-build");if(z)e.__cssBuild=z;else{a:{z=e.localName==="template"?e.content.firstChild:e.firstChild;if(z instanceof Comment&&(z=z.textContent.trim().split(":"),z[0]==="css-build")){z=z[1];break a}z=""}if(z!==""){var C=e.localName==="template"?e.content.firstChild:e.firstChild;C.parentNode.removeChild(C)}e.__cssBuild=z}}return e.__cssBuild||""};
zx7=function(e,z,C,w){for(var K=z._noAccessors,G=Object.getOwnPropertyNames(z),X=0;X<G.length;X++){var J=G[X];if(!(J in w))if(K)e[J]=z[J];else{var q=Object.getOwnPropertyDescriptor(z,J);q&&(q.configurable=!0,Object.defineProperty(e,J,q))}}for(var T in exg)z[T]&&(C[T]=C[T]||[],C[T].push(z[T]))};
CS1=function(e,z,C){z=z||[];for(var w=e.length-1;w>=0;w--){var K=e[w];K?Array.isArray(K)?CS1(K,z):z.indexOf(K)<0&&(!C||C.indexOf(K)<0)&&z.unshift(K):console.warn("behavior is null, check for missing or 404 import")}return z};
wTg=function(e,z){for(var C in z){var w=e[C],K=z[C];e[C]=!("value"in K)&&w&&"value"in w?Object.assign({value:w.value},K):K}};
Gvh=function(e,z,C){var w={},K=function(){return z.apply(this,arguments)||this};
_.U(K,z);K._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(X)for(var q=0,T;q<X.length;q++)T=X[q],T.properties&&this.createProperties(T.properties),T.observers&&this.createObservers(T.observers,T.properties);e.properties&&this.createProperties(e.properties);e.observers&&this.createObservers(e.observers,e.properties);this._prepareTemplate()}else z._finalizeClass.call(this)};
K.prototype.created=function(){z.prototype.created.call(this);var q=w.created;if(q)for(var T=0;T<q.length;T++)q[T].call(this)};
K.prototype._registered=function(){var q=K.prototype;if(!q.hasOwnProperty("__hasRegisterFinished")){q.__hasRegisterFinished=!0;z.prototype._registered.call(this);eC&&J(q);q=Object.getPrototypeOf(this);var T=w.beforeRegister;if(T)for(var Q=0;Q<T.length;Q++)T[Q].call(q);if(T=w.registered)for(Q=0;Q<T.length;Q++)T[Q].call(q)}};
K.prototype._applyListeners=function(){z.prototype._applyListeners.call(this);var q=w.listeners;if(q)for(var T=0;T<q.length;T++){var Q=q[T];if(Q)for(var m in Q)this._addMethodEventListenerToNode(this,m,Q[m])}};
K.prototype._ensureAttributes=function(){var q=w.hostAttributes;if(q)for(var T=q.length-1;T>=0;T--){var Q=q[T],m;for(m in Q)this._ensureAttribute(m,Q[m])}z.prototype._ensureAttributes.call(this)};
K.prototype.ready=function(){z.prototype.ready.call(this);var q=w.ready;if(q)for(var T=0;T<q.length;T++)q[T].call(this)};
K.prototype.attached=function(){z.prototype.attached.call(this);var q=w.attached;if(q)for(var T=0;T<q.length;T++)q[T].call(this)};
K.prototype.detached=function(){z.prototype.detached.call(this);var q=w.detached;if(q)for(var T=0;T<q.length;T++)q[T].call(this)};
K.prototype.attributeChanged=function(q,T,Q){z.prototype.attributeChanged.call(this);var m=w.attributeChanged;if(m)for(var a=0;a<m.length;a++)m[a].call(this,q,T,Q)};
_.lB.Object.defineProperties(K,{properties:{configurable:!0,enumerable:!0,get:function(){var q={};if(X)for(var T=0;T<X.length;T++)wTg(q,X[T].properties);wTg(q,e.properties);return q}},
observers:{configurable:!0,enumerable:!0,get:function(){var q=[];if(X)for(var T=0,Q;T<X.length;T++)Q=X[T],Q.observers&&(q=q.concat(Q.observers));e.observers&&(q=q.concat(e.observers));return q}}});
if(C){Array.isArray(C)||(C=[C]);var G=z.prototype.behaviors;var X=CS1(C,null,G);K.prototype.behaviors=G?G.concat(C):X}var J=function(q){if(X)for(var T=X,Q=0;Q<T.length;Q++)zx7(q,T[Q],w,Kfs);zx7(q,e,w,olE)};
eC||J(K.prototype);K.generatedFrom=e;return K};
JLE=function(e){var z=typeof e!=="string"?e:{is:e,notifyObserversOnUndefined:!0};z.fastInit===void 0&&(z.fastInit=!0);return function(C){if(!z.disableInheritanceCheck&&Object.getPrototypeOf(C.prototype).constructor!==_.Qt)throw Error("Td");var w=C.prototype;w.is=z.is;$l1(w,"created",function(){this.hostElement=this;this.polymerController=this});
Yy5(w,C,z.fastInit);z.notifyObserversOnUndefined&&(w._overrideLegacyUndefined=!0);if(bV5)for(var K=_.b(Object.getOwnPropertyNames(w)),G=K.next();!G.done;G=K.next()){G=G.value;var X=Object.getOwnPropertyDescriptor(w,G);X.enumerable===!1&&(X.enumerable=!0,Object.defineProperty(w,G,X))}if("template"in C)var J=function(){return C.template};
else z.template!==void 0&&(J=z.template);if(J!==void 0){var q;Object.defineProperty(w,"_template",{get:function(){q===void 0&&(q=J());return q},
set:function(T){q=T},
configurable:!0,enumerable:!0})}Polymer(w);C[XTN]=w}};
kvs=function(e){e=e===void 0?{}:e;e.fastInit===void 0&&(e.fastInit=!0);return function(z){if(!e.disableInheritanceCheck&&Object.getPrototypeOf(z.prototype).constructor!==mA)throw Error("Ud");Yy5(z.prototype,z,e.fastInit)}};
Yy5=function(e,z,C){C=C===void 0?!1:C;qy1(z);C?$l1(e,"created",function(){this.disableEnforceFastDefaultValuesCheck||xJg(z,this)}):$l1(e,"ready",function(){for(var w={},K=_.b(lWo(this.behaviors)),G=K.next();!G.done;G=K.next())G=G.value,G.properties&&Object.assign(w,TJg(this,G.properties));
Object.assign(w,TJg(this,this.properties));xJg(z,this);K=_.b(Object.keys(w));for(G=K.next();!G.done;G=K.next())G=G.value,this[G]=w[G]})};
xJg=function(e,z){if(bV5){e=new e;for(var C=_.b(Object.getOwnPropertyNames(e)),w=C.next();!w.done;w=C.next())w=w.value,z[w]=e[w];for(C=z;C&&C!==Object.prototype;C=Object.getPrototypeOf(C)){w=_.b(Object.getOwnPropertyNames(C));for(var K=w.next();!K.done;K=w.next())K=K.value,e.hasOwnProperty(K)||Object.defineProperty(e,K,$Jk(z,K))}}else e.apply(z)};
$Jk=function(e,z){return{get:function(){var C=e[z];return C instanceof Function?C.bind(e):C},
set:function(C){e[z]=C}}};
TJg=function(e,z){if(!z)return{};for(var C={},w=_.b(Object.keys(z)),K=w.next();!K.done;K=w.next())if(K=K.value,!z[K].readOnly){var G=e[K];G!==void 0&&(C[K]=G)}return C};
qy1=function(e){var z=new e;e=e.prototype.properties||{};for(var C=_.b(Object.keys(e)),w=C.next();!w.done;w=C.next())if(w=w.value,z.hasOwnProperty(w)){var K=e[w];typeof K==="function"&&(e[w]=K={type:K});z[w]!=null&&K.type===Object&&(K.type=lgg(z[w].constructor))}};
lgg=function(e){for(var z=_.b(Q8g),C=z.next();!C.done;C=z.next())if(C=C.value,e===C)return C;return Object};
mJg=function(e){return function(z,C){z.behaviors=z.behaviors||[];z.behaviors.push(e||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",z,C).prototype:void 0));Object.defineProperty(z,C,{get:function(){return this},
enumerable:!0,configurable:!0})}};
agN=function(e){e=e===void 0?{}:e;return function(z,C){z.properties=z.properties||{};e.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?e.type=lgg(Reflect.getMetadata("design:type",z,C)):e.type=String);var w=e,K=z.properties[C];z.properties[C]=K?Object.assign({},K,w):w}};
nl8=function(e){return function(z,C){z.listeners=z.listeners||{};z.listeners[e]=C}};
M27=function(){var e=_.yL.apply(0,arguments);if(e.length===0)throw Error("Vd");return function(z,C){z.observers=z.observers||[];z.observers.push(C+"("+e.join(",")+")")}};
rLE=function(){var e=_.yL.apply(0,arguments);return function(z,C,w){var K=Object.getOwnPropertyDescriptor(z,C).get,G="__compute__"+C;Object.defineProperty(z,G,{value:K,enumerable:!0});z.properties=z.properties||{};K=z.properties[C];K||(K={},z.properties[C]=K);K.computed=G+"("+e.join(",")+")";w.get=void 0}};
_.ak=function(e,z,C){_.Sn.call(this);this.JSC$11480_id_=null;this.usingListeners_=!1;this.JSC$11480_listener_=e;this.handler_=C;this.JSC$11480_win_=z||window;this.callback_=(0,_.uZ)(this.JSC$11482_doAction_,this)};
nG=function(e){this.range_=e};
Mx=function(e){this.range_=e};
U8=function(e,z,C){_.Sn.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=e;this.scrollTimer_=new _.rM(50);this.JSC$11559_eventHandler_=new _.HA(this);this.scrollDelta_=new _.st;this.containerIsActuallyContent_=e.tagName==="BODY"||e.tagName==="HTML";this.containerBounds_=HVg(e);this.containerIsActuallyContent_&&(e=_.LJ(),this.containerBounds_.height=e.height,this.containerBounds_.width=e.width);this.margin_=z||0;if(z){if(z=this.containerBounds_.clone(),e=this.margin_){var w=
Math.min(e,z.height*.25);z.top+=w;z.height-=2*w;e=Math.min(e,z.width*.25);z.left+=e;z.width-=2*e}}else z=this.containerBounds_;this.scrollBounds_=z;C||this.JSC$11559_eventHandler_.listen(_.t0(this.containerNode_),"mousemove",this.JSC$11561_onMouseMove);this.JSC$11559_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11561_onTick_)};
_.vA=function(e){this.mechanism=e};
Ik=function(e,z){this.JSC$11657_key_=e;this.JSC$11657_value_=z};
vlL=function(e){if(e>=55296&&e<=57343||e>1114111)return"\ufffd";e in UJ5&&(e=UJ5[e]);var z="";e>65535&&(e-=65536,z+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023);return z+=String.fromCharCode(e)};
Ig8=function(e,z){return e<z?1:-1};
PSN=function(){return function(e){return e.charAt(1)==="#"?e.charAt(2)==="X"||e.charAt(2)==="x"?vlL(parseInt(e.substr(3),16)):vlL(parseInt(e.substr(2),10)):Wf7[e.slice(1,-1)]}};
hxE=function(e){return e.slice(1,e.length-1).trim().replace(Rx1,function(z){return Lfg[z]||" "})};
WA=function(e){return e===32||e===9};
PA=function(e,z){return z<e.length?e.charCodeAt(z):-1};
OVg=function(e){for(;e;){if(e._lastLineBlank)return!0;var z=e.type;if(z==="list"||z==="item")e=e._lastChild;else break}return!1};
Rk=function(e){if(Elk.test(e)){var z=1,C=0,w=0;for(e[C]=="|"&&C++;C<e.length;){switch(e[C]){case "|":w=1;break;case " ":break;case "\t":break;default:w&&(w=0,z++)}C++}return Ffm.test(e)?-z:z}return 0};
V2g=function(e){return e=="table"||e=="row"||e=="cell"};
fg1=function(){return new LG("document",[[1,1],[0,0]])};
SyL=function(){};
h2=function(){var e={safe:!1};e=e||{};e.softbreak=e.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=e};
NJk=function(e,z){var C="";if(e)if(e=e.toLowerCase(),e===" "||uPL.test(e))C="space";else if(dJh.test(e))C="esc";else if(e.length==1){if(!z||DJE.test(e))C=e}else C=iVN.test(e)?e.replace("arrow",""):e=="multiply"?"*":e;return C};
gl4=function(e,z){var C=e.hasModifiers;if(z.key)C=NJk(z.key,C);else if(z.detail&&z.detail.key)C=NJk(z.detail.key,C);else{C=z.keyIdentifier;var w="";C&&(C in s8L?w=s8L[C]:BJo.test(C)?(C=parseInt(C.replace("U+","0x"),16),w=String.fromCharCode(C).toLowerCase()):w=C.toLowerCase());(C=w)||(C=z.keyCode,w="",Number(C)&&(C>=65&&C<=90?w=String.fromCharCode(32+C):C>=112&&C<=123?w="f"+(C-112+1):C>=48&&C<=57?w=String(C-48):C>=96&&C<=105?w=String(C-96):w=t24[C]),C=w);C=C||""}return C===e.key&&(!e.hasModifiers||
!!z.shiftKey===!!e.shiftKey&&!!z.ctrlKey===!!e.ctrlKey&&!!z.altKey===!!e.altKey&&!!z.metaKey===!!e.metaKey)};
yL8=function(e){return e.length===1?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(z,C){var w=C.split(":");C=w[0];w=w[1];C in j8N?(z[j8N[C]]=!0,z.hasModifiers=!0):(z.key=C,z.event=w||"keydown");return z},{combo:e.split(":").shift()})};
cL5=function(e){return e.trim().split(" ").map(function(z){return yL8(z)})};
ALm=function(e,z){if(e&&e.fn){var C=e.fn;e.fn=function(){try{C.apply(this,arguments)}catch(w){if(w instanceof O8)console.warn("Argument '"+w.arg+"'"+(z?" for method '"+z+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw w;}}}return e};
pT4=function(){var e=[],z;var C=C||_.ZVk.length;for(z=0;z<8;z++)e[z]=_.ZVk[0|Math.random()*C];return e.join("")};
em7=function(){var e=_.yL.apply(0,arguments);return e.length===0?function(z){return z}:e.length===1?e[0]:e.reduce(function(z,C){return function(){return z(C.apply(null,_.s_(_.yL.apply(0,arguments))))}})};
zmL=function(){var e=_.yL.apply(0,arguments);return function(z){return function(C,w){C=z(C,w);var K=function(){throw Error("Fe");},G={getState:C.getState,
dispatch:function(X){return K.apply(null,[X].concat(_.s_(_.yL.apply(1,arguments))))}};
w=e.map(function(X){return X(G)});
K=em7.apply(null,_.s_(w))(C.dispatch);return Object.assign({},C,{dispatch:K})}}};
KE4=function(e){Object.keys(e).forEach(function(z){var C=e[z];if(typeof C(void 0,{type:Cbo})==="undefined")throw Error("Ge`"+z);if(typeof C(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+w2N()})==="undefined")throw Error("He`"+z+"`"+Cbo);})};
E8=function(e){for(var z=Object.keys(e),C={},w=0;w<z.length;w++){var K=z[w];typeof e[K]==="function"&&(C[K]=e[K])}var G=Object.keys(C);try{KE4(C)}catch(J){var X=J}return function(J,q){J=J===void 0?{}:J;if(X)throw X;for(var T=!1,Q={},m=0;m<G.length;m++){var a=G[m],n=J[a],H=(0,C[a])(n,q);if(typeof H==="undefined")throw J=q&&q.type,Error("Ie`"+(J?'"'+String(J)+'"':"(unknown type)")+"`"+a);Q[a]=H;T=T||H!==n}return(T=T||G.length!==Object.keys(J).length)?Q:J}};
oQN=function(e,z,C){function w(){if(Q)throw Error("Je");return J}
function K(n){if(typeof n!=="function")throw Error("Ke`"+typeof n);if(Q)throw Error("Le");var H=!0;T===q&&(T=q.slice());T.push(n);return function(){if(H){if(Q)throw Error("Me");H=!1;T===q&&(T=q.slice());var I=T.indexOf(n);T.splice(I,1);q=null}}}
function G(n){if(typeof n!=="object"||n===null)var H=!1;else{for(H=n;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);H=Object.getPrototypeOf(n)===H}if(!H)throw Error("Ne`"+typeof n);if(typeof n.type==="undefined")throw Error("Oe");if(Q)throw Error("Pe");try{Q=!0,J=X(J,n)}finally{Q=!1}H=q=T;for(var I=0;I<H.length;I++)(0,H[I])();return n}
if(typeof z==="function"&&typeof C==="function"||typeof C==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof z==="function"&&typeof C==="undefined"&&(C=z,z=void 0);if(typeof C!=="undefined"){if(typeof C!=="function")throw Error("Re`"+typeof C);return C(oQN)(e,z)}if(typeof e!=="function")throw Error("Se`"+typeof e);var X=e,J=z,q=[],T=q,Q=!1;G({type:Cbo});var m={},a=(m.dispatch=G,m.subscribe=K,m.getState=w,m.replaceReducer=function(n){if(typeof n!=="function")throw Error("Te`"+
typeof n);X=n;G({type:G17});return a},m[YSg]=function(){var n={};
return n.subscribe=function(H){function I(){H.next&&H.next(w())}
if(typeof H!=="object"||H===null)throw new TypeError("Ue`"+typeof H);I();return{unsubscribe:K(I)}},n[YSg]=function(){return this},n},m);
return a};
bkk=function(e){function z(){K&&(K=!1,e());G&&w()}
function C(){requestAnimationFrame(z)}
function w(){var J=Date.now();if(K){if(J-X<2)return;G=!0}else K=!0,G=!1,setTimeout(C,20);X=J}
var K=!1,G=!1,X=0;return w};
Fh=function(e){return typeof e==="number"?e:parseFloat(e)||0};
X2L=function(e){return _.yL.apply(1,arguments).reduce(function(z,C){return z+Fh(e["border-"+C+"-width"])},0)};
x3g=function(e){if(JTg[e])return JTg[e];var z=globalThis[e],C=z.prototype,w=e in k1k?k1k[e]:void 0;w=!(!w||!w.every(function(q){var T,Q;return!!((T=Object.getOwnPropertyDescriptor(C,q))==null?0:(Q=T.get)==null?0:Q.toString().includes("[native code]"))}));
var K=e in qSE?qSE[e]:void 0;K=!(!K||!K.every(function(q){var T;return typeof C[q]==="function"&&((T=C[q])==null?void 0:T.toString().includes("[native code]"))}));
if(w&&K&&!globalThis.Zone)return JTg[e]=z.prototype;try{var G=document.createElement("iframe");document.body.appendChild(G);var X=G.contentWindow;if(!X)return z.prototype;var J=X[e].prototype;document.body.removeChild(G);return J?JTg[e]=J:C}catch(q){return C}};
Vt=function(e,z,C){var w=e+"."+String(C);if(TBg[w])return TBg[w].call(z);e=x3g(e);var K;e=(K=Object.getOwnPropertyDescriptor(e,C))==null?void 0:K.get;if(!e)return z[C];TBg[w]=e;return e.call(z)};
lAo=function(e,z){var C="Node."+String(z);if($3g[C])return $3g[C].bind(e);var w=x3g("Node")[z];if(typeof w!=="function")return e[z];$3g[C]=w;return w.bind(e)};
fG=function(e,z,C){try{if(!(z in e))return function(){};
var w=e[z],K=C(w);typeof K==="function"&&(K.prototype=K.prototype||{},Object.defineProperties(K,{__rrweb_original__:{enumerable:!1,value:w}}));e[z]=K;return function(){e[z]=w}}catch(G){return function(){}}};
dM=function(e){var z=e&&"host"in e&&"mode"in e&&SC(e)||null;return!!(z&&"shadowRoot"in z&&uB(z)===e)};
DO=function(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"};
QiN=function(e){e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return e};
aAE=function(e){try{var z=e.rules||e.cssRules;if(!z)return null;var C=e.href;!C&&e.ownerNode&&(C=e.ownerNode.baseURI);var w=Array.from(z,function(K){return m3E(K,C)}).join("");
return QiN(w)}catch(K){return null}};
m3E=function(e,z){if("styleSheet"in e){try{var C;if(!(C=aAE(e.styleSheet))){var w=e.cssText;if(w.split('"').length<3)C=w;else{var K=["@import","url("+JSON.stringify(e.href)+")"];e.layerName===""?K.push("layer"):e.layerName&&K.push("layer("+e.layerName+")");e.supportsText&&K.push("supports("+e.supportsText+")");e.media.length&&K.push(e.media.mediaText);C=K.join(" ")+";"}}var G=C}catch(X){G=e.cssText}return e.styleSheet.href?nQE(G,e.styleSheet.href):G}G=e.cssText;"selectorText"in e&&e.selectorText.includes(":")&&
(G=G.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return z?nQE(G,z):G};
Ml4=function(e){var z=e.element;var C=e.maskInputOptions;var w=e.tagName;var K=e.type;var G=e.value;e=e.maskInputFn;G=G||"";K=K&&K.toLowerCase();if(C[w.toLowerCase()]||K&&C[K])G=e?e(G,z):"*".repeat(G.length);return G};
rT1=function(e){var z=e.getContext("2d");if(!z)return!0;for(var C=0;C<e.width;C+=50)for(var w=0;w<e.height;w+=50){var K=z.getImageData;if((new Uint32Array(("__rrweb_original__"in K?K.__rrweb_original__:K).call(z,C,w,Math.min(50,e.width-C),Math.min(50,e.height-w)).data.buffer)).some(function(G){return G!==0}))return!1}return!0};
Hkm=function(e){var z=e.type;return e.hasAttribute("data-rr-is-password")?"password":z?z.toLowerCase():null};
U3o=function(e){try{var z=new URL(e,window.location.href)}catch(K){return null}var C,w;return(w=(C=z.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:C[1])!=null?w:null};
nQE=function(e,z){return(e||"").replace(vQm,function(C,w,K,G,X,J){K=K||X||J;w=w||G||"";if(!K)return C;if(IA4.test(K)||WE5.test(K)||Pbh.test(K))return"url("+w+K+w+")";if(K[0]==="/")return C=z.indexOf("//")>-1?z.split("/").slice(0,3).join("/"):z.split("/")[0],C=C.split("?")[0],"url("+w+(C+K)+w+")";C=z.split("/");G=K.split("/");C.pop();G=_.b(G);for(K=G.next();!K.done;K=G.next())K=K.value,K!=="."&&(K===".."?C.pop():C.push(K));return"url("+w+C.join("/")+w+")"})};
Rm1=function(e,z){return(z=z===void 0?!1:z)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
LEL=function(e,z){var C=C===void 0?!1:C;z=Array.from(z.childNodes);var w=[],K=0;if(z.length>1&&e&&typeof e==="string")for(var G=Rm1(e,C),X=G.length/e.length,J=1;J<z.length;J++)if(z[J].textContent&&typeof z[J].textContent==="string"){for(var q=Rm1(z[J].textContent,C),T=3;T<q.length&&(q[T].match(/[a-zA-Z0-9]/)||q.indexOf(q.substring(0,T),1)!==-1);T++);for(;T<q.length;T++){var Q=q.substring(0,T),m=G.split(Q),a=-1;if(m.length===2)a=m[0].length;else if(m.length>2&&m[0]===""&&z[J-1].textContent!=="")a=
G.indexOf(Q,1);else if(m.length===1){Q=Q.substring(0,Q.length-1);m=G.split(Q);if(m.length<=1)return w.push(e),w;T=101}else T===q.length-1&&(a=G.indexOf(Q));if(m.length>=2&&T>100){var n=z[J-1].textContent;n&&typeof n==="string"&&(a=G.indexOf(Q,Rm1(n).length));a===-1&&(a=m[0].length)}if(a!==-1){for(q=Math.floor(a/X);q>0&&q<e.length;){K+=1;if(K>50*z.length)return w.push(e),w;T=Rm1(e.substring(0,q),C);if(T.length===a){w.push(e.substring(0,q));e=e.substring(q);G=G.substring(a);break}else q=T.length<a?
q+Math.max(1,Math.floor((a-T.length)/X)):q-Math.max(1,Math.floor((T.length-a)*X))}break}}}w.push(e);return w};
Okh=function(){return hm7++};
FE1=function(e){if(e instanceof HTMLFormElement)return"form";e=e.tagName.toLowerCase();return EQs.test(e)?"div":e};
ubk=function(e,z){function C(T){return(T=T.exec(z.substring(w)))?(T=T[0],w+=T.length,T):""}
if(z.trim()==="")return z;for(var w=0,K=[];;){C(Vlh);if(w>=z.length)break;var G=C(fAo);if(G.slice(-1)===",")G=SS4(e,G.substring(0,G.length-1)),K.push(G);else{var X="";G=SS4(e,G);for(var J=!1;;){var q=z.charAt(w);if(q===""){K.push((G+X).trim());break}else if(J)q===")"&&(J=!1);else if(q===","){w+=1;K.push((G+X).trim());break}else q==="("&&(J=!0);X+=q;w+=1}}}return K.join(", ")};
SS4=function(e,z){return z&&z.trim()!==""?d31(e,z):z};
d31=function(e,z){var C=D38.get(e);C||(C=e.createElement("a"),D38.set(e,C));if(!z)z="";else if(z.startsWith("blob:")||z.startsWith("data:"))return z;At(C,z);return C.href};
ik1=function(e,z,C,w){return w?C==="src"||C==="href"&&(z!=="use"||w[0]!=="#")||C==="xlink:href"&&w[0]!=="#"||C==="background"&&(z==="table"||z==="td"||z==="th")?SS4(e,w):C==="srcset"?ubk(e,w):C==="style"?nQE(w,d31(e)):z==="object"&&C==="data"?SS4(e,w):w:w};
NB4=function(e,z){return(e==="video"||e==="audio")&&z==="autoplay"};
siL=function(e,z,C){try{if(typeof z==="string"){if(e.classList.contains(z))return!0}else for(var w=e.classList.length;w--;)if(z.test(e.classList[w]))return!0;if(C)return e.matches(C)}catch(K){}return!1};
BBo=function(e,z,C){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return C?BBo(iB(e),z,C):!1;for(var w=e.classList.length;w--;)if(z.test(e.classList[w]))return!0;return C?BBo(iB(e),z,C):!1};
tl8=function(e,z,C,w){if(e.nodeType===e.ELEMENT_NODE){if(!Nx(e).length)return!1}else{if(s8(e)===null)return!1;e=s8(e)}try{if(typeof z==="string")if(w){if(e.closest("."+z))return!0}else{if(e.classList.contains(z))return!0}else if(BBo(e,z,w))return!0;if(C)if(w){if(e.closest(C))return!0}else if(e.matches(C))return!0}catch(K){}return!1};
gQE=function(e,z,C){var w=e.contentWindow;if(w){var K=!1;try{var G=w.document.readyState}catch(J){return}if(G!=="complete"){var X=setTimeout(function(){K||(z(),K=!0)},C);
e.addEventListener("load",function(){clearTimeout(X);K=!0;z()})}else w.location.href==="about:blank"&&e.src!=="about:blank"&&e.src!==""||setTimeout(z,0),e.addEventListener("load",z)}};
jih=function(e,z,C){var w=!1;try{var K=e.sheet}catch(X){return}if(!K){var G=setTimeout(function(){w||(z(),w=!0)},C);
e.addEventListener("load",function(){clearTimeout(G);w=!0;z()})}};
AT1=function(e,z){var C=z.doc,w=z.blockClass,K=z.blockSelector,G=z.needsMask,X=z.inlineStylesheet,J=z.maskInputOptions===void 0?{}:z.maskInputOptions,q=z.maskTextFn,T=z.maskInputFn,Q=z.dataURLOptions===void 0?{}:z.dataURLOptions,m=z.inlineImages,a=z.recordCanvas,n=z.keepIframeSrcFn,H=z.newlyAddedElement===void 0?!1:z.newlyAddedElement,I=z.cssCaptured===void 0?!1:z.cssCaptured;z=z.mirror;z.nodeMetaMap.has(C)?(z=z.getId(C),z=z===1?void 0:z):z=void 0;switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:e.compatMode}:{type:0,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:1,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:z};case e.ELEMENT_NODE:return yTN(e,{doc:C,blockClass:w,blockSelector:K,inlineStylesheet:X,maskInputOptions:J,maskInputFn:T,dataURLOptions:Q,inlineImages:m,recordCanvas:a,keepIframeSrcFn:n,newlyAddedElement:H,rootId:z});case e.TEXT_NODE:return X=(w=iB(e))&&w.tagName,w="",K=X==="STYLE"?!0:void 0,(X=X==="SCRIPT"?!0:void 0)?
w="SCRIPT_PLACEHOLDER":I||(w=cTN(e),K&&w&&(w=nQE(w,d31(C)))),!K&&!X&&w&&G&&(w=q?q(w,s8(e)):w.replace(/[\S]/g,"*")),{type:3,textContent:w||"",rootId:z};case e.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:z};case e.COMMENT_NODE:return{type:5,textContent:cTN(e)||"",rootId:z};default:return!1}};
yTN=function(e,z){var C=z.doc,w=z.inlineStylesheet,K=z.maskInputOptions===void 0?{}:z.maskInputOptions,G=z.maskInputFn,X=z.dataURLOptions===void 0?{}:z.dataURLOptions,J=z.inlineImages,q=z.recordCanvas,T=z.keepIframeSrcFn,Q=z.newlyAddedElement===void 0?!1:z.newlyAddedElement,m=z.rootId;z=siL(e,z.blockClass,z.blockSelector);for(var a=FE1(e),n={},H=e.attributes.length,I=0;I<H;I++){var L=e.attributes[I];NB4(a,L.name)||(n[L.name]=ik1(C,a,L.name.toLowerCase(),L.value))}a==="link"&&w&&(w=Array.from(C.styleSheets).find(function(g){return g.href===
e.href}),H=null,w&&(H=aAE(w)),H&&(delete n.rel,delete n.href,n._cssText=H));
a==="style"&&e.sheet&&(w=aAE(e.sheet))&&(e.childNodes.length>1&&(w=LEL(w,e).join("/* rr_split */")),n._cssText=w);if(a==="input"||a==="textarea"||a==="select")w=e.value,H=e.checked,n.type!=="radio"&&n.type!=="checkbox"&&n.type!=="submit"&&n.type!=="button"&&w?n.value=Ml4({element:e,type:Hkm(e),tagName:a,value:w,maskInputOptions:K,maskInputFn:G}):H&&(n.checked=H);a==="option"&&(e.selected&&!K.select?n.selected=!0:delete n.selected);a==="dialog"&&e.open&&(n.rr_open_mode=e.matches("dialog:modal")?"modal":
"non-modal");a==="canvas"&&q&&(e.__context==="2d"?rT1(e)||(n.rr_dataURL=e.toDataURL(X.type,X.quality)):"__context"in e||(K=e.toDataURL(X.type,X.quality),G=C.createElement("canvas"),G.width=e.width,G.height=e.height,G=G.toDataURL(X.type,X.quality),K!==G&&(n.rr_dataURL=K)));if(a==="img"&&J){BA||(BA=C.createElement("canvas"),Zkg=BA.getContext("2d"));var h=e.currentSrc||e.getAttribute("src")||"<unknown-src>",E=e.crossOrigin,N=function(){e.removeEventListener("load",N);try{BA.width=e.naturalWidth,BA.height=
e.naturalHeight,Zkg.drawImage(e,0,0),n.rr_dataURL=BA.toDataURL(X.type,X.quality)}catch(g){if(e.crossOrigin!=="anonymous"){e.crossOrigin="anonymous";e.complete&&e.naturalWidth!==0?N():e.addEventListener("load",N);return}console.warn("Cannot inline img src="+h+"! Error: "+g)}e.crossOrigin==="anonymous"&&(E?n.crossOrigin=E:e.removeAttribute("crossorigin"))};
e.complete&&e.naturalWidth!==0?N():e.addEventListener("load",N)}if(a==="audio"||a==="video")C=n,C.rr_mediaState=e.paused?"paused":"played",C.rr_mediaCurrentTime=e.currentTime,C.rr_mediaPlaybackRate=e.playbackRate,C.rr_mediaMuted=e.muted,C.rr_mediaLoop=e.loop,C.rr_mediaVolume=e.volume;Q||(e.scrollLeft&&(n.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(n.rr_scrollTop=e.scrollTop));z&&(Q=e.getBoundingClientRect(),n={class:n.class,rr_width:Q.width+"px",rr_height:Q.height+"px"});a!=="iframe"||T(n.src)||(e.contentDocument||
(n.rr_src=n.src),delete n.src);var D;try{customElements.get(a)&&(D=!0)}catch(g){}return{type:2,tagName:a,attributes:n,childNodes:[],isSVG:!(e.tagName!=="svg"&&!e.ownerSVGElement)||void 0,needBlock:z,rootId:m,isCustom:D}};
t2=function(e){return e===void 0||e===null?"":e.toLowerCase()};
p21=function(e,z){return z.comment&&e.type===5||e.type===2&&(z.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href==="string"&&U3o(e.attributes.href)==="js")||z.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(t2(e.attributes.name).match(/^msapplication-tile(image|color)$/)||t2(e.attributes.name)===
"application-name"||t2(e.attributes.rel)==="icon"||t2(e.attributes.rel)==="apple-touch-icon"||t2(e.attributes.rel)==="shortcut icon"))||e.tagName==="meta"&&(z.headMetaDescKeywords&&t2(e.attributes.name).match(/^description|keywords$/)||z.headMetaSocial&&(t2(e.attributes.property).match(/^(og|twitter|fb):/)||t2(e.attributes.name).match(/^(og|twitter):/)||t2(e.attributes.name)==="pinterest")||z.headMetaRobots&&(t2(e.attributes.name)==="robots"||t2(e.attributes.name)==="googlebot"||t2(e.attributes.name)===
"bingbot")||z.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0||z.headMetaAuthorship&&(t2(e.attributes.name)==="author"||t2(e.attributes.name)==="generator"||t2(e.attributes.name)==="framework"||t2(e.attributes.name)==="publisher"||t2(e.attributes.name)==="progid"||t2(e.attributes.property).match(/^article:/)||t2(e.attributes.property).match(/^product:/))||z.headMetaVerification&&(t2(e.attributes.name)==="google-site-verification"||t2(e.attributes.name)==="yandex-verification"||t2(e.attributes.name)===
"csrf-token"||t2(e.attributes.name)==="p:domain_verify"||t2(e.attributes.name)==="verify-v1"||t2(e.attributes.name)==="verification"||t2(e.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
gM=function(e,z){var C=z.doc,w=z.mirror,K=z.blockClass,G=z.blockSelector,X=z.maskTextClass,J=z.maskTextSelector,q=z.skipChild===void 0?!1:z.skipChild,T=z.inlineStylesheet===void 0?!0:z.inlineStylesheet,Q=z.maskInputOptions===void 0?{}:z.maskInputOptions,m=z.maskTextFn,a=z.maskInputFn,n=z.slimDOMOptions,H=z.dataURLOptions===void 0?{}:z.dataURLOptions,I=z.inlineImages===void 0?!1:z.inlineImages,L=z.recordCanvas===void 0?!1:z.recordCanvas,h=z.onSerialize,E=z.onIframeLoad,N=z.iframeLoadTimeout===void 0?
5E3:z.iframeLoadTimeout,D=z.onStylesheetLoad,g=z.stylesheetLoadTimeout===void 0?5E3:z.stylesheetLoadTimeout,y=z.keepIframeSrcFn===void 0?function(){return!1}:z.keepIframeSrcFn,Z=z.newlyAddedElement===void 0?!1:z.newlyAddedElement,YN=z.cssCaptured===void 0?!1:z.cssCaptured,Jk=z.needsMask,v1=z.preserveWhiteSpace===void 0?!0:z.preserveWhiteSpace;
Jk||(Jk=tl8(e,X,J,Jk===void 0));var lg=AT1(e,{doc:C,mirror:w,blockClass:K,blockSelector:G,needsMask:Jk,inlineStylesheet:T,maskInputOptions:Q,maskTextFn:m,maskInputFn:a,dataURLOptions:H,inlineImages:I,recordCanvas:L,keepIframeSrcFn:y,newlyAddedElement:Z,cssCaptured:YN});if(!lg)return console.warn(e,"not serialized"),null;Z=w.nodeMetaMap.has(e)?w.getId(e):p21(lg,n)||!v1&&lg.type===3&&!lg.textContent.replace(/^\s+|\s+$/gm,"").length?-2:hm7++;z=Object.assign(lg,{id:Z});w.add(e,z);if(Z===-2)return null;
h&&h(e);Z=!q;z.type===2&&(Z=Z&&!z.needBlock,delete z.needBlock,(YN=uB(e))&&DO(YN)&&(z.isShadowHost=!0));if((z.type===0||z.type===2)&&Z){n.headWhitespace&&z.type===2&&z.tagName==="head"&&(v1=!1);q={doc:C,mirror:w,blockClass:K,blockSelector:G,needsMask:Jk,maskTextClass:X,maskTextSelector:J,skipChild:q,inlineStylesheet:T,maskInputOptions:Q,maskTextFn:m,maskInputFn:a,slimDOMOptions:n,dataURLOptions:H,inlineImages:I,recordCanvas:L,preserveWhiteSpace:v1,onSerialize:h,onIframeLoad:E,iframeLoadTimeout:N,
onStylesheetLoad:D,stylesheetLoadTimeout:g,keepIframeSrcFn:y,cssCaptured:!1};if(z.type!==2||z.tagName!=="textarea"||z.attributes.value===void 0)for(z.type===2&&z.attributes._cssText!==void 0&&typeof z.attributes._cssText==="string"&&(q.cssCaptured=!0),Z=_.b(Array.from(Nx(e))),YN=Z.next();!YN.done;YN=Z.next())(YN=gM(YN.value,q))&&z.childNodes.push(YN);Z=null;if(e.nodeType===e.ELEMENT_NODE&&(Z=uB(e))){YN=_.b(Array.from(Nx(Z)));for(var M5=YN.next();!M5.done;M5=YN.next())if(M5=gM(M5.value,q))DO(Z)&&(M5.isShadow=
!0),z.childNodes.push(M5)}}(q=iB(e))&&dM(q)&&DO(q)&&(z.isShadow=!0);z.type===2&&z.tagName==="iframe"&&gQE(e,function(){var fo=e.contentDocument;fo&&E&&(fo=gM(fo,{doc:fo,mirror:w,blockClass:K,blockSelector:G,needsMask:Jk,maskTextClass:X,maskTextSelector:J,skipChild:!1,inlineStylesheet:T,maskInputOptions:Q,maskTextFn:m,maskInputFn:a,slimDOMOptions:n,dataURLOptions:H,inlineImages:I,recordCanvas:L,preserveWhiteSpace:v1,onSerialize:h,onIframeLoad:E,iframeLoadTimeout:N,onStylesheetLoad:D,stylesheetLoadTimeout:g,
keepIframeSrcFn:y}))&&E(e,fo)},N);
z.type===2&&z.tagName==="link"&&typeof z.attributes.rel==="string"&&(z.attributes.rel==="stylesheet"||z.attributes.rel==="preload"&&typeof z.attributes.href==="string"&&U3o(z.attributes.href)==="css")&&jih(e,function(){if(D){var fo=gM(e,{doc:C,mirror:w,blockClass:K,blockSelector:G,needsMask:Jk,maskTextClass:X,maskTextSelector:J,skipChild:!1,inlineStylesheet:T,maskInputOptions:Q,maskTextFn:m,maskInputFn:a,slimDOMOptions:n,dataURLOptions:H,inlineImages:I,recordCanvas:L,preserveWhiteSpace:v1,onSerialize:h,
onIframeLoad:E,iframeLoadTimeout:N,onStylesheetLoad:D,stylesheetLoadTimeout:g,keepIframeSrcFn:y});fo&&D(e,fo)}},g);
return z};
el1=function(e){var z=document;e=e||{};var C=e.maskAllInputs===void 0?!1:e.maskAllInputs,w=e.slimDOM===void 0?!1:e.slimDOM;return gM(z,{doc:z,mirror:e.mirror===void 0?new jC:e.mirror,blockClass:e.blockClass===void 0?"rr-block":e.blockClass,blockSelector:e.blockSelector===void 0?null:e.blockSelector,maskTextClass:e.maskTextClass===void 0?"rr-mask":e.maskTextClass,maskTextSelector:e.maskTextSelector===void 0?null:e.maskTextSelector,skipChild:!1,inlineStylesheet:e.inlineStylesheet===void 0?!0:e.inlineStylesheet,
maskInputOptions:C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:C===!1?{password:!0}:C,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:w===!0||w==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:w==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:w===!1?{}:w,dataURLOptions:e.dataURLOptions,
inlineImages:e.inlineImages===void 0?!1:e.inlineImages,recordCanvas:e.recordCanvas===void 0?!1:e.recordCanvas,preserveWhiteSpace:e.preserveWhiteSpace,onSerialize:e.onSerialize,onIframeLoad:e.onIframeLoad,iframeLoadTimeout:e.iframeLoadTimeout,onStylesheetLoad:e.onStylesheetLoad,stylesheetLoadTimeout:e.stylesheetLoadTimeout,keepIframeSrcFn:e.keepIframeSrcFn===void 0?function(){return!1}:e.keepIframeSrcFn,
newlyAddedElement:!1})};
cA=function(e,z,C){C=C===void 0?document:C;var w={capture:!0,passive:!0};C.addEventListener(e,z,w);return function(){return C.removeEventListener(e,z,w)}};
A2=function(e,z,C){C=C===void 0?{}:C;var w=null,K=0;return function(){var G=_.yL.apply(0,arguments),X=Date.now();K||C.leading!==!1||(K=X);var J=z-(X-K),q=this;J<=0||J>z?(w&&(clearTimeout(w),w=null),K=X,e.apply(q,G)):w||C.trailing===!1||(w=setTimeout(function(){K=C.leading===!1?0:Date.now();w=null;e.apply(q,G)},J))}};
zlL=function(e,z,C,w,K){K=K===void 0?window:K;var G=K.Object.getOwnPropertyDescriptor(e,z);K.Object.defineProperty(e,z,w?C:{set:function(X){var J=this;setTimeout(function(){C.set.call(J,X)},0);
G&&G.set&&G.set.call(this,X)}});
return function(){return zlL(e,z,G||{},!0)}};
CGg=function(e){var z=e.document,C,w,K,G;return{left:z.scrollingElement?z.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:z.documentElement.scrollLeft||(z==null?void 0:z.body)&&((C=s8(z.body))==null?void 0:C.scrollLeft)||(z==null?void 0:(w=z.body)==null?void 0:w.scrollLeft)||0,top:z.scrollingElement?z.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(z==null?void 0:z.documentElement.scrollTop)||(z==null?void 0:z.body)&&((K=s8(z.body))==null?void 0:K.scrollTop)||(z==
null?void 0:(G=z.body)==null?void 0:G.scrollTop)||0}};
wqg=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
Kxh=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
ouN=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:s8(e):null};
ZO=function(e,z,C,w){if(!e)return!1;e=ouN(e);if(!e)return!1;try{if(typeof z==="string"){if(e.classList.contains(z)||w&&e.closest("."+z)!==null)return!0}else if(BBo(e,z,w))return!0}catch(K){}return C&&(e.matches(C)||w&&e.closest(C)!==null)?!0:!1};
GDg=function(e,z,C){return e.tagName==="TITLE"&&C.headTitleMutations?!0:z.getId(e)===-2};
YV7=function(e,z){if(dM(e))return!1;var C=z.getId(e);return z.has(C)?(C=iB(e))&&C.nodeType===e.DOCUMENT_NODE?!1:C?YV7(C,z):!0:!0};
bRE=function(){var e=e===void 0?window:e;"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
XqN=function(e,z){return!(e.nodeName!=="LINK"||e.nodeType!==e.ELEMENT_NODE||!e.getAttribute||e.getAttribute("rel")!=="stylesheet"||!z.nodeMetaMap.get(e))};
kD5=function(e){var z=null,C;"getRootNode"in e&&((C=JQ8(e))==null?void 0:C.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&SC(JQ8(e))&&(z=SC(JQ8(e)));return z};
qV1=function(e){var z=e.ownerDocument;if(z){if(!(z=lAo(z,"contains")(e)))if(z=e.ownerDocument){for(var C;C=kD5(e);)e=C;z=lAo(z,"contains")(e)}else z=!1}else z=!1;return z};
x_m=function(e,z){e.delete(z);Nx(z).forEach(function(C){return x_m(e,C)})};
Tq1=function(e,z){for(var C=[e];C.length;)e=C.pop(),z.has(e)||(z.add(e),Nx(e).forEach(function(w){return C.push(w)}))};
$_s=function(e,z){e.size===0?e=!1:e=(z=iB(z))?e.has(z):!1;return e};
QKg=function(e,z){return e.size===0?!1:l7L(e,z)};
l7L=function(e,z){return(z=iB(z))?e.has(z)?!0:l7L(e,z):!1};
pG=function(e){try{if("composedPath"in e){var z=e.composedPath();if(z.length)return z[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(C){}return e&&e.target};
a7o=function(e,z){var C=new m_k;ey.push(C);C.init(e);e=new (x3g("MutationObserver").constructor)(zo(C.processMutations.bind(C)));e.observe(z,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return e};
Mqs=function(e){var z=e.mousemoveCb;var C=e.sampling;var w=e.doc;var K=e.mirror;if(C.mousemove===!1)return function(){};
var G=[],X,J=A2(zo(function(T){var Q=Date.now()-X;z(G.map(function(m){m.timeOffset-=Q;return m}),T);
G=[];X=null}),typeof C.mousemoveCallback==="number"?C.mousemoveCallback:500);
e=zo(A2(zo(function(T){var Q=pG(T),m=T.changedTouches?T.changedTouches[0]:T,a=m.clientX;m=m.clientY;X||(X=nu8());G.push({x:a,y:m,id:K.getId(Q),timeOffset:nu8()-X});J(typeof DragEvent!=="undefined"&&T instanceof DragEvent?12:T instanceof MouseEvent?1:6)}),typeof C.mousemove==="number"?C.mousemove:50,{trailing:!1}));
var q=[cA("mousemove",e,w),cA("touchmove",e,w),cA("drag",e,w)];return zo(function(){q.forEach(function(T){return T()})})};
rQh=function(e){var z=e.mouseInteractionCb;var C=e.doc;var w=e.mirror;var K=e.blockClass;var G=e.blockSelector;e=e.sampling;if(e.mouseInteraction===!1)return function(){};
var X=e.mouseInteraction===!0||e.mouseInteraction===void 0?{}:e.mouseInteraction,J=[],q=null,T=function(Q){return function(m){var a=pG(m);if(!ZO(a,K,G,!0)){var n=null,H=Q;if("pointerType"in m){switch(m.pointerType){case "mouse":n=0;break;case "touch":n=2;break;case "pen":n=1}n===2&&(Ci[Q]===1?H="TouchStart":Ci[Q]===0&&(H="TouchEnd"))}else m.changedTouches&&(n=2);if(n!==null){if(q=n,H.startsWith("Touch")&&n===2||H.startsWith("Mouse")&&n===0)n=null}else Ci[Q]===2&&(n=q,q=null);if(m=m.changedTouches?
m.changedTouches[0]:m)a=w.getId(a),zo(z)(Object.assign({},{type:Ci[H],id:a,x:m.clientX,y:m.clientY},n!==null&&{pointerType:n}))}}};
Object.keys(Ci).filter(function(Q){return Number.isNaN(Number(Q))&&!Q.endsWith("_Departed")&&X[Q]!==!1}).forEach(function(Q){var m=Q.toLowerCase(),a=T(Q);
if(window.PointerEvent)switch(Ci[Q]){case 1:case 0:m=m.replace("mouse","pointer");break;case 7:case 9:return}J.push(cA(m,a,C))});
return zo(function(){J.forEach(function(Q){return Q()})})};
HRL=function(e){var z=e.scrollCb;var C=e.doc;var w=e.mirror;var K=e.blockClass;var G=e.blockSelector;return cA("scroll",zo(A2(zo(function(X){var J=pG(X);J&&!ZO(J,K,G,!0)&&(X=w.getId(J),J===C&&C.defaultView?(J=CGg(C.defaultView),z({id:X,x:J.left,y:J.top})):z({id:X,x:J.scrollLeft,y:J.scrollTop}))}),e.sampling.scroll||100)),C)};
U_g=function(e,z){var C=e.viewportResizeCb;var w=-1,K=-1;return cA("resize",zo(A2(zo(function(){var G=wqg(),X=Kxh();if(w!==G||K!==X)C({width:Number(X),height:Number(G)}),w=G,K=X}),200)),z.win)};
Wx4=function(e){function z(L){var h=pG(L),E=L.isTrusted,N=h&&h.tagName;h&&N==="OPTION"&&(h=s8(h));if(!(!h||!N||vus.indexOf(N)<0||ZO(h,X,J,!0)||h.classList.contains(q)||T&&h.matches(T))){var D=h.value,g=!1;L=Hkm(h)||"";if(L==="radio"||L==="checkbox")g=h.checked;else if(Q[N.toLowerCase()]||Q[L])D=Ml4({element:h,maskInputOptions:Q,tagName:N,type:L,value:D,maskInputFn:m});C(h,n?{text:D,isChecked:g,userTriggered:E}:{text:D,isChecked:g});E=h.name;L==="radio"&&E&&g&&K.querySelectorAll('input[type="radio"][name="'+
E+'"]').forEach(function(y){if(y!==h){var Z=y.value;C(y,n?{text:Z,isChecked:!g,userTriggered:!1}:{text:Z,isChecked:!g})}})}}
function C(L,h){var E=I7N.get(L);E&&E.text===h.text&&E.isChecked===h.isChecked||(I7N.set(L,h),L=G.getId(L),zo(w)(Object.assign({},h,{id:L})))}
var w=e.inputCb;var K=e.doc;var G=e.mirror;var X=e.blockClass;var J=e.blockSelector;var q=e.ignoreClass;var T=e.ignoreSelector;var Q=e.maskInputOptions;var m=e.maskInputFn;var a=e.sampling;var n=e.userTriggeredOnInput;var H=(a.input==="last"?["change"]:["input","change"]).map(function(L){return cA(L,zo(z),K)}),I=K.defaultView;
if(!I)return function(){H.forEach(function(L){return L()})};
e=I.Object.getOwnPropertyDescriptor(I.HTMLInputElement.prototype,"value");a=[[I.HTMLInputElement.prototype,"value"],[I.HTMLInputElement.prototype,"checked"],[I.HTMLSelectElement.prototype,"value"],[I.HTMLTextAreaElement.prototype,"value"],[I.HTMLSelectElement.prototype,"selectedIndex"],[I.HTMLOptionElement.prototype,"selected"]];e&&e.set&&H.push.apply(H,_.s_(a.map(function(L){return zlL(L[0],L[1],{set:function(){zo(z)({target:this,isTrusted:!1})}},!1,I)})));
return zo(function(){H.forEach(function(L){return L()})})};
Rlk=function(e){var z=[],C,w,K,G;PGg("CSSGroupingRule")&&((C=e.parentRule)==null?void 0:(w=C.constructor)==null?void 0:w.name)==="CSSGroupingRule"||PGg("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||PGg("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||PGg("CSSConditionRule")&&((K=e.parentRule)==null?void 0:(G=K.constructor)==null?void 0:G.name)==="CSSConditionRule"?(e=Array.from(e.parentRule.cssRules).indexOf(e),z.unshift(e)):e.parentStyleSheet&&(e=Array.from(e.parentStyleSheet.cssRules).indexOf(e),
z.unshift(e));return z};
wN=function(e,z,C){var w,K;if(!e)return{};e.ownerNode?w=z.getId(e.ownerNode):K=C.getId(e);return{styleId:K,id:w}};
hlk=function(e,z){var C=e.styleSheetRuleCb;var w=e.mirror;var K=e.stylesheetManager;var G=z.win;if(!G.CSSStyleSheet||!G.CSSStyleSheet.prototype)return function(){};
var X=G.CSSStyleSheet.prototype.insertRule;G.CSSStyleSheet.prototype.insertRule=new Ki(X,{apply:zo(function(a,n,H){var I=_.b(H),L=I.next().value;I=I.next().value;var h=wN(n,w,K.styleMirror),E=h.id;h=h.styleId;(E&&E!==-1||h&&h!==-1)&&C({id:E,styleId:h,adds:[{rule:L,index:I}]});return a.apply(n,H)})});
G.CSSStyleSheet.prototype.addRule=function(a,n,H){H=H===void 0?this.cssRules.length:H;return G.CSSStyleSheet.prototype.insertRule.apply(this,[a+" { "+n+" }",H])};
var J=G.CSSStyleSheet.prototype.deleteRule;G.CSSStyleSheet.prototype.deleteRule=new Ki(J,{apply:zo(function(a,n,H){var I=_.b(H).next().value,L=wN(n,w,K.styleMirror),h=L.id;L=L.styleId;(h&&h!==-1||L&&L!==-1)&&C({id:h,styleId:L,removes:[{index:I}]});return a.apply(n,H)})});
G.CSSStyleSheet.prototype.removeRule=function(a){return G.CSSStyleSheet.prototype.deleteRule.apply(this,[a])};
if(G.CSSStyleSheet.prototype.replace){var q=G.CSSStyleSheet.prototype.replace;G.CSSStyleSheet.prototype.replace=new Ki(q,{apply:zo(function(a,n,H){var I=_.b(H).next().value,L=wN(n,w,K.styleMirror),h=L.id;L=L.styleId;(h&&h!==-1||L&&L!==-1)&&C({id:h,styleId:L,replace:I});return a.apply(n,H)})})}if(G.CSSStyleSheet.prototype.replaceSync){var T=G.CSSStyleSheet.prototype.replaceSync;
G.CSSStyleSheet.prototype.replaceSync=new Ki(T,{apply:zo(function(a,n,H){var I=_.b(H).next().value,L=wN(n,w,K.styleMirror),h=L.id;L=L.styleId;(h&&h!==-1||L&&L!==-1)&&C({id:h,styleId:L,replaceSync:I});return a.apply(n,H)})})}var Q={};
Lx5("CSSGroupingRule")?Q.CSSGroupingRule=G.CSSGroupingRule:(Lx5("CSSMediaRule")&&(Q.CSSMediaRule=G.CSSMediaRule),Lx5("CSSConditionRule")&&(Q.CSSConditionRule=G.CSSConditionRule),Lx5("CSSSupportsRule")&&(Q.CSSSupportsRule=G.CSSSupportsRule));var m={};Object.entries(Q).forEach(function(a){var n=_.b(a);a=n.next().value;n=n.next().value;m[a]={insertRule:n.prototype.insertRule,deleteRule:n.prototype.deleteRule};n.prototype.insertRule=new Ki(m[a].insertRule,{apply:zo(function(H,I,L){var h=_.b(L),E=h.next().value;
h=h.next().value;var N=wN(I.parentStyleSheet,w,K.styleMirror),D=N.id;N=N.styleId;(D&&D!==-1||N&&N!==-1)&&C({id:D,styleId:N,adds:[{rule:E,index:[].concat(_.s_(Rlk(I)),[h||0])}]});return H.apply(I,L)})});
n.prototype.deleteRule=new Ki(m[a].deleteRule,{apply:zo(function(H,I,L){var h=_.b(L).next().value,E=wN(I.parentStyleSheet,w,K.styleMirror),N=E.id;E=E.styleId;(N&&N!==-1||E&&E!==-1)&&C({id:N,styleId:E,removes:[{index:[].concat(_.s_(Rlk(I)),[h])}]});return H.apply(I,L)})})});
return zo(function(){G.CSSStyleSheet.prototype.insertRule=X;G.CSSStyleSheet.prototype.deleteRule=J;q&&(G.CSSStyleSheet.prototype.replace=q);T&&(G.CSSStyleSheet.prototype.replaceSync=T);Object.entries(Q).forEach(function(a){var n=_.b(a);a=n.next().value;n=n.next().value;n.prototype.insertRule=m[a].insertRule;n.prototype.deleteRule=m[a].deleteRule})})};
Euo=function(e,z){var C=e.mirror;var w=e.stylesheetManager;var K=null;K=z.nodeName==="#document"?C.getId(z):C.getId(SC(z));var G,X,J;e=z.nodeName==="#document"?(G=z.defaultView)==null?void 0:G.Document:(X=z.ownerDocument)==null?void 0:(J=X.defaultView)==null?void 0:J.ShadowRoot;var q=(e==null?0:e.prototype)?Object.getOwnPropertyDescriptor(e==null?void 0:e.prototype,"adoptedStyleSheets"):void 0;if(K===null||K===-1||!e||!q)return function(){};
Object.defineProperty(z,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get:function(){var T;return(T=q.get)==null?void 0:T.call(this)},
set:function(T){var Q,m=(Q=q.set)==null?void 0:Q.call(this,T);if(K!==null&&K!==-1)try{ORh(w,T,K)}catch(a){}return m}});
return zo(function(){Object.defineProperty(z,"adoptedStyleSheets",{configurable:q.configurable,enumerable:q.enumerable,get:q.get,set:q.set})})};
Fx8=function(e,z){var C=e.styleDeclarationCb;var w=e.mirror;var K=e.ignoreCSSAttributes;var G=e.stylesheetManager;var X=z.win;var J=X.CSSStyleDeclaration.prototype.setProperty;X.CSSStyleDeclaration.prototype.setProperty=new Ki(J,{apply:zo(function(T,Q,m){var a=_.b(m),n=a.next().value,H=a.next().value;a=a.next().value;if(K.has(n))return J.apply(Q,[n,H,a]);var I,L=wN((I=Q.parentRule)==null?void 0:I.parentStyleSheet,w,G.styleMirror);I=L.id;L=L.styleId;(I&&I!==-1||L&&L!==-1)&&C({id:I,styleId:L,set:{property:n,
value:H,priority:a},index:Rlk(Q.parentRule)});return T.apply(Q,m)})});
var q=X.CSSStyleDeclaration.prototype.removeProperty;X.CSSStyleDeclaration.prototype.removeProperty=new Ki(q,{apply:zo(function(T,Q,m){var a=_.b(m).next().value;if(K.has(a))return q.apply(Q,[a]);var n,H=wN((n=Q.parentRule)==null?void 0:n.parentStyleSheet,w,G.styleMirror);n=H.id;H=H.styleId;(n&&n!==-1||H&&H!==-1)&&C({id:n,styleId:H,remove:{property:a},index:Rlk(Q.parentRule)});return T.apply(Q,m)})});
return zo(function(){X.CSSStyleDeclaration.prototype.setProperty=J;X.CSSStyleDeclaration.prototype.removeProperty=q})};
Vqs=function(e){var z=e.mediaInteractionCb;var C=e.blockClass;var w=e.blockSelector;var K=e.mirror;var G=e.sampling;e=e.doc;var X=zo(function(q){return A2(zo(function(T){if((T=pG(T))&&!ZO(T,C,w,!0)){var Q=T.currentTime,m=T.volume,a=T.muted,n=T.playbackRate,H=T.loop;z({type:q,id:K.getId(T),currentTime:Q,volume:m,muted:a,playbackRate:n,loop:H})}}),G.media||500)}),J=[cA("play",X(0),e),
cA("pause",X(1),e),cA("seeked",X(2),e),cA("volumechange",X(3),e),cA("ratechange",X(4),e)];return zo(function(){J.forEach(function(q){return q()})})};
f7g=function(e){var z=e.fontCb;e=e.doc;var C=e.defaultView;if(!C)return function(){};
var w=[],K=new WeakMap,G=C.FontFace;C.FontFace=function(X,J,q){var T=new G(X,J,q);K.set(T,{family:X,buffer:typeof J!=="string",descriptors:q,fontSource:typeof J==="string"?J:JSON.stringify(Array.from(new Uint8Array(J)))});return T};
e=fG(e.fonts,"add",function(X){return function(J){setTimeout(zo(function(){var q=K.get(J);q&&(z(q),K.delete(J))}),0);
return X.apply(this,[J])}});
w.push(function(){C.FontFace=G});
w.push(e);return zo(function(){w.forEach(function(X){return X()})})};
SV8=function(e){var z=e.doc,C=e.mirror,w=e.blockClass,K=e.blockSelector,G=e.selectionCb,X=!0;e=zo(function(){var J=z.getSelection();if(J&&!(X&&(J==null?0:J.isCollapsed))){X=J.isCollapsed||!1;for(var q=[],T=J.rangeCount||0,Q=0;Q<T;Q++){var m=J.getRangeAt(Q),a=m.startContainer,n=m.startOffset,H=m.endContainer;m=m.endOffset;ZO(a,w,K,!0)||ZO(H,w,K,!0)||q.push({start:C.getId(a),startOffset:n,end:C.getId(H),endOffset:m})}G({ranges:q})}});
e();return cA("selectionchange",e)};
uo1=function(e){var z=e.doc;var C=e.customElementCb;return(e=z.defaultView)&&e.customElements?fG(e.customElements,"define",function(w){return function(K,G,X){try{C({define:{name:K}})}catch(J){console.warn("Custom element callback failed for "+K)}return w.apply(this,[K,G,X])}}):function(){}};
d_s=function(e,z){var C=e.mutationCb,w=e.mousemoveCb,K=e.mouseInteractionCb,G=e.scrollCb,X=e.viewportResizeCb,J=e.inputCb,q=e.mediaInteractionCb,T=e.styleSheetRuleCb,Q=e.styleDeclarationCb,m=e.canvasMutationCb,a=e.fontCb,n=e.selectionCb,H=e.customElementCb;e.mutationCb=function(){var I=_.yL.apply(0,arguments);z.mutation&&z.mutation.apply(z,_.s_(I));C.apply(null,_.s_(I))};
e.mousemoveCb=function(){var I=_.yL.apply(0,arguments);z.mousemove&&z.mousemove.apply(z,_.s_(I));w.apply(null,_.s_(I))};
e.mouseInteractionCb=function(){var I=_.yL.apply(0,arguments);z.mouseInteraction&&z.mouseInteraction.apply(z,_.s_(I));K.apply(null,_.s_(I))};
e.scrollCb=function(){var I=_.yL.apply(0,arguments);z.scroll&&z.scroll.apply(z,_.s_(I));G.apply(null,_.s_(I))};
e.viewportResizeCb=function(){var I=_.yL.apply(0,arguments);z.viewportResize&&z.viewportResize.apply(z,_.s_(I));X.apply(null,_.s_(I))};
e.inputCb=function(){var I=_.yL.apply(0,arguments);z.input&&z.input.apply(z,_.s_(I));J.apply(null,_.s_(I))};
e.mediaInteractionCb=function(){var I=_.yL.apply(0,arguments);z.mediaInteaction&&z.mediaInteaction.apply(z,_.s_(I));q.apply(null,_.s_(I))};
e.styleSheetRuleCb=function(){var I=_.yL.apply(0,arguments);z.styleSheetRule&&z.styleSheetRule.apply(z,_.s_(I));T.apply(null,_.s_(I))};
e.styleDeclarationCb=function(){var I=_.yL.apply(0,arguments);z.styleDeclaration&&z.styleDeclaration.apply(z,_.s_(I));Q.apply(null,_.s_(I))};
e.canvasMutationCb=function(){var I=_.yL.apply(0,arguments);z.canvasMutation&&z.canvasMutation.apply(z,_.s_(I));m.apply(null,_.s_(I))};
e.fontCb=function(){var I=_.yL.apply(0,arguments);z.font&&z.font.apply(z,_.s_(I));a.apply(null,_.s_(I))};
e.selectionCb=function(){var I=_.yL.apply(0,arguments);z.selection&&z.selection.apply(z,_.s_(I));n.apply(null,_.s_(I))};
e.customElementCb=function(){var I=_.yL.apply(0,arguments);z.customElement&&z.customElement.apply(z,_.s_(I));H.apply(null,_.s_(I))}};
D_E=function(e,z){z=z===void 0?{}:z;var C=e.doc.defaultView;if(!C)return function(){};
d_s(e,z);var w;e.recordDOM&&(w=a7o(e,e.doc));var K=Mqs(e),G=rQh(e),X=HRL(e),J=U_g(e,{win:C}),q=Wx4(e),T=Vqs(e),Q=function(){},m=function(){},a=function(){},n=function(){};
e.recordDOM&&(Q=hlk(e,{win:C}),m=Euo(e,e.doc),a=Fx8(e,{win:C}),e.collectFonts&&(n=f7g(e)));var H=SV8(e),I=uo1(e),L=[];e=_.b(e.plugins);for(z=e.next();!z.done;z=e.next())z=z.value,L.push(z.observer(z.callback,C,z.options));return zo(function(){ey.forEach(function(E){return E.reset()});
var h;(h=w)==null||h.disconnect();K();G();X();J();q();T();Q();m();a();n();H();I();L.forEach(function(E){return E()})})};
PGg=function(e){return typeof window[e]!=="undefined"};
Lx5=function(e){return!!(typeof window[e]!=="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)};
iR1=function(e){e=new Uint8Array(e);for(var z="",C=0;C<e.byteLength;C++)z+=String.fromCharCode(e[C]);return btoa(z)};
Nqm=function(e,z,C){if(e instanceof Array)return e.map(function(K){return Nqm(K,z,C)});
if(e!==null){if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){var w=e.constructor.name;e=iR1(e);return{rr_type:w,base64:e}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Nqm(e.buffer,z,C),e.byteOffset,e.byteLength]};
if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:e.toDataURL()};if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Nqm(e.data,z,C),e.width,e.height]};if(sKk(e,z)||typeof e==="object")return w=e.constructor.name,e=BqL(e,z,C),{rr_type:w,index:e}}return e};
gum=function(e,z,C,w){for(var K=[],G=_.b(Object.getOwnPropertyNames(z.CanvasRenderingContext2D.prototype)),X=G.next(),J={};!X.done;J={prop$jscomp$58:void 0},X=G.next()){J.prop$jscomp$58=X.value;try{if(typeof z.CanvasRenderingContext2D.prototype[J.prop$jscomp$58]==="function"){var q=fG(z.CanvasRenderingContext2D.prototype,J.prop$jscomp$58,function(T){return function(Q){return function(){var m=_.yL.apply(0,arguments),a=this;ZO(this.canvas,C,w,!0)||setTimeout(function(){var n=tqo(m,z,a);e(a.canvas,{type:op["2D"],
property:T.prop$jscomp$58,args:n})},0);
return Q.apply(this,m)}}}(J));
K.push(q)}}catch(T){X=zlL(z.CanvasRenderingContext2D.prototype,J.prop$jscomp$58,{set:function(Q){return function(m){e(this.canvas,{type:op["2D"],property:Q.prop$jscomp$58,args:[m],setter:!0})}}(J)}),K.push(X)}}return function(){K.forEach(function(T){return T()})}};
jK8=function(e,z,C,w){var K=[];try{var G=fG(e.HTMLCanvasElement.prototype,"getContext",function(X){return function(J){var q=_.yL.apply(1,arguments);if(!ZO(this,z,C,!0)){var T=J==="experimental-webgl"?"webgl":J;"__context"in this||(this.__context=T);w&&["webgl","webgl2"].includes(T)&&(q[0]&&typeof q[0]==="object"?(T=q[0],T.preserveDrawingBuffer||(T.preserveDrawingBuffer=!0)):q.splice(0,1,{preserveDrawingBuffer:!0}))}return X.apply(this,[J].concat(_.s_(q)))}});
K.push(G)}catch(X){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){K.forEach(function(X){return X()})}};
yQ8=function(e,z,C,w,K,G){for(var X=[],J=_.b(Object.getOwnPropertyNames(e)),q=J.next(),T={};!q.done;T={prop$jscomp$59:void 0},q=J.next())if(T.prop$jscomp$59=q.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(T.prop$jscomp$59))try{if(typeof e[T.prop$jscomp$59]==="function"){var Q=fG(e,T.prop$jscomp$59,function(m){return function(a){return function(){var n=_.yL.apply(0,arguments),H=a.apply(this,n);BqL(H,G,this);"tagName"in this.canvas&&!ZO(this.canvas,w,K,!0)&&(n=
tqo(n,G,this),C(this.canvas,{type:z,property:m.prop$jscomp$59,args:n}));return H}}}(T));
X.push(Q)}}catch(m){q=zlL(e,T.prop$jscomp$59,{set:function(a){return function(n){C(this.canvas,{type:z,property:a.prop$jscomp$59,args:[n],setter:!0})}}(T)}),X.push(q)}return X};
cQ4=function(e,z,C,w){var K=[];K.push.apply(K,_.s_(yQ8(z.WebGLRenderingContext.prototype,1,e,C,w,z)));typeof z.WebGL2RenderingContext!=="undefined"&&K.push.apply(K,_.s_(yQ8(z.WebGL2RenderingContext.prototype,2,e,C,w,z)));return function(){K.forEach(function(G){return G()})}};
kp5=function(e){var z=e=e===void 0?{}:e,C=z.emit,w=z.checkoutEveryNms,K=z.checkoutEveryNth,G=z.blockClass===void 0?"rr-block":z.blockClass,X=z.blockSelector===void 0?null:z.blockSelector,J=z.ignoreClass===void 0?"rr-ignore":z.ignoreClass,q=z.ignoreSelector===void 0?null:z.ignoreSelector,T=z.maskTextClass===void 0?"rr-mask":z.maskTextClass,Q=z.maskTextSelector===void 0?null:z.maskTextSelector,m=z.inlineStylesheet===void 0?!0:z.inlineStylesheet,a=z.maskAllInputs,n=z.maskInputOptions,H=z.slimDOMOptions,
I=z.maskInputFn,L=z.maskTextFn,h=z.hooks,E=z.packFn,N=z.sampling===void 0?{}:z.sampling,D=z.dataURLOptions===void 0?{}:z.dataURLOptions,g=z.mousemoveWait,y=z.recordDOM===void 0?!0:z.recordDOM,Z=z.recordCanvas===void 0?!1:z.recordCanvas,YN=z.recordCrossOriginIframes===void 0?!1:z.recordCrossOriginIframes,Jk=z.recordAfter===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":z.recordAfter,v1=z.userTriggeredOnInput===void 0?!1:z.userTriggeredOnInput,lg=z.collectFonts===void 0?!1:z.collectFonts,
M5=z.inlineImages===void 0?!1:z.inlineImages,fo=z.plugins,ug=z.keepIframeSrcFn===void 0?function(){return!1}:z.keepIframeSrcFn,sE=z.ignoreCSSAttributes===void 0?new Set([]):z.ignoreCSSAttributes;
Go=z.errorHandler;var w6=YN?window.parent===window:!0,qY=!1;if(!w6)try{window.parent.document&&(qY=!1)}catch(mc){qY=!0}if(w6&&!C)throw Error("$e");if(!w6&&!qY)return function(){};
g!==void 0&&N.mousemove===void 0&&(N.mousemove=g);Y1.reset();var y1=a===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:n!==void 0?n:{password:!0},Qa=H===!0||H==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:H==="all",headMetaDescKeywords:H==="all",headTitleMutations:H==="all"}:
H?H:{};bRE();var Ha,OU=0,ab=function(mc){for(var ob=_.b(fo||[]),Ak=ob.next();!Ak.done;Ak=ob.next())Ak=Ak.value,Ak.eventProcessor&&(mc=Ak.eventProcessor(mc));E&&!qY&&(mc=E(mc));return mc};
bY=function(mc,ob){mc.timestamp=nu8();var Ak;((Ak=ey[0])==null?0:Ak.isFrozen())&&mc.type!==2&&(mc.type!==3||mc.data.source!==0)&&ey.forEach(function(wf){return wf.unfreeze()});
w6?C==null||C(ab(mc),ob):qY&&(ob={type:"rrweb",event:ab(mc),origin:window.location.origin,isCheckout:ob},window.parent.postMessage(ob,"*"));mc.type===2?(Ha=mc,OU=0):mc.type!==3||mc.data.source===0&&mc.data.isAttachIframe||(OU++,mc=w&&mc.timestamp-Ha.timestamp>w,(K&&OU>=K||mc)&&AQk(!0))};
var Pa=function(mc){bY({type:3,data:Object.assign({},{source:0},mc)})},$N=function(mc){return bY({type:3,
data:Object.assign({},{source:3},mc)})},N5=function(mc){return bY({type:3,
data:Object.assign({},{source:9},mc)})},$L=new ZRg({mutationCb:Pa,
adoptedStyleSheetCb:function(mc){return bY({type:3,data:Object.assign({},{source:15},mc)})}}),Ba=new pqo({mirror:Y1,
mutationCb:Pa,stylesheetManager:$L,recordCrossOriginIframes:YN,wrappedEmit:bY});e=_.b(fo||[]);for(z=e.next();!z.done;z=e.next())z=z.value,z.getMirror&&z.getMirror({nodeMirror:Y1,crossOriginIframeMirror:Ba.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ba.crossOriginIframeStyleMirror});var r6=new eS1;zSN=new C11({recordCanvas:Z,mutationCb:N5,win:window,blockClass:G,blockSelector:X,mirror:Y1,sampling:N.canvas,dataURLOptions:D});var eE=new wEs({mutationCb:Pa,scrollCb:$N,bypassOptions:{blockClass:G,
blockSelector:X,maskTextClass:T,maskTextSelector:Q,inlineStylesheet:m,maskInputOptions:y1,dataURLOptions:D,maskTextFn:L,maskInputFn:I,recordCanvas:Z,inlineImages:M5,sampling:N,slimDOMOptions:Qa,iframeManager:Ba,stylesheetManager:$L,canvasManager:zSN,keepIframeSrcFn:ug,processedNodeManager:r6},mirror:Y1});AQk=function(mc){mc=mc===void 0?!1:mc;if(y){bY({type:4,data:{href:window.location.href,width:Kxh(),height:wqg()}},mc);$L.reset();eE.init();ey.forEach(function(Ak){return Ak.lock()});
var ob=el1({mirror:Y1,blockClass:G,blockSelector:X,maskTextClass:T,maskTextSelector:Q,inlineStylesheet:m,maskAllInputs:y1,maskTextFn:L,maskInputFn:I,slimDOM:Qa,dataURLOptions:D,recordCanvas:Z,inlineImages:M5,onSerialize:function(Ak){Ak.nodeName==="IFRAME"&&Y1.nodeMetaMap.get(Ak)&&Kzm(Ba,Ak);XqN(Ak,Y1)&&oGE($L,Ak);Ak&&uB(Ak)&&Gpg(eE,uB(Ak),document)},
onIframeLoad:function(Ak,wf){Yns(Ba,Ak,wf);Ak.contentWindow&&Ak.contentDocument&&bNh(eE,Ak.contentWindow.Element,Ak.contentDocument)},
onStylesheetLoad:function(Ak,wf){XEg($L,Ak,wf)},
keepIframeSrcFn:ug});ob?(bY({type:2,data:{node:ob,initialOffset:CGg(window)}},mc),ey.forEach(function(Ak){return Ak.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ORh($L,document.adoptedStyleSheets,Y1.getId(document))):console.warn("Failed to snapshot the document")}};
try{var q1=[],g6=function(mc){var ob;return zo(D_E)({mutationCb:Pa,mousemoveCb:function(Ak,wf){return bY({type:3,data:{source:wf,positions:Ak}})},
mouseInteractionCb:function(Ak){return bY({type:3,data:Object.assign({},{source:2},Ak)})},
scrollCb:$N,viewportResizeCb:function(Ak){return bY({type:3,data:Object.assign({},{source:4},Ak)})},
inputCb:function(Ak){return bY({type:3,data:Object.assign({},{source:5},Ak)})},
mediaInteractionCb:function(Ak){return bY({type:3,data:Object.assign({},{source:7},Ak)})},
styleSheetRuleCb:function(Ak){return bY({type:3,data:Object.assign({},{source:8},Ak)})},
styleDeclarationCb:function(Ak){return bY({type:3,data:Object.assign({},{source:13},Ak)})},
canvasMutationCb:N5,fontCb:function(Ak){return bY({type:3,data:Object.assign({},{source:10},Ak)})},
selectionCb:function(Ak){bY({type:3,data:Object.assign({},{source:14},Ak)})},
customElementCb:function(Ak){bY({type:3,data:Object.assign({},{source:16},Ak)})},
blockClass:G,ignoreClass:J,ignoreSelector:q,maskTextClass:T,maskTextSelector:Q,maskInputOptions:y1,inlineStylesheet:m,sampling:N,recordDOM:y,recordCanvas:Z,inlineImages:M5,userTriggeredOnInput:v1,collectFonts:lg,doc:mc,maskInputFn:I,maskTextFn:L,keepIframeSrcFn:ug,blockSelector:X,slimDOMOptions:Qa,dataURLOptions:D,mirror:Y1,iframeManager:Ba,stylesheetManager:$L,shadowDomManager:eE,processedNodeManager:r6,canvasManager:zSN,ignoreCSSAttributes:sE,plugins:(fo==null?void 0:(ob=fo.filter(function(Ak){return Ak.observer}))==
null?void 0:ob.map(function(Ak){return{observer:Ak.observer,
options:Ak.options,callback:function(wf){return bY({type:6,data:{plugin:Ak.name,payload:wf}})}}}))||[]},h)};
JIg(Ba,function(mc){try{q1.push(g6(mc.contentDocument))}catch(ob){console.warn(ob)}});
var lo=function(){AQk();q1.push(g6(document))};
document.readyState==="interactive"||document.readyState==="complete"?lo():(q1.push(cA("DOMContentLoaded",function(){bY({type:0,data:{}});Jk==="DOMContentLoaded"&&lo()})),q1.push(cA("load",function(){bY({type:1,
data:{}});Jk==="load"&&lo()},window)));
return function(){q1.forEach(function(mc){try{mc()}catch(ob){String(ob).toLowerCase().includes("cross-origin")||console.warn(ob)}});
r6.destroy();Go=void 0}}catch(mc){console.warn(mc)}};
_.v=function(e,z){z=z6(ec(z));e.innerHTML=z};
TSE=function(e){var z=qnk;z||(z=xts(),z=qnk=_.de.transpose(z));z=z[e];return typeof z==="string"?z:_.Xu(e)};
$ts=function(e){e=String(e).toLowerCase();var z=xts()[e];return typeof z==="string"?z:_.Jw(e)};
lvE=function(e){e=e.toLowerCase();e=xts()[e];return typeof e==="string"?e:null};
xts=function(){if(!QZ4){for(var e=Object.assign({},mtg),z=_.b(av1),C=z.next();!C.done;C=z.next())C=C.value,e[C.toLowerCase()]=C;QZ4=e}return QZ4};
rI8=function(e,z){var C=window.customElements;return C&&C.get(e)||nG7[e]===!0?2:z.name==="HTMLUnknownElement"?1:z.name==="HTMLElement"&&M_E.test(e)?3:0};
vGh=function(e,z){switch(z){case "innerHTML":return HN1(e)===1?2:null;case "textContent":return e=HN1(e),e===1||e===6?1:null;default:var C,w;return(w=(C=Uts[e.localName])==null?void 0:C[z])!=null?w:null}};
HN1=function(e){var z=e.localName,C=rI8(z,e.constructor);switch(C){case 0:case 1:return Iv4(z,e);case 3:case 2:return 1;default:_.ca(C,"got an unknown element classification")}};
Iv4=function(e,z){var C=Object.hasOwnProperty.call(Wzg,e)?Wzg[e]:null;return C!==null?C:Object.hasOwnProperty.call(P1g,e)&&z instanceof SVGElement?P1g[e]:null};
RSm=function(e,z){return z};
hS8=function(e){return(e=e.split(Lz5,2))?{url:e[0],metadata:e[1]}:null};
EGm=function(e){var z=String(e.url).replace(ONh,encodeURIComponent);if(e=e.metadata){ONh.lastIndex=0;if(ONh.test(e))return null;z+=" "+e}return z};
Sn1=function(e){function z(T){var Q=T.localName;if(!T.getAttribute("is")&&rI8(Q,T.constructor)===2){var m;return(m=q)!=null?m:q=document.createElement("polyresinuncustomized")}(T=J[Q])||(T=J[Q]=document.createElement(Q));return T}
var C=e.reportHandler||void 0,w=e.safeTypesBridge||FzL,K=/^$/;if(e=e.allowedIdentifierPrefixes){e=_.b(e);for(var G=e.next();!G.done;G=e.next())K=new RegExp(K.source+"|^"+_.V_N(G.value))}C&&C(!1,"initResin",null);var X=fvk(K,w,C),J={},q=null;return function(T,Q,m){var a=T.nodeType;if(a!==Node.ELEMENT_NODE){if(a===Node.TEXT_NODE){Q=T.parentElement;m=!Q;if(Q&&Q.nodeType===Node.ELEMENT_NODE){a=Q.localName;var n=rI8(a,Q.constructor);switch(n){case 0:case 1:Q=Iv4(a,Q);m=Q===1||Q===6;break;case 3:case 2:m=
!0;break;default:_.ca(n,"got an unknown element classification")}}if(m)return function(h){return""+w(h,"STRING",h)}}return function(h){if(!h&&h!==document.all)return h;
C&&C(!0,"Failed to sanitize "+(T.parentElement&&T.parentElement.nodeName)+" #text node to value "+h,T.parentElement);return k1}}var H=T.localName;
a=z(T);var I=null;switch(m){case "attribute":if($ts(Q)in a)break;return function(h){return h};
case "property":if(Q in a){I=vGh(a,Q);break}if((n=lvE(Q))&&n in a)break;return function(h){return h};
default:_.ca(m,"got an unknown resin type, expected either 'property' or 'attribute'")}var L=m==="attribute"?Q.toLowerCase():TSE(Q);I||(I=aVs(H,L,function(h){var E=T.getAttribute(h);return!E||/[\[\{]/.test(h)?null:E}));
return function(h){var E=q$,N=null;if(!h&&h!==document.all)return h;if(I!=null){var D=X[I],g=D.safeType;N=D.safeReplacement;g&&(E=w(h,g,q$));E===q$&&(D.filterString?(E=String(w(h,"STRING",h)),E=D.filterString(H,L,E)):D.filterRaw&&(E=D.filterRaw(H,L,h,T)),E===N&&(E=q$))}E===q$&&(E=N||k1,C&&C(!0,"Failed to sanitize attribute of <"+H+">: <"+H+" "+L+'="'+h+'">',T));return E}}};
fvk=function(e,z,C){return[,{filterRaw:function(w,K,G){return G},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:u5o,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:u5o,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:k1,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:dt8,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(w,K,G){G=
String(G).toLowerCase();return rHk(w,K,G)?G:k1},
safeReplacement:k1,safeType:void 0},,{filterRaw:void 0,filterString:function(w,K,G){return e.test(G)?G:k1},
safeReplacement:k1,safeType:"CONSTANT"},{filterRaw:function(w,K,G,X){if(typeof G==="string")var J=(J=G.match(Dtm))?J.map(hS8).filter(Boolean):[];else if(Array.isArray(G))J=G;else return u5o;var q=J;J=[];var T=[],Q={};if(Array.isArray(q))for(var m=0,a=q.length;m<a;++m){var n=q[m],H=n&&n.url;if(H){var I=z(H,"URL",Q);if(I){var L=I!==Q;(L?J:T).push({url:L?I:H,metadata:n.metadata})}}}else T.push(q);q=T.length?JSON.stringify(T):null;T=q$;if(J.length){if(!Array.isArray(J))throw Error();T=J.map(EGm).filter(Boolean).join(" , ")||
q$}q&&C&&C(!0,"Failed to sanitize attribute value of <"+w+">: <"+w+" "+K+'="'+G+'">: '+q,X);return T===q$?u5o:T},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
iNg=function(e){var z=Sn1(e);return function(C,w,K,G){return G||G===document.all?z(C,w,K)(G):G}};
x1=function(e,z){function C(){function K(J,q,T){for(q=Reflect.getMetadata("parameters",J)||[];q.length<=T;)q.push(null);q[T]=q[T]||[];q[T].push(X);Reflect.defineMetadata(q,J);return J}
var G=_.yL.apply(0,arguments);if(this instanceof C)return w.apply(this,G),this;var X=new (Function.prototype.bind.apply(C,[null].concat(_.s_(G))));K.annotation=X;return K}
var w=NSs(z);C.prototype.toString=function(){return"@"+e};
return C.annotationCls=C};
NSs=function(e){return function(){var z=_.yL.apply(0,arguments),C=this;e.forEach(function(w,K){K=z[K];if(Array.isArray(w))C[w[0]]=K&&K!==void 0?K:w[1];else for(var G in w)C[G]=K&&K[G]!==void 0?K[G]:w[G]})}};
sZg=function(e){return e!==void 0&&e!==null};
$1=function(e){if(typeof e==="string")return e;if(e===void 0||e===null)return""+e;if(e.overriddenName)return e.overriddenName;if(e.name)return e.name;e=e.toString();var z=e.indexOf("\n");return z===-1?e:e.substring(0,z)};
BS8=function(e){e.__forward_ref__=BS8;e.toString=function(){return $1(this())};
return e};
lY=function(e){return typeof e==="function"&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===BS8?e():e};
t_4=function(e){return e?e.map(function(z){return new (Function.prototype.bind.apply(z.type.annotationCls,[null].concat(_.s_(z.args?z.args:[]))))}):[]};
gGL=function(e){for(var z=[],C=0;C<e.length;++C){if(z.indexOf(e[C])>-1){z.push(e[C]);break}z.push(e[C])}return z};
jZ1=function(e){return e.length>1?" ("+gGL(e.slice().reverse()).map(function(z){return $1(z.token)}).join(" -> ")+")":""};
cI1=function(e,z,C,w){if(w){var K=Error("cf``"+(w instanceof Error?w.message:w));K.ngOriginalError=w}else K=Error();K.addKey=yIL;K.keys=[z];K.injectors=[e];K.constructResolvingMessage=C;K.message=K.constructResolvingMessage();K.ngOriginalError=w;return K};
yIL=function(e,z){this.injectors.push(e);this.keys.push(z);this.message=this.constructResolvingMessage()};
AIs=function(e,z){return cI1(e,z,function(){return"No provider for "+$1(this.keys[0].token)+"!"+jZ1(this.keys)})};
ZNh=function(e,z){return cI1(e,z,function(){return"Cannot instantiate cyclic dependency!"+jZ1(this.keys)})};
pEm=function(e,z,C){return cI1(e,C,function(){var w=$1(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+w+"!"+jZ1(this.keys)+"."},z)};
eT4=function(e,z){for(var C=[],w=0,K=z.length;w<K;w++){var G=z[w];G&&G.length!=0?C.push(G.map($1).join(" ")):C.push("?")}return Error("gf`"+$1(e)+"`"+C.join(", ")+"`"+$1(e))};
YJg=function(e){var z=void 0,C=void 0;if(e&&e.useClass!==void 0){z=e.useClass;var w=lY(e.useClass);var K=zT1.factory(w);w=Csm(w)}else e&&e.useExisting!==void 0?(K=function(G){return G},w=[wmL(Qq.get(lY(e.useExisting)))]):e&&e.useFactory!==void 0?(K=e.useFactory,w=KX1(e.useFactory,e.deps)):(C=e.useValue,K=function(){return e.useValue},w=oP1);
return new Gah(K,w,z,C)};
Xmo=function(e){return new bc7(Qq.get(lY(e.provide)),[YJg(e)],e.multi)};
kak=function(e){e=J11(e,[]).map(Xmo);for(var z=new Map,C=0;C<e.length;C++){var w=e[C],K=z.get(w.key.id);if(K){if(w.multiProvider!==K.multiProvider)throw Error("jf`"+K+"`"+w);if(w.multiProvider)for(var G=0;G<w.resolvedFactories.length;G++)K.resolvedFactories.push(w.resolvedFactories[G]);else z.set(w.key.id,w)}else K=void 0,w.multiProvider?K=new bc7(w.key,w.resolvedFactories.slice(),w.multiProvider):K=w,z.set(w.key.id,K)}return Array.from(z.values())};
J11=function(e,z){e.forEach(function(C){if(C instanceof qJN)z.push({provide:C,useClass:C});else if(C&&typeof C=="object"&&C.provide!==void 0)z.push(C);else if(C instanceof Array)J11(C,z);else throw Error("ff`"+C);});
return z};
KX1=function(e,z){if(z){var C=z.map(function(w){return[w]});
return z.map(function(w){return xn1(e,w,C)})}return Csm(e)};
Csm=function(e){var z=zT1.parameters(e);if(!z)return[];if(z.some(function(C){return C==null}))throw eT4(e,z);
return z.map(function(C){return xn1(e,C,z)})};
xn1=function(e,z,C){var w=null,K=!1;if(!Array.isArray(z))return z instanceof Tu8?$ng(z.token,K,null):$ng(z,K,null);for(var G=null,X=0;X<z.length;++X){var J=z[X];if(J instanceof qJN)w=J;else if(J instanceof Tu8)w=J.token;else if(J instanceof lo1)K=!0;else if(J instanceof QJE||J instanceof mn4)G=J}w=lY(w);if(w!=null)return $ng(w,K,G);throw eT4(e,C);};
$ng=function(e,z,C){return new aoh(Qq.get(lY(e)),z,C)};
nPh=function(e,z){for(var C=Array(e.providers.length),w=0;w<e.providers.length;++w){var K=w;if(w<0||w>=e.providers.length)throw Error("hf`"+w);C[K]=z(e.providers[w])}return C};
M1g=function(e){return typeof e==="function"&&zT1.parameters(e).every(function(z){return!!z})};
Un4=function(e){var z=r1L;Hco.get(e)||Hco.set(e,new z);return Hco.get(e)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(e)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(e)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e,z){var C,w;if(e.contains(z))return!0;e=_.mb(e).querySelectorAll("content,slot");for(C=0;C<e.length;++C){var K=_.mb(e[C]).getDistributedNodes();for(w=0;w<K.length;++w)if(K[w].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(K[w],z))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){e.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e)&&e.preventDefault();e.targetTouches&&(e=e.targetTouches[0],vP1=e.pageX,Iog=e.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 e=0,z=ap.length;e<z;e++)document.addEventListener(ap[e],_._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 e=0,z=ap.length;e<z;e++)document.removeEventListener(ap[e],_._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(e){var z=_.mb(e).rootTarget;e.type!=="touchmove"&&WX4!==z&&(WX4=z,Pss=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.mb(e).path));if(!Pss.length)return!0;if(e.type==="touchstart")return!1;e=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Pss,e.deltaX,e.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){for(var z=[],C=e.indexOf(RT4),w=0;w<=C;w++)if(e[w].nodeType===Node.ELEMENT_NODE){var K=e[w],G=K.style;G.overflow!=="scroll"&&G.overflow!=="auto"&&(G=window.getComputedStyle(K));G.overflow!=="scroll"&&G.overflow!=="auto"||z.push(K)}return z};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e,z,C){if(z||C)for(var w=Math.abs(C)>=Math.abs(z),K=0;K<e.length;K++){var G=e[K];if(w?C<0?G.scrollTop>0:G.scrollTop<G.scrollHeight-G.clientHeight:z<0?G.scrollLeft>0:G.scrollLeft<G.scrollWidth-G.clientWidth)return G}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(e){var z={deltaX:e.deltaX,deltaY:e.deltaY};"deltaX"in e||("wheelDeltaX"in e&&"wheelDeltaY"in e?(z.deltaX=-e.wheelDeltaX,z.deltaY=-e.wheelDeltaY):"wheelDelta"in e?(z.deltaX=0,z.deltaY=-e.wheelDelta):"axis"in e?(z.deltaX=e.axis===1?e.detail:0,z.deltaY=e.axis===2?e.detail:0):e.targetTouches&&(e=e.targetTouches[0],z.deltaX=vP1-e.pageX,z.deltaY=Iog-e.pageY));return z};
LXL=function(e){this.element=e;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
Ocg=function(e){this.element=e;this.color=window.getComputedStyle(e).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");_.mb(this.waveContainer).appendChild(this.wave);hT7(this)};
ni=function(e,z){for(var C in e)if(C.toLowerCase()===z.toLowerCase())return e[C]};
EPm=function(e,z){for(var C in e)if(C.toLowerCase()===z.toLowerCase()){delete e[C];break}};
V1h=function(e){e=_.de.clone(e);for(var z=0;z<FXN.length;++z){var C=FXN[z],w=ni(e,C);w&&(e["X-Goog-Upload-Header-"+C]=w,EPm(e,C))}return e};
fok=function(e){e=_.de.clone(e);EPm(e,"X-Goog-Upload-Status")};
uxm=function(e){return SJ1.some(function(z){return z.test(e)})};
Num=function(e,z){var C;var w=(C=e.formContent)==null?void 0:C.locale;C=w==null?void 0:w.split("-")[0];w=w&&dn7.includes(w)?w:C&&dn7.includes(C)?C:void 0;w=(w!=null?w:"en").replaceAll("-","_").toLowerCase();var K;e=((K=e.initializationData)==null?0:K.useNightlyRelease)?"nightly":"live";var G;return(z==null?0:(G=z.getEnableAlohaBinarySplit)==null?0:G.call(z))?_.nJ(Dns,e):_.nJ(icL,e,w)};
t1h=function(e,z,C,w){if(sJ4&&Bu1===z)return sJ4;Bu1=z;var K=Num(e,w);return sJ4=z.feedbackV2GlobalObject?Promise.resolve(z.feedbackV2GlobalObject):new Promise(function(G,X){var J=_.Lh("SCRIPT");_.Jn(J,K);J.onload=function(){z.feedbackV2GlobalObject?G(z.feedbackV2GlobalObject):X(Error("mf"))};
J.onerror=function(){X(Error("nf`"+K.toString()))};
C.body.appendChild(J)})};
y14=function(e,z,C,w){if(gPg&&jJ1===z)return gPg;jJ1=z;var K=Num(e,w);return gPg=z.feedbackV2GlobalObject?Promise.resolve(z.feedbackV2GlobalObject):new Promise(function(G,X){var J=_.Lh("SCRIPT");_.Jn(J,K);J.onload=function(){z.feedbackV2GlobalObject?G(z.feedbackV2GlobalObject):X(Error("mf"))};
J.onerror=function(){X(Error("nf`"+K.toString()))};
C.body.appendChild(J)})};
c1m=function(e,z,C,w,K){K=K===void 0?!0:K;var G,X,J,q,T;return _.k(function(Q){switch(Q.nextAddress){case 1:return G=Date.now(),Q.yield(t1h(e,C,w,z),2);case 2:X=Q.yieldResult;if(!(K||((q=e.initializationData)==null?0:q.useNightlyRelease)||((T=e.initializationData)==null?0:T.isLocalServer))){J=X.initializeFeedbackClient(e,G,z);Q.jumpTo(3);break}return Q.yield(X.initializeFeedbackClientAsync(e,G,z),4);case 4:J=Q.yieldResult;case 3:return J.initiateAloha(),Q.return(J)}})};
A18=function(e,z,C,w){var K,G,X;return _.k(function(J){if(J.nextAddress==1)return K=Date.now(),J.yield(y14(e,C,w.document,z),2);if(J.nextAddress!=3)return G=J.yieldResult,J.yield(G.initializeFeedbackClientAsync(e,K,z,w),3);X=J.yieldResult;X.initiateAloha();return J.return(X)})};
ZcL=function(e,z,C){var w=!0;w=w===void 0?!0:w;var K,G,X,J,q,T,Q,m;return _.k(function(a){K=C||_.wL;if((G=z)==null?0:(J=(X=G).getEnableAlohaBinarySplit)==null?0:J.call(X)){q=K;if(q.isFormOpened)throw new M$;q.isFormOpened=!0;e.callbacks=e.callbacks||{};T=e.callbacks.onClose||function(){};
e.callbacks.onClose=function(n){q.isFormOpened=!1;T(n)};
try{return a.return(A18(e,z,q,K))}catch(n){throw q.isFormOpened=!1,n;}}else{Q=K;if(Q.isFormOpened)throw new M$;Q.isFormOpened=!0;e.callbacks=e.callbacks||{};m=e.callbacks.onClose||function(){};
e.callbacks.onClose=function(n){Q.isFormOpened=!1;m(n)};
try{return a.return(c1m(e,z,Q,K.document,w))}catch(n){throw Q.isFormOpened=!1,n;}}_.E_(a)})};
wv4=function(e,z){return _.k(function(C){return C.return(new Promise(function(w,K){Number.isInteger(Number(e))&&Number(e)>0?(K=pm4(z!=null?z:"")+"/aloha_form_properties?productId="+e,eL4(K,function(G){G=G.target;var X=null;try{var J=JSON,q=J.stringify;if(G.JSC$9965_xhr_){var T=G.JSC$9965_xhr_.responseText;T.indexOf(")]}'\n")==0&&(T=T.substring(5));var Q=(0,_.rN)(T)}else Q=void 0;X=CCs(zL1,q.call(J,Q))}catch(m){q=new zL1,Q=CL5(),Q=_.Hr(Q,13,!1),Q=_.Hr(Q,14,!0),Q=_.Hr(Q,15,!0),Q=_.Hr(Q,20,!1),X=_.PL(q,
1,Q)}w(X)},"GET","",{},2E3,!0)):K(Error("of`"+e))}))})};
pm4=function(e){return uxm(e)?e:"https://www.google.com/tools/feedback"};
YrL=function(e){e=e.match(new RegExp(KhN,"gi"))||[];e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;a:{var C=_.b(oK5);for(var w=C.next();!w.done;w=C.next())if(w.value.test(z)){C=!1;break a}C=!0}if(!C)a:{C=_.b(Gsh);for(w=C.next();!w.done;w=C.next())if(w.value.test(z)){C=!0;break a}C=!1}if(C)return!0}return!1};
brs=function(e,z){var C={},w=Object.keys(e);w=_.b(w);for(var K=w.next();!K.done;K=w.next())K=K.value,C[K]=z(K,e[K]);return C};
Xvs=function(e){switch(e){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"}};
ks5=function(e){if(window.crypto&&window.crypto.getRandomValues)try{var z=Array(e),C=new Uint8Array(e);window.crypto.getRandomValues(C);for(var w=0;w<z.length;w++)z[w]=C[w];return z}catch(G){}z=Array(e);for(C=0;C<e;C++){w=Date.now();for(var K=0;K<w%23;K++)z[C]=Math.random();z[C]=Math.floor(Math.random()*256)}if(Jph)for(C=1,w=0;w<Jph.length;w++)z[C%e]^=z[(C-1)%e]/4^Jph.charCodeAt(w),C++;return z};
UX=function(e){e=ks5(e);for(var z=[],C=0;C<e.length;C++)z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(e[C]&63));return z.join("")};
qrE=function(){var e=_.wL.ytLoggingDocDocumentNonce_;e||(e=UX(16),_.lM("ytLoggingDocDocumentNonce_",e));return e};
TD8=function(e){e&&_.gm("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:xVk,clientScreenNonce:e})};
$Vs=function(e){return _.j5("client-screen-nonce-store",{})[e===void 0?0:e]};
l21=function(e,z){z=z===void 0?0:z;var C=_.j5("client-screen-nonce-store");C||(C={},_.g1("client-screen-nonce-store",C));C[z]=e};
Qr4=function(e){e=e===void 0?0:e;return e===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+e};
mV7=function(e){return _.j5(Qr4(e===void 0?0:e))};
_.Ip=function(e){return(e=mV7(e===void 0?0:e))?new _.vr({veType:e,youtubeData:void 0,jspbYoutubeData:void 0}):null};
a2N=function(){var e=_.j5("csn-to-ctt-auth-info");e||(e={},_.g1("csn-to-ctt-auth-info",e));return e};
nK5=function(){return Object.values(_.j5("client-screen-nonce-store",{})).filter(function(e){return e!==void 0})};
_.Pr=function(e){e=$Vs(e===void 0?0:e);if(!e&&!_.cR("USE_CSN_FALLBACK",!0))return null;e||(e="UNDEFINED_CSN");return e?e:null};
rpo=function(e){for(var z=_.b(Object.values(M6h)),C=z.next();!C.done;C=z.next())if(_.Pr(C.value)===e)return!0;return!1};
Hr1=function(e,z,C){var w=a2N();(C=_.Pr(C))&&delete w[C];z&&(w[e]=z)};
Rp=function(e){return a2N()[e]};
_.Li=function(e,z,C,w){C=C===void 0?0:C;if(e!==$Vs(C)||z!==_.j5(Qr4(C)))if(Hr1(e,w,C),l21(e,C),_.g1(Qr4(C),z),z=function(){setTimeout(function(){TD8(e)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(z)}catch(K){z()}else z()};
UVm=function(e){var z=_.Pr(0),C=mV7(0);z&&C&&(_.Li(z,C,e),e===0&&l21(void 0,0))};
vKg=function(e,z){z=z===void 0?"":z;var C=[],w;for(w in e)if(e.hasOwnProperty(w)){var K=z!==""?z+"."+w:w;typeof e[w]==="object"?C.push.apply(C,_.s_(vKg(e[w],K))):C.push([K,e[w]])}C.sort();return C};
_.OX=function(e){var z=_.yL.apply(1,arguments);if(!hw(e)||z.some(function(w){return!hw(w)}))throw Error("pf");
z=_.b(z);for(var C=z.next();!C.done;C=z.next())I21(e,C.value)};
I21=function(e,z){for(var C in z)if(hw(z[C])){if(C in e&&!hw(e[C]))throw Error("qf");C in e||(e[C]={});I21(e[C],z[C])}else if(Wh1(z[C])){if(C in e&&!Wh1(e[C]))throw Error("rf");C in e||(e[C]=[]);PLL(e[C],z[C])}else e[C]=z[C];return e};
PLL=function(e,z){z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,hw(C)?e.push(I21({},C)):Wh1(C)?e.push(PLL([],C)):e.push(C);return e};
hw=function(e){return typeof e==="object"&&!Array.isArray(e)};
Wh1=function(e){return typeof e==="object"&&Array.isArray(e)};
Lho=function(e){for(var z=_.b(Object.entries(RLo)),C=z.next();!C.done;C=z.next())if(C=_.b(C.value),C.next(),C=C.next().value,C==="SLI_STATUS_"+e)return C;return"SLI_STATUS_UNKNOWN"};
_.EX=function(e,z,C,w){return hL1(e,z,function(){return new _.Org(e,z,C,w)})};
_.EKm=function(){return _.EX("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Fh5=function(){return _.EX("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Fu=function(){return _.EX("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
V6L=function(){return _.EX("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
f21=function(){return _.EX("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
Sr7=function(){return _.EX("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
DV5=function(e){e&&(e.dataset?e.dataset[uAo()]="true":_.xo([_.Qb(dV7)],e,"data-loaded","true".toString()))};
irh=function(e){return e?e.dataset?e.dataset[uAo()]:e.getAttribute("data-loaded"):null};
uAo=function(){return ND7.loaded||(ND7.loaded="loaded".replace(/\-([a-z])/g,function(e,z){return z.toUpperCase()}))};
_.Vq=function(e,z,C){srN(e,z,C===void 0?null:C)};
_.t6m=function(e,z){e&&z&&(e=""+_.c1(z),(e=BD1[e])&&_.R9o(e))};
srN=function(e,z,C){C=C===void 0?null:C;var w=_.gKo(typeof e==="string"?e:e.toString()),K=document.getElementById(w),G=K&&irh(K),X=K&&!G;G?z&&z():(z&&(G=_.Hn(w,z),z=""+_.c1(z),BD1[z]=G),X||(K=jrN(e,w,function(){irh(K)||(DV5(K),_.LOh(w),_.U3(function(){_.OmN(w)},0))},C)))};
jrN=function(e,z,C,w){w=w===void 0?null:w;var K=_.Lh("SCRIPT");K.id=z;K.onload=function(){C&&setTimeout(C,0)};
K.onreadystatechange=function(){switch(K.readyState){case "loaded":case "complete":K.onload()}};
w&&K.setAttribute("nonce",w);_.Jn(K,typeof e==="string"?_.iZ(e):e);e=document.getElementsByTagName("head")[0]||document.body;e.insertBefore(K,e.firstChild);return K};
_.gKo=function(e){var z=document.createElement("a");At(z,e);return"js-"+fi(z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
ypg=function(e){var z=_.j5("INNERTUBE_HOST_OVERRIDE");z&&(e=String(z)+String(_.Sy(e)));return e};
cpo=function(e){var z={};_.M("json_condensed_response")&&(z.prettyPrint="false");return e=prh(e,z)};
_.uY=function(e){return xB(e)?"same-origin":"include"};
_.dN=function(e){return xB(e)?"same-origin":"cors"};
DP=function(e,z,C){C=C===void 0?{}:C;e={method:z===void 0?"POST":z,mode:_.dN(e),credentials:_.uY(e)};z={};for(var w=_.b(Object.keys(C)),K=w.next();!K.done;K=w.next())K=K.value,C[K]&&(z[K]=C[K]);Object.keys(z).length>0&&(e.headers=z);return e};
_.iY=function(e,z){z=z===void 0?{}:z;return"service:"+e+"/"+Object.keys(z).sort().map(function(C){return C+":"+z[C]}).join("/")};
Ap1=function(e){var z,C,w,K;e=(z=_.r(e,_.N$))==null?void 0:(C=z.watchEndpointSupportedOnesieConfig)==null?void 0:(w=C.html5PlaybackOnesieConfig)==null?void 0:(K=w.commonConfig)==null?void 0:K.url;if(!e)return[];z=new _.sX(e);return z.JSC$10201_domain_?["https://"+z.JSC$10201_domain_+"/generate_204"]:[]};
_.eg8=function(){return Zr7()||K64()||pv5&&AJ("version/")?!0:_.j5("EOM_VISITOR_DATA")?!1:!0};
zgN=function(e){var z=e.docid||e.video_id||e.videoId||e.id;if(z)return z;z=e.raw_player_response;z||(e=e.player_response)&&(z=JSON.parse(e));return z&&z.videoDetails&&z.videoDetails.videoId||null};
CKh=function(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Br=function(e){return!isNaN(Number(e))&&!_.bg(e)};
_.gN=function(e,z,C,w){w=w===void 0?!0:w;var K=_.j5("VALID_SESSION_TEMPDATA_DOMAINS",[]),G=_.kB(window.location.href);G&&K.push(G);G=_.kB(e);if(_.Sh(K,G)||!G&&_.om(e,"/"))if(K=document.createElement("a"),At(K,e),e=K.href)if(e=_.Sy(e),e=_.tw(e))w&&!z.csn&&(z.itct||z.ved)&&(z=Object.assign({csn:_.Pr()},z)),C?(C=parseInt(C,10),isFinite(C)&&C>0&&wtg(e,z,C)):wtg(e,z)};
oms=function(e){var z=_.j5("VALID_SESSION_TEMPDATA_DOMAINS",[]),C=_.kB(window.location.href);C&&z.push(C);C=_.kB(e);if(!(_.Sh(z,C)||!C&&_.om(e,"/")))return null;e=_.Sy(e);(e=_.tw(e))?(e=KWh(e),e=(e=_.E3.get(e,void 0)||null)?_.GN(e):{}):e=null;return e};
wtg=function(e,z,C){e=KWh(e);z=z?_.L0(z):"";C=C||5;_.eg8()&&_.FF(e,z,C)};
KWh=function(e){for(var z=_.b(GKo),C=z.next();!C.done;C=z.next())e=_.jy(e,C.value);return"ST-"+fi(e).toString(36)};
_.Y4m=function(e){if(e.requestFullscreen)e=e.requestFullscreen(void 0);else if(e.webkitRequestFullscreen)e=e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e=e.mozRequestFullScreen();else if(e.msRequestFullscreen)e=e.msRequestFullscreen();else if(e.webkitEnterFullscreen)e=e.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return e instanceof Promise?e:Promise.resolve()};
_.cr=function(e){var z;_.lfN(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.yq()==e&&(z=document):z=e;if(z&&(e=_.lfN(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],z))){e.call(z)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.yq=function(){var e=e===void 0?!1:e;var z=_.lfN(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(e)for(;z&&z.shadowRoot;)z=z.shadowRoot.fullscreenElement;return z?z:null};
_.Aw=function(e,z){z=z===void 0?!0:z;e.addEventListener("wheel",bAm);e.overscrollConfig={cooldown:z}};
_.ZP=function(e){e.overscrollConfig=void 0;e.removeEventListener("wheel",bAm)};
bAm=function(e){var z=e.deltaY,C=e.target,w=null;if(window.Polymer&&window.Polymer.Element){if(C=e.path||e.composedPath&&e.composedPath()){C=_.b(C);for(var K=C.next();!K.done&&(K=K.value,!Xth(K,z));K=C.next())if(K.overscrollConfig){w=K;break}}}else for(;C&&!Xth(C,z);){if(C.overscrollConfig){w=C;break}C=C.parentElement}w&&(z=w.overscrollConfig,z.cooldown?(w=e.deltaY,C=z.lastDeltaY||0,z.lastDeltaY=w,K=z.lastStopped||0,C&&K&&C>0==w>0?Math.abs(C)>=Math.abs(w)?(w=K+1200,C=!1):(w=K+600,C=!0):(w=Date.now()+
600,C=!0),w>Date.now()&&(e.preventDefault(),C&&(z.lastStopped=Date.now()))):e.preventDefault())};
Xth=function(e,z){return z<0&&e.scrollTop>0||z>0&&e.scrollTop<e.scrollHeight-e.clientHeight-1?(e=getComputedStyle(e).overflowY,e=="auto"||e=="scroll"):!1};
_.pi=function(e,z,C,w){w||(w={bubbles:!0,cancelable:!1,composed:!0});C!==null&&C!==void 0&&(w.detail=C);var K=new CustomEvent(z,w);_.M("untrack_fire_custom_event_killswitch")?e.dispatchEvent(K):_.UH(function(){return void e.dispatchEvent(K)});
return K};
JhL=function(e){var z=window,C=function(w){z.removeEventListener("yt-navigate-start",C);return e.call(z,w)};
z.addEventListener("yt-navigate-start",C,void 0)};
_.eA=function(e,z,C,w){z=new kKg(z,!(w===void 0||!w),C);_.pi(e,"yt-action",z);return z.returnValue};
_.zj=function(e,z,C){return _.eA(e,z,C,!0)};
_.CK=function(e,z,C){return _.eA(e,z,C)[0]};
_.KK=function(e,z,C,w){z&&z.length&&z.forEach(function(K){var G=xK8(K);G&&(_.M("handle_service_request_actions")&&K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.sendPost?_.wQ(C?C:e,[K]):_.zj(e,G,[K,C,w]))})};
_.wQ=function(e,z){var C=[e];z&&C.push.apply(C,z);z=_.eA(e,"yt-service-request",C);return z.length>0&&(z=z[0],_.pi(e,"yt-service-request-sent",z),z&&z.ajaxPromise)?(z.ajaxPromise.then(function(w){_.pi(e,"yt-service-request-completed",w)},function(w){_.pi(e,"yt-service-request-error",{error:w,
params:C})},e),z.ajaxPromise):_.oS()};
_.Yk=function(e,z){if(_.M("handle_service_request_actions"))_.KK(z,e,z);else{e=_.b(e);for(var C=e.next();!C.done;C=e.next()){C=C.value;var w=void 0;((w=_.r(C,_.Gj))==null?0:w.commands)?_.Yk(_.r(C,_.Gj).commands,z):(w=void 0,((w=_.r(C,_.bd))==null?0:w.actions)?_.Yk(_.r(C,_.bd).actions,z):(w=void 0,((w=_.r(C.commandMetadata,_.XV))==null?0:w.sendPost)?_.wQ(z,[C]):_.KK(z,[C],z)))}}};
_.xB4=function(e,z,C){z=z===void 0?{}:z;typeof z==="function"&&(z={callback:z});C||z._c&&z._c.jsl&&z._c.jsl.h||_.de.extend(z,{_c:{jsl:{h:_.j5("GAPI_HINT_PARAMS")}}});(z.gapiHintOverride||_.j5("GAPI_HINT_OVERRIDE"))&&(C=_.YB(document.location.href).gapi_jsh)&&_.de.extend(z,{_c:{jsl:{h:C}}});q4L(e,z)};
_.kk=function(e,z,C){z=z===void 0?{}:z;e=(e=e in Jg?Jg[e]:C)||"";C={};for(var w in z){C={key$jscomp$844:C.key$jscomp$844};C.key$jscomp$844=w;var K=function(G){return function(){return String(z[G.key$jscomp$844])}}(C);
e=e.replace(new RegExp("\\$\\{"+C.key$jscomp$844+"\\}","gi"),K);e=e.replace(new RegExp("\\$"+C.key$jscomp$844,"gi"),K)}return e};
_.qL=function(e,z){return TUh(e in Jg?Jg[e]:{},z)};
TUh=function(e,z){var C=_.j5("I18N_PLURAL_RULES");C||(C=function(w){return w==1?"one":"other"});
return(e=e["case"+z]||e[C(z)])?e.replace("#",z.toString()):z+""};
QYs=function(e){var z=$Bk(e),C=document.getElementById(z),w=C&&irh(C);w||C&&!w||(C=llL(e,z,function(){if(!irh(C)){DV5(C);_.LOh(z);var K=_.xk(_.OmN,z);_.U3(K,0)}}))};
llL=function(e,z,C){var w=document.createElement("link");w.id=z;w.onload=function(){C&&setTimeout(C,0)};
e=_.iZ(e);_.T6(w,e,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(w);return w};
$Bk=function(e){var z=_.Lh("A");At(z,ul(e));return"css-"+fi(z.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.alg=function(e){var z=mBg();e!==z&&(z=_.Tj(),!_.M("web_autonav_allow_off_by_default")&&e||_.$k(0,141,!0),_.$k(0,140,!e),z.save())};
mBg=function(){var e=_.Tj();return _.M("web_autonav_allow_off_by_default")&&!e.getFlag(141)&&_.j5("AUTONAV_OFF_BY_DEFAULT")?!1:!e.getFlag(140)};
nm4=function(e,z){var C,w;e=((C=e.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(w=C.videoAuthorizationToken)==null?void 0:w.credentialTransferTokens)||[];for(C=0;C<e.length;++C)if(e[C].scope===z)return e[C].token||void 0};
MO5=function(e){for(var z=0,C=0;C<e.length;C++)z=z*31+e.charCodeAt(C),C<e.length-1&&(z%=0x800000000000);return z%1E5};
_.ld=function(e){return _.pd("ytcsi."+(e||"")+"data_")||rhs(e)};
_.HAo=function(e){e=_.ld(e);e.metadata||(e.metadata={});return e.metadata};
_.UBg=function(e){e=_.ld(e);e.tick||(e.tick={});return e.tick};
_.Qu=function(e){e=_.ld(e);if(e.gel){var z=e.gel;z.gelInfos||(z.gelInfos={});z.gelTicks||(z.gelTicks={})}else e.gel={gelTicks:{},gelInfos:{}};return e.gel};
_.vmk=function(e){e=_.Qu(e);e.gelInfos||(e.gelInfos={});return e.gelInfos};
Il1=function(e){var z=_.ld(e).nonce;z||(z=UX(16),_.ld(e).nonce=z);return z};
rhs=function(e){var z={tick:{},info:{}};_.lM("ytcsi."+(e||"")+"data_",z);return z};
WWL=function(){var e=_.pd("ytcsi.debug");e||(e=[],_.lM("ytcsi.debug",e),_.lM("ytcsi.reference",{}));return e};
_.mm=function(e){e=e||"";var z=PKN();if(z[e])return z[e];var C=WWL(),w={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};C.push(w);return z[e]=w};
Rgh=function(e){e=e||"";var z=PKN();z[e]&&delete z[e];var C=WWL(),w={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};C.push(w);z[e]=w};
PKN=function(){var e=_.pd("ytcsi.reference");if(e)return e;WWL();return _.pd("ytcsi.reference")};
_.hg7=function(e){return LWN[e]||"LATENCY_ACTION_UNKNOWN"};
VOL=function(e,z,C){C=C===void 0?{}:C;var w=!1;_.cR("ytLoggingEventsDefaultDisabled",!1)&&(w=!0);w=w?null:tX;C=C===void 0?{}:C;var K=Math.round(C.timestamp||(0,_.as)());_.uk(z,1,K<Number.MAX_SAFE_INTEGER?K:0);K=new OA1;if(C.lact)_.uk(K,1,isFinite(C.lact)?C.lact:-1);else if(C.timestamp)_.uk(K,1,-1);else{var G=_.aC();_.uk(K,1,isFinite(G)?G:-1)}if(C.sequenceGroup&&!_.M("web_gel_sequence_info_killswitch")){G=C.sequenceGroup;var X=iUo(G),J=new Emg;_.uk(J,2,X);_.Et(J,1,G);_.PL(K,3,J);C.endOfSequence&&delete FW1[C.sequenceGroup]}_.PL(z,
33,K);(C.sendIsolatedPayload?yEN:cEL)(e,{endpoint:"log_event",payload:z,cttAuthInfo:C.cttAuthInfo,dangerousLogToVisitorSession:C.dangerousLogToVisitorSession},w)};
_.nK=function(){return(_.M("csi_use_time_origin")||_.M("csi_use_time_origin_tvhtml5"))&&_.aS.timeOrigin?Math.floor(_.aS.timeOrigin):_.aS.timing.navigationStart};
_.fl1=function(e,z){_.U6("_start",e,z)};
_.vf=function(e,z){if(!_.M("web_csi_action_sampling_enabled")||!_.ld(z).actionDisabled){var C=_.mm(z||"");_.OX(C.info,e);e.loadType&&(C=e.loadType,_.HAo(z).loadType=C);_.OX(_.vmk(z),e);C=Il1(z);z=_.ld(z).cttAuthInfo;S4m().info(e,C,z)}};
uSo=function(){var e,z,C,w;return((w=_.lh().resolve(_.$B(ik))==null?void 0:(e=NU())==null?void 0:(z=e.loggingHotConfig)==null?void 0:(C=z.csiConfig)==null?void 0:C.debugTicks)!=null?w:[]).map(function(K){return Object.values(K)[0]})};
_.U6=function(e,z,C){if(!_.M("web_csi_action_sampling_enabled")||!_.ld(C).actionDisabled){var w=Il1(C),K;if(K=_.M("web_csi_debug_sample_enabled")&&w){(_.lh().resolve(_.$B(ik))==null?0:NU())&&!dB4&&(dB4=!0,_.U6("gcfl",(0,_.as)(),C));var G,X,J;K=(_.lh().resolve(_.$B(ik))==null?void 0:(G=NU())==null?void 0:(X=G.loggingHotConfig)==null?void 0:(J=X.csiConfig)==null?void 0:J.debugSampleWeight)||0;if(G=K!==0)b:{G=uSo();if(G.length>0)for(X=0;X<G.length;X++)if(e===G[X]){G=!0;break b}G=!1}G?(K=MO5(w)%K!==0,
_.ld(C).debugTicksExcludedLogged||(G={},G.debugTicksExcluded=K,_.vf(G,C)),_.ld(C).debugTicksExcludedLogged=!0):K=!1}if(!K){e[0]!=="_"&&DB5(e,C,z);K=_.mm(C||"");K.tick[e]=z||(0,_.as)();if(K.callback&&K.callback[e])for(K=_.b(K.callback[e]),G=K.next();!G.done;G=K.next())G=G.value,G();K=_.Qu(C);K.gelTicks&&(K.gelTicks[e]=!0);G=_.UBg(C);K=z||(0,_.as)();_.M("log_repeated_ytcsi_ticks")?e in G||(G[e]=K):G[e]=K;G=_.ld(C).cttAuthInfo;e==="_start"?S4m().baseline(w,z,G):S4m().tick(e,w,z,G);_.iAE(C);return K}}};
DB5=function(e,z,C){if(_.aS.mark)if(e.startsWith("mark_")||(e="mark_"+e),z&&(e+=" ("+z+")"),C===void 0||_.M("web_csi_disable_alt_time_performance_mark"))_.aS.mark(e);else{C=_.M("csi_use_performance_navigation_timing")?C-_.aS.timeOrigin:C-(_.aS.timeOrigin||_.aS.timing.navigationStart);try{_.aS.mark(e,{startTime:C})}catch(w){}}};
NUh=function(){var e,z=(e=_.aS.getEntriesByType)==null?void 0:e.call(_.aS,"mark");z&&z.forEach(function(C){if(C.name.startsWith("mark_")){var w;(w=_.aS.clearMarks)==null||w.call(_.aS,C.name)}})};
_.sYh=function(){switch($FN()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.BUL=function(e){var z={},C=function(G,X,J){X=X.match("_rid")?X.split("_rid")[0]:X;typeof J==="number"&&(J=JSON.stringify(J));G.requestIds?G.requestIds.push({endpoint:X,id:J}):G.requestIds=[{endpoint:X,id:J}]};
e=_.b(Object.entries(e));for(var w=e.next();!w.done;w=e.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;switch(w){case "GetBrowse_rid":C(z,w,K);break;case "GetGuide_rid":C(z,w,K);break;case "GetHome_rid":C(z,w,K);break;case "GetPlayer_rid":C(z,w,K);break;case "GetSearch_rid":C(z,w,K);break;case "GetSettings_rid":C(z,w,K);break;case "GetTrending_rid":C(z,w,K);break;case "GetWatchNext_rid":C(z,w,K);break;case "yt_red":z.isRedSubscriber=!!K;break;case "yt_ad":z.isMonetized=!!K}}return z};
_.tO1=function(e){var z=_.IS("aft",e);if(z)return z;z=_.j5((e||"")+"TIMING_AFT_KEYS",["ol"]);for(var C=z.length,w=0;w<C;w++){var K=_.IS(z[w],e);if(K)return K}return NaN};
_.gmN=function(e,z){_.lM("ytglobal.timing"+(z||"")+"ready_",e)};
_.IS=function(e,z){if(e=_.UBg(z)[e])return typeof e==="number"?e:e[e.length-1]};
_.iAE=function(e){var z=_.IS("_start",e),C=_.tO1(e),w=!jY8;z&&C&&w&&(NPN(yhk,new chk(Math.round(C-z),e)),jY8=!0)};
ZA4=function(e){rhs(e);Ah1();NUh();e||(_.j5("TIMING_ACTION")&&_.g1("PREVIOUS_ACTION",_.j5("TIMING_ACTION")),_.g1("TIMING_ACTION",""))};
_.ptN=function(e){e=e===void 0?{}:e;_.Z_(function(){Wf();Rgh();ZA4();_.gmN(!1);e.cttAuthInfo&&(_.ld().cttAuthInfo=e.cttAuthInfo);_.g1("TIMING_AFT_KEYS",[]);e.isHot?_.Pf({loadType:"hot"}):_.Pf({loadType:"warm"});_.g1("TIMING_ACTION","");delete _.j5("TIMING_INFO",{}).yt_lt;_.Z_(_.fl1)(e.startTime,void 0)})()};
_.LK=function(e,z,C,w){z=z===void 0?{}:z;_.Z_(function(){var K=C?C:e;RS(K);var G=z.sampleRate;if(!_.M("web_csi_action_sampling_enabled")||G===void 0||G<=1)G=!1;else{var X=Il1(K);G=MO5(X)%G!==0}G&&(_.ld(K).actionDisabled=!0);_.mm(K||"").info.actionType=e;z.cttAuthInfo&&(_.ld(K).cttAuthInfo=z.cttAuthInfo);_.g1(K+"TIMING_ACTION",e);_.Z_(_.fl1)(z.startTime,K);G={actionType:w||_.hg7(e)};z.logPreviousAction&&(G.previousAction=_.hg7(_.j5("TIMING_ACTION")));(X=_.Pr())&&X!=="UNDEFINED_CSN"&&(G.clientScreenNonce=
X);_.Pf(G,K);_.gmN(!0,K)})()};
RS=function(e){_.Z_(function(){Wf(e);Rgh(e);ZA4(e)})()};
efk=function(){_.Z_(function(){var e=[],z;for(z in _.pd("ytcsi.".slice(0,-1)))z.endsWith("data_")&&e.push(z.slice(0,-5));e=_.b(e);for(z=e.next();!z.done;z=e.next())RS(z.value);Wf()})()};
_.Ct1=function(e){return _.Z_(function(){return _.zfk("_start",e)})()};
_.Pf=function(e,z,C){_.Z_(_.vf)(e,z,C===void 0?!1:C)};
_.hg=function(e,z,C){return _.Z_(_.U6)(e,z,C)};
_.zfk=function(e,z){return _.Z_(function(){var C=_.UBg(z);return e in C})()};
Ku1=function(e){if(!_.M("universal_csi_network_ticks"))return"";e=_.Pi(e)||"";for(var z=Object.keys(w7L),C=0;C<z.length;C++){var w=z[C];if(e.includes(w))return w}return""};
GCN=function(e){if(!_.M("universal_csi_network_ticks"))return function(){};
var z=w7L[e];return z?(_.FV(z),function(){var C=_.M("universal_csi_network_ticks")?(C=oRo[e])?_.FV(C):!1:!1;return C}):function(){}};
_.FV=function(e,z,C){return _.Z_(function(){if(_.zfk(e,C))return!1;_.hg(e,z,C);return!0})()};
_.Vu=function(e,z,C){_.Z_(function(){if(!_.Ct1(C)||_.zfk(e,C))return!1;_.hg(e,z,C);return!0})()};
_.fK=function(e){return _.Z_(_.IS)(e,void 0)};
Wf=function(e){_.Ct1(e)&&_.hg("aa",void 0,e)};
_.kCg=function(e,z,C,w,K,G,X,J,q,T){var Q=Yfk();G=new _.vr({veType:z,youtubeData:G,jspbYoutubeData:J});T=SA({automatedLogEventSource:T},Q);K&&(T.cttAuthInfo=K);K={csn:Q,pageVe:G.getAsJson()};_.M("expectation_logging")&&q&&q.screenCreatedLoggingExpectations&&(K.screenCreatedLoggingExpectations=q.screenCreatedLoggingExpectations);C&&C.visualElement?(K.implicitGesture={parentCsn:C.clientScreenNonce,gesturedVe:C.visualElement.getAsJson()},X&&(K.implicitGesture.gestureType=X)):C&&_.AX(new _.uh("newScreen() parent element does not have a VE - rootVe",
z));w&&(K.cloneCsn=w);e?Bn("screenCreated",K,e,T):_.gm("screenCreated",K,T);NPN(cUg,new bHk(Q));ud.clear();X77.clear();Ji1.clear();return Q};
dQ=function(e,z,C,w,K,G){G=G===void 0?{}:G;qf7(e,z,C,[w],K===void 0?!1:K,G)};
qf7=function(e,z,C,w,K,G){K=K===void 0?!1:K;G=G===void 0?{}:G;Object.assign(G,SA({cttAuthInfo:Rp(z)||void 0},z));for(var X=_.b(w),J=X.next();!J.done;J=X.next()){J=J.value;var q=J.getAsJson();(_.de.isEmpty(q)||!q.trackingParams&&!q.veType)&&_.AX(Error("Bf"));if(_.M("no_client_ve_attach_unless_shown")){var T=x41(J,z);if(q.veType&&!X77.has(T)&&!Ji1.has(T)&&!K){if(!_.M("il_attach_cache_limit")||ud.size<1E3){ud.set(T,[e,z,C,J]);return}_.M("il_attach_cache_limit")&&ud.size>1E3&&_.AX(new _.uh("IL Attach cache exceeded limit"))}J=
x41(C,z);ud.has(J)?TA8(C,z):Ji1.set(J,!0)}}w=w.filter(function(Q){Q.csn!==z?(Q.csn=z,Q=!0):Q=!1;return Q});
C={csn:z,parentVe:C.getAsJson(),childVes:_.i4(w,function(Q){return Q.getAsJson()})};
z==="UNDEFINED_CSN"?DE("visualElementAttached",G,C):e?Bn("visualElementAttached",C,e,G):_.gm("visualElementAttached",C,G)};
lw1=function(e,z,C,w,K,G,X){$45(e,z,C,K,X)};
$45=function(e,z,C,w,K){Q2k(C,z);K=SA({cttAuthInfo:Rp(z)||void 0,automatedLogEventSource:K},z);C={csn:z,ve:C.getAsJson(),eventType:1};w&&(C.clientData=w);z==="UNDEFINED_CSN"?DE("visualElementShown",K,C):e?Bn("visualElementShown",C,e,K):_.gm("visualElementShown",C,K)};
m41=function(e,z,C,w){Q2k(C,z);var K=SA({cttAuthInfo:Rp(z)||void 0,automatedLogEventSource:void 0},z);C={csn:z,ve:C.getAsJson(),eventType:4};w&&(C.clientData=w);z==="UNDEFINED_CSN"?DE("visualElementShown",K,C):e?Bn("visualElementShown",C,e,K):_.gm("visualElementShown",C,K)};
aw7=function(e,z,C,w,K,G){var X=(w=w===void 0?!1:w)?16:8;w=SA({cttAuthInfo:Rp(z)||void 0,endOfSequence:w,automatedLogEventSource:G},z);C={csn:z,ve:C.getAsJson(),eventType:X};K&&(C.clientData=K);z==="UNDEFINED_CSN"?DE("visualElementHidden",w,C):e?Bn("visualElementHidden",C,e,w):_.gm("visualElementHidden",C,w)};
Mks=function(e,z,C,w,K,G){nRo(e,z,C,void 0,w,K,G)};
nRo=function(e,z,C,w,K,G,X){Q2k(C,z);w=w||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";G=SA({cttAuthInfo:Rp(z)||void 0,automatedLogEventSource:X},z);C={csn:z,ve:C.getAsJson(),gestureType:w};K&&(C.clientData=K);z==="UNDEFINED_CSN"?DE("visualElementGestured",G,C):e?Bn("visualElementGestured",C,e,G):_.gm("visualElementGestured",C,G)};
rig=function(e,z,C,w){var K=SA({cttAuthInfo:Rp(z)||void 0},z);C={csn:z,ve:C.getAsJson(),clientData:w};z==="UNDEFINED_CSN"?DE("visualElementStateChanged",K,C):e?Bn("visualElementStateChanged",C,e,K):_.gm("visualElementStateChanged",C,K)};
HHg=function(){var e=ks5(16);for(var z=[],C=0;C<e.length;C++)z.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(e[C]&63));return z.join("")};
DE=function(e,z,C){U4g.push({payloadName:e,payload:C,jspbPayload:void 0,options:z});vRE||(vRE=ZW7())};
yUg=function(e){if(U4g){for(var z=_.b(U4g),C=z.next();!C.done;C=z.next())C=C.value,C.payload&&(C.payload.csn=e.csn,_.gm(C.payloadName,C.payload,C.options));U4g.length=0}vRE=0};
x41=function(e,z){return""+e.getAsJson().veType+e.getAsJson().veCounter+z};
Q2k=function(e,z){if(_.M("no_client_ve_attach_unless_shown")){var C=x41(e,z);X77.set(C,!0);TA8(e,z)}};
TA8=function(e,z){e=x41(e,z);ud.has(e)&&(z=ud.get(e)||[],dQ(z[0],z[1],z[2],z[3],!0),ud.delete(e))};
SA=function(e,z){_.M("log_sequence_info_on_gel_web")&&(e.sequenceGroup=z);return e};
_.id=function(e,z,C){_.Z_(dQ)(void 0,e,z,C)};
_.NL=function(e,z,C){_.Z_(qf7)(void 0,e,z,C)};
_.s6=function(e,z){_.Z_(lw1)(void 0,e,z,void 0,void 0,void 0)};
_.Bf=function(e,z,C){_.Z_(function(){_.oX(z,function(w){m41(void 0,e,w,C)})})()};
_.tg=function(e,z,C,w){_.Z_(function(){_.oX(z,function(K){aw7(void 0,e,K,C,w)})})()};
_.gQ=function(e,z,C){_.Z_(Mks)(void 0,e,z,C,void 0)};
_.jA=function(e,z,C,w){_.Z_(nRo)(void 0,e,z,C,w,void 0)};
_.yu=function(e,z,C){_.Z_(rig)(void 0,e,z,C,void 0)};
Iwg=function(e,z){cf.set(e,z)};
Wu1=function(e){Ag.initialized=!0;Ag.sessionId=e.sessionId||"";Ag.enabledSpans=e.enabledSpans;e.shouldSampleFn!=null&&(Ag.shouldSampleFn=e.shouldSampleFn)};
Pt7=function(e){Ag.processors.push(e)};
ZE=function(e){return Ag.initialized?Ag.enabledSpans?Ag.enabledSpans[e]:!0:!1};
OHE=function(e,z,C){return ZE(e)&&Ag.shouldSampleFn(e,z,Rfm)?new Lu8(e,z,C):hfm};
pK=function(e,z,C){if(typeof C==="function"){var w=C;C=void 0}var K=OHE(e,z,C),G;if(((G=C)==null?void 0:G.endTime)!=null)return w&&_.AX(Error("Ff")),K;var X;K!==hfm&&((X=C)==null?void 0:X.active)!==!1&&Ag.stack.push(K);if(!w)return K;if(K===hfm)return w(K);try{var J=w(K);if(J instanceof Promise)return J.then(function(q){K.end();return q},function(q){K.end("SPAN_STATUS_ERROR");
throw q;});
K.end();return J}catch(q){throw K.end("SPAN_STATUS_ERROR"),q;}};
ER7=function(){eY.subscribe("handleError",function(e){try{for(var z in eJ)try{var C=eJ[z];typeof eJ[z]==="function"&&(C=C());e.params[z]=typeof eJ[z]==="object"?JSON.stringify(C):String(C)}catch(w){_.AX(w)}}catch(w){_.AX(w)}})};
Fus=function(){};
VkE=function(e,z){var C=Object.keys(e);e=new _.uh("[Command Handler] "+z,{filteredCommandNames:C,originalCommand:e});_.yG(e)};
fw1=function(e,z){VkE(e,z+" was called but not set")};
Sf1=function(e){return function(){return new e}};
zq=function(e){return function(){return _.lh().resolve(e)}};
uDg=function(e,z){var C=_.r(e,_.wK);if(C&&(C=z[C.signal]))return C();e=_.b(Object.keys(e));for(C=e.next();!C.done;C=e.next())if(C=C.value,z[C]&&(C=z[C]))return C()};
_.C4=function(e,z,C,w){return{browseEndpoint:{browseId:e},commandMetadata:{webCommandMetadata:{url:z,rootVe:C,webPageType:w===void 0?"WEB_PAGE_TYPE_BROWSE":w}}}};
d44=function(e,z,C){var w=z=z===void 0?0:z;C=C===void 0?0:C;var K=C-w;return _.wk(e,"PPSV",void 0,void 0,(K>600?0:K<60||C<=0||w/C>.9)?0:z)};
_.wk=function(e,z,C,w,K){var G="/watch?v="+e;e={videoId:e};z&&(e.playlistId=z,G+="&list="+z);w&&(G+="&pp="+w);K&&(e.startTimeSeconds=K,G+="&t="+K+"s");z={watchEndpoint:e,commandMetadata:{webCommandMetadata:{url:G,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};C&&(z.clickTrackingParams=C);w&&(_.r(z,_.N$).playerParams=w);return z};
D4k=function(e){return{browseEndpoint:{browseId:"VL"+e},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+e,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
iHk=function(e){if(e){var z;if(e){var C=(z=_.r(e.commandMetadata,_.XV))==null?void 0:z.url;z=!(!C||C==="/service_ajax")}else z=!1;if(z)return e;var w;if(e=(w=_.r(e,_.Gj))==null?void 0:w.commands)for(w=_.b(e),e=w.next();!e.done;e=w.next())if(e=iHk(e.value))return e}};
_.K4=function(e){return{runs:[{text:e}]}};
NAN=function(e,z){return e&&z?{runs:[{text:e,navigationEndpoint:z}]}:void 0};
ou=function(e){return e?_.K4(e):void 0};
_.Gq=function(e){return e?{simpleText:e}:void 0};
_.Yz=function(e){var z=e.type;e=e.payload;z={type:z};e!==void 0&&(z.payload=e);return z};
s2E=function(e,z,C){for(var w=Object.assign({},e),K=_.b(Object.keys(z)),G=K.next();!G.done;G=K.next()){G=G.value;var X=e[G],J=z[G];if(J===void 0)delete w[G];else if(X===void 0)w[G]=J;else if(Array.isArray(J)&&Array.isArray(X))w[G]=C?[].concat(_.s_(X),_.s_(J)):J;else if(!Array.isArray(J)&&_.gL(J)&&!Array.isArray(X)&&_.gL(X))w[G]=s2E(X,J,C);else if(typeof J===typeof X)w[G]=J;else return z=new _.uh("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:G,originalValue:X,updateValue:J}),
_.yG(z),e}return w};
gRg=function(e){if(!e.length)return"";try{if(BAh)return BAh.decode(e);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(e)}catch(X){}for(var z=0,C=[],w=e.length;z<w;){for(var K=0;K<1024&&z<w;){var G=e[z++];if(G<128)tk8[K++]=G;else{if(G<224)G=(G&31)<<6|e[z++]&63;else if(G<240)G=(G&15)<<12|(e[z++]&63)<<6|e[z++]&63;else{if(K+1===1024){--z;break}G=(G&7)<<18|(e[z++]&63)<<12|(e[z++]&63)<<6|e[z++]&63;G-=65536;tk8[K++]=55296|G>>10;G=56320|G&1023}tk8[K++]=G}}G=String.fromCharCode.apply(String,
tk8);K<1024&&(G=G.substring(0,K));C.push(G)}return C.join("")};
yio=function(e,z){var C;if((C=j21)==null?0:C.encodeInto)return z=j21.encodeInto(e,z),z.read<e.length?e.length*4:z.written;for(var w=C=0;w<e.length;w++){var K=e.charCodeAt(w);K<128?z[C++]=K:(K<2048?z[C++]=K>>6|192:((K&64512)===55296&&w+1<e.length&&(e.charCodeAt(w+1)&64512)===56320?(K=65536+((K&1023)<<10)+(e.charCodeAt(++w)&1023),z[C++]=K>>18|240,z[C++]=K>>12&63|128):z[C++]=K>>12|224,z[C++]=K>>6&63|128),z[C++]=K&63|128)}return C};
cih=function(e,z,C){if(z&&C&&C.buffer===z.exports.memory.buffer){var w=z.realloc(C.byteOffset,e);if(w)return new Uint8Array(z.exports.memory.buffer,w,e)}e=z?new Uint8Array(z.exports.memory.buffer,z.malloc(e),e):new Uint8Array(e);C&&e.set(C);return e};
_.Xn=function(e){e=new AiL(new ZHg([_.po(decodeURIComponent(e))]));if(p7N(e,2)){var z=b7(e);var C=e.pos;var w=e.arrayView;C=C===void 0?0:C;var K=z===void 0?-1:z;C=C===void 0?0:C;K=K===void 0?-1:K;if(w.totalLength&&K){K<0&&(K=w.totalLength-C);w.focus(C);if(!(C-w.arrayPos+K<=w.arrays[w.arrayIdx].length)){var G=w.arrayIdx,X=w.arrayPos;w.focus(C+K-1);X=new Uint8Array(w.arrayPos+w.arrays[w.arrayIdx].length-X);for(var J=0,q=G;q<=w.arrayIdx;q++)X.set(w.arrays[q],J),J+=w.arrays[q].length;w.arrays.splice(G,
w.arrayIdx-G+1,X);w.arrayIdx=0;w.arrayPos=0;w.focus(C)}G=w.arrays[w.arrayIdx];w=new DataView(G.buffer,G.byteOffset+C-w.arrayPos,K)}else w=new DataView(new ArrayBuffer(0));w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength);e.pos+=z;z=w}else z=void 0;z=z?gRg(z):void 0;e=p7N(e,4)?b7(e):void 0;w=eKs[e];if(typeof w==="undefined")throw e=new _.uh("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:e}),_.yG(e),e;return{entityTypeFieldNumber:e,entityType:w,entityId:z}};
_.qq=function(e,z,C){C=C===void 0?0:C;var w=new zKg;if(j21)e=j21.encode(e);else{var K=new Uint8Array(Math.ceil(e.length*1.2)),G=yio(e,K);K.length<G&&(K=new Uint8Array(G),G=yio(e,K));K.length>G&&(K=K.subarray(0,G));e=K}e!==void 0&&(JO(w,18),K=e.length,JO(w,K),kz(w,K),w.buf.set(e,w.pos),w.pos+=K);e=Cm5[z];if(typeof e==="undefined")throw C=new _.uh("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:z}),_.yG(C),C;e!==void 0&&(JO(w,32),JO(w,e));JO(w,40);JO(w,1);z=new Uint8Array(w.buf.buffer,
w.buf.byteOffset,w.pos);return encodeURIComponent(_.FY(z,C))};
wcm=function(e){e=e.key||e.id;if(!e)throw Error("Hf");return e};
obg=function(e,z){e=e===void 0?{}:e;return KS8(e,z)};
Gd1=function(e,z,C,w){if(w===void 0)return w=Object.assign({},e[z]||{}),C=(delete w[C],w),w={},Object.assign({},e,(w[z]=C,w));var K={},G={};return Object.assign({},e,(G[z]=Object.assign({},e[z],(K[C]=w,K)),G))};
Yss=function(e,z,C,w,K){var G=e[z];if(G==null||!G[C])return e;w=s2E(G[C],w,K==="REPEATED_FIELDS_MERGE_OPTION_APPEND");K={};G={};return Object.assign({},e,(G[z]=Object.assign({},e[z],(K[C]=w,K)),G))};
_.xz=function(e,z,C){return e[z]?e[z][C]||null:null};
Xcs=function(){if(b3s)return b3s();var e={};b3s=m0("PersistentEntityStoreDb",{objectStores:(e.EntityStore={addedAtVersion:1},e.EntityAssociationStore={addedAtVersion:2},e),shared:!1,upgrade:function(z,C){C(1)&&KC(wm(z,"EntityStore",{keyPath:"key"}),"entityType","entityType");C(2)&&(z=wm(z,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),KC(z,"byParentEntityKey","parentEntityKey"),KC(z,"byChildEntityKey","childEntityKey"))},
version:3});return b3s()};
Jlm=function(e){return _.X0(Xcs(),e)};
Tq=function(e){return window.Int32Array?new Int32Array(e):Array(e)};
qsh=function(e){return _.X0(kdh(),e)};
x2E=function(e){return new $z("WRONG_DATA_TYPE",{encoderVersion:e})};
Ttk=function(e){return e instanceof Error?new $z("UNKNOWN_ENCODE_ERROR",{originalMessage:e.message}):new $z("UNKNOWN_ENCODE_ERROR")};
$2k=function(e){return e instanceof Error?new $z("UNKNOWN_DECODE_ERROR",{originalMessage:e.message}):new $z("UNKNOWN_DECODE_ERROR")};
lMh=function(e,z){e=e instanceof $z?e:z(e);_.yG(e);throw e;};
QlE=function(e){e=(new TextEncoder).encode(e).subarray(0,16);var z=new Uint8Array(16);z.set(e);return z};
aMh=function(e){var z=m25[e];if(z)return z;_.AX(new _.uh("Entity model not found.",{entityType:e}))};
_.l7=function(){nbg||(nbg=M08());return nbg};
M08=function(){var e,z,C;return _.k(function(w){if(w.nextAddress==1)return _.Iv(w,2),w.yield(_.QZ(),4);if(w.nextAddress!=2){e=w.yieldResult;if(!e||!_.Ss()||typeof _.wL.BroadcastChannel==="undefined")return w.return();z=new rlN;return w.return(new Q2(e,z))}C=_.O_(w);C instanceof Error&&_.yG(C);return w.return()})};
_.m6=function(e,z){var C;return _.k(function(w){if(w.nextAddress==1){C=e.mutations;if(!C||C.length<=0)return w.return();z&&z.dispatch(_.Yz({type:"ENTITY_LOADED",payload:C}));return w.yield(H3m(C),2)}C.length=0;_.E_(w)})};
H3m=function(e){var z;return _.k(function(C){return C.nextAddress==1?C.yield(_.l7(),2):(z=C.yieldResult)?C.yield(_.au(z,"readwrite",function(w){for(var K={},G=_.b(e),X=G.next(),J={};!X.done;J={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},X=G.next())J.mutation$jscomp$8=X.value,J.mutation$jscomp$8.entityKey&&U25(J.mutation$jscomp$8)&&(J.mutationEntityType$jscomp$3=(0,_.de.getAnyKey)(J.mutation$jscomp$8.payload),X=void 0,J.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(X=function(q){return function(){return _.vbk(w,
q.mutation$jscomp$8.payload[q.mutationEntityType$jscomp$3],q.mutationEntityType$jscomp$3)}}(J)),J.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(X=function(q){return function(){return IMN(w,q.mutation$jscomp$8.entityKey)}}(J)),J.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(X=function(q){return function(){return WSm(w,q.mutation$jscomp$8.entityKey,q.mutation$jscomp$8.payload[q.mutationEntityType$jscomp$3],q.mutationEntityType$jscomp$3)}}(J)),X&&(K[J.mutation$jscomp$8.entityKey]=
K[J.mutation$jscomp$8.entityKey]?K[J.mutation$jscomp$8.entityKey].then(X):X()));
return zT.all(Object.values(K))}),0):C.return()})};
U25=function(e){var z;e=(z=e.options)==null?void 0:z.persistenceOption;return e==="ENTITY_PERSISTENCE_OPTION_PERSIST"||e==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
LS8=function(e,z){var C,w;_.k(function(K){if(K.nextAddress==1)return K.yield(_.l7(),2);if(K.nextAddress!=3)return(C=K.yieldResult)?K.yield(_.au(C,"readonly",function(G){var X={},J=Object.keys(z).map(function(q){var T=z[q]?[].concat(_.s_(z[q])):[];return Pmh(G,q,T,X)});
return zT.all(J).then(function(){return X})}),3):K.return();
w=K.yieldResult;Object.keys(w).length>0&&e.dispatch(RKE(w));_.E_(K)})};
Pmh=function(e,z,C,w){return Mq(e,z,C).then(function(K){w[z]=hKL(C,K)})};
hKL=function(e,z){if(z.length!==e.length)throw Error("Kf");return z.reduce(function(C,w,K){C[e[K]]=w;return C},{})};
FSN=function(e){var z=e.filter(function(K){var G;return(K==null?void 0:(G=K.transferEntity)==null?void 0:G.transferState)==="TRANSFER_STATE_COMPLETE"}).length,C=e.filter(function(K){var G;
return(K==null?void 0:(G=K.transferEntity)==null?void 0:G.transferState)==="TRANSFER_STATE_FAILED"}).length,w=e.filter(function(K){var G;
return(K==null?void 0:(G=K.transferEntity)==null?void 0:G.transferState)&&O3s.includes(K.transferEntity.transferState)});
if(!(z||w!=null&&w.length))return 0;z=_.EbN(w)+z;e=e.length-C;return e===0?0:Math.round(z*100/e)/100};
_.EbN=function(e){var z=[];z=z.concat.apply(z,_.s_(e.filter(function(G){return G.streamEntity}).map(function(G){var X=Object.assign({},G.streamEntity),J,q=(J=G.transferEntity)==null?void 0:J.transferState;
X.streamsProgress=X.streamsProgress||[];X.streamsProgress=X.streamsProgress.map(function(T){var Q=Object.assign({},T);Q.numBytesDownloaded=q==="TRANSFER_STATE_COMPLETE"?T.numTotalBytes:T.numBytesDownloaded;return Q});
return X}).map(function(G){return G.streamsProgress})));
var C=e=0;z=_.b(z);for(var w=z.next();!w.done;w=z.next()){var K=w.value;w=Number(K.numBytesDownloaded);K=Number(K.numTotalBytes);C+=isNaN(w)?0:w;e+=isNaN(K)?0:K}return e===0?0:Math.round(C*100/e)/100};
V0h=function(e){if(!e||!e.expirationTimestamp||!e.action)return!1;var z=(0,_.as)()/1E3;return Number(e.expirationTimestamp)>=z};
rk=function(e){return e&&e.expirationTimestamp&&e.action?V0h(e)&&e.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.HH=function(e){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(e||"TRANSFER_STATE_UNKNOWN")};
fM8=function(e){var z=new zKg;if(e!==void 0){var C=Math.ceil(Math.log2(e.length*4+2)/7);C=C===void 0?2:C;JO(z,10);z.submessagePosStack.push(z.pos);z.submessagePosStack.push(C);z.pos+=C;kz(z,e.length*1.2);C=yio(e,z.buf.subarray(z.pos));z.pos+C>z.buf.length&&(kz(z,C),C=yio(e,z.buf.subarray(z.pos)));z.pos+=C;e=z.submessagePosStack.pop();C=z.submessagePosStack.pop();for(var w=z.pos-C-e;e--;){var K=e?128:0;z.view.setUint8(C++,w&127|K);w>>=7}}z=new Uint8Array(z.buf.buffer,z.buf.byteOffset,z.pos);return(new TextDecoder("utf-8")).decode(z)};
_.Uk=function(e){var z=0;e=_.b(e);for(var C=e.next(),w={};!C.done;w={transferState$jscomp$3:void 0},C=e.next()){var K=C.value,G=void 0;C=(G=K.streamEntity)!=null?G:{};G=void 0;w.transferState$jscomp$3=(G=K.transferEntity)==null?void 0:G.transferState;G=K=void 0;((K=C)==null?0:(G=K.streamsProgress)==null?0:G.length)&&C.streamsProgress.forEach(function(X){return function(J){J=Number(X.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?J.numTotalBytes:J.numBytesDownloaded);isFinite(J)&&(z+=J)}}(w))}return z};
Ss1=function(e){return e.some(function(z){var C;if(!(z==null?0:(C=z.transferEntity)==null?0:C.transferState)){var w;return!(z==null?0:(w=z.policyEntity)==null?0:w.action)||z.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return O3s.includes(z.transferEntity.transferState)})};
uzg=function(e,z){if(!z)return!1;if(_.M("of_pb_en_po_ks"))return!0;var C;e=(C=_.xz(e,"offlineVideoPolicy",_.qq(z,"offlineVideoPolicy")))!=null?C:void 0;return!!e&&rk(e)};
_.D21=function(e){var z=["TRANSFER_STATE_COMPLETE"];z=z===void 0?d24:z;return e.filter(function(C){var w,K;return z.includes((K=(w=C.transferEntity)==null?void 0:w.transferState)!=null?K:"TRANSFER_STATE_UNKNOWN")})};
i31=function(e,z){if(z){var C,w=(C=_.xz(e,"playbackData",_.qq(z,"playbackData")))!=null?C:null,K;C=(K=_.xz(e,"transfer",_.qq(z,"transfer")))!=null?K:null;var G;K=(G=_.xz(e,"offlineVideoStreams",_.qq(z,"offlineVideoStreams")))!=null?G:null;var X;e=(X=_.xz(e,"offlineVideoPolicy",_.qq(z,"offlineVideoPolicy")))!=null?X:null;if(w||C||K||e)return{playbackDataEntity:w,transferEntity:C,streamEntity:K,policyEntity:e}}};
_.vH=function(e){var z=e.playbackData;if(!z)return[];var C=[];z=_.b(Object.keys(z));for(var w=z.next();!w.done;w=z.next()){var K=w.value;if(!Nts(e,_.Xn(K).entityId)&&(w=i31(e,_.Xn(K).entityId))){var G=void 0,X=void 0;K=(X=Number((G=_.xz(e,"playbackData",K))==null?void 0:G.streamDownloadTimestampSeconds))!=null?X:(0,_.as)();C.push({entity:w,streamDownloadTimestamp:K})}}return C.sort(function(J,q){var T=J.streamDownloadTimestamp,Q=q.streamDownloadTimestamp;return Q===T?J.entity.streamEntity&&!q.entity.streamEntity?
1:-1:Q-T}).map(function(J){return J.entity})};
slN=function(e){return _.D21(_.vH(e))};
_.Bt5=function(e){return _.vH(e).filter(function(z){var C;if(((C=z.policyEntity)==null?0:C.action)&&z.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var w;if((w=z.transferEntity)==null?0:w.transferState){var K;return O3s.includes((K=z.transferEntity)==null?void 0:K.transferState)}return!0})};
Nts=function(e,z){var C;return((C=_.xz(e,"downloadStatusEntity",_.qq(z,"downloadStatusEntity")))==null?void 0:C.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
t07=function(e){var z;if(e==null?0:(z=e.playbackDataEntity)==null?0:z.key)return _.Xn(e.playbackDataEntity.key).entityId;var C;if(e==null?0:(C=e.transferEntity)==null?0:C.key)return _.Xn(e.transferEntity.key).entityId;var w;if(e==null?0:(w=e.streamEntity)==null?0:w.key)return _.Xn(e.streamEntity.key).entityId;var K;if(e==null?0:(K=e.policyEntity)==null?0:K.key)return _.Xn(e.policyEntity.key).entityId};
jlo=function(e){var z=new Set,C;e=(C=e.mainDownloadsListEntity)==null?void 0:C[gbh];var w;if(!(e==null?0:(w=e.downloads)==null?0:w.length))return z;var K;e==null||(K=e.downloads)==null||K.forEach(function(G){(G==null?0:G.videoItem)&&z.add(G.videoItem)});
return z};
Iu=function(e,z){if(z){var C=_.xz(e,"mainVideoEntity",_.qq(z,"mainVideoEntity")),w=_.xz(e,"downloadStatusEntity",_.qq(z,"downloadStatusEntity")),K=_.xz(e,"ytMainChannelEntity",_.qq(z,"ytMainChannelEntity")),G={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};e=i31(e,z);w=(w==null?void 0:w.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.M("woffle_render_failed_download_state_ks")&&(w==null?void 0:w.downloadState)==="DOWNLOAD_STATE_FAILED";!e&&w&&(e=G);if(e&&C&&
K)return Object.assign({},{videoEntity:C,channelEntity:K},e)}};
cl1=function(e,z){return ylk(e,z)==="TRANSFER_STATE_COMPLETE"&&uzg(e,z)};
Al1=function(e,z){if(!z)return!1;var C;e=(C=_.xz(e,"playbackData",_.qq(z,"playbackData")))!=null?C:void 0;return!!e&&!!e.playerResponseJson};
ylk=function(e,z){if(!z)return"TRANSFER_STATE_UNKNOWN";var C=_.xz(e,"transfer",_.qq(z,"transfer"));if(C){var w;return(w=C.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN"}C=_.xz(e,"offlineOrchestrationActionWrapperEntity",_.qq(z,"offlineOrchestrationActionWrapperEntity"));e=_.xz(e,"mainVideoEntity",_.qq(z,"mainVideoEntity"));return C||e?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Z3k=function(e,z){if(!z)return"TRANSFER_STATE_UNKNOWN";if(e=_.xz(e,"transfer",_.qq(z,"transfer"))){var C;return(C=e.transferState)!=null?C:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
pcL=function(e,z){return z&&(e=_.xz(e,"videoPlaybackPositionEntity",_.qq(z,"videoPlaybackPositionEntity")),e==null?0:e.lastPlaybackPositionSeconds)?Number(e.lastPlaybackPositionSeconds):0};
zOE=function(e,z){return eOL(e).some(function(C){var w;return(C==null?void 0:(w=C.mainPlaylistEntity)==null?void 0:w.playlistId)===z})};
whh=function(e,z,C){var w=Cz1(e,z);if(!w.length)return[];z=[];w=_.b(w);for(var K=w.next();!K.done;K=w.next()){K=K.value;var G=Iu(e,K);C&&ylk(e,K)!=="TRANSFER_STATE_COMPLETE"||G&&z.push(G)}return z};
Cz1=function(e,z){if(!z)return[];var C=_.qq(z,"mainPlaylistEntity"),w;z=(w=e.mainPlaylistEntity)==null?void 0:w[C];w=[];if(z==null||!z.videos)return w;z=_.b(z.videos);for(C=z.next();!C.done;C=z.next()){C=C.value;var K=void 0,G=void 0,X=void 0,J=(K=e)==null?void 0:(G=K.mainPlaylistVideoEntity)==null?void 0:(X=G[C])==null?void 0:X.video;J&&(C=_.Xn(J).entityId)&&w.push(C)}return w};
KFL=function(e,z){if(z){var C=_.xz(e,"mainPlaylistEntity",_.qq(z,"mainPlaylistEntity")),w=_.xz(e,"mainPlaylistDownloadStateEntity",_.qq(z,"mainPlaylistDownloadStateEntity"));e=_.xz(e,"ytMainChannelEntity",_.qq(z,"ytMainChannelEntity"));if(w&&C)return Object.assign({},{mainPlaylistEntity:C,mainPlaylistDownloadStateEntity:w},!!e&&{channelEntity:e})}};
eOL=function(e){return oq8(e).sort(function(z,C){return C.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return z.downloadedPlaylistEntities})};
oq8=function(e){var z=e.mainPlaylistDownloadStateEntity,C=[];if(!z)return C;for(var w=_.b(Object.keys(z)),K=w.next();!K.done;K=w.next()){var G=K.value;K=KFL(e,_.Xn(G).entityId);var X=void 0;G=Number((X=z[G])==null?void 0:X.addedTimestampMillis);X=isNaN(G)?(0,_.as)():G;K!==void 0&&C.push({downloadedPlaylistEntities:K,addedTimestampMillis:X})}return C};
Gr8=function(e){var z,C=(z=e.mainPlaylistVideoEntity)!=null?z:{};return new Set(eOL(e).reduce(function(w,K){w=w===void 0?[]:w;var G,X;K==null||(G=K.mainPlaylistEntity)==null||(X=G.videos)==null||X.forEach(function(J){var q;(J=(q=C[J])==null?void 0:q.video)&&w.push(J)});
return w},[]))};
Y27=function(e){return"downloadedMusicPlaylistEntities"in e};
bE8=function(e){return"mainPlaylistEntity"in e&&"mainPlaylistDownloadStateEntity"in e};
Xh7=function(e){return"videoEntity"in e&&"channelEntity"in e};
JYg=function(e){var z=e.musicPlaylistDownloadMetadataEntity,C=[];if(!z)return C;for(var w=_.b(Object.keys(z)),K=w.next();!K.done;K=w.next()){K=K.value;a:{var G=e,X=_.Xn(K).entityId;if(X){var J=_.xz(G,"musicPlaylist",_.qq(X,"musicPlaylist"));G=_.xz(G,"musicPlaylistDownloadMetadataEntity",_.qq(X,"musicPlaylistDownloadMetadataEntity"));if(J&&G){J={musicPlaylistEntity:J,musicPlaylistDownloadStateEntity:G};break a}}J=void 0}G=void 0;K=Number((G=z[K])==null?void 0:G.addedTimestampMillis);K=isNaN(K)?(0,_.as)():
K;J!==void 0&&C.push({downloadedMusicPlaylistEntities:J,addedTimestampMillis:K})}return C};
kr1=function(e){var z=new Set;e=_.b(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,"musicPlaylistEntity"in C&&"musicPlaylistDownloadStateEntity"in C){C=_.b(C.musicPlaylistEntity.tracks);for(var w=C.next();!w.done;w=C.next())z.add(w.value)}return z};
q2m=function(e,z){if(z){var C=_.xz(e,"musicTrack",_.qq(z,"musicTrack")),w=_.xz(e,"musicArtist",_.qq(z,"musicArtist"))||{};if((e=i31(e,z))&&C&&w)return Object.assign({},{musicTrackEntity:C,musicArtistEntity:w},e)}};
xeL=function(e){var z=e.musicTrackDownloadMetadataEntity,C=[];if(!z)return[];z=_.b(Object.keys(z));for(var w=z.next();!w.done;w=z.next()){var K=w.value;w=q2m(e,_.Xn(K).entityId);var G=void 0;K=Number((G=_.xz(e,"musicTrackDownloadMetadataEntity",K))==null?void 0:G.addedTimestampMillis);G=isNaN(K)?(0,_.as)():K;w!==void 0&&C.push({downloadedMusicEntities:w,addedTimestampMillis:G})}return C};
lSk=function(e,z){if(!z)return[];if(Object.values(TXs).includes(z))return $eh(e,z);z=_.qq(z,"musicPlaylist");var C;e=(C=e.musicPlaylist)==null?void 0:C[z];C=[];if(e==null||!e.tracks)return C;e=_.b(e.tracks);for(z=e.next();!z.done;z=e.next())(z=_.Xn(z.value).entityId)&&C.push(z);return C};
$eh=function(e,z){var C=new Set,w=JYg(e).map(function(G){return G.downloadedMusicPlaylistEntities});
w=kr1(w);w=_.b(w);for(var K=w.next();!K.done;K=w.next())(K=_.Xn(K.value).entityId)&&C.add(K);return QQk(e).downloadedMusicEntities.filter(function(G){var X;if((X=G.musicTrackEntity)!=null&&X.videoId){G=G.musicTrackEntity;if(X=z==="PPOM"?!0:!C.has(G.videoId))b:switch(G=G.musicVideoType,z){case "PPSE":X=G==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:X=G!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}G=X}else G=!1;return G}).map(function(G){var X;
return(X=G.musicTrackEntity)==null?void 0:X.videoId})};
QQk=function(e){var z=xeL(e).sort(function(C,w){return w.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return"downloadedMusicEntities"in C?C.downloadedMusicEntities:Y27(C)?C.downloadedMusicPlaylistEntities:{}});
e=JYg(e).sort(function(C,w){return w.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return"downloadedMusicEntities"in C?C.downloadedMusicEntities:Y27(C)?C.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:z,downloadedMusicPlaylistEntities:e}};
aSs=function(e,z){z=_.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?lSk(e,z):Cz1(e,z);if(!z.length)return"TRANSFER_STATE_UNKNOWN";z=z.map(function(C){return Z3k(e,C)});
return meh(z)};
meh=function(e){var z=new Set(e);if(z.has("TRANSFER_STATE_FAILED")&&z.size===1)return"TRANSFER_STATE_FAILED";z.delete("TRANSFER_STATE_FAILED");if(z.has("TRANSFER_STATE_UNKNOWN")&&z.size===1)return"TRANSFER_STATE_PRE_TRANSFER";z.delete("TRANSFER_STATE_UNKNOWN");if(z.has("TRANSFER_STATE_PRE_TRANSFER")&&z.size===1||z.size===0)return"TRANSFER_STATE_PRE_TRANSFER";e=z.has("TRANSFER_STATE_TRANSFERRING");z=z.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return e||z?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
WH=function(e){var z=e.mainVideoDownloadStateEntity,C=[];if(!z)return[];z=_.b(Object.keys(z));for(var w=z.next();!w.done;w=z.next()){var K=w.value;if(!Nts(e,_.Xn(K).entityId)){w=Iu(e,_.Xn(K).entityId);var G=void 0,X=void 0;K=(X=Number((G=_.xz(e,"mainVideoDownloadStateEntity",K))==null?void 0:G.addedTimestampMillis))!=null?X:(0,_.as)();w!==void 0&&C.push({downloadedVideoEntities:w,addedTimestampMillis:K})}}return C};
nqs=function(e){return WH(e).sort(function(z,C){return C.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return z.downloadedVideoEntities})};
_.rYL=function(e){var z=Gr8(e),C=_.PH(e),w=jlo(e),K=WH(e).filter(function(X){var J,q;if((X==null?void 0:(J=X.downloadedVideoEntities)==null?void 0:(q=J.transferEntity)==null?void 0:q.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var T,Q;X=X==null?void 0:(T=X.downloadedVideoEntities)==null?void 0:(Q=T.videoEntity)==null?void 0:Q.key;return _.M("kevlar_use_library_entity")?X&&(w.has(X)||C[X]):X&&!z.has(X)}),G=oq8(e).filter(function(X){return aSs(e,X.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.s_(K),_.s_(G)).sort(function(X,J){return J.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return Mf5(X)})};
HE1=function(e,z){if(z&&uzg(e,z)){var C,w,K=(w=(C=_.xz(e,"playbackData",_.qq(z,"playbackData")))!=null?C:void 0)==null?void 0:w.playerResponseJson;if(K){try{var G=JSON.parse(K);var X=_.xz(e,"transfer",_.qq(z,"transfer")),J=pcL(e,z);J&&(G=Object.assign({},G,{playerConfig:Object.assign({},G.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+J*1E3}}})}));G.cotn=X==null?void 0:X.cotn}catch(q){}return G}}};
_.vqo=function(e){var z,C,w;e=(w=(C=((z=e.downloadsPageViewConfigurationEntity)!=null?z:{})[_.Ru])==null?void 0:C.smartDownloadsOptInBannerVisibility)!=null?w:{};var K;return(K=_.r(e,Ue1))!=null?K:{}};
_.PH=function(e){var z,C,w;e=(w=(C=((z=e.mainDownloadsListEntity)!=null?z:{})[_.ISN])==null?void 0:C.downloads)!=null?w:[];z={};C=_.b(e);for(w=C.next();!w.done;w=C.next())e=void 0,z[(e=w.value.videoItem)!=null?e:""]=!0;return z};
WF7=function(e){var z=_.PH(e);if(Object.keys(z).length===0)return!1;var C=e.mainVideoEntity;if(!C)return!0;C=_.b(Object.keys(C));for(var w=C.next();!w.done;w=C.next()){w=w.value;var K=_.Xn(w).entityId;if(z[w]&&!Nts(e,K))return!1}return!0};
_.L4=function(e){var z=_.PH(e);return WH(e).sort(function(C,w){return C.addedTimestampMillis-w.addedTimestampMillis}).map(function(C){return C.downloadedVideoEntities}).filter(function(C){var w;
return(C=C==null?void 0:(w=C.videoEntity)==null?void 0:w.key)&&!!z[C]})};
_.RO8=function(e){var z,C,w;e=(w=(C=((z=e.downloadsPageViewConfigurationEntity)!=null?z:{})[_.Ru])==null?void 0:C.downloadsUpsellBannerVisibility)!=null?w:{};var K;return(K=_.r(e,Pz7))!=null?K:{}};
Mf5=function(e){return"downloadedVideoEntities"in e?e.downloadedVideoEntities:"downloadedPlaylistEntities"in e?e.downloadedPlaylistEntities:{}};
LF5=function(e){var z=_.PH(e),C=Gr8(e),w=WH(e).filter(function(K){var G,X;return(K=K==null?void 0:(G=K.downloadedVideoEntities)==null?void 0:(X=G.videoEntity)==null?void 0:X.key)&&!z[K]&&!C.has(K)});
e=oq8(e);return[].concat(_.s_(w),_.s_(e)).sort(function(K,G){return G.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return Mf5(K)})};
_.hO=function(e){if(!_.M("kevlar_use_library_entity"))return LF5(e);var z=WH(e).filter(function(w){var K,G;if(K=w=w==null?void 0:(K=w.downloadedVideoEntities)==null?void 0:(G=K.videoEntity)==null?void 0:G.key){var X,J,q;K=((J=(X=e.mainDownloadsListEntity)==null?void 0:X[gbh])==null?0:(q=J.downloads)==null?0:q.length)?jlo(e).has(w):!1}return K}),C=oq8(e);
return[].concat(_.s_(z),_.s_(C)).sort(function(w,K){return K.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return Mf5(w)})};
hOo=function(e){var z=_.PH(e),C=Gr8(e);return nqs(e).filter(function(w){var K;return(w=w==null?void 0:(K=w.videoEntity)==null?void 0:K.key)&&!z[w]&&!C.has(w)})};
OEL=function(e){if(!_.M("kevlar_use_library_entity"))return hOo(e);var z=_.PH(e),C=jlo(e);return nqs(e).filter(function(w){var K;return(w=w==null?void 0:(K=w.videoEntity)==null?void 0:K.key)&&!z[w]&&C.has(w)})};
Eq4=function(e,z){z=_.qq(z,"settingEntity");var C,w,K;return!!((K=(w=((C=e.settingEntity)!=null?C:{})[z])==null?void 0:w.settingOptionValue)!=null?K:{}).boolValue};
_.Ok=function(e){var z=_.L4(e);if(Ss1(z))return 0;var C=[];z=_.b(z);for(var w=z.next();!w.done;w=z.next()){w=w.value;var K=void 0,G=void 0;if((K=w)==null?0:(G=K.videoEntity)==null?0:G.key)K=_.Xn(w.videoEntity.key).entityId,w=e,K=_.qq(K,"mainVideoDownloadStateEntity"),w=_.xz(w,"mainVideoDownloadStateEntity",K),(w=Number(w==null?void 0:w.addedTimestampMillis))&&C.push(w)}return Math.max.apply(Math,_.s_(C))};
_.Ek=function(e){return e.ui.richGridMiniMode};
_.Fn=function(e){return e.ui.richGridItemsPerRow};
_.FF5=function(e){return e.ui.richGridSlimItemsPerRow};
_.Vfk=function(e){return e.ui.guideIsExpanded};
_.V2=function(e){return e.ui.miniplayerIsActive};
fS8=function(e){return e.ui.singleOptionSurveyIsActive};
_.f4=function(e){var z;return((z=e.ui)==null?void 0:z.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.S2g=function(e){return _.f4(e)==="WEB_PAGE_TYPE_WATCH"};
_.ur1=function(e){return _.f4(e)==="WEB_PAGE_TYPE_SHORTS"};
_.deg=function(e){return e.ui.inlinePreviewIsActive};
_.Deg=function(e){return e.ui.inlinePreviewIsEnabled};
_.iEm=function(e){return e.ui.miniplayerPlaybackState};
_.SJ=function(e){return e.ui.isOnline};
_.NX4=function(e){return e.ui.frostedGlassMode};
_.dk=function(e,z){return ylk(e.entities,z)};
_.Dd=function(e,z){return aSs(e.entities,z)};
sQs=function(e,z){var C;if(z){var w;e=(w=_.xz(e.entities,"offlineVideoPolicy",_.qq(z,"offlineVideoPolicy")))==null?void 0:w.action}else e=void 0;return(C=e)!=null?C:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
BXo=function(e,z){var C;z?(e=_.xz(e.entities,"offlineVideoPolicy",_.qq(z,"offlineVideoPolicy")),e=Number(e==null?void 0:e.expirationTimestamp)):e=void 0;return(C=e)!=null?C:0};
_.tf5=function(e){return _.vH(e.entities).length};
gq1=function(e,z){return Iu(e.entities,z)};
jQg=function(e,z){return KFL(e.entities,z)};
i7=function(e,z){return(e=Iu(e.entities,z))?_.EbN([e]):0};
_.yY8=function(e,z){var C=_.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(C){var w=e.entities;var K=lSk(w,z);if(K.length){var G=[];K=_.b(K);for(var X=K.next();!X.done;X=K.next())(X=q2m(w,X.value))&&G.push(X);w=G}else w=[]}else w=whh(e.entities,z);var J;if(C){var q=e.entities;z?(z=_.qq(z,"musicPlaylist"),q=(J=q.musicPlaylist)==null?void 0:J[z],J=q!=null&&q.tracks?q.tracks.length:0):J=0}else J=e.entities,z?(z=_.qq(z,"mainPlaylistEntity"),J=(q=J.mainPlaylistEntity)==null?void 0:q[z],J=J!=null&&J.videos?
J.videos.length:0):J=0;return w.length!==J?0:w?FSN(w):0};
_.cY5=function(e){return e.download.isLeaderTab};
_.AYg=function(e,z,C){if(!z&&C){var w=e.entities;if(C){var K=fM8(C),G,X;z=(X=(G=_.xz(w,"offlineabilityEntity",_.qq(K,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else G=e.entities,z?(X=fM8(z),z=(K=(w=_.xz(G,"offlineabilityEntity",_.qq(X,"offlineabilityEntity")))==null?void 0:w.addToOfflineButtonState)!=null?K:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):z="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return z};
ZE8=function(e,z){e=e.entities;if(z){z=fM8(z);var C,w;z=(w=(C=_.xz(e,"offlineabilityEntity",_.qq(z,"offlineabilityEntity")))==null?void 0:C.addToOfflineButtonState)!=null?w:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else z="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return z};
_.pho=function(e){var z=e.entities;e=_.SJ(e);var C=Eq4(z,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.M("kevlar_modern_downloads_page")&&C)var w=!1;else{var K,G;z=(G=(K=((w=z.downloadsPageViewConfigurationEntity)!=null?w:{})[_.Ru])==null?void 0:K.smartDownloadsOptInBannerVisibility)!=null?G:{};w=e?!!z.visibleWithConnection:!!z.visibleWithoutConnection}return w};
_.eJ4=function(e){return Eq4(e.entities,"SMART_DOWNLOADS_ENABLED")};
_.zJg=function(e){return WF7(e.entities)};
C9g=function(e){return _.L4(e.entities).every(function(z){var C;return(z==null?void 0:(C=z.transferEntity)==null?void 0:C.transferState)&&!O3s.includes(z.transferEntity.transferState)})};
_.wko=function(e){var z,C,w,K=(w=(C=((z=e.entities.downloadsPageViewConfigurationEntity)!=null?z:{})[_.Ru])==null?void 0:C.downloadsUpsellBannerVisibility)!=null?w:{};return _.SJ(e)?!!K.visibleWithConnection:!!K.visibleWithoutConnection};
_.Kj5=function(e,z){return Nts(e.entities,z)};
oVN=function(e,z){if(z){var C,w;e=(w=(C=_.xz(e.entities,"downloadStatusEntity",_.qq(z,"downloadStatusEntity")))==null?void 0:C.downloadState)!=null?w:"DOWNLOAD_STATE_UNKNOWN"}else e="DOWNLOAD_STATE_UNKNOWN";return e};
Nq=function(e,z){return pcL(e.entities,z)};
Xkg=function(e){e=GBg(e);var z=e.hours===void 0?0:e.hours,C=e.minutes===void 0?0:e.minutes,w=e.seconds===void 0?0:e.seconds,K=z>0;e=[];K&&(z=YWm(z),e.push(z));z=K;z=z===void 0?!1:z;C=(["af","be","lt"].includes(sk)||z)&&C<10?bx7().format(C):(new Intl.NumberFormat("en-u-nu-latn")).format(C);e.push(C);C=bx7().format(w);e.push(C);C=":";"da fi id si sr sr-Latn".split(" ").includes(sk)&&(C=".");return e.join(C)};
_.kB4=function(e){e=GBg(e);var z=e.hours===void 0?0:e.hours,C=e.minutes===void 0?0:e.minutes,w=e.seconds===void 0?0:e.seconds;e=[];if(z>0){var K=Jug().format({hours:z});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(sk)||z>9999)K=K.replace(z.toString(),YWm(z)),sk==="km"&&(K=K.replace(".",","));e.push(K)}C>0&&e.push(Jug().format({minutes:C}));w>0&&e.push(Jug().format({seconds:w}));z="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");C=sk=="am"?"{0}\u1363 ":sk=="fa"?"{0}\u060c\u200f ":
sk=="my"?"{0} - ":sk=="ne"?"{0},":sk=="th"?"{0} ":sk=="ur"?"{0}\u060c ":sk=="ar"||sk=="ar-XB"?"{0} \u0648":sk=="ja"||sk=="zh-CN"||sk=="zh-HK"||sk=="zh-TW"?"{0}\u3001":"{0}, ";w=sk=="am"?"\u1363 ":sk=="fa"?"\u060c\u200f ":sk=="my"?" - ":sk=="th"?" ":sk=="ur"?"\u060c ":sk=="ar"||sk=="ar-XB"?" \u0648":sk=="ja"||sk=="zh-CN"||sk=="zh-HK"||sk=="zh-TW"?"\u3001":", ";K=sk=="am"?" \u12a5\u1293 {0}":sk=="as"?" \u0986\u09f0\u09c1 {0}":sk=="az"?" v\u0259 {0}":sk=="bn"?" \u098f\u09ac\u0982 {0}":sk=="cs"?" a\u00a0{0}":
sk=="de"?" und {0}":sk=="el"?" \u03ba\u03b1\u03b9 {0}":sk=="eu"?" eta {0}":sk=="fa"?"\u060c \u0648 {0}":sk=="fil"?", at {0}":sk=="gu"?" \u0a85\u0aa8\u0ac7 {0}":sk=="hi"?", \u0914\u0930 {0}":sk=="hu"?" \u00e9s {0}":sk=="hy"?" \u0587 {0}":sk=="id"?", dan {0}":sk=="iw"?" \u05d5-{0}":sk=="ja"?"\u3001{0}":sk=="ka"?" \u10d3\u10d0 {0}":sk=="km"?" \u1793\u17b7\u1784 {0}":sk=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":sk=="ko"?" \ubc0f {0}":sk=="ky"?" \u0436\u0430\u043d\u0430 {0}":sk=="lt"?" ir {0}":sk==
"lv"?" un {0}":sk=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":sk=="mr"?" \u0906\u0923\u093f {0}":sk=="ms"?" dan {0}":sk=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":sk=="ne"?" \u0930 {0}":sk=="or"?", \u0b13 {0}":sk=="pa"?" \u0a05\u0a24\u0a47 {0}":sk=="ro"?" \u0219i {0}":sk=="si"?", \u0dc3\u0dc4 {0}":sk=="sk"?" a {0}":sk=="sl"?" in {0}":sk=="sq"?" dhe {0}":sk=="sv"?" och {0}":sk=="sw"?" na {0}":sk=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":sk=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
sk=="th"?" \u0e41\u0e25\u0e30{0}":sk=="tr"?" ve {0}":sk=="ur"?"\u060c \u0627\u0648\u0631 {0}":sk=="uz"?" va {0}":sk=="vi"?" v\u00e0 {0}":sk=="zh-HK"?"\u53ca{0}":sk=="zu"?", ne-{0}":sk=="af"||sk=="nl"?" en {0}":sk=="ar"||sk=="ar-XB"?" \u0648{0}":sk=="be"||sk=="uk"?" \u0456 {0}":sk=="en-GB"||sk=="en-IN"?" and {0}":sk=="en"||sk=="en-XA"?", and {0}":sk=="et"||sk=="fi"?" ja {0}":sk=="fr"||sk=="fr-CA"?" et {0}":sk=="zh-CN"||sk=="zh-TW"?"\u548c{0}":sk=="da"||sk=="is"||sk=="no"?" og {0}":sk=="es"||sk=="es-419"||
sk=="es-US"?" y {0}":sk=="kk"||sk=="lo"||sk=="mn"?", {0}":sk=="bg"||sk=="mk"||sk=="ru"||sk=="sr"?" \u0438 {0}":sk=="gl"||sk=="it"||sk=="pt-BR"||sk=="pt-PT"?" e {0}":" i {0}";var G=sk=="am"?"{0} \u12a5\u1293 {1}":sk=="as"?"{0} \u0986\u09f0\u09c1 {1}":sk=="az"?"{0} v\u0259 {1}":sk=="bn"?"{0} \u098f\u09ac\u0982 {1}":sk=="de"?"{0} und {1}":sk=="el"?"{0} \u03ba\u03b1\u03b9 {1}":sk=="eu"?"{0} eta {1}":sk=="fa"?"{0} \u0648 {1}":sk=="fil"?"{0} at {1}":sk=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":sk=="hi"?"{0} \u0914\u0930 {1}":
sk=="hu"?"{0} \u00e9s {1}":sk=="hy"?"{0} \u0587 {1}":sk=="iw"?"{0} \u05d5-{1}":sk=="ja"?"{0}\u3001{1}":sk=="ka"?"{0} \u10d3\u10d0 {1}":sk=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":sk=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":sk=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":sk=="ko"?"{0} \ubc0f {1}":sk=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":sk=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":sk=="lt"?"{0} ir {1}":sk=="lv"?"{0} un {1}":sk=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":sk=="mn"?"{0}, {1}":sk==
"mr"?"{0} \u0906\u0923\u093f {1}":sk=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":sk=="ne"?"{0} \u0930 {1}":sk=="or"?"{0} \u0b13 {1}":sk=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":sk=="ro"?"{0} \u0219i {1}":sk=="si"?"{0} \u0dc3\u0dc4 {1}":sk=="sl"?"{0} in {1}":sk=="sq"?"{0} dhe {1}":sk=="sv"?"{0} och {1}":sk=="sw"?"{0} na {1}":sk=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":sk=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":sk=="th"?"{0}\u0e41\u0e25\u0e30{1}":sk=="tr"?"{0} ve {1}":sk=="ur"?
"{0} \u0627\u0648\u0631 {1}":sk=="uz"?"{0} va {1}":sk=="vi"?"{0} v\u00e0 {1}":sk=="zh-HK"?"{0}\u53ca{1}":sk=="zu"?"{0} ne-{1}":sk=="af"||sk=="nl"?"{0} en {1}":sk=="ar"||sk=="ar-XB"?"{0} \u0648{1}":sk=="be"||sk=="uk"?"{0} \u0456 {1}":sk=="cs"||sk=="sk"?"{0} a\u00a0{1}":sk=="et"||sk=="fi"?"{0} ja {1}":sk=="fr"||sk=="fr-CA"?"{0} et {1}":sk=="id"||sk=="ms"?"{0} dan {1}":sk=="zh-CN"||sk=="zh-TW"?"{0}\u548c{1}":sk=="da"||sk=="is"||sk=="no"?"{0} og {1}":sk=="es"||sk=="es-419"||sk=="es-US"?"{0} y {1}":sk==
"bg"||sk=="mk"||sk=="ru"||sk=="sr"?"{0} \u0438 {1}":sk=="en"||sk=="en-GB"||sk=="en-IN"||sk=="en-XA"?"{0} and {1}":sk=="gl"||sk=="it"||sk=="pt-BR"||sk=="pt-PT"?"{0} e {1}":"{0} i {1}";sk==="sq"?(K=K.replace("dhe","e"),G=G.replace("dhe","e")):sk==="th"?(w=w.replace("{0}"," {0}"),G=G.replace("{0}","{0} "),G=G.replace("{1}"," {1}")):sk==="ne"?w=",":sk==="zh-CN"?w="":z.includes(sk)&&(w=" ");return e.length<2?e.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(sk)?
e.length===2?G.replace("{0}",e[0]).replace("{1}",e[1]):C.replace("{0}",e[0])+e.slice(1,-1).join(w)+K.replace("{0}",e[e.length-1]):e.join(w)};
GBg=function(e){var z=e.hours||0,C=e.minutes||0,w=e.seconds||0;z=w+C*60+z*3600+(e.days||0)*86400+(e.weeks||0)*604800+(e.months||0)*2629800+(e.years||0)*31557600;if(z<=0)return{hours:0,minutes:0,seconds:0};e=z;z=Math.floor(e/3600);e%=3600;C=Math.floor(e/60);w=Math.floor(e%60);return{hours:z,minutes:C,seconds:w}};
YWm=function(e){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var z=["fr"],C="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(sk)?e.replace(",","\u00a0"):z.includes(sk)?e.replace(",","\u202f"):C.includes(sk)?e.replace(",","."):e};
bx7=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Jug=function(){qWh||(BH=xwN,qWh=new TyE);return qWh};
$w1=function(e){try{return(new _.tO(5)).format(e)}catch(z){}};
gk=function(e){return{thumbnailOverlayDownloadingRenderer:{state:e}}};
lCh=function(){var e=_.kk("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.K4(e),icon:{iconType:"PLAY_ALL"}}}};
Q67=function(e){e=_.jJ(e,2);return sk!=="ru"&&sk!=="es_419"&&sk!=="es-419"&&sk!=="es"&&sk!=="es_US"&&sk!=="es-US"&&sk!=="fr"&&sk!=="pl"&&sk!=="it"&&sk!=="nl"&&sk!=="uk"&&sk!=="fr_CA"&&sk!=="fr-CA"||e===""?e:e[0].toLocaleUpperCase()+e.substring(1)};
aC1=function(e){return function(z){var C=e(),w=_.jJ(z,C.dateFormat);z=_.jJ(z,C.timeFormat);var K=mwL.DATETIMEFORMATS[C.joinerStyle];K=K.replace(/'(?!')/g,"");K=K.replace("{0}",z);K=K.replace("{1}",w);return C.capitalize(K)}};
nVL=function(e){return e?typeof e.seconds==="string"&&(e.nanos===void 0||typeof e.nanos==="number"):!1};
Mw4=function(e){return new Date(Number(e.seconds)*1E3+(e.nanos||0)*1E-6)};
_.jJ=function(e,z){if(typeof e.getTime==="function")e={date:e};else if(nVL(e))e={date:Mw4(e)};else if(typeof nVL(e.timestamp)&&typeof e.i18nInternalSecondsEastOfUtc==="number")e={date:Mw4(e.timestamp),timeZone:y2(-e.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(e));var C=e;e=C.date;C=C.timeZone;z=ru5(z).format(e,C);sk==="zh-TW"&&(e=C?Number(ru5("H").format(e,C)):e.getHours(),z=e<5?z.replace("\u4e0a\u5348","\u51cc\u6668"):e<8?z.replace("\u4e0a\u5348","\u65e9\u4e0a"):e<12?
z.replace("\u4e0a\u5348","\u4e0a\u5348"):e<13?z.replace("\u4e0b\u5348","\u4e2d\u5348"):e<19?z.replace("\u4e0b\u5348","\u4e0b\u5348"):z.replace("\u4e0b\u5348","\u665a\u4e0a"));return z};
ru5=function(e){if(HxL.has(e))return HxL.get(e);var z=Uwg(e);z=vVN(z);IC4!==!0&&(IC4=!0);Wj1=!0;Wj1=!1;z=new cH(z,mwL);HxL.set(e,z);return z};
Uwg=function(e){return(new cH(e,mwL)).patternParts_.map(function(z){return z.type===0?"'"+z.text+"'":z.text}).join("")};
vVN=function(e){return sk==="en"||sk==="es_US"||sk==="es-US"?e:e.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(z,C,w){return"H".repeat(C.length)+w})};
Fj1=function(e,z){P9h||(BH=xwN,P9h=new RJm);var C=P9h;a:if(e=Ljh(e),z=Ljh(z||new Date),e>z)C=e.getTime()-z.getTime()>6048E5?_.jJ(e,1):hJo(e);else{for(var w=0;Oxg(e,12*(w+1))<z;)++w;if(w>0)C=C.format(-w,0);else{for(w=0;Oxg(e,w+1)<z;)++w;if(w>0)C=C.format(-w,2);else{e=z.getTime()-e.getTime();z=_.b(EVg);for(w=z.next();!w.done;w=z.next()){w=w.value;var K=w.unit,G=Math.floor(e/w.unitDuration);if(G>=(w.threshold===void 0?1:w.threshold)){C=C.format(-G,K);break a}}C=C.format(-0,7)}}}return C};
Ljh=function(e){if(typeof e.getTime==="function")return e;if(nVL(e))return Mw4(e);throw Error("Mf`"+JSON.stringify(e));};
Oxg=function(e,z){for(var C=0,w;;++C)if(w=new Date(e.getFullYear(),e.getMonth()+z,e.getDate()-C,e.getHours(),e.getMinutes(),e.getSeconds()),w.getMonth()===(e.getMonth()+z)%12)return w};
_.AO=function(e){return{runs:[{text:e}]}};
_.Zd=function(e){if(e&&e.simpleText)return e.simpleText;var z="";if(e&&e.runs)for(var C=0;C<e.runs.length;C++)e.runs[C].text&&(z+=e.runs[C].text);return z};
fCE=function(e,z,C,w){return e.videoEntity&&!e.policyEntity&&C!=="DOWNLOAD_STATE_FAILED"?[gk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:rk(e.policyEntity)&&z!=="TRANSFER_STATE_FAILED"&&z!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?z==="TRANSFER_STATE_PAUSED_BY_USER"?[gk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.HH(z)?[gk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:e.videoEntity.lengthSeconds?Vws(e.videoEntity.lengthSeconds,w):[]:
[gk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Vws=function(e,z){var C=[{thumbnailOverlayTimeStatusRenderer:{text:_.K4(Xkg({seconds:e})),style:"DEFAULT"}}];z&&(e=z<=0||e<=0?0:z>=e?100:Math.ceil(z*100/e),e>0&&C.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:e}}));return C};
SW4=function(e,z,C,w,K){if(z==="TRANSFER_STATE_UNKNOWN"||!e)return{};if(_.HH(z)||z==="TRANSFER_STATE_PRE_TRANSFER")var G=[gk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var X,J;if(z==="TRANSFER_STATE_COMPLETE"&&((X=e.mainPlaylistEntity)==null?0:(J=X.videos)==null?0:J.length)){var q;e=(G=e.mainPlaylistEntity)==null?void 0:(q=G.videos)==null?void 0:q.length;G=(G=$w1(e))?{thumbnailOverlayBottomPanelRenderer:{text:_.K4(G),icon:{iconType:"PLAYLISTS"}}}:void 0;G=[lCh(),Object.assign({},
G!=null?G:{})]}else G=[]}a:if(z==="TRANSFER_STATE_PRE_TRANSFER")C=ou(_.kk("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(z==="TRANSFER_STATE_TRANSFER_IN_QUEUE")C=ou(_.kk("WAITING_TO_DOWNLOAD"));else if(_.HH(z))C=Math.floor(C*100).toString(),C=ou(_.kk("DOWNLOADING_PERCENT",{percent:C},"Downloading... "+C+"%"));else{if(w&&(_.M("playlist_is_offline_selector_killswitch")&&(K=_.lh().resolve(_.bk).isNetworkAvailable()),K)){C=NAN(_.kk("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
D4k(w));break a}C=void 0}z=z==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.kk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},G.length?{thumbnailOverlays:G}:{},C?{viewPlaylistText:C}:{viewPlaylistText:_.AO("")},z.length?{badges:z}:{})};
uGg=function(e,z,C,w,K,G){if(z==="TRANSFER_STATE_UNKNOWN"||!e)return{};if(w==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var X=fCE(e,z,w);if(e.videoEntity&&!e.policyEntity&&w!=="DOWNLOAD_STATE_FAILED"){var J=_.kk("WAITING_TO_DOWNLOAD");if(J)return{shortViewCountText:_.AO(J),publishedTimeText:void 0,thumbnailOverlays:X}}if(!rk(e.policyEntity)){G=e.policyEntity&&!V0h(e.policyEntity)?_.kk("DOWNLOAD_EXPIRED",{},"Download expired"):
_.kk("TRANSFER_FAILED",{},"Download failed");var q;if((q=e.policyEntity)==null?0:q.shortMessageForDisabledAction)G=e.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:ou(G),publishedTimeText:void 0,thumbnailOverlays:X}}if(z==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.AO(_.kk("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:X};if(z==="TRANSFER_STATE_FAILED"||z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.AO(_.kk("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:X};if(z==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(q=_.kk("WAITING_TO_DOWNLOAD"),w==="DOWNLOAD_STATE_PAUSED"&&(q=_.kk("DOWNLOAD_PAUSED",{},"Download paused")),q))return{shortViewCountText:_.AO(q),publishedTimeText:void 0,thumbnailOverlays:X};if(_.HH(z))return e=Math.floor(C*100).toString(),{shortViewCountText:_.AO(_.kk("DOWNLOADING_PERCENT",{percent:e},"Downloading... "+e+"%")),publishedTimeText:void 0,thumbnailOverlays:X};z=void 0;e.videoEntity.publishedTimestampMillis&&
(z=new Date,K&&(z=new Date(K)),z=ou(Fj1(new Date(Number(e.videoEntity.publishedTimestampMillis)),z)));K=[];_.M("kevlar_woffle_badge_killswitch")||(K=[{metadataBadgeRenderer:{label:_.kk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var T;e=ou((T=e.videoEntity.localizedStrings)==null?void 0:T.viewCount);return Object.assign({},G?{shortViewCountText:void 0}:{shortViewCountText:e},G?{}:{publishedTimeText:z},{badges:K,thumbnailOverlays:X})};
Dwh=function(e,z){e=e===void 0?dwo:e;switch(z.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:z.payload.playlistId,inviteLinkURL:z.payload.inviteLinkUrl};default:return e}};
Ny8=function(e,z){e=e===void 0?ixL:e;switch(z.type){case "SET_CURRENT_FORM_ID":return z=z.payload.formId,e.currentFormId===z?e:{currentFormId:z,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var C=z.payload;z=C.groupId;C=C.command;if(e.currentFormId){var w=Object.assign({},e.commandsMap);w[z]=C;e=Object.assign({},e,{commandsMap:w})}return e;case "RESET_COMMAND_MAP":return Object.assign({},e,{commandsMap:{}});default:return e}};
Byk=function(e,z){e=e===void 0?s6N:e;switch(z.type){case "UPDATE_CANVAS_MODE":return Object.assign({},e,{currentMode:z.payload.currentMode});default:return e}};
gV4=function(e,z){e=e===void 0?tws:e;switch(z.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},e,{guideIsExpanded:z.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},e,{scrollAtTop:z.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},e,{guideIsVisibleButNotPersistent:z.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},e,{miniplayerIsActive:z.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},e,{singleOptionSurveyIsActive:z.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},e,{slimlineSurveyRatingSelectedIndex:z.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},e,{richGridMiniMode:z.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},e,{richGridItemsPerRow:z.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},e,{richGridSlimItemsPerRow:z.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},e,{richGridContainerWidth:z.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},e,{richGridStyle:z.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},e,{currentPageType:z.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},e,{inlinePreviewIsActive:z.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},e,{inlinePreviewIsEnabled:z.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},e,{darkModeIsEnabled:z.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
e,{miniplayerPlaybackState:z.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},e,{tabGesturesIsActive:z.payload});case "SET_ONLINE_STATUS":return Object.assign({},e,{isOnline:z.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},e,{chipBarIsSticky:z.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},e,{frostedGlassMode:z.payload});default:return e}};
j6g=function(){return _.M("kevlar_disable_theater_mode_persistence")?!1:_.cR("START_IN_THEATER_MODE")};
cug=function(e,z){e=e===void 0?yuk:e;switch(z.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},e,{transcription:z.payload});case "SET_OVERLAY_STATE":return Object.assign({},e,{overlay:z.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return e}};
GA7=function(){return E8(Object.assign({},{continuation:Au7,download:Zx1,canvas:Byk,reportChannelAbuse:pk4,share:eVh,talkToRecs:zV5,ui:gV4,voiceSearch:cug,watch:C28,ypc:w$g,shorts:KyL,radioButtonGroup:Ny8,collabInviteLink:Dwh},oEk))};
X$N=function(){return _.M("web_player_entities_middleware")?new p4(GA7(),[YZ8,bBg]):new p4(GA7(),[YZ8])};
_.eB=function(){J5g||(J5g=X$N());return J5g};
kAL=function(e,z,C){if(e.length)return{titleText:_.K4(z!=null?z:_.kk("DOWNLOADS",void 0,"Downloads")),contents:e.map(function(w){var K=w.videoEntity;w={videoId:K.videoId,title:ou(K.title),shortBylineText:ou(w.channelEntity.title),thumbnail:K.thumbnail};var G=K.videoId?Nq(_.eB().getState(),K.videoId):0;K.videoId&&C?w.navigationEndpoint=_.wk(K.videoId,C,void 0,void 0,G):K.videoId&&(w.navigationEndpoint=d44(K.videoId,G,K.lengthSeconds));K.lengthSeconds&&(w.thumbnailOverlays=Vws(K.lengthSeconds,G));return{playlistPanelVideoRenderer:w}}),
totalVideos:e.length}};
qZo=function(e){return(e=(0,_.de.getValueByKeys)(e,"playlistId"))?{playlistId:e}:null};
xCg=function(){return{}};
Tn5=function(e,z){return new _.RC(function(C,w){e.then(function(K){if(K){if(K=z(K))return C(K);w()}},w)})};
$Ck=function(e){var z,C,w,K=(z=e.contents)==null?void 0:(C=z.twoColumnWatchNextResults)==null?void 0:(w=C.autoplay)==null?void 0:w.autoplay,G,X,J;z=(G=e.contents)==null?void 0:(X=G.twoColumnWatchNextResults)==null?void 0:(J=X.playlist)==null?void 0:J.playlist;return K&&z&&z.playlistId?{rawResponse:e,autoplayRenderer:K,playlistPanelRenderer:z,playlistId:z.playlistId}:null};
Q07=function(e){var z=z===void 0?"UNKNOWN_INTERFACE":z;if(e.length===1)return e[0];var C=lkN[z];if(C){C=new RegExp(C);for(var w=_.b(e),K=w.next();!K.done;K=w.next())if(K=K.value,C.exec(K))return K}var G=[];Object.entries(lkN).forEach(function(X){var J=_.b(X);X=J.next().value;J=J.next().value;z!==X&&G.push(J)});
C=new RegExp(G.join("|"));e.sort(function(X,J){return X.length-J.length});
w=_.b(e);for(K=w.next();!K.done;K=w.next())if(K=K.value,!C.exec(K))return K;return e[0]};
_.zU=function(e){return"/youtubei/v1/"+Q07(e)};
_.CW=function(e,z){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:e}}},z!==void 0?{durationHintMs:z}:{})}};
_.wP=function(e,z){return _.CW(_.AO(e),z)};
mC5=function(e,z){var C={mode:"NORMAL"};e&&(C.autoplayVideo=e.navigationEndpoint,C.nextButtonVideo=e.navigationEndpoint);z&&(C.previousButtonVideo=z.navigationEndpoint);return C};
MN5=function(e,z,C){if(!C||!C.sets)return{sets:[mC5(e,z)]};var w=C.sets.find(function(X){return X.mode==="NORMAL"}),K=(0,_.de.unsafeClone)(C);
if(!w)return K.sets.push(mC5(e,z)),K;if(!e)return C;w=_.de.getValueByKeys.apply(null,[w].concat(_.s_(akL)));var G=_.de.getValueByKeys.apply(null,[e].concat(_.s_(nEE)));if(w===G)return C;K.sets=K.sets.filter(function(X){return X.mode!=="NORMAL"});
K.sets.push(mC5(e,z));return K};
r5g=function(e){return!!e.playlistPanelVideoRenderer&&!e.playlistPanelVideoRenderer.unplayableText};
HBE=function(e){return!!e.playlistPanelVideoRenderer&&!!e.playlistPanelVideoRenderer.title};
UCo=function(e,z){if(z.contents&&!(e>=z.contents.length)&&(e=z.contents.slice(e).find(r5g)))return e.playlistPanelVideoRenderer};
vE4=function(e,z){if(z.contents)return(z=z.contents.find(function(C){return!!C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.videoId===e}))?z.playlistPanelVideoRenderer:void 0};
IkN=function(e,z){return z.contents?z.contents.findIndex(function(C){return!!C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.videoId===e}):-1};
Wy1=function(e,z){return z.contents?z.contents.findIndex(function(C){return!!C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.playlistSetVideoId===e}):-1};
P2o=function(e,z){e.contents&&z!==-1&&e.contents.splice(z,1).length===1&&e.totalVideos!==void 0&&(--e.totalVideos,delete e.videoCountText)};
_.RV7=function(e){var z=[];if(!e||!e.contents)return z;e=_.b(e.contents);for(var C=e.next();!C.done;C=e.next())C=C.value,C.playlistPanelVideoRenderer&&C.playlistPanelVideoRenderer.videoId&&z.push(C.playlistPanelVideoRenderer.videoId);return z};
_.Lyk=function(e){if(e&&e.contents)return(e=e.contents.find(function(z){return!!z.playlistPanelVideoRenderer&&!!z.playlistPanelVideoRenderer.selected})||e.contents[e.currentIndex])?e.playlistPanelVideoRenderer:void 0};
oX4=function(e,z,C,w,K,G,X){K=K===void 0?!1:K;G=G===void 0?!1:G;X=X===void 0?!1:X;if(e.contents&&e.contents.length!==0){w&&(e.contents=e.contents.filter(w));w=e.contents.length;for(var J=0;J<w;J++){var q=e.contents[J].playlistPanelVideoRenderer;q&&(J===z?(G&&delete q.menu,q.indexText=_.AO("\u25b6")):K||e.isInfinite||q.indexText===void 0?delete q.indexText:q.indexText=_.AO((J+1+C).toString()))}e.currentIndex=z+C;X&&(delete e.videoCountText,e.totalVideos=w)}};
_.KW=function(e){e=G$1(e);if(e){var z=e.length;var C=-94%z;C<0&&(C=z+C);e=e.slice(z-C)+e.slice(0,z-C)}else e="";C="";for(z=0;z<e.length&&e[z]!==Yj1;z++)C+=e[z];return C};
_.bTE=function(e,z){var C=document.body;z=z===void 0?function(J){return J}:z;
var w,K=null;e=_.b(e);for(w=e.next();!w.done;w=e.next()){var G=w.value;w="div";G[2]&&(w=z(G[2]));w=document.createElement(w);K||(K=w);var X=G[0];G=G[1];X&&(w.id=z(X));if(G)for(G=_.b(G),X=G.next();!X.done;X=G.next())w.classList.add(z(X.value));C.appendChild(w);C=w}return[K,C]};
XU7=function(e,z){for(var C="",w=0;w<z;w++)C+=e.charAt(Math.floor(Math.random()*e.length));return C};
og=function(e){return XU7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",e)};
GU=function(e){return XU7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e)};
Y5=function(e){return XU7("0123456789",e)};
JBo=function(){var e=performance.now(),z=new Date;var C="2."+z.getFullYear()+String(z.getMonth()+1).padStart(2,"0")+String(z.getDate()).padStart(2,"0");for(var w,K=Math.floor(Math.random()*11)+15,G=[],X=0;X<K;X++)G.push(Math.floor(Math.random()*26476865)+24547720);w=G.join(",");var J=og(10),q=og(100),T=og(102),Q=og(106),m=og(108),a=og(11),n=og(1140),H=og(123),I=og(14),L=og(16),h=og(1900),E=og(23),N=og(26),D=og(34),g=og(397),y=og(44),Z=og(5),YN=og(72),Jk=og(74),v1=og(75),lg=og(88),M5=og(91),fo="rr2---sn-q4fzen7r rr4---sn-t0a7ln7d rr1---sn-q4flrnes rr1---sn-4g5lznl6 rr3---sn-5hne6nzd rr2---sn-q4flrnld rr5---sn-q4flrnez rr5---sn-q4flrnl7 rr5---sn-q4fzen7y rr4---sn-q4flrn7r rr5---sn-q4flrney rr1---sn-q4fzen7s rr4---sn-4g5edndk rr2---sn-q4fl6nz7 rr3---sn-q4fl6nde rr4---sn-5hne6nzk rr4---sn-t0a7sn7d rr3---sn-q4fl6n6r rr1---sn-q4fzene7 rr2---sn-q4fl6n6d".split(" ");
var ug=fo[Math.floor(Math.random()*fo.length)];var sE=(new Date("2010-01-01")).getTime();var w6=(new Date(sE+Math.random()*((new Date).getTime()-sE))).toISOString().split("T")[0];for(var qY,y1=[],Qa=0;Qa<4;Qa++)y1.push(Math.floor(Math.random()*100));qY=y1.join(".");var Ha=Number(Y5(5)),OU=Number(Y5(6)),ab=Number(Y5(7)),Pa=Number(Y5(9)),$N=Y5(1),N5=Y5(10),$L=Y5(16),Ba=Y5(19),r6=Y5(2),eE=Y5(20),q1=Y5(21),g6=Y5(3),lo=Y5(4),mc=Y5(5),ob=Y5(6),Ak=Y5(7),wf=Y5(8),$a=Y5(9);var CY=XU7("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var nv=[GU(5),GU(5),GU(5)].join("%2C"),sq=[Y5(3),Y5(5),Y5(5)].join("%2C"),k2=GU(0),aM=GU(1),jS=GU(10),Wl=GU(108),b$=GU(11),wp=GU(12),MG=GU(13),D0=GU(14),r9=GU(15),Fg=GU(16),ML=GU(17),P1=GU(18),dL=GU(19),jh=GU(2),UU=GU(20),Uq=GU(22),fY=GU(23),Oq=GU(24),Lg=GU(266),Ih=GU(3),gf=GU(30),BL=GU(34),ng=GU(35),A0=GU(36),yw=GU(4),tt=GU(40),cC=GU(43),bp=GU(47),rQ=GU(5),fh=GU(6),gG=GU(7),UL=GU(75),To=GU(8),h_=GU(80),n4=GU(9),d5="https://www."+GU(12)+".com",OD={},Sl={},j1={},d2={},yK={},ED={},Ft={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:w}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:C},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+GU(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:C},{key:"client.name",value:"WEB"},{key:"client.fexp",value:w}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:q1+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+GU(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:tt,ypcGetOfflineUpsellEndpoint:{params:h_}},trackingParams:ng+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&cnr="+r6+"&ratebypass=yes&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&c=WEB&txp="+Ak+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:OU,width:640,height:360,lastModified:$L,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Ak,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+sq+"&mn="+
nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&cnr="+r6+"&ratebypass=yes&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&c=WEB&txp="+Ak+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Wl+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:OU,width:1280,
height:720,lastModified:$L,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Ak,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+sq+"&mn="+nv+"&ms="+
nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+$a+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:ab,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:$a,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ab,approxDurationMs:Ak},{itag:248,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+sq+"&mn="+nv+"&ms="+nv+"&mv="+
aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+$a+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:ab,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:$a,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ab,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:399,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+$a+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:ab,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:$a,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:ab,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:136,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+$a+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:ab,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:$a,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:OU,approxDurationMs:Ak},{itag:247,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+sq+"&mn="+
nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+$a+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:ab,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:$a,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:398,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+$a+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:ab,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:$a,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:135,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:OU,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:OU,approxDurationMs:Ak},{itag:244,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+sq+"&mn="+
nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Wl+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:OU,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:397,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:OU,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:134,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:OU,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:OU,highReplication:!0,approxDurationMs:Ak},{itag:243,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:OU,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:396,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:OU,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:133,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:OU,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:OU,approxDurationMs:Ak},{itag:242,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+sq+"&mn="+
nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:OU,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:395,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:OU,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:OU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:160,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:OU,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ha,approxDurationMs:Ak},{itag:278,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+sq+"&mn="+
nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/webm; codecs="vp9"',bitrate:OU,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ha,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:394,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&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="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=video%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Ha,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Ha,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ak},{itag:140,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=audio%2Fmp4&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:OU,
initRange:{start:"0",end:"631"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:OU,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Ak,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+
r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=audio%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+Ak+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:Ha,initRange:{start:"0",end:"265"},indexRange:{start:g6,
end:lo},lastModified:$L,contentLength:Ak,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ha,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Ak,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=audio%2Fwebm&ns="+
Oq+"&gir="+Ih+"&clen="+Ak+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:Ha,initRange:{start:"0",end:"265"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:Ak,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Ha,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Ak,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+ug+".googlevideo.com/videoplayback?expire="+N5+"&ei="+E+"&ip="+qY+"&id=o-AF"+cC+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+sq+"&mn="+nv+"&ms="+nv+"&mv="+aM+"&mvi="+$N+"&pl="+r6+"&initcwndbps="+Ak+"&siu="+$N+"&spc="+y+"&vprv="+$N+"&svpuc="+$N+"&mime=audio%2Fwebm&ns="+Oq+"&gir="+Ih+"&clen="+wf+"&dur="+wf+"&lmt="+$L+"&mt="+N5+"&fvip=3&keepalive="+Ih+"&c=WEB&txp="+
Ak+"&n="+Fg+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+q+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+m,mimeType:'audio/webm; codecs="opus"',bitrate:OU,initRange:{start:"0",end:"265"},indexRange:{start:g6,end:lo},lastModified:$L,contentLength:wf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:OU,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Ak,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="+$a+"&docid="+a+"&ei="+E+"&feature="+J+"&fexp="+k2+"&ns="+jh+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+aM+"&el="+jS+"&len="+lo+"&of="+Uq+
"&uga="+r6+"&vm="+Lg},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+$a+"&docid="+a+"&ei="+E+"&feature="+J+"&fexp="+k2+"&ns="+jh+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+aM+"&el="+jS+"&len="+lo+"&of="+Uq+"&uga="+r6+"&vm="+Lg},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+$a+"&docid="+a+"&ei="+E+"&feature="+J+"&fexp="+k2+"&ns="+jh+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
aM+"&el="+jS+"&len="+lo+"&of="+Uq+"&uga="+r6+"&vm="+Lg},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+E+"&m="+lg+"&oid="+Uq+"&plid="+L+"&pltype="+gG+"&ptchn="+Uq+"&ptk="+I+"&video_id="+a},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+$a+"&docid="+a+"&ei="+E+"&event="+D0+"&feature="+J+"&fexp="+k2+"&ns="+jh+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+aM},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
Fg+"&ver=2&cmt=1."+g6+"&fmt="+g6+"&fs=0&rt="+mc+"&euri&lact="+g6+"&cl="+$a+"&mos="+$N+"&volume=100&cbrand="+rQ+"&cbr="+fh+"&cbrver="+qY+"&c=WEB&cver="+C+"&cplayer=UNIPLAYER&cos="+n4+"&cosver="+Ak+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+r6+"&len="+wf+"&fexp="+nv+"&feature=g-high-rec&afmt="+g6+"&muted=0&conn=1&docid="+a+"&ei="+E+"&plid="+L+"&vm="+GU(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
a+"&caps="+Ih+"&opi="+$a+"&xoaf="+$N+"&hl="+jh+"&ip="+qY+"&ipbits="+$N+"&expire="+N5+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qY+"&key="+Ih+"&lang="+Z,name:{simpleText:D0},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+a+"&caps="+Ih+"&opi="+$a+"&xoaf="+$N+"&hl="+jh+"&ip="+qY+"&ipbits="+$N+"&expire="+N5+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+qY+"&key="+Ih+"&kind="+Ih+"&lang="+jh,name:{simpleText:yw},
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:b$,title:Fg,lengthSeconds:"1155",keywords:[gG,P1,P1,UU],channelId:Oq,isOwnerViewing:!1,shortDescription:rQ,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+"G&rs="+BL,width:168,height:94},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+
"G&rs="+BL,width:196,height:110},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+"G&rs="+D,width:246,height:138},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+"G&rs="+D,width:336,height:188},{url:"https://i.ytimg.com/vi/"+a+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Ak,author:MG,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Ak,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Uq+"/featured_channel.jpg?v="+To,width:40,height:40}]},trackingParams:ng+"=",navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"/channel/"+Oq,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Oq}},channelName:MG,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Fg}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Oq,showPreferences:!1,subscribedButtonText:{runs:[{text:n4}]},unsubscribedButtonText:{runs:[{text:r9}]},
trackingParams:ng+"=",unsubscribeButtonText:{runs:[{text:n4}]},serviceEndpoints:[{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Oq],params:To}},{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:tt,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:ng+"=",dialogMessages:[{runs:[{text:To},
{text:dL},{text:n4}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:r9}]},serviceEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Oq],params:To}},accessibility:{label:Fg},trackingParams:ng+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:P1}]},accessibility:{label:b$},
trackingParams:ng+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:D0}},unsubscribeAccessibility:{accessibilityData:{label:yw}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:wf},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Oq],
params:To}},unsubscribeCommand:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Oq],params:To}},addToWatchLaterCommand:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:b$,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:b$}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+a+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+A0+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+b$,width:1280,
height:720},title:{simpleText:fh},description:{simpleText:ML},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+D0,externalChannelId:Oq,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:Ak,category:"Travel & Events",publishDate:w6,ownerChannelName:MG,uploadDate:w6}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:r9},trackingParams:ng+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:tt,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:ng+"="}}],headerText:{simpleText:To},icon:{infoCardIconRenderer:{trackingParams:ng+"="}},closeButton:{infoCardIconRenderer:{trackingParams:ng+"="}},trackingParams:ng+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:ng+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+b$+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:CY,interpreterSafeUrl:(OD.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+gf+".js",OD),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:yw},{text:gG,bold:!0}]},endpoint:{clickTrackingParams:tt,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:ng+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:yw}]},actionButton:{buttonRenderer:{text:{runs:[{text:r9}]},navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+a,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
a,target:"TARGET_NEW_WINDOW"}},trackingParams:ng+"="}},trackingParams:ng+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+YN+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+YN+"=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:Ak,endMs:Ak,title:{accessibility:{accessibilityData:{label:fh}},simpleText:rQ},metadata:{simpleText:gG},callToAction:{simpleText:fh},dismiss:{simpleText:Fg},endpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"/channel/"+Oq,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Oq}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:P1}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Oq,showPreferences:!1,
subscribedButtonText:{runs:[{text:D0}]},unsubscribedButtonText:{runs:[{text:P1}]},trackingParams:ng+"=",unsubscribeButtonText:{runs:[{text:MG}]},serviceEndpoints:[{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Oq],params:To}},{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:tt,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:ng+
"=",dialogMessages:[{runs:[{text:To},{text:wp},{text:D0}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:r9}]},serviceEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Oq],params:To}},accessibility:{label:dL},trackingParams:ng+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dL}]},
accessibility:{label:UU},trackingParams:ng+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ML}},unsubscribeAccessibility:{accessibilityData:{label:jS}}}},trackingParams:ng+"=",isSubscribe:!0,id:eE}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+"G&rs="+D,width:168,height:94},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+"G&rs="+BL,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+"G&rs="+D,width:246,height:138},{url:"https://i.ytimg.com/vi/"+a+"/hqdefault.jpg?sqp=-oaymwE"+A0+"G&rs="+D,width:336,height:188},{url:"https://i.ytimg.com/vi/"+a+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Ak,endMs:Ak,title:{accessibility:{accessibilityData:{label:b$}},simpleText:jS},metadata:{simpleText:b$},endpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
b$,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:b$,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+ug+".googlevideo.com/videoplayback?source=youtube&oeis="+$N+"&c=WEB&oad="+lo+"&ovd="+lo+"&oaad="+mc+"&oavd="+mc+"&ocs="+g6+"&oewis="+$N+"&oputc="+$N+"&ofpcc="+$N+"&siu="+$N+"&msp="+$N+"&odepv="+$N+
"&id=o-AF"+cC+"&ip="+qY+"&initcwndbps="+Ak+"&mt="+N5+"&oweuc="+k2}}}}},trackingParams:ng+"=",id:eE,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:r9}},simpleText:fh},style:"DEFAULT"}}]}}],startMs:Ak,trackingParams:ng+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:$N,offsetEndMilliseconds:mc},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";ord="+N5+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+g6+";dc_sk="+$N+";dc_ctype="+r6+";dc_ref=http://www.youtube.com/video/"+b$+";dc_pubid="+$N+";dc_btype=23?gclid="+M5+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+$N+"&ns="+$N+"&event="+$N+"&device="+$N+"&content_v="+a+"&el="+jS+"&ei="+E+"&devicever="+C+"&bti="+Ak+"&format="+ob+"&break_type="+$N+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+$N+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qY+"&slot_pos="+$N+"&slot_len="+$N+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+sq+"&ad_len="+mc+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
b$+"&aqi="+E+"&ad_rmp="+$N+"&sli="+$N}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+
";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+Ak+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&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"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&ctype="+g6+"&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"+
n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_engaged_view&ctype="+g6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+";dc_rui="+$N+";dc_exteid="+Ba+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+T+"&sig="+fY+"&ad_cpn=[AD_CPN]&id="+fh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+fh+"&dc_pubid="+$N+"&dc_exteid="+eE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+T+"&sig="+fY+"&ad_cpn=[AD_CPN]&id="+fh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+$N},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+fh+"&avm="+$N+"&dc_pubid="+$N+"&dc_exteid="+
eE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&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="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
T+"&sig="+fY+"&ad_cpn=[AD_CPN]&id="+fh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+$N},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+fh+"&dc_pubid="+$N+"&dc_exteid="+eE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:tt,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+
g6+"&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/"+a+"/mqdefault.jpg",width:320,height:180}]},trackingParams:ng+"="},trackingParams:ng+
"=",templatedCountdown:{templatedAdText:{text:P1,isTemplated:!0,trackingParams:ng+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:ML,isTemplated:!1,trackingParams:ng+"="},trackingParams:ng+"="}},trackingParams:ng+"=",skipOffsetMilliseconds:5E3}},trackingParams:ng+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Fg},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ng+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:D0,isTemplated:!1,trackingParams:ng+"="},trackingParams:ng+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:MG,isTemplated:!0,trackingParams:ng+"="}},trackingParams:ng+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:tt,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Sl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+jh+"&origin=www.youtube.com&ata_theme="+yw,Sl),trackingParams:ng+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:ng+"="}},hoverText:{runs:[{text:rQ}]},trackingParams:ng+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bp+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ng+"="},headline:{text:dL,isTemplated:!1,trackingParams:ng+"="},description:{text:P1,
trackingParams:ng+"="},actionButton:{buttonRenderer:{text:{simpleText:fh},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ng+"="}},startMs:$N,trackingParams:ng+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:D0},elementId:ML}},elementId:fh,trackingParams:ng+"=",legacyInfoCardVastExtension:yw,sodarExtensionData:{siub:gG,bgub:n4,scs:fh,bgp:n4},externalVideoId:b$,adLayoutLoggingData:{serializedAdServingDataEntry:jS},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bp+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ng+"="},
headline:{text:P1,isTemplated:!1,trackingParams:ng+"="},description:{text:Fg,isTemplated:!1,trackingParams:ng+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:n4},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+";dc_rui="+$N+";dc_exteid="+
eE+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+
$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:ng+"="}},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+$a+";dc_trk_cid="+
$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ng+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:ng+"="},abandonCommands:{commands:[{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&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="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+
$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:tt,commandExecutorCommand:{commands:[{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:rQ,isTemplated:!1,trackingParams:ng+
"="},trackingParams:ng+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gG},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+Ak+";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="+$a+";dc_trk_cid="+$a+";ord="+N5+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+g6+";dc_sk="+$N+";dc_ctype="+r6+";dc_ref=http://www.youtube.com/video/"+b$+";dc_pubid="+$N+";dc_btype=23?gclid="+M5+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+$N+"&ns="+$N+"&event="+$N+"&device="+$N+"&content_v="+a+"&el="+jS+"&ei="+E+"&devicever="+C+"&bti="+Ak+"&format="+ob+"&break_type="+$N+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+$N+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+qY+"&slot_pos="+$N+"&slot_len="+$N+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
sq+"&ad_len="+mc+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+b$+"&aqi="+E+"&ad_rmp="+$N+"&sli="+$N}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+
N+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+Ak+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&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"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&ctype="+g6+"&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"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_engaged_view&ctype="+g6+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+T+"&sig="+fY+"&ad_cpn=[AD_CPN]&id="+
fh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+fh+"&dc_pubid="+$N+"&dc_exteid="+eE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+T+
"&sig="+fY+"&ad_cpn=[AD_CPN]&id="+fh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+$N},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+fh+"&avm="+$N+"&dc_pubid="+$N+"&dc_exteid="+eE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&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="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+T+"&sig="+fY+"&ad_cpn=[AD_CPN]&id="+fh+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+$N},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+fh+"&dc_pubid="+$N+"&dc_exteid="+eE+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+ob+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+
g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&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/"+a+"/mqdefault.jpg",width:320,height:180}]},trackingParams:ng+"="},trackingParams:ng+"=",templatedCountdown:{templatedAdText:{text:Fg,isTemplated:!0,trackingParams:ng+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:b$,isTemplated:!1,trackingParams:ng+"="},trackingParams:ng+"="}},
trackingParams:ng+"=",skipOffsetMilliseconds:5E3}},trackingParams:ng+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:P1},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:D0,isTemplated:!1,trackingParams:ng+"="},trackingParams:ng+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:P1,
isTemplated:!0,trackingParams:ng+"="}},trackingParams:ng+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:tt,openPopupAction:{popup:{aboutThisAdRenderer:{url:(j1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+jh+"&origin=www.youtube.com&ata_theme="+yw,j1),trackingParams:ng+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:ng+"="}},hoverText:{runs:[{text:jS}]},trackingParams:ng+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ng+"="},headline:{text:rQ,isTemplated:!1,trackingParams:ng+"="},description:{text:n4,trackingParams:ng+"="},actionButton:{buttonRenderer:{text:{simpleText:rQ},navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ng+"="}},startMs:$N,trackingParams:ng+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:dL},elementId:rQ}},elementId:D0,trackingParams:ng+"=",legacyInfoCardVastExtension:P1,sodarExtensionData:{siub:MG,bgub:fh,scs:To,bgp:MG},externalVideoId:b$,adLayoutLoggingData:{serializedAdServingDataEntry:jS},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ng+"="},headline:{text:UU,
isTemplated:!1,trackingParams:ng+"="},description:{text:rQ,isTemplated:!1,trackingParams:ng+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:To},navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:ng+"="}},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+
$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:ng+"="},abandonCommands:{commands:[{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&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="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+r6+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:tt,commandExecutorCommand:{commands:[{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:wp,isTemplated:!1,trackingParams:ng+"="},trackingParams:ng+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:D0},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+$N+";dc_exteid="+eE+";met="+$N+";ecn"+$N+"="+$N+";etm1="+$N+";eid1="+
Ak+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:To}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:n4}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:mc,offsetEndMilliseconds:ob},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+r6+"&token=ALHj"+g+"&index="+$N+"&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="+C+"&m_pos_ms="+mc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gG}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:ob,offsetEndMilliseconds:ob},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+g6+"&token=ALHj"+g+"&index="+$N+"&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="+
C+"&m_pos_ms="+ob}},adSlotLoggingData:{serializedSlotAdServingDataEntry:To}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ob,offsetEndMilliseconds:ob},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+g6+"&token=ALHj"+g+"&index="+$N+"&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="+
C+"&m_pos_ms="+ob}},adSlotLoggingData:{serializedSlotAdServingDataEntry:r9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ob,offsetEndMilliseconds:ob},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+g6+"&token=ALHj"+g+"&index="+$N+"&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="+
C+"&m_pos_ms="+ob}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wp}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ob,offsetEndMilliseconds:r6},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+g6+"&token=ALHj"+g+"&index="+$N+"&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="+
C+"&m_pos_ms="+ob}},adSlotLoggingData:{serializedSlotAdServingDataEntry:P1}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:r6,offsetEndMilliseconds:r6},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+E+"&m_pos="+r6+"&token=ALHj"+g+"&index="+$N+"&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="+
C+"&m_pos_ms="+r6}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:b$,isTemplated:!1,trackingParams:ng+"="},description:{text:n4,isTemplated:!1,trackingParams:ng+"="},actionButton:{buttonRenderer:{text:{simpleText:fh},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bp+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:ng+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+v1+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:ng+"="},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+
";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:tt,openPopupAction:{popup:{aboutThisAdRenderer:{url:(d2.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+jh+"&origin=www.youtube.com&ata_theme="+yw,d2),trackingParams:ng+"="}},popupType:"DIALOG"}},trackingParams:ng+"="}},hoverText:{runs:[{text:rQ}]},trackingParams:ng+"="}},adVideoId:b$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:UU},associatedCompositePlayerBytesLayoutId:Fg}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:dL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:UU,isTemplated:!1,trackingParams:ng+"="},description:{text:dL,isTemplated:!1,trackingParams:ng+"="},actionButton:{buttonRenderer:{text:{simpleText:dL},navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+
H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ng+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jk+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:ng+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+UL+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:ng+"="},navigationEndpoint:{clickTrackingParams:tt,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+
$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:tt,openPopupAction:{popup:{aboutThisAdRenderer:{url:(yK.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+jh+"&origin=www.youtube.com&ata_theme="+yw,yK),trackingParams:ng+"="}},popupType:"DIALOG"}},trackingParams:ng+"="}},
hoverText:{runs:[{text:rQ}]},trackingParams:ng+"="}},adVideoId:b$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+b$+"&cid="+N+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:r9},associatedCompositePlayerBytesLayoutId:Fg}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:r9,
isTemplated:!1,trackingParams:ng+"="},description:{text:fh,isTemplated:!1,trackingParams:ng+"="},actionButton:{buttonRenderer:{text:{simpleText:gG},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+
r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+
D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ng+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bp+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:ng+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+v1+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:ng+
"="},navigationEndpoint:{clickTrackingParams:tt,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+$a+";dc_trk_cid="+$a+";dc_dbm_token="+m+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+$N+";ord="+$a+";dc_rui="+$N+";dc_exteid="+eE+";dc_av="+$N+";dc_sk="+$N+";dc_ctype="+r6+";dc_pubid="+$N+";dc_btype=3?gclid="+M5+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+n+"____________"+H+"AxAA&ase=2&num="+$N+"&cid="+N+"&ad_cpn=%5BAD_CPN%5D&sig="+D+"&adurl="+d5+"&label=video_click_to_advertiser_site&ctype="+g6+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ng+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:tt,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ED.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+h+"&hl="+jh+"&origin=www.youtube.com&ata_theme="+yw,ED),trackingParams:ng+"="}},popupType:"DIALOG"}},trackingParams:ng+
"="}},hoverText:{runs:[{text:r9}]},trackingParams:ng+"="}},adVideoId:b$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+n+"____________"+H+"AxAA&sigh="+a+"&cid="+N+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:yw},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Fg}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gG}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:gf,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:gf,command:{innertubeCommand:{clickTrackingParams:tt,ypcGetOfflineUpsellEndpoint:{params:h_}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:ng+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:N5,nanos:Pa}}}},Hf=JSON.stringify(Ft),N2=performance.now()-e;return{objectRepresentation:Ft,jsonRepresentation:Hf,generationTime:N2}};
k$g=function(e,z){if(e===z)return!0;if(!e||!z||typeof e!==typeof z)return!1;if(e instanceof Array&&z instanceof Array){if(e.length!==z.length)return!1;for(var C=0;C<e.length;C++)if(!k$g(e[C],z[C]))return!1;return!0}if(typeof e==="object"&&typeof z==="object"&&e&&z){for(C in e)if(!(C in z&&k$g(e[C],z[C])))return!1;for(var w in z)if(!(w in e))return!1;return!0}return!1};
_.XN=function(){if(!b6){b6=new Wo(new qj4);var e=_.n0("client_streamz_web_flush_count",-1);e!==-1&&(b6.invocationLimit=e)}return b6};
JU=function(e,z,C,w){if(e===z)return!0;if(Array.isArray(e)&&Array.isArray(z)){if(e.length!==z.length)return!1;for(var K=0;K<e.length;K++)if(!JU(e[K],z[K],C,w))return!1;return!0}if(e instanceof Set||z instanceof Set){if(e instanceof Set&&z instanceof Set){if(e.size!==z.size)return!1;w=_.b(e.values());for(K=w.next();!K.done;K=w.next())if(!z.has(K.value))return!1;return!0}return!1}if(e instanceof Function){if(w)return!0;e.name===""&&_.yG(Error("Qf"),"ERROR");return!1}if(e instanceof Date&&z instanceof
Date)return e.getTime()===z.getTime();if(e instanceof Object&&z instanceof Object){if(xd4(e)&&xd4(z))try{return e.equals(z)}catch(X){_.yG(Error("Rf`"+X),"ERROR")}K=Object.getOwnPropertyNames(e).filter(function(X){return C?e[X]!==void 0:!0});
var G=Object.getOwnPropertyNames(z).filter(function(X){return C?z[X]!==void 0:!0});
if(K.length!==G.length)return!1;K=_.b(K);for(G=K.next();!G.done;G=K.next())if(G=G.value,!JU(e[G],z[G],C,w))return!1;return!0}return!1};
xd4=function(e){e=Object.getPrototypeOf(e).equals;return e instanceof Function&&e.length===1};
_.l5h=function(){return _.k(function(e){if(e.nextAddress==1)return TiN!==2?e.jumpTo(2):e.yield($dN(),3);e.nextAddress!=2&&(TiN=e.yieldResult);return e.return(TiN)})};
_.a5L=function(){return _.k(function(e){if(e.nextAddress==1)return _.M("ab_pl_man")?Qw5!==2?e.jumpTo(2):e.yield(mdE(),3):e.return(1);e.nextAddress!=2&&(Qw5=e.yieldResult);return e.return(Qw5)})};
rBL=function(){return _.k(function(e){if(e.nextAddress==1)return _.M("ab_fk_sk_cl")?nXm!==2?e.jumpTo(2):e.yield(MG7(),3):e.return(1);e.nextAddress!=2&&(nXm=e.yieldResult);return e.return(nXm)})};
_.vX1=function(){return _.k(function(e){if(e.nextAddress==1)return _.M("ab_det_apb_b")?HT1!==2?e.jumpTo(2):e.yield(Udm(),3):e.return(1);e.nextAddress!=2&&(HT1=e.yieldResult);return e.return(HT1)})};
PTg=function(){var e;return _.k(function(z){if(z.nextAddress==1)return z.yield(Promise.all([_.l5h(),_.vX1(),_.a5L(),rBL()]),2);if(z.nextAddress!=3)return I5N()?z.return(!0):z.yield(_.Wlo(),3);e=z.yieldResult;return z.return(e===0)})};
I5N=function(){var e=!1,z=function(C,w){RBg.increment(w,C);C===0&&(e=!0)};
z(_.LlN(),"j.s_");z(TiN,"f.i_");z(HT1,"a.b_");z(Qw5,"p.m_");z(nXm,"i.f_");hB7===2&&(hB7=_.OTg(EX4));z(hB7,"e.h_");_.M("ks_det_gpbl")||z(_.Flg(),"p.i_");_.M("ks_get_o_pp")||z(_.VG4(),"g.o_");_.M("ab_deg_unex_thr")||z(_.f5g(),"a.o_");z(Sjh,"s.t_");_.M("ab_det_sc_inj_enf")&&z(_.uk4(),"s.i_");z(dd7,"d.p_");z(_.Dd7(_.k5),"o.p_");z(_.iTg()===0?0:_.Ni7(),"o.a_");return _.M("debug_sk_em_precheck")?!0:e};
BiL=function(){var e=[].concat(_.s_(sw5));try{var z=JBo();e.push({jsonRepresentation:z.jsonRepresentation,objectRepresentation:z.objectRepresentation})}catch(C){e=[].concat(_.s_(sw5))}return e};
tGo=function(){var e=["adPlacements","adSlots"];try{return e.filter(function(){return!0}).length!==e.length?0:1}catch(z){return 0}};
_.VG4=function(){if(tGo()===0)return 0;var e=JBo(),z=e.objectRepresentation,C=(0,_.de.unsafeClone)(z),w=[];if(z&&typeof z==="object")for(var K in z)w.push(K);else return 4;e=e.objectRepresentation.adPlacements;if(!(e&&e.length>0))return 4;try{if(!k$g(w,Object.getOwnPropertyNames(z)))return 0}catch(G){return 0}return k$g(C,z)?1:0};
_.Dd7=function(e){if(!e||!e.length||typeof e==="string")return 0;for(var z=Object.getOwnPropertyNames(Object.prototype),C=0;C<e.length;C++)for(var w=_.KW(e[C]),K=_.b(z),G=K.next();!G.done;G=K.next())if(w===G.value)return 0;return 1};
gXh=function(e){var z=_.KW(e[1]);if(e[0]===null)return z;e=e[0];for(var C={},w=0;w<e.length;w++){var K=_.KW(e[w]);if(w===0)C[K]=z;else{var G={};G[K]=C;C=G}}return C};
_.iTg=function(){for(var e=_.qp,z=0;z<e.length;z++){var C=gXh(e[z]),w=[];w.push(C);if(w.length===0)return 0}return 1};
_.Ni7=function(){for(var e=_.qp,z={},C=0;C<e.length;z={vjv:void 0},C++){var w=[gXh(e[C])];z.vjv=[];w.forEach(function(K){return function(G){K.vjv[K.vjv.length]=G}}(z));
if(z.vjv.length===0)return 0}return 1};
_.LlN=function(){for(var e=_.b(BiL()),z=e.next();!z.done;z=e.next()){var C=z.value;z=C.jsonRepresentation;C=C.objectRepresentation;try{var w=JSON.parse(z);if(!JU(w,C,!1,!1))return 0}catch(K){return 0}}return 1};
_.uk4=function(){try{var e=_.r3("ab_det_sc_inj_val");e.length===1&&e[0]===""&&(e=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var z=document.querySelectorAll("script"),C=_.b(z),w=C.next();!w.done;w=C.next())for(var K=w.value,G=_.b(e),X=G.next();!X.done;X=G.next()){var J=X.value;z=void 0;if((z=K.textContent)==null?0:z.includes(J))return 0}}catch(q){return 4}return 1};
_.Wlo=function(){var e,z,C,w,K,G,X;return _.k(function(J){switch(J.nextAddress){case 1:_.Iv(J,2),e=_.b(sw5),z=e.next();case 4:if(z.done)return J.return(1);w=C=z.value;K=w.jsonRepresentation;G=w.objectRepresentation;return J.yield((new Response(K,{status:200})).json(),7);case 7:X=J.yieldResult;if(!JU(X,G,!1,!1))return J.return(0);z=e.next();J.jumpTo(4);break;case 2:return _.O_(J),J.return(4)}})};
_.f5g=function(){try{btoa("abc")}catch(e){return 0}return 1};
$dN=function(){var e,z,C,w,K,G,X,J,q,T,Q;return _.k(function(m){switch(m.nextAddress){case 1:_.Iv(m,2),e=_.b(BiL()),z=e.next();case 4:if(z.done)return m.return(1);w=C=z.value;K=w.jsonRepresentation;G=w.objectRepresentation;X=btoa(K);J="data:application/json;base64,"+X;q=new Request(J);Object.defineProperty(q,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(q,"method",{get:function(){return"POST"}});
Object.defineProperty(q,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(q,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(q,"body",{get:function(){return new ReadableStream}});
return m.yield(fetch(q),7);case 7:return T=m.yieldResult,m.yield(T.json(),8);case 8:Q=m.yieldResult;if(!JU(Q,G,!1,!1))return m.return(0);z=e.next();m.jumpTo(4);break;case 2:return _.O_(m),m.return(4)}})};
_.OTg=function(e){if(!e||!e.length||typeof e==="string")return 0;for(var z=function(K){return _.KW(K)},C=2,w=0;w<e.length&&(C=_.jw1(_.bTE(e[w],z)),C!==0);w++);
return C};
_.jw1=function(e){var z=_.b(e);e=z.next().value;z=z.next().value;try{var C=document.createElement("div");document.body.appendChild(C);var w=getComputedStyle(C).display;document.body.removeChild(C);if(w==="none")return 4;var K=getComputedStyle(z).display==="none"?0:1;document.body.removeChild(e);return K}catch(G){return 4}};
MG7=function(){var e,z,C;return _.k(function(w){e=new _.x5;z=document.createElement("button");z.classList.add("ytp-ad-skip-button");z.style.opacity="0";z.style.height="0px";z.style.width="0px";z.style.padding="0px";z.style.border="none";C=function(){z.parentElement&&z.parentElement.removeChild(z)};
z.onclick=function(){e.resolve(0);C()};
document.body.appendChild(z);setTimeout(function(){C();e.resolve(1)},50);
return w.return(e.promise)})};
mdE=function(){var e,z,C,w,K,G,X;return _.k(function(J){e=new _.x5;z=document.createElement("ytd-player");try{document.body.prepend(z)}catch(q){return J.return(4)}C=function(){z.parentElement&&z.parentElement.removeChild(z)};
z.getElementsByTagName("div").length>0?w=z.getElementsByTagName("div")[0]:(w=document.createElement("div"),z.appendChild(w));K=document.createElement("div");w.appendChild(K);G=document.createElement("video");X=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});G.src=_.Dy(_.jg(X));G.ontimeupdate=function(){C();e.resolve(0)};
K.appendChild(G);G.classList.add("html5-main-video");setTimeout(function(){K.classList.add("ad-interrupting")},200);
setTimeout(function(){C();e.resolve(1)},5E3);
return J.return(e.promise)})};
yB1=function(e){var z=JBo().objectRepresentation.playbackTracking;if(z){var C=[],w;C.push(z==null?void 0:(w=z.videostatsPlaybackUrl)==null?void 0:w.baseUrl);var K;C.push(z==null?void 0:(K=z.videostatsDelayplayUrl)==null?void 0:K.baseUrl);var G;C.push(z==null?void 0:(G=z.videostatsWatchtimeUrl)==null?void 0:G.baseUrl);var X;C.push(z==null?void 0:(X=z.ptrackingUrl)==null?void 0:X.baseUrl);var J;C.push(z==null?void 0:(J=z.qoeUrl)==null?void 0:J.baseUrl);var q;C.push(z==null?void 0:(q=z.atrUrl)==null?
void 0:q.baseUrl);z=_.b(C);for(C=z.next();!C.done;C=z.next())if((C=C.value)&&e.test(C))return C.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
cB5=function(e,z){var C,w;return _.k(function(K){switch(K.nextAddress){case 1:C=[],w=0;case 2:if(!(w<3)){K.jumpTo(4);break}return K.yield(fetch(e,{cache:"no-store",method:z}).then(function(G){C.push(G.status)}).catch(function(){C.push(-1)}),3);
case 3:w++;K.jumpTo(2);break;case 4:return K.return(C)}})};
ABg=function(e){return e.domainLookupStart===0&&e.domainLookupEnd===0&&e.connectStart===0&&e.connectEnd===0||e.duration===0};
ZTh=function(e,z,C){C=C===void 0?"GET":C;var w,K,G,X,J,q,T,Q,m,a;return _.k(function(n){if(n.nextAddress==1)return n.yield(Promise.all([cB5(e,C),cB5(z,C)]),2);w=n.yieldResult;K=_.b(w);G=K.next().value;X=K.next().value;J=G;q=X;if(Math.min.apply(Math,_.s_(q))!==Math.max.apply(Math,_.s_(q))||Math.min.apply(Math,_.s_(J))!==Math.max.apply(Math,_.s_(J)))return n.return(2);if(Math.min.apply(Math,_.s_(q))===Math.min.apply(Math,_.s_(J)))return n.return(1);Q=(T=performance.getEntriesByName(e))==null?void 0:
T[0];a=(m=performance.getEntriesByName(z))==null?void 0:m[0];return Q&&a?ABg(a)?n.return(1):ABg(Q)?n.return(0):n.return(1):n.return(2)})};
Udm=function(){var e;return _.k(function(z){var C=[];var w;var K,G,X;(K=w=(K=JBo().objectRepresentation.streamingData)==null?void 0:(G=K.formats)==null?void 0:(X=G[0])==null?void 0:X.url)&&K&&!w.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(K=K.replace("initcwndbps","ctier=L&initcwndbps"),K=K.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),w={testUrl:K,baseUrl:w,method:"GET"}):w=void 0;w&&C.push(w);_.M("ab_net_tp_e")&&C.push({testUrl:_.wL.location.origin+"/ad_companion",baseUrl:_.wL.location.origin+
"/generate_204",method:"OPTIONS"});_.M("ab_fix_creator_view_cnt")&&(C.length=0,(w=yB1(/api\/stats\/atr/))&&C.push({testUrl:_.wL.location.origin+w,baseUrl:_.wL.location.origin+"/generate_204",method:"POST"}));_.M("ad_net_pb_pbp")&&(w=yB1(/api\/stats\/qoe/))&&C.push({testUrl:_.wL.location.origin+w,baseUrl:_.wL.location.origin+"/feed/download",method:"GET"});C=C.length!==0?C[Math.floor(Math.random()*C.length)]:void 0;return(e=C)?z.return(ZTh(e.testUrl,e.baseUrl,e.method)):z.return(4)})};
_.Flg=function(){if(_.wL.qF9===void 0||_.wL.qF9===null||typeof _.wL.qF9!=="function")return 2;try{return _.wL.qF9()===!0?0:1}catch(e){return 0}};
pU1=function(e){switch(e){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.ca(e,"unknown result type")}};
_.eR1=function(e,z){var C=Number(_.j5("CATSTAT",0));if(z.czP===void 0)return C;z=z.czP;e=pU1(e);return C&~(3<<z)|e<<z};
zRN=function(e){var z,C;if((e=(z=e.auxiliaryUi)==null?void 0:(C=z.messageRenderers)==null?void 0:C.bkaEnforcementMessageViewModel)&&e.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return e};
wp8=function(){for(var e=_.b(Object.values(_.CO1)),z=e.next();!z.done;z=e.next())z=z.value,z.kwm&&z.czP&&_.g1("CATSTAT",_.eR1(2,z))};
_.l6=function(e,z){e=_.TU("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",e);(z===void 0?0:z)?_.K9L(e,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.$5().logFlowEvent(e,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Gh5=function(){if(!ovo){if(Polymer.Base){var e=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{e.apply(this,arguments)}catch(m){_.AR(m)}};
var z=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{z.apply(this,arguments)}catch(m){_.AR(m)}};
var C=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{C.apply(this,arguments)}catch(m){_.AR(m)}};
var w=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{w.apply(this,arguments)}catch(m){_.AR(m)}};
var K=Polymer.Base._listen,G=new WeakMap;Polymer.Base._listen=function(m,a,n){var H=function(){try{n.apply(this,arguments)}catch(I){_.AR(I)}};
G.set(n,H);K.call(this,m,a,H)};
var X=Polymer.Base._unlisten;Polymer.Base._unlisten=function(m,a,n){X.call(this,m,a,G.get(n))}}if(Polymer.Async){var J=Polymer.Async,q=J._atEndOfMicrotask;
J._atEndOfMicrotask=function(){try{q.apply(J,arguments)}catch(m){_.AR(m)}}}if(Polymer.RenderStatus){var T=Polymer.RenderStatus,Q=T.afterNextRender;
T.afterNextRender=function(m,a,n){Q.call(T,m,function(){try{a.apply(this,arguments)}catch(H){_.AR(H)}},n)}}ovo=!0}};
_.b9N=function(e){var z=e?_.Pi(e):"";if(z){if(z.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(z.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(z.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(z.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(z.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.M("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(z.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";z=z.toLowerCase();if(z==="/")return"home";if(z==="/channel_memberships")return"channel-memberships-shopfront";if(z.indexOf("/feed/trending")===0)return"trending";if(z.indexOf("/feed/explore")===0)return"explore";if(z.indexOf("/live")===0)return"live";if(z.indexOf("/results")===0)return"search";if(z.indexOf("/sports")===0)return"sports";if(z.indexOf("/fashion")===0||z.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(z))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(z))return _.M("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(z.indexOf("/channel/")===0||z.indexOf("/user/")===0||z.indexOf("/gaming")===0||z.indexOf("/post/")===0)return"channel";if(YD1(e))return"show";if(z==="/playlist"||z.indexOf("/playlist/")===0||z==="/view_play_list"||z.indexOf("/view_play_list/")===0||z.indexOf("/show/")===0)return"playlist";if(z==="/companion_canvas")return"companion-canvas";if(z==="/feed/history"||
z.indexOf("/feed/history/")===0)return"history";if(z==="/new")return"labs";if(z==="/feed/subscriptions")return"subscriptions";if(z.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(z==="/history_controls")return"standalone";if(z.indexOf("/account")===0||z==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(z.indexOf("/paid_memberships")===0||z.indexOf("/refund")===0||z.indexOf("/purchases")===0||z.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(z.indexOf("/product")===
0)return"yts-products";if(z.indexOf("/premium")===0||z.indexOf("/musicpremium")===0)return z.indexOf("/premium/offers")===0||z.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(z==="/cart/checkout"||z==="/cart")return"ypc-checkout";if(z.indexOf("/reporthistory")===0)return _.M("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(z.indexOf("/feed/downloads")===0||z.indexOf("/redeem")===0)return"browse";if(z.indexOf("/hashtag")===0)return"hashtag-landing-page";if(z.indexOf("/handle")===
0)return"handle";if(z.indexOf("/source")===0)return"audio-pivot";if(z.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(z.indexOf("/playables")===0)return"playables";if(z.indexOf("/create/live/join")===0)return"open-in-app";if(z.indexOf("/shorts")===0)return"shorts";if(z.indexOf("/feed/channels")===0)return"subscriptions-channels";var C=e?_.Pi(e):"";C&&C.indexOf("/watch")===0&&_.M("web_watch_enable_learning_journey")?(e=_.YB(e),e=!!e.list&&e.list.indexOf("LJPP")===0):e=!1;if(e)return"learning_journey_watch";
if(_.M("enable_new_page_subtypes_for_ai_companion")&&z==="/feed/courses")return"your-courses"}};
_.Q$=function(e){var z,C;(e=(C=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:C.url)&&(z=_.b9N(e));return z};
YD1=function(e){var z=e?_.Pi(e):"";if(!z)return!1;z=z.toLowerCase();return z.indexOf("/show/")===0||z.indexOf("/playlist")===0&&(e=_.YB(e),e.list&&e.list.indexOf("EL")===0)?!0:!1};
nW=function(e){var z="unknown",C;var w=((C=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:C.webPageType)||"";w?(C=w.toLowerCase(),C.startsWith("web_page_type_")&&(C=C.slice(14))):C=w;C&&Xp4[C.toUpperCase()]?z=Xp4[C.toUpperCase()]:_.r(e,_.mJ)||_.r(e,J_N)?z="browse":_.r(e,_.ag)?z="search":_.r(e,_.N$)&&(z="watch");z==="watch"&&_.Q$(e||null)==="learning_journey_watch"&&(z="learning_journey_watch");z==="unknown"&&_.AX(Error("Tf`"+JSON.stringify({clickTrackingParams:e==null?void 0:e.clickTrackingParams,
commandMetadata:e==null?void 0:e.commandMetadata,allEndpointKeys:Object.keys(e||[])})));return z};
_.Mp=function(e){if(!_.kh7||e)_.kh7=_.LJ();return _.kh7};
_.qD7=function(e){return!!_.r(e,_.N$)||!!_.r(e,_.rP)&&_.M("kevlar_enable_shorts_prefetch")};
_.xNo=function(e,z){e=_.r(e,_.N$)||_.r(e,_.rP);return"v"+e.videoId+(e.playlistId?"-pl"+e.playlistId:"")+(z?"-an1":"")+(e.params?"-pr"+e.params:"")};
_.TH8=function(e){var z=new HJ(_.j5("ONE_PICK_URL",""));z.urlParamMap_.set("hostId",e);(e=_.j5("GAPI_LOCALE"))&&z.urlParamMap_.set("hl",e);(e=_.j5("SESSION_INDEX"))&&z.urlParamMap_.set("authuser",e);(e=_.j5("DELEGATED_SESSION_ID"))&&z.urlParamMap_.set("groupId",e);return z};
lNg=function(){var e=_.lh(),z=e.resolve(_.UG);e=e.resolve(_.vJ);return new $N1(z,e)};
mNL=function(e){if(window.IntersectionObserver)return new Q$N(e,400);throw new TypeError("Vf");};
nvN=function(){var e=Hammer.TouchAction,z=e.prototype.preventDefaults;e.prototype.preventDefaults=function(C){var w=this.actions.indexOf("pan-down")>-1;if(!w)return z.call(this,C);if(!aN1){var K=C.srcEvent;C=C.direction;var G;if((G=this.manager)==null?0:G.session.prevented)K.preventDefault();else if(w&&C&Hammer.DIRECTION_DOWN)return this.preventSrc(K)}}};
Meh=function(e){if(!e||e.size===0)return Hammer.DIRECTION_ALL;if(e.size===2){if(e.has("up")&&e.has("down"))return Hammer.DIRECTION_VERTICAL;if(e.has("right")&&e.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(e.size===1){if(e.has("up"))return Hammer.DIRECTION_UP;if(e.has("down"))return Hammer.DIRECTION_DOWN;if(e.has("right"))return Hammer.DIRECTION_RIGHT;if(e.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.H9m=function(){return r_1?Promise.resolve(r_1):new Promise(function(e,z){var C=self.indexedDB.open("swpushnotificationsdb");C.onerror=z;C.onsuccess=function(){var w=C.result;if(w.objectStoreNames.contains("swpushnotificationsstore"))r_1=w,e(r_1);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.H9m()};
C.onupgradeneeded=UN4})};
UN4=function(e){e=e.target.result;e.objectStoreNames.contains("swpushnotificationsstore")&&e.deleteObjectStore("swpushnotificationsstore");e.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.WJ=function(e,z,C){var w=C&&C>0?C:0;C=w?Date.now()+w*1E3:0;if((w=w?_.Ig.getLocalStorage():_.Ig.getSessionStorage())&&window.JSON){typeof z!=="string"&&(z=JSON.stringify(z,void 0));try{w.set(e,z,C)}catch(K){w.remove(e)}}};
_.PJ=function(e){var z=_.Ig.getSessionStorage(),C=_.Ig.getLocalStorage();if(!z&&!C||!window.JSON)return null;try{var w=z.get(e)}catch(K){}if(typeof w!=="string")try{w=C.get(e)}catch(K){}if(typeof w!=="string")return null;try{w=JSON.parse(w,void 0)}catch(K){}return w};
_.Rg=function(e){try{var z=_.Ig.getSessionStorage(),C=_.Ig.getLocalStorage();z&&z.remove(e);C&&C.remove(e)}catch(w){}};
IN7=function(e){var z=vvk(),C;return _.k(function(w){switch(w.nextAddress){case 1:return _.Iv(w,2),w.yield(e.match(z,{cacheName:"yt-appshell-assets"}),4);case 4:C=w.yieldResult;_.Yj(w,3);break;case 2:_.O_(w);case 3:return w.return(C)}})};
vvk=function(){var e=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?W91.registration.scope:POo;e.endsWith("/")&&(e=e.slice(0,-1));return e+"/app_shell_home"};
RRL=function(e){e.map(function(z){return z.source}).join("|")};
_.L9g=function(e){return _.k(function(z){return z.return(IN7(e))})};
hR1=function(){var e=window.caches,z;return _.k(function(C){if(C.nextAddress==1)return C.yield(_.L9g(e),2);z=C.yieldResult;return C.return(!!z)})};
utN=function(){_.k(function(e){if(e.nextAddress==1){if(O91)return e.jumpTo(0);O91=!0;if(_.M("enable_system_health_primes_monitoring"))return _.vi(Evm,3E4),F9h(),e.return();if(!(Math.random()<_.n0("web_system_health_fraction")))return e.jumpTo(0);VeE={heightPixels:screen.height,widthPixels:screen.width};LW&&!isNaN(LW.jsHeapSizeLimit)&&(VeE.memoryTotalKbytes=String(Math.round(LW.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(VeE.devicePixelRatio=window.devicePixelRatio);return e.yield(fNN(),4)}_.vi(Evm,
3E4);return e.yield(SD7(),0)})};
fNN=function(){return _.k(function(e){if(e.nextAddress==1)return hU.intersectionObserverPresent="IntersectionObserver"in window,hU.serviceWorkerPresent="serviceWorker"in navigator,hU.webSharePresent="share"in navigator,hU.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,hU.cacheStoragePresent="caches"in window,hU.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,hU.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
hU.webkitTemporaryStoragePresent="webkitTemporaryStorage"in OG&&OG.webkitTemporaryStorage&&"queryUsageAndQuota"in OG.webkitTemporaryStorage,hU.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",e.yield(H4o(),2);hU.indexedDbPresent=e.yieldResult;hU.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;hU.broadcastChannelPresent="BroadcastChannel"in window;hU.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(hU.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,hU.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.E_(e)})};
Evm=function(){var e=9E4+Math.random()*2E3;_.aC()>e||(_.M("enable_system_health_primes_monitoring")?F9h():SD7())};
SD7=function(){var e;return _.k(function(z){if(z.nextAddress==1)return z.yield(dN4(),2);e=z.yieldResult;_.gm("systemHealthCaptured",e);_.E_(z)})};
F9h=function(){var e={metric:{}},z=DN8();z.networkEvents.length&&(e.metric.networkEvents=i9g(z));_.gm("systemHealthCaptured",e)};
dN4=function(){var e,z,C,w,K,G,X,J,q,T;return _.k(function(Q){switch(Q.nextAddress){case 1:e={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)};z=window.screen;_.M("enable_is_extended_monitoring")&&z&&"isExtended"in z&&(e.isExtended=!!z.isExtended);C={metric:{staticContext:VeE,dynamicContext:e,webMetric:NHm,webApiSupport:hU}};
if(w=_.Pr())C.csn=w;LW&&(C.metric.webMetric.currentHeapKbytes=Math.round(LW.usedJSHeapSize/1E3));window.matchMedia&&(C.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,C.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,C.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in OG&&typeof OG.getBattery==="function")){Q.jumpTo(2);break}return Q.yield(OG.getBattery(),3);case 3:if(K=
Q.yieldResult)C.metric.dynamicContext.chargingStatus=K.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(C.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(hU.storageEstimatePresent)return Q.yield(navigator.storage.estimate(),8);if(!hU.webkitTemporaryStoragePresent){Q.jumpTo(5);break}return Q.yield(s$N(),7);case 7:G=Q.yieldResult;Q.jumpTo(5);break;case 8:G=Q.yieldResult;case 5:return C.metric.dynamicContext.deviceStorageQuotaMbytes=((X=G)==null?0:X.quota)?String(Math.round(G.quota/
1048576/10)*10):"-1",C.metric.dynamicContext.deviceStorageUsageMbytes=((J=G)==null?0:J.usage)?String(Math.round(G.usage/1048576/10)*10):"-1",q=C.metric.dynamicContext,Q.yield(hR1(),9);case 9:return q.hasAppShell=Q.yieldResult,T=DN8(),T.networkEvents.length&&(C.metric.networkEvents=i9g(T)),Q.return(C)}})};
s$N=function(){return new Promise(function(e){var z;hU.webkitTemporaryStoragePresent&&(z=OG.webkitTemporaryStorage)!=null&&z.queryUsageAndQuota?OG.webkitTemporaryStorage.queryUsageAndQuota(function(C,w){e({usage:C,quota:w})}):e(void 0)})};
_.EG=function(e){e&=16777215;e=[(e&16711680)>>16,(e&65280)>>8,e&255];return BH4(e[0],e[1],e[2])};
_.FN=function(e){e=[(e&16711680)>>>16,(e&65280)>>>8,e&255,(e&4278190080)>>>24];if(!_.te1(e,function(z){return z===(z&255)}))throw Error("Wf`"+e.join(","));
return"rgba("+e[0]+","+e[1]+","+e[2]+","+(e[3]/255).toFixed(3)+")"};
_.gvE=function(e){return[(e&16711680)>>>16,(e&65280)>>>8,e&255]};
_.j$g=function(e){e=e.map(function(z){z/=255;return z<=.03928?z/12.92:Math.pow((z+.05)/1.05,2.4)});
return e[0]*.2126+e[1]*.7152+e[2]*.0722};
V$=function(e,z){e=_.gvE(e);return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+z+")"};
fW=function(e){return(e&4278190080)>>>24===0?V$(e,"1"):_.FN(e)};
_.y_L=function(){try{return!!self.localStorage}catch(e){return!1}};
pp7=function(){if(c_1())_.AX(Error("Xf"));else{var e=document.createElement("iframe");e.style.display="none";var z=z===void 0?window.location.href:z;var C=_.Af(_.j5("PERSIST_IDENTITY_IFRAME_URL"));z=C?C:(new URL(z)).host.indexOf("studio")===0?_.nJ(A_L,"persist_identity"):_.nJ(Z97,"persist_identity");_.w5(e,1,z);e.id="persist_identity";var w;(w=document.body)==null||w.appendChild(e)}};
c_1=function(){var e=ec1;e||(e=document.querySelector("#persist_identity"));return e};
zcs=function(){var e=!1;try{e=!!window.sessionStorage.getItem("session_logininfo")}catch(z){e=!0}return(_.j5("INNERTUBE_CLIENT_NAME")==="WEB"||_.j5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&e};
Cc4=function(e,z){if(!zcs())return!1;z||(z=_.j5("LOGIN_INFO"));return z?(e.session_logininfo=z,!0):!1};
Kvg=function(e,z){e=e===void 0?!1:e;if((z===void 0||!z)&&wK1!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.cR("LOG_STICKINESS",!1)){z=_.Pr();var C=_.Ip(),w={identityStickinessData:{initialState:wK1}};z&&C&&_.yu(z,C,w)}if(z=c_1())if(C=z.src?(new URL(z.src)).origin:"*",e){var K;(K=z.contentWindow)==null||K.postMessage({action:"clear"},C)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(e=window.sessionStorage.getItem("session_logininfo"))){var G;(G=z.contentWindow)==null||G.postMessage({loginInfo:e},C)}};
_.SB=function(e){e=e===void 0?!0:e;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.g1("LOGIN_INFO",""),e&&window.sessionStorage.setItem("from_switch_account","1"),Kvg(!0,e)}catch(z){}};
oU1=function(e){e&&(e.startsWith("https://accounts.google.com/AddSession")?_.SB():e.startsWith("https://accounts.google.com/ServiceLogin")?_.SB():e.startsWith("https://myaccount.google.com")&&_.Cj(e).getPath().endsWith("/youtubeoptions")&&_.SB())};
u6=function(e,z){oU1(e);if(_.cR("LOGGED_IN",!0)&&zcs()){var C=oms(e);C==null&&(C={});Cc4(C,z)&&_.gN(e,C)}};
G_L=function(){function e(z){for(z=z.target;z&&z.nodeName!=="A";)if(z=z.parentNode,!(z&&z instanceof HTMLElement))return;if(z&&!z.hasAttribute("download")&&z.getAttribute("rel")!=="external"&&z.href)return z.href}
document.addEventListener("mousedown",function(z){z.button!==0&&(z=e(z))&&u6(z)});
document.addEventListener("click",function(z){(z=e(z))&&u6(z)})};
XKN=function(){var e=new Yah;try{if(_.cR("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(J){e.increment(5,!1);return}if(_.j5("LOGIN_INFO")){var z=b$m?b$m:window.location;_.j5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&pp7();var C=oms(z.href);C==null&&(C={});var w=C.session_logininfo,K=Number(window.sessionStorage.getItem("stickiness_reload")),G=w===_.j5("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
K>=2||G)K>=2?e.increment(2,G):G?e.increment(7,G):window.sessionStorage.getItem("session_logininfo")||(e.increment(3,G),wK1="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.j5("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.j5("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))e.increment(4,G),window.sessionStorage.removeItem("stickiness_reload");
else if(K<2){window.sessionStorage.setItem("stickiness_reload",String(K+1));var X=z.href;X=_.jy(X,"sttick");u6(X,window.sessionStorage.getItem("session_logininfo"));X=_.bh(X,{sttick:K});e.increment(K,G);_.vo1(z,X)}}else e.increment(6,!1)}else _.SB(!1)}catch(J){}};
_.dP=function(e,z,C,w,K){z=z===void 0?{}:z;C=C===void 0?"":C;w=w===void 0?window:w;e=_.XF(e,z);u6(e);C=_.gw(e+C,K);_.vo1(w.location,C)};
JrE=function(e){if(e.urlEndpoint){if(e=_.YB(e.urlEndpoint.url),e.adurl)return TN(e.adurl)}else if(e.watchEndpoint)return"//www.youtube.com/watch?v="+e.watchEndpoint.videoId;return null};
k_k=function(e){if(!e||!e.reportingPings)return null;var z={};e.reportingPings.forEach(function(C){C.pingType in z?z[C.pingType].push(C.url):z[C.pingType]=[C.url]});
return{adpings:Awh(z)}};
_.i6=function(e){e=e===void 0?!1:e;var z=_.Tj(),C="USER_INTERFACE_THEME_LIGHT";z.getFlag(165)?C="USER_INTERFACE_THEME_DARK":z.getFlag(174)?C="USER_INTERFACE_THEME_LIGHT":_.Dc()&&(C="USER_INTERFACE_THEME_DARK");return e?C:qah()||C};
_.xQE=function(){return!_.M("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Dc=function(){return _.xQE()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Np=function(){var e=_.Tj();return _.xQE()&&!e.getFlag(165)&&!e.getFlag(174)};
qah=function(){var e=e===void 0?window.location.href:e;if(_.M("kevlar_disable_theme_param"))return null;var z=_.Pi(e);if(_.Tb5(z))return"USER_INTERFACE_THEME_DARK";try{var C=_.YB(e).theme;return $Qg.get(C)||null}catch(w){}return null};
_.Tb5=function(e){return _.M("enable_dark_theme_only_on_shorts")?!(e==null||!e.startsWith("/shorts/")):!1};
_.mQ7=function(e,z,C,w,K){z=z===void 0?!1:z;C=C===void 0?!1:C;var G=_.j5("INNERTUBE_CONTEXT");if(!G)return _.yG(Error("ag")),{};G=(0,_.de.unsafeClone)(G);_.M("web_no_tracking_params_in_shell_killswitch")||delete G.clickTracking;G.client||(G.client={});var X=G.client;X.clientName==="MWEB"&&X.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(X.clientFormFactor=_.j5("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");X.screenWidthPoints=window.innerWidth;X.screenHeightPoints=window.innerHeight;X.screenPixelDensity=
Math.round(window.devicePixelRatio||1);X.screenDensityFloat=window.devicePixelRatio||1;X.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());X.userInterfaceTheme=_.i6();if(!z){var J=_.gks();J&&(X.connectionType=J);_.M("web_log_effective_connection_type")&&(J=ygE())&&(G.client.effectiveConnectionType=J)}var q;if(_.M("web_log_memory_total_kbytes")&&((q=_.wL.navigator)==null?0:q.deviceMemory)){var T;q=(T=_.wL.navigator)==null?void 0:T.deviceMemory;G.client.memoryTotalKbytes=""+q*1E6}z&&w&&!_.M("web_it_context_set_original_url_ks")&&
(X.originalUrl=lRm(_.wL.location.href,w).toString());_.M("web_gcf_hashes_innertube")&&(J=KJg())&&(T=J.coldConfigData,q=J.coldHashData,J=J.hotHashData,G.client.configInfo=G.client.configInfo||{},T&&(G.client.configInfo.coldConfigData=T),q&&(G.client.configInfo.coldHashData=q),J&&(G.client.configInfo.hotHashData=J));T=_.YB(_.wL.location.href);!_.M("web_populate_internal_geo_killswitch")&&T.internalcountrycode&&(X.internalGeo=T.internalcountrycode);!_.M("web_populate_client_screen_killswitch")&&K&&(X.clientScreen=
K);X.clientName==="MWEB"||X.clientName==="WEB"?(X.mainAppWebInfo||(X.mainAppWebInfo={}),X.mainAppWebInfo.graftUrl=w||_.wL.location.href,_.M("kevlar_woffle")&&_.sG.instance&&(w=_.sG.instance,X.mainAppWebInfo.pwaInstallabilityStatus=!w.appInstalledEventFired&&w.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),X.mainAppWebInfo.webDisplayMode=cOE(),X.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):X.clientName==="TVHTML5"&&
(!_.M("web_lr_app_quality_killswitch")&&(w=_.j5("LIVING_ROOM_APP_QUALITY"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{appQuality:w})),w=_.j5("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{certificationScope:w}));!_.M("web_populate_time_zone_itc_killswitch")&&(w=BQE())&&(X.timeZone=w);(w=kjs())?X.experimentsToken=w:delete X.experimentsToken;X=q6g();w=_.Q7N();w=(0,_.de.getValues)(w.tokenJars);G.request=Object.assign({},G.request,{internalExperimentFlags:X,consistencyTokenJars:w});
!_.M("web_prequest_context_killswitch")&&(X=_.j5("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(G.request.externalPrequestContext=X);w=_.Tj();X=w.getFlag(58);w=w.get("gsml","");G.user=Object.assign({},G.user);X&&(G.user.enableSafetyMode=X);w&&(G.user.lockedSafetyMode=!0);_.M("warm_op_csn_cleanup")?C&&(z=_.Pr())&&(G.clientScreenNonce=z):!z&&(z=_.Pr())&&(G.clientScreenNonce=z);e&&(G.clickTracking={clickTrackingParams:e});if(e=_.pd("yt.mdx.remote.remoteClient_"))G.remoteClient=e;_.BJ.getInstance().setLocationOnInnerTubeContext(G);
try{var Q=rgh(),m=Q.bid;delete Q.bid;G.adSignalsInfo={params:[],bid:m};for(var a=_.b(Object.entries(Q)),n=a.next();!n.done;n=a.next()){var H=_.b(n.value),I=H.next().value,L=H.next().value;Q=I;m=L;e=void 0;(e=G.adSignalsInfo.params)==null||e.push({key:Q,value:""+m})}var h,E;if(((h=G.client)==null?void 0:h.clientName)==="TVHTML5"||((E=G.client)==null?void 0:E.clientName)==="TVHTML5_UNPLUGGED"){var N=_.j5("INNERTUBE_CONTEXT");N.adSignalsInfo&&(G.adSignalsInfo.advertisingId=N.adSignalsInfo.advertisingId,
G.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",G.adSignalsInfo.limitAdTracking=N.adSignalsInfo.limitAdTracking)}}catch(D){_.yG(D)}return G};
_.tU=function(){return{isShellLoad:_.cR("IS_SHELL_LOAD",!1)}};
nUE=function(){navigator.serviceWorker.getRegistrations().then(function(e){e.forEach(aR7)})};
aR7=function(e){e&&_.MIg(rr1,e.scope)};
_.MIg=function(e,z){z={scope:z||_.Mv("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.F2(e),z)};
gP=function(e,z,C,w){if(z&&z.serializedYpcCujLoggingParams){if(C){var K={};K.transactionErrorType=C;w&&(K.errorMessage=w);z.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:K}}}C={};C.ypcCujContext=z;e=_.TU("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",e,C);_.$5().logFlowEvent(e,"FLOW_TYPE_YPC_ACQUISITION")}};
_.H$4=function(e,z,C,w){var K={};K.serializedTransactionFlowLoggingParams=z;C&&(K.errorType=C);w&&(K.errorMessage=w);_.gm(e,K);_.ju()};
_.UQ5=function(e){e&&_.H$4("transactionFlowStarted",e)};
_.vU8=function(e){e&&_.H$4("transactionFlowCancelled",e)};
_.jB=function(e,z,C){z&&_.H$4("transactionFlowFailed",z,e,C)};
IR8=function(e){var z=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");z&&(z.inert=e)};
_.y$=function(){this.megabloxUrl_=null};
_.cJ=function(e){try{var z=WvL==null?void 0:WvL.composedPath(e)}catch(C){z=e.composedPath?e.composedPath():[]}return z&&z.length>0?z:e.composedPath?e.composedPath():[]};
_.AU=function(e){return _.cJ(e)[0]};
Zc=function(e){return e instanceof ShadowRoot?ShadowRoot:e instanceof DocumentFragment?DocumentFragment:e instanceof Document?Document:HTMLElement};
PcL=function(e){if(e instanceof Element)return Element.prototype;if(e instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+e);};
Rck=function(e,z){return _.M("sunnydom_native_scoped_query_selectors")?PcL(e).querySelector.call(e,z):Zc(e).prototype.querySelector.call(e,z)};
Lvs=function(e,z){return _.M("sunnydom_native_scoped_query_selectors")?PcL(e).querySelectorAll.call(e,z):Zc(e).prototype.querySelectorAll.call(e,z)};
hcg=function(e){var z,C,w;return(w=(C=(z=e.parentElement)!=null?z:e.__shady_native_parentElement)!=null?C:e.__shady_parentElement)!=null?w:null};
O$5=function(e){var z,C,w;return(w=(C=(z=e.parentNode)!=null?z:e.__shady_native_parentNode)!=null?C:e.__shady_parentNode)!=null?w:null};
EU7=function(e){var z,C,w;return(w=(C=(z=e.nextSibling)!=null?z:e.__shady_native_nextSibling)!=null?C:e.__shady_nextSibling)!=null?w:null};
Fvg=function(e){var z,C,w;return(w=(C=(z=e.previousSibling)!=null?z:e.__shady_native_previousSibling)!=null?C:e.__shady_previousSibling)!=null?w:null};
VI1=function(e){var z,C,w;return(w=(C=(z=e.nextElementSibling)!=null?z:e.__shady_native_nextElementSibling)!=null?C:e.__shady_nextElementSibling)!=null?w:null};
fRN=function(e){var z,C,w;return(w=(C=(z=e.previousElementSibling)!=null?z:e.__shady_native_previousElementSibling)!=null?C:e.__shady_previousElementSibling)!=null?w:null};
Sas=function(e){var z,C,w;return new Set([].concat(_.s_((z=e.children)!=null?z:[]),_.s_((C=e.__shady_native_children)!=null?C:[]),_.s_((w=e.__shady_children)!=null?w:[])))};
uON=function(e){var z,C,w;return new Set([].concat(_.s_((z=e.childNodes)!=null?z:[]),_.s_((C=e.__shady_native_childNodes)!=null?C:[]),_.s_((w=e.__shady_childNodes)!=null?w:[])))};
_.pW=function(e){if(!(e instanceof Element))return null;e=e.classList?Array.from(e.classList):void 0;if(!e)return null;var z=e.indexOf("style-scope");return z>-1&&z+1<e.length?e[z+1]:null};
eL=function(e){if(!(e instanceof HTMLElement))return null;var z=e&&(e.$$||e.polymerController)?e.tagName.toLowerCase():null;return z?z:_.pW(e)};
dQ1=function(e,z){return _.M("sunnydom_native_scoped_query_selectors")?e+".style-scope."+z:e.replace(/[^a-z]*[^\s]+/g,function(C){return C+".style-scope."+z})};
DQs=function(e,z){return z?e.split(",").map(function(C){return dQ1(C.trim(),z)}).join(", "):e};
_.z8=function(e){var z,C,w,K;return(K=(w=(C=(z=e.root)!=null?z:e.shadowRoot)!=null?C:e.__shady_native_shadowRoot)!=null?w:e.__shady_shadowRoot)!=null?K:e};
i$7=function(e){var z,C,w;return(w=(C=(z=e.__shady_parentNode)!=null?z:e.__shady_native_parentNode)!=null?C:e.parentNode)!=null?w:null};
Nbg=function(e){var z,C;return(C=(z=O$5(e))!=null?z:e.host)!=null?C:null};
s7L=function(e){for(;e&&!(e instanceof HTMLElement);)e=Nbg(e);return e};
Bb4=function(e){var z=s7L(e);return e===z?_.pW(e):z?eL(z):null};
tIo=function(e){return(e=s7L(e))?eL(e):null};
gUL=function(e){if(e instanceof Comment)return!1;if(e instanceof Text){var z,C;if(((C=(z=e.textContent)==null?void 0:z.trim())!=null?C:"")==="")return!1}return!0};
CP=function(e,z,C){var w=z(e);for(C=C===void 0?tIo(e):C;w&&(Bb4(w)!==C||!gUL(w));)e=w,w=z(e);return w};
j71=function(e,z,C){if(!z)return null;e=tIo(e);return Bb4(z)===e&&gUL(z)?z:CP(z,C,e)};
yr4=function(e){return CP(e,i$7,_.pW(e))};
cr4=function(e){return CP(e,VI1)};
Arg=function(e){return CP(e,EU7)};
Z$k=function(e){return CP(e,fRN)};
pKL=function(e){return CP(e,Fvg)};
eE5=function(e){return j71(e,e.firstChild||null,EU7)};
zEg=function(e){var z,C,w;var K=(w=(C=(z=e.firstElementChild)!=null?z:e.__shady_native_firstElementChild)!=null?C:e.__shady_firstElementChild)!=null?w:null;return j71(e,K,VI1)};
CWk=function(e){var z,C,w;var K=(w=(C=(z=e.lastChild)!=null?z:e.__shady_native_lastChild)!=null?C:e.__shady_lastChild)!=null?w:null;return j71(e,K,Fvg)};
wO1=function(e){var z,C,w;var K=(w=(C=(z=e.lastElementChild)!=null?z:e.__shady_native_lastElementChild)!=null?C:e.__shady_lastElementChild)!=null?w:null;return j71(e,K,fRN)};
KqL=function(e){var z=tIo(e);return Array.from(uON(e)).filter(function(C){return Bb4(C)===z})};
o0k=function(e){var z=eL(e);return Array.from(Sas(e)).filter(function(C){return _.pW(C)===z})};
GMo=function(e){if(!e)return null;var z=_.pW(e);if(!z){var C;return(C=Node.prototype.getRootNode)==null?void 0:C.call(e)}z=z.toUpperCase();for(e=hcg(e);e&&e.tagName!==z;)e=hcg(e);return e?_.z8(e):null};
_.o3=function(e){var z=_.M(e);eJ["counterfactuals."+e]=String(z);return z};
_.G8=function(e,z,C){if(e instanceof HTMLElement&&_.pW(e)===C){var w=Array.from(e.classList).indexOf("style-scope");if(w===-1)e.classList.add("style-scope"),e.classList.add(z);else if(!(w+1>=e.classList.length)){w=e.classList[w+1];var K,G;e==null||(K=e.classList)==null||(G=K.replace)==null||G.call(K,w,z)}}if(e instanceof HTMLElement||e instanceof DocumentFragment)for(K=_.b(Sas(e)),G=K.next();!G.done;G=K.next())_.G8(G.value,z,C);return e};
Y$=function(e,z){if(e instanceof HTMLElement&&_.pW(e)===z){var C=Array.from(e.classList).indexOf("style-scope");C===-1||C+1>=e.classList.length||e.classList.remove("style-scope",e.classList[C+1])}if(e instanceof HTMLElement||e instanceof DocumentFragment){C=_.b(e.children);for(var w=C.next();!w.done;w=C.next())Y$(w.value,z)}return e};
_.YdE=function(e,z){return Zc(e).prototype.appendChild.call(e,z)};
bDm=function(e,z){if(e===z)return!0;e=uON(e);return Array.from(e).some(function(C){return bDm(C,z)})};
_.XC=function(e,z){if(e instanceof bE)return e;(z==null?0:z.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(e,"ownerDocument")&&Object.defineProperty(e,"ownerDocument",{get:function(){return window.document}});
return new bE(e)};
Jzm=function(){var e=bE.prototype,z=[].concat(_.s_(XOg?[]:["getRootNode"]),["setAttribute","removeAttribute"]);z=_.b(z);for(var C=z.next(),w={};!C.done;w={method$jscomp$53:void 0},C=z.next())w.method$jscomp$53=C.value,e[w.method$jscomp$53]=function(K){return function(){return this.host[K.method$jscomp$53].apply(this.host,arguments)}}(w)};
qdm=function(){var e=bE.prototype,z=[].concat(_.s_(XOg?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.s_(kMs?[]:["querySelector","querySelectorAll"]));z=_.b(z);for(var C=z.next(),w={};!C.done;w={method$jscomp$54:void 0},C=z.next())w.method$jscomp$54=C.value,e[w.method$jscomp$54]=function(K){return function(){return this.root[K.method$jscomp$54].apply(this.root,arguments)}}(w)};
$Mg=function(){var e=bE.prototype,z=[].concat(_.s_(xMh?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.s_(TFL?[]:["parentNode"]));z=_.b(z);for(var C=z.next(),w={};!C.done;w={prop$jscomp$67:void 0},C=z.next())w.prop$jscomp$67=C.value,Object.defineProperty(e,w.prop$jscomp$67,{get:function(K){return function(){return this.host[K.prop$jscomp$67]}}(w),
configurable:!0})};
mMk=function(){var e=bE.prototype,z=["activeElement"].concat(_.s_(xMh?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.s_(lQ4?[]:["children"]),_.s_(Qz8?[]:["lastChild"]));z=_.b(z);for(var C=z.next(),w={};!C.done;w={prop$jscomp$68:void 0},C=z.next())w.prop$jscomp$68=C.value,Object.defineProperty(e,w.prop$jscomp$68,{get:function(K){return function(){return this.root[K.prop$jscomp$68]}}(w),
configurable:!0})};
aQ7=function(){for(var e=bE.prototype,z=_.b(["innerHTML","textContent"]),C=z.next(),w={};!C.done;w={prop$jscomp$69:void 0},C=z.next())w.prop$jscomp$69=C.value,Object.defineProperty(e,w.prop$jscomp$69,{get:function(K){return function(){return this.root[K.prop$jscomp$69]}}(w),
set:function(K){return function(G){this.root[K.prop$jscomp$69]=G}}(w),
configurable:!0})};
n0g=function(e){var z=bE.prototype;e=_.b(Object.entries(e));for(var C=e.next(),w={};!C.done;w={fn$jscomp$402:void 0},C=e.next()){var K=_.b(C.value);C=K.next().value;K=K.next().value;w.fn$jscomp$402=K;z[C]=function(G){return function(){return G.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.s_(arguments)))}}(w)}};
rzE=function(){for(var e=bE.prototype,z=_.b(Object.entries(MU5)),C=z.next(),w={};!C.done;w={fn$jscomp$403:void 0},C=z.next()){var K=_.b(C.value);C=K.next().value;K=K.next().value;w.fn$jscomp$403=K;Object.defineProperty(e,C,{get:function(G){return function(){return G.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.s_(arguments)))}}(w),
configurable:!0})}};
_.JK=function(e){return e instanceof HD4||e instanceof Document?e:new HD4(e)};
UME=function(){for(var e=HD4.prototype,z=_.b("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),C=z.next(),w={};!C.done;w={method$jscomp$55:void 0},C=z.next())w.method$jscomp$55=C.value,e[w.method$jscomp$55]=function(K){return function(){return HTMLElement.prototype[K.method$jscomp$55].call.apply(HTMLElement.prototype[K.method$jscomp$55],[this.node].concat(_.s_(arguments)))}}(w)};
v08=function(){for(var e=HD4.prototype,z=_.b("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),C=z.next(),w={};!C.done;w={prop$jscomp$70:void 0},C=z.next())w.prop$jscomp$70=C.value,Object.defineProperty(e,w.prop$jscomp$70,{get:function(K){return function(){var G;return(G=this.node["__shady_native_"+K.prop$jscomp$70])!=null?G:this.node[K.prop$jscomp$70]}}(w),
configurable:!0})};
_.k$=function(e,z,C){C===void 0&&(C=!e.classList.contains(z));C?e.classList.add(z):e.classList.remove(z)};
_.qH=function(e,z,C){C===void 0&&(C=!e.hasAttribute(z));if(z==="class")throw Error("fg");C?_.JK(e).setAttribute(z,""):_.JK(e).removeAttribute(z)};
IQ8=function(e){return(e.localName!=="slot"?[]:(0,_.x$)(e).assignedNodes({flatten:!0})).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
_.Wqg=function(e){return(e=_.XC(e).querySelector("slot"))&&e.localName==="slot"?IQ8(e):[]};
_.T8=function(e,z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(e,z)};
$$=function(e,z){var C=z.bind(e);return function(w){C(w,w.detail)}};
_.lE=function(e,z){var C=PW8.get(e);C||(C=new WeakMap,PW8.set(e,C));if(C.has(z))return C.get(z);if(_.M("web_fi_listen_disable_bound_fn_helper")){var w=z.bind(e);e=function(K){w(K,K==null?void 0:K.detail)}}else e=$$(e,z);
C.set(z,e);return e};
hE7=function(e,z){REk(e);e.created[Lqm].push(z)};
REk=function(e){if(!e.created||!e.created[Lqm]){var z=e.created,C=z?[z]:[];e.created=function(){for(var w=_.b(C),K=w.next();!K.done;K=w.next())K.value.apply(this)};
e.created[Lqm]=C}};
ODg=function(e){return function(){var z=_.yL.apply(0,arguments);return function(C,w,K){e.apply(null,_.s_(z))(C,w,K)}}};
E04=function(){return function(){var e=_.yL.apply(0,arguments);return function(z,C,w){mJg.apply(null,_.s_(e))(z,C,w)}}};
_.W=function(e){return E04()(e)};
_.P=function(){return ODg(rLE).apply(null,_.s_(_.yL.apply(0,arguments)))};
_.Qi=function(e){return _.M("pbcm_fi_listen_decorators")?Fqs(e):ODg(nl8)(e)};
Fqs=function(e){return function(z,C){hE7(z,function(){var w=this[C],K=_.M("web_fi_listen_disable_bound_fn_helper")?function(G){w(G,G.detail)}.bind(this):$$(this,w);
VU7.has(e)?yr(this.hostElement,e,K):this.hostElement.addEventListener(e,K)})}};
_.mi=function(){return ODg(M27).apply(null,_.s_(_.yL.apply(0,arguments)))};
_.F=function(e){e=e===void 0?{}:e;return ODg(agN)(e)};
_.a3=function(e){if(e.hostElement&&e!==e.hostElement){var z=_.mb(e.hostElement);z=e.renderIdom?z:z.shadowRoot}z||(e=e.root,z=e instanceof Node?_.mb(e):null);return z};
_.nP=function(e){return fQ4?SdL(e):function(z,C){Object.defineProperty(z,C,{get:function(){var w;return(w=_.a3(this))==null?void 0:w.querySelector(e)},
enumerable:!0,configurable:!0})}};
SdL=function(e){return function(z,C){Object.defineProperty(z,C,{get:function(){var w,K=(w=_.XC(this.hostElement))==null?void 0:w.querySelector(e);if(K)return K;var G;return(G=_.a3(this))==null?void 0:G.querySelector(e)},
enumerable:!0,configurable:!0})}};
_.MH=function(e){return fQ4?u$L(e):function(z,C){Object.defineProperty(z,C,{get:function(){var w;return(w=_.a3(this))==null?void 0:w.querySelectorAll(e)},
enumerable:!0,configurable:!0})}};
u$L=function(e){return function(z,C){Object.defineProperty(z,C,{get:function(){var w,K=(w=_.XC(this.hostElement))==null?void 0:w.querySelectorAll(e);if(K==null?0:K.length)return K;var G;return(G=_.a3(this))==null?void 0:G.querySelectorAll(e)},
enumerable:!0,configurable:!0})}};
dMo=function(e){return function(z){if(![_.Qt,_.V].includes(Object.getPrototypeOf(z.prototype).constructor))throw Error("gg");JLE(Object.assign({},typeof e!=="string"?e:{is:e,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(z)}};
_.HI=function(){var e=e===void 0?{}:e;return function(z){if(![mA,_.rO].includes(Object.getPrototypeOf(z.prototype).constructor))throw Error("hg");kvs(Object.assign({},e,{disableInheritanceCheck:!0}))(z)}};
iD7=function(e,z){DML[e]!=null||(DML[e]=new Set);DML[e].add(z)};
_.Ux=function(){var e=_.mi.apply(null,_.s_(_.yL.apply(0,arguments)));return function(z,C){iD7(z.is,C);e(z,C)}};
WI=function(e,z,C){if(vI(e)&&!NFh.has(z)){z=z.replace(/^JSC\$[\d]+_/,"");z=z.replace(/\.\d+(\.|$)/g,function(G,X){return".#"+X});
I3[e]!=null||(I3[e]={});var w,K;(w=I3[e])[K=z]!=null||(w[K]=new Set);I3[e][z].has(C)||(I3[e][z].add(C),_.gm("polymerPropertyAccessEvent",{componentName:e,propertyName:z,accessType:C}))}};
sz7=function(){return _.M("polymer_property_access_logging_debug")||_.M("polymer_enable_property_access_logging")};
vI=function(e){if(_.M("polymer_property_access_logging_debug"))return!0;if(!_.M("polymer_enable_property_access_logging"))return!1;BFo||(BFo=Date.now());return(fi(e)+BFo)%100<_.n0("polymer_property_access_logging_percent")};
tU4=function(e,z){return vI(z)&&e.hostElement.loggingStatus?new Proxy(e,{get:function(C,w,K){if(C.hostElement.loggingStatus.bypassProxyController)return C[w];C.hostElement.loggingStatus.isExternalGet=!0;var G=C[w];C.hostElement.loggingStatus.isExternalGet=!1;if(G instanceof Function)return function(){var X=_.yL.apply(0,arguments);try{return C.hostElement.loggingStatus.currentExternalCall=w,WI(z,w,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),G.apply(this===K?C:this,X)}finally{C.hostElement.loggingStatus.currentExternalCall=
void 0}};
WI(z,w,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return G},
set:function(C,w,K){if(C.hostElement.loggingStatus.bypassProxyController)return C[w]=K,!0;C.hostElement.loggingStatus.isRendererStamper?WI(z,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):C.hostElement.loggingStatus.isDeclarativeExternal||WI(z,w,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{C.hostElement.loggingStatus.currentExternalSet=w,C[w]=K}finally{C.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):e};
g04=function(e,z){e&&e.loggingStatus&&!e.loggingStatus.isDeclarativeExternal&&!e.loggingStatus.isExternalGet&&e.loggingStatus.currentExternalSet!==z&&WI(e.tagName.toLowerCase(),z,"PROPERTY_ACCESS_GET_INTERNAL")};
PI=function(e,z,C){e&&(C||e.loggingStatus&&!e.loggingStatus.isInitializing&&!e.loggingStatus.isDefiningPropertyAccessor&&e.loggingStatus.currentExternalSet!==z)&&WI(e.tagName.toLowerCase(),z,"PROPERTY_ACCESS_SET_INTERNAL")};
jz1=function(){return{_definePropertyAccessor:function(e,z){var C=this,w=C.hostElement.loggingStatus;w&&(w.isDefiningPropertyAccessor=!0);var K=C[e];K!==void 0&&(C.__data?C._setPendingProperty(e,K):(C.__dataProto!=null||(C.__dataProto={}),C.__dataProto[e]=K));w&&(w.isDefiningPropertyAccessor=!1);Object.defineProperty(this,e,{get:function(){g04(C.hostElement,e);return this.__data[e]},
set:function(G){z||this._setPendingProperty(e,G,!0)&&this._invalidateProperties()}})},
created:function(){var e=this._setPendingProperty.bind(this);this._setPendingProperty=function(z,C,w){PI(this.hostElement,z);return e.apply(this,[z,C,w])}}}};
yzg=function(e){sz7()&&_.W(R3.prototype)(e.prototype,"__templateBindingLoggingBehavior")};
czg=function(e,z){if(z.resolvedFactories.length!==e.resolvedFactories.length)return!0;z=_.b(z.resolvedFactories.entries());for(var C=z.next();!C.done;C=z.next()){var w=_.b(C.value);C=w.next().value;w=w.next().value;if(w.providerClass){if(w.providerClass!==e.resolvedFactories[C].providerClass)return!0}else if(w.providerValue){if(w.providerValue!==e.resolvedFactories[C].providerValue)return!0}else if(w.factory!==e.resolvedFactories[C].factory)return!0}return!1};
Az7=function(e,z){e=_.b(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,C.constructor===Array)Az7(C,z);else{var w=z;w.has(C)||(C.inject&&w.add(C),C.behaviors&&Az7(C.behaviors,w))}};
LP=function(e,z){var C=e[z];e[z]=function(){var w=_.yL.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(C)return C.apply(this,w)}};
zFk=function(){_.hK.Class=function(C,w){C=ZDs(C,w);LP(C.prototype,"created");return C};
LP(Ox.prototype,"_initializeProperties");LP(_.Ex.prototype,"_initializeProperties");if(pO5)LP(eFh,"created");else{var e=function(){LP(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))e();else{var z=customElements.define;customElements.define=function(C,w,K){z.call(customElements,C,w,K);C==="tp-yt-iron-list"&&(e(),customElements.define=z)}}}};
wP8=function(e,z){e.prototype.behaviors=e.prototype.behaviors||[];e.prototype.behaviors.unshift(CJk.InjectBehavior);e.prototype.provide=z};
_.fP=function(e){return function(z){if(!e.disableElementRegistration){e.noInjection||wP8(z,e.providers);var C=z.prototype;C.__templateHelpers||mJg(FC.prototype)(C,"__templateHelpers");C=e.is;KYg||(KYg=Date.now());(fi(C)+KYg)%100<_.n0("polymer_log_prop_change_observer_percent")&&mJg(Vi.prototype)(z.prototype,"__propertyObserverObserver");z.prototype.behaviors=z.prototype.behaviors||[];z.prototype.behaviors.unshift(_.oAo.YtHostElementBehavior);yzg(z);dMo({is:e.is,notifyObserversOnUndefined:e.notifyObserversOnUndefined!==
!1,fastInit:e.fastInit,template:e.template,disableEnforceFastDefaultValuesCheck:!0})(z)}}};
_.SL=function(e){return _.fP({is:e.is,template:e.template,disableElementRegistration:e.disableElementRegistration,cssBuildOptOut:e.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
bQ5=function(e,z){if(GnE){e=new e;for(var C=_.b(Object.getOwnPropertyNames(e)),w=C.next();!w.done;w=C.next())w=w.value,z[w]=e[w];for(C=z;C&&C!==Object.prototype;C=Object.getPrototypeOf(C)){w=_.b(Object.getOwnPropertyNames(C));for(var K=w.next();!K.done;K=w.next())K=K.value,e.hasOwnProperty(K)||Object.defineProperty(e,K,Y51(z,K))}}else e.apply(z)};
Y51=function(e,z){return{get:function(){var C=e[z];return C instanceof Function?C.bind(e):C},
set:function(C){e[z]=C}}};
Jak=function(e,z){for(var C=e._noAccessors,w=_.b(Object.getOwnPropertyNames(e)),K=w.next();!K.done;K=w.next())if(K=K.value,!XPk.has(K))if(C)z[K]=e[K];else{var G=Object.getOwnPropertyDescriptor(e,K);G&&(G.configurable=!0,Object.defineProperty(z,K,G))}};
knL=function(e,z,C){return function(w){if(C){var K=C();w.model=K}if(e[z])e[z](w,w.detail)}};
uE=function(e){var z=[];if(typeof e==="string")e.length>0&&z.push.apply(z,_.s_(e.split(".")));else{e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=C.value,typeof C==="string"?z.push.apply(z,_.s_(C.split("."))):z.push(C)}return z};
q58=function(e,z){if(z[z.length-1]!=="*"&&z[z.length-1]!=="splices"){for(var C=0;C<z.length;C++){if(!e)return;e=e[z[C]]}return e}};
xOk=function(e,z){if(e.length>z.length)return!1;for(var C=0;C<e.length;C++)if(e[C]!==z[C])return!1;return!0};
$O1=function(e,z,C){if(z.type==="compute"){var w=z.getter.bind(C);var K=z.args}else w=function(){return C[z.method.methodName].apply(C,_.s_(_.yL.apply(0,arguments)))},K=z.method.args;
TCL(e,z.propertyKey,w,K,z.value)};
QBL=function(e,z){if(z.readOnly){var C=Object.getOwnPropertyDescriptor(e.model,z.propertyKey);Object.defineProperty(e.model,z.propertyKey,{get:C.get,set:function(){}});
e.model[l95(z.propertyKey)]=C.set}};
mOo=function(e,z,C){if(C){var w=z.propertyKey,K=z.selector;z=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.s_(z.selectorArgs.map(function(G){return{type:"path",path:G}})));
TCL(e,w,function(G){var X=_.yL.apply(1,arguments);return K.apply(null,[C.getState()].concat(_.s_(X)))},z)}};
nAg=function(e,z,C){var w=_.Xu(z.propertyKey)+"-changed";a9L(e,function(K){var G={value:K.value,queueProperty:!0};K.path.split(".").length>1&&(G.path=K.path);C.dispatchEvent(new CustomEvent(w,{detail:G}))},[{type:"wildcard",
path:z.propertyKey}])};
MZ8=function(e,z,C){a9L(e,function(){C[z.method.methodName].apply(C,_.s_(_.yL.apply(0,arguments)))},z.method.args)};
l95=function(e){return"_set"+(e.charAt(0).toUpperCase()+e.slice(1))};
rah=function(){var e,z=tG(function(C){e=C},!1);
return[e,z]};
WY4=function(e){e=e.trim().replace(HQE,",").replace(UOk,"$1");var z=e[0];z==="-"&&(z=e[1]);if(z>="0"&&z<="9")return{type:"literal",value:Number(e)};if(z==="'"||z==='"')return{type:"literal",value:e.slice(1,-1)};if(z=e.match(vA1)){z=z[1];var C=I9N[z];if(C)return{type:C,path:e.slice(0,-(z.length+1))}}return{type:"path",path:e}};
hF1=function(e){var z=e.match(PJs);if(z)return e={methodName:z[1],args:RFs},z[2].trim()&&(z=z[2].replace(LYN,"&comma;").split(","),e.args=z.map(WY4)),e};
OQm=function(e,z,C,w){w=w===void 0?!1:w;z=_.Xu(z);var K=SY;K&&(C=K(C,z,"attribute",e));dO(e,C,z,w)};
dO=function(e,z,C,w){z=EAm(z,w===void 0?!1:w);z===void 0?e.removeAttribute(C):e.setAttribute(C,z)};
EAm=function(e,z){switch(typeof e){case "object":case "function":if(e instanceof Date)return e.toString();if(e){if((z===void 0?0:z)&&!_.M("polymer_reflect_objects_as_boolean_killswitch"))return e?"":void 0;z=window.trustedTypes?window.trustedTypes.isHTML(e)||window.trustedTypes.isScript(e)||window.trustedTypes.isScriptURL(e):void 0;if(z)return e;try{return JSON.stringify(e)}catch(C){_.AX(Error("Dg`"+e))}}break;case "boolean":return e?"":void 0;default:return e!==null&&e!==void 0?e.toString():void 0}};
FYm=function(e){if(e===void 0)throw Error("Eg");return e};
dO1=function(e,z,C,w){var K=VZk(w);if(K.length){w=C;var G="property";f9k.test(C)?G="attribute":C[C.length-1]==="$"&&(C=C.slice(0,-1),G="attribute");var X=S5N(K);X&&G==="attribute"&&(C==="class"&&e.hasAttribute("class")&&(X+=" "+e.getAttribute(C)),dO(e,X,C));G==="attribute"&&w==="disable-upgrade$"&&e.setAttribute("disable-upgrade","");e.localName==="input"&&w==="value"&&e.setAttribute("value","");e.removeAttribute(w);G==="property"&&(C=_.Jw(C));z=FYm(z);umo(z,G,C,K);return!0}return C.slice(0,3)===
"on-"?(e.removeAttribute(C),(G=z).events!=null||(G.events=[]),z.events.push({name:C.slice(3),value:w}),!0):C==="id"?(z.id=w,!0):!1};
VZk=function(e){for(var z=[],C=0,w;(w=DO5.exec(e))!==null;){w.index>C&&z.push({type:"literal",value:e.slice(C,w.index)});var K=w[1][0];C=!!w[2];w=w[3].trim();if(K==="{")throw Error("Fg");(K=hF1(w))?z.push({type:"method",negate:C,signature:K}):z.push({type:"path",negate:C,path:w});C=DO5.lastIndex}C&&C<e.length&&(e=e.substring(C))&&z.push({type:"literal",value:e});return z};
S5N=function(e){for(var z="",C=0;C<e.length;C++){var w=e[C];w.type==="literal"&&(z+=w.value)}return z};
umo=function(e,z,C,w){e.bindings!=null||(e.bindings=[]);e.bindings.push({kind:z,target:C,parts:w})};
tZs=function(e,z,C){var w=!1;if(e.localName==="template"){w=C;var K=z.stripWhitespace;K=iQN(e,K===void 0?!1:K);var G=e.content.ownerDocument.createDocumentFragment();K.content=G;G.appendChild(e.content);w&&(w.templateInfo=K);w=!0}else e.localName==="slot"&&(z.hasInsertionPoint=!0);if(e.firstChild&&(K=C,e.localName!=="script"&&e.localName!=="style")){G=0;for(var X=e.firstChild;X;){var J=X;if(J.localName==="template"){var q=J.getAttribute("is");if((X=q==="dom-if")||q==="dom-repeat"){J.removeAttribute("is");
q=J.ownerDocument.createElement("ps-"+q);J.parentNode.replaceChild(q,J);q.appendChild(J);var T=Array.from(J.attributes);T=_.b(T);for(var Q=T.next();!Q.done;Q=T.next())Q=Q.value,X?NCo.has(Q.name)&&dO(q,Q.value,Q.name):sBg.has(Q.name)?dO(q,Q.value,Q.name):BC8.has(Q.name),J.removeAttribute(Q.name);X=q}else X=J}if(X.nodeType===Node.TEXT_NODE){J=void 0;q=e;for(T=X;((J=T.nextSibling)==null?void 0:J.nodeType)===Node.TEXT_NODE;)Q=void 0,(Q=T).textContent!=null||(Q.textContent=""),T.nextSibling.textContent&&
(T.textContent+=T.nextSibling.textContent),q.removeChild(T.nextSibling);if(z.stripWhitespace&&X.textContent&&!X.textContent.trim()){e.removeChild(X);X=X.nextSibling;continue}}tZs(X,z,{parentIndex:G,parentInfo:K});X.parentNode&&G++;X=X.nextSibling}}var m;if((m=e.hasAttributes)==null?0:m.call(e)){m=C=FYm(C);K=!1;G=Array.from(e.attributes);G=_.b(G);for(J=G.next();!J.done;J=G.next())J=J.value,K=dO1(e,m,J.name,J.value)||K;w=K||w}e.nodeType===Node.TEXT_NODE&&(m=VZk(e.textContent),m.length&&(e.textContent=
S5N(m)||" ",C=FYm(C),umo(C,"text","textContent",m),w=!0));C&&w&&(C.infoIndex=z.nodeInfoList.push(C)-1)};
iQN=function(e,z){z={nodeInfoList:[],stripWhitespace:(z===void 0?!1:z)||e.hasAttribute("strip-whitespace")};tZs(e.content,z);return z};
gA5=function(e){Object.assign(e,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
ya1=function(e,z,C){z.signalCache!=null||(z.signalCache={});var w=z.signalCache[C];if(!w){var K=C.split(".");w=!jBk(e,K[0]);if(K.length>1&&w){var G=e.getPathMutationSignal(K);w=function(){var X=ja(e.owner,function(){return e.getWithPath([K[0]])}),J,q=(J=G())==null?void 0:J.value;
return{rootWasDefined:X!==void 0,value:q}}}else w=function(){var X=e.getWithPath(K);
return{rootWasDefined:X!==void 0,value:X}};
z.signalCache[C]=w}return w()};
AaN=function(e,z,C,w,K){z=z.parts.map(function(X,J){if(X.type==="literal"){C.partWasDefined!=null||(C.partWasDefined=[]);var q;(q=C.partWasDefined)[J]||(q[J]=X.value!==void 0);return X.value}var T;if(X.type==="method"){var Q,m=(Q=(T=C.partWasDefined)==null?void 0:T[J])!=null?Q:!1;m||(m=X.signature.args.every(function(H){return H.type==="literal"}));
var a=!1,n=!0;T=X.signature.args.map(function(H){if(H.type==="literal")return H.value;if(H.type!=="path")throw Error("Gg`"+H.type);var I=ya1(e,C,H.path);H=I.value;I=I.rootWasDefined;a||(a=I);n&&(n=I);return H});
m||(m=K===1?n:a);C.partWasDefined!=null||(C.partWasDefined={});C.partWasDefined[J]=m;if(!m)return;T=(J=ya1(e,C,X.signature.methodName).value)&&typeof J==="function"?J.apply(w,T):void 0}else Q=ya1(e,C,X.path),T=Q.value,C.partWasDefined!=null||(C.partWasDefined={}),(m=C.partWasDefined)[J]||(m[J]=T!==void 0||Q.rootWasDefined);X.negate&&(T=!T);return T});
if(z.length===1){var G;return((G=C.partWasDefined)==null?0:G[0])?z[0]:cao}return z.join("")};
ZQo=function(e){return typeof e==="object"&&!!e&&"notifyPath"in e&&"canNotifyPath"in e};
pP1=function(e){return typeof e==="object"&&!!e&&"notifyPath"in e};
e5m=function(e){return"polymerController"in e};
z5N=function(e,z){z=""+uE(z)[0];if(ZQo(e))return e.canNotifyPath(z);if(e5m(e)&&ZQo(e.polymerController))return e.polymerController.canNotifyPath(z);if(pP1(e)){var C;return!((C=e.properties)==null||!C[z])}if(e5m(e)&&pP1(e.polymerController)){var w;return!((w=e.polymerController.properties)==null||!w[z])}return!1};
C_8=function(e,z,C){ZQo(e)||pP1(e)?e.notifyPath(z,C):e5m(e)&&(ZQo(e.polymerController)||pP1(e.polymerController))&&e.polymerController.notifyPath(z,C)};
Koh=function(e,z,C){if(C!==cao){e.kind==="attribute"||e.target!=="textContent"&&(e.target!=="value"||z.localName!=="input"&&z.localName!=="textarea")||(C=C===void 0?"":C);var w,K=(w=wSh.Polymer)==null?void 0:w.sanitizeDOMValue;K&&(C=K(C,e.target,e.kind,z));if(e.kind==="attribute"){e=e.target;if(e==="class"||e==="name"||e==="slot")z=(0,_.x$)(z);dO(z,C,e)}else if(e=e.target,C!==z[e]||typeof C==="object")z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!0,WI(z.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
z[e]=C,z.loggingStatus&&(z.loggingStatus.isDeclarativeExternal=!1)}};
oDg=function(e,z,C,w){var K=z.parts[0];if(z.parts.length!==1||K.type!=="path"||!z5N(C,z.target))return!1;var G=_.b(K.path.split(".")),X=G.next().value,J=b0(G);if(jBk(e,X))return!1;w.signalCache!=null||(w.signalCache={});G=w.signalCache[K.path];var q;G=(q=G)==null?void 0:q().value;if((G==null?void 0:G.path)!==void 0){w=uE(G.path);var T=uE(K.path);w=[z.target].concat(_.s_(w.slice(T.length-1)));C_8(C,w,K.negate?!G.value:G.value);return!0}var Q=DL(e,X);var m=Q.getChangeRecordSignal(J),a=!1;G=function(){if(!a){var H=
ja(e.owner,function(){return Q.getWithPath([])});
a||(a=H!==void 0)}return{value:m(),rootWasDefined:a}};
w.signalCache[K.path]=G;w.partWasDefined!=null||(w.partWasDefined={});G=G();(T=w.partWasDefined)[0]||(T[0]=G.rootWasDefined);var n=ja(e.owner,function(){return Q.getWithPath(J)});
w.partWasDefined[0]&&ja(e.owner,function(){return void Koh(z,C,K.negate?!n:n)});
return!0};
GSE=function(e,z,C,w,K,G){if(!oDg(e,z,C,w)){var X=AaN(e,z,w,K,G);ja(e.owner,function(){return void Koh(z,C,X)})}};
Y$m=function(e,z,C,w,K,G){C=_.b(C);for(var X=C.next(),J={};!X.done;J={infoIndex:void 0},X=C.next()){X=X.value;var q=X.bindings;J.infoIndex=X.infoIndex;X=X.parentInfo;if(q){q=_.b(q);for(var T=q.next(),Q={};!T.done;Q={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},T=q.next()){Q.b$jscomp$257=T.value;if(J.infoIndex===void 0)throw Error("Hg");Q.bindingCtx$jscomp$4={};e.effect(function(m,a){return function(){K&&!K()||GSE(e,m.b$jscomp$257,z[a.infoIndex],m.bindingCtx$jscomp$4,w,G)}}(Q,J))}}X&&Y$m(e,z,[X],
w,K,G)}};
ba7=function(e,z){e=(z.parentInfo?ba7(e,z.parentInfo):e).firstChild;for(var C=0;e;e=e.nextSibling)if(z.parentIndex===C++)return e;throw Error("Ig");};
JF1=function(e,z,C,w){e=document.importNode(e.content,!0);e.__noInsertionPoint=!(w==null?0:w.hasInsertionPoint);for(var K=Array(z.length),G={},X=0;X<z.length;X++){var J=z[X],q=ba7(e,J);K[X]=q;J.id&&(G[J.id]=q);if(J.templateInfo){var T=q.parentElement;T&&(T.templateInfo=J.templateInfo,T.parentSignalProxy=C,T.eventListenerHost=w.eventListenerHost,T.stampingEnabled=w.enabledSignal)}T=void 0;if((T=J.events)==null?0:T.length)for(T=0;T<J.events.length;T++){var Q=J.events[T];XS4(w.eventListenerHost,q,Q.name,
Q.value,w.getModel)}}Y$m(C,K,z,w.thisCtx,w.enabledSignal,w.methodInvocationRequirement);return{root:e,nodes:K,nodesById:G}};
q$N=function(e,z){e=e();var C;(C=kS1.ShadyCSS)==null||C.prepareTemplate(e,z);z=iQN(e);return{template:e,nodeInfoList:z.nodeInfoList,hasInsertionPoint:z.hasInsertionPoint}};
$j1=function(){xj1=!1;for(var e=iE.length,z=0;z<e;z++){var C=iE[z];if(C)try{C()}catch(w){Promise.resolve().then(function(){throw w;})}}iE.splice(0,e);
T_m+=e};
aqN=function(e){xj1||(xj1=!0,lqo.textContent=(Q_8++).toString());iE.push(e);return mjo++};
_.BI=function(e,z,C){NH++;e=z?new nD1(NH,e,z,C):new MRo(NH,e);sx.set(NH,e);return NH};
rFo=function(e){(e=sx.get(e))&&e.cancel()};
UjE=function(e,z){e=Hag.get(e);return e?(z=e.get(z))?z:null:null};
_.tK=function(e,z,C,w){var K=UjE(e,z);if(!K){K=new vD8;var G=Hag.get(e);G||(G=new Map,Hag.set(e,G));G.set(z,K)}e=C.bind(e);K.run(e,w,void 0)};
_.Iq1=function(e,z){var C;(C=UjE(e,z))==null||C.cancel()};
Wo4=function(e){var z;(z=UjE(e,"doRender"))==null||z.flush()};
gO=function(e){var z;return(z=e.hostElement)!=null?z:e};
P_k=function(e){var z=e.indexOf(".");return z===-1?e:e.slice(0,z)};
R51=function(e,z,C,w,K,G){G=(K=(w=G?P_k(z):z)?z:null)?e.get(K):e.__data[z];K&&G===void 0&&(G=C[z]);_.pi(e.hostElement,CKh(w)+"-changed",{value:G,queueProperty:!0,path:K!=null?K:void 0},{bubbles:!1,composed:!1})};
Lo7=function(e,z){e.__isReflecting=!0;OQm(e.hostElement,z,e.__data[z]);e.__isReflecting=!1};
h51=function(e){if(e._onIronRequestResizeNotifications){var z=e._onIronRequestResizeNotifications.bind(e);e._onIronRequestResizeNotifications=function(C){_.AU(C)!==e.hostElement&&z(C)}}e._ariaActiveAttributeChanged&&(e._ariaActiveAttributeChanged=e._ariaActiveAttributeChanged.bind(e.hostElement));
e._activeChanged&&(e._activeChanged=function(C){e.toggles?dO(e.hostElement,C?"true":"false",e.ariaActiveAttribute):e.hostElement.removeAttribute(e.ariaActiveAttribute);e._changedButtonState()});
e._asyncClick&&(e._asyncClick=function(){_.BI(function(){e.hostElement.click()},1)});
!e.keyEventTarget||e.keyEventTarget instanceof EventTarget||(e.keyEventTarget=gO(e.keyEventTarget));e._disabledChanged&&(e._disabledChanged=e._disabledChanged.bind(e.hostElement));e._observeItems&&(e._observeItems=function(C){var w=gO(C);return _.mb(w).observeNodes(function(K){e._updateItems();e._updateSelected();_.pi(w,"iron-items-changed",K,{bubbles:!1,cancelable:!1})})});
e._updateItems&&e._updateItems===_.jL._updateItems&&(e._updateItems=function(){var C=_.mb(e.hostElement).queryDistributedElements(e.selectable||"*");C=Array.prototype.filter.call(C,e._bindFilterItem);e._setItems(C)});
e._computeKeyboardClass&&(e._computeKeyboardClass=function(C){_.k$(e.hostElement,"keyboard-focus",C)});
e.ensureRipple&&(e.ensureRipple=function(C){if(e.hasRipple&&!e.hasRipple()){if(!e._createRipple)return;e._ripple=e._createRipple();e._ripple.noink=e.noink;var w=e._rippleContainer||e.hostElement;w&&_.XC(w).appendChild(e._ripple)}var K;if(C&&((K=e._ripple)==null?0:K.uiDownAction)){w=_.XC(e._rippleContainer||e.hostElement);var G;K=(G=C.composedPath())==null?void 0:G[0];w.contains(K)&&e._ripple.uiDownAction(C)}});
e._updateMultiselectable&&(e._updateMultiselectable=function(C){C?e.hostElement.setAttribute("aria-multiselectable","true"):e.hostElement.removeAttribute("aria-multiselectable")})};
Oao=function(e,z,C){C=_.b(C);for(var w=C.next();!w.done;w=C.next())bQ5(w.value.constructor,e);bQ5(z.constructor,e)};
Fog=function(e,z){e=_.b(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,C.type==="signal"){var w=C.propertyKey;if(z.hasOwnProperty(w)&&z[w]!=null&&C.attributeType===Object){a:{w=z[w].constructor;for(var K=_.b(ED1),G=K.next();!G.done;G=K.next())if(G=G.value,w===G){w=G;break a}w=Object}C.attributeType=w}}};
VR1=function(){};
fqE=function(e){var z;return(z=e.hostElement)!=null?z:e};
S$4=function(){throw Error("Mg");};
uQ4=function(e,z){e.constructor.prototype.useSignals=!0;var C=new e.constructor;Oao(C,e,z.behaviors);Fog(z.reactiveSchemas,C);C={};for(var w=_.b(z.reactiveSchemas),K=w.next();!K.done;K=w.next())K=K.value,K.type==="signal"&&(C[K.propertyKey]=K.attributeType);var G={copyPropertiesToProto:S$4,didRegister:!1,typesForSignals:C},X=["disable-upgrade"].concat(_.s_(z.observedAttributes)),J=function(q){yi.call(this,e,z,G,q)};
_.U(J,yi);_.lB.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return X}}});
G.copyPropertiesToProto=function(){for(var q=0;q<z.behaviors.length;q++)Jak(z.behaviors[q],J.prototype);Jak(e,J.prototype)};
z.legacyOptimizations||G.copyPropertiesToProto();J.prototype.is=e.is;return J};
djL=function(e,z){if(Object.getPrototypeOf(z.prototype).constructor!==_.V)throw Error("Ng");z.prototype.is=e.is;return uQ4(z.prototype,e)};
DjN=function(e){return e.type==="compute"||e.type==="computeWithMethod"};
iaL=function(e){for(var z=e.reactiveSchemas.filter(DjN),C=new Map,w=new Map,K=new Map,G=_.b(z),X=G.next();!X.done;X=G.next())X=X.value,C.set(X.propertyKey,X),w.set(X.propertyKey,[]),K.set(X.propertyKey,0);G=0;z=_.b(z);for(X=z.next();!X.done;X=z.next()){X=X.value;for(var J=_.b(X.type==="computeWithMethod"?X.method.args:X.args),q=J.next();!q.done;q=J.next())q=q.value,q.type!=="literal"&&(q=q.path.split(".")[0],w.has(q)&&(w.get(q).push(X.propertyKey),K.set(X.propertyKey,K.get(X.propertyKey)+1),G++))}X=
[].concat(_.s_(w.keys())).filter(function(T){return K.get(T)===0});
for(z=[];X.length;)for(J=X.shift(),z.push(C.get(J)),J=_.b(w.get(J)),q=J.next();!q.done;q=J.next())q=q.value,K.set(q,K.get(q)-1),G--,K.get(q)===0&&X.push(q);C=e.reactiveSchemas.filter(function(T){return!DjN(T)});
e.reactiveSchemas=[].concat(_.s_(C),_.s_(z))};
N_4=function(e,z){if(z.properties)for(var C=_.b(Object.entries(z.properties)),w=C.next();!w.done;w=C.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;e.properties[w]=typeof K==="function"?{type:K}:K}z.observers&&e.observers.push.apply(e.observers,_.s_(z.observers));z.disabledPolySiReactions&&e.disabledPolySiReactions.push.apply(e.disabledPolySiReactions,_.s_(z.disabledPolySiReactions))};
s_N=function(e,z){for(var C=z.length-1;C>=0;C--){var w=z[C];Array.isArray(w)?s_N(e,w):e.indexOf(w)<0&&e.unshift(w)}};
B_m=function(e,z){e.reactiveSchemas=e.reactiveSchemas.filter(function(C){return C.type==="observe"&&z.includes(C.method.methodName)||DjN(C)&&z.includes(C.propertyKey)?!1:!0})};
gDg=function(e,z){var C=z.prototype,w,K,G={is:e.is,reactiveSchemas:[],observedAttributes:[],behaviors:[CJk.InjectBehavior,FC.prototype],disableElementRegistration:e.disableElementRegistration,provide:(w=e.providers)!=null?w:[],reactivityMode:e.reactivityMode,signalProperties:(K=C.signalProperties)!=null?K:[]};"template"in z?G.templateGetter=function(){return z.template}:e.getTemplate&&(G.templateGetter=e.getTemplate);
C.behaviors&&s_N(G.behaviors,C.behaviors);tRg(G,z);return G};
tRg=function(e,z){for(var C=z.prototype,w={properties:{},observers:[],disabledPolySiReactions:[]},K=_.b(e.behaviors),G=K.next();!G.done;G=K.next())N_4(w,G.value);N_4(w,C);if(e.signalProperties)for(C=_.b(e.signalProperties),K=C.next();!K.done;K=C.next())delete w.properties[K.value];C=_.b(Object.entries(w.properties));for(K=C.next();!K.done;K=C.next()){G=_.b(K.value);K=G.next().value;G=G.next().value;var X=void 0;if((X=e.signalProperties)==null||!X.includes(K)){X=void 0;var J=e,q=G.type;if(!q)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{q=Reflect.getMetadata("design:type",z,K);for(var T=_.b(j_h),Q=T.next();!Q.done;Q=T.next())if(Q=Q.value,q===Q){q=Q;break a}q=Object}else q=String;G.computed||G.selector||(J.reactiveSchemas.push({type:"signal",propertyKey:K,value:G.value,attributeType:q,readOnly:G.readOnly}),J.observedAttributes.push(_.Xu(K)));G.reflectToAttribute&&J.reactiveSchemas.push({type:"reflect",propertyKey:K});if(G.computed){q=hF1(G.computed);if(!q)throw Error("Og");J.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:K,method:q,value:G.value})}G.observer&&J.reactiveSchemas.push({type:"observe",method:{methodName:G.observer,args:[{type:"path",path:K}]}});G.notify&&J.reactiveSchemas.push({type:"notify",propertyKey:K});G.selector&&J.reactiveSchemas.push({type:"redux",propertyKey:K,selector:G.selector,selectorArgs:(X=G.selectorArgs)!=null?X:[]})}}yF1&&iaL(e);z=_.b(w.observers);for(K=z.next();!K.done;K=z.next())C=e,K=K.value,(G=hF1(K))?C.reactiveSchemas.push({type:"observe",method:G}):console.log('Warning: unable to parse observe declaration: "'+
K+'"');B_m(e,w.disabledPolySiReactions)};
cF1=function(e,z){for(var C=0;C<z.length;C++){var w=z[C],K=void 0;(K=w).showHideApi!=null||(K.showHideApi={});K=void 0;!!e!==!((K=w.showHideApi)==null||!K.hideTemplateChildren)&&(w.nodeType===Node.TEXT_NODE?e?(w.showHideApi.polymerTextContent=w.textContent,w.textContent=""):(K=void 0,w.textContent=(K=w.showHideApi.polymerTextContent)!=null?K:null):w instanceof Element&&w.localName==="slot"?e?(w.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.x$)((0,_.x$)(w).parentNode).replaceChild(w.showHideApi.polymerReplaced,
w)):(K=w.showHideApi.polymerReplaced)&&(0,_.x$)((0,_.x$)(K).parentNode).replaceChild(w,K):w instanceof HTMLElement&&w.style&&(e?(w.showHideApi.polymerDisplay=w.style.display,w.style.display="none"):w.style.display=w.showHideApi.polymerDisplay));w.showHideApi.hideTemplateChildren=e;w.showHideChildren&&w.showHideChildren(e)}};
ZaL=function(){if(!AF1){var e=document.createElement("style");e.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(e);AF1=!0}};
cI=function(){return _.M("disable_hidden_dom_if_using_stamper")};
pS7=function(e,z){var C=_.AK().getState();return z?e.apply(null,[C].concat(_.s_(z))):e(C)};
CI1=function(){if(eq8)return eq8;var e=_.b(_.II(0,void 0,"MB1Hb")),z=e.next().value;e.next();var C=e.next().value;_.AK().subscribe(function(){zqE(C)});
return eq8=z};
zqE=function(e){wXs||(wXs=!0,Promise.resolve().then(function(){e(function(z){return z+1});
wXs=!1}))};
_.AK=function(){return KC8.getAppStore()};
o74=function(e,z){return KC8.getSelectFn()(e,z)};
_.ZL=function(e){KC8.getDispatchFn()(e)};
GY8=function(e,z){var C={},w;for(w in e)C[w]=z(e[w],w);return C};
_.pP=function(e,z){return function(){var C;return(C=_.gp(e))!=null?C:z}};
_.eQ=function(e,z){var C=Object.assign({},e),w;for(w in z)z.hasOwnProperty(w)&&(C[w]=_.pP(e[w],z[w]));return C};
YbN=function(e,z,C,w){e instanceof Element&&(C.debugName||(C.debugName="<"+e.tagName.toLowerCase()+(e.tagName.includes("-")?">":"."+e.className+">")),_.M("ytwiz_enable_debug_component_props")&&(e.debugProps||(e.debugProps=GY8(z,function(K){return function(){return K()}})),z.data===void 0||"data"in e&&!e.isWebComponentWrapper||Object.defineProperty(e.debugProps,"data",{get:function(){return _.gp(z.data)},
set:function(K){var G;w==null||(G=w.data)==null||G.call(w,K)},
enumerable:!0,configurable:!0})))};
_.zx=function(e,z){if(e.length===0&&(z==null||!z.initial))return TKE(e,{debugName:z==null?void 0:z.debugName},"j");var C=_.b(TKE({source:function(){return e()},
computation:function(G,X){return(X==null?0:X.value)?e(X.value):(z==null?0:z.initial)?e(z.initial):G}},{debugName:z==null?void 0:z.debugName},"k")),w=C.next().value,K=C.next().value;
C=C.next().value;return[w,K,C]};
_.f=function(e,z){var C=function(w){return pK("ytComponent",{},function(K){var G=b5o={};var X;if(((X=C)==null?0:X.idomCompat)&&w.renderedFromIdom){var J;X=typeof C.idomCompat==="object"?(J=C)==null?void 0:J.idomCompat.callbacks:{};X=_.b(XX4(w,X));J=X.next().value;var q=X.next().value;X=X.next().value;var T=Je8(e,J);G.privateValue=T;b5o=void 0;YbN(T,J,C,q);K.addAttributes({debugName:C.debugName});K=HGo(T);K=Array.isArray(K)?K[0]:K;K[vR]||(K[vR]={});K[vR].updateSignalsFromIdomProps=X;kY1(J,T);return T}X=
GY8(w,qbm);J=Je8(e,X);YbN(J,X,C);G.privateValue=J;b5o=void 0;K.addAttributes({debugName:C.debugName});kY1(X,J);return J})};
C.debugName=z===void 0?"":z;return C};
Je8=function(e,z){e=e(z);return Ld(e)};
x7o=function(e,z){e[z]||(e=new _.uh("IDOM interop setter undefined. Key:",z),_.yG(e))};
qbm=function(e,z){return z==="children"||z==="ref"||typeof e==="function"||e===void 0?e:function(){return _.gp(e)}};
XX4=function(e,z){var C={},w={},K={},G={},X;for(X in e){G={key$jscomp$952:G.key$jscomp$952};G.key$jscomp$952=X;var J=e[G.key$jscomp$952];if(G.key$jscomp$952==="children"||G.key$jscomp$952==="ref")C[G.key$jscomp$952]=J;else if(typeof J==="function")if(G.key$jscomp$952 in z||J.length>0)K[G.key$jscomp$952]=J,C[G.key$jscomp$952]=function(T){return function(){return K[T.key$jscomp$952].apply(K,_.s_(_.yL.apply(0,arguments)))}}(G);
else if(G.key$jscomp$952==="data"){var q=_.b(_.zx(J,{debugName:G.key$jscomp$952+":cwis"}));J=q.next().value;q=q.next().value;C[G.key$jscomp$952]=J;w[G.key$jscomp$952]=q}else C[G.key$jscomp$952]=J;else e[G.key$jscomp$952]===void 0&&G.key$jscomp$952 in z||(q=_.b(_.II(e[G.key$jscomp$952],{debugName:G.key$jscomp$952+":cwis"},"HQMSk")),J=q.next().value,q=q.next().value,C[G.key$jscomp$952]=J,w[G.key$jscomp$952]=q)}return[C,w,function(T){var Q={},m;for(m in T)Q={key$jscomp$951:Q.key$jscomp$951,val$jscomp$122:void 0},
Q.key$jscomp$951=m,Q.val$jscomp$122=T[Q.key$jscomp$951],Q.key$jscomp$951!=="children"&&Q.key$jscomp$951!=="ref"&&(typeof Q.val$jscomp$122==="function"?Q.key$jscomp$951 in z?K[Q.key$jscomp$951]=Q.val$jscomp$122:Q.val$jscomp$122.length>0&&(K[Q.key$jscomp$951]=Q.val$jscomp$122,_.AX(new _.uh("Callback detected that was not set in the idomCompat callbacks map. Key:",Q.key$jscomp$951))):Q.key$jscomp$951 in z&&Q.val$jscomp$122===void 0||(x7o(w,Q.key$jscomp$951),OH(function(a){return function(){w[a.key$jscomp$951](a.val$jscomp$122)}}(Q))))}]};
lZk=function(e,z,C){var w=Gvh(e.prototype,Tso,e.prototype.behaviors);w.prototype.is=z;w.prototype.localName=z;C&&$75(w,C);return function(K){K&&(w.prototype.hostElement=K);var G=new w;G.root=G;G.hostElement=K;return G}};
$75=function(e,z){var C;Object.defineProperty(e.prototype,"_template",{get:function(){C===void 0&&(C=z());return C},
set:function(w){C=w},
configurable:!0,enumerable:!0})};
Mzk=function(e,z,C,w){function K(){if(!n){for(var H=new Set,I=_.b(Q),L=I.next();!L.done;L=I.next()){L=L.value;for(var h=_.b(Object.getOwnPropertyNames(L)),E=h.next();!E.done;E=h.next()){E=E.value;var N=void 0,D=(N=Object.getOwnPropertyDescriptor(L,E))==null?void 0:N.value;D&&D instanceof Function&&!Cm(E)&&(!J[E]||_.M("polymer_forward_method_killswitch"))&&H.add(E)}}I=_.b(Object.entries(Object.getOwnPropertyDescriptors(e.prototype)));for(L=I.next();!L.done;L=I.next())h=_.b(L.value),L=h.next().value,
h=h.next().value,h.value instanceof Function&&!Cm(L)&&H.add(L);n=H}return n}
Qj1(e,z,w==null?void 0:w.providers);Yy5(e.prototype,e,!0);var G=lZk(e,z,C),X,J=(X=e.prototype.properties)!=null?X:{},q,T,Q=(T=(q=e.prototype.behaviors)==null?void 0:q.flat(Infinity))!=null?T:[];C=_.b(Q);for(X=C.next();!X.done;X=C.next())J=Object.assign({},X.value.properties,J);var m=[].concat(_.s_(m7m),_.s_(Object.keys(J).map(function(H){return _.Xu(H)}))),a=!1,n;
return{ctor:function(H,I){var L=G(H),h,E;H=[].concat(_.s_((h=w==null?void 0:w.allowedProps)!=null?h:[]),_.s_((E=w==null?void 0:w.allowedPropsFromBehaviors)!=null?E:[]));L.allowedProps=H.length>0?H:void 0;h={};E=_.b(m);for(H=E.next();!H.done;H=E.next())H=H.value,h[H]=_.Jw(H);L.__dataAttributes=h;var N=L.ready.bind(L);L.ready=function(){I.beforeReady();N();if(vI(z)&&!a){var D=L.__templateInfo;if(D==null?0:D.hostProps){D=_.b(Object.keys(D.hostProps));for(var g=D.next();!g.done;g=D.next())WI(z,g.value,
"PROPERTY_ACCESS_GET_INTERNAL")}a=!0}};
L._overrideLegacyUndefined=!0;return L},
props:J,observedAttributes:m,getInitialMethods:K,getPropsToForwardBeforeRegister:function(){for(var H=[],I=new Set,L=_.b(Object.keys(J)),h=L.next();!h.done;h=L.next())h=h.value,H.push([h,J[h].readOnly]),I.add(h);L=K();h=_.b(Object.keys(Object.getOwnPropertyDescriptors(e.prototype)));for(var E=h.next();!E.done;E=h.next())E=E.value,!aZg(E)||L.has(E)||I.has(E)||(H.push([E,!1]),I.add(E));I=_.b(n77);for(L=I.next();!L.done;L=I.next())H.push([L.value,!0]);return H},
getPropsToForwardBeforeReady:function(H){for(var I=[],L=_.b(Object.entries(H)),h=L.next();!h.done;h=L.next()){var E=_.b(h.value);h=E.next().value;E=E.next().value;if(aZg(h)&&!(E instanceof Function)&&(I.push([h,!1]),vI(z))){var N=E=void 0;(N=(E=H)._createPropertyAccessor)==null||N.call(E,h)}}return I},
shouldForwardProp:aZg,shouldLog:vI}};
Qj1=function(e,z,C){wP8(e,C);e.prototype.behaviors.unshift(re7);if(sz7()){if(vI(z)){var w;(w=e.prototype).behaviors!=null||(w.behaviors=[]);e.prototype.behaviors.unshift(jz1())}yzg(e)}_.W(FC.prototype)(e.prototype,"__templateHelpers")};
Cm=function(e){return H5g.has(e)||e.startsWith("__compute__")};
aZg=function(e){return!Cm(e)&&!e.startsWith("_")&&!e.endsWith("_")};
PIm=function(e,z){function C(){var a=q();a=_.b(a);for(var n=a.next();!n.done;n=a.next()){var H=_.b(n.value);n=H.next().value;H=H.next().value;U77(m.prototype,n,H)}w=!0}
var w=!1,K=e.ctor,G=e.getInitialMethods,X=e.observedAttributes,J=e.getPropsToForwardBeforeReady,q=e.getPropsToForwardBeforeRegister,T=e.shouldForwardProp,Q=e.shouldLog,m=function(){var a=HTMLElement.call(this)||this;a.didForwardDynamicProps=!1;a.loggingStatus={};w||C();a.inst=K(a,{beforeReady:function(){a.didForwardDynamicProps||(a.forwardDynamicProps(),a.didForwardDynamicProps=!0)}});
a.controllerProxy=tU4(a.inst,z);a.forwardMethods();return a};
_.U(m,HTMLElement);m.prototype.forwardMethods=function(){for(var a=this,n=_.b(this.inst.getExtraMethodsToForward()),H=n.next(),I={};!H.done;I={method$jscomp$65:void 0},H=n.next()){var L=_.b(H.value);H=L.next().value;L=L.next().value;I.method$jscomp$65=L;this[H]=function(h){return function(){return h.method$jscomp$65.call.apply(h.method$jscomp$65,[a.inst].concat(_.s_(_.yL.apply(0,arguments))))}}(I)}n=_.b(G());
for(I=n.next();!I.done;I=n.next())I=I.value,T(I)&&v7h(this,I),Q(z)&&!Cm(I)&&IZg(this.inst,I)};
m.prototype.forwardDynamicProps=function(){var a=J(this.inst);a=_.b(a);for(var n=a.next();!n.done;n=a.next()){var H=_.b(n.value);n=H.next().value;H=H.next().value;U77(this,n,H);Q(z)&&!Cm(n)&&WC8(this.inst,n)}};
m.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
m.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
m.prototype.attributeChangedCallback=function(a,n,H){this.inst.attributeChangedCallbackWrapper(a,n,H)};
_.lB.Object.defineProperties(m.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return z}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.lB.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return X}}});
customElements.define(z,m)};
U77=function(e,z,C){e.hasOwnProperty(z)||Object.defineProperty(e,z,{get:function(){var w,K=((w=e.is)!=null?w:e.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||WI(K,z,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,w=this.polymerController[z],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,w},
set:function(w){if(!C){var K,G=((K=e.is)!=null?K:e.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||WI(G,z,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=z,this.loggingStatus.bypassProxyController=!0,this.polymerController[z]!==w&&(K={},this.polymerController.setProperties((K[z]=w,K)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
v7h=function(e,z,C){var w=e.polymerController;e[z]=function(){var K=_.yL.apply(0,arguments);e.loggingStatus.currentExternalCall=z;e.loggingStatus.bypassProxyController=!0;var G,X=((G=e.is)!=null?G:e.tagName).toLowerCase();WI(X,z,"PROPERTY_ACCESS_CALL_EXTERNAL");var J;G=(J=C!=null?C:w[z])==null?void 0:J.call.apply(J,[w].concat(_.s_(K)));e.loggingStatus.currentExternalCall=void 0;e.loggingStatus.bypassProxyController=!1;return G}};
IZg=function(e,z){var C=e.hostElement,w=e[z];e[z]=function(){var K=_.yL.apply(0,arguments);if(C.loggingStatus.currentExternalCall!==z){var G,X=((G=C.is)!=null?G:C.tagName).toLowerCase();WI(X,z,"PROPERTY_ACCESS_CALL_INTERNAL")}return w==null?void 0:w.apply(e,K)}};
WC8=function(e,z){var C=Object.getOwnPropertyDescriptor(e,z);C&&!C.get&&Object.defineProperty(e,z,{get:function(){g04(e.hostElement,z);return C.value},
set:function(w){PI(e.hostElement,z);C.value=w}})};
RqN=function(e){return _.M("poly_si_dom_repeat_detached_fix_killswitch")||e.tagName!=="PS-DOM-REPEAT"?e.tagName==="DOM-REPEAT":!0};
hq4=function(e,z){var C=LCE(e);e instanceof Element&&C.unshift(e);e=_.b(C.filter(RqN));for(var w=e.next();!w.done;w=e.next()){var K=void 0;w=_.b((K=w.value.__instances)!=null?K:[]);for(K=w.next();!K.done;K=w.next())if(K=K.value,K.root){K=Array.from(K.root.children);K=_.b(K);for(var G=K.next();!G.done;G=K.next())C.push.apply(C,_.s_(hq4(G.value,z)))}}return C.filter(function(X){return X.usePatchedLifecycles&&X.lifecycleIsConnected===z})};
LCE=function(e){var z=null;e instanceof Element?z=Element.prototype.querySelectorAll:e instanceof DocumentFragment&&(z=DocumentFragment.prototype.querySelectorAll);return z?Array.from(z.call(e,"*")):[]};
wo=function(e){_.UH(function(){for(var z=_.b(hq4(e,!1)),C=z.next();!C.done;C=z.next()){C=C.value;C.lifecycleIsConnected=!0;try{var w=void 0,K=void 0,G=void 0,X=void 0;(w=(X=C.polymerController)!=null?X:C)==null||(G=(K=w).connectedCallback)==null||G.call(K)}catch(J){_.yG(J)}}})};
Km=function(e){_.UH(function(){for(var z=_.b(hq4(e,!0)),C=z.next();!C.done;C=z.next()){C=C.value;C.lifecycleIsConnected=!1;try{var w=void 0,K=void 0,G=void 0,X=void 0;(w=(X=C.polymerController)!=null?X:C)==null||(G=(K=w).disconnectedCallback)==null||G.call(K)}catch(J){_.yG(J)}}})};
ucm=function(){if(!O5o){O5o=!0;var e=[Node];o5&&e.push(o5.Wrapper);var z=Node.prototype.insertBefore,C=Node.prototype.removeChild;e=_.b(e);for(var w=e.next(),K={};!w.done;K={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},w=e.next())w=w.value,K.nativeInsertBefore=w.prototype.insertBefore,w.prototype.insertBefore=function(X){return function(J,q){if(J instanceof DocumentFragment){var T=Array.from(J.children);J=X.nativeInsertBefore.call(this,J,q);
if(this.isConnected&&X.nativeInsertBefore===z)for(q=_.b(T),T=q.next();!T.done;T=q.next())wo(T.value);return J}T=J instanceof Element&&J.isConnected;q=X.nativeInsertBefore.call(this,J,q);T&&Km(J);this.isConnected&&wo(J);return q}}(K),K.nativeAppendChild=w.prototype.appendChild,w.prototype.appendChild=function(X){return function(J){if(J instanceof DocumentFragment){var q=Array.from(J.children);
J=X.nativeAppendChild.call(this,J);if(this.isConnected){q=_.b(q);for(var T=q.next();!T.done;T=q.next())wo(T.value)}return J}q=J instanceof Element&&J.isConnected;T=X.nativeAppendChild.call(this,J);q&&Km(J);this.isConnected&&wo(J);return T}}(K),K.nativeRemoveChild=w.prototype.removeChild,w.prototype.removeChild=function(X){return function(J){var q=J instanceof Element&&J.isConnected,T=X.nativeRemoveChild.call(this,J);
q&&C===X.nativeRemoveChild&&Km(J);return T}}(K),K.nativeReplaceChild=w.prototype.replaceChild,w.prototype.replaceChild=function(X){return function(J,q){if(J instanceof DocumentFragment){var T=Array.from(J.children);
J=X.nativeReplaceChild.call(this,J,q);if(this.isConnected)for(Km(q),q=_.b(T),T=q.next();!T.done;T=q.next())wo(T.value);return J}T=J instanceof Element&&J.isConnected;var Q=this.isConnected,m=X.nativeReplaceChild.call(this,J,q);Q&&Km(q);T&&Km(J);Q&&wo(J);return m}}(K);
e=[Element];o5&&e.push(o5.Wrapper);e=_.b(e);w=e.next();for(K={};!w.done;K={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},w=e.next())w=w.value,w.prototype.before=E7m(w.prototype.before),w.prototype.after=E7m(w.prototype.after),K.nativeReplaceWith=w.prototype.replaceWith,w.prototype.replaceWith=function(X){return function(){var J=_.yL.apply(0,arguments),q=_.b(FC5(J)),T=q.next().value,
Q=q.next().value;q=this.isConnected;X.nativeReplaceWith.apply(this,J);J=_.b(Q);for(Q=J.next();!Q.done;Q=J.next())Km(Q.value);if(q)for(Km(this),T=_.b(T),q=T.next();!q.done;q=T.next())q=q.value,q instanceof Element&&wo(q)}}(K),K.nativeRemove=w.prototype.remove,w.prototype.remove=function(X){return function(){var J=this.isConnected;
X.nativeRemove.call(this);J&&Km(this)}}(K),K.nativeInsertAdjacentElement=w.prototype.insertAdjacentElement,w.prototype.insertAdjacentElement=function(X){return function(J,q){var T=q.isConnected;
J=X.nativeInsertAdjacentElement.call(this,J,q);T&&Km(q);J.isConnected&&wo(J);return J}}(K),K.nativeSetAttribute=w.prototype.setAttribute,w.prototype.setAttribute=function(X){return function(J,q){var T=Vz7(this);
if(!T.usePatchedLifecycles)return X.nativeSetAttribute.call(this,J,q);var Q=this.getAttribute(J);X.nativeSetAttribute.call(this,J,q);q=this.getAttribute(J);fZg(T,J,Q,q)}}(K),K.nativeRemoveAttribute=w.prototype.removeAttribute,w.prototype.removeAttribute=function(X){return function(J){var q=Vz7(this);
if(!q.usePatchedLifecycles)return X.nativeRemoveAttribute.call(this,J);var T=this.getAttribute(J);X.nativeRemoveAttribute.call(this,J);T!==null&&fZg(q,J,T,null)}}(K),K.nativeToggleAttribute=w.prototype.toggleAttribute,w.prototype.toggleAttribute=function(X){return function(J,q){var T=Vz7(this);
if(!this.usePatchedLifecycles)return X.nativeToggleAttribute.call(this,J,q);var Q=this.getAttribute(J),m=Q!==null;q=X.nativeToggleAttribute.call(this,J,q);q!==m&&fZg(T,J,Q,q?"":null);return q}}(K);
e=[Document,DocumentFragment,Element,ShadowRoot];o5&&e.push(o5.Wrapper);e=_.b(e);for(K=e.next();!K.done;K=e.next())K=K.value,K.prototype.prepend=E7m(K.prototype.prepend),K.prototype.append=E7m(K.prototype.append);(o5==null?void 0:o5.noPatch)===!0&&Sb8();document.readyState==="complete"?wo(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&wo(document.body)});
var G=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");G&&G.get&&G.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:G.enumerable,configurable:!0,get:G.get,set:function(X){X||Km(this);G.set.call(this,X);return X}})}};
E7m=function(e){return function(){var z=_.yL.apply(0,arguments),C=_.b(FC5(z)),w=C.next().value;C=C.next().value;e.apply(this,z);z=_.b(C);for(C=z.next();!C.done;C=z.next())Km(C.value);if(this.isConnected)for(w=_.b(w),z=w.next();!z.done;z=w.next())z=z.value,z instanceof Element&&wo(z)}};
Sb8=function(){for(var e=_.b(d7g),z=e.next();!z.done;z=e.next()){z=z.value.prototype;for(var C=_.b(D75),w=C.next();!w.done;w=C.next()){w=w.value;var K=Object.getOwnPropertyDescriptor(z,w);K&&Object.defineProperty(z,"__shady_native_"+w,K)}}};
fZg=function(e,z,C,w){var K,G;if((K=e.polymerController)==null?0:(G=K.observedAttributes)==null?0:G.includes(z))if(e=e.polymerController,e.attributeChangedCallbackWrapper)e.attributeChangedCallbackWrapper.call(e,z,C,w);else{var X;(X=e.attributeChangedCallback)==null||X.call(e,z,C,w)}};
FC5=function(e){var z=[],C=[];e=_.b(e);for(var w=e.next();!w.done;w=e.next())w=w.value,w instanceof Element&&w.isConnected&&C.push(w),w instanceof DocumentFragment?z.push.apply(z,_.s_(Array.from(w.children))):z.push(w);return[z,C]};
Vz7=function(e){return!(e instanceof Element)&&e.node instanceof Element?e.node:e};
i54=function(e,z){var C=z?["children"].concat(_.s_(z)):["children"];z=[];C=_.b(C);for(var w=C.next();!w.done;w=C.next()){var K=w.value;if(e.hasOwnProperty(K)){w=e[K];w=typeof w==="function"?w():w;w=Array.isArray(w)?w:[w];w=Ld(w).flat();if(K!=="children"){K=CKh(K);for(var G=_.b(w),X=G.next();!X.done;X=G.next())X=X.value,X instanceof Element&&X.setAttribute("slot",K)}z.push(w)}}z.length===0?e=[]:(e=Ld(_.x("div",null,z)),e=Array.from(e.childNodes));return e};
sj7=function(e,z,C){var w={};_.N6(function(){var K={},G;for(G in z)if(z.hasOwnProperty(G)){var X=void 0,J=void 0;if(!(((X=C.slotProps)==null?0:X.includes(G))||G==="children"||((J=C.callbackProps)==null?0:J.includes(G))||G==="ref")&&(X=_.gp(z[G]),w[G]!==X)){w[G]=X;J=void 0;var q=(J=e.hostElement)!=null?J:e;!C.skipHostForwardedProps&&Nsg.has(G)&&(q[G]=X);K[G]=X}}OH(function(){if(e.setProperties)e.setProperties(K);else for(var T=_.b(Object.entries(K)),Q=T.next();!Q.done;Q=T.next()){var m=_.b(Q.value);
Q=m.next().value;m=m.next().value;e[Q]=m}})},"l")};
tzo=function(e,z,C,w){var K=i54(C,w.slotProps),G=(0,_.x$)(e);K=_.b(K);for(var X=K.next();!X.done;X=K.next())G.appendChild(X.value);sj7(z,C,w);w=_.b(w.callbackProps||[]);K=w.next();for(G={};!K.done;G={kebabEventName:void 0,eventListener:void 0},K=w.next())X=K=K.value,String(K).substring(0,2)==="on"&&C[X]?(G.kebabEventName=CKh(String(K).substring(2)),G.eventListener=C[X],e.addEventListener(G.kebabEventName,G.eventListener),_.BC(function(Q){return function(){e.removeEventListener(Q.kebabEventName,Q.eventListener)}}(G))):
z[X]=C[X];
if(C.ref){C=_.b(Bso(C.ref));var J=C.next().value,q=C.next().value,T=z.attached.bind(z);z.attached=function(){J(e);T()};
_.BC(function(){q()})}};
Bso=function(e){if(typeof e==="function"){var z;return[function(C){z=e(C)},
function(){var C;(C=z)==null||C()}]}if(!e.onRender||!e.onUnmount)throw Error("Sg");
return[e.onRender,e.onUnmount]};
g7g=function(e,z){z=z===void 0?{}:z;var C=function(w){var K=document.createElement(e),G;var X=(G=K.polymerController)!=null?G:K;tzo(K,X,w,z);return K};
C.debugName=e;return C};
Aeo=function(e,z,C,w,K){w=w===void 0?{}:w;var G=jjg,X=!1;G?(X=!0,jjg=void 0):(yek=z,G=document.createElement(z),yek=void 0);var J=G;J.usePatchedLifecycles=!0;J.lifecycleIsConnected=!1;G.loggingStatus={};var q=ceg(e,z,G,w,K);_.BC(function(){J.lifecycleIsConnected&&(J.lifecycleIsConnected=!1,q.disconnectedCallback())});
X||(G.__noInsertionPoint=!0,tzo(G,q,C,w));return G};
ceg=function(e,z,C,w,K){K=K===void 0?Mzk:K;Z5m[z]!=null||(Z5m[z]=K(e,z,w==null?void 0:w.getTemplate,w));var G=Z5m[z],X=G.ctor;K=G.getInitialMethods;var J=G.getPropsToForwardBeforeReady;e=G.getPropsToForwardBeforeRegister;w=G.shouldForwardProp;var q=G.observedAttributes,T=G.shouldLog,Q=X(C,{beforeReady:function(){var m=Q;m._takeAttributes?m._takeAttributes():m.setPropertiesFromInitialAttributeValues&&m.setPropertiesFromInitialAttributeValues();m=_.b(J(C.polymerController));for(var a=m.next();!a.done;a=
m.next()){var n=_.b(a.value);a=n.next().value;n=n.next().value;U77(C,a,n);T(z)&&!Cm(a)&&WC8(C.polymerController,a)}C.polymerController=tU4(Q,z)}});
C.polymerController=Q;C.polymerController.observedAttributes=q;G=_.b(Q.getExtraMethodsToForward());for(X=G.next();!X.done;X=G.next())q=_.b(X.value),X=q.next().value,q=q.next().value,v7h(C,X,q);K=_.b(K());for(G=K.next();!G.done;G=K.next())G=G.value,w(G)&&v7h(C,G),T(z)&&!Cm(G)&&IZg(Q,G);e=_.b(e());for(w=e.next();!w.done;w=e.next())K=_.b(w.value),w=K.next().value,K=K.next().value,U77(C,w,K);return Q};
pXL=function(e){var z=Gx;Gx=e;return z};
CF1=function(e){if(eH4.has(e)&&Gx&&zHk(Gx)===e){var z;(z=Gx)._numRenders!=null||(z._numRenders=0);Gx._numRenders++;if(Gx._numRenders>1)throw Error("Tg");return Gx}};
KQN=function(e){var z=zHk(e);Gx!==e&&z.includes("-")&&wY1.set(e,!0)};
zHk=function(e){var z;return(z=e==null?void 0:e.tagName.toLowerCase())!=null?z:""};
o6E=function(e,z){if(e.componentType===Fy)throw Error("Ug");eH4.add(z);var C=function(){var w=HTMLElement.call(this)||this;w.is=z;if(yek===z)return w.isInert=!0,w;w.createElement();return w};
_.U(C,HTMLElement);C.prototype.createElement=function(){if(!this.isInert){jjg=this;var w=_.b(_.Amo(function(){return _.x(e,null)})).next().value;
jjg=void 0;gA5(this);return w}};
customElements.define(z,C)};
YK1=function(e,z,C,w,K){e.prototype.is=z;(w==null?0:w.useSink)?Gcm(e,z,C,w,K):(C=Mzk(e,z,C,w),PIm(C,z));return e};
Gcm=function(e,z,C,w,K){ucm();var G=_.f(function(X){return Aeo(e,z,X,Object.assign({},w,{getTemplate:C}),K)},"m");
G.debugName=z;o6E(G,z);return G};
XY4=function(e){return!b8g.has(e)};
qKE=function(e,z,C,w){function K(){if(!m){for(var a=new Set(J6L),n=_.b(G.behaviors),H=n.next();!H.done;H=n.next()){H=H.value;for(var I=_.b(Object.getOwnPropertyNames(H)),L=I.next();!L.done;L=I.next()){L=L.value;var h=void 0,E=(h=Object.getOwnPropertyDescriptor(H,L))==null?void 0:h.value;E&&E instanceof Function&&(!T[L]||_.M("polymer_forward_method_killswitch"))&&a.add(L)}}n=_.b(Object.entries(Object.getOwnPropertyDescriptors(e.prototype)));for(H=n.next();!H.done;H=n.next())I=_.b(H.value),H=I.next().value,
I=I.next().value,I.value instanceof Function&&a.add(H);m=a}return m}
var G=gDg({is:z,disableElementRegistration:!1,getTemplate:C,providers:w==null?void 0:w.providers,reactivityMode:w==null?void 0:w.reactivityMode},e);if((w==null?0:w.allowedProps)||(w==null?0:w.allowedPropsFromBehaviors)){var X,J;G.allowedProps=[].concat(_.s_((X=w.allowedProps)!=null?X:[]),_.s_((J=w.allowedPropsFromBehaviors)!=null?J:[]))}var q=djL(G,e);z=q.observedAttributes;var T={};C=_.b(G.reactiveSchemas);for(w=C.next();!w.done;w=C.next())if(w=w.value,w.type==="signal")T[w.propertyKey]={readOnly:w.readOnly},
w.readOnly&&(T[l95(w.propertyKey)]={readOnly:!0});else if(w.type==="compute"||w.type==="computeWithMethod"||w.type==="redux")T[w.propertyKey]={readOnly:!0};var Q=G.reactiveSchemas.length,m;return{ctor:function(a,n){a=new q(a);a.beforeReady=n.beforeReady;return a},
props:T,observedAttributes:z,getInitialMethods:K,getPropsToForwardBeforeRegister:function(){for(var a=[],n=new Set,H=_.b(kc4),I=H.next();!I.done;I=H.next())I=I.value,a.push([I,I!=="observers"&&I!=="properties"]),n.add(I);H=_.b(Object.keys(T));for(I=H.next();!I.done;I=H.next())I=I.value,a.push([I,T[I].readOnly]),n.add(I);H=K();I=_.b(Object.keys(Object.getOwnPropertyDescriptors(e.prototype)));for(var L=I.next();!L.done;L=I.next())L=L.value,!XY4(L)||H.has(L)||n.has(L)||(a.push([L,!1]),n.add(L));a.push(["allowedProps",
!0]);return a},
getPropsToForwardBeforeReady:function(a){var n=[];a=_.b(Object.keys(a));for(var H=a.next();!H.done;H=a.next()){H=H.value;var I=K();XY4(H)&&!I.has(H)&&n.push([H,!1])}a=_.b(G.reactiveSchemas.slice(Q));for(H=a.next();!H.done;H=a.next())H=H.value,H.type!=="compute"&&H.type!=="computeWithMethod"&&H.type!=="redux"&&H.type!=="signal"||n.push([H.propertyKey,H.type==="signal"?H.readOnly:!0]);return n},
shouldForwardProp:XY4,shouldLog:vI}};
_.u=function(e,z,C,w){var K,G,X=(G=(K=w)==null?void 0:K.mode)!=null?G:0;w!=null||(w={});var J;(J=w).reactivityMode!=null||(J.reactivityMode=0);X===1&&_.r3("creator_poly_si_disable_list").includes(z)&&(X=2);return X===1?YK1(e,z,C,Object.assign({},w,{useSink:!0}),qKE):YK1(e,z,C,Object.assign({},w,{useSink:X===2}))};
_.Yp=function(){return function(e,z,C,w){var K,G,X=(G=(K=w)==null?void 0:K.mode)!=null?G:2;w!=null||(w={});var J;(J=w).reactivityMode!=null||(J.reactivityMode=0);if(X===0)throw Error("Vg`"+X);return Gcm(e,z,C,w,X===1?qKE:void 0)}};
_.bA=function(e){return _.M("creator_poly_si_killswitch")?!1:_.M("force_all_poly_si_batches")&&(e==="poly_si_all_on_test_check"||e==="creator_poly_si_batch_050"?0:e)||document.documentElement.hasAttribute("use-signals")?!0:!e||_.M(e+"_holdback_enabled")&&_.M("kevlar_polysi_holdback")?!1:_.M(e)};
XH=function(e){return e?e.icon?e.icon.iconType.toLowerCase():e.customThumbnail?"member":"":""};
xf7=function(e){if(!e)return"";e=_.b(e);for(var z=e.next();!z.done;z=e.next())if((z=z.value)&&z.liveChatAuthorBadgeRenderer&&(z=XH(z.liveChatAuthorBadgeRenderer))&&z!=="verified")return z;return""};
TrE=function(e,z){if(!e)return null;var C;return((C=e.find(function(w){return w&&w.liveChatAuthorBadgeRenderer?XH(w.liveChatAuthorBadgeRenderer)===z:!1}))==null?void 0:C.liveChatAuthorBadgeRenderer)||null};
_.n64=function(e){var z=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;e=$fk(e);z=$fk(z);var C=lJN(e.hex);z=lJN(z.hex);var w=z[0]/255;var K=z[1]/255,G=z[2]/255,X=Math.max(w,K,G),J=Math.min(w,K,G),q=0,T=0,Q=.5*(X+J);X!=J&&(X==w?q=60*(K-G)/(X-J):X==K?q=60*(G-w)/(X-J)+120:X==G&&(q=60*(w-K)/(X-J)+240),T=0<Q&&Q<=.5?(X-J)/(2*Q):(X-J)/(2-2*Q));w=[Math.round(q+360)%360,T,Q];C=QRs(C,z);for(e=mf7(e.hex);C<4.5;){e=w[2]>=.5?e.darker((4.5-C)/2):e.brighter((4.5-C)/2);C=e.toString();
K=aJE(C);if(!K.length)throw Error("Xd`"+C);C=K;C=QRs(C,z)}return e.hex()};
QRs=function(e,z){e=_.j$g(e);z=_.j$g(z);return(Math.max(e,z)+.05)/(Math.min(e,z)+.05)};
_.JE=function(e){return"#"+("000000"+(e&16777215).toString(16)).slice(-6)};
_.MPE=function(e){for(var z=0,C=0;C<e.length;C++)z=e.charCodeAt(C)+((z<<5)-z);e="#";for(C=0;C<3;C++)e+=("00"+(z>>C*8&255).toString(16)).slice(-2);return e};
r6E=function(e){e=(e||"").split(":");e.length===1&&e.unshift("yt-icons");e[1]=e[1].toLowerCase();return e};
PF4=function(e,z){var C=(z=z===void 0?!1:z)?H8L:Uf1,w=z?v67:IJh;e.getIconNames().forEach(function(K){K=z?K:K.substring(K.indexOf(":")+1);e.name==="yt-icons"?WQ8.add(K):K.includes("-filled")?C.add(K):w.add(K)})};
kp=function(e,z,C,w){C=C===void 0?!1:C;w=w===void 0?!1:w;var K,G,X;return _.k(function(J){if(J.nextAddress==1)return J.yield(RHk,2);if(w)return J.return(WQ8.has(e));K=C?H8L:Uf1;G=C?v67:IJh;return z?(X=e.includes("-filled")?e:e.concat("-filled"),J.return(K.has(X))):J.return(G.has(e))})};
_.qF=function(e){if(LQN(e))return e.toString();var z=hH7.get(e);if(z)return z;z=e.toLowerCase();var C="yt-icons",w=z.replace(/_/g,"-");switch(e){case "MY_CHANNEL":z="account_circle";break;case "ADD_TO_LIBRARY":z="add";break;case "ALERT_WARN_RED":z="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":z="person_music";break;case "BLOCK_USER":z="block";break;case "CAPTIONS":z="closed_caption";break;case "CLOSED_CAPTION":C="av";z="closed-caption";break;case "COLLECTION":C="maps";z="layers";break;case "CONTACT":C=
"icons";z="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":C="yt-studio-system-icons";z=w.split("creator-studio-")[1];break;case "DISMISSAL":z="close";break;case "DO_NOT_DISTURB":z="block";break;case "DOGFOOD":C="icons";z="pets";break;case "DRAFT":z="paper_corner_folded";
break;case "EMPTY_LIKE":z="like_outline";break;case "EXIT_APP":z="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":z=w;break;case "GAMES":C="ytg";z="my-games";break;case "GO_TO_PAGE":z="arrow-forward";break;case "GROUP":C="social";break;case "HIDE":z="not_interested";break;case "INPUT_COMPONENT":C="icons";z="settings-input-component";break;case "KIDS_BLOCK":z="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":C="ytg";z="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":C=
"ytg";z="membership-post-purchase";break;case "MULTIVIEW":z="screen_multi_view";break;case "MY_LOCATION":C="maps";z=w;break;case "NOTIFICATIONS_INBOX":z="NOTIFICATIONS";break;case "NEXT":z="chevron_right";break;case "OFFLINE":z="power-settings-new";break;case "PAUSE":C="miniplayer";break;case "PAYMENT":C="icons";break;case "PHONE_DOWNLOAD":z="phone_download";break;case "PREMIUM_STANDALONE":C="yt-logos";z="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":C="yt-logos";z="premium_standalone_cairo";
break;case "QUESTION_ANSWER":z="question_answer";break;case "REDEEM":C="icons";z="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":z="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":z="library_add";break;case "SCHOOL":C="yt-sys-icons";z="creator_academy";break;case "SETTINGS_LIGHT":z="settings_applications";break;case "SETTINGS_MATERIAL":z="settings";break;case "SEARCH_HISTORY":z="watch_history";break;case "SHOPPING_BAG":z="bag";break;case "SOCIAL":case "PEOPLE":C=
"yt-icons";z="people";break;case "STAFF_PICK":C="ytg";z="spotlight";break;case "START_DVR":z="add";break;case "STOP_DVR":C="av";z="stop";break;case "TAB_LIKED":z="like";break;case "TAB_INBOX":z="mail";break;case "TERMS_OF_SERVICE":C="icons";z="description";break;case "TRENDING":z="fire";break;case "UNBLOCK_USER":z="remove";break;case "UNPLUGGED_DARK_THEME":C="image";z="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":z="live";break;case "UNPLUGGED_SPORTS":C="ytu";z="visibility-off";break;
case "VIDEOS":C="av";z="play-circle-filled";break;case "YOUTUBE":C="yt-logos";z="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":C="yt-logos-ext";z="yt-logo-red-updated";break;case "YOUTUBE_LOGO":C="yt-logos-ext";z="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":C="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":C="shorts";z=w;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":C="yt-sys-icons";z="youtube_improve_tv";break;case "OUTLINE_BAG":C=
"yt-sys-icons";z="bag";break;case "QUEUE_PLAY_LAST":C="yt-sys-icons";z="list_queue_last";break;case "SLASH_CIRCLE_LEFT":z="slash_circle_left";break;case "SPEED_1_POINT_2X":z="1_point_2x";break;case "SPEED_1_POINT_5X":z="1_point_5x";break;case "SPEED_1_POINT_8X":z="1_point_8x";break;case "SPEED_POINT_2X":z="point_2x";break;case "SPEED_POINT_5X":z="point_5x";break;case "SPEED_POINT_8X":z="point_8x";break;case "SPEED_1X":z="1x";break;case "SPEED_2X":z="2x";break;case "TAB_BOOKMARK":z="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":C="yt-sys-icons";z="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":C="yt-sys-icons";z="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":C="yt-sys-icons",z="tic_tac_toe"}z=C+":"+z;hH7.set(e,z);return z};
LQN=function(e){var z;_.M("kevlar_use_wil_icons")?z=!!_.lh().resolve(_.xp).resolveIcon({iconName:e.toString()}):z=!1;return z};
_.$p=function(e,z,C,w){C=C===void 0?{}:C;w=w===void 0?!1:w;C===null&&(C={});var K=_.r3("kevlar_command_handler_command_banlist");K=_.b(K);for(var G=K.next();!G.done;G=K.next())if(G=e?e.hasOwnProperty(G.value):void 0,G)return!1;K=_.r(e.commandMetadata,_.XV);return w&&K!=null&&K.url?!1:!z.disableCommandHandlerOverride&&_.Tx.instance?(w=_.Tx.instance,C.form||(C.form={element:z}),C.form.element||(C.form.element=z),!C.clickedVisualElement&&z.visualElement&&(C.clickedVisualElement=z.visualElement),w.resolveCommand(e,
C),!0):!1};
O8s=function(e,z){e=lA(e);for(var C=_.b(e.visibilityMonitorKeys||[]),w=C.next();!w.done;w=C.next())z.unobserveByKey(w.value);e.visibilityMonitorKeys=void 0};
Qk=function(e,z){if(_.Pr()){if(_.M("kevlar_vimio_use_shared_monitor"))E6k(e,z.data);else if(!E6k(e,z.data))return;var C=z.data,w=FQg(C);if(_.M("enable_client_ve_spec_logging"))O8s(e,z.observer);else{var K=lA(e);K.trackedParams&&K.trackedParams!==w&&O8s(e,z.observer)}K=lA(e);!C||K.data&&K.data===C||(K.data=C);VPh(e,z);K.trackedParams=w}};
VPh=function(e,z){var C=z.observer;if(!C&&_.M("web_skip_missing_vimio_observer")){var w,K;_.AX(new _.uh("VisibilityObserver is not defined.",e.tagName,e.trackedParams,(w=z.data)==null?void 0:w.trackingParams,(K=z.data)==null?void 0:K.loggingDirectives))}else{var G=z.layer,X=z.visibilityCallback||function(){},J=z.prescanCallback,q=lA(e);
w=[];z.showOption&&w.push(C.observe(e,function(){z.skipLogging&&z.skipLogging()||_.mO().reportShown(q,void 0,G,7);X(!0)},z.showOption));
z.hideOption&&w.push(C.observe(e,function(){_.mO().reportHidden(q,void 0,G,7);X(!1)},z.hideOption));
z.prescanOption&&J&&w.push(C.observe(e,function(){J()},z.prescanOption));
q.visibilityMonitorKeys=w}};
E6k=function(e,z){e=lA(e);if(e.visualElement&&!z)return!0;if(!z)return!1;var C=!1;if(_.M("enable_client_ve_spec_logging")){var w,K;C=!!((w=z.loggingDirectives)==null?0:(K=w.clientVeSpec)==null?0:K.uiType)}w=FQg(z);if(!w&&!C)return!1;_.M("mweb_component_visibility_logging")&&(e.veContainer||(e.veContainer={}),e.veContainer.trackingParams=w);if(e.trackedParams&&e.trackedParams===w)return!1;var G;if(_.M("enable_client_ve_spec_logging")&&((G=e.visualElement)==null?0:G.isClientVe())){var X;G=(X=e.visualElement)==
null?void 0:X.getAsJspb();var J,q,T,Q;if(_.$2(G,2)===((J=z.loggingDirectives)==null?void 0:(q=J.clientVeSpec)==null?void 0:q.uiType)&&_.$2(G,3,-1)===((T=z.loggingDirectives)==null?void 0:(Q=T.clientVeSpec)==null?void 0:Q.elementIndex))return!1}if(_.M("enable_client_ve_spec_logging")){var m,a;!e.visualElement&&((m=z.loggingDirectives)==null?0:(a=m.clientVeSpec)==null?0:a.uiType)&&(J=z.loggingDirectives.clientVeSpec,z=J.uiType,X=J.elementIndex,J=J.clientYoutubeData,e.visualElement=_.a5(_.nm(),{veType:z,
elementIndex:X,clientYouTubeData:J}))}return!0};
FQg=function(e){if(e==null?0:e.rendererContext){var z=_.r(e.rendererContext,_.MF);if(z==null?0:z.loggingDirectives)return z.loggingDirectives.trackingParams}return(e==null?0:e.loggingDirectives)?e.loggingDirectives.trackingParams:e==null?void 0:e.trackingParams};
lA=function(e){var z;return(z=e.polymerController)!=null?z:e};
dfN=function(e){_.mO();if(_.Z_(ro().JSC$12894_elementShouldLogGesture).bind(ro())(e,4)){fJh(e);var z=SKm(e);uJL.set(e,z)}};
fJh=function(e){uJL.has(e)&&(uJL.get(e).cancel("untrack hover element"),uJL.delete(e))};
SKm=function(e){var z,C=[],w=!1,K=new _.RC(function(G,X){H9(e,"mouseenter",_.Z_(function(){var J,q,T;return _.k(function(Q){if(Q.nextAddress==1)return z=(0,_.as)(),J=Df7(e),C.push(J),q=i8h(e,function(){w=!0;X(Error("Wg"))}),Q.yield(J,2);
if(Q.nextAddress!=3)return q&&Um(q),T=Nr4(e),C.push(T),Q.yield(T,3);G();_.E_(Q)})}))});
K.then(function(){var G=(0,_.as)()-z;G=Math.round(G);if(!(500>G||6E5<=G)){var X=e.getScreenLayer?e.getScreenLayer():void 0;X=_.Pr(X)||"";var J=sRh(_.mO(),e);_.jA(X,e.visualElement?e.visualElement:_.v9(J),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:G}})}dfN(e)},function(){I5&&(I5(),I5=null);
w&&(fJh(e),dfN(e))});
return K};
Df7=function(e){var z;return(new _.RC(function(C,w){I5=function(){w(Error("Xg"))};
z=_.c5.debounce(_.Z_(function(){Um(K);C()}),1,100);
var K=_.W9(e,"mousemove",z)})).thenCatch(function(){var C=_.c5.cancelDebouncedJobMap.get(z);
C&&_.c5.cancelJob(C)})};
Nr4=function(e){var z;return(new _.RC(function(C,w){I5=function(){w(Error("Yg"))};
z=H9(e,"mouseleave",_.Z_(function(){C()}))})).thenCatch(function(){Um(z)})};
i8h=function(e,z){return H9(e,"mouseleave",_.Z_(z))};
tPh=function(e){Br4&&_.P9.cancel(Br4);Br4=_.P9.run(function(){_.pi(e,"yt-visibility-refresh");Br4=0})};
g6h=function(e){e=Number(e);return"rgba("+[e>>16&255,e>>8&255,e&255,(e>>24&255)/255].join()+")"};
y61=function(e){if(!e)return!1;if(_.r(e,_.jR1))return!0;var z;if(e=(z=_.r(e,_.Gj))==null?void 0:z.commands)for(z=_.b(e),e=z.next();!e.done;e=z.next())if(_.r(e.value,_.jR1))return!0;return!1};
c61=function(e){var z=!0;z=z===void 0?!0:z;if(!e.useSignals&&!e.experimentalPropertiesChanged||_.M("experimental_templating_behavior_nopatch_killswitch")){var C=e._propertiesChanged;e._propertiesChanged=function(w,K,G){z?e.debounceRender():e.doRender();C&&C.call(e,w,K,G)}}};
A61=function(e,z){if(e.useSignals||e.experimentalPropertiesChanged)if(_.M("experimental_templating_behavior_nopatch_killswitch"))e.experimentalPropertiesChanged=function(){};
else return;var C=new Set,w=[e].concat(_.s_(e.behaviors));w=_.b(w);for(var K=w.next();!K.done;K=w.next()){K=K.value;for(var G in K.properties)C.has(G)||(e._addPropertyEffect(G,"function",z),C.add(G))}};
Z88=function(){var e=Polymer.Element,z=e._prepareTemplate;e._prepareTemplate=function(){z.call(this);var C=this.prototype;if(C.experimentalTemplatingInUse&&C.experimentalTemplatingInUse()&&C.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.yG(Error("Zg"));else{C=this.template.content.childNodes;for(var w=C.length-1;w>=0;w--){var K=C[w];K.nodeName!=="STYLE"&&K.nodeName!=="LINK"&&K.nodeName!=="SCRIPT"&&K.nodeName!=="#comment"&&K.remove()}}}};
pY1=function(e){var z=!0;z=z===void 0?!0:z;Z88();var C=e.ready;e.ready=function(){this._template=null;C.call(this)};
A61(e,z?e.debounceRender:e.doRender)};
z3o=function(e,z,C){if(C===null||C===void 0)return C;var w=aVs(e.tagName.toLowerCase(),z,function(){throw Error("Tb");});
if(w===null)return C;w=e3L[w];var K;if((K=w.isUnwrappable)==null?0:K.call(w,C)){if(w.unwrap)return w.unwrap(C);throw Error("bh");}return w.filterString?w.filterString(e.tagName,z,String(C)):C};
Cah=function(e,z,C){var w=z[z.length-1]!=="$";C=z3o(e,z,C);w?e[z]=C:(w=C==null?null:String(C),ZK(e,z.slice(0,-1),w))};
Lm=function(e){wBg.length===0&&requestAnimationFrame(function(){setTimeout(function(){var z=wBg.slice();wBg.length=0;z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;try{C()}catch(w){_.R5(w)}}})});
wBg.push(e)};
K3h=function(e){if(e){var z=e.component;if(z){var C;z==null||(C=z.events)==null||C.publish("DISCONNECTED");var w;z==null||(w=z.onDisconnected)==null||w.call(z)}var K,G;(K=e.__spec)==null||(G=K.didUnmount)==null||G.call(K);for(z=0;z<e.childNodes.length;z++)K3h(e.childNodes[z])}};
ohg=function(e,z,C){var w=z&&z.key,K=X1;K[0]=e;K[1]=w;K[2]=void 0;for(var G in z)z.hasOwnProperty(G)&&(e=z[G],w=JR,w.push(G),w.push(e));z=X1;a:{if(G=X1[2])for(e=0;e<G.length;e+=2)if(G[e]==="nonce"){G=G[e+1];break a}G=""}G=KA5(z[0],z[1],G);e=Cd(G);w=z[2];if(!e.staticsApplied&&(e.staticsApplied=!0,w&&w.length))if((K=e._attrsArr)&&K.length){for(K=0;K<w.length;K+=2)hE[w[K]]=K+1;K=e._attrsArr||(e._attrsArr=BKm(0));for(var X=0,J=0;J<K.length;J+=2){var q=K[J],T=K[J+1],Q=hE[q];Q?w[Q]===T&&delete hE[q]:(K[X]=
q,K[X+1]=T,X+=2)}AG(K,X);for(var m in hE)cH1(G,m,w[hE[m]],lp),delete hE[m]}else for(m=0;m<w.length;m+=2)cH1(G,w[m],w[m+1],lp);k01(G,e,lp);AG(z,0);C&&C(w1);oWN()};
_.Om=function(e,z,C){C===void 0?delete e[z.name]:e[z.name]=C};
_.Em=function(e){var z={androidIncludeFontPadding:!1},C=0,w=[],K=[],G=[];if(e.simpleText)return z.content=e.simpleText,z;if(e.runs===void 0)return z.content="",z;e=_.b(e.runs);for(var X=e.next();!X.done;X=e.next()){X=X.value;var J=X.text,q=void 0,T=(q=J)==null?void 0:q.length;if(J&&T){w.push(J);if(X.bold||X.italics||X.strikethrough||X.underline||X.textColor!=null&&X.textColor!==0||X.deemphasize){J=K;q=J.push;var Q={startIndex:C,length:T};X.bold&&(Q.weightLabel="FONT_WEIGHT_MEDIUM");X.italics&&(Q.italic=
!0);X.strikethrough&&(Q.strikethrough="LINE_STYLE_SINGLE");X.underline&&(Q.underline="LINE_STYLE_SINGLE");X.textColor!=null&&X.textColor!==0?document.documentElement.hasAttribute("dark")?Q.fontColor=X.darkModeTextColor||X.textColor:Q.fontColor=X.textColor:X.deemphasize&&(document.documentElement.hasAttribute("dark")?Q.fontColor=parseInt("ff"+G7h("#aaa").substring(1),16):Q.fontColor=parseInt("ff"+G7h("#606060").substring(1),16));q.call(J,Q)}X.navigationEndpoint&&(J=G,q=J.push,Q={startIndex:C,length:T,
onTap:{innertubeCommand:X.navigationEndpoint}},X.loggingDirectives&&_.Om(Q,YpE,X.loggingDirectives),q.call(J,Q));C+=T}}z.content=w.join("");z.styleRuns=K.length?K:void 0;z.commandRuns=G.length?G:void 0;return z};
XBE=function(e){if(e==null||!e.runs)return!0;e=_.b(e.runs);for(var z=e.next();!z.done;z=e.next())if(z=z.value,z.bracket||z.errorUnderline||z.deemphasize||_.r(z,FH)||_.r(z,bu1))return!1;return!0};
J3k=function(e,z){return function(C){var w=z.unit;if(w!==C)throw Error("eh`"+e+"`"+w+"`"+C);return z}};
Vk=function(e){if(!((e==null?0:e.value)&&(e==null?0:e.unit)))return"";switch(e.unit){case "DIMENSION_UNIT_FRACTION":var z="%";break;default:z="px"}e=e.value;z==="%"&&(e*=100);return""+e+z};
k7L=function(e){try{return e()}catch(z){_.AX(z)}};
_.SQ=function(e){var z=_.r(e,_.fm);if(z)return z;if((z=_.r(e,qpm))&&z.commands)return xAk(z.commands);if((z=_.r(e,T2L))&&z.commands)return xAk(z.commands);if((e=_.r(e,$Ao))&&e.identifier&&e.command&&(ltg||(ltg=[]),!ltg.includes(e.identifier)))return ltg.push(e.identifier),_.r(e.command,_.fm)};
xAk=function(e){if(e.length!==0){var z=[];e=_.b(e);for(var C=e.next();!C.done;C=e.next())(C=_.SQ(C.value))&&z.push(C);return{commandExecutorCommand:{commands:z}}}};
_.Df=function(e){var z=e.defaultTarget,C=e.elementConfig,w=e.elementsCommand,K=e.skipOnClick,G=e.forceNewState,X=e.additionalCommandArgs,J=e.innertubeCommand||_.SQ(w);if(J){e={};var q=QG1(J);w=q.navigatingCommand;q=q.href;w&&q?(e.href$=q,mA7(e,w,q,z),_.M("web_atagconfig_pointerdown")&&ato(e,w),G&&(e["force-new-state$"]=!0)):(e.role$="button",e.href$="javascript:void(0);");_.r(J,nhh)&&(e["aria-haspopup$"]=!0);K||(e.onclick=function(T){var Q={};if(M$1(T)){var m=(X==null?void 0:X.clickedVisualElement)||
(X==null?void 0:X.getClickedVisualElement)&&X.getClickedVisualElement();m&&(Q={clickedVisualElement:m});Q=Object.assign({},{form:{element:T.target,event:T,createScreenConfig:Q}},X);T.preventDefault();_.uA(J,Q)}});
return Object.assign({},C,e)}};
r31=function(e){if(e.length){if(e.length===1)return e[0];var z={};_.Om(z,_.Gj,{commands:e});return z}};
iA=function(e){return e&&e.href$!=="javascript:void(0);"};
QG1=function(e){var z,C=((z=_.r(e,_.Gj))==null?void 0:z.commands)||[e];e=_.b(C);for(z=e.next();!z.done;z=e.next()){z=z.value;var w=void 0,K=void 0;C=(K=_.r((w=z)==null?void 0:w.commandMetadata,_.XV))==null?void 0:K.url;_.M("web_remove_web_navigation_endpoint_data")||(w=void 0,C=C||((w=_.r(z,Hug))==null?void 0:w.url));if(C&&C!=="/service_ajax"){if(w=_.Ng(C,UA4))return e=_.Dy(w),{navigatingCommand:z,href:e};_.AX(new _.uh("AttributedString URL could not be sanitized",C))}}return{}};
M$1=function(e){return e.button!==void 0?e.button===0&&!(e.shiftKey||e.altKey||e.metaKey||e.ctrlKey):!(e.shiftKey||e.altKey||e.metaKey||e.ctrlKey)};
mA7=function(e,z,C,w){C=!xB(C);var K,G,X;if((K=_.r(z,_.mJ))!=null&&K.nofollow||(G=_.r(z,_.N$))!=null&&G.nofollow||(X=_.r(z,_.oO))!=null&&X.nofollow||C)e.rel$="nofollow";var J;z=((J=_.r(z,_.oO))==null?void 0:J.target)==="TARGET_NEW_WINDOW"?"_blank":w===void 0?"":w;e.target$=z};
ato=function(e,z){z.clickTrackingParams&&(e.params={itct:z.clickTrackingParams});e.onpointerdown=function(C){vhg(C)};
e._data=z};
It5=function(e){(e.loggingUrls||[]).forEach(function(z){YO(z.baseUrl,z.attributionSrcMode)})};
vhg=function(e){var z=e.currentTarget;e=k7L(function(){return z.href});
var C=z.params;e&&_.gN(e,C||{},8,!0)};
_.NF=function(e,z){(e=_.SQ(e))&&_.uA(e,z)};
_.uA=function(e,z){Xf7(function(C){z?C.resolveCommand(e,z):C.resolveCommand(e)})};
L3g=function(e,z){var C=["yt-core-attributed-string__link"];z!=null&&z.noLinkColor||((z==null?0:z.isOverlay)?C.push("yt-core-attributed-string__link--overlay-call-to-action-color"):C.push("yt-core-attributed-string__link--call-to-action-color"),(z==null?0:z.linkInheritColor)&&C.push("yt-core-attributed-string--link-inherit-color"));C={className:C.join(" "),tabindex$:"0"};var w=e.onTap||e.onLongPress;if(!w)return C;var K=W31(e);K&&(C["aria-label$"]=K);z=_.Df({elementsCommand:w,elementConfig:C,skipOnClick:!(z==
null||!z.skipOnClick),forceNewState:!0});e.onLongPress&&(w=new Pag(function(){var G=_.SQ(e.onLongPress);G&&_.lh().resolve(_.ms).resolveCommand(G)}),z&&R3g(w,z));
return z||C};
W31=function(e){var z,C;return(z=e.onTapOptions)==null?void 0:(C=z.accessibilityInfo)==null?void 0:C.accessibilityLabel};
h31=function(e){var z=e;e<=16777215&&(z+=parseInt("ff000000",16));return _.FN(z)};
OuL=function(e){var z=e.isDarkTheme;var C=e.extension;e=e.runColor;var w=void 0;if(C=C==null?void 0:C.colorMap){z=z?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";C=_.b(C);for(var K=C.next();!K.done;K=C.next())if(K=K.value,z===K.key){w=K.value;break}}w==null&&e&&(w=e);if(w)return h31(w)};
sm=function(e){var z=e.config;var C=e.image;var w=e.imageConfig;var K=e.imageWrapperConfig;var G=e.run;var X=e.tag;var J=e.textLength;var q=e.startIndex===void 0?0:e.startIndex;e=e.length;q===void 0&&(q=0);G={run:G,startIndex:q,endIndex:e!==void 0?q+e:J,tag:X};C&&(G.image=C);w&&(G.imageConfig=w);K&&(G.imageWrapperConfig=K);z&&(G.config=z);return G};
F3g=function(e,z){var C=[];C.push("yt-core-attributed-string");(z==null?0:z.className)&&C.push(z==null?void 0:z.className);(z==null?0:z.ellipsisTruncate)?C.push("yt-core-attributed-string--ellipsis-truncate"):(z==null?0:z.noWrap)?C.push("yt-core-attributed-string--white-space-no-wrap"):(z==null?0:z.noPreWrap)||C.push("yt-core-attributed-string--white-space-pre-wrap");(z==null?0:z.linkInheritColor)&&C.push("yt-core-attributed-string--link-inherit-color");e.alignment&&C.push(Ehs(e.alignment));e.lineBreakMode&&
C.push("yt-core-attributed-string--word-wrapping");return C.join(" ")};
V$1=function(e,z){if(e.weight)return e.weight;switch(e.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 z?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
ft1=function(e){switch(e){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"}};
Ehs=function(e){switch(e){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"}};
go=function(e,z,C){var w=z;e.content&&C&&(C=e.content.indexOf("\n"),C!==-1&&(w=Math.min(z,C)));if(!e.content||e.content.length<=w)z=e;else if(e.attachmentRuns||e.commandRuns||e.decorationRuns||e.styleRuns||e.paragraphStyleRuns){z=B9(e.content,w);C=w;var K=e.attachmentRuns;if(K){var G=[];K=_.b(K);for(var X=K.next();!X.done;X=K.next())X=Object.assign({},X.value),X.startIndex===void 0||X.startIndex>=C||(X.length||(X.length=0),X.length+X.startIndex>C&&(X.length=C-X.startIndex),G.push(X));C=G}else C=void 0;
G=Sp1(w,e.commandRuns);K=w;var J=e.decorationRuns;if(J){X=[];J=_.b(J);for(var q=J.next();!q.done;q=J.next()){q=q.value;var T=_.r(q.textDecorator,tE);if(T&&T.startIndex!==void 0&&!(T.startIndex>=K)){q=Object.assign({},q,{textDecorator:{highlightTextDecorator:Object.assign({},T)}});T=_.r(q.textDecorator,tE);if(!T.length||T.length+T.startIndex>K)T.length=K-T.startIndex;X.push(q)}}K=X}else K=void 0;X=Sp1(w,e.styleRuns);if(J=e.paragraphStyleRuns)for(e=[],J=_.b(J),q=J.next();!q.done;q=J.next()){var Q=q.value;
q=Object.assign({},Q);if(!(q.startIndex===void 0||q.startIndex>=w)){if(!q.length||q.length+q.startIndex>w)q.length=w-q.startIndex;T=[];var m=void 0,a=void 0;if((m=Q)==null?0:(a=m.listGroup)==null?0:a.listItems)for(Q=_.b(Q.listGroup.listItems),m=Q.next();!m.done;m=Q.next())if(m=Object.assign({},m.value),!(m.startIndex===void 0||m.startIndex>=w)){if(!m.length||m.length+m.startIndex>w)m.length=w-m.startIndex;T.push(m)}T.length>0&&(q.listGroup||(q.listGroup={}),q.listGroup=Object.assign({},q.listGroup,
{listItems:T}));e.push(q)}}else e=void 0;z={content:z,attachmentRuns:C,commandRuns:G,decorationRuns:K,styleRuns:X,paragraphStyleRuns:e}}else z=Object.assign({},e,{content:B9(e.content,w)});return z};
Sp1=function(e,z){if(z){var C=[];z=_.b(z);for(var w=z.next();!w.done;w=z.next())if(w=Object.assign({},w.value),!(w.startIndex===void 0||w.startIndex>=e)){if(!w.length||w.length+w.startIndex>e)w.length=e-w.startIndex;C.push(w)}return C}};
B9=function(e,z){var C=z,w;if(w=C>0)w=e.charCodeAt(C-1),w=w>=55296&&w<=56319;w&&(C=e.charCodeAt(C),w=C>=56320&&C<=57343);w&&--z;return e.substring(0,z)};
iug=function(e,z,C){C=C===void 0?u3g:C;if(e){var w=_.lh().resolve(m$);w||_.M("mweb_no_observer_killswitch")?Qk(e,{data:z,observer:w,visibilityCallback:C,hideOption:dA4,showOption:DA8,layer:e.layer}):_.AX(new _.uh("Warning: monitorVisibility called with null observer",e.tagName,z==null?void 0:z.loggingDirectives,z==null?void 0:z.trackingParams))}else _.AX(new _.uh("Warning: monitorVisibility called with null element",z==null?void 0:z.loggingDirectives,z==null?void 0:z.trackingParams,z==null?void 0:
z.rendererContext))};
y3L=function(e,z){var C=[],w=e.content.length,K,G=(K=_.lh().resolve(_.$B(_.jQ)))==null?void 0:K();if(e.paragraphStyleRuns){K=_.b(e.paragraphStyleRuns);for(var X=K.next();!X.done;X=K.next()){var J=C.push,q=J.apply;var T=void 0;X=X.value;if((T=X.listGroup)!=null&&T.listItems){T=[];b:switch(X.listGroup.listType){case "LIST_TYPE_BULLET":var Q="ul";break b;default:Q="span"}T.push(sm({run:X,textLength:w,tag:Q,config:{className:"yt-core-attributed-string__list-group"},startIndex:X.startIndex,length:X.length}));
Q=_.b(X.listGroup.listItems);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;b:switch(X.listGroup.listType){case "LIST_TYPE_BULLET":var a="li";break b;default:a="span"}T.push(sm({run:X,textLength:w,tag:a,startIndex:m.startIndex,length:m.length}))}X=T}else X=[];q.call(J,C,_.s_(X))}}if(e.styleRuns&&(z==null||!z.noStyleRuns))for(K=_.b(e.styleRuns),J=K.next();!J.done;J=K.next()){X=J=J.value;T=G;q=z;T=OuL({extension:_.r(X.styleRunExtensions,N27),isDarkTheme:T===void 0?!1:T,runColor:X.fontColor});m=X;
Q=[];T&&Q.push("yt-core-attributed-string--link-inherit-color");m.italic&&Q.push("yt-core-attributed-string--italicized");m.underline&&m.strikethrough?Q.push("yt-core-attributed-string--underline-strikethrough",ft1(m.underline)):m.underline?Q.push("yt-core-attributed-string--underlined",ft1(m.underline)):m.strikethrough&&Q.push("yt-core-attributed-string--strikethrough",ft1(m.strikethrough));if(m.baselineOffset){a:switch(m.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":m="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":m="yt-core-attributed-string--baseline-offset-superscript";break a;default:m="yt-core-attributed-string--baseline-offset-unknown"}Q.push(m)}Q=Q.join(" ");m={};if(X.weight||X.weightLabel)m.fontWeight=V$1(X,q==null?void 0:q.isHeadline).toString();T&&(m.color=T);C.push(sm({run:J,textLength:w,tag:"span",config:{className:Q,style:m},startIndex:J.startIndex,length:J.length}))}if(e.decorationRuns)for(K=_.b(e.decorationRuns),J=K.next();!J.done;J=K.next())J=J.value,
q={},J.textDecorator&&(Q=J.textDecorator,X=G===void 0?!1:G,m=[],T=_.r(Q,tE),Q=_.r(Q,sGk),T?(Q=m,m=Q.concat,a=[],(X=OuL({extension:_.r(T.highlightTextDecoratorExtensions,B21),isDarkTheme:X,runColor:T.backgroundColor}))&&a.push("background-color: "+X+";"),T.backgroundCornerRadius!==void 0&&a.push("border-radius: "+T.backgroundCornerRadius+"px;"),T.leftPadding!==void 0&&a.push("padding-left: "+T.leftPadding+"px;"),T.rightPadding!==void 0&&a.push("padding-right: "+T.rightPadding+"px;"),T.topPadding!==
void 0&&a.push("padding-top: "+T.topPadding+"px;"),T.bottomPadding!==void 0&&a.push("padding-bottom: "+T.bottomPadding+"px;"),m=m.call(Q,a)):Q&&(T=m,m=T.concat,X=X?"#2ba640":"#107516",X=Q.color?h31(Q.color):X,X=["padding: 2px;","border-top: solid "+X+" 2px;","border-bottom: solid "+X+" 2px;","background: linear-gradient(135deg, "+X+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+X+" 3px, rgba(0, 0, 0, 0) 3px);"],m=m.call(T,X)),X=m.join(" "),q.style$=X,X=J.textDecorator,T=[],Q=_.r(X,
sGk),_.r(X,tE)?T.push("yt-core-attributed-string--highlight-text-decorator"):Q&&T.push("yt-core-attributed-string--bracket-text-decorator"),X=T.join(" "),q.className=X,q.dir="auto"),X=_.r(J.textDecorator,tE),T=_.r(J.textDecorator,sGk),Q=_.r(J.textDecorator,tE),m=_.r(J.textDecorator,sGk),C.push(sm({run:J,textLength:w,tag:"span",config:q,startIndex:(X==null?void 0:X.startIndex)||(T==null?void 0:T.startIndex)||0,length:(Q==null?void 0:Q.length)||(m==null?void 0:m.length)||0}));if(e.commandRuns&&(z==
null||!z.noEndpoints))for(G=_.b(e.commandRuns),K=G.next();!K.done;K=G.next())K=K.value,J=L3g(K,z),C.push(sm({run:K,textLength:w,tag:"a",config:J,startIndex:K.startIndex,length:K.length}));if(e.attachmentRuns)for(e=_.b(e.attachmentRuns),G=e.next();!G.done;G=e.next()){G=G.value;q=J=void 0;K={className:"yt-core-attributed-string--inline-block-mod"};if((q=G.element)==null?0:q.properties){q=(J=G.element)==null?void 0:J.properties;J=[];q=_.r(q,t$g);if(q==null?0:q.margin)q=q.margin,q.left&&J.push("margin-left: "+
Vk(q.left)+";"),q.right&&J.push("margin-right: "+Vk(q.right)+";"),q.top&&J.push("margin-top: "+Vk(q.top)+";"),q.bottom&&J.push("margin-bottom: "+Vk(q.bottom)+";");J=J.length!==0?J.join(" "):void 0;K.style$=J}X=void 0;J={alt:"",preserveHeight:!0,preserveWidth:!0};q=["yt-core-attributed-string__image-element"];if(G.alignment){a:switch(G.alignment){case "ALIGNMENT_BASELINE":T="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":T="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:T="yt-core-attributed-string__image-element--image-alignment-bottom"}q.push(T)}if((X=G.element)==null?0:X.properties)X=[],T=_.r(G.element.properties,t$g),(T==null?0:T.height)&&X.push("height: "+Vk(T.height)+";"),(T==null?0:T.width)&&X.push("width: "+Vk(T.width)+";"),X=X.length!==0?X.join(" "):void 0,J.style$=X,T=void 0,X=((T=_.r(G.element.properties,gh1))==null?void 0:T.label)||"",J.alt=X;J.className=q.join(" ");q=void 0;Q=T=void 0;X=((Q=G.element)==null?0:Q.type)?(T=_.r(G.element.type,
jG1))==null?void 0:T.image:void 0;C.push(sm({run:G,textLength:w,tag:"img",image:X,imageConfig:J,imageWrapperConfig:K,startIndex:G.startIndex,length:(q=G.length)!=null?q:0}))}if(z==null?0:z.headerRuns)for(z=_.b(z.headerRuns),e=z.next();!e.done;e=z.next())if(e=e.value,e.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(e.headerMapping)){a:{switch(e.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":G=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":G="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":G="yt-core-attributed-string--heading-3";break a}G=void 0}C.push(sm({run:e,textLength:w,tag:"span",config:G?{className:G}:void 0,startIndex:e.startIndex,length:e.length}))}return C};
_.yk=function(e){return(e==null?void 0:e.content)!==void 0};
c34=function(e){return e.image!==void 0&&e.imageConfig!==void 0};
A31=function(e,z){return!!z||!(e.commandRuns&&e.commandRuns.length!==0||e.paragraphStyleRuns&&e.paragraphStyleRuns.length!==0)};
Zuo=function(e,z){if(z==null?0:z.userInput)for(e=_.b(e),z=e.next();!z.done;z=e.next())if(z=z.value,z.tag!=="a"&&z.tag!=="li"){var C=void 0;(C=z).config||(C.config={});z.config.dir=z.tag==="ul"?_.lh().resolve(_.c9):"auto"}};
pBg=function(e){return function(z){var C=e.run;C.onTap===void 0&&C.onLongPress===void 0||!_.r(C,YpE)||(C={loggingDirectives:_.r(C,YpE)},_.M("web_attr_string_unified_vis_mon")?Qk(z,{data:C,observer:_.lh().resolve(m$),hideOption:dA4,showOption:DA8,layer:z.layer}):iug(z,C))}};
euN=function(e){return function(z){for(var C in e)(lp[C]||lp[zR["default"]])(z,C,e[C])}};
KPE=function(e,z){zug(z);var C={data:null,start:0,end:e.length,parts:[]};z=_.b(z);for(var w=z.next();!w.done;w=z.next())w=w.value,CQm(C,w.startIndex,w.endIndex,w);weh(e,C);return C};
CQm=function(e,z,C,w){for(var K=_.b(e.parts),G=K.next();!G.done;G=K.next()){G=G.value;if(typeof G==="string")throw Error("gh");if(G.start<=z&&C<=G.end){CQm(G,z,C,w);return}}e.parts.push({data:w,parts:[],start:z,end:C})};
weh=function(e,z){for(var C=z.parts.length;C>=0;C--){var w=z.parts[C],K=z.parts[C-1],G=C===z.parts.length?z.end:w.start;K=C===0?z.start:K.end;G!==K&&z.parts.splice(C,0,e.slice(K,G));w&&weh(e,w)}};
zug=function(e){e.sort(function(z,C){if(z.startIndex<C.startIndex)return-1;if(C.startIndex<z.startIndex)return 1;z=z.endIndex-z.startIndex;C=C.endIndex-C.startIndex;return z>C?-1:C>z?1:0})};
_.o_4=function(e){var z=e.thumbnails;if(z){e={sources:[]};z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w={};w.url=C.url;w.width=C.width;w.height=C.height;e.sources.push(w)}return e}};
Gu1=function(e,z,C,w){if(!z)return e.length>=1?e[e.length-1]:null;if(w)for(var K=_.b(e),G=K.next();!G.done;G=K.next()){G=G.value;var X=void 0,J=(X=G.url)==null?void 0:X.indexOf(w);if(J!==void 0&&J>=0)return G}w=_.b(e);for(K=w.next();!K.done;K=w.next())if(K=K.value,K.width&&K.height&&(C&&K.width>=z||!C&&K.height>=z))return K;for(z=e.length-1;z>=0;z--)if(C&&e[z].width||!C&&e[z].height)return e[z];return e[0]};
_.YYL=function(e){var z;return(e=(z=e.sources)==null?void 0:z[0])?e.width/e.height:0};
_.b2k=function(e){if(e.sources){e=_.b(e.sources);for(var z=e.next();!z.done;z=e.next()){z=z.value;var C=void 0;if((C=z.clientResource)==null?0:C.imageName)return z}}};
JNg=function(e){var z={};e=_.r(e.processor,Xe1);var C=(e=e==null?void 0:(C=e.imageTint)==null?void 0:C.color)?_.FN(e):void 0;C&&(z.color=C);return z};
kug=function(e){var z;if((z=e.clientResource)!=null&&z.imageColor)return _.FN(e.clientResource.imageColor)};
_.xis=function(e,z,C,w,K,G,X){if(!z||z.length===0||z[0].clientResource)return null;if(C&&z[0].url)return z[0].url;w===void 0&&(w=!0);if(w){var J;e=qY7*(K||(e==null?void 0:(J=e.getBoundingClientRect())==null?void 0:J.width)||0)}else{var q;e=qY7*(G||(e==null?void 0:(q=e.getBoundingClientRect())==null?void 0:q.height)||0)}z=Gu1(z,e,w,X);return(z==null?0:z.url)?z.url:(z==null?0:z.imageData)?z.imageData:null};
TzL=function(e,z,C){C=C?[C]:[];e.opacity&&C.push("opacity: "+e.opacity+";");z&&e.placeholderColor?(e=_.FN(e.placeholderColor),C.push("background-color: "+e+";")):C.push("background-color: transparent;");return C.join(" ")};
$ig=function(e,z,C,w,K){var G=["ytCoreImageHost"];z&&G.push(z);C||G.push("ytCoreImageFillParentHeight");w||G.push("ytCoreImageFillParentWidth");switch(e.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":G.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":G.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":G.push("ytCoreImageContentModeCenter");break;default:G.push("ytCoreImageContentModeScaleToFill")}e.flipForRtlLayout&&G.push("ytCoreImageFlipRtl");
switch(K){case "TOP_START":var X;G.push(((X=document.body)==null?void 0:X.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return G.join(" ")};
QD7=function(e){var z;if(e==null?0:(z=e.clientResource)==null?0:z.imageName){var C;e=(C=e.clientResource)==null?void 0:C.imageName;a:{switch(e){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":C="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":C="yt-logos-ext:yt-logo-updated";break a}C=void 0}return C||lDg.get(e)||e}};
n_1=function(e){return _.M("mweb_wiz_skip_render")?mi8(e):aDh(e)};
mi8=function(e){return function(z){var C=KA5("wink-root");GR=w1.lastChild;oWN();LTg(C,_.x(e,z))}};
aDh=function(e){var z=z===void 0?!1:z;return function(C){if(!z||!_.M("mweb_skip_keto_to_c3_if_no_data")||C.data!==void 0){var w=mM(!1);try{var K=C.children;_.M("mweb_render_outside_patch_killswitch")||w1?K?$I(_.x(e,C,K)):$I(_.x(e,C)):_.AX(new _.uh("ketoToC3 called outside of a patch",{tagName:e.TAG_NAME}))}finally{mM(w)}}}};
MWE=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
H2L=function(e,z){e.onViewportEntered=z;rNg.observe(e)};
UiE=function(){var e={rootMargin:"10%",threshold:.01};_.M("mweb_enable_set_io_root_to_null_safari")?e.root=null:_.M("mweb_enable_set_io_root_to_body_safari")&&(e.root=document.body);return new IntersectionObserver(function(z,C){z.filter(function(w){return w.intersectionRect.height>0}).forEach(function(w){w=w.target;
if(!_.M("mweb_enable_only_update_image_when_connected")||w.isConnected!==!1){var K;(K=w.onViewportEntered)==null||K.call(w);C.unobserve(w)}})},e)};
v_8=function(e,z,C,w,K){function G(){if(w){var J=w.loadedClass,q=w.notifyOnUnloaded;J&&_.AE(e,J);q&&e.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function X(){var J=C(z,e);J&&e.getAttribute("src")!==J&&(_.M("mweb_enable_only_update_image_when_connected")&&e.isConnected===!1||J===e.src||(e.src=J),G())}
K=K===void 0?!0:K;e.removeAttribute("src");G();z&&(K?H2L(e,X):X())};
ID4=function(e,z,C){if(!z)return!1;z=C(z,e);C=e.getAttribute("src");return z&&z===C&&e.complete};
WPm=function(e,z){for(var C in z)C==="className"?e.className=z[C]:(lp[C]||lp[zR.default])(e,C,z[C])};
PQL=function(e,z,C,w){n_1(_.Zf)({contentMode:z.contentMode,loadedClass:z.loadedClass,isPreloaded:z.isPreloaded,notifyOnLoaded:z.notifyOnLoaded,notifyOnUnloaded:z.notifyOnUnloaded,preferredThumbnail:z.preferredThumbnail,preserveHeight:z.preserveHeight,preserveWidth:z.preserveWidth,objectPosition:z.objectPosition,targetWidth:z.targetWidth,targetHeight:z.targetHeight,shouldShowPlaceholder:z.shouldShowPlaceholder,useWidth:z.useWidth,isToggled:z.isToggled,alt:z.alt,className:z.className,onerror:z.onerror,
onload:z.onload,style$:z.style$,color:z.color,width:z.width,height:z.height,"aria-hidden$":z["aria-hidden$"],draggable:z.draggable,"data-disabled$":z["data-disabled$"],data:e,callback:C,renderLazy:w===void 0?!0:w,hideOn404:!1})};
LP1=function(e,z,C){C=C===void 0?!1:C;var w=e.sources!==void 0?e:_.o_4(e);if(w){var K=z.onload;z.onload=function(T){var Q=T.target;C&&Q.naturalWidth===120||_.pm(Q,"ytCoreImageLoaded");z.notifyOnLoaded&&Q.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));K==null||K(T)};
z.targetWidth&&z.preserveWidth&&(z.width=z.targetWidth);z.targetHeight&&z.preserveHeight&&(z.height=z.targetHeight);var G=_.b2k(w),X=G&&QD7(G),J=JNg(w);if(X)return(e=kug(G)||J.color)&&(z.color=e),{type:"icon",iconName:X,config:Object.assign({},z,z.alt?{}:{"aria-hidden$":"true"},{"aria-label$":z.alt,role:"img"})};if(e.sources===void 0){z.alt=e.accessibility&&e.accessibility.accessibilityData&&e.accessibility.accessibilityData.label||z.alt;z.style$=TzL(e,z.shouldShowPlaceholder,z.style$);var q;z.isPreloaded=
!((q=_.r(e,Ruo))==null||!q.isPreloaded)}z.contentMode&&!w.contentMode&&(w.contentMode=z.contentMode);z.className=$ig(w,z.className,z.preserveHeight,z.preserveWidth,z.objectPosition);z.loadedClass="ytCoreImageLoaded";return{type:"image",image:w,config:z}}};
_.ej=function(){var e=_.yL.apply(0,arguments);return _.qD(huE,function(z){var C=e.map(function(w){return w==null?void 0:w(z)});
return function(){return void C.forEach(function(w){return void(w==null?void 0:w())})}})};
O2o=function(e,z){var C=z==null?void 0:z.initial;return _.hG(function(){_.gp(!0);return C=e(C)},{equals:z==null?void 0:z.isEqual},"rSlKsc")};
E_h=function(e,z){if(e===z)return!0;if(e===void 0||z===void 0)return!1;var C,w,K,G,X,J,q,T;return e.content===z.content&&((C=e.styleRuns)==null?void 0:C.length)===((w=z.styleRuns)==null?void 0:w.length)&&((K=e.commandRuns)==null?void 0:K.length)===((G=z.commandRuns)==null?void 0:G.length)&&((X=e.attachmentRuns)==null?void 0:X.length)===((J=z.attachmentRuns)==null?void 0:J.length)&&((q=e.decorationRuns)==null?void 0:q.length)===((T=z.decorationRuns)==null?void 0:T.length)};
fDE=function(e,z){if(e){var C=_.yk(e)?e:_.Em(e);if(C!=null&&C.content)if(_.M("attr_string_reactive_c3"))z=z||{},z.contentAsserted=!0,n_1(FP1)({text:C,config:z});else{var w;e=A31(C,(w=z)==null?void 0:w.ariaLabel);var K;w=e?(K=z)==null?void 0:K.ariaLabel:null;K=e?"text":null;var G;ohg("span",{className:F3g(C,z),dir$:((G=z)==null?0:G.userInput)?"auto":void 0,"aria-label$":w,role$:K},function(){if(C.styleRuns||C.commandRuns||C.attachmentRuns||C.decorationRuns||C.paragraphStyleRuns){var X=y3L(C,z);Zuo(X,
z);X=KPE(C.content,X);X=_.b(X.parts);for(var J=X.next();!J.done;J=X.next())VWg(J.value)}else q8m(C.content)})}}};
VWg=function(e){typeof e==="string"?q8m(e):c34(e.data)?ohg("span",e.data.imageWrapperConfig,function(){PQL(e.data.image,e.data.imageConfig)}):ohg(e.data.tag,e.data.config,function(z){pBg(e.data)(z);
z=_.b(e.parts);for(var C=z.next();!C.done;C=z.next())VWg(C.value)})};
ud1=function(e){return e.parts.map(SYE)};
SYE=function(e){if(typeof e==="string")return e;e=c34(e.data)?_.x("span",{el:_.ej(euN(e.data.imageWrapperConfig))},_.x(_.Zf,Object.assign({},{data:e.data.image},e.data.imageConfig))):_.x(e.data.tag,{el:_.ej(pBg(e.data),euN(e.data.config))},e.parts.map(SYE));return Ld(e)};
dih=function(e,z){return e===z?!0:e===void 0||z===void 0?!1:e.noStyleRuns===z.noStyleRuns&&e.noLinkColor===z.noLinkColor&&e.noEndpoints===z.noEndpoints&&e.headerRuns===z.headerRuns&&e.isOverlay===z.isOverlay&&e.linkInheritColor===z.linkInheritColor&&e.userInput===z.userInput&&e.isHeadline===z.isHeadline};
Dig=function(e){return function(){var z,C,w,K,G,X,J,q,T,Q,m,a,n,H;return{ariaLabel:(z=e.ariaLabel)==null?void 0:z.call(e),className:(C=e.className)==null?void 0:C.call(e),ellipsisTruncate:(w=e.ellipsisTruncate)==null?void 0:w.call(e),isOverlay:(K=e.isOverlay)==null?void 0:K.call(e),linkInheritColor:(G=e.linkInheritColor)==null?void 0:G.call(e),noEndpoints:(X=e.noEndpoints)==null?void 0:X.call(e),noStyleRuns:(J=e.noStyleRuns)==null?void 0:J.call(e),noLinkColor:(q=e.noLinkColor)==null?void 0:q.call(e),
noPreWrap:(T=e.noPreWrap)==null?void 0:T.call(e),noWrap:(Q=e.noWrap)==null?void 0:Q.call(e),skipOnClick:(m=e.skipOnClick)==null?void 0:m.call(e),userInput:(a=e.userInput)==null?void 0:a.call(e),headerRuns:(n=e.headerRuns)==null?void 0:n.call(e),isHeadline:(H=e.isHeadline)==null?void 0:H.call(e)}}};
NzL=function(e,z){e=new i24(e,z);_.yG(e);throw e;};
sDk=function(e,z,C){var w=pXL(e);e._numRenders=0;try{var K=_.Amo(function(){return _.x(z,Object.assign({},C))})}catch(X){var G=function(J){J.args||(J.args=[]);
J.args.push("Error in web component wrapper");J.args.push(e.tagName.toLowerCase());return J};
_.cn(X instanceof Error?G(X):new i24("Wiz rendering error",e.tagName.toLowerCase()));throw X;}finally{pXL(w)}return K};
_.KU=function(e,z,C){function w(Q){var m={};Q=_.b(Q);for(var a=Q.next();!a.done;a=Q.next()){a=a.value;var n=void 0,H=void 0,I=void 0,L=_.Jw((I=(H=(n=a).getAttribute)==null?void 0:H.call(n,"slot"))!=null?I:"children");if(n=m[L])n.push(a);else if(L in G||L==="children")m[L]=[a]}Q=_.b(Object.keys(m));L=Q.next();for(a={};!L.done;a={content$jscomp$59:void 0},L=Q.next())L=L.value,L!=="children"&&(a.content$jscomp$59=m[L],m[L]=function(h){return function(){return h.content$jscomp$59}}(a));
return m}
C=C===void 0?{}:C;e.debugName=z+" (CoW)";var K,G=(K=C.props)!=null?K:{};eH4.add(z);var X=Bzk();K=function(){var Q=X.apply(this,arguments)||this;Q.rawProps={};Q.queuingRender=!1;Q.dispose=function(){};
Q.isWebComponentWrapper=!0;Q.isReparenting=!1;Q.hasRendered=!1;return Q};
_.U(K,X);K.prototype.render=function(){this.hasRendered=!0;for(var Q=_.b([].concat(_.s_(this.attributes))),m=Q.next();!m.done;m=Q.next())m=m.value,m.name!=="slot"&&m.name!=="hidden"&&this.removeAttribute(m.name);Q=Object.assign({},this.componentProps,this.slotProps);m=_.b(sDk(this,e,Q));Q=m.next().value;m=m.next().value;!(Q[0]instanceof Element)||Q.length>1?NzL("Wrapped Wiz components must return a single root element.",z):(Q=Q[0].tagName.toLowerCase(),Q!==z&&NzL("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(Q+" !== '"+z),z),this.dispose=m)};
K.prototype.setUpProps=function(){for(var Q=this.rawProps,m=this.attributes,a=_.b(Object.keys(G)),n=a.next();!n.done;n=a.next()){n=n.value;var H=void 0;((H=this)==null?0:H[n])&&this[n]!==tWE&&Q[n]===void 0&&(Q[n]=this[n],(H=Object.getOwnPropertyDescriptor(this.constructor.prototype,n))&&Object.defineProperty(this,n,H))}a=_.b(m);for(n=a.next();!n.done;n=a.next()){H=n.value;n=_.Jw(H.name);var I=n==="class"&&!m.getNamedItem("class-name");if(n in G||I)H=H.value===""||H.value==="true"?!0:H.value==="false"?
!1:isNaN(Number(H.value))?H.value:Number(H.value),n!=="class"||Q.className?Q[n]=H:Q.className=H}m={};for(var L in G)G[L]!==_.z9&&G[L]!==g_4&&(Q[L]instanceof Function&&NzL("Function props must be configured as STATIC, not SIGNAL.",z),n=_.b(_.II(Q[L],void 0,"tbseob")),a=n.next().value,n=n.next().value,m[L]=n,Q[L]=a);Q=_.b([Q,m]);this.componentProps=Q.next().value;this.setters=Q.next().value;this.slotProps=w(this.childNodes)};
K.prototype.connectedCallback=function(){wY1.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in G&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
K.prototype.disconnectedCallback=function(){if(!wY1.has(this)){var Q;a:{if(_.CU)for(Q=this;Q;){if(_.wG.has(Q)){Q=!0;break a}Q=Q.parentElement}Q=!1}if(Q)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){Q=_.b([].concat(_.s_(this.attributes)));for(var m=Q.next();!m.done;m=Q.next()){m=m.value;var a=void 0;m.name==="slot"||m.name==="hidden"&&((a=C.unsafeExternallySettableAttributes)==null?0:a.has("hidden"))||this.removeAttribute(m.name)}}this.innerText="";gA5(this)}}};
K.prototype._setPendingPropertyOrPath=function(){};
K.prototype.notifyPath=function(){};
_.lB.Object.defineProperties(K.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var J=_.b(Object.keys(G)),q=J.next(),T={};!q.done;T={prop$jscomp$109:void 0},q=J.next())T.prop$jscomp$109=q.value,q=void 0,((q=C.legacyPolymer)==null?0:q.forwardHostProps)&&Nsg.has(T.prop$jscomp$109)||Object.defineProperty(K.prototype,T.prop$jscomp$109,{set:function(Q){return function(m){var a=this;wY1.has(this)||(this.setters?OH(function(){var n,H;return void((H=(n=a.setters)[Q.prop$jscomp$109])==null?void 0:H.call(n,m))}):(this.rawProps[Q.prop$jscomp$109]=m,this.queuingRender&&Q.prop$jscomp$109===
"data"&&m!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(T),
get:jDN.has(T.prop$jscomp$109)?void 0:function(){return tWE}});
customElements.define(z,K)};
_.yNh=function(e,z){return(e=_.oo(e,z))?_.Dy(_.gw(e)):null};
_.G9=function(e){if(e=_.oo(e,Number.MAX_VALUE,void 0,"width"))return _.gw(e)};
_.oo=function(e,z,C,w){w=w===void 0?"width":w;if(!e||!e.length)return null;if(_.M("kevlar_tuner_should_always_use_device_pixel_ratio")){var K=window.devicePixelRatio;_.M("kevlar_tuner_should_clamp_device_pixel_ratio")?K=Math.min(K,_.n0("kevlar_tuner_clamp_device_pixel_ratio")):_.M("kevlar_tuner_should_use_thumbnail_factor")&&(K=_.n0("kevlar_tuner_thumbnail_factor"));cNg=K}else cNg||(cNg=window.devicePixelRatio);K=cNg;_.M("kevlar_tuner_should_always_use_device_pixel_ratio")?z*=K:K>1&&(z*=K);if(_.M("kevlar_tuner_min_thumbnail_quality"))return e[0].url||
null;K=e.length;if(_.M("kevlar_tuner_max_thumbnail_quality"))return e[K-1].url||null;if(C)for(var G=0;G<K;G++)if(e[G].url.indexOf(C)>=0)return e[G].url||null;for(C=0;C<K;C++)if(e[C][w]>=z)return e[C].url||null;for(z=K-1;z>0;z--)if(e[z][w])return e[z].url||null;return e[0].url||null};
peh=function(){Yf.size?setTimeout(function(){bw(ANm)},0):Z2E=0};
ANm=function(){var e=(0,_.as)(),z=null,C=!1;Yf.forEach(function(K){K.loaded=!0;K.loadTime=e;K.pendingPaint=!1;var G=eML.get(K);G&&G.resolve(e);z=K;C||!K.ftlEligible&&K.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(C=!0)});
var w;((w=z)==null?0:w.markDirty)&&z.markDirty();Yf.clear();Z2E=0;C&&zMN(e)};
Cvg=function(e){Yf.add(e);e.pendingPaint=!0;Z2E||(Z2E=_.XW(_.c5,peh))};
w_s=function(e){e.loaded=!1;e.loadTime=Infinity;var z=eML.get(e);z&&(z.reject(Error("mh")),eML.delete(e));e.pendingPaint&&(Yf.delete(e),e.pendingPaint=!1)};
_.Krg=function(e){var z=e.indexOf(":");return z===-1?{originalName:e}:{originalName:e.substring(0,z),datasyncId:e.substring(z+1)}};
_.G28=function(){return _.k(function(e){if(oM4!==void 0)return e.return(oM4);oM4=new Promise(function(z){var C;return _.k(function(w){switch(w.nextAddress){case 1:return _.Iv(w,2),w.yield(_.Jq.open("test-only"),4);case 4:return w.yield(_.Jq.delete("test-only"),5);case 5:_.Yj(w,3);break;case 2:if(C=_.O_(w),C instanceof Error&&C.name==="SecurityError")return z(!1),w.return();case 3:z("caches"in window),_.E_(w)}})});
return e.return(oM4)})};
X_7=function(){return _.k(function(e){if(e.nextAddress==1)return e.yield(_.G28(),2);if(!e.yieldResult)return e.return(void 0);Yek||(Yek=new bnN);return e.return(Yek)})};
Jbg=function(e){var z,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:return G.yield(X_7(),2);case 2:z=G.yieldResult;if(!z)throw Error("oh");return G.yield(z.open("yt-player-local-img"),3);case 3:return C=G.yieldResult,G.yield(C.match(e),4);case 4:w=G.yieldResult;if(!w)throw Error("ph");return G.yield(w.blob(),5);case 5:return K=G.yieldResult,G.return(K)}})};
k2E=function(e,z){for(var C in e)if(e.hasOwnProperty(C)&&z[C])return C;return null};
qe5=function(e){return"stamp"+e.replace("-","_")+"_"};
xSh=function(e){var z=e.match(/\[\[([\w\.]+)\]\]/);if(z&&z.length>1)return z[1];_.yG(Error("rh`"+e));return null};
Tgk=function(e){return e===void 0?_.cR("REUSE_COMPONENTS",!1):e||!1};
Qyh=function(e,z,C){C&&(z.is?($Sm.has(z)&&(e=$Sm.get(z),C=e.listener,delete z[e.property],C.type==="element"&&z.removeEventListener(C.eventName,C.handler),$Sm.delete(z)),lpN(z)):z.__proto__==HTMLElement.prototype&&(z=new _.uh("Rendererstamper removed a non custom element","Stamper: "+e+" element: "+(z&&z.nodeName)),_.AX(z)))};
mS5=function(e,z,C,w){var K=z.node?z.node:z;_.XC(C).parentNode===K&&(z.removeChild(C),Qyh(e,C,w));if(e=kf.get(C))kf.delete(C),_.c5.cancelJob(e);C.hidden=!1};
apg=function(e,z,C,w){if(z&&z.children&&(C=z.children[C]))if(_.cR("DEFERRED_DETACH"))for(;C&&!kf.has(C);){var K=e,G=z,X=C,J=w;X.hidden=!0;K=_.Dz(_.c5,mS5.bind(null,K,G,X,J),0);kf.set(X,K);C=C.nextElementSibling}else for(;(X=z.lastElementChild)&&(z.removeChild(X),Qyh(e,X,w),X!=C););};
_.qT=function(){for(var e=_.yL.apply(0,arguments),z=!0,C=_.b(e),w=C.next();!w.done;w=C.next())if(typeof w.value!=="string"){z=!1;break}return z?e.join(" ").trim()||void 0:function(){for(var K="",G=_.b(e),X=G.next();!X.done;X=G.next())if(X=X.value,typeof X==="function"&&(X=X()),X)if(typeof X==="string")K+=" "+X;else for(var J in X)if(X.hasOwnProperty(J)){var q=X[J];typeof q==="function"&&(q=q());q&&(K+=" "+J)}K=K.trim()||void 0;return _.gp(K)}};
_.nME=function(e,z){return _.xz(e.entities,"markersEngagementPanelSyncEntity",z)};
_.xf=function(e,z){return _.xz(e.entities,"playerStateEntity",z)};
Mi5=function(e,z){return _.xz(e.entities,"fantasyWinProbabilityEntity",z)};
rb5=function(e,z){return _.xz(e.entities,"fantasyTeamEntity",z)};
HnL=function(e,z){return _.xz(e.entities,"fantasyPlayerEntity",z)};
US4=function(e,z){return _.xz(e.entities,"booleanEntity",z)};
vM7=function(e,z){return _.xz(e.entities,"qrCodeEntity",z)};
Ipm=function(e){return _.xz(e.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
Pvs=function(e){var z;return(z=Wr4[e])!=null?z:"EVENT_SPAN_TYPE_UNKNOWN"};
RMg=function(e){var z=e.nodeName;if(e.id)return z+="#"+e.id;if(e.classList)for(var C=_.b(e.classList),w=C.next();!w.done;w=C.next())z+="."+w.value;e.parentElement&&(z=RMg(e.parentElement)+" > "+z);return z};
Lr8=function(e){return function(z){var C=Pvs(z.type);return C==="EVENT_SPAN_TYPE_UNKNOWN"?e(z):pK("event",{type:C,nodepath:z.target instanceof Element?RMg(z.target):void 0},function(){return e(z)})}};
_.T9=function(e){e&&ZE("event")&&(e=Lr8(e));return vT1(function(z){var C,w=(C=e)==null?void 0:C(z);return typeof w==="boolean"?w:!0})};
$f=function(e){return function(){return e()?e():void 0}};
Frs=function(e){var z=_.kI("animated-rolling-character"),C=NNE(),w=Br(e.character)||Br(e.previousCharacter),K=_.b(NEL()),G=K.next().value,X=K.next().value;_.sg(function(){if(window.ResizeObserver&&_.M("web_fix_rolling_numbers_zoom_safari")){var J=new _.lw(function(){var T,Q,m=Math.round(((Q=(T=z.value.querySelector("div"))==null?void 0:T.getBoundingClientRect().height)!=null?Q:0)*100)/100;m&&X(m)},500),q=new ResizeObserver(function(){J.fire()});
q.observe(z.value);return function(){q.disconnect();J.dispose()}}});
E11(function(){var J=_.M("web_fix_rolling_numbers_zoom_safari")?G:e.marginMultiplier;if(J){var q;(q=C.value)==null||q.cancel();w?(q=e.previousCharacter?Number(e.previousCharacter)+10:e.rollUp?0:30,e.shouldAnimate||(q-=hM5(e,q))):(q=e.rollUp?0:2,e.shouldAnimate||(q-=e.rollUp?-1:1));z.value.style.marginTop="-"+q*J+"px";e.shouldAnimate?C.value=Ono(z.value,e,q,w,J):z.value.style.display=e.character?"":"none"}});
return _.x("animated-rolling-character",{el:z,class:"animatedRollingCharacterHost"},rfg(w,function(){for(var J=[],q=1;q<30;q++)J.push(_.x("div",null,q%10));return _.x(_.Qw,null,_.x("div",null,"\u00a0"),J,_.x("div",null,"\u00a0"))},function(){return EMs(e.character)}))};
EMs=function(e){return _.x(_.Qw,null,_.x("div",null,"\u00a0"),_.x(_.Qw,null,rfg(!e||_.bg(e),function(){return _.x("div",null,"\u00a0")},function(){return _.x("div",null,e)})),_.x("div",null,"\u00a0"))};
Ono=function(e,z,C,w,K){C=new Animation(new KeyframeEffect(e,[{transform:"translateY(0px)"},{transform:"translateY("+(w?hM5(z,C):z.rollUp?-1:1)*K+"px)"}],Vig),document.timeline);z.character?(e.style.display="",C.onfinish=null):C.onfinish=function(){e.style.display="none"};
C.play();return C};
hM5=function(e,z){var C=Number(e.character)+10;if(e.previousCharacter)if(e.character){var w=Number(e.character),K=Number(e.previousCharacter);e=e.rollUp?K<w?C:C+10:K<w?C-10:C}else e=e.rollUp?30:0;else e=e.character==="0"?C:e.rollUp?C-10:C+10;return z-e};
fpk=function(e){return function(z){var C={},w;for(w in z){var K=void 0,G=void 0;((K=void 0)==null?0:(G=K.callbacks)==null?0:G[w])||(C[w]=z[w])}return _.x(cmg,null,function(){for(var X in C)z[X]=_.gp(C[X]);z.disableReactiveLogging=!0;return _.x(e,Object.assign({},z))})}};
dSo=function(e,z,C,w,K,G,X){C=new Animation(new KeyframeEffect(e,[{transform:"translateY(0px)"},{transform:"translateY("+(G?Se8(z,C,w,K):w?-1:1)*X+"px)"}],uI4),document.timeline);z?(e.style.display="",C.onfinish=null):C.onfinish=function(){e.style.display="none"};
C.play();return C};
Se8=function(e,z,C,w){var K=Number(e)+10;z?e?(e=Number(e),z=Number(z),C=C?z<e?K:K+10:z<e?K-10:K):C=C?30:0:C=e==="0"?K:C?K-10:K+10;return w-C};
inE=function(e){var z=NNE(),C=NNE();SXE(function(){z.value=e.numberText;C.value=e.numberValue},[e.numberText]);
var w=e.fontSizeMultiplier?e.heightPx*e.fontSizeMultiplier:e.heightPx,K=iig(function(){if(e.numberText){var X=e.numberText;var J=e.forceRollUp||!C.value||!e.numberValue||C.value<e.numberValue;var q=!!e.shouldAnimate,T=z.value,Q=[],m=0,a=0,n=(T?T.replace(/\D/g,"").length:0)-(X?X.replace(/\D/g,"").length:0);T=T?T.split(/(\d)/).filter(Boolean):[];for(X=X.split(/(\d)/).filter(Boolean);n<0;){var H=X[a];Q.push({character:H,rollUp:J,marginMultiplier:w,shouldAnimate:q});a++;Br(H)&&n++}for(;m<n;)H=T[m],Q.push({previousCharacter:H,
rollUp:J,marginMultiplier:w,shouldAnimate:q}),m++,Br(H)||n++;for(;a<X.length;)n=X[a],H=T[m],Br(n)===Br(H)?(a++,m++):Br(n)?(m++,n=void 0):Br(H)&&(a++,H=void 0),Q.push({character:n,previousCharacter:H,rollUp:J,marginMultiplier:w,shouldAnimate:q});J=Q}else J=[];return J},[e.numberText]),G=e.numberText?["height: "+w+"px;",
"line-height: "+e.heightPx+"px;"].join(" "):"";return _.x("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:G,dir:"ltr","aria-hidden":"true"},K.map(function(X){return _.x(DS5,Object.assign({},X))}))};
NgE=function(e){switch(e){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.syL=function(e,z){if(!e&&!z)return"medium";e=Math.max(e||0,z||0);return e>=256?"large":e>=96?"medium":"small"};
BgL=function(e){switch(e){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
ti7=function(e){return new KeyframeEffect(e,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
gMg=function(e){return new KeyframeEffect(e,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.QC=function(e){return function(){var z="",C;for(C in e){for(var w=e[C];typeof w==="function";)w=w();w!==void 0&&w!==null&&(z+="; "+C+": "+w)}return z.length>0?_.gp(z.slice(2)):_.gp()}};
jyg=function(e){switch(e){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"}};
ybE=function(e,z){if(z)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(e)switch(e){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
ezE=function(e,z,C,w,K,G,X){var J=cb1(e),q=J.disabled,T=J.iconPosition,Q=J.style,m=J.focused,a=function(){return!!I()&&T()==="icon-only"},n=function(){return!!I()&&T()==="icon-only-40"},H=function(){return!!I()&&T()==="icon-with-label"},I=function(){return!!z||!(w==null||!w())};
return{type:function(){return Q()==="call-to-action-inverse"?"text":Q()==="overlay-dark"&&e().type!=="filled"&&e().type!=="tonal"?"tonal":e().type},
shouldFocus:function(){return(m()||(G==null?void 0:G()))&&!q()},
hasIconLeading:function(){return!!I()&&T()==="leading"},
hasIconTrailing:function(){return!!I()&&T()==="trailing"},
hasIconLeadingTrailing:function(){return!!I()&&!!(C||K!=null&&K())&&T()==="leading-trailing"},
hasIconOnly:a,hasIconOnly40:n,hasIconWithLabel:H,iconButton:function(){return a()||n()||H()},
visiblyDisabled:function(){return(q()?"disabled":e().state)==="disabled"||q()},
overrideSmallSizeIcon:function(){return!e().ignoreIconSizeOverride&&Ab7(e(),I())},
iconToRender:z?z:function(){return _.x(_.mB,{icon:w,gradientColor:function(){var L;return(L=e().customColors)==null?void 0:L.iconGradientColor},
size:function(){return Zn5(e(),!0,e().ignoreIconSizeOverride)},
active:function(){return e().toggled},
iconFilter:function(){return p_L(e())},
animateIcon:X})},
secondaryIconToRender:C?C:function(){return _.x(_.mB,{icon:K,size:function(){return Zn5(e(),!0,e().ignoreIconSizeOverride)},
active:function(){return e().toggled},
iconFilter:function(){return p_L(e())}})}}};
cb1=function(e){return{size:function(){return e().size},
style:function(){return e().style},
focused:function(){return e().focused},
disabled:function(){return e().disabled},
onTap:function(z){var C,w;return(w=(C=e()).onTap)==null?void 0:w.call(C,z)},
alignByText:function(){return e().alignByText},
aTagConfig:function(){return e().aTagConfig},
customColors:function(){return e().customColors},
segmentedPosition:function(){return e().segmentedPosition},
toggled:function(){return e().toggled},
toggleable:function(){return e().toggleable},
accessibilityLabel:function(){return e().accessibilityLabel},
onToggle:function(z){var C,w;return(w=(C=e()).onToggle)==null?void 0:w.call(C,z)},
iconPosition:function(){return e().iconPosition},
oneOffCustomTextWrap:function(){return e().oneOffCustomTextWrap},
disableTextEllipsis:function(){return e().disableTextEllipsis},
disableBackdropFilter:function(){return e().disableBackdropFilter},
tooltipText:function(){return e().tooltipText},
tooltipShape:function(){return e().tooltipShape},
ariaHidden:function(){return e().ariaHidden},
tabIndex:function(){return e().tabIndex},
buttonText:function(){return e().buttonText},
formattedButtonText:function(){return e().formattedButtonText},
animatedTextProps:function(){return e().animatedTextProps},
onClickRateLimitMs:function(){return e().onClickRateLimitMs}}};
Ab7=function(e,z){z=(e.iconPosition==="icon-only"||e.iconPosition==="icon-only-40"||e.iconPosition==="icon-with-label")&&z;return!e.segmentedPosition&&z&&e.size==="S"};
Zn5=function(e,z,C){switch(e.size){case "XS":return 16;case "S":return!C&&Ab7(e,z)?24:16;default:return 24}};
zzk=function(e){switch(e){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"}};
Crg=function(e){switch(e){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"}};
w6o=function(e){switch(e){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"}};
p_L=function(e){if(e.style==="overlay-dark"&&e.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
ao=function(e){return e&&e.endsWith("px")?Number(e.slice(0,-2)):0};
Gfh=function(e,z){var C=_.b(_.zx(function(){var K,G;return(G=e())!=null?G:z==null?void 0:(K=z())==null?void 0:K.text})),w=C.next().value;
return[function(K){var G=_.hG(function(){var q;return Object.assign({},{location:"bottom",offset:16,delay:1},z==null?void 0:z(),{text:(q=w())!=null?q:""})},void 0,"IJU38d");
_.sH(function(){var q=G();_.UH(function(){_.c5.addJob(function(){nU.notify(K,q)},4)})},"WlsgZc");
var X=function(){KH7(K,G())},J=function(){oS4()};
K.addEventListener("mouseenter",X);K.addEventListener("focus",X);K.addEventListener("mouseleave",J);K.addEventListener("blur",J);K.addEventListener("tap",J);_.BC(function(){K.removeEventListener("mouseenter",X);K.removeEventListener("mouseleave",J);K.removeEventListener("focus",X);K.removeEventListener("blur",J);K.removeEventListener("tap",J);oS4()})},
C.next().value]};
bIh=function(e,z){if(!JG){var C;lVE(function(){return C=jx7(e,z)});
return C}e.parent=YlE();return jx7(e,z)};
YlE=function(){var e=_.q6(JG||void 0,BEg);return _.IIg(e)?void 0:e};
MT=function(e,z){_.uA(e,Object.assign({},z,{forceClickLogging:!0}))};
X6s=function(e){switch(e){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
kfE=function(e,z){var C=_.SQ(e==null?void 0:e.onTap),w={};C&&(w.getClickedVisualElement=function(){var K;return JjN(e,C,z==null?void 0:(K=z.value)==null?void 0:K.visualElement)});
w=_.Df({elementsCommand:e.onTap,forceNewState:!0,additionalCommandArgs:w});return iA(w)?w:void 0};
ql4=function(e,z,C,w){MT(e,Object.assign({},{form:{element:z,event:C}},w))};
xym=function(e,z,C,w,K){var G=void 0;return function(X){var J=_.SQ(C?e==null?void 0:e.onDisabledTap:e==null?void 0:e.onTap);if(J){var q;G=(q=G)!=null?q:z==null?void 0:z.value;if(J)if(_.M("web_button_vm_click_client_ve_killswitch"))ql4(J,G,X);else{var T;q=JjN(e,J,(T=G)==null?void 0:T.visualElement);if(K){ql4(J,K,X,{clickedVisualElement:q,form:{element:K}});return}ql4(J,G,X,{clickedVisualElement:q})}}w&&w(X)}};
JjN=function(e,z,C){z=z==null?void 0:z.clickTrackingParams;var w,K;e=e==null?void 0:(w=e.loggingDirectives)==null?void 0:(K=w.clientVeSpec)==null?void 0:K.uiType;if(C&&e&&!z)return C};
T84=function(e){switch(e){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"}};
$y7=function(e){switch(e){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"}};
lY4=function(e){switch(e){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"}};
QLk=function(e){switch(e){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"}};
_.rG=function(e){return _.hG(function(){CI1()();return o74(e)},{debugName:"d8B62c"},"DEXkhd")};
mys=function(e,z){return _.xz(e.entities,"engagementToolbarStateEntityPayload",z)};
nSL=function(e){(e=_.v9(e))&&_.aYg(e)};
_.aYg=function(e){var z=_.Pr();z&&_.s6(z,e)};
MX7=function(e,z,C){_.eA(e,"yt-open-popup-action",[z,C||e])};
rj1=function(e,z){var C=_.BR(e,"endpoint"),w=_.BR(e,"action");return(C=w?w:C)&&z&&(C=z.navigationEndpointPopupMap[C])&&(e=_.pd(C,e),(C=_.BR(e,"renderer"))&&z.supportedPopups.hasOwnProperty(C))?{openPopupAction:{popupType:z.popupTypeMap[C],popup:e}}:null};
HI7=function(e,z,C,w){if(w){var K;C=C==null?void 0:(K=C.data)==null?void 0:K.contents;(K=C instanceof Array&&C.length?C[0]:C)&&(C=_.BR(K,"renderer"))&&w.supportedPopups.hasOwnProperty(C)&&(z.stopPropagation(),MX7(e,{openPopupAction:{popupType:w.popupTypeMap[C],popup:K}}))}};
IYk=function(e,z,C,w){w=w===void 0?!1:w;var K=Uyg(z);if(K){K.href&&u6(K.href);var G=z.button;G=G!==void 0?G===0&&!Hj(z):!Hj(z);K.data&&G&&vSo(e,K,z,C,w)}};
vSo=function(e,z,C,w,K){K=K===void 0?!1:K;var G=_.n0("pbj_navigate_limit",-1)===0;WH7(z);_.lh().resolve(_.$B(KZ));var X=z.data;if(Object.keys(X).length!==0)if(!_.M("unplugged_web_disable_actions_for_cec_endpoint")&&_.r(X,_.Gj))_.M("endpoint_behavior_command_executor_fix_killswitch")||(C.preventDefault(),C.stopPropagation()),_.KK(e,[X],e);else if(w=rj1(X,w))X.loggingUrls&&X.loggingUrls.forEach(function(q){q.baseUrl&&_.GE(q.baseUrl)}),C.preventDefault(),C.stopPropagation(),MX7(e,w,z);
else{var J=Prk(0,z.data,C);if(e=z.getForm)e=e(),J.tempData=J.tempData||{},J.tempData=Object.assign({},J.tempData,e);e=_.cJ(C);if(w=e.find(function(q){return!!q.visualElement}))J.createScreenConfig=J.createScreenConfig||{},J.createScreenConfig.clickedVisualElement=w.visualElement;
if(!G)if(C.preventDefault(),C.stopPropagation(),_.r(X,_.RzE)&&!K&&_.Tx.instance)_.Tx.instance.resolveCommand(X,J);else if(_.M("kevlar_command_handler_formatted_string")&&!K&&_.Tx.instance&&LHL(X))K=e.find(function(q){return!!q.is})||C.target,C={form:Object.assign({},J,{event:C,
element:K,originatingNode:z})},_.Tx.instance.resolveCommand(X,C);else{X=_.cJ(C);C=[];for(K=0;K<X.length;K++)(G=X[K].is)&&C.push(G);b75({parents:C.join(","),text:z.innerText},function(){_.pi(z,"yt-navigate",J)})}}};
hz1=function(e){if(e=Uyg(e))WH7(e),oU1(e.href)};
Uyg=function(e){e=_.cJ(e);for(var z,C=0;C<e.length;C++)if(z=e[C],z.tagName==="A"&&z.classList.contains("yt-simple-endpoint")){if(!z.data)break;return z}return null};
Hj=function(e){return e.shiftKey||e.altKey||e.metaKey||e.ctrlKey};
OI1=function(e,z){var C={itct:z.clickTrackingParams};_.M("kevlar_client_side_screens")&&(!_.r(z,_.rP)||_.M("kevlar_exclude_endpoint_killswitch"))&&(C.endpoint=JSON.stringify(z));_.M("enable_unknown_lact_fix_on_html5")&&_.lh().resolve(_.$B(_.UT))&&(C.lact=_.aC());Cc4(C);_.gN(e,C)};
WH7=function(e){e.href&&Object.keys(e.data).length!==0&&OI1(e.href,e.data)};
LHL=function(e){for(var z=_.b(ES1),C=z.next();!C.done;C=z.next())if(e[C.value])return!1;return!0};
FHE=function(){if(vj)return vj;if(window.lottie)return vj=Promise.resolve(window.lottie);var e=_.Af(_.j5("LOTTIE_URL"));return e?vj=new Promise(function(z,C){var w=document.createElement("script");w.addEventListener("load",function(){z(lottie)});
w.addEventListener("error",function(K){var G="Lottie library failed to load.";K?K.message&&(G+=" Original description: "+K.message,_.Zz(K,G)):K=Error(G);_.AX(K);C(K)});
w.setAttribute("async","");_.Jn(w,e);document.head.appendChild(w)}):Promise.reject(Error("sh"))};
VXN=function(){return vj?vj:FHE()};
fY4=function(e){if(e)switch(e){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.M("kevlar_use_wil_icons"))return e=(e=Ipm(_.eB().getState()))&&e.animationLightUrl&&e.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:e.animationLightUrl,pathDarkTheme:e.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,e?e:Io.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Io.get("LIKE_DELHI_PLAYER")}};
Sls=function(e){var z=fY4(e);if(z)return z;switch(e){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Io.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Io.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Io.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Io.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Io.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Io.get("NOTIFICATION_BELL")}};
uTk=function(e,z){if(!e.closest)return!1;z=!!fY4(z);return _.j5("ID_TOKEN")&&z?!!e.closest("segmented-like-dislike-button-view-model")||!!e.closest("yt-player-quick-action-buttons"):!1};
Dyk=function(e,z){if(!e||dy5)z=!1;else{var C;if(!(C=uTk(e,z)))if(e.closest)if(C=!_.j5("ID_TOKEN"),e=e.closest("ytd-subscription-notification-toggle-button-renderer-next"),C||!e)C=!1;else{var w;C=((w=e.data)==null?void 0:w.targetId)==="notification-bell"&&z!=="EXPAND_MORE"}else C=!1;z=C}return z};
iIo=function(e){var z,C;return _.k(function(w){switch(w.nextAddress){case 1:return _.Iv(w,2),w.yield(fetch(e),4);case 4:return z=w.yieldResult,w.yield(z.json(),5);case 5:return w.return(w.yieldResult);case 2:C=_.O_(w),_.AX(C),_.E_(w)}})};
N81=function(e,z){var C,w,K;return _.k(function(G){if(G.nextAddress==1)return(C=z?e.pathDarkTheme:e.path)?G.yield(Promise.all([iIo(C),FHE()]),2):G.return();w=G.yieldResult;K=w[0];Wj.set(C,K);_.E_(G)})};
B85=function(e,z,C,w){function K(X,J){if(z.value===J&&!z.cancelled){for(;e.firstChild;)e.removeChild(e.firstChild);e.classList.add("ytSpecIconShapeHost");X(e,w)}}
var G=_.sLg(_.lh().resolve(_.xp),C);typeof G==="function"?(z.value=null,K(G,null)):(z.value=G,G.then(function(X){K(X,G)}))};
tXh=function(e,z){var C=document.createElement("div"),w=_.ii(C,function(){return _.x(_.l,{cond:e,then:function(K){return _.x(_.Pj,{data:K,options:z})}})},"ca");
return[C,w]};
_.Ro=function(e,z){if(z){var C={};gSE.forEach(function(w){w=jL1(z,w,"--yt-lightsource-");Object.assign(C,w)});
yj1.forEach(function(w){w=jL1(z,w,"--yt-basic-");Object.assign(C,w)});
_.T8(e,C)}};
jL1=function(e,z,C){var w={};w[C+_.Xu(z)]=e&&e[z]?_.FN(e[z]):"";return w};
_.hq=function(e,z,C){LU[e]||(LU[e]={});LU[e][z]=C};
_.OT=function(e){LU[e]||(LU[e]={});return LU[e]};
cjg=function(e){if(!e)return{};var z=e.foregroundTitleColor,C=e.backgroundColor;e=e.borderColor;var w="text";e?w="outline":C&&(w="filled");return{type:w,customColors:{color:z?_.FN(z):void 0,backgroundColor:C?_.FN(C):void 0,borderColor:e?_.FN(e):void 0}}};
zI5=function(e){var z=e.renderer;var C=e.element;var w=e.commandController;var K=e.onTapCallback;var G=e.skipCommandHandling;var X=e.overrides;var J=e.forceIcon;var q=e.forceModernIconButton;var T=e.forceDisabled;var Q=e.isSubscribe===void 0?!1:e.isSubscribe;var m=e.isPressed===void 0?!1:e.isPressed;var a=e.useButtonSize===void 0?!1:e.useButtonSize;e=Ajs(z);Q&&(e.style="mono",e.type="filled");J=!z.icon||!J&&z.text?z.icon?z.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:q?"icon-only":"icon-only-40";J==="icon-only-40"&&(e.type="text");var n;q=Object;Q=q.assign;a=ZI1(z,a);m=!!z.isSelected||!_.M("web_propagate_is_pressed_killswitch")&&!!m;var H=z.isSelected!==void 0;T=T===void 0?z.isDisabled:T;var I=z.text?_.Em(z.text):void 0;var L,h,E,N=((L=z.accessibilityData)==null?void 0:(h=L.accessibilityData)==null?void 0:h.label)||((E=z.accessibility)==null?void 0:E.label);L=N?N:_.Zd(z.text);C=p6s(z,C,w,K,G);w=eIo(z);w!=null&&w.length?(w=_.Df({innertubeCommand:r31(w),
forceNewState:!0}),w=iA(w)?w:void 0):w=void 0;return Q.call(q,{},e,a,{iconPosition:J},X,{focused:!1,toggled:m,toggleable:H,disabled:T,formattedButtonText:I,accessibilityLabel:L,onTap:C,aTagConfig:w},cjg((n=z.colorData)==null?void 0:n.basicColorPaletteData),{oneOffCustomTextWrap:z.oneOffCustomTextWrap})};
p6s=function(e,z,C,w,K){return function(G){var X=eIo(e);w(X,G);if(!K){X=_.b(X);for(var J=X.next();!J.done;J=X.next())MT(J.value,{form:{element:z,event:G},commandController:C})}}};
eIo=function(e){var z=[];e.command&&z.push(e.command);e.serviceEndpoint&&z.push(e.serviceEndpoint);e.navigationEndpoint&&z.push(e.navigationEndpoint);return z};
ZI1=function(e,z){if(z)switch(e.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(e.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
Ajs=function(e){switch(e.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
Cq4=function(e,z){return typeof e!=="object"||e===null?!1:Object.keys(z).every(function(C){return C in e})};
ET=function(e){return Object.fromEntries(Object.keys(e).map(function(z){return[z,z]}))};
wy4=function(e,z,C){return brs(C,function(w,K){return function(G){var X=_.yL.apply(1,arguments);return Cq4(G,e)?K.apply(null,[G[z]].concat(_.s_(X))):K.apply(null,[G].concat(_.s_(X)))}})};
FW=function(e){return function(z,C){return wy4(e,z,C)}};
KGo=function(e,z){var C;return(C=_.xz(e,"playlistLoopStateEntity",z))!=null?C:void 0};
oH1=function(e,z){var C;return(C=_.xz(e,"toggleMenuServiceItemEntity",z))!=null?C:void 0};
_.VC=function(e){return e!=null&&e.watch?e.watch.isTheaterMode:!1};
_.fU=function(e){return e!=null&&e.watch?e.watch.isWatchFullscreen:!1};
_.Sj=function(e){if(_.GGg(e))return!0;e=_.YI8(e);return _.M("web_watch_enable_single_column_grid_view")?e:!1};
_.GGg=function(e){return e!=null&&e.watch?e.watch.isSwatcherooActive:!1};
_.YI8=function(e){return e.watch.isWatchNarrowWidth};
_.b_m=function(e){return _.VC(e)||_.fU(e)||_.YI8(e)};
_.Xyh=function(e){return e.watch.openEngagementPanels};
_.uw=function(e,z){return _.xz(e.entities,"likeStatusEntity",z)};
J$h=function(e,z){return _.xz(e.entities,"likeCountEntity",z)};
_.kG4=function(e,z){return _.xz(e.entities,"stringEntity",z)};
qIE=function(e,z){return _.xz(e.entities,"dataFreshnessEntity",z)};
x81=function(e,z){if(!e)return!1;var C,w=(C=_.r(e,_.bd))==null?void 0:C.signal;if(w&&z.signalEndpointMap)return!!z.signalEndpointMap[w];var K;if((C=(K=_.r(e,_.dG))==null?void 0:K.request)&&z.continuationEndpointMap)return!!z.continuationEndpointMap[C];for(var G in e)if(z.commandEndpointMap[G])return!0;return!1};
T7g=function(e,z){if(z.streamingEndpointMap)for(var C in e)if(z.streamingEndpointMap[C]&&(e=z.streamingEndpointMap[C]))return e()};
$8g=function(e,z){var C,w=(C=_.r(e,_.bd))==null?void 0:C.signal;if(w&&z.signalEndpointMap&&(C=z.signalEndpointMap[w]))return C();var K;if((C=(K=_.r(e,_.dG))==null?void 0:K.request)&&z.continuationEndpointMap&&(K=z.continuationEndpointMap[C]))return K();for(var G in e)if(z.commandEndpointMap[G]&&(e=z.commandEndpointMap[G]))return e()};
lUL=function(e){var z={"Content-Type":"application/json"};_.j5("EOM_VISITOR_DATA")?z["X-Goog-EOM-Visitor-Id"]=_.j5("EOM_VISITOR_DATA"):_.j5("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=_.j5("VISITOR_DATA"));z["X-Youtube-Bootstrap-Logged-In"]=_.j5("LOGGED_IN",!1);_.j5("DEBUG_SETTINGS_METADATA")&&(z["X-Debug-Settings-Metadata"]=_.j5("DEBUG_SETTINGS_METADATA"));e!=="cors"&&((e=_.j5("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(z["X-Youtube-Client-Name"]=e),(e=_.j5("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(z["X-Youtube-Client-Version"]=
e),(e=_.j5("CHROME_CONNECTED_HEADER"))&&(z["X-Youtube-Chrome-Connected"]=e),(e=_.j5("DOMAIN_ADMIN_STATE"))&&(z["X-Youtube-Domain-Admin-State"]=e));(e=_.j5("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(z["X-YouTube-Lava-Device-Context"]=e);return z};
QH4=function(e,z){z.watchNextResponse||z.reelItemWatchResponse?z.watchNextResponse?e.content=z.watchNextResponse:e.content=z.reelItemWatchResponse:z.playerResponse?e.player=z.playerResponse:z.reelWatchSequenceResponse&&(e.reelSequence=z.reelWatchSequenceResponse)};
De=function(e){return function(){return new e}};
iw=function(e){var z=_.lh();return function(){return z.resolve(e)}};
_.NT=function(e){if(!e)return null;for(var z=[],C=0;C<e.textSegments.length;C++){var w=e.textSegments[C];w.text?z.push(w):w.emojiId&&z.push({emoji_id:w.emojiId})}return{text_segments:z}};
r$g=function(e,z,C,w,K,G,X){G=G===void 0?[]:G;var J=new _.sT;J.endpoint=C;if(!C)return _.cn(new _.uh("handle undefined endpoint",z.tagName)),J;var q=Qxs(C);q.length&&(_.KK(e,q,z,w),J.actions=q);C.loggingUrls&&C.loggingUrls.forEach(function(Q){Q.baseUrl&&YO(Q.baseUrl,Q.attributionSrcMode)});
q=!_.M("web_skip_impression_click_killswitch")&&w&&w.impression;if(C.clickTrackingParams&&!m8o(C)&&!aUs(z)&&!q&&(q=_.nm(),!_.Bj(q,z))){var T=z.getScreenLayer&&z.getScreenLayer();T?q.clickCommand(C,null,T):q.clickCommand(C,null)}q=!1;for(T=0;T<G.length;T++)if((0,G[T])(z,C,w)){q=!0;break}!q&&nHg(C)&&(J.ajaxPromise=Mbh(e,z,C,w,K,X));return J};
aUs=function(e){var z;return(e=(z=e.data)==null?void 0:z.navigationEndpoint)&&!!e.clickTrackingParams};
m8o=function(e){var z=_.r(e,_.bd);if(z&&(z=z.signal)&&H_h.indexOf(z)>=0)return!0;for(var C in e)if(U81.indexOf(C)>=0)return!0;return!1};
nHg=function(e){var z;if(((z=_.r(e,_.bd))==null?void 0:z.signal)==="CLIENT_SIGNAL")return!1;for(var C in e)if(vHg.indexOf(C)>=0)return!1;e=Object.keys(e);return e.length===1&&e[0]==="loggingUrls"?!1:!0};
EH4=function(e,z,C,w,K,G,X){var J=_.tq.instance;if(J&&_.jj(J,w))var q=_.yC(J,w,K).then(function(Q){return(Q==null?0:Q.data)?Q:{data:Q}});
else q=e.requestDataForServiceEndpoint(w,K),_.r(w,IUE)||_.r(w,WGk)||_.r(w,_.Pq4)||_.r(w,RIs)||_.AX(new _.uh("No RequestBuilder for endpoint",w));var T=_.cj();T.promise.thenCatch(function(){var Q=_.BR(w,"action")||_.BR(w,"command")||_.BR(w,"endpoint");Q&&(Q=w[Q],Q.hasOwnProperty("onFailureAction")?_.KK(z,[Q.onFailureAction],C):Q.hasOwnProperty("onFailureCommand")&&_.KK(z,Q.onFailureCommand,C));q.cancel("Resolver promise rejected")});
q.then(function(Q){if(Q){var m=Q.error;if(m){if(G&&G.onServerError)G.onServerError(w,Q);T.reject(new _.uh("Response error",w,m))}else if(Q=Q.data)if(m=Q.error){if(G&&G.onServerError)G.onServerError(w,Q);T.reject(new _.uh("Returned error",w,m))}else{LG8(z,C,Q,w);hIg(Q);if(m=lhL(Q))for(var a=_.b(m),n=a.next();!n.done;n=a.next()){n=n.value;var H=_.lh().resolve(_.$B(O_L))||Aq;if(!_.tq.instance||!H.some(function(L){return!!_.r(w,L)})||_.M("kevlar_response_processor_allowlist_killswitch")){var I=H=void 0;
((I=_.r((H=n)==null?void 0:H.commandMetadata,_.XV))==null?0:I.sendPost)?_.wQ(z,[n]):_.KK(z,[n],C)}}(a=_.r(Q==null?void 0:Q.frameworkUpdates,Ze))&&X&&X(a);if(G&&G.onSuccess)G.onSuccess(w,Q);T.resolve(new _.pU(Q,m))}}else T.reject(new _.uh("Invalid service endpoint provided",w))},function(Q){T.reject(Q)});
return T.promise};
hIg=function(e){var z;(e=(z=_.r(e==null?void 0:e.onResponseReceivedCommand,_.FGg))==null?void 0:z.continuationItems)&&(e==null?void 0:e.length)===1&&_.r(e[0],Vb4)&&_.hg("so_r",void 0,"search_overview_answer")};
Mbh=function(e,z,C,w,K,G){var X;return(X=z.getNetworkManager&&z.getNetworkManager()?z.getNetworkManager():_.lh().resolve(_.$B(_.UG)))?EH4(X,e,z,C,w,K,G):_.R5("No network manager.")};
LG8=function(e,z,C,w){if(C=C.trackingParams||C.loggingDirectives&&C.loggingDirectives.trackingParams){var K;(_.r(w,_.e3)||_.r(w,fUg)||_.r(w,SI1))&&w.clickTrackingParams?K=_.v9(w.clickTrackingParams):_.M("web_graft_to_parent_command")&&w.clickTrackingParams&&(K=_.v9(w.clickTrackingParams));var G;w=(G=z.getScreenLayer)==null?void 0:G.call(z);z=_.nm().graftServerVe(C,K,w);_.zj(e,"yt-store-grafted-ve-action",[z])}};
_.ufs=function(e){var z=new Image;return new _.RC(function(C,w){z.addEventListener("load",function(){C()});
z.addEventListener("error",function(){w()});
z.src=e})};
d8k=function(e){return!!e};
D8N=function(e){return!!e};
i_g=function(e,z,C){var w=e.rowIndex;w!==void 0&&_.zj(e.hostElement,"yt-section-reactive-dismissal",[w,z,C])};
_.zi=function(e,z,C){e=_.b(e);for(var w=e.next();!w.done;w=e.next()){w=w.value;if(w===z)break;for(var K=_.b(C),G=K.next();!G.done;G=K.next())if(G=G.value,w.tagName===G||!_.M("web_event_button_role_check_killswitch")&&w.role==="button"&&G==="BUTTON")return!0}return!1};
_.C7=function(e,z,C){e=_.b(e);for(var w=e.next();!w.done;w=e.next()){w=w.value;if(w===z)break;for(var K=_.b(C),G=K.next();!G.done;G=K.next())if(w.id===G.value)return!0}return!1};
_.ox=function(){var e=_.lh().resolve(_.$B(_.wE));return e?(e=e.getCurrentPage())?_.K7(e):null:null};
_.Gi=function(){var e=_.ox();if(!e){var z=_.lh().resolve(_.$B(_.wE)),C=z?typeof z:"no page manager";z=z?z.getCurrentPage():null;C=new _.uh("Player is missing when requested.",C,z?z.tagName:"no page");_.yG(C)}return e};
_.K7=function(e){return e&&e.getPlayer?e.getPlayer():null};
N77=function(e,z){e={args:{raw_player_response:e}};z&&(e.args=Object.assign({},e.args,z));return e};
sH4=function(e){if(e.args){if(e.args.raw_player_response)return e.args.raw_player_response;if(e.args.player_response)return JSON.parse(e.args.player_response)}};
_.B7g=function(e,z){var C={url:"/watch?v="+e.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};e.playlistId&&(C.url+="&list="+e.playlistId);e.playerParams&&(C.url+="&pp="+e.playerParams);e={watchEndpoint:e,commandMetadata:{webCommandMetadata:C}};z&&(e.clickTrackingParams=z);return e};
gHo=function(){return tb1||!!_.pd("yt.player.Application")};
y$1=function(){return jHk||!!document.querySelector("link#player-css")};
A$5=function(){function e(){tb1=!0;c$o.resolve()}
var z,C;return _.k(function(w){c$o||(c$o=new _.x5,gHo()?e():(z=document.createElement("script"),z.addEventListener("load",e),C=_.iZ(_.j5("PLAYER_JS_URL")),_.Jn(z,C),document.head.appendChild(z)));return w.return(c$o.promise)})};
pyo=function(){function e(){jHk=!0;Z_m.resolve()}
if(!Z_m)if(Z_m=new _.x5,y$1())e();else{var z=document.createElement("link");z.id="player-css";z.addEventListener("load",e);var C=_.iZ(_.j5("PLAYER_CSS_URL"));_.T6(z,C,"stylesheet");document.head.appendChild(z)}return Z_m.promise};
eZo=function(){return gHo()&&y$1()?Promise.resolve([]):Promise.all([A$5(),pyo()])};
zZ1=function(e,z,C){var w={args:{}};e&&(w.args.raw_player_response=e);z&&(w.args.raw_watch_next_response=z);C&&(w.args=Object.assign({},w.args,C));return w};
oCN=function(e,z,C){var w=!1;w=w===void 0?!0:w;e=typeof e==="string"?_.b3(document,e):e;var K=C8g+"_"+_.c1(e),G=wzL[K];if(G&&w)return Kno(z,C)?G.api.loadVideoByPlayerVars(z.args||null):G.loadNewVideoConfig(z),G.api;G=new Jm(e,K,z,C,void 0);wzL[K]=G;G.addOnDisposeCallback(function(){delete wzL[G.getId()]});
return G.api};
Kno=function(e,z){return z&&z.serializedExperimentFlags?z.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):e&&e.args&&e.args.fflags?e.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
GWg=function(){var e=new _.x5;e.resolved=!1;var z=e.resolve;e.resolve=function(C){e.resolved=!0;z(C)};
return e};
bXo=function(e){var z={};Yom().install((z.document_disposed={callback:e},z))};
kT=function(e,z){if(!e&&Math.random()<=_.n0("kevlar_unified_player_logging_threshold")){e=Error("uh`"+(z?z:"Unspecified error"));if(_.M("kevlar_unified_player_throw_errors"))throw e;_.AX(e)}};
_.Xz4=function(){var e=_.pd("ytDebugData.callbacks");e||(e={},_.lM("ytDebugData.callbacks",e));return e};
kW8=function(e,z){var C=_.Xz4();if(_.M("web_dd_iu")||Jxg.includes(e))C[e]=z};
qoN=function(){return _.k(function(e){return e.return({isLeader:_.cY5(_.eB().getState()),c:_.j5("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.j5("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
xcg=function(){var e;_.k(function(z){if(z.nextAddress==1)return kW8("APP_STATE",qoN),z.yield(_.lh().resolve(_.qK),2);e=z.yieldResult;kW8("PI",function(){return _.k(function(C){return C.return(e.getVideoStats())})});
_.E_(z)})};
TV4=function(e){return!!e&&e.length>0&&e[0].loggingUrls!=null&&e[0].loggingUrls.length>0};
$cg=function(){var e=_.j5("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(e==null?void 0:e.length)===2?e[1]:null};
lBL=function(e){if(!e)return[];var z=[];e=_.b(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,C.loggingUrls){C=_.b(C.loggingUrls);for(var w=C.next();!w.done;w=C.next())w=w.value,w.baseUrl&&z.push(w.baseUrl)}return z};
Qag=function(e){var z=_.tw(_.Sy(_.wL.location.href));e=_.tw(_.Sy(e));return _.M("kevlar_clear_non_displayable_url_params")?z==xT(e):xT(z)==xT(e)};
xT=function(e){var z=_.mcL(e);e=e.slice(0);var C=["frags"];_.M("kevlar_hide_pp_url_param")&&C.push("pp");_.M("kevlar_hide_time_continue_url_param")&&C.push("time_continue");C=_.b(C);for(var w=C.next();!w.done;w=C.next())w=w.value,e=_.jy(_.tw(e),w);return _.tw(e)+(z?"#"+z:"")};
l3=function(e,z){var C=C===void 0?!0:C;z=Number(z)*1E3;var w=Math.round((0,_.as)()),K=w.toString();e={innertubeResponse:e,serverDateTimestampMs:K,lastModifiedTimestampMs:K,expireTimestampMs:(w+z).toString(),isProcessed:C};if(C=_.j5("INNERTUBE_CONTEXT_CLIENT_NAME"))e.clientName=C;return e};
nCE=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++aB7};
MK1=function(e){return!isNaN(e)&&e>0};
HXN=function(){_.M("web_adaptive_repeat_ase")&&rxN&&_.gm("applicationStarted",rxN)};
_.Uck=function(){var e=_.Ip(),z=_.Pr();z&&e&&_.tg(z,[e],!0)};
IB5=function(e){return e&&vC7.some(function(z){return e.includes(z)})};
OXN=function(e){var z=_.r(e,_.oO);if(!z)return!1;var C=z.url,w=z.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!C)return _.yG(Error("zh")),!1;if(z.target==="TARGET_NEW_WINDOW"){z={};_.M("resolve_url_parent_tracking_params")&&(!_.kB(C)||qv(window.location.href,C))&&(z={endpoint:e,itct:e.clickTrackingParams});Cc4(z);e=null;try{if(w){a:{var K=C,G=z;w=w===void 0?!1:w;G&&_.gN(K,G);var X=_.gw(K),J=_.Dy(X);K!=J&&_.es(Error("Yf`"+K));K=J;try{if(w){J=K;J=pIN(J);u6(J);e=_.Kq(window,J,"_blank",
"attributionsrc");break a}}catch(a){_.AR(a)}u6(K);e=_.Kq(window,X,"_blank")}WnE(_.lh().resolve(P8E),e,C);return!0}}catch(a){_.yG(a)}_.gN(C,z);z={target:"_blank",noopener:!1};X=window;J=dw(C)?C:_.gw(typeof C.href!="undefined"?C.href:String(C));w=self.crossOriginIsolated!==void 0;e="strict-origin-when-cross-origin";window.Request&&(e=(new Request("/")).referrerPolicy);K=z.noreferrer;if(w&&K&&e==="unsafe-url")throw Error("ve");e=K&&!w;K=z.target||C.target;G=[];var q=[],T=!1;for(m in z){var Q=z[m];switch(m){case "width":case "height":case "top":case "left":G.push(m+
"="+Q);break;case "target":break;case "noopener":case "noreferrer":Q?q.push(m):(T=!0,q.push(m+"=false"));break;case "attributionsrc":G.push(m+(Q?"="+Q:""));break;default:G.push(m+"="+(Q?1:0))}}var m=K!==void 0&&!["_blank","_self","_top","_parent",""].includes(K);m=UE()&&m;RZ4&&w&&G.length===0&&q.length>0&&!m&&!T?(q.length===2&&(q=["noreferrer"]),_.Kq(X,J,K,q[0]),e=Ln5()):(m=G.join(","),_.Lo()&&X.navigator&&X.navigator.standalone&&K&&K!="_self"?(m=_.Lh("A"),At(m,J),m.target=K,e&&(m.rel="noreferrer"),
((z=z.attributionsrc)||z==="")&&m.setAttribute("attributionsrc",z),z=document.createEvent("MouseEvent"),z.initMouseEvent("click",!0,!0,X,1),m.dispatchEvent(z),m=Ln5()):e?(m=_.Kq(X,"",K,m),X=_.Dy(J),m&&(m.opener=null,X===""&&(X="javascript:''"),X='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+QA(X)+'">',X=ec(X),(z=m.document)&&z.write&&(z.write(z6(X)),z.close()))):((m=_.Kq(X,J,K,m))&&z.noopener&&(m.opener=null),m&&z.noreferrer&&(m.opener=null)),e=m);WnE(_.lh().resolve(P8E),
e,C);return!0}m=_.Pi(C);m=IB5(m)||C==="https://studio.youtube.com/";if(_.kB(C)&&!qv(window.location.href,C)||m)u6(C),Wf(),_.dP(C,void 0,void 0,window.top,hZL);else return _.AX(new _.uh("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",e)),!1;return!0};
_.VKL=function(e,z){z=z===void 0?0:z;if(!(_.r(e,ECg)||_.r(e,Fn1)||_.r(e,_.oO)&&_.r(e,_.oO).url))return!1;var C,w=(C=_.r(e,_.oO))==null?void 0:C.url;C=w?{externalLinkData:{url:w}}:null;return _.nm().clickCommand(e,C,z)};
So7=function(e,z,C,w,K){K=K===void 0?{}:K;return function(G){var X,J;var q=((X=e.loggingDirectives)==null?0:(J=X.clientVeSpec)==null?0:J.uiType)?_.mT(e.loggingDirectives.clientVeSpec.uiType):void 0;K.clickedVisualElement||(K.clickedVisualElement=q);q=fBh(e,z);C(q,G);q=_.b(q);for(X=q.next();!X.done;X=q.next()){X=X.value;J=w;var T=G,Q=K;Q.form?Q.form.event=T:Q.form={element:J,event:T};MT(X,Q)}}};
fBh=function(e,z){var C=[];z?(e.toggledCommand&&C.push(e.toggledCommand),e.toggledServiceEndpoint&&C.push(e.toggledServiceEndpoint)):(e.defaultCommand&&C.push(e.defaultCommand),e.defaultServiceEndpoint&&C.push(e.defaultServiceEndpoint),e.defaultNavigationEndpoint&&C.push(e.defaultNavigationEndpoint));return C};
uvs=function(e,z){var C=e.toggledStyle||e.style,w;switch((w=z?C:e.style)==null?void 0:w.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"}}};
_.ax=function(){return _.k(function(e){return e.nextAddress==1?e.yield(_.lh().resolve(_.qK),2):e.return(_.lh().resolve(dco)())})};
_.n7=function(){return _.lh().resolve(dco)()};
_.MK=function(){return{lottieEl:void 0}};
Dc8=function(e,z){return e.startsWith(z.uniqueId)};
iX7=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(_.ax(),2);z=w.yieldResult;if((C=z)==null||!C.addEventListener)return rE(),w.return();z.addEventListener("onCueRangeEnter",e);_.E_(w)})};
NV8=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(_.ax(),2);z=w.yieldResult;if((C=z)==null||!C.removeEventListener)return rE(),w.return();z.removeEventListener("onCueRangeEnter",e);_.E_(w)})};
sak=function(e){var z,C,w,K,G;_.k(function(X){if(X.nextAddress==1)return X.yield(_.ax(),2);z=X.yieldResult;if((C=z)==null||!C.addCueRange)return rE(),X.return();w=_.b(e.timings);for(K=w.next();!K.done;K=w.next())G=K.value,z.addCueRange(e.uniqueId+"-"+G,G/1E3,(G+100)/1E3);_.E_(X)})};
BVh=function(e){var z,C,w,K,G;_.k(function(X){if(X.nextAddress==1)return X.yield(_.ax(),2);z=X.yieldResult;if((C=z)==null||!C.removeCueRange)return rE(),X.return();w=_.b(e.timings);for(K=w.next();!K.done;K=w.next())G=K.value,z.removeCueRange(e.uniqueId+"-"+G);_.E_(X)})};
tKs=function(){var e,z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(_.ax(),2);e=w.yieldResult;if((z=e)==null||!z.getPlayerState)return rE(),w.return();C=e.getPlayerState();return w.return(C===2)})};
rE=function(){_.AX(new _.uh("Smartimation player does not exist or is corrupted"))};
gCk=function(){try{var e;return(e=window.CSS)!=null&&e.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(z){return _.AX(new _.uh("Smartimation CSS.supports threw an error")),!1}};
eQ1=function(e,z,C,w,K){var G=e.playlistId?ja8:yx4;z=z();C=C();K=!!e.videoId&&K()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.HH(z))return cxs({data:e,actionType:G,disabled:K},C);if(e.videoId&&w())return Axh({data:e,actionType:G,disabled:K});switch(z){case "TRANSFER_STATE_UNKNOWN":return Axh({data:e,actionType:G,disabled:K});case "TRANSFER_STATE_FAILED":return e.videoId?ZX4({data:e,actionType:G,disabled:K}):pz4({data:e,actionType:G,disabled:K});case "TRANSFER_STATE_COMPLETE":return pz4({data:e,
actionType:G,disabled:K});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return cxs({data:e,actionType:G,disabled:K},C);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return e.videoId?ZX4({data:e,actionType:G,disabled:K}):Axh({data:e,actionType:G,disabled:K});default:return Axh({data:e,actionType:G,disabled:K})}};
zQ7=function(e,z){var C=e.onTapCommand,w=_.SQ(C);if(e.videoId&&_.r(w,_.HF))return _.r(w,_.HF).action=z,C;e.playlistId&&_.r(w,_.Uz)&&(_.r(w,_.Uz).action=z);return C};
Axh=function(e){var z=e.data;var C=e.actionType;e=e.disabled;return{text:Cxs,iconType:"OFFLINE_DOWNLOAD",onTap:zQ7(z,C.ACTION_ADD),disabled:e}};
cxs=function(e,z){var C=e.data;var w=e.actionType;e=e.disabled;var K="OFFLINE_DOWNLOAD";z>=0&&z<=.1?K="OFFLINE_DOWNLOADING_ZERO":z>.1&&z<=.3?K="OFFLINE_DOWNLOADING_TWENTY":z>.3&&z<=.5?K="OFFLINE_DOWNLOADING_FORTY":z>.5&&z<=.7?K="OFFLINE_DOWNLOADING_SIXTY":z>.7&&z<1?K="OFFLINE_DOWNLOADING_EIGHTY":z===1&&(K="OFFLINE_PIN");return{text:wd8,iconType:K,onTap:zQ7(C,w.ACTION_REMOVE_WITH_PROMPT),disabled:e}};
pz4=function(e){var z=e.data;var C=e.actionType;e=e.disabled;return{text:Kkk,iconType:"OFFLINE_PIN",onTap:zQ7(z,C.ACTION_REMOVE_WITH_PROMPT),disabled:e}};
ZX4=function(e){var z=e.data;var C=e.actionType;e=e.disabled;return{text:o91,iconType:"OFFLINE_DOWNLOAD",onTap:zQ7(z,C.ACTION_RETRY),disabled:e}};
_.vF=function(e,z){var C=CI1();return _.hG(function(){C();return o74(e,[_.gp(z)||""])},{debugName:"LUZslf"},"Z105t")};
GQg=function(e){var z=_.vF(_.dk,function(){return e().videoId}),C=_.vF(_.Dd,function(){return e().playlistId});
return function(){return e().videoId?z:e().playlistId?C:_.b(_.II("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Y0h=function(e){var z=_.vF(i7,function(){return e().videoId}),C=_.vF(_.yY8,function(){return e().playlistId});
return function(){return e().videoId?z:e().playlistId?C:_.b(_.II(0,void 0,"K4tgOc")).next().value}};
b61=function(e){var z=_.vF(_.Kj5,function(){return e().videoId});
return function(){return e().videoId?z:_.b(_.II(!1,void 0,"Oaxwcf")).next().value}};
XdN=function(e){var z=_.vF(ZE8,function(){return e().videoId});
return function(){return e().videoId?z:_.b(_.II("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
J9g=function(){return{}};
_.$0g=function(e,z,C){return{submitForm:function(){var w,K,G,X;return _.k(function(J){if(J.nextAddress==1){w=kQE(e());if(!w)return J.return();if(w.onSubmit)return q0g(z),w.onSubmit(),q0g(C),J.return();if(!w.submitConfig||!w.formData)return J.jumpTo(0);w.disableDuringSubmission&&x0m(e(),!0);q0g(z);return J.yield(TZ1(w.submitConfig,w.formData()),3)}K=J.yieldResult;q0g(C);if(((G=K)==null?0:G.submitResult)&&((X=w)==null?0:X.onSubmitResult))w.onSubmitResult(K.submitResult);w.disableDuringSubmission&&x0m(e(),
!1);return J.return()})},
isValid:function(){var w=kQE(e());if(w){var K;return!((K=w.isValid)==null||!K.call(w))}return!0},
isSubmitting:function(){var w,K;return!!((w=kQE(e()))==null?0:(K=w.isSubmitting)==null?0:K.call(w))}}};
_.Ix=function(){if(!l1N){var e=_.b(_.II(new Map,void 0,"Y1XnBc"));l1N=e.next().value;Qf8=e.next().value}return l1N};
_.m0s=function(e){Qf8(new Map(e))};
kQE=function(e){if(e)return _.Ix()().get(e)};
TZ1=function(e,z){var C;return _.k(function(w){return w.nextAddress==1?z?(C=_.lh().resolve(_.$B(a1h)))&&e.submitId?w.yield(C.submitForm(e.submitId,z,n9E,e.params,e.clickTrackingParams),2):w.return(Promise.reject(Error("Bh"))):w.return(Promise.reject(Error("Ah"))):w.return(w.yieldResult)})};
x0m=function(e,z){if(e){var C=_.Ix();C().set(e,Object.assign({},C().get(e),{isSubmitting:function(){return z}}));
_.m0s(C())}};
q0g=function(e){if(e){var z=_.lh().resolve(_.ms);z&&(e=_.SQ(e()))&&z.resolveCommand(e)}};
H6o=function(e,z){z=z===void 0?{shouldPersist:!0}:z;return{useUpdatableData:function(C,w){var K=_.hG(function(){return e(C())},void 0,"Gmrblb"),G=Mr5(C,K,w,z);
_.sH(function(){if(K()!=null){r97.set(K(),G);var X=K();_.BC(function(){r97.delete(X)})}},"j4hx9b");
return G},
getData:function(C){var w;return(w=r97.get(e(C)))==null?void 0:w[0]()},
updateData:function(C,w){C=e(C);C=r97.get(C);if(!C)return!1;var K=_.b(C);C=K.next().value;K=K.next().value;w=w(C());K(w);return!0}}};
Mr5=function(e,z,C,w){w=w===void 0?{}:w;var K=_.b(_.zx(function(){var J=e(),q=z();return U01(J,q,C,w)})),G=K.next().value,X=K.next().value;
return[G,function(J){X(J);var q=z();if(w.shouldPersist&&q!=null){var T,Q=(T=C==null?void 0:C.map(function(m){return m()}))!=null?T:[];
_.WF.set(q,[J,Q])}}]};
U01=function(e,z,C,w){w=w===void 0?{}:w;if(z==null||!w.shouldPersist)return e;w=_.WF.get(z);if(!w)return e;var K=_.b(w);w=K.next().value;var G=K.next().value,X;K=(X=C==null?void 0:C.map(function(J){return J()}))!=null?X:[];
if((G==null?0:G.length)&&(C==null?0:C.length)&&K.some(function(J,q){return J!==G[q]}))return _.WF.remove(z),e;
(C==null?0:C.length)&&_.WF.set(z,[w,K]);return w};
v9N=function(e){var z=_.b(_.II(!0,void 0,"bKtO6d")),C=z.next().value;z.next();return function(){var w=Ld(e.children());return _.x(_.l,{cond:C,then:function(){return w},
else:e.fallback})}()};
_.PF=function(e){var z=I1k(e),C=z.data,w=z.mapping,K=z.wrapper;z=z.pendingFallback;var G=function(){return Wko(_.gp(C))},X=function(){var J=G(),q=[];
J=_.b(J);for(var T=J.next();!T.done;T=J.next()){var Q=void 0;T=T.value;var m=void 0;for(Q in T)if(!(!T).hasOwnProperty(Q)){m=Q;break}(Q=m)&&q.push(Q)}return q};
return e.data?_.x(v9N,{fallback:z},function(){return _.x(_.ui,{each:X},function(J,q){var T=K?function(H){return K(function(){return w[J](H,q)},Q,q)}:function(H){return w[J](H,q)};
T.debugName||(T.debugName=String(J));if(!w[String(J)])return document.createComment("");T.componentType!==Fy&&Px7(String(J));var Q=RQh(G,J,q);if(_.M("web_add_microtask_to_stamper")&&!Lkm.has(String(J))){var m=_.b(_.II(!1,void 0,"afb1md")),a=m.next().value,n=m.next().value;Promise.resolve().then(function(){Lkm.add(String(J));n(!0)});
return _.x(_.l,{cond:a,then:function(){return _.x(T,{data:Q})}})}return _.x(T,{data:Q})})}):_.x(_.Qw,null)};
I1k=function(e){var z=e.targetId||hQg(e.children);if(!e.data||!z)return Object.assign({},e,{mapping:e.children});var C="stamper-"+O6g++,w=function(){var J;return(J=typeof e.targetId==="function"?e.targetId(C):e.targetId)!=null?J:C};
z=_.b(E9g(function(){var J=Wko(e.data());J.targetId=w;return J})).next().value;
var K=Object.assign({},(_.lh().resolve(_.$B(Fk1))||{}).replaceableMapping,e.children);if(e.replacementWrapper){var G=K.notificationTextRenderer,X=K.notificationMultiActionRenderer;G&&(K.notificationTextRenderer=function(J,q){return e.replacementWrapper(G({data:J.data},q))});
X&&(K.notificationMultiActionRenderer=function(J,q){return e.replacementWrapper(X({data:J.data},q))})}return Object.assign({},e,{data:z,
mapping:K,wrapper:function(J,q,T){return bIh({targetId:w,stamperIndex:T},e.wrapper?function(){return e.wrapper(J,q,T)}:J)}})};
RQh=function(e,z,C){var w;return _.hG(function(){var K=e()[C()];if(K)w=K[z];else return _.AX(new _.uh("Stamper failed to find "+String(z)+" at index "+C()+" of data array of length "+(e().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),w;return K[z]},void 0,"Su9U8")};
hQg=function(e){e=_.b(Object.keys(e));for(var z=e.next();!z.done;z=e.next())if(z=z.value,Vr7.includes(z)||f17.includes(z)||S0E.includes(z))return!0;return!1};
Wko=function(e){return e?Array.isArray(e)&&e instanceof Array?e:[e]:[]};
Px7=function(e){if(_.M("web_enable_renderer_logger")){var z;(z=_.lh().resolve(_.$B(u_o)))!=null&&z.loggingEnabled&&!z.ids.has(e)&&z.ids.add(e)}};
d0g=function(){var e,z;return(z=(e=_.lh().resolve(_.$B(_.jQ)))==null?void 0:e())!=null?z:!1};
i64=function(e,z){e=e===void 0?D0L:e;switch(z.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},e,{isOpen:z.payload});default:return e}};
sfN=function(e,z){e=e===void 0?NZk:e;switch(z.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},e,{isAllowed:z.payload});default:return e}};
trm=function(e,z){e=e===void 0?BZ4:e;switch(z.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},e,{errorMessage:z.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},e,{title:z.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},e,{privacy:z.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},e,{isDisabled:z.payload});default:return e}};
jfE=function(e,z){e=e===void 0?g9k:e;switch(z.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},e,{isOpen:z.payload});default:return e}};
c9s=function(e,z){e=e===void 0?y9o:e;switch(z.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},e,{isFullscreen:z.payload});case "SET_NAVIGATION_BUTTON":var C=z.payload.targetId,w=Object.assign({},e.navigationButtons);w[C]=z.payload.button;return Object.assign({},e,{navigationButtons:w});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},e,{topPanelId:z.payload});case "SET_SECONDARY_HEADER":return C=z.payload.panelId,w=Object.assign({},e.secondaryHeader),w[C]=z.payload.secondaryHeader,
Object.assign({},e,{secondaryHeader:w});default:return e}};
ep1=function(){return E8(Object.assign({},{voiceSearch:cug,engagementPanel:c9s,bottomSheet:i64,cinematicSetting:sfN,shorts:KyL,drawerLayout:jfE,createPlaylist:trm,locationCollection:A97,reportChannel:Z61,reportForm:pdE},oEk))};
zpk=function(e,z){_.c5.addLowPriorityJob(function(){var C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:return _.Iv(G,2),G.yield(FHE(),4);case 4:return G.yield(fetch(e),5);case 5:return C=G.yieldResult,G.yield(C.json(),6);case 6:w=G.yieldResult;Wj.set(e,w);requestAnimationFrame(function(){z(w)});
_.Yj(G,0);break;case 2:K=_.O_(G),_.AX(K),_.E_(G)}})})};
CX4=function(e){var z={animationConfig:{},listeners:{}},C=function(){e(!0)};
z.listeners.data_failed=C;z.listeners.error=C;z.listeners.data_ready=function(){e(!1)};
return z};
oeo=function(e){var z=e.model;var C=e.subscribed;var w=e.isOverlay;var K=e.element;var G=e.commandController;var X=e.notificationState;if(C){var J,q;var T=(z==null?void 0:(J=z.buttonStyle)==null?void 0:J.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:z==null?void 0:(q=z.unsubscribeButtonContent)==null?void 0:q.buttonText}else{var Q;T=z==null?void 0:(Q=z.subscribeButtonContent)==null?void 0:Q.buttonText}a:{var m;switch(z==null?void 0:(m=z.buttonStyle)==
null?void 0:m.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":J="S";break a;default:J="M"}}a:if(w)w="overlay";else switch(z.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":w="overlay";break a;default:w="mono"}a:if(C)var a="tonal";else switch((a=z.buttonStyle)==null?void 0:a.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":a=
"tonal";break a;default:a="filled"}return{style:w,type:a,state:z.disableSubscribeButton?"disabled":"active",size:J,focused:e.focused,toggled:C,accessibilityLabel:w35(z,C,X),buttonText:T,iconPosition:z.disableNotificationBell?"none":"leading-trailing",onTap:KKo(z,C,K,G),disableTextEllipsis:!!e.disableTextEllipsis}};
KKo=function(e,z,C,w){return function(K){if(z){var G;var X=e.disableNotificationBell?_.SQ(e==null?void 0:(G=e.unsubscribeButtonContent)==null?void 0:G.onTapCommand):_.SQ(e==null?void 0:e.onShowSubscriptionOptions)}else{var J;X=_.SQ(e==null?void 0:(J=e.subscribeButtonContent)==null?void 0:J.onTapCommand)}X&&MT(X,{form:{element:C==null?void 0:C.value},commandController:w});K.stopPropagation()}};
w35=function(e,z,C){if(z){if(e==null?0:e.disableNotificationBell){var w;return e==null?void 0:(w=e.unsubscribeButtonContent)==null?void 0:w.accessibilityText}switch(C){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var K;return e==null?void 0:(K=e.bellAccessibilityData)==null?void 0:K.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var G;return e==null?void 0:(G=e.bellAccessibilityData)==null?void 0:G.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var X;return e==null?void 0:(X=
e.bellAccessibilityData)==null?void 0:X.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var J;return e==null?void 0:(J=e.bellAccessibilityData)==null?void 0:J.disabledLabel;default:var q;return e==null?void 0:(q=e.unsubscribeButtonContent)==null?void 0:q.accessibilityText}}else{var T;return e==null?void 0:(T=e.subscribeButtonContent)==null?void 0:T.accessibilityText}};
GFm=function(e,z){return _.xz(e.entities,"subscriptionStateEntity",z)};
YB5=function(e,z){return _.xz(e.entities,"subscriptionNotificationStateEntity",z)};
bl1=function(e,z){return _.xz(e.entities,"upcomingEventReminderStateEntity",z)};
X37=function(e,z){return _.xz(e.entities,"commentEntityPayload",z)};
JW5=function(e,z){return _.xz(e.entities,"engagementToolbarSurfaceEntityPayload",z)};
kFE=function(e,z){return _.xz(e.entities,"triStateButtonStateEntityPayload",z)};
qBk=function(e,z){return _.xz(e.entities,"commerceCartCheckoutButtonEntity",z)};
xR7=function(e,z){return _.xz(e.entities,"commandEntity",z)};
TTL=function(e){if(e){switch(e){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":e="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":e="NOTIFICATIONS_OFF";break;default:e="NOTIFICATIONS_NONE"}return e}};
$Rk=function(e,z,C){C.subscribed!==z&&((C=C.key)&&_.ZL(_.Rx("subscriptionStateEntity",C,{key:C,subscribed:z})),e.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:z})),z||_.eA(e,"yt-unsubscribe-action"))};
QNm=function(e){e=_.r(_.SQ(e),_.L7);var z,C,w,K;return(K=_.r(e==null?void 0:(z=e.panelLoadingStrategy)==null?void 0:(C=z.inlineContent)==null?void 0:(w=C.sheetViewModel)==null?void 0:w.content,lu8))==null?void 0:K.listItems};
mRL=function(e,z){if(e.onShowSubscriptionOptions&&z&&(e=QNm(e.onShowSubscriptionOptions),e!=null&&e.length)){var C=TTL(z);e.forEach(function(w){w=_.r(w,_.hm);var K,G,X,J,q=w==null?void 0:(K=w.leadingImage)==null?void 0:(G=K.sources)==null?void 0:(X=G[0])==null?void 0:(J=X.clientResource)==null?void 0:J.imageName;w&&q&&(w.isSelected=q===C)})}};
auh=function(e,z,C,w){z&&C?e.style.width=C+"px":!z&&w&&(e.style.width=w+"px")};
ne7=function(e,z,C){var w;(w=e.lottieEl)==null||w.goToAndPlay(0);var K;(K=z.lottieEl)==null||K.goToAndPlay(0);_.Oz(_.c5,function(){var G;(G=C.lottieEl)==null||G.goToAndPlay(0)},300)};
M7o=function(e){return!(e==null||!e.iconName||(e==null?0:e.title))};
rW7=function(e,z,C,w){C&&_.c5.cancelJob(C);C=_.c5.addLowPriorityJob(function(){w(void 0)},5E3);
w(C);z&&e!==(z.likeStatus==="LIKE")&&z.key&&_.ZL(_.Rx("likeStatusEntity",z.key,{key:z.key,likeStatus:e?"LIKE":"INDIFFERENT",hadUserInteraction:e}))};
_.Hlm=function(e,z){return _.xz(e.entities,"accountLinkStatusEntity",z)};
UR1=function(e,z){return _.xz(e.entities,"hatsSurveyEntity",z)};
ve5=function(e,z){return _.xz(e.entities,"hatsSurveyStateEntity",z)};
Ium=function(e,z){return _.xz(e.entities,"quantityIncrementerEntity",z)};
WKE=function(e){switch(e){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
PXE=function(e){switch(e){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}};
Rph=function(e){switch(e){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.hp7=function(e){var z=_.n0("web_generic_client_event_wait_period ",0);z||(z=3E5);var C=LKh.get(e);!_.M("enable_web_client_experiment_event_timeout_killswitch")&&C&&(0,_.as)()-C<z||(LKh.set(e,(0,_.as)()),_.gm("genericClientExperimentEvent",{eventType:e}))};
_.Ols=function(e,z){var C,w,K,G;a:{var X=e.style;if(X===void 0)X=17;else switch(X){case "LIVE":X=18;break a;default:X=17}}return{type:X,text:z?Xkg({seconds:z}):_.Zd(e.text),accessibilityText:(C=e.text)==null?void 0:(w=C.accessibility)==null?void 0:(K=w.accessibilityData)==null?void 0:K.label,icon:(G=e.icon)==null?void 0:G.iconType}};
Eek=function(e){switch(e){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
FKm=function(e){if(!e)return"";var z,C=(z=_.lh().resolve(_.$B(_.jQ)))==null?void 0:z(),w;if(!C&&((w=e.vibrantColorPalette)==null?0:w.iconInactiveColor))return V$(e.vibrantColorPalette.iconInactiveColor,"1");var K;return C&&((K=e.darkColorPalette)==null?0:K.iconInactiveColor)?V$(e.darkColorPalette.iconInactiveColor,"1"):e.color?V$(e.color,"1"):e.sampledThumbnailColor?(e=e.sampledThumbnailColor,"rgba("+e.red+","+e.green+","+e.blue+");"):""};
_.Ez=function(e,z){if(!e.includes("DATE_PLACEHOLDER"))return e;var C=new Date(0);C.setUTCSeconds(z);return e.replace("DATE_PLACEHOLDER",V77(C))};
fuN=function(e,z,C){return function(w){var K=e.command;K&&(MT(K,{form:{element:C}}),z([K],w))}};
uBk=function(e,z,C,w,K){return function(G){var X=SBN(e,z);X&&MT(X,{form:{element:C},commandController:w});K&&G.stopPropagation()}};
SBN=function(e,z){if(e.signInEndpoint&&!_.M("web_subscribe_sign_in_endpoint_killswitch"))return e.signInEndpoint;if(z){if(e.serviceEndpoints)return e.serviceEndpoints[1];if(e.onUnsubscribeEndpoints)return e.onUnsubscribeEndpoints[0]}else{if(e.serviceEndpoints)return e.serviceEndpoints[0];if(e.onSubscribeEndpoints)return e.onSubscribeEndpoints[0]}};
dR1=function(e,z){var C,w,K,G;z=z&&((C=e.unsubscribeAccessibility)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label)||((K=e.subscribeAccessibility)==null?void 0:(G=K.accessibilityData)==null?void 0:G.label);return e.longSubscriberCountText?[z,_.Zd(e.longSubscriberCountText)].filter(function(X){return X}).join(" "):z};
FR=function(e,z){return z||(e==null?0:e.isChannelDelegate)?"disabled":"active"};
DR1=function(e,z){var C;switch((C=e.style)==null?void 0:C.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:FR(e)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:FR(e)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:FR(e,!0)};case "OVERLAY":return z?{style:"overlay",type:"tonal",state:FR(e)}:{style:"overlay",type:"filled",state:FR(e)};default:return z?{style:"mono",type:"tonal",state:FR(e)}:{style:"mono",type:"filled",state:FR(e)}}};
_.VA=function(){for(var e=[],z=_.b(_.yL.apply(0,arguments)),C=z.next();!C.done;C=z.next())if(C=C.value)if(typeof C==="string")e.push(C);else{C=_.b(Object.entries(C));for(var w=C.next();!w.done;w=C.next()){var K=_.b(w.value);w=K.next().value;(K=K.next().value)&&e.push(w)}}return e.join(" ")};
ilk=function(e){switch(e){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
NTo=function(e){switch(e){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
sN1=function(e,z){var C=e.map(function(w){return w.toString()});
return _.T9(function(w){if(C.includes(w.key)){z&&w.preventDefault();var K;(K=w.currentTarget)==null||K.click()}})};
_.BTo=function(){return sN1(["Enter"])};
_.t77=function(){return sN1(["Enter"," "],!0)};
_.f7=function(e){if(e.composedPath)return e.composedPath();if(!e.__composedPath){for(var z=[],C=e.target;C;)z.push(C),C=C.parentNode;z.push(window);e.__composedPath=z}return e.__composedPath};
_.S3=function(e,z,C){e=_.b(e);for(var w=e.next();!w.done;w=e.next()){w=w.value;if(w===z)break;for(var K=_.b(C),G=K.next();!G.done;G=K.next())if(G=G.value,w.tagName===G||w.role==="button"&&G==="BUTTON")return!0}return!1};
jN1=function(e,z){var C,w=(C=z.observer)!=null?C:_.lh().resolve(m$);if(e){C=ge4(e);var K=[];z.showOption&&K.push(w.observe(e,function(){z.visibilityCallback(!0,e)},z.showOption));
z.hideOption&&K.push(w.observe(e,function(){z.visibilityCallback(!1,e)},z.hideOption));
z.prescanOption&&z.prescanCallback&&K.push(w.observe(e,function(){z.prescanCallback()},z.prescanOption));
var G;C.visibilityMonitorKeys=((G=C.visibilityMonitorKeys)!=null?G:[]).concat(K)}};
ge4=function(e){var z;return(z=e.polymerController)!=null?z:e};
_.dE=function(e){return!!_.u3(e)};
_.Dh=function(e,z,C,w,K){return function(G){var X=YlE();_.sH(function(){if(G){yWs(G,e(),K);var J=cW1(G,e(),z,C,w,X);_.BC(J)}},"lrewVd")}};
yWs=function(e,z,C){var w=AW4(z),K=Zlk(z),G=w&&DA8,X=K&&dA4;(w||K)&&jN1(e,{visibilityCallback:function(J){var q=_.lh().resolve(_.ms);J&&w?(q.resolveCommand(w,{form:{element:C?e:void 0},disableClickTracking:!0}),w=AW4(z)):!J&&K&&(q.resolveCommand(K,{form:{element:C?e:void 0},disableClickTracking:!0}),K=Zlk(z))},
showOption:G,hideOption:X})};
cW1=function(e,z,C,w,K,G){var X=new Map;if(z=_.u3(z)){var J;e=(w==null?void 0:(J=w.onTap)==null?void 0:J.value)||e;C=p3s(z,e,C==null?void 0:C.onTap,K,G);e.addEventListener("click",C);X.set("click",C)}return function(){for(var q=_.b(X),T=q.next();!T.done;T=q.next()){var Q=_.b(T.value);T=Q.next().value;Q=Q.next().value;e.removeEventListener(T,Q)}}};
_.u3=function(e){var z;return(e=(z=_.r(e,_.i3))==null?void 0:z.onTap)&&_.SQ(e)};
AW4=function(e){var z;return(e=(z=_.r(e,_.i3))==null?void 0:z.onVisible)&&_.SQ(e)};
Zlk=function(e){var z;return(e=(z=_.r(e,_.i3))==null?void 0:z.onHidden)&&_.SQ(e)};
p3s=function(e,z,C,w,K){var G=function(J){_.lh().resolve(_.ms).resolveCommand(e,J)},X=function(J){w&&_.S3(_.f7(J),z,w)||G(J.target?{form:{element:J.target,
sourceData:e,mutationContext:K}}:void 0)};
C&&(X=function(J){C(J,G)});
return X};
er8=function(e){switch(e){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}};
zr4=function(e){var z=e.numAvatarsInCluster;switch(e.clusterSize){case "small":return z===2?22:18;case "40":return z===2?24:22;default:return z===2?24:20}};
CuE=function(e,z){return function(C){var w=Object.keys(z);_.sH(function(){if(e!=null&&e()){for(var K=_.b(w),G=K.next();!G.done;G=K.next())G=G.value,C.addEventListener(G,z[G]);_.BC(function(){for(var X=_.b(w),J=X.next();!J.done;J=X.next())J=J.value,C.removeEventListener(J,z[J])})}},"bXZGfe")}};
wG8=function(e){switch(zr4(e)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
KwE=function(e){switch(e){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""}};
oF1=function(e){switch(zr4(e)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
GIm=function(e){switch(e){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""}};
Yh5=function(e){switch(e){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}};
bS7=function(e){return e==="medium"||e==="48"||e==="large"||e==="extra-large"||e==="extra-extra-large"||e==="giant"};
XGh=function(e){return!!((e==null?0:e.includes(3))||(e==null?0:e.includes(5)))};
kIo=function(e){var z=e.data;return{size:Jy5(z.avatarImageSize),type:z.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:e.onTap,decorations:e.decorations||[],badgeText:e.badgeText,accessibilityText:e.accessibilityText,avatarButtonCustomClassName:e.avatarButtonCustomClassName,clusterLayoutConfig:e.clusterLayoutConfig}};
Jy5=function(e){switch(e){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
qh7=function(e){switch(e){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
xW5=function(e){switch(e){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
TRo=function(e){var z=e.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",C,w=e.avatars&&e.avatars.length>0?(C=_.r(e.avatars[0],_.NK))==null?void 0:C.avatarImageSize:"AVATAR_SIZE_UNKNOWN";C=qh7(w)||0;if(z){var K,G=(K=e.avatarClusterSize)!=null?K:"AVATAR_SIZE_M";z=qh7(G);var X,J,q=Math.min((J=(X=e.avatars)==null?void 0:X.length)!=null?J:0,4),T;return{avatars:((T=e.avatars)==null?void 0:T.slice(0,4))||[],avatarSizeInPx:C,avatarStackStyle:{width:z+"px",height:z+"px",position:"relative"},avatarStyle:function(m){var a=
zr4({clusterSize:Jy5(G),numAvatarsInCluster:q,avatarIndex:m});var n=qh7(G);q===3&&m===2?(n=(n-a)/2,n=(_.j5("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*n):n=void 0;return{position:"absolute",top:q===2&&m===1||q===3&&m===2||q===4&&m>=2?"0":void 0,bottom:q===2&&m===0||q>2&&m<2?"0":void 0,left:q===2&&m===1||q>2&&(m===1||m===3)?"0":void 0,right:q<=3&&m===0||q===4&&(m===0||m===2)?"0":void 0,transform:n?"translateX("+n+"px)":void 0,width:a+"px",height:a+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(m){return{clusterSize:Jy5(e.avatarClusterSize),numAvatarsInCluster:q,avatarIndex:m}},
avatarButtonCustomClassName:void 0}}var Q;return{avatars:((Q=e.avatars)==null?void 0:Q.slice())||[],avatarSizeInPx:C,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:xW5(w),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
$W8=function(e,z,C){return function(){MT(e,{form:{element:z},commandController:C})}};
lb7=function(e){switch(e){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
QFE=function(e){switch(e){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
mW1=function(e){if("accessibilityText"in e)return e.accessibilityText||"";if("title"in e){var z,C,w;return((z=e.title)==null?void 0:(C=z.accessibility)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label)||""}if("accessibility"in e){var K,G;return((K=e.accessibility)==null?void 0:(G=K.accessibilityData)==null?void 0:G.label)||""}return""};
ab7=function(e){return"inlinePlayerData"in e};
sz=function(e){return new nF7(e)};
Mt8=function(e){switch(e){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"}};
rym=function(e){switch(e){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;default:return 0}};
HSm=function(e){switch(e){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}};
UW4=function(e){return function(z){e&&(e.thumbnailElRef=z.thumbnailElRef,e.thumbnail=z.thumbnail,e.thumbnailOverlays=z.thumbnailOverlays,e.thumbnailSize=z.thumbnailSize)}};
vFs=function(e){switch(e){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
Ww8=function(e){var z=_.b(_.II(!1,void 0,"E6wDDe")),C=z.next().value,w=z.next().value;_.sg(function(){var K=e==null?void 0:e();if(K){var G=_.lh().resolve(_.$B(Ibo));if(G){var X={triggeringElement:K,onDwellTriggeredFn:function(){w(!0)},
onDwellEndFn:function(){w(!1)}};
G.registerElement(X);_.BC(function(){_.BF(G,X)})}}});
return C};
Pum=function(e,z,C){C?C(z):_.NF(z,e.target?{form:{element:e.target}}:void 0)};
_.tm=function(e,z,C,w){return function(K){_.sH(function(){function G(Q){Q=Q.composedPath();Q=_.b(Q);for(var m=Q.next();!m.done;m=Q.next()){m=m.value;if(m===K)break;if(m.className.indexOf("HostIsClickableAdComponent")>=0||m.tagName==="A".toString()||m.tagName==="BUTTON".toString())return!0}return!1}
var X=new Map,J,q=(J=e())==null?void 0:J.onTap;if(q){J=function(Q){G(Q)||Pum(Q,q,z)};
var T=function(Q){G(Q)||Q.key!=="Enter"||Pum(Q,q,z)};
(C==null?0:C())||_.M("enable_web_home_top_landscape_image_layout_level_click")?(K.addEventListener("tap",J),X.set("tap",J)):(K.addEventListener("click",J),X.set("click",J));if(w==null?0:w())K.addEventListener("keydown",T),X.set("keydown",T)}_.BC(function(){for(var Q=_.b(X),m=Q.next();!m.done;m=Q.next()){var a=_.b(m.value);m=a.next().value;a=a.next().value;K.removeEventListener(m,a)}})},"D7XqOc")}};
Rrk=function(e,z){var C,w=(C=e.interaction)==null?void 0:C.onTap;if(e=_.Df({elementsCommand:w,forceNewState:!0,skipOnClick:!0}))return e.onclick=function(K){M$1(K)&&(K.preventDefault(),w&&Pum(K,w,z))},iA(e)?e:void 0};
Lw1=function(e){switch(e){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
hrN=function(e){switch(e){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
OSE=function(e){switch(e){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.EFg=function(e){return _.M("rich_grid_enable_dynamic_offset")&&e?Math.max((e-_.n0("rich_grid_dynamic_offset_anchor_width",1300))/100*_.n0("rich_grid_dynamic_offset_offset_per_100",10),_.n0("rich_grid_dynamic_offset_lower_bound",-60)):0};
Fwh=function(e,z){switch(z){case 4:return 16;case 1:return e<528?16:e<1024?32:48;case 2:return(e>=528?16:8)/2;case 3:return(e<528?16:e<1024?32:48)+(e>=528?16:8)/2;default:return 0}};
Vt5=function(e){var z=e.originalContainerWidth;var C=e.sizing;var w=e.standardUnit;if(e.isCompactList&&z<528)return 1;switch(C){case "STANDARD":return w;case "COMPACT":return w+1;case "EXTRA_COMPACT":return _.M("web_responsive_extra_compact_2x")?w*2:_.M("web_responsive_current")?w===1?2:w%2===0?w/2*3:w+2:w<4?w*2:Math.ceil(w*3/2);case "MINI":return w>1?w*2:3;default:return w}};
Shh=function(e){var z=e.containerWidth;var C=e.peek;var w=e.gutter;var K=e.numItems;e=e.ignoreMaxWidthLimit;z=C?Math.max((z-C-w*K)/K,0):Math.max((z-w*(K-1))/K,0);return e?z:Math.min(z,fbE)};
_.gE=function(e){var z=e.containerWidth;var C=e.hasPeek;var w=e.sizing;var K=e.marginSettings;var G=e.isCompactList;var X=e.enableFullBleedForSingleCol;var J=e.standardUnitMinWidth;w=w||"STANDARD";C=!!C;e=z>=528?16:8;var q=C?z>=528?48:24:0;K=Fwh(z,K);var T=Math.max(z-K*2,0);J=_.M("kevlar_disable_min_width_override")?void 0:J;J=Math.min(Math.max(Math.floor((T-q+e)/((J!=null?J:uah)+_.EFg(z)+e)),1),6);var Q=(X=!!X&&J===1)||J===1&&w!=="STANDARD";C=C||Q?T:Math.min(T,(fbE+e)*J-e);w=Vt5({originalContainerWidth:z,
sizing:w,standardUnit:J,isCompactList:G});return{itemWidth:Shh({containerWidth:C,peek:q,gutter:e,numItems:w,ignoreMaxWidthLimit:Q}),gutter:e,maxContainerWidth:C,numItems:w,margin:X?0:K,contentMargin:Fwh(z,1),typographyBump:Shh({containerWidth:C,peek:q,gutter:e,numItems:J,ignoreMaxWidthLimit:Q})>400&&!(G&&z<528),standardUnit:J}};
j3=function(e){switch(e){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.dWs=function(e){if(e){var z;if((z=e.responsiveContainerConfiguration)==null?0:z.responsiveSize)return j3(e.responsiveContainerConfiguration.responsiveSize);if(e.layoutSizing)switch(e.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"}}};
DWg=function(e){if(e.fullbleed)return 1;switch(e.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
ttE=function(e,z,C,w,K,G,X,J,q){a:if(e===4&&w==="LOCKUP_CONTENT_TYPE_SOURCE")var T=1;else switch(e){case 3:T=1;break a;default:T=0}var Q=iSk(e,w);a:switch(e){case 4:G=!!(G&&G<100);break a;default:G=!1}a:switch(e){case 3:case 4:var m=w==="LOCKUP_CONTENT_TYPE_CHANNEL"||w==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:m=!1}return{metadataOnThumbnail:Q,isOverlay:J||Q,isCard:NR8(w,X),sizing:z!=null?z:"STANDARD",typographyBump:C!=null?C:!1,isTiny:G,isCentered:m,isCollection:sFs(w),arrangement:T,addMarginForFullbleed:e===
1&&w!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:e===1&&w==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:BR5(w,K,q),disableRounding:e===5||NR8(w,X)||e===1&&w==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:sFs(w)?2:0,useLegacyTypography:!(q==null||!q.useLegacyTypography),useRichGridLegacyTypography:!(q==null||!q.useRichGridLegacyTypography)&&!_.M("web_enable_typography_bump"),compactMetadata:T===0&&w==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:q==null?void 0:q.onFocusEffect,titleMaxLines:w==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
sFs=function(e){switch(e){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
NR8=function(e,z){if(z&&e==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(e){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
iSk=function(e,z){if(z==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(e){case 5:return!0;case 4:return!1;default:return!1}};
BR5=function(e,z,C){if(z&&(C==null||!C.alwaysRespectPodcastShowAspectRatio||e!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(e){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}};
_.yA=function(e){if(e){var z;return((z=_.lh().resolve(_.$B(_.jQ)))==null?0:z())?e.darkThemeImage:e.image}};
yyg=function(e,z,C,w,K,G){if(K&&G&&z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:K,height:G};if(!C)return{};K=C.size;C=C.allowFullWidth;if(z==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&C)return{fullWidth:!0};if(K===void 0)return{};switch(e){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:K,height:K};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:K,height:1/gF8*K};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:K*
jFs,height:K};default:return(w==null?0:w.height)&&(w==null?0:w.width)?w.width/w.height>1?{maxWidth:K*jFs}:{maxWidth:K}:{maxWidth:K}}};
cy1=function(e){var z;return e&&((z=_.yA(e.themedImage))!=null?z:e.image)};
Ay1=function(e){var z;return e==null?void 0:(z=e.sources)==null?void 0:z[0]};
ZSg=function(e){switch(e){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.pG8=function(e){if(e)return"content-id-"+e};
e4E=function(e){switch(e.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"}}};
z4E=function(e){var z=_.cF.currentPageSubTypeSelector(_.AK().getState())||"";return e?e+z:""};
CDL=function(e){switch(e){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
KL1=function(e){var z=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],C=_.b(_.II(void 0,void 0,"JrqNsb")),w=C.next().value,K=C.next().value,G=_.b(_.II(void 0,void 0,"rWytse"));C=G.next().value;var X=G.next().value;G=_.b(_.II(void 0,void 0,"DHRqxe"));var J=G.next().value,q=G.next().value;return{touchFeedbackEvents:{pointerUpEvent:w,pointerDownEvent:C,pointerLeaveEvent:J},touchFeedbackOnPointerUp:_.T9(function(T){wug(_.f7(T),z)||(K(T),X(void 0),q(void 0))}),
touchFeedbackOnPointerDown:_.T9(function(T){e==null||e(T);wug(_.f7(T),z)||(X(T),K(void 0),q(void 0))}),
touchFeedbackOnPointerLeave:_.T9(function(T){wug(_.f7(T),z)||(q(T),X(void 0),K(void 0))})}};
wug=function(e,z){z=z===void 0?[]:z;z=[].concat(_.s_(z),["BUTTON".toString()]);e=_.b(e);for(var C=e.next();!C.done;C=e.next()){C=C.value;for(var w=_.b(z),K=w.next();!K.done;K=w.next())if(C.tagName===K.value)return!0}return!1};
oYs=function(e){switch(e){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"}};
GHo=function(e){return e.scrollHeight-e.offsetHeight>1};
Yu4=function(e,z){var C;return go(e,((C=e.content)==null?void 0:C.length)||0,!z)};
JVE=function(e,z,C,w,K,G){if(!z||b1g){var X;return go(e,((X=e.content)==null?void 0:X.length)||0,!0)}z=w.value;if(!C.value||!z||!e.content)return e;C=0;w=e.content.length;X=0;Xu1||(Xu1=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var J=Xu1;for(K=K*G*J;C<=w;)G=Math.floor(C+(w-C)/2),J=go(e,G)||e,z.firstChild&&(z.firstChild.textContent=J.content),z.scrollHeight>K?w=G-1:(X=G,C=G+1);return go(e,X)};
kHL=function(e,z){var C,w;return(((C=e.content)==null?void 0:C.length)||0)>(((w=z.content)==null?void 0:w.length)||0)};
qu1=function(e,z,C,w,K,G){var X=_.kI("truncated-text-content"),J=_.kI("truncated-text-content"),q=_.kI("button"),T=_.kI("button"),Q=_.kI("button"),m=_.lh().resolve(_.c9),a=_.b(_.zx(function(){return Yu4(e(),K())})),n=a.next().value,H=a.next().value;
a=_.b(_.zx(function(){return kHL(e(),n())}));
var I=a.next().value,L=a.next().value,h=null;_.sH(function(){function E(){if(X.value&&q.value&&Q.value){var g=G()?e():JVE(e(),K(),X,J,z(),C());H(g);requestAnimationFrame(function(){if(X.value&&q.value&&Q.value){var y=GHo(X.value)||kHL(e(),g);L(y);if(!w()){var Z=GHo(X.value),YN=C(),Jk=X.value,v1=q.value,lg=Q.value,M5=m==="rtl";if(Jk&&v1){var fo=v1.offsetLeft;M5&&(fo=Jk.offsetWidth-v1.offsetWidth-v1.offsetLeft);if(y){y=v1.offsetWidth;v1=Jk.offsetWidth;var ug=Z?v1-y-70:fo-70;YN="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
YN+"rem,\n      #000 "+YN+"rem,\n      #000 100%), linear-gradient(\n      to "+((M5?"left":"right")+",\n      #000 0px,\n      #000 "+ug+"px,\n      transparent "+(Z?v1-y:ug+70)+"px)");Jk.style.setProperty("-webkit-mask-image",YN);Jk.style.setProperty("mask-image",YN)}else Jk.style.setProperty("-webkit-mask-image",""),Jk.style.setProperty("mask-image","");Z?M5?(lg.style.setProperty("left","0"),lg.style.setProperty("right","unset")):(lg.style.setProperty("left",""),lg.style.setProperty("right","0")):
M5?(lg.style.setProperty("left","unset"),lg.style.setProperty("right",fo+"px")):(lg.style.setProperty("left",fo+"px"),lg.style.setProperty("right","unset"))}}}})}}
var N,D;(N=h)==null||(D=N.stop)==null||D.call(N);N=new _.lw(E,17);E();h=N},"KjwIxd");
_.sg(function(){H(Yu4(e(),K()));L(kHL(e(),n()));var E=function(){Xu1=void 0;var D,g;(D=h)==null||(g=D.fire)==null||g.call(D)};
if(window.ResizeObserver){var N=new ResizeObserver(E);N.observe(X.value);_.BC(function(){var D,g;(D=h)==null||(g=D.stop)==null||g.call(D);N.disconnect()})}else window.addEventListener("resize",E),_.BC(function(){var D,g;
(D=h)==null||(g=D.stop)==null||g.call(D);window.removeEventListener("resize",E)})});
return{isTruncated:I,displayText:n,contentRef:X,hiddenRef:J,placeholderTruncationTextRef:q,hiddenTruncationTextRef:T,truncationTextRef:Q}};
xhg=function(e){return{content:e!=null?e:""}};
Tjm=function(e){return _.SQ(e.onTap)||_.u3(e.rendererContext)};
$h4=function(e){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:e.overflowMenuA11yLabel,onTap:function(z){z.preventDefault();z.stopPropagation();if(e.overflowMenuOnTap){var C=_.Df({elementsCommand:e.overflowMenuOnTap,forceNewState:!0});if(C==null?0:C.onclick)C.onclick(z)}}}};
_.Am=function(e,z,C,w,K){w=w===void 0?{}:w;if(!K||Math.random()<5E-4){z=z||null;C=C||null;e=e instanceof Error?e:new _.uh(e);if(e.args)for(var G=_.b(e.args),X=G.next();!X.done;X=G.next())X=X.value,X instanceof Object&&(w=Object.assign({},X,w));w.category="H5 Ads Control Flow";z&&(w.slot=z?"slot:  "+z.slotType:"");C&&(w.layout=C?"layout:  "+C.layoutType:"",w.layoutId=C.layoutId);K&&(w.known_error_aggressively_sampled=!0);e.args=[w];_.AX(e)}};
_.l$h=function(e,z){z=_.CW(z);_.eA(e,"yt-open-popup-action",[z,e])};
_.Zh=function(e,z){_.l$h(e,_.AO(z))};
mhE=function(e){if(!e)return"";if(Qtg[e])return Qtg[e];p7||(p7=_.Lh("A"));p7.href!==e&&At(p7,e);var z=p7.pathname;Qtg[e]=z.startsWith("/")?z:"/"+z;return Qtg[e]};
a$5=function(){var e=mhE(window.location.href);if(e==="/")return"home";if(e.startsWith("/results"))return"search";if(e.startsWith("/watch"))return"watch";if(e.startsWith("/shorts"))return"shorts";if(e.startsWith("/hashtag"))return"hashtag";if(e.startsWith("/create_channel"))return"create_channel";if(e.startsWith("/@")||e.startsWith("/user/")||e.startsWith("/channel/"))return"channel";if(e.startsWith("/experiments"))return"experiments";if(e.startsWith("/sponsor_channel"))return"sponsorship";if(e.startsWith("/select_site"))return"settings";
if(e.startsWith("/locate"))return"locate";if(e.startsWith("/redeem"))return"redeem";if(e.startsWith("/musicpremium")||e.startsWith("/premium")||e.startsWith("/red"))return"premium";if(e.startsWith("/paid_memberships"))return"paid_memberships";if(e.startsWith("/oops"))return"oops";if(e.startsWith("/clip"))return"clip";var z;return(e4==null?void 0:(z=e4.response)==null?void 0:z.page)==="404"?"404":e.startsWith("/feed/history")?"history":e.startsWith("/feed/library")?"library":e.startsWith("/feed/subscriptions")?
"subscriptions":e.startsWith("/feed/trending")?"trending":e.startsWith("/feed/news_destination")?"news":e.startsWith("/playlist")?"playlist":e.startsWith("/minor_moment")?"minor_moment":e.startsWith("/playable/")||e.match("^/playables/(?!saved).")?"mini_app":e.startsWith("/playables")?"playables":e.startsWith("/create/live/join")?"open_in_app":e.startsWith("/feed/explore")?"explore":"browse"};
_.Cs=function(){var e=e4==null?void 0:e4.response,z=e==null?void 0:e.endpoint;if(!z)return(e==null?void 0:e.page)==="watch"?"watch":a$5();var C;e=(C=_.r(z==null?void 0:z.commandMetadata,_.XV))==null?void 0:C.webPageType;C=!1;if(e&&!nYm.includes(e))switch(e){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 w;return((w=_.r(z==null?void 0:z.commandMetadata,_.XV))==null?0:w.url)&&mhE(_.r(z.commandMetadata,_.XV).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var K;return(z=(K=_.r(z,_.mJ))==null?void 0:K.browseId)?MTg[z]||"browse":"browse";default:C=!0}if(_.r(z,_.zV)||_.r(z,rVE))return"sponsorship";K=mhE(window.location.href);if(K.startsWith("/experiments"))return"experiments";if(K.startsWith("/create_channel"))return"create_channel";
if(_.r(z,_.oO)&&K.startsWith("/shorts"))return"shorts";if(_.r(z,_.oO)&&K.startsWith("/watch"))return"watch";C&&(z=new _.uh("Unsupported mWeb page type",{pathname:K,webPageType:e}),_.yG(z));return"browse"};
w$=function(e,z,C,w){return e&&z?e!==C||z!==w?(_.Am(Error("Kh"),void 0,void 0,{"stored-slot":e,"stored-layout":z,"latest-slot":C,"latest-layout":w}),!1):!0:!1};
Uh1=function(e,z,C){return e({targetId:z},function(w){return C.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},w,{contents:[C.continuationItems?_.r(C.continuationItems[0],H1m):{}]}):C.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},w,{header:C.continuationItems?C.continuationItems[0]:void 0}):Object.assign({},w,{contents:C.continuationItems?C.continuationItems:[]})})};
vY1=function(e,z,C,w){if(z=z.trackingParams){var K,G=(K=C.getScreenLayer)==null?void 0:K.call(C);C=_.Pr(G);K=_.Ip(G);if(C&&K){var X=_.v9(z);_.M("combine_ve_grafts")?e.graftServerVe(z,K,G):_.id(C,K,X);w==null||w(X)}}};
WLL=function(e){var z;return((z=I$E.get(e))==null?void 0:z.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
LLN=function(e,z){var C={type:z.slotType,controlFlowManagerLayer:PD5.get(z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z.slotEntryTrigger&&(C.entryTriggerType=z.slotEntryTrigger.triggerType);z.slotPhysicalPosition!==1&&(C.slotPhysicalPosition=z.slotPhysicalPosition);if(e){C.debugData={slotId:z.slotId};if(e=z.slotEntryTrigger)C.debugData.slotEntryTriggerData=R45(e);e=z.slotFulfillmentTriggers;C.debugData.fulfillmentTriggerData=[];e=_.b(e);for(var w=e.next();!w.done;w=e.next())C.debugData.fulfillmentTriggerData.push(R45(w.value));
z=z.slotExpirationTriggers;C.debugData.expirationTriggerData=[];z=_.b(z);for(e=z.next();!e.done;e=z.next())C.debugData.expirationTriggerData.push(R45(e.value))}return C};
R45=function(e,z){var C={type:e.triggerType};z!=null&&(C.category=z);e.triggeringSlotId!=null&&(C.triggerSourceData||(C.triggerSourceData={}),C.triggerSourceData.associatedSlotId=e.triggeringSlotId);e.triggeringLayoutId!=null&&(C.triggerSourceData||(C.triggerSourceData={}),C.triggerSourceData.associatedLayoutId=e.triggeringLayoutId);return C};
h41=function(e,z,C,w){z={opportunityType:z};e&&(w||C)&&(w=_.i4(w||[],function(K){return LLN(e,K)}),z.debugData=Object.assign({},C&&C.length>0?{associatedSlotId:C}:{},w.length>0?{slots:w}:{}));
return z};
O1k=function(e){return Ks(e.opportunityAdapterMap).concat(Ks(e.triggerAdapterMap)).concat(Ks(e.fulfillmentAdapterFactoryMap)).concat(Ks(e.slotAdapterFactoryMap)).concat(Ks(e.layoutRenderingAdapterFactoryMap))};
Ks=function(e){var z=[];e=_.b(e.values());for(var C=e.next();!C.done;C=e.next())C=C.value,C.isAdsControlFlowEventListener&&z.push(C);return z};
GV=function(e){var z=e.slotId,C=e.slotType,w=e.slotPhysicalPosition;return z===void 0?new oe("Cannot construct a slot due to the missing id.",{adSlotMetadata:e}):C===void 0?new oe("Cannot construct a slot due to the missing type.",{adSlotMetadata:e}):w===void 0?new oe("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:e}):{slotId:z,slotType:C,slotPhysicalPosition:w,managerLayer:"external",adSlotLoggingData:e.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new EY8}};
FLh=function(e){var z=e.layoutId,C=e.layoutType;return z===void 0?new Ys("Cannot construct a layout due to the missing id.",{adLayoutMetadata:e}):C===void 0?new Ys("Cannot construct a layout due to the missing type.",{adLayoutMetadata:e}):{layoutId:z,layoutType:C,managerLayer:"external",adLayoutLoggingData:e.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new EY8,interactionLoggingAdsClientData:{}}};
VTm=function(e){if(e.querySelector("img")){var z=e.querySelector("img");z.addEventListener("error",function(){Jbg(z.src).then(function(C){(C=_.jg(C).toString())?z.src=C:z.removeAttribute("src")}).catch(function(){z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
XZ=function(e,z){if(z&&(f$L(z.viewableCommand)||f$L(z.endOfSessionCommand))){var C=Sug(z==null?void 0:z.viewableCommand);z=Sug(z==null?void 0:z.endOfSessionCommand);if(!bn){var w=_.n0("custom_active_view_tos_timeout_ms");bn=w>0&&w!==36E5?new upN(dh1(),w):new upN(dh1())}Dhg(bn,e);i1k(bn,e,C,z)}};
JS=function(e){bn&&Dhg(bn,e)};
dh1=function(){var e=_.j5("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(e==null?void 0:e.length)===2?e[1]:null};
f$L=function(e){e=_.SQ(e);return!(e==null||!e.loggingUrls)&&e.loggingUrls.length>0};
Sug=function(e){if(!e)return[];var z=[],C,w;((w=(C=_.SQ(e))==null?void 0:C.loggingUrls)!=null?w:[]).forEach(function(K){K.baseUrl&&z.push(K.baseUrl)});
return z};
Njo=function(e){if(_.M("stop_av_measurement_on_detach"))return function(){JS(e)}};
stg=function(e){return function(){_.M("stop_av_measurement_on_detach")&&JS(e)}};
Bjh=function(e){if(_.M("stop_av_measurement_on_detach"))return function(){JS(e)}};
tTE=function(e){return e.shorts.isDesktopSmallWidth};
_.gY1=function(e){return e.shorts.isShortsActive};
_.jt5=function(e){return e.shorts.isWatchWhileMode};
_.ks=function(e){return e.shorts.isFullscreen};
_.ql=function(e){return e.shorts.isShortsPipActive};
cVL=function(e){var z,C;if(e=(z=_.r(e.reelsAdCardButtoned,yVo))==null?void 0:(C=z.animatedRenderingConfig)==null?void 0:C.easeOutSeconds)return e+"s"};
Z11=function(e,z,C){return _.k(function(w){return w.return(new Promise(function(K){var G=new Image;G.onload=function(){K(new AVg(e,z,C,G.naturalWidth,G.naturalHeight))};
G.src=C.toString()}))})};
pu1=function(e,z){return Math.round(e/1E-5)===Math.round(z/1E-5)};
eem=function(e,z){return Math.round(e/1E-5)===Math.round(z/1E-5)};
zeg=function(e,z){return e.year===z.year&&e.month===z.month&&e.day===z.day};
CRk=function(e,z){return e.year!==z.year?e.year<z.year:e.month!==z.month?e.month<z.month:e.day<z.day};
Kem=function(e){return e.day===w8m(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}};
o8g=function(){var e=new Date,z={year:e.getFullYear(),month:e.getMonth(),day:e.getDate()};return{start:z,end:{year:e.getFullYear()+2,month:e.getMonth(),day:e.getDate()},selectedDate:Kem(z)}};
Glo=function(e){return(new cH(2)).format(new Date(e.year,e.month,e.day))};
Y97=function(e){return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}};
bzo=function(e,z){e=(e+(Number(z.utcOffsetSec)+(new Date(e*1E3)).getTimezoneOffset()*60))*1E3;z=Y97(new Date(e));return{date:z,secondsSinceMidnight:Math.floor((e-(new Date(z.year,z.month,z.day)).getTime())/1E3)}};
X8N=function(e,z){z=z.months.findIndex(function(C){return C.year===e.year&&C.month===e.month});
return z>=0?z:void 0};
JPs=function(e){if(!e)return!1;try{if(e.host&&e.host.tagName==="YT-FORMATTED-STRING"&&e.host.id==="contenteditable-textarea"||e.nodeType===Node.ELEMENT_NODE&&e.tagName==="YTD-COMMENTBOX")return!0}catch(z){return!1}return JPs(e.parentNode)};
xs=function(e){return e?!(e.tagName!=="A"||!e.href||!e.classList.contains("yt-simple-endpoint")):!1};
klg=function(e){return e?e.tagName==="IMG"&&e.classList.contains("emoji"):!1};
q98=function(e,z,C){if(!e)return null;var w=xs(e);if(w&&C)return z=e.pathname.substring(e.pathname.indexOf("/channel/")+9),document.createTextNode("@"+z);if(w&&!C)return document.createTextNode("");if(klg(e))return C=e.alt,e=e.dataset.emojiId,!e&&z&&(z=_.TV(z,C))&&z.isCustomEmoji&&(e=z.emojiId),e?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+e+">"):document.createTextNode(C);w=e.cloneNode(!1);for(var K=0;K<e.childNodes.length;++K){var G=q98(e.childNodes[K],z,C);G&&w.appendChild(G)}return w};
$s=function(e){return e?xs(e)?e:$s(e.lastChild):null};
xs4=function(e){return e?xs(e)?e:xs4(e.firstChild):null};
T0h=function(e){if(!e)return null;for(var z=e.previousSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.previousSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.previousSibling;else break;(z=$s(z))?e=z:e=(e=e.parentNode)?$s(e.previousElementSibling):null;return e};
$sm=function(e){if(!e)return null;for(var z=e.nextSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.nextSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.nextSibling;else break;return(z=xs4(z))?z:$sm(e.parentNode)};
li1=function(e){var z=_.ln(),C=z.JSC$11513_getStartNode();if(!JPs(C.parentNode))return null;z=z.JSC$11513_getStartOffset();if(C.nodeType===Node.TEXT_NODE){var w=_.j8(C,xs);if(w){if(e&&z===0||!e&&z===C.length)return w}else{if(e&&z===C.length)return!C||C.nodeName==="BR"||C.nextElementSibling&&_.Qz(C.nextElementSibling,"display")==="block"?null:xs4(C.nextElementSibling);if(!e&&z===0)return C?$s(C.previousElementSibling):null}}if(C.nodeType===Node.ELEMENT_NODE)if(e){if(0<=z&&z<C.childNodes.length)return xs4(C.childNodes[z])}else if(0<
z&&z<=C.childNodes.length)return $s(C.childNodes[z-1]);return null};
QWs=function(e,z,C){if(!e)return null;if(e.nodeType===Node.TEXT_NODE)if(C){var w=T0h(e);if(w&&!/^\s+\S/.test(e.wholeText.substr(0,z)))return w}else if((w=$sm(e))&&!/\S\s+/.test(e.wholeText.substr(z,e.wholeText.length)))return w;return e.nodeType===Node.ELEMENT_NODE?C?T0h(e.childNodes[z]):$sm(e.childNodes[z]):QWs(e.parentNode,z,C)};
ms1=function(e){if(e.hasChildNodes())switch(e.tagName){case "DIV":case "A":case "SPAN":var z="";for(e=e.firstChild;e;e=e.nextSibling)z+=ms1(e);return z;default:return""}else switch(e.nodeType){case 3:return e.textContent;default:return""}};
m8=function(e,z){return e.year===z.year&&e.month===z.month&&e.day===z.day};
ae=function(e,z){return e.year!==z.year?e.year<z.year:e.month!==z.month?e.month<z.month:e.day<z.day};
ais=function(e){return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}};
n8N=function(e){var z=Q67;z=z===void 0?Q67:z;z(new Date(e.year,e.month,e.day))};
ns=function(e){return ais(new Date(Number(e.seconds)*1E3))};
MD1=function(e){return e.year!==void 0&&e.month!==void 0&&e.day!==void 0};
rP4=function(e){return e.start!==void 0&&e.end!==void 0};
Hzk=function(e){return rP4(e)?e.start:e};
Us7=function(e){return rP4(e)?e.end:void 0};
Iig=function(e,z){for(var C=[],w=new Date(e.start.year,e.start.month);w.getFullYear()<e.end.year||w.getFullYear()===e.end.year&&w.getMonth()<=e.end.month;){var K=C,G=K.push,X=w.getFullYear(),J=w.getMonth(),q=e,T=z,Q=void 0,m=[],a=Object.freeze({extraCssClass:"invisible"}),n=new Date(X,J),H=ais(n);n=n.getDay();for(var I=ais(new Date);H.month===J;){n!==v81&&Q||(Q=Array.from({length:7}).fill(a),m.push(Q));var L={date:{year:X,month:J,day:H.day},extraCssClass:"",debugClass:""};L.extraCssClass=T(L.date,
H,I,q).trim();Q[(n-v81+7)%7]=L;H=H.day===w8m(H.year,H.month)?H.month===11?{year:H.year+1,month:0,day:1}:{year:H.year,month:H.month+1,day:1}:{year:H.year,month:H.month,day:H.day+1};n=(n+1)%7}G.call(K,{weeks:m,monthLabel:Ml.SHORTMONTHS[J]+" "+X,year:X,month:J,monthLabelExtraCssClass:m[0][2]===a?"shift-down-label":""});w.setMonth(w.getMonth()+1)}return C};
We8=function(e,z){z=z.months.findIndex(function(C){return C.year===e.year&&C.month===e.month});
return z>=0?z:void 0};
Re4=function(e,z){a:{var C=C===void 0?[2,3]:C;C=_.b(C);for(var w=C.next();!w.done;w=C.next()){var K=new Date;if((new PRg(w.value)).parse(z,K,{validate:!0})){K.setHours(0,0,0,0);z=K;break a}}z=null}if(!z)return{isValid:!1,value:void 0};z=ais(z);C=e.end;return ae(z,e.start)||ae(C,z)?{isValid:!1,value:void 0}:{isValid:!0,value:z}};
Feg=function(e){var z=Leh;z=z===void 0?hem:z;var C=e.columnsToShow||[],w=Ozk(e.columnDimensions,e.columnsToShow,e.leftFloatingColumns,z);return C.map(function(K,G){var X=e.columns[K];if(X===void 0)throw Error("Qh");var J=w?w[G]:"";var q=e.getCustomTooltip?e.getCustomTooltip(K,X.headerTooltipParagraphs):X.headerTooltipParagraphs;var T=E8g(e,K);return{type:K,index:G,style:J,classes:T,headerName:X.headerName||"",headerIcon:X.headerIcon,headerTooltipParagraphs:q||[],headerTooltipHelpContext:X.headerTooltipHelpContext,
sortOrders:X.sortOrders||[],selectionState:X.isSelectionCheckbox?e.selectionState:void 0}})};
E8g=function(e,z){var C=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],w=e.columns[z];if(w===void 0)return"";var K=C.includes("DEFAULTS")&&w.cssClass?[w.cssClass]:[];if(C.includes("SORTING")){w.sortOrders&&w.sortOrders.length&&K.push("sortable");if(e.sorting&&e.sorting.columnType===z)a:switch(e.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var G="column-sorted";break a;default:G=""}else G="";G&&K.push(G)}C.includes("FLOATING")&&(z=e.columnsToShow.indexOf(z),e.leftFloatingColumns&&z<e.leftFloatingColumns&&
K.push("floating-column"),e.leftFloatingColumns&&z===e.leftFloatingColumns-1&&K.push("last-floating-column"));C.includes("RIGHT_ALIGN")&&w.rightAlignHeader&&K.push("right-align");return K.filter(function(X){return X}).join(" ")};
Ozk=function(e,z,C,w){C=C===void 0?0:C;w=w===void 0?hem:w;if(e){var K=[],G=0;VDs(e,z,w).forEach(function(X,J){var q="min-width:"+X.minWidth+"px;padding-left:"+X.paddingLeft+"px;padding-right:"+X.paddingRight+"px;flex:"+X.flexGrow+" 0 "+X.minWidth+"px;";X.maxWidth!==Infinity&&(q=[q,"max-width:"+X.maxWidth+"px;"].join(""));G>0&&J<C&&(q=[q,"left:"+G+"px;"].join(""));K.push(q);G+=X.minWidth+X.paddingLeft+X.paddingRight});
return K}};
VDs=function(e,z,C){C=C===void 0?hem:C;return z.map(function(w,K){w=e&&e[w]||{};var G=K===0?C.paddingLeftFirstColumn:C.padding;w.paddingLeft!==void 0&&(G=w.paddingLeft);K=K===z.length-1?C.paddingRightLastColumn:C.padding;w.paddingRight!==void 0&&(K=w.paddingRight);return{paddingLeft:G,paddingRight:K,minWidth:w.minWidth!==void 0?w.minWidth:C.minWidth,maxWidth:w.maxWidth!==void 0?w.maxWidth:C.maxWidth,flexGrow:w.flexGrow!==void 0?w.flexGrow:C.flexGrow}})};
fig=function(e){var z=e.reduce(function(w,K){var G=K.columnId,X={};K.headerText&&(X.headerName=_.Zd(K.headerText));K.rightAlignHeader&&(X.rightAlignHeader=K.rightAlignHeader);var J;if((J=K.headerIcon)==null?0:J.iconType)X.headerIcon=_.qF(K.headerIcon.iconType);w[G]=X;return w},{}),C=e.filter(function(w){return!w.hideColumn}).map(function(w){return w.columnId});
e=e.filter(function(w){return!!w.dimensions}).reduce(function(w,K){w[K.columnId]=K.dimensions;
return w},{});
return{columns:z,columnsToShow:C,columnDimensions:e}};
_.S9g=function(e){return e?e.simpleText?e.simpleText:e.runs?e.runs.map(function(z){return z.text}).join(""):"":""};
sWg=function(e){var z=e.data;var C=e.onTap;var w=e.isSelected;var K=e.onFocusIn;if(!z)return{};e=u67(z);w===void 0&&(w=z==null?void 0:z.isSelected);var G;return{text:ds1(z,e),startIcon:(G=z.icon)==null?void 0:G.iconType,state:w?0:2,type:0,style:Ds1(z),onTap:iz7(z,C),accessibilityLabel:N07(z,e),onFocusIn:function(){return K==null?void 0:K()}}};
ds1=function(e,z){if(!z)return e.text?_.S9g(e.text):void 0};
Ds1=function(e){var z;switch((z=e.style)==null?void 0:z.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
iz7=function(e,z){return function(C){z==null||z(C,e)}};
u67=function(e){e=e.style&&e.style.styleType;return!b1g&&e==="STYLE_EXPLORE_LAUNCHER_CHIP"};
N07=function(e,z){if(z){var C,w,K;return(K=(C=e.accessibilityData)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label)!=null?K:ds1(e,!1)}};
B01=function(){var e;return[function(z,C,w){return _.pi(e,z,C,w)},
function(z){e=z}]};
tDs=function(e,z){return _.xz(e.entities,"chipEntity",z)};
jW7=function(e,z,C,w){return function(){var K=g8h.has(e.displayType)&&e.selected,G=K&&e.deselectCommand?e.deselectCommand:e.tapCommand;!G||K&&w||_.NF(G,{form:{element:z==null?void 0:z.value}});C==null||C()}};
cPg=function(e,z){a:{if(e=e.onUpdateText)if(e=_.r(e,_.fm)){var C;e=(C=_.r(e,yP1))==null?void 0:C.stepId;break a}e=void 0}C=e;z=z==null?void 0:z.stepStates;if(C&&z){var w,K;return(w=z[C])==null?void 0:(K=w.userQuery)==null?void 0:K.userQuery}};
r$=function(e){return{signalAction:{signal:e}}};
p8E=function(){return _.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?APN:_.Zz5};
e1m=function(e,z){e=e===void 0?"SOFT_RELOAD_PAGE":e;z=z===void 0?49504:z;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.K4(_.kk("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:z}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:e}}]}}}};
z1o=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.K4(_.kk("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:p8E()}};
CjN=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.K4(_.kk("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:p8E()}};
wb7=function(e,z){var C=_.K4(_.kk("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),w=_.K4(_.kk("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),K={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.K4(_.kk("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};K.serviceEndpoint=e?e:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[r$("SOFT_RELOAD_PAGE")]}};return{title:C,bodyText:w,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:K},
style:{value:z!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
onL=function(e){e=e===void 0?{}:e;return{title:_.K4(e.localizedZeroStateTitleText===void 0?"":e.localizedZeroStateTitleText),bodyText:_.K4(e.localizedZeroStateMessage===void 0?"":e.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K4(e.localizedZeroStateButtonText===void 0?"":e.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[KZE]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
YL1=function(e){e=e===void 0?{}:e;return{title:_.K4(e.localizedOptInBannerTitleText===void 0?"":e.localizedOptInBannerTitleText),titleLength:19,subtitle:_.K4(e.localizedOptInMessage===void 0?"":e.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K4(_.kk("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:_.K4(_.kk("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:[GZg]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Jv1=function(e,z){var C=z=z===void 0?{}:z;z=C.offlineTitleText===void 0?"":C.offlineTitleText;var w=C.offlineDescriptionText===void 0?"":C.offlineDescriptionText,K=C.formattedSupplementalText,G=C.actionButtonText===void 0?"":C.actionButtonText,X=C.titleText===void 0?"":C.titleText;C=C.descriptionText===void 0?"":C.descriptionText;var J={title:G,accessibilityText:G,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};e||(X=z,C=w,J={title:G,accessibilityText:G,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.K4(X),titleLength:X.length,overrideTitleMaxFontSize:30,subtitle:_.K4(C),supplementalText:K,primaryButton:{buttonViewModel:J},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[bOm]},darkTileImage:{thumbnails:[Xb4]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.xo7=function(e,z,C,w,K,G,X,J,q,T,Q){K=K===void 0?!1:K;G=G===void 0?!1:G;X=X===void 0?0:X;J=J===void 0?-Infinity:J;q=q===void 0?!1:q;T=T===void 0?!1:T;Q=Q===void 0?!1:Q;var m=[],a=_.K4(_.kk("SMART_DOWNLOADS",void 0,"Smart downloads")),n=_.K4(kZ1(X,J,e.length));J=X=void 0;T?X={statementBannerRenderer:Jv1(Q,w)}:K?e.length>0?J=qLE(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.M("kevlar_manual_downloads_above"),a,n):q?J={alertBannerViewModel:{heading:{content:C.localizedOptInBannerTitleText===
void 0?"":C.localizedOptInBannerTitleText},body:{content:C.localizedPromptMessage===void 0?"":C.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.kk("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.kk("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:_.ISN}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:G&&(J={backgroundPromoRenderer:{bodyText:_.K4(_.kk("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
G&&(J={alertBannerViewModel:{heading:{content:C.localizedOptInBannerTitleText===void 0?"":C.localizedOptInBannerTitleText},body:{content:C.localizedOptInMessage===void 0?"":C.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.kk("TURN_ON",void 0,"Turn on"),accessibilityText:_.kk("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});C=_.K4(_.kk("YOUR_DOWNLOADS",void 0,"Your downloads"));w=void 0;z.length>0?(w=void 0,_.M("kevlar_display_downloads_numbers")&&(w=_.K4(_.qL("VIDEO_COUNT",z.length))),w=qLE(z,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,C,w)):K||e.length||
T||(w={backgroundPromoRenderer:{bodyText:_.K4(_.kk("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?m.push({richSectionRenderer:{content:X}}):J&&!_.M("kevlar_manual_downloads_above")&&m.push({richSectionRenderer:{content:J,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
w&&m.push({richSectionRenderer:{content:w,loggingDirectives:{clientVeSpec:{uiType:51721}}}});J&&_.M("kevlar_manual_downloads_above")&&m.push({richSectionRenderer:{content:J,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(z.length>0||K&&e.length>0&&!T)&&m.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.K4(_.kk("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:m}};
_.$oo=function(e){return Td1(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.lXL=function(e){return Td1(e,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
Td1=function(e,z){var C=[];e=qLE(e,z,!0);C.push({richSectionRenderer:{content:e}});return{contents:C}};
qLE=function(e,z,C,w,K){C=C===void 0?!1:C;var G="RESPONSIVE_SIZE_STANDARD";_.M("kevlar_standard_rich_grid_on_offline_home")&&z==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?G="RESPONSIVE_SIZE_STANDARD":_.M("kevlar_modern_downloads_compact")?G="RESPONSIVE_SIZE_COMPACT":_.M("kevlar_modern_downloads_extra_compact")?G="RESPONSIVE_SIZE_EXTRA_COMPACT":_.M("kevlar_modern_downloads_tiny")&&(G="RESPONSIVE_SIZE_TINY");e={isExpanded:C,contents:H0(e),entitySelectorType:z,responsiveContainerConfiguration:{responsiveSize:G}};
w&&(e.title=w);K&&(e.subtitle=K);C||(_.M("kevlar_smart_downloads_show_more_button")?(e.showMoreButton={buttonRenderer:{accessibility:{label:_.kk("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.K4(_.kk("SHOW_MORE",void 0,"Show more"))}},e.showLessButton={buttonRenderer:{accessibility:{label:_.kk("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.K4(_.kk("SHOW_LESS",void 0,"Show less"))}}):(e.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.kk("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}}}},e.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.kk("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}}}},e.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.kk("VIEW_ALL",void 0,"View all"),accessibilityText:_.kk("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:_.C4("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:e}};
H0=function(e){var z=[];e=_.b(e);for(var C=e.next();!C.done;C=e.next())if(C=C.value,Xh7(C)){var w=z,K=w.push;var G=void 0;if(C==null?0:(G=C.videoEntity)==null?0:G.videoId){G=Nq(_.eB().getState(),C.videoEntity.videoId);var X=_.eB().getState();var J=_.qq(C.videoEntity.videoId,"mainVideoEntity");X=!!_.PH(X.entities)[J];X={videoId:C.videoEntity.videoId,title:ou(C.videoEntity.title),shortBylineText:ou(C.channelEntity.title),thumbnail:C.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:X&&_.M("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:d44(C.videoEntity.videoId,G,C.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.kk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};C.videoEntity.lengthSeconds&&(X.thumbnailOverlays=Vws(C.videoEntity.lengthSeconds,G));X.isWatched=G>0;_.M("kevlar_modern_downloads_page")&&(X.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:C.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.kk("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},X.badges=void 0);C=X}else C={};K.call(w,{richItemRenderer:{content:{videoRenderer:C},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(bE8(C)){w=z;K=w.push;var q=J=G=void 0,T=void 0,Q=void 0,m=void 0,a=void 0,n=void 0,H=void 0,I=void 0,L=void 0,h=void 0;X=C.mainPlaylistEntity.playlistId;var E=C==null?void 0:(h=C.mainPlaylistEntity)==null?void 0:(L=h.thumbnailStyleData)==null?void 0:(I=L[0])==null?void 0:(H=I.value)==null?void 0:(n=H.collageThumbnail)==
null?void 0:n.coverThumbnail;if(X&&E){n=D4k(X);!_.M("enable_offline_playlist_page")&&(C==null?0:(a=C.mainPlaylistEntity)==null?0:a.videos)&&(a=C==null?void 0:(m=C.mainPlaylistEntity)==null?void 0:(Q=m.videos)==null?void 0:Q[0],Q=_.Xn(a).entityId,Q=JSON.parse(Q).videoId,Q!==void 0&&(n=Nq(_.eB().getState(),Q),n=_.wk(Q,X,void 0,void 0,n)));Q=[];if(C==null?0:(T=C.mainPlaylistEntity)==null?0:(q=T.videos)==null?0:q.length)q=lCh(),T=Object,Q=T.assign,m=(m=$w1(C==null?void 0:C.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.K4(m),icon:{iconType:"PLAYLISTS"}}}:void 0,Q=[q,Q.call(T,{},(J=m)!=null?J:{})];C={playlistId:X,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:E}},navigationEndpoint:n,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:Q,title:ou(C.mainPlaylistEntity.title),shortBylineText:ou(C==null?void 0:(G=C.channelEntity)==null?void 0:G.title),badges:[{metadataBadgeRenderer:{label:_.kk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.M("kevlar_modern_downloads_page")&&(C.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:QEE,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:X,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.kk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},C.badges=void 0)}else C=void 0;K.call(w,{richItemRenderer:{content:{playlistRenderer:C},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return z};
kZ1=function(e,z,C){e=e?mom(e):"";z!==void 0&&isFinite(z)?z===0?z=_.kk("UPDATING",void 0,"Updating..."):(z=Fj1(new Date(z),new Date),z=_.kk("UPDATED_TIME",{relative_time:z},"Updated "+z)):z="";var w="";e&&z&&(w=" \u2022 ");if(C&&_.M("kevlar_display_downloads_numbers")){C=_.qL("VIDEO_COUNT",C);if(e||z)w=" \u2022 ";return C+w+e+w+z}return e+w+z};
aXm=function(e){return eOL(e.entities).length};
_.nn8=function(e,z,C){var w=j3(e.responsiveSize),K;e=!((K=e.responsiveMap)==null||!K.some(function(G){return G.containerSize==="CONTAINER_SIZE_NARROW"&&G.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:C,containerWidth:z,sizing:w,enableFullBleedForSingleCol:!1,isCompactList:w==="COMPACT"&&e}};
M9g=function(e,z){return _.xz(e.entities,"votingEntity",z)};
UA=function(e){if(e){var z;return((z=_.lh().resolve(_.$B(_.jQ)))==null?0:z())?e.darkTheme:e.lightTheme}};
rv4=function(e,z){if(e.simpleText)return Object.assign({},e,{simpleText:B9(e.simpleText,z)});if(!e.runs)return e;for(var C=Object.assign({},e,{runs:[]}),w=0,K=_.b(e.runs),G=K.next();!G.done;G=K.next())if(G=G.value,G.text)if(w+G.text.length<=z)C.runs.push(G),w+=G.text.length;else return C.runs.push(Object.assign({},G,{text:B9(G.text,z-w)})),C;return e};
HOL=function(e,z){return _.xz(e.entities,"chipBarStateEntity",z)};
Uo5=function(e){switch(e){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
vns=function(e,z){return{triggeringElement:e,onDwellTriggeredFn:function(){var C={triggeringElement:e,loadVideoPreviewEventData:z},w=document.querySelector(".video-preview");w&&w.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:C}))},
onDwellEndFn:function(){var C=document.querySelector(".video-preview");C&&C.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
IX8=function(e,z){var C=_.lh().resolve(_.$B(Ibo)),w=function(){var K=z();return C&&K?vns(e.value,K):null};
_.sH(function(){var K=w();C&&K&&Promise.resolve().then(function(){C.registerElement(K)});
_.BC(function(){C&&K&&Promise.resolve().then(function(){_.BF(C,K)})})},"csPUge")};
Pjh=function(e){var z=e.dataset.resizeObserverId;if(z)return z;z=""+WZs++;return e.dataset.resizeObserverId=z};
R11=function(e){e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;var C=Pjh(z.target),w=Object.assign({},{target:z.target},v0.get(C));if(w!=null&&w.contentRect?w.contentRect.width!==z.contentRect.width||w.contentRect.height!==z.contentRect.height:1)for(v0.set(C,{borderBoxSize:z.borderBoxSize,contentBoxSize:z.contentBoxSize,contentRect:z.contentRect,devicePixelContentBoxSize:z.devicePixelContentBoxSize}),C=_.b(Ie.get(C)||[]),w=C.next();!w.done;w=C.next())w=w.value,w(z)}};
h1g=function(e,z){var C=Pjh(e);Ie.has(C)||Ie.set(C,new Set);Ie.get(C).add(z);v0.has(C)&&z(Object.assign({},{target:e},v0.get(C)));W0||(W0=new LZg(R11));z=W0;z.observe(e)};
OOo=function(e,z){var C=Pjh(e);Ie.has(C)&&(Ie.get(C).delete(z),Ie.get(C).size===0&&(Ie.delete(C),v0.delete(C),W0.unobserve(e),delete e.dataset.resizeObserverId));Ie.size===0&&W0&&(W0.disconnect(),W0=void 0)};
FZ8=function(e,z){var C=_.lh().resolve(m$);return EnN.map(function(w){return C.observe(e,z,w)})};
V9k=function(e){var z=_.lh().resolve(m$);e.forEach(function(C){z.unobserveByKey(C)})};
_.P0=function(e){var z=_.b(EO4()),C=z.next().value,w=z.next().value,K=Object.assign({},fXN,e),G=SL1(function(X){var J=X.contentRect.height;if((X=X.contentRect.width)||J||K.canHaveZeroSize)C.width()===X&&C.height()===J||w(C,{height:J,width:X})},K.throttleMs);
return[C,function(X){var J=[];K.useVisibilityObserver&&(J=FZ8(X,function(q,T){requestAnimationFrame(function(){T==="visible"?h1g(X,G):OOo(X,G)})}));
J.length||h1g(X,G);return function(){J.length&&(V9k(J),J.length=0);OOo(X,G)}}]};
dog=function(e,z,C,w,K){e=z?e.switchOffCommand:e.switchOnCommand;if(w&&K)uM1(e,C,K);else{var G,X;(G=_.Df({elementsCommand:e}))==null||(X=G.onclick)==null||X.call(G,C)}};
uM1=function(e,z,C){e=_.Df({elementsCommand:e,additionalCommandArgs:{commandController:{onSuccess:function(){C(!1)},
onServerError:function(){C(!1)}}}});
if(e==null?0:e.onclick)e.onclick(z),C(!0)};
iO8=function(e){if(e)return _.r(e,DoN)};
Nd7=function(e){if(e)switch(e){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
sE1=function(e,z){if(!((e==null?0:e.entitySelectorType)&&(e==null?0:e.entityKey)))return{};switch(e.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.M("enable_web_shorts_captions_language_command")){var C;var w=(C=_.n7())==null?void 0:C.getOption("captions","track");var K,G=typeof(w==null?void 0:w.translationLanguage)==="object"&&((K=w.translationLanguage)==null?void 0:K.languageName)||(w==null?void 0:w.displayName)||"";w={data:Object.assign({},
!!G&&{selectionText:{content:G}},!!G&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof w==="undefined"})}}else w={};return w;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.M("web_shorts_audio_track_picker")){var X;K=((X=_.n7())==null?void 0:X.getAudioTrack())||void 0;C=K==null?void 0:(G=K.getLanguageInfo())==null?void 0:G.getName();K={data:Object.assign({},{selectionText:{content:C}},C&&!(K==null?0:(w=K.getLanguageInfo())==
null?0:w.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else K={};return K;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return w=e!=null&&e.entityKey?(w=_.xf(z,e.entityKey))?{isHidden:(w==null?void 0:w.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},w;default:return{}}};
Bdo=function(e,z){return function(C){var w=function(K){_.S3(_.f7(K),C,z)||e(K)};
C.addEventListener("click",w);return function(){C.removeEventListener("click",w)}}};
_.t94=function(e){return function(){return _.r(e(),_.Re)}};
gn1=function(e){switch(e){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
jEo=function(e){return gn1(e==null?void 0:e.all)};
yv7=function(e){var z={};(e=e==null?void 0:e.padding)&&(z.padding=gn1(e.vertical)+"px "+gn1(e.horizontal)+"px");return z};
cv4=function(e){switch(e){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
Av1=function(e){switch(e){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
ZO8=function(e){switch(e){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
pbs=function(e,z){if(z)return{containerStyles:yv7(z),itemStyles:function(C,w){var K={flex:"1"},G=z==null?void 0:z.flexDirection;b:switch(G){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":C=!!C;break b;default:C=!!w}C||(C=_.j5("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",G==="FLEX_DIRECTION_ROW"||G==="FLEX_DIRECTION_ROW_REVERSE"?(G=jEo(z==null?void 0:z.gap)+"px",C?K["margin-left"]=G:K["margin-right"]=G):K["margin-bottom"]=jEo(z==null?void 0:z.gap)+"px",K.flex=
"1");return K},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(z==null?void 0:z.flexDirection)==="FLEX_DIRECTION_ROW"||(z==null?void 0:z.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
ewo=function(e){return e<528?"CONTAINER_SIZE_NARROW":e<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
zws=function(e,z){e=_.b(e.responsiveMap||[]);for(var C=e.next();!C.done;C=e.next())if(C=C.value,C.containerSize===z)return C.containerType};
_.Cy1=function(e,z){if(z){var C=z.responsiveSize;e=ewo(e);var w=zws(z,e);if(w&&C){a:{if(w==="CONTAINER_TYPE_VERTICAL_LIST")if(C==="RESPONSIVE_SIZE_STANDARD"){if(e!=="CONTAINER_SIZE_NARROW"){var K="50%";break a}}else{K=e==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}K=void 0}return{responsiveSize:C,containerSize:e,containerType:w,force16By9ThumbnailAspectRatio:!z.enableContentSpecificAspectRatio,contentPreviewWidth:K,fullbleed:(w==="CONTAINER_TYPE_VERTICAL_LIST"||w==="CONTAINER_TYPE_GRID")&&e===
"CONTAINER_SIZE_NARROW"&&!1}}}};
wsk=function(e,z){var C={};switch(z){case "CONTAINER_TYPE_VERTICAL_LIST":C["flex-direction"]="column";C.padding="0 "+e.margin+"px";break;case "CONTAINER_TYPE_GRID":C["flex-direction"]="row";C.flex="none";C["flex-wrap"]="wrap";C.width=e.maxContainerWidth?e.maxContainerWidth+e.gutter+"px":void 0;C.padding="0 "+(e.margin-e.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":C["flex-direction"]="row",C.flex="none",C["overflow-x"]="auto",C.width=e.maxContainerWidth?e.maxContainerWidth+"px":void 0,
C.padding="0 "+e.margin+"px"}return C};
K_N=function(e,z){if(z){var C=zws(z,ewo(e));a:switch(C){case "CONTAINER_TYPE_GRID":var w=3;break a;default:w=1}w=_.nn8(z,e,w);var K=_.gE(w);return{containerLayoutConfig:_.Cy1(e,z),containerStyles:wsk(K,C),itemStyles:function(G,X){G={};switch(C){case "CONTAINER_TYPE_VERTICAL_LIST":X||(G["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":G.width=K.itemWidth+"px";G["margin-right"]=K.gutter/2+"px";G["margin-left"]=K.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":G.width=K.itemWidth+
"px",G.flex="none",X||(G["margin-right"]=K.gutter+"px")}return G}}}};
Xs5=function(e,z,C){if(z)return[ogN];switch(e){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Ls];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return C?[Ls]:[GJ5,Ls];case "TRANSFER_STATE_PAUSED_BY_USER":return[YN1,Ls];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[by1,Ls];default:return[ogN]}};
J75=function(e,z,C,w){return Xs5(e,z,w).map(function(K){var G=K.text,X=K.iconType,J=K.videoAction;K=K.playlistAction;G=G?{content:G}:void 0;X=X&&{sources:[{clientResource:{imageName:X}}]};var q=(0,_.de.unsafeClone)(C);if(q){var T=_.r(q,_.HF),Q=_.r(q,_.Uz);T&&J?T.action=J:Q&&K&&(Q.action=K)}return{title:G,leadingImage:X,rendererContext:q&&{commandContext:{onTap:{innertubeCommand:q}}}}})};
kJ5=function(e){e=_.u3(e.rendererContext);var z;return(z=_.r(e,_.Uz))==null?void 0:z.playlistId};
qN1=function(e){var z;return(z=e.listItems)==null?void 0:z.some(function(C){var w;return _.dE((w=_.r(C,_.hm))==null?void 0:w.rendererContext)})};
_.hS=function(e){var z=_.lh().resolve(_.$B(_.jQ));return z!=null&&z()?e.darkThemeColorPalette:e.lightThemeColorPalette};
_.EA=function(e){return{primaryTextColor:OA(e,0),secondaryTextColor:OA(e,1),optionColor:OA(e,2),backgroundColor:OA(e,3),videoBackgroundColor:OA(e,4)}};
OA=function(e,z){if(e){switch(z){case 0:e=e.primaryTitleColor;break;case 1:e=e.secondaryTitleColor;break;case 2:e=e.surgeColor;break;case 3:e=e.section2Color;break;case 4:e=e.section3Color;break;default:return}if(e)return _.EG(e)}};
$zN=function(e){var z=e.element;var C=e.veType;var w=e.storedVisualElement===void 0?null:e.storedVisualElement;var K=e.elementIndex===void 0?0:e.elementIndex;e=e.clientYouTubeData;var G=_.Pr();G!==xzL&&(TYk.clear(),xzL=G);if(z.visualElement&&TYk.has(z.visualElement))return null;if(w&&TYk.has(w))return z.visualElement=w,null;C=_.a5(_.nm(),{veType:C,elementIndex:K,clientYouTubeData:e});if(!C)return null;z.visualElement=C;TYk.add(C);return C};
_.FZ=function(e,z,C,w){C=C===void 0?null:C;w=w===void 0?u3g:w;var K=K===void 0?null:K;Lm(function(){if(z){C instanceof Function&&(C=C());var G=$zN({element:z,veType:e,storedVisualElement:C,clientYouTubeData:void 0});G&&(_.M("web_graft_ve_unified_vis_mon")?Qk(z,{data:K,observer:_.lh().resolve(m$),hideOption:dA4,showOption:DA8,layer:z.layer}):iug(z,K),w(G))}})};
lmh=function(e){return e?_.FN(e):""};
Qd7=function(e){return(e==null?void 0:e.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
mzg=function(e,z){return _.xz(e.entities,"videoOverviewAsyncDataEntity",z)};
amL=function(e,z){var C;return"linear-gradient(to bottom, "+((C=z==null?void 0:z.map(function(w){var K=e?w.darkThemeColor:w.lightThemeColor;return K?_.FN(K)+" "+((w==null?void 0:w.startLocation)||0)*100+"%":"transparent"}))==null?void 0:C.join(", "))+")"};
ng4=function(e,z,C,w,K){if(!((w==null?0:w.height)&&(w==null?0:w.width)))return{size:0};var G=w.width;w=w.height;if(K)return z==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||z==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&G>w?{size:312/jFs}:z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(C!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||e!==1&&e!==2||z!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&z!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&z!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(z==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||z==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||w===G)switch(e){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(z==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||w>G)switch(e){case 1:case 3:return{size:240*gF8};default:return{size:360*gF8}}switch(e){case 1:case 2:return{size:1/jFs*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.MML=function(e){if(!("matchMedia"in window))return _.es(Error("Rh")),function(){return!1};
var z=window.matchMedia(e);e=_.b(_.II(z.matches,void 0,"waIHpe"));var C=e.next().value,w=e.next().value,K=function(G){w(G.matches)};
z.addEventListener?(z.addEventListener("change",K),_.BC(function(){z.removeEventListener("change",K)})):z.addListener&&(z.addListener(K),_.BC(function(){z.removeListener(K)}));
return C};
r74=function(e){return e==="IMAGE_BANNER_STYLE_INSET"||e==="IMAGE_BANNER_STYLE_UNKNOWN"};
Hyh=function(){if(!("matchMedia"in window))return _.es(Error("Rh")),function(){return 0};
var e=window.matchMedia("(max-width: 527.9px)"),z=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),C=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),w=window.matchMedia("(min-width: 1024px)"),K=_.b(_.II(e.matches,void 0,"TmIKcb")),G=K.next().value,X=K.next().value;K=_.b(_.II(z.matches,void 0,"Z0fTKd"));var J=K.next().value,q=K.next().value;K=_.b(_.II(C.matches,void 0,"w4xy7b"));var T=K.next().value,Q=K.next().value;K=_.b(_.II(w.matches,void 0,"DrbNC"));var m=K.next().value,
a=K.next().value,n=function(h){X(h.matches)},H=function(h){q(h.matches)},I=function(h){Q(h.matches)},L=function(h){a(h.matches)};
_.sg(function(){e.addEventListener?(e.addEventListener("change",n),z.addEventListener("change",H),C.addEventListener("change",I),w.addEventListener("change",L)):e.addListener&&(e.addListener(n),z.addListener(H),C.addListener(I),w.addListener(L));_.BC(function(){e.removeEventListener?(e.removeEventListener("change",n),z.removeEventListener("change",H),C.removeEventListener("change",I),w.removeEventListener("change",L)):e.removeListener&&(e.removeListener(n),z.removeListener(H),C.removeListener(I),
w.removeListener(L))})});
return function(){return G()?1:J()?2:T()?3:m()?4:0}};
Uzg=function(e){var z=0;e=_.b([e.title,e.metadata,e.actions,e.description,e.attribution]);for(var C=e.next();!C.done;C=e.next())C.value&&z++;return z};
vgE=function(e){return e===1||e===2?1:0};
W_m=function(e){e=(new Im5).parse(e);return(new h2).render(e).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(z){var C=z.split(":").map(Number),w=0,K=0;if(C.length===3)C=_.b(C),w=C.next().value,K=C.next().value,C=C.next().value;else if(C.length===2)C=_.b(C),K=C.next().value,C=C.next().value;else if(C.length===1)C=_.b(C).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(w*3600+K*60+C)+'" role="button">'+z+"</span>"})};
Pym=function(e){e=_.b(e.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var z=e.next(),C={};!z.done;C={clickHandler$jscomp$5:void 0},z=e.next()){z=z.value;C.clickHandler$jscomp$5=function(K){K=Number(K.target.getAttribute("data-time"));if(isNaN(K))throw Error("Th");var G;(G=_.n7())==null||G.seekTo(K,!0)};
var w=function(K){return function(G){G.key!=="Enter"&&G.key!=="Space"||(0,K.clickHandler$jscomp$5)(G)}}(C);
z.setAttribute("tabindex","0");z.removeEventListener("click",C.clickHandler$jscomp$5);z.removeEventListener("keydown",w);z.addEventListener("click",C.clickHandler$jscomp$5);z.addEventListener("keydown",w)}};
Rw5=function(){return _.x("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.x(Vz,{percentWidth:100}),_.x(Vz,{animationDelay:200}),_.x(Vz,{animationDelay:400}),_.x(Vz,{animationDelay:600}),_.x(Vz,{animationDelay:800,percentWidth:60}),_.x("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.x(Vz,{percentWidth:100}),_.x(Vz,{animationDelay:200}),_.x(Vz,{animationDelay:400}),_.x(Vz,{animationDelay:600,percentWidth:50}))};
Vz=function(e){return _.x("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(e.percentWidth===void 0?100:e.percentWidth)+"%"},_.x("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(e.animationDelay===void 0?0:e.animationDelay)+"ms"}))};
L_5=function(){var e=_.b(_.II(function(){return""},void 0,"dXJHWc")),z=e.next().value;
return[function(){return z()()},
e.next().value]};
hwE=function(e,z){e=e?mom(e):"";z!==void 0&&isFinite(z)?z===0?z=_.kk("UPDATING",void 0,"Updating..."):(z=Fj1(new Date(z),new Date),z=_.kk("UPDATED_TIME",{relative_time:z},"Updated "+z)):z="";var C="";e&&z&&(C=" \u2022 ");return _.K4(e+C+z)};
F_h=function(e,z,C,w,K,G){z=z===void 0?0:z;var X=Oy1[z],J=X.title,q=X.iconType,T=X.topButtonRenderer,Q=X.sectionClientVE;X=X.videoClientVE;var m;if(z!==1||e.length){C=[];e=_.b(e);for(w=e.next();!w.done;w=e.next()){var a=w.value;if(Xh7(a))C.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:a.videoEntity.videoId,title:ou(a.videoEntity.title),shortBylineText:ou(a.channelEntity.title),thumbnail:a.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:a.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.kk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:X}}}}}});else if(bE8(a)){w=C;var n=w.push;var H=void 0,I=void 0,L=void 0,h=void 0,E=void 0,N=void 0,D=void 0,g=void 0,y=a.mainPlaylistEntity.playlistId,Z=a==null?void 0:(g=a.mainPlaylistEntity)==null?void 0:(D=g.thumbnailStyleData)==null?void 0:(N=D[0])==null?void 0:(E=N.value)==null?void 0:(h=E.collageThumbnail)==null?void 0:h.coverThumbnail;h=D4k(y);if(!_.M("enable_offline_playlist_page")&&
(a==null?0:(L=a.mainPlaylistEntity)==null?0:L.videos)){b:{L=a==null?void 0:(I=a.mainPlaylistEntity)==null?void 0:I.videos;I=_.eB().getState().entities;if(L!=null&&L.length&&I)for(L=_.b(L),E=L.next();!E.done;E=L.next())if(E=_.Xn(E.value).entityId,(E=JSON.parse(E).videoId)&&Z3k(I,E)==="TRANSFER_STATE_COMPLETE"){I=E;break b}I=""}I!==void 0&&(h=Nq(_.eB().getState(),I),h=_.wk(I,y,void 0,void 0,h))}I=NAN(_.kk("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),D4k(y));a=y&&Z&&I?{playlistId:y,navigationEndpoint:h,
viewPlaylistText:I,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Z}},title:ou(a.mainPlaylistEntity.title),shortBylineText:ou(a==null?void 0:(H=a.channelEntity)==null?void 0:H.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Egg,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.kk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:X}}}:
void 0;n.call(w,{gridPlaylistRenderer:a})}}X={gridRenderer:{items:C}};z===1&&(m=hwE(K,G))}else if(w){var YN=_.K4((n=C==null?void 0:C.localizedPromptMessage)!=null?n:"");X={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K4(_.kk("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.ISN}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.K4(_.kk("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};m=hwE(K,G)}else YN=_.K4(_.kk("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
X={};return{contents:[{shelfRenderer:{title:J,titleAnnotation:m,icon:{iconType:q},subtitle:YN,content:X,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:T}]}}}}],loggingDirectives:{clientVeSpec:{uiType:Q}}}};
VMg=function(e,z,C,w,K,G,X,J,q,T,Q){C=C===void 0?{}:C;w=w===void 0?{}:w;K=K===void 0?!1:K;G=G===void 0?!1:G;X=X===void 0?!1:X;J=J===void 0?!1:J;q=q===void 0?!1:q;T=T===void 0?0:T;Q=Q===void 0?-Infinity:Q;if(!(z.length||e.length||K||J))return G?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:onL(C)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.K4(_.kk("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 m=[];e.length&&m.push(F_h(e,0));J?m.push({contents:[{statementBannerRenderer:Jv1(q,w)}]}):K?m.push(F_h(z,1,C,X,T,Q)):G&&m.push({contents:[{statementBannerRenderer:YL1(C)}]});(K&&z.length||e.length)&&m.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.K4(_.kk("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 m.map(function(a){return{itemSectionRenderer:a}})};
S4=function(e,z){if(typeof e!=="object")return null;e=_.b(Object.entries(e));for(var C=e.next();!C.done;C=e.next()){var w=_.b(C.value);C=w.next().value;w=w.next().value;if(C===z)return C;if(w=S4(w,z))return C+"."+w}return null};
un=function(e){var z=e.content;return(e=e.styleRuns)&&z?{runs:e.map(function(C){var w={text:z.slice(C.startIndex,C.startIndex+C.length)};C.fontColor&&(w.textColor=C.fontColor);return w})}:{simpleText:z}};
ulm=function(e,z,C,w){var K=fmg;w&&(e.quantity=w);if(!e.quantity||!e.maxQuantity)return{};w=e.minusButton;var G=e.plusButton,X,J,q,T;return{value:e.quantity,maxValue:e.maxQuantity,onChangeCallback:function(Q){K(e,Q)},
minusLabel:(X=_.r(w,SNg))==null?void 0:X.label,minimumReachedLabel:(J=_.r(w,SNg))==null?void 0:J.limitReachedLabel,plusLabel:(q=_.r(G,SNg))==null?void 0:q.label,maximumReachedLabel:(T=_.r(G,SNg))==null?void 0:T.limitReachedLabel,disabled:z,onRemoveCommand:C}};
fmg=function(e,z){var C=e.quantityIncrementerEntityKey;if(C){var w={};w.quantity=z;_.ZL(_.d$("quantityIncrementerEntity",C,w));e.onChangeCommand&&_.NF(e.onChangeCommand)}};
dzk=function(e){if(e)return e===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(e).overflowY)?e:dzk(e.parentElement)};
NYN=function(e,z){(e=Dz8(e))&&((_.M("enable_mini_app_command_handler_mweb_fix")?0:z)?iy5.push({command:e,sourceData:{},commandContext:void 0}):_.lh().resolve(_.ms).resolveCommand(e))};
Dz8=function(e){return _.r(e,_.fm)};
sdk=function(){var e=window.performance.timeOrigin+window.performance.now(),z=(new _.DW).setSeconds(e/1E9);return _.eg(z,2,_.XY(e%1E9),0)};
tM4=function(e,z){var C;e=(C=_.r(_.r(e,_.fm),BY5))==null?void 0:C.methodName;var w,K;(C=window.youtubewebview||((w=window.webkit)==null?void 0:(K=w.messageHandlers)==null?void 0:K.youtubewebview))&&e&&(w=new Nl,e=_.Et(w,1,e),e=_.FY(e.JSC$12717_serializeBinary()),z=_.FY(z),C.postMessage(e+","+z))};
sA=function(e,z){var C=_.r(_.r(e,_.fm),BY5);C&&(z&&(C.serializedAdditionalMetadata=_.FY(z)),NYN(e,!0))};
gg8=function(e,z,C){setTimeout(function(){_.Cq(e,z)},C)};
jdg=function(e){switch(e){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"}};
y7k=function(){return!!_.j5("ID_TOKEN")};
Zy7=function(e){return e instanceof Error&&e.cause instanceof c7L&&e.cause.rpcErrorCode!==void 0?!A7g.includes(e.cause.rpcErrorCode):!0};
eah=function(){return _.XF(psL,{authuser:""+(_.j5("SESSION_INDEX")||0)})};
B0=function(e,z,C,w){C=C===void 0?"MINI_APP_SDK_API_UNSPECIFIED":C;w=w===void 0?"":w;var K=new _.uh;C={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:w,sdkApi:C};e instanceof Error&&(K.message=e.message,K.name=e.name,e.cause instanceof c7L&&e.cause.rpcErrorCode!==void 0&&(C.rpcErrorCode=e.cause.rpcErrorCode));var G;(G=z.onError)==null||G.call(z,{loggingError:K,metadata:C})};
Cf8=function(e,z,C,w){switch(e){case "MINI_APP_SOURCE_GAMESNACKS":return new tS(z,C,w);default:return new zak(z,C,w)}};
wNN=function(e){switch(e){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"}};
KRm=function(e){switch(e){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"}};
ow1=function(e){switch(e){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"}};
Gwh=function(){return Math.floor(Math.random()*4)+1};
YMg=function(e,z,C,w){e=_.b(Object.entries(e));for(var K=e.next(),G={};!K.done;G={message$jscomp$995:void 0},K=e.next()){var X=_.b(K.value);K=X.next().value;X=X.next().value;G.message$jscomp$995=X;z.push(setTimeout(function(J){return function(){w(!1);C(J.message$jscomp$995.text)}}(G),G.message$jscomp$995.delayMs));
Number(K)>0&&z.push(setTimeout(function(){w(!0)},G.message$jscomp$995.delayMs-400))}};
bwm=function(e,z){var C=C===void 0?u3g:C;_.M("mweb_fix_monitor_visibility_after_render")?e&&Lm(function(){iug(e,z,C)}):Lm(function(){iug(e,z,C)})};
XNk=function(e,z){var C=document.createElement("ytd-engagement-panel-section-list-renderer");C.data=e;var w=z!=null?z:{};e=w.isPersistentPanel;z=w.hideDelayMs;w=w.overscrollContain;e=Object.assign({},e&&{isPersistentPanel:e},z&&{hideDelayMs:z},w&&{overscrollContain:w});Object.assign(C,e);return C};
xko=function(e){JDh||(JDh=kwE(new _.tO(1,void 0,void 0,qMs),0));var z=JDh.format(Math.floor(e));z=sk==="be"||sk==="bg"||sk==="es"||sk==="et"||sk==="hu"||sk==="ka"||sk==="lv"||sk==="pl"||sk==="pt-PT"||sk==="sq"?z.replace(new RegExp("^(\\d)"+qMs.GROUP_SEP.replace(".","\\.")+"(\\d+("+qMs.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):z;return e>=1E3&&e<=9999&&z[1]==="."&&(sk==="sl"||sk==="it")?z.replace(".",""):z};
_.lno=function(e,z,C){return window.spf&&!_.M("web_disable_spfjs_client")?TWN(e,z,C):$kg(e,z)};
TWN=function(e,z,C){var w=null,K=(new _.RC(function(G,X){var J={};if(z){J.method=z.method;var q=z.postParams||{};vkE(e,z)&&(q[_.j5("XSRF_FIELD_NAME")]=_.j5("XSRF_TOKEN"));J.postData=_.L0(q);z.type&&(J.type=z.type);q=z.headers}J.headers=aEE(e,q);_.M("debug_forward_web_query_parameters")&&(e=_.HKk(e,window.location.search));J.experimental_headers=J.headers;J.onError=function(T){T.err&&T.xhr&&(T.err.params={url:T.xhr.responseURL,response:T.xhr.responseText.substr(0,64)});X(T.err)};
J.onPartDone=function(T){C&&C.call(null,T.part)};
J.onDone=function(T){var Q=Q9g(T.response,"xsrf_token");qv(window.location.href,e)&&Q&&_.g1("XSRF_TOKEN",Q);if(Q=Q9g(T.response,"service_worker_killswitch"))_.g1("SERVICE_WORKER_KILLSWITCH",Q),nUE();G(T.response)};
w=spf.request(e,J)})).then(mk4);
K.thenCatch(function(G){var X=G instanceof _.g$,J=G&&G.hasOwnProperty("params")&&G.params.response?G.params.response:"";G instanceof Error&&(J?X?Yz5(G):J===')]}\'\n{"reload":"now"}'?Yz5(G):(an5(G,e,J),nwL(G,J)?_.AX(G):_.yG(G)):Yz5(G));w&&w.abort()});
return K};
mk4=function(e){if(e.type==="multipart"){var z=e.timing;e=e.parts.reduce(function(C,w){Object.assign(C,w);return C},{});
e.timing=e.timing||{};Object.assign(e.timing,z);e.type="reduced"}return e};
$kg=function(e,z){z=z===void 0?{}:z;var C=null,w=new _.RC(function(K,G){z.onFinish=function(X){if(X.readyState===XMLHttpRequest.DONE)if(X.status===200){if(X.responseType!=="json"){var J=X.response;J.substring(0,5)===")]}'\n"&&(J=J.substring(5));try{var q=JSON.parse(J)}catch(T){q=T}}else q=X.response;q instanceof Error?G(q):(J=Q9g(q,"xsrf_token"),qv(window.location.href,e)&&J&&_.g1("XSRF_TOKEN",J),X=X.responseURL,window.performance&&window.performance.getEntriesByName?(J=window.performance.getEntriesByName(X).pop())?
X={responseStart:(0,_.as)()-(J.responseEnd-J.responseStart)}:(Math.random()<.01&&(J=Error("ei"),J.params=X,_.AX(J)),X={responseStart:-1}):X={responseStart:0},q.timing=q.timing||{},Object.assign(q.timing,X),K(q))}else G(Error("di`"+X.status))};
(C=_.RX(e,z))||G(Error("di`"+C.status))});
w.thenCatch(function(K){K instanceof Error&&(an5(K,e),nwL(K)&&(K.level="WARNING"))});
_.M("cancel_pending_navs")&&w.thenCatch(function(){C.abort()});
return w};
Q9g=function(e,z){var C=e[z],w=e.parts;e.type==="multipart"&&w&&(C=(e=w.find(function(K){return z in K}))&&e[z]);
return C};
an5=function(e,z,C){var w=e.message||"";z={original:w,url:z};if(C)if(w=w.match(/position:?\s*(\d+)/)){w=w&&Number(w[1])?Number(w[1]):0;var K=Math.max(w-25,0);z.position=w;z.response=C.substring(K,w+25)}else z.response=C.substring(0,50);_.Zz(e,z);try{e.message="JSON parse error"}catch(G){}};
nwL=function(e,z){e=e.message||"";e=!!(e.indexOf("<")>=0||e.indexOf("end of ")>=0||e.indexOf("Unterminated string")>=0||e.indexOf("Unexpected EOF"));if(!e&&z)for(var C=z.length,w=!1,K=0;K<C;K++)if(w&&z[K]==="\\")K++;else if(z[K]==='"')w=!w;else if(z[K]==="<"&&!w){e=!0;break}return e};
Mmm=function(){return document.documentElement.hasAttribute("dark")};
_.rD1=function(e,z){if(e!=="GFEEDBACK"&&e!=="GUIDED_HELP")_.AR(Error("fi`"+e));else{var C=_.lh().resolve(_.$B(_.wE));if(C&&(C=C.getCurrentPage())&&C.getServiceTrackingParams&&(C=C.getServiceTrackingParams()))for(var w=0,K;K=C[w++];)if(K.service===e){if(e=K.params)for(C=0;w=e[C++];)z[w.key]=w.value;break}}};
_.Hwg=function(e){var z=_.ox();z&&(z=z.getPlayer())&&(z.pauseVideo(),e.playback_id=z.getVideoData().cpn,e.eid=z.getVideoData().eventId,Object.assign(e,z.getFeedbackProductData()))};
UkL=function(){var e={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.j5("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(e.enableAnonymousFeedback=!0);_.j5("SESSION_INDEX")&&(e.authuser=String(_.j5("SESSION_INDEX")));_.M("enable_pageid_for_feedback")&&_.j5("DELEGATED_SESSION_ID")&&(e.pageId=String(_.j5("DELEGATED_SESSION_ID")));return e};
_.j4=function(e){_.M("enable_ypc_spinners")&&_.eA(e,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},e])};
_.yz=function(e){_.M("enable_ypc_spinners")&&_.eA(e,"yt-close-popup-action",["yt-loading-renderer"])};
vws=function(e){return new Promise(function(z,C){_.uA({verifyCommand:{recaptchaToken:e.recaptchaResponse}},{commandController:{onSuccess:function(w,K){K||C("ChallengeService did not return a response.");var G;z({challengeCompleted:(G=K.verified)!=null?G:!1})},
onServerError:function(w,K){C(K)}}})})};
Inm=function(e,z,C,w){z({recaptchaResponse:w}).then(function(K){K.challengeCompleted?_.Vj()?(C(3),_.lh().resolve(_.ms).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:e}})):C(2):C(4)},function(){C(4)})};
PfN=function(e,z,C){_.Vq(_.nJ(WRg,_.j5("HL")),function(){var w;(w=window.grecaptcha)==null||w.ready(function(){var K=window.grecaptcha;K?(C(K.render(e,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Inm.bind(null,e,vws,z)})),z(1)):z(4)})})};
Ra7=function(e,z){return function(){switch(z()){case 0:return e().captchaLoadingMessage;case 1:return e().challengeReason;case 3:return e().captchaSuccessfulMessage;case 2:return e().captchaCookieSetFailureMessage;case 4:return e().captchaFailedMessage;default:return e().challengeReason}}()};
_.c0=function(){if(!LRN){var e=document.querySelector("#player.skeleton");e&&(_.hA(e),LRN=!0)}};
_.OwL=function(){return haE=I5N()};
Vmo=function(){return _.k(function(e){return Ewg!==void 0?e.return():e.yield(FR5(),0)})};
FR5=function(){return _.k(function(e){if(e.nextAddress==1)return e.yield(PTg(),2);haE=e.yieldResult;Ewg=_.c5.addLowPriorityJob(FR5,5E3);_.E_(e)})};
iw7=function(e){var z=z===void 0?fn1:z;var C,w,K=(C=e.responseContext)==null?void 0:(w=C.mainAppWebResponseContext)==null?void 0:w.trackingParam;if(!K){z.increment("MISSING");var G,X,J,q,T,Q;_.AX(new _.uh("282054944_a",{knx:!!((G=e.responseContext)==null?0:(X=G.mainAppWebResponseContext)==null?0:X.loggedOut),eWe:((J=e.responseContext)==null?void 0:J.mainAppWebResponseContext)===void 0,jyu:e.responseContext===void 0,cp:(q=e.playabilityStatus)==null?void 0:q.contextParams,awO:(((T=e.streamingData)==
null?void 0:T.formats)||[]).length>0,tAo:(((Q=e.streamingData)==null?void 0:Q.adaptiveFormats)||[]).length>0,os:!!e.offlineState,cotn:e.cotn}));return 2}C="";try{C=SM7(K)}catch(n){return z.increment("C_ERROR"),_.yG(n),2}try{var m=_.u8g(C);var a=dko(m)}catch(n){return z.increment("P_ERROR"),_.yG(n),2}a=_.x2(a,Dk1,1,_.T5());K=[];a=_.b(a);for(m=a.next();!m.done;m=a.next())w=m.value,m=w.getPath(),C=(0,_.de.getValueByKeys)(e,m.split(".")),C=String(C===void 0||C===null?"":C),w=w.getValue()||"",G=/[+\-\/_]/g,
C.replace(G,"")!==w.replace(G,"")&&(z.increment("MISMATCH"),_.M("ab_mis_log_err")&&(C=new _.uh("282054944_p",{eL0:m,g:String(C),e:String(w)}),_.yG(C)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(m)||(m.match(/enforcementMessageViewModel/i)?K.push(3):K.push(2)));if(K.length>0)return Math.max.apply(Math,_.s_(K));z.increment("SUCCESS");return 1};
BW1=function(e){var z=new AS;if(e.interpreterJavascript){var C=_.ed7(e.interpreterJavascript);C=bC(C).toString();var w=new NW4;_.Et(w,6,C);_.PL(z,1,w,Fs)}else e.interpreterUrl&&(C=_.Af(e.interpreterUrl),C=_.F2(C).toString(),w=new _.s9m,_.Et(w,4,C),_.PL(z,2,w,Fs));e.interpreterHash&&_.ZW(z,3,e.interpreterHash,Fs);e.program&&_.ZW(z,4,e.program,Fs);e.globalName&&_.ZW(z,5,e.globalName,Fs);e.clientExperimentsStateBlob&&_.ZW(z,7,e.clientExperimentsStateBlob,Fs);return z};
ps=function(e){var z={};e=_.b(e.split("&"));for(var C=e.next();!C.done;C=e.next())C=C.value.split("="),C.length===2&&(z[C[0]]=C[1]);return z};
tms=function(e){return Number(e.t)||7200};
gwh=function(){var e=e===void 0?window:e;var z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(ARs(),2);z=e;C=z.bgevmc;if(!C)throw Error("ji");return w.return({pause:function(){C.p()},
resume:function(){C.r()},
checkForRefresh:function(){return C.cr()}})})};
cRg=function(){if(_.M("bg_st_hr"))return"havuokmhhs-0";var e,z=((e=globalThis.performance)==null?void 0:e.timeOrigin)||0;return"havuokmhhs-"+Math.floor(z)};
eo=function(e){window.bgens=e};
j9m=function(){return new Promise(function(e){var z=window;z.ntpevasrs!==void 0?e(new zO(z.ntpevasrs)):(z.ntpqfbel===void 0&&(z.ntpqfbel=[]),z.ntpqfbel.push(function(C){e(new zO(C))}))})};
yDo=function(e){if(_.M("attmusi")&&_.M("attmusi_ue")){e={s:e.e70.bind(e),ir:e.elZ.bind(e)};var z=window;z.attmp=e;if(z.attmq!==void 0)for(var C=_.b(z.attmq),w=C.next();!w.done;w=C.next())w=w.value,w(e);z.attmq=void 0}else z=e.e70.bind(e),_.lM("yt.aba.att",z),e=e.elZ.bind(e),_.lM("yt.aba.att2",e)};
ADm=function(e){switch(_.Pi(e.input)){case _.zU(cDE):var z={};return z.encryptedVideoId=e.innerTubeRequest.externalVideoId,z}return{}};
e2g=function(e){switch(_.Pi(e.input)){case _.zU(cDE):if(_.M("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.zU(Zwg):if(_.M("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.zU(CM):if(_.M("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&e.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.zU(pNo):var z,C;if(_.M("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((C=_.r((z=e.config)==null?void 0:z.command,_.e3))==null?0:C.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.CUN=function(e){var z;if(e.playlistVideoRenderer&&((z=e.playlistVideoRenderer)==null?0:z.engagementBar))return z2s(e.playlistVideoRenderer.engagementBar);if(_.r(e,wh)){var C;if(e=(C=_.r(e,wh))==null?void 0:C.engagementBar)return z2s(e)}return""};
z2s=function(e){if(!e)return"";e=_.r(e,_.wx1);if(e==null||!e.actions)return"";e=_.b(e.actions);for(e=e.next();!e.done;e=e.next()){e=_.r(e.value,_.Ktg);var z=void 0;if((z=e)==null||!z.itemId)break;return e.itemId}return""};
_.och=function(e){var z;if(e.playlistVideoRenderer&&((z=e.playlistVideoRenderer)==null?0:z.videoId))return e.playlistVideoRenderer.videoId;if(_.r(e,wh)){var C,w;if(e=(C=_.r(e,wh))==null?void 0:(w=C.playlistItemData)==null?void 0:w.videoId)return e}return""};
_.Gbk=function(e){var z;if(e.playlistVideoRenderer&&((z=e.playlistVideoRenderer)==null?0:z.voteCount))return e.playlistVideoRenderer.voteCount;if(_.r(e,wh)){var C,w;if(e=(C=_.r(e,wh))==null?void 0:(w=C.playlistItemData)==null?void 0:w.voteCount)return e}return 0};
_.KM=function(e,z){return _.xz(e.entities,"flowStateEntity",z)};
bL7=function(e,z,C,w){var K=void 0;e=_.b(e[z.iconName]||[]);for(var G=e.next();!G.done;G=e.next()){G=G.value;var X=z.iconSize;var J=z.iconStyle;X=!X||X===G[2];var q=YPs[G[0]];w&&w!==G[1]||!X||J&&J!==q?J=!1:K?(J=YPs[G[0]],J=!!z.iconStyle||J==="youtube_outline",X=K.version<=G[1],J=(!!z.iconSize||G[2]===24)&&J&&X):J=!0;J&&(K={name:z.iconName,style:YPs[G[0]],size:G[2],version:G[1],allowMirroring:!!G[3],url:C(z.iconName,G)})}return K};
Xxo=function(e,z,C,w){return e+(""+YPs[C[0]]+((w===void 0?0:w)?"_experimental":"")+"/"+z+"/v"+C[1]+"/")+(C[2]+"px.svg")};
Jo8=function(e){return _.j5("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.j5("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":e};
kbo=function(e,z){return Xxo("https://fonts.gstatic.com/s/i/",e,z)};
qP5=function(e,z){return Xxo("https://fonts.gstatic.com/s/i/",e,z,!0)};
xu5=function(e,z){return Xxo("https://www.gstatic.com/youtube/img/icons/web/",e,z)};
$u4=function(e){var z=e.enabled;var C=e.itemPlaybackModel;var w=e.thumbnailElRef;var K=e.containerElRef;var G=e.options;var X;_.sH(function(){var J=K==null?void 0:K.value;var q,T=(q=w())==null?void 0:q.value;q=C();var Q=G();if(z&&q&&J&&T&&(Q==null?0:Q.thumbnail)){var m={data:q,hostElement:J},a,n,H=[].concat(_.s_((a=Q.thumbnailOverlays)!=null?a:[]),_.s_((n=q.overlays)!=null?n:[]));n=q.itemPlaybackOptions;a=(n==null?void 0:n.enableRoundedPlayer)||Q.enableRounding;n=n==null?void 0:n.disableTimeStatusOverlay;
var I,L;J={mediaRenderer:m,lockupElement:J,thumbnailElement:T,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.SQ((I=q.inlinePlayerData)==null?void 0:I.onVisible),navigationEndpoint:_.SQ((L=q.inlinePlayerData)==null?void 0:L.onSelect),thumbnail:Q.thumbnail,thumbnailOverlays:H,accessibilityText:Q.accessibilityText||""},thumbnailSize:Q.thumbnailSize,enableRounding:a,mouseleaveCallback:Q.mouseleaveCallback,hideTimeDisplay:n}}}else J=void 0;if(I=J){var h;(h=X)==null||on(h);X=sz(I);var E,N;
((E=C())==null?0:(N=E.inlinePlayerData)==null?0:N.forceImpAutoplay)&&Tlk(X)}},"BLiQOd");
_.BC(function(){var J;(J=X)==null||on(J)})};
la7=function(e){e=atob(e);for(var z=[],C=0;C<e.length;C++)z.push(e.charCodeAt(C));return new Blob([new Uint8Array(z)],{type:"image/png"})};
mum=function(e,z,C,w){w=w===void 0?"INSERTION_POSITION_UNSPECIFIED":w;return e({targetId:z},function(K){var G,X=(G=K.contents)!=null?G:[];G=C!=null?C:[];var J=Qcg(X);switch(w){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},K,{contents:[].concat(_.s_(X.slice(0,J)),_.s_(G),_.s_(X.slice(J+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},K,{contents:[].concat(_.s_(G),_.s_(X))});case "INSERTION_POSITION_LAST":return Object.assign({},K,{contents:[].concat(_.s_(X),_.s_(G))});
default:return K}})};
nc1=function(e,z,C,w,K){K=K===void 0?"RELATIVE_INSERTION_POSITION_AFTER":K;return e({targetId:z},function(G){var X,J=(X=G.contents)!=null?X:[];X=aag(J,C);if(X<0)return G;X=K==="RELATIVE_INSERTION_POSITION_BEFORE"?X:X+1;return Object.assign({},G,{contents:[].concat(_.s_(J.slice(0,X)),_.s_(w),_.s_(J.slice(X)))})})};
Qcg=function(e){var z=e.findIndex(function(C){return _.r(C,_.GO)});
return z>=0?z:e.length};
aag=function(e,z){return e.findIndex(function(C){a:{C=_.b(Object.values(C));for(var w=C.next();!w.done;w=C.next())if((w=w.value)&&w.targetId){C=w.targetId;break a}C=""}return C===z})};
roL=function(e,z,C){return e({targetId:z},function(w){var K,G=(K=w.contents)!=null?K:[];return Object.assign({},w,{contents:MH1(G,C)})})};
MH1=function(e,z){return e.filter(function(C){var w=z.includes;a:{C=_.b(Object.values(C));for(var K=C.next();!K.done;K=C.next())if((K=K.value)&&K.targetId){C=K.targetId;break a}C=""}return!w.call(z,C||"")})};
_.HLE=function(e,z){return{engagementPanelSectionListRenderer:{panelIdentifier:e,identifier:z,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Uu4=function(e,z){e=e.getAvailableAudioTracks();if(e.length)return e==null?void 0:e.find(function(C){var w;return(C==null?void 0:(w=C.getLanguageInfo())==null?void 0:w.getId())===z})};
_.IaN=function(e){var z,C=(z=e.getOption("captions","tracklist",{includeAsr:!0}))!=null?z:[];return C=vc7(C,e)};
WtL=function(e){return e.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
vc7=function(e,z){z=WtL(z);if(z==null||!z.length)return e;var C=z.filter(function(X){return X});
z=e.filter(function(X){return X.languageCode.startsWith("en")});
C=_.b(C);for(var w=C.next();!w.done;w=C.next())if(w=w.value,z.length){var K=z[0],G=Object.assign({},K);K.languageCode!==w.languageCode&&(G.displayName=K.languageName+" >> "+w.languageName,G.translationLanguage=w,e.push(G))}return e};
PUk=function(e,z,C){e=_.IaN(e);if(e.length)return C?e.find(function(w){if(typeof(w==null?void 0:w.translationLanguage)==="object"){var K;return((K=w.translationLanguage)==null?void 0:K.languageCode)===z}return!1}):e==null?void 0:e.find(function(w){return w.languageCode===z})};
R2E=function(e){return e.getOption("captions","tracklist",{includeAsr:!0})};
LtE=function(e){var z=e.getAvailableAudioTracks();if(z!=null&&z.length){var C=e.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.s_(z.map(function(w){return{listItemViewModel:{title:{content:w.getLanguageInfo().getName()},isSelected:w.getLanguageInfo().getId()===(C==null?void 0:C.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:w.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
h27=function(e){return e.getOption("captions","tracklist",{includeAsr:!0})};
OLo=function(e){var z=h27(e);if(z==null?0:z.length)return z;e.loadModule("captions");return h27(e)};
Ecs=function(e){var z=e.getOption("captions","track");if(z)return z;e.loadModule("captions");return e.getOption("captions","track")};
VHg=function(e){var z=OLo(e);if(z!=null&&z.length){var C=Ecs(e),w;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.kk("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(C==null?0:C.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.s_(z.map(function(K){return{listItemViewModel:{title:{content:K.displayName},
isSelected:K.displayName===(C==null?void 0:C.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:K.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.kk("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!C.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!C.translationLanguage&&{selectionText:{content:(C==null?void 0:(w=C.translationLanguage)==null?void 0:w.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ft4(e)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Ft4=function(e){var z=WtL(e);if(z==null||!z.length)throw Error("Fi");var C=Ecs(e);e=z.filter(function(w){return!w.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.s_(e.map(function(w){var K;return{listItemViewModel:{title:{content:w.languageName},isSelected:w.languageName===(C==null?void 0:(K=C.translationLanguage)==null?void 0:K.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:w.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
dug=function(e){return new Promise(function(z,C){if(e===void 0)_.yG(Error("Ji"),"ERROR"),C(Error("Ji"));else{C=new _.fak;var w=_.SPs();C=C.init();var K=_.uEE(_.j5("YPC_MB_URL"),!0);Promise.all([C,K]).then(function(){var G=_.Y3.payments.business.integration.ClientTokenFactory.createClientToken(e,w);z(G)})}})};
Nl4=function(e,z,C,w,K,G,X){var J=_.cj();C=C.replace(/-/g,"+").replace(/_/g,"/");var q=_.Tj().get("hl"),T=_.bH(_.y$),Q=z==null?void 0:z.element;Q&&_.j4(Q);Du4(z,!0);_.iLg(T,C,J.resolve,function(){Q&&_.yz(Q)},function(m){Q&&_.yz(Q);
J.reject(m)},q,w?function(m){w&&_.yC(e,w,{backend_analytics:m})}:void 0,J.resolve,K,G,X);
return J.promise};
Du4=function(e,z){!(e=e==null?void 0:e.element)||e.tagName!=="YT-BUTTON-RENDERER"&&e.tagName!=="YTD-BUTTON-RENDERER"||(e.disabled=z)};
sc1=function(){var e=_.kk("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.K4(e),actionButton:{buttonRenderer:CjN()}}},popupType:"TOAST"}};
Bl8=function(){var e=_.kk("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.K4(e),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
tH4=function(e){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:e}]}}};
X9=function(e,z,C,w){var K;return _.k(function(G){if(G.nextAddress==1)return _.Iv(G,2),G.yield(e,4);if(G.nextAddress!=2)return(K=_.vH(z.getState().entities).length>0)?G.return({title:_.K4(_.kk("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.K4(_.kk("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:z1o()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
G.return(wb7(C,w));_.O_(G);return G.return(wb7(C,w))})};
gco=function(e,z){return z?z==="PPSV"||zOE(e,z):!1};
jck=function(e){e.responseContext||(e.responseContext={});e.responseContext.maxAgeSeconds=0;return e};
TO=function(e){var z;return _.k(function(C){return C.nextAddress==1?C.yield(yoo(e,"service:topbar:fallback"),2):(z=C.yieldResult)&&_.J8(z)?C.return(jck(_.J8(z))):C.return()})};
co1=function(e){var z;return _.k(function(C){return C.nextAddress==1?C.yield(yoo(e,"service:downloads_settings:fallback"),2):(z=C.yieldResult)&&_.J8(z)?C.return(z):C.return()})};
yoo=function(e,z){var C;return _.k(function(w){if(w.nextAddress==1)return e?w.yield(e.get(z),2):w.return();C=w.yieldResult;return!C||!_.J8(C)||!isNaN(Number(C.data.expireTimestampMs))&&C.isExpired()?w.return():w.return(C)})};
Aoo=function(e){var z=_.lh().resolve($3).getState().entities;return e.playlistId?gco(z,e.playlistId):!1};
px5=function(e){var z=_.n0("web_pbj_log_warning_rate",0);z=z>0&&Math.random()<z;if(!_.r(e,_.rP))return z&&_.AX(Error("cj")),!1;var C;return _.M("shorts_controller_retrieve_seedless_sequence_v2")&&((C=_.r(e,_.rP))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:ZLL(e)?!0:(z&&_.AX(Error("dj")),!1)};
ZLL=function(e){var z=(_.r(e,_.N$)||_.r(e,_.rP)).videoId;if(!z||!e7g.test(z))return!1;var C;return(e=(C=_.r(e.commandMetadata,_.XV))==null?void 0:C.url)&&(e.includes(z)||e.startsWith("/clip"))?!0:!1};
_.Ceh=function(){var e=_.Tj();return e.getFlag(192)?e.getFlag(190):!(_.o3("web_watch_cinematics_disabled_by_default")||_.o3("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&z7h())};
_.lH=function(e,z,C){var w={};w.currentUrl=z;w.vis=e.vis!==void 0?e.vis:0;w.splay=!1;z=_.Tj();w.autoCaptionsDefaultOn=z.getFlag(66);z.getFlag(141)?z.getFlag(140)?w.autonavState="STATE_OFF":w.autonavState="STATE_ON":w.autonavState="STATE_NONE";w.html5Preference="HTML5_PREF_WANTS";isNaN(_.j5("STS"))||(w.signatureTimestamp=_.j5("STS"));e.autonav&&(w.autoplay=!0,w.autonav=!0);e.mutedAutoplay&&(w.autoplay=!0,w.mutedAutoplay=!0);e.inlinePlayback&&(w.autoplay=!0,w.autonav=!1,w.isInlineUnmutedPlayback=!!e.inlineUnmuted);
w.referer=C;w.lactMilliseconds=e.lact!==void 0?e.lact.toString():"-1";_.M("enable_unknown_lact_fix_on_html5")&&w.lactMilliseconds==="-1"&&_.AX(new _.uh("Unknown LACT is set in playbackContext.",{"lact in tempData":e.lact||"undefined",autonav:e.autonav||"undefined"}));e={};z.getFlag(194)&&(e.hasShownAmbientMode=!0);z.getFlag(192)&&(e.hasToggledOffAmbientMode=!0);_.Ceh()&&(e.watchAmbientModeEnabled=!0);w.watchAmbientModeContext=e;return w};
w4L=function(e){var z={},C=e.pbis||0;C&&(z.playbackBeginsInSeconds=C);e.prefetch_reason&&e.prefetch_reason==="hc_pbis"&&(z.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return z};
K4k=function(e,z){var C;if(z==null?0:(C=z.requestTemplate)==null?0:C.panelId)e.panelId=z.requestTemplate.panelId;var w;if(z==null?0:(w=z.requestTemplate)==null?0:w.params)e.params=z.requestTemplate.params};
Gz4=function(){if(ox4)return ox4();var e=!_.M("idb_response_store_auth_killswitch"),z={};ox4=m0("yt-it-response-store",{objectStores:(z.ResponseStore={addedAtVersion:1},z),shared:!e,upgrade:function(C,w){w(1)&&(C=wm(C,"ResponseStore",{keyPath:["key","clientName"]}),KC(C,"byExpiration","expireTimestampMs"),KC(C,"byInterface","clientName"))},
version:1});return ox4()};
YFh=function(e){return _.X0(Gz4(),e)};
X41=function(e,z){var C;return _.k(function(w){return w.nextAddress==1?w.yield(_.QZ(),2):(C=w.yieldResult)?w.return(new bF1(e,z,C)):w.return()})};
JZL=function(e){var z=Object.keys(e)[0];if(z)return e.screenExit&&(z=z+";"+e.screenExit.screen),z};
kzk=function(e){var z=new Map;e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=C.value,C!=null&&(z.has(C.taskType)||z.set(C.taskType,[]),z.get(C.taskType).push(C));return z};
qF5=function(e){e=[].concat(_.s_(e)).sort(function(C,w){return C-w});
var z=Math.floor(e.length/2);return e.length%2?e[z]:(e[z-1]+e[z])/2};
$PL=function(e,z){e=e===void 0?gf1:e;z=z===void 0?{}:z;_.lM("yt.logging.errors.log",_.yG);BGs();xPN(ZUL(),z);window.onerror=e;Tck=tjh;window.addEventListener("unhandledrejection",function(C){if(C.reason instanceof Error){var w=C.reason;_.Zz(w,{source:"unhandledrejection"});w.name==="AbortError"&&(w.level="WARNING")}tjh(C.reason);C.preventDefault()})};
_.l41=function(e){var z,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z,YN,Jk,v1,lg,M5,fo,ug,sE,w6,qY,y1,Qa,Ha,OU,ab,Pa,$N;return _.k(function(N5){if(N5.nextAddress==1)return N5.yield(_.au(e,{mode:"readonly",enableRetries:!0},function($L){return Mq($L,"playbackData").then(function(Ba){var r6=Ba.map(function(lo){return lo.transfer}).filter(function(lo){return!!lo}),eE=Ba.map(function(lo){return lo.offlineVideoPolicy}).filter(function(lo){return!!lo}),q1=Ba.filter(function(lo){return!!lo.key}).map(function(lo){return _.qq(_.Xn(lo.key).entityId,
"downloadStatusEntity")});
r6=Mq($L,"transfer",r6);eE=Mq($L,"offlineVideoPolicy",eE);q1=Mq($L,"downloadStatusEntity",q1);var g6=r6.then(function(lo){lo=lo.reduce(function(mc,ob){(ob==null?0:ob.offlineVideoStreams)&&mc.push.apply(mc,_.s_(ob.offlineVideoStreams));return mc},[]).filter(function(mc){return!!mc});
return Mq($L,"offlineVideoStreams",lo)});
return zT.all([r6,eE,g6,q1]).then(function(lo){var mc=_.b(lo);lo=mc.next().value;var ob=mc.next().value;var Ak=mc.next().value;mc=mc.next().value;return[Ba,lo,ob,Ak,mc]})})}),2);
if(N5.nextAddress!=3)return z=N5.yieldResult,N5.yield(_.au(e,{mode:"readonly",enableRetries:!0},function($L){return Mq($L,"mainDownloadsListEntity").then(function(Ba){var r6,eE;return(eE=(r6=Ba[0])==null?void 0:r6.downloads)!=null?eE:[]})}),3);
C=N5.yieldResult;w=_.b(z);K=w.next().value;G=w.next().value;X=w.next().value;J=w.next().value;q=w.next().value;T=K;Q=G;m=X;a=J;n=q;H={};I={};L={};h={};E={};N=[];D=_.b(Q);for(g=D.next();!g.done;g=D.next())(y=g.value)&&(H[y.key]=y);Z=_.b(m);for(YN=Z.next();!YN.done;YN=Z.next())(Jk=YN.value)&&(I[Jk.key]=Jk);v1=_.b(n);for(lg=v1.next();!lg.done;lg=v1.next())(M5=lg.value)&&(L[M5.key]=M5);fo=_.b(a);for(ug=fo.next();!ug.done;ug=fo.next())(sE=ug.value)&&(h[sE.key]=sE);w6=_.b(C);for(qY=w6.next();!qY.done;qY=
w6.next())y1=qY.value,Qa=void 0,E[(Qa=y1.videoItem)!=null?Qa:""]=!0,y1.videoItem&&(OU=Ha=void 0,ab=(OU=(Ha=_.Xn(y1.videoItem))==null?void 0:Ha.entityId)!=null?OU:"",N.push({externalVideoId:ab}));Pa=T.filter(function($L){if(!$L||!$L.key||!$L.offlineVideoPolicy)return!1;$L=_.Xn($L.key).entityId;$L=_.qq($L,"downloadStatusEntity");var Ba;return!($L&&((Ba=L[$L])==null?void 0:Ba.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
$N=Pa.map(function($L){var Ba=H[$L.transfer],r6=[];if(Ba==null?0:Ba.offlineVideoStreams)for(var eE=_.b(Ba.offlineVideoStreams),q1=eE.next();!q1.done;q1=eE.next())(q1=h[q1.value])&&r6.push(q1);eE=I[$L.offlineVideoPolicy];q1=E;var g6=$L==null?void 0:$L.playerResponseTimestamp,lo=_.Xn(eE.key).entityId;$L=_.qq(lo,"mainVideoEntity");if(eE.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var mc="OFFLINE_VIDEO_STATE_DISABLED";eE.expirationTimestamp&&Number(eE.expirationTimestamp)<Date.now()/1E3&&(mc="OFFLINE_VIDEO_STATE_EXPIRED")}else if(eE.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")mc="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Ba==null?void 0:Ba.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":mc="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":mc="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":mc="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":mc="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":mc="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":mc="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:mc="OFFLINE_VIDEO_STATE_UNKNOWN"}if(mc==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Ba==null?void 0:Ba.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":mc="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":mc="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":mc=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}lo={id:lo,videoState:mc};if(Ba==null?0:Ba.cotn)lo.cotn=Ba.cotn;if(Ba==null?0:Ba.maximumDownloadQuality)lo.selectedVideoQuality=Ba==null?void 0:Ba.maximumDownloadQuality;if(Ba==null?0:Ba.lastProgressTimeMs)lo.lastProgressTimeMs=Ba.lastProgressTimeMs;g6&&(lo.playerResponseSavedTimeMs=String(Number(g6)*1E3));Ba=String;g6=0;r6=_.b(r6);for(mc=r6.next();!mc.done;mc=r6.next())if(mc=mc.value,mc.streamsProgress){mc=_.b(mc.streamsProgress);for(var ob=mc.next();!ob.done;ob=
mc.next()){var Ak=void 0;g6+=Number((Ak=ob.value.numBytesDownloaded)!=null?Ak:0)}}lo.downloadedBytes=Ba(g6);lo.selectedOfflineMode=q1[$L]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";eE.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(lo.offlinePlaybackDisabledReason=eE.offlinePlaybackDisabledReason);return lo});
return N5.return({offlineVideos:$N,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:N}}})})};
QAh=function(){var e;return _.k(function(z){return z.nextAddress==1?z.yield(_.l7(),2):(e=z.yieldResult)?z.return(_.l41(e)):z.return({state:"PES Unavailable"})})};
nx5=function(){var e,z,C,w;return _.k(function(K){if(K.nextAddress==1)return K.yield(_.l7(),2);if(K.nextAddress!=3)return(e=K.yieldResult)?K.yield(mPN(e),3):K.return({state:"PES Unavailable"});z=K.yieldResult;C={};w=z.reduce(function(G,X){G[X.key]=X;return G},C);
return K.return(a41(w))})};
a41=function(e){for(var z={},C=[],w=_.b(Object.keys(e)),K=w.next();!K.done;K=w.next()){var G=K.value;K=e[G];var X=void 0;if(((X=K)==null?void 0:X.entityType)==="mainVideoEntity"){delete e[G];var J=K.data;K={};if(J){var q=void 0;X=(q=J.videoId)!=null?q:"vid-"+G;G=e;K.video=J;delete K.video.formattedDescription;delete K.video.thumbnail;J.owner&&(q=G[J.owner],q==null?0:q.data)&&(delete G[q.key],K.video.owner=q.data,delete K.video.owner.avatar);if(J=J.downloadState)if(q=G[J],q==null?0:q.data)if(delete G[J],
J=q.data.playbackData)if(q=G[J],q!=null&&q.data){delete G[J];J=q.data;delete J.playerResponseJson;K.playbackData=J;if(J.transfer&&(q=G[J.transfer],q==null?0:q.data)){delete G[q.key];var T=q.data;K.transfer=T;q=[];T=_.b(T.offlineVideoStreams||[]);for(var Q=T.next();!Q.done;Q=T.next())if(Q=G[Q.value])delete G[Q.key],q.push(Q.data);q&&(K.streams=q)}(J=J.offlineVideoPolicy)&&(J=G[J])&&J.data&&(delete G[J.key],K.offlineVideoPolicy=J.data)}z[X]=K}}else K&&K.entityType==="offlineOrchestrationActionWrapperEntity"&&
K.data&&(delete e[K.key],X=K.data,G=void 0,C.push({id:X.rootActionId,type:((G=X.actionProto)==null?void 0:G.actionType)||"",entity:K}))}z.wrapperEntities=C;Object.keys(e).length>0&&(z.unknownKeys=e);return z};
Md1=function(){var e,z,C,w,K,G,X,J,q;return _.k(function(T){if(T.nextAddress==1)return e=(new _.zE("")).hasLocalStorage(),w=!!((z=_.wL.crypto)==null?0:(C=z.subtle)==null?0:C.importKey),K=!!_.wL.BroadcastChannel,G=!!_.wL.navigator.locks,T.yield(H4o(),2);X=T.yieldResult;J=e&&w&&K&&G&&X;q={isSupported:J};if(J)return T.return(q);q.missingBrowserFeatures=[];X||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");e||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
w||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");K||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");G||q.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return T.return(q)})};
rZ4=function(e,z,C,w){var K=!1,G={contentId:void 0,contentType:"video"};z=_.b(Object.entries(z));for(var X=z.next();!X.done;X=z.next()){var J=_.b(X.value);X=J.next().value;J=J.next().value;e.includes(X)&&!C.has(J)?(G.contentId=J,C.add(J),K=!0):X==="contentType"?J==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(G.contentType="playlist"):typeof J==="object"&&J!==null&&rZ4(e,J,C,w)}K&&w.push(G)};
HF1=function(){var e;return!((e=Qg?Qg:null)==null||!e.window)};
_.vxg=function(e){if(_.W1()&&_.rk1("Chromium")>=120){var z=_.UP1().mediaSession;try{z.setActionHandler("enterpictureinpicture",function(){e()})}catch(C){}}};
I47=function(e){for(var z=[],C=_.b(document.styleSheets),w=C.next(),K={};!w.done;K={node$jscomp$779:void 0},w=C.next())K.node$jscomp$779=w.value.ownerNode,K.node$jscomp$779&&(K.node$jscomp$779 instanceof HTMLStyleElement||K.node$jscomp$779 instanceof HTMLLinkElement)&&z.push(new Promise(function(G){return function(X){var J=G.node$jscomp$779.cloneNode(!0);J.onload=function(){X()};
J.onerror=function(){_.AX(Error("uj"));X()};
e.document.head.appendChild(J)}}(K)));
return Promise.all(z)};
f4N=function(e){var z=[_.Qb(W4h),_.Qb(Pes),_.Qb(R7h)];L41(window.document.documentElement,e.document.documentElement,[_.Qb(h7N),_.Qb(OFm),_.Qb(Exk),_.Qb(F4g),_.Qb(Vdo)]);L41(window.document.body,e.document.body,z)};
L41=function(e,z,C){e=_.b(e.attributes);for(var w=e.next();!w.done;w=e.next())if(w=w.value)try{_.xo(C,z,w.name,w.value)}catch(K){}};
uws=function(e,z){e=new _.mU(e.document.documentElement);e.start(SF8,z);return e};
dPg=function(e){var z=e.document.documentElement;z.addEventListener("click",function(C){IYk(z,C)});
z.addEventListener("touchstart",function(C){hz1(C)});
z.addEventListener("mousedown",function(C){hz1(C)})};
iFh=function(e,z,C,w){w=w===void 0?!1:w;z=new DP8(z||e,C||e);return{x:e.x+((w===void 0?0:w)?z.lengthX*-1:z.lengthX)*.2,y:e.y+((w===void 0?0:w)?z.lengthY*-1:z.lengthY)*.2}};
Ncs=function(e){if(!e)return!1;var z=e.status==="OK"||e.status==="LIVE_STREAM_OFFLINE",C,w,K,G=(K=(C=e.errorScreen)==null?void 0:C.playerLegacyDesktopYpcTrailerRenderer)!=null?K:(w=e.errorScreen)==null?void 0:w.ypcTrailerRenderer;return!!z||!!G};
_.sA8=function(e,z){if(!e)return!1;var C,w=(C=e.errorScreen)==null?void 0:C.playerLegacyDesktopYpcOfferRenderer,K;z=!!(z==null?0:(K=z.playerOverlayRenderer)==null?0:K.gatedActionsOverlayRenderer);return!!Ncs(e)||!!w||!!z};
gxo=function(e){return Bc8(e,0,"gclid",e.search(td1))>=0||Bc8(e,0,"gad_source",e.search(td1))>=0};
jA7=function(e){var z=[],C=0;return{clear:function(){C=z.length=0},
push:function(w){z[C]=w;C=(C+1)%e},
iterate:function(){return function K(){var G,X,J,q;return _.an(K,function(T){switch(T.nextAddress){case 1:_.Rv(T,2),G=z.length,X=0;case 4:if(!(X<G)){T.jumpTo(2);break}J=C+X;q=_.nM;return T.yield(z[J%G],7);case 7:q(T.yieldResult);X++;T.jumpTo(4);break;case 2:_.PZ(T),_.hn(T,0)}})}()}}};
yZ4=function(e){e.eventsToIgnore||(e.eventsToIgnore=[]);var z=e.eventsToIgnore.map(Pvs),C=new Set(z),w=jA7(e.bufferSize);return{flush:function(){var K=Array.from(w.iterate());w.clear();K=K.map(function(G){return{name:G.name,timestamp:G.startTime,attributes:G.attributes}});
return JSON.stringify(K)},
onSpanStart:function(K){K.name==="event"&&C.has(K.attributes.type)||w.push(K)}}};
cZ7=function(e){e=yZ4(e);var z=e.flush;Pt7({onSpanStart:e.onSpanStart});eY.subscribe("handleError",function(C){try{C.params.breadcrumbs=z()}catch(w){_.yG(w,"WARNING")}})};
AZ1=function(){RS("web_tracing_action");_.LK("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
ZFo=function(){RS("web_tracing_action");_.LK("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
zYk=function(e,z,C){if(z===void 0){p4k||(ZFo(),setInterval(ZFo,6E5),p4k=!0);var w="web_tracing_action"}else w=z;var K,G=((K=e.endTime)!=null?K:e.startTime)-e.startTime;K={};C=eY5(e.name,G,e.startTime,{webTracing:(K[e.name]=e.attributes,K)},C,w,{spanStatus:e.status});if(e.children)for(e=_.b(e.children),w=e.next();!w.done;w=e.next())zYk(w.value,z,C)};
CPE=function(e){var z=Fus.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(C){C.data&&typeof C.data==="object"&&(C=C.data,C.from==="extension"&&C.app==="yt.telemetry"&&(z("Received message from extension",C),e.onMessage(C)))});
return function(C,w){C={app:"yt.telemetry",from:"app",key:C,payload:w};z("Sending message to extension",C);window.postMessage(C,"*")}};
wgs=function(){var e=e===void 0?3E3:e;var z=CPE({onMessage:function(){}}),C=[];
return{onSpanEnd:function(w){w.parentId==null&&C.push(w)===1&&setTimeout(function(){var K=[].concat(_.s_(C));C.length=0;z("spansReported",{spans:K})},e)}}};
KdN=function(e){e=e===void 0?400:e;var z=[],C=[];return{start:function(){return kp5({checkoutEveryNth:e,emit:function(w,K){K&&(z=C,C=[]);C.push(w)}})},
getRecording:function(){return[].concat(_.s_(z),_.s_(C))}}};
Y1h=function(){(new o47({sessionReplayEvents:_.n0("web_tracing_session_replay",0)})).subscribe(function(e){if(e.sessionReplayEvents>0)try{var z=KdN(e.sessionReplayEvents);z.start();if(_.M("web_tracing_session_replay_demo")){var C=console.log;window.exportSessionReplay=function(){var w=JSON.stringify(z.getRecording(),null,2);w=G3m(new Blob([w],{type:"text/plain"}));var K=document.createElement("a");K.download="session_replay.json";K.dataset.downloadurl=["application/json",K.download,K.href].join(":");
K.style.display="none";K.href=w;K.click();URL.revokeObjectURL(w);C("View replay at go/yt-session-replay-viewer")}}}catch(w){_.AX(Error("wj"))}})};
Xg4=function(){var e=window.fetch;window.fetch=function(){var z=_.yL.apply(0,arguments),C=_.b(z),w=C.next().value;C=C.next().value;var K=pK("httpEvent",{method:(C===void 0?{}:C).method||"GET",path:bfg(w),type:"fetch"},{active:!1});return e.apply(null,_.s_(z)).then(function(G){K.addAttributes({statusCode:G.status,statusText:G.statusText});K.end();return G}).catch(function(G){K.end("SPAN_STATUS_ERROR");
throw G;})}};
JMN=function(){var e=XMLHttpRequest.prototype.open,z=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(C,w,K,G,X){var J=this;K=K===void 0?!0:K;this._requestData={method:C,url:w.toString()};this.addEventListener("load",function(){var q=J._span;q==null||q.addAttributes({statusCode:J.status,responseContentLength:J.responseText.length});q==null||q.end()});
this.addEventListener("error",function(){var q=J._span;q==null||q.addAttributes({statusCode:J.status,statusText:J.statusText});q==null||q.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var q=J._span;q==null||q.addAttributes({statusCode:J.status,aborted:!0});q==null||q.end()});
e.apply(this,[C,w,K,G,X])};
XMLHttpRequest.prototype.send=function(C){var w=this._requestData||{method:"N/A",url:"N/A"};this._span=pK("httpEvent",{method:w.method,path:bfg(w.url),type:"xhr"},{active:!1});z.apply(this,[C])}};
bfg=function(e){try{if(e instanceof URL)return e.pathname;e instanceof Request&&(e=e.url);return(new URL(e,"https://youtube.com")).pathname}catch(z){return"<unable to parse path>"}};
q1h=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var e=window.performance.getEntriesByType("navigation");if(e.length>0){var z=e[0],C=window.performance.timeOrigin;pK("pageLoad",{navigationType:k3L(z.type),unloadEventStart:Math.round(z.unloadEventStart),unloadEventEnd:Math.round(z.unloadEventEnd),domInteractive:Math.round(z.domInteractive),domContentLoadedEventStart:Math.round(z.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(z.domContentLoadedEventEnd),
domComplete:Math.round(z.domComplete),loadEventStart:Math.round(z.loadEventStart),loadEventEnd:Math.round(z.loadEventEnd),redirectCount:z.redirectCount},{active:!1,startTime:C+z.startTime,endTime:C+z.loadEventEnd})}}catch(w){}})};
k3L=function(e){switch(e){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
Qqs=function(){for(var e=xro.value,z={},C=_.b(e.enabledSpansArray),w=C.next();!w.done;w=C.next())z[w.value]=!0;Wu1({sessionId:qrE(),enabledSpans:z,shouldSampleFn:function(K,G,X){if(Txo){var J;return K==="shortToShort"||(X==null?void 0:(J=X.rootSpan())==null?void 0:J.name)==="shortToShort"}return!0}});
ER7();ZE("pageLoad")&&q1h();ZE("httpEvent")&&(Xg4(),JMN());e.exportToCsi&&Pt7($rs);e.exportToDevTools&&Pt7(wgs());e.maxBreadcrumbs>0&&cZ7({eventsToIgnore:lF1,bufferSize:e.maxBreadcrumbs})};
mr1=function(e){return new Promise(function(z){window.setTimeout(z,e)})};
aFg=function(e){var z={bicf:function(G){e.aGh=G},
blc:function(){return e.getLatestChallengeResponse()},
bcr:function(G){e.cl2.push(G)}},C=window;
C.ntpevasrs=z;if(C.ntpqfbel!==void 0)for(var w=_.b(C.ntpqfbel),K=w.next();!K.done;K=w.next())K=K.value,K(z);C.ntpqfbel=void 0};
n4o=function(e){return _.k(function(z){if(z.nextAddress==1)return _.Iv(z,2),z.yield(e.em2(),4);if(z.nextAddress!=2)return _.Yj(z,0);_.O_(z);_.E_(z)})};
MFg=function(e){var z,C;(z=e.ytcsi)==null||(C=z.tick)==null||C.call(z,"pot_ist")};
rM8=function(e){if(e instanceof Error){var z=_.pd("yt.logging.errors.log");z&&z(e,"WARNING")}};
Hfg=function(e){try{var z=JSON.parse(e);if(z.bgChallenge)return z}catch(C){}};
v4g=function(){var e=window,z={networkStatusManagerPromise:_.lh().resolve(new bK1(_.bk)),initialChallengeSli:_.M("wpo_att_sli")?new _.Org("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};e=e===void 0?window:e;var C=e.ytAtR,w;z==null||(w=z.initialChallengeSli)==null||_.MZ(w);if(C){if(C=Hfg(C)){var K;z==null||(K=z.initialChallengeSli)==null||_.rh(K,"SUCCESS");UrE(C,z)}e.ytAtR=void 0}else e.ytAtRC=function(G){if(G=Hfg(G)){var X;z==null||(X=z.initialChallengeSli)==null||
_.rh(X,"SUCCESS");UrE(G,z);e.ytAtRC=void 0}}};
PP8=function(){if(IFE)return IFE;try{var e=_.Lh("IFRAME");_.Cq(e,_.nJ(Wdk));e.sandbox.add("allow-same-origin");e.style.display="none";document.body.appendChild(e);return IFE=e}catch(z){e=new _.uh("Failed to create sandbox iframe"),_.yG(e)}};
RYE=function(){return function(e,z){_.j5("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[e]=z}};
Ldg=function(){return function(e,z){var C={};C[e]=z;e=_.Z_(_.BUL)(C);Object.keys(e).length>0&&_.Pf(e)}};
E4g=function(){if($FN()==="hidden")var e="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else $FN()==="visible"&&(e="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",hY1=null);e&&Ofo(e)};
Ofo=function(e){if(e==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||e==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Fd1===e)return;Fd1=e}var z=9E4+Math.random()*2E3;if(e!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.aC()>z)&&$FN()==="visible"){z=-1;hY1&&(z=Math.round((0,_.as)()-hY1));var C=String;var w=_.pd("_fact",window);w=w==null||w==-1?-1:Math.max(Date.now()-w,0);_.gm("foregroundHeartbeat",{firstActivityMs:C(w),clientDocumentNonce:xVk,index:String(VF7),lastEventDeltaMs:String(z),trigger:e});
_.lM("_fact",-1,window);VF7++;hY1=(0,_.as)()}};
fF5=function(e,z,C,w,K,G){z=new Uint8Array(z);if(e.length===0)return z;var X=0;K=K!=null?K:e.length-1;for(var J=C;J<=K;J++){var q=e[J],T=J===C?w:0,Q=void 0,m=J===K?(Q=G)!=null?Q:q.length:q.length;q=q.subarray(T,m);z.set(q,X);X+=q.length}return z};
_.S1s=function(){try{return!!self.sessionStorage}catch(e){return!1}};
ui1=function(){var e=navigator;return new Promise(function(z,C){var w;(w=e.webkitTemporaryStorage)!=null&&w.queryUsageAndQuota?e.webkitTemporaryStorage.queryUsageAndQuota(function(K,G){z({usage:K,quota:G})},function(K){C(K)}):C(Error("Fj"))})};
drs=function(e,z){var C={errorSeverity:z.errorSeverity.toString(),wizFeatureFlags:Object.entries(z.featureFlags).join("\n")};sog(z,C);z=z.errorSeverity;z===3?_.yG(e,"ERROR",void 0,void 0,void 0,C):z===2&&_.yG(e,"WARNING",void 0,void 0,void 0,C);_.M("cow_if_errors_in_popup")&&z===3&&e.message.indexOf("<If>")!==-1&&window.alert(e.message)};
Dr1=function(e,z){var C=cf.get(e)||{layerNode:z};C.layerNode=z;Iwg(e,C);e.getScreenLayer=function(){return HM(C.layerNode)}};
ifm=function(e){var z;e=e.parentNode;for(var C;e&&((z=cf.get(e))==null||!z.isRenderer)&&!((C=e.polymerController)!=null?C:e).isRenderer_;)e=e.parentNode||e.host;if(z=e)return cf.get(z)};
Nxg=function(e){if(e){cf.delete(e);var z=_.lh().resolve(m$);O8s(e,z)}};
Bxh=function(e,z,C){if(C===void 0?0:C){if(C=e.getAttribute("client-ve-type"),z.data&&!z.disableReactiveLogging||C)_.N6(function(){sqh(e,_.gp(z.data))},"zg"),_.BC(function(){return void Nxg(e)})}else typeof z.data!=="function"&&sqh(e,z.data)};
sqh=function(e,z){tFg++;g41(e,z)&&_.c5.addJob(function(){_.UQ(_.c5,function(){if(g41(e,z)&&e.ownerDocument.documentElement===document.documentElement&&e){var C;if(e.getAttribute("layer")){var w=C=Number(e.getAttribute("layer")),K=cf.get(e);K?K.layerNode.layer=w:Dr1(e,new jq1(w));(w=ifm(e))&&(K=cf.get(e))!=null&&(K.layerNode.parent=w.layerNode)}else if(C=cf.get(e))C=HM(C.layerNode);else{C=HM;w=new jq1;if(K=ifm(e))w.parent=K.layerNode;Dr1(e,w);C=C(w)}C!=null||(C=0);w=e.getAttribute("client-ve-type");
K=Number(w);var G=!1;w=!1;var X=cf.get(e),J;if((J=X)&&!(J=X[yM7]!==z)&&(J=K)){var q;J=((q=cf.get(e))==null?void 0:q.clientVeType)===void 0}J&&(X[yM7]=z,G=w=X.isRenderer=!0);cf.has(e)&&(cf.get(e).clientVeType=K);e.visualElement&&(w=!0);if(_.M("wiz_next_ld_fix_client_ve_spec")){var T;q=((T=_.r(z==null?void 0:z.rendererContext,_.MF))==null?void 0:T.loggingDirectives)||(z==null?void 0:z.loggingDirectives)}else q=z==null?void 0:z.loggingDirectives;q&&q.clientVeSpec&&(T=cM8(_.mO(),e),T=_.AMg(_.nm(),q,T||
void 0,C))&&(e.visualElement=T);!e.visualElement&&K&&G&&(e.veType=K,T=void 0,_.M("wiz_next_client_ve_parent_fix")&&(T=cM8(_.mO(),e)),T=_.a5(_.nm(),e,T,C),e.visualElement=T);w&&(T=_.lh().resolve(m$),Qk(e,{data:z,observer:T,layer:C,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
g41=function(e,z){return(z==null?0:z.trackingParams)||(z==null?0:z.loggingDirectives)||_.r(z==null?void 0:z.rendererContext,_.MF)||e.getAttribute("client-ve-type")?!0:!1};
ZfE=function(e,z,C){e.componentType!==Fy&&C instanceof HTMLElement&&z&&!_.M("cow_logging_in_component_wrapper")&&Bxh(C,z,!0)};
CV1=function(){if(!pgm){pgm=!0;var e=_.M("enable_wiz_context_per_component")||!1;e=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.M("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:e,enableContextBasedComponentStacks:e},{handleError:drs,enableComponentStacksInErrorMessages:!1});Object.assign($J,e);_.M("web_c3_idom_interop_ks")&&(YXs=e8E);z8N();qX7=CF1;Xrm=KQN}};
z8N=function(){_.M("cow_logging_in_component_wrapper")?(kY1=function(e,z){z instanceof HTMLElement&&Bxh(z,e,!0)},c2h=function(){}):(kY1=function(){},c2h=ZfE)};
wD5=function(e,z,C){z=z===void 0?{}:z;var w,K=(w=_.r(e.commandMetadata,_.XV))==null?void 0:w.url;w=z.form||{};!C||w.element||w.skipDefaultElement||(z.form=z.form||{},z.form.element=C);if(K&&K!=="/service_ajax")return{type:0,command:e,form:z.form};if(_.M("kevlar_service_command_check")){if(_.jj(_.lh().resolve(_.vJ),e))return Object.assign({},{type:1,command:e},z)}else{var G;if((G=_.r(e.commandMetadata,_.XV))==null?0:G.apiUrl)return Object.assign({},{type:1,command:e},z)}return{type:2,command:e,form:z.form}};
KNo=function(e){if(e.form){var z=e.form,C=Object.assign({},z);z=z.element;C=(delete C.element,C);if(z)return[_.wQ(z,[e.command,C,e.commandController])]}return[]};
oto=function(e){if(e.form){var z=e.form,C=Object.assign({},z);z=z.element;C=(delete C.element,C);z&&_.KK(z,[e.command],z,C)}};
Yi1=function(e,z,C){var w=new GeN(e,z),K=new vM(e,z,C);e={"/youtubei/v1/browse":new In(e,z,C),"/youtubei/v1/player":w,"/youtubei/v1/navigation/resolve_url":new WM,"/youtubei/v1/next":K,"/youtubei/v1/guide":new PM(C),"/youtubei/v1/search":new Rn(e,z,C),"/youtubei/v1/reel/reel_item_watch":new LM(e,z,C),"/youtubei/v1/get_watch":new h8(w,K)};e["/youtubei/v1/account/account_menu"]=new OQ;e["/youtubei/v1/notification/get_notification_menu"]=new EQ;return e};
Vg=function(){var e=_.lh().resolve(_.F9);return Promise.resolve(bt7(e,_.wL.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
XD5=function(e){return e&&(e=_.fM(_.mcL(e)))?(new URLSearchParams(e)).get("service"):null};
dh=function(e,z){_.XW(_.So(),function(){_.hg("adl")});
_.lh().resolve(Jcg)(z);e=e.root;e.loadData&&e.loadData(z);(z==null?0:z.response)?_.rh(V6L(),"SUCCESS"):_.AX(new _.uh("Lifecycle: No response in data",_.cR("IS_SHELL_LOAD"),z?z.page:"NO_PAGE",z?z.endpoint:"NO_ENDPOINT"));e.polymerController.$["page-manager"].lazyPrepareCriticalPages((z==null?void 0:z.page)||"",z.endpoint);var C,w;((w=_.r(z==null?void 0:(C=z.endpoint)==null?void 0:C.commandMetadata,_.XV))==null?0:w.webPageType)&&_.eB().dispatch(_.uH(_.r(z.endpoint.commandMetadata,_.XV).webPageType))};
keg=function(){var e,z;return _.k(function(C){switch(C.nextAddress){case 1:e=window;if(!e.getDataPromise){C.jumpTo(2);break}_.Iv(C,3);return C.yield(e.getDataPromise(),5);case 5:return C.return(C.yieldResult);case 3:return _.O_(C),C.yield(Vg(),6);case 6:return C.return(C.yieldResult);case 2:if(e.getInitialData)return z=e.getInitialData(),e.getInitialData=void 0,C.return(z);throw Error("Hj`"+_.wL.location.href);}})};
xb1=function(){_.g1("CSI_SERVICE_NAME","youtube");_.Pf({loadType:"cold"});_.M("kevlar_log_lcp")&&qig(function(e){_.hg("lcp",e.value)})};
TI4=function(){var e=_.ea(document.location.href,"enable");e&&e.indexOf("scraper")>-1&&_.g1("ADD_SCRAPER_ATTRIBUTES",!0)};
ajs=function(e){var z=e.root;e=[$b1,lj4,_.Dr];_.M("web_feedback_endpoint_autolog_allowlist_killswitch")&&e.push(_.iH,QU1);mbs(function(C,w){return wD5(C,w,z)},function(C){if(!C.command)return[];
var w;((w=C.form)==null?0:w.element)?C.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},C.form,{endpoint:C.command})})):z.handleNavigate(C);return[]},e);
_.lh().addProvider({provide:_.ms,useValue:_.Tx.instance})};
MV4=function(){var e={},z={},C;for(C in ntN){var w=_.b(_.II(ntN[C],void 0,"IAtZ7"));e[C]=w.next().value;z[C]=w.next().value}return[e,function(K){for(var G in K){var X=void 0;(X=z[G])==null||X(K[G])}}]};
_.Ub7=function(e,z){var C=!1;C=C===void 0?!1:C;var w=_.de.getValueByKeys(e,"contents","twoColumnWatchNextResults","results","results","contents"),K=_.de.getValueByKeys(e,"contents","twoColumnWatchNextResults","playlist","playlist")||null;C&&(K=null);var G=C=null;if(K)C=_.de.getValueByKeys(K,"titleText"),G=_.de.unsafeClone(_.de.getValueByKeys(K,"longBylineText")),w="",G&&(w=_.Zd(G)),G=_.AO(w);else if(w){w=_.b(w);for(var X=w.next();!X.done;X=w.next())X=X.value,X.videoPrimaryInfoRenderer&&(C=_.de.getValueByKeys.apply(_.de,
[X].concat(_.s_(rcN)))),X.videoSecondaryInfoRenderer&&(G=_.de.getValueByKeys.apply(_.de,[X].concat(_.s_(Hth))))}else _.es(Error("Mj"));var J;e.currentVideoEndpoint?J=e.currentVideoEndpoint:_.es(Error("Nj"));var q;z&&(q=_.de.getValueByKeys(z,"playabilityStatus","miniplayer","miniplayerRenderer"));e={miniplayerTitle:C,miniplayerSubtitle:G,watchEndpoint:J,playlistData:K};q&&(e.miniplayerRenderer=q);return e};
vtm=function(e){if(e)return _.Em(e)};
_.Ijk=function(){return{isFullscreen:function(){throw Error("Oj");},
toggleFullscreen:function(){throw Error("Pj");},
exitFullscreen:function(){throw Error("Qj");},
isAutonavEnabled:function(){throw Error("Rj");},
setAutonavEnabled:function(){throw Error("Sj");},
isAutoplaySetExplicitly:function(){throw Error("Tj");}}};
WNh=function(e){return e.videoDuration?e.numTaps>1&&e.tapDirection!==0?_.NZ(e.draggedTime/e.videoDuration,0,1):_.NZ((e.playedTime||0)/e.videoDuration,0,1):0};
PVE=function(e){return e.videoDuration?e.isDragging||e.numTaps>1&&e.tapDirection!==0?_.NZ(e.draggedTime/e.videoDuration,0,1):_.NZ((e.playedTime||0)/e.videoDuration,0,1):0};
LNm=function(e){var z,C,w;return _.r(e==null?void 0:(z=e.markersMap)==null?void 0:(C=z.find(function(K){return K.key==="HEATSEEKER"}))==null?void 0:(w=C.value)==null?void 0:w.heatmap,R8m)};
h8s=function(e){var z,C;return(C=(z=LNm(e))==null?void 0:z.heatMarkersDecorations)!=null?C:[]};
Ot5=function(e){if(_.M("mweb_supported_chapters_killswitch"))return!0;var z;return!!(e==null?0:(z=e.markersMap)==null?0:z.find(function(C){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(C.key)}))};
_.Et1=function(e){var z=Object,C=z.assign,w;e={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(w=e==null?void 0:e.getPlayerState())!=null?w:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return C.call(z,{},{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,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},e,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
FNg=function(e){return function(z){var C=e(),w,K=(w=C.playerApi)==null?void 0:w.getPlayerState();z&&z!==C.playerState&&(z===1||z===2)&&C.setState({playerState:K})}};
fj4=function(e){return function(z){var C=e(),w=C.playerApi;w&&(z==null?void 0:z.type)==="newdata"&&(VV4&&(clearTimeout(VV4),VV4=void 0),_.M("web_shorts_use_progress_state_for_gapless")?(z=w==null?void 0:w.getProgressState(z==null?void 0:z.playertype),z=z.seekableEnd-z.seekableStart):z=w==null?void 0:w.getDuration(z==null?void 0:z.playertype),C.setState({playedTime:0,videoDuration:z}))}};
Si4=function(e){return function(z){var C=e(),w=C.playerApi;if(w){var K=w.getPresentingPlayerType();_.M("web_shorts_use_progress_state_for_gapless")?(w=w.getProgressState(K),w=w.seekableEnd-w.seekableStart):w=w.getDuration(K);C.setState({playedTime:z,videoDuration:w})}}};
db7=function(e){_.FZ(112394,e,function(){return u7o},function(z){u7o=z})};
NI1=function(e,z){if(!e)return[];var C,w,K;e=((C=e.markersMap)==null?void 0:(w=C.find(function(G){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(G.key)}))==null?void 0:(K=w.value)==null?void 0:K.chapters)||[];
!Db1(e)||(z==null?0:z.ignoreStub)||(e=[itg()].concat(_.s_(e)));return e};
itg=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Db1=function(e){if(e.length===0)return!1;var z;return((z=_.r(e[0],sQ))==null?void 0:z.timeRangeStartMillis)!==0};
BM=function(e){return e?e.timeRangeStartMillis||0:0};
BI1=function(e,z){if(e.isDragging&&z)return e=sU7(e,z),e===-1?itg():NI1(z)[e]};
sU7=function(e,z){return e.isDragging&&z?NI1(z,{ignoreStub:!0}).findIndex(function(C,w,K){C=tVs(e);return gt1(C,K,w).scrubberHovering}):-1};
tVs=function(e){return Object.assign({},e,{videoDuration:e.videoDuration*1E3,playedTime:e.playedTime*1E3,draggedTime:e.draggedTime*1E3})};
gt1=function(e,z,C){var w=BM(_.r(z[C],sQ));z=BM(_.r(z[C+1],sQ))||e.videoDuration;C=e.isDragging;var K;if(K=e.isDragging)K=e.draggedTime,K=K!==null&&K>=w&&K<z;var G=e.playedTime;return G!==null&&G>=w&&G<z?{videoPosition:"active",isScrubbing:C,scrubberHovering:K}:e.playedTime<w?{videoPosition:"pending",isScrubbing:C,scrubberHovering:K}:{videoPosition:"seen",isScrubbing:C,scrubberHovering:K}};
jUh=function(e,z){return e.videoPosition==="seen"||(z===void 0?0:z)>0};
ycN=function(e,z,C){z=e/z.storyboardInterval;var w=NI1(C);if(!w.length)return-z*72;C=0;w=_.b(w);for(var K=w.next();!K.done;K=w.next())if(BM(_.r(K.value,sQ))/1E3<e)C++;else break;return-(z*72)-C*56};
cc1=function(e){return e?e.width/e.columns:0};
Ac1=function(e){return e.isHovering?e.hoveredTime:e.draggedTime};
Zt1=function(e,z){e=e.draggedTime*1E3;return e>=z.visibleTimeRangeStartMillis&&e<=z.visibleTimeRangeEndMillis};
_.pD1=function(e){if(e===void 0||Number.isNaN(e))return"--:--";var z=Math.abs(Math.floor(e)),C=Math.floor(z/86400),w=Math.floor(z%86400/3600),K=Math.floor(z%3600/60);z=Math.floor(z%60);var G="";C>0&&(G+=C+":",w<10&&(G+="0"));if(C>0||w>0)G+=w+":",K<10&&(G+="0");G+=K+":";z<10&&(G+="0");G+=z;return e>=0?G:"-"+G};
ebL=function(e,z){return function(){var C=Ac1(e());var w=z();var K=e().playerApi;if(K&&K.getNumberOfStoryboardLevels()!==0){var G=K.getStoryboardFrameIndex(C,1);G!==-1?w=K.getStoryboardFrame(G,1):(C=K.getStoryboardFrameIndex(C,0),K=K.getStoryboardFrame(C,0),w&&K&&(K.height*=3,K.width*=3),w=K)}else w=null;if(!w)return null;z()&&(w.width=90*w.columns,w.height=160*w.rows);return w}};
_.t8=function(e){if(!e||e.getVideoData)return e};
zbL=function(){var e;return{playerApi:(e=_.n7())!=null?e:void 0}};
CNg=function(e){var z;_.k(function(C){if(C.nextAddress==1)return C.yield(_.ax(),2);if(z=C.yieldResult)z.unMute(!0),z.setVolume(e,!0);_.E_(C)})};
ww7=function(e,z){e&&(e.value=""+z,e.style.setProperty("--gradient-percent",z+"%"))};
KV1=function(e){var z;return(z=e==null?void 0:e.value)!=null?z:0};
orL=function(){var e;_.k(function(z){if(z.nextAddress==1)return z.yield(_.ax(),2);e=z.yieldResult;if(!e)return z.return();e.isMuted()?e.unMute(!0):e.mute(!0);_.E_(z)})};
GPs=function(e){var z=_.lh().resolve(_.gh).getPlayerElement();z&&e&&(e===1?z.pause():z.play())};
Yw5=function(e){return!!_.r(e,_.jo)||!!_.r(e,_.yg)};
beL=function(e){_.zj(e,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Xwh=function(e){_.zj(e,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
kPL=function(e){return _.ii(e.document.body,function(){return _.x(Js1,null)},"mh")};
qwo=function(){var e;return(e=navigator.userActivation)==null?void 0:e.isActive};
x91=function(){var e=window.performance.getEntriesByType("navigation");return e?e.map(function(z){return z.type}).includes("reload"):!1};
Mpm=function(){cM(cM(cM(cM(cM(cM(cM(_.lh().resolve(_.A8),_.Tvg),_.$91),_.lx1),_.Q1E),_.m9g),_.ax1),_.nrm)};
rsE=function(e,z){z=z===void 0?!1:z;var C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return z||!_.M("kevlar_shorts_seedless_retry_initial_load")||(C=window,w=!(!C.getDataPromise&&!C.getInitialData),w)?X.yield(keg(),2):(setTimeout(rsE.bind(window,e,!0),1E3),X.return());if(X.nextAddress!=3)return K=X.yieldResult,X.yield(Heh(K),3);G=X.yieldResult;dh(e,G);_.E_(X)})};
Heh=function(e){var z;if((z=e.response)==null||!z.replacementEndpoint)return _.oS(e);z=_.lh().resolve(_.F9);e=e.response;_.r(e.replacementEndpoint,_.rP)&&e.sequenceContinuation&&(_.r(e.replacementEndpoint,_.rP).sequenceParams=e.sequenceContinuation);return Zr(z,e.replacementEndpoint,{},_.wL.location.href,"shorts",function(){},function(){return!1})};
vr7=function(e){var z=_.lh().resolve(U97);e.playerResponse&&z.handleResponse(e.playerResponse);e.response&&z.handleResponse(e.response)};
IxN=function(e){var z=_.eB(),C,w=_.r((C=e.response)==null?void 0:C.frameworkUpdates,Ze),K;C=_.r((K=e.playerResponse)==null?void 0:K.frameworkUpdates,Ze);var G;e=_.r((G=e.reelWatchSequenceResponse)==null?void 0:G.frameworkUpdates,Ze);w&&_.m6(w,z);C&&_.m6(C,z);e&&_.m6(e,z)};
WVL=function(e){var z;_.M("enable_redirect_linking_for_desktop_web_client")&&((z=window.location.hash)==null?0:z.includes("redirect_state"))&&e.url&&(e.url=e.url.toString()+window.location.hash)};
LV4=function(e){var z=_.lh(),C=z.resolve(_.F9);z=z.resolve(_.PNh);e.endpoint&&(C=Rbg(C,e.endpoint),C.content&&e.response&&_.pM(z,e.response,C.content),C.player&&e.playerResponse&&_.pM(z,e.playerResponse,C.player),C.reelSequence&&e.reelWatchSequenceResponse&&_.pM(z,e.reelWatchSequenceResponse,C.reelSequence))};
ev=function(e,z){vr7(z);IxN(z);var C;(z==null?0:z.url)&&((C=window.location.hash)==null?0:C.includes("redirect_state"))&&(WVL(z),(C=XD5(z.url))&&_.eA(e.root,"yt-initialize-third-party",[C,z]));LV4(z);C=_.lh();var w=C.resolve(hb1);z.playerResponse&&C.resolve(Oe5).handleResponse(z.playerResponse);if(z.playerResponse){C=void 0;if(_.M("ab_v_vid_sig")&&z.endpoint){var K,G=(K=_.r(z.endpoint,_.N$))!=null?K:_.r(z.endpoint,_.rP);G&&(C=G.videoId)}Erk(w,z.playerResponse,C)}z.playerResponse&&zRN(z.playerResponse)&&
_.M("web_enable_ab_rsp_cl")?Vmo().then(function(){FVh(w,z.playerResponse);dh(e,z)}):dh(e,z)};
fx4=function(e){if(e=e.root.data){var z=_.lh().resolve(Vpm);e.endpoint&&(e.response&&z.handleResponse(e.response,void 0,document.querySelector("ytd-app")),e.playerResponse&&z.handleResponse(e.playerResponse),e.reelWatchSequenceResponse&&z.handleResponse(e.reelWatchSequenceResponse))}};
Sw4=function(e){var z,C,w,K,G,X;return _.k(function(J){switch(J.nextAddress){case 1:z=window;if(!z.getDataPromise){J.jumpTo(2);break}_.Iv(J,3);return J.yield(z.getDataPromise(),5);case 5:C=J.yieldResult;ev(e,C);_.Yj(J,4);break;case 3:return _.O_(J),J.yield(Vg(),6);case 6:w=J.yieldResult,dh(e,w);case 4:return J.return();case 2:if(!_.M("sw_nav_preload_pbj")){J.jumpTo(7);break}z.fetchInitialData=function(){var q;return _.k(function(T){if(T.nextAddress==1)return T.yield(Vg(),2);q=T.yieldResult;dh(e,q);
_.E_(T)})};
if(z.getInitialData){z.loadInitialData=function(q){ev(e,q)};
K=z.getInitialData();z.getInitialData=void 0;ev(e,K);J.jumpTo(8);break}z.fetchInitialData=void 0;return J.yield(Vg(),9);case 9:G=J.yieldResult,dh(e,G);case 8:return J.return();case 7:z.getInitialData?(X=z.getInitialData(),z.getInitialData=void 0,ev(e,X)):z.loadInitialData=function(q){ev(e,q)},_.E_(J)}})};
d9o=function(){var e=new ujg;_.CMg(e);e.registerInitializationCallback(function(){qAo(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
e.registerCallback("error",function(z,C,w){_.AR(Error("Xj`"+C+"`"+w))})};
D9E=typeof Object.create=="function"?Object.create:function(e){var z=function(){};
z.prototype=e;return new z};
ie5=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,z,C){if(e==Array.prototype||e==Object.prototype)return e;e[z]=C.value;return e};
Nv8=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var z=0;z<e.length;++z){var C=e[z];if(C&&C.Math==Math)return C}throw Error("a");};
_.lB=Nv8(this);s1L="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.lB.BigInt64Array&&(s1L.push("BigInt64"),s1L.push("BigUint64"));var tpg=function(e,z){if(z)for(var C=0;C<s1L.length;C++)Bvo(s1L[C]+"Array.prototype."+e,z)},zk=function(e,z){z&&Bvo(e,z)},Bvo=function(e,z){var C=_.lB;
e=e.split(".");for(var w=0;w<e.length-1;w++){var K=e[w];if(!(K in C))return;C=C[K]}e=e[e.length-1];w=C[e];z=z(w);z!=w&&z!=null&&ie5(C,e,{configurable:!0,writable:!0,value:z})},grm=function(){function e(){function C(){}
new C;Reflect.construct(C,[],function(){});
return new C instanceof C}
if(typeof Reflect!="undefined"&&Reflect.construct){if(e())return Reflect.construct;var z=Reflect.construct;return function(C,w,K){C=z(C,w);K&&Reflect.setPrototypeOf(C,K.prototype);return C}}return function(C,w,K){K===void 0&&(K=C);
K=D9E(K.prototype||Object.prototype);return Function.prototype.apply.call(C,K,w)||K}}(),j1k;
if(typeof Object.setPrototypeOf=="function")j1k=Object.setPrototypeOf;else{var ysg;a:{var csL={a:!0},Ash={};try{Ash.__proto__=csL;ysg=Ash.a;break a}catch(e){}ysg=!1}j1k=ysg?function(e,z){e.__proto__=z;if(e.__proto__!==z)throw new TypeError("b`"+e);return e}:null}Cb=j1k;
_.U=function(e,z){e.prototype=D9E(z.prototype);e.prototype.constructor=e;if(Cb)Cb(e,z);else for(var C in z)if(C!="prototype")if(Object.defineProperties){var w=Object.getOwnPropertyDescriptor(z,C);w&&Object.defineProperty(e,C,w)}else e[C]=z[C];e.superClass_=z.prototype};
ZeE=function(e){var z=0;return function(){return z<e.length?{done:!1,value:e[z++]}:{done:!0}}};
_.b=function(e){var z=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(z)return z.call(e);if(typeof e.length=="number")return{next:ZeE(e)};throw Error("c`"+String(e));};
b0=function(e){for(var z,C=[];!(z=e.next()).done;)C.push(z.value);return C};
_.s_=function(e){return e instanceof Array?e:b0(_.b(e))};
_.Kb=function(e){return w4(e,e)};
w4=function(e,z){e.raw=z;Object.freeze&&(Object.freeze(e),Object.freeze(z));return e};
oP=function(e,z){return Object.prototype.hasOwnProperty.call(e,z)};
pwm=function(e){if(e==null)throw new TypeError("d");return Object(e)};
esa=typeof Object.assign=="function"?Object.assign:function(e,z){e=pwm(e);for(var C=1;C<arguments.length;C++){var w=arguments[C];if(w)for(var K in w)oP(w,K)&&(e[K]=w[K])}return e};
zk("Object.assign",function(e){return e||esa});
var Gk=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},zsT=function(e){if(e.isRunning_)throw new TypeError("f");
e.isRunning_=!0};
Gk.prototype.JSC$8882_next_=function(e){this.yieldResult=e};
var Cgg=function(e,z){e.abruptCompletion_={exception:z,isException:!0};e.nextAddress=e.catchAddress_||e.finallyAddress_};
Gk.prototype.return=function(e){this.abruptCompletion_={return:e};this.nextAddress=this.finallyAddress_};
Gk.prototype.yield=function(e,z){this.nextAddress=z;return{value:e}};
Gk.prototype.jumpTo=function(e){this.nextAddress=e};
_.E_=function(e){e.nextAddress=0};
_.Iv=function(e,z,C){e.catchAddress_=z;C!=void 0&&(e.finallyAddress_=C)};
_.Rv=function(e,z){e.catchAddress_=0;e.finallyAddress_=z||0};
_.Yj=function(e,z,C){e.nextAddress=z;e.catchAddress_=C||0};
_.O_=function(e,z){e.catchAddress_=z||0;z=e.abruptCompletion_.exception;e.abruptCompletion_=null;return z};
_.PZ=function(e,z,C,w){w?e.finallyContexts_[w]=e.abruptCompletion_:e.finallyContexts_=[e.abruptCompletion_];e.catchAddress_=z||0;e.finallyAddress_=C||0};
_.hn=function(e,z,C){C=e.finallyContexts_.splice(C||0)[0];(C=e.abruptCompletion_=e.abruptCompletion_||C)?C.isException?e.nextAddress=e.catchAddress_||e.finallyAddress_:C.jumpTo!=void 0&&e.finallyAddress_<C.jumpTo?(e.nextAddress=C.jumpTo,e.abruptCompletion_=null):e.nextAddress=e.finallyAddress_:e.nextAddress=z};
w1c=function(e){this.JSC$8887_context_=new Gk;this.program_=e};
oNY=function(e,z){zsT(e.JSC$8887_context_);var C=e.JSC$8887_context_.yieldAllIterator_;if(C)return K7Y(e,"return"in C?C["return"]:function(w){return{value:w,done:!0}},z,e.JSC$8887_context_.return);
e.JSC$8887_context_.return(z);return Yd(e)};
K7Y=function(e,z,C,w){try{var K=z.call(e.JSC$8887_context_.yieldAllIterator_,C);if(!(K instanceof Object))throw new TypeError("e`"+K);if(!K.done)return e.JSC$8887_context_.isRunning_=!1,K;var G=K.value}catch(X){return e.JSC$8887_context_.yieldAllIterator_=null,Cgg(e.JSC$8887_context_,X),Yd(e)}e.JSC$8887_context_.yieldAllIterator_=null;w.call(e.JSC$8887_context_,G);return Yd(e)};
Yd=function(e){for(;e.JSC$8887_context_.nextAddress;)try{var z=e.program_(e.JSC$8887_context_);if(z)return e.JSC$8887_context_.isRunning_=!1,{value:z.value,done:!1}}catch(C){e.JSC$8887_context_.yieldResult=void 0,Cgg(e.JSC$8887_context_,C)}e.JSC$8887_context_.isRunning_=!1;if(e.JSC$8887_context_.abruptCompletion_){z=e.JSC$8887_context_.abruptCompletion_;e.JSC$8887_context_.abruptCompletion_=null;if(z.isException)throw z.exception;return{value:z.return,done:!0}}return{value:void 0,done:!0}};
GgC=function(e){this.next=function(z){zsT(e.JSC$8887_context_);e.JSC$8887_context_.yieldAllIterator_?z=K7Y(e,e.JSC$8887_context_.yieldAllIterator_.next,z,e.JSC$8887_context_.JSC$8882_next_):(e.JSC$8887_context_.JSC$8882_next_(z),z=Yd(e));return z};
this.throw=function(z){zsT(e.JSC$8887_context_);e.JSC$8887_context_.yieldAllIterator_?z=K7Y(e,e.JSC$8887_context_.yieldAllIterator_["throw"],z,e.JSC$8887_context_.JSC$8882_next_):(Cgg(e.JSC$8887_context_,z),z=Yd(e));return z};
this.return=function(z){return oNY(e,z)};
this[Symbol.iterator]=function(){return this}};
_.an=function(e,z){z=new GgC(new w1c(z));Cb&&e.prototype&&Cb(z,e.prototype);return z};
YEa=function(e){function z(w){return e.next(w)}
function C(w){return e.throw(w)}
return new Promise(function(w,K){function G(X){X.done?w(X.value):Promise.resolve(X.value).then(z,C).then(G,K)}
G(e.next())})};
_.k=function(e){return YEa(new GgC(new w1c(e)))};
zk("Symbol",function(e){if(e)return e;var z=function(G,X){this.$jscomp$symbol$id_=G;ie5(this,"description",{configurable:!0,writable:!0,value:X})};
z.prototype.toString=function(){return this.$jscomp$symbol$id_};
var C="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",w=0,K=function(G){if(this instanceof K)throw new TypeError("g");return new z(C+(G||"")+"_"+w++,G)};
return K});
zk("Symbol.iterator",function(e){if(e)return e;e=Symbol("h");ie5(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return bos(ZeE(this))}});
return e});
zk("Symbol.asyncIterator",function(e){return e?e:Symbol("i")});
bos=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
_.WZ=function(e){var z=e[Symbol.asyncIterator];return z!==void 0?z.call(e):new X1Y(_.b(e))};
X1Y=function(e){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return e};
this.next=function(z){return Promise.resolve(e.next(z))};
this["throw"]=function(z){return new Promise(function(C,w){var K=e["throw"];K!==void 0?C(K.call(e,z)):(C=e["return"],C!==void 0&&C.call(e),w(new TypeError("j")))})};
e["return"]!==void 0&&(this["return"]=function(z){return Promise.resolve(e["return"](z))})};
_.yL=function(){for(var e=Number(this),z=[],C=e;C<arguments.length;C++)z[C-e]=arguments[C];return z};
_.nM=function(e){return e};
zk("globalThis",function(e){return e||_.lB});
zk("Reflect",function(e){return e?e:{}});
zk("Reflect.construct",function(){return grm});
zk("Reflect.setPrototypeOf",function(e){return e?e:Cb?function(z,C){try{return Cb(z,C),!0}catch(w){return!1}}:null});
zk("Promise",function(e){function z(){this.batch_=null}
function C(X){return X instanceof K?X:new K(function(J){J(X)})}
if(e&&(typeof _.lB.PromiseRejectionEvent!=="undefined"||!_.lB.Promise||_.lB.Promise.toString().indexOf("[native code]")===-1))return e;z.prototype.asyncExecute=function(X){if(this.batch_==null){this.batch_=[];var J=this;this.asyncExecuteFunction(function(){J.executeBatch_()})}this.batch_.push(X)};
var w=_.lB.setTimeout;z.prototype.asyncExecuteFunction=function(X){w(X,0)};
z.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var X=this.batch_;this.batch_=[];for(var J=0;J<X.length;++J){var q=X[J];X[J]=null;try{q()}catch(T){this.asyncThrow_(T)}}}this.batch_=null};
z.prototype.asyncThrow_=function(X){this.asyncExecuteFunction(function(){throw X;})};
var K=function(X){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var J=this.createResolveAndReject_();try{X(J.resolve,J.reject)}catch(q){J.reject(q)}};
K.prototype.createResolveAndReject_=function(){function X(T){return function(Q){q||(q=!0,T.call(J,Q))}}
var J=this,q=!1;return{resolve:X(this.resolveTo_),reject:X(this.JSC$8919_reject_)}};
K.prototype.resolveTo_=function(X){if(X===this)this.JSC$8919_reject_(new TypeError("n"));else if(X instanceof K)this.settleSameAsPromise_(X);else{a:switch(typeof X){case "object":var J=X!=null;break a;case "function":J=!0;break a;default:J=!1}J?this.resolveToNonPromiseObj_(X):this.fulfill_(X)}};
K.prototype.resolveToNonPromiseObj_=function(X){var J=void 0;try{J=X.then}catch(q){this.JSC$8919_reject_(q);return}typeof J=="function"?this.settleSameAsThenable_(J,X):this.fulfill_(X)};
K.prototype.JSC$8919_reject_=function(X){this.settle_(2,X)};
K.prototype.fulfill_=function(X){this.settle_(1,X)};
K.prototype.settle_=function(X,J){if(this.state_!=0)throw Error("o`"+X+"`"+J+"`"+this.state_);this.state_=X;this.result_=J;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
K.prototype.scheduleUnhandledRejectionCheck_=function(){var X=this;w(function(){if(X.notifyUnhandledRejection_()){var J=_.lB.console;typeof J!=="undefined"&&J.error(X.result_)}},1)};
K.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var X=_.lB.CustomEvent,J=_.lB.Event,q=_.lB.dispatchEvent;if(typeof q==="undefined")return!0;typeof X==="function"?X=new X("unhandledrejection",{cancelable:!0}):typeof J==="function"?X=new J("unhandledrejection",{cancelable:!0}):(X=_.lB.document.createEvent("CustomEvent"),X.initCustomEvent("unhandledrejection",!1,!0,X));X.promise=this;X.reason=this.result_;return q(X)};
K.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var X=0;X<this.onSettledCallbacks_.length;++X)G.asyncExecute(this.onSettledCallbacks_[X]);this.onSettledCallbacks_=null}};
var G=new z;K.prototype.settleSameAsPromise_=function(X){var J=this.createResolveAndReject_();X.callWhenSettled_(J.resolve,J.reject)};
K.prototype.settleSameAsThenable_=function(X,J){var q=this.createResolveAndReject_();try{X.call(J,q.resolve,q.reject)}catch(T){q.reject(T)}};
K.prototype.then=function(X,J){function q(a,n){return typeof a=="function"?function(H){try{T(a(H))}catch(I){Q(I)}}:n}
var T,Q,m=new K(function(a,n){T=a;Q=n});
this.callWhenSettled_(q(X,T),q(J,Q));return m};
K.prototype.catch=function(X){return this.then(void 0,X)};
K.prototype.callWhenSettled_=function(X,J){function q(){switch(T.state_){case 1:X(T.result_);break;case 2:J(T.result_);break;default:throw Error("p`"+T.state_);}}
var T=this;this.onSettledCallbacks_==null?G.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};
K.resolve=C;K.reject=function(X){return new K(function(J,q){q(X)})};
K.race=function(X){return new K(function(J,q){for(var T=_.b(X),Q=T.next();!Q.done;Q=T.next())C(Q.value).callWhenSettled_(J,q)})};
K.all=function(X){var J=_.b(X),q=J.next();return q.done?C([]):new K(function(T,Q){function m(H){return function(I){a[H]=I;n--;n==0&&T(a)}}
var a=[],n=0;do a.push(void 0),n++,C(q.value).callWhenSettled_(m(a.length-1),Q),q=J.next();while(!q.done)})};
return K});
var b5=function(e,z,C){if(e==null)throw new TypeError("q`"+C);if(z instanceof RegExp)throw new TypeError("r`"+C);return e+""};
zk("String.prototype.startsWith",function(e){return e?e:function(z,C){var w=b5(this,z,"startsWith"),K=w.length,G=z.length;C=Math.max(0,Math.min(C|0,w.length));for(var X=0;X<G&&C<K;)if(w[C++]!=z[X++])return!1;return X>=G}});
zk("Object.setPrototypeOf",function(e){return e||Cb});
zk("Symbol.dispose",function(e){return e?e:Symbol("s")});
zk("SuppressedError",function(e){function z(C,w,K){if(!(this instanceof z))return new z(C,w,K);K=Error(K);"stack"in K&&(this.stack=K.stack);this.message=K.message;this.error=C;this.suppressed=w}
if(e)return e;_.U(z,Error);z.prototype.name="SuppressedError";return z});
zk("Array.from",function(e){return e?e:function(z,C,w){C=C!=null?C:function(J){return J};
var K=[],G=typeof Symbol!="undefined"&&Symbol.iterator&&z[Symbol.iterator];if(typeof G=="function"){z=G.call(z);for(var X=0;!(G=z.next()).done;)K.push(C.call(w,G.value,X++))}else for(G=z.length,X=0;X<G;X++)K.push(C.call(w,z[X],X));return K}});
var Jkh=function(e,z,C){e instanceof String&&(e=String(e));for(var w=e.length,K=0;K<w;K++){var G=e[K];if(z.call(C,G,K,e))return{i:K,v:G}}return{i:-1,v:void 0}};
zk("Array.prototype.find",function(e){return e?e:function(z,C){return Jkh(this,z,C).v}});
zk("WeakMap",function(e){function z(){}
function C(q){var T=typeof q;return T==="object"&&q!==null||T==="function"}
function w(q){if(!oP(q,G)){var T=new z;ie5(q,G,{value:T})}}
function K(q){var T=Object[q];T&&(Object[q]=function(Q){if(Q instanceof z)return Q;Object.isExtensible(Q)&&w(Q);return T(Q)})}
if(function(){if(!e||!Object.seal)return!1;try{var q=Object.seal({}),T=Object.seal({}),Q=new e([[q,2],[T,3]]);if(Q.get(q)!=2||Q.get(T)!=3)return!1;Q.delete(q);Q.set(T,4);return!Q.has(q)&&Q.get(T)==4}catch(m){return!1}}())return e;
var G="$jscomp_hidden_"+Math.random();K("freeze");K("preventExtensions");K("seal");var X=0,J=function(q){this.JSC$8927_id_=(X+=Math.random()+1).toString();if(q){q=_.b(q);for(var T;!(T=q.next()).done;)T=T.value,this.set(T[0],T[1])}};
J.prototype.set=function(q,T){if(!C(q))throw Error("t");w(q);if(!oP(q,G))throw Error("u`"+q);q[G][this.JSC$8927_id_]=T;return this};
J.prototype.get=function(q){return C(q)&&oP(q,G)?q[G][this.JSC$8927_id_]:void 0};
J.prototype.has=function(q){return C(q)&&oP(q,G)&&oP(q[G],this.JSC$8927_id_)};
J.prototype.delete=function(q){return C(q)&&oP(q,G)&&oP(q[G],this.JSC$8927_id_)?delete q[G][this.JSC$8927_id_]:!1};
return J});
zk("Map",function(e){if(function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var J=Object.seal({x:4}),q=new e(_.b([[J,"s"]]));if(q.get(J)!="s"||q.size!=1||q.get({x:4})||q.set({x:4},"t")!=q||q.size!=2)return!1;var T=q.entries(),Q=T.next();if(Q.done||Q.value[0]!=J||Q.value[1]!="s")return!1;Q=T.next();return Q.done||Q.value[0].x!=4||Q.value[1]!="t"||!T.next().done?!1:!0}catch(m){return!1}}())return e;
var z=new WeakMap,C=function(J){this[0]={};this[1]=G();this.size=0;if(J){J=_.b(J);for(var q;!(q=J.next()).done;)q=q.value,this.set(q[0],q[1])}};
C.prototype.set=function(J,q){J=J===0?0:J;var T=w(this,J);T.list||(T.list=this[0][T.id]=[]);T.entry?T.entry.value=q:(T.entry={next:this[1],previous:this[1].previous,head:this[1],key:J,value:q},T.list.push(T.entry),this[1].previous.next=T.entry,this[1].previous=T.entry,this.size++);return this};
C.prototype.delete=function(J){J=w(this,J);return J.entry&&J.list?(J.list.splice(J.index,1),J.list.length||delete this[0][J.id],J.entry.previous.next=J.entry.next,J.entry.next.previous=J.entry.previous,J.entry.head=null,this.size--,!0):!1};
C.prototype.clear=function(){this[0]={};this[1]=this[1].previous=G();this.size=0};
C.prototype.has=function(J){return!!w(this,J).entry};
C.prototype.get=function(J){return(J=w(this,J).entry)&&J.value};
C.prototype.entries=function(){return K(this,function(J){return[J.key,J.value]})};
C.prototype.keys=function(){return K(this,function(J){return J.key})};
C.prototype.values=function(){return K(this,function(J){return J.value})};
C.prototype.forEach=function(J,q){for(var T=this.entries(),Q;!(Q=T.next()).done;)Q=Q.value,J.call(q,Q[1],Q[0],this)};
C.prototype[Symbol.iterator]=C.prototype.entries;var w=function(J,q){var T=q&&typeof q;T=="object"||T=="function"?z.has(q)?T=z.get(q):(T=""+ ++X,z.set(q,T)):T="p_"+q;var Q=J[0][T];if(Q&&oP(J[0],T))for(J=0;J<Q.length;J++){var m=Q[J];if(q!==q&&m.key!==m.key||q===m.key)return{id:T,list:Q,index:J,entry:m}}return{id:T,list:Q,index:-1,entry:void 0}},K=function(J,q){var T=J[1];
return bos(function(){if(T){for(;T.head!=J[1];)T=T.previous;for(;T.next!=T.head;)return T=T.next,{done:!1,value:q(T)};T=null}return{done:!0,value:void 0}})},G=function(){var J={};
return J.previous=J.next=J.head=J},X=0;
return C});
zk("Set",function(e){if(function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var C=Object.seal({x:4}),w=new e(_.b([C]));if(!w.has(C)||w.size!=1||w.add(C)!=w||w.size!=1||w.add({x:4})!=w||w.size!=2)return!1;var K=w.entries(),G=K.next();if(G.done||G.value[0]!=C||G.value[1]!=C)return!1;G=K.next();return G.done||G.value[0]==C||G.value[0].x!=4||G.value[1]!=G.value[0]?!1:K.next().done}catch(X){return!1}}())return e;
var z=function(C){this.JSC$8941_map_=new Map;if(C){C=_.b(C);for(var w;!(w=C.next()).done;)this.add(w.value)}this.size=this.JSC$8941_map_.size};
z.prototype.add=function(C){C=C===0?0:C;this.JSC$8941_map_.set(C,C);this.size=this.JSC$8941_map_.size;return this};
z.prototype.delete=function(C){C=this.JSC$8941_map_.delete(C);this.size=this.JSC$8941_map_.size;return C};
z.prototype.clear=function(){this.JSC$8941_map_.clear();this.size=0};
z.prototype.has=function(C){return this.JSC$8941_map_.has(C)};
z.prototype.entries=function(){return this.JSC$8941_map_.entries()};
z.prototype.values=function(){return this.JSC$8941_map_.values()};
z.prototype.keys=z.prototype.values;z.prototype[Symbol.iterator]=z.prototype.values;z.prototype.forEach=function(C,w){var K=this;this.JSC$8941_map_.forEach(function(G){return C.call(w,G,G,K)})};
return z});
zk("Math.log2",function(e){return e?e:function(z){return Math.log(z)/Math.LN2}});
zk("Object.values",function(e){return e?e:function(z){var C=[],w;for(w in z)oP(z,w)&&C.push(z[w]);return C}});
zk("Object.is",function(e){return e?e:function(z,C){return z===C?z!==0||1/z===1/C:z!==z&&C!==C}});
zk("Array.prototype.includes",function(e){return e?e:function(z,C){var w=this;w instanceof String&&(w=String(w));var K=w.length;C=C||0;for(C<0&&(C=Math.max(C+K,0));C<K;C++){var G=w[C];if(G===z||Object.is(G,z))return!0}return!1}});
zk("String.prototype.includes",function(e){return e?e:function(z,C){return b5(this,z,"includes").indexOf(z,C||0)!==-1}});
zk("Object.entries",function(e){return e?e:function(z){var C=[],w;for(w in z)oP(z,w)&&C.push([w,z[w]]);return C}});
zk("Number.isFinite",function(e){return e?e:function(z){return typeof z!=="number"?!1:!isNaN(z)&&z!==Infinity&&z!==-Infinity}});
zk("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
zk("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
zk("Number.isInteger",function(e){return e?e:function(z){return Number.isFinite(z)?z===Math.floor(z):!1}});
zk("Number.isSafeInteger",function(e){return e?e:function(z){return Number.isInteger(z)&&Math.abs(z)<=Number.MAX_SAFE_INTEGER}});
zk("String.prototype.endsWith",function(e){return e?e:function(z,C){var w=b5(this,z,"endsWith");C===void 0&&(C=w.length);C=Math.max(0,Math.min(C|0,w.length));for(var K=z.length;K>0&&C>0;)if(w[--C]!=z[--K])return!1;return K<=0}});
var kgX=function(e,z){e instanceof String&&(e+="");var C=0,w=!1,K={next:function(){if(!w&&C<e.length){var G=C++;return{value:z(G,e[G]),done:!1}}w=!0;return{done:!0,value:void 0}}};
K[Symbol.iterator]=function(){return K};
return K};
zk("Array.prototype.entries",function(e){return e?e:function(){return kgX(this,function(z,C){return[z,C]})}});
zk("Math.trunc",function(e){return e?e:function(z){z=Number(z);if(isNaN(z)||z===Infinity||z===-Infinity||z===0)return z;var C=Math.floor(Math.abs(z));return z<0?-C:C}});
zk("Number.isNaN",function(e){return e?e:function(z){return typeof z==="number"&&isNaN(z)}});
zk("Array.prototype.keys",function(e){return e?e:function(){return kgX(this,function(z){return z})}});
zk("Array.prototype.values",function(e){return e?e:function(){return kgX(this,function(z,C){return C})}});
zk("Array.prototype.fill",function(e){return e?e:function(z,C,w){var K=this.length||0;C<0&&(C=Math.max(0,K+C));if(w==null||w>K)w=K;w=Number(w);w<0&&(w=Math.max(0,K+w));for(C=Number(C||0);C<w;C++)this[C]=z;return this}});
tpg("fill",function(e){return e?e:Array.prototype.fill});
zk("Object.fromEntries",function(e){return e?e:function(z){var C={};if(!(Symbol.iterator in z))throw new TypeError("v`"+z);z=z[Symbol.iterator].call(z);for(var w=z.next();!w.done;w=z.next()){w=w.value;if(Object(w)!==w)throw new TypeError("w");C[w[0]]=w[1]}return C}});
zk("String.prototype.replaceAll",function(e){return e?e:function(z,C){if(z instanceof RegExp&&!z.global)throw new TypeError("x");return z instanceof RegExp?this.replace(z,C):this.replace(new RegExp(String(z).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),C)}});
zk("Object.getOwnPropertySymbols",function(e){return e?e:function(){return[]}});
zk("String.prototype.repeat",function(e){return e?e:function(z){var C=b5(this,null,"repeat");if(z<0||z>1342177279)throw new RangeError("y");z|=0;for(var w="";z;)if(z&1&&(w+=C),z>>>=1)C+=C;return w}});
zk("Array.prototype.findIndex",function(e){return e?e:function(z,C){return Jkh(this,z,C).i}});
zk("Array.prototype.flatMap",function(e){return e?e:function(z,C){var w=[];Array.prototype.forEach.call(this,function(K,G){K=z.call(C,K,G,this);Array.isArray(K)?w.push.apply(w,K):w.push(K)});
return w}});
zk("String.prototype.codePointAt",function(e){return e?e:function(z){var C=b5(this,null,"codePointAt"),w=C.length;z=Number(z)||0;if(z>=0&&z<w){z|=0;var K=C.charCodeAt(z);if(K<55296||K>56319||z+1===w)return K;z=C.charCodeAt(z+1);return z<56320||z>57343?K:(K-55296)*1024+z+9216}}});
zk("String.fromCodePoint",function(e){return e?e:function(z){for(var C="",w=0;w<arguments.length;w++){var K=Number(arguments[w]);if(K<0||K>1114111||K!==Math.floor(K))throw new RangeError("z`"+K);K<=65535?C+=String.fromCharCode(K):(K-=65536,C+=String.fromCharCode(K>>>10&1023|55296),C+=String.fromCharCode(K&1023|56320))}return C}});
zk("String.prototype.trimLeft",function(e){function z(){return this.replace(/^[\s\xa0]+/,"")}
return e||z});
zk("String.prototype.trimStart",function(e){return e||String.prototype.trimLeft});
zk("String.prototype.padStart",function(e){return e?e:function(z,C){var w=b5(this,null,"padStart");z-=w.length;C=C!==void 0?String(C):" ";return(z>0&&C?C.repeat(Math.ceil(z/C.length)).substring(0,z):"")+w}});
zk("Promise.prototype.finally",function(e){return e?e:function(z){return this.then(function(C){return Promise.resolve(z()).then(function(){return C})},function(C){return Promise.resolve(z()).then(function(){throw C;
})})}});
zk("Math.imul",function(e){return e?e:function(z,C){z=Number(z);C=Number(C);var w=z&65535,K=C&65535;return w*K+((z>>>16&65535)*K+w*(C>>>16&65535)<<16>>>0)|0}});
zk("Object.hasOwn",function(e){return e?e:function(z,C){return Object.prototype.hasOwnProperty.call(z,C)}});
zk("Math.sign",function(e){return e?e:function(z){z=Number(z);return z===0||isNaN(z)?z:z>0?1:-1}});
zk("Array.prototype.flat",function(e){return e?e:function(z){z=z===void 0?1:z;var C=[];Array.prototype.forEach.call(this,function(w){Array.isArray(w)&&z>0?(w=Array.prototype.flat.call(w,z-1),C.push.apply(C,w)):C.push(w)});
return C}});
zk("String.raw",function(e){return e?e:function(z,C){z=pwm(z);for(var w=z.raw,K=w.length,G="",X=0;X<K;++X)G+=w[X],X+1<K&&X+1<arguments.length&&(G+=String(arguments[X+1]));return G}});
zk("WeakSet",function(e){if(function(){if(!e||!Object.seal)return!1;try{var C=Object.seal({}),w=Object.seal({}),K=new e([C]);if(!K.has(C)||K.has(w))return!1;K.delete(C);K.add(w);return!K.has(C)&&K.has(w)}catch(G){return!1}}())return e;
var z=function(C){this.JSC$8955_map_=new WeakMap;if(C){C=_.b(C);for(var w;!(w=C.next()).done;)this.add(w.value)}};
z.prototype.add=function(C){this.JSC$8955_map_.set(C,!0);return this};
z.prototype.has=function(C){return this.JSC$8955_map_.has(C)};
z.prototype.delete=function(C){return this.JSC$8955_map_.delete(C)};
return z});
zk("Reflect.ownKeys",function(e){return e?e:function(z){var C=[],w=Object.getOwnPropertyNames(z);z=Object.getOwnPropertySymbols(z);for(var K=0;K<w.length;K++)(w[K].substring(0,14)=="jscomp_symbol_"?z:C).push(w[K]);return C.concat(z)}});
zk("Object.getOwnPropertyDescriptors",function(e){return e?e:function(z){for(var C={},w=Reflect.ownKeys(z),K=0;K<w.length;K++)C[w[K]]=Object.getOwnPropertyDescriptor(z,w[K]);return C}});
zk("Promise.allSettled",function(e){function z(w){return{status:"fulfilled",value:w}}
function C(w){return{status:"rejected",reason:w}}
return e?e:function(w){var K=this;w=Array.from(w,function(G){return K.resolve(G).then(z,C)});
return K.all(w)}});
zk("Number.parseInt",function(e){return e||parseInt});
var qEo=function(e,z,C){e instanceof String&&(e=String(e));for(var w=e.length-1;w>=0;w--){var K=e[w];if(z.call(C,K,w,e))return{i:w,v:K}}return{i:-1,v:void 0}};
zk("Array.prototype.findLastIndex",function(e){return e?e:function(z,C){return qEo(this,z,C).i}});
tpg("findLastIndex",function(e){return e?e:function(z,C){return qEo(this,z,C).i}});
_._DumpException=window._DumpException||function(e){throw e;};
window._DumpException=_._DumpException;var x56=window.ytcsi;x56&&typeof x56.tick==="function"&&x56.tick("rses_dpj");var TLU,XX,Jd,kd,$56,l8g,QmC,m5a,Rb,a8L;TLU=TLU||{};_.wL=this||self;_.lM=function(e,z,C){e=e.split(".");C=C||_.wL;for(var w;e.length&&(w=e.shift());)e.length||z===void 0?C[w]&&C[w]!==Object.prototype[w]?C=C[w]:C=C[w]={}:C[w]=z};
XX=function(e,z){var C=_.pd("WIZ_global_data.oxN3nb");e=C&&C[e];return e!=null?e:z};
Jd=_.wL._F_toggles_default_kevlar_base||[];kd=function(){};
kd.get=function(){return null};
_.kV4=null;_.pd=function(e,z){e=e.split(".");z=z||_.wL;for(var C=0;C<e.length;C++)if(z=z[e[C]],z==null)return null;return z};
_.qI=function(e){e.instance_=void 0;e.getInstance=function(){return e.instance_?e.instance_:e.instance_=new e}};
_.zL=function(e){var z=typeof e;return z!="object"?z:e?Array.isArray(e)?"array":z:"null"};
_.B1=function(e){var z=_.zL(e);return z=="array"||z=="object"&&typeof e.length=="number"};
_.gL=function(e){var z=typeof e;return z=="object"&&e!=null||z=="function"};
_.c1=function(e){return Object.prototype.hasOwnProperty.call(e,$56)&&e[$56]||(e[$56]=++l8g)};
$56="closure_uid_"+(Math.random()*1E9>>>0);l8g=0;QmC=function(e,z,C){return e.call.apply(e.bind,arguments)};
m5a=function(e,z,C){if(!e)throw Error();if(arguments.length>2){var w=Array.prototype.slice.call(arguments,2);return function(){var K=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(K,w);return e.apply(z,K)}}return function(){return e.apply(z,arguments)}};
_.uZ=function(e,z,C){_.uZ=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?QmC:m5a;return _.uZ.apply(null,arguments)};
_.xk=function(e,z){var C=Array.prototype.slice.call(arguments,1);return function(){var w=C.slice();w.push.apply(w,arguments);return e.apply(this,w)}};
_.xd=function(){return Date.now()};
Rb=function(e){return e};
_.Tk=function(e,z){function C(){}
C.prototype=z.prototype;e.superClass_=z.prototype;e.prototype=new C;e.prototype.constructor=e;e.base=function(w,K,G){for(var X=Array(arguments.length-2),J=2;J<arguments.length;J++)X[J-2]=arguments[J];return z.prototype[K].apply(w,X)}};
a8L=function(e){return e};var nNL,Mhh;_.d=function(e,z,C,w){var K=arguments.length,G=K<3?z:w===null?w=Object.getOwnPropertyDescriptor(z,C):w,X;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(e,z,C,w);else for(var J=e.length-1;J>=0;J--)if(X=e[J])G=(K<3?X(G):K>3?X(z,C,G):X(z,C))||G;K>3&&G&&Object.defineProperty(z,C,G)};
_.B=function(e,z){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,z)};
nNL=function(e,z){if(z!==null&&z!==void 0){if(typeof z!=="object"&&typeof z!=="function")throw new TypeError("A");if(C===void 0){if(!Symbol.dispose)throw new TypeError("C");var C=z[Symbol.dispose]}if(typeof C!=="function")throw new TypeError("D");e.stack.push({value:z,dispose:C,async:!1})}return z};
Mhh=function(e){function z(G){e.error=e.hasError?new SuppressedError(G,e.error,"An error was suppressed during disposal."):G;e.hasError=!0}
function C(){for(;w=e.stack.pop();)try{if(!w.async&&K===1)return K=0,e.stack.push(w),Promise.resolve().then(C);if(w.dispose){var G=w.dispose.call(w.value);if(w.async)return K|=2,Promise.resolve(G).then(C,function(X){z(X);return C()})}else K|=1}catch(X){z(X)}if(K===1)return e.hasError?Promise.reject(e.error):Promise.resolve();
if(e.hasError)throw e.error;}
var w,K=0;C()};var rka="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");es1()&&rka.push("details:not(:has(summary))");var Cgo=rka.join(",");_.Tk(_.eh,Error);_.eh.prototype.name="CustomError";var Hoc;var U5a=void 0,vNg,I8a=typeof TextDecoder!=="undefined",kgg,Jkm=typeof String.prototype.isWellFormed==="function",X15=typeof TextEncoder!=="undefined";var W7S;_.V4=function(e){for(var z=[],C=0,w=0;w<e.length;w++){var K=e.charCodeAt(w);K<128?z[C++]=K:(K<2048?z[C++]=K>>6|192:((K&64512)==55296&&w+1<e.length&&(e.charCodeAt(w+1)&64512)==56320?(K=65536+((K&1023)<<10)+(e.charCodeAt(++w)&1023),z[C++]=K>>18|240,z[C++]=K>>12&63|128):z[C++]=K>>12|224,z[C++]=K>>6&63|128),z[C++]=K&63|128)}return z};
W7S=function(e){for(var z=[],C=0,w=0;C<e.length;){var K=e[C++];if(K<128)z[w++]=String.fromCharCode(K);else if(K>191&&K<224){var G=e[C++];z[w++]=String.fromCharCode((K&31)<<6|G&63)}else if(K>239&&K<365){G=e[C++];var X=e[C++],J=e[C++];K=((K&7)<<18|(G&63)<<12|(X&63)<<6|J&63)-65536;z[w++]=String.fromCharCode(55296+(K>>10));z[w++]=String.fromCharCode(56320+(K&1023))}else G=e[C++],X=e[C++],z[w++]=String.fromCharCode((K&15)<<12|(G&63)<<6|X&63)}return z.join("")};var xN=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},Pgo=/&/g,Rso=/</g,L74=/>/g,hsU=/"/g,Ooh=/'/g,ENo=/\x00/g,F7Y=/[\x00&<>"']/;var $d=!!(Jd[0]>>17&1),VhS=!!(Jd[0]&4096),f8h=!!(Jd[0]>>18&1),SEU=!!(Jd[0]&8),u4X=!!(Jd[0]&2),d5U=!!(Jd[0]&4),D5S=!!(Jd[0]&16),ioC=!!(Jd[0]&256),NLg=!!(Jd[0]&32);var m7,smo,BLa,thC,RZ4,Hv8;m7=$d?f8h:XX(610401301,!1);smo=$d?SEU:XX(772657768,!1);BLa=$d?u4X:XX(513659523,!1);thC=$d?VhS||!d5U:XX(568333945,!0);RZ4=$d?D5S:XX(1331761403,!1);Hv8=$d?VhS||!ioC:XX(748402147,!0);_.l5=$d?NLg:XX(824648567,!1);var no,gN6=_.wL.navigator;no=gN6?gN6.userAgentData||null:null;var JX;_.V1=function(e,z){return Array.prototype.indexOf.call(e,z,void 0)};
_.oX=function(e,z,C){Array.prototype.forEach.call(e,z,C)};
_.Q8=function(e,z,C){return Array.prototype.filter.call(e,z,C)};
_.i4=function(e,z,C){return Array.prototype.map.call(e,z,C)};
JX=function(e,z,C){return Array.prototype.some.call(e,z,C)};
_.te1=function(e,z,C){return Array.prototype.every.call(e,z,C)};var mD=function(e){mD[" "](e);return e};
mD[" "]=function(){};
var NeN=function(e,z){try{return mD(e[z]),!0}catch(C){}return!1},nj8=function(e,z,C,w){w=w?w(z):z;
return Object.prototype.hasOwnProperty.call(e,w)?e[w]:e[w]=C(z)};var jms,xj,yk6,cka,Zos,p1Y,pv5,eCS,zCU,Co4,b1g,Kcs,oLh,Xac,J46,kXa;_.UP1=function(){return _.wL.navigator||null};
jms=$5L();_.aP=l8o();xj=rL("Edge");yk6=xj||_.aP;_.nb=rL("Gecko")&&!(_.q5(_.Q1(),"WebKit")&&!rL("Edge"))&&!(rL("Trident")||rL("MSIE"))&&!rL("Edge");_.MI=_.q5(_.Q1(),"WebKit")&&!rL("Edge");cka=_.MI&&rL("Mobile");_.AkC=_.vNo();Zos=_.I81();p1Y=(Rm()?no.platform==="Linux":rL("Linux"))||_.W7h();pv5=_.Ho7();eCS=U51();zCU=rL("iPad");Co4=rL("iPod");_.wac=_.Lo();b1g=_.q5(_.Q1(),"KaiOS");Kcs=function(){var e=_.wL.document;return e?e.documentMode:void 0};
a:{var GXS="",YUa=function(){var e=_.Q1();if(_.nb)return/rv:([^\);]+)(\)|;)/.exec(e);if(xj)return/Edge\/([\d\.]+)/.exec(e);if(_.aP)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e);if(_.MI)return/WebKit\/(\S+)/.exec(e);if(jms)return/(?:Version)[ \/]?(\S+)/.exec(e)}();
YUa&&(GXS=YUa?YUa[1]:"");if(_.aP){var bgY=Kcs();if(bgY!=null&&bgY>parseFloat(GXS)){oLh=String(bgY);break a}}oLh=GXS}Xac=oLh;J46={};_.r4=function(e){return nj8(J46,e,function(){return _.Tg(Xac,e)>=0})};
if(_.wL.document&&_.aP){var qUo=Kcs();kXa=qUo?qUo:parseInt(Xac,10)||void 0}else kXa=void 0;_.xYX=kXa;var C7s,wHm,T6T;_.HW=UE();C7s=U51()||rL("iPod");wHm=rL("iPad");T6T=_.a8N();_.U7=_.W1();_.p0=_.m51()&&!_.Lo();var $Ya,vW,Xog,G$1,QhU,lTa;$Ya={};vW=null;Xog=_.nb||_.MI||typeof _.wL.btoa=="function";_.FY=function(e,z){z===void 0&&(z=0);lTa();z=$Ya[z];for(var C=Array(Math.floor(e.length/3)),w=z[64]||"",K=0,G=0;K<e.length-2;K+=3){var X=e[K],J=e[K+1],q=e[K+2],T=z[X>>2];X=z[(X&3)<<4|J>>4];J=z[(J&15)<<2|q>>6];q=z[q&63];C[G++]=T+X+J+q}T=0;q=w;switch(e.length-K){case 2:T=e[K+1],q=z[(T&15)<<2]||w;case 1:e=e[K],C[G]=z[e>>2]+z[(e&3)<<4|T>>4]+q+w}return C.join("")};
G$1=function(e){var z="";QhU(e,function(C){z+=String.fromCharCode(C)});
return z};
_.u8g=function(e){var z=[];QhU(e,function(C){z.push(C)});
return z};
_.po=function(e){var z=e.length,C=z*3/4;C%3?C=Math.floor(C):_.X4("=.",e[z-1])&&(C=_.X4("=.",e[z-2])?C-2:C-1);var w=new Uint8Array(C),K=0;QhU(e,function(G){w[K++]=G});
return K!==C?w.subarray(0,K):w};
QhU=function(e,z){function C(q){for(;w<e.length;){var T=e.charAt(w++),Q=vW[T];if(Q!=null)return Q;if(!_.bg(T))throw Error("H`"+T);}return q}
lTa();for(var w=0;;){var K=C(-1),G=C(0),X=C(64),J=C(64);if(J===64&&K===-1)break;z(K<<2|G>>4);X!=64&&(z(G<<4&240|X>>2),J!=64&&z(X<<6&192|J))}};
lTa=function(){if(!vW){vW={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),z=["+/=","+/","-_=","-_.","-_"],C=0;C<5;C++){var w=e.concat(z[C].split(""));$Ya[C]=w;for(var K=0;K<w.length;K++){var G=w[K];vW[G]===void 0&&(vW[G]=K)}}}};var Zo4=typeof Uint8Array!=="undefined",ios=!_.aP&&typeof btoa==="function",NLo=/[-_.]/g,d5E={"-":"+",_:"/",".":"="},Rh={};var Wa,aTL;Wa=function(e,z){if(z!==Rh)throw Error("J");this.JSC$8989_value_=e;if(e!=null&&e.length===0)throw Error("I");};
_.h4=function(){return mYU||(mYU=new Wa(null,Rh))};
aTL=function(e){return new Uint8Array(tEg(e)||0)};
Wa.prototype.isEmpty=function(){return this.JSC$8989_value_==null};
Wa.prototype.sizeBytes=function(){var e=tEg(this);return e?e.length:0};
var tEg=function(e){if(Rh!==Rh)throw Error("J");var z=e.JSC$8989_value_;z==null||Zo4&&z!=null&&z instanceof Uint8Array||(typeof z==="string"?z=smg(z):(_.zL(z),z=null));return z==null?z:e.JSC$8989_value_=z},mYU;var ths=void 0;var oh=typeof Symbol==="function"&&typeof Symbol()==="symbol",nL4=Cg("jas",void 0,!0),igo=Cg(void 0,"0di"),KY=Cg(void 0,"1oa"),hC=Cg(void 0,Symbol()),K5h=Cg(void 0,"0ub"),GLo=Cg(void 0,"0ubs"),Plg=Cg(void 0,"0ubsb"),vZs=Cg(void 0,"0actk"),vl=Cg("m_m","messagePrototypeMarker",!0),QbE=Cg(void 0,"vps"),zW8=Cg();var ykL,jm4,tC,MSC;ykL={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};jm4=Object.defineProperties;_.GX=oh?nL4:"internalArrayState";MSC=[];Xs(MSC,7);tC=Object.freeze(MSC);var Ib={},MY={},r4L=function(e,z,C){this.iterable=e;this.mapper=z;this.thisArg=C};
r4L.prototype.next=function(){var e=this.iterable.next();e.done||(e.value=this.mapper.call(this.thisArg,e.value));return e};
r4L.prototype[Symbol.iterator]=function(){return this};
var Hga=Object.freeze({}),Fs={};_.UYs=fg(function(e){return e!==null&&e!==void 0});var Kc4=fg(function(e){return typeof e==="number"}),wa7=fg(function(e){return typeof e==="string"}),GXh=fg(function(e){return typeof e==="boolean"}),vLc=fg(function(e){return e!=null&&typeof e==="object"&&typeof e.then==="function"}),jXm=fg(function(e){return typeof e==="function"}),vC=fg(function(e){return!!e&&(typeof e==="object"||typeof e==="function")});var oLm=typeof _.wL.BigInt==="function"&&typeof _.wL.BigInt(0)==="bigint";var VS4=fg(function(e){return oLm?e>=ITg&&e<=Wc6:e[0]==="-"?YU1(e,Pos):YU1(e,RCS)}),Pos=Number.MIN_SAFE_INTEGER.toString(),ITg=oLm?BigInt(Number.MIN_SAFE_INTEGER):void 0,RCS=Number.MAX_SAFE_INTEGER.toString(),Wc6=oLm?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Lcg=typeof Uint8Array.prototype.slice==="function",uo=0,d6=0,J4L;var qa,l$,Cv,$Z,MSs;qa=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Qo=typeof BigInt==="function"?BigInt.asUintN:void 0;l$=Number.isSafeInteger;Cv=Number.isFinite;$Z=Math.trunc;MSs=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var mah={};var Zgs={},hCo=function(){try{var e=function(){return grm(Map,[],this.constructor)};
_.U(e,Map);mD(new e);return!1}catch(z){return!0}}(),IP=function(){this.JSC$9008_map_=new Map};
_.Y=IP.prototype;_.Y.get=function(e){return this.JSC$9008_map_.get(e)};
_.Y.set=function(e,z){this.JSC$9008_map_.set(e,z);this.size=this.JSC$9008_map_.size;return this};
_.Y.delete=function(e){e=this.JSC$9008_map_.delete(e);this.size=this.JSC$9008_map_.size;return e};
_.Y.clear=function(){this.JSC$9008_map_.clear();this.size=this.JSC$9008_map_.size};
_.Y.has=function(e){return this.JSC$9008_map_.has(e)};
_.Y.entries=function(){return this.JSC$9008_map_.entries()};
_.Y.keys=function(){return this.JSC$9008_map_.keys()};
_.Y.values=function(){return this.JSC$9008_map_.values()};
_.Y.forEach=function(e,z){return this.JSC$9008_map_.forEach(e,z)};
IP.prototype[Symbol.iterator]=function(){return this.entries()};
var WW=function(){if(hCo)return Object.setPrototypeOf(IP.prototype,Map.prototype),Object.defineProperties(IP.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),IP;var e=function(){return grm(Map,[],this.constructor)};
_.U(e,Map);return e}(),Pl=function(e,z,C,w){C=C===void 0?gL1:C;
w=w===void 0?gL1:w;var K=WW.call(this)||this;K.arrayState=e[_.GX]|0;K.valueCtor=z;K.keyToApi=C;K.valueToApi=K.valueCtor?y4N:w;for(var G=0;G<e.length;G++){var X=e[G],J=C(X[0],!1,!0),q=X[1];z?q===void 0&&(q=null):q=w(X[1],!1,!0,void 0,void 0,K.arrayState);WW.prototype.set.call(K,J,q)}return K};
_.U(Pl,WW);var OgL=function(e){if(e.arrayState&2)throw Error("N");},l3N=function(e,z){return xL(Array.from(WW.prototype.entries.call(e),z))};
_.Y=Pl.prototype;_.Y.clear=function(){OgL(this);WW.prototype.clear.call(this)};
_.Y.delete=function(e){OgL(this);return WW.prototype.delete.call(this,this.keyToApi(e,!0,!1))};
_.Y.entries=function(){if(this.valueCtor){var e=WW.prototype.keys.call(this);e=new r4L(e,c4h,this)}else e=WW.prototype.entries.call(this);return e};
_.Y.values=function(){if(this.valueCtor){var e=WW.prototype.keys.call(this);e=new r4L(e,Pl.prototype.get,this)}else e=WW.prototype.values.call(this);return e};
_.Y.forEach=function(e,z){this.valueCtor?WW.prototype.forEach.call(this,function(C,w,K){e.call(z,K.get(w),w,K)}):WW.prototype.forEach.call(this,e,z)};
_.Y.set=function(e,z){OgL(this);e=this.keyToApi(e,!0,!1);return e==null?this:z==null?(WW.prototype.delete.call(this,e),this):WW.prototype.set.call(this,e,this.valueToApi(z,!0,!0,this.valueCtor,!1,this.arrayState))};
_.Y.has=function(e){return WW.prototype.has.call(this,this.keyToApi(e,!1,!1))};
_.Y.get=function(e){e=this.keyToApi(e,!1,!1);var z=WW.prototype.get.call(this,e);if(z!==void 0){var C=this.valueCtor;return C?(C=this.valueToApi(z,!1,!0,C,this.callToMutableOnAccess,this.arrayState),C!==z&&WW.prototype.set.call(this,e,C),C):z}};
Pl.prototype[Symbol.iterator]=function(){return this.entries()};
Pl.prototype.toJSON=void 0;var A4g;var JC4=function(){},bv1=function(e,z){for(var C in e)!isNaN(C)&&z(e,+C,e[C])},kLm=function(e){var z=new JC4;
bv1(e,function(C,w,K){z[w]=ya(K)});
z.reviveUnknownFields=e.reviveUnknownFields;return z},C$E={reviveIntoImmutable:!0};var XlE;var a3E,nZ4;var ELs,Z3,hX,fC,FcX,FX,Fe,VSs,fTg,u5,SUh,d4,NI,s7;ELs=_.SS(0);_.PW={};_.RP=function(e,z,C,w,K){z=Z3(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z,C,K);if(z!==null||w&&e.noLegacyNull!==MY)return z};
Z3=function(e,z,C,w){if(z===-1)return null;var K=z+(C?0:-1),G=e.length-1;if(!(G<1+(C?0:-1))){if(K>=G){var X=e[G];if(X!=null&&typeof X==="object"&&X.constructor===Object){C=X[z];var J=!0}else if(K===G)C=X;else return}else C=e[K];if(w&&C!=null){w=w(C);if(w==null)return w;if(!Object.is(w,C))return J?X[z]=w:e[K]=w,w}return C}};
_.UR=function(e,z,C,w){i$(e);var K=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Bl(K,K[_.GX]|0,z,C,w);return e};
_.Lb=function(e,z,C){e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return DaL(e,e[_.GX]|0,z,C)!==void 0};
_.hd=function(e,z,C,w){var K=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return DaL(K,K[_.GX]|0,z,fC(e,w,C))!==void 0};
_.T5=function(e){return e===Hga?2:4};
_.O7=function(e,z){e=_.RP(e,z,void 0,void 0,F5k);return e==null?_.h4():e};
hX=function(e,z,C,w){i$(e);var K=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=K[_.GX]|0;if(w==null){var X=Sqs(K);if(uYg(X,K,G,C)===z)X.set(C,0);else return e}else G=dao(K,G,C,z);Bl(K,G,z,w);return e};
_.Mg=function(e,z,C,w){var K=e[_.GX]|0,G=Va(K);K=dao(e,K,C,z,G);Bl(e,K,z,w,G)};
fC=function(e,z,C){return _.E7(e,z)===C?C:-1};
_.E7=function(e,z){e=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uYg(Sqs(e),e,void 0,z,void 0)};
FcX=function(e,z,C){var w=e[_.GX]|0,K=Va(w),G=Z3(e,C,K);if(G!=null&&G[vl]===Ib){if(!va(G))return D3(G),G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var X=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(G)&&(X=G);if(X){var J=X[_.GX]|0;J&2&&(X=df(X,J))}X=SE(X,z);X!==G&&Bl(e,w,C,X,K);return X};
_.ra=function(e,z,C,w){var K=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=K[_.GX]|0;z=DaL(K,G,z,C,w);if(z==null)return z;G=K[_.GX]|0;if(!va(e,G)){var X=jhs(z);X!==z&&(D3(e)&&(K=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=K[_.GX]|0),z=X,G=Bl(K,G,C,z,w),Na(K,G))}return z};
_.x2=function(e,z,C,w){var K=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return iv8(e,K,K[_.GX]|0,z,C,w,!1,!0)};
_.PL=function(e,z,C,w){C=Nfk(C);_.UR(e,z,C,w);C&&!va(C)&&Na(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return e};
_.RT=function(e,z,C,w){w=Nfk(w);hX(e,z,C,w);w&&!va(w)&&Na(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return e};
FX=function(e,z,C){i$(e);var w=e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=w[_.GX]|0;if(C==null)return Bl(w,K,z),e;for(var G=C===tC?7:C[_.GX]|0,X=G,J=AC(G),q=J||Object.isFrozen(C),T=!0,Q=!0,m=0;m<C.length;m++){var a=C[m];J||(a=va(a),T&&(T=!a),Q&&(Q=a))}J||(G=T?13:5,G=Q?G&-4097:G|4096);q&&G===X||(C=ya(C),X=0,G=yo(G,K));G!==X&&Xs(C,G);K=Bl(w,K,z,C);2&G||!(4096&G||16&G)||Na(w,K);return e};
Fe=function(e,z,C,w){BfN(e,z,C,w);return e};
VSs=function(e,z,C){BfN(e,z,V8,void 0,C,1,!0);return e};
_.fb=function(e,z,C){e=_.RP(e,z,void 0,C);z=typeof e;e=e==null?e:z==="bigint"?_.SS((0,_.Qo)(64,e)):_.Kv(e)?z==="string"?_.Fcg(e):_.OgN(e):void 0;return e};
_.Sv=function(e,z){var C=C===void 0?!1:C;var w;return(w=_.nLk(_.RP(e,z)))!=null?w:C};
_.$2=function(e,z,C){C=C===void 0?0:C;var w;return(w=_.JC(_.RP(e,z)))!=null?w:C};
fTg=function(e,z){var C=C===void 0?0:C;e=_.Hg1(_.RP(e,z));return e!=null?e:C};
u5=function(e,z,C){C=C===void 0?ELs:C;var w;return(w=_.us7(_.RP(e,z)))!=null?w:C};
SUh=function(e){var z=z===void 0?ELs:z;var C;return(C=_.fb(e,23))!=null?C:z};
d4=function(e,z){var C=C===void 0?0:C;var w;return(w=_.RP(e,z,void 0,void 0,_.pg))!=null?w:C};
_.Ds=function(e,z,C,w){C=C===void 0?"":C;var K;return(K=_.Hl(_.RP(e,z,w)))!=null?K:C};
_.i5=function(e,z){var C=C===void 0?0:C;var w;return(w=_.YZ(_.RP(e,z)))!=null?w:C};
NI=function(e,z){var C=C===void 0?"0":C;e=SUm(_.RP(e,z),!0);return e!=null?e:C};
_.usc=function(e,z,C){e=_.cl(e,z,_.Hl,3,!0);p15(e,C);return e[C]};
s7=function(e,z,C){return _.Ds(e,fC(e,C,z))};
_.BW=function(e,z,C,w){return _.ra(e,z,fC(e,w,C),void 0)};
_.R4=function(e,z){return _.Hl(_.RP(e,z,void 0,_.PW))};
_.a4=function(e,z,C){return _.UR(e,z,aTN(C))};
_.Hr=function(e,z,C){return _.eg(e,z,aTN(C),!1)};
_.td=function(e,z,C){return _.UR(e,z,_.XY(C))};
_.uk=function(e,z,C){return _.UR(e,z,TL(C))};
_.Et=function(e,z,C){return _.UR(e,z,Ma(C))};
_.ZW=function(e,z,C,w){return _.eg(e,z,Ma(C),"",w)};
_.H5=function(e,z,C){return _.UR(e,z,C==null?C:_.GL(C))};
_.g4=function(e,z,C){return _.eg(e,z,C==null?C:_.GL(C),0)};var oT=function(e,z,C){this.buffer=e;if(C&&!z)throw Error();this.JSC$9020_isImmutable=z};var dYC=function(e,z,C,w){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9023_start_=0;this.init(e,z,C,w)},igg,jv,N6U,Ats,sha,B6s,tSL,gLa,QT4,DY6;
_.Y=dYC.prototype;_.Y.init=function(e,z,C,w){var K=w===void 0?{}:w;w=K.aliasBytesFields===void 0?!1:K.aliasBytesFields;K=K.treatNewDataAsImmutable===void 0?!1:K.treatNewDataAsImmutable;this.aliasBytesFields=w;this.treatNewDataAsImmutable=K;e&&(e=gZL(e,this.treatNewDataAsImmutable),this.bytes_=e.buffer,this.bytesAreImmutable_=e.JSC$9020_isImmutable,this.JSC$9023_start_=z||0,this.end_=C!==void 0?this.JSC$9023_start_+C:this.bytes_.length,this.cursor_=this.JSC$9023_start_)};
_.Y.free=function(){this.clear();DY6.length<100&&DY6.push(this)};
_.Y.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9023_start_=0;this.aliasBytesFields=!1};
_.Y.reset=function(){this.cursor_=this.JSC$9023_start_};
_.Y.atEnd=function(){return this.cursor_==this.end_};
_.nY=function(e,z){var C=0,w=0,K=0,G=e.bytes_,X=e.cursor_;do{var J=G[X++];C|=(J&127)<<K;K+=7}while(K<32&&J&128);if(K>32)for(w|=(J&127)>>4,K=3;K<32&&J&128;K+=7)J=G[X++],w|=(J&127)<<K;jv(e,X);if(!(J&128))return z(C>>>0,w>>>0);throw Error();};
igg=function(e){return _.nY(e,function(z,C){return lT1(z,C,T68)})};
jv=function(e,z){e.cursor_=z;if(z>e.end_)throw Error();};
_.y8=function(e){var z=e.bytes_,C=e.cursor_,w=z[C++],K=w&127;if(w&128&&(w=z[C++],K|=(w&127)<<7,w&128&&(w=z[C++],K|=(w&127)<<14,w&128&&(w=z[C++],K|=(w&127)<<21,w&128&&(w=z[C++],K|=w<<28,w&128&&z[C++]&128&&z[C++]&128&&z[C++]&128&&z[C++]&128&&z[C++]&128)))))throw Error();jv(e,C);return K};
_.cW=function(e){var z=e.bytes_,C=e.cursor_,w=z[C],K=z[C+1],G=z[C+2];z=z[C+3];jv(e,e.cursor_+4);return(w<<0|K<<8|G<<16|z<<24)>>>0};
N6U=function(e){var z=_.cW(e);e=_.cW(e);return qUg(z,e)};
Ats=function(e){var z=_.cW(e);e=_.cW(e);return xYg(z,e)};
sha=function(e){var z=_.cW(e);e=(z>>31)*2+1;var C=z>>>23&255;z&=8388607;return C==255?z?NaN:e*Infinity:C==0?e*1.401298464324817E-45*z:e*Math.pow(2,C-150)*(z+8388608)};
B6s=function(e){var z=_.cW(e),C=_.cW(e);e=(C>>31)*2+1;var w=C>>>20&2047;z=4294967296*(C&1048575)+z;return w==2047?z?NaN:e*Infinity:w==0?e*4.9E-324*z:e*Math.pow(2,w-1075)*(z+4503599627370496)};
tSL=function(e){for(var z=0,C=e.cursor_,w=C+10,K=e.bytes_;C<w;){var G=K[C++];z|=G;if((G&128)===0)return jv(e,C),!!(z&127)}throw Error();};
gLa=function(e,z){if(z<0)throw Error();var C=e.cursor_;z=C+z;if(z>e.end_)throw Error();e.cursor_=z;return C};
QT4=function(e,z){if(z==0)return _.h4();var C=gLa(e,z);e.aliasBytesFields&&e.bytesAreImmutable_?C=e.bytes_.subarray(C,C+z):(e=e.bytes_,z=C+z,C=C===z?new Uint8Array(0):Lcg?e.slice(C,z):new Uint8Array(e.subarray(C,z)));return C.length==0?_.h4():new Wa(C,Rh)};
DY6=[];var y4L=function(e,z,C,w){if(DY6.length){var K=DY6.pop();K.init(e,z,C,w);e=K}else e=new dYC(e,z,C,w);this.decoder_=e;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;jhC(this,w)},jhC=function(e,z){z=z===void 0?{}:z;
e.discardUnknownFields=z.discardUnknownFields===void 0?!1:z.discardUnknownFields},na1=function(e,z,C,w){if(c4S.length){var K=c4S.pop();
jhC(K,w);K.decoder_.init(e,z,C,w);return K}return new y4L(e,z,C,w)},Tw5,lyN,Ad,A4o,c4S;
y4L.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;c4S.length<100&&c4S.push(this)};
y4L.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Tw5=function(e){if(e.decoder_.atEnd())return!1;e.fieldCursor_=e.decoder_.cursor_;var z=_.y8(e.decoder_)>>>0,C=z>>>3;z&=7;if(!(z>=0&&z<=5))throw Error();if(C<1)throw Error();e.nextField_=C;e.nextWireType_=z;return!0};
lyN=function(e){switch(e.nextWireType_){case 0:e.nextWireType_!=0?lyN(e):tSL(e.decoder_);break;case 1:e=e.decoder_;jv(e,e.cursor_+8);break;case 2:if(e.nextWireType_!=2)lyN(e);else{var z=_.y8(e.decoder_)>>>0;e=e.decoder_;jv(e,e.cursor_+z)}break;case 5:e=e.decoder_;jv(e,e.cursor_+4);break;case 3:z=e.nextField_;do{if(!Tw5(e))throw Error();if(e.nextWireType_==4){if(e.nextField_!=z)throw Error();break}lyN(e)}while(1);break;default:throw Error();}};
Ad=function(e,z,C){var w=e.decoder_.end_,K=_.y8(e.decoder_)>>>0;K=e.decoder_.cursor_+K;var G=K-w;G<=0&&(e.decoder_.end_=K,C(z,e,void 0,void 0,void 0),G=K-e.decoder_.cursor_);if(G)throw Error();e.decoder_.cursor_=K;e.decoder_.end_=w;return z};
A4o=function(e){var z=_.y8(e.decoder_)>>>0;e=e.decoder_;var C=gLa(e,z);e=e.bytes_;if(I8a){var w=e,K;(K=vNg)||(K=vNg=new TextDecoder("utf-8",{fatal:!0}));z=C+z;w=C===0&&z===w.length?w:w.subarray(C,z);try{var G=K.decode(w)}catch(T){if(U5a===void 0){try{K.decode(new Uint8Array([128]))}catch(Q){}try{K.decode(new Uint8Array([97])),U5a=!0}catch(Q){U5a=!1}}!U5a&&(vNg=void 0);throw T;}}else{G=C;z=G+z;C=[];for(var X=null,J,q;G<z;)J=e[G++],J<128?C.push(J):J<224?G>=z?zg():(q=e[G++],J<194||(q&192)!==128?(G--,
zg()):C.push((J&31)<<6|q&63)):J<240?G>=z-1?zg():(q=e[G++],(q&192)!==128||J===224&&q<160||J===237&&q>=160||((K=e[G++])&192)!==128?(G--,zg()):C.push((J&15)<<12|(q&63)<<6|K&63)):J<=244?G>=z-2?zg():(q=e[G++],(q&192)!==128||(J<<28)+(q-144)>>30!==0||((K=e[G++])&192)!==128||((w=e[G++])&192)!==128?(G--,zg()):(J=(J&7)<<18|(q&63)<<12|(K&63)<<6|w&63,J-=65536,C.push((J>>10&1023)+55296,(J&1023)+56320))):zg(),C.length>=8192&&(X=bo4(X,C),C.length=0);G=bo4(X,C)}return G};
_.ZgC=function(e){var z=_.y8(e.decoder_)>>>0;return QT4(e.decoder_,z)};
_.paC=function(e,z,C){var w=_.y8(e.decoder_)>>>0;for(w=e.decoder_.cursor_+w;e.decoder_.cursor_<w;)C.push(z(e.decoder_))};
c4S=[];var eWU=function(e,z){this.JSC$9030_lo=e>>>0;this.JSC$9030_hi=z>>>0},F21=function(e){e=BigInt.asUintN(64,e);
return new eWU(Number(e&BigInt(4294967295)),Number(e>>BigInt(32)))},cC7=function(e){if(!e)return zWT||(zWT=new eWU(0,0));
if(!/^\d+$/.test(e))return null;t4(e);return new eWU(uo,d6)},zWT,Eao=function(e,z){this.JSC$9032_lo=e>>>0;
this.JSC$9032_hi=z>>>0},jbN=function(e){if(!e)return C$U||(C$U=new Eao(0,0));
if(!/^-?\d+$/.test(e))return null;t4(e);return new Eao(uo,d6)},C$U;var Zs=function(){this.JSC$9034_buffer_=[]},QL,aT,wlC;
Zs.prototype.length=function(){return this.JSC$9034_buffer_.length};
Zs.prototype.end=function(){var e=this.JSC$9034_buffer_;this.JSC$9034_buffer_=[];return e};
QL=function(e,z,C){for(;C>0||z>127;)e.JSC$9034_buffer_.push(z&127|128),z=(z>>>7|C<<25)>>>0,C>>>=7;e.JSC$9034_buffer_.push(z)};
aT=function(e,z){for(;z>127;)e.JSC$9034_buffer_.push(z&127|128),z>>>=7;e.JSC$9034_buffer_.push(z)};
_.fyh=function(e,z){if(z>=0)aT(e,z);else{for(var C=0;C<9;C++)e.JSC$9034_buffer_.push(z&127|128),z>>=7;e.JSC$9034_buffer_.push(1)}};
wlC=function(e,z){t4(z);$Y1(function(C,w){QL(e,C>>>0,w>>>0)})};
Zs.prototype.writeUint8=function(e){this.JSC$9034_buffer_.push(e>>>0&255)};
_.ll=function(e,z){e.JSC$9034_buffer_.push(z>>>0&255);e.JSC$9034_buffer_.push(z>>>8&255);e.JSC$9034_buffer_.push(z>>>16&255);e.JSC$9034_buffer_.push(z>>>24&255)};
Zs.prototype.writeInt8=function(e){this.JSC$9034_buffer_.push(e>>>0&255)};var K5S,ka,u21,iY1,ejE;K5S=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Zs};
ka=function(e,z){z.length!==0&&(e.blocks_.push(z),e.totalLength_+=z.length)};
_.oZs=function(e,z){_.Ty(e,z,2);z=e.encoder_.end();ka(e,z);z.push(e.totalLength_);return z};
_.GLg=function(e,z){var C=z.pop();for(C=e.totalLength_+e.encoder_.length()-C;C>127;)z.push(C&127|128),C>>>=7,e.totalLength_++;z.push(C);e.totalLength_++};
_.Ty=function(e,z,C){aT(e.encoder_,z*8+C)};
u21=function(e,z,C){if(C!=null)switch(ACh(C),_.Ty(e,z,1),typeof C){case "number":e=e.encoder_;bg5(C);_.ll(e,uo);_.ll(e,d6);break;case "bigint":C=F21(C);e=e.encoder_;z=C.JSC$9030_hi;_.ll(e,C.JSC$9030_lo);_.ll(e,z);break;default:C=cC7(C),e=e.encoder_,z=C.JSC$9030_hi,_.ll(e,C.JSC$9030_lo),_.ll(e,z)}};
iY1=function(e,z,C){_.Ty(e,z,2);aT(e.encoder_,C.length);ka(e,e.encoder_.end());ka(e,C)};
ejE=function(e,z,C,w){C!=null&&(z=_.oZs(e,z),w(C,e),_.GLg(e,z))};var Zv4,Yqa,bva,XlU,JCs,qqa,xa4,$a6,l3L;Zv4=Gy();Yqa=Gy();bva=Gy();XlU=Gy();JCs=Gy();_.kLh=Gy();_.pb=Gy();qqa=Gy();xa4=Gy();_.Tfh=Gy();$a6=Gy();l3L=Gy();_.QbU=Gy();_.maS=Gy();_.X2=function(e,z,C){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e,z,C)};
_.X2.prototype.toJSON=function(){return fv(this)};
_.X2.prototype.serialize=function(e){return JSON.stringify(fv(this,e))};
var CCs=function(e,z){if(z==null||z=="")return new e;z=JSON.parse(z);if(!Array.isArray(z))throw Error("V");return new e(Aks(z))};
_.X2.prototype.getExtension=function(e){oZ4(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e.fieldIndex);wls(this,e.fieldIndex);return e.ctor?e.isRepeated?e.getExtensionFn(this,e.ctor,e.fieldIndex,_.T5(),e.JSC$9045_hasMessageId):e.getExtensionFn(this,e.ctor,e.fieldIndex,e.JSC$9045_hasMessageId):e.isRepeated?e.getExtensionFn(this,e.fieldIndex,_.T5(),e.JSC$9045_hasMessageId):e.getExtensionFn(this,e.fieldIndex,e.defaultValue,e.JSC$9045_hasMessageId)};
_.X2.prototype.clone=function(){var e=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=e[_.GX]|0;return L57(this,e,z)?RWL(this,e,!0):new this.constructor(df(e,z,!1))};
_.X2.prototype[vl]=Ib;_.X2.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Ya=function(e,z,C){this.$$binaryReaderFn=e;this.$$binaryWriterFn=z;e=Rb(Zv4);this.$$isMsg=!!e&&C===e||!1},Gyo=pl5(function(e,z,C,w,K){if(e.nextWireType_!==2)return!1;
Ad(e,FcX(z,w,C),K);return!0},Cl8),YCE=pl5(function(e,z,C,w,K){if(e.nextWireType_!==2)return!1;
Ad(e,FcX(z,w,C),K);return!0},Cl8),rth=Symbol(),Jt1=Symbol(),xg1=Symbol(),vaN=Symbol(),mg4=Symbol(),wLh,K2h;var a3U,pL1,nZs,e2,MEU,rCc,HvT,Uas,CV,I36,W5T,P$h,RW6,L5c,Ova,EZa,F54,VEL,f3U,SqC;a3U=_.SS(0);pL1=function(e,z){var C=new K5S;IyE(e.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C,bl(rth,Mgs,HYg,z));ka(C,C.encoder_.end());e=new Uint8Array(C.totalLength_);z=C.blocks_;for(var w=z.length,K=0,G=0;G<w;G++){var X=z[G];e.set(X,K);K+=X.length}C.blocks_=[e];return e};
nZs=pl5(function(e,z,C,w,K){if(e.nextWireType_!==2)return!1;e=Ad(e,SE([void 0,void 0],w),K);e=ya(e);w=z[_.GX]|0;K=Va(w);if(w&2)throw Error();var G=Z3(z,C,K);if(G instanceof Pl)(G.arrayState&2)!=0?(G=l3N(G),G.push(e),Bl(z,w,C,G,K)):(z=G,C=z.keyToApi(e[0],!1,!0),e=e[1],e=z.valueCtor?e===void 0?null:e:z.valueToApi(e,!1,!0,void 0,!1,z.arrayState),WW.prototype.set.call(z,C,e));else if(Array.isArray(G)){var X=G[_.GX]|0;X&8192||Xs(G,X|=8192);X&2&&(G=VEN(G),Bl(z,w,C,G,K));G.push(e)}else Bl(z,w,C,xL([e]),
K);return!0},function(e,z,C,w,K){if(z instanceof Pl)z.forEach(function(J,q){ejE(e,C,SE([q,
J],w),K)});
else if(Array.isArray(z)){for(var G=0;G<z.length;G++){var X=z[G];Array.isArray(X)&&ejE(e,C,SE(X,w),K)}xL(z)}});
e2=_.qg(function(e,z,C){if(e.nextWireType_!==1)return!1;_.xa(z,C,B6s(e.decoder_));return!0},hjo,l3L);
MEU=_.qg(function(e,z,C,w){if(e.nextWireType_!==1)return!1;_.Mg(z,C,w,B6s(e.decoder_));return!0},hjo,l3L);
rCc=_.qg(function(e,z,C){if(e.nextWireType_!==5)return!1;_.xa(z,C,sha(e.decoder_));return!0},OY1,$a6);
HvT=_.L2s(function(e,z,C){if(e.nextWireType_!==5&&e.nextWireType_!==2)return!1;z=_.zy(z,z[_.GX]|0,C);e.nextWireType_==2?_.paC(e,sha,z):z.push(sha(e.decoder_));return!0},function(e,z,C){z=_.Rjh(_.pg,z,!0);
if(z!=null&&z.length)for(_.Ty(e,C,2),aT(e.encoder_,z.length*4),C=0;C<z.length;C++){var w=e.encoder_;kX1(z[C]);_.ll(w,uo)}},$a6);
Uas=_.qg(function(e,z,C,w){if(e.nextWireType_!==5)return!1;_.Mg(z,C,w,sha(e.decoder_));return!0},OY1,$a6);
_.vZC=_.qg(function(e,z,C){if(_.l5)return jT7(e,z,C);if(e.nextWireType_!==0)return!1;_.xa(z,C,_.nY(e.decoder_,_.sU));return!0},_.m2,_.pb);
_.zv=_.qg(function(e,z,C){if(_.l5)return jT7(e,z,C);if(e.nextWireType_!==0)return!1;_.xa(z,C,_.nY(e.decoder_,NY));return!0},_.m2,_.pb);
CV=_.qg(function(e,z,C){if(_.l5)return e.nextWireType_!==0?z=!1:(e=_.nY(e.decoder_,T68),_.xa(z,C,e===a3U?void 0:e),z=!0),z;if(e.nextWireType_!==0)return!1;e=_.nY(e.decoder_,NY);_.xa(z,C,e===0?void 0:e);return!0},_.m2,_.pb);
I36=_.qg(function(e,z,C,w){if(_.l5)return _.yt4(e,z,C,w);if(e.nextWireType_!==0)return!1;_.Mg(z,C,w,_.nY(e.decoder_,NY));return!0},_.m2,_.pb);
W5T=_.qg(function(e,z,C){if(_.l5)return ct1(e,z,C);if(e.nextWireType_!==0)return!1;_.xa(z,C,_.nY(e.decoder_,_.io));return!0},Vg5,qqa);
_.wJ=_.qg(function(e,z,C){if(_.l5)return ct1(e,z,C);if(e.nextWireType_!==0)return!1;_.xa(z,C,_.nY(e.decoder_,qUg));return!0},Vg5,qqa);
_.o8=_.qg(function(e,z,C){if(e.nextWireType_!==0)return!1;_.xa(z,C,_.y8(e.decoder_));return!0},SCh,XlU);
P$h=_.qg(function(e,z,C){if(e.nextWireType_!==0)return!1;e=_.y8(e.decoder_);_.xa(z,C,e===0?void 0:e);return!0},SCh,XlU);
RW6=_.qg(function(e,z,C,w){if(e.nextWireType_!==0)return!1;_.Mg(z,C,w,_.y8(e.decoder_));return!0},SCh,XlU);
L5c=_.qg(function(e,z,C){if(_.l5)return _.ZYm(e,z,C);if(e.nextWireType_!==1)return!1;_.xa(z,C,N6U(e.decoder_));return!0},_.dgE,_.Tfh);
_.hWX=_.L2s(function(e,z,C){if(_.l5)return e.nextWireType_!==1&&e.nextWireType_!==2?e=!1:(z=_.zy(z,z[_.GX]|0,C),e.nextWireType_==2?_.paC(e,Ats,z):z.push(Ats(e.decoder_)),e=!0),e;if(e.nextWireType_!==1&&e.nextWireType_!==2)return!1;z=_.zy(z,z[_.GX]|0,C);e.nextWireType_==2?_.paC(e,N6U,z):z.push(N6U(e.decoder_));return!0},function(e,z,C){z=_.Rjh(DYL,z,!1);
if(z!=null)for(var w=0;w<z.length;w++)u21(e,C,z[w])},_.Tfh);
_.Gv=_.qg(function(e,z,C){if(e.nextWireType_!==0)return!1;_.xa(z,C,tSL(e.decoder_));return!0},Dgm,Yqa);
_.Yl=_.qg(function(e,z,C){if(e.nextWireType_!==0)return!1;e=tSL(e.decoder_);_.xa(z,C,e===!1?void 0:e);return!0},Dgm,Yqa);
Ova=_.qg(function(e,z,C,w){if(e.nextWireType_!==0)return!1;_.Mg(z,C,w,tSL(e.decoder_));return!0},Dgm,Yqa);
_.bS=_.qg(function(e,z,C){if(e.nextWireType_!==2)return!1;_.xa(z,C,A4o(e));return!0},Nw1,bva);
_.XP=_.qg(function(e,z,C){if(e.nextWireType_!==2)return!1;e=A4o(e);_.xa(z,C,e===""?void 0:e);return!0},Nw1,bva);
_.JL=_.qg(function(e,z,C,w){if(e.nextWireType_!==2)return!1;_.Mg(z,C,w,A4o(e));return!0},Nw1,bva);
EZa=_.L2s(function(e,z,C){if(e.nextWireType_!==2)return!1;e=A4o(e);_.zy(z,z[_.GX]|0,C).push(e);return!0},function(e,z,C){z=_.Rjh(_.Hl,z,!0);
if(z!=null)for(var w=0;w<z.length;w++){var K=e,G=C,X=z[w];X!=null&&iY1(K,G,qEg(X))}},bva);
F54=void 0;F54=F54===void 0?Zv4:F54;_.kl=new Ya(function(e,z,C,w,K){if(e.nextWireType_!==2)return!1;w=SE(void 0,w);_.zy(z,z[_.GX]|0,C).push(w);Ad(e,w,K);return!0},function(e,z,C,w,K){if(Array.isArray(z)){for(var G=0;G<z.length;G++)sTg(e,z[G],C,w,K);
e=z[_.GX]|0;e&1||Xs(z,e|1)}},F54);
_.qJ=pl5(function(e,z,C,w,K,G){if(e.nextWireType_!==2)return!1;var X=z[_.GX]|0;dao(z,X,G,C,Va(X));z=FcX(z,w,C);Ad(e,z,K);return!0},sTg);
_.xl=_.qg(function(e,z,C){if(e.nextWireType_!==2)return!1;_.xa(z,C,_.ZgC(e));return!0},_.Bwm,_.QbU);
VEL=_.qg(function(e,z,C,w){if(e.nextWireType_!==2)return!1;_.Mg(z,C,w,_.ZgC(e));return!0},_.Bwm,_.QbU);
_.Tv=_.qg(function(e,z,C){if(e.nextWireType_!==0)return!1;_.xa(z,C,_.y8(e.decoder_)>>>0);return!0},tg4,JCs);
f3U=_.qg(function(e,z,C,w){if(e.nextWireType_!==0)return!1;_.Mg(z,C,w,_.y8(e.decoder_)>>>0);return!0},tg4,JCs);
_.$l=_.qg(function(e,z,C){if(e.nextWireType_!==0)return!1;_.xa(z,C,_.y8(e.decoder_));return!0},_.gaN,_.maS);
_.lS=_.qg(function(e,z,C){if(e.nextWireType_!==0)return!1;e=_.y8(e.decoder_);_.xa(z,C,e===0?void 0:e);return!0},_.gaN,_.maS);
SqC=_.qg(function(e,z,C){if(_.l5)return e.nextWireType_!==0?e=!1:(_.xa(z,C,igg(e.decoder_)),e=!0),e;if(e.nextWireType_!==0)return!1;_.xa(z,C,_.nY(e.decoder_,QhE));return!0},function(e,z,C){z=dYs(z);
if(z!=null&&(yC4(z),z!=null))switch(_.Ty(e,C,0),typeof z){case "number":e=e.encoder_;C=z;z=C<0;C=Math.abs(C)*2;bg5(C);C=uo;var w=d6;z&&(C==0?w==0?w=C=4294967295:(w--,C=4294967295):C--);uo=C;d6=w;QL(e,uo,d6);break;case "bigint":e=e.encoder_;z=z<<BigInt(1)^z>>BigInt(63);uo=Number(BigInt.asUintN(32,z));d6=Number(BigInt.asUintN(32,z>>BigInt(32)));QL(e,uo,d6);break;default:wlC(e.encoder_,z)}},xa4);var Da6=function(){var e=uYo,z=dag;this.fieldIndex=175237375;this.ctor=z;this.isRepeated=0;this.getExtensionFn=_.ra;this.defaultValue=void 0;this.JSC$9045_hasMessageId=e.messageId!=null?Fs:void 0};
Da6.prototype.register=function(){mD(this)};var ivT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ivT,_.X2);var Nf4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Nf4,_.X2);var oog=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(oog,_.X2);var sb6=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(sb6,_.X2);var BfL=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(BfL,_.X2);var tEo=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(tEo,_.X2);var gZ6=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(gZ6,_.X2);gZ6.prototype.getData=function(){return _.O7(this,2)};var jbL=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(jbL,_.X2);var yCs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(yCs,_.X2);yCs.prototype.getStyle=function(){return _.ra(this,ivT,1)};var WL=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(WL,_.X2);WL.prototype.getPayloadCase=function(){return _.E7(this,LY)};
WL.prototype.getStyle=function(){return _.BW(this,yCs,6,LY)};
var cCc=function(){var e=new WL,z=new BfL;return _.RT(e,7,LY,z)},ACS=function(){var e=new WL,z=new tEo;
return _.RT(e,8,LY,z)},LY=[1,
2,3,4,5,6,7,8];var Zvs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Zvs,_.X2);var plY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(plY,_.X2);var ejU=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ejU,_.X2);var zjT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(zjT,_.X2);var ClT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ClT,_.X2);var wLS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(wLS,_.X2);var K2S=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(K2S,_.X2);var oag=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(oag,_.X2);oag.prototype.getData=function(){return _.O7(this,2)};var Gyg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Gyg,_.X2);var Kgg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Kgg,_.X2);Kgg.prototype.getPayloadCase=function(){return _.E7(this,Qx)};
var Qx=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var mf=function(e,z){e=Error.call(this,e);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=z===void 0?2:z};
_.U(mf,Error);var YCU=Promise;var bY6=function(e){this.channelPromise=e};
bY6.prototype.send=function(e,z,C){this.channelPromise.then(function(w){w.send(e,z,C)})};var XLc=function(e,z){this.data=e;this.channel=z};
XLc.prototype.reply=function(e,z,C){this.channel.send(e,z,C)};var Jta=function(e){this.JSC$9111_port_=e};
Jta.prototype.send=function(e,z,C){C=C===void 0?[]:C;var w=new MessageChannel;kyS(w.port1,z);this.JSC$9111_port_.postMessage(e,[w.port2].concat(C))};
var qC6=function(e,z){kyS(e,z);return new Jta(e)},kyS=function(e,z){z&&(e.onmessage=function(C){z(new XLc(C.data,qC6(C.ports[0])))})};var xga=function(e){this.verifier_=e};
xga.prototype.verify=function(e){return this.verifier_(e)};
var TwY=function(e){var z=Object.create(null);(typeof e==="string"?[e]:e).forEach(function(C){if(C==="null")throw Error("X");z[C]=!0});
return function(C){return z[C]===!0}};_.$gh=function(){if(!_.wL.addEventListener||!Object.defineProperty)return!1;var e=!1,z=Object.defineProperty({},"passive",{get:function(){e=!0}});
try{var C=function(){};
_.wL.addEventListener("test",C,z);_.wL.removeEventListener("test",C,z)}catch(w){}return e}();var lyL;_.a8=function(e){var z=e.destination;var C=e.iframe;var w=e.origin;var K=e.channelName===void 0?"ZNWN1d":e.channelName;var G=e.onMessage===void 0?void 0:e.onMessage;e=e.onEstablished===void 0?void 0:e.onEstablished;return lyL({destination:z,getSource:function(){return C.contentWindow},
originVerifier:w instanceof xga?w:typeof w==="function"?new xga(w):new xga(TwY(w)),channelName:K,onMessage:G,onEstablished:e})};
lyL=function(e){var z=e.destination;var C=e.getSource;var w=e.originVerifier;var K=e.token===void 0?void 0:e.token;var G=e.channelName;var X=e.onMessage===void 0?void 0:e.onMessage;var J=e.onEstablished===void 0?void 0:e.onEstablished;return new bY6(new YCU(function(q,T){var Q=function(m){m.source&&m.source===C()&&w.verify(m.origin)&&(m.data.n||m.data)===G&&(z.removeEventListener("message",Q,!1),K&&m.data.t!==K?T(Error("Y`"+G+"`"+K+"`"+m.data.t)):(q(qC6(m.ports[0],X)),J&&J(m)))};
z.addEventListener("message",Q,!1)}))};var QTs=function(e){try{e()}catch(z){Ko(z)}};var aya=function(e){var z=this;var C=e.getMessageType;var w=e.onUnregisteredMessage===void 0?function(){}:e.onUnregisteredMessage;
var K=e.onBeforeRegisteredMessage===void 0?function(){}:e.onBeforeRegisteredMessage;
e=e.onAfterRegisteredMessage===void 0?function(){}:e.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=C;this.onUnregisteredMessage_=w;this.onBeforeRegisteredMessage_=K;this.onAfterRegisteredMessage_=e;this.onMessage=function(G){return mgs(z,G)}};
aya.prototype.register=function(e,z){this.registry_.set(e,z);return this};
var mgs=function(e,z){var C=e.getMessageType_(z.data),w=e.registry_.get(C);w?(QTs(function(){return e.onBeforeRegisteredMessage_(z,C)}),QTs(function(){return w(z)}),QTs(function(){return e.onAfterRegisteredMessage_(z,C)})):QTs(function(){return e.onUnregisteredMessage_(z,C)})};var naa=function(e){this.JSC$9128_channel_=e},rtS,HYo;
naa.prototype.send=function(e,z,C){this.JSC$9128_channel_.send(fv(e),z,C)};
_.MgC=function(e,z){return function(C){var w=new e(C.data);return z(new XLc(w,C.channel))}};
rtS=function(e){return function(z){return e(new XLc(z.data,new naa(z.channel)))}};
HYo=function(e,z){return rtS(_.MgC(e,z))};var UgL=function(e,z,C,w){this.registry=e;this.delegate=z;this.receiveMessageConstructor=C;this.createInitMessage=w;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},wZm=function(e){var z=new aya({getMessageType:e.getPayloadCase});
return new UgL(z,new naa(_.a8({iframe:e.child,destination:window,origin:e.origin,channelName:e.channelName,onMessage:HYo(e.receiveMessageConstructor,z.onMessage)})),e.receiveMessageConstructor,e.createInitMessage)},vaL=function(e,z){e.createInitMessage=z};
UgL.prototype.send=function(e){if(!this.initialised)throw new mf("Attempted to send a message before initialisation.");this.delegate.send(e)};
var IyU=function(e,z){return _.k(function(C){if(!e.initialised)throw new mf("Attempted to send a message before initialisation.");return C.return(new Promise(function(w){e.delegate.send(z,HYo(e.receiveMessageConstructor,w))}))})};
UgL.prototype.init=function(){var e=this;return _.k(function(z){if(e.initialised)throw new mf("Attempted to initialise twice. The SDK can only be initialised once.");if(e.createInitMessage!==void 0){var C=e.delegate,w=C.send,K=e.createInitMessage;var G=new Nf4;var X=[].concat(_.s_(e.features));G=_.pv(G,1,X,_.GL);w.call(C,K.call(e,G))}e.initialised=!0;_.E_(z)})};
var nV=function(e,z){if(e.initialised)throw new mf('Attempted to set up API "'+z+'" after initialisation. All APIs must be set up before initialising the SDK.');e.features.add(z);return e.registry};
_.lB.Object.defineProperties(UgL.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var W2U=function(e){this.channel=e;this.registered=!1};
W2U.prototype.update=function(e){if(this.channel.isInitialised){if(!this.registered)throw new mf("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var z=new WL;var C=new sb6;C=_.a4(C,1,e);z=_.RT(z,2,LY,C);this.channel.send(z)}else this.register();this.JSC$9142_audioEnabled=e};
W2U.prototype.register=function(){nV(this.channel,1);this.registered=!0};
W2U.prototype.isAudioEnabled=function(){return this.JSC$9142_audioEnabled};var PlX=function(e){this.channel=e};
_.Y=PlX.prototype;_.Y.onFirstFrameReady=function(e){nV(this.channel,2).register(11,function(z){z=_.BW(z.data,Zvs,11,Qx);if(!z)throw new mf("Unexpectedly nonexistent GameFirstFrameReadyEvent");e(_.Ds(z,1))})};
_.Y.onReady=function(e){nV(this.channel,2).register(4,function(z){z=_.BW(z.data,ejU,4,Qx);if(!z)throw new mf("Unexpectedly nonexistent GameReadyEvent");e(_.Ds(z,1))})};
_.Y.onLevelComplete=function(e){nV(this.channel,2).register(5,function(z){z=_.BW(z.data,zjT,5,Qx);if(!z)throw new mf("Unexpectedly nonexistent LevelCompleteEvent");e(_.Ds(z,1),_.$2(z,2))})};
_.Y.onGameOver=function(e){nV(this.channel,2).register(6,function(z){z=_.BW(z.data,plY,6,Qx);if(!z)throw new mf("Unexpectedly nonexistent GameOverEvent");e(_.Ds(z,1))})};
_.Y.pause=function(){var e=this;if(!this.channel.isInitialised)return nV(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new mf("Using unregistered Game Feature: pause.");var z=cCc();return new Promise(function(C){return _.k(function(w){if(w.nextAddress==1)return w.yield(IyU(e.channel,z),2);C();_.E_(w)})})};
_.Y.resume=function(){var e=this;if(!this.channel.isInitialised)return nV(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new mf("Using unregistered Game Feature: resume.");var z=ACS();return new Promise(function(C){return _.k(function(w){if(w.nextAddress==1)return w.yield(IyU(e.channel,z),2);C();_.E_(w)})})};var RjS=function(e){this.channel=e};
RjS.prototype.onReady=function(e){nV(this.channel,5).register(8,function(z){if(!_.BW(z.data,ClT,8,Qx))throw new mf("Unexpectedly nonexistent PageReadyEvent");e()})};var L2C=function(e){this.channel=e};
L2C.prototype.onChange=function(e){nV(this.channel,3).register(7,function(z){z=_.BW(z.data,wLS,7,Qx);if(!z)throw new mf("Unexpectedly nonexistent ScoreEvent");e(_.Ds(z,1),_.$2(z,2))})};var hjg={load:function(){throw new mf("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new mf("Storage used, but storage.onSave() listener not set!");}},OYa=function(e){this.channel=e;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Eag=function(e){nV(e.channel,4).register(2,hjg.load).register(3,hjg.save);
e.initialSetupDone=!0};
OYa.prototype.onLoad=function(e){this.initialSetupDone||Eag(this);this.loadRegistered||(this.loadRegistered=!0,nV(this.channel,4).register(2,function(z){var C,w,K;return _.k(function(G){if(G.nextAddress==1){C=_.BW(z.data,K2S,2,Qx);if(!C)throw new mf("Unexpectedly nonexistent StorageLoad");w=_.Ds(C,1);return G.yield(e(w),2)}K=G.yieldResult;var X=z.reply,J=new WL;var q=new gZ6;q=_.Et(q,1,w);q=_.UR(q,2,_.EU(K,!1));J=_.RT(J,3,LY,q);X.call(z,J);_.E_(G)})}))};
OYa.prototype.onSave=function(e){this.initialSetupDone||Eag(this);this.saveRegistered||(this.saveRegistered=!0,nV(this.channel,4).register(3,function(z){var C,w,K;return _.k(function(G){if(G.nextAddress==1){C=_.BW(z.data,oag,3,Qx);if(!C)throw new mf("Unexpectedly nonexistent StorageSave");w=_.Ds(C,1);K=aTL(C.getData());return G.yield(e(w,K),2)}var X=z.reply,J=new WL;var q=new jbL;q=_.Et(q,1,w);J=_.RT(J,4,LY,q);X.call(z,J);_.E_(G)})}))};var F2a=function(e){this.channel=e};
F2a.prototype.update=function(e){if(!this.channel.features.has(6))throw new mf("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var z=new WL,C=new yCs;e=_.PL(C,1,e);z=_.RT(z,6,LY,e);this.channel.send(z)};
F2a.prototype.register=function(){nV(this.channel,6)};var VgY=function(e){this.channel=e;this.userActivityLoggingIntervalMs=0};
VgY.prototype.onUserActivity=function(e,z){this.userActivityLoggingIntervalMs=z;nV(this.channel,7).register(9,function(C){if(!_.BW(C.data,Gyg,9,Qx))throw new mf("Unexpectedly nonexistent ClickEvent");e()})};var fyS=function(e){var z=this;this.channel=e;this.init=this.channel.init.bind(this.channel);this.page=new RjS(this.channel);this.game=new PlX(this.channel);this.audio=new W2U(this.channel);this.score=new L2C(this.channel);this.storage=new OYa(this.channel);this.style=new F2a(this.channel);this.userActivity=new VgY(this.channel);vaL(this.channel,function(C){var w=new oog;C=_.PL(w,1,C);C=_.td(C,3,z.userActivity.userActivityLoggingIntervalMs);w=z.audio.isAudioEnabled();w!==void 0&&_.a4(C,2,w);w=new WL;
return _.RT(w,5,LY,C)})};var SCS=function(){this.timedFunctionContext=0};
SCS.prototype.timeExecution=function(e,z){var C=this;return function(){var w=_.yL.apply(0,arguments);C.timedFunctionContext=e;return z.apply(null,_.s_(w))}};var u2a=function(){var e={};this.priorityTasks=(e[3]=[],e[2]=[],e[1]=[],e);this.isFlushing=!1},IM=function(e,z,C){var w=dgU(e,C);
e.priorityTasks[C].push(z);w&&e.priorityTasks[C].length===1&&e.flush()},dgU=function(e,z){return Object.keys(e.priorityTasks).map(function(C){return Number(C)}).filter(function(C){return!isNaN(C)&&C>z}).every(function(C){return e.priorityTasks[C].length===0})};
u2a.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(e){return e.length>0});)Dgh(this,3),Dgh(this,2),Dgh(this,1)}catch(e){throw Object.values(this.priorityTasks).forEach(function(z){return void z.splice(0,z.length)}),e;
}finally{this.isFlushing=!1}}};
var Dgh=function(e,z){for(;dgU(e,z)&&e.priorityTasks[z].length>0;)e.priorityTasks[z][0](),e.priorityTasks[z].shift()};
_.lB.Object.defineProperties(u2a.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(e){return e.length>0})}}});var q_N={};var iYa=globalThis.trustedTypes,Y_L=iYa,XZg;var OC=function(e){this.privateDoNotAccessOrElseWrappedResourceUrl=e};
OC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Nwa,sTX,Bwh,tgs,gaL,jTc,yts,cta;Nwa=_.Kb([""]);sTX=w4(["\x00"],["\\0"]);Bwh=w4(["\n"],["\\n"]);tgs=w4(["\x00"],["\\u0000"]);gaL=_.Kb([""]);jTc=w4(["\x00"],["\\0"]);yts=w4(["\n"],["\\n"]);cta=w4(["\x00"],["\\u0000"]);_.AtC=k6E(function(e){return e(Nwa)})||k6E(function(e){return e(sTX)})||k6E(function(e){return e(Bwh)})||k6E(function(e){return e(tgs)});
_.ZYh=_.VL(gaL)&&_.VL(jTc)&&_.VL(yts)&&_.VL(cta);var sC;_.Sg=function(e,z){this.privateDoNotAccessOrElseWrappedUrl=z};
_.Sg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.pLa=ul("about:blank");sC=ul("about:invalid#zClosurez");var x1h=function(e){this.isValid=e},eXa=new x1h(function(e){return/^[^:]*([/?#]|$)/.test(e)}),zXs=il("data"),CCC=il("http"),wZh=il("https"),Kgo=il("ftp"),ooo=il("mailto"),G6L=il("intent"),Y_6=il("vnd.youtube"),T51=[zXs,
CCC,wZh,ooo,Kgo,eXa],lGE=ht(function(){return typeof URL==="function"}),bqS=["data:",
"http:","https:","mailto:","ftp:"],m1h=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Zy=function(e){this.privateDoNotAccessOrElseWrappedHtml=e};
Zy.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Qs7=ht(function(){return new Zy(iYa?iYa.emptyHTML:"")});var XZo={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"},noL=function(e,z){var C=Error.call(this,e+" cannot be used with intent "+XZo[z]);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.type=e;this.intent=z;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.U(noL,Error);_.G6=function(e){this.privateDoNotAccessOrElseWrappedScript=e};
_.G6.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var rnE=function(e){this.privateDoNotAccessOrElseWrappedAttributePrefix=e};
rnE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Hq4="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var $o=function(e){this.privateDoNotAccessOrElseWrappedStyleSheet=e};
$o.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var Aq8=function(e){var z=_.pd("window.location.href");e==null&&(e='Unknown Error of type "null/undefined"');if(typeof e==="string")return{message:e,name:"Unknown error",lineNumber:"Not available",fileName:z,stack:"Not available"};var C=!1;try{var w=e.lineNumber||e.line||"Not available"}catch(X){w="Not available",C=!0}try{var K=e.fileName||e.filename||e.sourceURL||_.wL.$googDebugFname||z}catch(X){K="Not available",C=!0}z=Jnc(e);if(!(!C&&e.lineNumber&&e.fileName&&e.stack&&e.message&&e.name)){C=e.message;
if(C==null){if(e.constructor&&e.constructor instanceof Function){if(e.constructor.name)C=e.constructor.name;else if(C=e.constructor,MJ[C])C=MJ[C];else{C=String(C);if(!MJ[C]){var G=/function\s+([^\(]+)/m.exec(C);MJ[C]=G?G[1]:"[Anonymous]"}C=MJ[C]}C='Unknown Error of type "'+C+'"'}else C="Unknown Error of unknown type";typeof e.toString==="function"&&Object.prototype.toString!==e.toString&&(C+=": "+e.toString())}return{message:C,name:e.name||"UnknownError",lineNumber:w,fileName:K,stack:z||"Not available"}}return{message:e.message,
name:e.name,lineNumber:e.lineNumber,fileName:e.fileName,stack:z}},Jnc=function(e,z){z||(z={});
z[k6U(e)]=!0;var C=e.stack||"",w=e.cause;w&&!z[k6U(w)]&&(C+="\nCaused by: ",w.stack&&w.stack.indexOf(w.toString())==0||(C+=typeof w==="string"?w:w.message+"\n"),C+=Jnc(w,z));e=e.errors;if(Array.isArray(e)){w=1;var K;for(K=0;K<e.length&&!(w>4);K++)z[k6U(e[K])]||(C+="\nInner error "+w++ +": ",e[K].stack&&e[K].stack.indexOf(e[K].toString())==0||(C+=typeof e[K]==="string"?e[K]:e[K].message+"\n"),C+=Jnc(e[K],z));K<e.length&&(C+="\n... "+(e.length-K)+" more inner errors")}return C},k6U=function(e){var z=
"";
typeof e.toString==="function"&&(z=""+e);return z+e.stack},MJ={};var q_L,TN,QA,T5a,$1h,x1S,zt,fi,Qv4;q_L=function(e,z){for(var C=e.split("%s"),w="",K=Array.prototype.slice.call(arguments,1);K.length&&C.length>1;)w+=C.shift()+K.shift();return w+C.join("%s")};
_.K0=function(e){return encodeURIComponent(String(e))};
TN=function(e){return decodeURIComponent(e.replace(/\+/g," "))};
QA=function(e){F7Y.test(e)&&(e.indexOf("&")!=-1&&(e=e.replace(Pgo,"&amp;")),e.indexOf("<")!=-1&&(e=e.replace(Rso,"&lt;")),e.indexOf(">")!=-1&&(e=e.replace(L74,"&gt;")),e.indexOf('"')!=-1&&(e=e.replace(hsU,"&quot;")),e.indexOf("'")!=-1&&(e=e.replace(Ooh,"&#39;")),e.indexOf("\x00")!=-1&&(e=e.replace(ENo,"&#0;")));return e};
T5a=function(e){var z={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var C=_.wL.document.createElement("div");return e.replace(x1S,function(w,K){var G=z[w];if(G)return G;K.charAt(0)=="#"&&(K=Number("0"+K.slice(1)),isNaN(K)||(G=String.fromCharCode(K)));G||(_.ko(C,ec(w+" ")),G=C.firstChild.nodeValue.slice(0,-1));return z[w]=G})};
$1h=function(e){return e.replace(/&([^;]+);/g,function(z,C){switch(C){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return C.charAt(0)!="#"||(C=Number("0"+C.slice(1)),isNaN(C))?z:String.fromCharCode(C)}})};
x1S=/&([^;\s<&]+);?/g;_.V_N=function(e){return String(e).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.lGU=String.prototype.repeat?function(e,z){return e.repeat(z)}:function(e,z){return Array(z+1).join(e)};
_.rJ=function(e,z){if(!Number.isFinite(e))return String(e);e=String(e);var C=e.indexOf(".");C===-1&&(C=e.length);var w=e[0]==="-"?"-":"";w&&(e=e.substring(1));return w+(0,_.lGU)("0",Math.max(0,z-C))+e};
zt=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.xd()).toString(36)};
fi=function(e){for(var z=0,C=0;C<e.length;++C)z=31*z+e.charCodeAt(C)>>>0;return z};
_.Jw=function(e){return String(e).replace(/\-([a-z])/g,function(z,C){return C.toUpperCase()})};
_.Xu=function(e){return String(e).replace(/([A-Z])/g,"-$1").toLowerCase()};
Qv4=function(e){return e.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(z,C,w){return C+w.toUpperCase()})};var m1S=function(){this.names=new Map};
m1S.prototype.getName=function(e){var z=this.names.get(e);if(z)return z;var C;z=(C=e.description)!=null?C:zt();this.names.set(e,z);return z};var aGT=function(e){var z=Error.call(this,e?e.length+" errors occurred during unsubscription:\n"+e.map(function(C,w){return w+1+") "+C.toString()}).join("\n  "):"");
this.message=z.message;"stack"in z&&(this.stack=z.stack);this.errors=e;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.U(aGT,Error);var Qp=function(e){this.initialTeardown=e;this.closed=!1;this._teardowns=this._parentage=null};
_.Y=Qp.prototype;
_.Y.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this._parentage;if(Array.isArray(e))for(var z=_.b(e),C=z.next();!C.done;C=z.next())C.value.remove(this);else e==null||e.remove(this);z=this.initialTeardown;if(lC(z))try{z()}catch(G){var w=G instanceof aGT?G.errors:[G]}var K=this._teardowns;if(K)for(this._teardowns=null,z=_.b(K),C=z.next();!C.done;C=z.next()){C=C.value;try{lC(C)?C():C.unsubscribe()}catch(G){C=void 0,w=(C=w)!=null?C:[],G instanceof aGT?w=[].concat(_.s_(w),_.s_(G.errors)):
w.push(G)}}if(w)throw new aGT(w);}};
_.Y.add=function(e){if(e&&e!==this)if(this.closed)lC(e)?e():e.unsubscribe();else{if(e instanceof Qp){if(e.closed||e._hasParent(this))return;e._addParent(this)}var z;(this._teardowns=(z=this._teardowns)!=null?z:[]).push(e)}};
_.Y._hasParent=function(e){var z=this._parentage;return z===e||Array.isArray(z)&&z.includes(e)};
_.Y._addParent=function(e){var z=this._parentage;this._parentage=Array.isArray(z)?(z.push(e),z):z?[z,e]:e};
_.Y._removeParent=function(e){var z=this._parentage;z===e?this._parentage=null:Array.isArray(z)&&PCN(z,e)};
_.Y.remove=function(e){var z=this._teardowns;z&&PCN(z,e);e instanceof Qp&&e._removeParent(this)};
var no6=new Qp;no6.closed=!0;Qp.JSC$9238_EMPTY=no6;var LgE=function(){setTimeout.apply(null,_.s_(_.yL.apply(0,arguments)))};var HT=function(e){Qp.call(this);this.JSC$9243_isStopped=!1;this.destination=e instanceof HT?e:new Uy(!e||lC(e)?{next:e!=null?e:void 0}:e);RXL(e)&&e.add(this)};
_.U(HT,Qp);HT.JSC$9238_EMPTY=Qp.JSC$9238_EMPTY;HT.create=function(e,z,C){return new vT(e,z,C)};
_.Y=HT.prototype;_.Y.next=function(e){this.JSC$9243_isStopped||this._next(e)};
_.Y.error=function(e){this.JSC$9243_isStopped||(this.JSC$9243_isStopped=!0,this._error(e))};
_.Y.complete=function(){this.JSC$9243_isStopped||(this.JSC$9243_isStopped=!0,this._complete())};
_.Y.unsubscribe=function(){this.closed||(this.JSC$9243_isStopped=!0,Qp.prototype.unsubscribe.call(this))};
_.Y._next=function(e){this.destination.next(e)};
_.Y._error=function(e){this.destination.error(e);this.unsubscribe()};
_.Y._complete=function(){this.destination.complete();this.unsubscribe()};
var Uy=function(e){this.partialObserver=e};
Uy.prototype.next=function(e){var z=this.partialObserver;if(z.next)try{z.next(e)}catch(C){av(C)}};
Uy.prototype.error=function(e){var z=this.partialObserver;if(z.error)try{z.error(e)}catch(C){av(C)}else av(e)};
Uy.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(z){av(z)}};
var vT=function(e,z,C){HT.call(this);var w;lC(e)||!e?w={next:e!=null?e:void 0,error:z!=null?z:void 0,complete:C!=null?C:void 0}:w=e;this.destination=new Uy(w)};
_.U(vT,HT);vT.JSC$9238_EMPTY=HT.JSC$9238_EMPTY;vT.create=HT.create;var HZ=typeof Symbol==="function"&&Symbol.observable||"@@observable";var r5=function(e){e&&(this._subscribe=e)};
_.Y=r5.prototype;_.Y.lift=function(e){var z=new r5;z.source=this;z.operator=e;return z};
_.Y.subscribe=function(e,z,C){e=e&&e instanceof HT||e&&lC(e.next)&&lC(e.error)&&lC(e.complete)&&RXL(e)?e:new vT(e,z,C);z=this.operator;C=this.source;e.add(z?z.call(e,C):C?this._subscribe(e):this._trySubscribe(e));return e};
_.Y._trySubscribe=function(e){try{return this._subscribe(e)}catch(z){e.error(z)}};
_.Y.forEach=function(e,z){var C=this;z=Oqg(z);return new z(function(w,K){var G=C.subscribe(function(X){try{e(X)}catch(J){K(J),G==null||G.unsubscribe()}},K,w)})};
_.Y._subscribe=function(e){var z;return(z=this.source)==null?void 0:z.subscribe(e)};
r5.prototype[HZ]=function(){return this};
r5.prototype.pipe=function(){var e=_.yL.apply(0,arguments);return e.length?hXE(e)(this):this};
r5.create=function(e){return new r5(e)};var Mch=function(){var e=Error.call(this,"object unsubscribed");this.message=e.message;"stack"in e&&(this.stack=e.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.U(Mch,Error);var HV=function(){this.observers=[];this.hasError=this.JSC$9259_isStopped=this.closed=!1;this.thrownError=null};
_.U(HV,r5);_.Y=HV.prototype;_.Y.lift=function(e){var z=new I8(this,this);z.operator=e;return z};
_.Y._throwIfClosed=function(){if(this.closed)throw new Mch;};
_.Y.next=function(e){this._throwIfClosed();if(!this.JSC$9259_isStopped){var z=this.observers.slice();z=_.b(z);for(var C=z.next();!C.done;C=z.next())C.value.next(e)}};
_.Y.error=function(e){this._throwIfClosed();if(!this.JSC$9259_isStopped){this.hasError=this.JSC$9259_isStopped=!0;this.thrownError=e;for(var z=this.observers;z.length;)z.shift().error(e)}};
_.Y.complete=function(){this._throwIfClosed();if(!this.JSC$9259_isStopped){this.JSC$9259_isStopped=!0;for(var e=this.observers;e.length;)e.shift().complete()}};
_.Y.unsubscribe=function(){this.JSC$9259_isStopped=this.closed=!0;this.observers=null};
_.Y._trySubscribe=function(e){this._throwIfClosed();return r5.prototype._trySubscribe.call(this,e)};
_.Y._subscribe=function(e){this._throwIfClosed();this._checkFinalizedStatuses(e);return this._innerSubscribe(e)};
_.Y._innerSubscribe=function(e){var z=this,C=this.JSC$9259_isStopped,w=this.observers;return this.hasError||C?Qp.JSC$9238_EMPTY:(w.push(e),new Qp(function(){return PCN(z.observers,e)}))};
_.Y._checkFinalizedStatuses=function(e){var z=this.thrownError,C=this.JSC$9259_isStopped;this.hasError?e.error(z):C&&e.complete()};
HV.create=function(e,z){return new I8(e,z)};
var I8=function(e,z){HV.call(this);this.destination=e;this.source=z};
_.U(I8,HV);I8.create=HV.create;I8.prototype.next=function(e){var z,C;(z=this.destination)==null||(C=z.next)==null||C.call(z,e)};
I8.prototype.error=function(e){var z,C;(z=this.destination)==null||(C=z.error)==null||C.call(z,e)};
I8.prototype.complete=function(){var e,z;(e=this.destination)==null||(z=e.complete)==null||z.call(e)};
I8.prototype._subscribe=function(e){var z,C;return(C=(z=this.source)==null?void 0:z.subscribe(e))!=null?C:Qp.JSC$9238_EMPTY};var pJ=function(e){HV.call(this);this._value=e};
_.U(pJ,HV);pJ.create=HV.create;pJ.prototype._subscribe=function(e){var z=HV.prototype._subscribe.call(this,e);!z.closed&&e.next(this._value);return z};
pJ.prototype.getValue=function(){var e=this.thrownError,z=this._value;if(this.hasError)throw e;this._throwIfClosed();return z};
pJ.prototype.next=function(e){HV.prototype.next.call(this,this._value=e)};
_.lB.Object.defineProperties(pJ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var cZ=new r5(function(e){return e.complete()});var fG7=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var iqo=function(e){return e&&typeof e.length==="number"&&typeof e!=="function"};var rnU={now:function(){return(rnU.delegate||Date).now()},
delegate:void 0};var J0=function(e,z,C){e=e===void 0?Infinity:e;z=z===void 0?Infinity:z;C=C===void 0?rnU:C;HV.call(this);this.bufferSize=e;this.windowTime=z;this.timestampProvider=C;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=z===Infinity;this.bufferSize=Math.max(1,e);this.windowTime=Math.max(1,z)};
_.U(J0,HV);J0.create=HV.create;J0.prototype.next=function(e){var z=this.buffer,C=this.infiniteTimeWindow,w=this.timestampProvider,K=this.windowTime;this.JSC$9259_isStopped||(z.push(e),!C&&z.push(w.now()+K));Hqs(this);HV.prototype.next.call(this,e)};
J0.prototype._subscribe=function(e){this._throwIfClosed();Hqs(this);for(var z=this._innerSubscribe(e),C=this.infiniteTimeWindow,w=this.buffer.slice(),K=0;K<w.length&&!e.closed;K+=C?1:2)e.next(w[K]);this._checkFinalizedStatuses(e);return z};
var Hqs=function(e){var z=e.bufferSize,C=e.timestampProvider,w=e.buffer;e=e.infiniteTimeWindow;var K=(e?1:2)*z;z<Infinity&&K<w.length&&w.splice(0,w.length-K);if(!e){z=C.now();C=0;for(e=1;e<w.length&&w[e]<=z;e+=2)C=e;C&&w.splice(0,C+1)}};var voa=function(e,z){z=z===void 0?U1Y:z;this.schedulerActionCtor=e;this.now=z};
voa.prototype.schedule=function(e,z,C){z=z===void 0?0:z;return(new this.schedulerActionCtor(this,e)).schedule(C,z)};
var U1Y=rnU.now;var EyN=function(){var e=Error.call(this,"no elements in sequence");this.message=e.message;"stack"in e&&(this.stack=e.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.U(EyN,Error);var DG=function(e,z,C,w,K){HT.call(this,e);this.onUnsubscribe=K;z&&(this._next=function(G){try{z(G)}catch(X){this.destination.error(X)}});
C&&(this._error=function(G){try{C(G)}catch(X){this.destination.error(X)}this.unsubscribe()});
w&&(this._complete=function(){try{w()}catch(G){this.destination.error(G)}this.unsubscribe()})};
_.U(DG,HT);DG.JSC$9238_EMPTY=HT.JSC$9238_EMPTY;DG.create=HT.create;DG.prototype.unsubscribe=function(){var e;this.closed||(e=this.onUnsubscribe)!=null&&e.call(this);HT.prototype.unsubscribe.call(this)};var b4=function(e,z){this.source=e;this.subjectFactory=z;this._subject=null;this._refCount=0;this._connection=null};
_.U(b4,r5);b4.create=r5.create;b4.prototype._subscribe=function(e){return IGU(this).subscribe(e)};
var IGU=function(e){var z=e._subject;if(!z||z.JSC$9259_isStopped)e._subject=e.subjectFactory();return e._subject};
b4.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null;e==null||e.unsubscribe()};
b4.prototype.connect=function(){var e=this,z=this._connection;if(!z){z=this._connection=new Qp;var C=IGU(this);z.add(this.source.subscribe(new DG(C,void 0,function(w){e._teardown();C.error(w)},function(){e._teardown();
C.complete()},function(){return e._teardown()})));
z.closed&&(this._connection=null,z=Qp.JSC$9238_EMPTY)}return z};var enk=Array.isArray;var C4E=Array.isArray,WgL=Object,wV1=WgL.getPrototypeOf,KI8=WgL.prototype,oy4=WgL.keys;var tn=function(e,z,C){HT.call(this,e);this._next=z;this.shouldComplete=C};
_.U(tn,HT);tn.JSC$9238_EMPTY=HT.JSC$9238_EMPTY;tn.create=HT.create;tn.prototype._complete=function(){this.shouldComplete()?HT.prototype._complete.call(this):this.unsubscribe()};var Teg=["addListener","removeListener"],xXm=["addEventListener","removeEventListener"],l04=["on","off"];var WT=function(){Qp.call(this)};
_.U(WT,Qp);WT.JSC$9238_EMPTY=Qp.JSC$9238_EMPTY;WT.prototype.schedule=function(){return this};var PCL=function(e,z){return setInterval.apply(null,[e,z].concat(_.s_(_.yL.apply(2,arguments))))};var PT=function(e,z){Qp.call(this);this.scheduler=e;this.work=z;this.pending=!1};
_.U(PT,WT);PT.JSC$9238_EMPTY=WT.JSC$9238_EMPTY;PT.prototype.schedule=function(e,z){z=z===void 0?0:z;if(this.closed)return this;this.state=e;e=this.id;var C=this.scheduler;e!=null&&(this.id=RX6(this,e,z));this.pending=!0;this.delay=z;this.id=this.id||this.requestAsyncId(C,this.id,z);return this};
PT.prototype.requestAsyncId=function(e,z,C){C=C===void 0?0:C;return PCL(e.flush.bind(e,this),C)};
var RX6=function(e,z,C){C=C===void 0?0:C;if(C!=null&&e.delay===C&&e.pending===!1)return z;clearInterval(z)};
PT.prototype.execute=function(e,z){if(this.closed)return Error("ha");this.pending=!1;if(e=this._execute(e,z))return e;this.pending===!1&&this.id!=null&&(this.id=RX6(this,this.id,null))};
PT.prototype._execute=function(e){var z=!1;try{this.work(e)}catch(w){z=!0;var C=!!w&&w||Error(w)}if(z)return this.unsubscribe(),C};
PT.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,z=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;PCN(z,this);e!=null&&(this.id=RX6(this,e,null));this.delay=null;WT.prototype.unsubscribe.call(this)}};var LgU=function(e,z){z=z===void 0?U1Y:z;voa.call(this,e,z);this.actions=[];this.active=!1;this.scheduled=void 0};
_.U(LgU,voa);LgU.prototype.flush=function(e){var z=this.actions;if(this.active)z.push(e);else{var C;this.active=!0;do if(C=e.execute(e.state,e.delay))break;while(e=z.shift());this.active=!1;if(C){for(;e=z.shift();)e.unsubscribe();throw C;}}};var fJ=new r5(mg);var QMh=Array.isArray;var R8=function(e,z){PT.call(this,e,z);this.scheduler=e;this.work=z};
_.U(R8,PT);R8.JSC$9238_EMPTY=PT.JSC$9238_EMPTY;R8.prototype.schedule=function(e,z){z=z===void 0?0:z;if(z>0)return PT.prototype.schedule.call(this,e,z);this.delay=z;this.state=e;this.scheduler.flush(this);return this};
R8.prototype.execute=function(e,z){return z>0||this.closed?PT.prototype.execute.call(this,e,z):this._execute(e,z)};
R8.prototype.requestAsyncId=function(e,z,C){C=C===void 0?0:C;return C!=null&&C>0||C==null&&this.delay>0?PT.prototype.requestAsyncId.call(this,e,z,C):e.flush(this)};var hXU=function(){LgU.apply(this,arguments)};
_.U(hXU,LgU);var Zq7=new hXU(R8);var Oqo=function(){this.performanceMonitor=new SCS;this.queue=new u2a;this.internalSymbol=Symbol();this.debugNames=new m1S};
Oqo.prototype.getOnBackgrounded=function(){return fJ};
_.lB.Object.defineProperties(Oqo.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var LV=function(e,z){z=Error.call(this,z?e+": "+z:String(e));this.message=z.message;"stack"in z&&(this.stack=z.stack);this.code=e;this.__proto__=LV.prototype;this.name=String(e)};
_.U(LV,Error);var S8=function(e){LV.call(this,1E3,'sfr:"'+e+'"');this.measurementStrategyFailureReason=e;this.__proto__=S8.prototype};
_.U(S8,LV);var u4=function(){LV.call(this,1003);this.__proto__=u4.prototype};
_.U(u4,LV);var hL=function(){LV.call(this,1009);this.__proto__=hL.prototype};
_.U(hL,LV);var EoY=function(){LV.call(this,1011);this.__proto__=EoY.prototype};
_.U(EoY,LV);var FgX=function(){LV.call(this,1007);this.__proto__=u4.prototype};
_.U(FgX,LV);var FK=function(e){LV.call(this,1004,String(e));this.inputObservableIndex=e;this.__proto__=FK.prototype};
_.U(FK,LV);var eo8=function(e){LV.call(this,1010,e);this.__proto__=zoh.prototype};
_.U(eo8,LV);var zoh=function(e){LV.call(this,1005,e);this.__proto__=zoh.prototype};
_.U(zoh,LV);var VcT=function(e){var z=_.yL.apply(1,arguments),C=this;this.orderedFactories=[];this.orderedFactories.push(e);z.forEach(function(w){C.orderedFactories.push(w)})};
VcT.prototype.isSupported=function(e){return this.orderedFactories.some(function(z){return z.isSupported(e)})};
VcT.prototype.makeBeacon=function(e,z){for(var C=0;C<this.orderedFactories.length;C++)if(this.orderedFactories[C].isSupported(z))return this.orderedFactories[C].makeBeacon(e,z);throw new hL;};var Np1=Symbol("ia"),fGc=Symbol("ja"),e8=function(e,z){this.value=e;this.timeline=z},pq=function(e,z){if(z.timeline!==e.timeline)throw new FgX;
return e.value-z.value};
_.Y=e8.prototype;_.Y.equals=function(e){return pq(this,e)===0};
_.Y.maximum=function(e){if(e.timeline!==this.timeline)throw new FgX;return this.value>=e.value?this:e};
_.Y.round=function(){return new e8(Math.round(this.value),this.timeline)};
_.Y.add=function(e){return new e8(this.value+e,this.timeline)};
_.Y.toString=function(){return String(this.value)};var Oy=function(e,z){this.context=e;this.JSC$9365_pinger=z};
Oy.prototype.isSupported=function(e){return this.JSC$9365_pinger.isSupported(e)};
Oy.prototype.makeBeacon=function(e,z){if(!this.isSupported(z))throw new hL;return new Ey(this.context,this.JSC$9365_pinger,z!=null?z:void 0,e)};
var Ey=function(e,z,C,w){var K=this;this.JSC$9371_pinger=z;this.properties=C;this.url=w;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var G;this.method=(G=C==null?void 0:C.beaconMethod)!=null?G:"GET";this.backgroundedSubscription=e.getOnBackgrounded().subscribe(function(){K.sendNow()})};
Ey.prototype.deactivate=function(){this.internalIsPending=!1};
Ey.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9371_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var e,z;this.JSC$9371_pinger.pingWithHeadersAndBody((e=this.properties)!=null?e:{},this.customHeaders,(z=this.body)!=null?z:"",this.url)}else this.JSC$9371_pinger.ping(this.url);this.internalIsPending=!1}catch(C){}else this.internalIsPending=!1};
Ey.prototype.setHeader=function(e,z){this.customHeaders.set(e,z)};
_.lB.Object.defineProperties(Ey.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var ugC=function(){for(var e=_.b(_.yL.apply(0,arguments)),z=e.next();!z.done;z=e.next())if(z=z.value,z.available()){this.timeProvider=z;return}this.timeProvider=new S_a};
_.Y=ugC.prototype;_.Y.available=function(){return this.timeProvider.available()};
_.Y.now=function(){return this.timeProvider.now()};
_.Y.setTimeout=function(e,z){return this.timeProvider.setTimeout(e,z)};
_.Y.clearTimeout=function(e){this.timeProvider.clearTimeout(e)};
_.Y.interval=function(e,z){var C=this.intervalObservable(e).subscribe(z);return function(){return void C.unsubscribe()}};
_.Y.intervalObservable=function(e){return this.timeProvider.intervalObservable(e)};
_.lB.Object.defineProperties(ugC.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var S_a=function(){this.timeline=Symbol()};
_.Y=S_a.prototype;_.Y.available=function(){return!1};
_.Y.now=function(){return new e8(0,this.timeline)};
_.Y.setTimeout=function(){return 0};
_.Y.clearTimeout=function(){};
_.Y.interval=function(){return function(){}};
_.Y.intervalObservable=function(){return fJ};var FP=function(e,z){this.intrinsicFunctionNamespace=e;this.performanceMonitor=z};
_.Y=FP.prototype;_.Y.setTimeout=function(e,z){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,e),z)};
_.Y.clearTimeout=function(e){this.intrinsicFunctionNamespace.clearTimeout(e)};
_.Y.interval=function(e,z){var C=this.intervalObservable(e).subscribe(z);return function(){return void C.unsubscribe()}};
_.Y.intervalObservable=function(e){var z=this;return new r5(function(C){var w=0,K=z.intrinsicFunctionNamespace.setInterval(function(){C.next(w++)},e);
return function(){z.intrinsicFunctionNamespace.clearInterval(K)}})};
_.Y.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var d1L=function(e,z){FP.call(this,e,z);this.timeline=fGc};
_.U(d1L,FP);d1L.prototype.now=function(){return new e8(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
d1L.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&FP.prototype.available.call(this)};var D1g=function(e,z){FP.call(this,e,z);this.timeline=Np1};
_.U(D1g,FP);D1g.prototype.now=function(){return new e8(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
D1g.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&FP.prototype.available.call(this)};var N5h=function(e){this.context=e;if(iqg===void 0)a:{var z,C,w=(z=e.global)==null?void 0:(C=z.document)==null?void 0:C.createElement("meta");if(w)try{w.httpEquiv="origin-trial";w.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";e.global.document.head.append(w);iqg=w;break a}catch(K){}iqg=void 0}},
iqg;
N5h.prototype.isSupported=function(e){return WIs(this.context)!==void 0&&!(e==null||!e.endOfSession)&&!Vx(this.context)&&!(e==null?0:e.attributionEnabled)&&!(e==null?0:e.customHeaders)&&!(e==null?0:e.customBody)};
N5h.prototype.makeBeacon=function(e,z){if(!this.isSupported(z))throw new hL;return new fV(this.context,e,z)};
var fV=function(e,z,C){this.context=e;this.properties=C;this.JSC$9398_urlWithoutToken=z;var w;this.beaconMethod=(w=C==null?void 0:C.beaconMethod)!=null?w:"GET";e=WIs(this.context);if(e===void 0)throw Error();this.fetchLater=e;svL(this,B5c(this))},svL=function(e,z){e.beaconResult&&e.beaconResult.activated||(e.beaconAbort=new AbortController,e.beaconResult=e.fetchLater(z,{method:e.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:e.beaconAbort.signal,activateAfter:96E4}))},B5c=function(e){e=e.JSC$9398_urlWithoutToken;
return(e.slice(-1)[0]==="&"?e:e+"&")+"flapi=1"};
fV.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
fV.prototype.sendNow=function(){};
fV.prototype.setHeader=function(){};
_.lB.Object.defineProperties(fV.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9398_urlWithoutToken},
set:function(e){this.JSC$9398_urlWithoutToken=e;e=B5c(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);svL(this,e)}},
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 tc4=function(e){this.context=e};
tc4.prototype.isSupported=function(){return!Vx(this.context)&&!!this.context.global.fetch};
tc4.prototype.ping=function(){var e=this;return An.apply(null,_.s_(_.yL.apply(0,arguments).map(function(z){return vZ(e.context.global.fetch(z,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(N1(function(C){return C.status===200}))}))).pipe(FI8(function(z){return z}),f0s())};
tc4.prototype.pingWithHeadersAndBody=function(e,z,C){for(var w=_.yL.apply(3,arguments),K=this,G=new Headers,X=_.b(z.entries()),J=X.next();!J.done;J=X.next()){var q=_.b(J.value);J=q.next().value;q=q.next().value;G.set(J,q)}var T,Q=(T=e.keepAlive)!=null?T:!1;An.apply(null,_.s_(w.map(function(m){return vZ(K.context.global.fetch(m,Object.assign({},{method:String(e.beaconMethod),cache:"no-cache"},Q?{keepalive:!0}:{},{mode:"no-cors",headers:G,body:C}))).pipe(N1(function(a){return a.status===200}))}))).pipe(FI8(function(m){return m}),
f0s())};var gos,SL1,jvC;_.S2=function(){};
_.F4=function(e){return e};
gos=function(e){var z=z||0;return function(){return e.apply(this,Array.prototype.slice.call(arguments,0,z))}};
_.uS=function(e){var z=!1,C;return function(){z||(C=e(),z=!0);return C}};
_.dJ=function(e,z){var C=0;return function(w){_.wL.clearTimeout(C);var K=arguments;C=_.wL.setTimeout(function(){e.apply(void 0,K)},z)}};
SL1=function(e,z){var C=0,w=!1,K=[],G=function(){C=0;w&&(w=!1,X())},X=function(){C=_.wL.setTimeout(G,z);
var J=K;K=[];e.apply(void 0,J)};
return function(J){K=arguments;C?w=!0:X()}};
jvC=function(e,z){var C=0,w=function(){C=0};
return function(K){C||(C=_.wL.setTimeout(w,z),e.apply(void 0,arguments))}};var cnL=function(){return m7&&no?no.mobile:!yn6()&&(rL("iPod")||rL("iPhone")||rL("Android")||rL("IEMobile"))},yn6=function(){return m7&&no?!no.mobile&&(rL("iPad")||rL("Android")||rL("Silk")):rL("iPad")||rL("Android")&&!rL("Mobile")||rL("Silk")};var Dg=function(e,z,C,w,K){this.allowedElements=e;this.elementPolicies=z;this.allowedGlobalAttributes=C;this.globalAttributePolicies=w;this.globallyAllowedAttributePrefixes=K},Ana=function(e,z,C){C=e.elementPolicies.get(C);
return(C==null?0:C.has(z))?C.get(z):e.allowedGlobalAttributes.has(z)?{policyAction:1}:(C=e.globalAttributePolicies.get(z))?C:e.globallyAllowedAttributePrefixes&&[].concat(_.s_(e.globallyAllowedAttributePrefixes)).some(function(w){return z.indexOf(w)===0})?{policyAction:1}:{policyAction:0}};var Zqc="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(" "),
pZU=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],en4="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
zng=[["dir",{policyAction:3,conditions:ht(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ht(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ht(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ht(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],C4U=new Dg(new Set(Zqc),new Map(pZU),new Set(en4),new Map(zng)),wVa=new Dg(new Set(Zqc.concat(["BUTTON",
"INPUT"])),new Map(pZU),new Set(ht(function(){return en4.concat(["class","id","name"])})),new Map(ht(function(){return zng.concat([["style",
{policyAction:1}]])})));var KIT,oys,Yt6;KIT=function(e,z,C,w,K){this.JSC$9455_sanitizerTable=e;this.styleElementSanitizer=z;this.styleAttributeSanitizer=C;this.JSC$9455_resourceUrlPolicy=w;this.JSC$9455_navigationUrlPolicy=K;this.changes=[]};
_.Gma=function(e,z){var C=document.implementation.createHTMLDocument("");e=oys(e,z,C);C=C.body;C.appendChild(e);C=(new XMLSerializer).serializeToString(C);C=C.slice(C.indexOf(">")+1,C.lastIndexOf("</"));return ec(C)};
oys=function(e,z,C){z=gy8(z,C);z=document.createTreeWalker(z,5,function(J){if(J.nodeType===3)J=1;else if(y04(J))if(J=jM4(J),J===null)J=2;else{var q=e.JSC$9455_sanitizerTable;J=J!=="FORM"&&(q.allowedElements.has(J)||q.elementPolicies.has(J))?1:2}else J=2;return J});
for(var w=z.nextNode(),K=C.createDocumentFragment(),G=K;w!==null;){var X=void 0;if(w.nodeType===3)e.styleElementSanitizer&&G.nodeName==="STYLE"?(w=e.styleElementSanitizer(w.data),X=e.createTextNode(w)):X=e.createTextNode(w.data);else if(y04(w))X=Yt6(e,w,C);else throw Error("Z");G.appendChild(X);if(w=z.firstChild())G=X;else for(;!(w=z.nextSibling())&&(w=z.parentNode());)G=G.parentNode}return K};
KIT.prototype.createTextNode=function(e){return document.createTextNode(e)};
Yt6=function(e,z,C){var w,K=jM4(z);C=C.createElement(K);z=z.attributes;for(var G=_.b(z),X=G.next();!X.done;X=G.next()){var J=X.value;X=J.name;J=J.value;var q=Ana(e.JSC$9455_sanitizerTable,X,K);a:{if(w=q.conditions){w=_.b(w);for(var T=w.next();!T.done;T=w.next()){var Q=_.b(T.value);T=Q.next().value;Q=Q.next().value;var m=void 0;if((T=(m=z.getNamedItem(T))==null?void 0:m.value)&&!Q.has(T)){w=!1;break a}}}w=!0}if(w)switch(q.policyAction){case 1:mI(C,X,J);break;case 2:throw Error();case 3:mI(C,X,J.toLowerCase());
break;case 4:e.styleAttributeSanitizer?(J=e.styleAttributeSanitizer(J),mI(C,X,J)):mI(C,X,J);break;case 5:e.JSC$9455_resourceUrlPolicy?(q={type:2,attributeName:X,elementName:K},J=t84(J),(J=e.JSC$9455_resourceUrlPolicy(J,q))&&mI(C,X,J.toString())):mI(C,X,J);break;case 6:if(e.JSC$9455_resourceUrlPolicy){q={type:2,attributeName:X,elementName:K};w=[];J=_.b(J.split(","));for(T=J.next();!T.done;T=J.next())Q=_.b(T.value.trim().split(/\s+/,2)),T=Q.next().value,Q=Q.next().value,w.push({url:T,descriptor:Q});
J={parts:[]};w=_.b(w);for(T=w.next();!T.done;T=w.next())T=T.value,Q=t84(T.url),(Q=e.JSC$9455_resourceUrlPolicy(Q,q))&&J.parts.push({url:Q.toString(),descriptor:T.descriptor});mI(C,X,c0g(J))}else mI(C,X,J);break;case 7:q=J;if(e.JSC$9455_navigationUrlPolicy){q={type:2,attributeName:X,elementName:K};J=t84(J);J=e.JSC$9455_navigationUrlPolicy(J,q);if(J===null)break;q=J.toString()}J=q;q=_.Qvk(J);q=q!==void 0&&bqS.indexOf(q.toLowerCase())!==-1?J:"about:invalid#zClosurez";mI(C,X,q)}}return C};
_.bJa=ht(function(){return new KIT(C4U)});
_.XVT=ht(function(){return new KIT(wVa)});var J0h=function(){this.calledBuild=!1;this.JSC$9467_sanitizerTable=C4U},kma=function(){J0h.apply(this,arguments)};
_.U(kma,J0h);kma.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new KIT(this.JSC$9467_sanitizerTable,void 0,void 0,this.JSC$9467_resourceUrlPolicy,this.JSC$9467_navigationUrlPolicy)};var qtX=/[^#]*/;var dXs={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"},xXh=_.uS(function(){return iJm()}),
$XT=function(){var e=TeX("IFRAME"),z={};
_.oX(xXh(),function(C){e.sandbox&&e.sandbox.supports&&e.sandbox.supports(C)&&(z[C]=!0)});
return z},TeX=function(e,z){z=z===void 0?document:z;
return z.createElement(String(e).toLowerCase())};var iS;_.NZ=function(e,z,C){return Math.min(Math.max(e,z),C)};
iS=function(e,z,C){return e+C*(z-e)};_.st=function(e,z){this.x=e!==void 0?e:0;this.y=z!==void 0?z:0};
_.Y=_.st.prototype;_.Y.clone=function(){return new _.st(this.x,this.y)};
_.Y.equals=function(e){return e instanceof _.st&&(this==e?!0:this&&e?this.x==e.x&&this.y==e.y:!1)};
_.Y.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.Y.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.Y.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.Y.translate=function(e,z){e instanceof _.st?(this.x+=e.x,this.y+=e.y):(this.x+=Number(e),typeof z==="number"&&(this.y+=z));return this};
_.Y.scale=function(e,z){this.x*=e;this.y*=typeof z==="number"?z:e;return this};_.RM=function(e,z){this.width=e;this.height=z};
_.Y=_.RM.prototype;_.Y.clone=function(){return new _.RM(this.width,this.height)};
_.Y.area=function(){return this.width*this.height};
_.Y.aspectRatio=function(){return this.width/this.height};
_.Y.isEmpty=function(){return!this.area()};
_.Y.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.Y.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.Y.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.Y.scale=function(e,z){this.width*=e;this.height*=typeof z==="number"?z:e;return this};var l0s;_.de={};l0s="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.de.add=function(e,z,C){if(e!==null&&z in e)throw Error("na`"+z);e[z]=C};
_.de.clear=function(e){for(var z in e)delete e[z]};
_.de.clone=function(e){var z={},C;for(C in e)z[C]=e[C];return z};
_.de.contains=function(e,z){return zvN(e,z)};
_.de.containsKey=function(e,z){return e!==null&&z in e};
_.de.containsValue=zvN;_.de.create=KaN;_.de.createImmutableView=function(e){var z=e;Object.isFrozen&&!Object.isFrozen(e)&&(z=Object.create(e),Object.freeze(z));return z};
_.de.createSet=o21;_.de.equals=function(e,z){for(var C in e)if(!(C in z)||e[C]!==z[C])return!1;for(var w in z)if(!(w in e))return!1;return!0};
_.de.every=function(e,z,C){for(var w in e)if(!z.call(C,e[w],w,e))return!1;return!0};
_.de.extend=function(e,z){for(var C,w,K=1;K<arguments.length;K++){w=arguments[K];for(C in w)e[C]=w[C];for(var G=0;G<l0s.length;G++)C=l0s[G],Object.prototype.hasOwnProperty.call(w,C)&&(e[C]=w[C])}};
_.de.filter=function(e,z,C){var w={},K;for(K in e)z.call(C,e[K],K,e)&&(w[K]=e[K]);return w};
_.de.findKey=CZ4;_.de.findValue=function(e,z,C){return(z=CZ4(e,z,C))&&e[z]};
_.de.forEach=function(e,z,C){for(var w in e)z.call(C,e[w],w,e)};
_.de.get=function(e,z,C){return e!==null&&z in e?e[z]:C};
_.de.getAllPropertyNames=function(e,z,C){if(!e)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return evo(e);for(var w={};e&&(e!==Object.prototype||z)&&(e!==Function.prototype||C);){for(var K=Object.getOwnPropertyNames(e),G=0;G<K.length;G++)w[K[G]]=!0;e=Object.getPrototypeOf(e)}return evo(w)};
_.de.getAnyKey=function(e){for(var z in e)return z};
_.de.getAnyValue=function(e){for(var z in e)return e[z]};
_.de.getCount=function(e){var z=0,C;for(C in e)z++;return z};
_.de.getKeys=evo;_.de.getSuperClass=function(e){return(e=Object.getPrototypeOf(e.prototype))&&e.constructor};
_.de.getValueByKeys=function(e,z){var C=_.B1(z),w=C?z:arguments;for(C=C?0:1;C<w.length;C++){if(e==null)return;e=e[w[C]]}return e};
_.de.getValues=function(e){var z=[],C=0,w;for(w in e)z[C++]=e[w];return z};
_.de.isEmpty=function(e){for(var z in e)return!1;return!0};
_.de.isImmutableView=function(e){return!!Object.isFrozen&&Object.isFrozen(e)};
_.de.map=function(e,z,C){var w={},K;for(K in e)w[K]=z.call(C,e[K],K,e);return w};
_.de.remove=function(e,z){var C;(C=z in e)&&delete e[z];return C};
_.de.set=function(e,z,C){e[z]=C};
_.de.setIfUndefined=function(e,z,C){return z in e?e[z]:e[z]=C};
_.de.setWithReturnValueIfNotSet=function(e,z,C){if(z in e)return e[z];C=C();return e[z]=C};
_.de.some=function(e,z,C){for(var w in e)if(z.call(C,e[w],w,e))return!0;return!1};
_.de.transpose=function(e){var z={},C;for(C in e)z[e[C]]=C;return z};
_.de.unsafeClone=woL;var pC=function(e,z){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=e===eh5&&z||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=QMS};
pC.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var mXX=function(e){return e instanceof pC&&e.constructor===pC&&e.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===QMS?e.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},QMS={},eh5={};
new pC(eh5,"");var Ot,Ov,sy,a0U,r0L,M8U,BV,UXa,I0S,vyC,j2,WIC,FIT,EyL,OJL,V8c,f0C,StC,uK4,mFL,dXC,iJh,NeL,DXL,NJ;Ot=function(e){return e?new NJ(_.t0(e)):Hoc||(Hoc=new NJ)};
_.b3=function(e,z){return typeof z==="string"?e.getElementById(z):z};
Ov=function(e,z){return(z||document).getElementsByTagName(String(e))};
_.nyU=function(e){return a0U("yt-formatted-string","paper-input-input",e)};
sy=function(e,z,C,w){e=w||e;return(z=z&&z!="*"?String(z).toUpperCase():"")||C?e.querySelectorAll(z+(C?"."+C:"")):e.getElementsByTagName("*")};
a0U=function(e,z,C){var w=document,K=e&&e!="*"?String(e).toUpperCase():"";return K||z?(C||w).querySelector(K+(z?"."+z:"")):sy(w,e,z,C)[0]||null};
r0L=function(e,z){_.de.forEach(z,function(C,w){w=="style"?e.style.cssText=C:w=="class"?e.className=C:w=="for"?e.htmlFor=C:M8U.hasOwnProperty(w)?e.setAttribute(M8U[w],C):_.om(w,"aria-")||_.om(w,"data-")?e.setAttribute(w,C):e[w]=C})};
M8U={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"};_.LJ=function(e){e=(e||window).document;e=e.compatMode=="CSS1Compat"?e.documentElement:e.body;return new _.RM(e.clientWidth,e.clientHeight)};
_.HJa=function(e){var z=_.BT(e);e=e.defaultView;return new _.st((e==null?void 0:e.pageXOffset)||z.scrollLeft,(e==null?void 0:e.pageYOffset)||z.scrollTop)};
_.BT=function(e){return e.scrollingElement?e.scrollingElement:_.MI||e.compatMode!="CSS1Compat"?e.body||e.documentElement:e.documentElement};
BV=function(e){return e?e.defaultView:window};
_.tL=function(e,z,C){return UXa(document,arguments)};
UXa=function(e,z){var C=z[1],w=vyC(e,String(z[0]));C&&(typeof C==="string"?w.className=C:Array.isArray(C)?w.className=C.join(" "):r0L(w,C));z.length>2&&I0S(e,w,z,2);return w};
I0S=function(e,z,C,w){function K(J){J&&z.appendChild(typeof J==="string"?e.createTextNode(J):J)}
for(;w<C.length;w++){var G=C[w];if(!_.B1(G)||_.gL(G)&&G.nodeType>0)K(G);else{a:{if(G&&typeof G.length=="number"){if(_.gL(G)){var X=typeof G.item=="function"||typeof G.item=="string";break a}if(typeof G==="function"){X=typeof G.item=="function";break a}}X=!1}_.oX(X?_.ig(G):G,K)}}};
_.Lh=function(e){return vyC(document,e)};
vyC=function(e,z){z=String(z);e.contentType==="application/xhtml+xml"&&(z=z.toLowerCase());return e.createElement(z)};
_.gJ=function(){return document.createTextNode("\n")};
j2=function(e){if(e.nodeType!=1)return!1;switch(e.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};
WIC=function(e,z){I0S(_.t0(e),e,arguments,1)};
_.yx=function(e){for(var z;z=e.firstChild;)e.removeChild(z)};
_.cT=function(e,z){z.parentNode&&z.parentNode.insertBefore(e,z)};
_.AL=function(e,z){z.parentNode&&z.parentNode.insertBefore(e,z.nextSibling)};
_.hA=function(e){return e&&e.parentNode?e.parentNode.removeChild(e):null};
_.P4C=function(e,z){var C=z.parentNode;C&&C.replaceChild(e,z)};
_.Rn4=function(e){var z,C=e.parentNode;if(C&&C.nodeType!=11)if(e.removeNode)e.removeNode(!1);else{for(;z=e.firstChild;)C.insertBefore(z,e);_.hA(e)}};
_.Zg=function(e){return e.children!=void 0?e.children:Array.prototype.filter.call(e.childNodes,function(z){return z.nodeType==1})};
_.hnS=function(e){return e.nextElementSibling!==void 0?e.nextElementSibling:_.LIh(e.nextSibling,!0)};
_.LIh=function(e,z){for(;e&&e.nodeType!=1;)e=z?e.nextSibling:e.previousSibling;return e};
_.xO=function(e){return _.gL(e)&&e.nodeType==1};
_.ph=function(e,z){if(!e||!z)return!1;if(e.contains&&z.nodeType==1)return e==z||e.contains(z);if(typeof e.compareDocumentPosition!="undefined")return e==z||!!(e.compareDocumentPosition(z)&16);for(;z&&e!=z;)z=z.parentNode;return z==e};
FIT=function(e,z){if(e==z)return 0;if(e.compareDocumentPosition)return e.compareDocumentPosition(z)&2?1:-1;if("sourceIndex"in e||e.parentNode&&"sourceIndex"in e.parentNode){var C=e.nodeType==1,w=z.nodeType==1;if(C&&w)return e.sourceIndex-z.sourceIndex;var K=e.parentNode,G=z.parentNode;return K==G?OJL(e,z):!C&&_.ph(K,z)?-1*EyL(e,z):!w&&_.ph(G,e)?EyL(z,e):(C?e.sourceIndex:K.sourceIndex)-(w?z.sourceIndex:G.sourceIndex)}w=_.t0(e);C=w.createRange();C.selectNode(e);C.collapse(!0);e=w.createRange();e.selectNode(z);
e.collapse(!0);return C.compareBoundaryPoints(_.wL.Range.START_TO_END,e)};
EyL=function(e,z){var C=e.parentNode;if(C==z)return-1;for(;z.parentNode!=C;)z=z.parentNode;return OJL(z,e)};
OJL=function(e,z){for(;z=z.previousSibling;)if(z==e)return-1;return 1};
V8c=function(e){var z,C=arguments.length;if(!C)return null;if(C==1)return arguments[0];var w=[],K=Infinity;for(z=0;z<C;z++){for(var G=[],X=arguments[z];X;)G.unshift(X),X=X.parentNode;w.push(G);K=Math.min(K,G.length)}G=null;for(z=0;z<K;z++){X=w[0][z];for(var J=1;J<C;J++)if(X!=w[J][z])return G;G=X}return G};
_.t0=function(e){return e.nodeType==9?e:e.ownerDocument||e.document};
f0C=function(e){return e.contentDocument||e.contentWindow.document};
_.pV=function(e,z){if("textContent"in e)e.textContent=z;else if(e.nodeType==3)e.data=String(z);else if(e.firstChild&&e.firstChild.nodeType==3){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(z)}else _.yx(e),e.appendChild(_.t0(e).createTextNode(String(z)))};
StC={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};uK4={IMG:" ",BR:"\n"};mFL=function(e){var z;e.tagName=="A"&&e.hasAttribute("href")||e.tagName=="INPUT"||e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="BUTTON"?z=!e.disabled&&(!e.hasAttribute("tabindex")||dXC(e)):z=e.hasAttribute("tabindex")&&dXC(e);return z};
dXC=function(e){e=e.tabIndex;return typeof e==="number"&&e>=0&&e<32768};
iJh=function(e){var z=[];DXL(e,z,!0);e=z.join("");e=e.replace(/ \xAD /g," ").replace(/\xAD/g,"");e=e.replace(/\u200B/g,"");e=e.replace(/ +/g," ");e!=" "&&(e=e.replace(/^\s*/,""));return e};
NeL=function(e){var z=[];DXL(e,z,!1);return z.join("")};
DXL=function(e,z,C){if(!(e.nodeName in StC))if(e.nodeType==3)C?z.push(String(e.nodeValue).replace(/(\r\n|\r|\n)/g,"")):z.push(e.nodeValue);else if(e.nodeName in uK4)z.push(uK4[e.nodeName]);else for(e=e.firstChild;e;)DXL(e,z,C),e=e.nextSibling};
_.sML=function(e,z,C){if(!z&&!C)return null;var w=z?String(z).toUpperCase():null;return _.j8(e,function(K){return(!w||K.nodeName==w)&&(!C||typeof K.className==="string"&&_.Sh(K.className.split(/\s+/),C))},!0)};
_.j8=function(e,z,C){e&&!C&&(e=e.parentNode);for(C=0;e;){if(z(e))return e;e=e.parentNode;C++}return null};
NJ=function(e){this.JSC$9495_document_=e||_.wL.document||document};
_.Y=NJ.prototype;_.Y.getElement=function(e){return _.b3(this.JSC$9495_document_,e)};
_.Y.$=NJ.prototype.getElement;_.Y.getElementsByTagName=function(e,z){return(z||this.JSC$9495_document_).getElementsByTagName(String(e))};
_.Y.getElementsByTagNameAndClass=function(e,z,C){return sy(this.JSC$9495_document_,e,z,C)};
_.Y.$$=NJ.prototype.getElementsByTagNameAndClass;_.Y.setProperties=r0L;_.Y.JSC$9497_createDom=function(e,z,C){return UXa(this.JSC$9495_document_,arguments)};
_.Y.createElement=function(e){return vyC(this.JSC$9495_document_,e)};
_.Y.createTextNode=function(e){return this.JSC$9495_document_.createTextNode(String(e))};
_.Y.getWindow=function(){return this.JSC$9495_document_.defaultView};
var h0=function(e){return _.HJa(e.JSC$9495_document_)};
_.Y=NJ.prototype;_.Y.appendChild=function(e,z){e.appendChild(z)};
_.Y.append=WIC;_.Y.canHaveChildren=j2;_.Y.removeNode=_.hA;_.Y.getChildren=_.Zg;_.Y.contains=_.ph;_.Y.isFocusable=mFL;_.Y=re.prototype;_.Y.getWidth=function(){return this.right-this.left};
_.Y.getHeight=function(){return this.bottom-this.top};
_.Y.clone=function(){return new re(this.top,this.right,this.bottom,this.left)};
_.Y.contains=function(e){return this&&e?e instanceof re?e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom:e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom:!1};
_.Y.expand=function(e,z,C,w){_.gL(e)?(this.top-=e.top,this.right+=e.right,this.bottom+=e.bottom,this.left-=e.left):(this.top-=e,this.right+=Number(z),this.bottom+=Number(C),this.left-=Number(w));return this};
_.Y.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};
_.Y.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};
_.Y.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};
_.Y.translate=function(e,z){e instanceof _.st?(this.left+=e.x,this.right+=e.x,this.top+=e.y,this.bottom+=e.y):(this.left+=e,this.right+=e,typeof z==="number"&&(this.top+=z,this.bottom+=z));return this};
_.Y.scale=function(e,z){z=typeof z==="number"?z:e;this.left*=e;this.right*=e;this.top*=z;this.bottom*=z;return this};var el=function(e,z,C,w){this.left=e;this.top=z;this.width=C;this.height=w};
_.Y=el.prototype;_.Y.clone=function(){return new el(this.left,this.top,this.width,this.height)};
_.Y.boundingRect=function(e){var z=Math.max(this.left+this.width,e.left+e.width),C=Math.max(this.top+this.height,e.top+e.height);this.left=Math.min(this.left,e.left);this.top=Math.min(this.top,e.top);this.width=z-this.left;this.height=C-this.top};
_.Y.contains=function(e){return e instanceof _.st?e.x>=this.left&&e.x<=this.left+this.width&&e.y>=this.top&&e.y<=this.top+this.height:this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height};
_.Y.distance=function(e){var z=e.x<this.left?this.left-e.x:Math.max(e.x-(this.left+this.width),0);e=e.y<this.top?this.top-e.y:Math.max(e.y-(this.top+this.height),0);return Math.sqrt(z*z+e*e)};
_.Y.getSize=function(){return new _.RM(this.width,this.height)};
_.Y.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};
_.Y.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};
_.Y.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};
_.Y.translate=function(e,z){e instanceof _.st?(this.left+=e.x,this.top+=e.y):(this.left+=e,typeof z==="number"&&(this.top+=z));return this};
_.Y.scale=function(e,z){z=typeof z==="number"?z:e;this.left*=e;this.width*=e;this.top*=z;this.height*=z;return this};var t8s,wB,Lp1,Ck,c0X,y0s,A0a,HVg,ZJY,evg;_.z1=function(e,z,C){if(typeof z==="string")(z=_.Bec(e,z))&&(e.style[z]=C);else for(var w in z){C=e;var K=z[w],G=_.Bec(C,w);G&&(C.style[G]=K)}};
t8s={};_.Bec=function(e,z){var C=t8s[z];if(!C){var w=_.Jw(z);C=w;e.style[w]===void 0&&(w=(_.MI?"Webkit":_.nb?"Moz":null)+Qv4(w),e.style[w]!==void 0&&(C=w));t8s[z]=C}return C};
_.Qz=function(e,z){var C=_.t0(e);return C.defaultView&&C.defaultView.getComputedStyle&&(e=C.defaultView.getComputedStyle(e,null))?e[z]||e.getPropertyValue(z)||"":""};
_.ZH=function(e,z){return _.Qz(e,z)||(e.currentStyle?e.currentStyle[z]:null)||e.style&&e.style[z]};
_.gyT=function(e){return _.ZH(e,"position")};
wB=function(e,z,C){if(z instanceof _.st){var w=z.x;z=z.y}else w=z,z=C;e.style.left=Ck(w,!1);e.style.top=Ck(z,!1)};
Lp1=function(e){try{return e.getBoundingClientRect()}catch(z){return{left:0,top:0,right:0,bottom:0}}};
_.ge=function(e){var z=_.t0(e),C=new _.st(0,0);if(e==(z?_.t0(z):document).documentElement)return C;e=Lp1(e);z=h0(Ot(z));C.x=e.left+z.x;C.y=e.top+z.y;return C};
_.jMs=function(e,z,C){if(z instanceof _.RM)C=z.height,z=z.width;else if(C==void 0)throw Error("oa");e.style.width=Ck(z,!0);e.style.height=Ck(C,!0)};
Ck=function(e,z){typeof e=="number"&&(e=(z?Math.round(e):e)+"px");return e};
c0X=function(e){return y0s(e)};
y0s=function(e){var z=A0a;if(_.ZH(e,"display")!="none")return z(e);var C=e.style,w=C.display,K=C.visibility,G=C.position;C.visibility="hidden";C.position="absolute";C.display="inline";e=z(e);C.display=w;C.position=G;C.visibility=K;return e};
A0a=function(e){var z=e.offsetWidth,C=e.offsetHeight,w=_.MI&&!z&&!C;return(z===void 0||w)&&e.getBoundingClientRect?(e=Lp1(e),new _.RM(e.right-e.left,e.bottom-e.top)):new _.RM(z,C)};
HVg=function(e){var z=_.ge(e);e=y0s(e);return new el(z.x,z.y,e.width,e.height)};
ZJY=function(e,z){e=e.style;"opacity"in e?e.opacity=z:"MozOpacity"in e?e.MozOpacity=z:"filter"in e&&(e.filter=z===""?"":"alpha(opacity="+Number(z)*100+")")};
_.Gt=function(e,z){e.style.display=z?"":"none"};
_.pVC=function(e){return"rtl"==_.ZH(e,"direction")};
evg=function(e){var z=_.Qz(e,"marginLeft"),C=_.Qz(e,"marginRight"),w=_.Qz(e,"marginTop");e=_.Qz(e,"marginBottom");return new re(parseFloat(w),parseFloat(C),parseFloat(e),parseFloat(z))};
_.zvL=function(e){var z=_.Qz(e,"borderLeftWidth"),C=_.Qz(e,"borderRightWidth"),w=_.Qz(e,"borderTopWidth");e=_.Qz(e,"borderBottomWidth");return new re(parseFloat(w),parseFloat(C),parseFloat(e),parseFloat(z))};var Kk=function(e){this.context=e};
Kk.prototype.isSupported=function(e){return(e==null?0:e.attributionEnabled)||(e==null?void 0:e.beaconMethod)==="POST"||(e==null?0:e.customHeaders)||(e==null?0:e.customBody)||(e==null?0:e.keepAlive)?!1:!Vx(this.context)};
Kk.prototype.ping=function(){var e=this;return fq(_.yL.apply(0,arguments).map(function(z){try{var C=e.context.global,w=!1;w=w===void 0?!1:w;C.google_image_requests||(C.google_image_requests=[]);var K=TeX("IMG",C.document);w&&(K.attributionSrc="");K.src=z;C.google_image_requests.push(K);return!0}catch(G){return!1}}).every(function(z){return z}))};
Kk.prototype.pingWithHeadersAndBody=function(e,z,C){this.ping.apply(this,_.s_(_.yL.apply(3,arguments)))};var CZs=function(e){this.context=e};
CZs.prototype.isSupported=function(e){return wo6&&!Vx(this.context)&&G54(this.context)!==void 0&&!(e==null?0:e.attributionEnabled)&&(e==null?void 0:e.beaconMethod)!=="POST"&&!(e==null?0:e.customHeaders)&&!(e==null?0:e.customBody)};
CZs.prototype.makeBeacon=function(e,z){if(!this.isSupported(z))throw new hL;return new oi(this.context,e)};
var wo6=!1,oi=function(e,z){this.context=e;this.JSC$9516_urlWithoutToken=z;e=G54(this.context);if(e===void 0)throw Error();this.wrappedBeacon=new e(KaL(this),{})},KaL=function(e){e=e.JSC$9516_urlWithoutToken;
return(e.slice(-1)[0]==="&"?e:e+"&")+"pbapi=1"};
oi.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
oi.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
oi.prototype.setHeader=function(){};
_.lB.Object.defineProperties(oi.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9516_urlWithoutToken},
set:function(e){this.JSC$9516_urlWithoutToken=e;this.wrappedBeacon.setURL(KaL(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(e){if(e!=="GET")throw new hL;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var o2a=function(e){this.context=e};
o2a.prototype.isSupported=function(e){if((e==null?0:e.attributionEnabled)||(e==null?void 0:e.beaconMethod)==="GET"||(e==null?0:e.customHeaders)||(e==null?0:e.customBody)||(e==null?0:e.keepAlive))return!1;var z;return!Vx(this.context)&&((z=this.context.global.navigator)==null?void 0:z.sendBeacon)!==void 0};
o2a.prototype.ping=function(){var e=this;return fq(_.yL.apply(0,arguments).map(function(z){var C;return(C=e.context.global.navigator)==null?void 0:C.sendBeacon(z)}).every(function(z){return z}))};
o2a.prototype.pingWithHeadersAndBody=function(e,z,C){this.ping.apply(this,_.s_(_.yL.apply(3,arguments)))};var WV=function(e){this.value=e},o4=function(e,z){return fq(e.value).pipe(vV(z))},Y2=new WV(!1),N1g=new WV(!0);var yb=function(e){this.value=e;this.releasedSubject=new HV};
yb.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.lB.Object.defineProperties(yb.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9529_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var aHh=["FRAME","IMG","IFRAME"],xG1=/^[01](px)?$/,mG1=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Q4L=function(){var e=new mG1;
e.crossDomainLoadedDefault=!0;e.pendingImagesBlockLoad=!0;return e};var G5s=function(e,z){var C=IHk(e);if(C)if(C.onCreativeLoad)C.onCreativeLoad(z);else{var w=z?[z]:[],K=function(G){for(var X=0;X<w.length;++X)try{w[X](1,G)}catch(J){}w={push:function(J){J(1,G)}}};
C.onCreativeLoad=function(G){w.push(G)};
C.setAttribute("data-creative-load-listener","");C.addEventListener("creativeLoad",function(G){K(G.detail)});
_.wL.addEventListener("message",function(G){v2m(C,K,G)})}};var G1=function(e,z){var C=this;this.global=e;this.parentContext=z;this.JSC$9540_onVisibilityChange=this.document?An(fq(!0),yp(this.document,"visibilitychange")).pipe(zm(this.parentContext.performanceMonitor,748),N1(function(){return C.getVisibilityState()}),Gm()):fq("visible");
this.document?yp(this.document,"DOMContentLoaded").pipe(zm(this.parentContext.performanceMonitor,739),oM(1)):fq(k51("DOMContentLoaded"))},ido=function(e){return e.document!==null&&e.document.visibilityState!==void 0};
G1.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
G1.prototype.querySelector=function(e){return this.document?this.document.querySelector(e):null};
G1.prototype.querySelectorAll=function(e){return this.document?_.ig(this.document.querySelectorAll(e)):[]};
G1.prototype.elementFromPoint=function(e,z){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;e=this.document.elementFromPoint(e,z);return e===null?null:new yb(e)};
var LME=function(e,z,C){C=C===void 0?!1:C;if(z.ref===void 0||!e.document)return fq(z).pipe(zm(e.parentContext.performanceMonitor,749));var w=new J0(1),K=function(){w.next(z)};
C||G5s(z.ref,K);n2E(z.ref,K);return w.pipe(zm(e.parentContext.performanceMonitor,749),oM(1))};
_.lB.Object.defineProperties(G1.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return NeN(this.global,"document")?this.global.document||null:null}}});var WaE=_.Kb(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),PZ4=_.Kb(["./reach_worklet.js"]),Rv1=_.Kb(["./reach_worklet.js"]),Yvg=_.Kb(["./reach_worklet.html"]),bhT=_.Kb(["./reach_worklet.js"]),XoX=_.Kb(["./reach_worklet.js"]);_.nJ(Yvg);_.nJ(bhT);_.nJ(XoX);var en={left:0,top:0,width:0,height:0};var JAU,k5a,qvh,xGa,qv,$GT,lHs,Q46,Bc8,td1,n2U,Mns;JAU=function(e,z,C,w,K,G,X){var J="";e&&(J+=e+":");C&&(J+="//",z&&(J+=z+"@"),J+=C,w&&(J+=":"+w));K&&(J+=K);G&&(J+="?"+G);X&&(J+="#"+X);return J};
k5a=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.JJ=function(e){return e.match(k5a)};
_.fM=function(e,z){return e?z?decodeURI(e):decodeURIComponent(e):e};
qvh=function(e){e=_.JJ(e)[1]||null;!e&&_.wL.self&&_.wL.self.location&&(e=_.wL.self.location.protocol.slice(0,-1));return e?e.toLowerCase():""};
_.kB=function(e){return _.fM(_.JJ(e)[3]||null,!0)};
_.Pi=function(e){return _.fM(_.JJ(e)[5]||null,!0)};
_.mcL=function(e){var z=e.indexOf("#");return z<0?null:e.slice(z+1)};
xGa=function(e){e=_.JJ(e);return JAU(e[1],e[2],e[3],e[4])};
_.T9U=function(e){e=_.JJ(e);return JAU(e[1],null,e[3],e[4])};
_.Sy=function(e){e=_.JJ(e);return JAU(null,null,null,null,e[5],e[6],e[7])};
_.tw=function(e){var z=e.indexOf("#");return z<0?e:e.slice(0,z)};
qv=function(e,z){e=_.JJ(e);z=_.JJ(z);return e[3]==z[3]&&e[1]==z[1]&&e[4]==z[4]};
$GT=function(e,z){if(e){e=e.split("&");for(var C=0;C<e.length;C++){var w=e[C].indexOf("="),K=null;if(w>=0){var G=e[C].substring(0,w);K=e[C].substring(w+1)}else G=e[C];z(G,K?TN(K):"")}}};
lHs=function(e){var z=e.indexOf("#");z<0&&(z=e.length);var C=e.indexOf("?");if(C<0||C>z){C=z;var w=""}else w=e.substring(C+1,z);return[e.slice(0,C),w,e.slice(z)]};
Q46=function(e,z){return z?e?e+"&"+z:z:e};
_.mGa=function(e,z){if(!z)return e;e=lHs(e);e[1]=Q46(e[1],z);return e[0]+(e[1]?"?"+e[1]:"")+e[2]};
_.aHS=function(e,z,C){if(Array.isArray(z))for(var w=0;w<z.length;w++)_.aHS(e,String(z[w]),C);else z!=null&&C.push(e+(z===""?"":"="+_.K0(z)))};
_.L0=function(e){var z=[],C;for(C in e)_.aHS(C,e[C],z);return z.join("&")};
_.XF=function(e,z){z=_.L0(z);return _.mGa(e,z)};
_.YQ=function(e,z,C){C=C!=null?"="+_.K0(C):"";return _.mGa(e,z+C)};
Bc8=function(e,z,C,w){for(var K=C.length;(z=e.indexOf(C,z))>=0&&z<w;){var G=e.charCodeAt(z-1);if(G==38||G==63)if(G=e.charCodeAt(z+K),!G||G==61||G==38||G==35)return z;z+=K+1}return-1};
td1=/#|$/;_.ea=function(e,z){var C=e.search(td1),w=Bc8(e,0,z,C);if(w<0)return null;var K=e.indexOf("&",w);if(K<0||K>C)K=C;w+=z.length+1;return TN(e.slice(w,K!==-1?K:0))};
n2U=/[?&]($|#)/;_.jy=function(e,z){for(var C=e.search(td1),w=0,K,G=[];(K=Bc8(e,w,z,C))>=0;)G.push(e.substring(w,K)),w=Math.min(e.indexOf("&",K)+1||C,C);G.push(e.slice(w));return G.join("").replace(n2U,"$1")};
_.z4=function(e,z,C){return _.YQ(_.jy(e,z),z,C)};
Mns=function(e){var z=lHs(window.location.href),C=z[1],w=[];C&&C.split("&").forEach(function(K){var G=K.indexOf("=");G=G>=0?K.slice(0,G):K;e.hasOwnProperty(G)||w.push(K)});
z[1]=Q46(w.join("&"),_.L0(e));return z[0]+(z[1]?"?"+z[1]:"")+z[2]};var cAh=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(cAh,_.X2);var yA8=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(yA8,_.X2);var N9m=function(e,z){return _.Et(e,2,z)},j41=function(e,z){return _.Et(e,3,z)};
yA8.prototype.getModel=function(){return _.Ds(this,4)};
var B9g=function(e,z){return _.Et(e,4,z)},ihm=function(e,z){return _.Et(e,5,z)},g21=function(e,z){return _.Et(e,9,z)},DG7=function(e,z){return FX(e,10,z)},dGo=function(e,z){return _.a4(e,11,z)},s4o=function(e,z){return _.Et(e,1,z)},tnL=function(e,z){return _.a4(e,7,z)};var Sv1="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var G5=function(e,z,C,w){e=e===void 0?window:e;z=z===void 0?null:z;C=C===void 0?new SCS:C;w=w===void 0?Lag():w;Oqo.call(this);var K=this;this.global=e;this.debugChannel=z;this.performanceMonitor=C;this.onPageHide=qtg(function(){return yp(K.global,"pagehide")}).pipe(zm(this.performanceMonitor,941));
this.onLoad=qtg(function(){return yp(K.global,"load")}).pipe(zm(this.performanceMonitor,738),oM(1));
this.onResize=qtg(function(){return yp(K.global,"resize")}).pipe(zm(this.performanceMonitor,741));
this.onMessage=qtg(function(){return yp(K.global,"message")}).pipe(zm(this.performanceMonitor,740));
this.document=new G1(this.global,this);this.timeProvider=new ugC(new D1g(this.intrinsicFunctionNamespace,this.performanceMonitor),new d1L(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new VcT(new N5h(this),new CZs(this),new Oy(this,new tc4(this)),new Oy(this,new o2a(this)),new Oy(this,new Kk(this)))};
_.U(G5,Oqo);G5.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(e){return e}};
var Vx=function(e){var z=e.global;return!!e.global.HTMLFencedFrameElement&&!!z.fence&&typeof z.fence.reportEvent==="function"};
_.Y=G5.prototype;_.Y.reportFencedFrameEvent=function(e){Vx(this)&&this.global.fence.reportEvent(e)};
_.Y.getOnBackgrounded=function(){return this.onPageHide.pipe(zm(this.performanceMonitor,942),vV(this.queue),N1(function(){}))};
_.Y.postMessage=function(e,z,C){C=C===void 0?[]:C;this.global.postMessage(e,z,C)};
_.Y.getWidth=function(){return sMN(this.global)?this.global.width:0};
_.Y.getHeight=function(){return sMN(this.global)?this.global.height:0};
_.Y.isMobile=function(){return yn6()||cnL()};
var cV=function(e,z){try{var C=Fas(z,e.global,e.isMobile());return{left:C.left,top:C.top,width:C.getWidth(),height:C.getHeight()}}catch(w){return en}};
G5.prototype.validate=function(){var e=this.beaconFactory.isSupported()||Vx(this);return this.global&&this.timeProvider.available()&&e};
var bh8=function(e){return(e=Zho(e.global))?vZ(e):null};
_.lB.Object.defineProperties(G5.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(e){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(e){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!sMN(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}}});_.rAX=!_.aP&&!_.m51();var sV1=function(e){return e};var t55=function(e){return e.pipe(ZG(function(z){var C=z.endOfSessionReason;var w;return((w=z.viewable)==null?void 0:w.extrapolateToNow().value)||C!=void 0}),oM(1),we())};var oJh=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Gt5=function(e){var z=e.sequenceNumber.toString(10).padStart(2,"0");
z=""+e.startTime+z;e.sequenceNumber<99&&e.sequenceNumber++;return z};var Dmm=M1(l4(function(e){return e.endOfSessionReason===void 0}),N1(function(e){return Object.assign({},e,{timestamps:Vb(e)})}),ZG(function(e){var z=e.viewable;
e=e.timestamps;var C;return(C=z==null?void 0:z.extrapolateUsingTimestampMap(e).value)!=null?C:!1}),N1(function(e){var z=e.beaconFactory;
var C=e.timestampedExposureHistory;var w=e.timeOnScreen;var K=e.binaryContext;e=e.timestamps;if(z===void 0||C===void 0||w===void 0||K===void 0)return!1;if(w.extrapolateUsingTimestampMap(e).value.every(function(G){return G>=0}))return!0;
C=C.map(function(G){return G.timestamp+":"+G.value}).join(",");
w=YH5({bin:K,tos:w},e);z.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+w+("&eh="+C)).sendNow();return!0}),l4(function(e){return!e}),we());var XC7=function(e){return{id:e.pingId,mcvt:e.maxConsecutiveViewTime,p:e.creativePosition,asp:e.adSpeedPosition,tm:e.totalMeasurementTime,tu:e.totalUnviewedTime,mtos:e.maxTimeOnScreen,tos:e.timeOnScreen,v:e.binaryVersion,bin:e.binaryContext,avms:e.measurementStrategy,bs:e.browserSize,mc:e.maximumExposure,"if":e.crossDomainIframeState,vu:e.delayedImpressionJsState,app:e.inApp,mse:e.mraidError,mtop:e.mraidSituation,itpl:e.injectedTemplateId,adk:e.adKey,exk:e.awbidKey,rs:e.requestSource,la:e.isLargeAd,
cr:e.isContentRecommendationAd,uach:e.userAgentClientHints,vs:e.viewState,r:e.reasonCode,pay:e.hasCpmavUrl,co:e.clientPingOrderCounter,rst:e.adRenderStartTime,rpt:e.adRenderPeriodTime,isd:e.initialScrollDepth,lsd:e.loadedScrollDepth,context:e.errorContext,msg:e.errorMessage,stack:e.errorStack,name:e.errorName,ec:e.hasElementChanged,sfr:e.strategyFailureReasons,met:e.creativeSearchResult,wmsd:e.webMeasurementStartDiagnostic,pv:e.pageVisible,epv:e.eosPageVisible,pbe:e.inStatefulBeaconExperiment,fle:e.inFetchLaterBeaconExperiment,
vae:e.inViewableAttributionExperiment,spb:e.supportsPendingBeacon,sfl:e.supportsFetchLater,ffslot:e.isFencedFrameSlotTurtlex,reach:e.sharedStorageReachMode,io2:e.v2VisibilityBitVector,rxdbg:e.rxDebugger,omida:e.omidAppId,omidp:e.omidPartner,omidpv:e.omidPartnerVersion,omidor:e.omidOcclusionReasons,omidv:e.omidVersion,omids:e.omidSessionType,omidam:e.omidAccessMode,omidct:e.omidCreativeType,omidia:e.omidInApp,omiddc:e.omidDeviceCategory,omidlat:e.omidLastActivity,omiddit:e.omidDeviceIdleTime,qid:e.errorEscapedQueryId}};var B1N=function(e){var z=[];return e.pipe(N1(function(C){var w=C.beaconFactory,K=C.fetchBeaconFactory,G=C.timeOnScreen,X=C.timeOnScreenUrlPrefixes,J=C.payloadMapper,q=C.timeOnScreenPingId,T=C.timeOnScreenReason,Q=C.urlSerializer,m=C.viewable,a=C.hasImpressionFired,n=C.inStatefulBeaconExperiment,H=C.supportsPendingBeacon,I=C.supportsFetchLater,L=C.turtlexReportEventData;if(!C.geometryMeasurable||!a||C.maxTimeOnScreen===void 0||G===void 0||X===void 0||J===void 0||q===void 0||Q===void 0||w===void 0)return!1;
if(C.isTurtlex){if(T===void 0)return!1;X=C.reportFencedFrameEvent;if(!X)return!1;X({eventType:"active-view-time-on-screen",eventData:L!=null?L:"",destination:["buyer"]});return!0}if(!(n||I||T))return!1;L=Vb(C);var h;m=(h=m==null?void 0:m.extrapolateUsingTimestampMap(L).value)!=null?h:!1;h=Q(Object.assign({},C,{pingId:q,viewState:m?4:3,reasonCode:T!=null?T:"u",payloadMapper:J,urlPrefixes:X}),L);if(n){for(;z.length>X.length;)C=void 0,(C=z.shift())==null||C.deactivate();h.forEach(function(N,D){D>=z.length?
z.push(w.makeBeacon(N)):z[D].url=N});
return H&&K&&T!==void 0?(h.forEach(function(N){K.makeBeacon(N).sendNow()}),!0):T!==void 0}if(H&&K&&T!==void 0)return h.forEach(function(N){K.makeBeacon(N).sendNow()}),!0;
if(I&&K){for(;z.length>X.length;)H=void 0,(H=z.shift())==null||H.deactivate();var E=Q(Object.assign({},C,{pingId:q,viewState:m?4:3,reasonCode:T!=null?T:"u",payloadMapper:J,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),L)[0];h.forEach(function(N,D){D>=z.length?z.push(w.makeBeacon(E,{endOfSession:!0})):z[D].url=E});
return T!==void 0?(h.forEach(function(N){K.makeBeacon(N).sendNow()}),!0):T!==void 0}return T!==void 0?(h.forEach(function(N){w.makeBeacon(N).sendNow()}),!0):!1}),l4(function(C){return!C}),we())};var gio=M1(ZG(function(e){return e.immediateUrlPrefixes!==void 0&&e.payloadMapper!==void 0&&e.urlSerializer!==void 0&&e.inferredPingId!==void 0&&e.beaconFactory!==void 0}),ZG(function(e){return QI7(e)!==null}),$64(function(e){return e.activeViewUnmeasurableEvent},function(e){return e.emit}),N1(function(e){if(e.isTurtlex){var z=e.reportFencedFrameEvent;
if(z){var C;z({eventType:"active-view-unmeasurable",eventData:(C=e.turtlexReportEventData)!=null?C:"",destination:["buyer"]})}}else{C=void 0;var w=QI7(e);if(w==="x"){var K,G=(K=e.geometricMeasurementErrors)!=null?K:e.contextValidationErrors;G&&(z=G.stack,C=G.message)}e.urlSerializer(Object.assign({},e,{urlPrefixes:e.immediateUrlPrefixes,payloadMapper:e.payloadMapper,pingId:e.inferredPingId,viewState:2,reasonCode:w,errorMessage:C,errorStack:z}),Vb(e)).forEach(function(X){e.beaconFactory.makeBeacon(X).sendNow()})}}),
oM(1),we());var m6E=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var dm4=M1(ZG(function(e){return e.payloadMapper!==void 0&&e.immediateUrlPrefixes!==void 0&&e.urlSerializer!==void 0&&e.inferredPingId!==void 0&&e.beaconFactory!==void 0}),N1(function(e){return Object.assign({},e,{timestamps:Vb(e)})}),ZG(function(e){var z=e.viewable;
var C=e.hasImpressionFired;e=e.timestamps;var w;return!!C&&((w=z==null?void 0:z.extrapolateUsingTimestampMap(e).value)!=null?w:!1)}),$64(function(e){return e.activeViewViewableEvent},function(e){return e.emit}),N1(function(e){var z=e.beaconFactory,C=e.turtlexReportEventData;
if(e.isTurtlex){var w=e.reportFencedFrameEvent;if(!w)return!1;w({eventType:"active-view-viewable",eventData:C!=null?C:"",destination:["buyer"]});return!0}C=e.urlSerializer(Object.assign({},e,{urlPrefixes:e.immediateUrlPrefixes,payloadMapper:e.payloadMapper,pingId:e.inferredPingId,viewState:4,reasonCode:"v"}),e.timestamps);(w=e.cpmavUrls)&&w.length>0&&e.viewUrlSerializer&&e.viewUrlSerializer(w,e).forEach(function(K){z.makeBeacon(K).sendNow()});
(w=e.viewableRelayUrls)&&w.length>0&&e.viewUrlSerializer&&e.viewUrlSerializer(w,e).forEach(function(K){z.makeBeacon(K).sendNow()});
C.forEach(function(K){z.makeBeacon(K,{attributionEnabled:e.isViewableAttributionEnabled}).sendNow()});
return!0}),l4(function(e){return!e}),we());var XR7=N1(function(e){return[e.value.topWindowViewportExternalGeometry.width,e.value.topWindowViewportExternalGeometry.height]});var Z0=function(e,z){this.callback=e;this.options=z;this.intersectionObserverV2=this.intersectionObserverV1=null},Bpo=function(e,z){z?e.intersectionObserverV2||(z=Object.assign({},e.options,{delay:100,
trackVisibility:!0}),e.intersectionObserverV2=new IntersectionObserver(e.callback,z)):e.intersectionObserverV1||(e.intersectionObserverV1=new IntersectionObserver(e.callback,e.options))},HhU=function(e,z){e=z?e.intersectionObserverV2:e.intersectionObserverV1;
if(!e)throw new EoY;return e};
Z0.prototype.observe=function(e,z){HhU(this,e).observe(z)};
Z0.prototype.unobserve=function(e,z){HhU(this,e).unobserve(z)};
Z0.prototype.disconnect=function(e){HhU(this,e).disconnect()};
Z0.prototype.takeRecords=function(e){return HhU(this,e).takeRecords()};var Ojk={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:en,topWindowViewportExternalGeometry:en,measurementRequests:new HV,elementGeometrySourceName:"ns",elementGeometry:en,intersectionGeometry:en,viewportLocalAppOffset:{x:0,y:0}};var Zj4=z5(M1(N1(function(e){var z;return(z=e.exposureOverride)!=null?z:gJ8(e)}),N1(function(e){return isFinite(e)?e:0}))),oig=z5(M1(N1(function(e){var z;
return(z=e.exposureOverride)!=null?z:gJ8(e)}),N1(function(e){return isFinite(e)?e:-1})));var bb=function(e,z){this.a=e;this.b=z;if(e.clock.timeline!==z.clock.timeline)throw Error();};
bb.prototype.equivalentTo=function(e){return e instanceof bb?this.a.equivalentTo(e.a)&&this.b.equivalentTo(e.b):!1};
bb.prototype.extrapolateToTime=function(e){var z=this.a.extrapolateToTime(e).value,C=this.b.extrapolateToTime(e).value;return{timestamp:e,value:[z,C]}};
_.lB.Object.defineProperties(bb.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 e=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),z=this.a.lastMeasurement.timestamp.equals(e)?this.a.lastMeasurement.value:this.a.extrapolateToTime(e).value,C=this.b.lastMeasurement.timestamp.equals(e)?this.b.lastMeasurement.value:this.b.extrapolateToTime(e).value;return{timestamp:e,value:[z,C]}}}});var Xb=function(e,z){this.input=e;this.mapFunction=z;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Xb.prototype.equivalentTo=function(e){return e instanceof Xb?this.input.equivalentTo(e.input)&&this.mapFunction===e.mapFunction:!1};
Xb.prototype.extrapolateToTime=function(e){e=this.input.extrapolateToTime(e);return{timestamp:e.timestamp,value:this.mapFunction(e.value)}};
_.lB.Object.defineProperties(Xb.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var JT=function(){};
JT.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
JT.prototype.extrapolateUsingTimestampMap=function(e){var z=this.clock.timeline,C,w=(C=e.get(z))!=null?C:this.clock.now();e.set(z,w);return this.extrapolateToTime(w)};
JT.prototype.map=function(e){return new UGh(this,e)};
JT.prototype.joinWith=function(e){return new v2h(this,e)};
var v2h=function(){bb.apply(this,arguments);this.map=JT.prototype.map;this.joinWith=JT.prototype.joinWith;this.extrapolateToNow=JT.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JT.prototype.extrapolateUsingTimestampMap};
_.U(v2h,bb);var UGh=function(){Xb.apply(this,arguments);this.map=JT.prototype.map;this.joinWith=JT.prototype.joinWith;this.extrapolateToNow=JT.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JT.prototype.extrapolateUsingTimestampMap};
_.U(UGh,Xb);var w9=function(e,z){this.lastMeasurement=z;this.extrapolateToNow=JT.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=JT.prototype.extrapolateUsingTimestampMap;this.map=JT.prototype.map;this.joinWith=JT.prototype.joinWith;this.clock=e};
w9.prototype.equivalentTo=function(e){return e.active};
w9.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.lB.Object.defineProperties(w9.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var bd1=N1(function(e){if(e.value.viewportGeometrySourceName==="omid"){if(e.value.elementGeometrySourceName==="nio")return"omio";if(e.value.elementGeometrySourceName==="geo")return"omgeo"}return e.value.elementGeometrySourceName==="geo"||e.value.elementGeometrySourceName==="nio"?e.value.viewportGeometrySourceName:e.value.elementGeometrySourceName});var yGm=M1(ZG(function(e){return!isNaN(e)}),qX(function(e,z){return isNaN(e)?z:Math.min(e,z)},NaN),Gm());var pCg=z5(M1(N1(function(e){return e.intersectionGeometry.width*e.intersectionGeometry.height/(e.exposedViewportLocalGeometry.width*e.exposedViewportLocalGeometry.height)}),N1(function(e){return isFinite(e)?Math.min(1,e):0})));var Yg1=M1(z5(N1(function(e){e=e.exposureOverride?e.elementGeometry.width*e.elementGeometry.height*e.exposureOverride/(e.topWindowViewportExternalGeometry.width*e.topWindowViewportExternalGeometry.height):e.intersectionGeometry.width*e.intersectionGeometry.height/(e.topWindowViewportExternalGeometry.width*e.topWindowViewportExternalGeometry.height);return isFinite(e)?e:0})));var qgE=function(e,z){var C=this;this.timeProvider=e;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=z.pipe(Gm()).subscribe(function(w){T11(C);C.measurementRequestObserver=w})},$m8=function(e,z){T11(e);
e.lastMeasurementRequest=e.timeProvider.setTimeout(function(){var C;return void((C=e.measurementRequestObserver)==null?void 0:C.next())},z)},T11=function(e){e.lastMeasurementRequest!==null&&e.timeProvider.clearTimeout(e.lastMeasurementRequest);
e.lastMeasurementRequest=null};
qgE.prototype.dispose=function(){T11(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var IH4=function(){};var f_g=function(e,z){this.context=e;this.strategies=z};
_.U(f_g,IH4);f_g.prototype.buildGeometrySource=function(e,z){var C=this.strategies.map(function(G){return G.buildGeometrySource(e,z)}),w=nio(C.map(function(G){return G.geometrySource})),K=w.capturedErrors.pipe(WaU());
return{geometrySource:w.chain.pipe(vV(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:K,strategyErrors:w.capturedErrors}].concat(_.s_(C.map(function(G){return G.additionalOutputs}))))}};
var WaU=function(){return qX(function(e,z){z instanceof S8?e.push(z.measurementStrategyFailureReason):e.push(-1);return e},[])};var u1L=function(e,z){this.context=e;this.poller=z};
_.U(u1L,IH4);u1L.prototype.buildGeometrySource=function(e,z){var C=M55(Hdg(this.context,this.poller),EJs(this.context,z.requestSource));return{geometrySource:a_1(e.measurableCreative.pipe(C),z.inApp),additionalOutputs:{}}};var SgN=function(e,z,C){C=C===void 0?d6L(e,z):C;this.context=e;this.intersectionObserverStrategy=C};
_.U(SgN,IH4);SgN.prototype.buildGeometrySource=function(e,z){var C=this.intersectionObserverStrategy(z.useV2);return{geometrySource:a_1(e.measurableCreative.pipe(C,D6g(this.context)),z.inApp),additionalOutputs:{}}};var PZs=function(e,z,C){var w=w===void 0?Symbol():w;this.element=e;this.immediateUrls=z;this.timeOnScreenUrls=C;this.symbol=w};var kR7=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Pi8=Object.freeze([1,.75,kR7.exposureThreshold,kR7.largeAdExposureThreshold,0]);var upN=function(e,z){z=z===void 0?36E5:z;var C=C===void 0?!0:C;this.creatives=new HV;this.elementsToUnregister=new HV;this.elementMap=new Map;var w=new G5(window,null);w.beaconFactory=new Oy(w,new Kk(w));V54(w,this.creatives,this.elementsToUnregister,e,z,C).subscribe()},i1k=function(e,z,C,w){if(!e.elementMap.has(z)){var K=new yb(z);
e.elementMap.set(z,K);e.creatives.next(new PZs(K,C,w))}},Dhg=function(e,z){e.elementsToUnregister.next(z);
var C=e.elementMap.get(z);C!==void 0&&(C.release(),e.elementMap.delete(z))};var j3L=function(e){var z=e.url;e=e.uaDataValues;this.JSC$9645_url_=z;this.uaDataValues_=e;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var C=/[?&]([^&=]+)=([^&]*)/g;e=C.exec(z);)this.urlParamValues_[e[1]]=e[2]},yKm=function(e){e=e.uaDataValues_;
if(!e)return"";var z=bZ("uap",e.platform)+bZ("uapv",e.platformVersion)+bZ("uafv",e.uaFullVersion)+bZ("uaa",e.architecture)+bZ("uam",e.model)+bZ("uab",e.bitness);e.fullVersionList&&(z+="&uafvl="+encodeURIComponent(e.fullVersionList.map(function(C){return encodeURIComponent(C.brand)+";"+encodeURIComponent(C.version)}).join("|")));
e.wow64!=null&&(z+="&uaw="+Number(e.wow64));return z.slice(1)};var Rva=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Rva,_.X2);Rva.prototype.getId=function(){return _.Ds(this,1)};var kQ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(kQ,_.X2);kQ.prototype.getSeconds=function(){return u5(this,1)};
kQ.prototype.setSeconds=function(e){return _.eg(this,1,TL(e),"0")};_.DW=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(_.DW,_.X2);_.DW.prototype.getSeconds=function(){return u5(this,1)};
_.DW.prototype.setSeconds=function(e){return _.eg(this,1,TL(e),"0")};
_.Lao=function(e){var z=Number(NI(e,1));e=_.$2(e,2);return new Date(z*1E3+e/1E6)};var q3=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(q3,_.X2);q3.prototype.getUrl=function(){return _.Ds(this,1)};
q3.prototype.setUrl=function(e){return _.ZW(this,1,e)};
q3.prototype.getHeight=function(){return _.$2(this,2)};
q3.prototype.getWidth=function(){return _.$2(this,3)};var xQ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(xQ,_.X2);xQ.prototype.getAspectRatio=function(){return d4(this,1)};
xQ.prototype.getDuration=function(){return _.ra(this,kQ,2)};var hv6=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(hv6,_.X2);var Oh6=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Oh6,_.X2);var E2S=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(E2S,_.X2);var FaC=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(FaC,_.X2);var VnY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(VnY,_.X2);var fHX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(fHX,_.X2);var Sva=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Sva,_.X2);var uUY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(uUY,_.X2);var dGg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(dGg,_.X2);var T1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(T1,_.X2);var $Q=[2,4,5,6,7];var DGc=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(DGc,_.X2);var V8=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(V8,_.X2);_.Y=V8.prototype;_.Y.getId=function(){return _.ra(this,Rva,1)};
_.Y.getName=function(){return _.Ds(this,2)};
_.Y.setDescription=function(e){return _.ZW(this,3,e)};
_.Y.getUrl=function(){return _.Ds(this,8)};
_.Y.setUrl=function(e){return _.ZW(this,8,e)};
var lb=function(e){return _.x2(e,q3,10,_.T5())};
V8.prototype.getOwner=function(e){return _.usc(this,40,e)};
var QE=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(QE,_.X2);_.mE=[0,CV,P$h];_.ai=[0,CV,P$h];var ihh=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ihh,_.X2);var nk=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(nk,_.X2);nk.prototype.getStatus=function(){return _.i5(this,1)};
nk.prototype.removeItem=function(e){return VSs(this,2,e)};var N9h=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(N9h,_.X2);N9h.prototype.getName=function(){return _.Ds(this,8)};var M3=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(M3,_.X2);M3.prototype.getCommand=function(){return _.i5(this,1)};
M3.prototype.getSource=function(){return _.ra(this,N9h,2)};
M3.prototype.setVisible=function(e){return _.Hr(this,5,e)};
M3.prototype.removeItem=function(e){return VSs(this,7,e)};var s4g=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(s4g,_.X2);s4g.prototype.getCommand=function(){return _.i5(this,1)};
s4g.prototype.removeItem=function(e){return VSs(this,4,e)};
var B9X=_.IT(s4g);var rB=function(e,z,C){C=C===void 0?Error():C;var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=e;z+=":";C instanceof Error?(this.message=z+C.message,this.stack=C.stack||""):(this.message=z+String(C),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.U(rB,Error);_.Sn=function(){this.JSC$9703_disposed_=this.JSC$9703_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Sn.prototype.JSC$9703_disposed_=!1;_.Sn.prototype.isDisposed=function(){return this.JSC$9703_disposed_};
_.Sn.prototype.dispose=function(){this.JSC$9703_disposed_||(this.JSC$9703_disposed_=!0,this.disposeInternal())};
_.Sn.prototype[Symbol.dispose]=function(){this.dispose()};
_.I4=function(e,z){e.addOnDisposeCallback(_.xk(_.XU,z))};
_.Sn.prototype.addOnDisposeCallback=function(e,z){this.JSC$9703_disposed_?z!==void 0?e.call(z):e():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),z&&(e=e.bind(z)),this.onDisposeCallbacks_.push(e))};
_.Sn.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var H2=function(e){_.Sn.call(this);this.wpc=e};
_.U(H2,_.Sn);H2.prototype.em2=function(){return this.wpc.f()};
H2.prototype.bV9=function(e){return this.wpc.c(e)};
H2.prototype.jD=function(e){return this.wpc.m(ZdL(e))};
H2.prototype.ywQ=function(e){return this.wpc.mws(ZdL(e))};
var qG=function(e){_.Sn.call(this);var z=this;this.vm=e;this.jQa="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.iTv=void 0;this.bMn=this.vm.p;this.hvl=this.zrz.bind(this);this.addOnDisposeCallback(function(){return void tn6(z)})};
_.U(qG,_.Sn);var g2a=function(e){var z;return _.k(function(C){if(C.nextAddress==1){if(!e.vm.wpc)throw new rB(30,"NWA");return e.qwx?C.return(e.qwx):C.yield(e.vm.wpc(),2)}z=C.yieldResult;e.qwx=new H2(z);return C.return(e.qwx)})};
qG.prototype.snapshot=function(e){return this.vm.s(Object.assign({},e.tZ&&{c:e.tZ},e.ztP&&{s:e.ztP},e.kfS!==void 0&&{p:e.kfS}))};
qG.prototype.zrz=function(e){this.vm.e(e)};
qG.prototype.l1e=function(e,z){return this.vm.c(e,z,!1)};
var tn6=function(e){e.iTv!==void 0&&(e.jQa.forEach(function(z){var C;(C=e.iTv)==null||C.removeEventListener(z,e.hvl)}),e.iTv=void 0)};
qG.prototype.bZv=function(){return this.vm.l()};var US=function(){_.Sn.apply(this,arguments);this.ts0=1};
_.U(US,_.Sn);US.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.ts0++;return this};
US.prototype.dispose=function(){--this.ts0||_.Sn.prototype.dispose.call(this)};var j4a=function(e){this.b6g=e;e.addNewEventMetric("/client_streamz/bg/frs",_.ma("mk"))};
j4a.prototype.record=function(e,z){this.b6g.record("/client_streamz/bg/frs",e,z)};
var yAT=function(e){this.vF0=e;e.addNewEventMetric("/client_streamz/bg/wrl",_.ma("mn"),Q4("ac"),Q4("sc"),_.ma("rk"),_.ma("mk"))};
yAT.prototype.record=function(e,z,C,w,K,G){this.vF0.record("/client_streamz/bg/wrl",e,z,C,w,K,G)};
var cAS=function(e){this.qFI=e;e.addNewCounter("/client_streamz/bg/ec",_.ma("en"),_.ma("mk"))};
cAS.prototype.increment=function(e,z){this.qFI.JSC$9956_incrementCounter("/client_streamz/bg/ec",e,z)};
var AAc=function(e){this.tjA=e;e.addNewEventMetric("/client_streamz/bg/el",_.ma("en"),_.ma("mk"))};
AAc.prototype.record=function(e,z,C){this.tjA.record("/client_streamz/bg/el",e,z,C)};
var Zhg=function(e){this.a82=e;e.addNewCounter("/client_streamz/bg/cec",Q4("ec"),_.ma("mk"))};
Zhg.prototype.increment=function(e,z){this.a82.JSC$9956_incrementCounter("/client_streamz/bg/cec",e,z)};
var poY=function(e){this.rm0=e;e.addNewCounter("/client_streamz/bg/po/csc",Q4("cs"),_.ma("mk"))};
poY.prototype.increment=function(e,z){this.rm0.JSC$9956_incrementCounter("/client_streamz/bg/po/csc",e,z)};
var eoT=function(e){this.sHn=e;e.addNewCounter("/client_streamz/bg/po/ctav",_.ma("av"),_.ma("mk"))};
eoT.prototype.increment=function(e,z){this.sHn.JSC$9956_incrementCounter("/client_streamz/bg/po/ctav",e,z)};
var zoS=function(e){this.fP0=e;e.addNewCounter("/client_streamz/bg/po/cwsc",_.ma("su"),_.ma("mk"))};
zoS.prototype.increment=function(e,z){this.fP0.JSC$9956_incrementCounter("/client_streamz/bg/po/cwsc",e,z)};var I61=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(I61,_.X2);var vBN=function(e,z){return _.pv(e,3,z,r4N)};var C0o=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(C0o,_.X2);var wC4=[1,2,3];var Kp4=[0,wC4,_.JL,RW6,Ova];var oJS=[0,_.kl,[0,e2,_.zv]];var GtY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(GtY,_.X2);var YHY=[1,2,3];var bj6=[0,YHY,I36,MEU,_.qJ,oJS];var XCc=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(XCc,_.X2);var JGo=[0,_.kl,Kp4,bj6];var ktS=[0,_.bS];var qHT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(qHT,_.X2);var x6U=[0,_.bS,-1,_.Gv];var TpX=[0,_.bS,-1,_.o8,_.Gv];var $6s=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U($6s,_.X2);var lK6=[1,2,3];var QIc=[0,lK6,_.qJ,x6U,_.qJ,TpX,_.qJ,ktS];var m6U=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(m6U,_.X2);m6U.prototype.JSC$9776_serializeBinary=eX1([0,_.bS,QIc,EZa,_.kl,JGo,L5c,_.hWX]);var aKS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(aKS,_.X2);var rGL=function(e){var z=new m6U;z=_.Et(z,1,e.JSC$9892_metricName);var C=nJ4(e);z=_.pv(z,3,C,_.m5);C=[];for(var w=[],K=_.b(e.cellMap.keys()),G=K.next();!G.done;G=K.next())w.push(G.value.split(","));for(K=0;K<w.length;K++){G=w[K];for(var X=e.cellType,J=e.getCells(G)||[],q=[],T=0;T<J.length;T++){var Q=J[T],m=Q&&Q.cellValue;Q=new GtY;switch(X){case 3:m=Number(m);Number.isFinite(m)&&hX(Q,1,YHY,TL(m));break;case 2:hX(Q,2,YHY,_.ZT(Number(m)))}q.push(Q)}X=q;for(J=0;J<X.length;J++){q=X[J];T=new XCc;q=_.PL(T,
2,q);T=[];Q=MaU(e);for(m=0;m<Q.length;m++){var a=Q[m],n=G[m],H=new C0o;switch(a){case 3:hX(H,1,wC4,Ma(String(n)));break;case 2:a=Number(n);Number.isFinite(a)&&hX(H,2,wC4,_.XY(a));break;case 1:hX(H,3,wC4,aTN(n==="true"))}T.push(H)}FX(q,1,T);C.push(q)}}FX(z,4,C);return z};var Hj4=function(e){if(!e)return"";if(/^about:(?:blank|srcdoc)$/.test(e))return window.origin||"";e.indexOf("blob:")===0&&(e=e.substring(5));e=e.split("#")[0].split("?")[0];e=e.toLowerCase();e.indexOf("//")==0&&(e=window.location.protocol+e);/^[\w\-]*:\/\//.test(e)||(e=window.location.href);var z=e.substring(e.indexOf("://")+3),C=z.indexOf("/");C!=-1&&(z=z.substring(0,C));C=e.substring(0,e.indexOf("://"));if(!C)throw Error("qa`"+e);if(C!=="http"&&C!=="https"&&C!=="chrome-extension"&&C!=="moz-extension"&&
C!=="file"&&C!=="android-app"&&C!=="chrome-search"&&C!=="chrome-untrusted"&&C!=="chrome"&&C!=="app"&&C!=="devtools")throw Error("ra`"+C);e="";var w=z.indexOf(":");if(w!=-1){var K=z.substring(w+1);z=z.substring(0,w);if(C==="http"&&K!=="80"||C==="https"&&K!=="443")e=":"+K}return C+"://"+z+e};var vJh=function(e,z,C){var w=String(_.wL.location.href);return w&&e&&z?[z,U6h(Hj4(w),e,C||null)].join(" "):null},U6h=function(e,z,C){var w=[],K=[];
if((Array.isArray(C)?2:1)==1)return K=[z,e],_.oX(w,function(J){K.push(J)}),IKL(K.join(" "));
var G=[],X=[];_.oX(C,function(J){X.push(J.key);G.push(J.value)});
C=Math.floor((new Date).getTime()/1E3);K=G.length==0?[C,z,e]:[G.join(":"),C,z,e];_.oX(w,function(J){K.push(J)});
e=IKL(K.join(" "));e=[C,e];X.length==0||e.push(X.join(""));return e.join("_")},IKL=function(e){var z=GN4();
z.update(e);return z.digestString().toLowerCase()};var v2=function(e){this.JSC$9787_document_=e||{cookie:""}},Wpo;
_.Y=v2.prototype;_.Y.isEnabled=function(){if(!_.wL.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};
_.Y.set=function(e,z,C){var w=!1;if(typeof C==="object"){var K=C.sameSite;w=C.secure||!1;var G=C.domain||void 0;var X=C.path||void 0;var J=C.maxAge}if(/[;=\s]/.test(e))throw Error("sa`"+e);if(/[;\r\n]/.test(z))throw Error("ta`"+z);J===void 0&&(J=-1);C=G?";domain="+G:"";X=X?";path="+X:"";w=w?";secure":"";J=J<0?"":J==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+J*1E3)).toUTCString();this.JSC$9787_document_.cookie=e+"="+z+C+X+J+w+(K!=null?";samesite="+K:"")};
_.Y.get=function(e,z){for(var C=e+"=",w=(this.JSC$9787_document_.cookie||"").split(";"),K=0,G;K<w.length;K++){G=xN(w[K]);if(G.lastIndexOf(C,0)==0)return G.slice(C.length);if(G==e)return""}return z};
_.Y.remove=function(e,z,C){var w=this.containsKey(e);this.set(e,"",{maxAge:0,path:z,domain:C});return w};
_.Y.getKeys=function(){return Wpo(this).keys};
_.Y.getValues=function(){return Wpo(this).values};
_.Y.isEmpty=function(){return!this.JSC$9787_document_.cookie};
_.Y.getCount=function(){return this.JSC$9787_document_.cookie?(this.JSC$9787_document_.cookie||"").split(";").length:0};
_.Y.containsKey=function(e){return this.get(e)!==void 0};
_.Y.containsValue=function(e){for(var z=Wpo(this).values,C=0;C<z.length;C++)if(z[C]==e)return!0;return!1};
_.Y.clear=function(){for(var e=Wpo(this).keys,z=e.length-1;z>=0;z--)this.remove(e[z])};
Wpo=function(e){e=(e.JSC$9787_document_.cookie||"").split(";");for(var z=[],C=[],w,K,G=0;G<e.length;G++)K=xN(e[G]),w=K.indexOf("="),w==-1?(z.push(""),C.push(K)):(z.push(K.substring(0,w)),C.push(K.substring(w+1)));return{keys:z,values:C}};
_.E3=new v2(typeof document=="undefined"?null:document);var Zr7,P0g;Zr7=function(){var e=_.wL.__SAPISID||_.wL.__APISID||_.wL.__3PSAPISID||_.wL.__1PSAPISID||_.wL.__OVERRIDE_SID;if(e)return!0;typeof document!=="undefined"&&(e=new v2(document),e=e.get("SAPISID")||e.get("APISID")||e.get("__Secure-3PAPISID")||e.get("__Secure-1PAPISID"));return!!e};
P0g=function(e,z,C,w){(e=_.wL[e])||typeof document==="undefined"||(e=(new v2(document)).get(z));return e?vJh(e,C,w):null};
_.HPg=function(e){var z=Hj4(_.wL==null?void 0:_.wL.location.href),C=[];if(Zr7()){z=z.indexOf("https:")==0||z.indexOf("chrome-extension:")==0||z.indexOf("chrome-untrusted://new-tab-page")==0||z.indexOf("moz-extension:")==0;var w=z?_.wL.__SAPISID:_.wL.__APISID;w||typeof document==="undefined"||(w=new v2(document),w=w.get(z?"SAPISID":"APISID")||w.get("__Secure-3PAPISID"));(w=w?vJh(w,z?"SAPISIDHASH":"APISIDHASH",e):null)&&C.push(w);z&&((z=P0g("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",e))&&C.push(z),
(e=P0g("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",e))&&C.push(e))}return C.length==0?null:C.join(" ")};var Roc=function(){this.minSize=1024};
Roc.prototype.compress=function(e){var z,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:return z=new CompressionStream("gzip"),C=(new Response(z.readable)).arrayBuffer(),w=z.writable.getWriter(),G.yield(w.write((new TextEncoder).encode(e)),2);case 2:return G.yield(w.close(),3);case 3:return K=Uint8Array,G.yield(C,4);case 4:return G.return(new K(G.yieldResult))}})};
Roc.prototype.isSupported=function(e){return e<this.minSize?!1:typeof CompressionStream!=="undefined"};var Lpa=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Lpa,_.X2);var Ii=function(e,z){this.intervalMs=e;this.callback=z;this.enabled=!1;this.nowFn=function(){return _.xd()};
this.lastTimeMs=this.nowFn()};
Ii.prototype.setInterval=function(e){this.intervalMs=e;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Ii.prototype.start=function(){var e=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){e.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Ii.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Ii.prototype.tick=function(){var e=this;if(this.enabled){var z=Math.max(this.nowFn()-this.lastTimeMs,0);z<this.intervalMs*.8?this.timer=setTimeout(function(){e.tick()},this.intervalMs-z):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var hoX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(hoX,_.X2);var Oj4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Oj4,_.X2);var EJC=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(EJC,_.X2);EJC.prototype.getTransmissionType=function(){return _.i5(this,1)};var JJ8=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(JJ8,_.X2);var W2=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(W2,_.X2);var Xik=function(e){FX(kN1,1,e)};
W2.prototype.getModel=function(){return _.Ds(this,6)};
var Fps=_.IT(W2);var Vao=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Vao,_.X2);var Y3m=["platform","platformVersion","architecture","model","uaFullVersion"],kN1=new W2,b0g=null;var P2=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(P2,_.X2);var fKY=function(e){return _.H5(e,1,1)};var SHY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e,4)};
_.U(SHY,_.X2);_.Ri=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e,36)};
_.U(_.Ri,_.X2);_.Ri.prototype.getExperimentIds=function(){return _.ra(this,Lpa,16)};var uyY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e,19)};
_.U(uyY,_.X2);uyY.prototype.setLogSource=function(e){return _.H5(this,2,e)};
uyY.prototype.setScheduler=function(e){return _.H5(this,10,e)};var D6o=function(e,z){this.isServiceWorkerScope=z=z===void 0?!1:z;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new uyY;Number.isInteger(e)&&this.logRequest.setLogSource(e);z||(this.locale=document.documentElement.getAttribute("lang"));d66(this,new P2)};
D6o.prototype.setLogSource=function(e){this.logRequest.setLogSource(e);return this};
var d66=function(e,z){_.PL(e.logRequest,1,z);_.i5(z,1)||fKY(z);e.isServiceWorkerScope||(z=Lk(e),_.Ds(z,5)||_.Et(z,5,e.locale));e.uach&&(z=Lk(e),_.ra(z,W2,9)||_.PL(z,9,e.uach))},ijh=function(e,z){e.transmissionType=z},Npa=function(e){var z=z===void 0?Y3m:z;
var C=e.isServiceWorkerScope?void 0:BV();C?q31(C,z).then(function(w){e.uach=Fps(w!=null?w:"[]");w=Lk(e);_.PL(w,9,e.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Lk=function(e){var z=_.ra(e.logRequest,P2,1);
z||(z=new P2,d66(e,z));e=z;z=_.ra(e,Vao,11);z||(z=new Vao,_.PL(e,11,z));return z};
D6o.prototype.build=function(e,z,C,w,K,G){z=z===void 0?0:z;C=C===void 0?0:C;w=w===void 0?null:w;K=K===void 0?0:K;G=G===void 0?0:G;if(!this.isServiceWorkerScope){var X=Lk(this);var J=new EJC;J=_.H5(J,1,this.transmissionType);J=_.a4(J,2,this.isFinal);C=_.td(J,3,C>0?C:void 0);C=_.td(C,4,K>0?K:void 0);C=_.td(C,5,G>0?G:void 0);K=C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=K[_.GX]|0;C=va(C,G)?C:L57(C,K,G)?RWL(C,K):new C.constructor(df(K,G,!0));_.PL(X,10,C)}X=this.logRequest.clone();C=Date.now().toString();
X=_.UR(X,4,TL(C));e=e.slice();e=FX(X,3,e);w&&(X=new hoX,w=_.td(X,13,w),X=new Oj4,w=_.PL(X,2,w),X=new SHY,w=_.PL(X,1,w),w=_.H5(w,2,9),_.PL(e,18,w));z&&_.uk(e,14,z);return e};nh.prototype.currBackoffCount_=0;nh.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
nh.prototype.getValue=function(){return this.currValue_};
var sIC=function(e){e.currBaseValue_=Math.min(e.maxValue_,e.currBaseValue_*e.backoffFactor_);e.currValue_=Math.min(e.maxValue_,e.currBaseValue_+(e.randomFactor_?Math.round(e.randomFactor_*(Math.random()-.5)*2*e.currBaseValue_):0));e.currBackoffCount_++};var uYo=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e,8)};
_.U(uYo,_.X2);var Bpg=_.IT(uYo);var dag=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(dag,_.X2);var hT;hT=new Da6;var OS=function(e){_.Sn.call(this);var z=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9865_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$9865_sendBeaconApiEnabled=!1;this.logSource=e.logSource;this.getAuthHeaderValue=
e.getAuthHeaderValue||function(){};
this.logRequestBuilder=new D6o(e.logSource,e.isServiceWorkerScope);this.network=e.network||null;this.productID=e.productID||null;this.bufferSize=1E3;this.clearcutUrl=e.urlOverride||null;this.sessionIndex=e.sessionIndex||null;this.disableAutomaticFlush=e.disableAutomaticFlush||!1;this.withCredentials=!e.disableWithCredentials;this.isServiceWorkerScope=e.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!BV()&&!!BV().navigator&&BV().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(tah())).searchParams&&!!(new URL(tah())).searchParams.set;var C=fKY(new P2);d66(this.logRequestBuilder,C);this.flushBackoff=new nh(1E4,3E5,.1);e=gJT(this,e.backgroundJobDeferrer);this.JSC$9865_flushTimer=new Ii(this.flushBackoff.getValue(),e);this.backupTimer=new Ii(6E5,e);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){jIa(z);
var w;(w=z.metalogService)==null||w.flush()}}),document.addEventListener("pagehide",function(){jIa(z);
var w;(w=z.metalogService)==null||w.flush()}))};
_.U(OS,_.Sn);var gJT=function(e,z){return e.isBrowserSupported?z?function(){z().then(function(){e.flush()})}:function(){e.flush()}:function(){}};
OS.prototype.disposeInternal=function(){jIa(this);this.JSC$9865_flushTimer.stop();this.backupTimer.stop();_.Sn.prototype.disposeInternal.call(this)};
var yGh=function(e){e.clearcutUrl||(e.clearcutUrl=tah());try{return(new URL(e.clearcutUrl)).toString()}catch(z){return(new URL(e.clearcutUrl,BV().location.origin)).toString()}};
OS.prototype.dispatch=function(e){if(e instanceof _.Ri)this.log(e);else try{var z=new _.Ri,C=e.serialize();var w=_.Et(z,8,C);this.log(w)}catch(K){ES(this,4,1)}};
var ES=function(e,z,C){e.metalogService&&e.metalogService.increment(z,C)};
OS.prototype.log=function(e){ES(this,2,1);if(this.isBrowserSupported){e=e.clone();var z=this.sequencePosition++;e=_.uk(e,21,z);this.componentId&&_.Et(e,26,this.componentId);z=e;if(SUm(_.RP(z,1))==null){var C=Date.now();C=Number.isFinite(C)?C.toString():"0";_.UR(z,1,TL(C))}_.fTo(_.RP(z,15))!=null||_.uk(z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(C=this.experimentIds.clone(),_.PL(z,16,C));ES(this,1,1);z=this.pendingEvents.length-this.bufferSize+1;z>0&&(this.pendingEvents.splice(0,z),
this.numLogsDroppedSinceLastFlush+=z,ES(this,3,z));this.pendingEvents.push(e);this.disableAutomaticFlush||this.JSC$9865_flushTimer.enabled||this.JSC$9865_flushTimer.start()}};
OS.prototype.flush=function(e,z){var C=this;if(this.pendingEvents.length===0)e&&e();else if(this.JSC$9865_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,cGC(this);else{var w=Date.now();if(this.noFlushUntilMs>w&&this.startWaitingMs<w)z&&z("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?ijh(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var K=this.pendingEvents.length,
G=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),X=this.getAuthHeaderValue();if(X&&this.lastFailedAuth===X)z&&z("stale-auth-token");else{this.pendingEvents=[];this.JSC$9865_flushTimer.enabled&&this.JSC$9865_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;w=G.serialize();var J;this.JSC$9865_compressor&&this.JSC$9865_compressor.isSupported(w.length)&&
(J=this.JSC$9865_compressor.compress(w));var q=AGs(this,w,X),T=function(a){C.flushBackoff.reset();C.JSC$9865_flushTimer.setInterval(C.flushBackoff.getValue());if(a){var n=null;try{var H=JSON.stringify(JSON.parse(a.replace(")]}'\n","")));n=Bpg(H)}catch(I){}n&&(a=Number(u5(n,1,_.SS("-1"))),a>0&&(C.startWaitingMs=Date.now(),C.noFlushUntilMs=C.startWaitingMs+a),oZ4(n.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,hT.fieldIndex),wls(n,hT.fieldIndex),n=hT.ctor?hT.getExtensionFn(n,hT.ctor,hT.fieldIndex,
hT.JSC$9045_hasMessageId):hT.getExtensionFn(n,hT.fieldIndex,null,hT.JSC$9045_hasMessageId),n=n===null?void 0:n)&&(n=_.$2(n,1,-1),n!==-1&&(C.flushBackoff=new nh(n<1?1:n,3E5,.1),C.JSC$9865_flushTimer.setInterval(C.flushBackoff.getValue())))}e&&e();C.numRetriesSinceLastSuccessfulFlush=0},Q=function(a,n){var H=_.x2(G,_.Ri,3,_.T5());
var I=Number(u5(G,14));sIC(C.flushBackoff);C.JSC$9865_flushTimer.setInterval(C.flushBackoff.getValue());a===401&&X&&(C.lastFailedAuth=X);I&&(C.numLogsDroppedSinceLastFlush+=I);n===void 0&&(n=C.isRetryable(a));n&&(C.pendingEvents=H.concat(C.pendingEvents),C.disableAutomaticFlush||C.JSC$9865_flushTimer.enabled||C.JSC$9865_flushTimer.start());ES(C,7,1);z&&z("net-send-failed",a);++C.numRetriesSinceLastSuccessfulFlush},m=function(){C.network&&C.network.send(q,T,Q)};
J?J.then(function(a){ES(C,5,K);q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=a;q.bodyType=2;m()},function(){ES(C,6,K);
m()}):m()}}}};
var AGs=function(e,z,C){C=C===void 0?null:C;var w=w===void 0?e.withCredentials:w;var K={},G=new URL(yGh(e));C&&(K.Authorization=C);e.sessionIndex&&(K["X-Goog-AuthUser"]=e.sessionIndex,G.searchParams.set("authuser",e.sessionIndex));e.pageId&&(Object.defineProperty(K,"X-Goog-PageId",{value:e.pageId}),G.searchParams.set("pageId",e.pageId));return{url:G.toString(),body:z,bodyType:1,requestHeaders:K,requestType:"POST",withCredentials:w,timeoutMillis:e.timeoutMillis}},jIa=function(e){e.logRequestBuilder.isFinal=
!0;
e.flush();e.logRequestBuilder.isFinal=!1},cGC=function(e){Zjs(e,function(z,C){z=new URL(z);
z.searchParams.set("format","json");var w=!1;try{w=BV().navigator.sendBeacon(z.toString(),C.serialize())}catch(K){}w||(e.isSendBeaconSupported=!1);return w})},Zjs=function(e,z){if(e.pendingEvents.length!==0){var C=new URL(yGh(e));
C.searchParams.delete("format");var w=e.getAuthHeaderValue();w&&C.searchParams.set("auth",w);C.searchParams.set("authuser",e.sessionIndex||"0");for(w=0;w<10&&e.pendingEvents.length;++w){var K=e.pendingEvents.slice(0,32),G=e.logRequestBuilder.build(K,e.numLogsDroppedSinceLastFlush,e.numRetriesSinceLastSuccessfulFlush,e.productID,e.persistedLogRecoveredCount,e.persistedLogExpiredCount);if(!z(C.toString(),G)){++e.numRetriesSinceLastSuccessfulFlush;break}e.numLogsDroppedSinceLastFlush=0;e.numRetriesSinceLastSuccessfulFlush=
0;e.persistedLogRecoveredCount=0;e.persistedLogExpiredCount=0;e.pendingEvents=e.pendingEvents.slice(K.length)}e.JSC$9865_flushTimer.enabled&&e.JSC$9865_flushTimer.stop()}};
OS.prototype.isRetryable=function(e){return 500<=e&&e<600||e===401||e===0};
var tah=function(){return"https://play.google.com/log?format=json&hasfast=true"};var pCX=function(){this.abortSupported=typeof AbortController!=="undefined"};
pCX.prototype.send=function(e,z,C){var w=this,K,G,X,J,q,T,Q,m,a,n;return _.k(function(H){switch(H.nextAddress){case 1:return G=(K=w.abortSupported?new AbortController:void 0)?setTimeout(function(){K.abort()},e.timeoutMillis):void 0,_.Iv(H,2,3),X=Object.assign({},{method:e.requestType,
headers:Object.assign({},e.requestHeaders)},e.body&&{body:e.body},e.withCredentials&&{credentials:"include"},{signal:e.timeoutMillis&&K?K.signal:null}),H.yield(fetch(e.url,X),5);case 5:J=H.yieldResult;if(J.status!==200){(q=C)==null||q(J.status);H.jumpTo(3);break}if((T=z)==null){H.jumpTo(7);break}return H.yield(J.text(),8);case 8:T(H.yieldResult);case 7:case 3:_.PZ(H);clearTimeout(G);_.hn(H,0);break;case 2:Q=_.O_(H);switch((m=Q)==null?void 0:m.name){case "AbortError":(a=C)==null||a(408);break;default:(n=
C)==null||n(400)}H.jumpTo(3)}})};
pCX.prototype.getTransmissionType=function(){return 4};_.vo=function(e,z){z=z===void 0?"0":z;_.Sn.call(this);this.logSource=e;this.sessionIndex=z;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9883_clearExperimentIds=this.productID=null;this.JSC$9883_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.U(_.vo,_.Sn);var rJg=function(e,z){e.buildLabel=z;return e},Msm=function(e,z){e.network=z;
return e},UvN=function(e,z){e.JSC$9883_clearExperimentIds=z},nBm=function(e){e.JSC$9883_sendBeaconApiEnabled=!0;
return e};
_.vo.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.vo.prototype.build=function(){this.network||(this.network=new pCX);var e=new OS({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.HPg,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.I4(this,e);if(this.buildLabel){var z=this.buildLabel,C=
Lk(e.logRequestBuilder);_.Et(C,7,z)}e.JSC$9865_compressor=new Roc;this.componentId&&(e.componentId=this.componentId);this.productID&&(e.productID=this.productID);this.pageId&&(e.pageId=this.pageId);this.JSC$9883_clearExperimentIds&&((C=this.JSC$9883_clearExperimentIds)?(e.experimentIds||(e.experimentIds=new Lpa),z=e.experimentIds,C=C.serialize(),_.Et(z,4,C)):e.experimentIds&&_.UR(e.experimentIds,4));this.JSC$9883_sendBeaconApiEnabled&&(e.JSC$9865_sendBeaconApiEnabled=e.isSendBeaconSupported);Npa(e.logRequestBuilder);
this.bufferSize&&(e.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(e);return e};var Ws7=function(e,z,C,w,K,G,X){e=e===void 0?-1:e;z=z===void 0?"":z;C=C===void 0?"":C;w=w===void 0?!1:w;K=K===void 0?"":K;_.Sn.call(this);this.logSource=e;this.componentId=z;G?z=G:(e=new _.vo(e,"0"),e.componentId=z,_.I4(this,e),C!==""&&(e.destinationUrl=C),w&&(e.serviceWorkerScopeEnabled=!0),K&&rJg(e,K),X&&Msm(e,X),z=e.build());this.JSC$9887_transport=z};
_.U(Ws7,_.Sn);Ws7.prototype.flush=function(e){e=e||[];if(e.length){for(var z=new aKS,C=[],w=0;w<e.length;w++){var K=e[w],G=rGL(K);C.push(G);K.clear()}FX(z,1,C);this.JSC$9887_transport.dispatch(z);this.JSC$9887_transport.flush()}};var eGo=function(e){this.cellValue=e};var Fb=function(e,z,C){this.JSC$9892_metricName=e;this.cellType=z;this.fields=C||[];this.cellMap=new Map},MaU=function(e){return e.fields.map(function(z){return z.fieldType})},nJ4=function(e){return e.fields.map(function(z){return z.fieldName})};
_.Y=Fb.prototype;_.Y.addCell=function(e){var z=_.yL.apply(1,arguments),C=this.getCells(z);C?C.push(new eGo(e)):this.JSC$9892_setCell(e,z)};
_.Y.JSC$9892_setCell=function(e){var z=this.JSC$9892_getKey(_.yL.apply(1,arguments));this.cellMap.set(z,[new eGo(e)])};
_.Y.getCells=function(){var e=this.JSC$9892_getKey(_.yL.apply(0,arguments));return this.cellMap.has(e)?this.cellMap.get(e):void 0};
_.Y.getCell=function(){var e=this.getCells(_.yL.apply(0,arguments));return e&&e.length?e[0]:void 0};
_.Y.clear=function(){this.cellMap.clear()};
_.Y.JSC$9892_getKey=function(){var e=_.yL.apply(0,arguments);return e?e.join(","):"key"};var zGa=function(e,z){Fb.call(this,e,3,z)};
_.U(zGa,Fb);zGa.prototype.JSC$9895_incrementCounterBy=function(e){var z=_.yL.apply(1,arguments),C=0,w=this.getCell(z);w&&(C=w.cellValue);this.JSC$9892_setCell(C+e,z)};var CiX=function(e,z){Fb.call(this,e,2,z)};
_.U(CiX,Fb);CiX.prototype.record=function(e){this.addCell(e,_.yL.apply(1,arguments))};_.VE=function(e){this.id=e};
_.VE.prototype.toString=function(){return this.id};_.fk=function(e,z){this.type=e instanceof _.VE?String(e):e;this.currentTarget=this.target=z;this.defaultPrevented=this.propagationStopped_=!1};
_.fk.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.fk.prototype.preventDefault=function(){this.defaultPrevented=!0};_.ub=function(e,z){_.fk.call(this,e?e.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;e&&this.init(e,z)};
_.Tk(_.ub,_.fk);
_.ub.prototype.init=function(e,z){var C=this.type=e.type,w=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement;this.currentTarget=z;z=e.relatedTarget;z||(C=="mouseover"?z=e.fromElement:C=="mouseout"&&(z=e.toElement));this.relatedTarget=z;w?(this.clientX=w.clientX!==void 0?w.clientX:w.pageX,this.clientY=w.clientY!==void 0?w.clientY:w.pageY,this.screenX=w.screenX||0,this.screenY=w.screenY||0):(this.offsetX=_.MI||e.offsetX!==void 0?e.offsetX:e.layerX,
this.offsetY=_.MI||e.offsetY!==void 0?e.offsetY:e.layerY,this.clientX=e.clientX!==void 0?e.clientX:e.pageX,this.clientY=e.clientY!==void 0?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=e.button;this.keyCode=e.keyCode||0;this.key=e.key||"";this.charCode=e.charCode||(C=="keypress"?e.keyCode:0);this.ctrlKey=e.ctrlKey;this.altKey=e.altKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.pointerId=e.pointerId||0;this.pointerType=e.pointerType;this.state=e.state;
this.timeStamp=e.timeStamp;this.event_=e;e.defaultPrevented&&_.ub.superClass_.preventDefault.call(this)};
_.ub.prototype.isButton=function(e){return this.event_.button==e};
_.ub.prototype.stopPropagation=function(){_.ub.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.ub.prototype.preventDefault=function(){_.ub.superClass_.preventDefault.call(this);var e=this.event_;e.preventDefault?e.preventDefault():e.returnValue=!1};var wRC="closure_listenable_"+(Math.random()*1E6|0),dB=function(e){return!(!e||!e[wRC])};var KMU=0;var oio=function(e,z,C,w,K){this.listener=e;this.proxy=null;this.src=z;this.type=C;this.capture=!!w;this.handler=K;this.key=++KMU;this.removed=this.callOnce=!1},GRh=function(e){e.removed=!0;
e.listener=null;e.proxy=null;e.src=null;e.handler=null};Uv.prototype.add=function(e,z,C,w,K){var G=e.toString();e=this.listeners[G];e||(e=this.listeners[G]=[],this.typeCount_++);var X=Yga(e,z,w,K);X>-1?(z=e[X],C||(z.callOnce=!1)):(z=new oio(z,this.src,G,!!w,K),z.callOnce=C,e.push(z));return z};
Uv.prototype.remove=function(e,z,C,w){e=e.toString();if(!(e in this.listeners))return!1;var K=this.listeners[e];z=Yga(K,z,C,w);return z>-1?(GRh(K[z]),_.hsE(K,z),K.length==0&&(delete this.listeners[e],this.typeCount_--),!0):!1};
var bda=function(e,z){var C=z.type;if(!(C in e.listeners))return!1;var w=_.D8(e.listeners[C],z);w&&(GRh(z),e.listeners[C].length==0&&(delete e.listeners[C],e.typeCount_--));return w};
Uv.prototype.removeAll=function(e){e=e&&e.toString();var z=0,C;for(C in this.listeners)if(!e||C==e){for(var w=this.listeners[C],K=0;K<w.length;K++)++z,GRh(w[K]);delete this.listeners[C];this.typeCount_--}return z};
Uv.prototype.getListener=function(e,z,C,w){e=this.listeners[e.toString()];var K=-1;e&&(K=Yga(e,z,C,w));return K>-1?e[K]:null};
Uv.prototype.hasListener=function(e,z){var C=e!==void 0,w=C?e.toString():"",K=z!==void 0;return _.de.some(this.listeners,function(G){for(var X=0;X<G.length;++X)if(!(C&&G[X].type!=w||K&&G[X].capture!=z))return!0;return!1})};
var Yga=function(e,z,C,w){for(var K=0;K<e.length;++K){var G=e[K];if(!G.removed&&G.listener==z&&G.capture==!!C&&G.handler==w)return K}return-1};var XRc,JRT,kRc,xmL,T1a,H9,Um,QVs,$mT,l_a,DA,mmS,qgU;XRc="closure_lm_"+(Math.random()*1E6|0);JRT={};kRc=0;_.W9=function(e,z,C,w,K){if(w&&w.once)return H9(e,z,C,w,K);if(Array.isArray(z)){for(var G=0;G<z.length;G++)_.W9(e,z[G],C,w,K);return null}C=qgU(C);return dB(e)?e.listen(z,C,_.gL(w)?!!w.capture:!!w,K):xmL(e,z,C,!1,w,K)};
xmL=function(e,z,C,w,K,G){if(!z)throw Error("va");var X=_.gL(K)?!!K.capture:!!K,J=DA(e);J||(e[XRc]=J=new Uv(e));C=J.add(z,C,w,X,G);if(C.proxy)return C;w=T1a();C.proxy=w;w.src=e;w.listener=C;if(e.addEventListener)_.$gh||(K=X),K===void 0&&(K=!1),e.addEventListener(z.toString(),w,K);else if(e.attachEvent)e.attachEvent($mT(z.toString()),w);else if(e.addListener&&e.removeListener)e.addListener(w);else throw Error("wa");kRc++;return C};
T1a=function(){var e=l_a,z=function(C){return e.call(z.src,z.listener,C)};
return z};
H9=function(e,z,C,w,K){if(Array.isArray(z)){for(var G=0;G<z.length;G++)H9(e,z[G],C,w,K);return null}C=qgU(C);return dB(e)?e.listenOnce(z,C,_.gL(w)?!!w.capture:!!w,K):xmL(e,z,C,!0,w,K)};
_.ib=function(e,z,C,w,K){if(Array.isArray(z))for(var G=0;G<z.length;G++)_.ib(e,z[G],C,w,K);else w=_.gL(w)?!!w.capture:!!w,C=qgU(C),dB(e)?e.unlisten(z,C,w,K):e&&(e=DA(e))&&(z=e.getListener(z,C,w,K))&&Um(z)};
Um=function(e){if(typeof e==="number"||!e||e.removed)return!1;var z=e.src;if(dB(z))return bda(z.eventTargetListeners_,e);var C=e.type,w=e.proxy;z.removeEventListener?z.removeEventListener(C,w,e.capture):z.detachEvent?z.detachEvent($mT(C),w):z.addListener&&z.removeListener&&z.removeListener(w);kRc--;(C=DA(z))?(bda(C,e),C.typeCount_==0&&(C.src=null,z[XRc]=null)):GRh(e);return!0};
QVs=function(e,z,C,w,K){C=qgU(C);w=!!w;return dB(e)?e.getListener(z,C,w,K):e?(e=DA(e))?e.getListener(z,C,w,K):null:null};
$mT=function(e){return e in JRT?JRT[e]:JRT[e]="on"+e};
l_a=function(e,z){if(e.removed)e=!0;else{z=new _.ub(z,this);var C=e.listener,w=e.handler||e.src;e.callOnce&&Um(e);e=C.call(w,z)}return e};
DA=function(e){e=e[XRc];return e instanceof Uv?e:null};
mmS="__closure_events_fn_"+(Math.random()*1E9>>>0);qgU=function(e){if(typeof e==="function")return e;e[mmS]||(e[mmS]=function(z){return e.handleEvent(z)});
return e[mmS]};_.N3=function(){_.Sn.call(this);this.eventTargetListeners_=new Uv(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Tk(_.N3,_.Sn);_.N3.prototype[wRC]=!0;_.Y=_.N3.prototype;_.Y.setParentEventTarget=function(e){this.parentEventTarget_=e};
_.Y.addEventListener=function(e,z,C,w){_.W9(this,e,z,C,w)};
_.Y.removeEventListener=function(e,z,C,w){_.ib(this,e,z,C,w)};
_.Y.dispatchEvent=function(e){var z,C=this.parentEventTarget_;if(C)for(z=[];C;C=C.parentEventTarget_)z.push(C);C=this.actualEventTarget_;var w=e.type||e;if(typeof e==="string")e=new _.fk(e,C);else if(e instanceof _.fk)e.target=e.target||C;else{var K=e;e=new _.fk(w,C);_.de.extend(e,K)}K=!0;var G;if(z)for(G=z.length-1;!e.propagationStopped_&&G>=0;G--){var X=e.currentTarget=z[G];K=a_a(X,w,!0,e)&&K}e.propagationStopped_||(X=e.currentTarget=C,K=a_a(X,w,!0,e)&&K,e.propagationStopped_||(K=a_a(X,w,!1,e)&&
K));if(z)for(G=0;!e.propagationStopped_&&G<z.length;G++)X=e.currentTarget=z[G],K=a_a(X,w,!1,e)&&K;return K};
_.Y.disposeInternal=function(){_.N3.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.Y.listen=function(e,z,C,w){return this.eventTargetListeners_.add(String(e),z,!1,C,w)};
_.Y.listenOnce=function(e,z,C,w){return this.eventTargetListeners_.add(String(e),z,!0,C,w)};
_.Y.unlisten=function(e,z,C,w){return this.eventTargetListeners_.remove(String(e),z,C,w)};
_.Y.removeAllListeners=function(e){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(e):0};
var a_a=function(e,z,C,w){z=e.eventTargetListeners_.listeners[String(z)];if(!z)return!0;z=z.concat();for(var K=!0,G=0;G<z.length;++G){var X=z[G];if(X&&!X.removed&&X.capture==C){var J=X.listener,q=X.handler||X.src;X.callOnce&&bda(e.eventTargetListeners_,X);K=J.call(q,w)!==!1&&K}}return K&&!w.defaultPrevented};
_.N3.prototype.getListener=function(e,z,C,w){return this.eventTargetListeners_.getListener(String(e),z,C,w)};
_.N3.prototype.hasListener=function(e,z){return this.eventTargetListeners_.hasListener(e!==void 0?String(e):void 0,z)};var sS=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(e){return e&&AsyncContext.Snapshot.wrap(e)}:function(e){return e};var nig=function(e,z){this.create_=e;this.reset_=z;this.occupants_=0;this.JSC$9927_head_=null};
nig.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var e=this.JSC$9927_head_;this.JSC$9927_head_=e.next;e.next=null}else e=this.create_();return e};
nig.prototype.put=function(e){this.reset_(e);this.occupants_<100&&(this.occupants_++,e.next=this.JSC$9927_head_,this.JSC$9927_head_=e)};var M5Y=function(){this.workTail_=this.workHead_=null};
M5Y.prototype.add=function(e,z){var C=T34.get();C.set(e,z);this.workTail_?this.workTail_.next=C:this.workHead_=C;this.workTail_=C};
M5Y.prototype.remove=function(){var e=null;this.workHead_&&(e=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),e.next=null);return e};
var T34=new nig(function(){return new rR4},function(e){return e.reset()}),rR4=function(){this.next=this.scope=this.fn=null};
rR4.prototype.set=function(e,z){this.fn=e;this.scope=z;this.next=null};
rR4.prototype.reset=function(){this.next=this.scope=this.fn=null};var Hdo,$v8,xvh,Umo;$v8=!1;xvh=new M5Y;_.B2=function(e,z){Hdo||Umo();$v8||(Hdo(),$v8=!0);xvh.add(e,z)};
Umo=function(){var e=Promise.resolve(void 0);Hdo=function(){e.then(l6m)}};var vi6=function(e){e.prototype.$goog_Thenable=!0},I_U=function(e){if(!e)return!1;
try{return!!e.$goog_Thenable}catch(z){return!1}};var WMa,PiT,RGS,hGU,OdT,Eia,SgL,Dmh,B1L,N1X,Tck;_.RC=function(e,z){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(e!=_.S2)try{var C=this;e.call(z,function(w){C.resolve_(2,w)},function(w){C.resolve_(3,w)})}catch(w){this.resolve_(3,w)}};
WMa=function(){this.next=this.context=this.JSC$9938_onRejected=this.JSC$9938_onFulfilled=this.child=null;this.always=!1};
WMa.prototype.reset=function(){this.context=this.JSC$9938_onRejected=this.JSC$9938_onFulfilled=this.child=null;this.always=!1};
PiT=new nig(function(){return new WMa},function(e){e.reset()});
RGS=function(e,z,C){var w=PiT.get();w.JSC$9938_onFulfilled=e;w.JSC$9938_onRejected=z;w.context=C;return w};
_.oS=function(e){if(e instanceof _.RC)return e;var z=new _.RC(_.S2);z.resolve_(2,e);return z};
_.R5=function(e){return new _.RC(function(z,C){C(e)})};
hGU=function(e,z,C){LMU(e,z,C,null)||_.B2(_.xk(z,e))};
_.tT=function(e){return new _.RC(function(z,C){var w=e.length,K=[];if(w)for(var G=function(T,Q){w--;K[T]=Q;w==0&&z(K)},X=function(T){C(T)},J,q=0;q<e.length;q++)J=e[q],hGU(J,_.xk(G,q),X);
else z(K)})};
OdT=function(e){return new _.RC(function(z){var C=e.length,w=[];if(C)for(var K=function(J,q,T){C--;w[J]=q?{fulfilled:!0,value:T}:{fulfilled:!1,reason:T};C==0&&z(w)},G,X=0;X<e.length;X++)G=e[X],hGU(G,_.xk(K,X,!0),_.xk(K,X,!1));
else z(w)})};
Eia=function(e){return new _.RC(function(z,C){var w=e.length,K=[];if(w)for(var G=function(T){z(T)},X=function(T,Q){w--;
K[T]=Q;w==0&&C(K)},J,q=0;q<e.length;q++)J=e[q],hGU(J,G,_.xk(X,q));
else z(void 0)})};
_.cj=function(){var e,z,C=new _.RC(function(w,K){e=w;z=K});
return new FMU(C,e,z)};
_.RC.prototype.then=function(e,z,C){return V5s(this,sS(typeof e==="function"?e:null),sS(typeof z==="function"?z:null),C)};
vi6(_.RC);SgL=function(e,z,C,w){f_o(e,RGS(z||_.S2,C||null,w))};
_.gB=function(e,z){z=sS(z);z=RGS(z,z);z.always=!0;f_o(e,z);return e};
_.RC.prototype.finally=function(e){var z=this;e=sS(e);return new _.RC(function(C,w){SgL(z,function(K){e();C(K)},function(K){e();
w(K)})})};
_.RC.prototype.thenCatch=function(e,z){return V5s(this,null,sS(e),z)};
_.RC.prototype.catch=_.RC.prototype.thenCatch;_.RC.prototype.cancel=function(e){if(this.state_==0){var z=new _.g$(e);_.B2(function(){u16(this,z)},this)}};
var u16=function(e,z){if(e.state_==0)if(e.parent_){var C=e.parent_;if(C.callbackEntries_){for(var w=0,K=null,G=null,X=C.callbackEntries_;X&&(X.always||(w++,X.child==e&&(K=X),!(K&&w>1)));X=X.next)K||(G=X);K&&(C.state_==0&&w==1?u16(C,z):(G?(w=G,w.next==C.callbackEntriesTail_&&(C.callbackEntriesTail_=w),w.next=w.next.next):dms(C),Dmh(C,K,3,z)))}e.parent_=null}else e.resolve_(3,z)},f_o=function(e,z){e.callbackEntries_||e.state_!=2&&e.state_!=3||idg(e);
e.callbackEntriesTail_?e.callbackEntriesTail_.next=z:e.callbackEntries_=z;e.callbackEntriesTail_=z},V5s=function(e,z,C,w){var K=RGS(null,null,null);
K.child=new _.RC(function(G,X){K.JSC$9938_onFulfilled=z?function(J){try{var q=z.call(w,J);G(q)}catch(T){X(T)}}:G;
K.JSC$9938_onRejected=C?function(J){try{var q=C.call(w,J);q===void 0&&J instanceof _.g$?X(J):G(q)}catch(T){X(T)}}:X});
K.child.parent_=e;f_o(e,K);return K.child};
_.RC.prototype.unblockAndFulfill_=function(e){this.state_=0;this.resolve_(2,e)};
_.RC.prototype.unblockAndReject_=function(e){this.state_=0;this.resolve_(3,e)};
_.RC.prototype.resolve_=function(e,z){this.state_==0&&(this===z&&(e=3,z=new TypeError("xa")),this.state_=1,LMU(z,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=z,this.state_=e,this.parent_=null,idg(this),e!=3||z instanceof _.g$||N1X(this,z)))};
var LMU=function(e,z,C,w){if(e instanceof _.RC)return SgL(e,z,C,w),!0;if(I_U(e))return e.then(z,C,w),!0;if(_.gL(e))try{var K=e.then;if(typeof K==="function")return sVa(e,K,z,C,w),!0}catch(G){return C.call(w,G),!0}return!1},sVa=function(e,z,C,w,K){var G=!1,X=function(q){G||(G=!0,C.call(K,q))},J=function(q){G||(G=!0,w.call(K,q))};
try{z.call(e,X,J)}catch(q){J(q)}},idg=function(e){e.executing_||(e.executing_=!0,_.B2(e.executeCallbacks_,e))},dms=function(e){var z=null;
e.callbackEntries_&&(z=e.callbackEntries_,e.callbackEntries_=z.next,z.next=null);e.callbackEntries_||(e.callbackEntriesTail_=null);return z};
_.RC.prototype.executeCallbacks_=function(){for(var e;e=dms(this);)Dmh(this,e,this.state_,this.result_);this.executing_=!1};
Dmh=function(e,z,C,w){if(C==3&&z.JSC$9938_onRejected&&!z.always)for(;e&&e.hadUnhandledRejection_;e=e.parent_)e.hadUnhandledRejection_=!1;if(z.child)z.child.parent_=null,B1L(z,C,w);else try{z.always?z.JSC$9938_onFulfilled.call(z.context):B1L(z,C,w)}catch(K){Tck.call(null,K)}PiT.put(z)};
B1L=function(e,z,C){z==2?e.JSC$9938_onFulfilled.call(e.context,C):e.JSC$9938_onRejected&&e.JSC$9938_onRejected.call(e.context,C)};
N1X=function(e,z){e.hadUnhandledRejection_=!0;_.B2(function(){e.hadUnhandledRejection_&&Tck.call(null,z)})};
Tck=Ko;_.g$=function(e){_.eh.call(this,e)};
_.Tk(_.g$,_.eh);_.g$.prototype.name="cancel";var FMU=function(e,z,C){this.promise=e;this.resolve=z;this.reject=C};var jl;_.rM=function(e,z){_.N3.call(this);this.JSC$9950_interval_=e||1;this.timerObject_=z||_.wL;this.boundTick_=(0,_.uZ)(this.tick_,this);this.last_=_.xd()};
_.Tk(_.rM,_.N3);_.Y=_.rM.prototype;_.Y.enabled=!1;_.Y.JSC$9952_timer_=null;_.Y.setInterval=function(e){this.JSC$9950_interval_=e;this.JSC$9952_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9952_timer_&&this.stop()};
_.Y.tick_=function(){if(this.enabled){var e=_.xd()-this.last_;e>0&&e<this.JSC$9950_interval_*.8?this.JSC$9952_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9950_interval_-e):(this.JSC$9952_timer_&&(this.timerObject_.clearTimeout(this.JSC$9952_timer_),this.JSC$9952_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.Y.start=function(){this.enabled=!0;this.JSC$9952_timer_||(this.JSC$9952_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9950_interval_),this.last_=_.xd())};
_.Y.stop=function(){this.enabled=!1;this.JSC$9952_timer_&&(this.timerObject_.clearTimeout(this.JSC$9952_timer_),this.JSC$9952_timer_=null)};
_.Y.disposeInternal=function(){_.rM.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
jl=function(e,z,C){if(typeof e==="function")C&&(e=(0,_.uZ)(e,C));else if(e&&typeof e.handleEvent=="function")e=(0,_.uZ)(e.handleEvent,e);else throw Error("ya");return Number(z)>2147483647?-1:_.wL.setTimeout(e,z||0)};
_.t5Y=function(e){var z=null;return(new _.RC(function(C,w){z=jl(function(){C(void 0)},e);
z==-1&&w(Error("za"))})).thenCatch(function(C){_.wL.clearTimeout(z);
throw C;})};var Wo=function(e){_.Sn.call(this);this.streamzLogger=e;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9956_flushTimer=new _.rM(this.flushInterval);this.JSC$9956_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.I4(this,this.JSC$9956_flushTimer)};
_.U(Wo,_.Sn);Wo.prototype.sendIsolatedPayload=function(e){this.shouldSendIsolatedPayload=e;this.invocationLimit=1};
var gig=function(e){e.JSC$9956_flushTimer.enabled||e.JSC$9956_flushTimer.start();e.invocationCount++;e.invocationCount>=e.invocationLimit&&e.snapshotAndFlush()};
Wo.prototype.snapshotAndFlush=function(){var e=this.metricMap.values();e=[].concat(_.s_(e)).filter(function(z){return z.cellMap.size});
e.length&&this.streamzLogger.flush(e,this.shouldSendIsolatedPayload);jVT(e);this.invocationCount=0;this.JSC$9956_flushTimer.enabled&&this.JSC$9956_flushTimer.stop()};
Wo.prototype.addNewCounter=function(e){var z=_.yL.apply(1,arguments);this.metricMap.has(e)||this.metricMap.set(e,new zGa(e,z))};
Wo.prototype.addNewEventMetric=function(e){var z=_.yL.apply(1,arguments);this.metricMap.has(e)||this.metricMap.set(e,new CiX(e,z))};
var yRT=function(e,z){return e.disabledMetrics.has(z)?void 0:e.metricMap.get(z)};
Wo.prototype.JSC$9956_incrementCounter=function(e){this.JSC$9956_incrementCounterBy(e,1,_.yL.apply(1,arguments))};
Wo.prototype.JSC$9956_incrementCounterBy=function(e,z){var C=_.yL.apply(2,arguments),w=yRT(this,e);w&&w instanceof zGa&&(w.JSC$9895_incrementCounterBy(z,C),gig(this))};
Wo.prototype.record=function(e,z){var C=_.yL.apply(2,arguments),w=yRT(this,e);w&&w instanceof CiX&&(w.record(z,C),gig(this))};
var jVT=function(e){for(var z=0;z<e.length;z++)e[z].clear()};_.yE=function(e,z,C){C=C===void 0?{}:C;z=Error.call(this,z);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.code=e;this.metadata=C;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.U(_.yE,Error);_.yE.prototype.toString=function(){var e="RpcError("+(mv1(this.code)||String(this.code))+")";this.message&&(e+=": "+this.message);return e};_.cRX=_.wL.JSON.parse;_.c2=_.wL.JSON.stringify;_.rN=_.wL.JSON.parse;_.ARC=function(e){switch(e){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 Zd6=function(e){switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var pRg,eya=function(){};
_.Tk(eya,_.a6E);eya.prototype.createInstance=function(){return new XMLHttpRequest};
pRg=new eya;_.AT=function(e){_.N3.call(this);this.headers=new Map;this.JSC$9965_xmlHttpFactory_=e||null;this.JSC$9965_active_=!1;this.JSC$9965_xhr_=null;this.JSC$9965_lastUri_="";this.JSC$9965_lastErrorCode_=0;this.JSC$9965_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9965_timeoutId_=null;this.responseType_="";this.JSC$9965_withCredentials_=!1};
_.Tk(_.AT,_.N3);var zyT=/^https?$/i,ChT=["POST","PUT"],wiL=[],eL4=function(e,z,C,w,K,G,X){var J=new _.AT;wiL.push(J);z&&J.listen("complete",z);J.listenOnce("ready",J.cleanupSend_);G&&(J.timeoutInterval_=Math.max(0,G));X&&(J.JSC$9965_withCredentials_=X);J.send(e,C,w,K)};
_.AT.prototype.cleanupSend_=function(){this.dispose();_.D8(wiL,this)};
_.AT.prototype.send=function(e,z,C,w){if(this.JSC$9965_xhr_)throw Error("Aa`"+this.JSC$9965_lastUri_+"`"+e);z=z?z.toUpperCase():"GET";this.JSC$9965_lastUri_=e;this.JSC$9965_lastError_="";this.JSC$9965_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9965_active_=!0;this.JSC$9965_xhr_=this.createXhr();this.JSC$9965_xhr_.onreadystatechange=sS((0,_.uZ)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9965_xhr_.open(z,String(e),!0),this.inOpen_=!1}catch(X){KsX(this,X);return}e=C||"";C=new Map(this.headers);
if(w)if(Object.getPrototypeOf(w)===Object.prototype)for(var K in w)C.set(K,w[K]);else if(typeof w.keys==="function"&&typeof w.get==="function"){K=_.b(w.keys());for(var G=K.next();!G.done;G=K.next())G=G.value,C.set(G,w.get(G))}else throw Error("Ba`"+String(w));w=Array.from(C.keys()).find(function(X){return"content-type"==X.toLowerCase()});
K=_.wL.FormData&&e instanceof _.wL.FormData;!_.Sh(ChT,z)||w||K||C.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");z=_.b(C);for(w=z.next();!w.done;w=z.next())C=_.b(w.value),w=C.next().value,C=C.next().value,this.JSC$9965_xhr_.setRequestHeader(w,C);this.responseType_&&(this.JSC$9965_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9965_xhr_&&this.JSC$9965_xhr_.withCredentials!==this.JSC$9965_withCredentials_&&(this.JSC$9965_xhr_.withCredentials=this.JSC$9965_withCredentials_);
try{this.JSC$9965_timeoutId_&&(clearTimeout(this.JSC$9965_timeoutId_),this.JSC$9965_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9965_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9965_xhr_.send(e),this.inSend_=!1}catch(X){KsX(this,X)}};
_.AT.prototype.createXhr=function(){return this.JSC$9965_xmlHttpFactory_?this.JSC$9965_xmlHttpFactory_.createInstance():pRg.createInstance()};
_.AT.prototype.timeout_=function(){typeof TLU!="undefined"&&this.JSC$9965_xhr_&&(this.JSC$9965_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9965_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var KsX=function(e,z){e.JSC$9965_active_=!1;e.JSC$9965_xhr_&&(e.inAbort_=!0,e.JSC$9965_xhr_.abort(),e.inAbort_=!1);e.JSC$9965_lastError_=z;e.JSC$9965_lastErrorCode_=5;oB6(e);GNs(e)},oB6=function(e){e.errorDispatched_||(e.errorDispatched_=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))};
_.AT.prototype.abort=function(e){this.JSC$9965_xhr_&&this.JSC$9965_active_&&(this.JSC$9965_active_=!1,this.inAbort_=!0,this.JSC$9965_xhr_.abort(),this.inAbort_=!1,this.JSC$9965_lastErrorCode_=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),GNs(this))};
_.AT.prototype.disposeInternal=function(){this.JSC$9965_xhr_&&(this.JSC$9965_active_&&(this.JSC$9965_active_=!1,this.inAbort_=!0,this.JSC$9965_xhr_.abort(),this.inAbort_=!1),GNs(this,!0));_.AT.superClass_.disposeInternal.call(this)};
_.AT.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Y3h(this);else this.onReadyStateChangeEntryPoint_()};
_.AT.prototype.onReadyStateChangeEntryPoint_=function(){Y3h(this)};
var Y3h=function(e){if(e.JSC$9965_active_&&typeof TLU!="undefined")if(e.inSend_&&_.ZA(e)==4)setTimeout(e.onReadyStateChange_.bind(e),0);else if(e.dispatchEvent("readystatechange"),e.isComplete()){e.JSC$9965_active_=!1;try{if(e.isSuccess())e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.JSC$9965_lastErrorCode_=6;try{var z=_.ZA(e)>2?e.JSC$9965_xhr_.statusText:""}catch(C){z=""}e.JSC$9965_lastError_=z+" ["+e.getStatus()+"]";oB6(e)}}finally{GNs(e)}}},GNs=function(e,z){if(e.JSC$9965_xhr_){e.JSC$9965_timeoutId_&&
(clearTimeout(e.JSC$9965_timeoutId_),e.JSC$9965_timeoutId_=null);
var C=e.JSC$9965_xhr_;e.JSC$9965_xhr_=null;z||e.dispatchEvent("ready");try{C.onreadystatechange=null}catch(w){}}};
_.AT.prototype.isActive=function(){return!!this.JSC$9965_xhr_};
_.AT.prototype.isComplete=function(){return _.ZA(this)==4};
_.AT.prototype.isSuccess=function(){var e=this.getStatus(),z;if(!(z=Zd6(e))){if(e=e===0)e=qvh(String(this.JSC$9965_lastUri_)),e=!zyT.test(e);z=e}return z};
_.ZA=function(e){return e.JSC$9965_xhr_?e.JSC$9965_xhr_.readyState:0};
_.Y=_.AT.prototype;_.Y.getStatus=function(){try{return _.ZA(this)>2?this.JSC$9965_xhr_.status:-1}catch(e){return-1}};
_.Y.getResponseText=function(){try{return this.JSC$9965_xhr_?this.JSC$9965_xhr_.responseText:""}catch(e){return""}};
_.Y.getResponse=function(){try{if(!this.JSC$9965_xhr_)return null;if("response"in this.JSC$9965_xhr_)return this.JSC$9965_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9965_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9965_xhr_)return this.JSC$9965_xhr_.mozResponseArrayBuffer}return null}catch(e){return null}};
_.Y.getAllResponseHeaders=function(){return this.JSC$9965_xhr_&&_.ZA(this)>=2?this.JSC$9965_xhr_.getAllResponseHeaders()||"":""};
_.Y.getLastError=function(){return typeof this.JSC$9965_lastError_==="string"?this.JSC$9965_lastError_:String(this.JSC$9965_lastError_)};var H0k=function(){};
H0k.prototype.send=function(e,z,C){z=z===void 0?function(){}:z;
C=C===void 0?function(){}:C;
eL4(e.url,function(w){w=w.target;w.isSuccess()?z(w.getResponseText()):C(w.getStatus())},e.requestType,e.body,e.requestHeaders,e.timeoutMillis,e.withCredentials)};
H0k.prototype.getTransmissionType=function(){return 1};var b0o=function(e,z){this.wml=e;this.event=z;this.startTime=Po()},Ryk;
b0o.prototype.done=function(){this.wml.s1(this.event,Po()-this.startTime)};
var pk=function(){US.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.U(pk,US);_.eq=function(e,z,C){var w=Po();z=z();e.s1(C,Po()-w);return z};
Ryk=function(){pk.apply(this,arguments)};
_.U(Ryk,pk);_.Y=Ryk.prototype;_.Y.dQ0=function(){};
_.Y.ej=function(){};
_.Y.s1=function(){};
_.Y.logError=function(){};
_.Y.ea=function(){};
_.Y.otx=function(){};
_.Y.p6G=function(){};
_.Y.jKg=function(){};
var Xi4=function(e){pk.call(this);var z=this;this.gb=e;this.TEST_ONLY={hCY:function(){return z.gb},
getExperimentIds:function(){return z.gb.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void z.gb.dispose()})};
_.U(Xi4,pk);_.Y=Xi4.prototype;_.Y.update=function(e){this.gb.dispose();this.gb=e};
_.Y.ej=function(e){this.gb.ej(e)};
_.Y.s1=function(e,z){this.gb.s1(e,z)};
_.Y.logError=function(e){this.gb.logError(e)};
_.Y.ea=function(){this.gb.ea()};
_.Y.otx=function(e){this.gb.otx(e)};
_.Y.p6G=function(e){this.gb.p6G(e)};
_.Y.jKg=function(e){this.gb.jKg(e)};
_.Y.dQ0=function(e){this.gb.dQ0(e)};
var JJT=function(e,z){_.Sn.call(this);var C=this;this.callback=e;this.zNu=z;this.cuv=-z;this.addOnDisposeCallback(function(){return void clearTimeout(C.timer)})};
_.U(JJT,_.Sn);var kNa=function(e){if(e.timer===void 0){var z=Math.max(0,e.cuv+e.zNu-Po());e.timer=setTimeout(function(){try{e.callback()}finally{e.cuv=Po(),e.timer=void 0}},z)}},q3a=function(e,z){pk.call(this);
this.metrics=e;this.sC=z};
_.U(q3a,pk);_.Y=q3a.prototype;_.Y.dQ0=function(e){this.metrics.cZk.record(e,this.sC)};
_.Y.ej=function(e){this.metrics.eventCount.increment(e,this.sC)};
_.Y.s1=function(e,z){this.metrics.ucd.record(z,e,this.sC)};
_.Y.logError=function(e){this.metrics.errorCount.increment(e,this.sC)};
_.Y.otx=function(e){this.metrics.sWu.increment(e,this.sC)};
_.Y.p6G=function(e){this.metrics.ev0.increment(e,this.sC)};
_.Y.jKg=function(e){this.metrics.ra4.increment(e,this.sC)};
var Ls4=function(e,z){z=z===void 0?[]:z;var C={sC:e.sC||"_",mjx:e.mjx||[],puZ:e.puZ|0,destinationUrl:e.destinationUrl,aBQ:e.aBQ||function(){},
khQ:e.khQ||function(G,X){return Ph1(G,X,C.aBQ,C.destinationUrl)}},w=C.khQ("52",C.mjx.concat(z));
q3a.call(this,{cZk:new j4a(w),errorCount:new Zhg(w),eventCount:new cAS(w),ucd:new AAc(w),jSV:new yAT(w),sWu:new poY(w),ev0:new eoT(w),ra4:new zoS(w)},C.sC);var K=this;this.TEST_ONLY={getExperimentIds:function(){return K.options.mjx.concat(K.b50).sort(function(G,X){return G-X})}};
this.options=C;this.service=w;this.z6m=!e.khQ;this.flushDebouncer=new JJT(function(){return void K.service.snapshotAndFlush()},C.puZ);
this.addOnDisposeCallback(function(){K.flushDebouncer.dispose();K.z6m&&K.service.dispose()});
(this.b50=z.slice()).sort(_.Vhh)};
_.U(Ls4,q3a);Ls4.prototype.ea=function(){kNa(this.flushDebouncer)};var NW4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(NW4,_.X2);_.s9m=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(_.s9m,_.X2);var AS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e,0,AS.messageId)};
_.U(AS,_.X2);var xvS=_.zX4(AS);AS.messageId="bfkj";var Ch8=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Ch8,_.X2);var T3s=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(T3s,_.X2);var $vT=_.IT(T3s);_.x5=function(){var e=this;this.promise=new Promise(function(z,C){e.resolve=z;e.reject=C})};_.zD=function(e){_.Sn.call(this);var z=this;this.twu=Math.floor(Math.random()*200);this.gOa=new T3s;if("challenge"in e&&xvS(e.challenge)){var C=_.Ds(e.challenge,4,void 0,Fs);var w=_.Ds(e.challenge,5,void 0,Fs);_.Ds(e.challenge,7,void 0,Fs)&&(this.gOa=$vT(_.Ds(e.challenge,7,void 0,Fs)))}else C=e.program,w=e.globalName;this.addOnDisposeCallback(function(){var H,I,L;return _.k(function(h){if(h.nextAddress==1)return h.yield(z.rgx,2);H=h.yieldResult;I=H.k5h;(L=I)==null||L();_.E_(h)})});
this.ug=hyk(e.wgG||{},this.gOa);_.I4(this,this.ug);var K=new _.x5;this.rgx=K.promise;this.ug.ej("t");var G=this.ug.share(),X=new b0o(G,"t"),J=function(H,I,L,h){if(!z.ug.isDisposed()){var E="k";I?E="h":L&&(E="u");E!=="k"?h!==0&&(z.ug.ej(E),z.ug.s1(E,H)):z.twu<=0?(z.ug.ej(E),z.ug.s1(E,H),z.twu=Math.floor(Math.random()*200)):z.twu--}},q=function(H,I,L,h){Promise.resolve().then(function(){X.done();
G.ea();G.dispose();K.resolve({ifd:H,k5h:I,uEe:L,u70:h})})};
if(!_.wL[w])throw this.ug.logError(25),Error("Ca");if(!_.wL[w].a)throw this.ug.logError(26),Error("Da");try{var T=_.wL[w].a;w=[];for(var Q=[],m=wiN(this.gOa),a=0;a<m.length;a++)w.push(m[a]),Q.push(1);var n=Ksg(this.gOa);for(m=0;m<n.length;m++)w.push(n[m]),Q.push(2);this.yUu=_.b(T(C,q,!0,e.uf0,J,[w,Q],_.Ds(this.gOa,5),!1)).next().value;this.bMn=K.promise.then(function(){})}catch(H){throw this.ug.logError(28),H;
}};
_.U(_.zD,_.Sn);_.zD.prototype.snapshot=function(e){if(this.isDisposed())throw Error("Ea");this.ug.ej("n");var z=this.ug.share();return this.rgx.then(function(C){var w=C.ifd;return new Promise(function(K){var G=new b0o(z,"n");w(function(X){G.done();z.dQ0(X.length);z.ea();z.dispose();K(X)},[e.tZ,
e.ztP,e.hz2,e.kfS])})})};
_.zD.prototype.zrz=function(e){this.rgx.then(function(z){var C;(C=z.uEe)==null||C(e)})};
_.zD.prototype.l1e=function(e,z){return this.rgx.then(function(C){var w;return(w=C.u70)==null?void 0:w(e,z,!1)})};
_.zD.prototype.bZv=function(){return this.ug.share()};var l6h=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(l6h,_.X2);var WAg=_.zX4(l6h);var QXc=function(){this.promises={};this.vmS=null},mva=function(){QXc.instance||(QXc.instance=new QXc);
return QXc.instance},nBh=function(e,z){return a6U(e,_.ra(z,NW4,1,Fs),_.ra(z,_.s9m,2,Fs),_.Ds(z,3,void 0,Fs))},a6U=function(e,z,C,w){if(!z&&!C)return Promise.resolve();
if(!w)return f64(z,C);var K;(K=e.promises)[w]||(K[w]=new Promise(function(G,X){f64(z,C).then(function(){e.vmS=w;G()},function(J){delete e.promises[w];
X(J)})}));
return e.promises[w]};var Msh=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Msh,_.X2);var rJX=function(e,z){return _.ZW(e,1,z)},H04=function(e,z){return _.ZW(e,2,z)};var CR=function(e){_.Sn.call(this);var z=this;this.options=e;this.by0=new _.x5;this.bMn=this.by0.promise;this.taa=new _.x5;this.fgg=1;this.i00=new _.x5;this.a3v=[];this.isPaused=!1;this.kmk=e.kmk||function(){};
this.tgz=new Xi4(hyk(e.wgG||{}));UvL(this,e.jf,e.qPI,e.v2o,e.eNM,Object.assign({},vBL,e.fnk||{}));this.addOnDisposeCallback(function(){return void I6a(z)})};
_.U(CR,_.Sn);CR.prototype.snapshot=function(e){var z=this;return _.k(function(C){switch(C.nextAddress){case 1:if(z.isDisposed())throw Error("Ea");if(z.vd||z.omu){C.jumpTo(2);break}return C.yield(z.taa.promise,2);case 2:if(!z.vd){C.jumpTo(4);break}return C.yield(z.vd.snapshot(e),5);case 5:return C.return(C.yieldResult);case 4:throw z.omu;}})};
CR.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.lD&&this.lD.pause())};
CR.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.lD&&this.lD.resume())};
CR.prototype.checkForRefresh=function(){var e=this;return _.k(function(z){if(e.isDisposed())throw Error("Ea");var C;if(C=e.lD)C=e.lD,C.isExpired()?(Wsc(C),C.resolver(0),C=!0):C=!1,C=!C;return C?z.jumpTo(0):z.yield(e.i00.promise,0)})};
var Ry4=function(e){var z;return _.k(function(C){if(e.isDisposed())throw Error("Ea");(z=e.lD)==null||Pha(z);return C.yield(e.i00.promise,0)})},I6a=function(e){e.omu=Error("Ga");
e.taa.resolve();oBL(e.by0.promise);e.by0.reject(Error("Ga"));e.tgz.dispose();Promise.all(e.a3v).then(function(){var C;return _.k(function(w){(C=e.vd)==null||C.dispose();e.vd=void 0;_.E_(w)})});
e.a3v=[];var z;(z=e.lD)==null||Pha(z);oBL(e.i00.promise);e.i00.reject(Error("Ga"))};
CR.prototype.zrz=function(e){var z,C;(z=this.vd)==null||(C=z.zrz)==null||C.call(z,e)};
CR.prototype.l1e=function(e,z){var C,w,K;return(K=(C=this.vd)==null?void 0:(w=C.l1e)==null?void 0:w.call(C,e,z))!=null?K:Promise.resolve()};
var Lss=function(e,z){var C=e.kmk;e.kmk=function(){C();z()}},hy4=function(e,z){e.isDisposed()||(e.vd=z,e.tgz.update(z.bZv()),e.taa.resolve(),e.by0.resolve(void 0),e.kmk())};
CR.prototype.handleError=function(e){if(!this.isDisposed()){this.omu=e;this.taa.resolve();var z,C;(C=(z=this.options).eiJ)==null||C.call(z,e)}};
var O04=function(e,z){z&&(Promise.all(e.a3v).then(function(){return void z.dispose()}),e.a3v=[])},wq=function(e,z){e.fgg=z;
var C,w;(w=(C=e.options).ruD)==null||w.call(C,z)},EBh=function(e){e.isDisposed()||(e.i00.resolve(),e.i00=new _.x5)},UvL=function(e,z,C,w,K,G){w=w===void 0?mva():w;
K=K===void 0?Promise.resolve(void 0):K;var X,J,q,T,Q,m,a,n,H,I,L,h;_.k(function(E){switch(E.nextAddress){case 1:return E.yield(0,3);case 3:J=null;if(!X){E.jumpTo(6);break}wq(e,7);_.Iv(E,7);return E.yield(Ev(X.snapshot({}),G.hha,function(){return Promise.resolve("E:CTO")}),9);
case 9:J=E.yieldResult;_.Yj(E,6);break;case 7:_.O_(E),J="E:UCE";case 6:q=void 0,T=X?G.ztJ:G.wvn,Q=new nh(T,G.y0n,G.nMm,G.htw),m=1;case 10:if(!(m<=G.maxAttempts)){E.jumpTo(12);break}if(m===1){E.jumpTo(13);break}wq(e,0);e.lD=new KR(Q.getValue(),G.zpy,G.dS0);return E.yield(e.lD.promise,14);case 14:a=E.yieldResult,e.lD=void 0,a===1?(m=1,Q.reset()):sIC(Q);case 13:_.Iv(E,15);n=void 0;if(C){n=C;E.jumpTo(17);break}wq(e,5);H=w.vmS;return E.yield(Ev(Fss(z,H,J),G.nD2,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:n=E.yieldResult;case 17:return wq(e,3),E.yield(Ev(nBh(w,n),G.ago,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return wq(e,8),E.yield(K,20);case 20:return I=new _.zD({challenge:n,wgG:e.options.wgG,uf0:e.options.uf0}),E.yield(Ev(I.bMn,G.fLN,function(){return Promise.reject(Error("Ja"))}),21);
case 21:q=I;E.jumpTo(12);break;case 15:L=_.O_(E),e.handleError(L),EBh(e);case 11:m++;E.jumpTo(10);break;case 12:if(e.isDisposed()){E.jumpTo(5);break}q&&(C=void 0,O04(e,X),X=q,hy4(e,q),EBh(e));wq(e,2);e.lD=new KR(G.sI0,G.zpy,G.dS0);e.isPaused&&e.lD.pause();return E.yield(e.lD.promise,22);case 22:e.lD=void 0;if(e.isDisposed()){E.jumpTo(5);break}E.jumpTo(3);break;case 5:(h=X)==null||h.dispose(),_.E_(E)}})};
CR.prototype.bZv=function(){return this.tgz.share()};
var vBL={sI0:432E5,zpy:3E5,dS0:10,hha:1E4,nD2:3E4,ago:3E4,fLN:6E4,wvn:1E3,ztJ:6E4,y0n:6E5,nMm:.25,htw:2,maxAttempts:10},KR=function(e,z,C){var w=this;this.endTimeMs=0;this.fza=null;this.isPaused=!1;this.tick=function(){if(!w.isPaused){var K=w.endTimeMs-Date.now();K<=w.bsJ?(w.fza=null,w.resolver(0)):w.fza=setTimeout(w.tick,Math.min(K,w.zpy))}};
this.zpy=z;this.bsJ=C;this.promise=new Promise(function(K){w.resolver=K});
Vsh(this,e)},Vsh=function(e,z){e.endTimeMs=Date.now()+z;
e.tick()};
KR.prototype.pause=function(){this.isPaused||(this.isPaused=!0,Wsc(this))};
KR.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var Pha=function(e){Wsc(e);e.endTimeMs=0;e.isPaused=!1;e.resolver(1)},Wsc=function(e){e.fza&&(clearTimeout(e.fza),e.fza=null)};
KR.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var f6s,dv5=(f6s=Math.imul)!=null?f6s:function(e,z){return e*z|0},FU=[196,
200,224,18],oK=function(e,z,C){C=C===void 0?[]:C;this.maxItems=e;this.lT=z===void 0?0:z;this.oi=C},S3T=function(e){var z=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!z)return new oK(e);var C=z.split(",");if(C.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new oK(e);z=C.slice(1);z.length===1&&z[0]===""&&(z=[]);C=Number(C[0]);return isNaN(C)||C<0||C>z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new oK(e)):new oK(e,C,z)};
oK.prototype.serialize=function(){return String(this.lT)+","+this.oi.join()};
oK.prototype.insert=function(e,z){var C=void 0;if(this.oi[this.lT]!==e){var w=this.oi.indexOf(e);w!==-1?(this.oi.splice(w,1),w<this.lT&&this.lT--,this.oi.splice(this.lT,0,e)):(C=this.oi[this.lT],this.oi[this.lT]=e)}this.lT=(this.lT+1)%this.maxItems;e=S38("iU5q-!O9@$",this.serialize());C&&e&&z(C);return e};
var uFL=function(e,z){this.jFG=z;try{var C=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(w){C=!1}C&&(this.index=S3T(e))},dvY=function(e,z,C,w,K){var G=e.index?_.eq(e.jFG,function(){return sXE(e.index,i0g(z),C,w,K)},"W"):"u";
e.jFG.jKg(G)},Dv4=function(e,z,C){var w=_.b(e.index?_.eq(e.jFG,function(){return B3g(i0g(z),C)},"R"):["u"]),K=w.next().value;
w=w.next().value;e.jFG.p6G(K);return w};var i0X={toString:function(e){var z=[],C=0;e-=-2147483648;z[C++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(e%52);for(e=Math.floor(e/52);e>0;)z[C++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(e%62),e=Math.floor(e/62);return z.join("")}};var B3o=function(e){e=N3h(e);for(var z=2654435769,C=2654435769,w=314159265,K=e.length,G=K,X=0,J=function(){z-=C;z-=w;z^=w>>>13;C-=w;C-=z;C^=z<<8;w-=z;w-=C;w^=C>>>13;z-=C;z-=w;z^=w>>>12;C-=w;C-=z;C^=z<<16;w-=z;w-=C;w^=C>>>5;z-=C;z-=w;z^=w>>>3;C-=w;C-=z;C^=z<<10;w-=z;w-=C;w^=C>>>15};G>=12;G-=12,X+=12)z+=sXU(e,X),C+=sXU(e,X+4),w+=sXU(e,X+8),J();
w+=K;switch(G){case 11:w+=e[X+10]<<24;case 10:w+=e[X+9]<<16;case 9:w+=e[X+8]<<8;case 8:C+=e[X+7]<<24;case 7:C+=e[X+6]<<16;case 6:C+=e[X+5]<<8;case 5:C+=e[X+4];case 4:z+=e[X+3]<<24;case 3:z+=e[X+2]<<16;case 2:z+=e[X+1]<<8;case 1:z+=e[X]}J();return i0X.toString(w)},N3h=function(e){for(var z=[],C=0;C<e.length;C++)z.push(e.charCodeAt(C));
return z},sXU=function(e,z){return e[z]+(e[z+1]<<8)+(e[z+2]<<16)+(e[z+3]<<24)};var GD=function(e){_.Sn.call(this);this.ob=e;this.pJz=new _.x5};
_.U(GD,_.Sn);var tsC=function(e,z){var C=setTimeout(function(){e.pJz.resolve()},z);
e.addOnDisposeCallback(function(){return void clearTimeout(C)})};
GD.prototype.ywQ=function(e,z){var C=this.jD(e);z==null||z(C);return _.eq(this.ob,function(){return _.FY(C,2)},this.wwQ)};
var gB6=function(e,z,C,w){return _.eq(e.ob,function(){return C?e.ywQ(z,w):e.jD(z,w)},e.n2v)},jXh=function(e,z,C,w){GD.call(this,e);
this.no8=z;this.xDh=C;this.n2v="m";this.wwQ="x";this.kuY=0;tsC(this,w)};
_.U(jXh,GD);jXh.prototype.jD=function(e,z){var C=this;this.ob.ej(this.n2v);++this.kuY>=this.xDh&&this.pJz.resolve();var w=e();e=_.eq(this.ob,function(){return C.no8(w)},"C");
if(e===void 0)throw new rB(17,"YNJ:Undefined");if(!(e instanceof Uint8Array))throw new rB(18,"ODM:Invalid");z==null||z(e);return e};
var yJc=function(e,z,C){GD.call(this,e);this.zpw=z;this.n2v="f";this.wwQ="z";tsC(this,C)};
_.U(yJc,GD);yJc.prototype.jD=function(){return this.zpw};
var cJa=function(e,z,C){GD.call(this,e);this.wOg=z;this.n2v="w";this.wwQ="z";tsC(this,C)};
_.U(cJa,GD);cJa.prototype.jD=function(){var e=this;return _.eq(this.ob,function(){return _.po(e.wOg)},"d")};
cJa.prototype.ywQ=function(){return this.wOg};
var AJ4=function(e,z){GD.call(this,e);this.error=z;this.n2v="e";this.wwQ="y"};
_.U(AJ4,GD);var Z0U=function(e,z){var C=(z(e.error.message)+":"+z(e.error.stack)).substring(0,2048);z=C.length+1;C=tss(C);var w=new Uint8Array(4+C.length);w.set([42,z&127|128,z>>7,e.error.code]);w.set(C,4);return w};
AJ4.prototype.jD=function(){if(this.xAS)return this.xAS;this.xAS=Z0U(this,function(e){return"_"+B3o(e)});
return Z0U(this,function(e){return e})};
var pia=function(e,z,C){GD.call(this,e);this.fbm=z;this.clientState=C;this.n2v="S";this.wwQ="q"};
_.U(pia,GD);pia.prototype.jD=function(){var e=Math.floor(Date.now()/1E3),z=[Math.random()*255,Math.random()*255],C=z.concat([this.fbm&255,this.clientState],[e>>24&255,e>>16&255,e>>8&255,e&255]);e=new Uint8Array(2+C.length);e[0]=34;e[1]=C.length;e.set(C,2);C=e.subarray(2);for(var w=z=z.length;w<C.length;++w)C[w]^=C[w%z];this.ob.otx(this.clientState);return e};var e_U={kY2:3E4,pWN:2E4},Yu=function(e){_.Sn.call(this);var z=this;this.s8n=new _.x5;this.cwa=0;this.bT=void 0;this.state=2;this.vm=e.vm;this.jf=e.jf;this.fnk=Object.assign({},e_U,e.fnk||{});this.j2=e.vm.bZv();var C;this.onError=(C=e.onError)!=null?C:function(){};
this.oFa=e.oFa||!1;if(z_g(e)){var w=this.vm;this.iOh=function(){return Ry4(w).catch(function(X){X=z.reportError(new rB(z.eJ?20:32,"TRG:Disposed",X));z.bT=X;var J;(J=z.eJ)==null||J.dispose();z.eJ=void 0;z.s8n.reject(X)})};
Lss(w,function(){return void CMo(z)});
w.fgg===2&&CMo(this)}else this.iOh=e.v9o,CMo(this);var K=this.j2.share();K.ej("o");var G=new b0o(K,"o");this.s8n.promise.then(function(){G.done();K.ea();K.dispose()},function(){return void K.dispose()});
this.addOnDisposeCallback(function(){z.eJ?(z.eJ.dispose(),z.eJ=void 0):z.bT?z.j2.ea():(z.bT=z.reportError(new rB(32,"TNP:Disposed")),z.j2.ea(),z.s8n.reject(z.bT))});
_.I4(this,this.j2)};
_.U(Yu,_.Sn);Yu.prototype.em2=function(){return this.s8n.promise};
var w5c=function(e,z){if(!(z instanceof rB))if(z instanceof _.yE){var C=Error(z.toString());C.stack=z.stack;z=new rB(11,"EBH:Error",C)}else z=new rB(12,"BSO:Unknown",z);return e.reportError(z)},CMo=function(e){var z,C,w,K,G,X,J,q,T,Q,m,a,n,H,I;
return _.k(function(L){switch(L.nextAddress){case 1:z=void 0;e.cwa++;C=new _.x5;e.vm instanceof CR&&e.vm.a3v.push(C.promise);if(!e.oFa){L.jumpTo(2);break}w=new _.x5;setTimeout(function(){return void w.resolve()});
return L.yield(w.promise,2);case 2:return K=e.j2.share(),_.Iv(L,4,5),e.state=5,G={},X=[],L.yield(Ev(e.vm.snapshot({tZ:G,hz2:X}),e.fnk.pWN,function(){return Promise.reject(new rB(15,"MDA:Timeout"))}),7);
case 7:J=L.yieldResult;if(e.isDisposed())throw new rB(e.eJ?20:32,"MDA:Disposed");q=X[0];e.state=6;return L.yield(Ev(K06(e.jf,J),e.fnk.kY2,function(){return Promise.reject(new rB(10,"BWB:Timeout"))}),8);
case 8:T=L.yieldResult;if(e.isDisposed())throw new rB(e.eJ?20:32,"BWB:Disposed");e.state=7;z=_.eq(K,function(){var E=ojU(e,T,C,q);E.pJz.promise.then(function(){return void e.iOh()});
return E},"i");
case 5:_.PZ(L);K.dispose();_.hn(L,6);break;case 4:Q=_.O_(L);(m=z)==null||m.dispose();if(!e.bT){a=w5c(e,Q);C.resolve();var h;if(h=e.vm instanceof CR&&e.cwa<2)a:if(Q instanceof rB)h=Q.code!==32&&Q.code!==20&&Q.code!==10;else{if(Q instanceof _.yE)switch(Q.code){case 2:case 13:case 14:case 4:break;default:h=!1;break a}h=!0}if(h)return n=(1+Math.random()*.25)*(e.eJ?6E4:1E3),H=setTimeout(function(){return void e.iOh()},n),e.addOnDisposeCallback(function(){return void clearTimeout(H)}),L.return();
e.bT=a}K.logError(e.eJ?13:14);e.s8n.reject(e.bT);return L.return();case 6:e.state=8,e.cwa=0,(I=e.eJ)==null||I.dispose(),e.eJ=z,e.s8n.resolve(),_.E_(L)}})},ojU=function(e,z,C,w){var K=fTg(z,2)*1E3;
if(K<=0)throw new rB(31,"TTM:Invalid");if(_.Ds(z,4))return new cJa(e.j2,_.Ds(z,4),K);if(!fTg(z,3))return new yJc(e.j2,aTL(_.O7(z,1)),K);if(!w)throw new rB(4,"PMD:Undefined");w=w(aTL(_.O7(z,1)));if(!(w instanceof Function))throw new rB(16,"APF:Failed");e.exJ=Math.floor((Date.now()+K)/1E3);e=new jXh(e.j2,w,fTg(z,3),K);e.addOnDisposeCallback(function(){return void C.resolve()});
return e};
Yu.prototype.jD=function(e){return GTc(this,Object.assign({},e),!1)};
Yu.prototype.ywQ=function(e){return GTc(this,Object.assign({},e),!0)};
Yu.prototype.bV9=function(e){if(e>150)return!1;try{return this.cache=new uFL(e,this.j2),!0}catch(z){return this.reportError(new rB(22,"GBJ:init",z)),!1}};
Yu.prototype.reportError=function(e){this.j2.logError(e.code);this.onError(e);return e};
var YRU=function(e,z){z=z instanceof rB?z:new rB(5,"TVD:error",z);return e.reportError(z)},GTc=function(e,z,C){try{if(e.isDisposed())throw new rB(21,"BNT:disposed");
if(!e.eJ&&e.bT)throw e.bT;var w,K;return(K=(w=bpC(e,z,C))!=null?w:X5s(e,z,C))!=null?K:JfX(e,z,C)}catch(G){if(!z.fuG)throw YRU(e,G);return kTX(e,C,G)}},bpC=function(e,z,C){var w;
return(w=e.eJ)==null?void 0:gB6(w,function(){return qR6(e,z)},C,function(K){var G;
if(e.eJ instanceof jXh&&((G=z.kY)==null?0:G.aMA))try{var X;(X=e.cache)==null||dvY(X,qR6(e,z),K,z.kY.v9e,e.exJ-120)}catch(J){e.reportError(new rB(24,"ELX:write",J))}})},X5s=function(e,z,C){var w;
if((w=z.kY)!=null&&w.nbv)try{var K,G=(K=e.cache)==null?void 0:Dv4(K,qR6(e,z),z.kY.v9e);return G?C?_.eq(e.j2,function(){return _.FY(G,2)},"a"):G:void 0}catch(X){e.reportError(new rB(23,"RXO:read",X))}},JfX=function(e,z,C){var w={stack:[],
error:void 0,hasError:!1};try{if(!z.ss7)throw new rB(29,"SDF:notready");return gB6(nNL(w,new pia(e.j2,0,e.state)),function(){return qR6(e,z)},C)}catch(K){w.error=K,w.hasError=!0}finally{Mhh(w)}},kTX=function(e,z,C){var w={stack:[],
error:void 0,hasError:!1};try{var K=YRU(e,C);return gB6(nNL(w,new AJ4(e.j2,K)),function(){return[]},z)}catch(G){w.error=G,w.hasError=!0}finally{Mhh(w)}},qR6=function(e,z){return z.wHa?z.wHa:z.tZ?_.eq(e.j2,function(){return z.wHa=tss(z.tZ)},"c"):[]},z_g=function(e){return fg(function(z){if(!vC(z))return!1;
for(var C=_.b(Object.entries(e)),w=C.next();!w.done;w=C.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;if(!(w in z)){if(K.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!K(z[w]))return!1}return!0})}({vm:function(e){return fg(function(z){return z instanceof e})}(CR)},"");var xEU=function(){var e=_.XN();this.JSC$10083_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",lZ("cookie_enabled"),lZ("cookie_3p_enabled"),_.ma("browser"))};
xEU.prototype.increment=function(e,z,C){this.JSC$10083_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",e,z,C)};
var Yah=function(){var e=_.XN();this.JSC$10107_streamzService=e;e.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Q4("tick"),lZ("from_st_cookie"))};
Yah.prototype.increment=function(e,z){this.JSC$10107_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",e,z)};
var Tao=function(){var e=_.XN();this.JSC$10113_streamzService=e;e.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.ma("status"))};
Tao.prototype.increment=function(e){this.JSC$10113_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",e)};
var $Eg=function(){var e=_.XN();this.JSC$10116_streamzService=e;e.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.ma("stage"),lZ("is_using_ytd_player"),lZ("has_expandable_tiles"))};
$Eg.prototype.increment=function(e,z,C){this.JSC$10116_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",e,z,C)};
var lIX=function(){var e=_.XN();this.JSC$10119_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/response_signature",_.ma("check_status"))};
lIX.prototype.increment=function(e){this.JSC$10119_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/response_signature",e)};
var Qsc=function(){var e=_.XN();this.JSC$10122_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.ma("sig"),Q4("de"))};
Qsc.prototype.increment=function(e,z){this.JSC$10122_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/e_sig_log",e,z)};
var mEU=function(){var e=_.XN();this.JSC$10125_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.ma("sig"),Q4("de"))};
mEU.prototype.increment=function(e,z){this.JSC$10125_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/e_sig_en",e,z)};
_.aIa=function(){var e=_.XN();this.JSC$10128_streamzService=e;e.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.ma("action"))};
_.aIa.prototype.increment=function(e){this.JSC$10128_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/web/enforcement_intent",e)};var bG=window;var njT=(new Date).getTime();_.de.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.de.createSet("action","cite","data","formaction","href","manifest","poster","src");var Mxc=function(e){this.servicePromise_=e;e.then((0,_.uZ)(function(){},this),function(){},this)},rfo=function(e,z,C){e.servicePromise_.then(function(w){var K=w[z];
if(!K)throw Error("Ka`"+z);return K.apply(w,C)})},vjU=function(e,z,C){for(var w=Array(arguments.length-2),K=2;K<arguments.length;K++)w[K-2]=arguments[K];
K=Hp4(e,z).then(function(G){return G.apply(null,w)},function(G){G=Error("La`"+z+"`"+e+"`"+G,{cause:G});
delete UEU[z];return _.R5(G)});
return new Mxc(K)},UEU={},Hp4=function(e,z){var C=UEU[z];
if(C)return C;C=(C=_.pd(z))?_.oS(C):(new _.RC(function(w,K){var G=(new NJ(document)).createElement("SCRIPT");G.async=!0;_.Jn(G,_.EC(mXX(e)));G.onload=G.onreadystatechange=function(){G.readyState&&G.readyState!="loaded"&&G.readyState!="complete"||w()};
G.onerror=function(X){K(Error("Ma`"+z+"`"+e,{cause:X}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(G)})).then(function(){var w=_.pd(z);
if(!w)throw Error("Na`"+z+"`"+e);return w});
return UEU[z]=C};var IIX={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},PMa=function(){var e=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=gBL(function(){return _.k(function(z){if(z.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?z.return(Promise.resolve()):z.yield(W0T(e),2);e.rsaForList.length>
0&&document.addEventListener("click",e.requestAccessForHelpPanel);_.E_(z)})});
this.requestAccessForHelpPanel=function(){if(!(e.rsaForPromises.length>0)){for(var z=_.b(e.rsaForList),C=z.next();!C.done;C=z.next()){C=C.value;try{e.rsaForPromises.push(document.requestStorageAccessFor(C))}catch(w){}}Promise.all(e.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){e.reset()})}}};
PMa.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var W0T=function(e){var z,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:z=_.b(Object.values(IIX)),C=z.next();case 2:if(C.done){G.jumpTo(0);break}w=C.value;_.Iv(G,5);return G.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:w}),7);case 7:K=G.yieldResult;K.state!=="granted"&&e.rsaForList.push(w);_.Yj(G,3);break;case 5:_.O_(G);G.jumpTo(0);break;case 3:C=z.next(),G.jumpTo(2)}})};(new PMa).initialize();var R_C=function(e){this.JSC$10142_loader_=e};
R_C.prototype.startHelp=function(e){rfo(this.JSC$10142_loader_,"startHelp",arguments)};
R_C.prototype.JSC$10144_loadChatSupport=function(e){rfo(this.JSC$10142_loader_,"loadChatSupport",arguments)};
var h_o=function(e,z){z=z||{};e=vjU(L04,"help.service.Lazy.create",e,{apiKey:z.apiKey||z.apiKey,asxUiUri:z.asxUiUri||z.asxUiUri,environment:z.environment||z.environment,flow:z.flow||z.flow,frdProductData:z.frdProductData||z.frdProductData,frdProductDataSerializedJspb:z.frdProductDataSerializedJspb||z.frdProductDataSerializedJspb,helpCenterPath:z.helpCenterPath||z.helpCenterPath,locale:z.locale||z.locale||"en-US".replace(/-/g,"_"),nonce:z.nonce||z.nonce,productData:z.productData||z.productData,receiverUri:z.receiverUri||
z.receiverUri,renderApiUri:z.renderApiUri||z.renderApiUri,theme:z.theme||z.theme,window:z.window||z.window});return new R_C(e)},L04=new pC(eh5,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var OpY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(OpY,_.X2);var Eja=_.IT(OpY);var F0C=[0,_.XP,CV,P$h];_.VxX=new function(e,z,C,w){this.configType=e;this.flagName=C;this.defaultValue=w;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 SRg=function(){this.retriever=_.lh().resolve(fIg)};_.Y3={get payments(){return window.payments}};yJ7(Node);yJ7(Element);var u0g=yJ7(HTMLElement);yJ7(SVGElement);var dEL,DEo,ku,ip6;dEL=function(e){return typeof e.className=="string"?e.className:e.getAttribute&&e.getAttribute("class")||""};
DEo=function(e){return e.classList?e.classList:dEL(e).match(/\S+/g)||[]};
_.Xo=function(e,z){typeof e.className=="string"?e.className=z:e.setAttribute&&e.setAttribute("class",z)};
_.JQ=function(e,z){return e.classList?e.classList.contains(z):_.Sh(DEo(e),z)};
_.pm=function(e,z){if(e.classList)e.classList.add(z);else if(!_.JQ(e,z)){var C=dEL(e);_.Xo(e,C+(C.length>0?" "+z:z))}};
ku=function(e,z){if(e.classList)Array.prototype.forEach.call(z,function(K){_.pm(e,K)});
else{var C={};Array.prototype.forEach.call(DEo(e),function(K){C[K]=!0});
Array.prototype.forEach.call(z,function(K){C[K]=!0});
z="";for(var w in C)z+=z.length>0?" "+w:w;_.Xo(e,z)}};
_.AE=function(e,z){e.classList?e.classList.remove(z):_.JQ(e,z)&&_.Xo(e,Array.prototype.filter.call(DEo(e),function(C){return C!=z}).join(" "))};
ip6=function(e,z){e.classList?Array.prototype.forEach.call(z,function(C){_.AE(e,C)}):_.Xo(e,Array.prototype.filter.call(DEo(e),function(C){return!_.Sh(z,C)}).join(" "))};var NaX=function(e){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=e.document},txa=function(e,z){ssh(e);
var C=document.createElement("div"),w;(w=z.parentNode)==null||w.insertBefore(C,z);C.tabIndex=0;C.id="fc-focus-trap-pre-div";C=document.createElement("div");var K;(K=z.parentNode)==null||K.insertBefore(C,z.nextSibling);C.tabIndex=0;C.id="fc-focus-trap-post-div";var G=BaY(e,z),X=BaY(e,z,!0);G&&X&&(e.focusChangeHandler=function(){var J=e.document.activeElement;if(J)if(_.ph(z,J))e.previouslyFocusedElement=J;else if(J===e.document.activeElement)switch(e.previouslyFocusedElement){case G:X.focus();e.previouslyFocusedElement=
X;break;default:G.focus(),e.previouslyFocusedElement=G}},e.document.addEventListener("focus",e.focusChangeHandler,!0),e.document.addEventListener("focusin",e.focusChangeHandler))},ssh=function(e){e.focusChangeHandler&&(document.removeEventListener("focus",e.focusChangeHandler,!0),document.removeEventListener("focusin",e.focusChangeHandler),e.focusChangeHandler=null);
var z;(z=document.getElementById("fc-focus-trap-pre-div"))==null||z.remove();var C;(C=document.getElementById("fc-focus-trap-post-div"))==null||C.remove()},gjT=function(e,z,C,w,K){C=C===void 0?!0:C;
var G;K=(G=K===void 0?null:K)!=null?G:BaY(e,z,w===void 0?!1:w);K!==null&&(K.focus(),C&&txa(e,z))};
NaX.prototype.disableButton=function(e,z){z=z===void 0?null:z;e.disabled=!0;z&&_.pm(e,z)};
var BaY=function(e,z,C){C=C===void 0?!1:C;if(mFL(z)&&!C)return z;var w=C?[].slice.call(z.children,0).reverse():z.children;w=_.b(w);for(var K=w.next();!K.done;K=w.next())if(K=K.value,u0g(K)&&(K=BaY(e,K,C)))return K;return mFL(z)&&C?z:null};var jsa=function(e){this.originalBodyOverflow="";this.JSC$10169_domHelper=Ot(e);var z;this.isScrollingEnabled=((z=this.JSC$10169_domHelper.JSC$9495_document_.body)==null?void 0:z.style.overflow)!=="hidden"};
jsa.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10169_domHelper.JSC$9495_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.Tk(_.d9,_.Sn);_.Y=_.d9.prototype;_.Y.JSC$10172_id_=0;_.Y.disposeInternal=function(){_.d9.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10170_listener_;delete this.handler_};
_.Y.start=function(e){this.stop();this.JSC$10172_id_=jl(this.callback_,e!==void 0?e:this.JSC$10170_interval_)};
_.Y.stop=function(){this.isActive()&&_.wL.clearTimeout(this.JSC$10172_id_);this.JSC$10172_id_=0};
_.Y.fire=function(){this.stop();this.JSC$10172_doAction_()};
_.Y.isActive=function(){return this.JSC$10172_id_!=0};
_.Y.JSC$10172_doAction_=function(){this.JSC$10172_id_=0;this.JSC$10170_listener_&&this.JSC$10170_listener_.call(this.handler_)};_.HA=function(e){_.Sn.call(this);this.handler_=e;this.JSC$10173_keys_={}};
_.Tk(_.HA,_.Sn);var yfg=[];_.HA.prototype.listen=function(e,z,C,w){Array.isArray(z)||(z&&(yfg[0]=z.toString()),z=yfg);for(var K=0;K<z.length;K++){var G=_.W9(e,z[K],C||this.handleEvent,w||!1,this.handler_||this);if(!G)break;this.JSC$10173_keys_[G.key]=G}return this};
_.HA.prototype.listenOnce=function(e,z,C,w){return cfh(this,e,z,C,w)};
var cfh=function(e,z,C,w,K,G){if(Array.isArray(C))for(var X=0;X<C.length;X++)cfh(e,z,C[X],w,K,G);else{z=H9(z,C,w||e.handleEvent,K,G||e.handler_||e);if(!z)return e;e.JSC$10173_keys_[z.key]=z}return e};
_.HA.prototype.unlisten=function(e,z,C,w,K){if(Array.isArray(z))for(var G=0;G<z.length;G++)this.unlisten(e,z[G],C,w,K);else if(e=QVs(e,z,C||this.handleEvent,_.gL(w)?!!w.capture:!!w,K||this.handler_||this))Um(e),delete this.JSC$10173_keys_[e.key];return this};
_.HA.prototype.removeAll=function(){_.de.forEach(this.JSC$10173_keys_,function(e,z){this.JSC$10173_keys_.hasOwnProperty(z)&&Um(e)},this);
this.JSC$10173_keys_={}};
_.HA.prototype.disposeInternal=function(){_.HA.superClass_.disposeInternal.call(this);this.removeAll()};
_.HA.prototype.handleEvent=function(){throw Error("Oa");};var q_=function(){_.Sn.call(this);this.services_={}};
_.Tk(q_,_.Sn);q_.prototype.connect=function(e){e&&e()};
q_.prototype.isConnected=function(){return!0};
q_.prototype.registerService=function(e,z,C){this.services_[e]={callback:z,objectPayload:!!C}};
q_.prototype.getService=function(e,z){var C=this.services_[e];return C?C:this.defaultService_?{callback:_.xk(this.defaultService_,e),objectPayload:_.gL(z)}:null};
var Afc=function(e,z){if(z&&typeof e==="string")try{return JSON.parse(e)}catch(C){return null}else if(!z&&typeof e!=="string")return(0,_.c2)(e);return e};
q_.prototype.disposeInternal=function(){q_.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 xu=function(e,z){this.sequence_=[];this.onCancelFunction_=e;this.defaultScope_=z||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};
xu.prototype.cancel=function(e){if(this.fired_)this.result_ instanceof xu&&this.result_.cancel();else{if(this.parent_){var z=this.parent_;delete this.parent_;e?z.cancel(e):(z.branches_--,z.branches_<=0&&z.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new TD(this))}};
xu.prototype.continue_=function(e,z){this.blocked_=!1;Zpg(this,e,z)};
var Zpg=function(e,z,C){e.fired_=!0;e.result_=C;e.hadError_=!z;p5U(e)},zUs=function(e){if(e.fired_){if(!e.silentlyCanceled_)throw new eUS(e);
e.silentlyCanceled_=!1}};
xu.prototype.callback=function(e){zUs(this);Zpg(this,!0,e)};
xu.prototype.errback=function(e){zUs(this);Zpg(this,!1,e)};
var Cko=function(e,z,C){$u(e,z,null,C)};
xu.prototype.finally=function(e){var z=this;return wnL(new Promise(function(C,w){$u(z,function(K){e();C(K)},function(K){e();
w(K)})}))};
var $u=function(e,z,C,w){var K=e.fired_;K||(z===C?z=C=sS(z):(z=sS(z),C=sS(C)));e.sequence_.push([z,C,w]);K&&p5U(e)};
xu.prototype.then=function(e,z,C){var w,K,G=new _.RC(function(X,J){K=X;w=J});
$u(this,K,function(X){X instanceof TD?G.cancel():w(X);return K1S},this);
return G.then(e,z,C)};
vi6(xu);var oOo=function(e,z){z instanceof xu?Cko(e,(0,_.uZ)(z.branch,z)):Cko(e,function(){return z})};
xu.prototype.branch=function(e){var z=new xu;$u(this,z.callback,z.errback,z);e&&(z.parent_=this,this.branches_++);return z};
xu.prototype.isError=function(e){return e instanceof Error};
var GEL=function(e){return JX(e.sequence_,function(z){return typeof z[1]==="function"})},K1S={},p5U=function(e){if(e.unhandledErrorId_&&e.fired_&&GEL(e)){var z=e.unhandledErrorId_,C=YOo[z];
C&&(_.wL.clearTimeout(C.JSC$10190_id_),delete YOo[z]);e.unhandledErrorId_=0}e.parent_&&(e.parent_.branches_--,delete e.parent_);z=e.result_;for(var w=C=!1;e.sequence_.length&&!e.blocked_;){var K=e.sequence_.shift(),G=K[0],X=K[1];K=K[2];if(G=e.hadError_?X:G)try{var J=G.call(K||e.defaultScope_,z);J===K1S&&(J=void 0);J!==void 0&&(e.hadError_=e.hadError_&&(J==z||e.isError(J)),e.result_=z=J);if(I_U(z)||typeof _.wL.Promise==="function"&&z instanceof _.wL.Promise)w=!0,e.blocked_=!0}catch(q){z=q,e.hadError_=
!0,GEL(e)||(C=!0)}}e.result_=z;w&&(J=(0,_.uZ)(e.continue_,e,!0),w=(0,_.uZ)(e.continue_,e,!1),z instanceof xu?($u(z,J,w),z.blocking_=!0):z.then(J,w));C&&(z=new bCY(z),YOo[z.JSC$10190_id_]=z,e.unhandledErrorId_=z.JSC$10190_id_)},wnL=function(e){var z=new xu;
e.then(function(C){z.callback(C)},function(C){z.errback(C)});
return z},eUS=function(){_.eh.call(this)};
_.Tk(eUS,_.eh);eUS.prototype.message="Deferred has already fired";eUS.prototype.name="AlreadyCalledError";var TD=function(){_.eh.call(this)};
_.Tk(TD,_.eh);TD.prototype.message="Deferred was canceled";TD.prototype.name="CanceledError";var bCY=function(e){this.JSC$10190_id_=_.wL.setTimeout((0,_.uZ)(this.throwError,this),0);this.JSC$10190_error_=e};
bCY.prototype.throwError=function(){delete YOo[this.JSC$10190_id_];throw this.JSC$10190_error_;};
var YOo={};var Xnh={1:"NativeMessagingTransport"},JXc=["pu","lru","pru","lpu","ppu"],qOY=function(){for(var e=10,z=kE4,C=z.length,w="";e-- >0;)w+=z.charAt(Math.floor(Math.random()*C));return w},kE4="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var lG=function(e){_.Sn.call(this);this.JSC$10193_domHelper_=e||Ot()};
_.Tk(lG,_.Sn);lG.prototype.transportType=0;lG.prototype.getWindow=function(){return this.JSC$10193_domHelper_.getWindow()};
lG.prototype.getName=function(){return Xnh[String(this.transportType)]||""};var Q_=function(e,z,C,w,K){lG.call(this,C);this.JSC$10196_channel_=e;this.protocolVersion_=K||2;this.peerHostname_=z||"*";this.JSC$10196_eventHandler_=new _.HA(this);this.maybeAttemptToConnectTimer_=new _.rM(100,this.getWindow());this.oneSidedHandshake_=!!w;this.setupAckReceived_=new xu;this.setupAckSent_=new xu;this.JSC$10196_connected_=new xu;this.endpointId_=qOY();this.peerEndpointId_=null;this.oneSidedHandshake_?xUa(this.JSC$10196_channel_)==1?oOo(this.JSC$10196_connected_,this.setupAckReceived_):
oOo(this.JSC$10196_connected_,this.setupAckSent_):(oOo(this.JSC$10196_connected_,this.setupAckReceived_),this.protocolVersion_==2&&oOo(this.JSC$10196_connected_,this.setupAckSent_));Cko(this.JSC$10196_connected_,this.notifyConnected_,this);this.JSC$10196_connected_.callback(!0);this.JSC$10196_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Tk(Q_,lG);Q_.prototype.peerProtocolVersion_=null;Q_.prototype.initialized_=!1;Q_.prototype.transportType=1;var Tm6={};Q_.prototype.sendTimerId_=0;
var QCY=function(e){var z=e.event_.data;if(typeof z!=="string")return!1;var C=z.indexOf("|"),w=z.indexOf(":");if(C==-1||w==-1)return!1;var K=z.substring(0,C);C=z.substring(C+1,w);z=z.substring(w+1);if(w=mx[K])return w.xpcDeliver(C,z,e.event_.origin),!0;w=$UC(z)[0];for(var G in mx){var X=mx[G];if(xUa(X)==1&&!X.isConnected()&&C=="tp"&&(w=="SETUP"||w=="SETUP_NTPV2")&&lzX(X,e.event_.origin))return delete mx[X.name],X.name=K,mx[K]=X,X.xpcDeliver(C,z),!0}return!1},mUU=function(e){e.protocolVersion_!=2||
e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=2||e.send("tp","SETUP_NTPV2,"+e.endpointId_);
e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=1||e.send("tp","SETUP")},azh=function(e,z){if(e.protocolVersion_!=2||e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=2||z!=2){if(e.peerProtocolVersion_!=null&&e.peerProtocolVersion_!=1||z!=1)return;
e.send("tp","SETUP_ACK")}else e.send("tp","SETUP_ACK_NTPV2");e.setupAckSent_.fired_||e.setupAckSent_.callback(!0)},nOC=function(e,z){z>e.peerProtocolVersion_&&(e.peerProtocolVersion_=z);
e.peerProtocolVersion_==1&&(e.setupAckSent_.fired_||e.oneSidedHandshake_||e.setupAckSent_.callback(!0),e.peerEndpointId_=null)};
_.Y=Q_.prototype;_.Y.connect=function(){var e=this.getWindow(),z=_.c1(e),C=Tm6[z];typeof C!=="number"&&(C=0);C==0&&_.W9(e.postMessage?e:e.document,"message",QCY,!1,Q_);Tm6[z]=C+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.Y.maybeAttemptToConnect_=function(){var e=xUa(this.JSC$10196_channel_)==0;this.oneSidedHandshake_&&e||this.JSC$10196_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),mUU(this))};
_.Y.send=function(e,z){var C=this.JSC$10196_channel_.peerWindowObject_;C&&(this.send=function(w,K){var G=this,X=this.JSC$10196_channel_.name;this.sendTimerId_=jl(function(){G.sendTimerId_=0;try{var J=C.postMessage?C:C.document;J.postMessage&&J.postMessage(X+"|"+w+":"+K,G.peerHostname_)}catch(q){}},0)},this.send(e,z))};
_.Y.notifyConnected_=function(){var e=this.JSC$10196_channel_,z=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;e.isConnected()||e.connectionDelay_&&e.connectionDelay_.isActive()||(e.state_=2,_.XU(e.connectionDelay_),z!==void 0?(e.connectionDelay_=new _.d9(e.connectCb_,z),e.connectionDelay_.start()):(e.connectionDelay_=null,e.connectCb_()))};
_.Y.disposeInternal=function(){if(this.initialized_){var e=this.getWindow(),z=_.c1(e),C=Tm6[z];Tm6[z]=C-1;C==1&&_.ib(e.postMessage?e:e.document,"message",QCY,!1,Q_)}this.sendTimerId_&&(_.wL.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.XU(this.JSC$10196_eventHandler_);delete this.JSC$10196_eventHandler_;_.XU(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10196_connected_.cancel();delete this.JSC$10196_connected_;delete this.send;Q_.superClass_.disposeInternal.call(this)};
var $UC=function(e){e=e.split(",");e[1]=e[1]||null;return e};var rXh;_.aK=function(e){if(e.getValues&&typeof e.getValues=="function")return e.getValues();if(typeof Map!=="undefined"&&e instanceof Map||typeof Set!=="undefined"&&e instanceof Set)return Array.from(e.values());if(typeof e==="string")return e.split("");if(_.B1(e)){for(var z=[],C=e.length,w=0;w<C;w++)z.push(e[w]);return z}return _.de.getValues(e)};
_.Muh=function(e){if(e.getKeys&&typeof e.getKeys=="function")return e.getKeys();if(!e.getValues||typeof e.getValues!="function"){if(typeof Map!=="undefined"&&e instanceof Map)return Array.from(e.keys());if(!(typeof Set!=="undefined"&&e instanceof Set)){if(_.B1(e)||typeof e==="string"){var z=[];e=e.length;for(var C=0;C<e;C++)z.push(C);return z}return _.de.getKeys(e)}}};
rXh=function(e,z,C){if(e.forEach&&typeof e.forEach=="function")e.forEach(z,C);else if(_.B1(e)||typeof e==="string")Array.prototype.forEach.call(e,z,C);else for(var w=_.Muh(e),K=_.aK(e),G=K.length,X=0;X<G;X++)z.call(C,K[X],w&&w[X],e)};var lRm,IK,Pq,RU4,HCL,vOL,UUX,Pkh,IzX;
_.sX=function(e,z){this.JSC$10201_domain_=this.userInfo_=this.scheme_="";this.JSC$10201_port_=null;this.fragment_=this.JSC$10201_path_="";this.JSC$10201_ignoreCase_=!1;var C;e instanceof _.sX?(this.JSC$10201_ignoreCase_=z!==void 0?z:e.JSC$10201_ignoreCase_,_.nR(this,e.scheme_),this.userInfo_=e.userInfo_,_.M_(this,e.JSC$10201_domain_),_.rq(this,e.JSC$10201_port_),_.Hq(this,e.getPath()),_.UV(this,e.JSC$10201_queryData_.clone()),_.vq(this,e.fragment_)):e&&(C=_.JJ(String(e)))?(this.JSC$10201_ignoreCase_=
!!z,_.nR(this,C[1]||"",!0),this.userInfo_=IK(C[2]||""),_.M_(this,C[3]||"",!0),_.rq(this,C[4]),_.Hq(this,C[5]||"",!0),_.UV(this,C[6]||"",!0),_.vq(this,C[7]||"",!0)):(this.JSC$10201_ignoreCase_=!!z,this.JSC$10201_queryData_=new _.Wq(null,this.JSC$10201_ignoreCase_))};
_.sX.prototype.toString=function(){var e=[],z=this.scheme_;z&&e.push(Pq(z,HCL,!0),":");var C=this.JSC$10201_domain_;if(C||z=="file")e.push("//"),(z=this.userInfo_)&&e.push(Pq(z,HCL,!0),"@"),e.push(_.K0(C).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),C=this.JSC$10201_port_,C!=null&&e.push(":",String(C));if(C=this.getPath())this.JSC$10201_domain_&&C.charAt(0)!="/"&&e.push("/"),e.push(Pq(C,C.charAt(0)=="/"?UUX:vOL,!0));(C=this.JSC$10201_queryData_.toString())&&e.push("?",C);(C=this.fragment_)&&e.push("#",
Pq(C,IzX));return e.join("")};
_.sX.prototype.resolve=function(e){var z=this.clone(),C=!!e.scheme_;C?_.nR(z,e.scheme_):C=!!e.userInfo_;C?z.userInfo_=e.userInfo_:C=!!e.JSC$10201_domain_;C?_.M_(z,e.JSC$10201_domain_):C=e.JSC$10201_port_!=null;var w=e.getPath();if(C)_.rq(z,e.JSC$10201_port_);else if(C=!!e.JSC$10201_path_){if(w.charAt(0)!="/")if(this.JSC$10201_domain_&&!this.JSC$10201_path_)w="/"+w;else{var K=z.getPath().lastIndexOf("/");K!=-1&&(w=z.getPath().slice(0,K+1)+w)}K=w;if(K==".."||K==".")w="";else if(_.X4(K,"./")||_.X4(K,
"/.")){w=_.om(K,"/");K=K.split("/");for(var G=[],X=0;X<K.length;){var J=K[X++];J=="."?w&&X==K.length&&G.push(""):J==".."?((G.length>1||G.length==1&&G[0]!="")&&G.pop(),w&&X==K.length&&G.push("")):(G.push(J),w=!0)}w=G.join("/")}else w=K}C?_.Hq(z,w):C=e.JSC$10201_queryData_.toString()!=="";C?_.UV(z,e.JSC$10201_queryData_.clone()):C=!!e.fragment_;C&&_.vq(z,e.fragment_);return z};
_.sX.prototype.clone=function(){return new _.sX(this)};
_.nR=function(e,z,C){e.scheme_=C?IK(z,!0):z;e.scheme_&&(e.scheme_=e.scheme_.replace(/:$/,""));return e};
_.M_=function(e,z,C){e.JSC$10201_domain_=C?IK(z,!0):z;return e};
_.rq=function(e,z){if(z){z=Number(z);if(isNaN(z)||z<0)throw Error("Pa`"+z);e.JSC$10201_port_=z}else e.JSC$10201_port_=null;return e};
_.sX.prototype.getPath=function(){return this.JSC$10201_path_};
_.Hq=function(e,z,C){e.JSC$10201_path_=C?IK(z,!0):z;return e};
_.UV=function(e,z,C){z instanceof _.Wq?(e.JSC$10201_queryData_=z,W14(e.JSC$10201_queryData_,e.JSC$10201_ignoreCase_)):(C||(z=Pq(z,Pkh)),e.JSC$10201_queryData_=new _.Wq(z,e.JSC$10201_ignoreCase_));return e};
_.oI=function(e,z,C){e.JSC$10201_queryData_.set(z,C);return e};
_.Kj=function(e,z){return e.JSC$10201_queryData_.get(z)};
_.vq=function(e,z,C){e.fragment_=C?IK(z):z;return e};
_.RK=function(e){_.oI(e,"zx",zt());return e};
_.Cj=function(e,z){return e instanceof _.sX?e.clone():new _.sX(e,z)};
lRm=function(e,z){e instanceof _.sX||(e=_.Cj(e));z instanceof _.sX||(z=_.Cj(z));return e.resolve(z)};
IK=function(e,z){return e?z?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""};
Pq=function(e,z,C){return typeof e==="string"?(e=encodeURI(e).replace(z,RU4),C&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null};
RU4=function(e){e=e.charCodeAt(0);return"%"+(e>>4&15).toString(16)+(e&15).toString(16)};
HCL=/[#\/\?@]/g;vOL=/[#\?:]/g;UUX=/[#\?]/g;Pkh=/[#\?@]/g;IzX=/#/g;_.Wq=function(e,z){this.count_=this.keyMap_=null;this.encodedQuery_=e||null;this.JSC$10202_ignoreCase_=!!z};
_.LR=function(e){e.keyMap_||(e.keyMap_=new Map,e.count_=0,e.encodedQuery_&&$GT(e.encodedQuery_,function(z,C){e.add(TN(z),C)}))};
_.Y=_.Wq.prototype;_.Y.getCount=function(){_.LR(this);return this.count_};
_.Y.add=function(e,z){_.LR(this);this.encodedQuery_=null;e=hQ(this,e);var C=this.keyMap_.get(e);C||this.keyMap_.set(e,C=[]);C.push(z);this.count_+=1;return this};
_.Y.remove=function(e){_.LR(this);e=hQ(this,e);return this.keyMap_.has(e)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(e).length,this.keyMap_.delete(e)):!1};
_.Y.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.Y.isEmpty=function(){_.LR(this);return this.count_==0};
_.Y.containsKey=function(e){_.LR(this);e=hQ(this,e);return this.keyMap_.has(e)};
_.Y.containsValue=function(e){var z=this.getValues();return _.Sh(z,e)};
_.Y.forEach=function(e,z){_.LR(this);this.keyMap_.forEach(function(C,w){C.forEach(function(K){e.call(z,K,w,this)},this)},this)};
_.Y.getKeys=function(){_.LR(this);for(var e=Array.from(this.keyMap_.values()),z=Array.from(this.keyMap_.keys()),C=[],w=0;w<z.length;w++)for(var K=e[w],G=0;G<K.length;G++)C.push(z[w]);return C};
_.Y.getValues=function(e){_.LR(this);var z=[];if(typeof e==="string")this.containsKey(e)&&(z=z.concat(this.keyMap_.get(hQ(this,e))));else{e=Array.from(this.keyMap_.values());for(var C=0;C<e.length;C++)z=z.concat(e[C])}return z};
_.Y.set=function(e,z){_.LR(this);this.encodedQuery_=null;e=hQ(this,e);this.containsKey(e)&&(this.count_-=this.keyMap_.get(e).length);this.keyMap_.set(e,[z]);this.count_+=1;return this};
_.Y.get=function(e,z){if(!e)return z;e=this.getValues(e);return e.length>0?String(e[0]):z};
_.L1X=function(e,z,C){e.remove(z);C.length>0&&(e.encodedQuery_=null,e.keyMap_.set(hQ(e,z),_.ig(C)),e.count_+=C.length)};
_.Wq.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var e=[],z=Array.from(this.keyMap_.keys()),C=0;C<z.length;C++){var w=z[C],K=_.K0(w);w=this.getValues(w);for(var G=0;G<w.length;G++){var X=K;w[G]!==""&&(X+="="+_.K0(w[G]));e.push(X)}}return this.encodedQuery_=e.join("&")};
_.Wq.prototype.clone=function(){var e=new _.Wq;e.encodedQuery_=this.encodedQuery_;this.keyMap_&&(e.keyMap_=new Map(this.keyMap_),e.count_=this.count_);return e};
var hQ=function(e,z){z=String(z);e.JSC$10202_ignoreCase_&&(z=z.toLowerCase());return z},W14=function(e,z){z&&!e.JSC$10202_ignoreCase_&&(_.LR(e),e.encodedQuery_=null,e.keyMap_.forEach(function(C,w){var K=w.toLowerCase();
w!=K&&(this.remove(w),_.L1X(this,K,C))},e));
e.JSC$10202_ignoreCase_=z};
_.Wq.prototype.extend=function(e){for(var z=0;z<arguments.length;z++)rXh(arguments[z],function(C,w){this.add(w,C)},this)};var OV=function(e,z){q_.call(this);for(var C=0,w;w=JXc[C];C++)if(w in e&&!/^https?:\/\//.test(e[w]))throw Error("Ra`"+e[w]+"`"+w);this.cfg_=e;this.name=this.cfg_.cn||qOY();this.JSC$10197_domHelper_=z||Ot();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.HA(this);e.lpu=e.lpu||xGa(this.JSC$10197_domHelper_.getWindow().location.href)+"/robots.txt";e.ppu=e.ppu||xGa(e.pu||"")+"/robots.txt";mx[this.name]=this;QVs(window,"unload",hUY)||H9(window,"unload",hUY)};
_.Tk(OV,q_);var OCC=RegExp("^%*tp$"),EOs=RegExp("^%+tp$");_.Y=OV.prototype;_.Y.connectionDelay_=null;_.Y.peerWindowDeferred_=null;_.Y.transport_=null;_.Y.state_=1;_.Y.isConnected=function(){return this.state_==2};
_.Y.peerWindowObject_=null;_.Y.iframeElement_=null;_.Y.getConfig=function(){return this.cfg_};
_.Y.connect=function(e){this.connectCb_=e||_.S2;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Cko(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.Y.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10197_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var e=this.iframeElement_.contentWindow;e||(e=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=e}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10197_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Q_(this,this.cfg_.ph,this.JSC$10197_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.Y.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.XU(this.transport_);this.connectCb_=this.transport_=null;_.XU(this.connectionDelay_);this.connectionDelay_=null};
_.Y.send=function(e,z){if(this.isConnected()){try{var C=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(K){C=!1}if(C){_.gL(z)&&(z=(0,_.c2)(z));C=this.transport_;var w=C.send;OCC.test(e)&&(e="%"+e);e=e.replace(/[%:|]/g,encodeURIComponent);w.call(C,e,z)}else this.close()}};
_.Y.xpcDeliver=function(e,z,C){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.uZ)(this.xpcDeliver,this,e,z,C));else if(lzX(this,C)&&!this.isDisposed()&&this.state_!=3)if(e&&e!="tp")this.isConnected()&&(e=e.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),e=EOs.test(e)?e.substring(1):e,e=this.getService(e,z))&&(z=Afc(z,e.objectPayload),z!=null&&e.callback(z));else switch(e=this.transport_,C=$UC(z),z=C[1],C[0]){case "SETUP_ACK":nOC(e,1);e.setupAckReceived_.fired_||e.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":e.protocolVersion_==2&&(nOC(e,2),e.setupAckReceived_.fired_||e.setupAckReceived_.callback(!0));break;case "SETUP":nOC(e,1);azh(e,1);break;case "SETUP_NTPV2":e.protocolVersion_==2&&(C=e.peerProtocolVersion_,nOC(e,2),azh(e,2),C!=1&&e.peerEndpointId_==null||e.peerEndpointId_==z||mUU(e),e.peerEndpointId_=z)}};
var xUa=function(e){var z=e.cfg_.role;return typeof z==="number"?z:window.parent==e.peerWindowObject_?1:0},lzX=function(e,z){var C=e.cfg_.ph;
return _.bg(z==null?"":String(z))||_.bg(C==null?"":String(C))||z==e.cfg_.ph};
OV.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete mx[this.name];_.XU(this.peerLoadHandler_);delete this.peerLoadHandler_;OV.superClass_.disposeInternal.call(this)};
var hUY=function(){for(var e in mx)_.XU(mx[e])},mx={};var VuX=function(e,z){this.win=e;this.allowAdsHttpEndpoint=z;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10211_domHelper=Ot(e);this.scrollManager=new jsa(e);this.accessibilityManager=new NaX(e);F1U(this)},F1U=function(e){var z=function(){e.allowAdsPopup&&e.allowAdsPopup.style.setProperty("display","none","important");
e.wallElement.style.setProperty("display","","important");ssh(e.accessibilityManager);gjT(e.accessibilityManager,e.wallElement.querySelector(".fc-dialog-container"),!1,!1,e.wallElement.querySelector(".fc-button-whitelist"));e.scrollManager.enableScrolling()};
e.allowAdsPopup=e.JSC$10211_domHelper.JSC$9497_createDom("DIV",{"class":"fc-whitelist-root"});e.allowAdsPopup.style.setProperty("display","none","important");e.JSC$10211_domHelper.appendChild(e.JSC$10211_domHelper.JSC$9495_document_.body,e.allowAdsPopup);var C=e.JSC$10211_domHelper.JSC$9497_createDom("DIV",{"class":"fc-dialog-overlay"});e.JSC$10211_domHelper.appendChild(e.allowAdsPopup,C);var w=e.JSC$10211_domHelper.JSC$9497_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:z});e.JSC$10211_domHelper.appendChild(e.allowAdsPopup,
w);C=e.JSC$10211_domHelper.JSC$9497_createDom("IFRAME");C.className="fc-whitelist-dialog";C.frameBorder="0";C.id="fc-whitelist-iframe";C.tabIndex="0";_.Cq(C,e.allowAdsHttpEndpoint);e.JSC$10211_domHelper.appendChild(w,C);w={};w.pu=_.F2(e.allowAdsHttpEndpoint).toString();w.tp=1;w.cn="fc-whitelist-channel";w.ifrid=C.id;w.osh=!0;e.allowAdsCrossPageChannel=new OV(w);e.allowAdsCrossPageChannel.registerService("close",z);e.allowAdsCrossPageChannel.registerService("refresh",function(){e.win.location.reload()});
e.allowAdsCrossPageChannel.registerService("resize",function(K){if(K){var G=e.allowAdsPopup.querySelector(".fc-whitelist-dialog");K.width&&G.style.setProperty("width",K.width,"important");K.height&&G.style.setProperty("height",K.height,"important")}},!0);
e.allowAdsCrossPageChannel.connect()};
VuX.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10211_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var EV=window,Fo=document,fzh=EV.location,SOL=function(){},ueh=/\[native code\]/,V_=function(e,z,C){return e[z]=e[z]||C},dU6=function(e){e=e.sort();
for(var z=[],C=void 0,w=0;w<e.length;w++){var K=e[w];K!=C&&z.push(K);C=K}return z},fR=function(){var e;
if((e=Object.create)&&ueh.test(e))e=e(null);else{e={};for(var z in e)e[z]=void 0}return e},Sq=V_(EV,"gapi",{});var uG={};uG=V_(EV,"___jsl",fR());V_(uG,"I",0);V_(uG,"hel",10);var DU4=function(){var e=fzh.href;if(uG.dpo)var z=uG.h;else{z=uG.h;var C=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),w=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(e=e&&(C.exec(e)||w.exec(e)))try{z=decodeURIComponent(e[2])}catch(K){}}return z},iC6=function(e){var z=V_(uG,"PQ",[]);
uG.PQ=[];var C=z.length;if(C===0)e();else for(var w=0,K=function(){++w===C&&e()},G=0;G<C;G++)z[G](K)},Nmg=function(e){return V_(V_(uG,"H",fR()),e,fR())};var dq=function(e){this.JSC$10213_obj_=e};
dq.prototype.value=function(){return this.JSC$10213_obj_};
dq.prototype.getWidth=function(){return this.JSC$10213_obj_.width};
dq.prototype.getHeight=function(){return this.JSC$10213_obj_.height};
dq.prototype.getStyle=function(){return this.JSC$10213_obj_.style};var sCs=function(e){this.JSC$10216_obj_=e||{}};
_.Y=sCs.prototype;_.Y.value=function(){return this.JSC$10216_obj_};
_.Y.setUrl=function(e){this.JSC$10216_obj_.url=e;return this};
_.Y.getUrl=function(){return this.JSC$10216_obj_.url};
_.Y.getStyle=function(){return this.JSC$10216_obj_.style};
_.Y.getId=function(){return this.JSC$10216_obj_.id};
_.Y.getContext=function(){return this.JSC$10216_obj_.context};
var Bma=function(e){e.JSC$10216_obj_.attributes=e.JSC$10216_obj_.attributes||{};return new dq(e.JSC$10216_obj_.attributes)};var tuT=function(){sCs.apply(this,arguments)};
_.U(tuT,sCs);var gOh=V_(uG,"perf",fR());V_(gOh,"g",fR());var jCs=V_(gOh,"i",fR());V_(gOh,"r",[]);fR();fR();var cXh=function(e,z,C){z&&z.length>0&&(z=yXC(z),C&&C.length>0&&(z+="___"+yXC(C)),z.length>28&&(z=z.substr(0,28)+(z.length-28)),C=z,z=V_(jCs,"_p",fR()),V_(z,C,fR())[e]=(new Date).getTime(),z=gOh.r,typeof z==="function"?z(e,"_p",C):z.push([e,"_p",C]))},yXC=function(e){return e.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var AXo=fR(),ZCU=[],D7=function(e){throw Error("Ua`"+e);};
ZCU.push(["jsl",function(e){for(var z in e)if(Object.prototype.hasOwnProperty.call(e,z)){var C=e[z];typeof C=="object"?uG[z]=V_(uG,z,[]).concat(C):V_(uG,z,C)}if(z=e.u)e=V_(uG,"us",[]),e.push(z),(z=/^https:(.*)$/.exec(z))&&e.push("http:"+z[1])}]);
var pno=/^(\/[a-zA-Z0-9_\-]+)+$/,e6Y=[/\/amp\//,/\/amp$/,/^\/amp$/],z6U=/^[a-zA-Z0-9\-_\.,!]+$/,CpC=/^gapi\.loaded_[0-9]+$/,wQ6=/^[a-zA-Z0-9,._-]+$/,YcT=function(e,z,C,w,K){var G=e.split(";"),X=G.shift(),J=AXo[X],q=null;J?q=J(G,z,C,w):D7("no hint processor for: "+X);q||D7("failed to generate load url");z=q;C=z.match(K$a);(w=z.match(oIo))&&w.length===1&&G4c.test(z)&&C&&C.length===1||D7("failed sanity: "+e);try{e="?";if(K&&K.length>0){F75(K);var T=K.join(",");q=q+"?le="+T;e="&"}if(uG.rol){var Q=uG.ol;
Q&&Q.length&&(q=""+q+e+"ol="+Q.length)}}catch(m){}return q},JH6=function(e,z,C,w){e=bZU(e);
CpC.test(C)||D7("invalid_callback");z=XQo(z);w=w&&w.length?XQo(w):null;var K=function(G){return encodeURIComponent(G).replace(/%2C/g,",")};
return[encodeURIComponent(e.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",K(e.version),"/m=",K(z),w?"/exm="+K(w):"","/rt=j/sv=1/d=1/ed=1",e.activeMods?"/am="+K(e.activeMods):"",e.resourceSig?"/rs="+K(e.resourceSig):"",e.zcms?"/t="+K(e.zcms):"","/cb=",K(C)].join("")},bZU=function(e){e.charAt(0)!=="/"&&D7("relative path");
for(var z=e.substring(1).split("/"),C=[];z.length;){e=z.shift();if(!e.length||e.indexOf(".")==0)D7("empty/relative directory");else if(e.indexOf("=")>0){z.unshift(e);break}C.push(e)}e={};for(var w=0,K=z.length;w<K;++w){var G=z[w].split("="),X=decodeURIComponent(G[0]),J=decodeURIComponent(G[1]);G.length==2&&X&&J&&(e[X]=e[X]||J)}z="/"+C.join("/");pno.test(z)||D7("invalid_prefix");C=0;for(w=e6Y.length;C<w;++C)e6Y[C].test(z)&&D7("invalid_prefix");C=k4L(e,"k",!0);w=k4L(e,"am");K=k4L(e,"rs");e=k4L(e,"t");
return{pathPrefix:z,version:C,activeMods:w,resourceSig:K,zcms:e}},XQo=function(e){for(var z=[],C=0,w=e.length;C<w;++C){var K=e[C].replace(/\./g,"_").replace(/-/g,"_");
wQ6.test(K)&&z.push(K)}return z.join(",")},k4L=function(e,z,C){e=e[z];
!e&&C&&D7("missing: "+z);if(e){if(z6U.test(e))return e;D7("invalid: "+z)}return null},G4c=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,oIo=/\/cb=/g,K$a=/\/\//g;
AXo.m=function(e,z,C,w){(e=e[0])||D7("missing_hint");return"https://apis.google.com"+JH6(e,z,C,w)};
var qcS=decodeURI("%73cript"),xDa=/^[-+_0-9\/A-Za-z]+={0,2}$/,TKU=function(e,z){for(var C=[],w=0;w<e.length;++w){var K=e[w],G;if(G=K){a:{for(G=0;G<z.length;G++)if(z[G]===K)break a;G=-1}G=G<0}G&&C.push(K)}return C},$DT=function(){var e=uG.nonce;
return e!==void 0?e&&e===String(e)&&e.match(xDa)?e:uG.nonce=null:Fo.querySelector?(e=Fo.querySelector("script[nonce]"))?(e=e.nonce||e.getAttribute("nonce")||"",e&&e===String(e)&&e.match(xDa)?uG.nonce=e:uG.nonce=null):null:null},mDs=function(e){if(Fo.readyState!="loading")lVU(e);
else{var z=$DT(),C="";z!==null&&(C=' nonce="'+z+'"');e="<"+qcS+' src="'+encodeURI(e)+'"'+C+"></"+qcS+">";Fo.write(QOo?QOo.createHTML(e):e)}},lVU=function(e){var z=Fo.createElement(qcS);
z.setAttribute("src",QOo?QOo.createScriptURL(e):e);e=$DT();e!==null&&z.setAttribute("nonce",e);z.async="true";(e=Fo.getElementsByTagName(qcS)[0])?e.parentNode.insertBefore(z,e):(Fo.head||Fo.body||Fo.documentElement).appendChild(z)},nIS=function(e,z,C){aVC(function(){var w=z===DU4()?V_(Sq,"_",fR()):fR();
w=V_(Nmg(z),"_",w);e(w)},C)},q4L=function(e,z){var C=z||{};
typeof z=="function"&&(C={},C.callback=z);var w=(z=C)&&z._c;if(w)for(var K=0;K<ZCU.length;K++){var G=ZCU[K][0],X=ZCU[K][1];X&&Object.prototype.hasOwnProperty.call(w,G)&&X(w[G],e,z)}z=[];e?z=e.split(":"):C.features&&(z=C.features);if(!(e=C.h)&&(e=DU4(),!e))throw Error("Va");MYC(z||[],C,e)},MYC=function(e,z,C){e=dU6(e)||[];
var w=z.callback,K=z.config,G=z.timeout,X=z.ontimeout,J=z.onerror,q=void 0;typeof J=="function"&&(q=J);var T=null,Q=!1;if(G&&!X||!G&&X)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";J=V_(Nmg(C),"r",[]).sort();var m=V_(Nmg(C),"L",[]).sort(),a=uG.le||[],n=[].concat(J),H=function(N,D){if(Q)return 0;EV.clearTimeout(T);m.push.apply(m,I);var g=((Sq||{}).config||{}).update;g?g(K):K&&V_(uG,"cu",[]).push(K);if(D){cXh("me0",N,n);try{nIS(D,C,q)}finally{cXh("me1",N,n)}}return 1};
G>0&&(T=EV.setTimeout(function(){Q=!0;X()},G));
var I=TKU(e,m);if(I.length){I=TKU(e,J);var L=V_(uG,"CP",[]),h=L.length;L[h]=function(N){if(!N)return 0;cXh("ml1",I,n);var D=function(y){L[h]=null;H(I,N)&&iC6(function(){w&&w();y()})},g=function(){var y=L[h+1];
y&&y()};
h>0&&L[h-1]?L[h]=function(){D(g)}:D(g)};
if(I.length){var E="loaded_"+uG.I++;Sq[E]=function(N){L[h](N);Sq[E]=null};
e=YcT(C,I,"gapi."+E,J,a);J.push.apply(J,I);cXh("ml0",I,n);z.sync||EV.___gapisync?mDs(e):lVU(e)}else L[h](SOL)}else H(I)&&w&&w()},rH4;
var HZs=null,UDL=_.wL.trustedTypes;if(UDL&&UDL.createPolicy){try{HZs=UDL.createPolicy("goog#gapi",{createHTML:a8L,createScript:a8L,createScriptURL:a8L})}catch(e){_.wL.console&&_.wL.console.error(e.message)}rH4=HZs}else rH4=HZs;var QOo=rH4,aVC=function(e,z){if(uG.hee&&uG.hel>0)try{return e()}catch(C){z&&z(C),uG.hel--,q4L("debug_error",function(){try{window.___jsl.hefn(C)}catch(w){throw C;}})}else try{return e()}catch(C){throw z&&z(C),C;
}},vIX=Sq.load;
vIX&&V_(uG,"ol",[]).push(vIX);Sq.load=function(e,z){return aVC(function(){return q4L(e,z)})};var e_E;var W$a=function(e,z){var C=C||[];this.serviceId_=e;this.moduleId_=z||null;this.dependencies_=[];IVU(this,C)};
W$a.prototype.toString=function(){return this.serviceId_};
W$a.prototype.getModuleId=function(){return this.moduleId_};
var IVU=function(e,z){var C=!1;C=C===void 0?!1:C;e.dependencies_=e.dependencies_.concat(z);if(C){if(!e.moduleId_)throw Error("Wa`"+e.serviceId_);z.map(function(w){return w.getModuleId()}).forEach(function(w){z_o(function(K){K.addExtraEdge(e.moduleId_,w)})})}};var NMh=new W$a("MpJwZc","MpJwZc");var Vyh=new _.VE("a"),BM1=new _.VE("c"),skE=function(e,z,C){_.fk.call(this,e,z);this.node=z;this.kind=C};
_.U(skE,_.fk);var PpT=function(){this.JSC$10229_keys_={};this.urlPrefix_="";this.JSC$10229_queryData_={}};
PpT.prototype.toString=function(){var e=this.urlPrefix_+R6o(this),z=_.L0(this.JSC$10229_queryData_),C="";z!=""&&(C="?"+z);return e+C};
var L$L=function(e){e=iG(e,"md");return!!e&&e!=="0"},R6o=function(e){var z=[],C=function(w){e.JSC$10229_keys_[w]!==void 0&&z.push(w+"="+e.JSC$10229_keys_[w])};
L$L(e)?(C("md"),C("k"),C("ck"),C("am"),C("rs"),C("gssmodulesetproto"),C("slk"),C("dti")):(C("sdch"),C("k"),C("ck"),C("am"),C("rt"),"d"in e.JSC$10229_keys_||N_(e,"d","0"),C("d"),C("exm"),C("excm"),(e.JSC$10229_keys_.excm||e.JSC$10229_keys_.exm)&&z.push("ed=1"),C("im"),C("dg"),C("sm"),iG(e,"br")!="1"&&iG(e,"br")!="0"||C("br"),C("br-d"),iG(e,"rb")=="1"&&C("rb"),iG(e,"zs")!=="0"&&C("zs"),h6o(e)!==""&&C("wt"),C("gssmodulesetproto"),C("ujg"),C("sp"),C("rs"),C("cb"),C("ee"),C("slk"),C("dti"),C("m"));return z.join("/")},
iG=function(e,z){return e.JSC$10229_keys_[z]?e.JSC$10229_keys_[z]:null},N_=function(e,z,C){C?e.JSC$10229_keys_[z]=C:delete e.JSC$10229_keys_[z]},OZa=function(e,z){e.urlPrefix_=z},EIU=function(e,z){z&&z.length>0?(z.sort(),N_(e,"exm",z.join(","))):N_(e,"exm",null)},F$o=function(e,z){z&&z.length>0?(z.sort(),N_(e,"excm",z.join(","))):N_(e,"excm",null)},VYo=function(e){return(e=iG(e,"m"))?e.split(","):[]},h6o=function(e){switch(iG(e,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},fVC=function(e,z){var C=Object.keys(z).filter(function(w){return!!Object.keys(z[w]).length}).map(function(w){var K=Object.keys(z[w]);
K.length>1&&K.sort();return w+":"+K.join(",")});
C.sort();N_(e,"ee",C.join(";"))},gj8=function(e){var z=iG(e,"ee");
if(!z)return{};e={};z=_.b(z.split(";"));for(var C=z.next();!C.done;C=z.next()){var w=_.b(C.value.split(":"));C=w.next().value;w=w.next().value;e[C]={};w=_.b(w.split(","));for(var K=w.next();!K.done;K=w.next())e[C][K.value]=!0}return e},Scg=function(e){delete e.JSC$10229_keys_.m;
delete e.JSC$10229_keys_.exm;delete e.JSC$10229_keys_.ed};
PpT.prototype.clone=function(){var e=new PpT;e.JSC$10229_keys_=Object.assign({},this.JSC$10229_keys_);e.urlPrefix_=this.urlPrefix_;e.JSC$10229_queryData_=Object.assign({},this.JSC$10229_queryData_);return e};
var js1=function(e,z){z=z===void 0?!0:z;var C=uLL(e),w=new PpT,K=_.JJ(C)[5];_.de.forEach(dDX,function(X){var J=K.match("/"+X+"=([^/]+)");J&&N_(w,X,J[1])});
var G="";G=e.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";OZa(w,e.substr(0,e.indexOf(G)+G.length));if(!z)return w;(e=_.JJ(C)[6]||null)&&$GT(e,function(X,J){w.JSC$10229_queryData_[X]=J});
return w},ssm=function(e){e=_.Pi(uLL(e));
return e===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(e)?/\/k=/.test(e):!1},uLL=function(e){return e.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?e.substr(65):e},dDX={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},DDa=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.sV=function(e){this.JSC$10241_id_=e;this.opts={}};
_.sV.prototype.JSC$10243_setLabel=function(e){this.label_=e||void 0;return this};
_.sV.prototype.addUploadMetadata=function(e,z){var C=this.opts.data||{};C[e]=z;this.opts.data=C;return this};
var iZo=function(e){var z=_.de.filter(e.opts,function(C){return C!==null});
z=_.de.isEmpty(z)?null:z;e=[e.JSC$10241_id_,e.label_,z];z=Rsg(e);return e=e.slice(0,z+1)};
_.sV.prototype.toString=function(){var e=iZo(this);return"("+_.i4(e,function(z){return JSON.stringify(z)}).join(",")+")"};
_.sV.prototype.getId=function(){return this.JSC$10241_id_};
_.sV.prototype.getOptions=function(){return _.de.clone(this.opts)};var Bq=function(){_.sV.call(this,"image-search")};
_.U(Bq,_.sV);Bq.prototype.setSize=function(e){this.opts.imgsz=e;return this};
Bq.prototype.JSC$10243_setLabel=function(e){_.sV.prototype.JSC$10243_setLabel.call(this,e);return this};
Bq.prototype.addUploadMetadata=function(e,z){_.sV.prototype.addUploadMetadata.call(this,e,z);return this};var tQ=function(){_.sV.call(this,"maps")};
_.U(tQ,_.sV);tQ.prototype.setZoom=function(e){this.opts.zoom=e;return this};
tQ.prototype.JSC$10243_setLabel=function(e){_.sV.prototype.JSC$10243_setLabel.call(this,e);return this};
tQ.prototype.addUploadMetadata=function(e,z){_.sV.prototype.addUploadMetadata.call(this,e,z);return this};_.gq=function(){_.sV.call(this,"photos")};
_.U(_.gq,_.sV);_.gq.prototype.JSC$10243_setLabel=function(e){_.sV.prototype.JSC$10243_setLabel.call(this,e);return this};
_.gq.prototype.addUploadMetadata=function(e,z){_.sV.prototype.addUploadMetadata.call(this,e,z);return this};var jq=function(){_.sV.call(this,"url")};
_.U(jq,_.sV);var NKo=function(){var e=new jq;e.opts.type="video";e.opts.site="youtube.com";return e};
jq.prototype.JSC$10243_setLabel=function(e){_.sV.prototype.JSC$10243_setLabel.call(this,e);return this};
jq.prototype.addUploadMetadata=function(e,z){_.sV.prototype.addUploadMetadata.call(this,e,z);return this};var y_=function(){_.sV.call(this,"video-search")};
_.U(y_,_.sV);var sOC=function(){var e=new y_;e.opts.site="youtube.com";return e};
y_.prototype.JSC$10243_setLabel=function(e){_.sV.prototype.JSC$10243_setLabel.call(this,e);return this};
y_.prototype.addUploadMetadata=function(e,z){_.sV.prototype.addUploadMetadata.call(this,e,z);return this};var BKh=function(){_.sV.call(this,"web")};
_.U(BKh,_.sV);BKh.prototype.JSC$10243_setLabel=function(e){_.sV.prototype.JSC$10243_setLabel.call(this,e);return this};
BKh.prototype.addUploadMetadata=function(e,z){_.sV.prototype.addUploadMetadata.call(this,e,z);return this};var cq=function(){this.items_=[];this.opts={}},tY4=function(e){switch(e){case "image-search":return new Bq;
case "maps":return new tQ;case "photos":return new _.gq;case "url":return new jq;case "video-search":return new y_;case "web":return new BKh}return new _.sV(e)};
cq.prototype.addView=function(e){this.items_.push(typeof e==="string"?tY4(e):e);return this};
var gIL=function(e){return"("+_.i4(e.items_,function(z){return z.toString()}).join(",")+")"};
cq.prototype.toString=function(){return gIL(this)};
cq.prototype.getViews=function(e,z){z=z===void 0?[]:z;for(var C=this.items_,w=0;w<C.length;w++){var K=C[w];K instanceof cq?K.getViews(e,z):K.getId()==e&&z.push(K)}return z};
cq.prototype.getOptions=function(){return _.de.clone(this.opts)};var co=function(e){this.basePickerUrl_=e||"https://docs.google.com/picker";this.nav_=new cq};
co.prototype.nav_=null;co.prototype.addView=function(e){this.nav_.addView(e);return this};
co.prototype.getBaseUrl=function(){return this.basePickerUrl_};
co.prototype.getViews=function(e){return this.nav_.getViews(e)};
_.jO4=function(e,z){e.callback_=z;return e};var yH6=new Map;yH6.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");yH6.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");yH6.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var cHa=new Set;cHa.add("application/vnd.google-apps.kix");cHa.add("application/vnd.google-apps.ritz");cHa.add("application/vnd.google-apps.punch");var bGh=function(e,z,C){var w=C&&_.Ds(C,1);C=AHc(C);var K=e[0].getId();switch(_.i5(K,2)){case 13:return ZZ6(e,z,w,C);case 3:return pQa(e,z,w,C);case 10:return e$o(e,z,w,C);case 27:return e$o(e,z,w,C);case 12:return z$c(e,z);case 2:return CBc(e,z,w,C);case 5:return wAY(e,z,w,C);case 9:return KAY(e,z,w,C);case 6:return oWL(e,z,w,C);case 25:return G0a(e,z,w,C);case 1:return _.Lb(e[0],hv6,26)?Y8L(e,z,w,C):e$o(e,z,w,C);default:return{}}},oWL=function(e,z,C,w){e=e.map(function(K){return{id:K.getId().getId(),
serviceId:"youtube",name:K.getName(),description:_.Ds(K,3),type:AQ(K),lastEditedUtc:_.Lao(_.ra(K,_.DW,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:K.getUrl(),embedUrl:_.Ds(K,13),thumbnails:Z7(lb(K))}});
return{action:z,docs:e,viewToken:w,view:C||"youtube",v2Translated:!0}},CBc=function(e,z,C,w){var K=e.map(function(G){var X=G.getId().getId(),J=_.Ds(G,7),q=G.getName(),T=AQ(G),Q=_.Lao(_.ra(G,_.DW,12)).getTime(),m=G.getUrl(),a=Number(SUh(G)),n=_.Ds(G,3),H=_.Ds(G,11),I=Z7(lb(G));
var L=_.ra(G,QE,21);L=_.Sv(L,1);var h=_.ra(G,QE,21);h=_.Ds(h,10);var E=_.Ds(G,13);var N=_.ra(G,QE,21);N=_.Sv(N,9);var D=_.ra(G,QE,21);D=_.Ds(D,11);X={id:X,serviceId:"docs",mimeType:J,name:q,type:T,lastEditedUtc:Q,url:m,sizeBytes:a,description:n,iconUrl:H,thumbnails:I,isShared:L,downloadUrl:h,embedUrl:E,copyable:N,resourceKey:D};J=_.ra(G,QE,21);_.Sv(J,12)&&(X.uploadState="success",X.isNew=!0);J=_.ra(G,QE,21);_.Lb(J,xQ,3)&&(G=_.ra(G,QE,21),G=_.ra(G,xQ,3),_.Lb(G,kQ,2)&&(J=jn(G.getDuration().getSeconds()),
q=G.getDuration(),q=_.$2(q,2),X.duration=J+q/1E9),X.aspectRatio=G.getAspectRatio());return X});
return{action:z,docs:K,viewToken:w,view:C||"all",extraUserInputs:XAC(e),v2Translated:!0}},wAY=function(e,z,C,w){e=e.map(function(K){var G=_.ra(K,DGc,15);
G=_.ra(G,q3,1);Fe(K,10,q3,G);return{id:K.getId().getId(),serviceId:"web",mimeType:_.Ds(K,7),name:K.getName(),type:AQ(K),url:K.getUrl(),description:_.Ds(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Z7(lb(K))}});
return{action:z,docs:e,viewToken:w,view:C||"image-search",v2Translated:!0}},KAY=function(e,z,C,w){e=e.map(function(K){return{serviceId:"url",
name:lb(K)[0].getUrl().split("/").pop(),type:AQ(K),mimeType:_.Ds(K,7),url:K.getUrl(),description:_.Ds(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Z7(lb(K))}});
return{action:z,docs:e,viewToken:w,view:C||"url",v2Translated:!0}},Y8L=function(e,z,C,w){e=e.map(function(K){return{id:K.getId().getId(),
serviceId:"picasa",name:K.getName(),type:AQ(K),description:_.Ds(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Z7(lb(K))}});
return{action:z,docs:e,viewToken:w,view:C||"webcam",v2Translated:!0}},e$o=function(e,z,C,w){return{action:z,
docs:e.map(J2U),viewToken:w,view:k0a(C||"upload",e),extraUserInputs:XAC(e),v2Translated:!0}},k0a=function(e,z){return z.some(function(C){var w;
return((w=_.ra(C,T1,30))==null?void 0:_.i5(w,3))===9})?e+"/gmailphotos":e},pQa=function(e,z,C,w){var K=e.map(function(G){var X={id:G.getId().getId(),
serviceId:"picasa",mimeType:_.Ds(G,7),name:G.getName(),type:AQ(G),lastEditedUtc:_.Lao(_.ra(G,_.DW,12)).getTime(),url:G.getUrl(),sizeBytes:Number(SUh(G)),description:_.Ds(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Z7(lb(G)),mediaKey:G.getId().getId(),parentId:_.Ds(G,4)},J,q=(J=_.ra(G,FaC,18))==null?void 0:_.ra(J,E2S,3);q&&(X.latitude=d4(q,1),X.longitude=d4(q,2));var T;G=(T=_.ra(G,FaC,18))==null?void 0:u5(T,6);T=G!=null?jn(G):void 0;T&&(X.version=
T);return X});
return{action:z,docs:K,viewToken:w,view:C||"photos",extraUserInputs:XAC(e),v2Translated:!0}},ZZ6=function(e,z,C,w){e=e.map(function(K){return{id:K.getId().getId(),
serviceId:"et",name:lb(K)[0].getUrl().split("/").pop(),description:_.Ds(K,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Z7(lb(K),"etjpg")}});
return{action:z,docs:e,viewToken:w,view:C||"et",v2Translated:!0}},G0a=function(e,z,C,w){e=e.map(function(K){var G=K.getId().getId(),X=w["2"];
return{id:G,serviceId:X.type!=="gmail_themes"&&X.parent==="6226252643674576769"?"picasa":"static_themes",name:K.getName(),mimeType:_.Ds(K,7),type:AQ(K),description:_.Ds(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:K.getUrl(),embedUrl:K.getUrl(),thumbnails:Z7(lb(K))}});
return{action:z,docs:e,viewToken:w,view:C||"photos",v2Translated:!0}},z$c=function(e,z){e=e.map(function(C){var w=_.ra(C,Oh6,27);
w=_.cl(w,1,_.Hl,_.T5())[0];return{id:C.getId().getId(),serviceId:"contacts",mimeType:_.Ds(C,7),name:C.getName(),description:_.Ds(C,3),url:"mailto:"+w,thumbnail:[{url:_.Ds(C,11)}],email:w}});
return{action:z,docs:e,view:"contacts",v2Translated:!0}},AHc=function(e){if(!e)return{};
var z=_.Ds(e,3);z=z&&JSON.parse(z)||{};return{0:_.Ds(e,1),1:_.Ds(e,2),2:z}},Z7=function(e,z){z=z===void 0?"":z;
if(!e.length)return null;z=="etjpg"&&(e=e.filter(function(C){return C.getUrl().includes("w1200-h300")}));
return e.map(function(C){return{url:C.getUrl(),height:C.getHeight(),width:C.getWidth(),type:z}})},XAC=function(e){return{isAttachment:e.some(function(z){return _.Sv(z,31)})}},J2U=function(e){var z,C={id:(z=e.getId())==null?void 0:z.getId(),
serviceId:q8h(e),mimeType:_.Ds(e,7),name:e.getName(),type:AQ(e),sizeBytes:Number(SUh(e)),description:_.Ds(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Z7(lb(e)),isNew:!0};if(z=_.ra(e,T1,30)){C.dataUrl=_.Ds(z,1)||null;a:{var w=_.ra(e,T1,30);switch(_.i5(w,3)){case 9:w=_.BW(w,uUY,2,$Q);w={remoteRefs:w&&_.Ds(w,1)};break a;case 10:case 15:w=_.BW(w,Sva,4,$Q);var K=lb(e);w={photo_id:w&&_.Ds(w,1),media_key:e.getId().getId(),media_type:_.i5(e,6)===1?1:2,image_url:K&&
K[0].getUrl(),width:K&&String(K[0].getWidth()),height:K&&String(K[0].getHeight())};break a}w=null}C.uploadMetadata=w;C.uploadId=_.Ds(z,9)||null;C.uploadState=xxa(z)||null}(w=z&&_.BW(z,Sva,4,$Q))&&(C.id=_.Ds(w,1));(w=z&&_.BW(z,dGg,5,$Q))&&(C.contentId=_.Ds(w,1));(w=z&&_.BW(z,VnY,7,$Q))&&(C.contentId=_.Ds(w,1));(w=z&&_.BW(z,fHX,6,$Q))&&(C.contentId=_.Ds(w,1));(z==null?void 0:_.i5(z,3))===1&&(C.mediaKey=e.getId().getId());return C},q8h=function(e){var z;
switch(((z=_.ra(e,T1,30))==null?void 0:_.i5(z,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},AQ=function(e){switch(_.i5(e,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 _.Ds(e,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},xxa=function(e){switch(e==null?void 0:_.i5(e,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 QkX,TMh,$xs,lOC;_.mxa=function(e,z){var C=z||{};z=C.document||document;var w=_.F2(e).toString(),K=(new NJ(z)).createElement("SCRIPT"),G={script_:K,timeout_:void 0},X=new xu(TMh,G),J=null,q=C.timeout!=null?C.timeout:5E3;q>0&&(J=window.setTimeout(function(){$xs(K,!0);X.errback(new lOC(1,"Timeout reached for loading script "+w))},q),G.timeout_=J);
K.onload=K.onreadystatechange=function(){K.readyState&&K.readyState!="loaded"&&K.readyState!="complete"||($xs(K,C.cleanupWhenDone||!1,J),X.callback(null))};
K.onerror=function(){$xs(K,!0,J);X.errback(new lOC(0,"Error while loading script "+w))};
G=C.attributes||{};_.de.extend(G,{type:"text/javascript",charset:"UTF-8"});r0L(K,G);_.Jn(K,e);QkX(z).appendChild(K);return X};
QkX=function(e){var z=Ov("HEAD",e);return z&&z.length!==0?z[0]:e.documentElement};
TMh=function(){if(this&&this.script_){var e=this.script_;e&&e.tagName=="SCRIPT"&&$xs(e,!0,this.timeout_)}};
$xs=function(e,z,C){C!=null&&_.wL.clearTimeout(C);e.onload=function(){};
e.onerror=function(){};
e.onreadystatechange=function(){};
z&&window.setTimeout(function(){_.hA(e)},0)};
lOC=function(e,z){var C="Jsloader error (code #"+e+")";z&&(C+=": "+z);_.eh.call(this,C);this.code=e};
_.Tk(lOC,_.eh);var aOT=_.Kb(["https://apis.google.com/js/api.js"]),nWL=_.nJ(aOT),Uxa=function(e,z,C){C=C===void 0?{}:C;var w=!1,K=MCX(e,z,C).then(function(X){w=!0;return X}),G=_.t5Y(5E3).then(function(){return w?MCX(e,z,C):r2o(z,C).then(function(X){return HGg(X,e)})});
return Eia([K,G])},MCX=function(e,z,C){C=C===void 0?{}:C;
return vWT(z,C).then(function(w){return HGg(w,e)})},HGg=function(e,z){var C=_.om(z,"gapi.")?z.slice(5):z;
return e[C]?_.oS(e[C]):new _.RC(function(w,K){var G=jl(function(){K(Error("Ya"))},3E4);
e.load(z,{callback:function(){_.wL.clearTimeout(G);w(e[C])},
onerror:function(X){_.wL.clearTimeout(G);K(X)}})})},vWT=function(e,z){z=z===void 0?{}:z;
return e.gapi&&e.gapi.load?_.oS(e.gapi):r2o(e,z)},r2o=function(e,z){z=z===void 0?{}:z;
return _.mxa(nWL,{document:e.document,attributes:z}).then(function(){return e.gapi})},IOU=function(){};
IOU.prototype.load=function(e,z,C){z=z===void 0?window:z;C=C===void 0?{}:C;var w=Date.now();return Uxa(e,z,C).then(function(K){var G=Date.now();return{library:K,loadStartMs:w,loadEndMs:G}},function(K){throw K instanceof Error?K:Error(String(K));
})};var xEE=function(){_.Sn.call(this);this.gapiLoader_=new IOU;this.origin_=null;this.gapiPickerIframeResolver_=_.cj();this.gapiIframesResolver_=_.cj();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.U(xEE,_.Sn);var WAX=function(e,z){var C=C===void 0?{}:C;var w=_.pd("gapi.iframes",z);return w?(e=Date.now(),_.oS({library:w,loadStartMs:e,loadEndMs:e})):e.gapiLoader_.load("gapi.iframes",z,C)},PBc=function(e,z,C,w,K,G){var X=!1;
X=X===void 0?!1:X;WAX(e,BV(z.ownerDocument)).then(function(J){var q=J.library;e.gapiIframesResolver_.resolve(q);J=e.gapiPickerIframeResolver_;var T=J.resolve,Q=X;Q=Q===void 0?!1:Q;var m={};m["host-message-handler"]=C;e.hostMessageHandlerInternal_=m;var a=_.Cj(w);a=_.Cj(a);a=_.rq(_.M_(_.nR(new _.sX,a.scheme_),a.JSC$10201_domain_),a.JSC$10201_port_).toString();e.origin_=a;a=(new tuT).setUrl(w);a.JSC$10216_obj_.where=z;a.JSC$10216_obj_.allowPost=Q;a.JSC$10216_obj_.messageHandlers=m;Q=_.pd("makeWhiteListIframesFilter",
q)([e.origin_]);a.JSC$10216_obj_.messageHandlersFilter=Q;K!=null&&(a.JSC$10216_obj_.id=K);G!=null&&(a.JSC$10216_obj_.rpctoken=G);Q=Bma(a);Q.JSC$10213_obj_.style={display:"block","min-width":"100%",width:"1px"};Q.JSC$10213_obj_.height="100%";Bma(a).value().allow="camera 'src' "+e.origin_;q=q.getContext().openChild(a.value());T.call(J,q)},function(J){e.gapiIframesResolver_.reject(J);
e.gapiPickerIframeResolver_.reject(J)});
return e.gapiPickerIframeResolver_.promise},R$h=function(e,z){return _.tT([e.gapiIframesResolver_.promise,
e.gapiPickerIframeResolver_.promise]).then(function(C){var w=_.b(C);C=w.next().value;return(w=w.next().value)?w.send("picker-message-handler",z,void 0,_.pd("makeWhiteListIframesFilter",C)([e.origin_])):_.R5(Error("Za"))})};
xEE.prototype.disposeInternal=function(){LAa(this);_.Sn.prototype.disposeInternal.call(this)};
var LAa=function(e){e.gapiPickerIframeResolver_.promise.then(function(z){z&&(z.unregister("host-message-handler"),delete e.hostMessageHandlerInternal_["host-message-handler"])})};var h$c=function(){this.nextId=0};var EWa=function(e,z){switch(e.action){case "select-contacts":e=OGo(e.contacts);break;case "visibility":e=e.visible;var C=new M3;e=_.g4(C,1,7).setVisible(e);C={};C["iframe-command"]=e.serialize();e=C;break;default:e=null}return e?R$h(z,e):_.oS()},OGo=function(e){if(!e||e.length==0)return null;
var z=new M3;_.g4(z,1,11);var C=new h$c;e.forEach(function(w){if(w.email){var K=new V8;K=_.ZW(K,2,w.name?w.name:w.email);var G=new Oh6;w=_.sbL(G,1,_.m5,w.email,_.Hl);w=_.PL(K,27,w);K=new Rva;G=":"+(C.nextId++).toString(36);K=_.ZW(K,1,G);K=_.g4(K,2,12);w=_.PL(w,1,K)}else w=null;w&&Fe(z,7,V8,w)});
e={};e["iframe-command"]=z.serialize();return e};_.FAU=function(){if(Zos){var e=/Windows NT ([0-9.]+)/;return(e=e.exec(_.Q1()))?e[1]:"0"}return _.AkC?(e=/1[0|1][_.][0-9_.]+/,(e=e.exec(_.Q1()))?e[0].replace(/_/g,"."):"10"):pv5?(e=/Android\s+([^\);]+)(\)|;)/,(e=e.exec(_.Q1()))?e[1]:""):eCS||zCU||Co4?(e=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(e=e.exec(_.Q1()))?e[1].replace(/_/g,"."):""):""}();var pR;pR=function(e){return(e=e.exec(_.Q1()))?e[1]:""};
_.VCL=function(){if(_.HW)return pR(/Firefox\/([0-9.]+)/);if(_.aP||xj||jms)return Xac;if(_.U7){if(_.Lo()||_.vNo()){var e=pR(/CriOS\/([0-9.]+)/);if(e)return e}return pR(/Chrome\/([0-9.]+)/)}if(_.p0&&!_.Lo())return pR(/Version\/([0-9.]+)/);if(C7s||wHm){if(e=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Q1()))return e[1]+"."+e[2]}else if(T6T)return(e=pR(/Android\s+([0-9.]+)/))?e:pR(/Version\/([0-9.]+)/);return""}();var fOL=function(){};
_.qI(fOL);fOL.prototype.nextId_=0;_.e_=function(e){return":"+(e.nextId_++).toString(36)};var zp=function(e){_.N3.call(this);this.JSC$10311_dom_=e||Ot();this.JSC$10311_id_=null;this.inDocument_=!1;this.JSC$10311_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Tk(zp,_.N3);zp.prototype.idGenerator_=fOL.getInstance();zp.prototype.getId=function(){return this.JSC$10311_id_||(this.JSC$10311_id_=_.e_(this.idGenerator_))};
zp.prototype.getElement=function(){return this.JSC$10311_element_};
var CN=function(e){e.googUiComponentHandler_||(e.googUiComponentHandler_=new _.HA(e));return e.googUiComponentHandler_},S8Y=function(e,z){if(e==z)throw Error("$a");
var C;if(C=z&&e.parent_&&e.JSC$10311_id_){C=e.parent_;var w=e.JSC$10311_id_;C=C.childIndex_&&w?_.de.get(C.childIndex_,w)||null:null}if(C&&e.parent_!=z)throw Error("$a");e.parent_=z;zp.superClass_.setParentEventTarget.call(e,z)};
zp.prototype.setParentEventTarget=function(e){if(this.parent_&&this.parent_!=e)throw Error("ab");zp.superClass_.setParentEventTarget.call(this,e)};
zp.prototype.JSC$10313_createDom=function(){this.JSC$10311_element_=this.JSC$10311_dom_.createElement("DIV")};
zp.prototype.render=function(e){uhs(this,e)};
var uhs=function(e,z,C){if(e.inDocument_)throw Error("bb");e.JSC$10311_element_||e.JSC$10313_createDom();z?z.insertBefore(e.JSC$10311_element_,C||null):e.JSC$10311_dom_.JSC$9495_document_.body.appendChild(e.JSC$10311_element_);e.parent_&&!e.parent_.inDocument_||e.enterDocument()};
_.Y=zp.prototype;_.Y.decorate=function(e){if(this.inDocument_)throw Error("bb");if(e&&this.canDecorate(e)){this.wasDecorated_=!0;var z=_.t0(e);this.JSC$10311_dom_&&this.JSC$10311_dom_.JSC$9495_document_==z||(this.JSC$10311_dom_=Ot(e));this.decorateInternal(e);this.enterDocument()}else throw Error("cb");};
_.Y.canDecorate=function(){return!0};
_.Y.decorateInternal=function(e){this.JSC$10311_element_=e};
_.Y.enterDocument=function(){this.inDocument_=!0;dxY(this,function(e){!e.inDocument_&&e.getElement()&&e.enterDocument()})};
_.Y.exitDocument=function(){dxY(this,function(e){e.inDocument_&&e.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.Y.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);dxY(this,function(e){e.dispose()});
!this.wasDecorated_&&this.JSC$10311_element_&&_.hA(this.JSC$10311_element_);this.parent_=this.model_=this.JSC$10311_element_=this.childIndex_=this.children_=null;zp.superClass_.disposeInternal.call(this)};
_.Y.getModel=function(){return this.model_};
_.Y.addChild=function(e,z){var C=this.children_?this.children_.length:0;if(e.inDocument_&&(z||!this.inDocument_))throw Error("bb");if(C<0||C>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);e.parent_==this?(_.de.set(this.childIndex_,e.getId(),e),_.D8(this.children_,e)):_.de.add(this.childIndex_,e.getId(),e);S8Y(e,this);_.ENg(this.children_,C,0,e);e.inDocument_&&this.inDocument_&&e.parent_==this?(z=this.getContentElement(),
(z.childNodes[C]||null)!=e.getElement()&&(e.getElement().parentElement==z&&z.removeChild(e.getElement()),C=z.childNodes[C]||null,z.insertBefore(e.getElement(),C))):z?(this.JSC$10311_element_||this.JSC$10313_createDom(),C=this.children_?this.children_[C+1]||null:null,uhs(e,this.getContentElement(),C?C.JSC$10311_element_:null)):this.inDocument_&&!e.inDocument_&&e.JSC$10311_element_&&e.JSC$10311_element_.parentNode&&e.JSC$10311_element_.parentNode.nodeType==1&&e.enterDocument()};
_.Y.getContentElement=function(){return this.JSC$10311_element_};
var dxY=function(e,z){e.children_&&e.children_.forEach(z,void 0)};
zp.prototype.removeChild=function(e,z){if(e){var C=typeof e==="string"?e:e.getId();e=this.childIndex_&&C?_.de.get(this.childIndex_,C)||null:null;C&&e&&(_.de.remove(this.childIndex_,C),_.D8(this.children_,e),z&&(e.exitDocument(),e.JSC$10311_element_&&_.hA(e.JSC$10311_element_)),S8Y(e,null))}if(!e)throw Error("eb");return e};_.Tk(K0L,w57);_.Tk(ojE,w57);var Dxc;_.de.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var iGa=function(e,z){z?e.setAttribute("role",z):e.removeAttribute("role")},wS=function(e,z,C){Array.isArray(C)&&(C=C.join(" "));
var w="aria-"+z;C===""||C==void 0?(Dxc||(C={},Dxc=(C.atomic=!1,C.autocomplete="none",C.dropeffect="none",C.haspopup=!1,C.live="off",C.multiline=!1,C.multiselectable=!1,C.orientation="vertical",C.readonly=!1,C.relevant="additions text",C.required=!1,C.sort="none",C.busy=!1,C.disabled=!1,C.hidden=!1,C.invalid="false",C)),C=Dxc,z in C?e.setAttribute(w,C[z]):e.removeAttribute(w)):e.setAttribute(w,C)};var NMS;_.KN=function(e,z,C){_.N3.call(this);this.target=e;this.handle=z||e;this.limits=C||new el(NaN,NaN,NaN,NaN);this.JSC$10316_document_=_.t0(e);this.JSC$10316_eventHandler_=new _.HA(this);_.I4(this,this.JSC$10316_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;_.W9(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=NMS};
_.Tk(_.KN,_.N3);NMS=_.wL.document&&_.wL.document.documentElement&&!!_.wL.document.documentElement.setCapture&&!!_.wL.document.releaseCapture;_.skU=function(e,z){e.hysteresisDistanceSquared_=Math.pow(z,2)};
_.Y=_.KN.prototype;_.Y.setEnabled=function(e){this.enabled_=e};
_.Y.disposeInternal=function(){_.KN.superClass_.disposeInternal.call(this);_.ib(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10316_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10316_document_.releaseCapture();this.handle=this.target=null};
_.Y.startDrag=function(e){var z=e.type=="mousedown";if(!this.enabled_||this.dragging_||z&&(!e.isButton(0)||_.AkC&&e.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new oZ("start",this,e.clientX,e.clientY,e)))this.dragging_=!0,z&&e.preventDefault();else return;else z&&e.preventDefault();z=this.JSC$10316_document_;var C=z.documentElement,w=!this.useSetCapture_;this.JSC$10316_eventHandler_.listen(z,["touchmove","mousemove"],this.handleMove_,
{capture:w,passive:!1});this.JSC$10316_eventHandler_.listen(z,["touchend","mouseup"],this.endDrag,w);this.useSetCapture_?(C.setCapture(!1),this.JSC$10316_eventHandler_.listen(C,"losecapture",this.endDrag)):this.JSC$10316_eventHandler_.listen(BV(z),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10316_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,w);this.clientX=this.startX=e.clientX;this.clientY=this.startY=e.clientY;this.screenX=e.screenX;this.screenY=e.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=h0(Ot(this.JSC$10316_document_))}};
_.Y.endDrag=function(e,z){this.JSC$10316_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10316_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new oZ("end",this,e.clientX,e.clientY,e,BMa(this,this.deltaX),tCs(this,this.deltaY),z||e.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.Y.handleMove_=function(e){if(this.enabled_){var z=e.clientX-this.clientX,C=e.clientY-this.clientY;this.clientX=e.clientX;this.clientY=e.clientY;this.screenX=e.screenX;this.screenY=e.screenY;if(!this.dragging_){var w=this.startX-this.clientX,K=this.startY-this.clientY;if(w*w+K*K>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new oZ("start",this,e.clientX,e.clientY,e)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(e);return}}C=gWg(this,z,C);z=C.x;C=C.y;this.dragging_&&this.dispatchEvent(new oZ("beforedrag",
this,e.clientX,e.clientY,e,z,C))&&(jks(this,e,z,C),e.preventDefault())}};
var gWg=function(e,z,C){var w=h0(Ot(e.JSC$10316_document_));z+=w.x-e.pageScroll.x;C+=w.y-e.pageScroll.y;e.pageScroll=w;e.deltaX+=z;e.deltaY+=C;return new _.st(BMa(e,e.deltaX),tCs(e,e.deltaY))};
_.KN.prototype.onScroll_=function(e){var z=gWg(this,0,0);e.clientX=this.clientX;e.clientY=this.clientY;jks(this,e,z.x,z.y)};
var jks=function(e,z,C,w){e.target.style.left=C+"px";e.target.style.top=w+"px";e.dispatchEvent(new oZ("drag",e,z.clientX,z.clientY,z,C,w))},BMa=function(e,z){var C=e.limits;
e=isNaN(C.left)?null:C.left;C=isNaN(C.width)?0:C.width;return Math.min(e!=null?e+C:Infinity,Math.max(e!=null?e:-Infinity,z))},tCs=function(e,z){var C=e.limits;
e=isNaN(C.top)?null:C.top;C=isNaN(C.height)?0:C.height;return Math.min(e!=null?e+C:Infinity,Math.max(e!=null?e:-Infinity,z))};
_.KN.prototype.isDragging=function(){return this.dragging_};
var oZ=function(e,z,C,w,K,G,X){_.fk.call(this,e);this.clientX=C;this.clientY=w;this.browserEvent=K;this.left=G!==void 0?G:z.deltaX;this.top=X!==void 0?X:z.deltaY};
_.Tk(oZ,_.fk);var Gp=function(e){this.JSC$10323_map_=new Map;var z=arguments.length;if(z>1){if(z%2)throw Error("ma");for(var C=0;C<z;C+=2)this.set(arguments[C],arguments[C+1])}else e&&this.addAll(e)};
_.Y=Gp.prototype;_.Y.getCount=function(){return this.JSC$10323_map_.size};
_.Y.getValues=function(){return Array.from(this.JSC$10323_map_.values())};
_.Y.getKeys=function(){return Array.from(this.JSC$10323_map_.keys())};
_.Y.containsKey=function(e){return this.JSC$10323_map_.has(e)};
_.Y.containsValue=function(e){return this.getValues().some(function(z){return z==e})};
_.Y.equals=function(e,z){var C=this;z=z===void 0?function(w,K){return w===K}:z;
return this===e?!0:this.JSC$10323_map_.size!=e.getCount()?!1:this.getKeys().every(function(w){return z(C.JSC$10323_map_.get(w),e.get(w))})};
_.Y.isEmpty=function(){return this.JSC$10323_map_.size==0};
_.Y.clear=function(){this.JSC$10323_map_.clear()};
_.Y.remove=function(e){return this.JSC$10323_map_.delete(e)};
_.Y.get=function(e,z){return this.JSC$10323_map_.has(e)?this.JSC$10323_map_.get(e):z};
_.Y.set=function(e,z){this.JSC$10323_map_.set(e,z);return this};
_.Y.addAll=function(e){if(e instanceof Gp){e=_.b(e.JSC$10323_map_);for(var z=e.next();!z.done;z=e.next()){var C=_.b(z.value);z=C.next().value;C=C.next().value;this.JSC$10323_map_.set(z,C)}}else if(e)for(e=_.b(Object.entries(e)),z=e.next();!z.done;z=e.next())C=_.b(z.value),z=C.next().value,C=C.next().value,this.JSC$10323_map_.set(z,C)};
_.Y.forEach=function(e,z){var C=this;z=z===void 0?this:z;this.JSC$10323_map_.forEach(function(w,K){return e.call(z,w,K,C)})};
_.Y.clone=function(){return new Gp(this)};(function(){for(var e=["ms","moz","webkit","o"],z,C=0;z=e[C]&&!_.wL.requestAnimationFrame;++C)_.wL.requestAnimationFrame=_.wL[z+"RequestAnimationFrame"],_.wL.cancelAnimationFrame=_.wL[z+"CancelAnimationFrame"]||_.wL[z+"CancelRequestAnimationFrame"];if(!_.wL.requestAnimationFrame){var w=0;_.wL.requestAnimationFrame=function(K){var G=(new Date).getTime(),X=Math.max(0,16-(G-w));w=G+X;return _.wL.setTimeout(function(){K(G+X)},X)};
_.wL.cancelAnimationFrame||(_.wL.cancelAnimationFrame=function(K){clearTimeout(K)})}})();
var y2X=[[],[]],c2S=0,A26=!1,ZGa=0,eDX=function(e,z){var C=ZGa++,w={measureTask:{id:C,fn:e.measure,context:z},mutateTask:{id:C,fn:e.mutate,context:z},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(w.args||(w.args=[]),w.args.length=0,w.args.push.apply(w.args,arguments),w.args.push(w.state)):w.args&&w.args.length!=0?(w.args[0]=w.state,w.args.length=1):w.args=[w.state];w.isScheduled||(w.isScheduled=!0,y2X[c2S].push(w));A26||(A26=!0,window.requestAnimationFrame(pAg))}},pAg=
function(){A26=!1;
var e=y2X[c2S],z=e.length;c2S=(c2S+1)%2;for(var C,w=0;w<z;++w){C=e[w];var K=C.measureTask;C.isScheduled=!1;K.fn&&K.fn.apply(K.context,C.args)}for(w=0;w<z;++w)C=e[w],K=C.mutateTask,C.isScheduled=!1,K.fn&&K.fn.apply(K.context,C.args),C.state={};e.length=0};var zDa=_.Kb(["about:blank"]),CY4=_.Kb(["javascript:undefined"]),wrc=_.nJ(zDa);_.F2(wrc);var KbU=_.nJ(CY4);_.F2(KbU);var YG=function(e){_.N3.call(this);this.JSC$10329_element_=e;this.listenKeyIn_=_.W9(this.JSC$10329_element_,"focus",this,!0);this.listenKeyOut_=_.W9(this.JSC$10329_element_,"blur",this,!0)};
_.Tk(YG,_.N3);YG.prototype.handleEvent=function(e){var z=new _.ub(e.event_);z.type=e.type=="focusin"||e.type=="focus"?"focusin":"focusout";this.dispatchEvent(z)};
YG.prototype.disposeInternal=function(){YG.superClass_.disposeInternal.call(this);Um(this.listenKeyIn_);Um(this.listenKeyOut_);delete this.JSC$10329_element_};var o1a=function(e,z){this.JSC$10332_element_=e;this.JSC$10332_dom_=z};var b1=function(e,z){zp.call(this,z);this.useIframeMask_=!!e;this.lastFocus_=null;this.resizeBackgroundTask_=eDX({mutate:this.resizeBackground_},this);eDX({mutate:this.updateModalAndBackground_},this)};
_.Tk(b1,zp);_.Y=b1.prototype;_.Y.focusHandler_=null;_.Y.visible_=!1;_.Y.bgEl_=null;_.Y.bgIframeEl_=null;_.Y.tabCatcherElement_=null;_.Y.backwardTabWrapInProgress_=!1;_.Y.getCssClass=function(){return"goog-modalpopup"};
_.Y.getBackgroundElement=function(){return this.bgEl_};
_.Y.JSC$10313_createDom=function(){b1.superClass_.JSC$10313_createDom.call(this);var e=this.getElement(),z=xN(this.getCssClass()).split(" ");ku(e,z);e.tabIndex=0;_.Gt(e,!1);GoC(this);YXC(this)};
var GoC=function(e){if(e.useIframeMask_&&!e.bgIframeEl_){var z=e.JSC$10311_dom_.JSC$9497_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Cq(z,wrc);e.bgIframeEl_=z;e.bgIframeEl_.className=e.getCssClass()+"-bg";_.Gt(e.bgIframeEl_,!1);ZJY(e.bgIframeEl_,0)}e.bgEl_||(e.bgEl_=e.JSC$10311_dom_.JSC$9497_createDom("DIV",e.getCssClass()+"-bg"),_.Gt(e.bgEl_,!1))},YXC=function(e){e.tabCatcherElement_||(e.tabCatcherElement_=e.JSC$10311_dom_.createElement("SPAN"),_.Gt(e.tabCatcherElement_,
!1),e.tabCatcherElement_.tabIndex=0,e.tabCatcherElement_.style.position="absolute")};
_.Y=b1.prototype;_.Y.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.Y.canDecorate=function(e){return!!e&&e.tagName=="DIV"};
_.Y.decorateInternal=function(e){b1.superClass_.decorateInternal.call(this,e);e=xN(this.getCssClass()).split(" ");ku(this.getElement(),e);GoC(this);YXC(this);this.getElement().tabIndex=0;_.Gt(this.getElement(),!1)};
_.Y.enterDocument=function(){this.bgIframeEl_&&_.cT(this.bgIframeEl_,this.getElement());_.cT(this.bgEl_,this.getElement());b1.superClass_.enterDocument.call(this);_.AL(this.tabCatcherElement_,this.getElement());this.focusHandler_=new YG(this.JSC$10311_dom_.JSC$9495_document_);CN(this).listen(this.focusHandler_,"focusin",this.onFocus);biS(this,!1)};
_.Y.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.XU(this.focusHandler_);b1.superClass_.exitDocument.call(this);_.hA(this.bgIframeEl_);_.hA(this.bgEl_);_.hA(this.tabCatcherElement_)};
_.Y.setVisible=function(e){if(e!=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_&&biS(this,e),e){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10311_dom_.JSC$9495_document_.activeElement}catch(K){}this.updateModalAndBackground_();CN(this).listen(this.JSC$10311_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10311_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);Xrh(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)H9(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){CN(this).unlisten(this.JSC$10311_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10311_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)H9(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var z=this.JSC$10311_dom_,C=z.JSC$9495_document_.body,w=z.JSC$9495_document_.activeElement||C;if(!this.lastFocus_||this.lastFocus_==C){this.lastFocus_=null;break a}(w==C||z.contains(this.getElement(),w))&&this.lastFocus_.focus()}catch(K){}this.lastFocus_=
null}}};
var biS=function(e,z){e.modalAriaVisibilityHelper_||(e.modalAriaVisibilityHelper_=new o1a(e.JSC$10311_element_,e.JSC$10311_dom_));e=e.modalAriaVisibilityHelper_;if(z){e.hiddenElements_||(e.hiddenElements_=[]);z=e.JSC$10332_dom_.getChildren(e.JSC$10332_dom_.JSC$9495_document_.body);for(var C=0;C<z.length;C++){var w=z[C],K;if(K=w!=e.JSC$10332_element_)K=w.getAttribute("aria-hidden"),K=!(K==null||K==void 0?0:String(K));K&&(wS(w,"hidden",!0),e.hiddenElements_.push(w))}}else if(e.hiddenElements_){for(z=
0;z<e.hiddenElements_.length;z++)e.hiddenElements_[z].removeAttribute("aria-hidden");e.hiddenElements_=null}};
b1.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var Xrh=function(e,z){e.bgIframeEl_&&_.Gt(e.bgIframeEl_,z);e.bgEl_&&_.Gt(e.bgEl_,z);_.Gt(e.getElement(),z);_.Gt(e.tabCatcherElement_,z)};
_.Y=b1.prototype;_.Y.onShow=function(){this.dispatchEvent("show")};
_.Y.onHide=function(){Xrh(this,!1);this.dispatchEvent("hide")};
_.Y.isVisible=function(){return this.visible_};
_.Y.focus=function(){this.focusElement_()};
_.Y.resizeBackground_=function(){this.bgIframeEl_&&_.Gt(this.bgIframeEl_,!1);this.bgEl_&&_.Gt(this.bgEl_,!1);var e=this.JSC$10311_dom_.JSC$9495_document_;var z=_.LJ(BV(this.JSC$10311_dom_.JSC$9495_document_)||window);var C=Math.max(z.width,Math.max(e.body.scrollWidth,e.documentElement.scrollWidth));e=Math.max(z.height,Math.max(e.body.scrollHeight,e.documentElement.scrollHeight));this.bgIframeEl_&&(_.Gt(this.bgIframeEl_,!0),_.jMs(this.bgIframeEl_,C,e));this.bgEl_&&(_.Gt(this.bgEl_,!0),_.jMs(this.bgEl_,
C,e))};
_.Y.reposition=function(){var e;if(_.gyT(this.getElement())=="fixed")var z=e=0;else z=h0(this.JSC$10311_dom_),e=z.x,z=z.y;var C=c0X(this.getElement());var w=_.LJ(BV(this.JSC$10311_dom_.JSC$9495_document_)||window);e=Math.max(e+w.width/2-C.width/2,0);z=Math.max(z+w.height/2-C.height/2,0);wB(this.getElement(),e,z);wB(this.tabCatcherElement_,e,z)};
_.Y.onFocus=function(e){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():e.target==this.tabCatcherElement_&&jl(this.focusElement_,0,this)};
_.Y.focusElement_=function(){try{this.getElement().focus()}catch(e){}};
_.Y.disposeInternal=function(){_.XU(this.popupShowTransition_);this.popupShowTransition_=null;_.XU(this.popupHideTransition_);this.popupHideTransition_=null;_.XU(this.bgShowTransition_);this.bgShowTransition_=null;_.XU(this.bgHideTransition_);this.bgHideTransition_=null;b1.superClass_.disposeInternal.call(this)};var y4=function(e,z,C){b1.call(this,z,C);this.JSC$10342_class_=e||"modal-dialog";this.buttons_=(new X5).addButton(JwY,!0).addButton(ko6,!1,!0)};
_.Tk(y4,b1);_.Y=y4.prototype;_.Y.escapeToCancel_=!0;_.Y.hasTitleCloseButton_=!0;_.Y.modal_=!0;_.Y.draggable_=!0;_.Y.backgroundElementOpacity_=.5;_.Y.title_="";_.Y.JSC$10344_dragger_=null;_.Y.JSC$10344_disposeOnHide_=!1;_.Y.titleEl_=null;_.Y.titleTextEl_=null;_.Y.titleTextId_=null;_.Y.titleCloseEl_=null;_.Y.contentEl_=null;_.Y.buttonEl_=null;_.Y.getCssClass=function(){return this.JSC$10342_class_};
_.Y.setTitle=function(e){this.title_=e;this.titleTextEl_&&_.pV(this.titleTextEl_,e)};
_.Y.getTitle=function(){return this.title_};
_.Y.getContent=function(){return""};
_.Y.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var qXc=function(e){e.getElement()||e.render();return e.getElement()};
y4.prototype.getBackgroundElement=function(){this.getElement()||this.render();return y4.superClass_.getBackgroundElement.call(this)};
var x$a=function(e,z){e.backgroundElementOpacity_=z;e.getElement()&&(z=e.getBackgroundElement())&&ZJY(z,e.backgroundElementOpacity_)};
y4.prototype.setDraggable=function(e){this.draggable_=e;TNh(this,e&&this.inDocument_)};
y4.prototype.handleDrag=function(){};
var TNh=function(e,z){var C=xN(e.JSC$10342_class_+"-title-draggable").split(" ");e.getElement()&&(z?ku(e.titleEl_,C):ip6(e.titleEl_,C));z&&!e.JSC$10344_dragger_?(z=new _.KN(e.getElement(),e.titleEl_),e.JSC$10344_dragger_=z,ku(e.titleEl_,C),_.W9(e.JSC$10344_dragger_,"start",e.setDraggerLimits_,!1,e),_.W9(e.JSC$10344_dragger_,"drag",e.handleDrag,!1,e)):!z&&e.JSC$10344_dragger_&&(e.JSC$10344_dragger_.dispose(),e.JSC$10344_dragger_=null)};
_.Y=y4.prototype;
_.Y.JSC$10313_createDom=function(){y4.superClass_.JSC$10313_createDom.call(this);var e=this.getElement(),z=this.JSC$10311_dom_;this.titleTextId_=this.getId();var C=this.getId()+".contentEl";this.titleEl_=z.JSC$9497_createDom("DIV",this.JSC$10342_class_+"-title",this.titleTextEl_=z.JSC$9497_createDom("SPAN",{className:this.JSC$10342_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=z.JSC$9497_createDom("SPAN",this.JSC$10342_class_+"-title-close"));WIC(e,this.titleEl_,this.contentEl_=
z.JSC$9497_createDom("DIV",{className:this.JSC$10342_class_+"-content",id:C}),this.buttonEl_=z.JSC$9497_createDom("DIV",this.JSC$10342_class_+"-buttons"));iGa(this.titleTextEl_,"heading");iGa(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;wS(this.titleCloseEl_,"label","Close");iGa(e,"dialog");wS(e,"labelledby",this.titleTextId_||"");_.Gt(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(e=this.buttons_,e.JSC$10345_element_=this.buttonEl_,e.render());_.Gt(this.buttonEl_,!!this.buttons_);
x$a(this,this.backgroundElementOpacity_)};
_.Y.decorateInternal=function(e){y4.superClass_.decorateInternal.call(this,e);e=this.getElement();var z=this.JSC$10342_class_+"-content";this.contentEl_=sy(document,null,z,e)[0];this.contentEl_||(this.contentEl_=this.JSC$10311_dom_.JSC$9497_createDom("DIV",z),e.appendChild(this.contentEl_));z=this.JSC$10342_class_+"-title";var C=this.JSC$10342_class_+"-title-text",w=this.JSC$10342_class_+"-title-close";(this.titleEl_=sy(document,null,z,e)[0])?(this.titleTextEl_=sy(document,null,C,this.titleEl_)[0],
this.titleCloseEl_=sy(document,null,w,this.titleEl_)[0]):(this.titleEl_=this.JSC$10311_dom_.JSC$9497_createDom("DIV",z),e.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=iJh(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.tL("SPAN",{className:C,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;wS(e,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10311_dom_.JSC$9497_createDom("SPAN",w),this.titleEl_.appendChild(this.titleCloseEl_));_.Gt(this.titleCloseEl_,this.hasTitleCloseButton_);z=this.JSC$10342_class_+"-buttons";(this.buttonEl_=sy(document,null,z,e)[0])?(this.buttons_=new X5(this.JSC$10311_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10311_dom_.JSC$9497_createDom("DIV",z),e.appendChild(this.buttonEl_),this.buttons_&&(e=this.buttons_,e.JSC$10345_element_=this.buttonEl_,e.render()),_.Gt(this.buttonEl_,
!!this.buttons_));x$a(this,this.backgroundElementOpacity_)};
_.Y.enterDocument=function(){y4.superClass_.enterDocument.call(this);CN(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);CN(this).listen(this.buttonEl_,"click",this.onButtonClick_);TNh(this,this.draggable_);CN(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var e=this.getElement();iGa(e,"dialog");this.titleTextEl_.id!==""&&wS(e,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){e=this.JSC$10311_dom_;
var z=this.getBackgroundElement();e.removeNode(this.bgIframeEl_);e.removeNode(z)}this.isVisible()&&biS(this,!1)}};
_.Y.exitDocument=function(){this.isVisible()&&this.setVisible(!1);TNh(this,!1);y4.superClass_.exitDocument.call(this)};
_.Y.setVisible=function(e){e!=this.isVisible()&&(this.inDocument_||this.render(),y4.superClass_.setVisible.call(this,e))};
_.Y.onShow=function(){y4.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.Y.onHide=function(){y4.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10344_disposeOnHide_&&this.dispose()};
_.Y.setDraggerLimits_=function(){var e=this.JSC$10311_dom_.JSC$9495_document_,z=_.LJ(BV(e)||window),C=Math.max(e.body.scrollWidth,z.width);e=Math.max(e.body.scrollHeight,z.height);var w=c0X(this.getElement());_.gyT(this.getElement())=="fixed"?this.JSC$10344_dragger_.limits=new el(0,0,Math.max(0,z.width-w.width),Math.max(0,z.height-w.height)):this.JSC$10344_dragger_.limits=new el(0,0,C-w.width,e-w.height)};
_.Y.onTitleCloseClick_=function(){$$L(this)};
var $$L=function(e){if(e.hasTitleCloseButton_){var z=e.buttons_,C=z&&z.cancelButton_;C?(z=z.get(C),e.dispatchEvent(new JI(C,z))&&e.setVisible(!1)):e.setVisible(!1)}},lPh=function(e){e.hasTitleCloseButton_=!1;
e.titleCloseEl_&&_.Gt(e.titleCloseEl_,e.hasTitleCloseButton_)};
y4.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;y4.superClass_.disposeInternal.call(this)};
y4.prototype.onButtonClick_=function(e){a:{for(e=e.target;e!=null&&e!=this.buttonEl_;){if(e.tagName=="BUTTON")break a;e=e.parentNode}e=null}if(e&&!e.disabled){e=e.name;var z=this.buttons_.get(e);this.dispatchEvent(new JI(e,z))&&this.setVisible(!1)}};
y4.prototype.onKey_=function(e){var z=!1,C=!1,w=this.buttons_,K=e.target;if(e.type=="keydown")if(this.escapeToCancel_&&e.keyCode==27){var G=w&&w.cancelButton_;K=K.tagName=="SELECT"&&!K.disabled;G&&!K?(C=!0,z=w.get(G),z=this.dispatchEvent(new JI(G,z))):K||(z=!0)}else{if(e.keyCode==9&&e.shiftKey&&K==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(Q){}jl(this.resetBackwardTabWrap_,0,this)}}else if(e.keyCode==13){if(K.tagName=="BUTTON"&&!K.disabled)G=K.name;
else if(K==this.titleCloseEl_)$$L(this);else if(w){var X=w.defaultButton_,J;if(J=X)a:{J=Ov("BUTTON",w.JSC$10345_element_);for(var q,T=0;q=J[T];T++)if(q.name==X||q.id==X){J=q;break a}J=null}K=(K.tagName=="TEXTAREA"||K.tagName=="SELECT"||K.tagName=="A")&&!K.disabled;!J||J.disabled||K||(G=X)}G&&w&&(C=!0,z=this.dispatchEvent(new JI(G,String(w.get(G)))))}else K!=this.titleCloseEl_||e.keyCode!=32&&e.key!=" "||$$L(this);if(z||C)e.stopPropagation(),e.preventDefault();z&&this.setVisible(!1)};
var JI=function(e,z){this.type="dialogselect";this.key=e;this.caption=z};
_.Tk(JI,_.fk);var X5=function(e){Gp.call(this);e||Ot();this.cancelButton_=this.JSC$10345_element_=this.defaultButton_=null};
_.Tk(X5,Gp);_.Y=X5.prototype;_.Y.clear=function(){Gp.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.Y.set=function(e,z,C,w){Gp.prototype.set.call(this,e,z);C&&(this.defaultButton_=e);w&&(this.cancelButton_=e);return this};
_.Y.addButton=function(e,z,C){return this.set(e.key,e.caption,z,C)};
_.Y.render=function(){if(this.JSC$10345_element_){_.ko(this.JSC$10345_element_,Qs7);var e=Ot(this.JSC$10345_element_);this.forEach(function(z,C){z=e.JSC$9497_createDom("BUTTON",{name:C},z);C==this.defaultButton_&&(z.className="goog-buttonset-default");this.JSC$10345_element_.appendChild(z)},this)}};
_.Y.decorate=function(e){if(e&&e.nodeType==1){this.JSC$10345_element_=e;e=Ov("BUTTON",this.JSC$10345_element_);for(var z,C,w,K=0;z=e[K];K++)if(C=z.name||z.id,w=iJh(z)||z.value,C){var G=K==0;this.set(C,w,G,z.name=="cancel");G&&_.pm(z,"goog-buttonset-default")}}};
_.Y.getElement=function(){return this.JSC$10345_element_};
var JwY={key:"ok",caption:"OK"},ko6={key:"cancel",caption:"Cancel"},QpS={key:"yes",caption:"Yes"},m$c={key:"no",caption:"No"},aP4={key:"save",caption:"Save"},n1a={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new X5).addButton(JwY,!0,!0),(new X5).addButton(JwY,!0).addButton(ko6,!1,!0),(new X5).addButton(QpS,!0).addButton(m$c,!1,!0),(new X5).addButton(QpS).addButton(m$c,!0).addButton(ko6,!1,!0),(new X5).addButton(n1a).addButton(aP4).addButton(ko6,!0,!0));_.Tk(GT7,y4);_.Tk(YRE,co);var Myo=_.Kb(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),rwh=_.Kb(["//apis.google.com/js/rpc.js"]),lIg=_.nJ(Myo),$Eo=_.nJ(rwh),X54=null;var AA=function(e,z){_.N3.call(this);this.JSC$10354_element_=e;e=_.xO(this.JSC$10354_element_)?this.JSC$10354_element_:this.JSC$10354_element_?this.JSC$10354_element_.body:null;this.isRtl_=!!e&&_.pVC(e);this.listenKey_=_.W9(this.JSC$10354_element_,_.nb?"DOMMouseScroll":"mousewheel",this,z)};
_.Tk(AA,_.N3);AA.prototype.handleEvent=function(e){var z=0,C=0,w=e.event_;w.type=="mousewheel"?(e=HiU(-w.wheelDelta),w.wheelDeltaX!==void 0?(z=HiU(-w.wheelDeltaX),C=HiU(-w.wheelDeltaY)):C=e):(e=w.detail,e>100?e=3:e<-100&&(e=-3),w.axis!==void 0&&w.axis===w.HORIZONTAL_AXIS?z=e:C=e);typeof this.maxDeltaX_==="number"&&(z=_.NZ(z,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(C=_.NZ(C,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(z=-z);z=new U$S(e,w,z,C);this.dispatchEvent(z)};
var HiU=function(e){return _.MI&&(_.AkC||p1Y)&&e%40!=0?e:e/40};
AA.prototype.disposeInternal=function(){AA.superClass_.disposeInternal.call(this);Um(this.listenKey_);this.listenKey_=null};
var U$S=function(e,z,C,w){_.ub.call(this,z);this.type="mousewheel";this.detail=e;this.deltaX=C;this.deltaY=w};
_.Tk(U$S,_.ub);_.bH=function(e){var z="instance_";if(e.instance_&&e.hasOwnProperty(z))return e.instance_;z=new e;return e.instance_=z};var Tag;var v1c=_.Kb(["https://about:blank"]),IPL=_.Kb(['javascript:""']),WbC=_.Kb(["about:blank"]);_.Tk(YJ,GT7);_.Y=YJ.prototype;_.Y.JSC$10362_url_="";_.Y.JSC$10362_iframe_=null;_.Y.iframeLoaded_=!1;_.Y.loadedFired_=!1;_.Y.callback_=function(){};
_.Y.enterDocument=function(){YJ.superClass_.enterDocument.call(this);qRL(this.getBackgroundElement(),CN(this))};
_.Y.render=function(e){var z=this;YJ.superClass_.render.call(this,e);this.useGapi_?WAX(this.iframeManager_,window).then(function(){return PYS(z)}).then(null,function(){z.callback_({action:"error"})}):RDa(this)};
var PYS=function(e){var z=e.JSC$10311_dom_.JSC$9497_createDom("div",["picker-dialog-content","picker-frame"]);_.Gt(z,!1);e.getContentElement().appendChild(z);return PBc(e.iframeManager_,z,function(C){var w=B9X(C["iframe-command"]);switch(w.getCommand()){case 1:C=e.callback_;w=_.ra(w,nk,2);var K="";switch(w.getStatus()){case 2:K="cancel";break;case 1:K="picked";break;case 3:K="error"}var G=_.x2(w,V8,2,_.T5(Hga));w=G.length===0?{action:K}:bGh(G,K,_.ra(w,ihh,7));C.call(e,w);e.setVisible(!1);break;case 4:lPh(e);
e.callback_({action:"loaded"});break;case 7:case 8:C=e.callback_;a:{K=w.getCommand();G=_.ra(w,nk,2);switch(K){case 7:K="uploadScheduled";break;case 8:K="uploadStateChange";break;default:w={};break a}w=_.x2(G,V8,2,_.T5(Hga));if(w.length===0)w={action:K};else{var X=_.ra(G,ihh,7);G=X&&_.Ds(X,1);X=AHc(X);w=e$o(w,K,G,X)}}C.call(e,w)}},e.JSC$10362_url_,e.targetId_,e.rpcToken_).then(function(C){e.JSC$10362_iframe_=C.getIframeEl();
LbU(e);_.Gt(e.JSC$10362_iframe_.parentElement,!0);_.pm(e.getElement(),"picker-dialog");hDT(e);return C})},RDa=function(e){e.JSC$10362_iframe_=e.JSC$10311_dom_.JSC$9497_createDom("IFRAME",{id:e.targetId_,
name:e.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Cq(e.JSC$10362_iframe_,Oio(e));_.pm(e.getElement(),"picker-dialog");e.getContentElement().appendChild(e.JSC$10362_iframe_);CN(e).listen(e.JSC$10362_iframe_,"load",function(){return void LbU(e)});
e.JSC$10362_iframe_.src=e.JSC$10362_url_;hDT(e)},FbX=function(e){E1a(e,(0,_.uZ)(function(z){z.setAuthToken(this.targetId_,this.rpcToken_)},e))},hDT=function(e){var z=_.Kj(_.Cj(e.JSC$10362_url_),"title");
z&&e.setTitle(z)},Oio=function(e){return _.rk1("Internet Explorer")>=7&&_.om(e.JSC$10362_url_,"https")?_.nJ(v1c):_.aP?_.nJ(IPL):_.nJ(WbC)},LbU=function(e){FbX(e);
e.iframeLoaded_=!0;e.JSC$10362_iframe_.tabIndex=0;e.isVisible()&&e.focus()};
YJ.prototype.handleKeydown_=function(e){e.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),e.stopPropagation(),e.preventDefault())};
var E1a=function(e,z){var C=e.JSC$10360_gadgetsDomHelper_;Jfg(function(){z(C.getWindow().gadgets.rpc)},C)};
YJ.prototype.setUrl=function(e){e=_.oI(new _.sX(e),"rpcService",this.targetId_);_.oI(e,"rpctoken",this.rpcToken_);_.vq(e,"rpctoken="+this.rpcToken_);_.nR(e,"https");this.JSC$10362_url_=e.toString();this.JSC$10362_iframe_&&(this.JSC$10362_iframe_.src=this.JSC$10362_url_)};
var VyS=function(e,z){e.callback_=z;E1a(e,(0,_.uZ)(function(C){C.register(this.targetId_,(0,_.uZ)(this.handlePickerAction_,this))},e))};
YJ.prototype.handlePickerAction_=function(e){var z=e.action;z=="loaded"&&(this.loadedFired_=!0,fPC(this,new ojE(this.isVisible())),SXU(this),lPh(this),CN(this).unlisten(this.JSC$10311_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10362_iframe_.tabIndex=0);z!="picked"&&z!="cancel"||this.setVisible(!1);this.callback_(e)};
var SXU=function(e){e.JSC$10362_appId_&&fPC(e,new K0L(e.JSC$10362_appId_,window.location.protocol+"//"+window.location.host))};
YJ.prototype.setRelayUrl=function(e){E1a(this,(0,_.uZ)(function(z){z.setRelayUrl(this.targetId_,e)},this))};
var fPC=function(e,z){e.useGapi_&&EWa(z,e.iframeManager_).then(null,function(){e.callback_({action:"error"})});
E1a(e,(0,_.uZ)(function(C){C.call(this.targetId_,"picker",null,z)},e))};
YJ.prototype.resizePicker_=function(){var e=BV(this.JSC$10311_dom_.JSC$9495_document_)||window;if(_.Kj(_.Cj(this.JSC$10362_url_),"ignoreLimits")=="true")e=new _.RM(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Kj(_.Cj(this.JSC$10362_url_),"shadeDialog")=="true"){var z=qXc(this);z=evg(z);var C=_.LJ(e);e=C.width-80;C=C.height-40;z&&(e-=z.left?z.left:0,e-=z.right?z.right:0,C-=z.top?z.top:0,C-=z.bottom?z.bottom:0);e=new _.RM(e>0?e:0,C>0?C:0)}else(z=this.preferredDialogWidth_)?(z=Math.max(320,
Math.min(1051,z)),(C=this.preferredDialogHeight_)||(C=_.LJ(e).height*.85),C=Math.max(480,Math.min(650,C))):(z=_.LJ(e),C=z.width*.618,C=C<z.height?Math.round(Math.max(480,Math.min(650,C*.85))):Math.round(Math.max(480,Math.min(650,z.height*.85))),z=Math.round(C/.618)),e=_.LJ(e),z=Math.min(z,Math.max(e.width,320)),C=Math.min(C,Math.max(e.height,480)),e=new _.RM(z,C);_.jMs(this.getContentElement(),e);this.reposition()};
YJ.prototype.reposition=function(){if(_.Kj(_.Cj(this.JSC$10362_url_),"shadeDialog")=="true"){var e=c0X(this.getElement()),z=_.LJ(this.JSC$10311_dom_.getWindow());e=Math.floor(z.width/2-e.width/2);z=qXc(this);if(z=evg(z)){var C=z.left?z.left:0;C+=z.right?z.right:0;e=Math.floor(e-C/2)}e=e>0?e:0;z=h0(this.JSC$10311_dom_).y;wB(this.getElement(),e,z)}else YJ.superClass_.reposition.call(this)};
YJ.prototype.setVisible=function(e){if(e!=this.isVisible()&&this.autoSizeDialog_){var z=this.JSC$10311_dom_.getWindow();e?(this.resizePicker_(),CN(this).listen(z,"resize",this.resizePicker_),this.iframeLoaded_||CN(this).listen(z,"keydown",this.handleKeydown_)):(CN(this).unlisten(z,"resize",this.resizePicker_),this.iframeLoaded_||CN(this).unlisten(z,"keydown",this.handleKeydown_))}YJ.superClass_.setVisible.call(this,e);fPC(this,new ojE(e))};
YJ.prototype.focus=function(){YJ.superClass_.focus.call(this);if(this.JSC$10362_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10362_iframe_.focus()}catch(e){}};var HJ=function(e,z){z=z===void 0?YJ:z;co.call(this,e);this.pickerConstructor=z;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(e=window.location.origin)||(e=window.location.protocol+"//"+window.location.host);e&&this.urlParamMap_.set("origin",e);this.postProcessors_=[]};
_.U(HJ,YRE);HJ.prototype.JSC$10367_disposeOnHide_=!1;
HJ.prototype.build=function(){this.JSC$10268_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10268_appId_);this.getRelayUrl()||this.setRelayUrl(_.Hq(_.vq(_.UV(_.Cj(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var e=new this.pickerConstructor(uuX(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);e.JSC$10344_disposeOnHide_=this.JSC$10367_disposeOnHide_;
e.JSC$10362_appId_=this.JSC$10268_appId_;e.loadedFired_&&SXU(e);VyS(e,this.callback_);return e};
var d$c=function(e){e.urlParamMap_.set("multiselectEnabled","true");return e};
_.Y=HJ.prototype;_.Y.getHeight=function(){return this.dialogHeight_};
_.Y.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.Y.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.Y.getTitle=function(){return this.urlParamMap_.get("title")};
_.Y.getWidth=function(){return this.dialogWidth_};
var D$6=function(e){e.JSC$10367_disposeOnHide_=void 0;return e};
HJ.prototype.setRelayUrl=function(e){this.urlParamMap_.set("parent",e);return this};
var iio=function(e,z){e.urlParamMap_.set("selectButtonLabel",z);return e};
HJ.prototype.setSize=function(e,z){this.dialogWidth_=e;this.dialogHeight_=z;return this};
HJ.prototype.setTitle=function(e){this.urlParamMap_.set("title",e);return this};
var uuX=function(e){e.postProcessors_.length&&e.urlParamMap_.set("pp",JSON.stringify(e.postProcessors_));e.urlParamMap_.set("nav",gIL(e.nav_));var z=new _.sX(e.getBaseUrl());e.urlParamMap_.forEach(function(C,w){_.oI(z,w,C)});
return z};var BNX=function(e,z){e.name!==void 0?(this.name=e.name,this.code=NNU[e.name]):(this.code=e=e.code,this.name=spS(e));_.eh.call(this,q_L("%s %s",this.name,z))};
_.Tk(BNX,_.eh);var spS=function(e){var z=_.de.findKey(NNU,function(C){return e==C});
if(z===void 0)throw Error("hb`"+e);return z},kG={},NNU=(kG.AbortError=3,kG.EncodingError=5,kG.InvalidModificationError=9,kG.InvalidStateError=7,kG.NotFoundError=1,kG.NotReadableError=4,kG.NoModificationAllowedError=6,kG.PathExistsError=12,kG.QuotaExceededError=10,kG.SecurityError=2,kG.SyntaxError=8,kG.TypeMismatchError=11,kG);var tyL=function(e,z){_.fk.call(this,e.type,z);this.event_=e};
_.Tk(tyL,_.fk);var g1T=function(e,z,C){C===void 0&&(C=e.size);return e.slice?e.slice(z,C):null};var aI1=new WeakMap,mEE=function(e,z){e=[e];for(var C=z.length-1;C>=0;--C)e.push(typeof z[C],z[C]);return e.join("\v")};_.Mx7(function(){if(!_.wL.Blob)return!1;var e=new Uint8Array(100);try{var z=new Blob([e])}catch(C){return!1}return z.size!=100?!1:!0});
var jp4=_.Mx7(function(){if(!_.wL.Blob)return!1;var e=new Uint8Array(100);try{var z=new Blob([e])}catch(C){return!1}return g1T(z,0,1)===null?!1:!0});_.wL.U3bHHf!=null||(_.wL.U3bHHf=0);_.wL.U3bHHf++;_.ywc=new WeakMap;_.cwa=new WeakMap;var Hpk={};var JG=void 0;var vjE=Symbol("pb");var u0o=xJ("WizInjectionContext_Dispatcher");var li=Symbol("qb");var RV,Vw;RV=function(){this.afterRenderCallbacks=null};
_.PYh=Symbol("rb");Vw=function(e){this.props=e;this.__unmounted=!1};
Vw.prototype.didPatch=function(){};
Vw.prototype.didMount=function(){};
Vw.prototype.didUnmount=function(){};
Vw.prototype.didUpdate=function(){};_.Ej1=xJ("WizInjectionContext_RootElement");var Vxg=xJ("WizInjectionContext_AppContext"),F0s=xJ("WizInjectionContext_ModelRootElement"),fIo=xJ("WizInjectionContext_RendererData"),SRo=xJ("WizInjectionContext_InjectingConstructor"),Op5=xJ("WizInjectionContext_AsyncDeps"),dEN={};var tx1=!1;var cfm={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:BLa,enableContextPerComponent:BLa,enableLazyTsx:thC,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:smo,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var $J=Object.assign({},{attributes:{},handleError:function(e){throw e;}},cfm);var AwS=Symbol("vb"),u0=Symbol("wb"),png=Symbol("xb"),AXg=Symbol("yb"),G47=fg(function(e){return vC(e)&&AwS in e});var l0=null,mp=!1,nj=1,HC=Symbol("Cb"),Lj={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var qt=Symbol("Db"),xG=Symbol("Eb"),rp=Symbol("Fb"),JX7=Object.assign({},Lj,{value:qt,dirty:!0,error:null,equal:zU4,kind:"computed",producerMustRecompute:function(e){return e.value===qt||e.value===xG},
producerRecomputeValue:function(e){if(e.value===xG)throw Error("Z");var z=e.value;e.value=xG;var C=YOg(e),w=!1;try{var K=e.computation();QM(null);w=z!==qt&&z!==rp&&K!==rp&&e.equal(z,K)}catch(G){K=rp,e.error=G}finally{QM(C),e&&Xnm(e)}w?e.value=z:(e.value=K,e.version++)}});var Zio=Object.assign({},Lj,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var TmL=function(){throw Error();};var lzg=null,qO5=Object.assign({},Lj,{equal:zU4,value:void 0,kind:"signal"});var QC5=Object.assign({},Lj,{value:qt,dirty:!0,error:null,equal:zU4,kind:"linkedSignal",producerMustRecompute:function(e){return e.value===qt||e.value===xG},
producerRecomputeValue:function(e){if(e.value===xG)throw Error("Z");var z=e.value;e.value=xG;var C=YOg(e);try{var w=e.source();var K=e.computation(w,z===qt||z===rp?void 0:{source:e.sourceValue,value:z});e.sourceValue=w}catch(G){K=rp,e.error=G}finally{QM(C),e&&Xnm(e)}z!==qt&&K!==rp&&e.equal(z,K)?e.value=z:(e.value=K,e.version++)}});Object.assign({},Lj,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(e){e.schedule!==null&&e.schedule(e.ref)},
cleanupFn:function(){}});var UUg=Symbol("Gb"),Tp={},Mum=(Tp[UUg]=!0,Tp.debugName="[component]",Tp.getComponentStack=function(){for(var e=[],z=this;z;)vON(z)&&e.push(z.debugName),z=z.parent;return e},Tp.registerSignal=function(){},Tp.registerEffect=function(){},Tp);var Izg=Symbol("Hb"),WC=Symbol("Ib");var PC=Array.isArray;var Vug;var prS={},SON=F1E(Object.assign({},{consumerAllowSignalWrites:!0},prS)),hR=F1E(Object.assign({},{consumerAllowSignalWrites:!0},prS));var Fy=Symbol("Nb");var EH=null,DUk,iCL=null,Nmo;var dp=0,DK=!1,$G=function(){this.queue=new Set};
$G.prototype.schedule=function(e){this.queue.add(e)};
$G.prototype.remove=function(e){this.queue.delete(e)};
$G.prototype.clear=function(){this.queue.clear()};
var gOm=Symbol("Ob"),Bm1=Symbol("Pb"),l1=function(){$G.apply(this,arguments)};
_.U(l1,$G);l1.prototype.flush=function(){if(this.queue.size){DK=!0;for(var e=_.b(this.queue),z=e.next();!z.done;z=e.next()){z=z.value;this.queue.delete(z);try{z.run()}catch(C){eNg(C)}}DK=!1}};
var zNX=function(){l1.apply(this,arguments)};
_.U(zNX,l1);var tu8=new zNX,Cda=function(){l1.apply(this,arguments)};
_.U(Cda,l1);Cda.prototype.schedule=function(e){return _.k(function(z){if(z.nextAddress==1)return z.yield(Promise.resolve(),2);e.run();_.E_(z)})};
Cda.prototype.enqueue=function(e){this.queue.add(e)};
var jC4=new Cda,QH=function(){$G.apply(this,arguments)};
_.U(QH,$G);QH.prototype.flush=function(){this.queue.size&&Yc8(this.queue)};
var wfL=function(){QH.apply(this,arguments)};
_.U(wfL,QH);wfL.prototype.schedule=function(e){e.version===0?e.run():this.queue.add(e)};
wfL.prototype.flush=function(){if(this.queue.size)if($J.flushRenderEffectsDuringRender){var e=this.queue;this.queue=new Set;Yc8(e)}else Yc8(this.queue)};
var cXm=new wfL,KmT=function(){QH.apply(this,arguments)};
_.U(KmT,QH);KmT.prototype.schedule=function(e){return _.k(function(z){if(z.nextAddress==1)return z.yield(Promise.resolve(),2);e.run();_.E_(z)})};
KmT.prototype.enqueue=function(e){this.queue.add(e)};
var e65=new KmT,okL=function(){QH.apply(this,arguments)};
_.U(okL,QH);var ZCE=new okL,Cps=[cXm,tu8,ZCE],oIg=[jC4,e65],GjT=[cXm,ZCE,e65],bZE=[].concat(_.s_(Cps),_.s_(oIg)),Y6L=[];lzg=function(){K$1();for(var e=_.b(Y6L),z=e.next();!z.done;z=e.next())z=z.value,z()};
var eNg=Ko;var mz={},bKa=Object.assign({},Zio,(mz[AwS]=!0,mz.effectType=u0,mz.isResettableContext=!0,mz.consumerMarkedDirty=z6E,mz.run=function(){JHL(this)},mz.cleanup=function(){h_g(this)},mz.componentStack=void 0,mz.debugName="[effect]",mz.destroy=function(){if(aI(this))for(var e=this.producers;e!==void 0;)e=bC5(e);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;e=_.b(GjT);for(var z=e.next();!z.done;z=e.next())z.value.remove(this);L0k(this)},mz[Symbol.dispose]=function(){this.destroy()},mz)),Xfc=Object.assign({},bKa,{version:1,
dirty:!1});var k4N=Object.assign({},bKa,{effectType:u0});var qch=Object.assign({},bKa,{effectType:png});var $D8=Symbol("Rb");var xx1=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var mD4={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},QOg=
{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}]}},Wzg={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},MYs=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],nIh={"*":{async:1,dir:0,loading:2,target:3}};var JgU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,aZ={},HZ4=(aZ[1]=null,aZ[2]=function(e,z){return z instanceof Zy?z6(z):sC.toString()},aZ[3]=function(e,z){return dw(z)?_.Dy(z):JgU.test(String(z))?String(z):sC.toString()},aZ[4]=function(e,z){return z instanceof OC?_.F2(z):sC.toString()},aZ[5]=function(e,z){return String(z)},aZ[7]=null,aZ[8]=null,aZ[10]=null,aZ);var ET1=Symbol("Ub");var mom=function(e){var z=kjC,C=e,w="",K="",G=1;e<0&&(e=-e);if(e===Infinity)e=(Infinity*Math.sign(C)).toString();else{for(var X=0;X<q6o.length;X++){var J=q6o[X];G=z[J];if(e>=G||G<=1&&e>.1*G){w=J;break}}w?(w+="B",K=" "):G=1;e=Math.round(C/G*10)/10+K+w}return e},q6o="Y Z E P T G M K  m u n".split(" "),kjC={"":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};_.xLg=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 r1={};RegExp.prototype.hasOwnProperty("sticky");var $x4=function(e){e=String(e);for(var z=function(w,K,G){for(var X=Math.min(K.length-G,w.length),J=0;J<X;J++){var q=K[G+J];if(w[J]!==("A"<=q&&q<="Z"?q.toLowerCase():q))return!1}return!0},C=0;(C=e.indexOf("<",C))!=-1;){if(z("\x3c/script",e,C)||z("\x3c!--",e,C))return"zSoyz";
C+=1}return e};var zR={default:"__default"};var tYk=Object.prototype.hasOwnProperty;sOs.prototype=Object.create(null);var lp=yHL();var ki=null;var G01=function(e){this.created=[];this.deleted=[];this.node=e};var Y8N=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var e=this,z=e;e;)z=e,e=e.parentNode;return z};var AH7=function(e,z){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=e;this.key=z;this.text=void 0};var oV=null,GR=null,w1=null,bi=null,CB7=[],z$7=pQ1,X1=[],JR=[],O78=function(e){return bGm(function(z,C,w){w1=GR=z;GR=null;C(w);e$g(null);GR=w1;w1=w1.parentNode;return z},e)}(),hhg=function(e){return bGm(function(z,C,w){var K={nextSibling:z};
GR=K;C(w);w1&&e$g(z.nextSibling);return K===GR?null:GR},e)}();var qm=[],J2E=0;var xi=new sOs;var hE=new sOs;var TQC=yHL(),mx1=TQC[zR.default],Qkg=TQC.style,TMm=["focusin","focusout"],MCg="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var YXs=function(){},c2h=function(){},qX7=function(){},Xrm=function(){};var $i=Symbol("bc");var IOE,vW8=Ux1;var vR=Symbol("cc");var koL=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(" ")),
Jw5=new Set(["a","font","script","style","title"]);_.Ug={setUp:dx5,tearDown:dx5,log:dx5,logNodeRange:dx5,graft:function(e,z){z()}};var Og={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Eg=null,F1=function(e,z){Vw.call(this,e);var C=this;this.functionComponent=z;this.hooks=[];this.hookCounter=0;this.disposeEffects=tG(function(w){C.effectContext=w;_.BC(function(){eDg(C,C.el)})},$J.alwaysTrackContexts||!!JG)};
_.U(F1,Vw);F1.prototype.render=function(e){var z=Eg;Eg=this;this.hookCounter=0;var C=QM(hR),w=_.kJ(this.effectContext);try{return Zpo("render",this.componentName),this.functionComponent(e)}finally{p5E("render",this.componentName),_.kJ(w),QM(C),Eg=z}};
_.lB.Object.defineProperties(F1.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return uem(this.functionComponent)}}});var x$1=Symbol("qc"),o11=function(e,z,C){this.afterRenderCallbacks=null;this.kind=e;this.props=z;this.children=C};
_.U(o11,RV);o11.prototype.render=function(){var e=KbE(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var z=_.b(this.afterRenderCallbacks),C=z.next();!C.done;C=z.next())C=C.value,e=C(e);return e};
o11.prototype.getChildren=function(){return this.children};var $$N=[];TmL=function(e){throw Error("ob`"+e.debugName);};
(function(){var e=ki;ki=function(z){e==null||e(z);lPm(z)}})();Object.assign({},Xfc,{effectType:u0,elementRef:null,attributes:null,fn:function(){var e=this.elementRef;var z;e.element!=null||(e.element=(z=e.document.getElementById(e.value))!=null?z:void 0);e=e.element;for(z=this.attributes;z;){var C=z.signal();C!==z.prevValue&&(z.prevValue=C,z.namespace===1?e[z.name]=C:xx1.has(z.name)?ZK(e,z.name,C?"":null):ZK(e,z.name,C));z=z.next}}});_.fd.debugName="tbhMcf";_.S5.debugName="zyMFzb";Object.assign({},Xfc,{effectType:u0});_.l.debugName="RlDudd";var Qph={nonNullableCondIsNull:function(){return Error("uc")}};var U$h=function(){this.map=new Map};
U$h.prototype.push=function(e,z){var C=this.map;C.has(e)&&(this.multi||(this.multi=new Map),this.multi.set(z,C.get(e)));C.set(e,z)};
U$h.prototype.pop=function(e){var z=this.map,C=z.get(e),w;C!==void 0&&((w=this.multi)==null?0:w.has(C))?(z.set(e,this.multi.get(C)),this.multi.delete(C)):z.delete(e);return C};_.ui.debugName="nsTGHd";_.d1.debugName="vI1rtf";_.LbE={OUT_OF_ORDER_HOOK_CALL:function(e){return Error("vc`"+e)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(e,z){return Error("zc`"+((z===void 0?0:z)?"IDOM":"Reactive")+"`"+(D_(e)?e.description:e))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(e,z){return Error("Ac`"+(D_(e)?e.description:e)+"`"+z)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(e){return Error("Bc`"+(D_(e)?e.description:e))},
USE_ELEMENT_NOT_ASSIGNED:function(e){return Error("Cc`"+(D_(e)?e.description:e))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(e){return Error("Dc`"+(D_(e)?e.description:e))}};IOE=Gos;var fPs=Symbol("Ec");ZG1({beforeRender:function(e){var z=_.kJ(e.effectContext);try{var C;((C=e.__syncEffects)==null?0:C.length)&&d$7(e.__syncEffects)}finally{_.kJ(z)}},
didPatch:function(e){var z=_.kJ(e.effectContext);try{var C;((C=e.__syncEffects)==null?0:C.length)&&d$7(e.__syncEffects)}finally{_.kJ(z)}},
didUnmount:function(e){var z;((z=e.hooks)==null?0:z.length)&&e.hooks.forEach(uug)}});var $Lh,lEX,QSo;$Lh=_.wL.window;_.tR=($Lh==null?void 0:(lEX=$Lh.yt)==null?void 0:lEX.config_)||($Lh==null?void 0:(QSo=$Lh.ytcfg)==null?void 0:QSo.data_)||{};_.lM("yt.config_",_.tR);var mLL={},BNg=[];_.uh=function(e){var z=_.yL.apply(1,arguments);var C=Error.call(this,e);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.args=[].concat(_.s_(z));Object.setPrototypeOf(this,this.constructor.prototype)};
_.U(_.uh,Error);var kKg=function(e,z,C){this.actionName=e;this.optionalAction=z===void 0?!1:z;this.args=C===void 0?null:C;this.returnValue=[]};_.nN=function(e){this.name=e};_.wK=new _.nN("signalAction");var Cd1=/^[\w.]*$/,cw1={q:!0,search_query:!0},yw7=String(jpk);var Qj;Qj=Symbol("Fc");_.Mt=function(e){this.name=e};
_.Mt.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var wfN=function(e){this.key=e},bK1=function(e){this.deferredKey=e},okN=function(){var e=this;
this.providers=new Map;this.JSC$10658_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(e.providers)}}};
okN.prototype.addProvider=function(e){this.providers.set(e.provide,e);var z=this.JSC$10658_deferred.get(e.provide);if(z)try{z.resolver(this.resolve(e.provide))}catch(C){z.rejector(C)}};
okN.prototype.resolve=function(e){return e instanceof bK1?aEU(this,e):e instanceof wfN?nk6(this,e.key,[],!0):nk6(this,e,[])};
var aEU=function(e,z){z=z.deferredKey;if(e.JSC$10658_deferred.has(z))return e.JSC$10658_deferred.get(z).promise;var C={};C.promise=new Promise(function(w,K){C.resolver=w;C.rejector=K});
e.JSC$10658_deferred.set(z,C);return C.promise},nk6=function(e,z,C,w){w=w===void 0?!1:w;
if(C.indexOf(z)>-1)throw Error("Gc`"+z);if(e.cachedValues.has(z))return e.cachedValues.get(z);if(!e.providers.has(z)){if(w)return;throw Error("Hc`"+z);}w=e.providers.get(z);C.push(z);if(w.useValue!==void 0)var K=w.useValue;else if(w.useFactory)K=w[Qj]?MAC(e,w[Qj],C):[],K=w.useFactory.apply(w,_.s_(K));else if(w.useClass){K=w.useClass;var G=K[Qj]?MAC(e,K[Qj],C):[];K=new (Function.prototype.bind.apply(K,[null].concat(_.s_(G))))}else throw Error("Ic`"+z);C.pop();w.skipCache||e.cachedValues.set(z,K);return K},
MAC=function(e,z,C){return z?z.map(function(w){return w instanceof wfN?nk6(e,w.key,C,!0):nk6(e,w,C)}):[]};var Km8;var KZ=new _.Mt("ENDPOINT_HANDLER_TOKEN");_.oO=new _.nN("urlEndpoint");var rgS=function(){this.data=[];this.cachedPackedInt52=-1};
rgS.prototype.set=function(e,z){z=z===void 0?!0:z;0<=e&&e<52&&Number.isInteger(e)&&this.data[e]!==z&&(this.data[e]=z,this.cachedPackedInt52=-1)};
rgS.prototype.get=function(e){return!!this.data[e]};
var HK4=function(e){e.cachedPackedInt52===-1&&(e.cachedPackedInt52=e.data.reduce(function(z,C,w){return z+(C?Math.pow(2,w):0)},0));
return e.cachedPackedInt52};var rgh=function(e){var z=ULL;e=e===void 0?_.pd("yt.ads.biscotti.lastId_")||"":e;var C=Object,w=C.assign,K={};K.dt=njT;K.flash="0";a:{try{var G=z.JSC$10664_win_.top.location.href}catch(Z){G=2;break a}G=G?G===z.doc_.location.href?0:1:2}K=(K.frm=G,K);try{K.u_tz=-(new Date).getTimezoneOffset();try{var X=bG.history.length}catch(Z){X=0}K.u_his=X;var J;K.u_h=(J=bG.screen)==null?void 0:J.height;var q;K.u_w=(q=bG.screen)==null?void 0:q.width;var T;K.u_ah=(T=bG.screen)==null?void 0:T.availHeight;var Q;K.u_aw=
(Q=bG.screen)==null?void 0:Q.availWidth;var m;K.u_cd=(m=bG.screen)==null?void 0:m.colorDepth}catch(Z){}X=z.JSC$10664_win_;try{var a=X.screenX;var n=X.screenY}catch(Z){}try{var H=X.outerWidth;var I=X.outerHeight}catch(Z){}try{var L=X.innerWidth;var h=X.innerHeight}catch(Z){}try{var E=X.screenLeft;var N=X.screenTop}catch(Z){}try{L=X.innerWidth,h=X.innerHeight}catch(Z){}try{var D=X.screen.availWidth;var g=X.screen.availTop}catch(Z){}a=[E,N,a,n,D,g,H,I,L,h];n=E2h(!1,z.JSC$10664_win_.top);H={};var y=y===
void 0?_.wL:y;I=new rgS;"SVGElement"in y&&"createElementNS"in y.document&&I.set(0);L=$XT();L["allow-top-navigation-by-user-activation"]&&I.set(1);L["allow-popups-to-escape-sandbox"]&&I.set(2);y.crypto&&y.crypto.subtle&&I.set(3);"TextDecoder"in y&&"TextEncoder"in y&&I.set(4);y=HK4(I);z=(H.bc=y,H.bih=n.height,H.biw=n.width,H.brdim=a.join(),H.vis=Umg(z.doc_),H.wgl=!!bG.WebGLRenderingContext,H);C=w.call(C,K,z);C.ca_type="image";e&&(C.bid=e);return C},ULL=new function(){var e=window.document;
this.JSC$10664_win_=window;this.doc_=e};
_.lM("yt.ads_.signals_.getAdSignalsString",function(e){return Awh(rgh(e))});_.xd();navigator.userAgent.indexOf(" (CrKey ");var xLo="XMLHttpRequest"in _.wL?function(){return new XMLHttpRequest}:null;var vkU="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),IEC=[].concat(_.s_(vkU),["client_dev_set_cookie"]);var MAs={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"},lEg="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(_.s_(vkU)),hNo=!1,mLN=_.HKk,Pd1=nkL;var pj1=[{messageFn:function(e){return"Cannot read property '"+e.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(e){return"Cannot call '"+e.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(e){return e.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Wmc={messageWeights:[],callbackWeights:[{callback:VA7,weight:500},{callback:fE7,weight:500}]};var Pda=function(){this.callbackWeights=[];this.messageWeights=[]},RNX,ZUL=function(){if(!RNX){var e=RNX=new Pda;
e.messageWeights.length=0;e.callbackWeights.length=0;xPN(e,Wmc)}return RNX},xPN=function(e,z){z.messageWeights&&e.messageWeights.push.apply(e.messageWeights,z.messageWeights);
z.callbackWeights&&e.callbackWeights.push.apply(e.callbackWeights,z.callbackWeights)};_.Tk(_.hJ,_.Sn);_.hJ.prototype.subscribe=function(e,z,C){var w=this.topics_[e];w||(w=this.topics_[e]=[]);var K=this.JSC$10688_key_;this.subscriptions_[K]=e;this.subscriptions_[K+1]=z;this.subscriptions_[K+2]=C;this.JSC$10688_key_=K+3;w.push(K);return K};
var LmC=function(e){var z=eY,C=!1,w=z.subscribe("handleError",function(K){C||(C=!0,this.unsubscribeByKey(w),e.apply(void 0,arguments))},z)};
_.hJ.prototype.unsubscribe=function(e,z,C){if(e=this.topics_[e]){var w=this.subscriptions_;if(e=e.find(function(K){return w[K+1]==z&&w[K+2]==C}))return this.unsubscribeByKey(e)}return!1};
_.hJ.prototype.unsubscribeByKey=function(e){var z=this.subscriptions_[e];if(z){var C=this.topics_[z];this.publishDepth_!=0?(this.pendingKeys_.push(e),this.subscriptions_[e+1]=function(){}):(C&&_.D8(C,e),delete this.subscriptions_[e],delete this.subscriptions_[e+1],delete this.subscriptions_[e+2])}return!!z};
_.hJ.prototype.publish=function(e,z){var C=this.topics_[e];if(C){var w=Array(arguments.length-1),K=arguments.length,G;for(G=1;G<K;G++)w[G-1]=arguments[G];if(this.async_)for(G=0;G<C.length;G++)K=C[G],hNg(this.subscriptions_[K+1],this.subscriptions_[K+2],w);else{this.publishDepth_++;try{for(G=0,K=C.length;G<K&&!this.isDisposed();G++){var X=C[G];this.subscriptions_[X+1].apply(this.subscriptions_[X+2],w)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;C=this.pendingKeys_.pop();)this.unsubscribeByKey(C)}}return G!=
0}return!1};
var hNg=function(e,z,C){_.B2(function(){e.apply(z,C)})};
_.hJ.prototype.clear=function(e){if(e){var z=this.topics_[e];z&&(z.forEach(this.unsubscribeByKey,this),delete this.topics_[e])}else this.subscriptions_.length=0,this.topics_={}};
_.hJ.prototype.getCount=function(e){if(e){var z=this.topics_[e];return z?z.length:0}e=0;for(z in this.topics_)e+=this.getCount(z);return e};
_.hJ.prototype.disposeInternal=function(){_.hJ.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var eY=new _.hJ;var v5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(v5,_.X2);v5.prototype.getColdHashData=function(){return _.Ds(this,3)};
v5.prototype.getHotHashData=function(){return _.Ds(this,5)};
v5.prototype.setHotHashData=function(e){return _.Et(this,5,e)};var yO1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(yO1,_.X2);var HUk=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(HUk,_.X2);_.Y=HUk.prototype;_.Y.getDeviceId=function(){return _.Ds(this,6)};
_.Y.getExperimentIds=function(e){var z=_.cl(this,9,_.JC,3,!0);p15(z,e);return z[e]};
_.Y.getPlayerType=function(){return _.i5(this,36)};
_.Y.setHomeGroupInfo=function(e){return _.PL(this,81,e)};
_.Y.clearLocationPlayabilityToken=function(){return _.UR(this,89)};var EO=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(EO,_.X2);EO.prototype.setKey=function(e){return _.Et(this,1,e)};
EO.prototype.getValue=function(){return s7(this,2,vfo)};
var vfo=[2,3,4,5,6];var OKg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(OKg,_.X2);OKg.prototype.setTrackingParams=function(e){return _.UR(this,1,_.EU(e,!1))};var UTE=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(UTE,_.X2);var Z4g=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Z4g,_.X2);Z4g.prototype.getExperimentIds=function(e){var z=_.cl(this,5,_.Hg1,3,!0);p15(z,e);return z[e]};var Su=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Su,_.X2);Su.prototype.getToken=function(){return _.R4(this,2)};
Su.prototype.setToken=function(e){return _.Et(this,2,e)};var VG=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(VG,_.X2);VG.prototype.setSafetyMode=function(e){return _.H5(this,5,e)};var OO=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(OO,_.X2);OO.prototype.setClient=function(e){return _.PL(this,1,e)};var AOs={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 cOE;_.sG=function(){var e=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.wL.addEventListener("beforeinstallprompt",function(z){z.preventDefault();e.deferredInstallPrompt=z});
_.wL.addEventListener("appinstalled",function(){e.appInstalledEventFired=!0},{once:!0})};
cOE=function(){if(!_.wL.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.wL.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.wL.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.wL.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.wL.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(e){return"WEB_DISPLAY_MODE_UNKNOWN"}};var zkh=function(){this.syncHeaders=!0},C6h=function(e){var z={},C=[];
"USER_SESSION_ID"in _.tR&&C.push({key:"u",value:_.j5("USER_SESSION_ID")});if(C=_.HPg(C))z.Authorization=C,C=e=e==null?void 0:e.sessionIndex,C===void 0&&(C=Number(_.j5("SESSION_INDEX",0)),C=isNaN(C)?0:C),_.M("voice_search_auth_header_removal")||(z["X-Goog-AuthUser"]=C.toString()),"INNERTUBE_HOST_OVERRIDE"in _.tR||(z["X-Origin"]=window.location.origin),e===void 0&&"DELEGATED_SESSION_ID"in _.tR&&(z["X-Goog-PageId"]=_.j5("DELEGATED_SESSION_ID"));return z};var Ekg={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var rS=_.pd("ytglobal.prefsUserPrefsPrefs_")||{},Fmc;_.lM("ytglobal.prefsUserPrefsPrefs_",rS);_.HE=function(){this.cookieName=_.j5("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.j5("ALT_PREF_COOKIE_DOMAIN","youtube.com");var e=_.E3.get(this.cookieName,void 0);e&&this.parse(e)};
_.Tj=function(){Fmc||(Fmc=new _.HE);return Fmc};
_.HE.prototype.get=function(e,z){VAc(e);fEc(e);e=rS[e]!==void 0?rS[e].toString():null;return e!=null?e:z?z:""};
_.HE.prototype.set=function(e,z){VAc(e);fEc(e);if(z==null)throw Error("Lc");rS[e]=z.toString()};
_.HE.prototype.getFlag=function(e){return!!((S6S("f"+(Math.floor(e/31)+1))||0)&1<<e%31)};
_.$k=function(e,z,C){e="f"+(Math.floor(z/31)+1);z=1<<z%31;var w=S6S(e)||0;w=C?w|z:w&~z;w===0?delete rS[e]:(C=w.toString(16),rS[e]=C.toString())};
_.HE.prototype.remove=function(e){VAc(e);fEc(e);delete rS[e]};
_.HE.prototype.save=function(){var e=!0;_.M("web_secure_pref_cookie_killswitch")&&(e=!1);_.FF(this.cookieName,this.dump(),63072E3,this.cookieDomain,e)};
_.HE.prototype.clear=function(){_.de.clear(rS)};
_.HE.prototype.dump=function(){var e=[],z;for(z in rS)rS.hasOwnProperty(z)&&e.push(z+"="+encodeURIComponent(String(rS[z])));return e.join("&")};
var fEc=function(e){if(/^f([1-9][0-9]*)$/.test(e))throw Error("Mc`"+e);},VAc=function(e){if(!/^\w+$/.test(e))throw Error("Nc`"+e);
},S6S=function(e){e=rS[e]!==void 0?rS[e].toString():null;
return e!=null&&/^[A-Fa-f0-9]+$/.test(e)?parseInt(e,16):null};
_.HE.prototype.parse=function(e){e=decodeURIComponent(e).split("&");for(var z=0;z<e.length;z++){var C=e[z].split("="),w=C[0];(C=C[1])&&(rS[w]=C.toString())}};var tAm={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"},pHL={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},eko={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},jS1={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var bw;_.Un=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Dz=function(e,z,C){return e.addJob(z,0,C)};
_.Un.prototype.addLowPriorityJob=function(e,z){return this.addJob(e,1,z)};
_.Oz=function(e,z,C){return e.addJob(z,2,C)};
_.UQ=function(e,z,C){return e.addJob(z,3,C)};
_.XW=function(e,z,C){return e.addJob(z,4,C)};
bw=function(e){var z=_.pd("yt.scheduler.instance.addImmediateJob");z?z(e):e()};
_.Un.prototype.debounce=function(e,z,C){var w=this,K=0,G=function(){K&&w.cancelJob(K);K=w.addJob(e,z,C);w.cancelDebouncedJobMap.set(G,K)};
return G};
_.Un.prototype.cancelThrottle=function(e){(e=this.cancelThrottledJobMap.get(e))&&e()};var vE=function(){_.Un.apply(this,arguments)},uV6;
_.U(vE,_.Un);_.So=function(){vE.instance||(vE.instance=new vE);return vE.instance};
vE.prototype.addJob=function(e,z,C){C!==void 0&&Number.isNaN(Number(C))&&(C=void 0);var w=_.pd("yt.scheduler.instance.addJob");return w?w(e,z,C):C===void 0?(e(),NaN):_.U3(e,C||0)};
vE.prototype.cancelJob=function(e){if(e===void 0||!Number.isNaN(Number(e))){var z=_.pd("yt.scheduler.instance.cancelJob");z?z(e):_.Wi(e)}};
vE.prototype.start=function(){var e=_.pd("yt.scheduler.instance.start");e&&e()};
vE.prototype.pause=function(){var e=_.pd("yt.scheduler.instance.pause");e&&e()};
uV6=function(){_.So();var e=_.pd("yt.scheduler.instance.setPriorityThreshold");e&&e(4)};
_.c5=_.So();_.d3.prototype.set=function(e,z){z===void 0?this.mechanism.remove(e):this.mechanism.set(e,(0,_.c2)(z))};
_.d3.prototype.get=function(e){try{var z=this.mechanism.get(e)}catch(C){return}if(z!==null)try{return JSON.parse(z)}catch(C){throw"Storage: Invalid value was encountered";}};
_.d3.prototype.remove=function(e){this.mechanism.remove(e)};var IZ=function(e){this.mechanism=e};
_.Tk(IZ,_.d3);var dL4=function(e){this.data=e},DLX=function(e){return e===void 0||e instanceof dL4?e:new dL4(e)};
IZ.prototype.set=function(e,z){IZ.superClass_.set.call(this,e,DLX(z))};
IZ.prototype.getWrapper=function(e){e=IZ.superClass_.get.call(this,e);if(e===void 0||e instanceof Object)return e;throw"Storage: Invalid value was encountered";};
IZ.prototype.get=function(e){if(e=this.getWrapper(e)){if(e=e.data,e===void 0)throw"Storage: Invalid value was encountered";}else e=void 0;return e};_.Tk(D6,IZ);_.iKS=function(e){var z=e.creation;e=e.expiration;return!!e&&e<_.xd()||!!z&&z>_.xd()};
D6.prototype.set=function(e,z,C){if(z=DLX(z)){if(C){if(C<_.xd()){D6.prototype.remove.call(this,e);return}z.expiration=C}z.creation=_.xd()}D6.superClass_.set.call(this,e,z)};
D6.prototype.getWrapper=function(e,z){var C=D6.superClass_.getWrapper.call(this,e);if(C)if(!z&&_.iKS(C))D6.prototype.remove.call(this,e);else return C};var WE=function(){};
WE.prototype.next=function(){return PE};
var PE={done:!0,value:void 0},RZ=function(e){return{value:e,done:!1}};
WE.prototype.__iterator__=function(){return this};
_.NQ4=function(e){if(e instanceof WE)return e;if(typeof e.__iterator__=="function")return e.__iterator__(!1);if(_.B1(e)){var z=0,C=new WE;C.next=function(){for(;;){if(z>=e.length)return PE;if(z in e)return RZ(e[z++]);z++}};
return C}throw Error("Oc");};var sSU=function(e){if(e instanceof LN||e instanceof hI||e instanceof On)return e;if(typeof e.next=="function")return new LN(function(){return e});
if(typeof e[Symbol.iterator]=="function")return new LN(function(){return e[Symbol.iterator]()});
if(typeof e.__iterator__=="function")return new LN(function(){return e.__iterator__()});
throw Error("Pc");},LN=function(e){this.func_=e};
LN.prototype.__iterator__=function(){return new hI(this.func_())};
LN.prototype[Symbol.iterator]=function(){return new On(this.func_())};
LN.prototype.toEs6=function(){return new On(this.func_())};
var hI=function(e){this.JSC$10773_iter_=e};
_.U(hI,WE);hI.prototype.next=function(){return this.JSC$10773_iter_.next()};
hI.prototype[Symbol.iterator]=function(){return new On(this.JSC$10773_iter_)};
hI.prototype.toEs6=function(){return new On(this.JSC$10773_iter_)};
var On=function(e){LN.call(this,function(){return e});
this.JSC$10776_iter_=e};
_.U(On,LN);On.prototype.next=function(){return this.JSC$10776_iter_.next()};var BQU=function(){};var En=function(){};
_.Tk(En,BQU);En.prototype.getCount=function(){for(var e=0,z=_.b(this),C=z.next();!C.done;C=z.next())e++;return e};
En.prototype[Symbol.iterator]=function(){return sSU(this.__iterator__(!0)).toEs6()};
En.prototype.clear=function(){var e=Array.from(this);e=_.b(e);for(var z=e.next();!z.done;z=e.next())this.remove(z.value)};_.Tk(ih,En);_.Y=ih.prototype;_.Y.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var e=this.storage_;if(e)try{e.setItem("__sak","1");e.removeItem("__sak");var z=!0}catch(C){z=C instanceof DOMException&&(C.name==="QuotaExceededError"||C.code===22||C.code===1014||C.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e&&e.length!==0}else z=!1;this.cachedIsStorageAvailable_=z}return this.cachedIsStorageAvailable_};
_.Y.set=function(e,z){F5(this);try{this.storage_.setItem(e,z)}catch(C){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.Y.get=function(e){F5(this);e=this.storage_.getItem(e);if(typeof e!=="string"&&e!==null)throw"Storage mechanism: Invalid value was encountered";return e};
_.Y.remove=function(e){F5(this);this.storage_.removeItem(e)};
_.Y.getCount=function(){F5(this);return this.storage_.length};
_.Y.__iterator__=function(e){F5(this);var z=0,C=this.storage_,w=new WE;w.next=function(){if(z>=C.length)return PE;var K=C.key(z++);if(e)return RZ(K);K=C.getItem(K);if(typeof K!=="string")throw"Storage mechanism: Invalid value was encountered";return RZ(K)};
return w};
_.Y.clear=function(){F5(this);this.storage_.clear()};
_.Y.key=function(e){F5(this);return this.storage_.key(e)};
var F5=function(e){if(e.storage_==null)throw Error("Qc");e.isAvailable()||Ko(Error("Qc"))};_.Tk(cg4,ih);_.Tk(Agm,ih);_.Tk(Nv,En);Nv.prototype.set=function(e,z){this.mechanism_.set(this.JSC$10791_prefix_+e,z)};
Nv.prototype.get=function(e){return this.mechanism_.get(this.JSC$10791_prefix_+e)};
Nv.prototype.remove=function(e){this.mechanism_.remove(this.JSC$10791_prefix_+e)};
Nv.prototype.__iterator__=function(e){var z=this.mechanism_[Symbol.iterator](),C=this,w=new WE;w.next=function(){var K=z.next();if(K.done)return K;for(K=K.value;K.slice(0,C.JSC$10791_prefix_.length)!=C.JSC$10791_prefix_;){K=z.next();if(K.done)return K;K=K.value}return RZ(e?K.slice(C.JSC$10791_prefix_.length):C.mechanism_.get(K))};
return w};_.zE=function(e){this.expiringStorage_=(e=_.s3(e))?new D6(e):null;this.JSC$10795_domain_=document.domain||window.location.hostname};
_.Y=_.zE.prototype;_.Y.hasLocalStorage=function(){return!!this.expiringStorage_};
_.Y.set=function(e,z,C,w){C=C||31104E3;this.remove(e);if(this.hasLocalStorage())try{this.expiringStorage_.set(e,z,Date.now()+C*1E3);return}catch(G){}var K="";if(w)try{K=escape((0,_.c2)(z))}catch(G){return}else K=escape(z);_.FF(e,K,C,this.JSC$10795_domain_)};
_.Y.get=function(e,z){var C=void 0,w=!this.hasLocalStorage();if(!w)try{C=this.expiringStorage_.get(e)}catch(K){w=!0}if(w&&(C=_.E3.get(e,void 0))&&(C=unescape(C),z))try{C=JSON.parse(C)}catch(K){this.remove(e),C=void 0}return C};
_.Y.remove=function(e){this.hasLocalStorage()&&this.expiringStorage_.remove(e);_.NQk(e,"/",this.JSC$10795_domain_)};
_.Y.getCreationTime=function(e){return this.hasLocalStorage()&&(e=(this.expiringStorage_.getWrapper(e)||{}).creation,typeof e==="number")?e:null};var pfm=function(){var e;return function(){e||(e=new _.zE("ytidb"));return e}}();var zAN;_.tJ=[];zAN=!1;var ad8=C7s||wHm;var VH={},tAh=(VH.AUTH_INVALID="No user identifier specified.",VH.EXPLICIT_ABORT="Transaction was explicitly aborted.",VH.IDB_NOT_SUPPORTED="IndexedDB is not supported.",VH.MISSING_INDEX="Index not created.",VH.MISSING_OBJECT_STORES="Object stores not created.",VH.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",VH.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",VH.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",VH.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",VH.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",VH.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",VH.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",VH),fN={},gkC=(fN.AUTH_INVALID="ERROR",fN.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",fN.EXPLICIT_ABORT="IGNORED",
fN.IDB_NOT_SUPPORTED="ERROR",fN.MISSING_INDEX="WARNING",fN.MISSING_OBJECT_STORES="ERROR",fN.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",fN.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",fN.QUOTA_EXCEEDED="WARNING",fN.QUOTA_MAYBE_EXCEEDED="WARNING",fN.UNKNOWN_ABORT="WARNING",fN.INCOMPATIBLE_DB_VERSION="WARNING",fN),S_={},jSa=(S_.AUTH_INVALID=!1,S_.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,S_.EXPLICIT_ABORT=!1,S_.IDB_NOT_SUPPORTED=!1,S_.MISSING_INDEX=!1,S_.MISSING_OBJECT_STORES=!1,S_.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,S_.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,S_.QUOTA_EXCEEDED=!1,S_.QUOTA_MAYBE_EXCEEDED=!0,S_.UNKNOWN_ABORT=!0,S_.INCOMPATIBLE_DB_VERSION=!1,S_),Z6=function(e,z,C,w,K){z=z===void 0?{}:z;C=C===void 0?tAh[e]:C;w=w===void 0?gkC[e]:w;K=K===void 0?jSa[e]:K;_.uh.call(this,C,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:e},z));this.type=e;this.message=C;this.level=w;this.retryable=K;Object.setPrototypeOf(this,Z6.prototype)};
_.U(Z6,_.uh);var ygU=function(e,z){Z6.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:z,foundObjectStores:e},tAh.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ygU.prototype)};
_.U(ygU,Z6);var ozs=function(e,z){var C=Error.call(this);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.index=e;this.objectStore=z;Object.setPrototypeOf(this,ozs.prototype)};
_.U(ozs,Error);var Gqs=["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 Cp=function(e){this.executor=e},zT=function(e){var z=this;
this.state={status:"PENDING"};this.JSC$10823_onFulfilled=[];this.JSC$10823_onRejected=[];e=e.executor;var C=function(K){if(z.state.status==="PENDING"){z.state={status:"FULFILLED",value:K};K=_.b(z.JSC$10823_onFulfilled);for(var G=K.next();!G.done;G=K.next())G=G.value,G()}},w=function(K){if(z.state.status==="PENDING"){z.state={status:"REJECTED",
reason:K};K=_.b(z.JSC$10823_onRejected);for(var G=K.next();!G.done;G=K.next())G=G.value,G()}};
try{e(C,w)}catch(K){w(K)}};
zT.all=function(e){return new zT(new Cp(function(z,C){var w=[],K=e.length;K===0&&z(w);for(var G={i$jscomp$469:0};G.i$jscomp$469<e.length;G={i$jscomp$469:G.i$jscomp$469},++G.i$jscomp$469)zT.resolve(e[G.i$jscomp$469]).then(function(X){return function(J){w[X.i$jscomp$469]=J;K--;K===0&&z(w)}}(G)).catch(function(X){C(X)})}))};
zT.resolve=function(e){return new zT(new Cp(function(z,C){e instanceof zT?e.then(z,C):z(e)}))};
zT.reject=function(e){return new zT(new Cp(function(z,C){C(e)}))};
zT.prototype.then=function(e,z){var C=this,w=e!=null?e:XHE,K=z!=null?z:b4o;return new zT(new Cp(function(G,X){C.state.status==="PENDING"?(C.JSC$10823_onFulfilled.push(function(){cgs(C,C,w,G,X)}),C.JSC$10823_onRejected.push(function(){Agh(C,C,K,G,X)})):C.state.status==="FULFILLED"?cgs(C,C,w,G,X):C.state.status==="REJECTED"&&Agh(C,C,K,G,X)}))};
zT.prototype.catch=function(e){return this.then(void 0,e)};
var cgs=function(e,z,C,w,K){try{if(e.state.status!=="FULFILLED")throw Error("Tc");var G=C(e.state.value);G instanceof zT?ZKa(e,z,G,w,K):w(G)}catch(X){K(X)}},Agh=function(e,z,C,w,K){try{if(e.state.status!=="REJECTED")throw Error("Uc");
var G=C(e.state.reason);G instanceof zT?ZKa(e,z,G,w,K):w(G)}catch(X){K(X)}},ZKa=function(e,z,C,w,K){z===C?K(new TypeError("Vc")):C.then(function(G){G instanceof zT?ZKa(e,z,G,w,K):w(G)},function(G){K(G)})};var u1;u1=window;_.as=u1.ytcsi&&u1.ytcsi.now?u1.ytcsi.now:u1.performance&&u1.performance.timing&&u1.performance.now&&u1.performance.timing.navigationStart?function(){return u1.performance.timing.navigationStart+u1.performance.now()}:function(){return(new Date).getTime()};var Kp=function(e,z){this.JSC$10835_wrapped=e;this.options=z;this.transactionCount=0;this.startedMs=Math.round((0,_.as)());this.hasUnknownAbortedTransaction=!1},dS=function(){return _.M("idb_immediate_commit")},zAL,C7C,Nt,ozC;
Kp.prototype.add=function(e,z,C){return _.Jf(this,[e],{mode:"readwrite",enableRetries:!0,commit:dS()},function(w){return w.objectStore(e).add(z,C)})};
Kp.prototype.clear=function(e){return _.Jf(this,[e],{mode:"readwrite",enableRetries:!0},function(z){return z.objectStore(e).clear()})};
Kp.prototype.close=function(){this.JSC$10835_wrapped.close();var e;((e=this.options)==null?0:e.closed)&&this.options.closed()};
Kp.prototype.count=function(e,z){return _.Jf(this,[e],{mode:"readonly",enableRetries:!0,commit:dS()},function(C){return C.objectStore(e).count(z)})};
var wm=function(e,z,C){e=e.JSC$10835_wrapped.createObjectStore(z,C);return new Dv(e)};
Kp.prototype.delete=function(e,z){return _.Jf(this,[e],{mode:"readwrite",enableRetries:!0,commit:dS()&&!(z instanceof IDBKeyRange)},function(C){return C.objectStore(e).delete(z)})};
var pfh=function(e,z){return _.Jf(e,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore("ResponseStore").index("byInterface").delete(z)})};
Kp.prototype.get=function(e,z){return _.Jf(this,[e],{mode:"readonly",enableRetries:!0,commit:dS()},function(C){return C.objectStore(e).get(z)})};
Kp.prototype.getAll=function(e,z,C){return _.Jf(this,[e],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(e).getAll(z,C)})};
Kp.prototype.put=function(e,z,C){return _.Jf(this,[e],{mode:"readwrite",enableRetries:!0,commit:dS()},function(w){return w.objectStore(e).put(z,C)})};
Kp.prototype.objectStoreNames=function(){return Array.from(this.JSC$10835_wrapped.objectStoreNames)};
_.Jf=function(e,z,C,w){var K,G,X,J,q,T,Q,m,a,n,H,I;return _.k(function(L){switch(L.nextAddress){case 1:var h={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof C==="string"?h.mode=C:Object.assign(h,C);K=h;e.transactionCount++;G=K.enableRetries?3:1;X=0;case 2:if(J){L.jumpTo(4);break}X++;q=Math.round((0,_.as)());_.Iv(L,5);T=e.JSC$10835_wrapped.transaction(z,K.mode);h=L.yield;var E=!!K.commit;var N=new GT(T);E=eAa(N,w,E);return h.call(L,E,7);case 7:return Q=L.yieldResult,m=Math.round((0,_.as)()),
zAL(e,q,m,X,void 0,z.join(),K),L.return(Q);case 5:a=_.O_(L);n=Math.round((0,_.as)());H=Yk7(a,e.JSC$10835_wrapped.name,z.join(),e.JSC$10835_wrapped.version);if((I=H instanceof Z6&&!H.retryable)||X>=G)zAL(e,q,n,X,H,z.join(),K),J=H;L.jumpTo(2);break;case 4:return L.return(Promise.reject(J))}})};
zAL=function(e,z,C,w,K,G,X){z=C-z;K?(K instanceof Z6&&(K.type==="QUOTA_EXCEEDED"||K.type==="QUOTA_MAYBE_EXCEEDED")&&js("QUOTA_EXCEEDED",{dbName:ci(e.JSC$10835_wrapped.name),objectStoreNames:G,transactionCount:e.transactionCount,transactionMode:X.mode}),K instanceof Z6&&K.type==="UNKNOWN_ABORT"&&(C-=e.startedMs,C<0&&C>=2147483648&&(C=0),js("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:G,transactionDuration:z,transactionCount:e.transactionCount,dbDuration:C}),e.hasUnknownAbortedTransaction=!0),
C7C(e,!1,w,G,z,X.tag),_.g3(K)):C7C(e,!0,w,G,z,X.tag)};
C7C=function(e,z,C,w,K,G){js("TRANSACTION_ENDED",{objectStoreNames:w,connectionHasUnknownAbortedTransaction:e.hasUnknownAbortedTransaction,duration:K,isSuccessful:z,tryCount:C,tag:G===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":G})};
Kp.prototype.getName=function(){return this.JSC$10835_wrapped.name};
var Dv=function(e){this.JSC$10850_wrapped=e};
Dv.prototype.add=function(e,z){return wa(this.JSC$10850_wrapped.add(e,z))};
Dv.prototype.autoIncrement=function(){return this.JSC$10850_wrapped.autoIncrement};
Dv.prototype.clear=function(){return wa(this.JSC$10850_wrapped.clear()).then(function(){})};
var KC=function(e,z,C){e.JSC$10850_wrapped.createIndex(z,C,{unique:!1})};
Dv.prototype.count=function(e){return wa(this.JSC$10850_wrapped.count(e))};
var wHh=function(e,z){return qE(e,{query:z},function(C){return C.delete().then(function(){return C.continue()})}).then(function(){})};
Dv.prototype.delete=function(e){return e instanceof IDBKeyRange?wHh(this,e):wa(this.JSC$10850_wrapped.delete(e))};
Dv.prototype.get=function(e){return wa(this.JSC$10850_wrapped.get(e))};
Dv.prototype.getAll=function(e,z){return"getAll"in IDBObjectStore.prototype?wa(this.JSC$10850_wrapped.getAll(e,z)):K6s(this,e,z)};
var K6s=function(e,z,C){var w=[];return qE(e,{query:z},function(K){if(!(C!==void 0&&w.length>=C))return w.push(K.getValue()),K.continue()}).then(function(){return w})};
Dv.prototype.index=function(e){try{return new i1(this.JSC$10850_wrapped.index(e))}catch(z){if(z instanceof Error&&z.name==="NotFoundError")throw new ozs(e,this.JSC$10850_wrapped.name);throw z;}};
Dv.prototype.getName=function(){return this.JSC$10850_wrapped.name};
Dv.prototype.keyPath=function(){return this.JSC$10850_wrapped.keyPath};
Dv.prototype.put=function(e,z){return wa(this.JSC$10850_wrapped.put(e,z))};
var qE=function(e,z,C){e=e.JSC$10850_wrapped.openCursor(z.query,z.direction);return ozC(e).then(function(w){return qkL(w,C)})},GT=function(e){var z=this;
this.JSC$10858_wrapped=e;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(C,w){z.JSC$10858_wrapped.addEventListener("complete",function(){C()});
z.JSC$10858_wrapped.addEventListener("error",function(K){K.currentTarget===K.target&&w(z.JSC$10858_wrapped.error)});
z.JSC$10858_wrapped.addEventListener("abort",function(){var K=z.JSC$10858_wrapped.error;if(K)w(K);else if(!z.aborted){K=Z6;for(var G=z.JSC$10858_wrapped.objectStoreNames,X=[],J=0;J<G.length;J++){var q=G.item(J);if(q===null)throw Error("Wc");X.push(q)}K=new K("UNKNOWN_ABORT",{objectStoreNames:X.join(),dbName:z.JSC$10858_wrapped.db.name,mode:z.JSC$10858_wrapped.mode});w(K)}})})},eAa=function(e,z,C){var w=new Promise(function(K,G){try{var X=z(e);
C&&e.commit();X.then(function(J){K(J)}).catch(G)}catch(J){G(J),e.abort()}});
return Promise.all([w,e.done]).then(function(K){return _.b(K).next().value})};
GT.prototype.abort=function(){this.JSC$10858_wrapped.abort();this.aborted=!0;throw new Z6("EXPLICIT_ABORT");};
GT.prototype.commit=function(){if(!this.aborted){var e,z;(z=(e=this.JSC$10858_wrapped).commit)==null||z.call(e)}};
GT.prototype.objectStore=function(e){e=this.JSC$10858_wrapped.objectStore(e);var z=this.objectStoreCache.get(e);z||(z=new Dv(e),this.objectStoreCache.set(e,z));return z};
var i1=function(e){this.JSC$10860_wrapped=e};
i1.prototype.count=function(e){return wa(this.JSC$10860_wrapped.count(e))};
i1.prototype.delete=function(e){return _.np(this,{query:e},function(z){return z.delete().then(function(){return z.continue()})})};
i1.prototype.get=function(e){return wa(this.JSC$10860_wrapped.get(e))};
i1.prototype.getAll=function(e,z){return"getAll"in IDBIndex.prototype?wa(this.JSC$10860_wrapped.getAll(e,z)):GqC(this,e,z)};
var GqC=function(e,z,C){var w=[];return _.np(e,{query:z},function(K){if(!(C!==void 0&&w.length>=C))return w.push(K.getValue()),K.continue()}).then(function(){return w})};
i1.prototype.keyPath=function(){return this.JSC$10860_wrapped.keyPath};
i1.prototype.unique=function(){return this.JSC$10860_wrapped.unique};
_.np=function(e,z,C){e=e.JSC$10860_wrapped.openCursor(z.query===void 0?null:z.query,z.direction===void 0?"next":z.direction);return ozC(e).then(function(w){return qkL(w,C)})};
Nt=function(e,z){this.request=e;this.cursor=z};
ozC=function(e){return wa(e).then(function(z){return z?new Nt(e,z):null})};
Nt.prototype.continue=function(e){this.cursor.continue(e);return ozC(this.request)};
Nt.prototype.delete=function(){return wa(this.cursor.delete()).then(function(){})};
Nt.prototype.getValue=function(){return this.cursor.value};
Nt.prototype.update=function(e){return wa(this.cursor.update(e))};var sn=function(e,z){this.name=e;this.options=z;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Ykc;
sn.prototype.openDb=function(e,z,C){C=C===void 0?{}:C;return TkE(e,z,C)};
sn.prototype.delete=function(e){e=e===void 0?{}:e;return _.bM(this.name,e)};
Ykc=function(e,z){return new Z6("INCOMPATIBLE_DB_VERSION",{dbName:e.name,oldVersion:e.options.version,newVersion:z})};
_.X0=function(e,z){if(!z)throw ex("openWithToken",ci(e.name));return e.open()};
sn.prototype.open=function(){var e=this;if(!this.isCompatible)throw Ykc(this);if(this.connectionPromise)return this.connectionPromise;var z,C=function(){e.connectionPromise===z&&(e.connectionPromise=void 0)},w={blocking:function(G){G.close()},
closed:C,terminated:C,upgrade:this.options.upgrade},K=function(){var G,X,J,q,T,Q,m,a,n,H;return _.k(function(I){switch(I.nextAddress){case 1:return X=(G=Error().stack)!=null?G:"",_.Iv(I,2),I.yield(e.openDb(e.name,e.options.version,w),4);case 4:for(var L=J=I.yieldResult,h=e.options,E=[],N=_.b(Object.keys(h.objectStores)),D=N.next();!D.done;D=N.next()){D=D.value;var g=h.objectStores[D],y=g.removedAtVersion===void 0?Number.MAX_VALUE:g.removedAtVersion;!(L.JSC$10835_wrapped.version>=g.addedAtVersion)||
L.JSC$10835_wrapped.version>=y||L.JSC$10835_wrapped.objectStoreNames.contains(D)||E.push(D)}q=E;if(q.length===0){I.jumpTo(5);break}T=Object.keys(e.options.objectStores);Q=J.objectStoreNames();if(e.timesReopenedToFixMissingObjectStore<_.n0("ytidb_reopen_db_retries",0))return e.timesReopenedToFixMissingObjectStore++,J.close(),_.g3(new Z6("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:e.name,expectedObjectStores:T,foundObjectStores:Q})),I.return(K());if(!(e.timesDeletedToFixMissingObjectStore<_.n0("ytidb_remake_db_retries",
1))){I.jumpTo(6);break}e.timesDeletedToFixMissingObjectStore++;return I.yield(e.delete(),7);case 7:return _.g3(new Z6("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:e.name,expectedObjectStores:T,foundObjectStores:Q})),I.return(K());case 6:throw new ygU(Q,T);case 5:return I.return(J);case 2:m=_.O_(I);if(m instanceof DOMException?m.name!=="VersionError":"DOMError"in self&&m instanceof DOMError?m.name!=="VersionError":!(m instanceof Object&&"message"in m)||m.message!=="An attempt was made to open a database using a lower version than the existing version."){I.jumpTo(8);
break}return I.yield(e.openDb(e.name,void 0,Object.assign({},w,{upgrade:void 0})),9);case 9:a=I.yieldResult;n=a.JSC$10835_wrapped.version;if(e.options.version!==void 0&&n>e.options.version+1)throw a.close(),e.isCompatible=!1,Ykc(e,n);return I.return(a);case 8:throw C(),m instanceof Error&&!_.M("ytidb_async_stack_killswitch")&&(m.stack=m.stack+"\n"+X.substring(X.indexOf("\n")+1)),Yk7(m,e.name,"",(H=e.options.version)!=null?H:-1);}})};
return this.connectionPromise=z=K()};var $qh=new sn("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(e,z){z(1)&&wm(e,"databases",{keyPath:"actualName"})}});var rO4,nzg=new function(){}(new function(){});new _.x5;var b4g=function(e,z){sn.call(this,e,z);this.options=z;yj(e)};
_.U(b4g,sn);var O4m=function(e,z){var C;return function(){C||(C=new b4g(e,z));return C}};
b4g.prototype.openDb=function(e,z,C){C=C===void 0?{}:C;return(this.options.shared?W6o:IdN)(e,z,Object.assign({},C))};
b4g.prototype.delete=function(e){e=e===void 0?{}:e;return(this.options.shared?hA5:P7E)(this.name,e)};var XHU={},Ezk=m0("ytGcfConfig",{objectStores:(XHU.coldConfigStore={addedAtVersion:1},XHU.hotConfigStore={addedAtVersion:1},XHU),shared:!1,upgrade:function(e,z){z(1)&&(KC(wm(e,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),KC(wm(e,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var JOU=function(){_.Sn.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var e=_.pd("yt.gcf.config.hotUpdateCallbacks");e?(this.localHotConfigJobQueue=[].concat(_.s_(e)),this.sharedHotConfigJobQueue=e):(this.sharedHotConfigJobQueue=[],_.lM("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.U(JOU,_.Sn);JOU.prototype.disposeInternal=function(){for(var e=_.b(this.localHotConfigJobQueue),z=e.next();!z.done;z=e.next()){var C=this.sharedHotConfigJobQueue;z=C.indexOf(z.value);z>=0&&C.splice(z,1)}this.localHotConfigJobQueue.length=0;_.Sn.prototype.disposeInternal.call(this)};var ik=function(){var e=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new JOU;this.TEST_ONLY={initializeConfigDb:function(){e.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return e.coldGlobalConfigGroup},
setHotConfigGroup:function(z){kqC(e,z)},
setHotHashData:function(z){e.setHotHashData(z)},
setColdConfigGroup:function(z){qk6(e,z)},
getColdHashData:function(){return e.coldHashData},
getHotHashData:function(){return e.hotHashData},
getHotConfigGroup:function(){return e.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return xq4()},
getExportedHotConfigGroup:function(){return BE()},
getExportedColdHashData:function(){return _.pd("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.pd("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){TkU(e)},
resetInstance:function(){e.setHotHashData(void 0);$qS(e);delete ik.instance},
setDebounceTimer:function(z){e.debounceTimer=z},
getDebounceTimer:function(){return e.debounceTimer}}},ldX=function(){if(!ik.instance){var e=new ik;
ik.instance=e}return ik.instance},adT=function(e){var z;
_.k(function(C){if(C.nextAddress==1)return _.M("start_client_gcf")||_.M("delete_gcf_config_db")?_.M("start_client_gcf")?C.yield(_.QZ(),3):C.jumpTo(2):C.return();C.nextAddress!=2&&((z=C.yieldResult)&&_.Ss()&&!_.M("delete_gcf_config_db")?(e.isConfigDbInitialized=!0,TkU(e)):(Qua(e),mqL(e)));return _.M("delete_gcf_config_db")?C.yield(dqo(),0):C.jumpTo(0)})},NU=function(){var e;
return(e=BE())!=null?e:_.j5("RAW_HOT_CONFIG_GROUP")},nzX=function(e){var z,C,w,K,G,X;
return _.k(function(J){switch(J.nextAddress){case 1:if(e.hotGlobalConfigGroup)return J.return(BE());if(!e.isConfigDbInitialized)return z=ex("getHotConfig IDB not initialized"),_.es(z),J.return(Promise.reject(z));C=TT();w=_.j5("TIME_CREATED_MS");if(!C){K=ex("getHotConfig token error");_.es(K);J.jumpTo(2);break}return J.yield(unh(C),3);case 3:if((G=J.yieldResult)&&G.timestamp>w)return kqC(e,G.config),e.setHotHashData(G.hashData),J.return(BE());case 2:mqL(e);if(!(C&&e.hotGlobalConfigGroup&&e.hotHashData)){J.jumpTo(4);
break}return J.yield(VJ5(e.hotGlobalConfigGroup,e.hotHashData,C,w),4);case 4:return e.hotGlobalConfigGroup?J.return(BE()):(X=new _.uh("Config not available in ytConfig"),_.es(X),J.return(Promise.reject(X)))}})},rOs=function(e){var z,C,w,K,G,X;
return _.k(function(J){switch(J.nextAddress){case 1:if(e.coldGlobalConfigGroup)return J.return(xq4());if(!e.isConfigDbInitialized)return z=ex("getColdConfig IDB not initialized"),_.es(z),J.return(Promise.reject(z));C=TT();w=_.j5("TIME_CREATED_MS");if(!C){K=ex("getColdConfig");_.es(K);J.jumpTo(2);break}return J.yield(Sko(C),3);case 3:if((G=J.yieldResult)&&G.timestamp>w)return qk6(e,G.config),MJY(e,G.configData),$qS(e,G.hashData),J.return(xq4());case 2:Qua(e);if(!(C&&e.coldGlobalConfigGroup&&e.coldHashData&&
e.configData)){J.jumpTo(4);break}return J.yield(fdg(e.coldGlobalConfigGroup,e.coldHashData,e.configData,C,w),4);case 4:return e.coldGlobalConfigGroup?J.return(xq4()):(X=new _.uh("Config not available in ytConfig"),_.es(X),J.return(Promise.reject(X)))}})},TkU=function(e){if(!e.hotGlobalConfigGroup||!e.coldGlobalConfigGroup){if(!TT()){var z=ex("scheduleGetConfigs");
_.es(z)}e.initJob||(e.initJob=_.c5.addLowPriorityJob(function(){return _.k(function(C){switch(C.nextAddress){case 1:return _.Iv(C,2),C.yield(nzX(e),4);case 4:_.Yj(C,3);break;case 2:_.O_(C);case 3:return _.Iv(C,5),C.yield(rOs(e),7);case 7:_.Yj(C,6);break;case 5:_.O_(C);case 6:e.initJob&&(e.initJob=0),_.E_(C)}})},100))}},feg=function(e,z,C){var w,K,G;
return _.k(function(X){switch(X.nextAddress){case 1:if(!_.M("start_client_gcf")){X.jumpTo(0);break}C&&kqC(e,C);e.setHotHashData(z);w=TT();if(!w){X.jumpTo(3);break}if(C){X.jumpTo(4);break}return X.yield(unh(w),5);case 5:K=X.yieldResult,C=(G=K)==null?void 0:G.config;case 4:return X.yield(VJ5(C,z,w),3);case 3:if(C)for(var J=C,q=_.b(e.configUpdateService.sharedHotConfigJobQueue),T=q.next();!T.done;T=q.next())T=T.value,T(J);_.E_(X)}})},STL=function(e,z,C){var w,K,G,X;
return _.k(function(J){if(J.nextAddress==1){if(!_.M("start_client_gcf"))return J.jumpTo(0);$qS(e,z);return(w=TT())?C?J.jumpTo(4):J.yield(Sko(w),5):J.jumpTo(0)}J.nextAddress!=4&&(K=J.yieldResult,C=(G=K)==null?void 0:G.config);if(!C)return J.jumpTo(0);X=C.configData;return J.yield(fdg(C,z,X,w),0)})},KJg=function(){var e=ldX(),z=(0,_.as)()-e.debounceTimer;
if(!(e.debounceTimer!==0&&z<_.n0("send_config_hash_timer"))){z=_.pd("yt.gcf.config.coldConfigData");var C=_.pd("yt.gcf.config.hotHashData"),w=_.pd("yt.gcf.config.coldHashData");z&&C&&w&&(e.debounceTimer=(0,_.as)());return{coldConfigData:z,hotHashData:C,coldHashData:w}}},Qua=function(e){qk6(e,_.j5("RAW_COLD_CONFIG_GROUP"));
$qS(e,_.j5("SERIALIZED_COLD_HASH_DATA"));var z;MJY(e,(z=e.coldGlobalConfigGroup)==null?void 0:z.configData)},mqL=function(e){kqC(e,_.j5("RAW_HOT_CONFIG_GROUP"));
e.setHotHashData(_.j5("SERIALIZED_HOT_HASH_DATA"))},kqC=function(e,z){e.hotGlobalConfigGroup=z;
_.lM("yt.gcf.config.hotConfigGroup",e.hotGlobalConfigGroup||null)},qk6=function(e,z){e.coldGlobalConfigGroup=z;
_.lM("yt.gcf.config.coldConfigGroup",e.coldGlobalConfigGroup||null)};
ik.prototype.setHotHashData=function(e){this.hotHashData=e;_.lM("yt.gcf.config.hotHashData",this.hotHashData||null)};
var $qS=function(e,z){e.coldHashData=z;_.lM("yt.gcf.config.coldHashData",e.coldHashData||null)},MJY=function(e,z){e.configData=z;
_.lM("yt.gcf.config.coldConfigData",e.configData||null)},BE=function(){return _.pd("yt.gcf.config.hotConfigGroup")},xq4=function(){return _.pd("yt.gcf.config.coldConfigGroup")};var Lp={},H4g=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Lp.assign=function(e){for(var z=Array.prototype.slice.call(arguments,1);z.length;){var C=z.shift();if(C){if(typeof C!=="object")throw new TypeError("Zc`"+C);for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&(e[w]=C[w])}}return e};
Lp.shrinkBuf=function(e,z){if(e.length===z)return e;if(e.subarray)return e.subarray(0,z);e.length=z;return e};
var Uq4={arraySet:function(e,z,C,w,K){if(z.subarray&&e.subarray)e.set(z.subarray(C,C+w),K);else for(var G=0;G<w;G++)e[K+G]=z[C+G]},
flattenChunks:function(e){var z,C;var w=C=0;for(z=e.length;w<z;w++)C+=e[w].length;var K=new Uint8Array(C);w=C=0;for(z=e.length;w<z;w++){var G=e[w];K.set(G,C);C+=G.length}return K}},vzo={arraySet:function(e,z,C,w,K){for(var G=0;G<w;G++)e[K+G]=z[C+G]},
flattenChunks:function(e){return[].concat.apply([],e)}};
Lp.setTyped=function(){H4g?(Lp.Buf8=Uint8Array,Lp.Buf16=Uint16Array,Lp.Buf32=Int32Array,Lp.assign(Lp,Uq4)):(Lp.Buf8=Array,Lp.Buf16=Array,Lp.Buf32=Array,Lp.assign(Lp,vzo))};
Lp.setTyped();var IdL=!0;try{new Uint8Array(1)}catch(e){IdL=!1}
var uNg=function(e){var z,C,w=e.length,K=0;for(z=0;z<w;z++){var G=e.charCodeAt(z);if((G&64512)===55296&&z+1<w){var X=e.charCodeAt(z+1);(X&64512)===56320&&(G=65536+(G-55296<<10)+(X-56320),z++)}K+=G<128?1:G<2048?2:G<65536?3:4}var J=new Lp.Buf8(K);for(z=C=0;C<K;z++)G=e.charCodeAt(z),(G&64512)===55296&&z+1<w&&(X=e.charCodeAt(z+1),(X&64512)===56320&&(G=65536+(G-55296<<10)+(X-56320),z++)),G<128?J[C++]=G:(G<2048?J[C++]=192|G>>>6:(G<65536?J[C++]=224|G>>>12:(J[C++]=240|G>>>18,J[C++]=128|G>>>12&63),J[C++]=
128|G>>>6&63),J[C++]=128|G&63);return J};var v55={};v55=function(e,z,C,w){var K=e&65535|0;e=e>>>16&65535|0;for(var G;C!==0;){G=C>2E3?2E3:C;C-=G;do K=K+z[w++]|0,e=e+K|0;while(--G);K%=65521;e%=65521}return K|e<<16|0};for(var sR={},tI,W6g=[],P7U=0;P7U<256;P7U++){tI=P7U;for(var RAc=0;RAc<8;RAc++)tI=tI&1?3988292384^tI>>>1:tI>>>1;W6g[P7U]=tI}sR=function(e,z,C,w){C=w+C;for(e^=-1;w<C;w++)e=e>>>8^W6g[(e^z[w])&255];return e^-1};var F0={};F0={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 TPh=[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],lcL=[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],SG8=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],HWo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],uM=Array(576);Is(uM);var da=Array(60);Is(da);var OR=Array(512);Is(OR);var hf=Array(256);Is(hf);var $pg=Array(29);Is($pg);var Qg5=Array(30);Is(Qg5);var FJE,VB1,fco,E5h=!1;var yZ;
yZ=[new jx(0,0,0,0,function(e,z){var C=65535;for(C>e.pending_buf_size-5&&(C=e.pending_buf_size-5);;){if(e.lookahead<=1){B5(e);if(e.lookahead===0&&z===0)return 1;if(e.lookahead===0)break}e.strstart+=e.lookahead;e.lookahead=0;var w=e.block_start+C;if(e.strstart===0||e.strstart>=w)if(e.lookahead=e.strstart-w,e.strstart=w,DI(e,!1),e.strm.avail_out===0)return 1;if(e.strstart-e.block_start>=e.w_size-262&&(DI(e,!1),e.strm.avail_out===0))return 1}e.insert=0;if(z===4)return DI(e,!0),e.strm.avail_out===0?3:
4;e.strstart>e.block_start&&DI(e,!1);return 1}),
new jx(4,4,8,4,Ick),new jx(4,5,16,8,Ick),new jx(4,6,32,32,Ick),new jx(4,4,16,16,tf),new jx(8,16,32,32,tf),new jx(8,16,128,128,tf),new jx(8,32,128,256,tf),new jx(32,128,258,1024,tf),new jx(32,258,258,4096,tf)];var OWo={};OWo=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 dp1=Object.prototype.toString;
hkN.prototype.push=function(e,z){var C=this.strm,w=this.options.chunkSize;if(this.ended)return!1;var K=z===~~z?z:z===!0?4:0;typeof e==="string"?C.input=uNg(e):dp1.call(e)==="[object ArrayBuffer]"?C.input=new Uint8Array(e):C.input=e;C.next_in=0;C.avail_in=C.input.length;do{C.avail_out===0&&(C.output=new Lp.Buf8(w),C.next_out=0,C.avail_out=w);e=LJs(C,K);if(e!==1&&e!==0)return L6C(this,e),this.ended=!0,!1;if(C.avail_out===0||C.avail_in===0&&(K===4||K===2))if(this.options.to==="string"){var G=Lp.shrinkBuf(C.output,
C.next_out);z=G;G=G.length;if(G<65537&&(z.subarray&&IdL||!z.subarray))z=String.fromCharCode.apply(null,Lp.shrinkBuf(z,G));else{for(var X="",J=0;J<G;J++)X+=String.fromCharCode(z[J]);z=X}this.chunks.push(z)}else z=Lp.shrinkBuf(C.output,C.next_out),this.chunks.push(z)}while((C.avail_in>0||C.avail_out===0)&&e!==1);if(K===4)return(C=this.strm)&&C.state?(w=C.state.status,w!==42&&w!==69&&w!==73&&w!==91&&w!==103&&w!==113&&w!==666?e=VZ(C,-2):(C.state=null,e=w===113?VZ(C,-3):0)):e=-2,L6C(this,e),this.ended=
!0,e===0;K===2&&(L6C(this,0),C.avail_out=0);return!0};
var L6C=function(e,z){z===0&&(e.result=e.options.to==="string"?e.chunks.join(""):Lp.flattenChunks(e.chunks));e.chunks=[];e.err=z;e.msg=e.strm.msg};var hAY=typeof TextEncoder!=="undefined"?new TextEncoder:null,$Ho=hAY?function(e){return hAY.encode(e)}:function(e){e=_.V4(e);
for(var z=new Uint8Array(e.length),C=0;C<z.length;C++)z[C]=e[C];return z};var w7L={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},oRo={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var gS=function(e,z){this.version=e;this.args=z};
gS.prototype.serialize=function(){return{version:this.version,args:this.args}};var BP7=function(e,z){this.topic=e;this.dataClass=z};
BP7.prototype.toString=function(){return this.topic};var O4h=_.pd("ytPubsub2Pubsub2Instance")||new _.hJ;_.hJ.prototype.subscribe=_.hJ.prototype.subscribe;_.hJ.prototype.unsubscribeByKey=_.hJ.prototype.unsubscribeByKey;_.hJ.prototype.publish=_.hJ.prototype.publish;_.hJ.prototype.clear=_.hJ.prototype.clear;_.lM("ytPubsub2Pubsub2Instance",O4h);var sgE=_.pd("ytPubsub2Pubsub2SubscribedKeys")||{};_.lM("ytPubsub2Pubsub2SubscribedKeys",sgE);var g54=_.pd("ytPubsub2Pubsub2TopicToKeys")||{};_.lM("ytPubsub2Pubsub2TopicToKeys",g54);
var tBL=_.pd("ytPubsub2Pubsub2IsAsync")||{};_.lM("ytPubsub2Pubsub2IsAsync",tBL);_.lM("ytPubsub2Pubsub2SkipSubKey",null);var wI8=void 0,zdh=void 0;var k85=_.n0("max_body_size_to_compress",5E5),qx4=_.n0("min_body_size_to_compress",500),ZI=!0,mH8=0,pp=0,Q38=_.n0("compression_performance_threshold_lr",250),n$s=_.n0("slow_compressions_before_abandon_count",4),G84=!1,YxL=new Map,TOE=1,xHs=!0;_.Tk(eu,rKL);eu.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 Ez4=function(e,z,C){C||(C=0);var w=e.W_;if(typeof z==="string")for(var K=0;K<16;K++)w[K]=z.charCodeAt(C)<<24|z.charCodeAt(C+1)<<16|z.charCodeAt(C+2)<<8|z.charCodeAt(C+3),C+=4;else for(K=0;K<16;K++)w[K]=z[C]<<24|z[C+1]<<16|z[C+2]<<8|z[C+3],C+=4;for(z=16;z<80;z++)C=w[z-3]^w[z-8]^w[z-14]^w[z-16],w[z]=(C<<1|C>>>31)&4294967295;z=e.chain_[0];C=e.chain_[1];K=e.chain_[2];for(var G=e.chain_[3],X=e.chain_[4],J,q,T=0;T<80;T++)T<40?T<20?(J=G^C&(K^G),q=1518500249):(J=C^K^G,q=1859775393):T<60?(J=C&K|G&(C|K),
q=2400959708):(J=C^K^G,q=3395469782),J=(z<<5|z>>>27)+J+X+q+w[T]&4294967295,X=G,G=K,K=(C<<30|C>>>2)&4294967295,C=z,z=J;e.chain_[0]=e.chain_[0]+z&4294967295;e.chain_[1]=e.chain_[1]+C&4294967295;e.chain_[2]=e.chain_[2]+K&4294967295;e.chain_[3]=e.chain_[3]+G&4294967295;e.chain_[4]=e.chain_[4]+X&4294967295};
eu.prototype.update=function(e,z){if(e!=null){z===void 0&&(z=e.length);for(var C=z-this.blockSize,w=0,K=this.buf_,G=this.inbuf_;w<z;){if(G==0)for(;w<=C;)Ez4(this,e,w),w+=this.blockSize;if(typeof e==="string")for(;w<z;){if(K[G]=e.charCodeAt(w),++G,++w,G==this.blockSize){Ez4(this,K);G=0;break}}else for(;w<z;)if(K[G]=e[w],++G,++w,G==this.blockSize){Ez4(this,K);G=0;break}}this.inbuf_=G;this.total_+=z}};
eu.prototype.digest=function(){var e=[],z=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var C=this.blockSize-1;C>=56;C--)this.buf_[C]=z&255,z/=256;Ez4(this,this.buf_);for(C=z=0;C<5;C++)for(var w=24;w>=0;w-=8)e[z]=this.chain_[C]>>w&255,++z;return e};var v$4;var yH=function(e){var z=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(Q){z.databaseToken=Q},
triggerThrottle:function(){z.throttledSend()},
cancelThrottle:function(){z.cancelThrottledSend()},
immediateSend:function(Q){return _.k(function(m){return m.yield(z.immediateSend(Q),0)})},
requestWithinAgeLimit:function(Q,m){return z.requestWithinAgeLimit(Q,m)},
retryQueuedRequests:function(){z.retryQueuedRequests()}};
var C;this.throttleTimeout=(C=e.throttleTimeout)!=null?C:100;var w;this.retryMaxAttempts=(w=e.retryMaxAttempts)!=null?w:1;var K;this.requestAgeLimitMs=(K=e.requestAgeLimitMs)!=null?K:2592E6;var G;this.queuedRequestAgeLimitMs=(G=e.queuedRequestAgeLimitMs)!=null?G:12E4;var X;this.retryDelayMs=(X=e.retryDelayMs)!=null?X:5E3;var J;this.databaseToken=(J=e.databaseToken)!=null?J:void 0;this.enableCleaning=!!e.enableCleaning;var q;this.cleaningRate=(q=e.cleaningRate)!=null?q:.1;var T;this.potentialEsfErrorLimit=
(T=e.potentialEsfErrorLimit)!=null?T:10;e.handleError&&(this.handleError=e.handleError);e.handleWarning&&(this.handleWarning=e.handleWarning);e.disableYtIdbTransactions&&(this.disableYtIdbTransactions=e.disableYtIdbTransactions);e.bypassDbTokenDependency&&(this.bypassDbTokenDependency=e.bypassDbTokenDependency);this.getBooleanFlag=e.getBooleanFlag;this.jobManager=e.jobManager;this.logsStore=e.logsStore;this.networkManager=e.networkManager;this.sendFn=e.sendFn;this.onlineEvent=e.onlineEvent;this.offlineEvent=
e.offlineEvent;j_(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&F6s(this)},F6s=function(e){j_(e)&&!e.disableYtIdbTransactions&&(e.initialized=!0,e.enableCleaning&&Math.random()<=e.cleaningRate&&e.logsStore.cleanLogsStore(e.databaseToken),e.retryQueuedRequests(),e.networkManager.isNetworkAvailable()&&e.throttledSend(),e.networkManager.listen(e.onlineEvent,e.throttledSend.bind(e)),e.networkManager.listen(e.offlineEvent,e.cancelThrottledSend.bind(e)))};
_.Y=yH.prototype;_.Y.writeThenSend=function(e,z){var C=this;z=z===void 0?{}:z;if(j_(this)&&this.initialized){var w={url:e,options:z,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(w,this.databaseToken).then(function(K){w.id=K;C.networkManager.isNetworkAvailable()&&C.immediateSend(w)}).catch(function(K){C.immediateSend(w);
VJY(C,K)})}else this.sendFn(e,z)};
_.Y.sendThenWrite=function(e,z,C){var w=this;z=z===void 0?{}:z;if(j_(this)&&this.initialized){var K={url:e,options:z,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(K.skipRetry=C);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!K.skipRetry){if(!K.skipRetry){var G=z.onError?z.onError:function(){};
z.onError=function(X,J){return _.k(function(q){if(q.nextAddress==1)return q.yield(w.logsStore.set(K,w.databaseToken).catch(function(T){VJY(w,T)}),2);
G(X,J);_.E_(q)})}}this.sendFn(e,z,K.skipRetry)}else this.logsStore.set(K,this.databaseToken).catch(function(X){w.sendFn(e,z,K.skipRetry);
VJY(w,X)})}else this.sendFn(e,z,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&C)};
_.Y.sendAndWrite=function(e,z){var C=this;z=z===void 0?{}:z;if(j_(this)&&this.initialized){var w={url:e,options:z,timestamp:this.now(),status:"NEW",sendCount:0},K=!1,G=z.onSuccess?z.onSuccess:function(){};
w.options.onSuccess=function(X,J){w.id!==void 0?C.logsStore.deleteRequest(w.id,C.databaseToken):K=!0;C.networkManager.networkStatusHint&&C.getBooleanFlag&&C.getBooleanFlag("vss_network_hint")&&C.networkManager.networkStatusHint(!0);G(X,J)};
this.sendFn(w.url,w.options,void 0,!0);this.logsStore.set(w,this.databaseToken).then(function(X){w.id=X;K&&C.logsStore.deleteRequest(w.id,C.databaseToken)}).catch(function(X){VJY(C,X)})}else this.sendFn(e,z,void 0,!0)};
_.Y.throttledSend=function(){var e=this;if(!j_(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(e.logsStore.getMostRecentByStatus("NEW",e.databaseToken),2);if(C.nextAddress!=3)return z=C.yieldResult,z?C.yield(e.immediateSend(z),3):(e.cancelThrottledSend(),C.return());e.intervalJob&&(e.intervalJob=0,e.throttledSend());_.E_(C)})},this.throttleTimeout))};
_.Y.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.Y.immediateSend=function(e){var z=this,C;return _.k(function(w){switch(w.nextAddress){case 1:if(!j_(z))throw Error("cd");if(e.id===void 0){w.jumpTo(2);break}return w.yield(z.logsStore.markAsQueued(e.id,z.databaseToken),3);case 3:(C=w.yieldResult)||z.handleWarning(Error("dd"));case 2:if(z.requestWithinAgeLimit(e,z.requestAgeLimitMs)){w.jumpTo(4);break}z.handleWarning(Error("ed"));if(e.id===void 0){w.jumpTo(5);break}return w.yield(z.logsStore.deleteRequest(e.id,z.databaseToken),5);case 5:return w.return();
case 4:e.skipRetry||(e=fdX(z,e));if(!e){w.jumpTo(0);break}if(!e.skipRetry||e.id===void 0){w.jumpTo(8);break}return w.yield(z.logsStore.deleteRequest(e.id,z.databaseToken),8);case 8:z.sendFn(e.url,e.options,!!e.skipRetry),_.E_(w)}})};
var fdX=function(e,z){if(!j_(e))throw Error("fd");var C=z.options.onError?z.options.onError:function(){};
z.options.onError=function(K,G){var X,J,q,T;return _.k(function(Q){switch(Q.nextAddress){case 1:X=Lih(G);(J=hd8(G))&&e.getBooleanFlag&&e.getBooleanFlag("web_enable_error_204")&&e.handleError(Error("gd"),z.url,G);if(!(e.getBooleanFlag&&e.getBooleanFlag("nwl_consider_error_code")&&X||e.getBooleanFlag&&!e.getBooleanFlag("nwl_consider_error_code")&&e.potentialEsfErrorCounter<=e.potentialEsfErrorLimit)){Q.jumpTo(2);break}if(!e.networkManager.sendNetworkCheckRequest){Q.jumpTo(3);break}return Q.yield(e.networkManager.sendNetworkCheckRequest(),
3);case 3:if(e.networkManager.isNetworkAvailable()){Q.jumpTo(2);break}C(K,G);if(!e.getBooleanFlag||!e.getBooleanFlag("nwl_consider_error_code")||((q=z)==null?void 0:q.id)===void 0){Q.jumpTo(6);break}return Q.yield(e.logsStore.resetRequest(z.id,e.databaseToken,!1),6);case 6:return Q.return();case 2:if(e.getBooleanFlag&&e.getBooleanFlag("nwl_consider_error_code")&&!X&&e.potentialEsfErrorCounter>e.potentialEsfErrorLimit)return Q.return();e.potentialEsfErrorCounter++;if(((T=z)==null?void 0:T.id)===void 0){Q.jumpTo(8);
break}return z.sendCount<e.retryMaxAttempts?Q.yield(e.logsStore.resetRequest(z.id,e.databaseToken,!0,J?!1:void 0),12):Q.yield(e.logsStore.deleteRequest(z.id,e.databaseToken),8);case 12:e.jobManager.addLowPriorityJob(function(){e.networkManager.isNetworkAvailable()&&e.throttledSend()},e.retryDelayMs);
case 8:C(K,G),_.E_(Q)}})};
var w=z.options.onSuccess?z.options.onSuccess:function(){};
z.options.onSuccess=function(K,G){var X;return _.k(function(J){if(J.nextAddress==1)return((X=z)==null?void 0:X.id)===void 0?J.jumpTo(2):J.yield(e.logsStore.deleteRequest(z.id,e.databaseToken),2);e.networkManager.networkStatusHint&&e.getBooleanFlag&&e.getBooleanFlag("vss_network_hint")&&e.networkManager.networkStatusHint(!0);w(K,G);_.E_(J)})};
return z};
yH.prototype.requestWithinAgeLimit=function(e,z){e=e.timestamp;return this.now()-e>=z?!1:!0};
yH.prototype.retryQueuedRequests=function(){var e=this;if(!j_(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(z){z&&!e.requestWithinAgeLimit(z,e.queuedRequestAgeLimitMs)?e.jobManager.addLowPriorityJob(function(){return _.k(function(C){if(C.nextAddress==1)return z.id===void 0?C.jumpTo(2):C.yield(e.logsStore.resetRequest(z.id,e.databaseToken),2);e.retryQueuedRequests();_.E_(C)})}):e.networkManager.isNetworkAvailable()&&e.throttledSend()})};
var VJY=function(e,z){e.writeError&&!e.networkManager.isNetworkAvailable()?e.writeError(z):e.handleError(z)},j_=function(e){return!!e.databaseToken||e.bypassDbTokenDependency};var OPN;var DTN={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532};var Skg={},NON=m0("ServiceWorkerLogsDatabase",{objectStores:(Skg.SWHealthLog={addedAtVersion:1},Skg),shared:!0,upgrade:function(e,z){z(1)&&KC(wm(e,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var AKL={},cKs=0;var z94;var cE=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Xe=function(){if(!cE.instance){var e=_.pd("yt.networkRequestMonitor.instance")||new cE;
_.lM("yt.networkRequestMonitor.instance",e);cE.instance=e}return cE.instance};
cE.prototype.requestComplete=function(e,z){z&&(this.anyRequestHasSucceeded=!0);e=this.removeParams(e);this.requestMap.get(e)||this.requestMap.set(e,z)};
cE.prototype.isEndpointCFR=function(e){e=this.removeParams(e);return(e=this.requestMap.get(e))?!1:e===!1&&this.anyRequestHasSucceeded?!0:null};
cE.prototype.removeParams=function(e){return e.split("?")[0]};
cE.prototype.removeParams=cE.prototype.removeParams;cE.prototype.isEndpointCFR=cE.prototype.isEndpointCFR;cE.prototype.requestComplete=cE.prototype.requestComplete;cE.getInstance=Xe;var AI=function(e){_.N3.call(this);var z=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=e!=null?e:{addLowPriorityJob:function(K,G){return setTimeout(K,G)},
cancelJob:function(K){clearTimeout(K)}};
var C,w;this.isOnline=(w=(C=window.navigator)==null?void 0:C.onLine)!=null?w:!0;this.onNavigatorChange=function(){return _.k(function(K){return K.yield(unS(z),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||dqg(this)};
_.U(AI,_.N3);AI.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete AI.instance};
AI.prototype.isNetworkAvailable=function(){return this.isOnline};
var dqg=function(e){e.pollingJob=e.jobManager.addLowPriorityJob(function(){var z;return _.k(function(C){if(C.nextAddress==1)return e.isOnline?((z=window.navigator)==null?0:z.onLine)?C.jumpTo(3):C.yield(unS(e),3):C.yield(unS(e),3);dqg(e);_.E_(C)})},3E4)},unS=function(e,z){return e.networkRequestPromise?e.networkRequestPromise:e.networkRequestPromise=new Promise(function(C){var w,K,G,X;
return _.k(function(J){switch(J.nextAddress){case 1:return w=window.AbortController?new window.AbortController:void 0,G=(K=w)==null?void 0:K.signal,X=!1,_.Iv(J,2,3),w&&(e.abortTimeoutKey=e.jobManager.addLowPriorityJob(function(){w.abort()},z||2E4)),J.yield(fetch("/generate_204",{method:"HEAD",
signal:G}),5);case 5:X=!0;case 3:_.PZ(J);e.networkRequestPromise=void 0;e.abortTimeoutKey&&(e.jobManager.cancelJob(e.abortTimeoutKey),e.abortTimeoutKey=0);X!==e.isOnline&&(e.isOnline=X,e.isOnline?e.dispatchEvent("networkstatus-online"):e.dispatchEvent("networkstatus-offline"));C(X);_.hn(J,0);break;case 2:_.O_(J),X=!1,J.jumpTo(3)}})})};var Zv=function(){_.N3.call(this);var e=this;this.shouldFlushErrors=!1;AI.instance||(AI.instance=new AI(_.c5));this.sharedNetworkStatusManager=AI.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(e.shouldFlushErrors&&_.M("offline_error_handling")){var z=CAg().get("errors",!0);if(z){for(var C in z)if(z[C]){var w=new _.uh(C,"sent via offline_errors");w.name=z[C].name;w.stack=z[C].stack;w.level=z[C].level;_.AR(w)}CAg().set("errors",{},2592E3,!0)}}})};
_.U(Zv,_.N3);var Dqh=function(){if(!Zv.instance){var e=_.pd("yt.networkStatusManager.instance")||new Zv;_.lM("yt.networkStatusManager.instance",e);Zv.instance=e}return Zv.instance};
_.Y=Zv.prototype;_.Y.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.Y.networkStatusHint=function(e){this.sharedNetworkStatusManager.isOnline=e};
_.Y.getWindowStatus=function(){var e=window.navigator.onLine;return e===void 0?!0:e};
_.Y.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.Y.listen=function(e,z){return this.sharedNetworkStatusManager.listen(e,z)};
_.Y.sendNetworkCheckRequest=function(e){e=unS(this.sharedNetworkStatusManager,e);e.then(function(z){_.M("use_cfr_monitor")&&Xe().requestComplete("generate_204",z)});
return e};
Zv.prototype.sendNetworkCheckRequest=Zv.prototype.sendNetworkCheckRequest;Zv.prototype.listen=Zv.prototype.listen;Zv.prototype.enableErrorFlushing=Zv.prototype.enableErrorFlushing;Zv.prototype.getWindowStatus=Zv.prototype.getWindowStatus;Zv.prototype.networkStatusHint=Zv.prototype.networkStatusHint;Zv.prototype.isNetworkAvailable=Zv.prototype.isNetworkAvailable;Zv.getInstance=Dqh;_.bk=function(e){e=e===void 0?{}:e;_.N3.call(this);var z=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Dqh();var C=_.pd("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);C&&(e.rateLimit?(this.rateLimit=e.rateLimit,C("networkstatus-online",function(){i4S(z,"publicytnetworkstatus-online")}),C("networkstatus-offline",function(){i4S(z,"publicytnetworkstatus-offline")})):(C("networkstatus-online",function(){z.dispatchEvent("publicytnetworkstatus-online")}),C("networkstatus-offline",
function(){z.dispatchEvent("publicytnetworkstatus-offline")})))};
_.U(_.bk,_.N3);_.bk.prototype.isNetworkAvailable=function(){var e=_.pd("yt.networkStatusManager.instance.isNetworkAvailable");return e?e.bind(this.nsmInstance)():!0};
_.bk.prototype.networkStatusHint=function(e){var z=_.pd("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);z&&z(e)};
_.bk.prototype.sendNetworkCheckRequest=function(e){var z=this,C;return _.k(function(w){C=_.pd("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(z.nsmInstance);return _.M("skip_network_check_if_cfr")&&Xe().isEndpointCFR("generate_204")?w.return(new Promise(function(K){var G;z.networkStatusHint(((G=window.navigator)==null?void 0:G.onLine)||!0);K(z.isNetworkAvailable())})):C?w.return(C(e)):w.return(!0)})};
var i4S=function(e,z){e.rateLimit?e.lastJobTime?(_.c5.cancelJob(e.schedulerJob),e.schedulerJob=_.c5.addLowPriorityJob(function(){e.lastPublicSignalSent!==z&&(e.dispatchEvent(z),e.lastPublicSignalSent=z,e.lastJobTime=(0,_.as)())},e.rateLimit-((0,_.as)()-e.lastJobTime))):(e.dispatchEvent(z),e.lastPublicSignalSent=z,e.lastJobTime=(0,_.as)()):e.dispatchEvent(z)};var Ymm,pN=function(){yH.call(this,{logsStore:{cleanLogsStore:DHo,deleteRequest:dH1,getMostRecentByStatus:fLs,markAsQueued:Sx5,resetRequest:uC7,set:VLs},networkManager:_.bm4(),handleError:function(e,z,C){var w,K=C==null?void 0:(w=C.error)==null?void 0:w.code;if(K===400||K===415){var G;e=new _.uh(e.message,z,C==null?void 0:(G=C.error)==null?void 0:G.code);_.es(e,void 0,void 0,void 0,!0)}else _.AR(e)},
handleWarning:_.es,sendFn:oph,now:_.as,writeError:w91,jobManager:_.So(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.n0("potential_esf_error_limit",10),getBooleanFlag:_.M,disableYtIdbTransactions:!(_.Ss()&&_.X9h())});this.initializationPromise=new _.x5;_.M("networkless_immediately_drop_all_requests")&&iP7();hA5("LogsDatabaseV2")};
_.U(pN,yH);_.suh=function(){var e=_.pd("yt.networklessRequestController.instance");e||(e=new pN,_.lM("yt.networklessRequestController.instance",e),_.M("networkless_logging")&&_.QZ().then(function(z){e.databaseToken=z;F6s(e);e.initializationPromise.resolve();e.enableCleaning&&Math.random()<=e.cleaningRate&&e.databaseToken&&BOL(e.databaseToken);_.M("networkless_immediately_drop_sw_health_store")&&Nkc(e)}));
return e};
pN.prototype.writeThenSend=function(e,z){z||(z={});z=Gxo(e,z);_.Ss()||(this.initialized=!1);yH.prototype.writeThenSend.call(this,e,z)};
pN.prototype.sendThenWrite=function(e,z,C){z||(z={});z=Gxo(e,z);_.Ss()||(this.initialized=!1);yH.prototype.sendThenWrite.call(this,e,z,C)};
pN.prototype.sendAndWrite=function(e,z){z||(z={});z=Gxo(e,z);_.Ss()||(this.initialized=!1);yH.prototype.sendAndWrite.call(this,e,z)};
pN.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Nkc=function(e){var z;_.k(function(C){if(!e.databaseToken)throw z=ex("clearSWHealthLogsDb"),z;return C.return(tLg(e.databaseToken).catch(function(w){e.handleError(w)}))})};_.kx4=!1;_.JEg=_.wL.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.kx4};_.lM("ytNetworklessLoggingInitializationOptions",_.JEg);var tX=function(e){var z=this;this.config_=null;e?this.config_=e:Dqm()&&(this.config_=_.ME());_.Dz(_.c5,function(){Rdg(z)},5E3)};
tX.prototype.isReady=function(){!this.config_&&Dqm()&&(this.config_=_.ME());return!!this.config_};
var PEo=function(e,z,C,w){!_.j5("VISITOR_DATA")&&z!=="visitor_id"&&Math.random()<.01&&_.es(new _.uh("Missing VISITOR_DATA when sending innertube request.",z,C,w));if(!e.isReady()){var K=new _.uh("innertube xhrclient not ready",z,C,w);_.AR(K);throw K;}var G={headers:w.headers||{},method:"POST",postParams:C,postBody:w.postBody,postBodyFormat:w.postBodyFormat||"JSON",onTimeout:function(){w.onTimeout()},
onFetchTimeout:w.onTimeout,onSuccess:function(m,a){if(w.onSuccess)w.onSuccess(a)},
onFetchSuccess:function(m){if(w.onSuccess)w.onSuccess(m)},
onProgress:function(m){if(w.onProgress)w.onProgress(m)},
onError:function(m,a){if(w.onError)w.onError(a)},
onFetchError:function(m){if(w.onError)w.onError(m)},
timeout:w.timeout,withCredentials:!0,compress:w.compress};G.headers["Content-Type"]||(G.headers["Content-Type"]="application/json");var X="";(K=e.config_.innertubeHostOverride)&&(X=K);var J=e.config_.innertubeUseThirdPartyAuth||!1,q=_.wJg(J,X,w);Object.assign(G.headers,q);G.headers.Authorization&&!X&&J&&(G.headers["x-origin"]=window.location.origin);var T=_.bh(X+("/youtubei/"+e.config_.innertubeApiVersion+"/"+z),{alt:"json"}),Q=function(m){m=m===void 0?!1:m;var a;if(w.retry&&X!="www.youtube-nocookie.com"&&
(m||_.M("skip_ls_gel_retry")||G.headers["Content-Type"]!=="application/json"||(a=IL5(z,C,q,J)),a)){var n=G.onSuccess,H=G.onFetchSuccess;G.onSuccess=function(h,E){Wi1(a);n(h,E)};
C.onFetchSuccess=function(h,E){Wi1(a);H(h,E)}}try{if(m&&w.retry&&!w.networklessOptions.bypassNetworkless)G.method="POST",w.networklessOptions.writeThenSend?_.suh().writeThenSend(T,G):_.suh().sendAndWrite(T,G);
else if(w.compress){var I=!w.networklessOptions.writeThenSend;if(G.postBody){var L=G.postBody;typeof L!=="string"&&(L=JSON.stringify(G.postBody));lL4(T,L,G,_.RX,I)}else lL4(T,JSON.stringify(G.postParams),G,ULN,I)}else ULN(T,G)}catch(h){if(h.name==="InvalidAccessError")a&&(Wi1(a),a=0),_.es(Error("id"));else throw h;}a&&_.Dz(_.c5,function(){Rdg(e)},5E3)};
_.qm1()?H4o().then(function(m){Q(m)}):Q(!1)};var Emg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Emg,_.X2);var BkU=0,Tok=_.MI?"webkit":_.nb?"moz":_.aP?"ms":jms?"o":"";_.lM("ytDomDomGetNextId",_.pd("ytDomDomGetNextId")||function(){return++BkU});var tJc={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},$O=function(e){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(e=
e||window.event){this.event=e;for(var z in e)z in tJc||(this[z]=e[z]);this.scale=e.scale;this.rotation=e.rotation;var C=e.target||e.srcElement;C&&C.nodeType==3&&(C=C.parentNode);this.target=C;var w=e.relatedTarget;if(w)try{w=w.nodeName?w:null}catch(K){w=null}else this.type=="mouseover"?w=e.fromElement:this.type=="mouseout"&&(w=e.toElement);this.relatedTarget=w;this.clientX=e.clientX!=void 0?e.clientX:e.pageX;this.clientY=e.clientY!=void 0?e.clientY:e.pageY;this.keyCode=e.keyCode?e.keyCode:e.which;
this.charCode=e.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=e.altKey;this.ctrlKey=e.ctrlKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.pageX_=e.pageX;this.pageY_=e.pageY}}catch(K){}},gzC=function(e){if(document.body&&document.documentElement){var z=document.body.scrollTop+document.documentElement.scrollTop;
e.pageX_=e.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);e.pageY_=e.clientY+z}};
$O.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
$O.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
$O.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var TE=_.wL.ytEventsEventsListeners||{};_.lM("ytEventsEventsListeners",TE);var npN=_.wL.ytEventsEventsCounter||{count:0};_.lM("ytEventsEventsCounter",npN);var MQE=_.uS(function(){var e=!1;try{var z=Object.defineProperty({},"capture",{get:function(){e=!0}});
window.addEventListener("test",null,z)}catch(C){}return e});_.Tk(QG,_.Sn);QG.prototype.onMouseMove_=function(e){e.pageX_===void 0&&gzC(e);var z=e.pageX_;e.pageY_===void 0&&gzC(e);this.position_=new _.st(z,e.pageY_)};
QG.prototype.checkPosition_=function(){if(this.position_){var e=(0,_.as)();if(this.previousTime_!=0){var z=this.previousPosition_,C=this.position_,w=z.x-C.x;z=z.y-C.y;w=Math.sqrt(w*w+z*z)/(e-this.previousTime_);this.cycles_[this.index_]=Math.abs((w-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(C=z=0;C<4;C++)z+=this.cycles_[C]||0;z>=3&&this.callback_();this.previousVelocity_=w}this.previousTime_=e;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
QG.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.rE7(this.mouseListenerKey_)};var WOs={};var Vjo=new _.nN("rawColdConfigGroup");var FBh=new _.nN("rawHotConfigGroup");var juc=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(juc,_.X2);var OA1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(OA1,_.X2);var dm=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e,500)};
_.U(dm,_.X2);dm.prototype.getPayloadCase=function(){return _.E7(this,yOa)};
dm.prototype.getContext=function(){return _.ra(this,OA1,33)};
var yOa=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531];var Pwg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Pwg,_.X2);var KBs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(KBs,_.X2);KBs.prototype.setVideoId=function(e){return hX(this,1,of7,Ma(e))};
KBs.prototype.getPlaylistId=function(){return _.R4(this,fC(this,of7,2))};
var of7=[1,2];var rq1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(rq1,_.X2);rq1.prototype.getContext=function(){return _.ra(this,OO,1)};
rq1.prototype.getTier=function(){return _.i5(this,7)};var cOU,MU,rm;cOU=_.wL.ytPubsubPubsubInstance||new _.hJ;MU=_.wL.ytPubsubPubsubSubscribedKeys||{};rm=_.wL.ytPubsubPubsubTopicToKeys||{};_.PAs=_.wL.ytPubsubPubsubIsSynchronous||{};_.hJ.prototype.subscribe=_.hJ.prototype.subscribe;_.hJ.prototype.unsubscribeByKey=_.hJ.prototype.unsubscribeByKey;_.hJ.prototype.publish=_.hJ.prototype.publish;_.hJ.prototype.clear=_.hJ.prototype.clear;_.lM("ytPubsubPubsubInstance",cOU);_.lM("ytPubsubPubsubTopicToKeys",rm);_.lM("ytPubsubPubsubIsSynchronous",_.PAs);
_.lM("ytPubsubPubsubSubscribedKeys",MU);var UO=window;var e1=_.M("web_enable_lifecycle_monitoring")&&Eps()!==0,AOC=_.M("web_enable_lifecycle_monitoring");var Z4o=function(e){var z=this;var C=C===void 0?0:C;var w=w===void 0?_.So():w;this.JSC$11056_defaultPriority=C;this.scheduler=w;this.completedResolver=new _.x5;this.scheduledPayloads=e;for(e={i$jscomp$493:0};e.i$jscomp$493<this.scheduledPayloads.length;e={payload$jscomp$20:void 0,i$jscomp$493:e.i$jscomp$493},e.i$jscomp$493++)e.payload$jscomp$20=this.scheduledPayloads[e.i$jscomp$493],C=function(K){return function(){K.payload$jscomp$20.job();z.scheduledPayloads[K.i$jscomp$493].processed=!0;z.scheduledPayloads.every(function(G){return G.processed===
!0})&&z.completedResolver.resolve()}}(e),w=this.getPriority(e.payload$jscomp$20),w=this.scheduler.addJob(C,w),this.scheduledPayloads[e.i$jscomp$493]=Object.assign({},e.payload$jscomp$20,{job:C,
jobId:w})};
Z4o.prototype.flushJobs=function(){var e=this,z=Array.from(this.scheduledPayloads.keys()).sort(function(w,K){return e.getPriority(e.scheduledPayloads[K])-e.getPriority(e.scheduledPayloads[w])});
z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=this.scheduledPayloads[C.value],C.jobId===void 0||C.processed||(this.scheduler.cancelJob(C.jobId),this.scheduler.addJob(C.job,10))};
Z4o.prototype.cancel=function(){for(var e=_.b(this.scheduledPayloads),z=e.next();!z.done;z=e.next())z=z.value,z.jobId===void 0||z.processed||this.scheduler.cancelJob(z.jobId),z.processed=!0;this.completedResolver.resolve()};
Z4o.prototype.getPriority=function(e){var z;return(z=e.priority)!=null?z:this.JSC$11056_defaultPriority};var za=function(e){this.state=e;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};e1&&FOo(this.state)};
za.prototype.install=function(e){this.plugins.push(e);return this};
za.prototype.uninstall=function(){var e=this;_.yL.apply(0,arguments).forEach(function(z){z=e.plugins.indexOf(z);z>-1&&e.plugins.splice(z,1)})};
za.prototype.transition=function(e,z){var C=this;e1&&VQ1(this.state);var w=this.transitions.find(function(G){return Array.isArray(G.from)?G.from.find(function(X){return X===C.state&&G.to===e}):G.from===C.state&&G.to===e});
if(w){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);pH6(this,e,z);this.state=e;e1&&FOo(this.state);w=w.action.bind(this);var K=this.plugins.filter(function(G){return G[e]}).map(function(G){return G[e]});
w(ekg(this,K),z)}else throw Error("jd`"+this.state+"`"+e);};
var ekg=function(e,z){var C=z.filter(function(K){return zkS(e,K)===10}),w=z.filter(function(K){return zkS(e,K)!==10});
return e.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var K=_.yL.apply(0,arguments);return _.k(function(G){if(G.nextAddress==1)return G.yield(e.runImmediateJobsAsync.apply(e,[C].concat(_.s_(K))),2);e.setJobSetWithScheduledJobs.apply(e,[w].concat(_.s_(K)));_.E_(G)})}:function(){var K=_.yL.apply(0,arguments);
e.runImmediateJobsSync.apply(e,[C].concat(_.s_(K)));e.setJobSetWithScheduledJobs.apply(e,[w].concat(_.s_(K)))}};
za.prototype.runImmediateJobsSync=function(e){var z=_.yL.apply(1,arguments);_.So();for(var C=_.b(e),w=C.next(),K={};!w.done;K={lifecycle$jscomp$2:void 0},w=C.next())K.lifecycle$jscomp$2=w.value,bw(function(G){return function(){C6S(G.lifecycle$jscomp$2.name);Sms(function(){return G.lifecycle$jscomp$2.callback.apply(G.lifecycle$jscomp$2,_.s_(z))});
Cc(G.lifecycle$jscomp$2.name)}}(K))};
za.prototype.runImmediateJobsAsync=function(e){var z=_.yL.apply(1,arguments),C,w,K,G;return _.k(function(X){X.nextAddress==1&&(_.So(),C=_.b(e),w=C.next(),K={});if(X.nextAddress!=3){if(w.done)return X.jumpTo(0);K.lifecycle$jscomp$3=w.value;K.asyncJobCompletion=void 0;G=function(J){return function(){C6S(J.lifecycle$jscomp$3.name);var q=Sms(function(){return J.lifecycle$jscomp$3.callback.apply(J.lifecycle$jscomp$3,_.s_(z))});
vLc(q)?J.asyncJobCompletion=_.M("web_lifecycle_error_handling_killswitch")?q.then(function(){Cc(J.lifecycle$jscomp$3.name)}):q.then(function(){Cc(J.lifecycle$jscomp$3.name)},function(T){ffh(T);
Cc(J.lifecycle$jscomp$3.name)}):Cc(J.lifecycle$jscomp$3.name)}}(K);
bw(G);return K.asyncJobCompletion?X.yield(K.asyncJobCompletion,3):X.jumpTo(3)}K={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};w=C.next();return X.jumpTo(2)})};
za.prototype.setJobSetWithScheduledJobs=function(e){var z=_.yL.apply(1,arguments),C=this,w=e.map(function(K){return{job:function(){C6S(K.name);Sms(function(){return K.callback.apply(K,_.s_(z))});
Cc(K.name)},
priority:zkS(C,K)}});
w.length&&(this.jobSet=new Z4o(w))};
var zkS=function(e,z){var C,w;return(w=(C=e.overridePriority)!=null?C:z.priority)!=null?w:0},C6S=function(e){e1&&e&&FOo(e)},Cc=function(e){e1&&e&&VQ1(e)},pH6=function(e,z,C){AOC&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+e.constructor.name+"] '"+e.state+"' to '"+z+"'"),console.log("with message: ",C),console.groupEnd())};
_.lB.Object.defineProperties(za.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var wJo=function(e){za.call(this,e===void 0?"none":e);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(){}}]},KJo;
_.U(wJo,za);wJo.prototype.runApplicationNavigationBegin=function(e,z){var C=this;this.navigationTimer=_.Dz(_.c5,function(){C.currentState==="application_navigating"&&C.transition("none")},5E3);
e(z==null?void 0:z.event)};
wJo.prototype.runApplicationNavigationEnd=function(e,z){this.navigationTimer&&(_.c5.cancelJob(this.navigationTimer),this.navigationTimer=null);e(z==null?void 0:z.event)};
_.EfE=function(){KJo||(KJo=new wJo);return KJo};var OU4=[];_.lM("yt.logging.transport.getScrapedGelPayloads",function(){return OU4});var vn=function(){var e=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return e.totalEntries}}};
vn.prototype.storePayload=function(e,z){e=uHs(e);this.store[e]?this.store[e].push(z):(this.memoizedKeySequences={},this.store[e]=[z]);this.totalEntries++;_.M("more_accurate_gel_parser")&&(z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(z));return e};
vn.prototype.smartExtractMatchingEntries=function(e){if(!e.keys.length)return[];for(var z=o5U(this,e.keys.splice(0,1)[0]),C=[],w=0;w<z.length;w++)this.store[z[w]]&&e.sizeLimit&&(this.store[z[w]].length<=e.sizeLimit?(C.push.apply(C,_.s_(this.store[z[w]])),delete this.store[z[w]]):C.push.apply(C,_.s_(this.store[z[w]].splice(0,e.sizeLimit))));this.totalEntries-=C.length;(e==null?0:e.sizeLimit)&&C.length<(e==null?void 0:e.sizeLimit)&&(e.sizeLimit-=C.length,C.push.apply(C,_.s_(this.smartExtractMatchingEntries(e))));
return C};
vn.prototype.extractMatchingEntries=function(e){e=o5U(this,e);for(var z=[],C=0;C<e.length;C++)this.store[e[C]]&&(z.push.apply(z,_.s_(this.store[e[C]])),delete this.store[e[C]]);this.totalEntries-=z.length;return z};
vn.prototype.getSequenceCount=function(e){e=o5U(this,e);for(var z=0,C=0;C<e.length;C++){var w=void 0;z+=((w=this.store[e[C]])==null?void 0:w.length)||0}return z};
var o5U=function(e,z){var C=uHs(z);if(e.memoizedKeySequences[C])return e.memoizedKeySequences[C];var w=Object.keys(e.store)||[];if(w.length<=1&&uHs(z)===w[0])return w;for(var K=[],G=0;G<w.length;G++){var X=w[G].split("/");if(GUT(z.auth,X[0])){var J=z.isJspb;GUT(J===void 0?"undefined":J?"true":"false",X[1])&&GUT(z.cttAuthInfo,X[2])&&(J=z.tier,J=J===void 0?"undefined":JSON.stringify(J),GUT(J,X[3])&&K.push(w[G]))}}return e.memoizedKeySequences[C]=K},GUT=function(e,z){return e===void 0||e==="undefined"?
!0:e===z};
vn.prototype.getSequenceCount=vn.prototype.getSequenceCount;vn.prototype.extractMatchingEntries=vn.prototype.extractMatchingEntries;vn.prototype.smartExtractMatchingEntries=vn.prototype.smartExtractMatchingEntries;vn.prototype.storePayload=vn.prototype.storePayload;var TG4,qT7,$Tg,Pn,YGL,dTg,uWL,k9k,Jq1,p9g,xTL,LBh,YTh;TG4=_.n0("initial_gel_batch_timeout",2E3);qT7=_.n0("gel_queue_timeout_max_ms",6E4);$Tg=_.n0("gel_min_batch_size",5);Pn=void 0;YGL=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
dTg=new YGL;uWL=new YGL;k9k=new YGL;Jq1=new YGL;xTL=!0;LBh=1;_.Rt4=new Map;YTh=_.wL.ytLoggingTransportTokensToCttTargetIds_||{};_.lM("ytLoggingTransportTokensToCttTargetIds_",YTh);var G9E=_.wL.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.lM("ytLoggingTransportTokensToJspbCttTargetIds_",G9E);var Wn={};var sO=_.wL.ytLoggingGelSequenceIdObj_||{};_.lM("ytLoggingGelSequenceIdObj_",sO);var NGE=[];var zhk=new Set,jok=0,KT5=0,wF1=0,cqg=[],yq8=[],oT1=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var mKs=function(){};
mKs.prototype.getUrl=function(e,z){z=z===void 0?!1:z;return e.hasOwnProperty("shareEndpoint")?null:_.XFo(e,null,z)};
var Prk=function(e,z,C){e={endpoint:z,actions:[]};C=(C.path?C.path[0]:C.target).icon||"";z=C.indexOf(":");z>0&&(C=C.substr(z+1));C&&e.actions.push(C);return e};var $KN=/Command$/,TEN=/Endpoint$/,kiE=new Map;var bWa,XJ4;bWa=1;_.G4=function(){this.actionRoutingMap=new Map};
_.G4.prototype.triggerAction=function(e){var z=new kKg(e,!1,_.yL.apply(1,arguments));this.handleAction(z);return z.returnValue};
_.G4.prototype.triggerOptionalAction=function(e){var z=new kKg(e,!0,_.yL.apply(1,arguments));this.handleAction(z);return z.returnValue};
_.wu=function(e,z,C){z.forEach(function(w){var K=xK8(w);K&&e.triggerOptionalAction(K,w,C,void 0)})};
_.G4.prototype.handleAction=function(e){var z=this.actionRoutingMap.get(e.actionName);z&&XJ4(e,z);e.optionalAction||e.returnValue.length!==0||(e=new _.uh("Unhandled action",e.actionName),_.es(e))};
XJ4=function(e,z){z.forEach(function(C){var w=null;C?w=C.apply(null,e.args):(C=Error("kd"),C.params=e.actionName,_.AR(C));e.returnValue.push(w)})};
_.YI=function(e,z,C){C||(C=bWa++);for(var w=_.b(Object.keys(z)),K=w.next();!K.done;K=w.next()){K=K.value;var G=e.actionRoutingMap.get(K);G||(G=new Map,e.actionRoutingMap.set(K,G));e.registerActionHandler(C,K,z[K],G)}return C};
_.G4.prototype.registerActionHandler=function(e,z,C,w){w.set(e,_.Z_(C))};
_.XL=function(e,z,C){z=_.b(Object.keys(z));for(var w=z.next();!w.done;w=z.next())(w=e.actionRoutingMap.get(w.value))&&w.delete(C)};
_.qI(_.G4);var M3g=function(e,z){var C=_.G4.getInstance();_.sg(function(){var w={},K=_.YI(C,(w[e]=z,w));_.BC(function(){var G={};_.XL(C,(G[e]="",G),K)})})};var huE=Symbol("md");IOE=Gos;var uRL=new Set(["For","If","Match","Watch"]),JUC={},kU4=(JUC[zR.default]=function(){return aO8},JUC.style=function(){return aO8},JUC),qGS;
for(qGS in kU4)$J.attributes[qGS]=kU4[qGS]($J.attributes[qGS]);var m$=new _.Mt("VISIBILITY_OBSERVER");var ym5={retrieve:function(e){return this.id.\u0275prov.token===e.\u0275prov.token?this.contextValue:this?_.q6(this,this.id):vjE}};var e8E=function(e,z,C){if(e!==Ih7)return!1;e=O78(document.createElement("div"),function(){var w=mM(!1);try{C[0]()}finally{mM(w)}});
e=Array.from(e.childNodes);e.length===1&&(e=e[0]);return e};IOE=Gos;var xpU=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(e){}var TPS=typeof WeakRef==="function";var $po=function(e){this.value=e};
$po.prototype.deref=function(){return this.value};
var lc6=TPS?WeakRef:$po,QgY=function(e){this.newKeyHandler=e;this.map=new WeakMap};
QgY.prototype.add=function(e,z){this.map.has(e)||(this.newKeyHandler(e),this.map.set(e,[]));this.map.get(e).push(new lc6(z))};
QgY.prototype.get=function(e){var z=this;return function w(){var K,G,X,J,q,T,Q,m,a,n,H;return _.an(w,function(I){switch(I.nextAddress){case 1:_.Rv(I,2);K=z.map.get(e);if(!K)return I.return();G=0;X=_.b(K);J=X.next();case 4:if(J.done){I.jumpTo(6);break}q=J.value;T=q.deref();if(!T){I.jumpTo(5);break}G++;Q=_.nM;return I.yield(T,8);case 8:Q(I.yieldResult);case 5:J=X.next();I.jumpTo(4);break;case 6:if(2*G<K.length){m=0;a=_.b(K);for(n=a.next();!n.done;n=a.next())H=n.value,H.deref()&&(K[m++]=H);K.length=
m}case 2:_.PZ(I),_.hn(I,0)}})}()};var mpa=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},Cn5=new QgY(function(e){e.addEventListener("abort",K8E,{once:!0})}),zPh=new WeakMap,ach=function(e){e=e===void 0?Kc:e;
this.signal=new e};
ach.prototype.abort=function(e){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=e,e=new Event("abort"),this.signal.dispatchEvent(e))};
var Kc=function(){this.target=mpa();this.aborted=!1;this.onabort=null};
Kc.prototype.throwIfAborted=function(){eP5.call(this)};
Kc.prototype.addEventListener=function(e,z,C){this.target.addEventListener(e,z,C)};
Kc.prototype.removeEventListener=function(e,z,C){this.target.removeEventListener(e,z,C)};
Kc.prototype.dispatchEvent=function(e){if(this.onabort&&e.type==="abort")this.onabort(e);return this.target.dispatchEvent(e)};
Kc.abort=pFk;Kc.timeout=osk;Kc.any=w0g;var Z7h=xpU?AbortController:ach,oJ=xpU?AbortSignal:Kc;typeof oJ.abort!=="function"&&(oJ.abort=pFk);typeof oJ.prototype.throwIfAborted!=="function"&&(oJ.prototype.throwIfAborted=eP5);typeof oJ.any!=="function"&&(oJ.any=w0g);typeof oJ.timeout!=="function"&&(oJ.timeout=osk);var nZ=null,YA8=new Map;var n5a=function(e){e=e.clone();Scg(e);N_(e,"dg",null);N_(e,"d","0");EIU(e,null);F$o(e,null);return e},MBU=!0,rUo=function(e,z,C){var w=C===void 0?{}:C;
C=w.cssRowKey===void 0?void 0:w.cssRowKey;var K=w.combinedSignature===void 0?void 0:w.combinedSignature;var G=w.extraEdges===void 0?void 0:w.extraEdges;w=w.callback===void 0?void 0:w.callback;N_(e,"m",z.join(","));G&&fVC(e,G);C&&(N_(e,"ck",C),K?N_(e,"rs",K):MBU&&(MBU=!1));if(w){if(w!=null&&!DDa.test(w))throw Error("Xa`"+w);N_(e,"cb",w)}e=e.toString();_.om(e,"/")&&(e=xGa(document.location.href)+e);return _.EC(e)};var Upa=function(e){return HWg(e).then(function(z){return JSON.parse(z.responseText)})},HWg=function(e){var z={},C=z.xmlHttpFactory?z.xmlHttpFactory.createInstance():pRg.createInstance();
return(new _.RC(function(w,K){var G;try{C.open("GET",e,!0)}catch(q){K(new Ga("Error opening XHR: "+q.message,e,C))}C.onreadystatechange=function(){if(C.readyState==4){_.wL.clearTimeout(G);var q;!(q=Zd6(C.status))&&(q=C.status===0)&&(q=qvh(e),q=!(q=="http"||q=="https"||q==""));q?w(C):K(new v5Y(C.status,e,C))}};
C.onerror=function(){K(new Ga("Network error",e,C))};
if(z.headers)for(var X in z.headers){var J=z.headers[X];J!=null&&C.setRequestHeader(X,J)}z.withCredentials&&(C.withCredentials=z.withCredentials);z.responseType&&(C.responseType=z.responseType);z.mimeType&&C.overrideMimeType(z.mimeType);z.timeoutMs>0&&(G=_.wL.setTimeout(function(){C.onreadystatechange=function(){};
C.abort();K(new Ic4(e,C))},z.timeoutMs));
try{C.send(null)}catch(q){C.onreadystatechange=function(){},_.wL.clearTimeout(G),K(new Ga("Error sending XHR: "+q.message,e,C))}})).thenCatch(function(w){w instanceof _.g$&&C.abort();
throw w;})},Ga=function(e,z,C){_.eh.call(this,e+", url="+z);
this.url=z;this.xhr=C};
_.Tk(Ga,_.eh);Ga.prototype.name="XhrError";var v5Y=function(e,z,C){Ga.call(this,"Request Failed, status="+e,z,C);this.status=e};
_.Tk(v5Y,Ga);v5Y.prototype.name="XhrHttpError";var Ic4=function(e,z){Ga.call(this,"Request timed out",e,z)};
_.Tk(Ic4,Ga);Ic4.prototype.name="XhrTimeoutError";kd=kd||{};var YP=function(){_.Sn.call(this)};
_.Tk(YP,_.Sn);YP.prototype.initialize=function(){};var WJc=function(e,z){this.fn_=e;this.handler_=z};
WJc.prototype.execute=function(e){this.fn_&&(this.fn_.call(this.handler_||null,e),this.fn_=this.handler_=null)};
WJc.prototype.abort=function(){this.handler_=this.fn_=null};var bs=function(e,z){_.Sn.call(this);this.deps_=e;this.JSC$11211_id_=z;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Tk(bs,_.Sn);bs.prototype.moduleConstructor_=YP;bs.prototype.module_=null;bs.prototype.getId=function(){return this.JSC$11211_id_};
bs.prototype.registerCallback=function(e,z){return Xx(this.onloadCallbacks_,e,z)};
var P6c=function(e,z){Xx(e.onErrorCallbacks_,z)},Xx=function(e,z,C){z=new WJc(z,C);
e.push(z);return z};
bs.prototype.isLoaded=function(){return!!this.module_};
bs.prototype.onLoad=function(e){var z=new this.moduleConstructor_;z.initialize(e());this.module_=z;z=(z=Rka(this.earlyOnloadCallbacks_,e()))||Rka(this.onloadCallbacks_,e());z||(this.onErrorCallbacks_.length=0);return z};
bs.prototype.onError=function(e){(e=Rka(this.onErrorCallbacks_,e))&&Ko(Error("rd`"+e));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Rka=function(e,z){for(var C=[],w=0;w<e.length;w++)try{e[w].execute(z)}catch(K){Ko(K),C.push(K)}e.length=0;return C.length?C:null};
bs.prototype.disposeInternal=function(){bs.superClass_.disposeInternal.call(this);_.XU(this.module_)};var LJC,fcg,FJU,VBa,OWg,E5S,iWc,dpa,DpX;
_.rK=function(e,z,C,w,K){w=w===void 0?!1:w;K=K===void 0?!1:K;var G=G===void 0?!0:G;this.scsReferenceUrl_=js1(_.F2(e).toString(),G);this.cssRowKey_=z;this.combinedSignature_=C;this.useNegativeLoading_=w;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(e=iG(this.scsReferenceUrl_,"excm"))?e.split(","):[];this.shouldScanForCss_=K;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;yfo();_.J1(this,VYo(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
LJC=function(e,z){if(z.href||z.getAttribute("data-href"))if(z=z.href||z.getAttribute("data-href"),ssm(z)&&!js1(z).urlPrefix_.endsWith("_/js/")){z=VYo(js1(z));z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,e.loadedCssModuleList_.includes(C)||e.loadedCssModuleList_.push(C)}};
_.rK.prototype.JSC$11216_loadModules=function(e,z,C){var w=C===void 0?{}:C;z=w.extraEdges;C=w.onError;var K=w.onSuccess;w=w.forceReload;if(!e)throw Error("sd");if(this.shouldScanForCss_){for(var G=_.b(document.getElementsByTagName("style")),X=G.next();!X.done;X=G.next())LJC(this,X.value);G=_.b(document.getElementsByTagName("link"));for(X=G.next();!X.done;X=G.next())LJC(this,X.value)}hkL(this,OWg(this,e),z,C,K,w)};
var hkL=function(e,z,C,w,K,G){w=w===void 0?function(){}:w;
K=K===void 0?function(){}:K;
G=G===void 0?!1:G;E5S(e,z,function(X,J,q){q=q===void 0?J:q;e.enableFallbackFetch&&G?e.loadWithFetch(X,J,w,K,q):e.load(X,J,w,K,q,C)},C)||w(-1)};
_.rK.prototype.loadWithFetch=function(){_.k(function(){throw Error("td");})};
_.rK.prototype.maybeSetAdditionalFields=function(){};
fcg=function(e,z,C){if(e.useNegativeLoading_){var w=e.scsReferenceUrl_;e={cssRowKey:e.cssRowKey_,combinedSignature:e.combinedSignature_,extraEdges:C,requestedModuleIds:FJU(e),requestedCssModuleIds:VBa(e)};var K=e===void 0?{}:e;e=K.requestedModuleIds===void 0?[]:K.requestedModuleIds;C=K.requestedCssModuleIds===void 0?[]:K.requestedCssModuleIds;var G=K.cssRowKey===void 0?void 0:K.cssRowKey;var X=K.combinedSignature===void 0?void 0:K.combinedSignature;var J=K.extraEdges===void 0?void 0:K.extraEdges;
K=K.callback===void 0?void 0:K.callback;w=n5a(w);N_(w,"d","1");EIU(w,e);F$o(w,C);z=rUo(w,z,{cssRowKey:G,combinedSignature:X,extraEdges:J,callback:K})}else w=e.scsReferenceUrl_,e={cssRowKey:e.cssRowKey_,combinedSignature:e.combinedSignature_,requestedModuleIds:FJU(e),requestedCssModuleIds:VBa(e)},J=e===void 0?{}:e,e=J.requestedCssModuleIds===void 0?[]:J.requestedCssModuleIds,C=J.cssRowKey===void 0?void 0:J.cssRowKey,G=J.combinedSignature===void 0?void 0:J.combinedSignature,X=J.extraEdges===void 0?
void 0:J.extraEdges,J=J.callback===void 0?void 0:J.callback,w=n5a(w),F$o(w,e),z=rUo(w,z,{cssRowKey:C,combinedSignature:G,extraEdges:X,callback:J});return z};
_.J1=function(e,z){for(var C=!1,w=[],K=0;K<z.length;++K){var G=z[K];e.requestedModuleMap_[G]||(e.requestedModuleMap_[G]=!0,e.requestedModuleList_.push(G),C=!0,w.push(G))}C&&(e.requestedModuleListSorted_=!1)};
_.kP=function(e,z){for(var C=[],w=0;w<z.length;++w){var K=z[w];e.requestedModuleMap_[K]&&(delete e.requestedModuleMap_[K],_.D8(e.requestedModuleList_,K),C.push(K))}};
_.rK.prototype.load=function(e,z,C,w,K){K=K===void 0?z:K;_.F2(e);var G=this.useCors_,X=this.corsMode_,J=this.fetchPriority,q=_.Lh("SCRIPT");_.Jn(q,e);G&&(q.crossOrigin=X);q.async=!1;J&&q.setAttribute("fetchpriority",J);_.J1(this,z);_.SGT(this,e,q,z,C,w,K)};
_.SGT=function(e,z,C,w,K,G,X){X=X===void 0?w:X;e.lastScript_=C;e.insertPos.insertBefore(C,e.insertPos.firstChild);_.uNX(C,w,function(){C.parentElement.removeChild(C);e.lastScript_==C&&(e.lastScript_=null);G()},function(J){C.parentElement.removeChild(C);
e.lastScript_==C&&(e.lastScript_=null);_.kP(e,J);e.pendingModuleGraphUpdate_?e.pendingModuleGraphUpdate_.then(function(){K(-1,z)}):K(-1,z)},X)};
_.uNX=function(e,z,C,w,K){K=K===void 0?z:K;var G=z.length,X=function(){G=0;e.onload=null;e.onerror=null;J=function(){}},J=function(){X();
var T=K.filter(function(Q){return!Bo().getModuleInfo(Q).isLoaded()});
T.length!==0?w(T,"Response was successful but was missing module(s) "+T+"."):C()},q=function(){G--;
G==0&&J()};
z.forEach(function(T){T=Bo().getModuleInfo(T);T.isLoaded()?q():(Xx(T.earlyOnloadCallbacks_,q),P6c(T,q))});
e.onload=function(){return J()};
e.onerror=function(){X();w(z)}};
FJU=function(e){e.requestedModuleListSorted_||(e.requestedModuleListSorted_=!0,e.requestedModuleList_.sort());return e.requestedModuleList_};
VBa=function(e){e=e.loadedCssModuleList_;e.sort();return e};
OWg=function(e,z){return z.filter(function(C){return!e.requestedModuleMap_[C]})};
E5S=function(e,z,C,w){if(e.pendingModuleGraphUpdate_)return e.pendingModuleGraphUpdate_.then(function(){E5S(e,z,C,w)}),!0;
if(!e.useNegativeLoading_){var K=[],G=Object.assign({},e.requestedModuleMap_);dpa(e,z,function(Q){K.push(Q.getId())},w,function(Q){return!Q.isLoaded()},G);
z=K}for(G=0;G<z.length;){for(var X=z.length-G,J=G==0?z:z.slice(G,z.length),q=fcg(e,J,w),T=_.F2(q).toString();T.length>e.urlMaxLength;)if(X>1)X-=Math.ceil((T.length-e.urlMaxLength)/6),X=Math.max(X,1),J=z.slice(G,G+X),q=fcg(e,J,w),T=_.F2(q).toString();else return e.useNegativeLoading_?(e.useNegativeLoading_=!1,e.pendingModuleGraphUpdate_=DpX(e).then(function(Q){iWc(e,Q,w)}),E5S(e,z.slice(G),C,w)):!1;
G+=X;e.useNegativeLoading_?C(q,J):C(q,J,G===z.length?z:[])}return!0};
iWc=function(e,z,C){Bo().setAllModuleInfoString((z||{}).moduleGraph);dpa(e,FJU(e),function(w){_.J1(e,[w.getId()])},C);
e.pendingModuleGraphUpdate_=null};
dpa=function(e,z,C,w,K,G){G=G===void 0?{}:G;var X=Bo();z=_.b(z);for(var J=z.next();!J.done;J=z.next()){J=J.value;var q=X.getModuleInfo(J);if(!(G[J]||K&&!K(q))){G[J]=!0;var T=q.deps_||[];if(w){var Q=[];w[J]&&(Q=Object.keys(w[J]));T=T.concat(Q)}dpa(e,T,C,w,K,G);C(q)}}};
DpX=function(e){e=e.scsReferenceUrl_.clone();Scg(e);N_(e,"dg",null);N_(e,"md","1");return Upa(e.toString())};var X0o=new Uint8Array(123);var NPL=[];var sgU=function(){this.JSC$10223_loader_=null};
_.Y=sgU.prototype;_.Y.setBatchModeEnabled=function(){};
_.Y.setAllModuleInfoString=function(){};
_.Y.addExtraEdge=function(){throw Error("ud");};
_.Y.removeExtraEdge=function(){throw Error("vd");};
_.Y.getModuleContext=function(){return null};
_.Y.isActive=function(){return!1};
_.Y.isUserActive=function(){return!1};
_.Y.registerInitializationCallback=function(){};
_.Y.registerCallback=function(){};var qn=function(e,z,C,w,K){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.name="ModuleLoadFailure";this.type=e;this.status=z;this.requestedModuleIds=C;this.url=w;this.cause=K;this.message=this.toString()};
_.U(qn,Error);qn.prototype.toString=function(){return BPc(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var BPc=function(e){switch(e.type){case qn.Type.UNAUTHORIZED:return"Unauthorized";case qn.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case qn.Type.TIMEOUT:return"Timed out";case qn.Type.OLD_CODE_GONE:return"Out of date module id";case qn.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+e.type}};
kd.ModuleLoadFailure=qn;kd.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var xP=function(){this.moduleIds_=this.JSC$10223_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11229_extraEdges_={};this.JSC$11229_callbackMap_={};this.JSC$11229_currentlyLoadingModule_=this.baseModuleInfo_=new bs([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new xu;this.isDisposed_=this.userLastActive_=this.lastActive_=this.batchModeEnabled_=
!1};
_.Tk(xP,sgU);var tB6=function(e,z){_.eh.call(this,"Error loading "+e+": "+z)};
_.Tk(tB6,_.eh);xP.prototype.setBatchModeEnabled=function(e){this.batchModeEnabled_=e};
xP.prototype.setAllModuleInfoString=function(e,z){if(!(this instanceof xP))this.setAllModuleInfoString(e,z);else if(typeof e==="string"){if(e.startsWith("d$")){e=e.substring(2);for(var C=[],w=0,K=e.indexOf("/"),G=0,X=!1,J=0;;){var q=X?e.substring(G):e.substring(G,K);if(q.length===0)w++,G="sy"+w.toString(36),q=[];else{var T=q.indexOf(":");if(T<0)G=q,q=[];else if(T===q.length-1)G=q.substring(0,T),q=Array(C[J-1]);else{G=q.substring(0,T);q=q.substring(T+1).split(",");T=J;for(var Q=0;Q<q.length;Q++)T-=
q[Q].length===0?1:Number(q[Q]),q[Q]=C[T]}T=0;if(G.length===0)T=1;else if(G.charAt(0)==="+"||G.charAt(0)==="-")T=Number(G);T!==0&&(w+=T,G="sy"+w.toString(36))}C.push(G);g5s(this,G,q);if(X)break;G=K+1;K=e.indexOf("/",G);K===-1&&(X=!0);J++}this.moduleIds_=C}else if(e.startsWith("p$"))jgs(this,e);else{e=e.split("/");C=[];for(w=0;w<e.length;w++){J=e[w].split(":");K=J[0];X=[];if(J[1])for(X=J[1].split(","),J=0;J<X.length;J++)X[J]=C[parseInt(X[J],36)];C.push(K);g5s(this,K,X)}this.moduleIds_=C}z&&z.length?
(_.tk(this.loadingModuleIds_,z),this.lastInitialModuleId_=_.hk(z)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11229_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11229_currentlyLoadingModule_=null,(z=this.baseModuleInfo_.onLoad((0,_.uZ)(this.getModuleContext,this)))&&z.length&&yUX(this,new kd.ModuleLoadFailure(kd.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,z[0])),Ta(this))}};
var jgs=function(e,z){var C=z.substring(2);for(z=0;z<64;z++)X0o["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(z)]=z;var w={buf:C,pos:0};MD(w);var K=MD(w),G=MD(w)+1;z=Array(K);var X=Array(K),J=Array(K);G=Array(G);var q=0,T=0,Q=w.pos,m=w.buf.indexOf("|",w.pos);w.pos=m+1;for(m=0;m<K;m++){var a=MD(w),n=a&2,H=a&1;a>>>=2;H?(q+=a>>>1^-(a&1),a="sy"+q.toString(36)):(H=Q,Q+=a,a=C.substring(H,Q));z[m]=a;n&&(G[T++]=a)}G[T]="";w.pos++;T=K&-2;C=K&1;for(q=0;q<T;q+=2)Q=JSL(w),J[q]=
Q&7,J[q+1]=Q>>>3&7;C&&(C=JSL(w),J[T]=C&7);w.pos++;for(T=0;T<K;T++)J[T]===7&&(J[T]=MD(w));w.pos++;for(C=T=0;C<K;C++){q=J[C];Q=q===0?NPL:Array(q);X[C]=Q;m=T;for(n=0;n<q;n++)m-=MD(w),Q[n]=G[m];G[T]===z[C]&&T++}for(w=0;w<z.length;w++)g5s(e,z[w],X[w]);e.moduleIds_=z};
_.Y=xP.prototype;_.Y.getModuleInfo=function(e){return this.moduleInfoMap[e]};
_.Y.addExtraEdge=function(e,z){var C=this.getModuleInfo(e);C&&C.isLoaded()?this.load(z):(this.JSC$11229_extraEdges_[e]||(this.JSC$11229_extraEdges_[e]={}),this.JSC$11229_extraEdges_[e][z]=!0)};
_.Y.removeExtraEdge=function(e,z){if(this.JSC$11229_extraEdges_[e]){delete this.JSC$11229_extraEdges_[e][z];for(var C in this.JSC$11229_extraEdges_[e])return;delete this.JSC$11229_extraEdges_[e]}};
_.Y.isActive=function(){return this.loadingModuleIds_.length>0};
_.Y.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Ta=function(e){var z=e.lastActive_,C=e.isActive();C!=z&&(e.executeCallbacks_(C?"active":"idle"),e.lastActive_=C);z=e.isUserActive();z!=e.userLastActive_&&(e.executeCallbacks_(z?"userActive":"userIdle"),e.userLastActive_=z)},g5s=function(e,z,C){e.moduleInfoMap[z]?(e=e.moduleInfoMap[z].deps_,e!=C&&e.splice.apply(e,[0,
e.length].concat(_.s_(C)))):e.moduleInfoMap[z]=new bs(C,z)},AUL=function(e,z,C){var w=[];
F75(z,w);z=[];for(var K={},G=0;G<w.length;G++){var X=w[G],J=e.getModuleInfo(X);if(!J)throw Error("wd`"+X);var q=new xu;K[X]=q;J.isLoaded()?q.callback(null):(cUX(e,X,J,!!C,q),e.isModuleLoading(X)||z.push(X))}z.length>0&&(e.loadingModuleIds_.length===0?e.loadModules_(z):(e.requestedModuleIdsQueue_.push(z),Ta(e)));return K},cUX=function(e,z,C,w,K){C.registerCallback(K.callback,K);
P6c(C,function(G){K.errback(new tB6(z,G))});
e.isModuleLoading(z)?w&&(ZWc(e,z),Ta(e)):w&&ZWc(e,z)};
xP.prototype.loadModules_=function(e,z,C){var w=this;z=z===void 0?0:z;var K=pJX(this,e);this.loadingModuleIds_=K;this.requestedLoadingModuleIds_=this.batchModeEnabled_?e:_.ig(K);Ta(this);if(K.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,K);e=this.JSC$10223_loader_;if(!e)throw Error("xd");if(Object.keys(this.JSC$11229_extraEdges_).length>0&&!e.supportsExtraEdges)throw Error("yd");C=(0,_.uZ)(e.JSC$11216_loadModules,e,_.ig(K),this.moduleInfoMap,{extraEdges:this.JSC$11229_extraEdges_,
forceReload:!!C,onError:function(G,X,J){var q=w.requestedLoadingModuleIds_;G=G!=null?G:void 0;var T=z;J=J===void 0?!1:J;J=(J===void 0?0:J)?0:(T===void 0?0:T)+1;T=_.ig(K);w.requestedLoadingModuleIds_=q;K.forEach(_.xk(_.D8,w.requestedModuleIds_),w);G==401?(yUX(w,new kd.ModuleLoadFailure(kd.ModuleLoadFailure.Type.UNAUTHORIZED,G)),w.requestedModuleIdsQueue_.length=0):G==410?(edc(w,new kd.ModuleLoadFailure(kd.ModuleLoadFailure.Type.OLD_CODE_GONE,G)),zdS(w)):J>=3?(edc(w,new kd.ModuleLoadFailure(kd.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
G,T,X)),zdS(w)):w.loadModules_(w.requestedLoadingModuleIds_,J,G==8001||!1)},
onTimeout:(0,_.uZ)(this.handleLoadTimeout_,this)});(e=Math.pow(z,2)*5E3)?_.wL.setTimeout(C,e):C()}};
var pJX=function(e,z){z=z.filter(function(K){return e.moduleInfoMap[K].isLoaded()?(_.wL.setTimeout(function(){return Error("zd`"+K)},0),!1):!0});
for(var C=[],w=0;w<z.length;w++)C=C.concat(CEC(e,z[w]));F75(C);return!e.batchModeEnabled_&&C.length>1?(z=C.shift(),e.requestedModuleIdsQueue_=C.map(function(K){return[K]}).concat(e.requestedModuleIdsQueue_),[z]):C},CEC=function(e,z){var C=_.de.createSet(e.requestedModuleIds_),w=[];
C[z]||w.push(z);z=[z];for(var K=0;K<z.length;K++)for(var G=e.getModuleInfo(z[K]).deps_,X=G.length-1;X>=0;X--){var J=G[X];e.getModuleInfo(J).isLoaded()||C[J]||(w.push(J),z.push(J))}w.reverse();F75(w);return w};
xP.prototype.JSC$11224_setLoaded=function(){if(this.JSC$11229_currentlyLoadingModule_){var e=this.JSC$11229_currentlyLoadingModule_.getId(),z=[];if(this.JSC$11229_extraEdges_[e]){for(var C=_.b(Object.keys(this.JSC$11229_extraEdges_[e])),w=C.next();!w.done;w=C.next()){w=w.value;var K=this.getModuleInfo(w);K&&!K.isLoaded()&&(this.removeExtraEdge(e,w),z.push(w))}this.loadMultiple(z)}this.isDisposed()||((z=this.moduleInfoMap[e].onLoad((0,_.uZ)(this.getModuleContext,this)))&&z.length&&yUX(this,new kd.ModuleLoadFailure(kd.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,z[0])),_.D8(this.userInitiatedLoadingModuleIds_,e),_.D8(this.loadingModuleIds_,e),this.loadingModuleIds_.length===0&&zdS(this),this.lastInitialModuleId_&&e==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Ta(this),this.JSC$11229_currentlyLoadingModule_=null)}};
xP.prototype.isModuleLoading=function(e){if(_.Sh(this.loadingModuleIds_,e))return!0;for(var z=0;z<this.requestedModuleIdsQueue_.length;z++)if(_.Sh(this.requestedModuleIdsQueue_[z],e))return!0;return!1};
xP.prototype.load=function(e,z){return AUL(this,[e],z)[e]};
xP.prototype.loadMultiple=function(e){return AUL(this,e)};
var ZWc=function(e,z){_.Sh(e.userInitiatedLoadingModuleIds_,z)||e.userInitiatedLoadingModuleIds_.push(z)};
xP.prototype.beforeLoadModuleCode=function(e){var z=this;this.JSC$11229_currentlyLoadingModule_&&this.JSC$11229_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11224_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[e]&&wIT(this,this.moduleInfoMap[e].deps_||[],function(C){C.module_=new YP;_.D8(z.loadingModuleIds_,C.getId())},function(C){return!C.isLoaded()});
this.JSC$11229_currentlyLoadingModule_=this.getModuleInfo(e)};
xP.prototype.registerInitializationCallback=function(e){this.JSC$11229_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new bs([],"synthetic_module_overhead"),this.JSC$11229_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);Xx(this.JSC$11229_currentlyLoadingModule_.earlyOnloadCallbacks_,e)};
xP.prototype.handleLoadTimeout_=function(){edc(this,new kd.ModuleLoadFailure(kd.ModuleLoadFailure.Type.TIMEOUT));zdS(this)};
var edc=function(e,z){e.requestedLoadingModuleIds_.length>1?e.requestedModuleIdsQueue_=e.requestedLoadingModuleIds_.map(function(C){return[C]}).concat(e.requestedModuleIdsQueue_):yUX(e,z)},yUX=function(e,z){var C=e.requestedLoadingModuleIds_;
e.loadingModuleIds_.length=0;for(var w=[],K=0;K<e.requestedModuleIdsQueue_.length;K++){var G=e.requestedModuleIdsQueue_[K].filter(function(q){var T=CEC(this,q);return JX(C,function(Q){return _.Sh(T,Q)})},e);
_.tk(w,G)}for(K=0;K<C.length;K++)_.L7k(w,C[K]);for(K=0;K<w.length;K++){for(G=0;G<e.requestedModuleIdsQueue_.length;G++)_.D8(e.requestedModuleIdsQueue_[G],w[K]);_.D8(e.userInitiatedLoadingModuleIds_,w[K])}if(K=e.JSC$11229_callbackMap_.error)for(G=0;G<K.length;G++)for(var X=K[G],J=0;J<w.length;J++)X("error",w[J],z);for(w=0;w<C.length;w++)if(e.moduleInfoMap[C[w]])e.moduleInfoMap[C[w]].onError(z);e.requestedLoadingModuleIds_.length=0;Ta(e)},zdS=function(e){for(;e.requestedModuleIdsQueue_.length;){var z=
e.requestedModuleIdsQueue_.shift().filter(function(C){return!this.getModuleInfo(C).isLoaded()},e);
if(z.length>0){e.loadModules_(z);return}}Ta(e)};
xP.prototype.registerCallback=function(e,z){Array.isArray(e)||(e=[e]);for(var C=0;C<e.length;C++){var w=e[C],K=z,G=this.JSC$11229_callbackMap_;G[w]||(G[w]=[]);G[w].push(K)}};
xP.prototype.executeCallbacks_=function(e){for(var z=this.JSC$11229_callbackMap_[e],C=0;z&&C<z.length;C++)z[C](e)};
var wIT=function(e,z,C,w,K){w=w===void 0?function(){return!0}:w;
K=K===void 0?{}:K;z=_.b(z);for(var G=z.next();!G.done;G=z.next()){G=G.value;var X=e.getModuleInfo(G);!K[G]&&w(X)&&(K[G]=!0,wIT(e,X.deps_||[],C,w,K),C(X))}};
xP.prototype.dispose=function(){_.JA(_.de.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11229_callbackMap_={};this.isDisposed_=!0};
xP.prototype.isDisposed=function(){return this.isDisposed_};
_.sv=function(){return new xP};var Kia=[5E3,2E4],ujg=function(){this.JSC$10223_loader_=null;this.JSC$11237_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11237_queue_=[];this.JSC$11237_extraEdges_=Object.create(null);this.JSC$11237_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.U(ujg,sgU);_.Y=ujg.prototype;_.Y.setAllModuleInfoString=function(){this.JSC$11237_currentlyLoadingModule_&&this.JSC$11237_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11224_setLoaded()};
_.Y.getModuleInfo=function(e){var z=this.JSC$11237_moduleInfoMap_[e];z||(z=new bs([],e),this.JSC$11237_moduleInfoMap_[e]=z);return z};
_.Y.addExtraEdge=function(e,z){this.getModuleInfo(e).isLoaded()?this.load(z):(this.JSC$11237_extraEdges_[e]||(this.JSC$11237_extraEdges_[e]={}),this.JSC$11237_extraEdges_[e][z]=!0)};
_.Y.removeExtraEdge=function(e,z){if(this.JSC$11237_extraEdges_[e]){delete this.JSC$11237_extraEdges_[e][z];for(var C in this.JSC$11237_extraEdges_[e])return;delete this.JSC$11237_extraEdges_[e]}};
_.Y.isModuleLoading=function(e){return!!this.loadingModules_[e]};
_.Y.load=function(e){o$S(this,[e]);return G8s(this,e)};
_.Y.loadMultiple=function(e){var z=this,C=Object.create(null),w=[];e.forEach(function(K){C[K]||(C[K]=G8s(z,K),w.push(K))});
o$S(this,w);return C};
_.Y.beforeLoadModuleCode=function(e){var z;((z=this.JSC$11237_currentlyLoadingModule_)==null?void 0:z.getId())==="synthetic_module_overhead"&&this.JSC$11224_setLoaded();var C,w;Yx6(this,(w=(C=this.JSC$11237_moduleInfoMap_[e])==null?void 0:C.deps_)!=null?w:[],function(K){K.module_=new YP},function(K){return!K.isLoaded()});
this.JSC$11237_currentlyLoadingModule_=this.getModuleInfo(e)};
_.Y.JSC$11224_setLoaded=function(){if(this.JSC$11237_currentlyLoadingModule_){var e=this.JSC$11237_currentlyLoadingModule_.getId(),z=[];if(this.JSC$11237_extraEdges_[e]){for(var C=_.b(Object.keys(this.JSC$11237_extraEdges_[e])),w=C.next();!w.done;w=C.next())w=w.value,this.getModuleInfo(w).isLoaded()||(this.removeExtraEdge(e,w),z.push(w));this.loadMultiple(z)}this.JSC$11237_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11237_currentlyLoadingModule_=null;(!this.isModuleLoading(e)&&/^sy[0-9a-z]{0,4}$/.test(e)||e==="synthetic_module_overhead")&&delete this.JSC$11237_moduleInfoMap_[e];this.unsetModulesAsLoading(e)}};
_.Y.registerInitializationCallback=function(e){this.JSC$11237_currentlyLoadingModule_||(this.JSC$11237_moduleInfoMap_.synthetic_module_overhead=new bs([],"synthetic_module_overhead"),this.JSC$11237_currentlyLoadingModule_=this.JSC$11237_moduleInfoMap_.synthetic_module_overhead);Xx(this.JSC$11237_currentlyLoadingModule_.earlyOnloadCallbacks_,e)};
_.Y.setModulesAsLoading=function(){var e=this;_.yL.apply(0,arguments).forEach(function(z){e.loadingModules_[z]=!0})};
_.Y.unsetModulesAsLoading=function(){var e=this;_.yL.apply(0,arguments).forEach(function(z){delete e.loadingModules_[z]})};
var G8s=function(e,z){return new _.RC(function(C,w){var K=e.getModuleInfo(z);K.isLoaded()?C(null):(K.registerCallback(function(){C(null)}),P6c(K,function(G){var X="Error loading "+z+": "+G;
G instanceof kd.ModuleLoadFailure&&G.url&&(X=X+", requested url: "+G.url.toString());w(Error(X))}))})},o$S=function(e,z){z=z.filter(function(C){return!e.isModuleLoading(C)&&!e.getModuleInfo(C).isLoaded()});
z.length>0&&(e.setModulesAsLoading.apply(e,_.s_(z)),e.JSC$11237_queue_.push(z),bPc(e))},bPc=function(e){for(var z={};e.activeLoads_<Infinity&&e.JSC$11237_queue_.length>0;z={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})z.ids$jscomp$37=e.JSC$11237_queue_.shift().filter(function(C){return!e.getModuleInfo(C).isLoaded()}),z.ids$jscomp$37.length>0&&(e.activeLoads_++,z.finishLoad=function(C){return function(){e.activeLoads_--;
bPc(e);C.finishLoad=function(){}}}(z),_.tT(z.ids$jscomp$37.map(function(C){return G8s(e,C)})).then(function(C){return function(){(0,C.finishLoad)()}}(z)),z.attempt$jscomp$6=0,z.load$jscomp$1=function(C){return function(){if(Object.keys(e.JSC$11237_extraEdges_).length>0&&!e.JSC$10223_loader_.supportsExtraEdges)throw Error("yd");
e.JSC$10223_loader_.JSC$11216_loadModules(C.ids$jscomp$37,e.JSC$11237_moduleInfoMap_,{extraEdges:e.JSC$11237_extraEdges_,onError:function(w,K){var G=Kia[C.attempt$jscomp$6++];G!==void 0?setTimeout(function(){(0,C.load$jscomp$1)()},G):(e.unsetModulesAsLoading.apply(e,_.s_(C.ids$jscomp$37)),(0,C.finishLoad)(),C.ids$jscomp$37.forEach(function(X){X=e.getModuleInfo(X);
if(!X.isLoaded())X.onError(new kd.ModuleLoadFailure(kd.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,w,C.ids$jscomp$37,K))}))}})}}(z),(0,z.load$jscomp$1)())},Yx6=function(e,z,C,w,K){w=w===void 0?function(){return!0}:w;
K=K===void 0?{}:K;z=_.b(z);for(var G=z.next();!G.done;G=z.next()){G=G.value;var X=e.getModuleInfo(G);!K[G]&&w(X)&&(K[G]=!0,Yx6(e,X.deps_||[],C,w,K),C(X))}};var XIa=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var T$g=Symbol("Bd");window.JSCompiler_renameProperty=function(e){return e};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var JKa=!XIa||HTMLElement.es5Shimmed||_.wL.Reflect===void 0||_.wL.customElements===void 0||_.wL.customElements.polyfillWrapFlushCallback||!1,k8Y,Bzk=function(){var e=HTMLElement;if(JKa)return e;if(k8Y!==void 0)return k8Y;var z=_.wL.Reflect,C=function(){return z.construct(e,[],this.constructor)};
C.prototype=e.prototype;C.prototype.constructor=C;C.es5Shimmed=!0;Object.setPrototypeOf(C,e);return k8Y=C},qxs=!1;JKa||qxs||(qxs=!0,_.wL.HTMLElement=Bzk());/*

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 aWL=/(url\()([^)]*)(\))/g,Qe5=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ml5,HQ;var z0=!window.ShadyDOM||!window.ShadyDOM.inUse,xHC=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),TOU=!window.customElements.polyfillWrapFlushCallback,$Hg;if($Hg=z0&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var lLs=new CSSStyleSheet;lLs.replaceSync("");var Q3T=document.createElement("div");Q3T.attachShadow({mode:"open"});Q3T.shadowRoot.adoptedStyleSheets=[lLs];$Hg=Q3T.shadowRoot.adoptedStyleSheets[0]===lLs}catch(e){$Hg=!1}
var mHT=$Hg,aLc=window.Polymer&&window.Polymer.rootPath||M47(document.baseURI||window.location.href),SY=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Rih=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,YW=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,n$C=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,eC=window.Polymer&&window.Polymer.legacyOptimizations||!1,G0=window.Polymer&&window.Polymer.legacyWarnings||!1,MLX=window.Polymer&&window.Polymer.syncInitialRender||
!1,dK=window.Polymer&&window.Polymer.legacyUndefined||!1,rK6=window.Polymer&&window.Polymer.orderedComputed||!1,$P=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ls=window.Polymer&&window.Polymer.fastDomIf||!1,QK=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,HPX=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,UHC=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var mX={},v$s={},ip=function(){return HTMLElement.apply(this,arguments)||this};
_.U(ip,HTMLElement);ip.import=function(e,z){return e?(e=mX[e]||v$s[e.toLowerCase()])&&z?e.querySelector(z):e:null};
ip.prototype.attributeChangedCallback=function(e,z,C){z!==C&&this.register()};
ip.prototype.register=function(e){if(e=e||this.id){if(YW&&(mX[e]||v$s[e.toLowerCase()])!==void 0)throw mX[e]=v$s[e.toLowerCase()]=null,Error("Cd`"+e);this.id=e;mX[e]=v$s[e.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.lB.Object.defineProperties(ip.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;e=_.Uc(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=M47(e)}return this.__assetpath}}});
_.lB.Object.defineProperties(ip,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
ip["import"]=ip.import;ip.prototype.modules=mX;customElements.define("dom-module",ip);var ILY=0,Hs4=0,vQ=[],Wia=0,rS4=!1,PEg=document.createTextNode(""),RdX,ZV;(new window.MutationObserver(Ulm)).observe(PEg,{characterData:!0});_.aJ={after:function(e){return{run:function(z){return window.setTimeout(z,e)},
cancel:function(z){window.clearTimeout(z)}}},
run:function(e,z){return window.setTimeout(e,z)},
cancel:function(e){window.clearTimeout(e)}};
_.P9={run:function(e){return window.requestAnimationFrame(e)},
cancel:function(e){window.cancelAnimationFrame(e)}};
RdX={run:function(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},
cancel:function(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}};
ZV={run:function(e){rS4||(rS4=!0,PEg.textContent=Wia++);vQ.push(e);return ILY++},
cancel:function(e){var z=e-Hs4;if(z>=0){if(!vQ[z])throw Error("Dd`"+e);vQ[z]=null}}};var LiS=0,nc=function(e){var z=e.__mixinApplications;z||(z=new WeakMap,e.__mixinApplications=z);var C=LiS++;return function(w){var K=w.__mixinSet;if(K&&K[C])return w;var G=z,X=G.get(w);X||(X=e(w),G.set(w,X),w=Object.create(X.__mixinSet||K||null),w[C]=!0,X.__mixinSet=w);return X}};_.fZ=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(e){return ShadyDOM.patch(e)}:function(e){return e};var hdT=nc(function(e){var z=function(){var C=e.call(this)||this;C.__dataEnabled=!1;C.__dataReady=!1;C.__dataInvalid=!1;C.__data={};C.__dataPending=null;C.__dataOld=null;C.__dataInstanceProps=null;C.__dataCounter=0;C.__serializing=!1;C._initializeProperties();return C};
_.U(z,e);z.createProperties=function(C){var w=this.prototype,K;for(K in C)K in w||w._createPropertyAccessor(K)};
z.attributeNameForProperty=function(C){return C.toLowerCase()};
z.typeForProperty=function(){};
z.prototype._createPropertyAccessor=function(C,w){this._addPropertyToAttributeMap(C);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[C]||(this.__dataHasAccessor[C]=!0,this._definePropertyAccessor(C,w))};
z.prototype._addPropertyToAttributeMap=function(C){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var w=this.__dataAttributes[C];w||(w=this.constructor.attributeNameForProperty(C),this.__dataAttributes[w]=C);return w};
z.prototype._definePropertyAccessor=function(C,w){Object.defineProperty(this,C,{get:function(){return this.__data[C]},
set:w?function(){}:function(K){this._setPendingProperty(C,K,!0)&&this._invalidateProperties()}})};
z.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
z.prototype._initializeProperties=function(){for(var C in this.__dataHasAccessor)this.hasOwnProperty(C)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[C]=this[C],delete this[C])};
z.prototype._initializeInstanceProperties=function(C){Object.assign(this,C)};
z.prototype._setProperty=function(C,w){this._setPendingProperty(C,w)&&this._invalidateProperties()};
z.prototype._getProperty=function(C){return this.__data[C]};
z.prototype._setPendingProperty=function(C,w){var K=this.__data[C],G=this._shouldPropertyChange(C,w,K);G&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||C in this.__dataOld||(this.__dataOld[C]=K),this.__data[C]=w,this.__dataPending[C]=w);return G};
z.prototype._isPropertyPending=function(C){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(C))};
z.prototype._invalidateProperties=function(){var C=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ZV.run(function(){C.__dataInvalid&&(C.__dataInvalid=!1,C._flushProperties())}))};
z.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
z.prototype._flushProperties=function(){this.__dataCounter++;var C=this.__data,w=this.__dataPending,K=this.__dataOld;this._shouldPropertiesChange(C,w,K)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(C,w,K));this.__dataCounter--};
z.prototype._shouldPropertiesChange=function(C,w){return!!w};
z.prototype._propertiesChanged=function(){};
z.prototype._shouldPropertyChange=function(C,w,K){return K!==w&&(K===K||w===w)};
z.prototype.attributeChangedCallback=function(C,w,K,G){w!==K&&this._attributeToProperty(C,K);e.prototype.attributeChangedCallback&&e.prototype.attributeChangedCallback.call(this,C,w,K,G)};
z.prototype._attributeToProperty=function(C,w,K){if(!this.__serializing){var G=this.__dataAttributes;C=G&&G[C]||C;this[C]=this._deserializeValue(w,K||this.constructor.typeForProperty(C))}};
z.prototype._propertyToAttribute=function(C,w,K){this.__serializing=!0;K=arguments.length<3?this[C]:K;this._valueToNodeAttribute(this,K,w||this.constructor.attributeNameForProperty(C));this.__serializing=!1};
z.prototype._valueToNodeAttribute=function(C,w,K){w=this._serializeValue(w);if(K==="class"||K==="name"||K==="slot")C=(0,_.fZ)(C);w===void 0?C.removeAttribute(K):C.setAttribute(K,w===""&&window.trustedTypes?window.trustedTypes.emptyScript:w)};
z.prototype._serializeValue=function(C){switch(typeof C){case "boolean":return C?"":void 0;default:return C!=null?C.toString():void 0}};
z.prototype._deserializeValue=function(C,w){switch(w){case Boolean:return C!==null;case Number:return Number(C);default:return C}};
return z});var OPL=0,vs1=[];var E$C=nc(function(e){function z(G){G=Object.getPrototypeOf(G);return G.prototype instanceof K?G:null}
function C(G){if(!G.hasOwnProperty("__ownProperties")){var X=null;if(G.hasOwnProperty("properties")){var J=G.properties;if(J){X={};for(var q in J){var T=J[q];X[q]=typeof T==="function"?{type:T}:T}}}G.__ownProperties=X}return G.__ownProperties}
var w=hdT(e),K=function(){return w.apply(this,arguments)||this};
_.U(K,w);K.finalize=function(){if(!this.hasOwnProperty("__finalized")){var G=z(this);G&&G.finalize();this.__finalized=!0;this._finalizeClass()}};
K._finalizeClass=function(){var G=C(this);G&&this.createProperties(G)};
K.typeForProperty=function(G){return(G=this._properties[G])&&G.type};
K.prototype._initializeProperties=function(){OPL++;this.constructor.finalize();w.prototype._initializeProperties.call(this)};
K.prototype.connectedCallback=function(){w.prototype.connectedCallback&&w.prototype.connectedCallback.call(this);this._enableProperties()};
K.prototype.disconnectedCallback=function(){w.prototype.disconnectedCallback&&w.prototype.disconnectedCallback.call(this)};
_.lB.Object.defineProperties(K,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var G=this;if(!this.hasOwnProperty("__observedAttributes")){IW8(this.prototype);var X=this._properties;this.__observedAttributes=X?Object.keys(X).map(function(J){return G.prototype._addPropertyToAttributeMap(J)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var G=z(this);this.__properties=Object.assign({},G&&G._properties,C(this))}return this.__properties}}});
return K});var W8L={},Pn8=/-[a-z]/g,RPk=/([A-Z])/g;for(var Fia={},VLC=HTMLElement.prototype;VLC;){for(var fLC=Object.getOwnPropertyNames(VLC),SxY=0;SxY<fLC.length;SxY++)Fia[fLC[SxY]]=!0;VLC=Object.getPrototypeOf(VLC)}var uCc=window.trustedTypes?function(e){return trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e)}:function(){return!1},dHa=nc(function(e){var z=hdT(e);
e=function(){return z.apply(this,arguments)||this};
_.U(e,z);e.createPropertiesForAttributes=function(){for(var C=this.observedAttributes,w=0;w<C.length;w++)this.prototype._createPropertyAccessor(IO(C[w]))};
e.attributeNameForProperty=function(C){return WQ(C)};
e.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);z.prototype._initializeProperties.call(this)};
e.prototype._initializeProtoProperties=function(C){for(var w in C)this._setProperty(w,C[w])};
e.prototype._ensureAttribute=function(C,w){this.hasAttribute(C)||this._valueToNodeAttribute(this,w,C)};
e.prototype._serializeValue=function(C){switch(typeof C){case "object":if(C instanceof Date)return C.toString();if(C){if(uCc(C))return C;try{return JSON.stringify(C)}catch(w){return""}}default:return z.prototype._serializeValue.call(this,C)}};
e.prototype._deserializeValue=function(C,w){switch(w){case Object:try{var K=JSON.parse(C)}catch(G){K=C}break;case Array:try{K=JSON.parse(C)}catch(G){K=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+C)}break;case Date:K=isNaN(C)?String(C):Number(C);K=new Date(K);break;default:K=z.prototype._deserializeValue.call(this,C,w)}return K};
e.prototype._definePropertyAccessor=function(C,w){if(!Fia[C]){var K=this[C];K!==void 0&&(this.__data?this._setPendingProperty(C,K):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[C]=K))}z.prototype._definePropertyAccessor.call(this,C,w)};
e.prototype._hasAccessor=function(C){return this.__dataHasAccessor&&this.__dataHasAccessor[C]};
e.prototype._isPropertyPending=function(C){return!!(this.__dataPending&&C in this.__dataPending)};
return e});var DHg={"dom-if":!0,"dom-repeat":!0},iPc=!1,NOL=!1,s3g=function(){var e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(z){return z}});
return function(z,C,w){C=C.getAttribute(w);e&&w.startsWith("on-")?z.setAttribute(w,e.createScript(C,w)):z.setAttribute(w,C)}}(),BO6=nc(function(e){var z=function(){return e.apply(this,arguments)||this};
_.U(z,e);z._parseTemplate=function(C,w){if(!C._templateInfo){var K=C._templateInfo={};K.nodeInfoList=[];K.nestedTemplate=!!w;K.stripWhiteSpace=w&&w.stripWhiteSpace||C.hasAttribute&&C.hasAttribute("strip-whitespace");this._parseTemplateContent(C,K,{parent:null})}return C._templateInfo};
z._parseTemplateContent=function(C,w,K){return this._parseTemplateNode(C.content,w,K)};
z._parseTemplateNode=function(C,w,K){var G=!1;C.localName!="template"||C.hasAttribute("preserve-content")?C.localName==="slot"&&(w.hasInsertionPoint=!0):G=this._parseTemplateNestedTemplate(C,w,K)||G;if(!iPc){iPc=!0;var X=document.createElement("textarea");X.placeholder="a";NOL=X.placeholder===X.textContent}NOL&&C.localName==="textarea"&&C.placeholder&&C.placeholder===C.textContent&&(C.textContent=null);C.firstChild&&this._parseTemplateChildNodes(C,w,K);C.hasAttributes&&C.hasAttributes()&&(G=this._parseTemplateNodeAttributes(C,
w,K)||G);return G||K.noted};
z._parseTemplateChildNodes=function(C,w,K){if(C.localName!=="script"&&C.localName!=="style")for(var G=C.firstChild,X=0,J;G;G=J){if(G.localName=="template"){var q=G.getAttribute("is");if(q&&DHg[q])for(J=G,J.removeAttribute("is"),G=J.ownerDocument.createElement(q),J.parentNode.replaceChild(G,J),G.appendChild(J);J.attributes.length;)q=J.attributes[0].name,s3g(G,J,q),J.removeAttribute(q)}J=G.nextSibling;if(G.nodeType===Node.TEXT_NODE){for(q=J;q&&q.nodeType===Node.TEXT_NODE;)G.textContent+=q.textContent,
J=q.nextSibling,C.removeChild(q),q=J;if(w.stripWhiteSpace&&!G.textContent.trim()){C.removeChild(G);continue}}q={parentIndex:X,parentInfo:K};this._parseTemplateNode(G,w,q)&&(q.infoIndex=w.nodeInfoList.push(q)-1);G.parentNode&&X++}};
z._parseTemplateNestedTemplate=function(C,w,K){w=this._parseTemplate(C,w);(w.content=C.content.ownerDocument.createDocumentFragment()).appendChild(C.content);K.templateInfo=w;return!0};
z._parseTemplateNodeAttributes=function(C,w,K){for(var G=!1,X=Array.from(C.attributes),J=X.length-1,q;q=X[J];J--)G=this._parseTemplateNodeAttribute(C,w,K,q.name,q.value)||G;return G};
z._parseTemplateNodeAttribute=function(C,w,K,G,X){return G.slice(0,3)==="on-"?(C.removeAttribute(G),K.events=K.events||[],K.events.push({name:G.slice(3),value:X}),!0):G==="id"?(K.id=X,!0):!1};
z._contentForTemplate=function(C){var w=C._templateInfo;return w&&w.content||C.content};
z.prototype._stampTemplate=function(C,w){C&&!C.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(C);w=w||this.constructor._parseTemplate(C);var K=w.nodeInfoList;C=document.importNode(w.content||C.content,!0);C.__noInsertionPoint=!w.hasInsertionPoint;var G=C.nodeList=Array(K.length);C.$={};for(var X=0,J=K.length,q=void 0;X<J&&(q=K[X]);X++){var T=G[X]=L8N(C,q);q.id&&(C.$[q.id]=T);var Q=T,m=q,a=w;m.templateInfo&&(Q._templateInfo=m.templateInfo,Q._parentTemplateInfo=
a);if(q.events&&q.events.length)for(Q=0,m=q.events,a=void 0;Q<m.length&&(a=m[Q]);Q++)this._addMethodEventListenerToNode(T,a.name,a.value,this)}return C};
z.prototype._addMethodEventListenerToNode=function(C,w,K,G){K=hP1(G||C,K);this._addEventListenerToNode(C,w,K);return K};
z.prototype._addEventListenerToNode=function(C,w,K){C.addEventListener(w,K)};
z.prototype._removeEventListenerFromNode=function(C,w,K){C.removeEventListener(w,K)};
return z});var FL=0,up=[],tLo={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},g$c=/[A-Z]/,j36=function(e,z,C,w,K){var G=K?RO(e):e;if(z=z[G])for(G=0;G<z.length;G++){var X=z[G];if(X.info.lastRun!==FL&&(!K||SA8(e,X.trigger))){X.info.lastRun=FL;X=X.info;for(var J=C,q=w,T=0,Q=J.length-1,m=-1;T<=Q;){var a=T+Q>>1,n=q.get(J[a].methodInfo)-q.get(X.methodInfo);if(n<0)T=a+1;else if(n>0)Q=a-1;else{m=a;break}}m<
0&&(m=Q+1);J.splice(m,0,X)}}},p0g=[],yKh=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"),ru=nc(function(e){var z=BO6(dHa(e));
e=function(){var C=z.call(this)||this;C.__isPropertyEffectsClient=!0;return C};
_.U(e,z);e.prototype._initializeProperties=function(){z.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};
e.prototype._registerHost=function(){if(Mn.length){var C=Mn[Mn.length-1];C._enqueueClient(this);this.__dataHost=C}};
e.prototype._initializeProtoProperties=function(C){this.__data=Object.create(C);this.__dataPending=Object.create(C);this.__dataOld={}};
e.prototype._initializeInstanceProperties=function(C){var w=this.__readOnly,K;for(K in C)w&&w[K]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[K]=this.__dataPending[K]=C[K])};
e.prototype._addPropertyEffect=function(C,w,K){this._createPropertyAccessor(C,w=="__readOnly");var G=fWs(this,w,!0)[C];G||(G=this[w][C]=[]);G.push(K)};
e.prototype._removePropertyEffect=function(C,w,K){C=fWs(this,w,!0)[C];K=C.indexOf(K);K>=0&&C.splice(K,1)};
e.prototype._hasPropertyEffect=function(C,w){w=this[w];return!(!w||!w[C])};
e.prototype._hasReadOnlyEffect=function(C){return this._hasPropertyEffect(C,"__readOnly")};
e.prototype._hasNotifyEffect=function(C){return this._hasPropertyEffect(C,"__notifyEffects")};
e.prototype._hasReflectEffect=function(C){return this._hasPropertyEffect(C,"__reflectEffects")};
e.prototype._hasComputedEffect=function(C){return this._hasPropertyEffect(C,"__computeEffects")};
e.prototype._setPendingPropertyOrPath=function(C,w,K,G){if(G||RO(Array.isArray(C)?C[0]:C)!==C){if(!G&&(G=Ec(this,C),C=V45(this,C,w),!C||!z.prototype._shouldPropertyChange.call(this,C,w,G)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(C,w,K)){if(K=this.__dataLinkedPaths)for(var X in K)G=K[X],LZ(X,C)?(G=hH(X,G,C),this._setPendingPropertyOrPath(G,w,!0,!0)):LZ(G,C)&&(G=hH(G,X,C),this._setPendingPropertyOrPath(G,w,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[C])return this._setPendingProperty(C,
w,K);this[C]=w}return!1};
e.prototype._setUnmanagedPropertyToNode=function(C,w,K){if(K!==C[w]||typeof K=="object")w==="className"&&(C=(0,_.fZ)(C)),C[w]=K};
e.prototype._setPendingProperty=function(C,w,K){var G=this.__dataHasPaths&&PQ(C);if(this._shouldPropertyChange(C,w,(G?this.__dataTemp:this.__data)[C])){this.__dataPending||(this.__dataPending={},this.__dataOld={});C in this.__dataOld||(this.__dataOld[C]=this.__data[C]);G?this.__dataTemp[C]=w:this.__data[C]=w;this.__dataPending[C]=w;if(G||this.__notifyEffects&&this.__notifyEffects[C])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[C]=K;return!0}return!1};
e.prototype._setProperty=function(C,w){this._setPendingProperty(C,w,!0)&&this._invalidateProperties()};
e.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
e.prototype._enqueueClient=function(C){this.__dataPendingClients=this.__dataPendingClients||[];C!==this&&this.__dataPendingClients.push(C)};
e.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
e.prototype.__enableOrFlushClients=function(){var C=this.__dataPendingClients;if(C){this.__dataPendingClients=null;for(var w=0;w<C.length;w++){var K=C[w];K.__dataEnabled?K.__dataPending&&K._flushProperties():K._enableProperties()}}};
e.prototype._readyClients=function(){this.__enableOrFlushClients()};
e.prototype.setProperties=function(C,w){for(var K in C)!w&&this.__readOnly&&this.__readOnly[K]||this._setPendingPropertyOrPath(K,C[K],!0);this._invalidateProperties()};
e.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
e.prototype._propertiesChanged=function(C,w,K){C=this.__dataHasPaths;this.__dataHasPaths=!1;var G;if(G=this.__computeEffects)if(rK6){FL++;var X=se8(this),J=[],q;for(q in w)j36(q,G,J,X,C);for(;q=J.shift();)t4s(this,"",w,K,q)&&j36(q.methodInfo,G,J,X,C);Object.assign(K,this.__dataOld);Object.assign(w,this.__dataPending);this.__dataPending=null}else for(X=w;Vr(this,G,X,K,C);)Object.assign(K,this.__dataOld),Object.assign(w,this.__dataPending),X=this.__dataPending,this.__dataPending=null;G=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(w,K,C);this._flushClients();Vr(this,this.__reflectEffects,w,K,C);Vr(this,this.__observeEffects,w,K,C);if(G){X=this.__notifyEffects;J=FL++;for(var T in G)if(G[T]){if(q=X){var Q=X;q=J;var m=T,a=w,n=K,H=C,I=!1,L=H?RO(m):m;if(Q=Q[L]){L=0;for(var h=Q.length,E=void 0;L<h&&(E=Q[L]);L++)E.info&&E.info.lastRun===q||H&&!SA8(m,E.trigger)||(E.info&&(E.info.lastRun=q),E.fn(this,m,a,n,E.info,H,void 0),I=!0)}q=I}if(q)var N=!0;else{if(q=C)q=T,m=w,a=RO(q),a!==
q?(a=WQ(a)+"-changed",dl1(this,a,m[q],q),q=!0):q=!1;q&&(N=!0)}}var D;N&&(D=this.__dataHost)&&D._invalidateProperties&&D._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
e.prototype._propagatePropertyChanges=function(C,w,K){this.__propagateEffects&&Vr(this,this.__propagateEffects,C,w,K);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,C,w,K)};
e.prototype._runEffectsForTemplate=function(C,w,K,G){var X=this,J=function(q,T){Vr(X,C.propertyEffects,q,K,T,C.nodeList);for(var Q=C.firstChild;Q;Q=Q.nextSibling)X._runEffectsForTemplate(Q,q,K,T)};
C.runEffects?C.runEffects(J,w,G):J(w,G)};
e.prototype.linkPaths=function(C,w){C=Oc(C);w=Oc(w);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[C]=w};
e.prototype.unlinkPaths=function(C){C=Oc(C);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[C]};
e.prototype.notifySplices=function(C,w){var K={path:""};C=Ec(this,C,K);wM7(this,C,K.path,w)};
e.prototype.get=function(C,w){return Ec(w||this,C)};
e.prototype.set=function(C,w,K){K?V45(K,C,w):this.__readOnly&&this.__readOnly[C]||this._setPendingPropertyOrPath(C,w,!0)&&this._invalidateProperties()};
e.prototype.push=function(C){var w=_.yL.apply(1,arguments),K={path:""},G=Ec(this,C,K),X=G.length,J=G.push.apply(G,_.s_(w));w.length&&DV(this,G,K.path,X,w.length,[]);return J};
e.prototype.pop=function(C){var w={path:""};C=Ec(this,C,w);var K=!!C.length,G=C.pop();K&&DV(this,C,w.path,C.length,0,[G]);return G};
e.prototype.splice=function(C,w,K){var G=_.yL.apply(3,arguments),X={path:""},J=Ec(this,C,X);w<0?w=J.length-Math.floor(-w):w&&(w=Math.floor(w));var q=arguments.length===2?J.splice(w):J.splice.apply(J,[w,K].concat(_.s_(G)));(G.length||q.length)&&DV(this,J,X.path,w,G.length,q);return q};
e.prototype.shift=function(C){var w={path:""};C=Ec(this,C,w);var K=!!C.length,G=C.shift();K&&DV(this,C,w.path,0,0,[G]);return G};
e.prototype.unshift=function(C){var w=_.yL.apply(1,arguments),K={path:""},G=Ec(this,C,K),X=G.unshift.apply(G,_.s_(w));w.length&&DV(this,G,K.path,0,w.length,[]);return X};
e.prototype.notifyPath=function(C,w){if(arguments.length==1){var K={path:""};w=Ec(this,C,K);K=K.path}else K=Array.isArray(C)?Oc(C):C;this._setPendingPropertyOrPath(K,w,!0,!0)&&this._invalidateProperties()};
e.prototype._createReadOnlyProperty=function(C,w){this._addPropertyEffect(C,"__readOnly");w&&(this["_set"+(C[0].toUpperCase()+C.substring(1))]=function(K){this._setProperty(C,K)})};
e.prototype._createPropertyObserver=function(C,w,K){var G={property:C,method:w,dynamicFn:!!K};this._addPropertyEffect(C,"__observeEffects",{fn:uZg,info:G,trigger:{name:C}});K&&this._addPropertyEffect(w,"__observeEffects",{fn:uZg,info:G,trigger:{name:w}})};
e.prototype._createMethodObserver=function(C,w){var K=zim(C);if(!K)throw Error("Ed`"+C);ASg(this,K,"__observeEffects",B$g,null,w)};
e.prototype._createNotifyingProperty=function(C){this._addPropertyEffect(C,"__notifyEffects",{fn:Dlh,info:{eventName:WQ(C)+"-changed",property:C}})};
e.prototype._createReflectedProperty=function(C){var w=this.constructor.attributeNameForProperty(C);w[0]==="-"?console.warn("Property "+C+" cannot be reflected to attribute "+w+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(C,"__reflectEffects",{fn:is1,info:{attrName:w}})};
e.prototype._createComputedProperty=function(C,w,K){var G=zim(w);if(!G)throw Error("Fd`"+w);w=ASg(this,G,"__computeEffects",t4s,C,K);fWs(this,"__computeInfo")[C]=w};
e.prototype._marshalArgs=function(C,w,K){for(var G=this.__data,X=[],J=0,q=C.length;J<q;J++){var T=C[J],Q=T.name,m=T.structured,a=T.wildcard,n=T.value;T.literal||(a?(T=LZ(Q,w),m=CH4(G,K,T?w:Q),n={path:T?w:Q,value:m,base:T?Ec(G,Q):m}):n=m?CH4(G,K,Q):G[Q]);if(dK&&!this._overrideLegacyUndefined&&n===void 0&&C.length>1)return up;X[J]=n}return X};
e.addPropertyEffect=function(C,w,K){this.prototype._addPropertyEffect(C,w,K)};
e.createPropertyObserver=function(C,w,K){this.prototype._createPropertyObserver(C,w,K)};
e.createMethodObserver=function(C,w){this.prototype._createMethodObserver(C,w)};
e.createNotifyingProperty=function(C){this.prototype._createNotifyingProperty(C)};
e.createReadOnlyProperty=function(C,w){this.prototype._createReadOnlyProperty(C,w)};
e.createReflectedProperty=function(C){this.prototype._createReflectedProperty(C)};
e.createComputedProperty=function(C,w,K){this.prototype._createComputedProperty(C,w,K)};
e.bindTemplate=function(C){return this.prototype._bindTemplate(C)};
e.prototype._bindTemplate=function(C,w){var K=this.constructor._parseTemplate(C),G=this.__preBoundTemplateInfo==K;if(!G)for(var X in K.propertyEffects)this._createPropertyAccessor(X);w?(K=Object.create(K),K.wasPreBound=G,this.__templateInfo?(C=C._parentTemplateInfo||this.__templateInfo,w=C.lastChild,K.parent=C,C.lastChild=K,(K.previousSibling=w)?w.nextSibling=K:C.firstChild=K):this.__templateInfo=K):this.__preBoundTemplateInfo=K;return K};
e._addTemplatePropertyEffect=function(C,w,K){(C.hostProps=C.hostProps||{})[w]=!0;C=C.propertyEffects=C.propertyEffects||{};(C[w]=C[w]||[]).push(K)};
e.prototype._stampTemplate=function(C,w){w=w||this._bindTemplate(C,!0);Mn.push(this);C=z.prototype._stampTemplate.call(this,C,w);Mn.pop();w.nodeList=C.nodeList;if(!w.wasPreBound)for(var K=w.childNodes=[],G=C.firstChild;G;G=G.nextSibling)K.push(G);C.templateInfo=w;K=w.nodeList;G=w.nodeInfoList;if(G.length)for(var X=0;X<G.length;X++){var J=K[X],q=G[X].bindings;if(q)for(var T=0;T<q.length;T++){var Q=q[T],m=J,a=Q;if(a.isCompound){for(var n=m.__dataCompoundStorage||(m.__dataCompoundStorage={}),H=a.parts,
I=Array(H.length),L=0;L<H.length;L++)I[L]=H[L].literal;H=a.target;n[H]=I;a.literal&&a.kind=="property"&&(H==="className"&&(m=(0,_.fZ)(m)),m[H]=a.literal)}cSN(J,this,Q)}J.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(w,this.__data,null,!1),this._flushClients());return C};
e.prototype._removeBoundDom=function(C){C=C.templateInfo;var w=C.previousSibling,K=C.nextSibling,G=C.parent;w?w.nextSibling=K:G&&(G.firstChild=K);K?K.previousSibling=w:G&&(G.lastChild=w);C.nextSibling=C.previousSibling=null;C=C.childNodes;for(w=0;w<C.length;w++)K=C[w],(0,_.fZ)((0,_.fZ)(K).parentNode).removeChild(K)};
e._parseTemplateNode=function(C,w,K){var G=z._parseTemplateNode.call(this,C,w,K);if(C.nodeType===Node.TEXT_NODE){var X=this._parseBindings(C.textContent,w);X&&(C.textContent=ZsL(X)||" ",yS4(this,w,K,"text","textContent",X),G=!0)}return G};
e._parseTemplateNodeAttribute=function(C,w,K,G,X){var J=this._parseBindings(X,w);if(J){X=G;var q="property";g$c.test(G)?q="attribute":G[G.length-1]=="$"&&(G=G.slice(0,-1),q="attribute");var T=ZsL(J);T&&q=="attribute"&&(G=="class"&&C.hasAttribute("class")&&(T+=" "+C.getAttribute(G)),C.setAttribute(G,T));q=="attribute"&&X=="disable-upgrade$"&&C.setAttribute(G,"");C.localName==="input"&&X==="value"&&C.setAttribute(X,"");C.removeAttribute(X);q==="property"&&(G=IO(G));yS4(this,w,K,q,G,J,T);return!0}return z._parseTemplateNodeAttribute.call(this,
C,w,K,G,X)};
e._parseTemplateNestedTemplate=function(C,w,K){var G=z._parseTemplateNestedTemplate.call(this,C,w,K),X=C.parentNode,J=K.templateInfo,q=X.localName==="dom-if",T=X.localName==="dom-repeat";$P&&(q||T)&&(X.removeChild(C),K=K.parentInfo,K.templateInfo=J,K.noted=!0,G=!1);C=J.hostProps;if(ls&&q)C&&(w.hostProps=Object.assign(w.hostProps||{},C),$P||(K.parentInfo.noted=!0));else for(var Q in C)yS4(this,w,K,"property","_host_"+Q,[{mode:"{",source:Q,dependencies:[Q],hostProp:!0}]);return G};
e._parseBindings=function(C,w){for(var K=[],G=0,X;(X=yKh.exec(C))!==null;){X.index>G&&K.push({literal:C.slice(G,X.index)});G=X[1][0];var J=!!X[2];X=X[3].trim();var q=!1,T="",Q=-1;G=="{"&&(Q=X.indexOf("::"))>0&&(T=X.substring(Q+2),X=X.substring(0,Q),q=!0);Q=zim(X);var m=[];if(Q){var a=Q,n=a.args;a=a.methodName;for(var H=0;H<n.length;H++){var I=n[H];I.literal||m.push(I)}if((n=w.dynamicFns)&&n[a]||Q.static)m.push(a),Q.dynamicFn=!0}else m.push(X);K.push({source:X,mode:G,negate:J,customEvent:q,signature:Q,
dependencies:m,event:T});G=yKh.lastIndex}G&&G<C.length&&(C=C.substring(G))&&K.push({literal:C});return K.length?K:null};
e._evaluateBinding=function(C,w,K,G,X,J){C=w.signature?B$g(C,K,G,X,w.signature):K!=w.source?Ec(C,w.source):J&&PQ(K)?Ec(C,K):C.__data[K];w.negate&&(C=!C);return C};
_.lB.Object.defineProperties(e.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return tLo}}});
return e}),Mn=[];var cKC=window.ShadyCSS&&window.ShadyCSS.cssBuild,Hm=nc(function(e){function z(w,K,G,X){if(!cKC){for(var J=K.content.querySelectorAll("style"),q=YQ1(K),T=bML(G),Q=K.content.firstElementChild,m=0;m<T.length;m++){var a=T[m];a.textContent=w._processStyleText(a.textContent,X);K.content.insertBefore(a,Q)}for(Q=T=0;Q<q.length;Q++)m=q[Q],a=J[T],a!==m?(m=m.cloneNode(!0),a.parentNode.insertBefore(m,a)):T++,m.textContent=w._processStyleText(m.textContent,X)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(K,
G);if(UHC&&cKC&&mHT&&(K=K.content.querySelectorAll("style"))){var n="";Array.from(K).forEach(function(H){n+=H.textContent;H.parentNode.removeChild(H)});
w._styleSheet=new CSSStyleSheet;w._styleSheet.replaceSync(n)}}
var C=E$C(ru(e));e=function(){return C.call(this)||this};
_.U(e,C);e._finalizeClass=function(){C._finalizeClass.call(this);var w;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(w=this.__ownObservers)&&this.createObservers(w,this._properties);this._prepareTemplate()};
e._prepareTemplate=function(){var w=this.template;w&&(typeof w==="string"?(console.error("template getter must return HTMLTemplateElement"),w=null):eC||(w=w.cloneNode(!0)));this.prototype._template=w};
e.createProperties=function(w){for(var K in w){var G=this.prototype,X=K,J=w[K],q=w;J.computed&&(J.readOnly=!0);J.computed&&(G._hasReadOnlyEffect(X)?console.warn("Cannot redefine computed property '"+X+"'."):G._createComputedProperty(X,J.computed,q));J.readOnly&&!G._hasReadOnlyEffect(X)?G._createReadOnlyProperty(X,!J.computed):J.readOnly===!1&&G._hasReadOnlyEffect(X)&&console.warn("Cannot make readOnly property '"+X+"' non-readOnly.");J.reflectToAttribute&&!G._hasReflectEffect(X)?G._createReflectedProperty(X):
J.reflectToAttribute===!1&&G._hasReflectEffect(X)&&console.warn("Cannot make reflected property '"+X+"' non-reflected.");J.notify&&!G._hasNotifyEffect(X)?G._createNotifyingProperty(X):J.notify===!1&&G._hasNotifyEffect(X)&&console.warn("Cannot make notify property '"+X+"' non-notify.");J.observer&&G._createPropertyObserver(X,J.observer,q[J.observer]);G._addPropertyToAttributeMap(X)}};
e.createObservers=function(w,K){for(var G=this.prototype,X=0;X<w.length;X++)G._createMethodObserver(w[X],K)};
e.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);C.prototype._initializeProperties.call(this);this.rootPath=aLc;this.importPath=this.constructor.importPath;var w=this.constructor;if(!w.hasOwnProperty("__propertyDefaults")){w.__propertyDefaults=null;var K=w._properties,G;for(G in K){var X=K[G];"value"in X&&(w.__propertyDefaults=w.__propertyDefaults||{},w.__propertyDefaults[G]=X)}}if(w=w.__propertyDefaults)for(var J in w)K=w[J],
this._canApplyPropertyDefault(J)&&(K=typeof K.value=="function"?K.value.call(this):K.value,this._hasAccessor(J)?this._setPendingProperty(J,K,!0):this[J]=K)};
e.prototype._canApplyPropertyDefault=function(w){return!this.hasOwnProperty(w)};
e._processStyleText=function(w,K){return nsg(w,K)};
e._finalizeTemplate=function(w){var K=this.prototype._template;if(K&&!K.__polymerFinalized){K.__polymerFinalized=!0;var G=this.importPath;G=G?_.Uc(G):"";z(this,K,w,G);this.prototype._bindTemplate(K)}};
e.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);C.prototype.connectedCallback.call(this)};
e.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);C.prototype.ready.call(this)};
e.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));C.prototype._readyClients.call(this)};
e.prototype._attachDom=function(w){var K=(0,_.fZ)(this);if(K.attachShadow)return w?(K.shadowRoot||(K.attachShadow({mode:"open",shadyUpgradeFragment:w}),K.shadowRoot.appendChild(w),this.constructor._styleSheet&&(K.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),MLX&&window.ShadyDOM&&window.ShadyDOM.flushInitial(K.shadowRoot),K.shadowRoot):null;throw Error("Hd");};
e.prototype.updateStyles=function(w){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,w)};
e.prototype.resolveUrl=function(w,K){!K&&this.importPath&&(K=_.Uc(this.importPath));return _.Uc(w,K)};
e._parseTemplateContent=function(w,K,G){K.dynamicFns=K.dynamicFns||this._properties;return C._parseTemplateContent.call(this,w,K,G)};
e._addTemplatePropertyEffect=function(w,K,G){!G0||K in this._properties||G.info.part.signature&&G.info.part.signature.static||G.info.part.hostProp||w.nestedTemplate||console.warn("Property '"+K+"' used in template but not declared in 'properties'; attribute will not be observed.");return C._addTemplatePropertyEffect.call(this,w,K,G)};
_.lB.Object.defineProperties(e,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var w=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof w==="function"&&(w=w());if(w===void 0){if(w=this.hasOwnProperty("is")){w=this.is;var K=null;if(w&&(!YW||n$C)&&(K=ip.import(w,"template"),YW&&!K))throw Error("Gd`"+w);w=K}w=w||Object.getPrototypeOf(this.prototype).constructor.template}this._template=w}return this._template},
set:function(w){this._template=w}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var w=this.importMeta;w?this._importPath=M47(w.url):this._importPath=(w=ip.import(this.is))&&w.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return e});var AK6=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(e){return e}}),$Zs=function(e,z){ZPa(e,z);
this.value=z.reduce(function(C,w,K){return C+lrN(w)+e[K+1]},e[0]).toString()},ZPa;
$Zs.prototype.toString=function(){return this.value};
_.pIL=function(e){var z=_.yL.apply(1,arguments);ZPa(e,z);var C=document.createElement("template");z=z.reduce(function(w,K,G){if(K instanceof HTMLTemplateElement)K=K.innerHTML;else if(K instanceof $Zs)K=lrN(K);else throw Error("Jd`"+K);return w+K+e[G+1]},e[0]);
AK6&&(z=AK6.createHTML(z));C.innerHTML=z;return C};
ZPa=function(e,z){if(!Array.isArray(e)||!Array.isArray(e.raw)||z.length!==e.length-1)throw new TypeError("Kd");};var UJ=Hm(HTMLElement);var e9g=nc(function(e){var z=Hm(e);e=function(){var C=z.call(this)||this;C.__lastItems=null;C.__lastMulti=null;C.__selectedMap=null;return C};
_.U(e,z);e.prototype.__updateSelection=function(C,w){var K=w.path;K=="items"?(w=w.base||[],K=this.__lastItems,C!==this.__lastMulti&&this.clearSelection(),K&&(K=Thk(w,K),this.__applySplices(K)),this.__lastItems=w,this.__lastMulti=C):w.path=="items.splices"?this.__applySplices(w.value.indexSplices):(C=K.slice(6),w=parseInt(C,10),C.indexOf(".")<0&&C==w&&this.__deselectChangedIdx(w))};
e.prototype.__applySplices=function(C){for(var w=this,K=this.__selectedMap,G={},X=0;X<C.length;G={s$jscomp$109:void 0},X++){G.s$jscomp$109=C[X];K.forEach(function(Q){return function(m,a){m<Q.s$jscomp$109.index||(m>=Q.s$jscomp$109.index+Q.s$jscomp$109.removed.length?K.set(a,m+Q.s$jscomp$109.addedCount-Q.s$jscomp$109.removed.length):K.set(a,-1))}}(G));
for(var J=0;J<G.s$jscomp$109.addedCount;J++){var q=G.s$jscomp$109.index+J;K.has(this.items[q])&&K.set(this.items[q],q)}}this.__updateLinks();var T=0;K.forEach(function(Q,m){Q<0?(w.multi?w.splice("selected",T,1):w.selected=w.selectedItem=null,K.delete(m)):T++})};
e.prototype.__updateLinks=function(){var C=this;this.__dataLinkedPaths={};if(this.multi){var w=0;this.__selectedMap.forEach(function(K){K>=0&&C.linkPaths("items."+K,"selected."+w++)})}else this.__selectedMap.forEach(function(K){C.linkPaths("selected","items."+K);
C.linkPaths("selectedItem","items."+K)})};
e.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
e.prototype.isSelected=function(C){return this.__selectedMap.has(C)};
e.prototype.isIndexSelected=function(C){return this.isSelected(this.items[C])};
e.prototype.__deselectChangedIdx=function(C){var w=this,K=this.__selectedIndexForItemIndex(C);if(K>=0){var G=0;this.__selectedMap.forEach(function(X,J){K==G++&&w.deselect(J)})}};
e.prototype.__selectedIndexForItemIndex=function(C){if(C=this.__dataLinkedPaths["items."+C])return parseInt(C.slice(9),10)};
e.prototype.deselect=function(C){var w=this.__selectedMap.get(C);if(w>=0){this.__selectedMap.delete(C);var K;this.multi&&(K=this.__selectedIndexForItemIndex(w));this.__updateLinks();this.multi?this.splice("selected",K,1):this.selected=this.selectedItem=null}};
e.prototype.deselectIndex=function(C){this.deselect(this.items[C])};
e.prototype.select=function(C){this.selectIndex(this.items.indexOf(C))};
e.prototype.selectIndex=function(C){var w=this.items[C];this.isSelected(w)?this.toggle&&this.deselectIndex(C):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(w,C),this.__updateLinks(),this.multi?this.push("selected",w):this.selected=this.selectedItem=w)};
_.lB.Object.defineProperties(e,{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 e}),z9s=e9g(UJ),IJ=function(){return z9s.apply(this,arguments)||this};
_.U(IJ,z9s);_.lB.Object.defineProperties(IJ,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(IJ.is,IJ);var CAX=window.Polymer;window.Polymer=function(e){return window.Polymer._polymerFn(e)};
CAX&&Object.assign(Polymer,CAX);Polymer._polymerFn=function(){throw Error("Ld");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:nsg,resolveUrl:_.Uc,pathFromUrl:M47};Polymer.DomModule=ip;Polymer.Async={timeOut:_.aJ,animationFrame:_.P9,idlePeriod:RdX,microTask:ZV};Polymer.dedupingMixin=nc;Polymer.wrap=_.fZ;Polymer.PropertiesChanged=hdT;Polymer.telemetry={instanceCount:OPL,incrementInstanceCount:function(){OPL++},
registrations:vs1,register:IW8,dumpRegistrations:function(){vs1.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=E$C;Polymer.CaseMap={dashToCamelCase:IO,camelToDashCase:WQ};Polymer.PropertyAccessors=dHa;Polymer.TemplateStamp=BO6;Polymer.Path={isPath:PQ,root:RO,isAncestor:Osk,isDescendant:LZ,translate:hH,matches:Es1,normalize:Oc,split:F8h,get:Ec,set:V45,isDeep:PQ};Polymer.Settings={useShadow:z0,useNativeCSSProperties:xHC,useNativeCustomElements:TOU,get rootPath(){return aLc},setRootPath:function(e){aLc=e},
get sanitizeDOMValue(){return SY},setSanitizeDOMValue:function(e){SY=e},
get passiveTouchGestures(){return Rih},setPassiveTouchGestures:function(e){Rih=e},
get strictTemplatePolicy(){return YW},setStrictTemplatePolicy:function(e){YW=e},
get allowTemplateFromDomModule(){return n$C},setAllowTemplateFromDomModule:function(e){n$C=e},
get legacyOptimizations(){return eC},setLegacyOptimizations:function(e){eC=e},
get syncInitialRender(){return MLX},setSyncInitialRender:function(e){MLX=e},
get legacyUndefined(){return dK},setLegacyUndefined:function(e){dK=e},
get legacyWarnings(){return G0},setLegacyWarnings:function(e){G0=e},
get orderedComputed(){return rK6},setOrderedComputed:function(e){rK6=e},
get fastDomIf(){return ls},setFastDomIf:function(e){ls=e},
get removeNestedTemplates(){return $P},setRemoveNestedTemplates:function(e){$P=e},
get suppressTemplateNotifications(){return QK},setSuppressTemplateNotifications:QK};Polymer.rootPath!==void 0&&(aLc=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(SY=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Rih=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(YW=Polymer.strictTemplatePolicy);n$C=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(eC=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(MLX=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(dK=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(G0=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(rK6=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(ls=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&($P=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(QK=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return SY},
set:function(e){SY=e}});Polymer.PropertyEffects=ru;Polymer.StyleGather={stylesFromModules:GOg,stylesFromModule:o3g,stylesFromTemplate:YQ1,stylesFromModuleImports:bML,cssFromModules:J81,cssFromModule:XMk,cssFromTemplate:kO5,cssFromModuleImports:function(e){return(e=ip.import(e))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(e):""}};Polymer.ElementMixin=Hm;Polymer.updateStyles=function(e){window.ShadyCSS&&window.ShadyCSS.styleDocument(e)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Thk};Polymer.html=_.pIL;Polymer.htmlLiteral=function(e){return new $Zs(e,_.yL.apply(1,arguments))};Polymer.Element=UJ;Polymer.ArraySelectorMixin=e9g;Polymer.ArraySelector=IJ;var w9a=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,KOa=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,cdg=/@media\s(.*)/;var n3N=null,arg=window.HTMLImports&&window.HTMLImports.whenReady||null,Mos;var opS=null,Wm=null,Pm=function(){this.customStyles=[];this.enqueued=!1;r8o(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},Gxg=function(e){!e.enqueued&&Wm&&(e.enqueued=!0,r8o(Wm))};
Pm.prototype.addCustomStyle=function(e){e.__seenByShadyCSS||(e.__seenByShadyCSS=!0,this.customStyles.push(e),Gxg(this))};
Pm.prototype.getStyleForCustomStyle=function(e){if(e.__shadyCSSCachedStyle)return e.__shadyCSSCachedStyle;var z;e.getStyle?z=e.getStyle():z=e;return z};
Pm.prototype.processStyles=function(){for(var e=this.customStyles,z=0;z<e.length;z++){var C=e[z];if(!C.__shadyCSSCachedStyle){var w=this.getStyleForCustomStyle(C);w&&(w=w.__appliedElement||w,opS&&opS(w),C.__shadyCSSCachedStyle=w)}}return e};
Pm.prototype.addCustomStyle=Pm.prototype.addCustomStyle;Pm.prototype.getStyleForCustomStyle=Pm.prototype.getStyleForCustomStyle;Pm.prototype.processStyles=Pm.prototype.processStyles;Object.defineProperties(Pm.prototype,{transformCallback:{get:function(){return opS},
set:function(e){opS=e}},
validateCallback:{get:function(){return Wm},
set:function(e){var z=!1;Wm||(z=!0);Wm=e;z&&Gxg(this)}}});var UZm=!(window.ShadyDOM&&window.ShadyDOM.inUse),HMo,$W;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&($W=window.ShadyCSS.cssBuild);var Ymh=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?HMo=window.ShadyCSS.nativeCss:window.ShadyCSS?(v3k(window.ShadyCSS),window.ShadyCSS=void 0):v3k(window.WebComponents&&window.WebComponents.flags);var gdo=HMo;var bms=new Pm;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(e,z){bms.processStyles();Qn4(e,z)},
styleElement:function(){bms.processStyles()},
styleDocument:function(e){bms.processStyles();Qn4(document.body,e)},
getComputedStyleValue:function(e,z){return mZg(e,z)},
flushCustomStyles:function(){},
nativeCss:gdo,nativeShadow:UZm,cssBuild:$W,disableRuntime:Ymh});window.ShadyCSS.CustomStyleInterface=bms;var X9S=window.ShadyCSS.CustomStyleInterface,RJ=function(){var e=HTMLElement.call(this)||this;e._style=null;X9S.addCustomStyle(e);return e};
_.U(RJ,HTMLElement);RJ.prototype.getStyle=function(){if(this._style)return this._style;var e=this.querySelector("style");if(!e)return null;this._style=e;var z=e.getAttribute("include");z&&(e.removeAttribute("include"),e.textContent=J81(z)+e.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
RJ.prototype.getStyle=RJ.prototype.getStyle;window.customElements.define("custom-style",RJ);Polymer.CustomStyle=RJ;var Lc=function(){this._timer=this._callback=this._asyncModule=null},h1,kxs;
Lc.prototype.setConfig=function(e,z){var C=this;this._asyncModule=e;this._callback=z;this._timer=this._asyncModule.run(function(){C._timer=null;h1.delete(C);C._callback()})};
Lc.prototype.cancel=function(){this.isActive()&&(JEX(this),h1.delete(this))};
var JEX=function(e){e.isActive()&&(e._asyncModule.cancel(e._timer),e._timer=null)};
Lc.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Lc.prototype.isActive=function(){return this._timer!=null};
_.OJ=function(e,z,C){e instanceof Lc?JEX(e):e=new Lc;e.setConfig(z,C);return e};
h1=new Set;_.EJ=function(e){h1.add(e)};
kxs=function(){var e=!!h1.size;h1.forEach(function(z){try{z.flush()}catch(C){setTimeout(function(){throw C;})}});
return e};var WU1=typeof document.head.style.touchAction==="string",Irg=["mousedown","mousemove","mouseup","click"],frm=[0,1,4,2],qma;try{qma=(new MouseEvent("test",{buttons:1})).buttons===1}catch(e){qma=!1}var Vo7=qma,PH1=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){PH1=!0}});
window.addEventListener("test",null,e);window.removeEventListener("test",null,e)}catch(z){}})();
var hiL=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),OM1=[],xFo={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},y8E={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},E3o=function(e){var z=e.sourceCapabilities;if(!z||z.firesTouchEvents)if(e.__polymerGesturesHandled={skip:!0},e.type==="click"){z=!1;for(var C=DZm(e),w=0;w<C.length;w++){if(C[w].nodeType===Node.ELEMENT_NODE)if(C[w].localName==="label")OM1.push(C[w]);
else if(xFo[C[w].localName]){var K=C[w];var G=Array.prototype.slice.call(K.labels||[]);if(!G.length){G=[];try{var X=K.getRootNode();if(K.id){var J=X.querySelectorAll("label[for = '"+K.id+"']");for(K=0;K<J.length;K++)G.push(J[K])}}catch(q){}}for(K=0;K<G.length;K++)z=z||OM1.indexOf(G[K])>-1}if(C[w]===To4)return}z||(e.preventDefault(),e.stopPropagation())}},To4=null,Fx=null,Nh8=0,snm=0,iMg=-1,Bh4=!1;
document.addEventListener("touchend",function(e){Fx||FU1(!0);To4=DZm(e)[0];Fx=_.OJ(Fx,_.aJ.after(2500),function(){FU1();Fx=To4=null})},PH1?{passive:!0}:!1);
var DZm=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(e){return e.composedPath&&e.composedPath()||[]},jY={},tH=[];
to1({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){BQ(this.info)},
mousedown:function(e){if(sc(e)){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),C=this;u9h(this.info,function(w){sc(w)||(pZ("up",z,w),BQ(C.info))},function(w){sc(w)&&pZ("up",z,w);
BQ(C.info)});
pZ("down",z,e)}},
touchstart:function(e){pZ("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),e.changedTouches[0],e)},
touchend:function(e){pZ("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),e.changedTouches[0],e)}});
to1({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(e){this.moves.length>2&&this.moves.shift();this.moves.push(e)},
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;BQ(this.info)},
mousedown:function(e){if(sc(e)){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e),C=this,w=function(K){var G=K.clientX,X=K.clientY;g3h(C.info,G,X)&&(C.info.state=C.info.started?K.type==="mouseup"?"end":"track":"start",C.info.state==="start"&&gK("tap"),C.info.addMove({x:G,y:X}),sc(K)||(C.info.state="end",BQ(C.info)),z&&jnL(C.info,z,K),C.info.started=!0)};
u9h(this.info,w,function(K){C.info.started&&w(K);BQ(C.info)});
this.info.x=e.clientX;this.info.y=e.clientY}},
touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},
touchmove:function(e){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);e=e.changedTouches[0];var C=e.clientX,w=e.clientY;g3h(this.info,C,w)&&(this.info.state==="start"&&gK("tap"),this.info.addMove({x:C,y:w}),jnL(this.info,z,e),this.info.state="track",this.info.started=!0)},
touchend:function(e){var z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e);e=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),jnL(this.info,z,e))}});
to1({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(e){sc(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},
click:function(e){sc(e)&&c87(this.info,e)},
touchstart:function(e){e=e.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},
touchend:function(e){c87(this.info,e.changedTouches[0],e)}});var $FL=nc(function(e){var z=function(){return e.apply(this,arguments)||this};
_.U(z,e);z.prototype._addEventListenerToNode=function(C,w,K){yr(C,w,K)||e.prototype._addEventListenerToNode.call(this,C,w,K)};
z.prototype._removeEventListenerFromNode=function(C,w,K){cQ(C,w,K)||e.prototype._removeEventListenerFromNode.call(this,C,w,K)};
return z});var VK=nc(function(e){var z=function(){return e.apply(this,arguments)||this};
_.U(z,e);z.prototype._shouldPropertyChange=function(C,w,K){return A8h(this,C,w,K,!0)};
return z}),lfL=nc(function(e){var z=function(){return e.apply(this,arguments)||this};
_.U(z,e);z.prototype._shouldPropertyChange=function(C,w,K){return A8h(this,C,w,K,this.mutableData)};
_.lB.Object.defineProperties(z,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return z});
VK._mutablePropertyChange=A8h;var ZM1=!1;var Q56=$FL(lfL(ru(HTMLElement))),fc=function(){var e=Q56.call(this)||this;if(YW)throw Error("Md");e.root=null;e.$=null;e.__children=null;return e};
_.U(fc,Q56);_.Y=fc.prototype;_.Y.attributeChangedCallback=function(){this.mutableData=!0};
_.Y.connectedCallback=function(){pMg()||(this.style.display="none");this.render()};
_.Y.disconnectedCallback=function(){this.__removeChildren()};
_.Y.__insertChildren=function(){(0,_.fZ)((0,_.fZ)(this).parentNode).insertBefore(this.root,this)};
_.Y.__removeChildren=function(){if(this.__children)for(var e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])};
_.Y.render=function(){var e=this;if(!this.__children){var z=z||this.querySelector("template");if(!z){var C=new MutationObserver(function(){if(z=e.querySelector("template"))C.disconnect(),e.render();else throw Error("Nd");});
C.observe(this,{childList:!0});return}this.root=this._stampTemplate(z);this.$=this.root.$;this.__children=[];for(var w=this.root.firstChild;w;w=w.nextSibling)this.__children[this.__children.length]=w;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.lB.Object.defineProperties(fc,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",fc);Polymer.Debouncer=Lc;Polymer.Gestures={gestures:jY,recognizers:tH,deepTargetFind:dZ8,addListener:yr,removeListener:cQ,register:to1,setTouchAction:_.AH,prevent:gK,resetMouseCanceller:function(){Fx&&Fx.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:yr,remove:cQ};Polymer.GestureEventListeners=$FL;Polymer.MutableData=VK;Polymer.OptionalMutableData=lfL;Polymer.DomBind=fc;_.S1=function(){do{var e=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var z=kxs()}while(e||z)};var e0m=null;z05.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:z05,writable:!0}});var XW1=ru(z05),bb1=VK(XW1),mF6=ru(function(){}),KG=function(e){var z=mF6.call(this)||this;
z._configureProperties(e);z.root=z._stampTemplate(z.__dataHost);var C=[];z.children=C;for(var w=z.root.firstChild;w;w=w.nextSibling)C.push(w),w.__templatizeInstance=z;z.__templatizeOwner&&z.__templatizeOwner.__hideTemplateChildren__&&z._showHideChildren(!0);C=z.__templatizeOptions;(e&&C.instanceProps||!C.instanceProps)&&z._enableProperties();return z};
_.U(KG,mF6);_.Y=KG.prototype;_.Y._configureProperties=function(e){if(this.__templatizeOptions.forwardHostProp)for(var z in this.__hostProps)this._setPendingProperty(z,this.__dataHost["_host_"+z]);for(var C in e)this._setPendingProperty(C,e[C])};
_.Y.forwardHostProp=function(e,z){this._setPendingPropertyOrPath(e,z,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.Y._addEventListenerToNode=function(e,z,C){var w=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,z,function(G){G.model=w;C(G)});
else{var K=this.__dataHost.__dataHost;K&&K._addEventListenerToNode(e,z,C)}};
_.Y._showHideChildren=function(e){wW1(e,this.children)};
_.Y._setUnmanagedPropertyToNode=function(e,z,C){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&z=="textContent"?e.__polymerTextContent__=C:mF6.prototype._setUnmanagedPropertyToNode.call(this,e,z,C)};
_.Y.dispatchEvent=function(){return!0};
_.lB.Object.defineProperties(KG.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var e=this.__parentModel;if(!e){var z;e=this;do e=e.__dataHost.__dataHost;while((z=e.__templatizeOptions)&&!z.parentModel);this.__parentModel=e}return e}}});
var od1=VK(KG);var us=function(){var e=UJ.call(this)||this;e.__renderDebouncer=null;e._lastIf=!1;e.__hideTemplateChildren__=!1;return e};
_.U(us,UJ);_.Y=us.prototype;_.Y.__debounceRender=function(){var e=this;this.__renderDebouncer=_.OJ(this.__renderDebouncer,ZV,function(){return e.__render()});
_.EJ(this.__renderDebouncer)};
_.Y.disconnectedCallback=function(){UJ.prototype.disconnectedCallback.call(this);var e=(0,_.fZ)(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.fZ)(e).host)||this.__teardownInstance()};
_.Y.connectedCallback=function(){UJ.prototype.connectedCallback.call(this);pMg()||(this.style.display="none");this.if&&this.__debounceRender()};
_.Y.__ensureTemplate=function(){var e=this;if(!this.__template){var z=this._templateInfo?this:(0,_.fZ)(this).querySelector("template");if(!z){var C=new MutationObserver(function(){if((0,_.fZ)(e).querySelector("template"))C.disconnect(),e.__render();else throw Error("Qd");});
C.observe(this,{childList:!0});return!1}this.__template=z}return!0};
_.Y.__ensureInstance=function(){var e=(0,_.fZ)(this).parentNode;if(this.__hasInstance()){var z=this.__getInstanceNodes();if(z&&z.length&&(0,_.fZ)(this).previousSibling!==z[z.length-1])for(var C=0,w=void 0;C<z.length&&(w=z[C]);C++)(0,_.fZ)(e).insertBefore(w,this)}else{if(!e||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0};
_.Y.render=function(){_.S1()};
_.Y.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();QK&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.Y.__hasInstance=function(){};
_.Y.__getInstanceNodes=function(){};
_.Y.__createAndInsertInstance=function(){};
_.Y.__teardownInstance=function(){};
_.Y._showHideChildren=function(){};
_.lB.Object.defineProperties(us,{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:us.prototype.__debounceRender},restamp:{type:Boolean,observer:us.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var afg=function(){var e=us.call(this)||this;e.__instance=null;e.__syncInfo=null;return e};
_.U(afg,us);_.Y=afg.prototype;_.Y.__hasInstance=function(){return!!this.__instance};
_.Y.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.Y.__createAndInsertInstance=function(e){var z=this,C=this.__dataHost||this;if(YW&&!this.__dataHost)throw Error("Od");var w=C._bindTemplate(this.__template,!0);w.runEffects=function(K,G,X){var J=z.__syncInfo;if(z.if)J&&(z.__syncInfo=null,z._showHideChildren(),G=Object.assign(J.changedProps,G)),K(G,X);else if(z.__instance)if(J||(J=z.__syncInfo={runEffects:K,changedProps:{}}),X)for(var q in G)K=RO(q),J.changedProps[K]=z.__dataHost[K];else Object.assign(J.changedProps,G)};
this.__instance=C._stampTemplate(this.__template,w);(0,_.fZ)(e).insertBefore(this.__instance,this)};
_.Y.__syncHostProperties=function(){var e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))};
_.Y.__teardownInstance=function(){var e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.Y._showHideChildren=function(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==e&&(this.__instance.__hidden=e,wW1(e,this.__instance.templateInfo.childNodes));e||this.__syncHostProperties()};
var npL=function(){var e=us.call(this)||this;e.__ctor=null;e.__instance=null;e.__invalidProps=null;return e};
_.U(npL,us);_.Y=npL.prototype;_.Y.__hasInstance=function(){return!!this.__instance};
_.Y.__getInstanceNodes=function(){return this.__instance.children};
_.Y.__createAndInsertInstance=function(e){this.__ctor||(this.__ctor=ok(this.__template,this,{mutableData:!0,forwardHostProp:function(z,C){this.__instance&&(this.if?this.__instance.forwardHostProp(z,C):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[RO(z)]=!0))}}));
this.__instance=new this.__ctor;(0,_.fZ)(e).insertBefore(this.__instance.root,this)};
_.Y.__teardownInstance=function(){if(this.__instance){var e=this.__instance.children;if(e&&e.length){var z=(0,_.fZ)(e[0]).parentNode;if(z){z=(0,_.fZ)(z);for(var C=0,w=void 0;C<e.length&&(w=e[C]);C++)z.removeChild(w)}}this.__instance=this.__invalidProps=null}};
_.Y.__syncHostProperties=function(){var e=this.__invalidProps;if(e){this.__invalidProps=null;for(var z in e)this.__instance._setPendingProperty(z,this.__dataHost[z]);this.__instance._flushProperties()}};
_.Y._showHideChildren=function(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e));e||this.__syncHostProperties()};
_.Ex=ls?afg:npL;customElements.define(_.Ex.is,_.Ex);Polymer.enqueueDebouncer=_.EJ;Polymer.flush=_.S1;Polymer.Templatize={templatize:ok,modelForElement:$Is};Polymer.TemplateInstanceBase=KG;Polymer.DomIf=_.Ex;var MQU=lfL(UJ),Ox=function(){var e=MQU.call(this)||this;e.__instances=[];e.__renderDebouncer=null;e.__itemsIdxToInstIdx={};e.__chunkCount=null;e.__renderStartTime=null;e.__itemsArrayChanged=!1;e.__shouldMeasureChunk=!1;e.__shouldContinueChunking=!1;e.__chunkingId=0;e.__sortFn=null;e.__filterFn=null;e.__observePaths=null;e.__ctor=null;e.__isDetached=!0;e.template=null;return e};
_.U(Ox,MQU);_.Y=Ox.prototype;_.Y.disconnectedCallback=function(){MQU.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.Y.connectedCallback=function(){MQU.prototype.connectedCallback.call(this);pMg()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var e=(0,_.fZ)((0,_.fZ)(this).parentNode),z=0;z<this.__instances.length;z++)this.__attachInstance(z,e);this.__chunkingId&&this.__render()}};
_.Y.__ensureTemplatized=function(){var e=this;if(!this.__ctor){var z=this.template=this._templateInfo?this:this.querySelector("template");if(!z){var C=new MutationObserver(function(){if(e.querySelector("template"))C.disconnect(),e.__render();else throw Error("Rd");});
C.observe(this,{childList:!0});return!1}var w={};w[this.as]=!0;w[this.indexAs]=!0;w[this.itemsIndexAs]=!0;this.__ctor=ok(z,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:w,forwardHostProp:function(K,G){for(var X=this.__instances,J=0,q=void 0;J<X.length&&(q=X[J]);J++)q.forwardHostProp(K,G)},
notifyInstanceProp:function(K,G,X){Es1(this.as,G)&&(K=K[this.itemsIndexAs],G==this.as&&(this.items[K]=X),G=hH(this.as,"items."+K,G),this.notifyPath(G,X))}})}return!0};
_.Y.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.Y.__functionFromPropertyValue=function(e){if(typeof e==="string"){var z=this.__getMethodHost();return function(){return z[e].apply(z,arguments)}}return e};
_.Y.__sortChanged=function(e){this.__sortFn=this.__functionFromPropertyValue(e);this.items&&this.__debounceRender(this.__render)};
_.Y.__filterChanged=function(e){this.__filterFn=this.__functionFromPropertyValue(e);this.items&&this.__debounceRender(this.__render)};
_.Y.__computeFrameTime=function(e){return Math.ceil(1E3/e)};
_.Y.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.Y.__handleObservedPaths=function(e){if(this.__sortFn||this.__filterFn)if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var z=this.__observePaths,C=0;C<z.length;C++)e.indexOf(z[C])===0&&this.__debounceRender(this.__render,this.delay)};
_.Y.__itemsChanged=function(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.Y.__debounceRender=function(e,z){z=z===void 0?0:z;this.__renderDebouncer=_.OJ(this.__renderDebouncer,z>0?_.aJ.after(z):ZV,e.bind(this));_.EJ(this.__renderDebouncer)};
_.Y.render=function(){this.__debounceRender(this.__render);_.S1()};
_.Y.__render=function(){var e=this;if(this.__ensureTemplatized()){var z=this.items||[],C=this.__sortAndFilterItems(z),w=this.__calculateLimit(C.length);this.__updateInstances(z,w,C);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){e.__chunkingId=null;e.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);QK&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.Y.__sortAndFilterItems=function(e){for(var z=this,C=Array(e.length),w=0;w<e.length;w++)C[w]=w;this.__filterFn&&(C=C.filter(function(K,G,X){return z.__filterFn(e[K],G,X)}));
this.__sortFn&&C.sort(function(K,G){return z.__sortFn(e[K],e[G])});
return C};
_.Y.__calculateLimit=function(e){var z=e,C=this.__instances.length;if(this.initialCount){var w;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(z=Math.min(e,this.initialCount),this.__chunkCount=(w=Math.max(z-C,0))||1):(w=Math.min(Math.max(e-C,0),this.__chunkCount),z=Math.min(C+w,e));this.__shouldMeasureChunk=w===this.__chunkCount;this.__shouldContinueChunking=z<e;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return z};
_.Y.__continueChunking=function(){if(this.__shouldMeasureChunk){var e=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/e*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.Y.__updateInstances=function(e,z,C){var w=this.__itemsIdxToInstIdx={},K;for(K=0;K<z;K++){var G=this.__instances[K],X=C[K],J=e[X];w[X]=K;G?(G._setPendingProperty(this.as,J),G._setPendingProperty(this.indexAs,K),G._setPendingProperty(this.itemsIndexAs,X),G._flushProperties()):this.__insertInstance(J,K,X)}for(e=this.__instances.length-1;e>=K;e--)this.__detachAndRemoveInstance(e)};
_.Y.__detachInstance=function(e){e=this.__instances[e];for(var z=(0,_.fZ)(e.root),C=0;C<e.children.length;C++)z.appendChild(e.children[C]);return e};
_.Y.__attachInstance=function(e,z){z.insertBefore(this.__instances[e].root,this)};
_.Y.__detachAndRemoveInstance=function(e){this.__detachInstance(e);this.__instances.splice(e,1)};
_.Y.__stampInstance=function(e,z,C){var w={};w[this.as]=e;w[this.indexAs]=z;w[this.itemsIndexAs]=C;return new this.__ctor(w)};
_.Y.__insertInstance=function(e,z,C){e=this.__stampInstance(e,z,C);C=(C=this.__instances[z+1])?C.children[0]:this;(0,_.fZ)((0,_.fZ)(this).parentNode).insertBefore(e.root,C);return this.__instances[z]=e};
_.Y._showHideChildren=function(e){for(var z=0;z<this.__instances.length;z++)this.__instances[z]._showHideChildren(e)};
_.Y.__handleItemPath=function(e,z){var C=e.slice(6),w=C.indexOf(".");e=w<0?C:C.substring(0,w);if(e==parseInt(e,10)){C=w<0?"":C.substring(w+1);this.__handleObservedPaths(C);if(e=this.__instances[this.__itemsIdxToInstIdx[e]])e._setPendingPropertyOrPath(this.as+(C?"."+C:""),z,!1,!0),e._flushProperties();return!0}};
_.Y.itemForElement=function(e){return(e=this.modelForElement(e))&&e[this.as]};
_.Y.indexForElement=function(e){return(e=this.modelForElement(e))&&e[this.indexAs]};
_.Y.modelForElement=function(e){return $Is(this.template,e)};
_.lB.Object.defineProperties(Ox,{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:Ox.prototype.__sortChanged},filter:{type:Function,observer:Ox.prototype.__filterChanged},observe:{type:String,observer:Ox.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!QK,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.*)"]}}});
Ox.prototype._setRenderedItemCount=function(){};
customElements.define(Ox.is,Ox);Polymer.DomRepeat=Ox;var rEc=function(e,z){var C=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=e;this.callback=z;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){C._schedule()};
this.connect();this._schedule()},Hmc=function(e){var z=(0,_.fZ)(e);
if(bB(e))return z.assignedNodes({flatten:!0});e=[];for(var C=0;C<z.childNodes.length;C++){var w=z.childNodes[C];bB(w)?e.push.apply(e,_.s_((0,_.fZ)(w).assignedNodes({flatten:!0}))):e.push(w)}return e};
_.Y=rEc.prototype;_.Y.connect=function(){var e=this;bB(this._target)?this._listenSlots([this._target]):(0,_.fZ)(this._target).children&&(this._listenSlots((0,_.fZ)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(z){e._processMutations(z)}):(this._nativeChildrenObserver=new MutationObserver(function(z){e._processMutations(z)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.Y.disconnect=function(){bB(this._target)?this._unlistenSlots([this._target]):(0,_.fZ)(this._target).children&&(this._unlistenSlots((0,_.fZ)(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};
_.Y._schedule=function(){var e=this;this._scheduled||(this._scheduled=!0,ZV.run(function(){return e.flush()}))};
_.Y._processMutations=function(e){this._processSlotMutations(e);this.flush()};
_.Y._processSlotMutations=function(e){if(e)for(var z=0;z<e.length;z++){var C=e[z];C.addedNodes&&this._listenSlots(C.addedNodes);C.removedNodes&&this._unlistenSlots(C.removedNodes)}};
_.Y.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 e={target:this._target,addedNodes:[],removedNodes:[]},z=Hmc(this._target),C=Thk(z,this._effectiveNodes),w=0,K=void 0;w<C.length&&(K=C[w]);w++)for(var G=0,X=void 0;G<K.removed.length&&(X=K.removed[G]);G++)e.removedNodes.push(X);
w=0;for(K=void 0;w<C.length&&(K=C[w]);w++)for(G=K.index;G<K.index+K.addedCount;G++)e.addedNodes.push(z[G]);this._effectiveNodes=z;z=!1;if(e.addedNodes.length||e.removedNodes.length)z=!0,this.callback.call(this._target,e);return z};
_.Y._listenSlots=function(e){for(var z=0;z<e.length;z++){var C=e[z];bB(C)&&C.addEventListener("slotchange",this._boundSchedule)}};
_.Y._unlistenSlots=function(e){for(var z=0;z<e.length;z++){var C=e[z];bB(C)&&C.removeEventListener("slotchange",this._boundSchedule)}};var du=Element.prototype,UFs=du.matches||du.matchesSelector||du.mozMatchesSelector||du.msMatchesSelector||du.oMatchesSelector||du.webkitMatchesSelector,vpa=function(e,z){return UFs.call(e,z)},Xh=function(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e);
this.node=e},R9g;
_.Y=Xh.prototype;_.Y.observeNodes=function(e){return new rEc(this.node,e)};
_.Y.unobserveNodes=function(e){e.disconnect()};
_.Y.notifyObserver=function(){};
_.Y.deepContains=function(e){if((0,_.fZ)(this.node).contains(e))return!0;var z=e;for(e=e.ownerDocument;z&&z!==e&&z!==this.node;)z=(0,_.fZ)(z).parentNode||(0,_.fZ)(z).host;return z===this.node};
_.Y.getOwnerRoot=function(){return(0,_.fZ)(this.node).getRootNode()};
_.Y.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.fZ)(this.node).assignedNodes({flatten:!0}):[]};
_.Y.getDestinationInsertionPoints=function(){for(var e=[],z=(0,_.fZ)(this.node).assignedSlot;z;)e.push(z),z=(0,_.fZ)(z).assignedSlot;return e};
_.Y.importNode=function(e,z){return(0,_.fZ)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(e,z)};
_.Y.getEffectiveChildNodes=function(){return Hmc(this.node)};
_.Y.queryDistributedElements=function(e){for(var z=this.getEffectiveChildNodes(),C=[],w=0,K=z.length,G=void 0;w<K&&(G=z[w]);w++)G.nodeType===Node.ELEMENT_NODE&&vpa(G,e)&&C.push(G);return C};
_.lB.Object.defineProperties(Xh.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var e=this.node;return e._activeElement!==void 0?e._activeElement:e.activeElement}}});
var Do=function(e){this.event=e};
_.lB.Object.defineProperties(Do.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 IfS=Xh;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var WOC=window.ShadyDOM.Wrapper,PAC=function(){return WOC.apply(this,arguments)||this};
_.U(PAC,WOC);Object.getOwnPropertyNames(Xh.prototype).forEach(function(e){e!="activeElement"&&e!="constructor"&&(PAC.prototype[e]=Xh.prototype[e])});
QP7(PAC.prototype,["classList"]);IfS=PAC;Object.defineProperties(Do.prototype,{localTarget:{get:function(){var e=this.event.currentTarget;e=e&&_.mb(e).getOwnerRoot();for(var z=this.path,C=0;C<z.length;C++){var w=z[C];if(_.mb(w).getOwnerRoot()===e)return w}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else lso(),QP7(Xh.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),mIg();R9g=IfS;_.mb=function(e){e=e||document;if(e instanceof IfS)return e;if(e instanceof Do)return e;var z=e.__domApi;z||(e instanceof Event?z=new Do(e):z=new IfS(e),e.__domApi=z);return z};var LOS=/:host\(:dir\((ltr|rtl)\)\)/g,h9L=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,OmL=/:dir\((?:ltr|rtl)\)/,EpC=!(!window.ShadyDOM||!window.ShadyDOM.inUse),kW=[],is=null,J2="",FOg=nc(function(e){EpC||is||(J2=document.documentElement.getAttribute("dir"),is=new MutationObserver(as1),is.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var z=dHa(e);e=function(){var C=z.call(this)||this;C.__autoDirOptOut=!1;return C};
_.U(e,z);e._processStyleText=function(C,w){C=z._processStyleText.call(this,C,w);!EpC&&OmL.test(C)&&(C=this._replaceDirInCssText(C),this.__activateDir=!0);return C};
e._replaceDirInCssText=function(C){C=C.replace(LOS,':host([dir="$1"])');return C=C.replace(h9L,':host([dir="$2"]) $1')};
e.prototype.ready=function(){z.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
e.prototype.connectedCallback=function(){z.prototype.connectedCallback&&z.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(is&&is.takeRecords().length&&as1(),kW.push(this),this.__autoDirOptOut||this.setAttribute("dir",J2))};
e.prototype.disconnectedCallback=function(){z.prototype.disconnectedCallback&&z.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var C=kW.indexOf(this);C>-1&&kW.splice(C,1)}};
e.__activateDir=!1;return e});var VQa=function(e){for(;e;){var z=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(z)return z.get;e=Object.getPrototypeOf(e.prototype).constructor}return function(){return[]}};
nc(function(e){var z=Hm(e),C=VQa(z);e=function(){return z.call(this)||this};
_.U(e,z);e.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:z.prototype._initializeProperties.call(this)};
e.prototype._enableProperties=function(){this.__isUpgradeDisabled||z.prototype._enableProperties.call(this)};
e.prototype._canApplyPropertyDefault=function(w){return z.prototype._canApplyPropertyDefault.call(this,w)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(w))};
e.prototype.attributeChangedCallback=function(w,K,G,X){w=="disable-upgrade"?this.__isUpgradeDisabled&&G==null&&(z.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.fZ)(this).isConnected&&z.prototype.connectedCallback.call(this)):z.prototype.attributeChangedCallback.call(this,w,K,G,X)};
e.prototype.connectedCallback=function(){this.__isUpgradeDisabled||z.prototype.connectedCallback.call(this)};
e.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||z.prototype.disconnectedCallback.call(this)};
_.lB.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return C.call(this).concat("disable-upgrade")}}});
return e});var qx=!1,Mv7=[],xW=[];var vdg=window.ShadyDOM,IsL=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",P5g):document.readyState==="interactive"||document.readyState==="complete"?P5g():window.addEventListener("DOMContentLoaded",P5g);var h01=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=""},R05=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,LD1=/@import[^;]*;/gim,S71=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,uXg=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,dIg=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,DI8=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Vvo=/^@[^\s]*keyframes/,
FDg=/\s+/g;var ibh={};var B4h=Promise.resolve();var ffS=new Set;var SmC=/;\s*/m,uHC=/^\s*(initial)|(inherit)\s*$/,dFa=/\s*!important/,DFo=function(){this._map={}};
DFo.prototype.set=function(e,z){e=e.trim();this._map[e]={properties:z,dependants:{}}};
DFo.prototype.get=function(e){e=e.trim();return this._map[e]||null};
var im6=null,Nn=function(){this._measureElement=this._currentElement=null;this._map=new DFo};
_.Y=Nn.prototype;_.Y.detectMixin=function(e){e=KOa.test(e)||w9a.test(e);KOa.lastIndex=0;w9a.lastIndex=0;return e};
_.Y.transformTemplate=function(e,z){if(e._gatheredStyle===void 0){var C=[];for(var w=e.content.querySelectorAll("style"),K=0;K<w.length;K++){var G=w[K];if(G.hasAttribute("shady-unscoped")){if(!UZm){var X=G.textContent;if(!ffS.has(X)){ffS.add(X);var J=document.createElement("style");J.setAttribute("shady-unscoped","");J.textContent=X;document.head.appendChild(J)}G.parentNode.removeChild(G)}}else C.push(G.textContent),G.parentNode.removeChild(G)}(C=C.join("").trim())?(w=document.createElement("style"),
w.textContent=C,e.content.insertBefore(w,e.content.firstChild),C=w):C=null;e._gatheredStyle=C}return(e=e._gatheredStyle)?this.JSC$11437_transformStyle(e,z):null};
_.Y.JSC$11437_transformStyle=function(e,z){z=z===void 0?"":z;var C=ydg(e);this.transformRules(C,z);e.textContent=jPm(C);return C};
_.Y.transformCustomStyle=function(e){var z=this,C=ydg(e);Adh(C,function(w){w.selector===":root"&&(w.selector="html");z.transformRule(w)});
e.textContent=jPm(C);return C};
_.Y.transformRules=function(e,z){var C=this;this._currentElement=z;Adh(e,function(w){C.transformRule(w)});
this._currentElement=null};
_.Y.transformRule=function(e){e.cssText=Noh(this,e.parsedCssText,e);e.selector===":root"&&(e.selector=":host > *")};
var Noh=function(e,z,C){z=z.replace(w9a,function(w,K,G,X){return e._produceCssProperties(w,K,G,X,C)});
return e._consumeCssProperties(z,C)};
_.Y=Nn.prototype;_.Y._getInitialValueForProperty=function(e){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(e)};
_.Y._fallbacksFromPreviousRules=function(e){for(var z=this,C=e;C.parent;)C=C.parent;var w={},K=!1;Adh(C,function(G){(K=K||G===e)||G.selector===e.selector&&Object.assign(w,z._cssTextToMap(G.parsedCssText))});
return w};
_.Y._consumeCssProperties=function(e,z){for(var C;C=KOa.exec(e);){var w=C[0],K=C[1];C=C.index;var G=C+w.indexOf("@apply"),X=C+w.length;w=e.slice(0,G);e=e.slice(X);G=z?this._fallbacksFromPreviousRules(z):{};Object.assign(G,this._cssTextToMap(w));K=this._atApplyToCssProperties(K,G);e=w+K+e;KOa.lastIndex=C+K.length}return e};
_.Y._atApplyToCssProperties=function(e,z){e=e.replace(SmC,"");var C=[],w=this._map.get(e);w||(this._map.set(e,{}),w=this._map.get(e));if(w){this._currentElement&&(w.dependants[this._currentElement]=!0);var K,G=w.properties;for(K in G){var X=z&&z[K];w=[K,": var(",e,"_-_",K];X&&w.push(",",X.replace(dFa,""));w.push(")");dFa.test(G[K])&&w.push(" !important");C.push(w.join(""))}}return C.join("; ")};
_.Y._replaceInitialOrInherit=function(e,z){var C=uHC.exec(z);C&&(z=C[1]?this._getInitialValueForProperty(e):"apply-shim-inherit");return z};
_.Y._cssTextToMap=function(e,z){z=z===void 0?!1:z;e=e.split(";");for(var C,w,K={},G=0;G<e.length;G++)if(C=e[G])w=C.split(":"),w.length>1&&(C=w[0].trim(),w=w.slice(1).join(":"),z&&(w=this._replaceInitialOrInherit(C,w)),K[C]=w);return K};
_.Y._invalidateMixinEntry=function(e){if(im6)for(var z in e.dependants)z!==this._currentElement&&im6(z)};
_.Y._produceCssProperties=function(e,z,C,w,K){var G=this;C&&Zb4(C,function(H,I){I&&G._map.get(I)&&(w="@apply "+I+";")});
if(!w)return e;var X=this._consumeCssProperties(""+w,K);K=e.slice(0,e.indexOf("--"));var J=X=this._cssTextToMap(X,!0),q=this._map.get(z),T=q&&q.properties;T?J=Object.assign(Object.create(T),X):this._map.set(z,J);var Q=[],m,a=!1;for(m in J){var n=X[m];n===void 0&&(n="initial");!T||m in T||(a=!0);Q.push(z+"_-_"+m+": "+n)}a&&this._invalidateMixinEntry(q);q&&(q.properties=J);C&&(K=e+";"+K);return K+Q.join("; ")+";"};
Nn.prototype.detectMixin=Nn.prototype.detectMixin;Nn.prototype.transformStyle=Nn.prototype.JSC$11437_transformStyle;Nn.prototype.transformCustomStyle=Nn.prototype.transformCustomStyle;Nn.prototype.transformRules=Nn.prototype.transformRules;Nn.prototype.transformRule=Nn.prototype.transformRule;Nn.prototype.transformTemplate=Nn.prototype.transformTemplate;Nn.prototype._separator="_-_";Object.defineProperty(Nn.prototype,"invalidCallback",{get:function(){return im6},
set:function(e){im6=e}});var sJ=new Nn,s5S=function(){this.customStyleInterface=null;sJ.invalidCallback=N44},Bm=function(e){!e.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(e.customStyleInterface=window.ShadyCSS.CustomStyleInterface,e.customStyleInterface.transformCallback=function(z){sJ.transformCustomStyle(z)},e.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){e.customStyleInterface.enqueued&&e.flushCustomStyles()})})};
_.Y=s5S.prototype;_.Y.prepareTemplate=function(e,z){Bm(this);pWs(e)===""&&(ibh[z]=e,z=sJ.transformTemplate(e,z),e._styleAst=z)};
_.Y.flushCustomStyles=function(){Bm(this);if(this.customStyleInterface){var e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var z=0;z<e.length;z++){var C=this.customStyleInterface.getStyleForCustomStyle(e[z]);C&&sJ.transformCustomStyle(C)}this.customStyleInterface.enqueued=!1}}};
_.Y.styleSubtree=function(e,z){Bm(this);z&&Qn4(e,z);if(e.shadowRoot)for(this.styleElement(e),e=e.shadowRoot.children||e.shadowRoot.childNodes,z=0;z<e.length;z++)this.styleSubtree(e[z]);else for(e=e.children||e.childNodes,z=0;z<e.length;z++)this.styleSubtree(e[z])};
_.Y.styleElement=function(e){Bm(this);var z=e.localName,C;z?z.indexOf("-")>-1?C=z:C=e.getAttribute&&e.getAttribute("is")||"":C=e.is;z=ibh[C];if(!(z&&pWs(z)!==""||!z||sPN(z))){if(sPN(z)||z._applyShimValidatingVersion!==z._applyShimNextVersion)this.prepareTemplate(z,C),tvk(z);if(e=e.shadowRoot)if(e=e.querySelector("style"))e.__cssRules=z._styleAst,e.textContent=jPm(z._styleAst)}};
_.Y.styleDocument=function(e){Bm(this);this.styleSubtree(document.body,e)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var t1=new s5S,Bog=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,z){t1.flushCustomStyles();t1.prepareTemplate(e,z)},
prepareTemplateStyles:function(e,z,C){window.ShadyCSS.prepareTemplate(e,z,C)},
prepareTemplateDom:function(){},
styleSubtree:function(e,z){t1.flushCustomStyles();t1.styleSubtree(e,z)},
styleElement:function(e){t1.flushCustomStyles();t1.styleElement(e)},
styleDocument:function(e){t1.flushCustomStyles();t1.styleDocument(e)},
getComputedStyleValue:function(e,z){return mZg(e,z)},
flushCustomStyles:function(){t1.flushCustomStyles()},
nativeCss:gdo,nativeShadow:UZm,cssBuild:$W,disableRuntime:Ymh};Bog&&(window.ShadyCSS.CustomStyleInterface=Bog)}window.ShadyCSS.ApplyShim=sJ;var tQ4;tQ4=window.ShadyCSS;_.gu=nc(function(e){e=$FL(Hm(e));var z=cKC?e:FOg(e),C=VQa(z),w={x:"pan-x",y:"pan-y",none:"none",all:"auto"};e=function(){return z.call(this)||this};
_.U(e,z);e.prototype.created=function(){};
e.prototype.__attributeReaction=function(K,G,X){(this.__dataAttributes&&this.__dataAttributes[K]||K==="disable-upgrade")&&this.attributeChangedCallback(K,G,X,null)};
e.prototype.setAttribute=function(K,G){if(HPX&&!this._legacyForceObservedAttributes){var X=this.getAttribute(K);z.prototype.setAttribute.call(this,K,G);this.__attributeReaction(K,X,String(G))}else z.prototype.setAttribute.call(this,K,G)};
e.prototype.removeAttribute=function(K){if(HPX&&!this._legacyForceObservedAttributes){var G=this.getAttribute(K);z.prototype.removeAttribute.call(this,K);this.__attributeReaction(K,G,null)}else z.prototype.removeAttribute.call(this,K)};
e.prototype._enableProperties=function(){this.__isUpgradeDisabled||z.prototype._enableProperties.call(this)};
e.prototype._canApplyPropertyDefault=function(K){return z.prototype._canApplyPropertyDefault.call(this,K)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(K))};
e.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(z.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
e.prototype.attached=function(){};
e.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(z.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
e.prototype.detached=function(){};
e.prototype.attributeChangedCallback=function(K,G,X,J){G!==X&&(K=="disable-upgrade"?this.__isUpgradeDisabled&&X==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.fZ)(this).isConnected&&this.connectedCallback()):(z.prototype.attributeChangedCallback.call(this,K,G,X,J),this.attributeChanged(K,G,X)))};
e.prototype.attributeChanged=function(){};
e.prototype._initializeProperties=function(){if(eC&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var K=Object.getPrototypeOf(this);K.hasOwnProperty("__hasRegisterFinished")||(this._registered(),K.__hasRegisterFinished=!0);z.prototype._initializeProperties.call(this);this.root=this;this.created();HPX&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
e.prototype._takeAttributes=function(){for(var K=this.attributes,G=0,X=K.length;G<X;G++){var J=K[G];this.__attributeReaction(J.name,null,J.value)}};
e.prototype._registered=function(){};
e.prototype.ready=function(){this._ensureAttributes();z.prototype.ready.call(this)};
e.prototype._ensureAttributes=function(){};
e.prototype._applyListeners=function(){};
e.prototype.serialize=function(K){return this._serializeValue(K)};
e.prototype.deserialize=function(K,G){return this._deserializeValue(K,G)};
e.prototype.reflectPropertyToAttribute=function(K,G,X){this._propertyToAttribute(K,G,X)};
e.prototype.serializeValueToAttribute=function(K,G,X){this._valueToNodeAttribute(X||this,K,G)};
e.prototype.extend=function(K,G){if(!K||!G)return K||G;for(var X=Object.getOwnPropertyNames(G),J=0,q=void 0;J<X.length&&(q=X[J]);J++){var T=Object.getOwnPropertyDescriptor(G,q);T&&Object.defineProperty(K,q,T)}return K};
e.prototype.mixin=function(K,G){for(var X in G)K[X]=G[X];return K};
e.prototype.chainObject=function(K,G){K&&G&&K!==G&&(K.__proto__=G);return K};
e.prototype.instanceTemplate=function(K){K=this.constructor._contentForTemplate(K);return document.importNode(K,!0)};
e.prototype.fire=function(K,G,X){X=X||{};G=G===null||G===void 0?{}:G;K=new Event(K,{bubbles:X.bubbles===void 0?!0:X.bubbles,cancelable:!!X.cancelable,composed:X.composed===void 0?!0:X.composed});K.detail=G;(0,_.fZ)(X.node||this).dispatchEvent(K);return K};
e.prototype.listen=function(K,G,X){K=K||this;var J=this.__boundListeners||(this.__boundListeners=new WeakMap),q=J.get(K);q||(q={},J.set(K,q));J=G+X;q[J]||(q[J]=this._addMethodEventListenerToNode(K,G,X,this))};
e.prototype.unlisten=function(K,G,X){K=K||this;var J=this.__boundListeners&&this.__boundListeners.get(K);X=G+X;var q=J&&J[X];q&&(this._removeEventListenerFromNode(K,G,q),J[X]=null)};
e.prototype.setScrollDirection=function(K,G){_.AH(G||this,w[K]||"auto")};
e.prototype.$$=function(K){return this.root.querySelector(K)};
e.prototype.distributeContent=function(){var K=_.mb(this);window.ShadyDOM&&K.shadowRoot&&ShadyDOM.flush()};
e.prototype.getEffectiveChildNodes=function(){return _.mb(this).getEffectiveChildNodes()};
e.prototype.queryDistributedElements=function(K){return _.mb(this).queryDistributedElements(K)};
e.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(K){return K.nodeType===Node.ELEMENT_NODE})};
e.prototype.getEffectiveTextContent=function(){for(var K=this.getEffectiveChildNodes(),G=[],X=0,J;J=K[X];X++)J.nodeType!==Node.COMMENT_NODE&&G.push(J.textContent);return G.join("")};
e.prototype.queryEffectiveChildren=function(K){return(K=this.queryDistributedElements(K))&&K[0]};
e.prototype.queryAllEffectiveChildren=function(K){return this.queryDistributedElements(K)};
e.prototype.getContentChildNodes=function(K){return(K=this.root.querySelector(K||"slot"))?_.mb(K).getDistributedNodes():[]};
e.prototype.getContentChildren=function(K){return this.getContentChildNodes(K).filter(function(G){return G.nodeType===Node.ELEMENT_NODE})};
e.prototype.isLightDescendant=function(K){return this!==K&&(0,_.fZ)(this).contains(K)&&(0,_.fZ)(this).getRootNode()===(0,_.fZ)(K).getRootNode()};
e.prototype.isLocalDescendant=function(K){return this.root===(0,_.fZ)(K).getRootNode()};
e.prototype.scopeSubtree=function(K,G){return WDm(K,G===void 0?!1:G)};
e.prototype.getComputedStyleValue=function(K){return tQ4.getComputedStyleValue(this,K)};
e.prototype.debounce=function(K,G,X){this._debouncers=this._debouncers||{};return this._debouncers[K]=_.OJ(this._debouncers[K],X>0?_.aJ.after(X):ZV,G.bind(this))};
e.prototype.isDebouncerActive=function(K){this._debouncers=this._debouncers||{};K=this._debouncers[K];return!(!K||!K.isActive())};
e.prototype.flushDebouncer=function(K){this._debouncers=this._debouncers||{};(K=this._debouncers[K])&&K.flush()};
e.prototype.cancelDebouncer=function(K){this._debouncers=this._debouncers||{};(K=this._debouncers[K])&&K.cancel()};
e.prototype.async=function(K,G){return G>0?_.aJ.run(K.bind(this),G):~ZV.run(K.bind(this))};
e.prototype.cancelAsync=function(K){K<0?ZV.cancel(~K):_.aJ.cancel(K)};
e.prototype.create=function(K,G){K=document.createElement(K);if(G)if(K.setProperties)K.setProperties(G);else for(var X in G)K[X]=G[X];return K};
e.prototype.elementMatches=function(K,G){return vpa(G||this,K)};
e.prototype.toggleAttribute=function(K,G){var X=this;arguments.length===3&&(X=arguments[2]);arguments.length==1&&(G=!X.hasAttribute(K));if(G)return(0,_.fZ)(X).setAttribute(K,""),!0;(0,_.fZ)(X).removeAttribute(K);return!1};
e.prototype.toggleClass=function(K,G,X){X=X||this;arguments.length==1&&(G=!X.classList.contains(K));G?X.classList.add(K):X.classList.remove(K)};
e.prototype.transform=function(K,G){G=G||this;G.style.webkitTransform=K;G.style.transform=K};
e.prototype.translate3d=function(K,G,X,J){this.transform("translate3d("+K+","+G+","+X+")",J||this)};
e.prototype.arrayDelete=function(K,G){if(Array.isArray(K)){if(G=K.indexOf(G),G>=0)return K.splice(G,1)}else if(G=Ec(this,K).indexOf(G),G>=0)return this.splice(K,G,1);return null};
e.prototype._logger=function(K,G){Array.isArray(G)&&G.length===1&&Array.isArray(G[0])&&(G=G[0]);switch(K){case "log":case "warn":case "error":console[K].apply(console,_.s_(G))}};
e.prototype._log=function(){this._logger("log",_.yL.apply(0,arguments))};
e.prototype._warn=function(){this._logger("warn",_.yL.apply(0,arguments))};
e.prototype._error=function(){this._logger("error",_.yL.apply(0,arguments))};
e.prototype._logf=function(K){return["[%s::%s]",this.is,K].concat(_.s_(_.yL.apply(1,arguments)))};
_.lB.Object.defineProperties(e.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var K=(0,_.fZ)(this).getRootNode();return K instanceof DocumentFragment?K.host:K}}});
_.lB.Object.defineProperties(e,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return HPX&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],IW8(this.prototype)),this.__observedAttributes):C.call(this).concat("disable-upgrade")}}});
e.prototype.is="";return e});Polymer.FlattenedNodesObserver=rEc;Polymer.DomApi=R9g;Polymer.EventApi=Do;Polymer.dom=_.mb;Polymer.dom.matchesSelector=vpa;Polymer.dom.flush=_.S1;Polymer.dom.addDebouncer=_.EJ;Polymer.DirMixin=FOg;Polymer.RenderStatus={beforeNextRender:_.UI1,afterNextRender:_.T0,flush:function(){for(;Mv7.length||xW.length;)nds(Mv7),nds(xW);qx=!1}};Polymer.LegacyElementMixin=_.gu;var gpU;gpU=VK._mutablePropertyChange;var j5Y={properties:{mutableData:Boolean},_shouldPropertyChange:function(e,z,C){return gpU(this,e,z,C,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(e,z,C){return gpU(this,e,z,C,!0)}};
Polymer.OptionalMutableDataBehavior=j5Y;var exg={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},olE={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Kfs=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},olE),yEL=(0,_.gu)(HTMLElement),ZDs=function(e,z){e||console.warn("Polymer.Class requires `info` argument");z=z?z(yEL):yEL;z=Gvh(e,z,e.behaviors);z.is=z.prototype.is=
e.is;return z};Polymer.Class=ZDs;Polymer.mixinBehaviors=function(e,z){return Gvh({},(0,_.gu)(z),e)};
Polymer.GenerateClassFromInfo=Gvh;_.hK=function(e){var z=typeof e==="function"?e:_.hK.Class(e);e._legacyForceObservedAttributes&&(z.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes);customElements.define(z.is,z);return z};
_.hK.Class=ZDs;Polymer._polymerFn=_.hK;var cE6=window.onLegacyPolymerFunctionDefinedCallback;cE6&&cE6();var eFh={templatize:function(e,z){this._templatizerTemplate=e;this.ctor=ok(e,this,{mutableData:!!z,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(e){return new this.ctor(e)},
modelForElement:function(e){return $Is(this._templatizerTemplate,e)}};Polymer.Templatizer=eFh;_.cm=(0,_.gu)(HTMLElement).prototype;Polymer.Base=_.cm;var bV5=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Qt=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.U(_.Qt,PolymerFakeBaseClass);var mA=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.U(mA,PolymerFakeBaseClass);var XTN=Symbol("Sd"),Q8g=[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 AEY=AEY||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Zms;(function(e){function z(D,g,y){var Z=N.get(D);if(!Z){if(!y)return;Z=new h;N.set(D,Z)}D=Z.get(g);if(!D){if(!y)return;D=new h;Z.set(g,D)}return D}
function C(D,g,y){if(w(D,g,y))return!0;g=a(g);return g!==null?C(D,g,y):!1}
function w(D,g,y){g=z(g,y,!1);return g===void 0?!1:!!g.has(D)}
function K(D,g,y){if(w(D,g,y))return G(D,g,y);g=a(g);if(g!==null)return K(D,g,y)}
function G(D,g,y){g=z(g,y,!1);if(g!==void 0)return g.get(D)}
function X(D,g){var y=J(D,g);D=a(D);if(D===null)return y;var Z=X(D,g);if(Z.length<=0)return y;if(y.length<=0)return Z;g=new E;D=[];y=_.b(y);for(var YN=y.next();!YN.done;YN=y.next())YN=YN.value,g.has(YN)||(g.add(YN),D.push(YN));y=_.b(Z);for(Z=y.next();!Z.done;Z=y.next())Z=Z.value,g.has(Z)||(g.add(Z),D.push(Z));return D}
function J(D,g){D=z(D,g,!1);var y=[];D&&D.forEach(function(Z,YN){return y.push(YN)});
return y}
function q(D){return D===void 0}
function T(D){return typeof D==="object"?D!==null:typeof D==="function"}
function Q(D){return typeof D==="function"}
function m(D){return typeof D==="symbol"?D:String(D)}
function a(D){var g=Object.getPrototypeOf(D);if(typeof D!=="function"||D===L||g!==L)return g;var y=Object.getPrototypeOf(D.prototype);if(y==null||y===Object.prototype)return g;y=y.constructor;return typeof y!=="function"||y===D?g:y}
function n(){function D(){this._keys=[];this._values=[];this._cache=g}
var g={};D.prototype={get size(){return this._keys.length},has:function(y){return y===this._cache?!0:this._find(y)>=0?(this._cache=y,!0):!1},
get:function(y){var Z=this._find(y);if(Z>=0)return this._cache=y,this._values[Z]},
set:function(y,Z){this.delete(y);this._keys.push(y);this._values.push(Z);this._cache=y;return this},
delete:function(y){y=this._find(y);return y>=0?(this._keys.splice(y,1),this._values.splice(y,1),this._cache=g,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=g},
forEach:function(y){for(var Z=this.size,YN=0;YN<Z;++YN){var Jk=this._keys[YN],v1=this._values[YN];this._cache=Jk;y.call(this,v1,Jk,this)}},
_find:function(y){for(var Z=this._keys,YN=Z.length,Jk=0;Jk<YN;++Jk)if(Z[Jk]===y)return Jk;return-1}};
return D}
function H(){function D(){this._map=new h}
D.prototype={get size(){return this._map.length},has:function(g){return this._map.has(g)},
add:function(g){this._map.set(g,g);return this},
delete:function(g){return this._map.delete(g)},
clear:function(){this._map.clear()},
forEach:function(g,y){this._map.forEach(g,y)}};
return D}
function I(){function D(){this._key=y()}
function g(M5,fo){for(var ug=0;ug<fo;++ug)M5[ug]=Math.random()*255|0}
function y(){do{if(YN)var M5=YN.randomBytes(16);else typeof Uint8Array==="function"?(M5=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(M5):g(M5,16)):(M5=Array(16),g(M5,16));M5[6]=M5[6]&79|64;M5[8]=M5[8]&191|128;for(var fo="",ug=0;ug<16;++ug){var sE=M5[ug];if(ug===4||ug===6||ug===8)fo+="-";sE<16&&(fo+="0");fo+=sE.toString(16).toLowerCase()}M5="@@WeakMap@@"+fo}while(Jk.call(v1,M5));v1[M5]=!0;return M5}
function Z(M5,fo){if(!Jk.call(M5,lg)){if(!fo)return;Object.defineProperty(M5,lg,{value:Object.create(null)})}return M5[lg]}
var YN=typeof global!=="undefined"&&typeof AEY==="object"&&typeof require==="function"&&require("crypto"),Jk=Object.prototype.hasOwnProperty,v1={},lg=y();D.prototype={has:function(M5){return(M5=Z(M5,!1))?this._key in M5:!1},
get:function(M5){if(M5=Z(M5,!1))return M5[this._key]},
set:function(M5,fo){Z(M5,!0)[this._key]=fo;return this},
delete:function(M5){return(M5=Z(M5,!1))&&this._key in M5?delete M5[this._key]:!1},
clear:function(){this._key=y()}};
return D}
var L=Object.getPrototypeOf(Function),h=typeof Map==="function"?Map:n(),E=typeof Set==="function"?Set:H(),N=new (typeof WeakMap==="function"?WeakMap:I());e.decorate=function(D,g,y,Z){if(q(Z)){if(q(y)){if(!Array.isArray(D))throw new TypeError;if(!Q(g))throw new TypeError;for(y=D.length-1;y>=0;--y)if(Z=(0,D[y])(g),!q(Z)){if(!Q(Z))throw new TypeError;g=Z}return g}if(!Array.isArray(D))throw new TypeError;if(!T(g))throw new TypeError;y=m(y);for(Z=D.length-1;Z>=0;--Z)(0,D[Z])(g,y)}else{if(Array.isArray(D))if(T(g)){if(q(y))throw new TypeError;
if(!T(Z))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=m(y);for(var YN=D.length-1;YN>=0;--YN){var Jk=(0,D[YN])(g,y,Z);if(!q(Jk)){if(!T(Jk))throw new TypeError;Z=Jk}}return Z}};
e.metadata=function(D,g){return function(y,Z){if(q(Z)){if(!Q(y))throw new TypeError;z(y,void 0,!0).set(D,g)}else{if(!T(y))throw new TypeError;Z=m(Z);z(y,Z,!0).set(D,g)}}};
e.defineMetadata=function(D,g){var y;if(T(g))q(y)||(y=m(y));else throw new TypeError;z(g,y,!0).set("parameters",D)};
e.hasMetadata=function(D,g,y){if(T(g))q(y)||(y=m(y));else throw new TypeError;return C(D,g,y)};
e.hasOwnMetadata=function(D,g,y){if(T(g))q(y)||(y=m(y));else throw new TypeError;return w(D,g,y)};
e.getMetadata=function(D,g,y){if(T(g))q(y)||(y=m(y));else throw new TypeError;return K(D,g,y)};
e.getOwnMetadata=function(D,g,y){if(T(g))q(y)||(y=m(y));else throw new TypeError;return G(D,g,y)};
e.getMetadataKeys=function(D,g){if(T(D))q(g)||(g=m(g));else throw new TypeError;return X(D,g)};
e.getOwnMetadataKeys=function(D,g){if(T(D))q(g)||(g=m(g));else throw new TypeError;return J(D,g)};
e.deleteMetadata=function(D,g,y){if(T(g))q(y)||(y=m(y));else throw new TypeError;var Z=z(g,y,!1);if(!q(Z)){if(!Z.delete(D))return!1;if(Z.size>0)return!0;D=N.get(g);D.delete(y);if(D.size>0)return!0;N.delete(g);return!0}};
(function(D){if(typeof D.Reflect!=="undefined"){if(D.Reflect!==e)for(var g in e)D.Reflect[g]=e[g]}else D.Reflect=e})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Zms||(Zms={}));var W91=self;var p9o=[0,_.o8,_.bS,_.o8];var etL=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(etL,_.X2);var zto=_.UC(etL,[0,_.xl,_.kl,p9o,_.bS,_.$l]);var wjC=[0,_.Tv,-3,_.$l,_.xl,_.o8,_.vZC,_.Tv,W5T,rCc,e2,_.Gv,_.o8,function(){return CwS},
_.bS],CwS=[0,_.kl,function(){return wjC},
_.xl,14,_.Tv];_.Tk(_.ak,_.Sn);_.Y=_.ak.prototype;_.Y.start=function(){this.stop();this.usingListeners_=!1;var e=KBC(this),z=ofc(this);e&&!z&&this.JSC$11480_win_.mozRequestAnimationFrame?(this.JSC$11480_id_=_.W9(this.JSC$11480_win_,"MozBeforePaint",this.callback_),this.JSC$11480_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11480_id_=e&&z?e.call(this.JSC$11480_win_,this.callback_):this.JSC$11480_win_.setTimeout(gos(this.callback_),20)};
_.Y.stop=function(){if(this.isActive()){var e=KBC(this),z=ofc(this);e&&!z&&this.JSC$11480_win_.mozRequestAnimationFrame?Um(this.JSC$11480_id_):e&&z?z.call(this.JSC$11480_win_,this.JSC$11480_id_):this.JSC$11480_win_.clearTimeout(this.JSC$11480_id_)}this.JSC$11480_id_=null};
_.Y.fire=function(){this.stop();this.JSC$11482_doAction_()};
_.Y.isActive=function(){return this.JSC$11480_id_!=null};
_.Y.JSC$11482_doAction_=function(){this.usingListeners_&&this.JSC$11480_id_&&Um(this.JSC$11480_id_);this.JSC$11480_id_=null;this.JSC$11480_listener_.call(this.handler_,_.xd())};
_.Y.disposeInternal=function(){this.stop();_.ak.superClass_.disposeInternal.call(this)};
var KBC=function(e){e=e.JSC$11480_win_;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||null},ofc=function(e){e=e.JSC$11480_win_;
return e.cancelAnimationFrame||e.cancelRequestAnimationFrame||e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||null};_.lw=function(e,z,C){_.Sn.call(this);this.JSC$11483_listener_=C!=null?e.bind(C):e;this.JSC$11483_interval_=z;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11483_timer_=null};
_.U(_.lw,_.Sn);_.Y=_.lw.prototype;_.Y.fire=function(e){this.args_=arguments;this.JSC$11483_timer_||this.pauseCount_?this.shouldFire_=!0:G9U(this)};
_.Y.stop=function(){this.JSC$11483_timer_&&(_.wL.clearTimeout(this.JSC$11483_timer_),this.JSC$11483_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.Y.pause=function(){this.pauseCount_++};
_.Y.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11483_timer_||(this.shouldFire_=!1,G9U(this))};
_.Y.disposeInternal=function(){_.Sn.prototype.disposeInternal.call(this);this.stop()};
var G9U=function(e){e.JSC$11483_timer_=jl(function(){e.JSC$11483_timer_=null;e.shouldFire_&&!e.pauseCount_&&(e.shouldFire_=!1,G9U(e))},e.JSC$11483_interval_);
var z=e.args_;e.args_=null;e.JSC$11483_listener_.apply(null,z)};var YTS=function(e,z){this.childIterator_=e[_.wL.Symbol.iterator]();this.mapFn_=z};
YTS.prototype[Symbol.iterator]=function(){return this};
YTS.prototype.next=function(){var e=this.childIterator_.next();return{value:e.done?void 0:this.mapFn_.call(void 0,e.value),done:e.done}};
var bUS=function(e,z){return new YTS(e,z)};var Xjo={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 $fk=function(e){var z=Jqa(e);if(!z)throw Error("Wd`"+e);return z},Jqa=function(e){var z={};
e=String(e);var C=e.charAt(0)=="#"?e:"#"+e;if(k94.test(C))return z.hex=G7h(C),z.type="hex",z;C=aJE(e);return C.length?(z.hex=BH4(C[0],C[1],C[2]),z.type="rgb",z):Xjo&&(e=Xjo[e.toLowerCase()])?(z.hex=e,z.type="named",z):null},qTc=/#(.)(.)(.)/,G7h=function(e){if(!k94.test(e))throw Error("Yd`"+e);
e.length==4&&(e=e.replace(qTc,"#$1$1$2$2$3$3"));return e.toLowerCase()},lJN=function(e){e=G7h(e);
e=parseInt(e.slice(1),16);return[e>>16,e>>8&255,e&255]},BH4=function(e,z,C){e=Number(e);
z=Number(z);C=Number(C);if(e!=(e&255)||z!=(z&255)||C!=(C&255))throw Error("Zd`"+e+"`"+z+"`"+C);z=e<<16|z<<8|C;return e<16?"#"+(16777216|z).toString(16).slice(1):"#"+z.toString(16)},k94=/^#(?:[0-9a-f]{3}){1,2}$/i,xT6=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,aJE=function(e){var z=e.match(xT6);
if(z){e=Number(z[1]);var C=Number(z[2]);z=Number(z[3]);if(e>=0&&e<=255&&C>=0&&C<=255&&z>=0&&z<=255)return[e,C,z]}return[]};var TGs={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},Ml=TGs;Ml=TGs;var w8m,$TX,lec;w8m=function(e,z){switch(z){case 1:return e%4!=0||e%100==0&&e%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
$TX=function(e,z,C,w,K){e=new Date(e,z,C);K=K||0;return e.valueOf()+(((w!==void 0?w:3)-K+7)%7-((e.getDay()+6)%7-K+7)%7)*864E5};
_.A1=function(e,z,C){typeof e==="number"?(this.date=lec(e,z||0,C||1),QoC(this,C||1)):_.gL(e)?(this.date=lec(e.getFullYear(),e.getMonth(),e.getDate()),QoC(this,e.getDate())):(this.date=new Date(_.xd()),e=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),QoC(this,e))};
lec=function(e,z,C){z=new Date(e,z,C);e>=0&&e<100&&z.setFullYear(z.getFullYear()-1900);return z};
_.Y=_.A1.prototype;_.Y.firstDayOfWeek_=Ml.FIRSTDAYOFWEEK;_.Y.firstWeekCutOffDay_=Ml.FIRSTWEEKCUTOFFDAY;_.Y.clone=function(){var e=new _.A1(this.date);e.firstDayOfWeek_=this.firstDayOfWeek_;e.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return e};
_.Y.getFullYear=function(){return this.date.getFullYear()};
_.Y.getYear=function(){return this.getFullYear()};
_.Y.getMonth=function(){return this.date.getMonth()};
_.Y.getDate=function(){return this.date.getDate()};
_.Y.getTime=function(){return this.date.getTime()};
_.Y.getDay=function(){return this.date.getDay()};
_.Y.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.Y.getUTCMonth=function(){return this.date.getUTCMonth()};
_.Y.getUTCDate=function(){return this.date.getUTCDate()};
_.Y.getUTCDay=function(){return this.date.getDay()};
_.Y.getUTCHours=function(){return this.date.getUTCHours()};
_.Y.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Y.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.Y.set=function(e){this.date=new Date(e.getFullYear(),e.getMonth(),e.getDate())};
_.Y.setFullYear=function(e){this.date.setFullYear(e)};
_.Y.setYear=function(e){this.setFullYear(e)};
_.Y.setMonth=function(e){this.date.setMonth(e)};
_.Y.setDate=function(e){this.date.setDate(e)};
_.Y.setTime=function(e){this.date.setTime(e)};
_.Y.setUTCFullYear=function(e){this.date.setUTCFullYear(e)};
_.Y.setUTCMonth=function(e){this.date.setUTCMonth(e)};
_.Y.setUTCDate=function(e){this.date.setUTCDate(e)};
_.Y.add=function(e){if(e.years||e.months){var z=this.getMonth()+e.months+e.years*12,C=this.getYear()+Math.floor(z/12);z%=12;z<0&&(z+=12);var w=Math.min(w8m(C,z),this.getDate());this.setDate(1);this.setFullYear(C);this.setMonth(z);this.setDate(w)}e.days&&(C=this.getYear(),z=C>=0&&C<=99?-1900:0,e=new Date((new Date(C,this.getMonth(),this.getDate(),12)).getTime()+e.days*864E5),this.setDate(1),this.setFullYear(e.getFullYear()+z),this.setMonth(e.getMonth()),this.setDate(e.getDate()),QoC(this,e.getDate()))};
_.Y.JSC$11496_toIsoString=function(e){var z=this.getFullYear(),C=z<0?"-":z>=1E4?"+":"";return[C+_.rJ(Math.abs(z),C?6:4),_.rJ(this.getMonth()+1,2),_.rJ(this.getDate(),2)].join(e?"-":"")};
_.Y.equals=function(e){return!(!e||this.getYear()!=e.getYear()||this.getMonth()!=e.getMonth()||this.getDate()!=e.getDate())};
_.Y.toString=function(){return this.JSC$11496_toIsoString()};
var QoC=function(e,z){e.getDate()!=z&&e.date.setUTCHours(e.date.getUTCHours()+(e.getDate()<z?1:-1))};
_.A1.prototype.valueOf=function(){return this.date.valueOf()};var pc=function(e,z,C,w,K){this.reversed=!!z;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!C;e&&Zo(this,e,w);this.depth=K!=void 0?K:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Tk(pc,WE);var Zo=function(e,z,C,w){if(e.node=z)e.tagType=typeof C==="number"?C:e.node.nodeType!=1?0:e.reversed?-1:1;typeof w==="number"&&(e.depth=w)};
_.Y=pc.prototype;_.Y.JSC$11511_copyFrom=function(e){this.node=e.node;this.tagType=e.tagType;this.depth=e.depth;this.reversed=e.reversed;this.constrained=e.constrained};
_.Y.clone=function(){return new pc(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.Y.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return PE;var e=this.node;var z=this.reversed?-1:1;if(this.tagType==z){var C=this.reversed?e.lastChild:e.firstChild;C?Zo(this,C):Zo(this,e,z*-1)}else(C=this.reversed?e.previousSibling:e.nextSibling)?Zo(this,C):Zo(this,e.parentNode,z*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(e=this.node)?RZ(e):PE};
_.Y.equals=function(e){return e.node==this.node&&(!this.node||e.tagType==this.tagType)};
_.Y.splice=function(e){var z=this.node,C=this.reversed?1:-1;this.tagType==C&&(this.tagType=C*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;pc.prototype.next.call(this);this.reversed=!this.reversed;C=_.B1(arguments[0])?arguments[0]:arguments;for(var w=C.length-1;w>=0;w--)_.AL(C[w],z);_.hA(z)};var mTh=function(){},e6=function(e){for(var z=[],C=e.getTextRangeCount(),w=0;w<C;w++)z.push(e.getTextRange(w));
return z};
mTh.prototype.isReversed=function(){return!1};
mTh.prototype.getWindow=function(){return BV(_.t0(this.JSC$11513_getStartNode()))};
var aes=function(e,z){pc.call(this,e,z,!0)};
_.Tk(aes,pc);var zs=function(e,z,C,w,K){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!K;if(e){this.startNode_=e;this.startOffset_=z;this.endNode_=C;this.endOffset_=w;if(e.nodeType==1&&e.tagName!="BR")if(e=e.childNodes,z=e[z])this.startNode_=z,this.startOffset_=0;else{e.length&&(this.startNode_=_.hk(e));var G=!0}C.nodeType==1&&((this.endNode_=C.childNodes[w])?this.endOffset_=0:this.endNode_=C)}pc.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);G&&this.next()};
_.Tk(zs,aes);_.Y=zs.prototype;_.Y.JSC$11519_getStartNode=function(){return this.startNode_};
_.Y.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)};
_.Y.next=function(){return this.isLast()?PE:zs.superClass_.next.call(this)};
_.Y.JSC$11511_copyFrom=function(e){this.startNode_=e.startNode_;this.endNode_=e.endNode_;this.startOffset_=e.startOffset_;this.endOffset_=e.endOffset_;this.isReversed_=e.isReversed_;zs.superClass_.JSC$11511_copyFrom.call(this,e)};
_.Y.clone=function(){var e=new zs(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);e.JSC$11511_copyFrom(this);return e};var nfo=function(){};
nfo.prototype.__iterator__=function(){return new zs(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Cr=function(e){this.range_=e};
_.Tk(Cr,nfo);var Mja=function(e){var z=_.t0(e).createRange();if(e.nodeType==3)z.setStart(e,0),z.setEnd(e,e.length);else if(j2(e)||e.nodeType==3){for(var C,w=e;(C=w.firstChild)&&(j2(C)||C.nodeType==3);)w=C;z.setStart(w,0);for(w=e;(C=w.lastChild)&&(j2(C)||C.nodeType==3);)w=C;z.setEnd(w,w.nodeType==1?w.childNodes.length:w.length)}else C=e.parentNode,e=Array.prototype.indexOf.call(C.childNodes,e),z.setStart(C,e),z.setEnd(C,e+1);return z},rqa=function(e,z,C,w){var K=_.t0(e).createRange();
K.setStart(e,z);K.setEnd(C,w);return K};
_.Y=Cr.prototype;_.Y.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.Y.getContainer=function(){return this.range_.commonAncestorContainer};
_.Y.compareBrowserRangeEndpoints=function(e,z,C){return this.range_.compareBoundaryPoints(C==1?z==1?_.wL.Range.START_TO_START:_.wL.Range.START_TO_END:z==1?_.wL.Range.END_TO_START:_.wL.Range.END_TO_END,e)};
_.Y.isCollapsed=function(){return this.range_.collapsed};
_.Y.select=function(e){this.selectInternal(BV(_.t0(this.range_.startContainer)).getSelection(),e)};
_.Y.selectInternal=function(e){e.removeAllRanges();e.addRange(this.range_)};
_.Y.insertNode=function(e,z){var C=this.range_.cloneRange();C.collapse(z);C.insertNode(e);C.detach();return e};
_.Y.collapse=function(e){this.range_.collapse(e)};_.Tk(nG,Cr);nG.prototype.selectInternal=function(e,z){!z||this.isCollapsed()?nG.superClass_.selectInternal.call(this,e,z):(e.collapse(this.range_.endContainer,this.range_.endOffset),e.extend(this.range_.startContainer,this.range_.startOffset))};_.Tk(Mx,Cr);Mx.prototype.compareBrowserRangeEndpoints=function(e,z,C){return Mx.superClass_.compareBrowserRangeEndpoints.call(this,e,z,C)};
Mx.prototype.selectInternal=function(e,z){z?e.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):e.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var HU4=function(e){return _.MI?new Mx(e):_.nb?new nG(e):new Cr(e)};var wD=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},UTU;
_.Tk(wD,mTh);UTU=function(e,z){var C=new wD;C.browserRangeWrapper_=e;C.isReversed_=!!z;return C};
_.vfg=function(e){e=_.MI?new Mx(Mja(e)):_.nb?new nG(Mja(e)):new Cr(Mja(e));return UTU(e)};
_.Kr=function(e,z,C,w){var K=new wD;K.isReversed_=IeU(e,z,C,w);if(_.xO(e)&&!j2(e)){var G=e.parentNode;z=Array.prototype.indexOf.call(G.childNodes,e);e=G}_.xO(C)&&!j2(C)&&(G=C.parentNode,w=Array.prototype.indexOf.call(G.childNodes,C),C=G);K.isReversed_?(K.startNode_=C,K.startOffset_=w,K.endNode_=e,K.endOffset_=z):(K.startNode_=e,K.startOffset_=z,K.endNode_=C,K.endOffset_=w);return K};
_.Y=wD.prototype;_.Y.clone=function(){var e=new wD;e.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();e.startNode_=this.startNode_;e.startOffset_=this.startOffset_;e.endNode_=this.endNode_;e.endOffset_=this.endOffset_;e.isReversed_=this.isReversed_;return e};
_.Y.JSC$11513_getType=function(){return"text"};
_.Y.getBrowserRangeObject=function(){return or(this).range_};
_.Y.getTextRangeCount=function(){return 1};
_.Y.getTextRange=function(){return this};
var or=function(e){var z;if(!(z=e.browserRangeWrapper_)){z=e.JSC$11513_getStartNode();var C=e.JSC$11513_getStartOffset(),w=e.JSC$11513_getEndNode(),K=e.JSC$11513_getEndOffset();z=_.MI?new Mx(rqa(z,C,w,K)):_.nb?new nG(rqa(z,C,w,K)):new Cr(rqa(z,C,w,K));z=e.browserRangeWrapper_=z}return z};
_.Y=wD.prototype;_.Y.getContainer=function(){return or(this).getContainer()};
_.Y.JSC$11513_getStartNode=function(){return this.startNode_||(this.startNode_=or(this).range_.startContainer)};
_.Y.JSC$11513_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=or(this).range_.startOffset};
_.Y.JSC$11513_getEndNode=function(){return this.endNode_||(this.endNode_=or(this).range_.endContainer)};
_.Y.JSC$11513_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=or(this).range_.endOffset};
_.Y.isReversed=function(){return this.isReversed_};
_.Y.JSC$11513_containsRange=function(e,z){if(e.JSC$11513_getType()=="text"){var C=or(this);e=or(e);z=z&&!e.isCollapsed();e=e.range_;C=z?C.compareBrowserRangeEndpoints(e,0,1)>=0&&C.compareBrowserRangeEndpoints(e,1,0)<=0:C.compareBrowserRangeEndpoints(e,0,0)>=0&&C.compareBrowserRangeEndpoints(e,1,1)<=0}else C=!1;return C};
_.Y.isCollapsed=function(){return or(this).isCollapsed()};
_.Y.JSC$11513_getText=function(){return or(this).range_.toString()};
_.Y.__iterator__=function(){return new zs(this.JSC$11513_getStartNode(),this.JSC$11513_getStartOffset(),this.JSC$11513_getEndNode(),this.JSC$11513_getEndOffset())};
_.Y.select=function(){or(this).select(this.isReversed_)};
_.Y.JSC$11513_removeContents=function(){var e=or(this).range_;e.extractContents();if(e.startContainer.hasChildNodes()&&(e=e.startContainer.childNodes[e.startOffset])){var z=e.previousSibling;NeL(e)==""&&_.hA(e);z&&NeL(z)==""&&_.hA(z)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.Y.insertNode=function(e,z){e=or(this).insertNode(e,z);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return e};
_.Y.collapse=function(e){e=this.isReversed()?!e:e;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(e);e?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var WBa=function(){};
_.Tk(WBa,mTh);WBa.prototype.JSC$11513_containsRange=function(e,z){var C=e6(this);e=e6(e);return(z?JX:_.te1)(e,function(w){return JX(C,function(K){return K.JSC$11513_containsRange(w,z)})})};
WBa.prototype.insertNode=function(e,z){z?_.cT(e,this.JSC$11513_getStartNode()):_.AL(e,this.JSC$11513_getEndNode());return e};var Pwo,Rts=Ot().JSC$9495_document_.documentElement;Pwo=Rts.requestFullscreen?"fullscreenchange":Rts.webkitRequestFullscreen?"webkitfullscreenchange":Rts.mozRequestFullScreen?"mozfullscreenchange":Rts.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var LBS=function(){var e=Ot().JSC$9495_document_;return!!(e.webkitIsFullScreen||e.mozFullScreen||e.msFullscreenElement||e.fullscreenElement)};var Gs=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Tk(Gs,WBa);_.Y=Gs.prototype;_.Y.clone=function(){var e=new Gs;e.browserRanges_=_.ig(this.browserRanges_);return e};
_.Y.JSC$11513_getType=function(){return"mutli"};
_.Y.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.Y.getTextRangeCount=function(){return this.browserRanges_.length};
_.Y.getTextRange=function(e){this.ranges_[e]||(this.ranges_[e]=UTU(HU4(this.browserRanges_[e])));return this.ranges_[e]};
_.Y.getContainer=function(){if(!this.container_){for(var e=[],z=this.getTextRangeCount(),C=0;C<z;C++)e.push(this.getTextRange(C).getContainer());this.container_=V8c.apply(null,e)}return this.container_};
var YK=function(e){e.sortedRanges_||(e.sortedRanges_=e6(e),e.sortedRanges_.sort(function(z,C){var w=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();var K=C.JSC$11513_getStartNode();C=C.JSC$11513_getStartOffset();return w==K&&z==C?0:IeU(w,z,K,C)?1:-1}));
return e.sortedRanges_};
_.Y=Gs.prototype;_.Y.JSC$11513_getStartNode=function(){return YK(this)[0].JSC$11513_getStartNode()};
_.Y.JSC$11513_getStartOffset=function(){return YK(this)[0].JSC$11513_getStartOffset()};
_.Y.JSC$11513_getEndNode=function(){return _.hk(YK(this)).JSC$11513_getEndNode()};
_.Y.JSC$11513_getEndOffset=function(){return _.hk(YK(this)).JSC$11513_getEndOffset()};
_.Y.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.Y.JSC$11513_getText=function(){return e6(this).map(function(e){return e.JSC$11513_getText()}).join("")};
_.Y.__iterator__=function(){return new bL(this)};
_.Y.select=function(){var e=this.getWindow().getSelection();e.removeAllRanges();for(var z=this.getTextRangeCount(),C=0;C<z;C++)e.addRange(this.getTextRange(C).getBrowserRangeObject())};
_.Y.JSC$11513_removeContents=function(){e6(this).forEach(function(e){e.JSC$11513_removeContents()})};
_.Y.collapse=function(e){if(!this.isCollapsed()){var z=e?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;z.collapse(e);this.ranges_=[z];this.sortedRanges_=[z];this.browserRanges_=[z.getBrowserRangeObject()]}};
var bL=function(e){this.iterators_=null;this.currentIdx_=0;e&&(this.iterators_=YK(e).map(function(z){return _.NQ4(z)}));
pc.call(this,e?this.JSC$11519_getStartNode():null,!1,!0)};
_.Tk(bL,aes);_.Y=bL.prototype;_.Y.JSC$11519_getStartNode=function(){return this.iterators_[0].JSC$11519_getStartNode()};
_.Y.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.Y.next=function(){for(;this.currentIdx_<this.iterators_.length;){var e=this.iterators_[this.currentIdx_],z=e.next();if(z.done)this.currentIdx_++;else return Zo(this,e.node,e.tagType,e.depth),z}return PE};
_.Y.JSC$11511_copyFrom=function(e){this.iterators_=_.ig(e.iterators_);bL.superClass_.JSC$11511_copyFrom.call(this,e)};
_.Y.clone=function(){var e=new bL(null);e.JSC$11511_copyFrom(this);return e};var ht4,IeU;_.ln=function(){var e=window.getSelection();return e&&ht4(e)};
ht4=function(e){var z=!1;if(e.createRange)try{var C=e.createRange()}catch(K){return null}else if(e.rangeCount){if(e.rangeCount>1){C=new Gs;z=e.rangeCount;for(var w=0;w<z;w++)C.browserRanges_.push(e.getRangeAt(w));return C}C=e.getRangeAt(0);z=IeU(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}else return null;return UTU(HU4(C),z)};
_.XA=function(e,z){return _.Kr(e,z,e,z)};
_.Jp=function(e,z,C,w){return _.Kr(e,z,C,w)};
IeU=function(e,z,C,w){if(e==C)return w<z;var K;if(e.nodeType==1&&z)if(K=e.childNodes[z])e=K,z=0;else if(_.ph(e,C))return!0;if(C.nodeType==1&&w)if(K=C.childNodes[w])C=K,w=0;else if(_.ph(C,e))return!1;return(FIT(e,C)||z-w)>0};var kK=function(){_.N3.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.uZ)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.uZ)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.uZ)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.uZ)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.uZ)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.uZ)(this.dispatchProgressEvent_,this)};
_.Tk(kK,_.N3);kK.prototype.abort=function(){try{this.reader_.abort()}catch(e){throw new BNX(e,"aborting read");}};
kK.prototype.getError=function(){return this.reader_.error&&new BNX(this.reader_.error,"reading file")};
kK.prototype.dispatchProgressEvent_=function(e){this.dispatchEvent(new tyL(e,this))};
kK.prototype.disposeInternal=function(){kK.superClass_.disposeInternal.call(this);delete this.reader_};
var EfU=function(e){var z=new kK,C=OUs(z);z.reader_.readAsArrayBuffer(e);return C},FBS=function(e){var z=new kK,C=OUs(z);
z.reader_.readAsDataURL(e);return C},OUs=function(e){var z=new xu;
e.listen("loadend",_.xk(function(C,w){var K=w.reader_.result,G=w.getError();K==null||G?C.errback(G):C.callback(K);w.dispose()},z,e));
return z};var qV=function(){_.N3.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11553_eventHandler_=new _.HA(this);this.JSC$11553_isInitialized_=!1};
_.Tk(qV,_.N3);var Vjg=new _.VE("d"),feX=new _.VE("beforedragstart"),ST6=new _.VE("dragstart"),uW6=new _.VE("beforedragmove"),dTo=new _.VE("dragmove"),DTL=new _.VE("beforedragend"),iUg=new _.VE("dragend"),NGU=new _.VE("e");qV.prototype.isDragging=function(){return!!this.JSC$11553_dragger_};
var soX=function(e,z){z.dlgGrowthDirection_=0;z.dlgDragHoverClass_=void 0;z.dlgDragPermission=0;e.dragLists_.push(z)},BGC=function(e,z){e.getHandleForDragItem_=z};
qV.prototype.init=function(){if(!this.JSC$11553_isInitialized_){for(var e=this.dragLists_.length,z=0;z<e;z++)for(var C=_.Zg(this.dragLists_[z]),w=C.length,K=0;K<w;++K){var G=C[K],X=this.getHandleForDragItem_(G),J=_.c1(X);this.dragItemForHandle_[J]=G;this.dragItemHoverClasses_&&(this.JSC$11553_eventHandler_.listen(G,"mouseover",this.handleDragItemMouseover_),this.JSC$11553_eventHandler_.listen(G,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11553_eventHandler_.listen(X,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11553_eventHandler_.listen(X,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(G);this.JSC$11553_eventHandler_.listen(X,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11553_isInitialized_=!0}};
qV.prototype.disposeInternal=function(){this.JSC$11553_eventHandler_.dispose();for(var e=this.dragLists_.length,z=0;z<e;z++){var C=this.dragLists_[z];C.dlgGrowthDirection_=void 0;C.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;tjS(this);qV.superClass_.disposeInternal.call(this)};
var gfa=function(e,z){for(var C=e.dragLists_.length,w=0;w<C;w++){var K=e.dragLists_[w];K.dlgBounds_=HVg(K)}C=e.dragItems_.length;for(w=0;w<C;w++)K=e.dragItems_[w],K!=z&&(K.dlgBounds_=HVg(K))};
_.Y=qV.prototype;
_.Y.handlePotentialDragStart_=function(e){var z=_.c1(e.currentTarget);z=this.dragItemForHandle_[z];if(z.parentElement.dlgDragPermission!=2){this.currDragItem_=z;a:{z=this.currDragItem_;for(var C=z.cloneNode(!0),w=Ov("TEXTAREA",z),K=Ov("TEXTAREA",C),G=0;G<w.length;G++)K[G].value=w[G].value;switch(z.tagName){case "TR":z=_.tL("TABLE",null,_.tL("TBODY",null,C));break a;case "TD":case "TH":z=_.tL("TABLE",null,_.tL("TBODY",null,_.tL("TR",null,C)));break a;case "TEXTAREA":C.value=z.value;default:z=C;break a}z=
void 0}this.draggerEl_=z;this.draggerElClasses_&&ku(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.t0(this.currDragItem_).body.appendChild(this.draggerEl_);C=_.ge(this.currDragItem_);z=this.draggerEl_;w=_.ge(z);if(C instanceof _.st){var X=C.y;C=C.x}wB(z,z.offsetLeft+(C-w.x),z.offsetTop+(Number(X)-w.y));this.JSC$11553_dragger_=new _.KN(this.draggerEl_);_.skU(this.JSC$11553_dragger_,this.hysteresisDistance_);
_.W9(this.JSC$11553_dragger_,"start",this.handleDragStart_,!1,this);_.W9(this.JSC$11553_dragger_,"end",this.handleDragEnd_,!1,this);_.W9(this.JSC$11553_dragger_,"earlycancel",this.JSC$11555_cleanup_,!1,this);this.dispatchEvent(new xK(Vjg,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_));this.JSC$11553_dragger_.startDrag(e)}};
_.Y.handleDragStart_=function(e){if(this.dispatchEvent(new xK(feX,this,e.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.hnS(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?ku(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var z=y0s(this.draggerEl_);this.draggerEl_.halfWidth=z.width/2;this.draggerEl_.halfHeight=z.height/2;z=this.draggerEl_.getBoundingClientRect();
var C=e.clientY,w=BMa(this.JSC$11553_dragger_,e.clientX);if(w>z.right){var K=this.currDragItem_.getBoundingClientRect();this.JSC$11553_dragger_.deltaX=w-(w-K.left)/K.width*z.width}C=tCs(this.JSC$11553_dragger_,C);C>z.bottom&&(this.JSC$11553_dragger_.deltaY+=C-z.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";gfa(this,this.currDragItem_);this.currDragItem_.style.display="";_.W9(this.JSC$11553_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new xK(ST6,
this,e.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_))}else e.preventDefault(),this.JSC$11555_cleanup_()};
_.Y.handleDragMove_=function(e){var z=_.ge(this.draggerEl_);z=new _.st(z.x+this.draggerEl_.halfWidth,z.y+this.draggerEl_.halfHeight);a:{var C=null;if(this.currDragItem_.style.display!="none"){C=this.currDragItem_.parentNode;var w=HVg(C);if(jo4(z,w))break a}w=this.dragLists_.length;for(var K=0;K<w;K++){var G=this.dragLists_[K];if(G!=C&&jo4(z,G.dlgBounds_)){C=G;break a}}C=null}if(C){if(C==null)throw Error("$d");w=0;K=!1;G=void 0;switch(C.dlgGrowthDirection_){case 0:w=z.y;var X=yqT;var J=cqo;break;case 4:K=
!0;case 2:w=z.x;X=AqT;J=cqo;break;case 5:K=!0;case 3:w=z.x,X=ZU6,J=pja}for(var q=null,T,Q=_.Zg(C),m=Q.length,a=0;a<m;a++){var n=Q[a];if(n!=this.currDragItem_){var H=X(n.dlgBounds_);if(K){var I=ehY(n,z);G===void 0&&(G=I);J(w,H)&&(T==void 0||I<G||I==G&&(J(H,T)||H==T))&&(q=n,T=H);I<G&&(G=I)}else J(w,H)&&(T==void 0||J(H,T))&&(q=n,T=H)}}X=q!==null&&ehY(q,z)>G?null:q}else X=null;if(!this.dispatchEvent(new xK(uW6,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_,z,C,X)))return!1;if(C&&C.dlgDragPermission!=
1)this.currDragItem_.parentNode==C&&_.hnS(this.currDragItem_)==X||C.insertBefore(this.currDragItem_,X),this.currDragItem_.style.display="",C.dlgDragHoverClass_&&_.pm(C,C.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",J=this.dragLists_.length,T=0;T<J;T++)w=this.dragLists_[T],w.dlgDragHoverClass_&&_.AE(w,w.dlgDragHoverClass_);C!=this.currHoverList_&&(this.currHoverList_=C,gfa(this,this.currDragItem_));this.dispatchEvent(new xK(dTo,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_,
z,C,X));return!1};
_.Y.JSC$11555_cleanup_=function(){tjS(this);this.JSC$11553_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var e=this.dragLists_.length,z=0;z<e;z++)this.dragLists_[z].dlgBounds_=null;e=this.dragItems_.length;for(z=0;z<e;z++)this.dragItems_[z].dlgBounds_=null};
_.Y.handleDragEnd_=function(e){if(!this.dispatchEvent(new xK(DTL,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_)))return!1;tjS(this);this.dispatchEvent(new xK(iUg,this,e,this.currDragItem_,this.draggerEl_,this.JSC$11553_dragger_));this.JSC$11555_cleanup_();return!0};
var tjS=function(e){_.XU(e.JSC$11553_dragger_);var z=e.draggerEl_&&e.draggerEl_.parentElement;e.draggerEl_&&_.hA(e.draggerEl_);e.currDragItem_&&e.currDragItem_.style.display=="none"&&(e.origList_.insertBefore(e.currDragItem_,e.origNextItem_),e.currDragItem_.style.display="");e.currDragItemClasses_&&e.currDragItem_?ip6(e.currDragItem_,e.currDragItemClasses_||[]):e.currDragItem_&&(e.currDragItem_.style.visibility="");for(var C=e.dragLists_.length,w=0;w<C;w++){var K=e.dragLists_[w];K.dlgDragHoverClass_&&
_.AE(K,K.dlgDragHoverClass_)}z&&e.dispatchEvent(new xK(NGU,e,null,e.currDragItem_,e.draggerEl_,e.JSC$11553_dragger_))};
_.Y=qV.prototype;_.Y.getHandleForDragItem_=function(e){return e};
_.Y.handleDragItemMouseover_=function(e){ku(e.currentTarget,this.dragItemHoverClasses_||[])};
_.Y.handleDragItemMouseout_=function(e){ip6(e.currentTarget,this.dragItemHoverClasses_||[])};
_.Y.handleDragItemHandleMouseover_=function(e){ku(e.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.Y.handleDragItemHandleMouseout_=function(e){ip6(e.currentTarget,this.dragItemHandleHoverClasses_||[])};
var jo4=function(e,z){return e.x>z.left&&e.x<z.left+z.width&&e.y>z.top&&e.y<z.top+z.height},ehY=function(e,z){e=e.dlgBounds_;
return Math.abs(z.y-(e.top+(e.height-1)/2))},yqT=function(e){return e.top+e.height-1},AqT=function(e){return e.left+e.width-1},ZU6=function(e){return e.left||0},cqo=function(e,z){return e<z},pja=function(e,z){return e>z},xK=function(e,z,C,w,K,G){_.fk.call(this,e);
this.event=C;this.currDragItem=w;this.draggerEl=K;this.JSC$11557_dragger=G};
_.Tk(xK,_.fk);_.Tk(U8,_.Sn);var zh4=new _.st(0,0);U8.prototype.JSC$11561_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
U8.prototype.JSC$11561_onMouseMove=function(e){var z=this.containerIsActuallyContent_?zh4:h0(Ot(this.containerNode_)),C=this.horizontalScrolling_?this.calculateScrollDelta(e.clientX+z.x,this.scrollBounds_.left,this.scrollBounds_.width):0,w=this.calculateScrollDelta(e.clientY+z.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=C;this.scrollDelta_.y=w;!(C=!C&&!w)&&(C=this.constrainScroll_)&&(C=e.clientX+z.x,e=e.clientY+z.y,z=this.containerBounds_,C=!(z.left<=C&&z.left+z.width>=
C&&z.top<=e&&z.top+z.height>=e));C?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
U8.prototype.calculateScrollDelta=function(e,z,C){var w=0;e<z?w=-8:e>z+C&&(w=8);return w};
U8.prototype.disposeInternal=function(){U8.superClass_.disposeInternal.call(this);this.JSC$11559_eventHandler_.dispose();this.scrollTimer_.dispose()};var C36={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"}}},Ts=C36;Ts=C36;var $K={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 wFa=function(){},y2=function(e){if(typeof e=="number"){var z=new wFa;
z.standardOffset_=e;var C=e;if(C==0)C="Etc/GMT";else{var w=["Etc/GMT",C<0?"-":"+"];C=Math.abs(C);w.push(Math.floor(C/60)%100);C%=60;C!=0&&w.push(":",_.rJ(C,2));C=w.join("")}z.timeZoneId_=C;C=e;C==0?C="UTC":(w=["UTC",C<0?"+":"-"],C=Math.abs(C),w.push(Math.floor(C/60)%100),C%=60,C!=0&&w.push(":",C),C=w.join(""));e=KTY(e);z.tzNames_=[C,C];z.tzNamesExt_={STD_LONG_NAME_GMT:e,STD_GENERIC_LOCATION:e};z.transitions_=[];return z}z=new wFa;z.timeZoneId_=e.id;z.standardOffset_=-e.std_offset;z.tzNames_=e.names;
z.tzNamesExt_=e.names_ext;z.transitions_=e.transitions;return z},KTY=function(e){var z=["GMT"];
z.push(e<=0?"+":"-");e=Math.abs(e);z.push(_.rJ(Math.floor(e/60)%100,2),":",_.rJ(e%60,2));return z.join("")},oTa=function(e,z){z=Date.UTC(z.getUTCFullYear(),z.getUTCMonth(),z.getUTCDate(),z.getUTCHours(),z.getUTCMinutes())/36E5;
for(var C=0;C<e.transitions_.length&&z>=e.transitions_[C];)C+=2;return C==0?0:e.transitions_[C-1]},GiC=function(e,z){e=e.standardOffset_-oTa(e,z);
return e===-1440?0:e};var cH=function(e,z){this.patternParts_=[];this.JSC$11572_dateTimeSymbols_=z||Ml;typeof e=="number"?YzY(this,e):b7Y(this,e)},XFg=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],lL=function(e){return e.getHours?e.getHours():0},b7Y=function(e,z){for(Wj1&&(z=z.replace(/\u200f/g,""));z;){for(var C=z,w=0;w<XFg.length;++w){var K=z.match(XFg[w]);
if(K){var G=K[0];z=z.substring(G.length);w==0&&(G=="''"?G="'":(G=G.substring(1,K[1]=="'"?G.length-1:G.length),G=G.replace(/''/g,"'")));e.patternParts_.push({text:G,type:w});break}}if(C===z)throw Error("ae`"+z);}};
cH.prototype.format=function(e,z){if(!e)throw Error("be");var C=z?(e.getTimezoneOffset()-GiC(z,e))*6E4:0,w=C?new Date(e.getTime()+C):e,K=w;z&&w.getTimezoneOffset()!=e.getTimezoneOffset()&&(w=new Date(w.getTime()+(w.getTimezoneOffset()-e.getTimezoneOffset())*6E4),K=new Date(e.getTime()+(C+(C>0?-864E5:864E5))));C=[];for(var G=0;G<this.patternParts_.length;++G){var X=this.patternParts_[G].text;1==this.patternParts_[G].type?C.push(Jmo(this,X,e,w,K,z)):C.push(X)}return C.join("")};
var YzY=function(e,z){if(z<4)var C=e.JSC$11572_dateTimeSymbols_.DATEFORMATS[z];else if(z<8)C=e.JSC$11572_dateTimeSymbols_.TIMEFORMATS[z-4];else if(z<12)C=e.JSC$11572_dateTimeSymbols_.DATETIMEFORMATS[z-8],C=C.replace("{1}",e.JSC$11572_dateTimeSymbols_.DATEFORMATS[z-8]),C=C.replace("{0}",e.JSC$11572_dateTimeSymbols_.TIMEFORMATS[z-8]);else if(z===12)C=e.JSC$11572_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(z===13)C=e.JSC$11572_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{YzY(e,10);return}b7Y(e,C)},Q3=function(e,z){z=String(z);
e=e.JSC$11572_dateTimeSymbols_||Ml;if(e.ZERODIGIT!==void 0&&!IC4){for(var C=[],w=0;w<z.length;w++){var K=z.charCodeAt(w);C.push(48<=K&&K<=57?String.fromCharCode(e.ZERODIGIT+K-48):z.charAt(w))}z=C.join("")}return z},IC4=!1,Wj1=!1,qzs=function(e,z,C,w){C=C.getFullYear();
C<=0&&w&&(C=1-C);return Q3(e,kiU(C,z))},kiU=function(e,z){z==2&&(e%=100);
e<0&&z++;return _.rJ(e,z)},mh=function(e){if(!(e.getHours&&e.getSeconds&&e.getMinutes))throw Error("ce");
},xKT=function(e,z){mh(z);
z=lL(z);return e.JSC$11572_dateTimeSymbols_.AMPMS[z>=12&&z<24?1:0]},Jmo=function(e,z,C,w,K,G){var X=z.length;
switch(z.charAt(0)){case "G":return C=w.getFullYear()>0?1:0,X>=4?e.JSC$11572_dateTimeSymbols_.ERANAMES[C]:e.JSC$11572_dateTimeSymbols_.ERAS[C];case "y":return qzs(e,X,w,!0);case "Y":return C=(new Date($TX(w.getFullYear(),w.getMonth(),w.getDate(),e.JSC$11572_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,e.JSC$11572_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),X==2&&(C%=100),Q3(e,kiU(C,X));case "u":return qzs(e,X,w,!1);case "M":a:switch(C=w.getMonth(),X){case 5:X=e.JSC$11572_dateTimeSymbols_.NARROWMONTHS[C];
break a;case 4:X=e.JSC$11572_dateTimeSymbols_.MONTHS[C];break a;case 3:X=e.JSC$11572_dateTimeSymbols_.SHORTMONTHS[C];break a;default:X=Q3(e,_.rJ(C+1,X))}return X;case "k":return mh(K),Q3(e,_.rJ(lL(K)||24,X));case "S":return Q3(e,(K.getMilliseconds()/1E3).toFixed(Math.min(3,X)).slice(2)+(X>3?_.rJ(0,X-3):""));case "E":return C=w.getDay(),X>=4?e.JSC$11572_dateTimeSymbols_.WEEKDAYS[C]:e.JSC$11572_dateTimeSymbols_.SHORTWEEKDAYS[C];case "a":return xKT(e,K);case "b":return xKT(e,K);case "B":return xKT(e,
K);case "h":return mh(K),Q3(e,_.rJ(lL(K)%12||12,X));case "K":return mh(K),Q3(e,_.rJ(lL(K)%12,X));case "H":return mh(K),Q3(e,_.rJ(lL(K),X));case "c":a:switch(C=w.getDay(),X){case 5:X=e.JSC$11572_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[C];break a;case 4:X=e.JSC$11572_dateTimeSymbols_.STANDALONEWEEKDAYS[C];break a;case 3:X=e.JSC$11572_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[C];break a;default:X=Q3(e,_.rJ(C,1))}return X;case "L":a:switch(C=w.getMonth(),X){case 5:X=e.JSC$11572_dateTimeSymbols_.STANDALONENARROWMONTHS[C];
break a;case 4:X=e.JSC$11572_dateTimeSymbols_.STANDALONEMONTHS[C];break a;case 3:X=e.JSC$11572_dateTimeSymbols_.STANDALONESHORTMONTHS[C];break a;default:X=Q3(e,_.rJ(C+1,X))}return X;case "Q":return C=Math.floor(w.getMonth()/3),X<4?e.JSC$11572_dateTimeSymbols_.SHORTQUARTERS[C]:e.JSC$11572_dateTimeSymbols_.QUARTERS[C];case "d":return Q3(e,_.rJ(w.getDate(),X));case "m":return mh(K),Q3(e,_.rJ(K.getMinutes?K.getMinutes():0,X));case "s":return mh(K),Q3(e,_.rJ(K.getSeconds(),X));case "v":return(G||y2(C.getTimezoneOffset())).timeZoneId_;
case "V":return e=G||y2(C.getTimezoneOffset()),X<=2?e.timeZoneId_:oTa(e,C)>0?e.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?e.tzNamesExt_.DST_GENERIC_LOCATION:e.tzNamesExt_.DST_GENERIC_LOCATION:e.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?e.tzNamesExt_.STD_GENERIC_LOCATION:e.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return C=$TX(K.getFullYear(),K.getMonth(),K.getDate(),e.JSC$11572_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,e.JSC$11572_dateTimeSymbols_.FIRSTDAYOFWEEK),Q3(e,_.rJ(Math.floor(Math.round((C-(new Date((new Date(C)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,X));case "z":return e=G||y2(C.getTimezoneOffset()),X<4?e.tzNames_[oTa(e,C)>0?2:0]:e.tzNames_[oTa(e,C)>0?3:1];case "Z":return z=G||y2(C.getTimezoneOffset()),X<4?(X=-GiC(z,C),e=[X<0?"-":"+"],X=Math.abs(X),e.push(_.rJ(Math.floor(X/60)%100,2),_.rJ(X%60,2)),X=e.join("")):X=Q3(e,KTY(GiC(z,C))),X;default:return""}};var TEL=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,$KL=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,PRg=function(e){this.patternParts_=[];this.JSC$11581_dateTimeSymbols_=Ml;if(typeof e=="number"){e>11&&(e=10);if(e<4)var z=this.JSC$11581_dateTimeSymbols_.DATEFORMATS[e];else e<8?z=this.JSC$11581_dateTimeSymbols_.TIMEFORMATS[e-4]:(z=this.JSC$11581_dateTimeSymbols_.DATETIMEFORMATS[e-8],z=z.replace("{1}",this.JSC$11581_dateTimeSymbols_.DATEFORMATS[e-8]),z=z.replace("{0}",this.JSC$11581_dateTimeSymbols_.TIMEFORMATS[e-
8]));lh6(this,z)}else lh6(this,e)},lh6=function(e,z){for(var C=!1,w="",K=0;K<z.length;K++){var G=z.charAt(K);
if(TEL.test(G))for(w.length>0&&(e.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1}),w=""),e.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});K<z.length-1&&z.charAt(K+1)==" ";)K++;else if(C)G=="'"?K+1<z.length&&z.charAt(K+1)=="'"?(w+="'",K++):C=!1:w+=G;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(G)>=0){w.length>0&&(e.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1}),w="");for(var X=z.charAt(K),J=K+1;J<z.length&&z.charAt(J)==X;)J++;X=J-K;X<=0?J=!1:(J="MydhHmsSDkK".indexOf(G),
J=J>0||J==0&&X<3);e.patternParts_.push({text:G,count:X,abutStart:!1,numeric:J});K+=X-1}else G=="'"?K+1<z.length&&z.charAt(K+1)=="'"?(w+="'",K++):C=!0:w+=G}w.length>0&&e.patternParts_.push({text:w,count:0,abutStart:!1,numeric:!1});z=!1;for(C=0;C<e.patternParts_.length;C++)e.patternParts_[C].numeric?!z&&C+1<e.patternParts_.length&&e.patternParts_[C+1].numeric&&(z=!0,e.patternParts_[C].abutStart=!0):z=!1};
PRg.prototype.parse=function(e,z,C){var w=!1,K=!1;C&&(w=C.predictive||!1,K=C.validate||!1);if(w)for(C=0;C<this.patternParts_.length;C++){var G=this.patternParts_[C];if(G.count>0&&("abBhHkKm".indexOf(G.text.charAt(0))<0||G.count>2||G.abutStart))throw Error("de`"+G.text.charAt(0));}G=new QxC;C=[0];G.dayPeriodIndex=-1;for(var X=0;X<this.patternParts_.length&&!(w&&C[0]>=e.length);X++){if(this.patternParts_[X].count==0){a:{var J=e;var q=C,T=this.patternParts_[X],Q=w;if(T.text.match(TEL)!=null){if(T=q[0],
mKC(J,q),q[0]>T){J=!0;break a}}else{if(J.indexOf(T.text,q[0])==q[0]){q[0]+=T.text.length;J=!0;break a}if(Q&&T.text.indexOf(J.substring(q[0]))==0){q[0]+=J.length-q[0];J=!0;break a}}J=!1}if(J)continue;return 0}if(this.patternParts_[X].abutStart){a:{q=e;T=C;Q=X;var m=T[0],a=0;for(J=Q;J<this.patternParts_.length;J++){var n=this.patternParts_[J],H=n.count;if(H===0)break;if(J==Q&&(H-=a,a++,H==0)){J=0;break a}var I=J>Q&&n.numeric,L=T[0];if(!ahL(this,q,T,n,H,G,!1)||I&&T[0]-L<H)J=Q-1,T[0]=m}J-=Q}if(J<=0)return 0;
X+=J-1}else if(!ahL(this,e,C,this.patternParts_[X],0,G,w))return 0}a:{e=K;if(z==null)throw Error("ee");G.era!=void 0&&G.year!=void 0&&G.era==0&&G.year>0&&(G.year=-(G.year-1));G.year!=void 0&&z.setFullYear(G.year);w=z.getDate();z.setDate(1);G.month!=void 0&&z.setMonth(G.month);G.day!=void 0?z.setDate(G.day):(K=w8m(z.getFullYear(),z.getMonth()),z.setDate(w>K?K:w));typeof z.setHours==="function"&&(G.hours==void 0&&(G.hours=z.getHours()),G.hours<12&&(G.ampm!=void 0&&G.ampm>0?G.hours+=12:G.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(G.dayPeriodName)||["night1","night2"].includes(G.dayPeriodName)&&G.hours>=6)&&(G.hours+=12)),z.setHours(G.hours));typeof z.setMinutes==="function"&&G.minutes!=void 0&&z.setMinutes(G.minutes);typeof z.setSeconds==="function"&&G.seconds!=void 0&&z.setSeconds(G.seconds);typeof z.setMilliseconds==="function"&&G.milliseconds!=void 0&&z.setMilliseconds(G.milliseconds);if(e&&(G.year&&G.year!=z.getFullYear()||G.month&&G.month!=
z.getMonth()||G.day&&G.day!=z.getDate()||G.hours&&G.hours>=24||G.minutes&&G.minutes>=60||G.seconds&&G.seconds>=60||G.milliseconds&&G.milliseconds>=1E3))z=!1;else{G.tzOffset!=void 0&&z.setTime(z.getTime()+(G.tzOffset-z.getTimezoneOffset())*60*1E3);G.ambiguousYear&&(e=new Date,e.setFullYear(e.getFullYear()-80),z.getTime()<e.getTime()&&z.setFullYear(e.getFullYear()+100));if(G.dayOfWeek!=void 0)if(G.day==void 0)G=(7+G.dayOfWeek-z.getDay())%7,G>3&&(G-=7),e=z.getMonth(),z.setDate(z.getDate()+G),z.getMonth()!=
e&&z.setDate(z.getDate()+(G>0?-7:7));else if(G.dayOfWeek!=z.getDay()){z=!1;break a}z=!0}}return z?C[0]:0};
var ahL=function(e,z,C,w,K,G,X){mKC(z,C);if(w.numeric&&K>0&&C[0]+K>z.length)return!1;switch(w.text.charAt(0)){case "G":return ar(z,C,[e.JSC$11581_dateTimeSymbols_.ERAS],function(J){return G.era=J}),!0;
case "M":case "L":return nTU(e,z,C,K,w,G);case "E":return ar(z,C,[e.JSC$11581_dateTimeSymbols_.WEEKDAYS,e.JSC$11581_dateTimeSymbols_.SHORTWEEKDAYS],function(J){return G.dayOfWeek=J});
case "B":case "b":return K=[],e=[[].concat(e.JSC$11581_dateTimeSymbols_.AMPMS)],K.push("isAm"),K.push("isPm"),z=ar(z,C,e,function(J){return G.dayPeriodIndex=J},X),G.dayPeriodName=K[G.dayPeriodIndex],X?z:!0;
case "a":return z=ar(z,C,[e.JSC$11581_dateTimeSymbols_.AMPMS],function(J){return G.ampm=J},X),X?z:!0;
case "y":return M3o(e,z,C,w,K,G);case "Q":return ar(z,C,[e.JSC$11581_dateTimeSymbols_.QUARTERS,e.JSC$11581_dateTimeSymbols_.SHORTQUARTERS],function(J){G.month=J*3;G.day=1});
case "d":return nr(e,z,C,w,K,function(J){G.day=J}),!0;
case "S":return rmC(e,z,C,K,G);case "h":case "K":case "H":case "k":return z=nr(e,z,C,w,K,function(J){G.hours=w.text.charAt(0)==="h"&&J===12?0:J},X),X?z:!0;
case "m":return z=nr(e,z,C,w,K,function(J){G.minutes=J},X),X?z:!0;
case "s":return nr(e,z,C,w,K,function(J){G.seconds=J}),!0;
case "z":case "Z":case "v":return H7a(e,z,C,G);default:return!1}},M3o=function(e,z,C,w,K,G){var X=C[0];
K=MV(e,z,C,K);K===null&&(K=MV(e,z,C,0,!0));if(K===null)return!1;K>=0&&C[0]-X==2&&w.count==2?(e=K,z=(new Date).getFullYear()-80,C=z%100,G.ambiguousYear=e==C,e+=Math.floor(z/100)*100+(e<C?100:0),G.year=e):G.year=K;return!0},nTU=function(e,z,C,w,K,G){return K.numeric&&nr(e,z,C,K,w,function(X){G.month=X-1})?!0:ar(z,C,[e.JSC$11581_dateTimeSymbols_.MONTHS,
e.JSC$11581_dateTimeSymbols_.STANDALONEMONTHS,e.JSC$11581_dateTimeSymbols_.SHORTMONTHS,e.JSC$11581_dateTimeSymbols_.STANDALONESHORTMONTHS],function(X){G.month=X})},rmC=function(e,z,C,w,K){var G=C[0];
e=MV(e,z,C,w);if(e===null)return!1;C=C[0]-G;K.milliseconds=C<3?e*Math.pow(10,3-C):Math.round(e/Math.pow(10,C-3));return!0},H7a=function(e,z,C,w){z.indexOf("GMT",C[0])==C[0]&&(C[0]+=3);
if(C[0]>=z.length)return w.tzOffset=0,!0;var K=C[0],G=MV(e,z,C,0,!0);if(G===null)return!1;if(C[0]<z.length&&z.charAt(C[0])==":"){var X=G*60;C[0]++;G=MV(e,z,C,0);if(G===null)return!1;X+=G}else X=G,X=X<24&&C[0]-K<=3?X*60:X%100+X/100*60;w.tzOffset=-X;return!0},nr=function(e,z,C,w,K,G,X){X=X||!1;
var J=C[0];e=MV(e,z,C,K);if(e===null)return!1;if(X&&C[0]-J<w.count){if(C[0]<z.length)return!1;e*=Math.pow(10,w.count-(C[0]-J))}G(e);return!0},ar=function(e,z,C,w,K){K=K||!1;
for(var G,X=0;X<C.length;X++){G=z;for(var J=C[X],q=K,T=0,Q=null,m=e.substring(G[0]).toLowerCase(),a=0;a<J.length;a++){var n=J[a].toLowerCase();if(q&&n.indexOf(m)==0){T=m.length;Q=a;break}J[a].length>T&&m.indexOf(n)==0&&(T=J[a].length,Q=a)}Q!==null&&(G[0]+=T);G=Q;if(G!==null)return w(G),!0}return!1},mKC=function(e,z){(e=e.substring(z[0]).match($KL))&&(z[0]+=e[0].length)},MV=function(e,z,C,w,K){z=w>0?z.substring(0,C[0]+w):z;
K=K||!1;if(e.JSC$11581_dateTimeSymbols_.ZERODIGIT){w=[];for(var G=C[0];G<z.length;G++){var X=z.charCodeAt(G)-e.JSC$11581_dateTimeSymbols_.ZERODIGIT;w.push(0<=X&&X<=9?String.fromCharCode(X+48):z.charAt(G))}z=w.join("")}else z=z.substring(C[0]);e=z.match(new RegExp("^"+(K?"[+-]?":"")+"\\d+"));if(!e)return null;C[0]+=e[0].length;return parseInt(e[0],10)},QxC=function(){};
QxC.prototype.ambiguousYear=!1;var UKo;
UKo={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 vTa={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}"]};
vTa={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 Ihc=function(){var e={type:"unit",style:"narrow"};this.listType_=e&&e.type?e.type:"conjunction";this.listStyle_=e&&e.style?e.style:"long";this.listSymbols_=vTa;e=0;switch(this.listStyle_){case "short":e=1;break;case "narrow":e=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[e];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[e];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[e];this.listEndPattern_=
this.listSymbols_.AND_END[e];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[e];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[e];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[e];this.listEndPattern_=this.listSymbols_.OR_END[e];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[e],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[e],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[e],this.listEndPattern_=this.listSymbols_.UNIT_END[e]}};
Ihc.prototype.format=function(e){return WTs(this,e)};
var WTs=function(e,z){var C=z.length;switch(C){case 0:return"";case 1:return String(z[0]);case 2:return e.listTwoPattern_.replace("{0}",String(z[0])).replace("{1}",String(z[1]))}for(var w=e.listStartPattern_.replace("{0}",String(z[0])).replace("{1}",String(z[1])),K=2;K<C-1;++K)w=e.listMiddlePattern_.replace("{0}",w).replace("{1}",String(z[K]));return e.listEndPattern_.replace("{0}",w).replace("{1}",String(z[C-1]))};var P3T={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"},RhC=P3T,LTX=P3T;LTX=RhC=P3T;var O7T,rD,Ur,kwE,Hv,hhX;
_.tO=function(e,z,C,w){var K;if(K=z){a:if(z&&z.length===3){for(K=0;K<3;K++){var G=z[K];if(G<"A"||G>"Z"&&G<"a"||G>"z"){K=!1;break a}}K=!0}else K=!1;K=!K}if(K)throw new TypeError("fe");this.intlCurrencyCode_=z?z.toUpperCase():null;this.currencyStyle_=C||0;this.overrideNumberFormatSymbols_=w||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_=rD(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof e==="number")switch(e){case 1:Hv(this,rD(this).DECIMAL_PATTERN);break;case 2:Hv(this,rD(this).SCIENTIFIC_PATTERN);break;case 3:Hv(this,rD(this).PERCENT_PATTERN);break;case 4:e=rD(this).CURRENCY_PATTERN;z=["0"];if(C=
$K[Ur(this)]){C=C[0]&7;if(C>0)for(z.push("."),w=0;w<C;w++)z.push("0");e=e.replace(/0.00/g,z.join(""))}Hv(this,e);break;case 5:hhX(this,1);break;case 6:hhX(this,2);break;default:throw Error("ie");}else Hv(this,e)};
O7T=!1;rD=function(e){return e.overrideNumberFormatSymbols_||(O7T?LTX:RhC)};
Ur=function(e){return e.intlCurrencyCode_||rD(e).DEF_CURRENCY_CODE};
kwE=function(e,z){if(z>308)throw Error("he`"+z);e.maximumFractionDigits_=z;return e};
Hv=function(e,z){var C=[0];e.positivePrefix_=ETa(e,z,C);for(var w=C[0],K=-1,G=0,X=0,J=0,q=-1,T=z.length,Q=!0;C[0]<T&&Q;C[0]++)switch(z.charAt(C[0])){case "#":X>0?J++:G++;q>=0&&K<0&&q++;break;case "0":if(J>0)throw Error("oe`"+z);X++;q>=0&&K<0&&q++;break;case ",":q>0&&e.groupingArray_.push(q);q=0;break;case ".":if(K>=0)throw Error("pe`"+z);K=G+X+J;break;case "E":if(e.useExponentialNotation_)throw Error("qe`"+z);e.useExponentialNotation_=!0;e.minExponentDigits_=0;C[0]+1<T&&z.charAt(C[0]+1)=="+"&&(C[0]++,
e.useSignForPositiveExponent_=!0);for(;C[0]+1<T&&z.charAt(C[0]+1)=="0";)C[0]++,e.minExponentDigits_++;if(G+X<1||e.minExponentDigits_<1)throw Error("re`"+z);Q=!1;break;default:C[0]--,Q=!1}X==0&&G>0&&K>=0&&(X=K,X==0&&X++,J=G-X,G=X-1,X=1);if(K<0&&J>0||K>=0&&(K<G||K>G+X)||q==0)throw Error("se`"+z);J=G+X+J;e.maximumFractionDigits_=K>=0?J-K:0;K>=0&&(e.minimumFractionDigits_=G+X-K,e.minimumFractionDigits_<0&&(e.minimumFractionDigits_=0));e.minimumIntegerDigits_=(K>=0?K:J)-G;e.useExponentialNotation_&&(e.maximumIntegerDigits_=
G+e.minimumIntegerDigits_,e.maximumFractionDigits_==0&&e.minimumIntegerDigits_==0&&(e.minimumIntegerDigits_=1));e.groupingArray_.push(Math.max(0,q));e.decimalSeparatorAlwaysShown_=K==0||K==J;w=C[0]-w;e.positiveSuffix_=ETa(e,z,C);C[0]<z.length&&z.charAt(C[0])==";"?(C[0]++,e.multiplier_!=1&&(e.negativePercentSignExpected_=!0),e.negativePrefix_=ETa(e,z,C),C[0]+=w,e.negativeSuffix_=ETa(e,z,C)):(e.negativePrefix_+=e.positivePrefix_,e.negativeSuffix_+=e.positiveSuffix_)};
hhX=function(e,z){e.compactStyle_=z;Hv(e,rD(e).DECIMAL_PATTERN);e.minimumFractionDigits_=0;kwE(e,2);if(e.minimumFractionDigits_>0)throw Error("ge");e.significantDigits_=2};
_.tO.prototype.parse=function(e,z){z=z||[0];if(this.compactStyle_!==0)throw Error("je");e=e.replace(/ |\u202f/g,"\u00a0");var C=e.indexOf(this.positivePrefix_,z[0])==z[0],w=e.indexOf(this.negativePrefix_,z[0])==z[0];C&&w&&(this.positivePrefix_.length>this.negativePrefix_.length?w=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(C=!1));C?z[0]+=this.positivePrefix_.length:w&&(z[0]+=this.negativePrefix_.length);if(e.indexOf(rD(this).INFINITY,z[0])==z[0]){z[0]+=rD(this).INFINITY.length;var K=
Infinity}else{K=e;var G=!1,X=!1,J=!1,q=-1,T=1,Q=rD(this).DECIMAL_SEP,m=rD(this).GROUP_SEP,a=rD(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");m=m.replace(/\u202f/g,"\u00a0");for(var n="";z[0]<K.length;z[0]++){var H=K.charAt(z[0]),I=FTg(this,H);if(I>=0&&I<=9)n+=I,J=!0;else if(H==Q.charAt(0)){if(G||X)break;n+=".";G=!0}else if(H==m.charAt(0)&&("\u00a0"!=m.charAt(0)||z[0]+1<K.length&&FTg(this,K.charAt(z[0]+1))>=0)){if(G||X)break}else if(H==a.charAt(0)){if(X)break;n+="E";X=!0;q=z[0]}else if(H==
"+"||H=="-"){if(J&&q!=z[0]-1)break;n+=H}else if(this.multiplier_==1&&H==rD(this).PERCENT.charAt(0)){if(T!=1)break;T=100;if(J){z[0]++;break}}else if(this.multiplier_==1&&H==rD(this).PERMILL.charAt(0)){if(T!=1)break;T=1E3;if(J){z[0]++;break}}else break}this.multiplier_!=1&&(T=this.multiplier_);K=parseFloat(n)/T}if(C){if(e.indexOf(this.positiveSuffix_,z[0])!=z[0])return NaN;z[0]+=this.positiveSuffix_.length}else if(w){if(e.indexOf(this.negativeSuffix_,z[0])!=z[0])return NaN;z[0]+=this.negativeSuffix_.length}return w?
-K:K};
_.tO.prototype.format=function(e){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(e))return rD(this).NAN;var z=[];var C=e;if(this.compactStyle_==0)C=vv;else{C=Math.abs(C);var w=V3a(this,C<=1?0:fha(C)).divisorBase;C=V3a(this,w+fha(SzC(this,Ir(C,-w)).intValue))}e=Ir(e,-C.divisorBase);(w=e<0||e==0&&1/e<0)?C.negative_prefix?z.push(C.negative_prefix):(z.push(C.prefix),z.push(this.negativePrefix_)):(z.push(C.prefix),z.push(this.positivePrefix_));if(isFinite(e))if(e*=
w?-1:1,e*=this.multiplier_,this.useExponentialNotation_){var K=e;if(K==0)uR6(this,K,this.minimumIntegerDigits_,z),dKX(this,0,z);else{var G=Math.floor(Math.log(K)/Math.log(10)+2E-15);K=Ir(K,-G);var X=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(X=G%this.maximumIntegerDigits_,X<0&&(X=this.maximumIntegerDigits_+X),K=Ir(K,X),G-=X,X=1):this.minimumIntegerDigits_<1?(G++,K=Ir(K,-1)):(G-=this.minimumIntegerDigits_-1,K=Ir(K,this.minimumIntegerDigits_-
1));uR6(this,K,X,z);dKX(this,G,z)}}else uR6(this,e,this.minimumIntegerDigits_,z);else z.push(rD(this).INFINITY);w?C.negative_suffix?z.push(C.negative_suffix):(isFinite(e)&&z.push(C.suffix),z.push(this.negativeSuffix_)):(isFinite(e)&&z.push(C.suffix),z.push(this.positiveSuffix_));return z.join("")};
var SzC=function(e,z){var C=Ir(z,e.maximumFractionDigits_);e.significantDigits_>0&&(C=DKa(C,e.significantDigits_,e.maximumFractionDigits_));C=Math.round(C);if(isFinite(C)){var w=Math.floor(Ir(C,-e.maximumFractionDigits_));C=Math.floor(C-Ir(w,e.maximumFractionDigits_));if(C<0||C>=Ir(1,e.maximumFractionDigits_))w=Math.round(z),C=0}else w=z,C=0;return{intValue:w,fracValue:C}},uR6=function(e,z,C,w){if(e.minimumFractionDigits_>e.maximumFractionDigits_)throw Error("le");
w||(w=[]);z=SzC(e,z);var K=z.intValue,G=z.fracValue,X=e.minimumFractionDigits_>0||G>0||!1;z=e.minimumFractionDigits_;X&&(z=e.minimumFractionDigits_);for(var J="",q=K;q>1E20;)J="0"+J,q=Math.round(Ir(q,-1));J=q+J;var T=rD(e).DECIMAL_SEP;q=rD(e).ZERO_DIGIT.codePointAt(0);var Q=J.length,m=0;if(K>0||C>0){for(K=Q;K<C;K++)w.push(String.fromCodePoint(q));if(e.groupingArray_.length>=2)for(C=1;C<e.groupingArray_.length;C++)m+=e.groupingArray_[C];C=Q-m;if(C>0){K=e.groupingArray_;m=Q=0;for(var a,n=rD(e).GROUP_SEP,
H=J.length,I=0;I<H;I++)if(w.push(String.fromCodePoint(q+Number(J.charAt(I)))),H-I>1)if(a=K[m],I<C){var L=C-I;(a===1||a>0&&L%a===1)&&w.push(n)}else m<K.length&&(I===C?m+=1:a===I-C-Q+1&&(w.push(n),Q+=a,m+=1))}else{C=J;J=e.groupingArray_;K=rD(e).GROUP_SEP;a=C.length;n=[];for(Q=J.length-1;Q>=0&&a>0;Q--){m=J[Q];for(H=0;H<m&&a-H-1>=0;H++)n.push(String.fromCodePoint(q+Number(C.charAt(a-H-1))));a-=m;a>0&&n.push(K)}w.push.apply(w,n.reverse())}}else X||w.push(String.fromCodePoint(q));(e.decimalSeparatorAlwaysShown_||
X)&&w.push(T);G=String(G);X=G.split("e+");X.length==2&&(G=String(DKa(parseFloat(X[0]),e.significantDigits_,1)),G=G.replace(".",""),G+=(0,_.lGU)("0",parseInt(X[1],10)-G.length+1));e.maximumFractionDigits_+1>G.length&&(G="1"+(0,_.lGU)("0",e.maximumFractionDigits_-G.length)+G);for(e=G.length;G.charAt(e-1)=="0"&&e>z+1;)e--;for(z=1;z<e;z++)w.push(String.fromCodePoint(q+Number(G.charAt(z))))},dKX=function(e,z,C){C.push(rD(e).EXP_SYMBOL);
z<0?(z=-z,C.push(rD(e).MINUS_SIGN)):e.useSignForPositiveExponent_&&C.push(rD(e).PLUS_SIGN);z=""+z;for(var w=rD(e).ZERO_DIGIT,K=z.length;K<e.minExponentDigits_;K++)C.push(w);e=w.codePointAt(0)-i7h;for(w=0;w<z.length;w++)C.push(String.fromCodePoint(e+z.codePointAt(w)))},FTg=function(e,z){z=z.codePointAt(0);
if(48<=z&&z<58)return z-48;e=rD(e).ZERO_DIGIT.codePointAt(0);return e<=z&&z<e+10?z-e:-1},i7h="0".codePointAt(0),ETa=function(e,z,C){for(var w="",K=!1,G=z.length;C[0]<G;C[0]++){var X=z.charAt(C[0]);
if(X=="'")C[0]+1<G&&z.charAt(C[0]+1)=="'"?(C[0]++,w+="'"):K=!K;else if(K)w+=X;else switch(X){case "#":case "0":case ",":case ".":case ";":return w;case "\u00a4":if(C[0]+1<G&&z.charAt(C[0]+1)=="\u00a4")C[0]++,w+=Ur(e);else switch(e.currencyStyle_){case 0:X=Ur(e);w+=X in $K?$K[X][1]:X;break;case 2:X=Ur(e);var J=$K[X];w+=J?X==J[1]?X:X+" "+J[1]:X;break;case 1:X=Ur(e),w+=X in $K?$K[X][2]:X}break;case "%":if(!e.negativePercentSignExpected_&&e.multiplier_!=1)throw Error("me");if(e.negativePercentSignExpected_&&
e.multiplier_!=100)throw Error("ne");e.multiplier_=100;e.negativePercentSignExpected_=!1;w+=rD(e).PERCENT;break;case "\u2030":if(!e.negativePercentSignExpected_&&e.multiplier_!=1)throw Error("me");if(e.negativePercentSignExpected_&&e.multiplier_!=1E3)throw Error("ne");e.multiplier_=1E3;e.negativePercentSignExpected_=!1;w+=rD(e).PERMILL;break;default:w+=X}}return w},vv={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},V3a=function(e,z){e=e.compactStyle_==1?Ts.COMPACT_DECIMAL_SHORT_PATTERN:Ts.COMPACT_DECIMAL_LONG_PATTERN;e==null&&(e=Ts.COMPACT_DECIMAL_SHORT_PATTERN);if(z<3)return vv;z=Math.min(14,z);var C=e[Ir(1,z)];for(--z;!C&&z>=3;)C=e[Ir(1,z)],z--;if(!C)return vv;C=C.other;var w=e="",K=C.indexOf(";");K>=0&&(C=C.substring(0,K),K=C.substring(K+1))&&(w=/([^0]*)(0+)(.*)/.exec(K),e=w[1],w=w[3]);return C&&C!="0"?(C=/([^0]*)(0+)(.*)/.exec(C))?{divisorBase:z+
1-(C[2].length-1),negative_prefix:e,negative_suffix:w,prefix:C[1],suffix:C[3]}:vv:vv},fha=function(e){if(!isFinite(e))return e>0?e:0;
for(var z=0;(e/=10)>=1;)z++;return z},Ir=function(e,z){if(!e||!isFinite(e)||z==0)return e;
e=String(e).split("e");return parseFloat(e[0]+"e"+(parseInt(e[1]||0,10)+z))},NE6=function(e,z){return e&&isFinite(e)?Ir(Math.round(Ir(e,z)),-z):e},DKa=function(e,z,C){if(!e)return e;
z=z-fha(e)-1;return z<-C?NE6(e,-C):NE6(e,z)};var sx6=function(e){return e%10==1&&e%100!=11?"one":e%10==2&&e%100!=12?"two":e%10==3&&e%100!=13?"few":"other"},BEX=sx6;
BEX=sx6;var t3h=function(e,z){var C=e|0;if(void 0===z){z=Math;var w=z.min,K=e+"",G=K.indexOf(".");z=w.call(z,G===-1?0:K.length-G-1,3)}w=Math.pow(10,z);e={v:z,f:(e*w|0)%w};return C==1&&e.v==0?"one":"other"},BH=t3h;
BH=t3h;var cmX=function(e){this.JSC$11624_pattern_=e;this.parsedPattern_=this.literals_=this.initialLiterals_=null;e=RhC;var z=Ts;if(gTh!==e||jxc!==z)gTh=e,jxc=z,ymY=new _.tO(1);this.numberFormatter_=ymY},gTh=null,jxc=null,ymY=null,Amg=RegExp("'([{}#].*?)'","g"),Z7S=RegExp("''","g");
cmX.prototype.format=function(e){if(this.JSC$11624_pattern_){this.initialLiterals_=[];var z=pF4(this,this.JSC$11624_pattern_);this.parsedPattern_=ePY(this,z);this.JSC$11624_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.ig(this.initialLiterals_),z=[],zPS(this,this.parsedPattern_,e,!1,z),e=z.join("");this.literals_.length>0;)e=e.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else e="";return e};
var zPS=function(e,z,C,w,K){for(var G=0;G<z.length;G++)switch(z[G].type){case 4:K.push(z[G].value);break;case 3:var X=z[G].value;var J=e,q=K,T=C[X];T===void 0?q.push("Undefined parameter - "+X):(J.literals_.push(T),q.push(J.buildPlaceholder_(J.literals_)));break;case 2:X=z[G].value;J=e;q=C;T=w;var Q=K,m=X.argumentIndex;q[m]===void 0?Q.push("Undefined parameter - "+m):(m=X[q[m]],m===void 0&&(m=X.other),zPS(J,m,q,T,Q));break;case 0:X=z[G].value;CnY(e,X,C,BH,w,K);break;case 1:X=z[G].value,CnY(e,X,C,
BEX,w,K)}},CnY=function(e,z,C,w,K,G){var X=z.argumentIndex,J=z.argumentOffset,q=+C[X];
isNaN(q)?G.push("Undefined or invalid parameter - "+X):(J=q-J,X=z[C[X]],X===void 0&&(w=w(Math.abs(J)),X=z[w],X===void 0&&(X=z.other)),z=[],zPS(e,X,C,K,z),C=z.join(""),K?G.push(C):(e=e.numberFormatter_.format(J),G.push(C.replace(/#/g,e))))},pF4=function(e,z){var C=e.initialLiterals_,w=e.buildPlaceholder_.bind(e);
z=z.replace(Z7S,function(){C.push("'");return w(C)});
return z=z.replace(Amg,function(K,G){C.push(G);return w(C)})},w0X=function(e){var z=0,C=[],w=[],K=/[{}]/g;
K.lastIndex=0;for(var G;G=K.exec(e);){var X=G.index;G[0]=="}"?(C.pop(),C.length==0&&(G={type:1},G.value=e.substring(z,X),w.push(G),z=X+1)):(C.length==0&&(z=e.substring(z,X),z!=""&&w.push({type:0,value:z}),z=X+1),C.push("{"))}e=e.substring(z);e!=""&&w.push({type:0,value:e});return w},K8U=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,os4=/^\s*(\w+)\s*,\s*selectordinal\s*,/,GVY=/^\s*(\w+)\s*,\s*select\s*,/,ePY=function(e,z){var C=[];
z=w0X(z);for(var w=0;w<z.length;w++){var K={};if(0==z[w].type)K.type=4,K.value=z[w].value;else if(1==z[w].type){var G=z[w].value;switch(K8U.test(G)?0:os4.test(G)?1:GVY.test(G)?2:/^\s*\w+\s*/.test(G)?3:5){case 2:K.type=2;K.value=YAT(e,z[w].value);break;case 0:K.type=0;K.value=bsg(e,z[w].value);break;case 1:K.type=1;K.value=X0g(e,z[w].value);break;case 3:K.type=3,K.value=z[w].value}}C.push(K)}return C},YAT=function(e,z){var C="";
z=z.replace(GVY,function(J,q){C=q;return""});
var w={};w.argumentIndex=C;z=w0X(z);for(var K=0;K<z.length;){var G=z[K].value;K++;var X=void 0;1==z[K].type&&(X=ePY(e,z[K].value));w[G.replace(/\s/g,"")]=X;K++}return w},bsg=function(e,z){var C="",w=0;
z=z.replace(K8U,function(q,T,Q){C=T;Q&&(w=parseInt(Q,10));return""});
var K={};K.argumentIndex=C;K.argumentOffset=w;z=w0X(z);for(var G=0;G<z.length;){var X=z[G].value;G++;var J=void 0;1==z[G].type&&(J=ePY(e,z[G].value));K[X.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=J;G++}return K},X0g=function(e,z){var C="";
z=z.replace(os4,function(J,q){C=q;return""});
var w={};w.argumentIndex=C;w.argumentOffset=0;z=w0X(z);for(var K=0;K<z.length;){var G=z[K].value;K++;var X=void 0;1==z[K].type&&(X=ePY(e,z[K].value));w[G.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=X;K++}return w};
cmX.prototype.buildPlaceholder_=function(e){return"\ufddf_"+(e.length-1).toString(10)+"_"};var TyE=function(){var e={style:1},z=JS6;this.style_=(e==null?void 0:e.style)||0;this.durationSymbols_=z||UKo},kVs=function(e,z){switch(z){default:case "years":return e.durationSymbols_.YEAR;
case "months":return e.durationSymbols_.MONTH;case "weeks":return e.durationSymbols_.WEEK;case "days":return e.durationSymbols_.DAY;case "hours":return e.durationSymbols_.HOUR;case "minutes":return e.durationSymbols_.MINUTE;case "seconds":return e.durationSymbols_.SECOND}},Wv=function(e,z,C){a:{C=kVs(e,C);
switch(e.style_){case 1:if(C.LONG!=void 0){e=C.LONG;break a}case 2:if(C.NARROW!=void 0){e=C.NARROW;break a}default:e=C.SHORT;break a}e=void 0}return e?(new cmX("{DURATION_VALUE,plural,"+e+"}")).format({DURATION_VALUE:z}):""};
TyE.prototype.format=function(e){var z=[],C=e.years,w=e.months,K=e.weeks,G=e.days,X=e.hours,J=e.minutes;e=e.seconds;C!=null&&z.push(Wv(this,C,"years"));w!=null&&z.push(Wv(this,w,"months"));K!=null&&z.push(Wv(this,K,"weeks"));G!=null&&z.push(Wv(this,G,"days"));X!=null&&z.push(Wv(this,X,"hours"));J!=null&&z.push(Wv(this,J,"minutes"));e!=null&&z.push(Wv(this,e,"seconds"));return(new Ihc).format(z)};var qAg;
qAg={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 RJm=function(){this.rdtfSymbols_=xlC||qAg;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
RJm.prototype.format=function(e,z){a:{z=T$X(this,z);switch(this.style_){case 2:if(z.NARROW!=void 0){z=z.NARROW;break a}case 1:if(z.SHORT!=void 0){z=z.SHORT;break a}default:z=z.LONG;break a}z=void 0}if(!this.alwaysNumeric_&&z&&z.R&&z.R[""+e])e=z.R[""+e];else if(z){var C=Math.abs(e);e=(new cmX("{N,plural,"+(e>0||e==0&&1/e==Infinity?z.F:z.P)+"}")).format({N:C})}else e="";return e};
var T$X=function(e,z){switch(z){default:case 0:return e.rdtfSymbols_.YEAR;case 1:return e.rdtfSymbols_.QUARTER;case 2:return e.rdtfSymbols_.MONTH;case 3:return e.rdtfSymbols_.WEEK;case 4:return e.rdtfSymbols_.DAY;case 5:return e.rdtfSymbols_.HOUR;case 6:return e.rdtfSymbols_.MINUTE;case 7:return e.rdtfSymbols_.SECOND}};var $la=function(e,z,C,w,K,G,X,J){this.x0=e;this.y0=z;this.x1=C;this.y1=w;this.x2=K;this.y2=G;this.x3=X;this.y3=J};
$la.prototype.clone=function(){return new $la(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
$la.prototype.equals=function(e){return this.x0==e.x0&&this.y0==e.y0&&this.x1==e.x1&&this.y1==e.y1&&this.x2==e.x2&&this.y2==e.y2&&this.x3==e.x3&&this.y3==e.y3};
var lWg=function(e,z){if(z==0)return e.x0;if(z==1)return e.x3;var C=iS(e.x0,e.x1,z),w=iS(e.x1,e.x2,z);e=iS(e.x2,e.x3,z);C=iS(C,w,z);w=iS(w,e,z);return iS(C,w,z)},QeY=function(e,z){var C=(z-e.x0)/(e.x3-e.x0);
if(C<=0)return 0;if(C>=1)return 1;for(var w=0,K=1,G=0,X=0;X<8;X++){G=lWg(e,C);var J=(lWg(e,C+1E-6)-G)/1E-6;if(Math.abs(G-z)<1E-6)return C;if(Math.abs(J)<1E-6)break;else G<z?w=C:K=C,C-=(G-z)/J}for(X=0;Math.abs(G-z)>1E-6&&X<8;X++)G<z?(w=C,C=(C+K)/2):(K=C,C=(C+w)/2),G=lWg(e,C);return C};var Pv=function(){_.N3.call(this);this.JSC$11645_name_="closure_frame"+mlY++;this.iframesForDisposal_=[];aW6[this.JSC$11645_name_]=this},Rr;
_.Tk(Pv,_.N3);var aW6={},mlY=0,nsX=function(e,z){var C=Ot(e);rXh(z,function(w,K){Array.isArray(w)||(w=[w]);_.oX(w,function(G){G=C.JSC$9497_createDom("INPUT",{type:"hidden",name:K,value:G});e.appendChild(G)})})};
_.Y=Pv.prototype;_.Y.JSC$11647_form_=null;_.Y.JSC$11647_iframe_=null;_.Y.iframeName_=null;_.Y.nextIframeId_=0;_.Y.JSC$11647_active_=!1;_.Y.complete_=!1;_.Y.success_=!1;_.Y.lastContent_=null;_.Y.JSC$11647_lastErrorCode_=0;_.Y.iframeDisposalTimer_=null;
_.Y.send=function(e,z,C,w){if(this.JSC$11647_active_)throw Error("te");e=new _.sX(e);z=z?z.toUpperCase():"GET";C&&_.RK(e);Rr||(Rr=_.tL("FORM"),Rr.acceptCharset="utf-8",C=Rr.style,C.position="absolute",C.visibility="hidden",C.top=C.left="-10px",C.width=C.height="10px",C.overflow="hidden",document.body.appendChild(Rr));this.JSC$11647_form_=Rr;z=="GET"&&nsX(this.JSC$11647_form_,e.JSC$10201_queryData_);w&&nsX(this.JSC$11647_form_,w);C=e.toString();C=cJ1(C);w=this.JSC$11647_form_;C=_.cL(ul(C));C!==void 0&&
(w.action=C);this.JSC$11647_form_.method=z;M4c(this);rSs(this)};
_.Y.abort=function(e){if(this.JSC$11647_active_){var z=Lr(this);if(z)if(dB(z))z.removeAllListeners(void 0);else if(z=DA(z)){var C=0,w;for(w in z.listeners)for(var K=z.listeners[w].concat(),G=0;G<K.length;++G)Um(K[G])&&++C}this.success_=this.JSC$11647_active_=this.complete_=!1;this.JSC$11647_lastErrorCode_=e||7;this.dispatchEvent("abort");Hss(this)}};
_.Y.disposeInternal=function(){this.JSC$11647_active_&&this.abort();Pv.superClass_.disposeInternal.call(this);this.JSC$11647_iframe_&&Ulh(this);rSs(this);this.JSC$11647_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11647_form_=null;this.JSC$11647_lastErrorCode_=0;delete aW6[this.JSC$11645_name_]};
_.Y.isComplete=function(){return this.complete_};
_.Y.isSuccess=function(){return this.success_};
_.Y.isActive=function(){return this.JSC$11647_active_};
_.Y.getResponseText=function(){return this.lastContent_};
_.Y.getLastError=function(){return _.ARC(this.JSC$11647_lastErrorCode_)};
var M4c=function(e){e.JSC$11647_active_=!0;e.complete_=!1;e.JSC$11647_lastErrorCode_=0;e.iframeName_=e.JSC$11645_name_+"_"+(e.nextIframeId_++).toString(36);e.JSC$11647_iframe_=Ot(e.JSC$11647_form_).JSC$9497_createDom("IFRAME",{name:e.iframeName_,id:e.iframeName_});var z=e.JSC$11647_iframe_.style;z.visibility="hidden";z.width=z.height="10px";z.display="none";_.MI?z.marginTop=z.marginLeft="-10px":(z.position="absolute",z.top=z.left="-10px");Ot(e.JSC$11647_form_).JSC$9495_document_.body.appendChild(e.JSC$11647_iframe_);
z=e.iframeName_+"_inner";var C=f0C(e.JSC$11647_iframe_);if(document.baseURI){var w=QA(z);w='<head><base href="'+QA(document.baseURI)+'"></head><body><iframe id="'+w+'" name="'+w+'"></iframe>';w=ec(w)}else w=QA(z),w=ec('<body><iframe id="'+w+'" name="'+w+'"></iframe>');C.write(z6(w));_.W9(C.getElementById(z),"load",e.onIframeLoaded_,!1,e);w=Ov("TEXTAREA",e.JSC$11647_form_);for(var K=0,G=w.length;K<G;K++){var X=w[K].value;NeL(w[K])!=X&&(_.pV(w[K],X),w[K].value=X)}w=C.importNode(e.JSC$11647_form_,!0);
w.target=z;w.action=e.JSC$11647_form_.action;C.body.appendChild(w);K=Ov("SELECT",e.JSC$11647_form_);G=Ov("SELECT",w);X=0;for(var J=K.length;X<J;X++)for(var q=Ov("OPTION",K[X]),T=Ov("OPTION",G[X]),Q=0,m=q.length;Q<m;Q++)T[Q].selected=q[Q].selected;K=Ov("INPUT",e.JSC$11647_form_);G=Ov("INPUT",w);X=0;for(J=K.length;X<J;X++)if(K[X].type=="file"&&K[X].value!=G[X].value){e.JSC$11647_form_.target=z;w=e.JSC$11647_form_;break}try{e.errorHandled_=!1,w.submit(),C.close(),_.nb&&setTimeout(e.testForFirefoxSilentError_.bind(e),
250)}catch(a){_.ib(C.getElementById(z),"load",e.onIframeLoaded_,!1,e),C.close(),hp(e,2)}};
Pv.prototype.onIframeLoaded_=function(){_.ib(Lr(this),"load",this.onIframeLoaded_,!1,this);try{var e=this.JSC$11647_iframe_?f0C(Lr(this)):null;this.complete_=!0;this.JSC$11647_active_=!1;try{var z=e.body;this.lastContent_=z.textContent||z.innerText}catch(K){var C=1}var w;C||typeof this.errorChecker_!="function"||(w=this.errorChecker_(e))&&(C=4);C?hp(this,C):(this.success_=!0,this.JSC$11647_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Hss(this))}catch(K){hp(this,1)}};
var hp=function(e,z){e.errorHandled_||(e.success_=!1,e.JSC$11647_active_=!1,e.complete_=!0,e.JSC$11647_lastErrorCode_=z,e.dispatchEvent("complete"),e.dispatchEvent("error"),Hss(e),e.errorHandled_=!0)},Hss=function(e){Ulh(e);
rSs(e);e.JSC$11647_form_=null;e.dispatchEvent("ready")},Ulh=function(e){var z=e.JSC$11647_iframe_;
z&&(z.onreadystatechange=null,z.onload=null,z.onerror=null,e.iframesForDisposal_.push(z));e.iframeDisposalTimer_&&(clearTimeout(e.iframeDisposalTimer_),e.iframeDisposalTimer_=null);_.nb?e.iframeDisposalTimer_=setTimeout(e.disposeIframes_.bind(e),2E3):e.disposeIframes_();e.JSC$11647_iframe_=null;e.iframeName_=null};
Pv.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var e=this.iframesForDisposal_.pop();_.hA(e)}};
var rSs=function(e){e.JSC$11647_form_&&e.JSC$11647_form_==Rr&&_.yx(e.JSC$11647_form_)},Lr=function(e){return e.JSC$11647_iframe_?f0C(e.JSC$11647_iframe_).getElementById(e.iframeName_+"_inner"):null};
Pv.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11647_active_){var e=this.JSC$11647_iframe_?f0C(Lr(this)):null;e&&!NeN(e,"documentUri")?(_.ib(Lr(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?hp(this,3):hp(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Or=function(e){return e=="\r"||e=="\n"||e==" "||e=="\t"};var vsa;_.Er=function(e){this.errorMessage_=null;this.result_=[];this.JSC$11649_buffer_="";this.stack_=[];this.JSC$11649_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!e||!e.deliverMessageAsRawString)};
vsa={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};_.Er.prototype.isInputValid=function(){return this.streamState_!=3};
_.Er.prototype.done=function(){return this.streamState_===2};
var FA=function(e,z,C){e.streamState_=3;e.errorMessage_="The stream is broken @"+e.JSC$11649_pos_+"/"+C+". With input:\n"+z;throw Error(e.errorMessage_);};
_.Er.prototype.acceptsBinaryInput=function(){return!1};
_.Er.prototype.parse=function(e){function z(){for(;a<e.length;)if(_.Or(e[a]))a++,G.JSC$11649_pos_++;else break;return a<T}
function C(){for(var H;;){H=e[a++];if(!H)break;G.JSC$11649_pos_++;switch(G.state_){case q.INIT:H==="{"?G.state_=q.OBJECT_OPEN:H==="["?G.state_=q.ARRAY_OPEN:_.Or(H)||FA(G,e,a);continue;case q.KEY_START:case q.OBJECT_OPEN:if(_.Or(H))continue;if(G.state_===q.KEY_START)X.push(q.KEY_END);else if(H==="}"){K("{}");G.state_=w();continue}else X.push(q.OBJECT_END);H==='"'?G.state_=q.STRING:FA(G,e,a);continue;case q.KEY_END:case q.OBJECT_END:if(_.Or(H))continue;H===":"?(G.state_===q.OBJECT_END&&(X.push(q.OBJECT_END),
G.depth_++),G.state_=q.VALUE):H==="}"?(G.depth_--,K(),G.state_=w()):H===","?(G.state_===q.OBJECT_END&&X.push(q.OBJECT_END),G.state_=q.KEY_START):FA(G,e,a);continue;case q.ARRAY_OPEN:case q.VALUE:if(_.Or(H))continue;if(G.state_===q.ARRAY_OPEN)if(G.depth_++,G.state_=q.VALUE,H==="]"){G.depth_--;if(G.depth_===0){G.state_=q.ARRAY_END;return}K("[]");G.state_=w();continue}else X.push(q.ARRAY_END);H==='"'?G.state_=q.STRING:H==="{"?G.state_=q.OBJECT_OPEN:H==="["?G.state_=q.ARRAY_OPEN:H==="t"?G.state_=q.TRUE1:
H==="f"?G.state_=q.FALSE1:H==="n"?G.state_=q.NULL1:H!=="-"&&("0123456789".indexOf(H)!==-1?G.state_=q.NUM_DIGIT:FA(G,e,a));continue;case q.ARRAY_END:if(H===",")X.push(q.ARRAY_END),G.state_=q.VALUE,G.depth_===1&&(m=a);else if(H==="]"){G.depth_--;if(G.depth_===0)return;K();G.state_=w()}else if(_.Or(H))continue;else FA(G,e,a);continue;case q.STRING:var I=a;a:for(;;){for(;G.unicodeCount_>0;)if(H=e[a++],G.unicodeCount_===4?G.unicodeCount_=0:G.unicodeCount_++,!H)break a;if(H==='"'&&!G.slashed_){G.state_=
w();break}if(H==="\\"&&!G.slashed_&&(G.slashed_=!0,H=e[a++],!H))break;if(G.slashed_)if(G.slashed_=!1,H==="u"&&(G.unicodeCount_=1),H=e[a++])continue;else break;J.lastIndex=a;H=J.exec(e);if(!H){a=e.length+1;break}a=H.index+1;H=e[H.index];if(!H)break}G.JSC$11649_pos_+=a-I;continue;case q.TRUE1:if(!H)continue;H==="r"?G.state_=q.TRUE2:FA(G,e,a);continue;case q.TRUE2:if(!H)continue;H==="u"?G.state_=q.TRUE3:FA(G,e,a);continue;case q.TRUE3:if(!H)continue;H==="e"?G.state_=w():FA(G,e,a);continue;case q.FALSE1:if(!H)continue;
H==="a"?G.state_=q.FALSE2:FA(G,e,a);continue;case q.FALSE2:if(!H)continue;H==="l"?G.state_=q.FALSE3:FA(G,e,a);continue;case q.FALSE3:if(!H)continue;H==="s"?G.state_=q.FALSE4:FA(G,e,a);continue;case q.FALSE4:if(!H)continue;H==="e"?G.state_=w():FA(G,e,a);continue;case q.NULL1:if(!H)continue;H==="u"?G.state_=q.NULL2:FA(G,e,a);continue;case q.NULL2:if(!H)continue;H==="l"?G.state_=q.NULL3:FA(G,e,a);continue;case q.NULL3:if(!H)continue;H==="l"?G.state_=w():FA(G,e,a);continue;case q.NUM_DECIMAL_POINT:H===
"."?G.state_=q.NUM_DIGIT:FA(G,e,a);continue;case q.NUM_DIGIT:if("0123456789.eE+-".indexOf(H)!==-1)continue;else a--,G.JSC$11649_pos_--,G.state_=w();continue;default:FA(G,e,a)}}}
function w(){var H=X.pop();return H!=null?H:q.VALUE}
function K(H){G.depth_>1||(H||(H=m===-1?G.JSC$11649_buffer_+e.substring(Q,a):e.substring(m,a)),G.deliverMessageAsRawString_?G.result_.push(H):G.result_.push(JSON.parse(H)),m=a)}
for(var G=this,X=G.stack_,J=G.stringInputPattern_,q=vsa,T=e.length,Q=0,m=-1,a=0;a<T;)switch(G.streamState_){case 3:return FA(G,e,a),null;case 2:return z()&&FA(G,e,a),null;case 0:if(z()){var n=e[a++];G.JSC$11649_pos_++;if(n==="["){G.streamState_=1;Q=a;G.state_=q.ARRAY_OPEN;continue}else FA(G,e,a)}return null;case 1:return C(),G.depth_===0&&G.state_==q.ARRAY_END?(G.streamState_=2,G.JSC$11649_buffer_=e.substring(a)):G.JSC$11649_buffer_=m===-1?G.JSC$11649_buffer_+e.substring(Q):e.substring(m),G.result_.length>
0?(n=G.result_,G.result_=[],n):null}return null};_.Tk(_.vA,D6);Ik.prototype.getValue=function(){return this.JSC$11657_value_};
Ik.prototype.clone=function(){return new Ik(this.JSC$11657_key_,this.JSC$11657_value_)};var V3=function(e){this.nodes_=[];if(e)a:{if(e instanceof V3){var z=e.getKeys();e=e.getValues();if(this.getCount()<=0){for(var C=this.nodes_,w=0;w<z.length;w++)C.push(new Ik(z[w],e[w]));break a}}else z=_.de.getKeys(e),e=_.de.getValues(e);for(C=0;C<z.length;C++)this.insert(z[C],e[C])}};
_.Y=V3.prototype;_.Y.insert=function(e,z){var C=this.nodes_;C.push(new Ik(e,z));e=C.length-1;z=this.nodes_;for(C=z[e];e>0;){var w=e-1>>1;if(z[w].JSC$11657_key_>C.JSC$11657_key_)z[e]=z[w],e=w;else break}z[e]=C};
_.Y.remove=function(){var e=this.nodes_,z=e.length,C=e[0];if(!(z<=0)){if(z==1)e.length=0;else{e[0]=e.pop();e=0;z=this.nodes_;for(var w=z.length,K=z[e];e<w>>1;){var G=e*2+1,X=e*2+2;G=X<w&&z[X].JSC$11657_key_<z[G].JSC$11657_key_?X:G;if(z[G].JSC$11657_key_>K.JSC$11657_key_)break;z[e]=z[G];e=G}z[e]=K}return C.getValue()}};
_.Y.peek=function(){var e=this.nodes_;if(e.length!=0)return e[0].getValue()};
_.Y.getValues=function(){for(var e=this.nodes_,z=[],C=e.length,w=0;w<C;w++)z.push(e[w].getValue());return z};
_.Y.getKeys=function(){for(var e=this.nodes_,z=[],C=e.length,w=0;w<C;w++)z.push(e[w].JSC$11657_key_);return z};
_.Y.containsValue=function(e){return this.nodes_.some(function(z){return z.getValue()==e})};
_.Y.containsKey=function(e){return this.nodes_.some(function(z){return z.JSC$11657_key_==e})};
_.Y.clone=function(){return new V3(this)};
_.Y.getCount=function(){return this.nodes_.length};
_.Y.isEmpty=function(){return this.nodes_.length===0};
_.Y.clear=function(){this.nodes_.length=0};_.fr=function(e,z){this.JSC$11663_map_={};this.JSC$11663_keys_=[];this.version_=this.size=0;var C=arguments.length;if(C>1){if(C%2)throw Error("ma");for(var w=0;w<C;w+=2)this.set(arguments[w],arguments[w+1])}else e&&this.addAll(e)};
_.Y=_.fr.prototype;_.Y.getCount=function(){return this.size};
_.Y.getValues=function(){S6(this);for(var e=[],z=0;z<this.JSC$11663_keys_.length;z++)e.push(this.JSC$11663_map_[this.JSC$11663_keys_[z]]);return e};
_.Y.getKeys=function(){S6(this);return this.JSC$11663_keys_.concat()};
_.Y.containsKey=function(e){return this.has(e)};
_.Y.has=function(e){return uL(this.JSC$11663_map_,e)};
_.Y.containsValue=function(e){for(var z=0;z<this.JSC$11663_keys_.length;z++){var C=this.JSC$11663_keys_[z];if(uL(this.JSC$11663_map_,C)&&this.JSC$11663_map_[C]==e)return!0}return!1};
_.Y.equals=function(e,z){if(this===e)return!0;if(this.size!=e.getCount())return!1;z=z||IWT;S6(this);for(var C,w=0;C=this.JSC$11663_keys_[w];w++)if(!z(this.get(C),e.get(C)))return!1;return!0};
var IWT=function(e,z){return e===z};
_.fr.prototype.isEmpty=function(){return this.size==0};
_.fr.prototype.clear=function(){this.JSC$11663_map_={};this.version_=this.size=this.JSC$11663_keys_.length=0};
_.fr.prototype.remove=function(e){return this.delete(e)};
_.fr.prototype.delete=function(e){return uL(this.JSC$11663_map_,e)?(delete this.JSC$11663_map_[e],--this.size,this.version_++,this.JSC$11663_keys_.length>2*this.size&&S6(this),!0):!1};
var S6=function(e){if(e.size!=e.JSC$11663_keys_.length){for(var z=0,C=0;z<e.JSC$11663_keys_.length;){var w=e.JSC$11663_keys_[z];uL(e.JSC$11663_map_,w)&&(e.JSC$11663_keys_[C++]=w);z++}e.JSC$11663_keys_.length=C}if(e.size!=e.JSC$11663_keys_.length){z={};for(w=C=0;C<e.JSC$11663_keys_.length;){var K=e.JSC$11663_keys_[C];uL(z,K)||(e.JSC$11663_keys_[w++]=K,z[K]=1);C++}e.JSC$11663_keys_.length=w}};
_.Y=_.fr.prototype;_.Y.get=function(e,z){return uL(this.JSC$11663_map_,e)?this.JSC$11663_map_[e]:z};
_.Y.set=function(e,z){uL(this.JSC$11663_map_,e)||(this.size+=1,this.JSC$11663_keys_.push(e),this.version_++);this.JSC$11663_map_[e]=z};
_.Y.addAll=function(e){if(e instanceof _.fr)for(var z=e.getKeys(),C=0;C<z.length;C++)this.set(z[C],e.get(z[C]));else for(z in e)this.set(z,e[z])};
_.Y.forEach=function(e,z){for(var C=this.getKeys(),w=0;w<C.length;w++){var K=C[w],G=this.get(K);e.call(z,G,K,this)}};
_.Y.clone=function(){return new _.fr(this)};
_.Y.transpose=function(){for(var e=new _.fr,z=0;z<this.JSC$11663_keys_.length;z++){var C=this.JSC$11663_keys_[z];e.set(this.JSC$11663_map_[C],C)}return e};
_.Y.keys=function(){return sSU(this.__iterator__(!0)).toEs6()};
_.Y.values=function(){return sSU(this.__iterator__(!1)).toEs6()};
_.Y.entries=function(){var e=this;return bUS(this.keys(),function(z){return[z,e.get(z)]})};
_.Y.__iterator__=function(e){S6(this);var z=0,C=this.version_,w=this,K=new WE;K.next=function(){if(C!=w.version_)throw Error("ue");if(z>=w.JSC$11663_keys_.length)return PE;var G=w.JSC$11663_keys_[z++];return RZ(e?G:w.JSC$11663_map_[G])};
return K};
var uL=function(e,z){return Object.prototype.hasOwnProperty.call(e,z)};var PnT=function(){this.JSC$11666_map_=new _.fr;this.JSC$11666_head_=new W86("");this.JSC$11666_head_.next=this.JSC$11666_head_.prev=this.JSC$11666_head_},RP4=function(e,z){if(z=e.JSC$11666_map_.get(z))z.remove(),e.insert_(z);
return z};
_.Y=PnT.prototype;_.Y.get=function(e,z){return(e=RP4(this,e))?e.value:z};
_.Y.set=function(e,z){var C=RP4(this,e);C?C.value=z:(C=new W86(e,z),this.JSC$11666_map_.set(e,C),this.insert_(C))};
_.Y.peek=function(){return this.JSC$11666_head_.next.value};
_.Y.shift=function(){return L8L(this,this.JSC$11666_head_.next)};
_.Y.pop=function(){return L8L(this,this.JSC$11666_head_.prev)};
_.Y.remove=function(e){return(e=this.JSC$11666_map_.get(e))?(this.removeNode(e),!0):!1};
_.Y.removeNode=function(e){e.remove();this.JSC$11666_map_.remove(e.key)};
_.Y.getCount=function(){return this.JSC$11666_map_.getCount()};
_.Y.isEmpty=function(){return this.JSC$11666_map_.isEmpty()};
_.Y.getKeys=function(){return this.map(function(e,z){return z})};
_.Y.getValues=function(){return this.map(function(e){return e})};
_.Y.contains=function(e){return this.some(function(z){return z==e})};
_.Y.containsKey=function(e){return this.JSC$11666_map_.containsKey(e)};
_.Y.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11666_head_.prev)};
_.Y.forEach=function(e,z){for(var C=this.JSC$11666_head_.next;C!=this.JSC$11666_head_;C=C.next)e.call(z,C.value,C.key,this)};
_.Y.map=function(e,z){for(var C=[],w=this.JSC$11666_head_.next;w!=this.JSC$11666_head_;w=w.next)C.push(e.call(z,w.value,w.key,this));return C};
_.Y.some=function(e,z){for(var C=this.JSC$11666_head_.next;C!=this.JSC$11666_head_;C=C.next)if(e.call(z,C.value,C.key,this))return!0;return!1};
_.Y.every=function(e,z){for(var C=this.JSC$11666_head_.next;C!=this.JSC$11666_head_;C=C.next)if(!e.call(z,C.value,C.key,this))return!1;return!0};
_.Y.insert_=function(e){e.next=this.JSC$11666_head_.next;e.prev=this.JSC$11666_head_;this.JSC$11666_head_.next=e;for(e.next.prev=e;this.getCount()>100;)this.removeNode(this.JSC$11666_head_.prev)};
var L8L=function(e,z){e.JSC$11666_head_!=z&&e.removeNode(z);return z.value},W86=function(e,z){this.key=e;
this.value=z};
W86.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var hPa=function(){V3.apply(this,arguments)};
_.U(hPa,V3);hPa.prototype.enqueue=function(e,z){this.insert(e,z)};var Os4=function(){var e=Error();e.name="SecurityError";throw e;},Ln5=function(){return{get opener(){return null},
get closed(){return!0},get location(){Os4()},get document(){Os4()},postMessage:function(){},
close:function(){},
focus:function(){}}};var UJ5={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 Wf7={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 Esa={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(Wf7).join("|");var F8S=function(){function e(J){J.substr(-1)!==";"&&(J+=";");return X(J)}
for(var z=Object.keys(Esa).sort(Ig8),C=Object.keys(Wf7).sort(Ig8),w=0,K=0;w<C.length;w++)z[K]===C[w]?(C[w]+=";?",K++):C[w]+=";";var G=new RegExp("&(?:"+C.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),X=PSN();return function(J){return String(J).replace(G,e)}}();/*

 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 V4Y={};var fWC=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"),SAT=/[\\&]/,uZX=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),dla=RegExp('[&<>"]',"g"),DlS=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),isa=function(e){return e.charCodeAt(0)===92?e.charAt(1):F8S(e)},N$U=function(e){return SAT.test(e)?e.replace(uZX,isa):e},seT=function(e){try{var z,C="";
if(typeof K!=="string"){var w=K;var K=";/?:@&=+$,-_.!~*'()#"}typeof w==="undefined"&&(w=!0);var G,X=V4Y[K];if(X)var J=X;else{X=V4Y[K]=[];for(G=0;G<128;G++){var q=String.fromCharCode(G);/^[0-9a-z]$/i.test(q)?X.push(q):X.push("%"+("0"+G.toString(16).toUpperCase()).slice(-2))}for(G=0;G<K.length;G++)X[K.charCodeAt(G)]=K[G];J=X}var T=0;for(z=e.length;T<z;T++){var Q=e.charCodeAt(T);if(w&&Q===37&&T+2<z&&/^[0-9a-f]{2}$/i.test(e.slice(T+1,T+3)))C+=e.slice(T,T+3),T+=2;else if(Q<128)C+=J[Q];else if(Q>=55296&&
Q<=57343){if(Q>=55296&&Q<=56319&&T+1<z){var m=e.charCodeAt(T+1);if(m>=56320&&m<=57343){C+=encodeURIComponent(e[T]+e[T+1]);T++;continue}}C+="%EF%BF%BD"}else C+=encodeURIComponent(e[T])}return C}catch(a){return e}},B$o=function(e){switch(e){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return e}},dD=function(e,z){return dla.test(e)?z?e.replace(DlS,B$o):e.replace(dla,B$o):e};/*

 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 D2;if(String.fromCodePoint)D2=function(e){try{return String.fromCodePoint(e)}catch(z){if(z instanceof RangeError)return String.fromCharCode(65533);throw z;}};
else{var t4C=String.fromCharCode,gsc=Math.floor;D2=function(){var e=[],z=-1,C=arguments.length;if(!C)return"";for(var w="";++z<C;){var K=Number(arguments[z]);if(!isFinite(K)||K<0||K>1114111||gsc(K)!==K)return String.fromCharCode(65533);if(K<=65535)e.push(K);else{K-=65536;var G=(K>>10)+55296;K=K%1024+56320;e.push(G,K)}if(z+1===C||e.length>16384)w+=t4C.apply(null,e),e.length=0}return w}};var jeo=function(e){this.root=this.current=e;this.entering=!0};
jeo.prototype.next=function(){var e=this.current,z=this.entering;if(e===null)return null;a:switch(e._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 C=!0;break a;default:C=!1}z&&C?e._firstChild?(this.current=e._firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:e._next===null?(this.current=
e._parent,this.entering=!1):(this.current=e._next,this.entering=!0);return{entering:z,node:e}};
var LG=function(e,z){this._type=e;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=z;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};
LG.prototype.appendChild=function(e){e.unlink();e._parent=this;this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild):this._firstChild=e;this._lastChild=e};
LG.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var ySs=function(e,z){z.unlink();z._next=e._next;z._next&&(z._next._prev=z);z._prev=e;e._next=z;z._parent=e._parent;z._next||(z._parent._lastChild=z)};
LG.prototype.insertBefore=function(e){e.unlink();e._prev=this._prev;e._prev&&(e._prev._next=e);e._next=this;this._prev=e;e._parent=this._parent;e._prev||(e._parent._firstChild=e)};
_.lB.Object.defineProperties(LG.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(e){this._literal=e}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(e){this._destination=e}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(e){this._title=e}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(e){this._info=e}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(e){this._level=e}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(e){this._listData.type=e}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(e){this._listData.tight=e}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(e){this._listData.start=e}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(e){this._onEnter=e}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(e){this._onExit=e}}});var Rx1=/[ \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,
Lfg={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 cSL=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]/),
ASo=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Zs6=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),p0X=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),eig=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),zih=/`+/,CHs=/^`+/,wMc=/\.\.\./g,KUh=/--+/g,o3X=/^<([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])?)*)>/,
GOX=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,YQa=/^ *(?:\n *)?/,bM6=/^[ \t\n\x0b\x0c\x0d]/,XM4=/[ \t\n\x0b\x0c\x0d]+/g,J8a=/^\s/,kOY=/ *$/,qQa=/^ */,xZa=/^ *(?:\n|$)/,Th4=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),$ZC=/^[^\n`\[\]\\!<&*_'"]+/m,NV=function(e){var z=new LG("text");z._literal=e;return z},sr=function(e){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=e||{}};
sr.prototype.match=function(e){e=e.exec(this.subject.slice(this.pos));if(e===null)return null;this.pos+=e.index+e[0].length;return e[0]};
sr.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Bv=function(e){e.match(YQa);return!0},lrL=function(e,z,C){var w=0;
var K=e.pos;if(z===39||z===34)w++,e.pos++;else for(;e.peek()===z;)w++,e.pos++;if(w===0)w=null;else{var G=K===0?"\n":e.subject.charAt(K-1);var X=e.peek();X=X===-1?"\n":D2(X);var J=J8a.test(X);X=cSL.test(X);var q=J8a.test(G);var T=cSL.test(G);G=!J&&!(X&&!q&&!T);J=!q&&!(T&&!J&&!X);z===95?(q=G&&(!J||T),X=J&&(!G||X)):(q=z===39||z===34?G&&!J:G,X=J);e.pos=K;w={numdelims:w,can_open:q,can_close:X}}if(!w)return!1;K=w.numdelims;X=e.pos;e.pos+=K;X=z===39?"\u2019":z===34?"\u201c":e.subject.slice(X,e.pos);X=NV(X);
C.appendChild(X);e.delimiters={cc:z,numdelims:K,origdelims:K,node:X,previous:e.delimiters,next:null,can_open:w.can_open,can_close:w.can_close};e.delimiters.previous!==null&&(e.delimiters.previous.next=e.delimiters);return!0},Qns=function(e,z){z.previous!==null&&(z.previous.next=z.next);
z.next===null?e.delimiters=z.previous:z.next.previous=z.previous},mZX=function(e,z){var C,w,K=[],G=!1;
K[95]=z;K[42]=z;K[39]=z;K[34]=z;for(C=e.delimiters;C!==null&&C.previous!==z;)C=C.previous;for(;C!==null;){var X=C.cc;if(C.can_close){var J=C.previous;for(w=!1;J!==null&&J!==z&&J!==K[X];){G=(C.can_open||J.can_close)&&(J.origdelims+C.origdelims)%3===0;if(J.cc===C.cc&&J.can_open&&!G){w=!0;break}J=J.previous}var q=C;if(X===42||X===95)if(w){var T=C.numdelims>=2&&J.numdelims>=2?2:1;var Q=J.node;var m=C.node;J.numdelims-=T;C.numdelims-=T;Q._literal=Q._literal.slice(0,Q._literal.length-T);m._literal=m._literal.slice(0,
m._literal.length-T);var a=new LG(T===1?"emph":"strong");for(T=Q._next;T&&T!==m;){var n=T._next;T.unlink();a.appendChild(T);T=n}ySs(Q,a);T=J;n=C;T.next!==n&&(T.next=n,n.previous=T);J.numdelims===0&&(Q.unlink(),Qns(e,J));C.numdelims===0&&(m.unlink(),J=C.next,Qns(e,C),C=J)}else C=C.next;else X===39?(C.node._literal="\u2019",w&&(J.node._literal="\u2018"),C=C.next):X===34&&(C.node._literal="\u201d",w&&(J.node.literal="\u201c"),C=C.next);w||G||(K[X]=q.previous,q.can_open||Qns(e,q))}else C=C.next}for(;e.delimiters!==
null&&e.delimiters!==z;)Qns(e,e.delimiters)},aro=function(e){e=e.match(ASo);
return e===null?null:N$U(e.substr(1,e.length-2))},n3L=function(e){var z=e.match(Zs6);
if(z===null){z=e.pos;for(var C=0,w;(w=e.peek())!==-1;)if(w===92)e.pos+=1,e.peek()!==-1&&(e.pos+=1);else if(w===40)e.pos+=1,C+=1;else if(w===41)if(C<1)break;else e.pos+=1,--C;else if(bM6.exec(D2(w))!==null)break;else e.pos+=1;z=e.subject.substr(z,e.pos-z);return seT(N$U(z))}return seT(N$U(z.substr(1,z.length-2)))},MoC=function(e){e=e.match(Th4);
return e===null||e.length>1001?0:e.length},r8g=function(e,z,C,w){e.brackets!==null&&(e.brackets.bracketAfter=!0);
e.brackets={node:z,previous:e.brackets,previousDelimiter:e.delimiters,index:C,image:w,active:!0}},HMg=function(e,z){var C;
return(C=e.match($ZC))?(e.options.smart?z.appendChild(NV(C.replace(wMc,"\u2026").replace(KUh,function(w){var K=0,G=0;w.length%3===0?G=w.length/3:w.length%2===0?K=w.length/2:w.length%3===2?(K=1,G=(w.length-2)/3):(K=2,G=(w.length-4)/3);w="";var X;for(X=0;X<G;X++)w+="\u2014";for(X=0;X<K;X++)w+="\u2013";return w}))):z.appendChild(NV(C)),!0):!1},UZh=function(e,z,C){e.subject=z;
e.pos=0;z=e.pos;var w=MoC(e);if(w===0)return 0;var K=e.subject.substr(0,w);if(e.peek()===58)e.pos++;else return e.pos=z,0;Bv(e);w=n3L(e);if(w===null||w.length===0)return e.pos=z,0;var G=e.pos;Bv(e);var X=aro(e);X===null&&(X="",e.pos=G);var J=!0;e.match(xZa)===null&&(X===""?J=!1:(X="",e.pos=G,J=e.match(xZa)!==null));if(!J)return e.pos=z,0;K=hxE(K);if(K==="")return e.pos=z,0;C[K]||(C[K]={destination:w,title:X});return e.pos-z},v34=function(e,z){var C,w=e.peek();
if(w===-1)return!1;switch(w){case 10:e.pos+=1;if((C=z._lastChild)&&C.type==="text"&&C._literal[C._literal.length-1]===" "){var K=C._literal[C._literal.length-2]===" ";C._literal=C._literal.replace(kOY,"");z.appendChild(new LG(K?"linebreak":"softbreak"))}else z.appendChild(new LG("softbreak"));e.match(qQa);C=!0;break;case 92:C=e.subject;e.pos+=1;e.peek()===10?(e.pos+=1,C=new LG("linebreak"),z.appendChild(C)):p0X.test(C.charAt(e.pos))?(z.appendChild(NV(C.charAt(e.pos))),e.pos+=1):z.appendChild(NV("\\"));
C=!0;break;case 96:a:if(C=e.match(CHs),C===null)C=!1;else{K=e.pos;for(var G;(G=e.match(zih))!==null;)if(G===C){G=new LG("code");G._literal=e.subject.slice(K,e.pos-C.length).trim().replace(XM4," ");z.appendChild(G);C=!0;break a}e.pos=K;z.appendChild(NV(C));C=!0}break;case 42:case 95:C=lrL(e,w,z);break;case 39:case 34:C=e.options.smart&&lrL(e,w,z);break;case 91:C=e.pos;e.pos+=1;K=NV("[");z.appendChild(K);r8g(e,K,C,!1);C=!0;break;case 33:C=e.pos;e.pos+=1;e.peek()===91?(e.pos+=1,K=NV("!["),z.appendChild(K),
r8g(e,K,C+1,!0)):z.appendChild(NV("!"));C=!0;break;case 93:var X,J=!1,q;e.pos+=1;var T=e.pos;K=e.brackets;if(K===null)z.appendChild(NV("]"));else if(K.active){C=K.image;var Q=e.pos;e.peek()===40&&(e.pos++,Bv(e)&&(G=n3L(e))!==null&&Bv(e)&&(bM6.test(e.subject.charAt(e.pos-1))&&(X=aro(e)),1)&&Bv(e)&&e.peek()===41?(e.pos+=1,J=!0):e.pos=Q);if(!J){var m=e.pos,a=MoC(e);a>2?q=e.subject.slice(m,m+a):K.bracketAfter||(q=e.subject.slice(K.index,T));a===0&&(e.pos=Q);q&&(q=e.refmap[hxE(q)])&&(G=q.destination,X=
q.title,J=!0)}if(J){T=new LG(C?"image":"link");T._destination=G;T._title=X||"";for(G=K.node._next;G;)X=G._next,G.unlink(),T.appendChild(G),G=X;z.appendChild(T);mZX(e,K.previousDelimiter);e.brackets=e.brackets.previous;K.node.unlink();if(!C)for(K=e.brackets;K!==null;)K.image||(K.active=!1),K=K.previous}else e.brackets=e.brackets.previous,e.pos=T,z.appendChild(NV("]"))}else z.appendChild(NV("]")),e.brackets=e.brackets.previous;C=!0;break;case 60:(C=e.match(o3X))?(C=C.slice(1,C.length-1),K=new LG("link"),
K._destination=seT("mailto:"+C),K._title="",K.appendChild(NV(C)),z.appendChild(K),C=!0):(C=e.match(GOX))?(C=C.slice(1,C.length-1),K=new LG("link"),K._destination=seT(C),K._title="",K.appendChild(NV(C)),z.appendChild(K),C=!0):C=!1;C||(C=e.match(fWC),C===null?C=!1:(K=new LG("html_inline"),K._literal=C,z.appendChild(K),C=!0));break;case 38:(C=e.match(eig))?(z.appendChild(NV(F8S(C))),C=!0):C=!1;break;default:C=HMg(e,z)}C||(e.pos+=1,z.appendChild(NV(D2(w))));return!0};
sr.prototype.parseInlines=function(e){this.subject=e._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;v34(this,e););e._string_content=null;mZX(this,null)};
sr.prototype.parse=sr.prototype.parseInlines;var IrX=[/./,/^<(?: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")],WUa=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],PHa=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,RiS=/^[#`~*+_=<>0-9-\|]|\|/,LU6=/[^ \t\f\v\r\n]/,hi6=/^[*+-]/,OMa=/^(\d{1,9})([.)])/,E3g=/^#{1,6}(?:[ \t]+|$)/,FUa=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Voc=/^(?:`{3,}|~{3,})(?= *$)/,frh=/^(?:=+|-+)[ \t]*$/,SQC=/\r\n|\n|\r/,Elk=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Ffm=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,u9S={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(e){return e!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(e,z){for(e=z._firstChild;e;){if(OVg(e)&&e._next){z._listData.tight=!1;break}for(var C=e._firstChild;C;){if(OVg(C)&&(e._next||C._next)){z._listData.tight=!1;break}C=C._next}e=e._next}},
canContain:function(e){return e==="item"},
acceptsLines:!1},block_quote:{continue:function(e){var z=e.currentLine;if(e.indented||PA(z,e.nextNonspace)!==62)return 1;tp(e);gD(e,1,!1);WA(PA(z,e.offset))&&gD(e,1,!0);return 0},
finalize:function(){},
canContain:function(e){return e!=="item"},
acceptsLines:!1},item:{continue:function(e,z){if(e.blank){if(z._firstChild==null)return 1;tp(e)}else if(e.indent>=z._listData.markerOffset+z._listData.padding)gD(e,z._listData.markerOffset+z._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(e){return e!=="item"&&!V2g(e)},
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(e,z){var C=e.currentLine,w=e.indent;if(z._isFenced){if((w=w<=3&&C.charAt(e.nextNonspace)===z._fenceChar&&C.slice(e.nextNonspace).match(Voc))&&w[0].length>=z._fenceLength)return e.finalize(z,e.lineNumber),2;for(z=z._fenceOffset;z>0&&WA(PA(C,e.offset));)gD(e,1,!0),z--}else if(w>=4)gD(e,4,!0);else if(e.blank)tp(e);else return 1;return 0},
finalize:function(e,z){if(z._isFenced){var C=z._string_content,w=C.indexOf("\n");e=C.slice(0,w);C=C.slice(w+1);z.info=N$U(e.trim());z._literal=C}else z._literal=z._string_content.replace(/(\n *)+$/,"\n");z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(e,z){return!e.blank||z._htmlBlockType!==6&&z._htmlBlockType!==7?0:1},
finalize:function(e,z){z._literal=z._string_content.replace(/(\n *)+$/,"");z._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(e){return e.blank?1:0},
finalize:function(e,z){for(var C,w=!1;PA(z._string_content,0)===91&&(C=UZh(e.inlineParser,z._string_content,e.refmap));)z._string_content=z._string_content.slice(C),w=!0;w&&!LU6.test(z._string_content)&&z.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(e){return Rk(e.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(e){return e=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(e,z){if(!z._rowIsDelimiter){e=z._isHeader?"th":"td";for(var C=z._parent._tableColumns,w=z._string_content,K=0,G="",X,J=z._sourcepos[0][0];K<w.length;){switch(w[K]){case "|":X&&(X._string_content=G.trim(),G="",X=null,C--,C<=0&&(K=w.length));break;default:if(!X){X=new LG(e,[[J,K],[J,K]]);var q=z._parent._columnAlignment,T=z._parent._tableColumns-C;q&&T<=q.length&&T>=0&&(X._alignment=q[T]);z.appendChild(X)}G+=w[K];X._sourcepos[1][1]=K}K++}X&&(X._string_content=G.trim());z._string_content=
""}},
canContain:function(e){return e!=="row"},
acceptsLines:!1}},dZT=[function(e){if(e.indented||PA(e.currentLine,e.nextNonspace)!==62)return 0;tp(e);gD(e,1,!1);WA(PA(e.currentLine,e.offset))&&gD(e,1,!0);j6(e);e.addChild("block_quote",e.nextNonspace);return 1},
function(e){var z;if(!e.indented&&(z=e.currentLine.slice(e.nextNonspace).match(E3g))){tp(e);gD(e,z[0].length,!1);j6(e);var C=e.addChild("heading",e.nextNonspace);C.level=z[0].trim().length;C._string_content=e.currentLine.slice(e.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");gD(e,e.currentLine.length-e.offset);return 2}return 0},
function(e){var z;if(!e.indented&&(z=e.currentLine.slice(e.nextNonspace).match(FUa))){var C=z[0].length;j6(e);var w=e.addChild("code_block",e.nextNonspace);w._isFenced=!0;w._fenceLength=C;w._fenceChar=z[0][0];w._fenceOffset=e.indent;tp(e);gD(e,C,!1);return 2}return 0},
function(e,z){if(!e.indented&&PA(e.currentLine,e.nextNonspace)===60){var C=e.currentLine.slice(e.nextNonspace),w;for(w=1;w<=7;w++)if(IrX[w].test(C)&&(w<7||z.type!=="paragraph"))return j6(e),e.addChild("html_block",e.offset)._htmlBlockType=w,2}return 0},
function(e,z){var C;if(!e.indented&&z.type==="paragraph"&&(C=e.currentLine.slice(e.nextNonspace).match(frh))){j6(e);var w=new LG("heading",z.sourcepos);w.level=C[0][0]==="="?1:2;w._string_content=z._string_content;ySs(z,w);z.unlink();e.tip=w;gD(e,e.currentLine.length-e.offset,!1);return 2}return 0},
function(e){return!e.indented&&PHa.test(e.currentLine.slice(e.nextNonspace))?(j6(e),e.addChild("thematic_break",e.nextNonspace),gD(e,e.currentLine.length-e.offset,!1),2):0},
function(e,z){var C,w;if(!(w=e.indented&&z.type!=="list")){a:{var K=z,G=e.currentLine.slice(e.nextNonspace);w={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:e.indent};if(C=G.match(hi6))w.type="bullet",w.bulletChar=C[0][0];else{if(!(C=G.match(OMa))||K.type==="paragraph"&&C[1]!=="1"){C=null;break a}w.type="ordered";w.start=parseInt(C[1],10);w.delimiter=C[2]}var X=PA(e.currentLine,e.nextNonspace+C[0].length);if(X!==-1&&X!==9&&X!==32||K.type==="paragraph"&&!e.currentLine.slice(e.nextNonspace+
C[0].length).match(LU6))C=null;else{tp(e);gD(e,C[0].length,!0);K=e.column;G=e.offset;do gD(e,1,!0),X=PA(e.currentLine,e.offset);while(e.column-K<5&&WA(X));X=PA(e.currentLine,e.offset)===-1;var J=e.column-K;J>=5||J<1||X?(w.padding=C[0].length+1,e.column=K,e.offset=G,WA(PA(e.currentLine,e.offset))&&gD(e,1,!0)):w.padding=C[0].length+J;C=w}}w=!C}if(w)return 0;j6(e);(w=e.tip.type!=="list")||(z=z._listData,w=!(z.type===C.type&&z.delimiter===C.delimiter&&z.bulletChar===C.bulletChar));w&&(z=e.addChild("list",
e.nextNonspace),z._listData=C);z=e.addChild("item",e.nextNonspace);z._listData=C;return 1},
function(e){var z;return((z=e.options.shouldParseIndentAsCodeBlock)!=null?z:1)&&e.indented&&e.tip.type!=="paragraph"&&!e.blank?(gD(e,4,!0),j6(e),e.addChild("code_block",e.offset),2):0},
function(e,z){var C=Rk(e.currentLine),w=Rk(e.lookahead);if(C!==0&&w<0&&Math.abs(C)==Math.abs(w)&&!V2g(z.type)){j6(e);z=e.addChild("table",e.nextNonspace);z._tableRows=1;z._tableColumns=Math.abs(C);C=e.lookahead;if(Ffm.test(C)){w=[];for(var K=0,G=!1,X=0,J=void 0;K<C.length;){var q=X>=3;switch(C[K]){case "-":X++;break;case "|":G&&(w.push(J),J=void 0,X=0);G=!0;break;case ":":J||q||(J="left"),!J&&q&&(J="right"),J==="left"&&q&&(J="center")}K++}C=w}else C=void 0;z._columnAlignment=C;z=e.addChild("row",
e.nextNonspace);z._isHeader=!0;gD(e,e.currentLine.length-e.offset,!1);z._string_content=e.currentLine;return 1}return 0},
function(e,z){if(z.type=="table"&&Rk(e.currentLine)!==0){j6(e);var C=z;z=e.addChild("row",e.nextNonspace);Rk(e.currentLine)<0?z._rowIsDelimiter=!0:C._tableRows+=1;gD(e,e.currentLine.length-e.offset,!1);z._string_content=e.currentLine;return 2}return 0}],Im5=function(){var e={shouldParseIndentAsCodeBlock:!1};
e=e===void 0?{}:e;this.lastMatchedContainer=this.doc=fg1();this.refmap={};this.lastLineLength=0;this.inlineParser=new sr(e);this.options=e;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=u9S;this.blockStarts=dZT},DZh=function(e){e.partiallyConsumedTab&&(e.offset+=1,e.tip._string_content+=" ".repeat(4-e.column%
4));
e.tip._string_content+=e.currentLine.slice(e.offset)+"\n"};
Im5.prototype.addChild=function(e,z){for(;!this.blocks[this.tip.type].canContain(e);)this.finalize(this.tip,this.lineNumber-1);e=new LG(e,[[this.lineNumber,z+1],[0,0]]);e._string_content="";this.tip.appendChild(e);return this.tip=e};
var j6=function(e){if(!e.allClosed){for(;e.oldtip!==e.lastMatchedContainer;){var z=e.oldtip._parent;e.finalize(e.oldtip,e.lineNumber-1);e.oldtip=z}e.allClosed=!0}},gD=function(e,z,C){for(var w=e.currentLine,K,G;z>0&&(G=w[e.offset]);)G==="\t"?(K=4-e.column%4,C?(e.partiallyConsumedTab=K>z,K=K>z?z:K,e.column+=K,e.offset+=e.partiallyConsumedTab?0:1,z-=K):(e.partiallyConsumedTab=!1,e.column+=K,e.offset+=1,--z)):(e.partiallyConsumedTab=!1,e.offset+=1,e.column+=1,--z)},tp=function(e){e.offset=e.nextNonspace;
e.column=e.nextNonspaceColumn;e.partiallyConsumedTab=!1},iMo=function(e){for(var z=e.currentLine,C=e.offset,w=e.column,K;(K=z.charAt(C))!=="";)if(K===" ")C++,w++;
else if(K==="\t")C++,w+=4-w%4;else break;e.blank=K==="\n"||K==="\r"||K==="";e.nextNonspace=C;e.nextNonspaceColumn=w;e.indent=e.nextNonspaceColumn-e.column;e.indented=e.indent>=4};
Im5.prototype.finalize=function(e,z){var C=e._parent;e._open=!1;e.sourcepos[1]=[z,this.lastLineLength];this.blocks[e.type].finalize(this,e);this.tip=C};
Im5.prototype.parse=function(e){this.tip=this.doc=fg1();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!e)return this.doc;this.options.time&&console.time("preparing input");var z=e.split(SQC),C=z.length;e.charCodeAt(e.length-1)===10&&--C;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(e=0;e<C;e++)a:{var w=void 0,K=z[e],G=z[e+1],X=!0,J=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;K.indexOf("\x00")!==-1&&(K=K.replace(/\0/g,"\ufffd"));this.currentLine=K;for(this.lookahead=G;(w=J._lastChild)&&w._open;){J=w;iMo(this);switch(this.blocks[J.type].continue(this,J)){case 0:break;case 1:X=!1;break;case 2:this.lastLineLength=K.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!X){J=J._parent;break}}this.allClosed=J===this.oldtip;this.lastMatchedContainer=
J;w=J.type!=="paragraph"&&u9S[J.type].acceptsLines;G=this.blockStarts;for(X=G.length;!w;){iMo(this);if(!this.indented&&!RiS.test(K.slice(this.nextNonspace))){tp(this);break}for(var q=0;q<X;){var T=G[q](this,J);if(T===1){J=this.tip;break}else if(T===2){J=this.tip;w=!0;break}else q++}if(q===X){tp(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){j6(this);this.blank&&J.lastChild&&(J.lastChild._lastLineBlank=!0);w=J.type;G=this.blank&&!(w==="block_quote"||w==="code_block"&&J._isFenced||
w==="item"&&!J._firstChild&&J.sourcepos[0][0]===this.lineNumber);for(X=J;X;)X._lastLineBlank=G,X=X._parent;this.blocks[w].acceptsLines?(DZh(this),w==="html_block"&&J._htmlBlockType>=1&&J._htmlBlockType<=5&&WUa[J._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(J,this.lineNumber)):this.offset<K.length&&!this.blank&&(this.addChild("paragraph",this.offset),tp(this),DZh(this))}else DZh(this);this.lastLineLength=K.length}for(;this.tip;)this.finalize(this.tip,C);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");K=new jeo(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;C=K.next();)z=C.node,e=z.type,C.entering||e!=="paragraph"&&e!=="heading"&&e!=="th"&&e!="td"||this.inlineParser.parse(z);this.options.time&&console.timeEnd("inline parsing");return this.doc};SyL.prototype.render=function(e){e=new jeo(e);var z;this.buffer="";for(this.lastOut="\n";z=e.next();){var C=z.node.type;if(this[C])this[C](z.node,z.entering)}return this.buffer};
SyL.prototype.out=function(e){y3(this,e)};
var y3=function(e,z){e.buffer+=z;e.lastOut=z};
SyL.prototype.cr=function(){this.lastOut!=="\n"&&y3(this,"\n")};var NhT=/^javascript:|vbscript:|file:|data:/i,snh=/^data:image\/(?:png|gif|jpeg|webp)/i,Bhs=function(e){return NhT.test(e)&&!snh.test(e)};
h2.prototype=Object.create(SyL.prototype);_.Y=h2.prototype;_.Y.text=function(e){this.out(e.literal)};
_.Y.html_inline=function(e){this.options.safe?y3(this,"\x3c!-- raw HTML omitted --\x3e"):y3(this,e.literal)};
_.Y.html_block=function(e){this.cr();this.options.safe?y3(this,"\x3c!-- raw HTML omitted --\x3e"):y3(this,e.literal);this.cr()};
_.Y.softbreak=function(){y3(this,this.options.softbreak)};
_.Y.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.Y.link=function(e,z){var C=this.attrs(e);z?(this.options.safe&&Bhs(e.destination)||C.push(["href",dD(e.destination,!0)]),e.title&&C.push(["title",dD(e.title,!0)]),this.tag("a",C)):this.tag("/a")};
_.Y.image=function(e,z){z?(this.disableTags===0&&(this.options.safe&&Bhs(e.destination)?y3(this,'<img src="" alt="'):y3(this,'<img src="'+dD(e.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(e.title&&y3(this,'" title="'+dD(e.title,!0)),y3(this,'" />')))};
_.Y.emph=function(e,z){this.tag(z?"em":"/em")};
_.Y.strong=function(e,z){this.tag(z?"strong":"/strong")};
_.Y.paragraph=function(e,z){var C=e.parent.parent;e=this.attrs(e);C!==null&&C.type==="list"&&C.listTight||(z?(this.cr(),this.tag("p",e)):(this.tag("/p"),this.cr()))};
_.Y.heading=function(e,z){var C="h"+e.level;e=this.attrs(e);z?(this.cr(),this.tag(C,e)):(this.tag("/"+C),this.cr())};
_.Y.code=function(e){this.tag("code");this.out(e.literal);this.tag("/code")};
_.Y.code_block=function(e){var z=e.info?e.info.split(/\s+/):[],C=this.attrs(e);z.length>0&&z[0].length>0&&C.push(["class","language-"+dD(z[0],!0)]);this.cr();this.tag("pre");this.tag("code",C);this.out(e.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.Y.thematic_break=function(e){e=this.attrs(e);this.cr();this.tag("hr",e,!0);this.cr()};
_.Y.block_quote=function(e,z){e=this.attrs(e);z?(this.cr(),this.tag("blockquote",e)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.Y.list=function(e,z){var C=e.listType==="bullet"?"ul":"ol",w=this.attrs(e);z?(e=e.listStart,e!==null&&e!==1&&w.push(["start",e.toString()]),this.cr(),this.tag(C,w)):(this.cr(),this.tag("/"+C));this.cr()};
_.Y.item=function(e,z){e=this.attrs(e);z?this.tag("li",e):(this.tag("/li"),this.cr())};
_.Y.custom_inline=function(e,z){z&&e.onEnter?y3(this,e.onEnter):!z&&e.onExit&&y3(this,e.onExit)};
_.Y.custom_block=function(e,z){this.cr();z&&e.onEnter?y3(this,e.onEnter):!z&&e.onExit&&y3(this,e.onExit);this.cr()};
_.Y.table=function(e,z){e=this.attrs(e);z?(this.cr(),this.tag("table",e)):(this.tag("/table"),this.cr())};
_.Y.row=function(e,z){e._rowIsDelimiter||(e=this.attrs(e),z?this.tag("tr",e):this.tag("/tr"))};
_.Y.td=function(e,z){var C=this.attrs(e);e._alignment&&C.push(["align",e._alignment]);z?this.tag("td",C):this.tag("/td")};
_.Y.th=function(e,z){var C=this.attrs(e);e._alignment&&C.push(["align",e._alignment]);z?this.tag("th",C):this.tag("/th")};
_.Y.out=function(e){y3(this,dD(e,!1))};
_.Y.tag=function(e,z,C){if(!(this.disableTags>0)){this.buffer+="<"+e;if(z&&z.length>0){e=0;for(var w;(w=z[e])!==void 0;)this.buffer+=" "+w[0]+'="'+w[1]+'"',e++}C&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.Y.attrs=function(e){var z=[];this.options.sourcepos&&(e=e.sourcepos)&&z.push(["data-sourcepos",String(e[0][0])+":"+String(e[0][1])+"-"+String(e[1][0])+":"+String(e[1][1])]);return z};
h2.prototype.text=h2.prototype.text;h2.prototype.html_inline=h2.prototype.html_inline;h2.prototype.html_block=h2.prototype.html_block;h2.prototype.softbreak=h2.prototype.softbreak;h2.prototype.linebreak=h2.prototype.linebreak;h2.prototype.link=h2.prototype.link;h2.prototype.image=h2.prototype.image;h2.prototype.emph=h2.prototype.emph;h2.prototype.strong=h2.prototype.strong;h2.prototype.paragraph=h2.prototype.paragraph;h2.prototype.heading=h2.prototype.heading;h2.prototype.code=h2.prototype.code;
h2.prototype.code_block=h2.prototype.code_block;h2.prototype.thematic_break=h2.prototype.thematic_break;h2.prototype.block_quote=h2.prototype.block_quote;h2.prototype.list=h2.prototype.list;h2.prototype.item=h2.prototype.item;h2.prototype.custom_inline=h2.prototype.custom_inline;h2.prototype.custom_block=h2.prototype.custom_block;h2.prototype.table=h2.prototype.table;h2.prototype.row=h2.prototype.row;h2.prototype.td=h2.prototype.td;h2.prototype.th=h2.prototype.th;h2.prototype.out=h2.prototype.out;
h2.prototype.tag=h2.prototype.tag;h2.prototype.attrs=h2.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 toa,g3S,mf7;(function(){function e(O,R){return O<R?-1:O>R?1:O>=R?0:NaN}
function z(O){return function(R,S){return e(O(R),S)}}
function C(){for(var O=0,R=arguments.length,S={},Co;O<R;++O){if(!(Co=arguments[O]+"")||Co in S)throw Error("we`"+Co);S[Co]=[]}return new w(S)}
function w(O){this._=O}
function K(O,R){return O.trim().split(/^|\s+/).map(function(S){var Co="",kN=S.indexOf(".");kN>=0&&(Co=S.slice(kN+1),S=S.slice(0,kN));if(S&&!R.hasOwnProperty(S))throw Error("xe`"+S);return{type:S,name:Co}})}
function G(O,R,S){for(var Co=0,kN=O.length;Co<kN;++Co)if(O[Co].name===R){O[Co]=vvC;O=O.slice(0,Co).concat(O.slice(Co+1));break}S!=null&&O.push({name:R,value:S});return O}
function X(O){var R=O,S=R.indexOf(":");S>=0&&(R=O.slice(0,S))!=="xmlns"&&(O=O.slice(S+1));return k3.hasOwnProperty(R)?{space:k3[R],local:O}:O}
function J(O){return function(){var R=this.ownerDocument,S=this.namespaceURI;return S==="http://www.w3.org/1999/xhtml"&&R.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?R.createElement(O):R.createElementNS(S,O)}}
function q(O){return function(){return this.ownerDocument.createElementNS(O.space,O.local)}}
function T(O){O=X(O);return(O.local?q:J)(O)}
function Q(){}
function m(O){return O==null?Q:function(){return this.querySelector(O)}}
function a(O){return Array(O.length)}
function n(O,R){this.ownerDocument=O.ownerDocument;this.namespaceURI=O.namespaceURI;this._next=null;this._parent=O;this.__data__=R}
function H(O){return function(){return O}}
function I(O,R,S,Co,kN,am){for(var Im=0,EE,bo=R.length,Kg=am.length;Im<Kg;++Im)(EE=R[Im])?(EE.__data__=am[Im],Co[Im]=EE):S[Im]=new n(O,am[Im]);for(;Im<bo;++Im)if(EE=R[Im])kN[Im]=EE}
function L(O,R,S,Co,kN,am,Im){var EE,bo,Kg={},J4=R.length,ah=am.length,A4=Array(J4),Eq;for(EE=0;EE<J4;++EE)if(bo=R[EE])A4[EE]=Eq="$"+Im.call(bo,bo.__data__,EE,R),Eq in Kg?kN[EE]=bo:Kg[Eq]=bo;for(EE=0;EE<ah;++EE)Eq="$"+Im.call(O,am[EE],EE,am),(bo=Kg[Eq])?(Co[EE]=bo,bo.__data__=am[EE],Kg[Eq]=null):S[EE]=new n(O,am[EE]);for(EE=0;EE<J4;++EE)(bo=R[EE])&&Kg[A4[EE]]===bo&&(kN[EE]=bo)}
function h(O,R){return O<R?-1:O>R?1:O>=R?0:NaN}
function E(O){return function(){this.removeAttribute(O)}}
function N(O){return function(){this.removeAttributeNS(O.space,O.local)}}
function D(O,R){return function(){this.setAttribute(O,R)}}
function g(O,R){return function(){this.setAttributeNS(O.space,O.local,R)}}
function y(O,R){return function(){var S=R.apply(this,arguments);S==null?this.removeAttribute(O):this.setAttribute(O,S)}}
function Z(O,R){return function(){var S=R.apply(this,arguments);S==null?this.removeAttributeNS(O.space,O.local):this.setAttributeNS(O.space,O.local,S)}}
function YN(O){return function(){this.style.removeProperty(O)}}
function Jk(O,R,S){return function(){this.style.setProperty(O,R,S)}}
function v1(O,R,S){return function(){var Co=R.apply(this,arguments);Co==null?this.style.removeProperty(O):this.style.setProperty(O,Co,S)}}
function lg(O,R){return O.style.getPropertyValue(R)||(O.ownerDocument&&O.ownerDocument.defaultView||O.document&&O||O.defaultView).getComputedStyle(O,null).getPropertyValue(R)}
function M5(O){return function(){delete this[O]}}
function fo(O,R){return function(){this[O]=R}}
function ug(O,R){return function(){var S=R.apply(this,arguments);S==null?delete this[O]:this[O]=S}}
function sE(){this.textContent=""}
function w6(O){return function(){this.textContent=O}}
function qY(O){return function(){var R=O.apply(this,arguments);this.textContent=R==null?"":R}}
function y1(){this.innerHTML=""}
function Qa(O){return function(){this.innerHTML=O}}
function Ha(O){return function(){var R=O.apply(this,arguments);this.innerHTML=R==null?"":R}}
function OU(){return null}
function ab(){var O=this.parentNode;O&&O.removeChild(this)}
function Pa(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function $N(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function N5(O,R,S){O=$L(O,R,S);return function(Co){var kN=Co.relatedTarget;kN&&(kN===this||kN.compareDocumentPosition(this)&8)||O.call(this,Co)}}
function $L(O,R,S){return function(){O.call(this,this.__data__,R,S)}}
function Ba(O){return O.trim().split(/^|\s+/).map(function(R){var S="",Co=R.indexOf(".");Co>=0&&(S=R.slice(Co+1),R=R.slice(0,Co));return{type:R,name:S}})}
function r6(O){return function(){var R=this.__on;if(R){for(var S=0,Co=-1,kN=R.length,am;S<kN;++S)(am=R[S],O.type&&am.type!==O.type||am.name!==O.name)?R[++Co]=am:this.removeEventListener(am.type,am.listener,am.capture);++Co?R.length=Co:delete this.__on}}}
function eE(O,R,S){var Co=I5L.hasOwnProperty(O.type)?N5:$L;return function(kN,am,Im){kN=this.__on;var EE;am=Co(R,am,Im);if(kN){Im=0;for(var bo=kN.length;Im<bo;++Im)if((EE=kN[Im]).type===O.type&&EE.name===O.name){this.removeEventListener(EE.type,EE.listener,EE.capture);this.addEventListener(EE.type,EE.listener=am,EE.capture=S);EE.value=R;return}}this.addEventListener(O.type,am,S);EE={type:O.type,name:O.name,value:R,listener:am,capture:S};kN?kN.push(EE):this.__on=[EE]}}
function q1(O,R,S){var Co=O.ownerDocument&&O.ownerDocument.defaultView||O.document&&O||O.defaultView,kN=Co.CustomEvent;typeof kN==="function"?kN=new kN(R,S):(kN=Co.document.createEvent("Event"),S?(kN.initEvent(R,S.bubbles,S.cancelable),kN.detail=S.detail):kN.initEvent(R,!1,!1));O.dispatchEvent(kN)}
function g6(O,R){return function(){return q1(this,O,R)}}
function lo(O,R){return function(){return q1(this,O,R.apply(this,arguments))}}
function mc(O,R){this._groups=O;this._parents=R}
function ob(){return new mc([[document.documentElement]],IN5)}
function Ak(){this._="@"+(++W9l).toString(36)}
function wf(O,R,S){O.prototype=R.prototype=S;S.constructor=O}
function $a(O,R){O=Object.create(O.prototype);for(var S in R)O[S]=R[S];return O}
function CY(){}
function nv(O){var R;O=(O+"").trim().toLowerCase();return(R=POv.exec(O))?(R=parseInt(R[1],16),new Wl(R>>8&15|R>>4&240,R>>4&15|R&240,(R&15)<<4|R&15,1)):(R=RRf.exec(O))?sq(parseInt(R[1],16)):(R=L9$.exec(O))?new Wl(R[1],R[2],R[3],1):(R=hRo.exec(O))?new Wl(R[1]*255/100,R[2]*255/100,R[3]*255/100,1):(R=O9o.exec(O))?k2(R[1],R[2],R[3],R[4]):(R=Evb.exec(O))?k2(R[1]*255/100,R[2]*255/100,R[3]*255/100,R[4]):(R=F9E.exec(O))?wp(R[1],R[2]/100,R[3]/100,1):(R=Veq.exec(O))?wp(R[1],R[2]/100,R[3]/100,R[4]):Wlg.hasOwnProperty(O)?
sq(Wlg[O]):O==="transparent"?new Wl(NaN,NaN,NaN,0):null}
function sq(O){return new Wl(O>>16&255,O>>8&255,O&255,1)}
function k2(O,R,S,Co){Co<=0&&(O=R=S=NaN);return new Wl(O,R,S,Co)}
function aM(O){O instanceof CY||(O=nv(O));if(!O)return new Wl;O=O.rgb();return new Wl(O.r,O.g,O.b,O.opacity)}
function jS(O,R,S,Co){return arguments.length===1?aM(O):new Wl(O,R,S,Co==null?1:Co)}
function Wl(O,R,S,Co){this.r=+O;this.g=+R;this.b=+S;this.opacity=+Co}
function b$(O){O=Math.max(0,Math.min(255,Math.round(O)||0));return(O<16?"0":"")+O.toString(16)}
function wp(O,R,S,Co){Co<=0?O=R=S=NaN:S<=0||S>=1?O=R=NaN:R<=0&&(O=NaN);return new r9(O,R,S,Co)}
function MG(O){if(O instanceof r9)return new r9(O.h,O.s,O.l,O.opacity);O instanceof CY||(O=nv(O));if(!O)return new r9;if(O instanceof r9)return O;O=O.rgb();var R=O.r/255,S=O.g/255,Co=O.b/255,kN=Math.min(R,S,Co),am=Math.max(R,S,Co),Im=NaN,EE=am-kN,bo=(am+kN)/2;EE?(Im=R===am?(S-Co)/EE+(S<Co)*6:S===am?(Co-R)/EE+2:(R-S)/EE+4,EE/=bo<.5?am+kN:2-am-kN,Im*=60):EE=bo>0&&bo<1?0:Im;return new r9(Im,EE,bo,O.opacity)}
function D0(O,R,S,Co){return arguments.length===1?MG(O):new r9(O,R,S,Co==null?1:Co)}
function r9(O,R,S,Co){this.h=+O;this.s=+R;this.l=+S;this.opacity=+Co}
function Fg(O,R,S){return(O<60?R+(S-R)*O/60:O<180?S:O<240?R+(S-R)*(240-O)/60:R)*255}
function ML(O){if(O instanceof P1)return new P1(O.l,O.a,O.b,O.opacity);if(O instanceof Lg){if(isNaN(O.h))return new P1(O.l,0,0,O.opacity);var R=O.h*PTo;return new P1(O.l,Math.cos(R)*O.c,Math.sin(R)*O.c,O.opacity)}O instanceof Wl||(O=aM(O));var S=Uq(O.r),Co=Uq(O.g),kN=Uq(O.b);R=dL(.2225045*S+.7168786*Co+.0606169*kN);if(S===Co&&Co===kN)var am=S=R;else am=dL((.4360747*S+.3850649*Co+.1430804*kN)/.96422),S=dL((.0139322*S+.0971045*Co+.7141733*kN)/.82521);return new P1(116*R-16,500*(am-R),200*(R-S),O.opacity)}
function P1(O,R,S,Co){this.l=+O;this.a=+R;this.b=+S;this.opacity=+Co}
function dL(O){return O>fNZ?Math.pow(O,1/3):O/RBX+LlL}
function jh(O){return O>Si?O*O*O:RBX*(O-LlL)}
function UU(O){return 255*(O<=.0031308?12.92*O:1.055*Math.pow(O,1/2.4)-.055)}
function Uq(O){return(O/=255)<=.04045?O/12.92:Math.pow((O+.055)/1.055,2.4)}
function fY(O){if(O instanceof Lg)return new Lg(O.h,O.c,O.l,O.opacity);O instanceof P1||(O=ML(O));if(O.a===0&&O.b===0)return new Lg(NaN,0,O.l,O.opacity);var R=Math.atan2(O.b,O.a)*hBc;return new Lg(R<0?R+360:R,Math.sqrt(O.a*O.a+O.b*O.b),O.l,O.opacity)}
function Oq(O,R,S,Co){return arguments.length===1?fY(O):new Lg(O,R,S,Co==null?1:Co)}
function Lg(O,R,S,Co){this.h=+O;this.c=+R;this.l=+S;this.opacity=+Co}
function Ih(O,R,S,Co){if(arguments.length===1){var kN=O;if(kN instanceof gf)kN=new gf(kN.h,kN.s,kN.l,kN.opacity);else{kN instanceof Wl||(kN=aM(kN));var am=kN.g/255,Im=kN.b/255,EE=(OTX*Im+kN.r/255*-1.7884503806-3.5172982438*am)/(OTX+-1.7884503806-3.5172982438);Im-=EE;var bo=(1.97294*(am-EE)- -.29227*Im)/-.90649;Im=(am=Math.sqrt(bo*bo+Im*Im)/(1.97294*EE*(1-EE)))?Math.atan2(bo,Im)*hBc-120:NaN;kN=new gf(Im<0?Im+360:Im,am,EE,kN.opacity)}}else kN=new gf(O,R,S,Co==null?1:Co);return kN}
function gf(O,R,S,Co){this.h=+O;this.s=+R;this.l=+S;this.opacity=+Co}
function BL(O,R,S,Co,kN){var am=O*O,Im=am*O;return((1-3*O+3*am-Im)*R+(4-6*am+3*Im)*S+(1+3*O+3*am-3*Im)*Co+Im*kN)/6}
function ng(O){return function(){return O}}
function A0(O,R){return function(S){return O+S*R}}
function yw(O,R,S){return O=Math.pow(O,S),R=Math.pow(R,S)-O,S=1/S,function(Co){return Math.pow(O+Co*R,S)}}
function tt(O,R){var S=R-O;return S?A0(O,S>180||S<-180?S-360*Math.round(S/360):S):ng(isNaN(O)?R:O)}
function cC(O){return(O=+O)===1?bp:function(R,S){return S-R?yw(R,S,O):ng(isNaN(R)?S:R)}}
function bp(O,R){var S=R-O;return S?A0(O,S):ng(isNaN(O)?R:O)}
function rQ(O){return function(R){var S=R.length,Co=Array(S),kN=Array(S),am=Array(S),Im;for(Im=0;Im<S;++Im){var EE=jS(R[Im]);Co[Im]=EE.r||0;kN[Im]=EE.g||0;am[Im]=EE.b||0}Co=O(Co);kN=O(kN);am=O(am);EE.opacity=1;return function(bo){EE.r=Co(bo);EE.g=kN(bo);EE.b=am(bo);return EE+""}}}
function fh(O,R){return O=+O,R-=O,function(S){return O+R*S}}
function gG(O){return function(){return O}}
function UL(O){return function(R){return O(R)+""}}
function To(O,R){var S=hVm.lastIndex=OBs.lastIndex=0,Co,kN,am,Im=-1,EE=[],bo=[];O+="";for(R+="";(Co=hVm.exec(O))&&(kN=OBs.exec(R));)(am=kN.index)>S&&(am=R.slice(S,am),EE[Im]?EE[Im]+=am:EE[++Im]=am),(Co=Co[0])===(kN=kN[0])?EE[Im]?EE[Im]+=kN:EE[++Im]=kN:(EE[++Im]=null,bo.push({i:Im,x:fh(Co,kN)})),S=OBs.lastIndex;S<R.length&&(am=R.slice(S),EE[Im]?EE[Im]+=am:EE[++Im]=am);return EE.length<2?bo[0]?UL(bo[0].x):gG(R):(R=bo.length,function(Kg){for(var J4=0,ah;J4<R;++J4)EE[(ah=bo[J4]).i]=ah.x(Kg);return EE.join("")})}
function h_(O,R,S,Co,kN,am){var Im,EE,bo;if(Im=Math.sqrt(O*O+R*R))O/=Im,R/=Im;if(bo=O*S+R*Co)S-=O*bo,Co-=R*bo;if(EE=Math.sqrt(S*S+Co*Co))S/=EE,Co/=EE,bo/=EE;O*Co<R*S&&(O=-O,R=-R,bo=-bo,Im=-Im);return{translateX:kN,translateY:am,rotate:Math.atan2(R,O)*EXs,skewX:Math.atan(bo)*EXs,scaleX:Im,scaleY:EE}}
function n4(O,R,S,Co){function kN(Kg){return Kg.length?Kg.pop()+" ":""}
function am(Kg,J4,ah,A4,Eq,HL){Kg!==ah||J4!==A4?(Eq=Eq.push("translate(",null,R,null,S),HL.push({i:Eq-4,x:fh(Kg,ah)},{i:Eq-2,x:fh(J4,A4)})):(ah||A4)&&Eq.push("translate("+ah+R+A4+S)}
function Im(Kg,J4,ah,A4){Kg!==J4?(Kg-J4>180?J4+=360:J4-Kg>180&&(Kg+=360),A4.push({i:ah.push(kN(ah)+"rotate(",null,Co)-2,x:fh(Kg,J4)})):J4&&ah.push(kN(ah)+"rotate("+J4+Co)}
function EE(Kg,J4,ah,A4){Kg!==J4?A4.push({i:ah.push(kN(ah)+"skewX(",null,Co)-2,x:fh(Kg,J4)}):J4&&ah.push(kN(ah)+"skewX("+J4+Co)}
function bo(Kg,J4,ah,A4,Eq,HL){Kg!==ah||J4!==A4?(Eq=Eq.push(kN(Eq)+"scale(",null,",",null,")"),HL.push({i:Eq-4,x:fh(Kg,ah)},{i:Eq-2,x:fh(J4,A4)})):ah===1&&A4===1||Eq.push(kN(Eq)+"scale("+ah+","+A4+")")}
return function(Kg,J4){var ah=[],A4=[];Kg=O(Kg);J4=O(J4);am(Kg.translateX,Kg.translateY,J4.translateX,J4.translateY,ah,A4);Im(Kg.rotate,J4.rotate,ah,A4);EE(Kg.skewX,J4.skewX,ah,A4);bo(Kg.scaleX,Kg.scaleY,J4.scaleX,J4.scaleY,ah,A4);Kg=J4=null;return function(Eq){for(var HL=-1,g5=A4.length,Lq;++HL<g5;)ah[(Lq=A4[HL]).i]=Lq.x(Eq);return ah.join("")}}}
function d5(O){return function(R,S){var Co=O((R=D0(R)).h,(S=D0(S)).h),kN=bp(R.s,S.s),am=bp(R.l,S.l),Im=bp(R.opacity,S.opacity);return function(EE){R.h=Co(EE);R.s=kN(EE);R.l=am(EE);R.opacity=Im(EE);return R+""}}}
function OD(O){return function(R,S){var Co=O((R=Oq(R)).h,(S=Oq(S)).h),kN=bp(R.c,S.c),am=bp(R.l,S.l),Im=bp(R.opacity,S.opacity);return function(EE){R.h=Co(EE);R.c=kN(EE);R.l=am(EE);R.opacity=Im(EE);return R+""}}}
function Sl(O){return function Co(S){function kN(am,Im){var EE=O((am=Ih(am)).h,(Im=Ih(Im)).h),bo=bp(am.s,Im.s),Kg=bp(am.l,Im.l),J4=bp(am.opacity,Im.opacity);return function(ah){am.h=EE(ah);am.s=bo(ah);am.l=Kg(Math.pow(ah,S));am.opacity=J4(ah);return am+""}}
S=+S;kN.gamma=Co;return kN}(1)}
function j1(){return Y0||(Flo(d2),Y0=LL.now()+UDN)}
function d2(){Y0=0}
function yK(){this._call=this._time=this._next=null}
function ED(O,R,S){var Co=new yK;Co.restart(O,R,S);return Co}
function Ft(){Y0=(vIg=LL.now())+UDN;uv=ho=0;try{j1();++uv;for(var O=IVE,R;O;)(R=Y0-O._time)>=0&&O._call.call(null,R),O=O._next;--uv}finally{uv=0;O=IVE;for(var S=Infinity;O;)if(O._call){S>O._time&&(S=O._time);var Co=O;O=O._next}else R=O._next,O._next=null,O=Co?Co._next=R:IVE=R;OP=Co;N2(S);Y0=0}}
function Hf(){var O=LL.now(),R=O-vIg;R>1E3&&(UDN-=R,vIg=O)}
function N2(O){uv||(ho&&(ho=clearTimeout(ho)),O-Y0>24?(O<Infinity&&(ho=setTimeout(Ft,O-LL.now()-UDN)),EP&&(EP=clearInterval(EP))):(EP||(vIg=LL.now(),EP=setInterval(Hf,1E3)),uv=1,Flo(Ft)))}
function FE(O,R,S){var Co=new yK;R=R==null?0:+R;Co.restart(function(kN){Co.stop();O(kN+R)},R,S);
return Co}
function zX(O,R,S,Co,kN,am){var Im=O.__transition;if(!Im)O.__transition={};else if(S in Im)return;NX(O,S,{name:R,index:Co,group:kN,on:SD5,tween:utZ,time:am.time,delay:am.delay,duration:am.duration,ease:am.ease,timer:null,state:0})}
function rf(O,R){O=ww(O,R);if(O.state>0)throw Error("ye");return O}
function Lv(O,R){O=ww(O,R);if(O.state>2)throw Error("ze");return O}
function ww(O,R){O=O.__transition;if(!O||!(O=O[R]))throw Error("Ae");return O}
function NX(O,R,S){function Co(bo){var Kg,J4;if(S.state!==1)return am();for(A4 in Im){var ah=Im[A4];if(ah.name===S.name){if(ah.state===3)return FE(Co);ah.state===4?(ah.state=6,ah.timer.stop(),ah.on.call("interrupt",O,O.__data__,ah.index,ah.group),delete Im[A4]):+A4<R&&(ah.state=6,ah.timer.stop(),delete Im[A4])}}FE(function(){S.state===3&&(S.state=4,S.timer.restart(kN,S.delay,S.time),kN(bo))});
S.state=2;S.on.call("start",O,O.__data__,S.index,S.group);if(S.state===2){S.state=3;EE=Array(J4=S.tween.length);var A4=0;for(Kg=-1;A4<J4;++A4)if(ah=S.tween[A4].value.call(O,O.__data__,S.index,S.group))EE[++Kg]=ah;EE.length=Kg+1}}
function kN(bo){bo=bo<S.duration?S.ease.call(null,bo/S.duration):(S.timer.restart(am),S.state=5,1);for(var Kg=-1,J4=EE.length;++Kg<J4;)EE[Kg].call(null,bo);S.state===5&&(S.on.call("end",O,O.__data__,S.index,S.group),am())}
function am(){S.state=6;S.timer.stop();delete Im[R];for(var bo in Im)return;delete O.__transition}
var Im=O.__transition,EE;Im[R]=S;S.timer=ED(function(bo){S.state=1;S.timer.restart(Co,S.delay,S.time);S.delay<=bo&&Co(bo-S.delay)},0,S.time)}
function DH(O,R){var S,Co;return function(){var kN=Lv(this,O),am=kN.tween;if(am!==S){Co=S=am;am=0;for(var Im=Co.length;am<Im;++am)if(Co[am].name===R){Co=Co.slice();Co.splice(am,1);break}}kN.tween=Co}}
function zN(O,R,S){var Co,kN;if(typeof S!=="function")throw Error();return function(){var am=Lv(this,O),Im=am.tween;if(Im!==Co){kN=(Co=Im).slice();Im={name:R,value:S};for(var EE=0,bo=kN.length;EE<bo;++EE)if(kN[EE].name===R){kN[EE]=Im;break}EE===bo&&kN.push(Im)}am.tween=kN}}
function Ti(O,R,S){var Co=O._id;O.each(function(){var kN=Lv(this,Co);(kN.value||(kN.value={}))[R]=S.apply(this,arguments)});
return function(kN){return ww(kN,Co).value[R]}}
function Ne(O,R){var S;return(typeof R==="number"?fh:R instanceof nv?VGs:(S=nv(R))?(R=S,VGs):To)(O,R)}
function dNY(O){return function(){this.removeAttribute(O)}}
function DN3(O){return function(){this.removeAttributeNS(O.space,O.local)}}
function i9$(O,R,S){var Co,kN;return function(){var am=this.getAttribute(O);return am===S?null:am===Co?kN:kN=R(Co=am,S)}}
function NHb(O,R,S){var Co,kN;return function(){var am=this.getAttributeNS(O.space,O.local);return am===S?null:am===Co?kN:kN=R(Co=am,S)}}
function s$Z(O,R,S){var Co,kN,am;return function(){var Im=S(this);if(Im==null)return void this.removeAttribute(O);var EE=this.getAttribute(O);return EE===Im?null:EE===Co&&Im===kN?am:am=R(Co=EE,kN=Im)}}
function BHY(O,R,S){var Co,kN,am;return function(){var Im=S(this);if(Im==null)return void this.removeAttributeNS(O.space,O.local);var EE=this.getAttributeNS(O.space,O.local);return EE===Im?null:EE===Co&&Im===kN?am:am=R(Co=EE,kN=Im)}}
function tel(O,R){function S(){var Co=this,kN=R.apply(Co,arguments);return kN&&function(am){Co.setAttributeNS(O.space,O.local,kN(am))}}
S._value=R;return S}
function gvq(O,R){function S(){var Co=this,kN=R.apply(Co,arguments);return kN&&function(am){Co.setAttribute(O,kN(am))}}
S._value=R;return S}
function j$$(O,R){return function(){rf(this,O).delay=+R.apply(this,arguments)}}
function y_f(O,R){return R=+R,function(){rf(this,O).delay=R}}
function c_l(O,R){return function(){Lv(this,O).duration=+R.apply(this,arguments)}}
function A_f(O,R){return R=+R,function(){Lv(this,O).duration=R}}
function Z95(O,R){if(typeof R!=="function")throw Error();return function(){Lv(this,O).ease=R}}
function pp5(O){return(O+"").trim().split(/^|\s+/).every(function(R){var S=R.indexOf(".");S>=0&&(R=R.slice(0,S));return!R||R==="start"})}
function eco(O,R,S){var Co,kN,am=pp5(R)?rf:Lv;return function(){var Im=am(this,O),EE=Im.on;if(EE!==Co)(kN=(Co=EE).copy()).on(R,S);Im.on=kN}}
function zcW(O){return function(){var R=this.parentNode,S;for(S in this.__transition)if(+S!==O)return;R&&R.removeChild(this)}}
function CcY(O,R){var S,Co,kN;return function(){var am=lg(this,O),Im=(this.style.removeProperty(O),lg(this,O));return am===Im?null:am===S&&Im===Co?kN:kN=R(S=am,Co=Im)}}
function wKo(O){return function(){this.style.removeProperty(O)}}
function Kv$(O,R,S){var Co,kN;return function(){var am=lg(this,O);return am===S?null:am===Co?kN:kN=R(Co=am,S)}}
function oUo(O,R,S){var Co,kN,am;return function(){var Im=lg(this,O),EE=S(this);EE==null&&(EE=(this.style.removeProperty(O),lg(this,O)));return Im===EE?null:Im===Co&&EE===kN?am:am=R(Co=Im,kN=EE)}}
function G_f(O,R,S){function Co(){var kN=this,am=R.apply(kN,arguments);return am&&function(Im){kN.style.setProperty(O,am(Im),S)}}
Co._value=R;return Co}
function YaE(O){return function(){this.textContent=O}}
function b$b(O){return function(){var R=O(this);this.textContent=R==null?"":R}}
function s2(O,R,S,Co){this._groups=O;this._parents=R;this._name=S;this._id=Co}
function EE1(O){return{type:O}}
function Fy4(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function W$1(){}
function f5o(O,R){var S=new W$1;if(O instanceof W$1)O.each(function(Im,EE){S.set(EE,Im)});
else if(Array.isArray(O)){var Co=-1,kN=O.length,am;if(R==null)for(;++Co<kN;)S.set(Co,O[Co]);else for(;++Co<kN;)S.set(R(am=O[Co],Co,O),am)}else if(O)for(Co in O)S.set(Co,O[Co]);return S}
function Pp8(){}
function SjS(O){return function(R){for(var S={},Co=0;Co<O.length;Co++)S[O[Co]]=R[Co]||"";return S}}
function XKZ(O,R){var S=SjS(O);return function(Co,kN){return R(S(Co),kN,O)}}
function Jrq(O){var R=Object.create(null),S=[];O.forEach(function(Co){for(var kN in Co)kN in R||S.push(R[kN]=kN)});
return S}
function uks(O){function R(Im,EE){function bo(){if(HL)return VN1;if(g5)return g5=!1,ddc;var xI,pj=ah,O6;if(Im.charCodeAt(pj)===34){for(;ah++<J4&&Im.charCodeAt(ah)!==34||Im.charCodeAt(++ah)===34;);(xI=ah)>=J4?HL=!0:(O6=Im.charCodeAt(ah++))===10?g5=!0:O6===13&&(g5=!0,Im.charCodeAt(ah)===10&&++ah);return Im.slice(pj+1,xI-1).replace(/""/g,'"')}for(;ah<J4;){if((O6=Im.charCodeAt(xI=ah++))===10)g5=!0;else if(O6===13)g5=!0,Im.charCodeAt(ah)===10&&++ah;else if(O6!==am)continue;return Im.slice(pj,xI)}return HL=
!0,Im.slice(pj,J4)}
var Kg=[],J4=Im.length,ah=0,A4=0,Eq,HL=J4<=0,g5=!1;Im.charCodeAt(J4-1)===10&&--J4;for(Im.charCodeAt(J4-1)===13&&--J4;(Eq=bo())!==VN1;){for(var Lq=[];Eq!==ddc&&Eq!==VN1;)Lq.push(Eq),Eq=bo();EE&&(Lq=EE(Lq,A4++))==null||Kg.push(Lq)}return Kg}
function S(Im){return Im.map(Co).join(O)}
function Co(Im){return Im==null?"":kN.test(Im)?'"'+Im.replace(/"/g,'""')+'"':Im}
var kN=new RegExp('["'+O+"\n\r]"),am=O.charCodeAt(0);return{parse:function(Im,EE){var bo,Kg;Im=R(Im,function(J4,ah){if(bo)return bo(J4,ah-1);Kg=J4;bo=EE?XKZ(J4,EE):SjS(J4)});
Im.columns=Kg||[];return Im},
parseRows:R,format:function(Im,EE){EE==null&&(EE=Jrq(Im));return[EE.map(Co).join(O)].concat(Im.map(function(bo){return EE.map(function(Kg){return Co(bo[Kg])}).join(O)})).join("\n")},
formatRows:function(Im){return Im.map(S).join("\n")}}}
function k_C(O){if(!O.ok)throw Error("Be`"+O.status+"`"+O.statusText);return O.text()}
function Ddc(O){return function(R,S,Co){arguments.length===2&&typeof S==="function"&&(Co=S,S=void 0);return fetch(R,S).then(k_C).then(function(kN){return O(kN,Co)})}}
function iTo(O,R,S,Co){if(isNaN(R)||isNaN(S))return O;var kN,am=O._root;Co={data:Co};var Im=O._x0,EE=O._y0,bo=O._x1,Kg=O._y1,J4,ah,A4,Eq,HL;if(!am)return O._root=Co,O;for(;am.length;)if((A4=R>=(J4=(Im+bo)/2))?Im=J4:bo=J4,(Eq=S>=(ah=(EE+Kg)/2))?EE=ah:Kg=ah,kN=am,!(am=am[HL=Eq<<1|A4]))return kN[HL]=Co,O;var g5=+O._x.call(null,am.data);var Lq=+O._y.call(null,am.data);if(R===g5&&S===Lq)return Co.next=am,kN?kN[HL]=Co:O._root=Co,O;do kN=kN?kN[HL]=Array(4):O._root=Array(4),(A4=R>=(J4=(Im+bo)/2))?Im=J4:bo=
J4,(Eq=S>=(ah=(EE+Kg)/2))?EE=ah:Kg=ah;while((HL=Eq<<1|A4)===(A4=(Lq>=ah)<<1|g5>=J4));return kN[A4]=am,kN[HL]=Co,O}
function wO(O,R,S,Co,kN){this.node=O;this.x0=R;this.y0=S;this.x1=Co;this.y1=kN}
function qaE(O){return O[0]}
function xQq(O){return O[1]}
function fkE(O,R,S,Co,kN,am){this._x=O;this._y=R;this._x0=S;this._y0=Co;this._x1=kN;this._y1=am;this._root=void 0}
function Nic(O){for(var R={data:O.data},S=R;O=O.next;)S=S.next={data:O.data};return R}
function R6g(O,R){if((R=(O=R?O.toExponential(R-1):O.toExponential()).indexOf("e"))<0)return null;var S=O.slice(0,R);return[S.length>1?S[0]+S.slice(2):S,+O.slice(R+1)]}
function Tba(O){return O=R6g(Math.abs(O)),O?O[1]:NaN}
function $Q$(O,R){return function(S,Co){for(var kN=S.length,am=[],Im=0,EE=O[0],bo=0;kN>0&&EE>0;){bo+EE+1>Co&&(EE=Math.max(1,Co-bo));am.push(S.substring(kN-=EE,kN+EE));if((bo+=EE+1)>Co)break;EE=O[Im=(Im+1)%O.length]}return am.reverse().join(R)}}
function lRb(O){return function(R){return R.replace(/[0-9]/g,function(S){return O[+S]})}}
function SZE(O){return new uqo(O)}
function uqo(O){if(!(R=Q7Z.exec(O)))throw Error("Ce`"+O);var R;this.fill=R[1]||" ";this.align=R[2]||">";this.sign=R[3]||"-";this.symbol=R[4]||"";this.zero=!!R[5];this.width=R[6]&&+R[6];this.comma=!!R[7];this.precision=R[8]&&+R[8].slice(1);this.trim=!!R[9];this.type=R[10]||""}
function swY(O,R){R=R6g(O,R);if(!R)return O+"";O=R[0];R=R[1];return R<0?"0."+Array(-R).join("0")+O:O.length>R+1?O.slice(0,R+1)+"."+O.slice(R+1):O+Array(R-O.length+2).join("0")}
function Bi6(O){return O}
function mQ5(O){function R(EE){function bo(pY){var LC=O6,jE=$T,rw,Jt;if(pj==="c")jE=e5(pY)+jE,pY="";else{pY=+pY;var Vo=pY<0;pY=e5(Math.abs(pY),Lq);if(xI){var C0=pY.length,CG=1,T4=-1;a:for(;CG<C0;++CG)switch(pY[CG]){case ".":T4=rw=CG;break;case "0":T4===0&&(T4=CG);rw=CG;break;default:if(!+pY[CG])break a;T4>0&&(T4=0)}pY=T4>0?pY.slice(0,T4)+pY.slice(rw+1):pY}Vo&&+pY===0&&(Vo=!1);LC=(Vo?ah==="("?ah:"-":ah==="-"||ah==="("?"":ah)+LC;jE=(pj==="s"?tGg[8+gXS/3]:"")+jE+(Vo&&ah==="("?")":"");if(Ho)for(Vo=-1,
rw=pY.length;++Vo<rw;)if(Jt=pY.charCodeAt(Vo),48>Jt||Jt>57){jE=(Jt===46?kN+pY.slice(Vo+1):pY.slice(Vo))+jE;pY=pY.slice(0,Vo);break}}g5&&!Eq&&(pY=S(pY,Infinity));Jt=LC.length+pY.length+jE.length;Vo=Jt<HL?Array(HL-Jt+1).join(Kg):"";g5&&Eq&&(pY=S(Vo+pY,Vo.length?HL-jE.length:Infinity),Vo="");switch(J4){case "<":pY=LC+pY+jE+Vo;break;case "=":pY=LC+Vo+pY+jE;break;case "^":pY=Vo.slice(0,Jt=Vo.length>>1)+LC+pY+jE+Vo.slice(Jt);break;default:pY=Vo+LC+pY+jE}return am(pY)}
EE=SZE(EE);var Kg=EE.fill,J4=EE.align,ah=EE.sign,A4=EE.symbol,Eq=EE.zero,HL=EE.width,g5=EE.comma,Lq=EE.precision,xI=EE.trim,pj=EE.type;pj==="n"?(g5=!0,pj="g"):jwa[pj]||(Lq==null&&(Lq=12),xI=!0,pj="g");if(Eq||Kg==="0"&&J4==="=")Eq=!0,Kg="0",J4="=";var O6=A4==="$"?Co[0]:A4==="#"&&/[boxX]/.test(pj)?"0"+pj.toLowerCase():"",$T=A4==="$"?Co[1]:/[%p]/.test(pj)?Im:"",e5=jwa[pj],Ho=/[defgprs%]/.test(pj);Lq=Lq==null?6:/[gprs]/.test(pj)?Math.max(1,Math.min(21,Lq)):Math.max(0,Math.min(20,Lq));bo.toString=function(){return EE+
""};
return bo}
var S=O.grouping&&O.thousands?$Q$(O.grouping,O.thousands):Bi6,Co=O.currency,kN=O.decimal,am=O.numerals?lRb(O.numerals):Bi6,Im=O.percent||"%";return{format:R,formatPrefix:function(EE,bo){var Kg=R((EE=SZE(EE),EE.type="f",EE));EE=Math.max(-8,Math.min(8,Math.floor(Tba(bo)/3)))*3;var J4=Math.pow(10,-EE),ah=tGg[8+EE/3];return function(A4){return Kg(J4*A4)+ah}}}}
function KV(){this.reset()}
function yBa(O,R,S){var Co=O.s=R+S,kN=Co-R;O.t=R-(Co-kN)+(S-kN)}
function L$N(O){return O>1?qZ:O<-1?-qZ:Math.asin(O)}
function aR5(){}
function cBY(O){var R=O[0];O=O[1];var S=x3(O);return[S*x3(R),S*u7(R),u7(O)]}
function ABX(O,R){return[O[1]*R[2]-O[2]*R[1],O[2]*R[0]-O[0]*R[2],O[0]*R[1]-O[1]*R[0]]}
function ZTS(O){var R=h6g(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=R;O[1]/=R;O[2]/=R}
function nUq(){var O=[],R;return{point:function(S,Co){R.push([S,Co])},
lineStart:function(){O.push(R=[])},
lineEnd:aR5,rejoin:function(){O.length>1&&O.push(O.pop().concat(O.shift()))},
result:function(){var S=O;O=[];R=null;return S}}}
function OZ1(O,R,S,Co){this.x=O;this.z=R;this.o=S;this.e=Co;this.v=!1;this.n=this.p=null}
function MI$(O,R,S,Co,kN){var am=[],Im=[];O.forEach(function(ah){if(!((A4=ah.length-1)<=0)){var A4,Eq=ah[0],HL=ah[A4],g5=Eq;if(Bh(g5[0]-HL[0])<1E-6&&Bh(g5[1]-HL[1])<1E-6){kN.lineStart();for(EE=0;EE<A4;++EE)kN.point((Eq=ah[EE])[0],Eq[1]);kN.lineEnd()}else am.push(A4=new OZ1(Eq,ah,null,!0)),Im.push(A4.o=new OZ1(Eq,null,A4,!1)),am.push(A4=new OZ1(HL,ah,null,!1)),Im.push(A4.o=new OZ1(HL,null,A4,!0))}});
if(am.length){Im.sort(R);pUa(am);pUa(Im);var EE=0;for(O=Im.length;EE<O;++EE)Im[EE].e=S=!S;S=am[0];for(var bo;;){for(var Kg=S,J4=!0;Kg.v;)if((Kg=Kg.n)===S)return;R=Kg.z;kN.lineStart();do{Kg.v=Kg.o.v=!0;if(Kg.e){if(J4)for(EE=0,O=R.length;EE<O;++EE)kN.point((bo=R[EE])[0],bo[1]);else Co(Kg.x,Kg.n.x,1,kN);Kg=Kg.n}else{if(J4)for(R=Kg.p.z,EE=R.length-1;EE>=0;--EE)kN.point((bo=R[EE])[0],bo[1]);else Co(Kg.x,Kg.p.x,-1,kN);Kg=Kg.p}Kg=Kg.o;R=Kg.z;J4=!J4}while(!Kg.v);kN.lineEnd()}}}
function pUa(O){if(R=O.length){for(var R,S=0,Co=O[0],kN;++S<R;)Co.n=kN=O[S],kN.p=Co,Co=kN;Co.n=kN=O[0];kN.p=Co}}
function rrl(O){return O.length>1}
function H$Y(O,R){return((O=O.x)[0]<0?O[1]-qZ-1E-6:qZ-O[1])-((R=R.x)[0]<0?R[1]-qZ-1E-6:qZ-R[1])}
function dCm(){}
function eRa(O){return function(R,S){var Co=x3(R),kN=x3(S);Co=O(Co*kN);return[Co*kN*u7(R),Co*u7(S)]}}
function V6(O){return function(R,S){var Co=h6g(R*R+S*S),kN=O(Co),am=u7(kN);kN=x3(kN);return[zRL(R*am,Co*kN),L$N(Co&&S*am/Co)]}}
function UQa(O){var R=0,S=O.children,Co=S&&S.length;if(Co)for(;--Co>=0;)R+=S[Co].value;else R=1;O.value=R}
function COa(O,R){var S=new fL(O);O=+O.value&&(S.value=O.value);var Co,kN=[S],am,Im,EE,bo;for(R==null&&(R=vU3);Co=kN.pop();)if(O&&(Co.value=+Co.data.value),(Im=R(Co.data))&&(bo=Im.length))for(Co.children=Array(bo),EE=bo-1;EE>=0;--EE)kN.push(am=Co.children[EE]=new fL(Im[EE])),am.parent=Co,am.depth=Co.depth+1;return S.eachBefore(IR3)}
function vU3(O){return O.children}
function Wvf(O){O.data=O.data.data}
function IR3(O){var R=0;do O.height=R;while((O=O.parent)&&O.height<++R)}
function fL(O){this.data=O;this.depth=this.height=0;this.parent=null}
function Wr(O,R,S,Co){function kN(am){return O(am=new Date(+am)),am}
kN.floor=kN;kN.ceil=function(am){return O(am=new Date(am-1)),R(am,1),O(am),am};
kN.round=function(am){var Im=kN(am),EE=kN.ceil(am);return am-Im<EE-am?Im:EE};
kN.offset=function(am,Im){return R(am=new Date(+am),Im==null?1:Math.floor(Im)),am};
kN.range=function(am,Im,EE){var bo=[],Kg;am=kN.ceil(am);EE=EE==null?1:Math.floor(EE);if(!(am<Im&&EE>0))return bo;do bo.push(Kg=new Date(+am)),R(am,EE),O(am);while(Kg<am&&am<Im);return bo};
kN.filter=function(am){return Wr(function(Im){if(Im>=Im)for(;O(Im),!am(Im);)Im.setTime(Im-1)},function(Im,EE){if(Im>=Im)if(EE<0)for(;++EE<=0;)for(;R(Im,-1),!am(Im););
else for(;--EE>=0;)for(;R(Im,1),!am(Im););})};
S&&(kN.count=function(am,Im){DC4.setTime(+am);iB7.setTime(+Im);O(DC4);O(iB7);return Math.floor(S(DC4,iB7))},kN.every=function(am){am=Math.floor(am);
return isFinite(am)&&am>0?am>1?kN.filter(Co?function(Im){return Co(Im)%am===0}:function(Im){return kN.count(0,Im)%am===0}):kN:null});
return kN}
function bW(O){return Wr(function(R){R.setDate(R.getDate()-(R.getDay()+7-O)%7);R.setHours(0,0,0,0)},function(R,S){R.setDate(R.getDate()+S*7)},function(R,S){return(S-R-(S.getTimezoneOffset()-R.getTimezoneOffset())*6E4)/6048E5})}
function X$(O){return Wr(function(R){R.setUTCDate(R.getUTCDate()-(R.getUTCDay()+7-O)%7);R.setUTCHours(0,0,0,0)},function(R,S){R.setUTCDate(R.getUTCDate()+S*7)},function(R,S){return(S-R)/6048E5})}
function Pcf(O){if(0<=O.y&&O.y<100){var R=new Date(-1,O.m,O.d,O.H,O.M,O.S,O.L);R.setFullYear(O.y);return R}return new Date(O.y,O.m,O.d,O.H,O.M,O.S,O.L)}
function EIE(O){if(0<=O.y&&O.y<100){var R=new Date(Date.UTC(-1,O.m,O.d,O.H,O.M,O.S,O.L));R.setUTCFullYear(O.y);return R}return new Date(Date.UTC(O.y,O.m,O.d,O.H,O.M,O.S,O.L))}
function SH(O){return{y:O,m:0,d:1,H:0,M:0,S:0,L:0}}
function RcC(O){function R(jE,rw){return function(Jt){var Vo=[],C0=-1,CG=0,T4=jE.length,IX,iL;for(Jt instanceof Date||(Jt=new Date(+Jt));++C0<T4;)if(jE.charCodeAt(C0)===37){Vo.push(jE.slice(CG,C0));(CG=wpT[IX=jE.charAt(++C0)])!=null?IX=jE.charAt(++C0):CG=IX==="e"?" ":"0";if(iL=rw[IX])IX=iL(Jt,CG);Vo.push(IX);CG=C0+1}Vo.push(jE.slice(CG,C0));return Vo.join("")}}
function S(jE,rw){return function(Jt){var Vo=SH(1900);if(Co(Vo,jE,Jt,0)!=Jt.length)return null;if("Q"in Vo)return new Date(Vo.Q);"p"in Vo&&(Vo.H=Vo.H%12+Vo.p*12);if("V"in Vo){if(Vo.V<1||Vo.V>53)return null;"w"in Vo||(Vo.w=1);if("Z"in Vo){Jt=EIE(SH(Vo.y));var C0=Jt.getUTCDay();Jt=C0>4||C0===0?Nnk.ceil(Jt):Nnk(Jt);Jt=K96.offset(Jt,(Vo.V-1)*7);Vo.y=Jt.getUTCFullYear();Vo.m=Jt.getUTCMonth();Vo.d=Jt.getUTCDate()+(Vo.w+6)%7}else Jt=rw(SH(Vo.y)),C0=Jt.getDay(),Jt=C0>4||C0===0?s0L.ceil(Jt):s0L(Jt),Jt=ovg.offset(Jt,
(Vo.V-1)*7),Vo.y=Jt.getFullYear(),Vo.m=Jt.getMonth(),Vo.d=Jt.getDate()+(Vo.w+6)%7}else if("W"in Vo||"U"in Vo)"w"in Vo||(Vo.w="u"in Vo?Vo.u%7:"W"in Vo?1:0),C0="Z"in Vo?EIE(SH(Vo.y)).getUTCDay():rw(SH(Vo.y)).getDay(),Vo.m=0,Vo.d="W"in Vo?(Vo.w+6)%7+Vo.W*7-(C0+5)%7:Vo.w+Vo.U*7-(C0+6)%7;return"Z"in Vo?(Vo.H+=Vo.Z/100|0,Vo.M+=Vo.Z%100,EIE(Vo)):rw(Vo)}}
function Co(jE,rw,Jt,Vo){for(var C0=0,CG=rw.length,T4=Jt.length,IX;C0<CG;){if(Vo>=T4)return-1;IX=rw.charCodeAt(C0++);if(IX===37){if(IX=rw.charAt(C0++),IX=LC[IX in wpT?rw.charAt(C0++):IX],!IX||(Vo=IX(jE,Jt,Vo))<0)return-1}else if(IX!=Jt.charCodeAt(Vo++))return-1}return Vo}
var kN=O.dateTime,am=O.date,Im=O.time,EE=O.periods,bo=O.days,Kg=O.shortDays,J4=O.months,ah=O.shortMonths,A4=uU(EE),Eq=dl(EE),HL=uU(bo),g5=dl(bo),Lq=uU(Kg),xI=dl(Kg),pj=uU(J4),O6=dl(J4),$T=uU(ah),e5=dl(ah),Ho={a:function(jE){return Kg[jE.getDay()]},
A:function(jE){return bo[jE.getDay()]},
b:function(jE){return ah[jE.getMonth()]},
B:function(jE){return J4[jE.getMonth()]},
c:null,d:GhY,e:GhY,f:LvW,H:hcL,I:O$a,j:EU5,L:YDa,m:Fv$,M:VIo,p:function(jE){return EE[+(jE.getHours()>=12)]},
Q:b9L,s:Xps,S:fRZ,u:SaW,U:uOZ,V:dQl,w:DQW,W:i$5,x:null,X:null,y:NbL,Y:s7f,Z:BbY,"%":J_L},pY={a:function(jE){return Kg[jE.getUTCDay()]},
A:function(jE){return bo[jE.getUTCDay()]},
b:function(jE){return ah[jE.getUTCMonth()]},
B:function(jE){return J4[jE.getUTCMonth()]},
c:null,d:khc,e:khc,f:tIv,H:gUf,I:j7o,j:yrY,L:qDc,m:crY,M:ArL,p:function(jE){return EE[+(jE.getUTCHours()>=12)]},
Q:b9L,s:Xps,S:Z$C,u:pKf,U:eEa,V:zEL,w:CWC,W:wOl,x:null,X:null,y:Kqf,Y:o0C,Z:GMv,"%":J_L},LC={a:function(jE,rw,Jt){return(rw=Lq.exec(rw.slice(Jt)))?(jE.w=xI[rw[0].toLowerCase()],Jt+rw[0].length):-1},
A:function(jE,rw,Jt){return(rw=HL.exec(rw.slice(Jt)))?(jE.w=g5[rw[0].toLowerCase()],Jt+rw[0].length):-1},
b:function(jE,rw,Jt){return(rw=$T.exec(rw.slice(Jt)))?(jE.m=e5[rw[0].toLowerCase()],Jt+rw[0].length):-1},
B:function(jE,rw,Jt){return(rw=pj.exec(rw.slice(Jt)))?(jE.m=O6[rw[0].toLowerCase()],Jt+rw[0].length):-1},
c:function(jE,rw,Jt){return Co(jE,kN,rw,Jt)},
d:xNg,e:xNg,f:Ydq,H:THT,I:THT,j:bDb,L:XOL,m:Jzb,M:kMW,p:function(jE,rw,Jt){return(rw=A4.exec(rw.slice(Jt)))?(jE.p=Eq[rw[0].toLowerCase()],Jt+rw[0].length):-1},
Q:qdb,s:xME,S:TFf,u:$ML,U:lQY,V:Qz3,w:mMC,W:aQ5,x:function(jE,rw,Jt){return Co(jE,am,rw,Jt)},
X:function(jE,rw,Jt){return Co(jE,Im,rw,Jt)},
y:n0$,Y:MUa,Z:rzq,"%":HDY};Ho.x=R(am,Ho);Ho.X=R(Im,Ho);Ho.c=R(kN,Ho);pY.x=R(am,pY);pY.X=R(Im,pY);pY.c=R(kN,pY);return{format:function(jE){var rw=R(jE,Ho);rw.toString=function(){return jE};
return rw},
parse:function(jE){var rw=S(jE,Pcf);rw.toString=function(){return jE};
return rw},
utcFormat:function(jE){var rw=R(jE,pY);rw.toString=function(){return jE};
return rw},
utcParse:function(jE){var rw=S(jE,EIE);rw.toString=function(){return jE};
return rw}}}
function IV(O,R,S){var Co=O<0?"-":"";O=(Co?-O:O)+"";var kN=O.length;return Co+(kN<S?Array(S-kN+1).join(R)+O:O)}
function UMq(O){return O.replace(v03,"\\$&")}
function uU(O){return new RegExp("^(?:"+O.map(UMq).join("|")+")","i")}
function dl(O){for(var R={},S=-1,Co=O.length;++S<Co;)R[O[S].toLowerCase()]=S;return R}
function mMC(O,R,S){return(R=E6.exec(R.slice(S,S+1)))?(O.w=+R[0],S+R[0].length):-1}
function $ML(O,R,S){return(R=E6.exec(R.slice(S,S+1)))?(O.u=+R[0],S+R[0].length):-1}
function lQY(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.U=+R[0],S+R[0].length):-1}
function Qz3(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.V=+R[0],S+R[0].length):-1}
function aQ5(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.W=+R[0],S+R[0].length):-1}
function MUa(O,R,S){return(R=E6.exec(R.slice(S,S+4)))?(O.y=+R[0],S+R[0].length):-1}
function n0$(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.y=+R[0]+(+R[0]>68?1900:2E3),S+R[0].length):-1}
function rzq(O,R,S){return(R=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(R.slice(S,S+6)))?(O.Z=R[1]?0:-(R[2]+(R[3]||"00")),S+R[0].length):-1}
function Jzb(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.m=R[0]-1,S+R[0].length):-1}
function xNg(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.d=+R[0],S+R[0].length):-1}
function bDb(O,R,S){return(R=E6.exec(R.slice(S,S+3)))?(O.m=0,O.d=+R[0],S+R[0].length):-1}
function THT(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.H=+R[0],S+R[0].length):-1}
function kMW(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.M=+R[0],S+R[0].length):-1}
function TFf(O,R,S){return(R=E6.exec(R.slice(S,S+2)))?(O.S=+R[0],S+R[0].length):-1}
function XOL(O,R,S){return(R=E6.exec(R.slice(S,S+3)))?(O.L=+R[0],S+R[0].length):-1}
function Ydq(O,R,S){return(R=E6.exec(R.slice(S,S+6)))?(O.L=Math.floor(R[0]/1E3),S+R[0].length):-1}
function HDY(O,R,S){return(O=IQ3.exec(R.slice(S,S+1)))?S+O[0].length:-1}
function qdb(O,R,S){return(R=E6.exec(R.slice(S)))?(O.Q=+R[0],S+R[0].length):-1}
function xME(O,R,S){return(R=E6.exec(R.slice(S)))?(O.Q=+R[0]*1E3,S+R[0].length):-1}
function GhY(O,R){return IV(O.getDate(),R,2)}
function hcL(O,R){return IV(O.getHours(),R,2)}
function O$a(O,R){return IV(O.getHours()%12||12,R,2)}
function EU5(O,R){return IV(1+ovg.count(dg(O),O),R,3)}
function YDa(O,R){return IV(O.getMilliseconds(),R,3)}
function LvW(O,R){return YDa(O,R)+"000"}
function Fv$(O,R){return IV(O.getMonth()+1,R,2)}
function VIo(O,R){return IV(O.getMinutes(),R,2)}
function fRZ(O,R){return IV(O.getSeconds(),R,2)}
function SaW(O){O=O.getDay();return O===0?7:O}
function uOZ(O,R){return IV(Wq$.count(dg(O),O),R,2)}
function dQl(O,R){var S=O.getDay();O=S>=4||S===0?BnN(O):BnN.ceil(O);return IV(BnN.count(dg(O),O)+(dg(O).getDay()===4),R,2)}
function DQW(O){return O.getDay()}
function i$5(O,R){return IV(s0L.count(dg(O),O),R,2)}
function NbL(O,R){return IV(O.getFullYear()%100,R,2)}
function s7f(O,R){return IV(O.getFullYear()%1E4,R,4)}
function BbY(O){O=O.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+IV(O/60|0,"0",2)+IV(O%60,"0",2)}
function khc(O,R){return IV(O.getUTCDate(),R,2)}
function gUf(O,R){return IV(O.getUTCHours(),R,2)}
function j7o(O,R){return IV(O.getUTCHours()%12||12,R,2)}
function yrY(O,R){return IV(1+K96.count(Dp(O),O),R,3)}
function qDc(O,R){return IV(O.getUTCMilliseconds(),R,3)}
function tIv(O,R){return qDc(O,R)+"000"}
function crY(O,R){return IV(O.getUTCMonth()+1,R,2)}
function ArL(O,R){return IV(O.getUTCMinutes(),R,2)}
function Z$C(O,R){return IV(O.getUTCSeconds(),R,2)}
function pKf(O){O=O.getUTCDay();return O===0?7:O}
function eEa(O,R){return IV(PW3.count(Dp(O),O),R,2)}
function zEL(O,R){var S=O.getUTCDay();O=S>=4||S===0?tN1(O):tN1.ceil(O);return IV(tN1.count(Dp(O),O)+(Dp(O).getUTCDay()===4),R,2)}
function CWC(O){return O.getUTCDay()}
function wOl(O,R){return IV(Nnk.count(Dp(O),O),R,2)}
function Kqf(O,R){return IV(O.getUTCFullYear()%100,R,2)}
function o0C(O,R){return IV(O.getUTCFullYear()%1E4,R,4)}
function GMv(){return"+0000"}
function J_L(){return"%"}
function b9L(O){return+O}
function Xps(O){return Math.floor(+O/1E3)}
function Tm(O){for(var R=O.length/6|0,S=Array(R),Co=0;Co<R;)S[Co]="#"+O.slice(Co*6,++Co*6);return S}
function w3(O){return REC(O[O.length-1])}
function F$g(O){var R=O.length;return function(S){return O[Math.max(0,Math.min(R-1,Math.floor(S*R)))]}}
function $Na(O){this._context=O}
function lNo(O){this._curve=O}
function Q$L(O,R,S){var Co=O._x1-O._x0;R-=O._x1;var kN=(O._y1-O._y0)/(Co||R<0&&-0);O=(S-O._y1)/(R||Co<0&&-0);return((kN<0?-1:1)+(O<0?-1:1))*Math.min(Math.abs(kN),Math.abs(O),.5*Math.abs((kN*R+O*Co)/(Co+R)))||0}
function mN6(O,R){var S=O._x1-O._x0;return S?(3*(O._y1-O._y0)/S-R)/2:R}
function gEE(O,R,S){var Co=O._x0,kN=O._x1,am=O._y1,Im=(kN-Co)/3;O._context.bezierCurveTo(Co+Im,O._y0+Im*R,kN-Im,am-Im*S,kN,am)}
function j0g(O){this._context=O}
function aNa(O){this._context=O}
function Da(O,R,S){this.k=O;this.x=R;this.y=S}
(function(O){O.length===1&&(O=z(O));return{left:function(R,S,Co,kN){Co==null&&(Co=0);kN==null&&(kN=R.length);for(;Co<kN;){var am=Co+kN>>>1;O(R[am],S)<0?Co=am+1:kN=am}return Co},
right:function(R,S,Co,kN){Co==null&&(Co=0);kN==null&&(kN=R.length);for(;Co<kN;){var am=Co+kN>>>1;O(R[am],S)>0?kN=am:Co=am+1}return Co}}})(e);
var vvC={value:function(){}};
w.prototype=C.prototype={constructor:w,on:function(O,R){var S=this._,Co=K(O+"",S),kN,am=-1,Im=Co.length;if(arguments.length<2)for(;++am<Im;){var EE;if(EE=kN=(O=Co[am]).type){a:{EE=S[kN];for(var bo=0,Kg=EE.length;bo<Kg;++bo)if((kN=EE[bo]).name===O.name){kN=kN.value;break a}kN=void 0}EE=kN}if(EE)return kN}else{if(R!=null&&typeof R!=="function")throw Error("De`"+R);for(;++am<Im;)if(kN=(O=Co[am]).type)S[kN]=G(S[kN],O.name,R);else if(R==null)for(kN in S)S[kN]=G(S[kN],O.name,null);return this}},
copy:function(){var O={},R=this._,S;for(S in R)O[S]=R[S].slice();return new w(O)},
call:function(O,R){if((kN=arguments.length-2)>0)for(var S=Array(kN),Co=0,kN,am;Co<kN;++Co)S[Co]=arguments[Co+2];if(!this._.hasOwnProperty(O))throw Error("xe`"+O);am=this._[O];Co=0;for(kN=am.length;Co<kN;++Co)am[Co].value.apply(R,S)},
apply:function(O,R,S){if(!this._.hasOwnProperty(O))throw Error("xe`"+O);O=this._[O];for(var Co=0,kN=O.length;Co<kN;++Co)O[Co].value.apply(R,S)}};
var k3={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/"},nvL=function(O){return function(){return this.matches(O)}};
if(typeof document!=="undefined"){var iU=document.documentElement;if(!iU.matches){var Lqb=iU.webkitMatchesSelector||iU.msMatchesSelector||iU.mozMatchesSelector||iU.oMatchesSelector;nvL=function(O){return function(){return Lqb.call(this,O)}}}}var MeS=nvL;
n.prototype={constructor:n,appendChild:function(O){return this._parent.insertBefore(O,this._next)},
insertBefore:function(O,R){return this._parent.insertBefore(O,R)},
querySelector:function(O){return this._parent.querySelector(O)},
querySelectorAll:function(O){return this._parent.querySelectorAll(O)}};
var I5L={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(I5L={mouseenter:"mouseover",mouseleave:"mouseout"}));var IN5=[null];mc.prototype=ob.prototype={constructor:mc,select:function(O){typeof O!=="function"&&(O=m(O));for(var R=this._groups,S=R.length,Co=Array(S),kN=0;kN<S;++kN)for(var am=R[kN],Im=am.length,EE=Co[kN]=Array(Im),bo,Kg,J4=0;J4<Im;++J4)(bo=am[J4])&&(Kg=O.call(bo,bo.__data__,J4,am))&&("__data__"in bo&&(Kg.__data__=bo.__data__),EE[J4]=Kg);return new mc(Co,
this._parents)},
filter:function(O){typeof O!=="function"&&(O=MeS(O));for(var R=this._groups,S=R.length,Co=Array(S),kN=0;kN<S;++kN)for(var am=R[kN],Im=am.length,EE=Co[kN]=[],bo,Kg=0;Kg<Im;++Kg)(bo=am[Kg])&&O.call(bo,bo.__data__,Kg,am)&&EE.push(bo);return new mc(Co,this._parents)},
data:function(O,R){if(!O)return Eq=Array(this.size()),Kg=-1,this.each(function(pj){Eq[++Kg]=pj}),Eq;
var S=R?L:I,Co=this._parents,kN=this._groups;typeof O!=="function"&&(O=H(O));for(var am=kN.length,Im=Array(am),EE=Array(am),bo=Array(am),Kg=0;Kg<am;++Kg){var J4=Co[Kg],ah=kN[Kg],A4=ah.length,Eq=O.call(J4,J4&&J4.__data__,Kg,Co),HL=Eq.length,g5=EE[Kg]=Array(HL),Lq=Im[Kg]=Array(HL);A4=bo[Kg]=Array(A4);S(J4,ah,g5,Lq,A4,Eq,R);ah=J4=0;for(var xI;J4<HL;++J4)if(A4=g5[J4]){for(J4>=ah&&(ah=J4+1);!(xI=Lq[ah])&&++ah<HL;);A4._next=xI||null}}Im=new mc(Im,Co);Im._enter=EE;Im._exit=bo;return Im},
enter:function(){return new mc(this._enter||this._groups.map(a),this._parents)},
exit:function(){return new mc(this._exit||this._groups.map(a),this._parents)},
merge:function(O){var R=this._groups;O=O._groups;for(var S=R.length,Co=Math.min(S,O.length),kN=Array(S),am=0;am<Co;++am)for(var Im=R[am],EE=O[am],bo=Im.length,Kg=kN[am]=Array(bo),J4,ah=0;ah<bo;++ah)if(J4=Im[ah]||EE[ah])Kg[ah]=J4;for(;am<S;++am)kN[am]=R[am];return new mc(kN,this._parents)},
order:function(){for(var O=this._groups,R=-1,S=O.length;++R<S;)for(var Co=O[R],kN=Co.length-1,am=Co[kN],Im;--kN>=0;)if(Im=Co[kN])am&&am!==Im.nextSibling&&am.parentNode.insertBefore(Im,am),am=Im;return this},
sort:function(O){function R(ah,A4){return ah&&A4?O(ah.__data__,A4.__data__):!ah-!A4}
O||(O=h);for(var S=this._groups,Co=S.length,kN=Array(Co),am=0;am<Co;++am){for(var Im=S[am],EE=Im.length,bo=kN[am]=Array(EE),Kg,J4=0;J4<EE;++J4)if(Kg=Im[J4])bo[J4]=Kg;bo.sort(R)}return(new mc(kN,this._parents)).order()},
call:function(){var O=arguments[0];arguments[0]=this;O.apply(null,arguments);return this},
nodes:function(){var O=Array(this.size()),R=-1;this.each(function(){O[++R]=this});
return O},
node:function(){for(var O=this._groups,R=0,S=O.length;R<S;++R)for(var Co=O[R],kN=0,am=Co.length;kN<am;++kN){var Im=Co[kN];if(Im)return Im}return null},
size:function(){var O=0;this.each(function(){++O});
return O},
empty:function(){return!this.node()},
each:function(O){for(var R=this._groups,S=0,Co=R.length;S<Co;++S)for(var kN=R[S],am=0,Im=kN.length,EE;am<Im;++am)(EE=kN[am])&&O.call(EE,EE.__data__,am,kN);return this},
attr:function(O,R){var S=X(O);if(arguments.length<2){var Co=this.node();return S.local?Co.getAttributeNS(S.space,S.local):Co.getAttribute(S)}return this.each((R==null?S.local?N:E:typeof R==="function"?S.local?Z:y:S.local?g:D)(S,R))},
style:function(O,R,S){return arguments.length>1?this.each((R==null?YN:typeof R==="function"?v1:Jk)(O,R,S==null?"":S)):lg(this.node(),O)},
property:function(O,R){return arguments.length>1?this.each((R==null?M5:typeof R==="function"?ug:fo)(O,R)):this.node()[O]},
text:function(O){return arguments.length?this.each(O==null?sE:(typeof O==="function"?qY:w6)(O)):this.node().textContent},
html:function(O){return arguments.length?this.each(O==null?y1:(typeof O==="function"?Ha:Qa)(O)):this.node().innerHTML},
append:function(O){var R=typeof O==="function"?O:T(O);return this.select(function(){return this.appendChild(R.apply(this,arguments))})},
insert:function(O,R){var S=typeof O==="function"?O:T(O),Co=R==null?OU:typeof R==="function"?R:m(R);return this.select(function(){return this.insertBefore(S.apply(this,arguments),Co.apply(this,arguments)||null)})},
remove:function(){return this.each(ab)},
clone:function(O){return this.select(O?$N:Pa)},
datum:function(O){return arguments.length?this.property("__data__",O):this.node().__data__},
on:function(O,R,S){var Co=Ba(O+""),kN=Co.length,am;if(arguments.length<2){var Im=this.node().__on;if(Im)for(var EE=0,bo=Im.length,Kg;EE<bo;++EE){var J4=0;for(Kg=Im[EE];J4<kN;++J4)if((am=Co[J4]).type===Kg.type&&am.name===Kg.name)return Kg.value}}else{Im=R?eE:r6;S==null&&(S=!1);for(J4=0;J4<kN;++J4)this.each(Im(Co[J4],R,S));return this}},
dispatch:function(O,R){return this.each((typeof R==="function"?lo:g6)(O,R))}};
var W9l=0;Ak.prototype=function(){return new Ak}.prototype={constructor:Ak,
get:function(O){for(var R=this._;!(R in O);)if(!(O=O.parentNode))return;return O[R]},
set:function(O,R){return O[this._]=R},
remove:function(O){return this._ in O&&delete O[this._]},
toString:function(){return this._}};
var iv=1/.7,POv=/^#([0-9a-f]{3})$/,RRf=/^#([0-9a-f]{6})$/,L9$=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),hRo=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),O9o=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Evb=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*\\)$"),
F9E=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Veq=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*\\)$"),Wlg={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};
wf(CY,nv,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
wf(Wl,jS,$a(CY,{brighter:function(O){O=O==null?iv:Math.pow(iv,O);return new Wl(this.r*O,this.g*O,this.b*O,this.opacity)},
darker:function(O){O=O==null?.7:Math.pow(.7,O);return new Wl(this.r*O,this.g*O,this.b*O,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"#"+b$(this.r)+b$(this.g)+b$(this.b)},
toString:function(){var O=this.opacity;O=isNaN(O)?1:Math.max(0,Math.min(1,O));return(O===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))+(O===1?")":", "+O+")")}}));
wf(r9,D0,$a(CY,{brighter:function(O){O=O==null?iv:Math.pow(iv,O);return new r9(this.h,this.s,this.l*O,this.opacity)},
darker:function(O){O=O==null?.7:Math.pow(.7,O);return new r9(this.h,this.s,this.l*O,this.opacity)},
rgb:function(){var O=this.h%360+(this.h<0)*360,R=this.l,S=R+(R<.5?R:1-R)*(isNaN(O)||isNaN(this.s)?0:this.s);R=2*R-S;return new Wl(Fg(O>=240?O-240:O+120,R,S),Fg(O,R,S),Fg(O<120?O+240:O-120,R,S),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 PTo=Math.PI/180,hBc=180/Math.PI,LlL=4/29,Si=6/29,RBX=3*Si*Si,fNZ=Si*Si*Si;wf(P1,function(O,R,S,Co){return arguments.length===1?ML(O):new P1(O,R,S,Co==null?1:Co)},$a(CY,{brighter:function(O){return new P1(this.l+18*(O==null?1:O),this.a,this.b,this.opacity)},
darker:function(O){return new P1(this.l-18*(O==null?1:O),this.a,this.b,this.opacity)},
rgb:function(){var O=(this.l+16)/116,R=isNaN(this.a)?O:O+this.a/500,S=isNaN(this.b)?O:O-this.b/200;R=.96422*jh(R);O=1*jh(O);S=.82521*jh(S);return new Wl(UU(3.1338561*R-1.6168667*O-.4906146*S),UU(-.9787684*R+1.9161415*O+.033454*S),UU(.0719453*R-.2289914*O+1.4052427*S),this.opacity)}}));
wf(Lg,Oq,$a(CY,{brighter:function(O){return new Lg(this.h,this.c,this.l+18*(O==null?1:O),this.opacity)},
darker:function(O){return new Lg(this.h,this.c,this.l-18*(O==null?1:O),this.opacity)},
rgb:function(){return ML(this).rgb()}}));
var OTX=1.78277*-.29227-.1347134789;wf(gf,Ih,$a(CY,{brighter:function(O){O=O==null?iv:Math.pow(iv,O);return new gf(this.h,this.s,this.l*O,this.opacity)},
darker:function(O){O=O==null?.7:Math.pow(.7,O);return new gf(this.h,this.s,this.l*O,this.opacity)},
rgb:function(){var O=isNaN(this.h)?0:(this.h+120)*PTo,R=+this.l,S=isNaN(this.s)?0:this.s*R*(1-R),Co=Math.cos(O);O=Math.sin(O);return new Wl(255*(R+S*(-.14861*Co+1.78277*O)),255*(R+S*(-.29227*Co+-.90649*O)),255*(R+1.97294*Co*S),this.opacity)}}));
var VGs=function S(R){function Co(am,Im){var EE=kN((am=jS(am)).r,(Im=jS(Im)).r),bo=kN(am.g,Im.g),Kg=kN(am.b,Im.b),J4=bp(am.opacity,Im.opacity);return function(ah){am.r=EE(ah);am.g=bo(ah);am.b=Kg(ah);am.opacity=J4(ah);return am+""}}
var kN=cC(R);Co.gamma=S;return Co}(1),REC=rQ(function(R){var S=R.length-1;
return function(Co){var kN=Co<=0?Co=0:Co>=1?(Co=1,S-1):Math.floor(Co*S),am=R[kN],Im=R[kN+1];return BL((Co-kN/S)*S,kN>0?R[kN-1]:2*am-Im,am,Im,kN<S-1?R[kN+2]:2*Im-am)}});
rQ(function(R){var S=R.length;return function(Co){var kN=Math.floor(((Co%=1)<0?++Co:Co)*S);return BL((Co-kN/S)*S,R[(kN+S-1)%S],R[kN%S],R[(kN+1)%S],R[(kN+2)%S])}});
var hVm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,OBs=new RegExp(hVm.source,"g"),EXs=180/Math.PI,y5o={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Nu,c51,r_a,VYg,hE5=n4(function(R){if(R==="none")return y5o;Nu||(Nu=document.createElement("DIV"),c51=document.documentElement,r_a=document.defaultView);Nu.style.transform=R;R=r_a.getComputedStyle(c51.appendChild(Nu),null).getPropertyValue("transform");c51.removeChild(Nu);R=R.slice(7,-1).split(",");return h_(+R[0],+R[1],+R[2],+R[3],
+R[4],+R[5])},"px, ","px)","deg)"),OD$=n4(function(R){if(R==null)return y5o;
VYg||(VYg=document.createElementNS("http://www.w3.org/2000/svg","g"));VYg.setAttribute("transform",R);if(!(R=VYg.transform.baseVal.consolidate()))return y5o;R=R.matrix;return h_(R.a,R.b,R.c,R.d,R.e,R.f)},", ",")",")");
d5(tt);d5(bp);OD(tt);OD(bp);Sl(tt);var A5g=Sl(bp),uv=0,ho=0,EP=0,IVE,OP,vIg=0,Y0=0,UDN=0,LL=typeof performance==="object"&&performance.now?performance:Date,Flo=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(R){setTimeout(R,17)};
yK.prototype=ED.prototype={constructor:yK,restart:function(R,S,Co){if(typeof R!=="function")throw new TypeError("Ee");Co=(Co==null?j1():+Co)+(S==null?0:+S);this._next||OP===this||(OP?OP._next=this:IVE=this,OP=this);this._call=R;this._time=Co;N2()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,N2())}};
var SD5=C("start","end","interrupt"),utZ=[],E0Y=ob.prototype.constructor,H9h=0,NS=ob.prototype;s2.prototype=function(R){return ob().transition(R)}.prototype={constructor:s2,
select:function(R){var S=this._name,Co=this._id;typeof R!=="function"&&(R=m(R));for(var kN=this._groups,am=kN.length,Im=Array(am),EE=0;EE<am;++EE)for(var bo=kN[EE],Kg=bo.length,J4=Im[EE]=Array(Kg),ah,A4,Eq=0;Eq<Kg;++Eq)(ah=bo[Eq])&&(A4=R.call(ah,ah.__data__,Eq,bo))&&("__data__"in ah&&(A4.__data__=ah.__data__),J4[Eq]=A4,zX(J4[Eq],S,Co,Eq,J4,ww(ah,Co)));return new s2(Im,this._parents,S,Co)},
filter:function(R){typeof R!=="function"&&(R=MeS(R));for(var S=this._groups,Co=S.length,kN=Array(Co),am=0;am<Co;++am)for(var Im=S[am],EE=Im.length,bo=kN[am]=[],Kg,J4=0;J4<EE;++J4)(Kg=Im[J4])&&R.call(Kg,Kg.__data__,J4,Im)&&bo.push(Kg);return new s2(kN,this._parents,this._name,this._id)},
merge:function(R){if(R._id!==this._id)throw Error();var S=this._groups;R=R._groups;for(var Co=S.length,kN=Math.min(Co,R.length),am=Array(Co),Im=0;Im<kN;++Im)for(var EE=S[Im],bo=R[Im],Kg=EE.length,J4=am[Im]=Array(Kg),ah,A4=0;A4<Kg;++A4)if(ah=EE[A4]||bo[A4])J4[A4]=ah;for(;Im<Co;++Im)am[Im]=S[Im];return new s2(am,this._parents,this._name,this._id)},
selection:function(){return new E0Y(this._groups,this._parents)},
transition:function(){for(var R=this._name,S=this._id,Co=++H9h,kN=this._groups,am=kN.length,Im=0;Im<am;++Im)for(var EE=kN[Im],bo=EE.length,Kg,J4=0;J4<bo;++J4)if(Kg=EE[J4]){var ah=ww(Kg,S);zX(Kg,R,Co,J4,EE,{time:ah.time+ah.delay+ah.duration,delay:0,duration:ah.duration,ease:ah.ease})}return new s2(kN,this._parents,R,Co)},
call:NS.call,nodes:NS.nodes,node:NS.node,size:NS.size,empty:NS.empty,each:NS.each,on:function(R,S){var Co=this._id;return arguments.length<2?ww(this.node(),Co).on.on(R):this.each(eco(Co,R,S))},
attr:function(R,S){var Co=X(R),kN=Co==="transform"?OD$:Ne;return this.attrTween(R,typeof S==="function"?(Co.local?BHY:s$Z)(Co,kN,Ti(this,"attr."+R,S)):S==null?(Co.local?DN3:dNY)(Co):(Co.local?NHb:i9$)(Co,kN,S+""))},
attrTween:function(R,S){var Co="attr."+R;if(arguments.length<2)return(Co=this.tween(Co))&&Co._value;if(S==null)return this.tween(Co,null);if(typeof S!=="function")throw Error();var kN=X(R);return this.tween(Co,(kN.local?tel:gvq)(kN,S))},
style:function(R,S,Co){var kN=R==="transform"?hE5:Ne;return S==null?this.styleTween(R,CcY(R,kN)).on("end.style."+R,wKo(R)):this.styleTween(R,typeof S==="function"?oUo(R,kN,Ti(this,"style."+R,S)):Kv$(R,kN,S+""),Co)},
styleTween:function(R,S,Co){var kN="style."+R;if(arguments.length<2)return(kN=this.tween(kN))&&kN._value;if(S==null)return this.tween(kN,null);if(typeof S!=="function")throw Error();return this.tween(kN,G_f(R,S,Co==null?"":Co))},
text:function(R){return this.tween("text",typeof R==="function"?b$b(Ti(this,"text",R)):YaE(R==null?"":R+""))},
remove:function(){return this.on("end.remove",zcW(this._id))},
tween:function(R,S){var Co=this._id;if(arguments.length<2){Co=ww(this.node(),Co).tween;for(var kN=0,am=Co.length,Im;kN<am;++kN)if((Im=Co[kN]).name===R)return Im.value;return null}return this.each((S==null?DH:zN)(Co,R,S))},
delay:function(R){var S=this._id;return arguments.length?this.each((typeof R==="function"?j$$:y_f)(S,R)):ww(this.node(),S).delay},
duration:function(R){var S=this._id;return arguments.length?this.each((typeof R==="function"?c_l:A_f)(S,R)):ww(this.node(),S).duration},
ease:function(R){var S=this._id;return arguments.length?this.each(Z95(S,R)):ww(this.node(),S).ease}};
var ZB1={time:null,delay:0,duration:250,ease:function(R){return((R*=2)<=1?R*R*R:(R-=2)*R*R+2)/2}};
ob.prototype.transition=function(R){var S;if(R instanceof s2){var Co=R._id;R=R._name}else Co=++H9h,(S=ZB1).time=j1(),R=R==null?null:R+"";for(var kN=this._groups,am=kN.length,Im=0;Im<am;++Im)for(var EE=kN[Im],bo=EE.length,Kg,J4=0;J4<bo;++J4)if(Kg=EE[J4]){var ah=Kg,A4=R,Eq=Co,HL=J4,g5=EE,Lq;if(!(Lq=S))a:{Lq=void 0;for(var xI=Co;!(Lq=Kg.__transition)||!(Lq=Lq[xI]);)if(!(Kg=Kg.parentNode)){Lq=(ZB1.time=j1(),ZB1);break a}}zX(ah,A4,Eq,HL,g5,Lq)}return new s2(kN,this._parents,R,Co)};
["e","w"].map(EE1);["n","s"].map(EE1);"n e s w nw ne se sw".split(" ").map(EE1);Fy4.prototype=function(){return new Fy4}.prototype={constructor:Fy4,
moveTo:function(R,S){this._+="M"+(this._x0=this._x1=+R)+","+(this._y0=this._y1=+S)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(R,S){this._+="L"+(this._x1=+R)+","+(this._y1=+S)},
bezierCurveTo:function(R,S,Co,kN,am,Im){this._+="C"+ +R+","+ +S+","+ +Co+","+ +kN+","+(this._x1=+am)+","+(this._y1=+Im)},
rect:function(R,S,Co,kN){this._+="M"+(this._x0=this._x1=+R)+","+(this._y0=this._y1=+S)+"h"+ +Co+"v"+ +kN+"h"+-Co+"Z"},
toString:function(){return this._}};
W$1.prototype=f5o.prototype={constructor:W$1,has:function(R){return" "+R in this},
get:function(R){return this[" "+R]},
set:function(R,S){this[" "+R]=S;return this},
remove:function(R){R=" "+R;return R in this&&delete this[R]},
clear:function(){for(var R in this)R[0]===" "&&delete this[R]},
keys:function(){var R=[],S;for(S in this)S[0]===" "&&R.push(S.slice(1));return R},
values:function(){var R=[],S;for(S in this)S[0]===" "&&R.push(this[S]);return R},
entries:function(){var R=[],S;for(S in this)S[0]===" "&&R.push({key:S.slice(1),value:this[S]});return R},
size:function(){var R=0,S;for(S in this)S[0]===" "&&++R;return R},
empty:function(){for(var R in this)if(R[0]===" ")return!1;return!0},
each:function(R){for(var S in this)S[0]===" "&&R(this[S],S.slice(1),this)}};
var Jz=f5o.prototype;Pp8.prototype=function(R,S){var Co=new Pp8;if(R instanceof Pp8)R.each(function(Im){Co.add(Im)});
else if(R){var kN=-1,am=R.length;if(S==null)for(;++kN<am;)Co.add(R[kN]);else for(;++kN<am;)Co.add(S(R[kN],kN,R))}return Co}.prototype={constructor:Pp8,
has:Jz.has,add:function(R){this[" "+R]=R;return this},
remove:Jz.remove,clear:Jz.clear,values:Jz.keys,size:Jz.size,empty:Jz.empty,each:Jz.each};var ddc={},VN1={},FqW=uks(",").parse,VU5=uks("\t").parse;Ddc(FqW);Ddc(VU5);var KP=function(R,S,Co){S=new fkE(S==null?qaE:S,Co==null?xQq:Co,NaN,NaN,NaN,NaN);return R==null?S:S.addAll(R)}.prototype=fkE.prototype;
KP.copy=function(){var R=new fkE(this._x,this._y,this._x0,this._y0,this._x1,this._y1),S=this._root,Co,kN;if(!S)return R;if(!S.length)return R._root=Nic(S),R;for(Co=[{source:S,target:R._root=Array(4)}];S=Co.pop();)for(var am=0;am<4;++am)if(kN=S.source[am])kN.length?Co.push({source:kN,target:S.target[am]=Array(4)}):S.target[am]=Nic(kN);return R};
KP.add=function(R){var S=+this._x.call(null,R),Co=+this._y.call(null,R);return iTo(this.cover(S,Co),S,Co,R)};
KP.addAll=function(R){var S,Co,kN=R.length,am,Im,EE=Array(kN),bo=Array(kN),Kg=Infinity,J4=Infinity,ah=-Infinity,A4=-Infinity;for(Co=0;Co<kN;++Co)isNaN(am=+this._x.call(null,S=R[Co]))||isNaN(Im=+this._y.call(null,S))||(EE[Co]=am,bo[Co]=Im,am<Kg&&(Kg=am),am>ah&&(ah=am),Im<J4&&(J4=Im),Im>A4&&(A4=Im));ah<Kg&&(Kg=this._x0,ah=this._x1);A4<J4&&(J4=this._y0,A4=this._y1);this.cover(Kg,J4).cover(ah,A4);for(Co=0;Co<kN;++Co)iTo(this,EE[Co],bo[Co],R[Co]);return this};
KP.cover=function(R,S){if(isNaN(R=+R)||isNaN(S=+S))return this;var Co=this._x0,kN=this._y0,am=this._x1,Im=this._y1;if(isNaN(Co))am=(Co=Math.floor(R))+1,Im=(kN=Math.floor(S))+1;else if(Co>R||R>am||kN>S||S>Im){var EE=am-Co,bo=this._root,Kg;switch(Kg=(S<(kN+Im)/2)<<1|R<(Co+am)/2){case 0:do{var J4=Array(4);J4[Kg]=bo;bo=J4}while(EE*=2,am=Co+EE,Im=kN+EE,R>am||S>Im);break;case 1:do J4=Array(4),J4[Kg]=bo,bo=J4;while(EE*=2,Co=am-EE,Im=kN+EE,Co>R||S>Im);break;case 2:do J4=Array(4),J4[Kg]=bo,bo=J4;while(EE*=
2,am=Co+EE,kN=Im-EE,R>am||kN>S);break;case 3:do J4=Array(4),J4[Kg]=bo,bo=J4;while(EE*=2,Co=am-EE,kN=Im-EE,Co>R||kN>S)}this._root&&this._root.length&&(this._root=bo)}else return this;this._x0=Co;this._y0=kN;this._x1=am;this._y1=Im;return this};
KP.data=function(){var R=[];this.visit(function(S){if(!S.length){do R.push(S.data);while(S=S.next)}});
return R};
KP.extent=function(R){return arguments.length?this.cover(+R[0][0],+R[0][1]).cover(+R[1][0],+R[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
KP.find=function(R,S,Co){var kN=this._x0,am=this._y0,Im,EE,bo,Kg,J4=this._x1,ah=this._y1,A4=[],Eq=this._root,HL;Eq&&A4.push(new wO(Eq,kN,am,J4,ah));Co==null?Co=Infinity:(kN=R-Co,am=S-Co,J4=R+Co,ah=S+Co,Co*=Co);for(;HL=A4.pop();)if(!(!(Eq=HL.node)||(Im=HL.x0)>J4||(EE=HL.y0)>ah||(bo=HL.x1)<kN||(Kg=HL.y1)<am))if(Eq.length){HL=(Im+bo)/2;var g5=(EE+Kg)/2;A4.push(new wO(Eq[3],HL,g5,bo,Kg),new wO(Eq[2],Im,g5,HL,Kg),new wO(Eq[1],HL,EE,bo,g5),new wO(Eq[0],Im,EE,HL,g5));if(Eq=(S>=g5)<<1|R>=HL)HL=A4[A4.length-
1],A4[A4.length-1]=A4[A4.length-1-Eq],A4[A4.length-1-Eq]=HL}else if(HL=R-+this._x.call(null,Eq.data),g5=S-+this._y.call(null,Eq.data),HL=HL*HL+g5*g5,HL<Co){var Lq=Math.sqrt(Co=HL);kN=R-Lq;am=S-Lq;J4=R+Lq;ah=S+Lq;Lq=Eq.data}return Lq};
KP.remove=function(R){if(isNaN(Kg=+this._x.call(null,R))||isNaN(J4=+this._y.call(null,R)))return this;var S,Co=this._root,kN,am=this._x0,Im=this._y0,EE=this._x1,bo=this._y1,Kg,J4,ah,A4,Eq,HL,g5;if(!Co)return this;if(Co.length)for(;;){(Eq=Kg>=(ah=(am+EE)/2))?am=ah:EE=ah;(HL=J4>=(A4=(Im+bo)/2))?Im=A4:bo=A4;if(!(S=Co,Co=Co[g5=HL<<1|Eq]))return this;if(!Co.length)break;if(S[g5+1&3]||S[g5+2&3]||S[g5+3&3]){var Lq=S;var xI=g5}}for(;Co.data!==R;)if(!(kN=Co,Co=Co.next))return this;(R=Co.next)&&delete Co.next;
if(kN)return R?kN.next=R:delete kN.next,this;if(!S)return this._root=R,this;R?S[g5]=R:delete S[g5];(Co=S[0]||S[1]||S[2]||S[3])&&Co===(S[3]||S[2]||S[1]||S[0])&&!Co.length&&(Lq?Lq[xI]=Co:this._root=Co);return this};
KP.removeAll=function(R){for(var S=0,Co=R.length;S<Co;++S)this.remove(R[S]);return this};
KP.root=function(){return this._root};
KP.size=function(){var R=0;this.visit(function(S){if(!S.length){do++R;while(S=S.next)}});
return R};
KP.visit=function(R){var S=[],Co,kN=this._root,am,Im,EE,bo,Kg;for(kN&&S.push(new wO(kN,this._x0,this._y0,this._x1,this._y1));Co=S.pop();)if(!R(kN=Co.node,Im=Co.x0,EE=Co.y0,bo=Co.x1,Kg=Co.y1)&&kN.length){Co=(Im+bo)/2;var J4=(EE+Kg)/2;(am=kN[3])&&S.push(new wO(am,Co,J4,bo,Kg));(am=kN[2])&&S.push(new wO(am,Im,J4,Co,Kg));(am=kN[1])&&S.push(new wO(am,Co,EE,bo,J4));(am=kN[0])&&S.push(new wO(am,Im,EE,Co,J4))}};
KP.visitAfter=function(R){var S=[],Co=[],kN;for(this._root&&S.push(new wO(this._root,this._x0,this._y0,this._x1,this._y1));kN=S.pop();){var am=kN.node;if(am.length){var Im,EE=kN.x0,bo=kN.y0,Kg=kN.x1,J4=kN.y1,ah=(EE+Kg)/2,A4=(bo+J4)/2;(Im=am[0])&&S.push(new wO(Im,EE,bo,ah,A4));(Im=am[1])&&S.push(new wO(Im,ah,bo,Kg,A4));(Im=am[2])&&S.push(new wO(Im,EE,A4,ah,J4));(Im=am[3])&&S.push(new wO(Im,ah,A4,Kg,J4))}Co.push(kN)}for(;kN=Co.pop();)R(kN.node,kN.x0,kN.y0,kN.x1,kN.y1);return this};
KP.x=function(R){return arguments.length?(this._x=R,this):this._x};
KP.y=function(R){return arguments.length?(this._y=R,this):this._y};
var Q7Z=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;SZE.prototype=uqo.prototype;uqo.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 gXS,jwa={"%":function(R,S){return(R*100).toFixed(S)},
b:function(R){return Math.round(R).toString(2)},
c:function(R){return R+""},
d:function(R){return Math.round(R).toString(10)},
e:function(R,S){return R.toExponential(S)},
f:function(R,S){return R.toFixed(S)},
g:function(R,S){return R.toPrecision(S)},
o:function(R){return Math.round(R).toString(8)},
p:function(R,S){return swY(R*100,S)},
r:swY,s:function(R,S){var Co=R6g(R,S);if(!Co)return R+"";var kN=Co[0];Co=Co[1];Co=Co-(gXS=Math.max(-8,Math.min(8,Math.floor(Co/3)))*3)+1;var am=kN.length;return Co===am?kN:Co>am?kN+Array(Co-am+1).join("0"):Co>0?kN.slice(0,Co)+"."+kN.slice(Co):"0."+Array(1-Co).join("0")+R6g(R,Math.max(0,S+Co-1))[0]},
X:function(R){return Math.round(R).toString(16).toUpperCase()},
x:function(R){return Math.round(R).toString(16)}},tGg="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),fQY;
(function(R){return fQY=mQ5(R)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});KV.prototype={constructor:KV,reset:function(){this.s=this.t=0},
add:function(R){yBa(fVs,R,this.t);yBa(this,fVs.s,this.s);this.s?this.t+=fVs.t:this.s=fVs.t},
valueOf:function(){return this.s}};
var fVs=new KV,wM=Math.PI,qZ=wM/2,UNs=wM/4,Sdf=wM*2,p$h=wM/180,Bh=Math.abs,eBo=Math.atan,zRL=Math.atan2,x3=Math.cos,u7=Math.sin,h6g=Math.sqrt;new KV;new KV;new KV;var zBo=new KV;(function(R,S,Co,kN){return function(am){function Im(e5,Ho){R(e5,Ho)&&am.point(e5,Ho)}
function EE(e5,Ho){Eq.point(e5,Ho)}
function bo(){$T.point=EE;Eq.lineStart()}
function Kg(){$T.point=Im;Eq.lineEnd()}
function J4(e5,Ho){O6.push([e5,Ho]);g5.point(e5,Ho)}
function ah(){g5.lineStart();O6=[]}
function A4(){J4(O6[0][0],O6[0][1]);g5.lineEnd();var e5=g5.clean(),Ho=HL.result(),pY=Ho.length,LC;O6.pop();xI.push(O6);O6=null;if(pY)if(e5&1){if(pY=Ho[0],(Ho=pY.length-1)>0){Lq||(am.polygonStart(),Lq=!0);am.lineStart();for(e5=0;e5<Ho;++e5)am.point((LC=pY[e5])[0],LC[1]);am.lineEnd()}}else pY>1&&e5&2&&Ho.push(Ho.pop().concat(Ho.shift())),pj.push(Ho.filter(rrl))}
var Eq=S(am),HL=nUq(),g5=S(HL),Lq=!1,xI,pj,O6,$T={point:Im,lineStart:bo,lineEnd:Kg,polygonStart:function(){$T.point=J4;$T.lineStart=ah;$T.lineEnd=A4;pj=[];xI=[]},
polygonEnd:function(){$T.point=Im;$T.lineStart=bo;$T.lineEnd=Kg;var e5=pj,Ho=e5.length;var pY=-1;for(var LC=0,jE,rw;++pY<Ho;)LC+=e5[pY].length;for(jE=Array(LC);--Ho>=0;)for(rw=e5[Ho],pY=rw.length;--pY>=0;)jE[--LC]=rw[pY];pj=jE;e5=xI;Ho=kN[0];LC=kN[1];var Jt=u7(LC);pY=[u7(Ho),-x3(Ho),0];rw=jE=0;zBo.reset();Jt===1?LC=qZ+1E-6:Jt===-1&&(LC=-qZ-1E-6);Jt=0;for(var Vo=e5.length;Jt<Vo;++Jt)if(CG=(C0=e5[Jt]).length){var C0,CG,T4=C0[CG-1],IX=T4[0],iL=T4[1]/2+UNs,Sco=u7(iL),vv4=x3(iL);for(iL=0;iL<CG;++iL,IX=
CTE,Sco=INc,vv4=sP,T4=uLN){var uLN=C0[iL],CTE=uLN[0];sP=uLN[1]/2+UNs;var INc=u7(sP),sP=x3(sP),se=CTE-IX,wUs=se>=0?1:-1,Klk=wUs*se,dDg=Klk>wM;Sco*=INc;zBo.add(zRL(Sco*wUs*u7(Klk),vv4*sP+Sco*x3(Klk)));jE+=dDg?se+wUs*Sdf:se;dDg^IX>=Ho^CTE>=Ho&&(T4=ABX(cBY(T4),cBY(uLN)),ZTS(T4),IX=ABX(pY,T4),ZTS(IX),IX=(dDg^se>=0?-1:1)*L$N(IX[2]),LC>IX||LC===IX&&(T4[0]||T4[1]))&&(rw+=dDg^se>=0?1:-1)}}e5=(jE<-1E-6||jE<1E-6&&zBo<-1E-6)^rw&1;pj.length?(Lq||(am.polygonStart(),Lq=!0),MI$(pj,H$Y,e5,Co,am)):e5&&(Lq||(am.polygonStart(),
Lq=!0),am.lineStart(),Co(null,null,1,am),am.lineEnd());Lq&&(am.polygonEnd(),Lq=!1);pj=xI=null},
sphere:function(){am.polygonStart();am.lineStart();Co(null,null,1,am);am.lineEnd();am.polygonEnd()}};
return $T}})(function(){return!0},function(R){var S=NaN,Co=NaN,kN=NaN,am;
return{lineStart:function(){R.lineStart();am=1},
point:function(Im,EE){var bo=Im>0?wM:-wM,Kg=Bh(Im-S);if(Bh(Kg-wM)<1E-6)R.point(S,Co=(Co+EE)/2>0?qZ:-qZ),R.point(kN,Co),R.lineEnd(),R.lineStart(),R.point(bo,Co),R.point(Im,Co),am=0;else if(kN!==bo&&Kg>=wM){Bh(S-kN)<1E-6&&(S-=kN*1E-6);Bh(Im-bo)<1E-6&&(Im-=bo*1E-6);Kg=S;var J4=Co,ah=Im,A4,Eq,HL=u7(Kg-ah);Co=Bh(HL)>1E-6?eBo((u7(J4)*(Eq=x3(EE))*u7(ah)-u7(EE)*(A4=x3(J4))*u7(Kg))/(A4*Eq*HL)):(J4+EE)/2;R.point(kN,Co);R.lineEnd();R.lineStart();R.point(bo,Co);am=0}R.point(S=Im,Co=EE);kN=bo},
lineEnd:function(){R.lineEnd();S=Co=NaN},
clean:function(){return 2-am}}},function(R,S,Co,kN){R==null?(Co*=qZ,kN.point(-wM,Co),kN.point(0,Co),kN.point(wM,Co),kN.point(wM,0),kN.point(wM,-Co),kN.point(0,-Co),kN.point(-wM,-Co),kN.point(-wM,0),kN.point(-wM,Co)):Bh(R[0]-S[0])>1E-6?(R=R[0]<S[0]?wM:-wM,Co=Co*R/2,kN.point(-R,Co),kN.point(0,Co),kN.point(R,Co)):kN.point(S[0],S[1])},[-wM,
-qZ]);new KV;new KV;new KV;new KV;dCm.prototype={constructor:dCm,point:function(R,S){this.stream.point(R,S)},
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()}};
x3(30*p$h);(function(R){return function(S){var Co=new dCm,kN;for(kN in R)Co[kN]=R[kN];Co.stream=S;return Co}})({point:function(R,S){this.stream.point(R*p$h,S*p$h)}});
eRa(function(R){return h6g(2/(1+R))}).invert=V6(function(R){return 2*L$N(R/2)});
eRa(function(R){return(R=R>1?0:R<-1?wM:Math.acos(R))&&R/u7(R)}).invert=V6(function(R){return R});
h6g(3);V6(eBo);V6(L$N);V6(function(R){return 2*eBo(R)});
fL.prototype=COa.prototype={constructor:fL,count:function(){return this.eachAfter(UQa)},
each:function(R){var S,Co=[this],kN;do{var am=Co.reverse();for(Co=[];S=am.pop();)if(R(S),S=S.children){var Im=0;for(kN=S.length;Im<kN;++Im)Co.push(S[Im])}}while(Co.length);return this},
eachAfter:function(R){for(var S,Co=[this],kN=[],am,Im;S=Co.pop();)if(kN.push(S),S=S.children)for(am=0,Im=S.length;am<Im;++am)Co.push(S[am]);for(;S=kN.pop();)R(S);return this},
eachBefore:function(R){for(var S,Co=[this],kN;S=Co.pop();)if(R(S),S=S.children)for(kN=S.length-1;kN>=0;--kN)Co.push(S[kN]);return this},
sum:function(R){return this.eachAfter(function(S){for(var Co=+R(S.data)||0,kN=S.children,am=kN&&kN.length;--am>=0;)Co+=kN[am].value;S.value=Co})},
sort:function(R){return this.eachBefore(function(S){S.children&&S.children.sort(R)})},
path:function(R){var S=this;var Co=S;var kN=R;if(Co!==kN){var am=Co.ancestors(),Im=kN.ancestors(),EE=null;Co=am.pop();for(kN=Im.pop();Co===kN;)EE=Co,Co=am.pop(),kN=Im.pop();Co=EE}for(kN=[S];S!==Co;)S=S.parent,kN.push(S);for(S=kN.length;R!==Co;)kN.splice(S,0,R),R=R.parent;return kN},
ancestors:function(){for(var R=this,S=[R];R=R.parent;)S.push(R);return S},
links:function(){var R=this,S=[];R.each(function(Co){Co!==R&&S.push({source:Co.parent,target:Co})});
return S},
copy:function(){return COa(this).eachBefore(Wvf)}};
(function(R,S){this._=R;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=S}).prototype=Object.create(fL.prototype);
var DC4=new Date,iB7=new Date,W9a=Wr(function(){},function(R,S){R.setTime(+R+S)},function(R,S){return S-R});
W9a.every=function(R){R=Math.floor(R);return isFinite(R)&&R>0?R>1?Wr(function(S){S.setTime(Math.floor(S/R)*R)},function(S,Co){S.setTime(+S+Co*R)},function(S,Co){return(Co-S)/R}):W9a:null};
Wr(function(R){R.setTime(Math.floor(R/1E3)*1E3)},function(R,S){R.setTime(+R+S*1E3)},function(R,S){return(S-R)/1E3},function(R){return R.getUTCSeconds()});
Wr(function(R){R.setTime(Math.floor(R/6E4)*6E4)},function(R,S){R.setTime(+R+S*6E4)},function(R,S){return(S-R)/6E4},function(R){return R.getMinutes()});
Wr(function(R){var S=R.getTimezoneOffset()*6E4%36E5;S<0&&(S+=36E5);R.setTime(Math.floor((+R-S)/36E5)*36E5+S)},function(R,S){R.setTime(+R+S*36E5)},function(R,S){return(S-R)/36E5},function(R){return R.getHours()});
var ovg=Wr(function(R){R.setHours(0,0,0,0)},function(R,S){R.setDate(R.getDate()+S)},function(R,S){return(S-R-(S.getTimezoneOffset()-R.getTimezoneOffset())*6E4)/864E5},function(R){return R.getDate()-1}),Wq$=bW(0),s0L=bW(1);
bW(2);bW(3);var BnN=bW(4);bW(5);bW(6);Wr(function(R){R.setDate(1);R.setHours(0,0,0,0)},function(R,S){R.setMonth(R.getMonth()+S)},function(R,S){return S.getMonth()-R.getMonth()+(S.getFullYear()-R.getFullYear())*12},function(R){return R.getMonth()});
var dg=Wr(function(R){R.setMonth(0,1);R.setHours(0,0,0,0)},function(R,S){R.setFullYear(R.getFullYear()+S)},function(R,S){return S.getFullYear()-R.getFullYear()},function(R){return R.getFullYear()});
dg.every=function(R){return isFinite(R=Math.floor(R))&&R>0?Wr(function(S){S.setFullYear(Math.floor(S.getFullYear()/R)*R);S.setMonth(0,1);S.setHours(0,0,0,0)},function(S,Co){S.setFullYear(S.getFullYear()+Co*R)}):null};
Wr(function(R){R.setUTCSeconds(0,0)},function(R,S){R.setTime(+R+S*6E4)},function(R,S){return(S-R)/6E4},function(R){return R.getUTCMinutes()});
Wr(function(R){R.setUTCMinutes(0,0,0)},function(R,S){R.setTime(+R+S*36E5)},function(R,S){return(S-R)/36E5},function(R){return R.getUTCHours()});
var K96=Wr(function(R){R.setUTCHours(0,0,0,0)},function(R,S){R.setUTCDate(R.getUTCDate()+S)},function(R,S){return(S-R)/864E5},function(R){return R.getUTCDate()-1}),PW3=X$(0),Nnk=X$(1);
X$(2);X$(3);var tN1=X$(4);X$(5);X$(6);Wr(function(R){R.setUTCDate(1);R.setUTCHours(0,0,0,0)},function(R,S){R.setUTCMonth(R.getUTCMonth()+S)},function(R,S){return S.getUTCMonth()-R.getUTCMonth()+(S.getUTCFullYear()-R.getUTCFullYear())*12},function(R){return R.getUTCMonth()});
var Dp=Wr(function(R){R.setUTCMonth(0,1);R.setUTCHours(0,0,0,0)},function(R,S){R.setUTCFullYear(R.getUTCFullYear()+S)},function(R,S){return S.getUTCFullYear()-R.getUTCFullYear()},function(R){return R.getUTCFullYear()});
Dp.every=function(R){return isFinite(R=Math.floor(R))&&R>0?Wr(function(S){S.setUTCFullYear(Math.floor(S.getUTCFullYear()/R)*R);S.setUTCMonth(0,1);S.setUTCHours(0,0,0,0)},function(S,Co){S.setUTCFullYear(S.getUTCFullYear()+Co*R)}):null};
var wpT={"-":"",_:" ",0:"0"},E6=/^\s*\d+/,IQ3=/^%/,v03=/[\\^$*+?|[\]().{}]/g,DD1;(function(R){DD1=RcC(R);toa=DD1.utcFormat;g3S=DD1.utcParse;return DD1})({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||toa("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||g3S("%Y-%m-%dT%H:%M:%S.%LZ");Tm("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Tm("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Tm("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Tm("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Tm("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Tm("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Tm("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Tm("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Tm("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Tm("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Tm("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Tm("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var u$f=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Tm);w3(u$f);var dMv=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Tm);w3(dMv);var DMf=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Tm);w3(DMf);var iD5=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Tm);
w3(iD5);var NFE=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Tm);w3(NFE);var sz5=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Tm);w3(sz5);var BFv=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Tm);w3(BFv);var tUY=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Tm);w3(tUY);var g0Y=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Tm);w3(g0Y);var jzl=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Tm);w3(jzl);var yzL=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Tm);w3(yzL);var cz$=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Tm);w3(cz$);var Az5=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Tm);w3(Az5);var ZDW=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Tm);w3(ZDW);var pOa=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Tm);w3(pOa);var eFE=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Tm);w3(eFE);var zFC=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Tm);w3(zFC);var CJC=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Tm);w3(CJC);var wP3=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Tm);w3(wP3);var KY$=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Tm);w3(KY$);var oAv=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Tm);w3(oAv);var Gnq=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Tm);w3(Gnq);var Y5l=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Tm);w3(Y5l);var bQa=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Tm);w3(bQa);var XPC=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Tm);w3(XPC);var JaC=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Tm);w3(JaC);var knf=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Tm);w3(knf);A5g(Ih(300,.5,0),Ih(-240,.5,1));A5g(Ih(-100,.75,.35),Ih(80,1.5,.8));A5g(Ih(260,.75,.35),Ih(80,1.5,.8));Ih();jS();F$g(Tm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
F$g(Tm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
F$g(Tm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
F$g(Tm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
$Na.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(R,S){R=+R;S=+S;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(R,S):this._context.moveTo(R,S);break;case 1:this._point=2;default:this._context.lineTo(R,S)}}};
(function(R){function S(Co){return new lNo(R(Co))}
S._curve=R;return S})(function(R){return new $Na(R)});
lNo.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(R,S){this._curve.point(S*Math.sin(R),S*-Math.cos(R))}};
j0g.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:gEE(this,this._t0,mN6(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(R,S){var Co=NaN;R=+R;S=+S;if(R!==this._x1||S!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(R,S):this._context.moveTo(R,S);break;case 1:this._point=2;break;case 2:this._point=3;gEE(this,mN6(this,Co=Q$L(this,R,S)),Co);break;default:gEE(this,this._t0,Co=Q$L(this,R,S))}this._x0=this._x1;this._x1=R;this._y0=this._y1;this._y1=S;this._t0=Co}}};
(function(R){this._context=new aNa(R)}.prototype=Object.create(j0g.prototype)).point=function(R,S){j0g.prototype.point.call(this,S,R)};
aNa.prototype={moveTo:function(R,S){this._context.moveTo(S,R)},
closePath:function(){this._context.closePath()},
lineTo:function(R,S){this._context.lineTo(S,R)},
bezierCurveTo:function(R,S,Co,kN,am,Im){this._context.bezierCurveTo(S,R,kN,Co,Im,am)}};
Da.prototype={constructor:Da,scale:function(R){return R===1?this:new Da(this.k*R,this.x,this.y)},
translate:function(R,S){return R===0&S===0?this:new Da(this.k,this.x+this.k*R,this.y+this.k*S)},
apply:function(R){return[R[0]*this.k+this.x,R[1]*this.k+this.y]},
invert:function(R){return[(R[0]-this.x)/this.k,(R[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Da(1,0,0);mf7=nv;k3.svg=k3.svg;k3.xhtml=k3.xhtml;k3.xlink=k3.xlink;k3.xml=k3.xml;k3.xmlns=k3.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 jn6="hammer_"+(Math.random()*1E6|0),y8U=function(){var e=document||document;if(!e[jn6]){var z=function(){(function(C,w,K,G){function X(P1,dL,jh){return setTimeout(a(P1,jh),dL)}
function J(P1,dL,jh){return Array.isArray(P1)?(q(P1,jh[dL],jh),!0):!1}
function q(P1,dL,jh){var UU;if(P1)if(P1.forEach)P1.forEach(dL,jh);else if(P1.length!==G){var Uq=0;for(UU=P1.length;Uq<UU;Uq++)dL.call(jh,P1[Uq],Uq,P1)}else for(Uq in P1)P1.hasOwnProperty(Uq)&&dL.call(jh,P1[Uq],Uq,P1)}
function T(P1,dL,jh){for(var UU=Object.keys(dL),Uq=0,fY=UU.length;Uq<fY;Uq++)if(!jh||jh&&P1[UU[Uq]]===G)P1[UU[Uq]]=dL[UU[Uq]];return P1}
function Q(P1,dL){return T(P1,dL,!0)}
function m(P1,dL,jh){dL=dL.prototype;var UU=P1.prototype=Object.create(dL);UU.constructor=P1;UU._super=dL;jh&&T(UU,jh)}
function a(P1,dL){return function(){return P1.apply(dL,arguments)}}
function n(P1,dL){return typeof P1=="function"?P1.apply(dL?dL[0]||G:G,dL):P1}
function H(P1,dL,jh){q(L(dL),function(UU){P1.addEventListener(UU,jh,!1)})}
function I(P1,dL,jh){q(L(dL),function(UU){P1.removeEventListener(UU,jh,!1)})}
function L(P1){return P1.trim().split(/\s+/g)}
function h(P1,dL,jh){if(P1.indexOf&&!jh)return P1.indexOf(dL);for(var UU=0,Uq=P1.length;UU<Uq;UU++)if(jh&&P1[UU][jh]==dL||!jh&&P1[UU]===dL)return UU;return-1}
function E(P1,dL,jh){for(var UU=[],Uq=[],fY=0,Oq=P1.length;fY<Oq;fY++){var Lg=dL?P1[fY][dL]:P1[fY];h(Uq,Lg)<0&&UU.push(P1[fY]);Uq[fY]=Lg}jh&&(UU=dL?UU.sort(function(Ih,gf){return Ih[dL]>gf[dL]}):UU.sort());
return UU}
function N(P1,dL){for(var jh,UU=dL[0].toUpperCase()+dL.slice(1),Uq=0,fY=lo.length;Uq<fY;Uq++)if(jh=(jh=lo[Uq])?jh+UU:dL,jh in P1)return jh;return G}
function D(P1,dL){var jh=this;this.manager=P1;this.callback=dL;this.element=P1.element;this.target=P1.options.inputTarget;this.domHandler=function(UU){n(P1.options.enable,[P1])&&jh.handler(UU)};
this.evEl&&H(this.element,this.evEl,this.domHandler);this.evTarget&&H(this.target,this.evTarget,this.domHandler);this.evWin&&H(C,this.evWin,this.domHandler)}
function g(P1){var dL;sq?dL=fo:k2?dL=ug:nv?dL=sE:dL=M5;return new dL(P1,y)}
function y(P1,dL,jh){var UU=jh.pointers.length,Uq=jh.changedPointers.length,fY=dL&1&&UU-Uq===0;jh.isFirst=!!fY;jh.isFinal=!!(dL&12&&UU-Uq===0);fY&&(P1.session={});jh.eventType=dL;dL=P1.session;UU=jh.pointers;Uq=UU.length;dL.firstInput||(dL.firstInput=Z(jh));Uq>1&&!dL.firstMultiple?dL.firstMultiple=Z(jh):Uq===1&&(dL.firstMultiple=!1);fY=dL.firstInput;var Oq=(Uq=dL.firstMultiple)?Uq.center:fY.center,Lg=jh.center=YN(UU);jh.timeStamp=wf();jh.deltaTime=jh.timeStamp-fY.timeStamp;jh.angle=lg(Oq,Lg);jh.distance=
v1(Oq,Lg);fY=jh.center;Oq=dL.offsetDelta||{};Lg=dL.prevDelta||{};var Ih=dL.prevInput||{};if(jh.eventType===1||Ih.eventType===4)Lg=dL.prevDelta={x:Ih.deltaX||0,y:Ih.deltaY||0},Oq=dL.offsetDelta={x:fY.x,y:fY.y};jh.deltaX=Lg.x+(fY.x-Oq.x);jh.deltaY=Lg.y+(fY.y-Oq.y);jh.offsetDirection=Jk(jh.deltaX,jh.deltaY);Uq?(fY=Uq.pointers,fY=v1(UU[0],UU[1],jS)/v1(fY[0],fY[1],jS)):fY=1;jh.scale=fY;Uq?(Uq=Uq.pointers,UU=lg(UU[1],UU[0],jS)-lg(Uq[1],Uq[0],jS)):UU=0;jh.rotation=UU;Oq=dL.lastInterval||jh;UU=jh.timeStamp-
Oq.timeStamp;jh.eventType!=8&&(UU>25||Oq.velocity===G)?(fY=Oq.deltaX-jh.deltaX,Oq=Oq.deltaY-jh.deltaY,Lg=fY/UU||0,Ih=Oq/UU||0,UU=Lg,Uq=Ih,Lg=Ak(Lg)>Ak(Ih)?Lg:Ih,fY=Jk(fY,Oq),dL.lastInterval=jh):(Lg=Oq.velocity,UU=Oq.velocityX,Uq=Oq.velocityY,fY=Oq.direction);jh.velocity=Lg;jh.velocityX=UU;jh.velocityY=Uq;jh.direction=fY;dL=P1.element;a:{for(UU=jh.srcEvent.target;UU;){if(UU==dL){UU=!0;break a}UU=UU.parentNode}UU=!1}UU&&(dL=jh.srcEvent.target);jh.target=dL;P1.emit("hammer.input",jh);P1.recognize(jh);
P1.session.prevInput=jh}
function Z(P1){for(var dL=[],jh=0;jh<P1.pointers.length;jh++)dL[jh]={clientX:ob(P1.pointers[jh].clientX),clientY:ob(P1.pointers[jh].clientY)};return{timeStamp:wf(),pointers:dL,center:YN(dL),deltaX:P1.deltaX,deltaY:P1.deltaY}}
function YN(P1){var dL=P1.length;if(dL===1)return{x:ob(P1[0].clientX),y:ob(P1[0].clientY)};for(var jh=0,UU=0,Uq=0;Uq<dL;Uq++)jh+=P1[Uq].clientX,UU+=P1[Uq].clientY;return{x:ob(jh/dL),y:ob(UU/dL)}}
function Jk(P1,dL){return P1===dL?1:Ak(P1)>=Ak(dL)?P1>0?2:4:dL>0?8:16}
function v1(P1,dL,jh){jh||(jh=aM);var UU=dL[jh[0]]-P1[jh[0]];P1=dL[jh[1]]-P1[jh[1]];return Math.sqrt(UU*UU+P1*P1)}
function lg(P1,dL,jh){jh||(jh=aM);return Math.atan2(dL[jh[1]]-P1[jh[1]],dL[jh[0]]-P1[jh[0]])*180/Math.PI}
function M5(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;D.apply(this,arguments)}
function fo(){this.evEl=MG;this.evWin=D0;D.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function ug(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};D.apply(this,arguments)}
function sE(){D.apply(this,arguments);var P1=a(this.handler,this);this.touch=new ug(this.manager,P1);this.mouse=new M5(this.manager,P1)}
function w6(P1,dL){this.manager=P1;this.set(dL)}
function qY(P1){if(P1.indexOf("none")>-1)return"none";var dL=P1.indexOf("pan-x")>-1,jh=P1.indexOf("pan-y")>-1;return dL&&jh?"pan-x pan-y":dL||jh?dL?"pan-x":"pan-y":P1.indexOf("manipulation")>-1?"manipulation":"auto"}
function y1(P1){this.id=$a++;this.manager=null;this.options=Q(P1||{},this.defaults);P1=this.options.enable;this.options.enable=P1===G?!0:P1;this.state=1;this.simultaneous={};this.requireFail=[]}
function Qa(P1){return P1==16?"down":P1==8?"up":P1==2?"left":P1==4?"right":""}
function Ha(P1,dL){return(dL=dL.manager)?dL.get(P1):P1}
function OU(){y1.apply(this,arguments)}
function ab(){OU.apply(this,arguments);this.pY=this.pX=null}
function Pa(){OU.apply(this,arguments)}
function $N(){y1.apply(this,arguments);this._input=this._timer=null}
function N5(){OU.apply(this,arguments)}
function $L(){OU.apply(this,arguments)}
function Ba(){y1.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function r6(P1,dL){dL=dL||{};var jh=dL.recognizers;dL.recognizers=jh===G?r6.defaults.preset:jh;return new eE(P1,dL)}
function eE(P1,dL){dL=dL||{};this.options=Q(dL,r6.defaults);this.options.inputTarget=this.options.inputTarget||P1;this.handlers={};this.session={};this.recognizers=[];this.element=P1;this.input=g(this);this.touchAction=new w6(this,this.options.touchAction);q1(this,!0);q(dL.recognizers,function(jh){var UU=this.add(new jh[0](jh[1]));jh[2]&&UU.recognizeWith(jh[2]);jh[3]&&UU.requireFailure(jh[2])},this)}
function q1(P1,dL){var jh=P1.element;q(P1.options.cssProps,function(UU,Uq){jh.style[N(jh.style,Uq)]=dL?UU:""})}
function g6(P1,dL){var jh=w.createEvent("Event");jh.initEvent(P1,!0,!0);jh.gesture=dL;dL.target.dispatchEvent(jh)}
var lo=" webkit moz MS ms o".split(" "),mc=w.createElement("div"),ob=Math.round,Ak=Math.abs,wf=Date.now,$a=1,CY=/mobile|tablet|ip(ad|hone|od)|android/i,nv="ontouchstart"in C,sq=N(C,"PointerEvent")!==G,k2=nv&&CY.test(navigator.userAgent),aM=["x","y"],jS=["clientX","clientY"];D.prototype={handler:function(){},
destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler);this.evTarget&&I(this.target,this.evTarget,this.domHandler);this.evWin&&I(C,this.evWin,this.domHandler)}};
var Wl={mousedown:1,mousemove:2,mouseup:4};m(M5,D,{handler:function(P1){var dL=Wl[P1.type];dL&1&&P1.button===0&&(this.pressed=!0);dL&2&&P1.which!==1&&(dL=4);this.pressed&&this.allow&&(dL&4&&(this.pressed=!1),this.callback(this.manager,dL,{pointers:[P1],changedPointers:[P1],pointerType:"mouse",srcEvent:P1}))}});
var b$={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},wp={2:"touch",3:"pen",4:"mouse",5:"kinect"},MG="pointerdown",D0="pointermove pointerup pointercancel";C.MSPointerEvent&&(MG="MSPointerDown",D0="MSPointerMove MSPointerUp MSPointerCancel");m(fo,D,{handler:function(P1){var dL=this.store,jh=!1,UU=P1.type.toLowerCase().replace("ms","");UU=b$[UU];var Uq=wp[P1.pointerType]||P1.pointerType;UU&1&&(P1.button===0||Uq=="touch")?dL.push(P1):UU&12&&(jh=!0);var fY=h(dL,P1.pointerId,"pointerId");
fY<0||(dL[fY]=P1,this.callback(this.manager,UU,{pointers:dL,changedPointers:[P1],pointerType:Uq,srcEvent:P1}),jh&&dL.splice(fY,1))}});
var r9={touchstart:1,touchmove:2,touchend:4,touchcancel:8};m(ug,D,{handler:function(P1){var dL=r9[P1.type];var jh=Array.prototype.slice.call(P1.touches,0);var UU=this.targetIds;if(dL&3&&jh.length===1)UU[jh[0].identifier]=!0,UU=[jh,jh];else{var Uq,fY=Array.prototype.slice.call(P1.targetTouches,0),Oq=Array.prototype.slice.call(P1.changedTouches,0),Lg=[];if(dL===1)for(jh=0,Uq=fY.length;jh<Uq;jh++)UU[fY[jh].identifier]=!0;jh=0;for(Uq=Oq.length;jh<Uq;jh++)UU[Oq[jh].identifier]&&Lg.push(Oq[jh]),dL&12&&
delete UU[Oq[jh].identifier];UU=Lg.length?[E(fY.concat(Lg),"identifier",!0),Lg]:void 0}UU&&this.callback(this.manager,dL,{pointers:UU[0],changedPointers:UU[1],pointerType:"touch",srcEvent:P1})}});
m(sE,D,{handler:function(P1,dL,jh){var UU=jh.pointerType=="mouse";if(jh.pointerType=="touch")this.mouse.allow=!1;else if(UU&&!this.mouse.allow)return;dL&12&&(this.mouse.allow=!0);this.callback(P1,dL,jh)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Fg=N(mc.style,"touchAction"),ML=Fg!==G;w6.prototype={set:function(P1){P1=="compute"&&(P1=this.compute());ML&&(this.manager.element.style[Fg]=P1);this.actions=P1.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var P1=[];q(this.manager.recognizers,function(dL){n(dL.options.enable,[dL])&&(P1=P1.concat(dL.getTouchAction()))});
return qY(P1.join(" "))},
preventDefaults:function(P1){if(!ML){var dL=P1.srcEvent;P1=P1.offsetDirection;if(this.manager.session.prevented)dL.preventDefault();else{var jh=this.actions,UU=jh.indexOf("none")>-1,Uq=jh.indexOf("pan-y")>-1;jh=jh.indexOf("pan-x")>-1;if(UU||Uq&&jh||Uq&&P1&6||jh&&P1&24)return this.preventSrc(dL)}}},
preventSrc:function(P1){this.manager.session.prevented=!0;P1.preventDefault()}};
y1.prototype={defaults:{},set:function(P1){T(this.options,P1);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(P1){if(J(P1,"recognizeWith",this))return this;var dL=this.simultaneous;P1=Ha(P1,this);dL[P1.id]||(dL[P1.id]=P1,P1.recognizeWith(this));return this},
dropRecognizeWith:function(P1){if(J(P1,"dropRecognizeWith",this))return this;P1=Ha(P1,this);delete this.simultaneous[P1.id];return this},
requireFailure:function(P1){if(J(P1,"requireFailure",this))return this;var dL=this.requireFail;P1=Ha(P1,this);h(dL,P1)===-1&&(dL.push(P1),P1.requireFailure(this));return this},
dropRequireFailure:function(P1){if(J(P1,"dropRequireFailure",this))return this;P1=Ha(P1,this);P1=h(this.requireFail,P1);P1>-1&&this.requireFail.splice(P1,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(P1){return!!this.simultaneous[P1.id]},
emit:function(P1){function dL(Uq){jh.manager.emit(jh.options.event+(Uq?UU&16?"cancel":UU&8?"end":UU&4?"move":UU&2?"start":"":""),P1)}
var jh=this,UU=this.state;UU<8&&dL(!0);dL();UU>=8&&dL(!0)},
tryEmit:function(P1){if(this.canEmit())return this.emit(P1);this.state=32},
canEmit:function(){for(var P1=0;P1<this.requireFail.length;P1++)if(!(this.requireFail[P1].state&33))return!1;return!0},
recognize:function(P1){P1=T({},P1);n(this.options.enable,[this,P1])?(this.state&56&&(this.state=1),this.state=this.process(P1),this.state&30&&this.tryEmit(P1)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
m(OU,y1,{defaults:{pointers:1},attrTest:function(P1){var dL=this.options.pointers;return dL===0||P1.pointers.length===dL},
process:function(P1){var dL=this.state,jh=P1.eventType,UU=dL&6;P1=this.attrTest(P1);return UU&&(jh&8||!P1)?dL|16:UU||P1?jh&4?dL|8:dL&2?dL|4:2:32}});
m(ab,OU,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var P1=this.options.direction;if(P1===30)return["none"];var dL=[];P1&6&&dL.push("pan-y");P1&24&&dL.push("pan-x");return dL},
directionTest:function(P1){var dL=this.options,jh=!0,UU=P1.distance,Uq=P1.direction,fY=P1.deltaX,Oq=P1.deltaY;Uq&dL.direction||(dL.direction&6?(Uq=fY===0?1:fY<0?2:4,jh=fY!=this.pX,UU=Math.abs(P1.deltaX)):(Uq=Oq===0?1:Oq<0?8:16,jh=Oq!=this.pY,UU=Math.abs(P1.deltaY)));P1.direction=Uq;return jh&&UU>dL.threshold&&Uq&dL.direction},
attrTest:function(P1){return OU.prototype.attrTest.call(this,P1)&&(this.state&2||!(this.state&2)&&this.directionTest(P1))},
emit:function(P1){this.pX=P1.deltaX;this.pY=P1.deltaY;var dL=Qa(P1.direction);dL&&this.manager.emit(this.options.event+dL,P1);this._super.emit.call(this,P1)}});
m(Pa,OU,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(P1){return this._super.attrTest.call(this,P1)&&(Math.abs(P1.scale-1)>this.options.threshold||this.state&2)},
emit:function(P1){this._super.emit.call(this,P1);P1.scale!==1&&this.manager.emit(this.options.event+(P1.scale<1?"in":"out"),P1)}});
m($N,y1,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(P1){var dL=this.options,jh=P1.pointers.length===dL.pointers,UU=P1.distance<dL.threshold,Uq=P1.deltaTime>dL.time;this._input=P1;if(!UU||!jh||P1.eventType&12&&!Uq)this.reset();else if(P1.eventType&1)this.reset(),this._timer=X(function(){this.state=8;this.tryEmit()},dL.time,this);
else if(P1.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(P1){this.state===8&&(P1&&P1.eventType&4?this.manager.emit(this.options.event+"up",P1):(this._input.timeStamp=wf(),this.manager.emit(this.options.event,this._input)))}});
m(N5,OU,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(P1){return this._super.attrTest.call(this,P1)&&(Math.abs(P1.rotation)>this.options.threshold||this.state&2)}});
m($L,OU,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return ab.prototype.getTouchAction.call(this)},
attrTest:function(P1){var dL=this.options.direction;if(dL&30)var jh=P1.velocity;else dL&6?jh=P1.velocityX:dL&24&&(jh=P1.velocityY);return this._super.attrTest.call(this,P1)&&dL&P1.direction&&Ak(jh)>this.options.velocity&&P1.eventType&4},
emit:function(P1){var dL=Qa(P1.direction);dL&&this.manager.emit(this.options.event+dL,P1);this.manager.emit(this.options.event,P1)}});
m(Ba,y1,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(P1){var dL=this.options,jh=P1.pointers.length===dL.pointers,UU=P1.distance<dL.threshold,Uq=P1.deltaTime<dL.time;this.reset();if(P1.eventType&1&&this.count===0)return this.failTimeout();if(UU&&Uq&&jh){if(P1.eventType!=4)return this.failTimeout();jh=this.pTime?P1.timeStamp-this.pTime<dL.interval:!0;UU=!this.pCenter||v1(this.pCenter,P1.center)<dL.posThreshold;this.pTime=P1.timeStamp;this.pCenter=P1.center;UU&&jh?this.count+=1:this.count=1;this._input=P1;if(this.count%dL.taps===0)return this.hasRequireFailures()?
(this._timer=X(function(){this.state=8;this.tryEmit()},dL.interval,this),2):8}return 32},
failTimeout:function(){this._timer=X(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
r6.VERSION="2.0.2";r6.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[N5,{enable:!1}],[Pa,{enable:!1},["rotate"]],[$L,{direction:6}],[ab,{direction:6},["swipe"]],[Ba],[Ba,{event:"doubletap",taps:2},["tap"]],[$N]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};eE.prototype={set:function(P1){T(this.options,P1);return this},
stop:function(P1){this.session.stopped=P1?2:1},
recognize:function(P1){var dL=this.session;if(!dL.stopped){this.touchAction.preventDefaults(P1);var jh=this.recognizers,UU=dL.curRecognizer;if(!UU||UU&&UU.state&8)UU=dL.curRecognizer=null;for(var Uq=0,fY=jh.length;Uq<fY;Uq++){var Oq=jh[Uq];dL.stopped===2||UU&&Oq!=UU&&!Oq.canRecognizeWith(UU)?Oq.reset():Oq.recognize(P1);!UU&&Oq.state&14&&(UU=dL.curRecognizer=Oq)}}},
get:function(P1){if(P1 instanceof y1)return P1;for(var dL=this.recognizers,jh=0;jh<dL.length;jh++)if(dL[jh].options.event==P1)return dL[jh];return null},
add:function(P1){if(J(P1,"add",this))return this;var dL=this.get(P1.options.event);dL&&this.remove(dL);this.recognizers.push(P1);P1.manager=this;this.touchAction.update();return P1},
remove:function(P1){if(J(P1,"remove",this))return this;var dL=this.recognizers;P1=this.get(P1);dL.splice(h(dL,P1),1);this.touchAction.update();return this},
on:function(P1,dL){var jh=this.handlers;q(L(P1),function(UU){jh[UU]=jh[UU]||[];jh[UU].push(dL)});
return this},
off:function(P1,dL){var jh=this.handlers;q(L(P1),function(UU){dL?jh[UU].splice(h(jh[UU],dL),1):delete jh[UU]});
return this},
emit:function(P1,dL){this.options.domEvents&&g6(P1,dL);var jh=this.handlers[P1]&&this.handlers[P1].slice();if(jh&&jh.length){dL.type=P1;dL.preventDefault=function(){dL.srcEvent.preventDefault()};
P1=0;for(var UU=jh.length;P1<UU;P1++)jh[P1](dL)}},
destroy:function(){this.element&&q1(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
T(r6,{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:eE,Input:D,TouchAction:w6,Recognizer:y1,AttrRecognizer:OU,Tap:Ba,Pan:ab,Swipe:$L,Pinch:Pa,Rotate:N5,Press:$N,on:H,off:I,each:q,merge:Q,extend:T,inherit:m,bindFn:a,prefixed:N});
C[K]=r6})(window,document,"Hammer");
return window.Hammer}.call({});
z.DOCUMENT=e;e[jn6]=z}return e[jn6]};/*

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

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

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 QS,gls,j8L;QS=Element.prototype;gls=QS.matches||QS.matchesSelector||QS.mozMatchesSelector||QS.msMatchesSelector||QS.oMatchesSelector||QS.webkitMatchesSelector;j8L=function(){};
_.cLY=function(e){var z=yLT,C=[];return z._collectTabbableNodes(e,C)?z._sortByTabIndex(C):C};
_.Y=j8L.prototype;_.Y.isFocusable=function(e){return gls.call(e,"input, select, textarea, button, object")?gls.call(e,":not([disabled])"):gls.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.Y._normalizedTabIndex=function(e){return this.isFocusable(e)?(e=e.getAttribute("tabindex")||0,Number(e)):-1};
_.Y._collectTabbableNodes=function(e,z){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var C=this._normalizedTabIndex(e),w=C>0;C>=0&&z.push(e);if(e.localName==="content"||e.localName==="slot")C=_.mb(e).getDistributedNodes();else{var K;C=((K=_.mb(e).shadowRoot)!=null?K:_.mb(e.root||e)).children}for(e=0;e<C.length;e++)w=this._collectTabbableNodes(C[e],z)||w;return w};
_.Y._isVisible=function(e){var z=e.style;return z.visibility!=="hidden"&&z.display!=="none"?(z=window.getComputedStyle(e),z.visibility!=="hidden"&&z.display!=="none"):!1};
_.Y._sortByTabIndex=function(e){var z=e.length;if(z<2)return e;var C=Math.ceil(z/2);z=this._sortByTabIndex(e.slice(0,C));e=this._sortByTabIndex(e.slice(C));return this._mergeSortByTabIndex(z,e)};
_.Y._mergeSortByTabIndex=function(e,z){for(var C=[];e.length>0&&z.length>0;)this._hasLowerTabOrder(e[0],z[0])?C.push(z.shift()):C.push(e.shift());return C.concat(e,z)};
_.Y._hasLowerTabOrder=function(e,z){e=Math.max(e.tabIndex,0);z=Math.max(z.tabIndex,0);return e===0||z===0?z>e:e>z};
var yLT=new j8L;var ALh;var ZV4;_.hK({_template:function(){if(ZV4!==void 0)return ZV4;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;ALh===void 0&&(ALh=document.createElement("template"));var w=ALh;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return ZV4=e},
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&&_.mb(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.mb(this.parentNode).removeChild(this)},
_onTransitionend:function(e){e&&e.target===this&&this.complete()},
_openedChanged:function(e){e?this.prepare():(e=window.getComputedStyle(this),e.transitionDuration!=="0s"&&e.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 mW=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;yr(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)};
mW.prototype._bringOverlayAtIndexToFront=function(e){var z=this._overlays[e];if(z){var C=this._overlays.length-1,w=this._overlays[C];w&&this._shouldBeBehindOverlay(z,w)&&C--;if(!(e>=C)){w=Math.max(this._getZ(_.pTs(this)),this._minimumZ);for(this._getZ(z)<=w&&this._applyOverlayZ(z,w);e<C;)this._overlays[e]=this._overlays[e+1],e++;this._overlays[C]=z}}};
mW.prototype.addOverlay=function(e){var z=this._overlays.indexOf(e);if(z>=0)this._bringOverlayAtIndexToFront(z);else{z=this._overlays.length;var C=this._overlays[z-1],w=Math.max(this._getZ(C),this._minimumZ),K=this._getZ(e);C&&this._shouldBeBehindOverlay(e,C)&&(this._applyOverlayZ(C,w),z--,w=Math.max(this._getZ(this._overlays[z-1]),this._minimumZ));K<=w&&this._applyOverlayZ(e,w);this._overlays.splice(z,0,e)}this.trackBackdrop()};
mW.prototype.removeOverlay=function(e){e=this._overlays.indexOf(e);e!==-1&&(this._overlays.splice(e,1),this.trackBackdrop())};
_.pTs=function(e){return e._overlays[e._overlays.length-1]};
_.Y=mW.prototype;_.Y.trackBackdrop=function(){var e=this._overlayWithBackdrop();if(e||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e,this.backdropElement.prepare()};
_.Y._overlayWithBackdrop=function(){for(var e=this._overlays.length-1;e>=0;e--)if(this._overlays[e].withBackdrop)return this._overlays[e]};
_.Y._getZ=function(e){var z=this._minimumZ;if(e){var C,w,K=Number(((C=e.hostElement)!=null?C:e).style.zIndex||window.getComputedStyle((w=e.hostElement)!=null?w:e).zIndex);K===K&&(z=K)}return z};
_.Y._setZ=function(e,z){var C;((C=e.hostElement)!=null?C:e).style.zIndex=z};
_.Y._applyOverlayZ=function(e,z){this._setZ(e,z+2)};
_.Y._overlayInPath=function(e){e=e||[];for(var z=0;z<e.length;z++){var C=void 0;if(((C=e[z].polymerController)!=null?C:e[z])._manager===this)return e[z]}};
_.Y._onCaptureClick=function(e){var z=this._overlays.length-1;if(z!==-1)for(var C=_.mb(e).path,w,K;(w=this._overlays[z])&&this._overlayInPath(C)!==((K=w.hostElement)!=null?K:w);)if(w._onCaptureClick(e),w.allowClickThrough)z--;else break};
_.Y._onCaptureFocus=function(e){var z=_.pTs(this);z&&z._onCaptureFocus(e)};
_.Y._onCaptureKeyDown=function(e){var z=_.pTs(this);z&&(_.cv.keyboardEventMatchesKeys(e,"esc")?z._onCaptureEsc(e):_.cv.keyboardEventMatchesKeys(e,"tab")&&z._onCaptureTab(e))};
_.Y._shouldBeBehindOverlay=function(e,z){return!e.alwaysOnTop&&z.alwaysOnTop&&!z.contains(e)};
_.lB.Object.defineProperties(mW.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 e=document.activeElement;e&&e instanceof Element!==!1||(e=document.body);for(;e.root&&_.mb(e.root).activeElement;)e=_.mb(e.root).activeElement;return e}}});
_.aY=new mW;var vP1=0,Iog=0,WX4=null,Pss=[],ap=["wheel","mousewheel","DOMMouseScroll"],RT4;_.M("web_no_lock_on_touchstart_killswitch")&&(ap.push("touchstart"),ap.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;_.nA={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:_.aY},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var e;return this._focusedChild||_.mb((e=this.hostElement)!=null?e:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var e;return _.cLY((e=this.hostElement)!=null?e: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 e;this._observer=_.mb((e=this.hostElement)!=null?e:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var e;_.mb((e=this.hostElement)!=null?e:this).unobserveNodes(this._observer)}this._observer=null;for(var z in this.__rafs)this.__rafs[z]!==null&&cancelAnimationFrame(this.__rafs[z]);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(e){this.fire("iron-overlay-canceled",e,{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 e;((e=this.hostElement)!=null?e:this).style.outline="none";var z;((z=this.hostElement)!=null?z:this).style.display="none"}},
_openedChanged:function(e){if(e){var z;((z=this.hostElement)!=null?z:this).removeAttribute("aria-hidden")}else{var C;((C=this.hostElement)!=null?C: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 e;if(this.withBackdrop&&!((e=this.hostElement)!=null?e:this).hasAttribute("tabindex")){var z;((z=this.hostElement)!=null?z:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var C;((C=this.hostElement)!=null?C: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 e;((e=this.hostElement)!=null?e:this).style.display="none";var z;((z=this.hostElement)!=null?z:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var e,z;((e=this.hostElement)!=null?e:this).style.transition=((z=this.hostElement)!=null?z:this).style.webkitTransition="none";var C,w;((C=this.hostElement)!=null?C:this).style.transform=((w=this.hostElement)!=null?w:this).style.webkitTransform="none";var K;((K=this.hostElement)!=null?K:this).style.display=""},
_finishPositioning:function(){var e;((e=this.hostElement)!=null?e:this).style.display="none";this.scrollTop=this.scrollTop;var z,C;((z=this.hostElement)!=null?z:this).style.transition=((C=this.hostElement)!=null?C:this).style.webkitTransition="";var w,K;((w=this.hostElement)!=null?w:this).style.transform=((K=this.hostElement)!=null?K:this).style.webkitTransform="";var G;((G=this.hostElement)!=null?G:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var e=this._manager.deepActiveElement,z;if(!(z=e===document.body))a:{for(;e;e=e.assignedSlot||e.parentNode||e.host)if(e===this){z=!0;break a}z=!1}z&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(e){this.noCancelOnOutsideClick||this.cancel(e)},
_onCaptureFocus:function(e){if(this.withBackdrop){var z=_.mb(e).path;z.indexOf(this)===-1?(e.stopPropagation(),this._applyFocus()):this._focusedChild=z[0]}},
_onCaptureEsc:function(e){this.noCancelOnEscKey||this.cancel(e)},
_onCaptureTab:function(e){if(this.withBackdrop){this.__ensureFirstLastFocusables();var z=e.shiftKey,C=z?this.__firstFocusableNode:this.__lastFocusableNode;z=z?this.__lastFocusableNode:this.__firstFocusableNode;if(C===z)C=!0;else{var w=this._manager.deepActiveElement;C=w===C||w===this}C&&(e.preventDefault(),this._focusedChild=z,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 e=this._focusableNodes;this.__firstFocusableNode=e[0];this.__lastFocusableNode=e[e.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(e,z){var C=this.__rafs;C[e]!==null&&cancelAnimationFrame(C[e]);C[e]=requestAnimationFrame(function(){C[e]=null;z.call(this)}.bind(this))},
__updateScrollObservers:function(e,z,C){e&&z&&this.__isValidScrollAction(C)?(C==="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),RT4=_._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()):(e=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),e!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(e,1),RT4=_._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(z0)for(var e=this;e;)e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host&&this.__rootNodes.push(e),e=e.host||e.assignedSlot||e.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(z){z.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(e){e.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(e){return e==="lock"||e==="refit"||e==="cancel"},
__onCaptureScroll:function(e){if(!(this.__isAnimating||_.mb(e).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(e)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.MB=[t2s,_.oY,_.nA];_.hK({_template:function(){if(s86!==void 0)return s86;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;NJ4===void 0&&(NJ4=document.createElement("template"));var w=NJ4;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return s86=e},
is:"tp-yt-iron-dropdown",behaviors:[_.Ap,_.cv,_.MB,xIa],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 e=_.mb(this.$.content).getDistributedNodes(),z=0,C=e.length;z<C;z++)if(e[z].nodeType===Node.ELEMENT_NODE)return e[z]},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(),_.nA._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.nA._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.nA._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var e=this.containedElement,z=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),C=0;C<z.length;C++)z[C].node=e;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(e){this._readied&&(e?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var e=this.focusTarget||this.containedElement;e&&this.opened&&!this.noAutoFocus?e.focus():_.nA._applyFocus.apply(this,arguments)}});var emc;var zm6;/*

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 Cbg=new _.zK({type:"iconset"});
_.hK({_template:function(){if(zm6!==void 0)return zm6;var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;emc===void 0&&(emc=document.createElement("template"));
var w=emc;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return zm6=e},
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(e){e=(e||"").split(":");this._iconName=e.pop();this._iconsetName=e.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&&_.mb(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Cbg.byKey(this._iconsetName)){var e=this._iconset.applyIcon(this,this._iconName,this.theme);e&&e.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,_.mb(this.root).appendChild(this._img)}});var w2L;var KEs;_.hK({_template:function(){if(KEs!==void 0)return KEs;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
var z=e.content,C=z.insertBefore;w2L===void 0&&(w2L=document.createElement("template"));var w=w2L;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return KEs=e},
is:"tp-yt-iron-input",behaviors:[_.wU],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(){_.lK.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.mb(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.mb(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 e=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":e=/[0-9.,e-]/}return e},_bindValueChanged:function(e,z){z&&(e===void 0?z.value=null:e!==z.value&&(this.inputElement.value=e),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:e}))},
_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(e){var z=e.keyCode==19||e.keyCode==20||e.keyCode==45||e.keyCode==46||e.keyCode==144||e.keyCode==145||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(e.keyCode==8||e.keyCode==9||e.keyCode==13||e.keyCode==27)&&!(e.charCode==0&&z)},
_onKeypress:function(e){if(this.allowedPattern||this.inputElement.type==="number"){var z=this._patternRegExp;if(z&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var C=String.fromCharCode(e.charCode);this._isPrintable(e)&&!z.test(C)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+C+" not entered."))}}},
_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var z=0;z<this.inputElement.value.length;z++)if(!e.test(this.inputElement.value[z]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var e=this.inputElement.checkValidity();e&&(this.required&&this.bindValue===""?e=!1:this.hasValidator()&&(e=_.wU.validate.call(this,this.bindValue)));this.invalid=!e;this.fire("iron-input-validate");return e},
_announceInvalidCharacter:function(e){this.fire("iron-announce",{text:e})},
_computeValue:function(e){return e}});var oQL;var G1c;var YSX=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),bk4=YSX&&YSX[1]>=8;
_.hK({_template:function(){if(G1c!==void 0)return G1c;var e=document.createElement("template");_.v(e,'\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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;oQL===void 0&&(oQL=document.createElement("template"));var w=oQL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return G1c=e},
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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[eFh,_.oY,_.q7X,j5Y],_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 _.mb(_.mb(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var e=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,e-this._physicalCount)},set _virtualStart(e){e=this._clamp(e,0,this._maxVirtualStart);this.grid&&(e-=e%this._itemsPerRow);this._virtualStartVal=e},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(e){e%=this._physicalCount;e<0&&(e=this._physicalCount+e);this.grid&&(e-=e%this._itemsPerRow);this._physicalStartVal=e},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(e){this._physicalCountVal=e},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 e=this._firstVisibleIndexVal;if(e==null){var z=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
e=this._iterateItems(function(C,w){z+=this._getPhysicalSizeIncrement(C);if(z>this._scrollPosition)return this.grid?w-w%this._itemsPerRow:w;if(this.grid&&this._virtualCount-1===w)return w-w%this._itemsPerRow})||0}return e},
get lastVisibleIndex(){var e=this._lastVisibleIndexVal;if(e==null){if(this.grid)e=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var z=this._physicalTop+this._scrollOffset;this._iterateItems(function(C,w){z<this._scrollBottom&&(e=w);z+=this._getPhysicalSizeIncrement(C)})}this._lastVisibleIndexVal=e}return e},
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,_.P9);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(e){this.style.webkitOverflowScrolling=e===this?"touch":"";this.style.overflowY=e===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.P9)},
updateViewportBoundaries:function(){var e=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10);this._isRTL=e.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),z=e-this._scrollPosition,C=z>=0;this._scrollPosition=e;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(z)>this._physicalSize&&this._physicalSize>0?(z-=this._scrollOffset,C=Math.round(z/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=C,this._physicalStart+=C,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(e=this._getReusables(C),C?(this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length):(this._virtualStart=this._virtualStart-e.indexes.length,this._physicalStart=this._physicalStart-e.indexes.length),this._update(e.indexes,C?null:e.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ZV))},
_getReusables:function(e){var z=[],C=this._hiddenContentSize*this._ratio,w=this._virtualStart,K=this._virtualEnd,G=this._physicalCount,X=this._physicalTop+this._scrollOffset;var J=this._physicalBottom+this._scrollOffset;var q=this._scrollPosition,T=this._scrollBottom;if(e){var Q=this._physicalStart;J=q-X}else Q=this._physicalEnd,J-=T;for(;;){var m=this._getPhysicalSizeIncrement(Q);J-=m;if(z.length>=G||J<=C)break;if(e){if(K+z.length+1>=this._virtualCount)break;if(X+m>=q-this._scrollOffset)break;z.push(Q);
X+=m;Q=(Q+1)%G}else{if(w-z.length<=0)break;if(X+this._physicalSize-m<=T)break;z.push(Q);X-=m;Q=Q===0?G-1:Q-1}}return{indexes:z,physicalTop:X-this._scrollOffset}},
_update:function(e,z){if(!(e&&e.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(e);this._updateMetrics(e);if(z)for(;z.length;)e=z.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(e);this._positionItems();this._updateScrollerSize()}},
_createPool:function(e){this._ensureTemplatized();var z,C=Array(e);for(z=0;z<e;z++){var w=this.stamp(null);C[z]=w.root.querySelector("*");this._itemsParent.appendChild(w.root)}return C},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(e){e=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart);e=this._convertIndexToCompleteRow(e);if(this.grid){var z=e%this._itemsPerRow;z&&e-z<=this._physicalCount&&(e+=this._itemsPerRow);e-=z}e-=this._physicalCount;z=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){z=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(var C=0;C<e;C++)this._physicalSizes.push(0);this._physicalCount+=e;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e);this._update();this._templateCost=(window.performance.now()-z)/e;z=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||z===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,z)),RdX):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,z),ZV))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var e=this._getReusables(!0);this._physicalTop=e.physicalTop;this._virtualStart+=e.indexes.length;this._physicalStart+=e.indexes.length;this._update(e.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 e={__key__:!0};e[this.as]=!0;e[this.indexAs]=!0;e[this.selectedAs]=!0;e.tabIndex=!0;this._instanceProps=e;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(e,z){typeof z!=="undefined"&&(this.notifyResize(),_.S1(),e&&this._updateGridMetrics())},
_itemsChanged:function(e){if(e.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,
_.P9);else if(e.path==="items.splices"){this._adjustVirtualIndex(e.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(e.value.indexSplices.some(function(C){return C.addedCount>0||C.removed.length>0})){var z=this._getActiveElement();
this.contains(z)&&z.blur()}e=e.value.indexSplices.some(function(C){return C.index+C.addedCount>=this._virtualStart&&C.index<=this._virtualEnd},this);
this._isClientFull()&&!e||this._debounce("_render",this._render,_.P9)}else e.path!=="items.length"&&this._forwardItemPath(e.path,e.value)},
_forwardItemPath:function(e,z){e=e.slice(6);var C=e.indexOf(".");C===-1&&(C=e.length);var w,K=this.modelForElement(this._offscreenFocusedItem),G=parseInt(e.substring(0,C),10);if(w=this._isIndexRendered(G)){var X=this._getPhysicalIndex(G);var J=this.modelForElement(this._physicalItems[X])}else K&&(J=K);J&&J[this.indexAs]===G&&(e=e.substring(C+1),e=this.as+(e?"."+e:""),J._setPendingPropertyOrPath(e,z,!1,!0),J._flushProperties&&J._flushProperties(),w&&(this._updateMetrics([X]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(e){e.forEach(function(z){z.removed.forEach(this._removeItem,this);z.index<this._virtualStart&&(z=Math.max(z.addedCount-z.removed.length,z.index-this._virtualStart),this._virtualStart+=z,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=z))},this)},
_removeItem:function(e){this.$.selector.deselect(e);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===e&&this._removeFocusedItem()},
_iterateItems:function(e,z){var C,w;if(arguments.length===2&&z)for(w=0;w<z.length;w++){var K=z[w];var G=this._computeVidx(K);if((C=e.call(this,K,G))!=null)return C}else{K=this._physicalStart;for(G=this._virtualStart;K<this._physicalCount;K++,G++)if((C=e.call(this,K,G))!=null)return C;for(K=0;K<this._physicalStart;K++,G++)if((C=e.call(this,K,G))!=null)return C}},
_computeVidx:function(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},
_assignModels:function(e){this._iterateItems(function(z,C){var w=this._physicalItems[z],K=this.items&&this.items[C];if(K!=null){var G=this.modelForElement(w);G.__key__=null;this._forwardProperty(G,this.as,K);this._forwardProperty(G,this.selectedAs,this.$.selector.isSelected(K));this._forwardProperty(G,this.indexAs,C);this._forwardProperty(G,"tabIndex",this._focusedVirtualIndex===C?0:-1);this._physicalIndexForKey[G.__key__]=z;G._flushProperties&&G._flushProperties(!0);w.removeAttribute("hidden")}else w.setAttribute("hidden",
"")},e)},
_updateMetrics:function(e){_.S1();var z=0,C=0,w=this._physicalAverageCount,K=this._physicalAverage;this._iterateItems(function(G){C+=this._physicalSizes[G];this._physicalSizes[G]=this._physicalItems[G].offsetHeight;z+=this._physicalSizes[G];this._physicalAverageCount+=this._physicalSizes[G]?1:0},e);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(C=this._itemsPerRow===1?C:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+z-C,this._itemsPerRow=1);this._physicalAverageCount!==w&&(this._physicalAverage=Math.round((K*w+z)/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 e=this._physicalTop;if(this.grid){var z=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(C,w){var K=Math.floor(w%this._itemsPerRow*this._itemWidth+z);this._isRTL&&(K*=-1);this.translate3d(K+"px",e+"px",0,this._physicalItems[C]);this._shouldRenderNextRow(w)&&(e+=this._rowHeight)})}else this._iterateItems(function(C){this.translate3d(0,e+"px",0,this._physicalItems[C]);
e+=this._physicalSizes[C]})},
_getPhysicalSizeIncrement:function(e){return this.grid?this._computeVidx(e)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[e]},
_shouldRenderNextRow:function(e){return e%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var e=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(e!==0){this._physicalTop=this._physicalTop-e;var z=this._scrollPosition;!bk4&&z>0&&this._resetScrollPosition(z-e)}},
_resetScrollPosition:function(e){this.scrollTarget&&e>=0&&(this._scrollPosition=this._scrollTop=e)},
_updateScrollerSize:function(e){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((e=(e=(e=e||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(e){return this.scrollToIndex(this.items.indexOf(e))},
scrollToIndex:function(e){if(!(typeof e!=="number"||e<0||e>this.items.length-1)&&(_.S1(),this._physicalCount!==0)){e=this._clamp(e,0,this._virtualCount-1);if(!this._isIndexRendered(e)||e>=this._maxVirtualStart)this._virtualStart=this.grid?e-this._itemsPerRow*2:e-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var z=this._physicalStart,C=this._virtualStart,w=0,K=this._hiddenContentSize;C<e&&
w<=K;)w+=this._getPhysicalSizeIncrement(z),z=(z+1)%this._physicalCount,C++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+w);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)},_.P9)},
selectItem:function(e){return this.selectIndex(this.items.indexOf(e))},
selectIndex:function(e){if(!(e<0||e>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(e)){var z=this.modelForElement(this._physicalItems[this._getPhysicalIndex(e)]);z&&(z[this.selectedAs]=!0);this.updateSizeForIndex(e)}this.$.selector.selectIndex(e)}},
deselectItem:function(e){return this.deselectIndex(this.items.indexOf(e))},
deselectIndex:function(e){e<0||e>=this._virtualCount||(this._isIndexRendered(e)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(e)])[this.selectedAs]=!1,this.updateSizeForIndex(e)),this.$.selector.deselectIndex(e))},
toggleSelectionForItem:function(e){return this.toggleSelectionForIndex(this.items.indexOf(e))},
toggleSelectionForIndex:function(e){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(e):this.$.selector.isSelected(this.items[e]))?this.deselectIndex(e):this.selectIndex(e)},
clearSelection:function(){this._iterateItems(function(e){this.modelForElement(this._physicalItems[e])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(e){(e?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(e){var z=this.modelForElement(e.target);if(z){var C=_.mb(e).path[0];e=this._getActiveElement();var w=this._physicalItems[this._getPhysicalIndex(z[this.indexAs])];if(C.localName!=="input"&&C.localName!=="button"&&C.localName!=="select"){C=z.tabIndex;z.tabIndex=-100;var K=e?e.tabIndex:-1;z.tabIndex=C;e&&w!==e&&w.contains(e)&&K!==-100||this.toggleSelectionForItem(z[this.as])}}},
_multiSelectionChanged:function(e){this.clearSelection();this.$.selector.multi=e},
updateSizeForItem:function(e){return this.updateSizeForIndex(this.items.indexOf(e))},
updateSizeForIndex:function(e){if(!this._isIndexRendered(e))return null;this._updateMetrics([this._getPhysicalIndex(e)]);this._positionItems();return null},
_manageFocus:function(){var e=this._focusedVirtualIndex;e>=0&&e<this._virtualCount?this._isIndexRendered(e)?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(e){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(e/this._itemsPerRow)*this._itemsPerRow:e},
_isIndexRendered:function(e){return e>=this._virtualStart&&e<=this._virtualEnd},
_isIndexVisible:function(e){return e>=this.firstVisibleIndex&&e<=this.lastVisibleIndex},
_getPhysicalIndex:function(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},
focusItem:function(e){this._focusPhysicalItem(e)},
_focusPhysicalItem:function(e){if(!(e<0||e>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(e)||this.scrollToIndex(e);var z=this._physicalItems[this._getPhysicalIndex(e)],C=this.modelForElement(z),w;C.tabIndex=-100;z.tabIndex===-100&&(w=z);w||(w=_.mb(z).querySelector('[tabindex="-100"]'));C.tabIndex=0;this._focusedVirtualIndex=e;w&&w.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 e=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var z=this.stamp(null);this._focusBackfillItem=z.root.querySelector("*");this._itemsParent.appendChild(z.root)}this._offscreenFocusedItem=this._physicalItems[e];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[e]=this._focusBackfillItem;this._focusedPhysicalIndex=e;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var e=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),z=this._physicalItems[e];if(z){var C=this.modelForElement(z),w=this.modelForElement(this._offscreenFocusedItem);C[this.as]===w[this.as]?(this._focusBackfillItem=z,C.tabIndex=-1,this._physicalItems[e]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(e){e=this.modelForElement(e.target);var z=this.modelForElement(this._focusedItem),C=this._offscreenFocusedItem!==null,w=this._focusedVirtualIndex;e&&(z===e?this._isIndexVisible(w)||this.scrollToIndex(w):(this._restoreFocusedItem(),z&&(z.tabIndex=-1),e.tabIndex=0,this._focusedVirtualIndex=w=e[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(w),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],C&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(e){switch(e.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&e.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&&e.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(e)}},
_clamp:function(e,z,C){return Math.min(C,Math.max(z,e))},
_debounce:function(e,z,C){this._debouncers=this._debouncers||{};this._debouncers[e]=_.OJ(this._debouncers[e],C,z.bind(this));_.EJ(this._debouncers[e])},
_forwardProperty:function(e,z,C){e._setPendingProperty(z,C)},
_forwardHostPropV2:function(e,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(C){C&&this.modelForElement(C).forwardHostProp(e,z)},this)},
_notifyInstancePropV2:function(e,z,C){Es1(this.as,z)&&(e=e[this.indexAs],z==this.as&&(this.items[e]=C),this.notifyPath(hH(this.as,"items."+e,z),C))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(e,z,C){z.indexOf(this.as+".")===0&&this.notifyPath("items."+e.__key__+"."+z.slice(this.as.length+1),C)},
_forwardParentPath:function(e,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(C){C&&this.modelForElement(C).notifyPath(e,z)},this)},
_forwardParentProp:function(e,z){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(C){C&&(this.modelForElement(C)[e]=z)},this)},
_getActiveElement:function(){var e=this._itemsParent.node.domHost;return _.mb(e?e.root:document).activeElement},
_scrollTargetChanged:function(e,z){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(z)if(e==="document")this.scrollTarget=this._doc;else if(typeof e==="string"){var C,w;this.scrollTarget=(z=(w=(C=this.domHost)==null?void 0:C.polymerController)!=null?w:this.domHost)&&z.$?z.$[e]:_.mb(this.ownerDocument).querySelector("#"+e)}else this._isValidScrollTarget()&&(this._oldScrollTarget=e,this._toggleScrollListener(this._shouldHaveListener,e))}});var X26;var JTo;var k14=function(e,z,C,w){e-=C;z-=w;return Math.sqrt(e*e+z*z)},qSU=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
LXL.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var hT7=function(e){e.maxRadius=0;e.mouseDownStart=0;e.mouseUpStart=0;e.xStart=0;e.yStart=0;e.xEnd=0;e.yEnd=0;e.containerMetrics=new LXL(e.element)};
Ocg.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var e=qSU()-this.mouseDownStart;this.mouseUpStart&&(e-=this.mouseUpElapsed);return e},get mouseUpElapsed(){return this.mouseUpStart?qSU()-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 e=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(e*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-e/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var e=this.radius/(this.containerMetrics.size/2);var z=this.xNow-this.containerMetrics.width/2;var C=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+z+"px, "+C+"px)";this.waveContainer.style.transform="translate3d("+z+"px, "+C+"px, 0)";this.wave.style.webkitTransform="scale("+e+","+e+")";this.wave.style.transform="scale3d("+e+","+e+",1)"},
downAction:function(e){var z=this.containerMetrics.width/2,C=this.containerMetrics.height/2;hT7(this);this.mouseDownStart=qSU();this.center?(this.xStart=z,this.yStart=C):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=z,this.yEnd=C);e=this.containerMetrics;z=this.xStart;C=this.yStart;this.maxRadius=Math.max(k14(z,C,0,0),k14(z,C,
e.width,0),k14(z,C,0,e.height),k14(z,C,e.width,e.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=qSU())},
remove:function(){_.mb(_.mb(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.hK({_template:function(){if(JTo!==void 0)return JTo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;X26===void 0&&(X26=document.createElement("template"));var w=X26;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return JTo=e},
is:"tp-yt-paper-ripple",behaviors:[_.cv],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(){_.mb(this).parentNode.nodeType==11?this.keyEventTarget=_.mb(this).getOwnerRoot().host:this.keyEventTarget=_.mb(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction");this.listen(e,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(e){e.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var e=0;e<this.ripples.length;++e)if(!this.ripples[e].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(e){this.noink||this.downAction(e)},
downAction:function(e){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(e){this.noink||this.upAction(e)},
upAction:function(e){this.holdDown||(this.ripples.forEach(function(z){z.upAction(e)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var e=0;e<this.ripples.length;++e){var z=this.ripples[e];z.isOpacityFullyDecayed&&!z.isRestingAtMaxRadius&&this.removeRipple(z)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var e=new Ocg(this);_.mb(this.$.waves).appendChild(e.waveContainer);this.$.background.style.backgroundColor=e.color;this.ripples.push(e);this._setAnimating(!0);return e},
removeRipple:function(e){var z=this.ripples.indexOf(e);z<0||(this.ripples.splice(z,1),e.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var e;for(e=0;e<this.ripples.length;++e){var z=this.ripples[e];z.draw();this.$.background.style.opacity=z.outerOpacity;z.isOpacityFullyDecayed&&!z.isRestingAtMaxRadius&&this.removeRipple(z)}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(e,z){z!==void 0&&(e?this.downAction():this.upAction())}});var rU={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(e){Z2._downHandler.call(this,e);this.pressed&&this.ensureRipple(e)},
ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var z=this._rippleContainer||this.root;z&&_.mb(z).appendChild(this._ripple);if(e){z=_.mb(this._rippleContainer||this);var C=_.mb(e).rootTarget;z.deepContains(C)&&this._ripple.uiDownAction(e)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}};var x3X={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 e=1;this.disabled?e=0:this.active||this.pressed?e=4:this.receivedFocusFromKeyboard&&(e=3);this._setElevation(e)},
_computeKeyboardClass:function(e){this.toggleClass("keyboard-focus",e)},
_spaceKeyDownHandler:function(e){Z2._spaceKeyDownHandler.call(this,e);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(e){Z2._spaceKeyUpHandler.call(this,e);this.hasRipple()&&this._ripple.uiUpAction()}},TBo=[z0Y,
_.Ap,rU,x3X];_.$3o={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=e)},
_createRipple:function(){var e=rU._createRipple();e.id="ink";e.setAttribute("center","");e.classList.add("circle");return e}};
_.lAg=[z0Y,_.Ap,rU,_.$3o];_.QiL=[_.lAg,KDT,{_checkedChanged:function(){wWa._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){rU._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var m3U;var aAU;var nQU=function(){};
_.Y=nQU.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._createRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._computeKeyboardClass=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
_.Y._setElevation=function(){};
nQU=_.hK({_template:function(){if(aAU!==void 0)return aAU;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
var z=e.content,C=z.insertBefore;m3U===void 0&&(m3U=document.createElement("template"));var w=m3U;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return aAU=e},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[TBo],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?x3X._calculateElevation.apply(this):this._setElevation(0)}});var Mls;var rTa;var Hkh={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(e){_.M("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(e)},
_onDialogClickWrapped:function(e){_.M("dialog_behavior_no_tap_killswitch")||this._onDialogClick(e)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(e,z){z&&(e?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(e){if(e){var z;((z=this.hostElement)!=null?z:this).setAttribute("aria-modal","true")}else{var C;((C=this.hostElement)!=null?C:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(e){this.closingReason=this.closingReason||{};this.closingReason.confirmed=e},
_onDialogClick:function(e){for(var z=_.mb(e).path,C=0,w,K=z.indexOf((w=this.hostElement)!=null?w:this);C<K;C++)if(w=z[C],w.hasAttribute&&(w.hasAttribute("dialog-dismiss")||w.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(w.hasAttribute("dialog-confirm"));this.close();e.stopPropagation();break}}},U3g=[_.MB,
Hkh];var vQh=document.createElement("template");_.v(vQh,'<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(vQh.content);var IAs=document.createElement("template");_.v(IAs,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(IAs.content);_.hK({_template:function(){if(rTa!==void 0)return rTa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
var z=e.content,C=z.insertBefore;Mls===void 0&&(Mls=document.createElement("template"));var w=Mls;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return rTa=e},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[U3g,xIa],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 WEY;var PbS;_.hK({_template:function(){if(PbS!==void 0)return PbS;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;WEY===void 0&&(WEY=document.createElement("template"));var w=WEY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return PbS=e},
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 e,z,C;if(((e=window.ShadyDOM)==null?void 0:e.noPatch)!==!0&&((z=window.ShadyDOM)==null?void 0:z.noPatch)!=="on-demand"||((C=this.__shady_parentNode)==null?void 0:C.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Hkh)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Rma=_.Kb(['<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>']),LE6=_.pIL(Rma);LE6.setAttribute("style","display: none;");document.head.appendChild(LE6.content);var hmc;var OkS;var EQC;var FEa;_.hK({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[GK],configure:function(e){var z=e.node,C=z.getBoundingClientRect().height;return this._effect=new KeyframeEffect(z,[{height:C/2+"px"},{height:C+"px"}],this.timingFromConfig(e))}});
_.hK({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[GK],configure:function(e){var z=e.node,C=z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(z,[{width:C/2+"px"},{width:C+"px"}],this.timingFromConfig(e))}});
_.hK({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[GK],configure:function(e){var z=e.node,C=z.getBoundingClientRect().width;return this._effect=new KeyframeEffect(z,[{width:C+"px"},{width:C-C/20+"px"}],this.timingFromConfig(e))}});
_.hK({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[GK],configure:function(e){var z=e.node,C=z.getBoundingClientRect().height;this.setPrefixedProperty(z,"transformOrigin","0 0");return this._effect=new KeyframeEffect(z,[{height:C+"px",transform:"translateY(0)"},{height:C/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(e))}});var Ht={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},VlS=function(){};
_.Y=VlS.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._changedControlState=function(){};
_.Y._setFocused=function(){};
VlS=_.hK({_template:function(){if(FEa!==void 0)return FEa;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;EQC===void 0&&(EQC=document.createElement("template"));var w=EQC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return FEa=e},
is:"tp-yt-paper-menu-button",behaviors:[_.cv,_.Ap],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:Ht.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Ht.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:Ht.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var e=_.mb(this.$.content).getDistributedNodes(),z=0,C=e.length;z<C;z++)if(e[z].nodeType===Node.ELEMENT_NODE)return e[z]},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(e,z){e?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):z!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(e){_.Ap._disabledChanged.apply(this,arguments);e&&this.opened&&this.close()},
__onIronOverlayCanceled:function(e){var z=this.$.trigger;_.mb(e.detail).path.indexOf(z)>-1&&e.preventDefault()}});
Object.keys(Ht).forEach(function(e){VlS[e]=Ht[e]});var fAg=_.pr.IronButtonState,SSs=(0,_.gu)(HTMLElement);
_.hK({_template:function(){if(OkS!==void 0)return OkS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;hmc===void 0&&(hmc=document.createElement("template"));var w=hmc;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return OkS=e},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[fAg,_.Ap,rU,_.eO,_.wU],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(e){var z=(0,_.fZ)(this);z.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:e});z.shadowRoot.appendChild(e);return SSs.prototype._attachDom.call(this,e)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},
get contentElement(){for(var e=_.mb(this.$.content).getDistributedNodes(),z=0,C=e.length;z<C;z++)if(e[z].nodeType===Node.ELEMENT_NODE)return e[z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(e){this._setSelectedItem(e.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(e){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e)===this&&this.open()},
_selectedItemChanged:function(e){var z="";e?z=e.label||e.getAttribute("label")||e.textContent.trim():z="";this.value=z;this._setSelectedItemLabel(z)},
_computeMenuVerticalOffset:function(e,z){return z?z:e?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var e=this.opened?"true":"false",z=this.contentElement;z&&z.setAttribute("aria-expanded",e)},
_computeLabelClass:function(e,z,C){var w="label";if(e)C&&(w+=" label-is-hidden");else if(C||z)w+=" label-is-floating";return w},
_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 ub4;var d3a;_.hK({is:"tp-yt-paper-icon-button",_template:function(){if(d3a!==void 0)return d3a;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ub4===void 0&&(ub4=document.createElement("template"));var w=ub4;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return d3a=e},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.lAg],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(e,z){var C=this.getAttribute("aria-label");C&&z!=C||this.setAttribute("aria-label",e)}});var D3T;var ika;_.U4=[z0Y,_.Ap,{hostAttributes:{role:"option",tabindex:"0"}}];_.hK({_template:function(){if(ika!==void 0)return ika;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;D3T===void 0&&(D3T=document.createElement("template"));var w=D3T;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return ika=e},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.U4]});var NBs;var si6;var BBg={attached:function(){this.fire("addon-attached")},
update:function(){}};var tlT=1,gQU=1,jiS=1,yTL=[_.Ap,_.cv,{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();!UJ&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(e,z){e?e=e+" "+z:e=z;return e},
_onAddonAttached:function(e){e=_.mb(e).rootTarget;if(e.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,e.id);else{var z="paper-input-add-on-"+gQU++;e.id=z;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,z)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(e){_.Ap._focusBlurHandler.call(this,e);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var e=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",e);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(e){try{var z=this.inputElement.selectionStart;this.value=e;this.inputElement.selectionStart=z;this.inputElement.selectionEnd=z}catch(C){this.value=e}},
_computeAlwaysFloatLabel:function(e,z){return z||e},
_updateAriaLabelledBy:function(){var e=_.mb(this.root).querySelector("label");if(e){if(e.id)var z=e.id;else z="paper-input-label-"+tlT++,e.id=z;this._ariaLabelledBy=z}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+jiS++)},
_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement||this._focusableElement.focus()}}}];var cTL;var ATa;_.hK({_template:function(){if(ATa!==void 0)return ATa;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;cTL===void 0&&(cTL=document.createElement("template"));var w=cTL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return ATa=e},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[BBg],properties:{_charCounterStr:{type:String,value:"0"}},update:function(e){if(e.inputElement){e.value=e.value||"";var z=e.value.toString().length.toString();e.inputElement.hasAttribute("maxlength")&&(z+="/"+e.inputElement.getAttribute("maxlength"));this._charCounterStr=z}}});var ZkX;var p2a;_.hK({_template:function(){if(p2a!==void 0)return p2a;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ZkX===void 0&&(ZkX=document.createElement("template"));var w=ZkX;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return p2a=e},
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 IO(this.attrForValue)},get _inputElement(){return _.mb(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(e){this._addons||(this._addons=[]);e=e.target;this._addons.indexOf(e)===-1&&(this._addons.push(e),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(e){this._handleValueAndAutoValidate(e.target)},
_onValueChanged:function(e){var z=e.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,z.value===void 0||z.value===""))return;this._handleValueAndAutoValidate(e.target)},
_handleValue:function(e){var z=this._inputElementValue;z||z===0||e.type==="number"&&!e.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:e,value:z,invalid:this.invalid})},
_handleValueAndAutoValidate:function(e){this.autoValidate&&e&&(this.invalid=!(e.validate?e.validate(this._inputElementValue):e.checkValidity()));this._handleValue(e)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(e){if(this._addons)for(var z,C=0;z=this._addons[C];C++)z.update(e)},
_computeInputContentClass:function(e,z,C,w,K){var G="input-content";e?(K&&(G+=" label-is-hidden"),w&&!this.noUnfloatedLabelError&&(G+=" is-invalid")):(e=this.querySelector("label"),z||K?(G+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",w?G+=" is-invalid":C&&(G+=" label-is-highlighted")):(e&&(this.$.labelAndInputContainer.style.position="relative"),w&&!this.noUnfloatedLabelError&&(G+=" is-invalid")));C&&(G+=" focused");return G},
_computeUnderlineClass:function(e,z){var C="underline";z?C+=" is-invalid":e&&(C+=" is-highlighted");return C},
_computeAddOnContentClass:function(e,z){var C="add-on-content";z?C+=" is-invalid":e&&(C+=" is-highlighted");return C}});var ela;var zl6;_.hK({_template:function(){if(zl6!==void 0)return zl6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ela===void 0&&(ela=document.createElement("template"));var w=ela;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return zl6=e},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[BBg],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}});_.hK({is:"tp-yt-paper-input",_template:function(){if(si6!==void 0)return si6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;NBs===void 0&&(NBs=document.createElement("template"));var w=NBs;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return si6=e},
behaviors:[yTL,_.eO],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 CGX;var wqo;_.hK({_template:function(){if(wqo!==void 0)return wqo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=
e.content,C=z.insertBefore;CGX===void 0&&(CGX=document.createElement("template"));var w=CGX;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return wqo=e},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.U4]});var KxS;var ouL;_.hK({_template:function(){if(ouL!==void 0)return ouL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
var z=e.content,C=z.insertBefore;KxS===void 0&&(KxS=document.createElement("template"));var w=KxS;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return ouL=e},
is:"tp-yt-paper-item-body"});var GDX;var YVc;var bRU=function(){};
_.Y=bRU.prototype;_.Y.indexOf=function(){};
_.Y.selectPrevious=function(){};
_.Y.selectNext=function(){};
_.Y.selectIndex=function(){};
_.Y.forceSynchronousItemUpdate=function(){};
_.Y._checkFallback=function(){};
_.Y._addListener=function(){};
_.Y._removeListener=function(){};
_.Y._activateEventChanged=function(){};
_.Y._updateItems=function(){};
_.Y._selectSelected=function(){};
_.Y._filterItem=function(){};
_.Y._valueToItem=function(){};
_.Y._valueToIndex=function(){};
_.Y._indexToValue=function(){};
_.Y._valueForItem=function(){};
_.Y._observeItems=function(){};
_.Y._itemActivate=function(){};
_.Y.multiChanged=function(){};
_.Y._updateAttrForSelected=function(){};
_.Y._updateSelected=function(){};
_.Y._selectMulti=function(){};
_.Y._selectionChange=function(){};
_.Y._toggleSelected=function(){};
_.Y._valuesToItems=function(){};
_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y.select=function(){};
_.Y._resetTabindices=function(){};
_.Y._updateMultiselectable=function(){};
_.Y._focusWithKeyboardEvent=function(){};
_.Y._clearSearchText=function(){};
_.Y._focusPrevious=function(){};
_.Y._focusNext=function(){};
_.Y._applySelection=function(){};
_.Y._focusedItemChanged=function(){};
_.Y._onIronItemsChanged=function(){};
_.Y._onShiftTabDown=function(){};
_.Y._onFocus=function(){};
_.Y._onUpKey=function(){};
_.Y._onDownKey=function(){};
_.Y._onEscKey=function(){};
_.Y._onKeydown=function(){};
_.Y._activateHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._setSelectedItem=function(){};
_.Y._setItems=function(){};
_.Y._setSelectedItems=function(){};
_.Y._setFocusedItem=function(){};
bRU=_.hK({_template:function(){if(YVc!==void 0)return YVc;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
var z=e.content,C=z.insertBefore;GDX===void 0&&(GDX=document.createElement("template"));var w=GDX;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return YVc=e},
is:"tp-yt-paper-listbox",behaviors:[bba],hostAttributes:{role:"listbox"}});var XqL;var JQT;var kDY={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(e,z){return[e||z?"active":"",z?"cooldown":""].join(" ")},
__activeChanged:function(e,z){this.__setAriaHidden(!e);this.__coolingDown=!e&&z},
__altChanged:function(e){this.setAttribute("aria-label",e||"loading")},
__setAriaHidden:function(e){e?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.hK({_template:function(){if(JQT!==void 0)return JQT;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;XqL===void 0&&(XqL=document.createElement("template"));var w=XqL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return JQT=e},
is:"tp-yt-paper-spinner",behaviors:[kDY]});var qVa;var x_h;_.hK({_template:function(){if(x_h!==void 0)return x_h;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;qVa===void 0&&(qVa=document.createElement("template"));var w=qVa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return x_h=e},
is:"tp-yt-paper-spinner-lite",behaviors:[kDY]});var Tqa;var $_C;_.hK({_template:function(){if($_C!==void 0)return $_C;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Tqa===void 0&&(Tqa=document.createElement("template"));var w=Tqa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return $_C=e},
is:"tp-yt-paper-tab",behaviors:[_.Ap,_.pr.IronButtonState,rU],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 e=_.mb(this).parentNode;return!!e&&!!e.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(e){if(this.link){var z=this.queryEffectiveChildren("a");z&&e.target!==z&&z.click()}}});var l76;var QKo;var m_4=_.Kb(['<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>']),a7g=_.pIL(m_4);document.head.appendChild(a7g.content);_.hK({_template:function(){if(QKo!==void 0)return QKo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;l76===void 0&&(l76=document.createElement("template"));var w=l76;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return QKo=e},
is:"tp-yt-paper-tabs",behaviors:[_.oY,_.JdX],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(e){_.mb(this).querySelectorAll("tp-yt-paper-tab").forEach(e?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(e){e.setAttribute("noink","")},
_removeNoinkAttribute:function(e){e.removeAttribute("noink")},
_computeScrollButtonClass:function(e,z,C,w){return!z||C?"hidden":e?w?"hidden":"not-visible":""},
_computeTabsContentClass:function(e,z){var C="tabs-content";e&&(C+=" scrollable");if(!e||z)C+=" fit-container";return C},
_computeSelectionBarClass:function(e,z){var C="selection-bar";e?C+=" hidden":z&&(C+=" align-bottom");return C},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(e){return""+e},
_onIronSelect:function(e){this._tabChanged(e.detail.item,this._previousTab);this._previousTab=e.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();_.KA._activateHandler.apply(this,arguments)},
_scheduleActivation:function(e,z){this._pendingActivationItem=e;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,z)},
_delayedActivationHandler:function(){var e=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;e.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(e){e.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(e,z){this.scrollable&&this._affectScroll(z&&-z.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(e){this.$.tabsContainer.scrollLeft+=e;e=this.$.tabsContainer.scrollLeft;this._leftHidden=e===0||this.hideScrollButtons;this._rightHidden=e===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(e,z){if(e){var C=this.$.tabsContent.getBoundingClientRect(),w=C.width,K=e.getBoundingClientRect();C=K.left-C.left;this._pos={width:this._calcPercent(K.width,w),left:this._calcPercent(C,w)};if(this.noSlide||z==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var G=z.getBoundingClientRect();z=this.items.indexOf(z);e=this.items.indexOf(e);this.$.selectionBar.classList.add("expand");
e=z<e;this._isRTL&&(e=!e);e?this._positionBar(this._calcPercent(K.left+K.width-G.left,w)-5,this._left):this._positionBar(this._calcPercent(G.left+G.width-K.left,w)-5,this._calcPercent(C,w)+5);this.scrollable&&this._scrollToSelectedIfNeeded(K.width,C)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(e,z){z-=this.$.tabsContainer.scrollLeft;z<0?this.$.tabsContainer.scrollLeft+=z:(z+=e-this.$.tabsContainer.offsetWidth,z>0&&(this.$.tabsContainer.scrollLeft+=z))},
_calcPercent:function(e,z){return 100*e/z},
_positionBar:function(e,z){e=e||0;z=z||0;this._width=e;this._left=z;this.transform("translateX("+z+"%) scaleX("+e/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var e=this.$.selectionBar.classList;e.contains("expand")?(e.remove("expand"),e.add("contract"),this._positionBar(this._pos.width,this._pos.left)):e.contains("contract")&&e.remove("contract")}});var nuT;var MqC;_.hK({_template:function(){if(MqC!==void 0)return MqC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;nuT===void 0&&(nuT=document.createElement("template"));var w=nuT;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return MqC=e},
is:"tp-yt-paper-textarea",behaviors:[yTL,_.eO],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(e){this.$.input.textarea.selectionStart=e},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(e){this.$.input.textarea.selectionEnd=e},_ariaLabelledByChanged:function(e){this._focusableElement.setAttribute("aria-labelledby",e)},
_ariaDescribedByChanged:function(e){this._focusableElement.setAttribute("aria-describedby",e)},
get _focusableElement(){return this.inputElement.textarea}});var rQS;var HR6;/*

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 U_o=function(){};
_.Y=U_o.prototype;_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._focusedChanged=function(){};
_.Y.registered=function(){};
_.Y._invalidChanged=function(){};
_.Y.hasValidator=function(){};
_.Y.validate=function(){};
_.Y._getValidity=function(){};
_.Y._requiredChanged=function(){};
_.Y._valueChanged=function(){};
_.Y._checkedChanged=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
U_o=_.hK({is:"tp-yt-paper-toggle-button",_template:function(){if(HR6!==void 0)return HR6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;rQS===void 0&&(rQS=document.createElement("template"));var w=rQS;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return HR6=e},
behaviors:[_.QiL],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");_.T0(this,function(){_.AH(this,"pan-y")})},
_ontrack:function(e){e=e.detail;e.state==="start"?this._trackStart(e):e.state==="track"?this._trackMove(e):e.state==="end"&&this._trackEnd(e)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(e){e=e.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+e:e)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+e:e));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 e=rU._createRipple();e.id="ink";e.setAttribute("recenters","");e.classList.add("circle","toggle-ink");return e}});var vuC;var I7L;_.hK({_template:function(){if(I7L!==void 0)return I7L;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;vuC===void 0&&(vuC=document.createElement("template"));var w=vuC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return I7L=e},
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 e=_.mb(this).parentNode,z=_.mb(this).getOwnerRoot(),C;this.for?C=_.mb(z).querySelector("#"+this.for):C=e.nodeType==Node.DOCUMENT_FRAGMENT_NODE?z.host:e;return C},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(e){e==="entry"?this.show():e==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.mb(this).textContent.trim()===""){for(var e=!0,z=_.mb(this).getEffectiveChildNodes(),C=0;C<z.length;C++)if(z[C].textContent.trim()!==""){e=!1;break}if(e)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 e=this.offset;this.marginTop!=14&&this.offset==14&&(e=this.marginTop);var z=this.offsetParent.getBoundingClientRect(),C=this._target.getBoundingClientRect(),w=this.getBoundingClientRect(),K=(C.width-w.width)/2,G=(C.height-w.height)/2,X=C.left-z.left,J=C.top-z.top;switch(this.position){case "top":var q=X+K;var T=J-w.height-e;break;case "bottom":q=X+K;T=J+C.height+e;break;case "left":q=X-w.width-e;T=J+G;break;case "right":q=X+C.width+
e,T=J+G}this.fitToVisibleBounds?(z.left+q+w.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,q)+"px",this.style.right="auto"),z.top+T+w.height>window.innerHeight?(this.style.bottom=z.height+"px",this.style.top="auto"):(this.style.top=Math.max(-z.top,T)+"px",this.style.bottom="auto")):(this.style.left=q+"px",this.style.top=T+"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(e){e!==500&&this.updateStyles({"--paper-tooltip-delay-in":e+"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(e){if(e==="entry"&&this.animationEntry!=="")return this.animationEntry;if(e==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[e]&&typeof this.animationConfig[e][0].name==="string"){if(this.animationConfig[e][0].timing&&this.animationConfig[e][0].timing.delay&&this.animationConfig[e][0].timing.delay!==0){var z=this.animationConfig[e][0].timing.delay;e==="entry"?this.updateStyles({"--paper-tooltip-delay-in":z+"ms"}):e==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":z+
"ms"})}return this.animationConfig[e][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 Wxs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Wxs,_.X2);var PGo=_.UC(Wxs,[0,_.$l]);var vt=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(vt,_.X2);var Rl4=[3,4],LxY=[5,6];var hl4=[0,Rl4,LxY,_.mE,-1,_.qJ,_.ai,-1,VEL,f3U];var ORS=_.UC(vt,hl4),Eug=_.vL(hl4);var FxT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(FxT,_.X2);var VqC=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(VqC,_.X2);var f7o=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(f7o,_.X2);var SVT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(SVT,_.X2);var uoa=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(uoa,_.X2);var IY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(IY,_.X2);IY.prototype.getSource=function(){return _.i5(this,1)};
IY.prototype.getMessage=function(){return _.Ds(this,4)};
IY.prototype.getData=function(){return _.ra(this,uoa,8)};var d_C=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(d_C,_.X2);var Wt=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Wt,_.X2);var Pt=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Pt,_.X2);var RY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(RY,_.X2);RY.prototype.getUrl=function(){return _.Ds(this,1)};
RY.prototype.setUrl=function(e){return _.Et(this,1,e)};
RY.prototype.hasUrl=function(){return _.Hl(_.RP(this,1))!=null};var D_U=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(D_U,_.X2);var iRa=[3];var Nqh=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Nqh,_.X2);var LA=function(e){var z=new Nqh;return _.H5(z,2,e)};
Nqh.prototype.getLanguage=function(){return s7(this,4,hh)};
var sK4=function(e){var z=LA(1);return _.RT(z,6,hh,e)},hh=[3,
4,5,6];var Bq6=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Bq6,_.X2);var O4=function(e){var z=new Bq6;return _.H5(z,1,e)},E4=function(e,z){return _.RT(e,2,tqg,z)},tqg=[2,
3,4,5];var guh=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(guh,_.X2);var FS=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(FS,_.X2);var jKT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(jKT,_.X2);var yQT=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(yQT,_.X2);var cQs=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(cQs,_.X2);var AQ4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(AQ4,_.X2);var ZRo=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ZRo,_.X2);var VS=function(e){return _.ra(e,Pt,5)};var pqg=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(pqg,_.X2);pqg.prototype.getValue=function(){return u5(this,1)};var eSa=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(eSa,_.X2);var fA=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(fA,_.X2);fA.prototype.getMetadata=function(){return _.BW(this,cQs,7,SO)};
fA.prototype.hasMetadata=function(){return _.hd(this,cQs,7,SO)};
var zSL=_.zX4(fA),SO=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var uK=function(e){this.JSC$12339_name_=e;this.files_=[];this.directories_=[];this.directoryMap_={}};
uK.prototype.getName=function(){return this.JSC$12339_name_};var Dl=function(e,z){this.callback_=z;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new uK("");C1a(this,e,this.rootDirectory_);dU(this)},C1a=function(e,z,C){for(var w=0;w<z.length;w++){var K=z[w];
K.isFile?(e.fileOps_++,K.file((0,_.uZ)(e.handleFileSuccess_,e,C),(0,_.uZ)(e.handleFileError_,e))):e.unscannedDirectories_.push(new wEC(K,C))}},dU=function(e){if(e.unscannedDirectories_.length>0&&e.directoryOps_<5&&!e.hasError_){e.directoryOps_++;
var z=e.unscannedDirectories_.shift(),C=z.entry,w=new uK(C.name);z=z.parent;z.directoryMap_[w.getName()]=w;z.directories_.push(w);C=C.createReader();C.readEntries((0,_.uZ)(e.handleDirectorySuccess_,e,C,w),(0,_.uZ)(e.handleDirectoryError_,e))}e.directoryOps_!=0||e.fileOps_!=0||e.unscannedDirectories_.length!=0&&!e.hasError_||e.callback_(e.rootDirectory_.files_,e.rootDirectory_.directories_,e.hasError_)};
Dl.prototype.handleDirectorySuccess_=function(e,z,C){C1a(this,C,z);C.length==0?(this.directoryOps_--,dU(this)):e.readEntries((0,_.uZ)(this.handleDirectorySuccess_,this,e,z),(0,_.uZ)(this.handleDirectoryError_,this))};
Dl.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;dU(this)};
Dl.prototype.handleFileSuccess_=function(e,z){e.files_.push(z);this.fileOps_--;dU(this)};
Dl.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;dU(this)};
var wEC=function(e,z){this.entry=e;this.parent=z};var iK=function(e){_.N3.call(this);_.W9(e,"drop",this.onObjectsDropped_,!1,this);_.W9(e,"dragenter",this.onFilesDragged_,!1,this);_.W9(e,"dragover",this.onFilesDragged_,!1,this);_.W9(e,"dragleave",this.onDragLeave_,!1,this);_.W9(e,"dragend",this.onDragLeave_,!1,this)};
_.Tk(iK,_.N3);var Kzh=function(e,z){_.fk.call(this,"f");this.files=e;this.directories=z};
_.Tk(Kzh,_.fk);var oGU=function(){_.fk.call(this,"h")};
_.Tk(oGU,_.fk);var GpX=function(){_.fk.call(this,"i")};
_.Tk(GpX,_.fk);var YnC=function(){_.fk.call(this,"g")};
_.Tk(YnC,_.fk);iK.prototype.onObjectsDropped_=function(e){var z=this;e.preventDefault();var C=e.event_.dataTransfer;if((e=C&&C.items)&&e.length>0&&e[0].webkitGetAsEntry){C=[];for(var w=[],K=0;K<e.length;K++){var G=e[K].webkitGetAsEntry();G?C.push(G):w.push(e[K])}new Dl(C,function(X,J,q){q?z.dispatchEvent(new YnC("Error occurred while reading from the file system.")):z.dispatchEvent(new Kzh(X,J,w))})}else(e=C&&C.files)&&this.dispatchEvent(new Kzh(Array.from(e),[]))};
iK.prototype.onFilesDragged_=function(e){e.type==="dragenter"&&this.dispatchEvent(new oGU);e.preventDefault()};
iK.prototype.onDragLeave_=function(){this.dispatchEvent(new GpX)};var bNS=function(e,z){this.JSC$12362_name_=e;this.inputElement_=z};
bNS.prototype.getName=function(){return this.JSC$12362_name_};
bNS.prototype.getInputElement=function(){return this.inputElement_};var NB=function(e,z,C){z=z===void 0?"single_file":z;C=C===void 0?[]:C;_.N3.call(this);this.overlayTarget_=e;this.parentOverlay_=e!=null?e.parentNode:_.Lh("scotty-overlay-parent");this.selectorType_=z;this.acceptTypes_=C;this.overlay_=XEX(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.U(NB,_.N3);
var XEX=function(e,z,C,w){var K=document.createElement("input");K.setAttribute("type","file");K.setAttribute("name","Filedata");_.W9(K,"change",e.onFilesSelected_,!1,e);C==="multiple_file"&&(K.multiple="true");C==="single_directory"&&(K.webkitdirectory="true");w.length>0&&K.setAttribute("accept",w.join(","));K.style.position="absolute";K.style.overflow="hidden";K.style.height="0px";K.style.width="0px";K.style.opacity="0";K.setAttribute("aria-hidden","true");K.setAttribute("tabIndex",-1);if(e.overlayTarget_!=
null)return K.style.height=z.offsetHeight+"px",K.style.width=z.offsetWidth+"px",e.parentOverlay_&&(e.parentOverlay_.style.position="relative"),_.AL(K,z),wB(K,new _.st(z.offsetLeft,z.offsetTop)),K;e.parentOverlay_.appendChild(K);return K};
NB.prototype.click=function(){this.overlay_.click()};
NB.prototype.onFilesSelected_=function(e){a:{try{var z=(new XMLHttpRequest).upload!==void 0;break a}catch(T){}z=!1}if(z){var C;e=Array.from((C=e.target.files)!=null?C:[]);C=[];if(this.selectorType_==="single_directory"&&(_.MI||xj||_.nb)){C=new uK("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(z=0;z<e.length;z++)for(var w=e[z],K=w.webkitRelativePath.split("/"),G=C,X=0;X<K.length;X++){var J=K[X];if(X==K.length-1){J!="."&&G.files_.push(w);break}var q=G.directoryMap_[J];q==void 0&&(J=
q=new uK(J),G.directoryMap_[J.getName()]=J,G.directories_.push(J));G=q}C=C.directories_}this.dispatchEvent(new JIX(e,C,null))}else e=e.target.value,e.match(/^c:\\fakepath\\/i)&&(e=e.substring(12)),this.dispatchEvent(new JIX([],[],new bNS(e,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=XEX(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var JIX=function(e,z){_.fk.call(this,"j");this.files=e;this.directories=z};
_.U(JIX,_.fk);var kpY=function(e){this.uploadUrl_=e};var qn4=function(){_.N3.call(this)};
_.Tk(qn4,_.N3);var s4=function(e){_.fk.call(this,e)};
_.Tk(s4,_.fk);var Bt=function(e){_.fk.call(this,e)};
_.Tk(Bt,_.fk);var xtC=function(e,z,C,w,K){_.N3.call(this);C=document.createElement("form");C.setAttribute("method",z);C.setAttribute("enctype","multipart/form-data");C.setAttribute("encoding","multipart/form-data");z=document.createElement("input");z.setAttribute("type","hidden");z.setAttribute("name","metadata");z.setAttribute("value",K);C.appendChild(z);C.appendChild(w);this.JSC$12379_form_=C;e=new _.sX(e);_.oI(e,"upload_protocol","multipart");this.JSC$12379_url_=e.toString();this.JSC$12379_request_=new Pv;this.state_=
"Ready";this.JSC$12379_errorDescription_=null;this.JSC$12379_eventHandler_=new _.HA(this);_.I4(this,this.JSC$12379_eventHandler_);this.JSC$12379_eventHandler_.listen(this.JSC$12379_request_,"success",this.onTransferSuccess_);this.JSC$12379_eventHandler_.listen(this.JSC$12379_request_,"error",this.onTransferError_)};
_.U(xtC,qn4);_.Y=xtC.prototype;_.Y.run=function(){this.state_="Transferring";var e=this.JSC$12379_request_,z=this.JSC$12379_form_;if(e.JSC$11647_active_)throw Error("te");var C=new _.sX(this.JSC$12379_url_||z.action);e.JSC$11647_form_=z;z=e.JSC$11647_form_;C=_.cL(C.toString());C!==void 0&&(z.action=C);M4c(e)};
_.Y.getResponseCode=function(){return null};
_.Y.getResponseText=function(){return this.JSC$12379_request_&&this.JSC$12379_request_.getResponseText()||null};
_.Y.JSC$30237_getErrorDescription=function(){return this.JSC$12379_errorDescription_};
_.Y.cancel=function(){this.JSC$12379_request_&&this.JSC$12379_request_.abort();this.state_="Cancelled";this.dispatchEvent(new s4("o"))};
_.Y.pause=function(){};
_.Y.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new s4("l"))};
_.Y.onTransferError_=function(){this.JSC$12379_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new s4("n"))};var th=function(){_.AT.call(this)};
_.U(th,_.AT);th.prototype.createXhr=function(){var e=_.AT.prototype.createXhr.call(this);e.upload&&(e.upload.onprogress=(0,_.uZ)(this.onProgress_,this));return e};
th.prototype.onProgress_=function(e){this.dispatchEvent(e)};var TSU=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},lvU=function(e,z){var C=e.attempt_+1;
if(e.maxAttempts_>0&&C>e.maxAttempts_)return!1;C==0?z():e.delayCallId_=jl(function(){e.delayCallId_=null;z()},$tC(e),e);
e.attempt_=C;return!0};
TSU.prototype.reset=function(){this.delayCallId_&&_.wL.clearTimeout(this.delayCallId_);this.attempt_=-1};
var $tC=function(e){var z=250*Math.pow(2,e.attempt_);e.maxDelayMs_>=0&&(z=Math.min(z,e.maxDelayMs_));return z};var FXN=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var gU=function(){_.N3.call(this);this.JSC$12389_request_=this.state_=null;this.JSC$12389_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12389_bytesTransferred_=0;this.retryIterator_=new TSU;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12389_errorDescription_=null;this.JSC$12389_eventHandler_=new _.HA(this);_.I4(this,this.JSC$12389_eventHandler_);this.JSC$12389_url_=this.blob_=null;this.JSC$12389_method_=void 0;this.chunkSize_=this.JSC$12389_metadata_=
this.JSC$12389_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12389_responseText_=this.JSC$12389_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Tk(gU,qn4);_.Y=gU.prototype;_.Y.run=function(){jO(this)};
_.Y.getResponseCode=function(){return this.JSC$12389_responseCode_};
_.Y.getResponseText=function(){return this.JSC$12389_responseText_};
_.Y.JSC$30237_getErrorDescription=function(){return this.JSC$12389_errorDescription_};
_.Y.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12389_eventHandler_.removeAll();this.JSC$12389_request_&&this.JSC$12389_request_.abort();this.retryIterator_.reset();var e=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(e==="Upload"||e==="Query")e=new th,e.JSC$9965_withCredentials_=this.JSC$12389_withCredentials_,e.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12389_bytesTransferred_=
0;this.dispatchEvent(new s4("o"))}};
_.Y.pause=function(){this.pauseRequested_=!0};
var jO=function(e){var z=e.state_;e.pauseRequested_?(e.pauseRequested_=!1,e.stateAfterUnpausing_=z,e.state_="Paused"):lvU(e.retryIterator_,function(){switch(e.state_){case "Start":e.JSC$12389_request_=new th;var C=_.de.clone(e.JSC$12389_headers_);e.blob_.size!=null&&(C["Content-Length"]=e.blob_.size);C=V1h(C);C["X-Goog-Upload-Protocol"]="resumable";C["X-Goog-Upload-Command"]="start";e.JSC$12389_eventHandler_.removeAll();e.JSC$12389_eventHandler_.listen(e.JSC$12389_request_,"complete",e.onStartComplete_);
e.JSC$12389_request_.JSC$9965_withCredentials_=e.JSC$12389_withCredentials_;e.JSC$12389_request_.send(e.JSC$12389_url_,e.JSC$12389_method_,e.JSC$12389_metadata_,C);e.lastCommandResponseCode_=null;e.dispatchEvent(new Bt("q"));break;case "Upload":C=e.transferHandle_.uploadUrl_;var w=e.blob_.size;if(jp4()){var K=e.chunkSize_;var G=e.offset_+K>=w;w=g1T(e.blob_,e.offset_,G?w:e.offset_+K)}else e.offset_=0,w=e.blob_,G=!0;e.JSC$12389_request_=new th;e.JSC$12389_request_.JSC$9965_withCredentials_=e.JSC$12389_withCredentials_;
e.JSC$12389_eventHandler_.removeAll();e.JSC$12389_eventHandler_.listen(e.JSC$12389_request_,"progress",e.onUploadProgress_);K=(0,_.uZ)(e.JSC$12391_onUploadComplete_,e,e.offset_+w.size,G);e.JSC$12389_eventHandler_.listen(e.JSC$12389_request_,"complete",K);e.lastCommandResponseCode_=null;e.dispatchEvent(new Bt("q"));G=Object.assign({},e.JSC$12389_headers_||{},{"X-Goog-Upload-Command":"upload"+(G?", finalize":""),"X-Goog-Upload-Offset":e.offset_});e.JSC$12389_request_.send(C,"POST",w,G);break;case "Query":e.JSC$12389_request_=
new th;e.JSC$12389_eventHandler_.removeAll();e.JSC$12389_eventHandler_.listen(e.JSC$12389_request_,"complete",e.onQueryComplete_);C=Object.assign({},e.JSC$12389_headers_||{},{"X-Goog-Upload-Command":"query"});e.JSC$12389_request_.send(e.transferHandle_.uploadUrl_,"POST","",C);e.lastCommandResponseCode_=null;e.dispatchEvent(new Bt("q"));break;default:throw Error("lf");}})||yS(e,"Transfer encountered too many consecutive failures.")},yS=function(e,z){e.state_="Error";
e.JSC$12389_errorDescription_=z;e.dispatchEvent(new s4("n"))};
gU.prototype.onStartComplete_=function(e){var z=e.target;this.lastCommandResponseCode_=z.getStatus();this.dispatchEvent(new Bt("r"));if(QZs(z))mto(this,z);else if(ava(z)){e=Xy(e.target.getAllResponseHeaders());for(var C in e)_.om(C.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new s4("m"));C=ni(e,"X-Goog-Upload-URL");e=(e=ni(e,"X-Goog-Upload-Chunk-Granularity"))?parseInt(e,10):1;C===void 0||isNaN(e)||e<=0?yS(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
e)*e,this.transferHandle_=new kpY(C),this.dispatchEvent(new s4("p")),this.state_="Upload",this.retryIterator_.reset(),jO(this))}else jO(this)};
gU.prototype.onUploadProgress_=function(e){this.JSC$12389_bytesTransferred_=this.offset_+e.loaded;this.dispatchEvent(new s4("k"))};
gU.prototype.JSC$12391_onUploadComplete_=function(e,z,C){var w=this,K,G;return _.k(function(X){switch(X.nextAddress){case 1:K=C.target;w.lastCommandResponseCode_=K.getStatus();w.dispatchEvent(new Bt("r"));if(nGc(K)||K.getStatus()==404)return w.JSC$12389_bytesTransferred_=e,mto(w,K),X.return();if(ava(K)){X.jumpTo(2);break}if(!(G=w.detectCorruptedBlobEnabled_)){X.jumpTo(3);break}return X.yield(M_U(w),4);case 4:G=X.yieldResult;case 3:if(G)return yS(w,"Blob has been modified or corrupted."),X.return();
w.requireUploadRequestModification_=K.getStatus()==400;w.state_="Query";jO(w);return X.return();case 2:if(z)return yS(w,"Got a non-final success response after issuing a finalize command."),X.return();w.JSC$12389_bytesTransferred_=e;w.offset_=e;w.retryIterator_.reset();jO(w);return X.return()}})};
gU.prototype.onQueryComplete_=function(e){var z=e.target;this.lastCommandResponseCode_=z.getStatus();this.dispatchEvent(new Bt("r"));QZs(z)?(z.getStatus()===200&&(this.JSC$12389_bytesTransferred_=this.blob_.size),mto(this,z)):ava(z)?(e=Xy(e.target.getAllResponseHeaders()),e=parseInt(ni(e,"X-Goog-Upload-Size-Received"),10),isNaN(e)?yS(this,"Server did not respond with current offset."):e<this.offset_?yS(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
e+"."):this.requireUploadRequestModification_&&this.offset_===e?yS(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<e&&this.retryIterator_.reset(),this.offset_=this.JSC$12389_bytesTransferred_=e,this.state_="Upload",jO(this))):jO(this)};
var mto=function(e,z){e.JSC$12389_responseCode_=z.getStatus();var C=Xy(z.getAllResponseHeaders());fok(C);e.JSC$12389_responseText_=z.getResponseText();e.state_="Response received";e.dispatchEvent(new s4("l"))},ava=function(e){var z=e.getStatus();
e=Xy(e.getAllResponseHeaders());e=ni(e,"X-Goog-Upload-Status");return z===200&&e==="active"},nGc=function(e){e=Xy(e.getAllResponseHeaders());
return ni(e,"X-Goog-Upload-Status")==="final"},QZs=function(e){if(nGc(e))return!0;
e=e.getStatus();return e>=400&&e<500},M_U=function(e){var z;
return _.k(function(C){if(C.nextAddress==1){if(!e.blob_||e.originalBlobSize_<=0)return C.return(!1);if(e.blob_.size!==e.originalBlobSize_)return C.return(!0);_.Iv(C,2);if(z=g1T(e.blob_,0,1)){var w=C.yield,K=new kK,G=OUs(K);K.reader_.readAsBinaryString(z);C=w.call(C,G,4)}else C=C.return(!0);return C}if(C.nextAddress!=2)return C.return(e.blob_.size!==e.originalBlobSize_);_.O_(C);return C.return(!0)})};var rIT=function(e,z,C,w,K,G){_.N3.call(this);this.payload_=w;this.JSC$12392_url_=e;this.JSC$12392_method_=z;this.JSC$12392_headers_=C;this.JSC$12392_metadata_=K;this.encoding_=G||"binary";e=new _.A1;this.boundary_="uploader-"+zt()+"-"+e.JSC$11496_toIsoString();this.JSC$12392_responseText_=this.JSC$12392_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12392_errorDescription_=null;this.JSC$12392_eventHandler_=new _.HA(this);_.I4(this,this.JSC$12392_eventHandler_)};
_.U(rIT,qn4);_.Y=rIT.prototype;
_.Y.run=function(){var e=_.de.clone(this.JSC$12392_headers_);this.payload_.length!=null&&(e["Content-Length"]=this.payload_.length);e=V1h(e);e["X-Goog-Upload-Protocol"]="multipart";e["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new th;this.JSC$12392_eventHandler_.removeAll();this.JSC$12392_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12392_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12392_url_,this.JSC$12392_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12392_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",e)};
_.Y.getResponseCode=function(){return this.JSC$12392_responseCode_};
_.Y.getResponseText=function(){return this.JSC$12392_responseText_};
_.Y.JSC$30237_getErrorDescription=function(){return this.JSC$12392_errorDescription_};
_.Y.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12392_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new s4("o")))};
_.Y.pause=function(){};
_.Y.onTransferProgress_=function(){this.dispatchEvent(new s4("k"))};
_.Y.onTransferComplete_=function(e){var z=e.target.getStatus();z===void 0||z===-1?(this.JSC$12392_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new s4("n"))):(this.JSC$12392_responseCode_=z,e=e.target,z=Xy(e.getAllResponseHeaders()),fok(z),this.JSC$12392_responseText_=e.getResponseText(),this.state_="Complete",this.dispatchEvent(new s4("l")))};_.HNa=function(e,z,C,w){w=w===void 0?!1:w;if(C instanceof bNS)return new xtC(e,"POST",z,C.getInputElement(),"");if(typeof C==="string"||C instanceof String)return new rIT(e,"POST",z,C,"");var K=new gU(void 0);K.JSC$12389_url_=e;K.JSC$12389_method_="POST";K.JSC$12389_headers_=z;K.blob_=C;K.originalBlobSize_=C.size;K.JSC$12389_metadata_="";w&&(K.JSC$12389_withCredentials_=w);K.state_="Start";return K};var ct=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ct,_.X2);_.Y=ct.prototype;_.Y.getEnableSsEngine=function(){return _.Sv(this,2)};
_.Y.getEnableAwr=function(){return _.Sv(this,3)};
_.Y.getAlohaAutoGaRollout=function(){return _.Sv(this,5)};
_.Y.getEnableConfigurator=function(){return _.Sv(this,6)};
_.Y.getEnableMweb=function(){return _.Sv(this,7)};
var vGS=function(){var e=UtC();return _.Hr(e,7,!0)};
ct.prototype.getEnableCtlConsentCheckbox=function(){return _.Sv(this,8)};
ct.prototype.getEnableIframe=function(){return _.Sv(this,9)};
var UtC=function(){var e=new ct;e=_.Hr(e,5,!0);e=_.Hr(e,2,!0);e=_.Hr(e,4,!1);e=_.Hr(e,8,!0);return _.Hr(e,9,!0)};
ct.prototype.getEnableScreenshotNudge=function(){return _.Sv(this,10)};
var Ivs=function(){var e=vGS();return _.Hr(e,10,!0)};
ct.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Sv(this,11)};
ct.prototype.getEnableJunkNudge=function(){return _.Sv(this,12)};
var CL5=function(){var e=Ivs();return _.Hr(e,12,!0)};
_.Y=ct.prototype;_.Y.getEnableConfiguratorLocale=function(){return _.Sv(this,13)};
_.Y.getEnableTinyNoPointer=function(){return _.Sv(this,14)};
_.Y.getEnableSupportSessionLogging=function(){return _.Sv(this,15)};
_.Y.getEnableFileUploadForScreenshot=function(){return _.Sv(this,16)};
_.Y.getEnableDirectDeflectionForSingleCategory=function(){return _.Sv(this,17)};
_.Y.getEnableImageSanitization=function(){return _.Sv(this,18)};
_.Y.getEnableAlohaBinarySplit=function(){return _.Sv(this,19)};
_.Y.getEnableDbFeedbackIntents=function(){return _.Sv(this,20)};
_.Y.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Sv(this,21)};
_.Y.getEnableFeedbackCategoryCustomUi=function(){return _.Sv(this,22)};
_.Y.getEnableRealtimeCtl=function(){return _.Sv(this,23)};var zL1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(zL1,_.X2);var SJ1=[/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 dn7="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 Dns=_.Kb(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),icL=_.Kb(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var M$=function(){var e=Error.call(this,"Form is either loading or already opened");this.message=e.message;"stack"in e&&(this.stack=e.stack);this.name="DuplicateFormError"};
_.U(M$,Error);var sJ4,gPg,Bu1,jJ1;var Ah,WzX;
Ah=function(e,z,C){e.timeOfStartCall=(new Date).getTime();var w=C||_.wL,K=w.document,G=e.nonce||_.ov(w.document);G&&!e.nonce&&(e.nonce=G);if(e.flow=="help"){var X=_.pd("document.location.href",w);!e.helpCenterContext&&X&&(e.helpCenterContext=X.substring(0,1200));X=!0;if(z&&JSON&&JSON.stringify){var J=JSON.stringify(z);(X=J.length<=1200)&&(e.psdJson=J)}X||(z={invalidPsd:!0})}z=[e,z,C];w.GOOGLE_FEEDBACK_START_ARGUMENTS=z;C=e.feedbackServerUri||"//www.google.com/tools/feedback";if(X=w.GOOGLE_FEEDBACK_START)X.apply(w,z);
else{w=C+"/load.js?";for(var q in e)z=e[q],z==null||_.gL(z)||(w+=encodeURIComponent(q)+"="+encodeURIComponent(z)+"&");e=Ot(K).createElement("SCRIPT");G&&e.setAttribute("nonce",G);_.Jn(e,_.EC(w));K.body.appendChild(e)}};
WzX=function(e,z,C,w){var K,G;return _.k(function(X){K=C||_.wL;var J=e.serverEnvironment==="DEV",q=C||_.wL;q=e.nonce||_.ov(q.document);J={integrationKeys:{productId:e.productId,feedbackBucket:e.bucket,triggerId:e.triggerId},callbacks:{onClose:e.callback,onLoad:e.onLoadCallback},formContent:{locale:e.locale,disableScreenshot:e.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:e.abuseLink,additionalDataConsent:e.additionalDataConsent},initializationData:{isLocalServer:J,nonce:q,useNightlyRelease:J,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:e.feedbackServerUri,colorScheme:e.colorScheme},extraData:{productVersion:e.productVersion,authUser:e.authuser,configuratorId:e.configuratorId,customZIndex:e.customZIndex,tinyNoPointer:e.tinyNoPointer,
allowNonLoggedInFeedback:e.allowNonLoggedInFeedback,enableAnonymousFeedback:e.enableAnonymousFeedback}};z&&(q=new Map(Object.entries(z)),J.extraData.productSpecificData=q);G=J;return X.yield(ZcL(G,w,K),0)})};
_.P1o=function(e,z,C){try{if(e.flow==="help"){var w=e.helpCenterPath.replace(/^\//,"");_.Kq(C||window,"https://support.google.com/"+w)}else e.flow==="submit"?Ah(e,z,C):wv4(e.productId,e.feedbackServerUri).then(function(K){K=_.ra(K,ct,1);var G=!cka||(K==null?void 0:K.getEnableMweb()),X=!e.tinyNoPointer||(K==null?void 0:K.getEnableTinyNoPointer());!K||K.getAlohaAutoGaRollout()&&G&&X?WzX(e,z,C,K).catch(function(J){!J||J instanceof M$||Ah(e,z,C)}):Ah(e,z,C)},function(K){!K||K instanceof M$||Ah(e,z,C)})}catch(K){WzX(e,
z,C,null).catch(function(G){!G||G instanceof M$||Ah(e,z,C)})}};
_.lM("userfeedback.api.startFeedback",_.P1o);var KhN=/https?:\/\/\S+\.\S+/,oK5=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Gsh=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var SM7=function(e){var z=e.split(""),C=[-263237435,15,z,function(w,K,G){var X=K.length;G.forEach(function(J,q,T){this.push(T[q]=K[(K.indexOf(J)-K.indexOf(this[q])+q+X--)%K.length])},w.split(""))},
function(w,K){w=(w%K.length+K.length)%K.length;K.splice(-w).reverse().forEach(function(G){K.unshift(G)})},
"response",function(){for(var w=64,K=[];++w-K.length-32;){switch(w){case 58:w-=14;case 91:case 92:case 93:continue;case 123:w=47;case 94:case 95:case 96:continue;case 46:w=95}K.push(String.fromCharCode(w))}return K},
null,12,1540023973,65941107,null,z,function(w,K){for(w=(w%K.length+K.length)%K.length;w--;)K.unshift(K.pop())},
695603893,function(w){for(var K=w.length;K;)w.push(w.splice(--K,1)[0])},
"'[;'[(",function(w,K){w.push(K)},
null,function(w,K,G,X,J){return K(G,X,J)},
"continuation",z,function(w,K){if(w.length!=0){K=(K%w.length+w.length)%w.length;var G=w[0];w[0]=w[K];w[K]=G}},
function(){for(var w=64,K=[];++w-K.length-32;){switch(w){case 91:w=44;continue;case 123:w=65;break;case 65:w-=18;continue;case 58:w=96;continue;case 46:w=95}K.push(String.fromCharCode(w))}return K},
'"),/]];'];C[7]=C;C[11]=C;C[18]=C;try{(((0,C[15])(C[21]),C[22])(C[11],C[9]),C[22])(C[new Date("1970-01-01T04:30:12.000+04:30")/1E3],C[1]),((0,C[22])(C[11],C[23]),C[4])(C[10],C[18]),(0,C[20])(C[21],C[14])<<(0,C[17])(C[18],C[1]),(0,C[4])(C[8],C[21]),(0,C[19])((0,C[19])((0,C[17])(C[7],C[9]),C[3],C[20],(0,C[6])(),C[2]),C[3],C[5],(0,C[15])(),C[2])}catch(w){return"aTlOUOubTO4AP____8P_"+e}return z.join("")};_.RSh=new _.nN("runAttestationCommand");var LzY=new _.nN("verifyCommand");_.Re=new _.nN("accessibilityContext");var hST=new _.nN("accessibilityData");var ONS=new _.nN("profileCardCommand");var Fn1=new _.nN("signInEndpoint");var ECg=new _.nN("signOutEndpoint");var Fz6;_.EGh=new _.nN("accountItemSectionRenderer");Fz6=new _.nN("accountItemRenderer");_.V_L=new _.nN("saveCommandToSessionStorageAction");var fv4=new _.nN("crossAccountChannelTransferEndpoint");var WGk=new _.nN("getAccountMenuEndpoint");_.Pq4=new _.nN("getAccountSwitcherEndpoint");var IUE=new _.nN("getAccountsListEndpoint");var Sna=new _.nN("getAccountsListInnertubeEndpoint");_.u5g=new _.nN("addToToastAction");var dtT=new _.nN("hideEnclosingAction");_.Zl=new _.nN("replaceEnclosingAction");var Dth=new _.nN("buttonRefreshAction");var iNo=new _.nN("adsControlFlowOpportunityReceivedCommand");var NSC=new _.nN("openAdAllowlistInstructionCommand");var sZo=new _.nN("videoMastheadAdPrimaryVideoRenderer");var BST=new _.nN("displayAdRenderer");_.t_s=new _.nN("inFeedAdLayoutRenderer");var gG6=new _.nN("sequenceItemInPlayerAdLayoutRenderer");_.jZa=new _.nN("adSlotRenderer");var yI6=new _.nN("adAvatarViewModel");var cIa=new _.nN("adBadgeViewModel");var AIC=new _.nN("adButtonViewModel");var ZNS=new _.nN("adImageViewModel");var yVo=new _.nN("reelsAdCardButtonedViewModel");var pEh=new _.nN("reelsPlayerOverlayLayoutViewModel");var eTs=new _.nN("formDataDecoratorCommand");var zTa=new _.nN("updateConversationIdCommand");var Csh=new _.nN("showSchedulingPanelCommand");var wm6=new _.nN("backstageCommentsRenderer");var KXa=new _.nN("backstageImageRenderer");var oPa=new _.nN("backstagePostRenderer");var GaS=new _.nN("backstageZeroStateRenderer");var YJX=new _.nN("postRenderer");var bcc=new _.nN("sharedPostRenderer");var Xmg=new _.nN("createBackstagePostEndpoint");var J1a=new _.nN("getPostVideoPreviewEndpoint");var ka4=new _.nN("updateBackstagePostEndpoint");var qJL=new _.nN("filterChipTransformCommand");var xna=new _.nN("insertRichSectionCommand");var lj4=new _.nN("talkToRecsDeselectCommand");var TuT=new _.nN("talkToRecsNextCommand");var $b1=new _.nN("talkToRecsSelectCommand");var yP1=new _.nN("talkToRecsUpdateTextCommand");_.mJ=new _.nN("browseEndpoint");_.$nX=new _.nN("confirmDialogEndpoint");var loa=new _.nN("expandOnHoverCardRenderer");var QJU=new _.nN("lumiereShelfDetailsRenderer");var mns=new _.nN("revealBusinessEmailCommand");var aoS=new _.nN("validateChannelHandleCommand");var nPS=new _.nN("channelCreationFormEndpoint");var M1X=new _.nN("aboutChannelViewModel");var r16=new _.nN("channelThumbnailWithLinkRenderer");var Hcg=new _.nN("channelCreationServiceEndpoint");var Uns=new _.nN("updateChannelPageSettingsEndpoint");var pA=function(e){this.delegate=e},ek=function(){pA.apply(this,arguments)};
_.U(ek,pA);_.lB.Object.defineProperties(ek.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(e){this.delegate.entityMetadata=e}}});var vPa=function(){ek.apply(this,arguments)};
_.U(vPa,ek);vPa.prototype.getAssociations=function(){return[]};
vPa.prototype.getTypeName=function(){return"channelHandle"};var Ruo=new _.nN("webThumbnailDetailsExtensionData");_.i3=new _.nN("commandContext");var IoX=new _.nN("addVideoLinkAction");var WXs=new _.nN("banAuthorAction");var PsC=new _.nN("createCommentAction");var RTs=new _.nN("createCommentReplyAction");var LX6=new _.nN("createPollAction");var hTc=new _.nN("hideIdentityChipAction");var OcX=new _.nN("openUpdateCommentDialogAction");var EPh=new _.nN("pinCommentAction");var FXL=new _.nN("removeCommentAction");var V1S=new _.nN("unpinCommentAction");var zC=new _.nN("updateBackstagePollAction");var fo4=new _.nN("updateCommentVoteAction");var SJa=new _.nN("commentThreadRenderer");var uxh=function(){ek.apply(this,arguments)};
_.U(uxh,ek);uxh.prototype.getAssociations=function(){return[]};
uxh.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var dnc=function(){ek.apply(this,arguments)};
_.U(dnc,ek);dnc.prototype.getAssociations=function(){return[]};
dnc.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.DnC=new _.nN("commentDialogRenderer");var ic6=new _.nN("reloadCommentsCommand");var Nuh=new _.nN("updateCommentsSettingsEndpoint");var sJs=new _.nN("commentViewModel");var Bua=new _.nN("triStateButtonViewModel");var t1S=new _.nN("voiceReplyContainerViewModel");_.Gj=new _.nN("commandExecutorCommand");var FH=new _.nN("emoji");var gPo=new _.nN("updateCreatorChannelInnertubeCommand");_.jJa=new _.nN("appendContinuationItemsAction");_.y1s=new _.nN("changeEngagementPanelVisibilityAction");_.dG=new _.nN("continuationCommand");var c1h=new _.nN("hideReportedCommentAction");var A1T=new _.nN("listMutationCommand");_.CH=new _.nN("openPopupAction");var Zc6=new _.nN("persistSubscriptionsDisplayPreferencesCommand");var GsS;_.pms=new _.nN("playlistRemoveVideosAction");_.eLs=new _.nN("updatePlaylistAction");_.zLa=new _.nN("addToPlaylistCommand");_.CLY=new _.nN("endPlaylistCommand");_.wvs=new _.nN("recoverPlaylistCommand");_.KhL=new _.nN("refreshPlaylistCommand");_.oKY=new _.nN("refreshFormCommand");GsS=new _.nN("openOnePickAddVideoModalCommand");_.FGg=new _.nN("reloadContinuationItemsCommand");_.Yr6=new _.nN("scrollToEngagementPanelCommand");var brC=new _.nN("selectCountryCommand");var XvC=new _.nN("showReloadUiCommand");var JpS=new _.nN("undoFeedbackAction");var ksY=new _.nN("updateButtonAction");var qrU=new _.nN("updateSubscribeButtonAction");var xV4=new _.nN("updateToggleAction");var TDT=new _.nN("webNativeShareCommand");_.XV=new _.nN("webCommandMetadata");_.wA=new _.nN("webHandleServiceEndpointExtension");var Hug=new _.nN("webNavigationEndpointData");var $VC=new _.nN("backgroundAudioPlaybackCommand");var l2a=new _.nN("copyLinkCommand");var Qrs=new _.nN("playlistVotingRefreshPopupCommand");var mVc=new _.nN("selectChipCommand");var a2L=new _.nN("setCookieCommand");var nKY=new _.nN("setLocalStorageCommand");var M6S=new _.nN("setPrefStorageEntryCommand");var vKX;_.rpg=new _.nN("settingsUpdateCheckboxCommand");_.Hra=new _.nN("settingsUpdateTextCommand");_.UVh=new _.nN("settingsUpdateOptionsCommand");vKX=new _.nN("settingsUpdateSwitchCommand");_.I2a=new _.nN("settingsUpdateConnectedAppRendererCommand");var Wha=new _.nN("showCreatorChatbotEngagementPanelCommand");var PL6=new _.nN("updateTextInputFormFieldRendererCommand");var RLg=new _.nN("updateToggleButtonStateCommand");var Lhg=new _.nN("updateUrlParamCommand");var hLa=new _.nN("webSubmitFormCommand");var Oro=new _.nN("channelSwitcherPageRenderer"),EKh=new _.nN("updateChannelSwitcherPageAction");_.GO=new _.nN("continuationItemRenderer");_.KH=new _.nN("richItemRenderer");var FhY=new _.nN("richSectionRenderer");_.V66=new _.nN("richShelfRenderer");_.f2a=new _.nN("metadataBadgeRenderer");_.Src=new _.nN("multiPageMenuNotificationSectionRenderer");_.uAg=new _.nN("playlistLoopButtonStateRenderer");var dVc=new _.nN("claimLegacyYoutubeChannelEndpoint");var DVY=new _.nN("getNotificationMenuEndpoint");var irS=new _.nN("getSearchInVideoCommand");_.NDc=new _.nN("getTranscriptEndpoint");_.bd=new _.nN("signalServiceEndpoint");var srL=new _.nN("verifyAgeEndpoint");var Dk1=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Dk1,_.X2);Dk1.prototype.getPath=function(){return _.Ds(this,1)};
Dk1.prototype.getValue=function(){return _.Ds(this,2)};var BDa=[0,_.bS,-1];var t6h=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(t6h,_.X2);var dko=_.UC(t6h,[0,_.kl,BDa]);var gKg=new _.nN("dismissalEndpoint");var jrL=new _.nN("elementsCommand");_.fm=new _.nN("innertubeCommand");var ypX=new _.nN("multipleInlinePlaybackCommand");var YpE=new _.nN("loggingDirectives");var cpg=new _.nN("acknowledgeChannelTouStrikeCommand");var Apa=function(){ek.apply(this,arguments)};
_.U(Apa,ek);Apa.prototype.getAssociations=function(){return[]};
Apa.prototype.getTypeName=function(){return"booleanEntity"};var Zrc=function(){ek.apply(this,arguments)};
_.U(Zrc,ek);Zrc.prototype.getAssociations=function(){return[]};
Zrc.prototype.getTypeName=function(){return"stringEntity"};var Ze=new _.nN("entityBatchUpdate");_.pvY=new _.nN("entityUpdateCommand");var egT=function(){ek.apply(this,arguments)};
_.U(egT,ek);egT.prototype.getAssociations=function(){var e=[];this.delegate.alternateChannel&&e.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&e.push.apply(e,_.s_(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&e.push(this.delegate.oneofChannelEntity);return[].concat(_.s_(new Set(e)))};
egT.prototype.getTypeName=function(){return"fakeChannel"};var zgL=function(){ek.apply(this,arguments)};
_.U(zgL,ek);zgL.prototype.getAssociations=function(){var e=[];this.delegate.entryCollection&&e.push(this.delegate.entryCollection);return[].concat(_.s_(new Set(e)))};
zgL.prototype.getTypeName=function(){return"fakePlaylist"};
var CKS=function(){ek.apply(this,arguments)};
_.U(CKS,ek);CKS.prototype.getAssociations=function(){var e=[];this.delegate.parentPlaylist&&e.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var z=_.b(this.delegate.entries),C=z.next();!C.done;C=z.next())e.push.apply(e,_.s_((new wtX(C.value)).getAssociations()));return[].concat(_.s_(new Set(e)))};
CKS.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var wtX=function(){pA.apply(this,arguments)};
_.U(wtX,pA);wtX.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);return[].concat(_.s_(new Set(e)))};var KWS=function(){ek.apply(this,arguments)};
_.U(KWS,ek);KWS.prototype.getAssociations=function(){var e=[];this.delegate.descriptionEntity&&e.push(this.delegate.descriptionEntity);this.delegate.creators&&e.push.apply(e,_.s_(this.delegate.creators));this.delegate.theBiggestFan&&e.push(this.delegate.theBiggestFan);return[].concat(_.s_(new Set(e)))};
KWS.prototype.getTypeName=function(){return"fakeVideo"};
var omC=function(){ek.apply(this,arguments)};
_.U(omC,ek);omC.prototype.getAssociations=function(){return[]};
omC.prototype.getTypeName=function(){return"fakeVideoDescription"};var GKg=new _.nN("fantasyRosterViewModel");var Y4h=new _.nN("addFollowUpSurveyCommand");var bAh=new _.nN("getSurveyCommand");var XtS=new _.nN("ratingSurveyOptionRenderer");_.iH=new _.nN("feedbackEndpoint");var Jh6=new _.nN("reportHistoryTableCellRenderer"),kKo=new _.nN("reportHistoryTableTextCellRenderer"),q46=new _.nN("reportHistoryTableReasonCellRenderer");_.xBs=new _.nN("flagEndpoint");var TUS=new _.nN("deleteFlowStepsCommand");_.$B4=new _.nN("flowNextStepCommand");_.ll6=new _.nN("flowPrevStepCommand");var QYC=new _.nN("getFlowCommand");var mBX=new _.nN("submitFormWithValidationFlowCommand");_.alo=new _.nN("updateFlowCommand");var nms=function(){ek.apply(this,arguments)};
_.U(nms,ek);nms.prototype.getAssociations=function(){return[]};
nms.prototype.getTypeName=function(){return"flowStateEntity"};var MOY=new _.nN("flowFormState");_.o2=new _.nN("flowStepRenderer");var rhC=new _.nN("gameCardRenderer");var HAg=new _.nN("accountLinkingStateChangedCommand");var UBX=function(){ek.apply(this,arguments)};
_.U(UBX,ek);UBX.prototype.getAssociations=function(){return[]};
UBX.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var vm4=new _.nN("changeMiniAppPlayStateCommand");var Ila=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Ila,_.X2);var GC=[1,2,3];var WW6=[0,GC,Ova,_.JL,Uas];var PKL=_.UC(Ila,WW6),RgS=_.vL(WW6);var LWL=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(LWL,_.X2);var hgc=[0,_.zv,_.bS];var OAa=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(OAa,_.X2);var Emo=[0,_.bS,_.zv,-1];var YR=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(YR,_.X2);var FWa=_.vL([0,1,hgc,_.$l,Emo]);var VO6=new _.nN("miniAppScoreChallengeViewModel");var fla=new _.nN("miniGameCardViewModel");var S4h=new _.nN("teaserCardViewModel");var uSg=function(){ek.apply(this,arguments)};
_.U(uSg,ek);uSg.prototype.getAssociations=function(){return[]};
uSg.prototype.getTypeName=function(){return"logoEntity"};var dBs=new _.nN("feedbackItemRenderer");var DBY=function(){ek.apply(this,arguments)};
_.U(DBY,ek);DBY.prototype.getAssociations=function(){return[]};
DBY.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.iAU=new _.nN("playerInterstitialRenderer");var NUS=new _.nN("getKidsBlocklistPickerCommand");_.sYS=new _.nN("updateKidsBlacklistEndpoint");_.bt=new _.nN("likeEndpoint");var BU6,tOa,gmL;BU6=new _.nN("addChatItemAction");tOa=new _.nN("removeChatItemAction");gmL=new _.nN("markChatItemAsDeletedAction");_.jYT=new _.nN("setLiveChatCollapsedStateAction");var yh4=function(){ek.apply(this,arguments)};
_.U(yh4,ek);yh4.prototype.getAssociations=function(){return[]};
yh4.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var ch4=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ch4,_.X2);ch4.prototype.getPayloadCase=function(){return _.E7(this,Aha)};
var Aha=[3,4];var ZAs=[0,_.kl,[0,[1,2],_.JL,_.qJ,[0,_.XP,1,_.XP]]];var ptL=[0,_.bS,-1];var ef4=[0,[1],_.JL];var XD=[0,[1,2],_.JL,_.qJ,[0,_.$l]];var Ji=[0,_.bS];var zf4=[0,[0,_.Gv,_.o8,[0,_.XP,_.lS,_.XP]],1,[0,_.Gv]];var Cta=[0,CV];var w76=[0,CV];var Kua=[0,w76,Cta];var oRg=[0,_.kl,[0,[1,2],_.JL,-1],_.Gv];var GCL=[0,[2],1,_.qJ,[0,_.XP,-1,oRg]];var Yf4=[0,[1],_.qJ,[0,_.XP,_.bS,_.lS,1,oRg]];var bH4=[0,_.o8,-1,HvT,_.$l];var X7c=[0,[0,e2,-3],-4];var kR=[0,_.Gv,-3,_.bS,_.Gv,_.mE,_.Gv,ZAs,_.Gv,-2];var q4=[0,_.kl,[0,[1,2],_.JL,-1],_.Gv,_.bS];var Jia=[0,[3],XD,[0,[2,3,4],SqC,_.JL,-2],_.qJ,[0,_.bS],_.zv];var kCo=[0,[3,5],_.bS,_.wJ,_.qJ,[0,1,_.zv,_.$l],_.$l,_.qJ,[0,_.$l,_.zv]];var qfc=[0,2,_.wJ,_.bS,-1];var x4a=[0,L5c];var TAT=[0,[3,4],2,I36,_.JL,_.bS];var $4Y=[0,_.$l,-2,1,_.bS];var lwa=[0,_.bS,-1,_.$l];var Q24=[0,Ji,function(){return xR},
Ji,_.bS],m4a=[0,_.$l,Ji,XD,function(){return xR},
_.bS],xR=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],Ji,_.wJ,[0,_.Gv,1,_.Gv,1,_.Gv,1,_.$l,-1,Ji],[0,1,_.Gv,2,_.Gv,_.$l,_.Gv],1,_.wJ,-1,_.bS,_.wJ,2,e2,[0,e2,_.wJ],_.bS,1,zf4,1,XD,_.mE,1,[0,[0,_.kl,[0,_.bS,_.Gv,_.$l]]],[0,_.Gv,[0,_.zv,[0,_.lS]],_.zv,1,[0,P$h,-1]],_.bS,[0,1,_.bS],76,_.qJ,[0,XD,q4,zf4,1,[0,_.kl,q4]],1,_.qJ,[0,XD,_.bS,_.Gv],
_.qJ,[0,XD,ef4],_.qJ,[0,XD,ef4,_.wJ],_.qJ,[0,XD,ef4],_.qJ,[0,XD,_.kl,Ji,XD,EZa],_.qJ,[0,XD,Ji,_.bS],_.qJ,[0,XD,_.Gv,kR,-1,_.Gv],4,_.qJ,[0,XD,_.Gv,_.wJ,kR,_.Gv],_.qJ,[0,[4,9],XD,_.$l,_.wJ,_.JL,q4,1,zf4,_.bS,_.JL,$4Y],_.qJ,[0,XD,Ji,XD,_.$l,_.bS],_.qJ,[0,_.Gv,XD,kR,_.Gv,_.bS],_.qJ,[0,XD,Ji,XD,_.$l,_.bS],1,_.qJ,[0,XD,_.$l,_.bS,kR],_.qJ,[0,XD,_.$l,[0,_.bS,_.wJ],_.bS,_.wJ,_.bS,_.Tv,-2,3,lwa,_.kl,lwa,lwa,$4Y],_.qJ,[0,XD,_.$l,Yf4,_.kl,[0,w76,GCL],Ji,_.kl,Kua,_.bS,1,_.$l,bH4,X7c,rCc,-1],_.qJ,[0,XD,[0,_.lS,
-1,Yf4,_.kl,[0,w76,GCL,Cta],[0,_.ai],1,_.XP],Ji,_.bS],_.qJ,[0,XD,q4,_.bS,[0,_.o8]],_.qJ,function(){return m4a},
_.qJ,[0,XD,_.wJ,_.bS,-1,_.Gv],_.qJ,[0,[6,7],XD,_.kl,qfc,_.$l,q4,1,_.qJ,TAT,_.qJ,x4a],_.qJ,[0,_.kl,qfc,_.$l,_.Gv],_.qJ,[0,_.bS,F0C,-1],_.qJ,[0,Ji,_.kl,Kua,_.bS],_.qJ,[0,XD,Ji,_.bS],_.qJ,[0,_.Tv,_.bS],_.qJ,[0,ptL],_.qJ,[0,ptL],_.qJ,[0,q4],_.qJ,[0,Ji,q4],_.qJ,function(){return Q24},
_.qJ,[0,Ji,_.bS],_.qJ,[0,Ji,_.bS],1,_.qJ,[0,_.Gv,XD,kR,_.Gv,kR],_.qJ,[0,_.ai],1,_.qJ,[0],1,_.qJ,[0,Ji,_.$l,XD,_.$l],_.qJ,[0,[1,2],_.qJ,TAT,_.qJ,x4a,_.wJ],_.qJ,[0,_.ai,q4,kCo,_.bS,_.wJ],_.qJ,[0,kCo,_.bS,_.wJ],_.qJ,[0,bH4,q4,_.Gv,X7c],_.qJ,Jia,_.qJ,[0],_.qJ,[0,_.bS,-1,_.zv],_.qJ,[0,Ji,_.bS],_.qJ,[0,Jia,_.zv,_.bS],_.qJ,[0,XD,kR,_.Gv],_.qJ,[0,XD,kR,_.Gv],_.qJ,[0,bH4,X7c,q4,_.mE,_.Gv,rCc,-1],_.qJ,[0,XD,kR,_.Gv]];var awc=[0,_.kl,xR];var nRg=_.UC(ch4,[0,Aha,1,_.zv,_.qJ,[0,[18,22,24],awc,3,[0,awc],1,_.zv,[0,_.kl,[0,_.wJ,e2],_.wJ],1,xR,-1,[0,_.Yl,-2,_.mE,_.Yl,-1,_.mE,_.Yl,ZAs,_.Yl,-2],nZs,[!0,_.bS,[0,ef4,2,_.bS,_.wJ,_.Gv,2,_.bS,_.Tv]],[0,[1,2,3],[5,6],_.qJ,[0,_.XP],_.qJ,[0,_.XP,-1],_.qJ,[0,_.XP],1,_.qJ,ptL,_.qJ,[0,_.bS]],[0,xR,-1],_.ai,xR,_.qJ,xR,[0,awc],_.zv,xR,_.qJ,xR,_.bS,_.qJ,xR],_.qJ,CwS,_.zv]);var MkC=new _.nN("liveChatEndpoint");var riX=new _.nN("liveChatItemContextMenuEndpoint");var HHX=new _.nN("liveChatReplayEndpoint");_.U4o=new _.nN("emojiPickerRenderer");var vRU=new _.nN("liveChatAuthorBadgeViewModel");var Iwo=new _.nN("deleteLiveChatMessageCommand");var Wua=new _.nN("liveChatActionEndpoint");var Ptc=new _.nN("createLiveChatPollEndpoint");var Rfh=new _.nN("manageLiveChatUserEndpoint");var LuT=new _.nN("moderateLiveChatEndpoint");_.hfh=new _.nN("sendLiveChatMessageEndpoint");var OHU=new _.nN("sendLiveChatVoteEndpoint");var ERc=new _.nN("clearLocationCommand");var FuC=new _.nN("resolveLocationCommand");var VkU=new _.nN("interactionLoggingCommandMetadata");var fwa=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(fwa,_.X2);var Sfa=function(e,z){return _.a4(e,1,z)};var uDo=[0,_.Gv];var d4s=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(d4s,_.X2);var D44=function(e,z){return Fe(e,1,fwa,z)};d4s.prototype.JSC$12488_serializeBinary=eX1([0,_.kl,uDo]);var RLo={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 iH4={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"},
NAL={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 zCE={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN"};_.jR1=new _.nN("logFlowLoggingEventCommand");_.MF=new _.nN("loggingContext");var s2U=new _.nN("audioTrackSelectActionCommand");var BAS=new _.nN("captionLanguageSelectActionCommand");var tkT=new _.nN("showAudioTrackPickerActionCommand");var gRX=new _.nN("showCaptionLanguageSelectActionCommand");var j2a=new _.nN("dismissDialogEndpoint");var yig=new _.nN("dismissPlayerOverlayCommand");var ciS=new _.nN("hideItemSectionVideosByIdCommand");var Ai6=new _.nN("showMiniplayerCommand");var ZHX=function(){ek.apply(this,arguments)};
_.U(ZHX,ek);ZHX.prototype.getAssociations=function(){return[]};
ZHX.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var p7L=function(){ek.apply(this,arguments)};
_.U(p7L,ek);p7L.prototype.getAssociations=function(){return[]};
p7L.prototype.getTypeName=function(){return"downloadStatusEntity"};var eKC=function(){ek.apply(this,arguments)};
_.U(eKC,ek);eKC.prototype.getAssociations=function(){return[]};
eKC.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var zKX=function(){ek.apply(this,arguments)};
_.U(zKX,ek);zKX.prototype.getAssociations=function(){var e=[];this.delegate.downloadsList&&e.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&e.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&e.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&e.push(this.delegate.refresh);return[].concat(_.s_(new Set(e)))};
zKX.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var CmY=function(){ek.apply(this,arguments)};
_.U(CmY,ek);CmY.prototype.getAssociations=function(){var e=[];this.delegate.refresh&&e.push(this.delegate.refresh);if(this.delegate.downloads)for(var z=_.b(this.delegate.downloads),C=z.next();!C.done;C=z.next())e.push.apply(e,_.s_((new wch(C.value)).getAssociations()));return[].concat(_.s_(new Set(e)))};
CmY.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var wch=function(){pA.apply(this,arguments)};
_.U(wch,pA);wch.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);this.delegate.playlist&&e.push(this.delegate.playlist);this.delegate.videoItem&&e.push(this.delegate.videoItem);this.delegate.playlistItem&&e.push(this.delegate.playlistItem);return[].concat(_.s_(new Set(e)))};var KST=function(){ek.apply(this,arguments)};
_.U(KST,ek);KST.prototype.getAssociations=function(){var e=[];this.delegate.localImageEntities&&e.push.apply(e,_.s_(this.delegate.localImageEntities));return[].concat(_.s_(new Set(e)))};
KST.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var obo=function(){ek.apply(this,arguments)};
_.U(obo,ek);obo.prototype.getAssociations=function(){var e=[];this.delegate.playbackData&&e.push(this.delegate.playbackData);this.delegate.localImageEntities&&e.push.apply(e,_.s_(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s_(new Set(e)))};
obo.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var Gda=function(){ek.apply(this,arguments)};
_.U(Gda,ek);Gda.prototype.getAssociations=function(){return[]};
Gda.prototype.getTypeName=function(){return"offlineabilityEntity"};var YsC=function(){ek.apply(this,arguments)};
_.U(YsC,ek);YsC.prototype.getAssociations=function(){var e=[];this.delegate.fakeChildren&&e.push.apply(e,_.s_(this.delegate.fakeChildren));return[].concat(_.s_(new Set(e)))};
YsC.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var b3C=function(){ek.apply(this,arguments)};
_.U(b3C,ek);b3C.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);this.delegate.playbackData&&e.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&e.push(this.delegate.offlineVideoPolicy);return[].concat(_.s_(new Set(e)))};
b3C.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var XcC=function(){ek.apply(this,arguments)};
_.U(XcC,ek);XcC.prototype.getAssociations=function(){return[]};
XcC.prototype.getTypeName=function(){return"continuationTokenEntity"};var Jlh=function(){ek.apply(this,arguments)};
_.U(Jlh,ek);Jlh.prototype.getAssociations=function(){var e=[];this.delegate.channelOwner&&e.push(this.delegate.channelOwner);this.delegate.videos&&e.push.apply(e,_.s_(this.delegate.videos));this.delegate.collaboratorChannels&&e.push.apply(e,_.s_(this.delegate.collaboratorChannels));this.delegate.downloadState&&e.push(this.delegate.downloadState);this.delegate.refresh&&e.push(this.delegate.refresh);return[].concat(_.s_(new Set(e)))};
Jlh.prototype.getTypeName=function(){return"mainPlaylistEntity"};var kdS=function(){ek.apply(this,arguments)};
_.U(kdS,ek);kdS.prototype.getAssociations=function(){var e=[];this.delegate.video&&e.push(this.delegate.video);this.delegate.channelContributor&&e.push(this.delegate.channelContributor);return[].concat(_.s_(new Set(e)))};
kdS.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var qsS=function(){pA.apply(this,arguments)};
_.U(qsS,pA);qsS.prototype.getAssociations=function(){var e=[];this.delegate.recommendedVideoMetadata&&e.push.apply(e,_.s_((new x2U(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.s_(new Set(e)))};
var x2U=function(){pA.apply(this,arguments)};
_.U(x2U,pA);x2U.prototype.getAssociations=function(){var e=[];this.delegate.localImageEntities&&e.push.apply(e,_.s_(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s_(new Set(e)))};var Tt4=function(){pA.apply(this,arguments)};
_.U(Tt4,pA);Tt4.prototype.getAssociations=function(){var e=[];this.delegate.playbackPosition&&e.push(this.delegate.playbackPosition);return[].concat(_.s_(new Set(e)))};var $24=function(){ek.apply(this,arguments)};
_.U($24,ek);$24.prototype.getAssociations=function(){var e=[];this.delegate.owner&&e.push(this.delegate.owner);this.delegate.downloadState&&e.push(this.delegate.downloadState);this.delegate.userState&&e.push.apply(e,_.s_((new Tt4(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&e.push.apply(e,_.s_((new qsS(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.s_(new Set(e)))};
$24.prototype.getTypeName=function(){return"mainVideoEntity"};var lMS=function(){ek.apply(this,arguments)};
_.U(lMS,ek);lMS.prototype.getAssociations=function(){var e=[];this.delegate.userChannelDetails&&e.push(this.delegate.userChannelDetails);return[].concat(_.s_(new Set(e)))};
lMS.prototype.getTypeName=function(){return"ytMainChannelEntity"};var QlU=function(){ek.apply(this,arguments)};
_.U(QlU,ek);QlU.prototype.getAssociations=function(){var e=[];this.delegate.channelOwner&&e.push(this.delegate.channelOwner);this.delegate.playbackPosition&&e.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&e.push.apply(e,_.s_(this.delegate.localImageEntities));this.delegate.downloadStatus&&e.push(this.delegate.downloadStatus);return[].concat(_.s_(new Set(e)))};
QlU.prototype.getTypeName=function(){return"ytMainVideoEntity"};var Ue1=new _.nN("downloadsPageSmartDownloadsOptInBannerParams");var Pz7=new _.nN("downloadsPageUpsellBannerParams");var m2Y=function(){ek.apply(this,arguments)};
_.U(m2Y,ek);m2Y.prototype.getAssociations=function(){return[]};
m2Y.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var aMS=function(){ek.apply(this,arguments)};
_.U(aMS,ek);aMS.prototype.getAssociations=function(){return[]};
aMS.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var nbo=function(){ek.apply(this,arguments)};
_.U(nbo,ek);nbo.prototype.getAssociations=function(){return[]};
nbo.prototype.getTypeName=function(){return"macroMarkerEntity"};var M0T=function(){ek.apply(this,arguments)};
_.U(M0T,ek);M0T.prototype.getAssociations=function(){return[]};
M0T.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var rlL=function(){ek.apply(this,arguments)};
_.U(rlL,ek);rlL.prototype.getAssociations=function(){return[]};
rlL.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var H3h=function(){ek.apply(this,arguments)};
_.U(H3h,ek);H3h.prototype.getAssociations=function(){return[]};
H3h.prototype.getTypeName=function(){return"playerStateEntity"};var U2Y=function(){ek.apply(this,arguments)};
_.U(U2Y,ek);U2Y.prototype.getAssociations=function(){return[]};
U2Y.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var vb4=function(){ek.apply(this,arguments)};
_.U(vb4,ek);vb4.prototype.getAssociations=function(){return[]};
vb4.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var IML=function(){ek.apply(this,arguments)};
_.U(IML,ek);IML.prototype.getAssociations=function(){return[]};
IML.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.yg=new _.nN("dislikeButtonViewModel");_.jo=new _.nN("likeButtonViewModel");var WSh=new _.nN("videoSummaryContentViewModel");var PmS=new _.nN("videoSummaryParagraphViewModel");var RKU=new _.nN("changeTimelyActionVisibilityCommand");var LST=new _.nN("hideEngagementPanelEndpoint");var hK6=new _.nN("refreshPanelEndpoint");var O3C=new _.nN("scrollToSectionEndpoint");var EbL=new _.nN("seekToVideoTimestampCommand");_.Dr=new _.nN("showEngagementPanelEndpoint");var FSL=new _.nN("showTransientPlayerScrimOverlayCommand");var V0S=new _.nN("toggleEngagementPanelCommand");_.fMT=new _.nN("createBroadcastCommand");var Ssa=new _.nN("metadataUpdateCommand");var uzo=function(){ek.apply(this,arguments)};
_.U(uzo,ek);uzo.prototype.getAssociations=function(){return[]};
uzo.prototype.getTypeName=function(){return"featuredProductsEntity"};var d2s=function(){ek.apply(this,arguments)};
_.U(d2s,ek);d2s.prototype.getAssociations=function(){return[]};
d2s.prototype.getTypeName=function(){return"pinnedProductEntity"};var D2a=function(){ek.apply(this,arguments)};
_.U(D2a,ek);D2a.prototype.getAssociations=function(){return[]};
D2a.prototype.getTypeName=function(){return"trendingOfferEntity"};_.i3a=new _.nN("merchandiseShelfRenderer");var NtC=new _.nN("shoppingContentLineItemViewModel");var slL=new _.nN("gridMovieRenderer");_.BtY=new _.nN("movieRenderer");var t0c=function(){ek.apply(this,arguments)};
_.U(t0c,ek);t0c.prototype.getAssociations=function(){return[]};
t0c.prototype.getTypeName=function(){return"compositeSourceEntity"};var gbS=function(){ek.apply(this,arguments)};
_.U(gbS,ek);gbS.prototype.getAssociations=function(){var e=[];this.delegate.compositeSourceKeys&&e.push.apply(e,_.s_(this.delegate.compositeSourceKeys));return[].concat(_.s_(new Set(e)))};
gbS.prototype.getTypeName=function(){return"multiviewStagingEntity"};var jlg=function(){ek.apply(this,arguments)};
_.U(jlg,ek);jlg.prototype.getAssociations=function(){var e=[];this.delegate.trackDownloadMetadatas&&e.push.apply(e,_.s_(this.delegate.trackDownloadMetadatas));return[].concat(_.s_(new Set(e)))};
jlg.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var yl4=function(){ek.apply(this,arguments)};
_.U(yl4,ek);
yl4.prototype.getAssociations=function(){var e=[];this.delegate.downloadedTracks&&e.push.apply(e,_.s_(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&e.push.apply(e,_.s_(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&e.push.apply(e,_.s_(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&e.push.apply(e,_.s_(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&e.push.apply(e,_.s_(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
e.push.apply(e,_.s_(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&e.push.apply(e,_.s_(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&e.push.apply(e,_.s_(this.delegate.metadataOnlyTracks));return[].concat(_.s_(new Set(e)))};
yl4.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var cla=function(){ek.apply(this,arguments)};
_.U(cla,ek);cla.prototype.getAssociations=function(){var e=[];this.delegate.trackDownloadMetadatas&&e.push.apply(e,_.s_(this.delegate.trackDownloadMetadatas));return[].concat(_.s_(new Set(e)))};
cla.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Ala=function(){ek.apply(this,arguments)};
_.U(Ala,ek);Ala.prototype.getAssociations=function(){var e=[];this.delegate.playbackData&&e.push(this.delegate.playbackData);this.delegate.localImageEntities&&e.push.apply(e,_.s_(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s_(new Set(e)))};
Ala.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var Z34=function(){ek.apply(this,arguments)};
_.U(Z34,ek);
Z34.prototype.getAssociations=function(){var e=[];this.delegate.musicLibraryStatusEntity&&e.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&e.push.apply(e,_.s_(this.delegate.primaryArtists));this.delegate.details&&e.push(this.delegate.details);this.delegate.userDetails&&e.push(this.delegate.userDetails);this.delegate.tracks&&e.push.apply(e,_.s_(this.delegate.tracks));this.delegate.share&&e.push(this.delegate.share);this.delegate.downloadMetadata&&e.push(this.delegate.downloadMetadata);this.delegate.refresh&&
e.push(this.delegate.refresh);return[].concat(_.s_(new Set(e)))};
Z34.prototype.getTypeName=function(){return"musicAlbumRelease"};
var pc6=function(){ek.apply(this,arguments)};
_.U(pc6,ek);pc6.prototype.getAssociations=function(){var e=[];this.delegate.albumRelease&&e.push(this.delegate.albumRelease);this.delegate.tracks&&e.push.apply(e,_.s_(this.delegate.tracks));return[].concat(_.s_(new Set(e)))};
pc6.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var eO6=function(){ek.apply(this,arguments)};
_.U(eO6,ek);eO6.prototype.getAssociations=function(){var e=[];this.delegate.albumRelease&&e.push(this.delegate.albumRelease);return[].concat(_.s_(new Set(e)))};
eO6.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var zOU=function(){ek.apply(this,arguments)};
_.U(zOU,ek);zOU.prototype.getAssociations=function(){var e=[];this.delegate.details&&e.push(this.delegate.details);this.delegate.userDetails&&e.push(this.delegate.userDetails);return[].concat(_.s_(new Set(e)))};
zOU.prototype.getTypeName=function(){return"musicArtist"};
var Cza=function(){ek.apply(this,arguments)};
_.U(Cza,ek);Cza.prototype.getAssociations=function(){var e=[];this.delegate.parentArtist&&e.push(this.delegate.parentArtist);return[].concat(_.s_(new Set(e)))};
Cza.prototype.getTypeName=function(){return"musicArtistDetail"};
var whS=function(){ek.apply(this,arguments)};
_.U(whS,ek);whS.prototype.getAssociations=function(){var e=[];this.delegate.parentArtist&&e.push(this.delegate.parentArtist);return[].concat(_.s_(new Set(e)))};
whS.prototype.getTypeName=function(){return"musicArtistUserDetail"};var KF6=function(){ek.apply(this,arguments)};
_.U(KF6,ek);KF6.prototype.getAssociations=function(){return[]};
KF6.prototype.getTypeName=function(){return"musicLibraryEdit"};var oqT=function(){ek.apply(this,arguments)};
_.U(oqT,ek);oqT.prototype.getAssociations=function(){return[]};
oqT.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var GrT=function(){ek.apply(this,arguments)};
_.U(GrT,ek);
GrT.prototype.getAssociations=function(){var e=[];this.delegate.tracks&&e.push.apply(e,_.s_(this.delegate.tracks));this.delegate.refresh&&e.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&e.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&e.push(this.delegate.details);this.delegate.downloadMetadata&&e.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&e.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&e.push(this.delegate.userDetails);this.delegate.entryCollection&&
e.push(this.delegate.entryCollection);this.delegate.share&&e.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&e.push.apply(e,_.s_((new Y2c(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.s_(new Set(e)))};
GrT.prototype.getTypeName=function(){return"musicPlaylist"};
var Y2c=function(){pA.apply(this,arguments)};
_.U(Y2c,pA);Y2c.prototype.getAssociations=function(){var e=[];this.delegate.creatorEntity&&e.push(this.delegate.creatorEntity);return[].concat(_.s_(new Set(e)))};var bET=function(){ek.apply(this,arguments)};
_.U(bET,ek);bET.prototype.getAssociations=function(){return[]};
bET.prototype.getTypeName=function(){return"musicShare"};var Xhc=function(){ek.apply(this,arguments)};
_.U(Xhc,ek);
Xhc.prototype.getAssociations=function(){var e=[];this.delegate.musicLibraryStatusEntity&&e.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&e.push.apply(e,_.s_(this.delegate.artists));this.delegate.audioModeVersion&&e.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&e.push(this.delegate.videoModeVersion);this.delegate.userDetails&&e.push(this.delegate.userDetails);this.delegate.details&&e.push(this.delegate.details);this.delegate.albumRelease&&e.push(this.delegate.albumRelease);this.delegate.share&&
e.push(this.delegate.share);this.delegate.libraryEdit&&e.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&e.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&e.push(this.delegate.playbackPosition);this.delegate.lyrics&&e.push(this.delegate.lyrics);return[].concat(_.s_(new Set(e)))};
Xhc.prototype.getTypeName=function(){return"musicTrack"};
var JYX=function(){ek.apply(this,arguments)};
_.U(JYX,ek);JYX.prototype.getAssociations=function(){var e=[];this.delegate.parentTrack&&e.push(this.delegate.parentTrack);return[].concat(_.s_(new Set(e)))};
JYX.prototype.getTypeName=function(){return"musicTrackDetail"};
var kra=function(){ek.apply(this,arguments)};
_.U(kra,ek);kra.prototype.getAssociations=function(){var e=[];this.delegate.parentTrack&&e.push(this.delegate.parentTrack);return[].concat(_.s_(new Set(e)))};
kra.prototype.getTypeName=function(){return"musicTrackUserDetail"};var wh=new _.nN("musicResponsiveListItemRenderer");var SI1=new _.nN("addToPlaylistEndpoint");var q2h=new _.nN("captionPickerEndpoint");var xe6=new _.nN("suggestStats");var TXC=new _.nN("backstageImageUploadEndpoint");var $eS=new _.nN("createBackstagePostDialogEndpoint");_.lS4=new _.nN("createCommentReplyDialogEndpoint");_.QQ4=new _.nN("updateCommentDialogEndpoint");_.meS=new _.nN("updateCommentReplyDialogEndpoint");var aSC=new _.nN("menuEndpoint");var nhh=new _.nN("modalEndpoint");var nqC=new _.nN("playlistEditorEndpoint");var MfY=new _.nN("copyTextEndpoint");var rY6,HEa;rY6=new _.nN("shareEndpoint");HEa=new _.nN("shareEntityEndpoint");_.Uea=new _.nN("shareEntityServiceEndpoint");_.RzE=new _.nN("userFeedbackEndpoint");_.N$=new _.nN("watchEndpoint");var J_N=new _.nN("watchPlaylistEndpoint");var vqg=new _.nN("addUpcomingEventReminderEndpoint");_.TC=new _.nN("getCommentsFromInboxCommand");var ISL=new _.nN("notificationOptOutEndpoint");var WFc=new _.nN("recordNotificationInteractionsEndpoint");var Pzc=new _.nN("removeUpcomingEventReminderEndpoint");_.e3=new _.nN("getDownloadActionCommand");_.ROT=new _.nN("offlineOrchestrationActionCommand");var LFY=function(){ek.apply(this,arguments)};
_.U(LFY,ek);LFY.prototype.getAssociations=function(){return[]};
LFY.prototype.getTypeName=function(){return"captionTrack"};var hOg=function(){ek.apply(this,arguments)};
_.U(hOg,ek);hOg.prototype.getAssociations=function(){return[]};
hOg.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var OE6=function(){ek.apply(this,arguments)};
_.U(OE6,ek);OE6.prototype.getAssociations=function(){return[]};
OE6.prototype.getTypeName=function(){return"offlineVideoPolicy"};var Eqs=function(){ek.apply(this,arguments)};
_.U(Eqs,ek);Eqs.prototype.getAssociations=function(){return[]};
Eqs.prototype.getTypeName=function(){return"offlineVideoStreams"};var FFY=function(){ek.apply(this,arguments)};
_.U(FFY,ek);FFY.prototype.getAssociations=function(){var e=[];this.delegate.transfer&&e.push(this.delegate.transfer);this.delegate.adsPlaybackData&&e.push.apply(e,_.s_(this.delegate.adsPlaybackData));this.delegate.drmLicense&&e.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&e.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&e.push(this.delegate.videoDownloadContextEntity);return[].concat(_.s_(new Set(e)))};
FFY.prototype.getTypeName=function(){return"playbackData"};var Vf4=function(){ek.apply(this,arguments)};
_.U(Vf4,ek);Vf4.prototype.getAssociations=function(){return[]};
Vf4.prototype.getTypeName=function(){return"refresh"};var fST=function(){ek.apply(this,arguments)};
_.U(fST,ek);fST.prototype.getAssociations=function(){var e=[];this.delegate.offlineVideoStreams&&e.push.apply(e,_.s_(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&e.push.apply(e,_.s_(this.delegate.captionTrack));return[].concat(_.s_(new Set(e)))};
fST.prototype.getTypeName=function(){return"transfer"};var S2X=function(){ek.apply(this,arguments)};
_.U(S2X,ek);S2X.prototype.getAssociations=function(){return[]};
S2X.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var ura=new _.nN("showMoreDrawerCommand");var deo=new _.nN("updateEngagementPanelContentCommand");var DeX=new _.nN("getPdgBuyFlowCommand");var iEh=new _.nN("liveChatPurchaseMessageEndpoint");var NXs=new _.nN("openSuperStickerBuyFlowCommand");var sQC=new _.nN("updatePdgFeatureEnablementCommand");var BXg=function(){ek.apply(this,arguments)};
_.U(BXg,ek);BXg.prototype.getAssociations=function(){return[]};
BXg.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var tfY=function(){ek.apply(this,arguments)};
_.U(tfY,ek);tfY.prototype.getAssociations=function(){return[]};
tfY.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.gqa=new _.nN("pdgCommentChipRenderer");_.jQX=new _.nN("permissionRoleBottomBarRenderer");_.yYT=new _.nN("updatePermissionRoleCommand");var cYY=new _.nN("prefetchWatchCommand");var AYo=new _.nN("updatePlayerErrorMessageCommand");var RIs=new _.nN("toggleCaptionsVisibilityCommand");var ZET=new _.nN("playerDisclosureViewModel");_.phg=new _.nN("quickActionsViewModel");var eJs=new _.nN("playerResponse");var zJX=new _.nN("playlistRenderer");_.C9o=new _.nN("playlistVideoListRenderer");_.$R=new _.nN("playlistEditEndpoint");var wkg=new _.nN("createImagePollCommand");var KjY=new _.nN("createQuizCommand");var oVL=new _.nN("quizRenderer");var GBX=new _.nN("uploadedVideoRenderer");var YWh=new _.nN("decorateMessageEndpoint");var bxc=new _.nN("lpOfferCardOptionViewModel");var XkX=new _.nN("sfvAudioItemPlaybackCommand");var Juo=function(){ek.apply(this,arguments)};
_.U(Juo,ek);Juo.prototype.getAssociations=function(){return[]};
Juo.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.lt=new _.nN("reelNonVideoContentEndpoint");_.rP=new _.nN("reelWatchEndpoint");var kBs=new _.nN("reelActionBarViewModel");_.QQ=new _.nN("reelItemRenderer");var qWS=new _.nN("reelMetapanelViewModel");_.mu=new _.nN("reelNonVideoContentRenderer");_.xwL=new _.nN("reelPlayerOverlayRenderer");var TyU=new _.nN("shortsLockupViewModel");var $wa=new _.nN("sponsorButtonViewModel");var lCS=new _.nN("reelItemWatchResponse");var Q6c=new _.nN("textBadgeRenderer");_.a2=new _.nN("buttonRenderer");_.nH=new _.nN("toggleButtonRenderer");var DoN=new _.nN("switchButtonViewModel");_.mw6=new _.nN("confirmDialogRenderer");var aCa;aCa=new _.nN("menuRenderer");_.nV6=new _.nN("menuFlexibleItemRenderer");var Mws=new _.nN("pollRenderer");_.ruY=new _.nN("backgroundPromoRenderer");var UwX;_.Hx6=new _.nN("chipCloudRenderer");UwX=new _.nN("chipCloudChipRenderer");var vVL=new _.nN("dropdownRenderer");var ICs=new _.nN("gridVideoRenderer");_.Wja=new _.nN("itemSectionRenderer");_.P9S=new _.nN("messageRenderer");var RJh=new _.nN("sortFilterHeaderRenderer");_.M4=new _.nN("videoRenderer");var LjS=new _.nN("resolveUrlCommandMetadata");var hJg=function(){ek.apply(this,arguments)};
_.U(hJg,ek);hJg.prototype.getAssociations=function(){return[]};
hJg.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.OxX=new _.nN("getAnswerCommand");_.ag=new _.nN("searchEndpoint");var EVX=new _.nN("genAiRichTextViewModel");var Vb4=new _.nN("overviewAnswerViewModel");var Fja=new _.nN("videoOverviewViewModel");var VwC=new _.nN("addToPlaylistServiceEndpoint");var fCU=new _.nN("clearSearchHistoryEndpoint");var SWs=new _.nN("clearWatchHistoryEndpoint");var uGX=new _.nN("webSerializedServiceEndpointExtension");_.dwg=new _.nN("createCommentEndpoint");var DwS=new _.nN("createCommentReplyEndpoint");var ix6=new _.nN("performCommentActionEndpoint");var NyT=new _.nN("updateCommentEndpoint");var s6L=new _.nN("updateCommentReplyEndpoint");_.rA=new _.nN("createPlaylistServiceEndpoint");var By4=new _.nN("deletePlaylistEndpoint");var twC=new _.nN("deleteVideoEndpoint");var fUg=new _.nN("getReportFormEndpoint");var gVs=new _.nN("modifyChannelNotificationPreferenceEndpoint");var ja8;_.Uz=new _.nN("offlinePlaylistEndpoint");ja8={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 yx4;_.HF=new _.nN("offlineVideoEndpoint");yx4={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 j6o=new _.nN("pingingEndpoint");_.yu4=new _.nN("selectActiveIdentityEndpoint");var cuo=new _.nN("setSettingEndpoint");var QU1=new _.nN("undoFeedbackEndpoint");var Auc=new _.nN("unsubscribeEndpoint");_.Zxa=new _.nN("updatedMetadataEndpoint");var pks=function(){ek.apply(this,arguments)};
_.U(pks,ek);pks.prototype.getAssociations=function(){return[]};
pks.prototype.getTypeName=function(){return"settingEntity"};_.eVS=new _.nN("updateLocalAppSettingCommand");var zVY=new _.nN("saveImageToDeviceEndpoint");var C2T=new _.nN("shareImageCommand");var w$X=new _.nN("sharingProviderDataCommand");var Ky6=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Ky6,_.X2);var oE4=[0,_.bS,-1];Ky6.prototype.JSC$12695_serializeBinary=eX1(oE4);var GAc=_.vL(oE4);var YZT=new _.nN("userMentionSuggestionRenderer");var bBo=new _.nN("liveChatTunnelCommand");var X$L=new _.nN("showSponsorshipsGiftOfferDialogCommand");var J5X=new _.nN("sponsorshipsScrollableShelfViewModel");var kA6=new _.nN("updateUpcomingEventReminderButtonStateCommand");var qZg=new _.nN("upcomingEventReminderButtonStateRenderer");var xCo=new _.nN("subscribeEndpoint");var TnY=new _.nN("registerTasksCommand");var $C4=new _.nN("hideSheetCommand");var lkL=new _.nN("hideSnackbarCommand");var Q0c=new _.nN("showDialogCommand");_.L7=new _.nN("showSheetCommand");var mCY=new _.nN("showSnackbarCommand");var ak6=function(){ek.apply(this,arguments)};
_.U(ak6,ek);ak6.prototype.getAssociations=function(){return[]};
ak6.prototype.getTypeName=function(){return"chipEntity"};var nEU=function(){ek.apply(this,arguments)};
_.U(nEU,ek);nEU.prototype.getAssociations=function(){return[]};
nEU.prototype.getTypeName=function(){return"dismissState"};_.NK=new _.nN("avatarViewModel");var MNY=new _.nN("badgeViewModel");_.H7=new _.nN("buttonViewModel");_.Uf=new _.nN("chipViewModel");var r5o=new _.nN("contentPreviewImageViewModel");var HBU=new _.nN("decoratedAvatarViewModel");_.wx1=new _.nN("engagementBarViewModel");_.UCg=new _.nN("imageBannerViewModel");var vEs=new _.nN("lockupContentMetadataRowExtension");_.IkL=new _.nN("lockupMetadataViewModel");_.Wya=new _.nN("lockupViewModel");var P2g=new _.nN("avatarStackViewModel");_.RVc=new _.nN("contentMetadataViewModel");var Ly4=function(){ek.apply(this,arguments)};
_.U(Ly4,ek);Ly4.prototype.getAssociations=function(){return[]};
Ly4.prototype.getTypeName=function(){return"pageHeaderEntity"};_.hVh=new _.nN("pageHeaderViewModel");var OBC=new _.nN("snackbarViewModel");var EEa=new _.nN("thumbnailHoverOverlayToggleActionsViewModel");_.v7=new _.nN("toggleButtonViewModel");var Fys=function(){ek.apply(this,arguments)};
_.U(Fys,ek);Fys.prototype.getAssociations=function(){return[]};
Fys.prototype.getTypeName=function(){return"votingEntity"};_.Ktg=new _.nN("votingViewModel");var VNa=new _.nN("sectionHeaderViewModel");var fkU=new _.nN("notifyDropdownOptionSelectedCommand");var lu8=new _.nN("listViewModel");_.hm=new _.nN("listItemViewModel");var SZU=new _.nN("dialogHeaderViewModel");var uqg=function(){ek.apply(this,arguments)};
_.U(uqg,ek);uqg.prototype.getAssociations=function(){return[]};
uqg.prototype.getTypeName=function(){return"dataFreshnessEntity"};var H1m=new _.nN("suspenseViewModel");var dCh=new _.nN("tooltipViewModel");var DCs=function(){ek.apply(this,arguments)};
_.U(DCs,ek);DCs.prototype.getAssociations=function(){return[]};
DCs.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var iBc=function(){ek.apply(this,arguments)};
_.U(iBc,ek);iBc.prototype.getAssociations=function(){return[]};
iBc.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var Nn4=function(){ek.apply(this,arguments)};
_.U(Nn4,ek);Nn4.prototype.getAssociations=function(){return[]};
Nn4.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.s06=new _.nN("transcriptSubmitCaptionCorrectionCommand");var BnL=function(){ek.apply(this,arguments)};
_.U(BnL,ek);BnL.prototype.getAssociations=function(){return[]};
BnL.prototype.getTypeName=function(){return"buttonEntity"};var bu1=new _.nN("unpluggedStringRunImage");var tNa=new _.nN("tabViewModel");var gEU=new _.nN("tabbedViewModel");var j0o=function(){ek.apply(this,arguments)};
_.U(j0o,ek);j0o.prototype.getAssociations=function(){return[]};
j0o.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.y5g=new _.nN("updateDescriptionAction");var c5a=new _.nN("updateToggleButtonTextAction");var A5o=new _.nN("showFullscreenPlayerControlsCommand");var ZBa=new _.nN("updateVideoMetadataCommand");_.p$S=new _.nN("autoplaySwitchButtonRenderer");var sQ;_.eBg=new _.nN("multiMarkersPlayerBarRenderer");sQ=new _.nN("chapterRenderer");var zBg=new _.nN("heatMarkerRenderer");var R8m=new _.nN("heatmapRenderer");var CTU=new _.nN("smartSkipPlayerScrimOverlayRenderer");var wUC=new _.nN("timedMarkerDecorationRenderer");var BY5=new _.nN("postWebToNativeMessageCommand");var Nl=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Nl,_.X2);Nl.prototype.getMethodName=function(){return _.Ds(this,1)};var Kl4=[0,_.bS,-2];Nl.prototype.JSC$12717_serializeBinary=eX1(Kl4);var oXs=_.UC(Nl,Kl4);var G$a=new _.nN("whitelistEditEndpoint");var Yja=new _.nN("clearUrlParamCommand");var bTU=new _.nN("commerceActionCommand");_.XUc=new _.nN("getPaymentInstrumentsParamsCommand");var JBg=new _.nN("getPaymentsClientTokenCommand");var k$X=new _.nN("googlePaymentBillingCommand");var qjs=new _.nN("googlePaymentPurchaseManagerCommand");_.xds=new _.nN("logGtmCommand");var TiL=new _.nN("updateCardItemOnClickCommand");_.$dL=new _.nN("ypcPauseSubscriptionCommand");_.l5S=new _.nN("ypcResumeSubscriptionCommand");var QwY=function(){ek.apply(this,arguments)};
_.U(QwY,ek);QwY.prototype.getAssociations=function(){return[]};
QwY.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var mdU=function(){ek.apply(this,arguments)};
_.U(mdU,ek);mdU.prototype.getAssociations=function(){return[]};
mdU.prototype.getTypeName=function(){return"commerceCartListEntity"};var a56=function(){ek.apply(this,arguments)};
_.U(a56,ek);a56.prototype.getAssociations=function(){return[]};
a56.prototype.getTypeName=function(){return"iconBadgeEntity"};var nXh=function(){ek.apply(this,arguments)};
_.U(nXh,ek);nXh.prototype.getAssociations=function(){return[]};
nXh.prototype.getTypeName=function(){return"pdpStateEntity"};var MGc=function(){ek.apply(this,arguments)};
_.U(MGc,ek);MGc.prototype.getAssociations=function(){return[]};
MGc.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var rVE=new _.nN("ypcOffersEndpoint");var rB6=new _.nN("cardItemRenderer"),HTa=new _.nN("cardItemTextRenderer");var Udh=new _.nN("commerceCartItemQuantityPickerRenderer");var vXa=new _.nN("linkCardRenderer");var SNg=new _.nN("quantityIncrementerButtonViewModel");var POg=new _.nN("quantityIncrementerViewModel");var RR6=new _.nN("themedImageViewModel");_.L9o=new _.nN("ypcCancelRecurrenceEndpoint");var hRa=new _.nN("ypcCompleteTransactionEndpoint");_.O9a=new _.nN("ypcGetCartEndpoint");_.zV=new _.nN("ypcGetOffersEndpoint");_.I2=new _.nN("ypcHandleTransactionEndpoint");var Evh=new _.nN("ypcLogWalletAnalyticDataEndpoint");_.F9S=new _.nN("ypcRedeemCodeEndpoint");var VeU=new _.nN("ypcUpdateFopEndpoint");E4(O4(1),LA(4));qC6((new MessageChannel).port2);var fNL=function(){this.register=new Map},hL1=function(e,z,C){e=e+"_"+z;
W7.register.has(e)?C=W7.register.get(e):(C=C(),W7.register.set(e,C));return C},SDc=function(e){e=_.b(e.register.values());
for(var z=e.next();!z.done;z=e.next())_.rh(z.value,"ABORTED")};
fNL.prototype.clear=function(){SDc(this);this.register.clear()};
var W7=new fNL;var Jph=Date.now().toString();var xVk=qrE();var M6h={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 utL;utL=1;_.vr=function(e){this.veData=e};
_.v9=function(e){return new _.vr({trackingParams:e})};
_.mT=function(e,z,C,w,K,G){var X=utL++;return new _.vr({veType:e,veCounter:X,elementIndex:C,dataElement:z,youtubeData:w,jspbYoutubeData:K,loggingDirectives:G})};
_.Y=_.vr.prototype;
_.Y.getAsJson=function(){var e={};this.veData.trackingParams!==void 0?e.trackingParams=this.veData.trackingParams:(e.veType=this.veData.veType,this.veData.veCounter!==void 0&&(e.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(e.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(e.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(e.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(e.isCounterfactual=!0);
return e};
_.Y.getAsJspb=function(){var e=new OKg;this.veData.trackingParams!==void 0?e.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.td(e,2,this.veData.veType),this.veData.veCounter!==void 0&&_.td(e,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.td(e,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.a4(e,5,!0));if(this.veData.dataElement!==void 0){var z=this.veData.dataElement.getAsJspb();_.PL(e,7,z)}this.veData.youtubeData!==void 0&&_.PL(e,8,this.veData.jspbYoutubeData);
return e};
_.Y.toString=function(){return JSON.stringify(this.getAsJson())};
_.Y.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.Y.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.lM("yt_logging_screen.getRootVeType",mV7);_.lM("yt_logging_screen.getCurrentCsn",_.Pr);_.lM("yt_logging_screen.getCttAuthInfo",Rp);_.lM("yt_logging_screen.setCurrentScreen",_.Li);var dNs=function(){this.events=new Map},DNT=function(e){var z=[];
e=_.b(e.events.values());for(var C=e.next();!C.done;C=e.next())z.push(C.value);return z};
dNs.prototype.clear=function(){this.events.clear()};var NHh=function(){this.logTransport=new i9o;this.loggedEventRegister=new dNs;this.unloggedEventRegister=new dNs;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12754_flushTimer=new _.rM(this.flushInterval);this.JSC$12754_flushTimer.listen("tick",this.flush,!1,this)};
NHh.prototype.flush=function(){if(this.eventsCount){var e={loggedEvents:DNT(this.loggedEventRegister),unloggedEvents:DNT(this.unloggedEventRegister)};if(_.M("export_player_version_to_ytconfig")){var z;(z=_.j5("PLAYER_CLIENT_VERSION"))?(z=z.split("-")[0].replace(/\./g,""),z=isNaN(Number(z))?"0":z):z="";var C=_.j5("PLAYER_CLIENT_VERSION");if(C){C=C.split("-");var w="";C.length>1&&(w=C[C.length-1]);C=Xvs(w.startsWith("canary_experiment")?"canary":w.startsWith("canary_control")?"control":"none")}else C=
"CLIENT_CANARY_STATE_UNKNOWN";e.dimensions={playerClientVersion:z,playerCanaryState:C}}this.logTransport.flush(e);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12754_flushTimer.enabled&&this.JSC$12754_flushTimer.stop()}};
var s$L=function(e){P7==null&&(P7=new NHh);var z=P7;var C=z.loggedEventRegister;e.dimensions=e.dimensions||{};e.dimensions.csn=_.Pr()||"";var w=vKg(e.dimensions).join(";");if(e.records!=null)if(C.events.has(w)){var K;(K=C.events.get(w).records)==null||K.push.apply(K,_.s_(e.records))}else C.events.set(w,e);z.JSC$12754_flushTimer.enabled||z.JSC$12754_flushTimer.start();z.eventsCount++;z.eventsCount>=100&&z.flush()};var i9o=function(){};
i9o.prototype.flush=function(e,z){_.M("enable_client_sli_logging")&&_.gm("sliEventBatch",e,{sendIsolatedPayload:!!z})};var P7;var tea;tea=function(e){var z=BHs;e=e===void 0?{}:e;z=z.name;var C=Lho("SUCCESS");s$L({dimensions:e,records:[{name:z,state:"SLI_STATE_END",status:C}]})};
_.Org=function(e,z,C,w){this.name=e;this.sliId=z;this.timeoutMs=C;this.statusOnTimeout=w;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Org.prototype.getId=function(){return this.sliId};
_.MZ=function(e,z){z=z===void 0?{}:z;e.ongoing||(e.ongoing=!0,e.dimensions=z,e.logSliId=pT4(),s$L({dimensions:e.dimensions,records:[{name:e.name,state:"SLI_STATE_START",sliId:e.logSliId}]}),e.timeoutMs>0&&(e.timeoutHandle=setTimeout(function(){_.rh(e,e.statusOnTimeout)},e.timeoutMs)))};
_.rh=function(e,z){e.ongoing&&(e.timeoutMs>0&&clearTimeout(e.timeoutHandle),e.ongoing=!1,z={dimensions:e.dimensions,records:[{name:e.name,status:Lho(z),state:"SLI_STATE_END",sliId:e.logSliId}]},W7.register.delete(e.name+"_"+e.sliId),s$L(z))};var BHs=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var gvU=function(){ek.apply(this,arguments)};
_.U(gvU,ek);gvU.prototype.getAssociations=function(){return[]};
gvU.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var B21=new _.nN("highlightTextDecoratorColorMapExtension");var N27=new _.nN("styleRunColorMapExtension");var dV7=_.Kb(["data-"]),ND7={};var BD1={};var R2=function(e){this.wrappedPromise_=e===void 0?null:e;this.state_=0;this.JSC$12785_value_=null};
R2.prototype.then=function(e,z,C){return this.wrappedPromise_?this.wrappedPromise_.then(e,z,C):this.state_===1&&e?(e=e.call(C,this.JSC$12785_value_))&&typeof e.then==="function"?e:_.LH(e):this.state_===2&&z?(e=z.call(C,this.JSC$12785_value_))&&typeof e.then==="function"?e:_.j$o(e):this};
R2.prototype.getValue=function(){return this.JSC$12785_value_};
R2.prototype.isRejected=function(){return this.state_==2};
vi6(R2);_.j$o=function(e){var z=new R2;e=e===void 0?null:e;z.state_=2;z.JSC$12785_value_=e===void 0?null:e;return z};
_.LH=function(e){var z=new R2;e=e===void 0?null:e;z.state_=1;z.JSC$12785_value_=e===void 0?null:e;return z};var GKo="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var y_6=["load","abort","error"],hi=function(e,z,C){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12805_maxAspectRatio_=e;this.disableAnimation_=z===void 0?!1:z;this.disableExifRotation_=C===void 0?!1:C;this.JSC$12805_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12805_reject_=this.resolve_=null};
hi.prototype.transform=function(e){var z=this;this.mime_=e.type;$u(FBS(e),this.dataUrlRead_,this.readError_,this);$u(EfU(e.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(C,w){z.resolve_=C;z.JSC$12805_reject_=w})};
hi.prototype.dataUrlRead_=function(e){this.dataUrl_=e;this.angle_!=null&&c_a(this)};
hi.prototype.exifRead_=function(e){if(this.disableExifRotation_)this.angle_=0;else{a:if(e=new DataView(e),e.byteLength<2||e.getUint16(0)!==65496)e=-2;else{for(var z=2,C=e.byteLength;z<C;){var w=e.getUint16(z),K=e.getUint16(z+2);if(w===65505){z+=4;w=e.getUint32(z);K=e.getUint16(z+4);if(w!==1165519206||K!==0)break;z+=6;w=e.getUint16(z)===18761;z+=e.getUint32(z+4,w);K=e.getUint16(z,w);z+=2;for(var G=0;G<K;G++){if(e.getUint16(z,w)===274){z+=8;e=e.getUint16(z,w);break a}z+=12}}else if(w>>8!==255)break;
else z+=K+2}e=-1}switch(e){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&&c_a(this)};
hi.prototype.readError_=function(){this.JSC$12805_reject_()};
var c_a=function(e){H9(e.JSC$12805_image_,y_6,e.completeTransform_,!1,e);e.JSC$12805_image_.src=_.gw(e.dataUrl_).toString();e.JSC$12805_image_.src!=sC.toString()&&e.JSC$12805_image_.src.substr(0,11)==="data:image/"||e.JSC$12805_reject_()};
hi.prototype.completeTransform_=function(){if(this.JSC$12805_image_.src!=sC.toString()){var e=_.gw(this.dataUrl_),z=this.JSC$12805_image_.naturalHeight?this.JSC$12805_image_.naturalWidth/this.JSC$12805_image_.naturalHeight:null;this.invalidAspectRatio=z>this.JSC$12805_maxAspectRatio_||z<1/this.JSC$12805_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var C=this.JSC$12805_image_.naturalWidth,w=this.JSC$12805_image_.naturalHeight,K=z=0,G=this.JSC$12805_image_.naturalHeight?this.JSC$12805_image_.naturalWidth/
this.JSC$12805_image_.naturalHeight:null;G>this.JSC$12805_maxAspectRatio_?(C=this.JSC$12805_maxAspectRatio_*w,z=(C-this.JSC$12805_image_.naturalWidth)/2,this.cropped=!0):G<1/this.JSC$12805_maxAspectRatio_?(w=this.JSC$12805_maxAspectRatio_*C,K=(w-this.JSC$12805_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)G=C,C=w,w=G,G=z,z=K,K=G;switch(this.angle_){case 90:K-=C;break;case 180:z-=C;K-=w;break;case 270:z-=
w}this.cropped||this.angle_%360!==0?(e=document.createElement("canvas"),e.width=C||1,e.height=w||1,this.JSC$12805_image_.naturalWidth&&this.JSC$12805_image_.naturalHeight&&(C=e.getContext("2d"),C.rotate(Math.PI/180*this.angle_),C.drawImage(this.JSC$12805_image_,z,K,this.JSC$12805_image_.naturalWidth,this.JSC$12805_image_.naturalHeight)),this.transformedData=_.gw(e.toDataURL(this.mime_))):this.transformedData=e}else this.transformedData=e;this.resolve_(this)}};var Of=function(e,z){_.fk.call(this,e);this.value=z};
_.U(Of,_.fk);
var Ef=function(e,z,C,w,K,G,X){X=X===void 0?!1:X;_.N3.call(this);var J=this;this.JSC$12810_url_=e;this.channelId_=z;this.maxFileSizeMb_=C;this.JSC$12810_maxAspectRatio_=w;this.dropZoneEl_=K;this.rejectInvalidAspectRatio_=X;this.selectButtonEl_=G;this.JSC$12810_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new iK(this.dropZoneEl_);this.selectOverlay_=new NB(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12810_image_=this.transfer_=null;this.handler_=new _.HA(this);_.I4(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(G,"click",function(){J.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.U(Ef,_.N3);Ef.prototype.disposeInternal=function(){for(var e=this.selectButtonEl_.nextSibling;e&&e.parentNode&&e.tagName=="INPUT";)e.parentNode.removeChild(e),e=this.selectButtonEl_.nextSibling;this.cancel();_.N3.prototype.disposeInternal.call(this)};
Ef.prototype.uploadPromise=function(){if(this.JSC$12810_image_==null)return null;this.uploadPromise_||A_6(this);return this.uploadPromise_};
Ef.prototype.cancel=function(){Z9c(this);this.JSC$12810_image_=null};
var Z9c=function(e){e.transfer_&&e.transfer_.cancel();e.transfer_=null;e.uploadPromise_=null;e.resolve_=null;e.JSC$12810_reject_=null},A_6=function(e){Z9c(e);
e.transfer_=_.HNa(e.JSC$12810_url_,{"X-YouTube-ChannelId":e.channelId_},e.JSC$12810_image_);e.handler_.listenOnce(e.transfer_,"l",e.JSC$12812_onUploadComplete_);e.handler_.listenOnce(e.transfer_,"n",e.onUploadError_);e.transfer_.run();e.uploadPromise_=new Promise(function(z,C){e.resolve_=z;e.JSC$12810_reject_=C})};
_.Y=Ef.prototype;_.Y.onChange_=function(e){e.files.length&&(this.JSC$12810_image_=e.files[0],this.JSC$12810_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12810_image_=null,this.dispatchEvent(new Of("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(A_6(this),(new hi(this.JSC$12810_maxAspectRatio_)).transform(this.JSC$12810_image_).then((0,_.uZ)(this.onPreview_,this),(0,_.uZ)(this.onPreviewError_,this))))};
_.Y.onPreview_=function(e){if(e.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12810_image_=null),this.dispatchEvent(new Of("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;e.cropped&&this.dispatchEvent(new Of("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Of("yt.comments.ImageUploadOverlay.CHANGE_EVENT",e.transformedData))};
_.Y.onPreviewError_=function(){this.JSC$12810_image_=null;this.dispatchEvent(new Of("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.Y.onHover_=function(e){e.stopPropagation();e.preventDefault();if(e.type==="dragover")e=!0;else if(e.type==="dragleave")e=!1;else return;this.dispatchEvent(new Of("yt.comments.ImageUploadOverlay.HOVER_EVENT",e))};
_.Y.JSC$12812_onUploadComplete_=function(){var e=(0,_.cRX)(this.transfer_.getResponseText());this.resolve_(e.encryptedBlobId)};
_.Y.onUploadError_=function(){this.JSC$12810_reject_();Z9c(this)};var ppc=function(e){e=e||{};var z={},C={};this.url=e.url||"";this.args=e.args||_.de.clone(z);this.assets=e.assets||{};this.attrs=e.attrs||_.de.clone(C);this.fallback=e.fallback||null;this.fallbackMessage=e.fallbackMessage||null;this.html5=!!e.html5;this.disable=e.disable||{};this.loaded=!!e.loaded;this.messages=e.messages||{}};
ppc.prototype.clone=function(){var e=new ppc,z;for(z in this)if(this.hasOwnProperty(z)){var C=this[z];_.zL(C)=="object"?e[z]=_.de.clone(C):e[z]=C}return e};var eca,zcC,Ccs,CM,Kvo,oUa,G_6,YaS,b$h,XKL,JrU,k_4,qaS,xQU,TbY,$Qo,lRh,Q7L,mQc,aRc,nUU,MIo,rra,H$s,UQY,vUT,IRT,Wv6,Pc6,pNo,Rc4,LvC,hcX,O$Y,EUc,Fvo,VIa,fRL,SaC,uOL,Zwg,dQa,DQC,i$c,NbX,s76,Bbs,tIg,gU6,j7a,yrs,crs,ArX,Z$4,pK6,eEY,FD,zEX,CW4,wOa,Kq6,o04,GMg,YdU,bDh,XOX,Jzh,kMC,qdh,xMS,TF6,$MX,lQs,QzT,mM4,aQc,cDE,n0o,MUY,rzU,HDs,UMU,v0T,IQT,Wqo,PWT,RE4,Lqh,hEc,ODo,E0s,FqC,VUc,fQs,Sd6,u$6,dMg,DM6,iDc,NFS,szc,BFg;eca=["account/accounts_list"];zcC=["acknowledge_channel_tou_strike"];Ccs=["notification/add_upcoming_event_reminder"];
_.wKa=["att/get"];CM=["browse","music/browse","streaming_browse","unplugged/browse"];Kvo=["channel/claim_legacy_youtube_channel"];oUa=["history/clear_search_history"];G_6=["history/clear_watch_history"];YaS=["comment/perform_comment_action"];b$h=["comment/get_comment_replies"];XKL=["ypc/commerce_action"];JrU=["backstage/create_post"];k_4=["live/create_broadcast"];qaS=["channel/create_channel"];xQU=["comment/create_comment_reply"];TbY=["comment/create_comment"];$Qo=["live_chat/create_poll"];lRh=["playlist/create"];
Q7L=["decorate_message"];mQc=["live_chat/delete_message"];aRc=["playlist/delete"];nUU=["video/delete"];MIo=["like/dislike"];rra=["dismissal/dismiss"];H$s=["flag/flag"];UQY=["flow"];vUT=["account/account_menu"];IRT=["playlist/get_add_to_playlist"];Wv6=["get_answer"];Pc6=["channel/get_channel_creation_form"];pNo=["offline/get_download_action"];Rc4=["kids/get_kids_blocklist_picker"];LvC=["live_chat/get_item_context_menu"];hcX=["live_chat/get_live_chat_message_buy_flow"];O$Y=["live_chat/get_live_chat_replay"];
EUc=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Fvo=["live_chat/get_live_chat_super_sticker_buy_flow"];VIa=["notification/get_notification_menu"];fRL=["playlist/get_settings_editor"];SaC=["backstage/get_post_video_preview"];uOL=["account/get_profile_card"];Zwg=["share/get_share_panel"];dQa=["share/get_sharing_provider_data"];DQC=["get_survey"];i$c=["notification/get_unseen_count"];NbX=["get_user_mention_suggestions"];s76=["get_watch"];Bbs=["guide"];
tIg=["feedback"];gU6=["kids/update_blacklist"];j7a=["like/like"];yrs=["live_chat/live_chat_action"];crs=["live_chat/manage_user"];ArX=["video_manager/metadata_update"];Z$4=["live_chat/moderate"];pK6=["notification/modify_channel_preference"];eEY=["notification/opt_out"];FD=["get_panel","get_posts_by_host_panel"];zEX=["player"];CW4=["browse/edit_playlist"];wOa=["notification/record_interactions"];Kq6=["reel/reel_item_watch"];o04=["reel/reel_watch_sequence"];GMg=["like/removelike"];YdU=["notification/remove_upcoming_event_reminder"];
bDh=["flag/get_form"];XOX=["miniapp/report_value"];Jzh=["navigation/resolve_url"];kMC=["channel/reveal_business_email"];qdh=["in_video/search"];xMS=["search","sfv/search","unplugged/search"];TF6=["live_chat/send_message"];$MX=["live_chat/send_live_chat_vote"];lQs=["account/set_setting"];QzT=["submit_caption_correction"];mM4=["submit_form"];aQc=["subscription/subscribe"];cDE=["get_transcript"];n0o=["resolve_location","unplugged/resolve_location"];MUY=["subscription/unsubscribe"];rzU=["backstage/update_post"];
HDs=["channel_edit/update_channel_page_settings"];UMU=["comment/update_comment_reply"];v0T=["comment/update_comment"];IQT=["comment/update_comments_settings"];Wqo=["creator/update_creator_channel"];PWT=["pdg/update_enablement"];RE4=["updated_metadata"];Lqh=["channel_edit/validate_channel_handle"];hEc=["verify_age"];ODo=["next","unplugged/watch_next"];E0s=["whitelist/edit"];FqC=["ypc/cancel_recurrence"];VUc=["ypc/complete_transaction"];fQs=["ypc/get_cart"];Sd6=["ypc/get_fix_instrument_params"];
u$6=["ypc/get_offers"];dMg=["ypc/get_payment_instruments_params"];DM6=["ypc/handle_transaction"];iDc=["ypc/log_payment_server_analytics"];NFS=["ypc/pause_subscription"];szc=["ypc/redeem_code"];BFg=["ypc/resume_subscription"];var tUs=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,
221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,
25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,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,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,
36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,
198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,281127,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,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,
11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,
254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,
273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,
59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,
262802,267580,262798,267695,267581,273232,82039];var Jg=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.lM("yt.msgs_",Jg);var VQ=new _.Mt("ACTION_ROUTER_TOKEN");_.fH=function(){this.autonavState_=_.M("kevlar_is_pupi_enabled")?2:mBg()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.fH.prototype.getState=function(){return this.autonavState_};
_.fH.prototype.pause=function(e){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=e):this.autonavState_==1&&(this.disabledAutonavPauseReason_=e)};
_.fH.prototype.setState=function(e,z,C){z&&(this.autoplayChangedByUser=!0);z=this.autonavState_===3||e===3;this.autonavState_!=e&&(this.autonavState_=e,e!=3&&_.alg(e==2),e=_.M("kevlar_is_pupi_enabled")?C||z:!0,_.G4.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,e,C))};
_.fH.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.qI(_.fH);var Sk=function(){this.aC=!1};var ut={},LWN=(ut.auto_search="LATENCY_ACTION_AUTO_SEARCH",ut.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ut.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ut.app_startup="LATENCY_ACTION_APP_STARTUP",ut.browse="LATENCY_ACTION_BROWSE",ut.cast_splash="LATENCY_ACTION_CAST_SPLASH",ut.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ut.channels="LATENCY_ACTION_CHANNELS",ut.chips="LATENCY_ACTION_CHIPS",ut.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ut.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ut.editor="LATENCY_ACTION_EDITOR",ut.embed="LATENCY_ACTION_EMBED",ut.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ut.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ut.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ut.explore="LATENCY_ACTION_EXPLORE",ut.favorites="LATENCY_ACTION_FAVORITES",ut.home="LATENCY_ACTION_HOME",ut.inboarding="LATENCY_ACTION_INBOARDING",ut.landing="LATENCY_ACTION_LANDING",ut.learning="LATENCY_ACTION_LEARNING",
ut.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",ut.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",ut.library="LATENCY_ACTION_LIBRARY",ut.live="LATENCY_ACTION_LIVE",ut.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ut.management="LATENCY_ACTION_MANAGEMENT",ut.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ut.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ut.onboarding="LATENCY_ACTION_ONBOARDING",ut.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
ut.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ut.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ut.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",ut.prebuffer="LATENCY_ACTION_PREBUFFER",ut.prefetch="LATENCY_ACTION_PREFETCH",ut.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ut.profile_switcher="LATENCY_ACTION_LOGIN",ut.projects="LATENCY_ACTION_PROJECTS",ut.reel_watch="LATENCY_ACTION_REEL_WATCH",ut.results="LATENCY_ACTION_RESULTS",ut.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
ut.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ut.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ut.review="LATENCY_ACTION_REVIEW",ut.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ut.search_ui="LATENCY_ACTION_SEARCH_UI",ut.search_suggest="LATENCY_ACTION_SUGGEST",ut.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ut.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ut.seek="LATENCY_ACTION_PLAYER_SEEK",ut.settings="LATENCY_ACTION_SETTINGS",ut.store="LATENCY_ACTION_STORE",
ut.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ut.tenx="LATENCY_ACTION_TENX",ut.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ut.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",ut.watch="LATENCY_ACTION_WATCH",ut.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ut["watch,watch7"]="LATENCY_ACTION_WATCH",ut["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ut["watch,watch7ad"]="LATENCY_ACTION_WATCH",ut["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ut.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
ut.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ut.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ut.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ut.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ut.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ut.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ut.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ut),g0s=0;var chk=function(e,z){gS.call(this,1,arguments);this.timer=z};
_.U(chk,gS);var yhk=new BP7("aft-recorded",chk);var FW1=_.wL.ytLoggingGelSequenceIdObj_||{};_.lM("ytLoggingGelSequenceIdObj_",FW1);var dA=_.wL.ytLoggingLatencyUsageStats_||{};_.lM("ytLoggingLatencyUsageStats_",dA);var Dw=function(){this.cleanupJob=0},S4m=function(){Dw.instance||(Dw.instance=new Dw);
return Dw.instance};
_.Y=Dw.prototype;_.Y.baseline=function(e,z,C){N4(this,"baseline_"+e)||_.gm("latencyActionBaselined",{clientActionNonce:e},{timestamp:z,cttAuthInfo:C})};
_.Y.tick=function(e,z,C,w){N4(this,"tick_"+e+"_"+z)||_.gm("latencyActionTicked",{tickName:e,clientActionNonce:z},{timestamp:C,cttAuthInfo:w})};
_.Y.info=function(e,z,C){var w=Object.keys(e).join("");N4(this,"info_"+w+"_"+z)||(e=Object.assign({},e),e.clientActionNonce=z,_.gm("latencyActionInfo",e,{cttAuthInfo:C}))};
_.Y.jspbInfo=function(e,z,C){for(var w="",K=0;K<fv(e).length;K++)fv(e)[K]!==void 0&&(w=K===0?w.concat(""+K):w.concat("_"+K));N4(this,"info_"+w+"_"+z)||(_.Et(e,2,z),z={cttAuthInfo:C},C=_.M("jspb_sparse_encoded_pivot")?new dm([{}]):new dm,_.RT(C,7,yOa,e),VOL("latencyActionInfo",C,z))};
_.Y.span=function(e,z,C){var w=Object.keys(e).join("");N4(this,"span_"+w+"_"+z)||(e.clientActionNonce=z,_.gm("latencyActionSpan",e,{cttAuthInfo:C}))};
var N4=function(e,z){dA[z]=dA[z]||{count:0};var C=dA[z];C.count++;C.time=(0,_.as)();e.cleanupJob||(e.cleanupJob=_.Dz(_.c5,function(){var w=(0,_.as)(),K;for(K in dA)dA[K]&&w-dA[K].time>6E4&&delete dA[K];e&&(e.cleanupJob=0)},5E3));
return C.count>5?(C.count===6&&Math.random()*1E5<1&&(C=new _.uh("CSI data exceeded logging limit with key",z.split("_")),z.indexOf("plev")>=0||_.AX(C)),!0):!1};var jza,yzX;jza=window;yzX=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.aS=jza.performance||jza.mozPerformance||jza.msPerformance||jza.webkitPerformance||new yzX;var jY8=!1,dB4=!1,Ah1=(0,_.uZ)(_.aS.clearResourceTimings||_.aS.webkitClearResourceTimings||_.aS.mozClearResourceTimings||_.aS.msClearResourceTimings||_.aS.oClearResourceTimings||_.S2,_.aS);var eY5=_.Z_(function(e,z,C,w,K,G,X){if(!_.M("web_csi_action_sampling_enabled")||!_.ld(G).actionDisabled){var J=X==null?void 0:X.spanStatus;X=X==null?void 0:X.rootSpanNonce;var q=_.Qu(G);if(q.gelSpans)q.gelSpans[e]=!0;else{var T={};q.gelSpans=(T[e]=!0,T)}g0s++;e={spanName:e,spanLengthUsec:String(Math.round(z*1E3)),spanNonce:g0s};X&&(e.rootSpanNonce=X);J&&(e.spanStatus=J);w&&(e.spanInfo=w);K&&(e.parentSpanNonce=K);C&&(e.spanStartTimeUsec=String(Math.round(C*1E3)));_.mm(G||"").span[String(e.spanName)]=
e;C=_.Qu(G);C.gelSpans||(C.gelSpans={});_.OX(C.gelSpans,e);C=Il1(G);G=_.ld(G).cttAuthInfo;S4m().span(e,C,G);return e.spanNonce}}),czo=window;
czo.ytcsi&&(czo.ytcsi.infoGel=_.Pf,czo.ytcsi.tick=_.hg);var bHk=function(e){gS.call(this,1,arguments);this.csn=e};
_.U(bHk,gS);var cUg=new BP7("screen-created",bHk),U4g=[],Yfk=HHg,vRE=0,ud=new Map,X77=new Map,Ji1=new Map;var yM7=Symbol("Cf"),cf=new WeakMap;var sf=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ro=function(){sf.instance||(sf.instance=new sf);
return sf.instance};
_.Y=sf.prototype;_.Y.setClient=function(e){this.client=e};
_.Y.JSC$12894_newScreen=function(){this.clear();this.csn=_.Pr()};
_.Y.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.Y.reportShown=function(e,z,C,w){var K=this.JSC$12894_getTrackingParams(e),G=e.visualElement?e.visualElement:K;z=this.shownElements.has(G);var X=this.visibleState.get(G);this.shownElements.add(G);this.visibleState.set(G,!0);e.impressionLog&&!z&&e.impressionLog();if(K||e.visualElement)if(C=Azc(this,e,C))if(G=ZDC(this,e),B7(this,e)||G){K=e.visualElement?e.visualElement:_.v9(K);var J=e.interactionLoggingClientData;G||z?B7(this,e)&4?X||m41(this.client,C,K,J):B7(this,e)&1&&!z&&$45(this.client,C,K,J,w):
$45(this.client,C,K,J,w)}};
_.Y.reportHidden=function(e,z,C,w){var K=this.JSC$12894_getTrackingParams(e),G=e.visualElement?e.visualElement:K;z=this.hiddenElements.has(G);var X=this.visibleState.get(G);this.hiddenElements.add(G);this.visibleState.set(G,!1);if(X===!1)return!0;if(!K&&!e.visualElement)return!1;C=Azc(this,e,C);if(!C||!B7(this,e)&&ZDC(this,e))return!1;K=e.visualElement?e.visualElement:_.v9(K);B7(this,e)&8?aw7(this.client,C,K,void 0,void 0,w):B7(this,e)&2&&!z&&(e=this.client,w=SA({cttAuthInfo:Rp(C)||void 0,automatedLogEventSource:w},
C),z={csn:C,ve:K.getAsJson(),eventType:2},C==="UNDEFINED_CSN"?DE("visualElementHidden",w,z):e?Bn("visualElementHidden",z,e,w):_.gm("visualElementHidden",z,w));return!0};
_.Y.JSC$12894_getTrackingParams=function(e){var z=this.getData(e),C,w;if(_.M("il_use_view_model_logging_context")&&(z==null?0:(C=z.context)==null?0:(w=C.loggingContext)==null?0:w.loggingDirectives))return z.context.loggingContext.loggingDirectives.trackingParams||"";var K,G;if(z==null?0:(K=z.rendererContext)==null?0:(G=K.loggingContext)==null?0:G.loggingDirectives)return z.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(z==null?0:z.loggingDirectives)return z.loggingDirectives.trackingParams||
"";var X;return((X=e.veContainer)==null?0:X.trackingParams)?e.veContainer.trackingParams:(z==null?void 0:z.trackingParams)||""};
_.Y.JSC$12894_elementShouldLogGesture=function(e,z){e=this.getData(e);return!!((Math.floor(Number(e&&e.loggingDirectives&&e.loggingDirectives.gestures&&e.loggingDirectives.gestures.types||""))||0)&z)};
_.Y.JSC$12894_getNearestParentVe=function(e){var z=this.JSC$12894_getTrackingParams(e);return e.visualElement?e.visualElement:z?_.v9(z):e.parentElement?this.JSC$12894_getNearestParentVe(e.parentElement):null};
var Azc=function(e,z,C){var w=_.Pr(C);return e.csn===null||w===e.csn||C?w:(e=new _.uh("VisibilityLogger called before newScreen",{caller:z.tagName,previous_csn:e.csn,current_csn:w}),_.AX(e),null)};
sf.prototype.getData=function(e){var z,C=e.data||((z=e.props)==null?void 0:z.data);if(!C||e.isWebComponentWrapper){var w;C=(w=cf.get(e))==null?void 0:w[yM7]}return C};
var ZDC=function(e,z){var C;return!((C=e.getData(z))==null||!C.loggingDirectives)},B7=function(e,z){e=e.getData(z);
return Math.floor(Number(e&&e.loggingDirectives&&e.loggingDirectives.visibility&&e.loggingDirectives.visibility.types||""))||1};var ti;ti=function(){};
_.mO=function(){ti.instance||(ti.instance=new ti);return ti.instance};
ti.prototype.setClient=function(e){_.Z_(ro().setClient).bind(ro())(e)};
_.pOY=function(){_.mO();_.Z_(ro().JSC$12894_newScreen).bind(ro())()};
ti.prototype.clear=function(){_.Z_(ro().clear).bind(ro())()};
ti.prototype.reportShown=function(e,z,C,w){_.Z_(ro().reportShown).bind(ro())(e,z,C,w)};
ti.prototype.reportHidden=function(e,z,C,w){return _.Z_(ro().reportHidden).bind(ro())(e,z,C,w)};
var sRh=function(e,z){return _.Z_(ro().JSC$12894_getTrackingParams).bind(ro())(z)},cM8=function(e,z){return _.Z_(ro().JSC$12894_getNearestParentVe).bind(ro())(z)};var gA,eFS;gA=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};
_.nm=function(){gA.instance||(gA.instance=new gA);return gA.instance};
gA.prototype.setClient=function(e){this.client=e};
eFS=function(e,z,C){C=C===void 0?{}:C;_.Z_(function(){var w,K,G,X=((w=_.r(z==null?void 0:z.commandMetadata,_.XV))==null?void 0:w.rootVe)||((K=_.r(z==null?void 0:z.commandMetadata,VkU))==null?void 0:(G=K.screenVisualElement)==null?void 0:G.uiType);if(X){w=_.r(z==null?void 0:z.commandMetadata,LjS);if(w==null?0:w.parentTrackingParams){var J=_.v9(w.parentTrackingParams);if(w.parentCsn)var q=w.parentCsn}else C.clickedVisualElement?J=C.clickedVisualElement:z.clickTrackingParams&&(J=_.v9(z.clickTrackingParams));
a:{w=_.r(z,_.N$);K=_.r(z,J_N);if(w){if(K=nm4(w,"VIDEO")){w={token:K,videoId:w.videoId};break a}}else if(K&&(w=nm4(K,"PLAYLIST"))){w={token:w,playlistId:K.playlistId};break a}w=void 0}C=Object.assign({},{cttAuthInfo:w,parentCsn:q},C);if(_.M("expectation_logging")){var T;C.loggingExpectations=((T=_.r(z==null?void 0:z.commandMetadata,VkU))==null?void 0:T.loggingExpectations)||void 0}_.jk(e,X,J,C)}else _.AX(new _.uh("Error: Trying to create a new screen without a rootVeType",z))})()};
_.jk=function(e,z,C,w){w=w===void 0?{}:w;_.Z_(function(){tUs.includes(z)||(_.AX(new _.uh("createClientScreen() called with a non-page VE",z)),z=83769);w.isHistoryNavigation||(e.forwardHistoryStack=[],e.backHistoryStack.push({rootVe:z,key:w.key||""}));e.graftQueue=[];e.stateChangedQueue=[];w.dataPromises?zF4(e,z,C,w):CJ4(e,z,C,w)})()};
_.wPT=function(e,z,C){C=C===void 0?0:C;_.Z_(function(){z.then(function(w){e.pendingScreenCreation.has(C)&&e.pendingScreenFn&&e.pendingScreenFn();var K=_.Pr(C),G=_.Ip(C);if(K&&G){var X={automatedLogEventSource:3},J;(w==null?0:(J=w.response)==null?0:J.trackingParams)&&dQ(e.client,K,G,_.v9(w.response.trackingParams),!1,X);var q;(w==null?0:(q=w.playerResponse)==null?0:q.trackingParams)&&dQ(e.client,K,G,_.v9(w.playerResponse.trackingParams),!1,X)}})})()};
gA.prototype.graftServerVe=function(e,z,C){var w=this;return _.Z_(function(){var K=_.v9(e);_.yQ(w,K,z,C);return K})()};
_.AMg=function(e,z,C,w){return _.M("enable_client_ve_spec")&&z.clientVeSpec?(z=_.mT(z.clientVeSpec.uiType,void 0,z.clientVeSpec.elementIndex,z.clientVeSpec.clientYoutubeData,void 0,z),_.yQ(e,z,C,w)?z:null):z.trackingParams?e.graftServerVe(z.trackingParams,C,w):null};
_.a5=function(e,z,C,w){return _.Z_(function(){if(!z.veType)return _.cn(new _.uh("Error: Trying to graft a client VE without a veType.")),null;if(z.visibilityTypes){var K=z.visibilityTypes.reduce(function(G,X){return G|X});
K={visibility:{types:String(K)}}}K=_.mT(z.veType,z.visualElement,z.elementIndex,z.clientYouTubeData,void 0,K);return _.yQ(e,K,C,w)?K:null})()};
_.yQ=function(e,z,C,w){w=w===void 0?0:w;return _.Z_(function(){if(e.pendingScreenCreation.has(w))return e.graftQueue.push([z,C]),!0;var K=_.Pr(w),G=C||_.Ip(w);if(K&&G){if(_.M("combine_ve_grafts")){var X=e.cachedVisualElements.get(G.toString());X?X.push(z):(e.cachedRootVisualElements.set(G.toString(),G),e.cachedVisualElements.set(G.toString(),[z]));e.attachTimeout||(e.attachTimeout=_.Dz(_.c5,function(){KYo(e,K)},1200))}else dQ(e.client,K,G,z);
return!0}return!1})()};
_.c7=function(e,z,C){C=C===void 0?0:C;var w=e.recurringGrafts.get(C)||new Map;if(_.M("smarter_ve_dedupping"))for(var K=Array.from(w.keys()),G=0;G<K.length;G++){var X=void 0,J=void 0;var q=z;var T=K[G];T.isClientVe()&&q.isClientVe()?(X=q.getAsJson(),J=T.getAsJson(),q=X.veType!==J.veType||X.elementIndex!==J.elementIndex||X.dataElement!==J.dataElement||q.getLoggingDirectives()!==T.getLoggingDirectives()?!1:!0):q=T.veData.trackingParams!==void 0&&q.veData.trackingParams!==void 0?((J=q.veData)==null?void 0:
J.trackingParams)===((X=T.veData)==null?void 0:X.trackingParams):!1;if(q)return}else if(w.has(z))return;w.set(z,void 0);e.recurringGrafts.set(C,w);_.Pr(C)==="UNDEFINED_CSN"||e.pendingScreenCreation.has(C)||_.yQ(e,z,void 0,C)};
_.Ai=function(e,z,C,w){w=_.Pr(w===void 0?0:w);if(!w)return!1;Mks(e.client,w,z,C);return!0};
_.Zw=function(e,z,C,w){if(!z)return!1;w=_.Pr(w===void 0?0:w);if(!w)return!1;Mks(e.client,w,_.v9(z),C);return!0};
_.Bj=function(e,z){var C=z.getScreenLayer&&z.getScreenLayer();if(z.visualElement)return _.Ai(e,z.visualElement,void 0,C);z=sRh(_.mO(),z);return _.Zw(e,z,void 0,C)};
gA.prototype.clickCommand=function(e,z,C){return _.Zw(this,e.clickTrackingParams,z,C===void 0?0:C)};
gA.prototype.stateChanged=function(e,z,C){this.visualElementStateChanged(_.v9(e),z,C===void 0?0:C)};
gA.prototype.visualElementStateChanged=function(e,z,C){C=C===void 0?0:C;C===0&&this.pendingScreenCreation.has(C)?this.stateChangedQueue.push([e,z]):this.logStateChanged(e,z,C)};
gA.prototype.logStateChanged=function(e,z,C){C=C===void 0?0:C;var w=_.Pr(C);e=e||_.Ip(C);return w&&e?(rig(this.client,w,e,z),!0):!1};
var zF4=function(e,z,C,w){w=w===void 0?{}:w;e.pendingScreenCreation.add(w.layer||0);e.pendingScreenFn=function(){CJ4(e,z,C,w);var X=_.Ip(w.layer);if(X){for(var J=_.b(e.graftQueue),q=J.next();!q.done;q=J.next())q=q.value,_.yQ(e,q[0],q[1]||X,w.layer);X=_.b(e.stateChangedQueue);for(J=X.next();!J.done;J=X.next())J=J.value,e.logStateChanged(J[0],J[1])}};
C||_.Pr(w.layer)||e.pendingScreenFn();if(w.dataPromises)for(var K=_.b(w.dataPromises),G=K.next();!G.done;G=K.next())_.wPT(e,G.value,w.layer);else _.yG(Error("Df"))},CJ4=function(e,z,C,w){w=w===void 0?{}:w;
var K=void 0;w.layer||(w.layer=0);K=w.parentLayer!==void 0?w.parentLayer:w.layer;var G=_.Pr(K);K=_.Ip(K);var X=C||K,J;X&&(w.parentCsn!==void 0?J={clientScreenNonce:w.parentCsn,visualElement:X}:G&&G!=="UNDEFINED_CSN"&&(J={clientScreenNonce:G,visualElement:X}));var q,T=_.j5("EVENT_ID");G==="UNDEFINED_CSN"&&T&&(q={servletData:{serializedServletEventId:T}});_.M("combine_ve_grafts")&&G&&KYo(e,G);_.M("no_client_ve_attach_unless_shown")&&X&&G&&TA8(X,G);try{var Q=_.kCg(e.client,z,J,w.csnToClone,w.cttAuthInfo,
q,w.implicitGestureType,void 0,w.loggingExpectations,w.automatedLogEventSource)}catch(n){_.Zz(n,{rootVeType:z,rootVe:K,parentVisualElement:C,currentCsn:G,parentEl:J,csnToClone:w.csnToClone});_.yG(n);return}_.Li(Q,z,w.layer,w.cttAuthInfo);G&&G!=="UNDEFINED_CSN"&&K&&!rpo(G)&&aw7(e.client,G,K,!0);e.backHistoryStack[e.backHistoryStack.length-1]&&!e.backHistoryStack[e.backHistoryStack.length-1].csn&&(e.backHistoryStack[e.backHistoryStack.length-1].csn=Q||"");_.Pf({clientScreenNonce:Q});_.pOY();var m=_.Ip(w.layer);
G&&G!=="UNDEFINED_CSN"&&m&&_.M("music_web_mark_root_visible")&&_.s6(Q,m);e.pendingScreenCreation.delete(w.layer||0);e.pendingScreenFn=void 0;var a;(a=e.recurringGrafts.get(w.layer))==null||a.forEach(function(n,H){n?_.yQ(e,H,n,w.layer):m&&_.yQ(e,H,m,w.layer)});
oAg(e)},oAg=function(e){for(var z=0;z<e.afterNewScreenOneOffJobs.length;z++){var C=e.afterNewScreenOneOffJobs[z];
try{C()}catch(w){_.yG(w)}}for(z=e.afterNewScreenOneOffJobs.length=0;z<e.afterNewScreenRecurringJobs.length;z++){C=e.afterNewScreenRecurringJobs[z];try{C()}catch(w){_.yG(w)}}},KYo=function(e,z){if(z===void 0)for(var C=nK5(),w=0;w<C.length;w++)C[w]!==void 0&&KYo(e,C[w]);
else e.cachedVisualElements.forEach(function(K,G){(G=e.cachedRootVisualElements.get(G))&&qf7(e.client,z,G,K)}),e.cachedVisualElements.clear(),e.cachedRootVisualElements.clear(),e.attachTimeout=void 0};var pH=function(e){e=e===void 0?{layer:0}:e;this.aC=!1;this.createScreenConfig=e;e={};this.pbG=(e.response=!1,e.playerResponse=!1,e)};
_.U(pH,Sk);pH.prototype.validate=function(e){return!(!e.data||!e.data.response&&!e.data.playerResponse)};
pH.prototype.handle=function(e){var z=_.nm(),C=this.createScreenConfig.layer;e.data.response&&e.data.response.trackingParams&&!this.pbG.response&&(z.graftServerVe(e.data.response.trackingParams,void 0,C),this.pbG.response=!0);e.data.playerResponse&&e.data.playerResponse.trackingParams&&!this.pbG.playerResponse&&(z.graftServerVe(e.data.playerResponse.trackingParams,void 0,C),this.pbG.playerResponse=!0)};var e0=function(){this.hU=_.cj();this.zV=[];this.p0z=0};
e0.prototype.processChunk=function(e){if(e){for(var z=_.b(this.zV),C=z.next();!C.done;C=z.next())C=C.value,C.validate(e)&&(C.handle(e),C.aC=!0);_.hg("np"+this.p0z);this.p0z++}};var Lu8=function(e,z,C){C=C===void 0?{}:C;this.name=e;this.id=Ag.nextSpanId++;this.sessionId=Ag.sessionId;this.attributes=z;this.status="SPAN_STATUS_UNSET";var w;this.startTime=(w=C.startTime)!=null?w:(0,_.as)();this.isActiveSpan=C.active;if(e=Ag.stack[Ag.stack.length-1])this.parentId=e.id,e.children||(e.children=[]),e.children.push(this);e=_.b(Ag.processors);for(z=e.next();!z.done;z=e.next()){z=z.value;try{var K=w=void 0;(K=(w=z).onSpanStart)==null||K.call(w,this)}catch(G){_.AX(G)}}C.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",C.endTime))};
Lu8.prototype.end=function(e,z){e=e===void 0?"SPAN_STATUS_OK":e;this.endTime=z=z===void 0?(0,_.as)():z;this.duration=this.endTime-this.startTime;this.status=e;this.isActiveSpan!==!1&&(Ag.stack[Ag.stack.length-1]===this?Ag.stack.pop():_.AX(Error("Ef`"+String(this.name))));e=_.b(Ag.processors);for(z=e.next();!z.done;z=e.next()){z=z.value;try{var C=void 0,w=void 0;(w=(C=z).onSpanEnd)==null||w.call(C,this)}catch(K){_.AX(K)}}};
Lu8.prototype.addAttributes=function(e){Object.assign(this.attributes,e)};
var hfm={end:function(){},
addAttributes:function(){}},Ag={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},Rfm={rootSpan:function(){return Ag.stack[0]}};var eJ={};var o47=function(e){this.observers=[];this.value=e};
_.Y=o47.prototype;_.Y.subscribe=function(e){var z=this;if(e.idx!=null)throw Error("Gf");e.idx=this.observers.length;this.observers.push(e);try{e(this.value)}catch(C){}return function(){var C=z.observers[z.observers.length-1];z.observers[e.idx]=C;C.idx=e.idx;z.observers.pop()}};
_.Y.update=function(e){this.value=e(this.value);this.notify()};
_.Y.mutate=function(e){e(this.value);this.notify()};
_.Y.set=function(e){this.value=e;this.notify()};
_.Y.notify=function(){for(var e=_.b(this.observers),z=e.next();!z.done;z=e.next()){z=z.value;try{z(this.value)}catch(C){}}};var mbs,GnU,XP4;_.Tx=function(e,z,C,w,K,G,X,J){X=X===void 0?[]:X;J=J===void 0?[]:J;this.buildCommandPayload=e;this.navigate=z;this.handleServiceRequest=C;this.sendAction=w;this.JSC$12943_screenManager=K;this.commandResolverMap=G;this.autoLogResolverAllowlist=X;this.metaCommandClickLoggingDenylist=J;this.pendingCommands=new Set;this.isTracingEnabled=!1;GnU(this)};
mbs=function(e,z,C){var w=[_.pvY,TuT],K=KNo,G=oto,X=_.nm(),J=Y5a;C=C===void 0?[]:C;w=w===void 0?[]:w;_.Tx.instance=new _.Tx(e,z,K,G,X,J,C,w)};
GnU=function(e){if(!e.isTracingEnabled&&ZE("command")){var z=e.resolveCommand;e.resolveCommand=function(C,w){a:{for(K in C)if(Object.prototype.hasOwnProperty.call(C,K)){var K={commandType:K};break a}K={}}return pK("command",K,z.bind(this,C,w))};
e.isTracingEnabled=!0}};
XP4=function(e,z,C){if(!e.commandResolverMap)return!1;var w=uDg(z,e.commandResolverMap);return w?((e.autoLogResolverAllowlist.some(function(K){return!!_.r(z,K)})||(C==null?0:C.forceClickLogging))&&bQY(e,z,C),w instanceof Promise?w.then(function(K){K.resolve(z,C)}):w.resolve(z,C),!0):!1};
_.Tx.prototype.resolveCommand=function(e,z){var C=this,w=Ja4(e);if(XP4(this,e,z))return!0;if(w)return kn6(this,e,z);if(!this.buildCommandPayload)return VkE(e,"Unhandled command by buildCommandPayload"),!1;var K=this.buildCommandPayload(e,z);if(z==null?0:z.commandController)K.commandController=z.commandController;if(K.type===0){if(!this.navigate)return fw1(e,"navigate"),!1;if(!q5T(K.command))return VkE(e,"Page requests need to specify a url"),!1;_.M("logging_avoid_blocking_during_navigation")&&_.EfE().transition("application_navigating");
e=this.navigate(K)||[];OdT(e).then(function(){C.pendingCommands.delete(K.command)});
return!0}if(K.type===1){if(!this.handleServiceRequest)return fw1(e,"handleServiceRequest"),!1;(z==null?0:z.forceClickLogging)&&bQY(this,K.command,z);e=this.handleServiceRequest(K);OdT(e).then(function(){C.pendingCommands.delete(K.command)});
return!0}if(K.type===2){if(!this.sendAction)return fw1(e,"sendAction"),!1;bQY(this,K.command,z);this.sendAction(K);return!0}return!1};
var bQY=function(e,z,C){if((C==null||!C.disableClickTracking)&&e.JSC$12943_screenManager)if(z.clickTrackingParams&&_.M("log_click_with_layer_from_element_in_command_handler")){var w;C=C==null?void 0:(w=C.form)==null?void 0:w.element;e.JSC$12943_screenManager.clickCommand(z,null,C&&C.getScreenLayer&&C.getScreenLayer())}else z.clickTrackingParams?e.JSC$12943_screenManager.clickCommand(z):!_.M("disable_clicked_visual_element_in_command_handler")&&(C==null?0:C.clickedVisualElement)&&_.Ai(e.JSC$12943_screenManager,
C.clickedVisualElement)},Ja4=function(e){var z=!!_.r(e,_.Gj),C;
e=((C=_.r(e,_.bd))==null?void 0:C.signal)==="CLIENT_SIGNAL";return z||e},kn6=function(e,z,C){var w=_.r(z,_.Gj);
if(w)var K=(w==null?void 0:w.commands)||[];else{var G;if(((G=_.r(z,_.bd))==null?void 0:G.signal)==="CLIENT_SIGNAL"){var X;K=((X=_.r(z,_.bd))==null?void 0:X.actions)||[]}}if(K){(w=xO4(e,K))&&bQY(e,z,C);z=_.b(K);for(K=z.next();!K.done;K=z.next()){K=K.value;try{var J=Object.assign({},C);w&&(J.disableClickTracking=!0);e.resolveCommand(K,J)}catch(q){q instanceof Error&&_.yG(q)}}return!0}VkE(z,"Could not handle the meta command");return!1},xO4=function(e,z){return z.every(function(C){return e.metaCommandClickLoggingDenylist.some(function(w){return!!_.r(C,
w)})})},q5T=function(e){var z;
return!((z=_.r(e==null?void 0:e.commandMetadata,_.XV))==null||!z.url)};var zd=function(){Sk.apply(this,arguments)};
_.U(zd,Sk);zd.prototype.validate=function(e){var z,C;return!this.aC&&!!((z=e.data.response)==null?0:(C=z.onResponseReceivedEndpoints)==null?0:C.length)};
zd.prototype.handle=function(e){var z=_.Tx.instance;e=_.b(e.data.response.onResponseReceivedEndpoints);for(var C=e.next();!C.done;C=e.next())z.resolveCommand(C.value)};var TC6,$Oa,l9Y;
TC6=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.oS();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.C3=function(){$Oa||($Oa=new TC6);return $Oa};
l9Y=function(){var e=_.C3();e.miniplayerButtonActivation=!1;e.userActivation=!1;e.playlistWatchPageActivation=!1;e.productDetailsPageActivation=!1;e.miniAppPageActivation=!1;e.playablesDestPageActivation=!1;e.lockupActivation=!1;e.showMiniplayerCommandActivation=!1;e.playlistSuggestionsShelfActivation=!1;e.mediaSessionPipActivation=!1;e.watchPipActivation=!1;e.watchWhileActivation=!1;e.shortsPipActivation=!1;e.companionCanvasActivation=!1};
_.QB6=function(){var e=_.C3(),z=e.mediaSessionPipActivation,C=e.watchPipActivation,w=e.watchWhileActivation,K=e.playlistWatchPageActivation,G=e.lockupActivation,X=e.showMiniplayerCommandActivation,J=e.navigatingAwayFromWatchDeletedVideo,q=e.shortsPipActivation,T=e.playlistSuggestionsShelfActivation,Q=e.productDetailsPageActivation,m=e.miniAppPageActivation,a=e.playablesDestPageActivation,n=e.companionCanvasActivation;return!e.miniplayerButtonActivation&&!K&&!T&&!Q&&!m&&!a&&!G&&!X&&!z&&!C&&!w&&!q&&
!n||J};var APN;_.wt=_.C4("FEwhat_to_watch","/",3854);_.Zz5=_.C4("FEdownloads","/feed/downloads",42352);APN=_.C4("FEmusic_offline","browse/FEmusic_offline",42352);var p4=function(e,z){z=z===void 0?[]:z;var C=C===void 0?[]:C;z=em7.apply(null,[zmL.apply(null,_.s_(z))].concat(_.s_(C)));this.store=oQN(e,void 0,z)};
p4.prototype.getState=function(){return this.store.getState()};
p4.prototype.dispatch=function(e){return this.store.dispatch(e)};
p4.prototype.subscribe=function(e){return this.store.subscribe(e)};
p4.prototype.replaceReducer=function(e){return this.store.replaceReducer(e)};
p4.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.K3=function(e,z,C){var w=z(e.getState());return e.subscribe(function(){var K=z(e.getState());if(K!==w){var G=w;w=K;C(K,G)}})};var RKE;_.Rx=function(e,z,C){return _.Yz({type:"REPLACE_ENTITY",payload:{entityPayload:C,entityType:e,key:z}})};
RKE=function(e){return _.Yz({type:"REPLACE_ENTITIES",payload:e})};
_.d$=function(e,z,C,w){return _.Yz({type:"UPDATE_ENTITY",payload:{entityPayload:C,entityType:e,key:z,mergeOption:w}})};var ZHg=function(e){var z=this;e=e===void 0?[]:e;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;e.forEach(function(C){z.append(C)})};
_.Y=ZHg.prototype;_.Y.getLength=function(){return this.totalLength};
_.Y.append=function(e){var z=this.arrays.length===0?!1:(z=this.arrays[this.arrays.length-1])&&z.buffer===e.buffer&&z.byteOffset+z.length===e.byteOffset;z?(z=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(z.buffer,z.byteOffset,z.length+e.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(e);this.totalLength+=e.length};
_.Y.split=function(e){for(var z=new ZHg,C=new ZHg,w=_.b(this.arrays),K=w.next();!K.done;K=w.next())K=K.value,e>=K.length?(z.append(K),e-=K.length):e?(z.append(new Uint8Array(K.buffer,K.byteOffset,e)),C.append(new Uint8Array(K.buffer,K.byteOffset+e,K.length-e)),e=0):C.append(K);return{headView:z,tailView:C}};
_.Y.isFocused=function(e){return e>=this.arrayPos&&e<this.arrayPos+this.arrays[this.arrayIdx].length};
_.Y.focus=function(e){if(!this.isFocused(e))for(e<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=e&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var mOg=function(e,z){e.focus(z);return e.arrays[e.arrayIdx][z-e.arrayPos]};(function(){var e=function(w){return new Uint8Array(w)},z=function(w){for(var K=new Uint8Array(w.length),G=0;G<w.length;G++)K[G]=w[G];
return K},C=new Uint8Array([1]);
return C.length===1&&C[0]===1?e:z})();
var tk8=Array(1024),BAh=window.TextDecoder?new TextDecoder:void 0,j21=window.TextEncoder?new TextEncoder:void 0;var AiL=function(e){this.arrayView=e;this.pos=0;this.pendingTagAndType=-1},b7=function(e){var z=mOg(e.arrayView,e.pos);
++e.pos;if(z<128)return z;for(var C=z&127,w=1;z>=128;)z=mOg(e.arrayView,e.pos),++e.pos,w*=128,C+=(z&127)*w;return C},p7N=function(e,z){var C=e.pendingTagAndType;
for(e.pendingTagAndType=-1;e.pos+1<=e.arrayView.totalLength;){C<0&&(C=b7(e));var w=C>>3,K=C&7;if(w===z)return!0;if(w>z){e.pendingTagAndType=C;break}C=-1;switch(K){case 0:b7(e);break;case 1:e.pos+=8;break;case 2:w=b7(e);e.pos+=w;break;case 5:e.pos+=4}}return!1};var zKg=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=cih(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},kz=function(e,z){z=e.pos+z;
if(!(e.buf.length>=z)){for(var C=e.buf.length*2;C<z;)C*=2;e.buf=cih(C,e.wasm,e.buf.subarray(0,e.pos));e.view=new DataView(e.buf.buffer,e.buf.byteOffset,e.buf.byteLength)}},JO=function(e,z){if(z>268435455){kz(e,4);
for(var C=z&1073741823,w=0;w<4;w++)e.view.setUint8(e.pos,C&127|128),C>>=7,e.pos+=1;z=Math.floor(z/268435456)}for(kz(e,4);z>127;)e.view.setUint8(e.pos,z&127|128),z>>=7,e.pos+=1;e.view.setUint8(e.pos,z);e.pos+=1};for(var Cm5={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},eKs={},a96=_.b(Object.entries(Cm5)),nAo=a96.next();!nAo.done;nAo=a96.next()){var MZT=_.b(nAo.value),raS=MZT.next().value,HQU=MZT.next().value,UO4=raS,vAa=HQU;vAa&&(eKs[vAa]=UO4)};var KS8=function(e,z){e=e===void 0?{}:e;switch(z.type){case "ENTITY_LOADED":return z.payload.reduce(function(w,K){var G,X=(G=K.options)==null?void 0:G.persistenceOption;if(X&&X!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&X!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return w;if(!K.entityKey)return _.yG(Error("If")),w;if(K.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!K.payload)return K=new _.uh("REPLACE entity mutation is missing a payload",{entityKey:K.entityKey}),_.yG(K),w;var J=(0,_.de.getAnyKey)(K.payload);
return Gd1(w,J,K.entityKey,K.payload[J])}if(K.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{K=K.entityKey;try{var q=_.Xn(K).entityType;J=Gd1(w,q,K);break a}catch(m){if(m instanceof Error){K=new _.uh("Failed to deserialize entity key",{entityKey:K,originalMessage:m.message});_.yG(K);J=w;break a}throw m;}J=void 0}return J}if(K.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!K.payload)return K=new _.uh("UPDATE entity mutation is missing a payload",{entityKey:K.entityKey}),_.yG(K),w;J=(0,_.de.getAnyKey)(K.payload);
var T,Q;return Yss(w,J,K.entityKey,K.payload[J],(T=K.fieldMask)==null?void 0:(Q=T.mergeOptions)==null?void 0:Q.repeatedFieldsMergeOption)}return w},e);
case "REPLACE_ENTITY":var C=z.payload;return Gd1(e,C.entityType,C.key,C.entityPayload);case "REPLACE_ENTITIES":return Object.keys(z.payload).reduce(function(w,K){var G=z.payload[K];return Object.keys(G).reduce(function(X,J){return Gd1(X,K,J,G[J])},w)},e);
case "UPDATE_ENTITY":return C=z.payload,Yss(e,C.entityType,C.key,C.entityPayload,C.mergeOption);default:return e}};var b3s;var I9L=!1,ol,Gd,Yb,bm,Xz,WYs=function(e){_.Sn.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!I9L){var z,C=new Uint8Array(256),w=new Uint8Array(256);var K=1;for(z=0;z<256;z++)C[K]=z,w[z]=K,K^=K<<1^(K>>7&&283);ol=new Uint8Array(256);Gd=Tq(256);Yb=Tq(256);bm=Tq(256);Xz=Tq(256);for(var G=0;G<256;G++){K=G?w[255^C[G]]:0;K^=K<<1^K<<2^K<<3^K<<4;K=K&255^K>>>8^99;ol[G]=K;z=K<<1^(K>>7&&283);var X=z^K;Gd[G]=z<<24|K<<16|K<<8|X;Yb[G]=X<<24|Gd[G]>>>8;bm[G]=K<<24|Yb[G]>>>
8;Xz[G]=K<<24|bm[G]>>>8}I9L=!0}K=Tq(44);for(C=0;C<4;C++)K[C]=e[4*C]<<24|e[4*C+1]<<16|e[4*C+2]<<8|e[4*C+3];for(w=1;C<44;C++)e=K[C-1],C%4||(e=(ol[e>>16&255]^w)<<24|ol[e>>8&255]<<16|ol[e&255]<<8|ol[e>>>24],w=w<<1^(w>>7&&283)),K[C]=K[C-4]^e;this.key=K};
_.U(WYs,_.Sn);
WYs.prototype.encrypt=function(e){var z=e.length;e=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+z));for(var C=this.cipherBlock,w=0;w<z&&this.blockOffset<16;)e[w++]^=C[this.blockOffset++];for(var K=z-(z-w)%16;w<K;)PJC(this),e[w++]^=C[0],e[w++]^=C[1],e[w++]^=C[2],e[w++]^=C[3],e[w++]^=C[4],e[w++]^=C[5],e[w++]^=C[6],e[w++]^=C[7],e[w++]^=C[8],e[w++]^=C[9],e[w++]^=C[10],e[w++]^=C[11],e[w++]^=C[12],e[w++]^=C[13],e[w++]^=C[14],e[w++]^=C[15];if(w<z)for(PJC(this),this.blockOffset=0;w<z;)e[w++]^=
C[this.blockOffset++];return e};
var PJC=function(e){for(var z=e.key,C=e.counter[0]^z[0],w=e.counter[1]^z[1],K=e.counter[2]^z[2],G=e.counter[3]^z[3],X=3;X>=0&&!(e.counter[X]=-~e.counter[X]);X--);for(var J,q,T=4;T<40;)X=Gd[C>>>24]^Yb[w>>16&255]^bm[K>>8&255]^Xz[G&255]^z[T++],J=Gd[w>>>24]^Yb[K>>16&255]^bm[G>>8&255]^Xz[C&255]^z[T++],q=Gd[K>>>24]^Yb[G>>16&255]^bm[C>>8&255]^Xz[w&255]^z[T++],G=Gd[G>>>24]^Yb[C>>16&255]^bm[w>>8&255]^Xz[K&255]^z[T++],C=X,w=J,K=q;e=e.cipherBlock;X=z[40];e[0]=ol[C>>>24]^X>>>24;e[1]=ol[w>>16&255]^X>>16&255;e[2]=
ol[K>>8&255]^X>>8&255;e[3]=ol[G&255]^X&255;X=z[41];e[4]=ol[w>>>24]^X>>>24;e[5]=ol[K>>16&255]^X>>16&255;e[6]=ol[G>>8&255]^X>>8&255;e[7]=ol[C&255]^X&255;X=z[42];e[8]=ol[K>>>24]^X>>>24;e[9]=ol[G>>16&255]^X>>16&255;e[10]=ol[C>>8&255]^X>>8&255;e[11]=ol[w&255]^X&255;X=z[43];e[12]=ol[G>>>24]^X>>>24;e[13]=ol[C>>16&255]^X>>16&255;e[14]=ol[w>>8&255]^X>>8&255;e[15]=ol[K&255]^X&255};var RFC=!1;(function(){var e=function(w){return new Uint8Array(w)},z=function(w){for(var K=new Uint8Array(w.length),G=0;G<w.length;G++)K[G]=w[G];
return K},C=new Uint8Array([1]);
return C.length===1&&C[0]===1?e:z})();
var Jl;var OQh=function(e){a:{if(!RFC&&!xj){if(Jl){var z=Jl;break a}Jl=(z=window.crypto)==null?void 0:z.subtle;var C,w,K;if(((C=Jl)==null?0:C.importKey)&&((w=Jl)==null?0:w.sign)&&((K=Jl)==null?0:K.encrypt)){z=Jl;break a}Jl=void 0}z=void 0}z&&(this.nativeEncryptor=new LYL(e,z));this.encryptorPolyfill=new hFa(e)};
OQh.prototype.encrypt=function(e,z){var C=this,w;return _.k(function(K){switch(K.nextAddress){case 1:if(!C.nativeEncryptor){K.jumpTo(2);break}_.Iv(K,3);return K.yield(C.nativeEncryptor.encrypt(e,z),5);case 5:return K.return(K.yieldResult);case 3:w=_.O_(K),_.AX(w),RFC=!0,C.nativeEncryptor=void 0;case 2:return K.return(C.encryptorPolyfill.encrypt(e,z))}})};
OQh.prototype.decrypt=function(e,z){return this.encrypt(e,z)};
var LYL=function(e,z){this.JSC$13016_aesKey=e;this.subtleCrypto=z};
LYL.prototype.encrypt=function(e,z){var C=this,w;return _.k(function(K){if(K.nextAddress==1)return _.Iv(K,2),K.yield(EAh(C,e,z),4);if(K.nextAddress!=2)return K.return(K.yieldResult);w=_.O_(K);_.AX(w);RFC=!0;throw w;})};
var EAh=function(e,z,C){var w,K;return _.k(function(G){switch(G.nextAddress){case 1:if(e.cryptoKey){G.jumpTo(2);break}return G.yield(e.subtleCrypto.importKey("raw",e.JSC$13016_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.cryptoKey=G.yieldResult;case 2:return w={name:"AES-CTR",counter:C,length:128},G.yield(e.subtleCrypto.encrypt(w,e.cryptoKey,z),4);case 4:return K=G.yieldResult,G.return(new Uint8Array(K))}})},hFa=function(e){this.JSC$13019_aesKey=e};
hFa.prototype.encrypt=function(e,z){this.encryptor||(this.encryptor=new WYs(this.JSC$13019_aesKey));for(var C=this.encryptor,w=0;w<4;w++)C.counter[w]=z[w*4]<<24|z[w*4+1]<<16|z[w*4+2]<<8|z[w*4+3];C.blockOffset=16;return this.encryptor.encrypt(e)};
hFa.prototype.decrypt=function(e,z){return this.encrypt(e,z)};var FYh={},kdh=m0("yt-idb-pref-storage",{objectStores:(FYh.prefs={addedAtVersion:1},FYh),shared:!1,upgrade:function(e,z){z(1)&&KC(wm(e,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.kb=function(e){this.token=e};
_.kb.getInstance=function(){return _.k(function(e){return e.return(new Promise(function(z){_.QZ().then(function(C){C?(_.kb.instance||(_.kb.instance=new _.kb(C)),z(_.kb.instance)):z(void 0)})}))})};
_.kb.prototype.get=function(e){var z=this,C,w,K;return _.k(function(G){if(G.nextAddress==1)return G.yield(qsh(z.token),2);if(G.nextAddress!=3)return C=G.yieldResult,G.yield(C.get("prefs",e),3);w=G.yieldResult;if(!w)return G.return();K=(0,_.as)();return w.expirationTimestampMs<=K?G.return():G.return(w.value)})};
_.kb.prototype.set=function(e,z,C){C=C===void 0?31536E3:C;var w=this,K,G,X;return _.k(function(J){if(J.nextAddress==1)return K=(0,_.as)(),G={key:e,value:z,expirationTimestampMs:K+C*1E3},J.yield(qsh(w.token),2);X=J.yieldResult;return J.yield(X.put("prefs",G),0)})};
_.kb.prototype.remove=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(qsh(z.token),2);C=w.yieldResult;return w.yield(C.delete("prefs",e),0)})};var q2={},VZ4=(q2.INVALID_ENCODER_VERSION="Invalid encoder version",q2.KEY_CREATION_FAILED="Failed to create encoder key",q2.UNKNOWN_DECODE_ERROR="Failed to decode PES data",q2.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",q2.WRONG_DATA_TYPE="Encoder cannot process the data type",q2),$z=function(e,z){z=z===void 0?{}:z;_.uh.call(this,VZ4[e],Object.assign({},{name:"PESEncoderError",type:e},z));this.type=e;this.level="WARNING";Object.setPrototypeOf(this,$z.prototype)};
_.U($z,_.uh);var xb=function(){};
xb.prototype.encode=function(e,z){try{return this.encodeImpl(e,z)}catch(C){lMh(C,Ttk)}};
xb.prototype.decode=function(e,z){try{return this.decodeImpl(e,z)}catch(C){lMh(C,$2k)}};
var f94=function(e,z,C){var w;return _.k(function(K){if(K.nextAddress==1)return _.Iv(K,2),K.yield(e.decodeAsyncImpl(z,C),4);if(K.nextAddress!=2)return K.return(K.yieldResult);w=_.O_(K);lMh(w,$2k);_.E_(K)})};
xb.prototype.decodeAsyncImpl=function(e,z){return Promise.resolve(this.decodeImpl(e,z))};var Td=function(e,z){this.aesEncryptor=e;this.aesEncryptorAsync=z};
_.U(Td,xb);Td.prototype.encodeImpl=function(e,z){z=QlE(z);e=(new TextEncoder).encode(JSON.stringify(e));return this.aesEncryptor.encrypt(e,z)};
Td.prototype.decodeImpl=function(e,z){if(!(e instanceof Uint8Array))throw x2E(1);var C=new TextDecoder;z=QlE(z);e=this.aesEncryptor.decrypt(e,z);return JSON.parse(C.decode(e))};
Td.prototype.decodeAsyncImpl=function(e,z){var C=this,w,K,G;return _.k(function(X){if(X.nextAddress==1){if(!(e instanceof Uint8Array))throw x2E(1);w=new TextDecoder;K=QlE(z);return X.yield(C.aesEncryptorAsync.decrypt(e,K),2)}G=X.yieldResult;return X.return(JSON.parse(w.decode(G)))})};var m25={accountLinkStatusEntity:UBX,booleanEntity:Apa,buttonEntity:BnL,captionTrack:LFY,channelHandle:vPa,chipEntity:ak6,commerceAcquisitionClientPayloadEntity:QwY,commerceCartListEntity:mdU,compositeSourceEntity:t0c,multiviewStagingEntity:gbS,contextNoteFeedEntityPayload:uxh,contextNoteUserRatingEntityPayload:dnc,continuationTokenEntity:XcC,downloadQualityPickerEntity:ZHX,downloadsPageRefreshTokenEntity:eKC,downloadsPageViewConfigurationEntity:m2Y,downloadStatusEntity:p7L,dismissState:nEU,sfvAudioItemCurrentlyPlayingEntity:Juo,
emojiFountainDataEntity:iBc,emojiCustomizationSetEntity:DCs,fakeChannel:egT,fakePlaylist:zgL,fakePlaylistEntryCollection:CKS,fakeVideo:KWS,fakeVideoDescription:omC,featuredProductsEntity:uzo,flowStateEntity:nms,iconBadgeEntity:a56,interstitialInteractionStateEntity:DBY,likeButtonAnimationEntity:aMS,liveChatPollStateEntity:yh4,dataFreshnessEntity:uqg,liveViewerLeaderboardChatEntryPointStateEntity:BXg,liveViewerLeaderboardPointsEntity:tfY,liveReactionsDataEntity:Nn4,logoEntity:uSg,macroMarkerEntity:nbo,
mainDownloadsLibraryEntity:zKX,mainDownloadsListEntity:CmY,mainPlaylistDownloadStateEntity:KST,mainPlaylistEntity:Jlh,mainPlaylistVideoEntity:kdS,mainVideoDownloadStateEntity:obo,mainVideoEntity:$24,markersEngagementPanelSyncEntity:M0T,markersVisibilityOverrideEntity:rlL,musicAlbumReleaseDetail:pc6,musicAlbumReleaseDownloadMetadataEntity:jlg,musicAlbumRelease:Z34,musicAlbumReleaseUserDetail:eO6,musicArtistDetail:Cza,musicArtist:zOU,musicArtistUserDetail:whS,musicDownloadsLibraryEntity:yl4,musicLibraryEdit:KF6,
musicLibraryStatusEntity:oqT,musicPlaylist:GrT,musicPlaylistDownloadMetadataEntity:cla,musicShare:bET,musicTrackDetail:JYX,musicTrackDownloadMetadataEntity:Ala,musicTrack:Xhc,musicTrackUserDetail:kra,offlineOrchestrationActionWrapperEntity:hOg,offlineVideoPolicy:OE6,offlineVideoStreams:Eqs,offlineabilityEntity:Gda,orchestrationWebSamplingEntity:YsC,pageHeaderEntity:Ly4,pdpStateEntity:nXh,pinnedProductEntity:d2s,playbackData:FFY,playerStateEntity:H3h,quantityIncrementerEntity:MGc,refresh:Vf4,saveToPlaylistListEntity:hJg,
selectedChipIndexEntityPayload:U2Y,settingEntity:pks,stringEntity:Zrc,suggestedFeedbackChipStateEntity:vb4,transfer:fST,trendingOfferEntity:D2a,videoDownloadContextEntity:S2X,videoOverviewAsyncDataEntity:gvU,videoPlaybackPositionEntity:j0o,votingEntity:Fys,ytMainChannelEntity:lMS,youchatPendingResponseEntity:IML,ytMainDownloadedVideoEntity:b3C,ytMainVideoEntity:QlU};var S5L,dOa,Mq,IMN,WSm,NCg,BCT,sBo,iQL;S5L=function(e,z){this.JSC$13038_wrapped=e;this.JSC$13038_encoderRegistry=z;this.changedKeys={}};
dOa=function(e,z){return umg(e.JSC$13038_encoderRegistry,z.version).decode(z.data,z.key)};
_.DOY=function(e,z,C){return e.JSC$13038_wrapped.objectStore("EntityStore").get(z).then(function(w){if(w){if(C&&w.entityType!==C)throw Error("Jf");return dOa(e,w)}})};
Mq=function(e,z,C){return C?(C=C.map(function(w){return _.DOY(e,w,z)}),zT.all(C)):e.JSC$13038_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(z)).then(function(w){return w.map(function(K){return dOa(e,K)})})};
_.vbk=function(e,z,C){var w=wcm(z),K=umg(e.JSC$13038_encoderRegistry,1),G=Object.assign({},z);return e.JSC$13038_wrapped.objectStore("EntityStore").get(w).then(function(X){if(X){if(X.entityType!==C)throw Error("Jf");G.entityMetadata||(X=dOa(e,X),G.entityMetadata=X.entityMetadata)}}).then(function(){var X={key:w,
entityType:C,data:K.encode(G,w),version:1};return zT.all([e.JSC$13038_wrapped.objectStore("EntityStore").put(X),iQL(e,G,C)])}).then(function(){NCg(e,w,C);
return w})};
IMN=function(e,z){var C=_.Xn(z).entityType;return zT.all([e.JSC$13038_wrapped.objectStore("EntityStore").delete(z),sBo(e,z)]).then(function(){NCg(e,z,C)})};
WSm=function(e,z,C,w){var K=umg(e.JSC$13038_encoderRegistry,1);return _.DOY(e,z,w).then(function(G){if(G){G=s2E(G,C);var X={key:z,entityType:w,data:K.encode(G,z),version:1};return zT.all([e.JSC$13038_wrapped.objectStore("EntityStore").put(X),iQL(e,G,w)])}}).then(function(){NCg(e,z,w);
return z})};
NCg=function(e,z,C){var w=e.changedKeys[C];w||(w=new Set,e.changedKeys[C]=w);w.add(z)};
BCT=function(e,z,C){var w=wcm(z);C=aMh(C);if(!C)return zT.resolve([]);C=new C(z);e=e.JSC$13038_wrapped.objectStore("EntityAssociationStore");z=[];C=_.b(C.getAssociations());for(var K=C.next();!K.done;K=C.next())z.push(e.put({parentEntityKey:w,childEntityKey:K.value}));return zT.all(z).then(function(G){return G.map(function(X){return X[1]})})};
sBo=function(e,z){return e.JSC$13038_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(z))};
iQL=function(e,z,C){var w=wcm(z);return sBo(e,w).then(function(){return BCT(e,z,C)})};var tZC=function(){};
_.U(tZC,xb);tZC.prototype.encodeImpl=function(e){return e};
tZC.prototype.decodeImpl=function(e){if(e instanceof Uint8Array)throw x2E(0);return e};var rlN=function(){this.cacheMap={};this.cacheMap[0]=new tZC;if(!_.M("aes_pes_encoder_killswitch")){var e=this.cacheMap;try{var z=_.f0();var C=QlE(z);var w=new Td(new hFa(C),new OQh(C))}catch(K){throw e=K instanceof Error?new $z("KEY_CREATION_FAILED",{originalMessage:K.message}):new $z("KEY_CREATION_FAILED"),_.yG(e),e;}e[1]=w}},umg=function(e,z){z=z===void 0?0:z;
e=e.cacheMap[z];if(!e)throw z=new $z("INVALID_ENCODER_VERSION",{encoderVersion:z}),_.yG(z),z;return e};var Q2=function(e,z){_.Sn.call(this);this.token=e;this.JSC$13052_encoderRegistry=z;this.observers=[];e=new _.wL.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.f0());e.onmessage=this.JSC$13052_handleMessage.bind(this);this.channel=e};
_.U(Q2,_.Sn);_.au=function(e,z,C){var w,K,G,X;return _.k(function(J){if(J.nextAddress==1)return J.yield(Jlm(e.token),2);if(J.nextAddress!=3)return w=J.yieldResult,J.yield(_.Jf(w,["EntityStore","EntityAssociationStore"],z,function(q){K=new S5L(q,e.JSC$13052_encoderRegistry);return C(K)}),3);
G=J.yieldResult;K&&(X=K.changedKeys,Object.keys(X).length>0&&(e.channel.postMessage(X),gAY(e,X)));return J.return(G)})};
Q2.prototype.observe=function(e){var z=this;this.observers.push(e);return function(){var C=z.observers.indexOf(e);C>=0&&z.observers.splice(C,1)}};
var mPN=function(e){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(_.au(e,{mode:"readonly",enableRetries:!0},function(w){return w.JSC$13038_wrapped.objectStore("EntityStore").getAll()}),2);
z=C.yieldResult;return C.return(Promise.all(z.filter(function(w){return!!w}).map(function(w){var K,G;
return _.k(function(X){if(X.nextAddress==1){K=w.key;G=w.entityType;var J=X.yield;var q=f94(umg(e.JSC$13052_encoderRegistry,w.version),w.data,w.key);return J.call(X,q,2)}return X.return({key:K,entityType:G,data:X.yieldResult})})})))})};
Q2.prototype.JSC$13052_handleMessage=function(e){gAY(this,e.data)};
var gAY=function(e,z){e=_.b(e.observers);for(var C=e.next();!C.done;C=e.next())C=C.value,C(z)};
Q2.prototype.disposeInternal=function(){this.channel.close()};
var nbg;var $b,yaa,gbh;$b={};_.jB4=($b.mainVideoEntity="mainVideoEntityActionMetadata",$b.mainPlaylistEntity="mainPlaylistEntityActionMetadata",$b.musicTrack="musicTrackEntityActionMetadata",$b.musicPlaylist="musicPlaylistEntityActionMetadata",$b);yaa=new _.Mt("DOWNLOADS_ENTITY_TYPE_MAP");_.Ru=_.qq("","downloadsPageViewConfigurationEntity");gbh=_.qq("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.ISN=_.qq("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.qq("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.qq("SMART_DOWNLOADS_ENABLED","settingEntity");_.qq("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var O3s=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var d24=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var cag={isLeaderTab:!0};var TXs={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var lm=window,sk=lm.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",xwN=lm.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||BH,mwL=lm.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Ml,xlC=lm.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||qAg,JS6=lm.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||UKo,qMs=lm.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||LTX;var qWh;y2({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 hJo=aC1(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(e){return e}}}),V77=aC1(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(e){return e}}}),HxL=new Map;var EVg=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],P9h;var AaL=function(e){return _.Yz({type:"SET_EPHEMERAL_ACTION",payload:e})};var ZQg={ephemeralAction:null};var pPa=E8({ephemeralAction:function(e,z){e=e===void 0?ZQg.ephemeralAction:e;switch(z.type){case "SET_EPHEMERAL_ACTION":return z.payload;default:return e}}});var e5h=function(e){return _.Yz({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:e})};var z5L={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var C_T={sharedUi:z5L,a11y:ZQg,entities:{}},oEk={sharedUi:function(e,z){e=e===void 0?z5L:e;switch(z.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},e,{animatedThumbnailEnabled:z.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},e,{inlinePreviewEnabled:z.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},e,{currentPageType:z.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},e,{currentPageSubType:z.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},e,{persistentPanelVisible:z.payload});default:return e}},
a11y:pPa,entities:obg};var dwo={playlistId:"",inviteLinkURL:""};var wSS={continuationCommand:{}};var Au7=E8({continuationCommand:function(e,z){e=e===void 0?wSS.continuationCommand:e;switch(z.type){case "SET_CONTINUATION_COMMAND":return z.payload.continuationCommand;default:return e}}});var ixL={currentFormId:"",commandsMap:{}};var Zx1=E8({isLeaderTab:function(e,z){e=e===void 0?cag.isLeaderTab:e;switch(z.type){case "SET_IS_LEADER_TAB":var C,w;return(w=z==null?void 0:(C=z.payload)==null?void 0:C.isLeaderTab)!=null?w:e;default:return e}}});var oDX;_.KoS=function(e){return _.Yz({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:e}})};
oDX=function(e){return _.Yz({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:e}})};var QJ={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var KyL=E8({isDesktopSmallWidth:function(e,z){e=e===void 0?QJ.isDesktopSmallWidth:e;switch(z.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return z.payload.isDesktopSmallWidth;default:return e}},
isShortsActive:function(e,z){e=e===void 0?QJ.isShortsActive:e;switch(z.type){case "SET_IS_SHORTS_ACTIVE":return z.payload.isShortsActive;default:return e}},
isWatchWhileMode:function(e,z){e=e===void 0?QJ.isWatchWhileMode:e;switch(z.type){case "SET_IS_WATCH_WHILE_MODE":return z.payload.isWatchWhileMode;default:return e}},
playerState:function(e,z){e=e===void 0?QJ.playerState:e;switch(z.type){case "SET_PLAYER_STATE":return z.payload.playerState;default:return e}},
isFullscreen:function(e,z){e=e===void 0?QJ.isFullscreen:e;switch(z.type){case "SET_IS_FULLSCREEN":return z.payload.isFullscreen;default:return e}},
isSmallScreenSqueezeback:function(e,z){e=e===void 0?QJ.isSmallScreenSqueezeback:e;switch(z.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return z.payload.isSmallScreenSqueezeback;default:return e}},
isShortsPipActive:function(e,z){e=e===void 0?QJ.isShortsPipActive:e;switch(z.type){case "SET_IS_SHORTS_PIP_ACTIVE":return z.payload.isShortsPipActive;default:return e}},
isPlaybackStarted:function(e,z){e=e===void 0?QJ.isPlaybackStarted:e;switch(z.type){case "SET_IS_PLAYBACK_STARTED":return z.payload.isPlaybackStarted;default:return e}}});var s6N={currentMode:"canvas-hidden"};var YZ8=function(){return function(e){return function(z){var C=e(z);_.eA(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[z],!0);return C}}};var GSU,dco;GSU=new _.x5;_.qK=new _.Mt("WATCH_PLAYER_PROMISE_TOKEN");_.Y$h=new _.x5;_.bac=new _.Mt("SHORTS_PLAYER_PROMISE_TOKEN");dco=new _.Mt("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var bBg=function(){return function(e){return function(z){z.type==="ENTITY_LOADED"&&_.lh().resolve(_.qK).then(function(C){var w;(w=C.dispatchReduxAction)==null||w.call(C,z)});
return e(z)}}};var XSs={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var pk4=E8({additionalContext:function(e,z){e=e===void 0?XSs.additionalContext:e;switch(z.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var C;return(C=z.payload)!=null?C:"";default:return e}},
impersonatedChannelUrl:function(e,z){e=e===void 0?XSs.impersonatedChannelUrl:e;switch(z.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var C;return(C=z.payload)!=null?C:"";default:return e}},
selectedVideoIds:function(e,z){e=e===void 0?XSs.selectedVideoIds:e;switch(z.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var C={};return Object.assign({},e,(C[z.payload]=!0,C));case "VIDEO_UNSELECTED":return z=z.payload,e=Object.assign({},e),delete e[z],e;default:return e}}});var JFa={parentClickTrackingParams:""};var eVh=E8({parentClickTrackingParams:function(e,z){e=e===void 0?JFa.parentClickTrackingParams:e;switch(z.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return z.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return e}}});var kSa=function(e){return _.Yz({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:e})},q$L=function(e){return _.Yz({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:e})};var xja={stepStates:{}};var zV5=E8({stepStates:function(e,z){e=e===void 0?xja.stepStates:e;switch(z.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var C=e,w=z.payload,K,G,X;e={};z={selectionStates:Object.assign({},(X=(K=C[w.stepId])==null?void 0:K.selectionStates)!=null?X:{},(e[w.token]={isSelected:w.isSelected},e)),userQuery:(G=C[w.stepId])==null?void 0:G.userQuery};K={};return Object.assign({},C,(K[w.stepId]=z,K));case "TALK_TO_RECS_UPDATE_USER_QUERY":return K=e,G=z.payload,X=
{selectionStates:Object.assign({},(w=(C=K[G.stepId])==null?void 0:C.selectionStates)!=null?w:{}),userQuery:{userQuery:G.userQuery,token:G.userQueryToken}},C={},Object.assign({},K,(C[G.stepId]=X,C));default:return e}}});var T_h,$ja,Q_T;T_h=function(e){return _.Yz({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:e})};
$ja=function(e){return _.Yz({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:e})};
_.uH=function(e){return _.Yz({type:"SET_CURRENT_PAGE_TYPE",payload:e})};
_.lqg=function(e){return _.Yz({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:e})};
Q_T=function(e){return _.Yz({type:"SET_CHIP_BAR_IS_STICKY",payload:e})};var tws={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"};_.mjg=function(e){return _.Yz({type:"SET_PLAYER_STATE",payload:{playerState:e}})};var mS={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:j6g(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var C28=E8({isTheaterMode:function(e,z){e=e===void 0?j6g():e;switch(z.type){case "SET_IS_THEATER_MODE":return z.payload.isTheaterMode;default:return e}},
isWatchActive:function(e,z){e=e===void 0?mS.isWatchActive:e;switch(z.type){case "SET_IS_WATCH_ACTIVE":return z.payload.isWatchActive;default:return e}},
isLearningJourneyActive:function(e,z){e=e===void 0?mS.isLearningJourneyActive:e;switch(z.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return z.payload.isLearningJourneyActive;default:return e}},
isWatchFullscreen:function(e,z){e=e===void 0?mS.isWatchFullscreen:e;switch(z.type){case "SET_IS_WATCH_FULLSCREEN":return z.payload.isWatchFullscreen;default:return e}},
isWatchNarrowWidth:function(e,z){e=e===void 0?mS.isWatchNarrowWidth:e;switch(z.type){case "SET_IS_WATCH_NARROW_WIDTH":return z.payload.isWatchNarrowWidth;default:return e}},
isSwatcherooActive:function(e,z){e=e===void 0?mS.isSwatcherooActive:e;switch(z.type){case "SET_IS_SWATCHEROO_ACTIVE":return z.payload.isSwatcherooActive;default:return e}},
isWatchRetroMode:function(e,z){e=e===void 0?mS.isWatchRetroMode:e;switch(z.type){case "SET_IS_WATCH_RETRO_MODE":return z.payload.isWatchRetroMode;default:return e}},
isLiveChatCollapsed:function(e,z){e=e===void 0?mS.isLiveChatCollapsed:e;switch(z.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return z.payload.isLiveChatCollapsed;default:return e}},
openEngagementPanels:function(e,z){e=e===void 0?mS.openEngagementPanels:e;var C=[].concat(_.s_(e));switch(z.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return C.push(z.payload.panelToAdd),C;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return C.splice(C.indexOf(z.payload.panelToRemove),1),C;default:return e}},
playerState:function(e,z){e=e===void 0?mS.playerState:e;switch(z.type){case "SET_PLAYER_STATE":return z.payload.playerState;default:return e}},
watchScrollTop:function(e,z){e=e===void 0?mS.watchScrollTop:e;switch(z.type){case "SET_WATCH_SCROLL_TOP":return z.payload.watchScrollTop;default:return e}},
watchWindowSize:function(e,z){e=e===void 0?mS.watchWindowSize:e;switch(z.type){case "SET_WATCH_WINDOW_SIZE":return z.payload.watchWindowSize;default:return e}}});var aqL={surveyFeedbackData:{feedbackTokens:[]}};var w$g=E8({surveyFeedbackData:function(e,z){e=e===void 0?aqL.surveyFeedbackData:e;switch(z.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return z.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},e,z.payload);default:return e}}});var yuk={};var J5g=void 0;_.M("web_enable_redux_store_on_demand")||(J5g=X$N());var nDa=function(e,z,C){var w=this;this.listId=e;this.JSC$13196_updateCallback=z;this.isOfflineVideoCallback=C;_.eB().subscribe(function(){w.handleUpdate()})};
nDa.prototype.getPlaylistData=function(){var e=_.eB().getState().entities;if(this.listId&&this.listId!=="PPSV"){var z=whh(e,this.listId,!0),C=_.qq(this.listId,"mainPlaylistEntity"),w,K;e=e==null?void 0:(w=e.mainPlaylistEntity)==null?void 0:(K=w[C])==null?void 0:K.title;return kAL(z,e,this.listId)}z=_.D21(OEL(e));e=_.D21(_.L4(e));e=z.concat(e);return kAL(e)};
nDa.prototype.getPlaylistId=function(){return this.listId};
nDa.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13196_updateCallback(this.listId,this.getPlaylistData(),{})};var al=function(e,z,C,w){w=w===void 0?[]:w;this.JSC$13199_playlistNetworkManager=e;this.listId=z;this.JSC$13199_updateCallback=C;this.videoIds=w;this.pendingUpdates=[];this.currentIndex=0};
al.prototype.JSC$13199_setCurrentIndex=function(e){this.currentIndex=e};
al.prototype.setListId=function(e){this.listId=e};
var MRg=function(e,z){e.currentCreateRequest&&e.currentCreateRequest.cancel(z);e.currentUpdateRequest&&e.currentUpdateRequest.cancel(z);e.currentRefreshRequest&&e.currentRefreshRequest.cancel(z)};
al.prototype.delete=function(){MRg(this,"PROXY DELETED")};
al.prototype.addVideos=function(e,z,C){var w=this;C!==void 0?this.videoIds.splice.apply(this.videoIds,[C,0].concat(_.s_(e))):this.videoIds.push.apply(this.videoIds,_.s_(e));this.listId||this.currentCreateRequest?(e.forEach(function(K,G){K={addedVideoId:K,action:"ACTION_ADD_VIDEO"};C&&(K.addedVideoPosition=C+G);w.pendingUpdates.push(K)}),n3(this)):rFg(this,z.onCreateListCommand)};
var Hao=function(e,z,C,w,K){u4g(e.videoIds,z,C);z>e.currentIndex&&C<=e.currentIndex?e.JSC$13199_setCurrentIndex(e.currentIndex+1):z===e.currentIndex?e.JSC$13199_setCurrentIndex(C):z<e.currentIndex&&C>=e.currentIndex&&e.JSC$13199_setCurrentIndex(e.currentIndex-1);e.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:w,movedSetVideoIdPredecessor:K});n3(e)},rFg=function(e,z){MRg(e,"OBSOLETE");
e.currentCreateRequest=UjU(e.JSC$13199_playlistNetworkManager,z,e.videoIds);_.gB(e.currentCreateRequest,function(){e.currentCreateRequest=void 0}).then(function(C){e.setListId(C.playlistId);
e.pendingUpdates.length>0?n3(e):vDT(e)})},n3=function(e){if(e.pendingUpdates.length!==0&&(e.currentRefreshRequest&&e.currentRefreshRequest.cancel("OBSOLETE"),!e.currentUpdateRequest&&!e.currentCreateRequest)){var z=e.pendingUpdates.splice(0,e.pendingUpdates.length);
e.currentUpdateRequest=e.JSC$13199_playlistNetworkManager.updatePlaylist(e.listId,z);_.gB(e.currentUpdateRequest,function(){e.currentUpdateRequest=void 0}).then(function(){e.pendingUpdates.length>0?n3(e):vDT(e)}).thenCatch(function(){e.pendingUpdates.unshift.apply(e.pendingUpdates,_.s_(z))})}},vDT=function(e){e.currentRefreshRequest=_.Iqa(e.JSC$13199_playlistNetworkManager,e.listId,e.currentIndex,e.videoIds[e.currentIndex]);
_.gB(e.currentRefreshRequest,function(){e.currentRefreshRequest=void 0}).then(function(z){e.JSC$13199_updateCallback(z.playlistId,z.playlistPanelRenderer,z.autoplayRenderer)})};
al.prototype.size=function(){return this.videoIds.length};var Wos=function(e,z,C,w){w=w===void 0?[]:w;al.call(this,e,z,C,w);this.JSC$13199_playlistNetworkManager=e;this.listId=z;this.JSC$13199_updateCallback=C;this.videoIds=w};
_.U(Wos,al);_.M2=function(e,z,C,w,K,G,X){K=K===void 0?[]:K;X=X===void 0?v2:X;al.call(this,e,z,C,K);this.JSC$13199_playlistNetworkManager=e;this.listId=z;this.JSC$13199_updateCallback=C;this.onAuthChange=w;this.videoIds=K;this.storage=G;this.cookieReader=X;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.XW(_.c5,this.checkLoggedInStatusChange.bind(this),1E3)};
_.U(_.M2,al);_.Y=_.M2.prototype;_.Y.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.XW(_.c5,this.checkLoggedInStatusChange.bind(this),1E3)};
_.Y.JSC$13199_setCurrentIndex=function(e){al.prototype.JSC$13199_setCurrentIndex.call(this,e);this.store()};
_.Y.delete=function(){_.c5.cancelJob(this.queueSapisIdJob);al.prototype.delete.call(this)};
_.Y.setListId=function(e){al.prototype.setListId.call(this,e);this.store()};
_.Y.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var P_4=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],R5a=["playerResponse","videoDetails"],Loc=["response","currentVideoEndpoint","watchEndpoint","videoId"],h5a=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Oag=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],EDa=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Foo=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
VRa=["response","contents","twoColumnWatchNextResults"];var rt={},lkN=(rt.WEB_UNPLUGGED="^unplugged/",rt.WEB_UNPLUGGED_ONBOARDING="^unplugged/",rt.WEB_UNPLUGGED_OPS="^unplugged/",rt.WEB_UNPLUGGED_PUBLIC="^unplugged/",rt.WEB_CREATOR="^creator/",rt.WEB_KIDS="^kids/",rt.WEB_EXPERIMENTS="^experiments/",rt.WEB_MUSIC="^music/",rt.WEB_REMIX="^music/",rt.WEB_MUSIC_EMBEDDED_PLAYER="^music/",rt.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",rt);var $N1,UjU;$N1=function(e,z){this.networkManager=e;this.innertubeTransportService=z};
UjU=function(e,z,C){if(!_.r(z,_.rA))return _.R5(Error("Nf"));_.r(z,_.rA).videoIds=C;C={create_playlist_title:_.kk("QUEUE",void 0,"Queue")};return Tn5(_.yC(e.innertubeTransportService,z,C),qZo)};
_.Iqa=function(e,z,C,w){z={videoId:w,playlistId:z,playlistIndex:C};C=_.zU(ODo);return Tn5(_.Hc(e.innertubeTransportService,z,C),$Ck)};
$N1.prototype.updatePlaylist=function(e,z){return Tn5(_.yC(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:e,actions:z}}),xCg)};var fqU=function(e){this.storage=e},S$s;
fqU.prototype.store=function(e,z){z=z===void 0?0:z;if(this.storage&&e.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",e),this.storage.set("TLPQindex",String(z)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(C){}};
fqU.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
fqU.prototype.getPlaylistId=function(){if(!this.storage)return null;var e=null;try{e=this.storage.get("TLPQplaylist")}catch(z){}return e};var nEE=["navigationEndpoint","watchEndpoint","videoId"],akL=["nextButtonVideo","watchEndpoint","videoId"];_.UG=new _.Mt("NETWORK_TOKEN");_.wE=new _.Mt("PAGE_TOKEN");_.Us=new _.Mt("PLAYLIST_TOKEN");var uQs;uQs=new _.Mt("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.vJ=new _.Mt("INNERTUBE_TRANSPORT_TOKEN");var dj6,vc,ia6,N_s,B_h,tRX;dj6=new Set(["ci","cr","carml"]);vc=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13246_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Il=function(){vc.instance||(vc.instance=new vc);return vc.instance};
vc.prototype.onAny=function(e){return _.DjL(this,e,2)};
vc.prototype.parkOrScheduleJob=function(e,z,C,w,K){_.Wc(this,C)?_.So().addJob(e,z,w):(K&&(e=ia6(e),N_s(this,e,z,C,K)),K=this.JSC$13246_parkedJobs.get(C),K||(this.JSC$13246_parkedJobs.set(C,[]),K=this.JSC$13246_parkedJobs.get(C)),K.push({job:e,priority:z,delay:w}))};
vc.prototype.addListener=function(e,z,C){C&&(z=ia6(z),N_s(this,z,0,e,C));C=this.parkedProcessors.get(e);C||(this.parkedProcessors.set(e,[]),C=this.parkedProcessors.get(e));C.push(z)};
vc.prototype.processSignal=function(e){if(!_.Wc(this,e)){this.inProgressSignals.add(e);var z=this.JSC$13246_parkedJobs.get(e);if(z){z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,_.So().addJob(C.job,C.priority,C.delay);this.JSC$13246_parkedJobs.delete(e)}if(z=this.parkedProcessors.get(e)){z=_.b(z);for(C=z.next();!C.done;C=z.next())C=C.value,C();this.parkedProcessors.delete(e)}this.signals.push(e);this.inProgressSignals.delete(e)}};
_.Wc=function(e,z){return dj6.has(z)||_.cR("IS_HOMEPAGE_COLD")||_.cR("IS_RESULTS_PAGE_COLD")||_.cR("IS_WATCH_PAGE_COLD")?e.signals.indexOf(z)>=0:!0};
ia6=function(e){var z=!1;return function(){z||(z=!0,e())}};
N_s=function(e,z,C,w,K){if(s_L.has(w))_.So().addJob(z,C,K);else{var G=e.compoundSignals.get(w);G&&_.So().addJob(function(){_.Wc(e,w)||(G.isTimeoutConditionSatisfied?_.So().addJob(z,C):G.timeoutConditionObservers.push(function(){_.So().addJob(z,C)}))},C,K)}};
_.DjL=function(e,z,C){if(z.length>1){var w=[],K=Object.create(null);z=_.b(z);for(var G=z.next();!G.done;G=z.next())G=G.value,K[G]||(w.push(G),K[G]=!0);z=w}if(z.length===1)return z[0];G=z;w="";K=C===2?"|":"&";G.sort();G=_.b(G);for(var X=G.next();!X.done;X=G.next())w+=X.value+K;if(!e.compoundSignals.get(w)){K=0;G=[];X=_.b(z);for(var J=X.next();!J.done;J=X.next())J=J.value,K++,_.Wc(e,J)||G.push(J);(C=C===2)&&K>G.length||!C&&!G.length?e.signals.push(w):B_h(e,w,C,z,G)}return w};
B_h=function(e,z,C,w,K){var G=K.length,X=function(){C||--G===0?e.processSignal(z):tRX(e,z)};
K=_.b(K);for(var J=K.next();!J.done;J=K.next())e.addListener(J.value,X);e.compoundSignals.set(z,{signals:w,isOnAny:C,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});tRX(e,z)};
tRX=function(e,z){if(!_.Wc(e,z)){var C=e.compoundSignals.get(z);if(C&&!C.isTimeoutConditionSatisfied){for(var w=!1,K=0,G=0,X=_.b(C.signals),J=X.next();!J.done;J=X.next()){var q=J.value;J=!_.Wc(e,q);s_L.has(q)?w=!0:(q=e.compoundSignals.get(q))?J&&!q.isTimeoutConditionSatisfied&&(G++,C.isInitialized||q.timeoutConditionObservers.push(function(){tRX(e,z)})):J&&K++}C.isInitialized=!0;
C.isOnAny?w&&(C.isTimeoutConditionSatisfied=!0):K===0&&G===0&&(C.isTimeoutConditionSatisfied=!0);if(C.isTimeoutConditionSatisfied)for(C=_.b(C.timeoutConditionObservers),w=C.next();!w.done;w=C.next())w=w.value,w()}}};
vc.prototype.processSignal=vc.prototype.processSignal;vc.prototype.parkOrScheduleJob=vc.prototype.parkOrScheduleJob;vc.prototype.onAny=vc.prototype.onAny;_.lM("ytsignals.getInstance",_.Il);vc.prototype.onAny=vc.prototype.onAny;vc.prototype.parkOrScheduleJob=vc.prototype.parkOrScheduleJob;vc.prototype.processSignal=vc.prototype.processSignal;var s_L=new Set(["eop","eocs","dl","pcl"]);_.gh=new _.Mt("MINIPLAYER_SERVICE");var Pc,gDo,j_S;Pc=function(e,z,C){var w=_.G4.getInstance();if(!S$s){var K=new Agm;var G=void 0,X=_.j5("ID_TOKEN");X&&K.isAvailable()&&(G=new Nv(K,"yt-queue"+X));S$s=new fqU(G)}K=S$s;G=_.Il();this.JSC$13253_actionRouter=w;this.JSC$13253_pageManager=e;this.playlistManager=z;this.JSC$13253_playlistNetworkManager=C;this.storage=K;this.signals=G;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Rl=function(){if(!gDo){var e=_.lh(),z=e.resolve(_.$B(_.wE)),C=e.resolve(_.$B(_.UG)),w=e.resolve(_.$B(_.Us));e=e.resolve(_.vJ);gDo=new Pc(z,w,new $N1(C,e))}return gDo};
j_S=function(e,z,C){if(C){var w;if(((w=e.responsePlaylistData)==null?void 0:w.playlistId)!==C)return}e.responsePlaylistData&&(C=IkN(z,e.responsePlaylistData),e.responsePlaylistData=(0,_.de.unsafeClone)(e.responsePlaylistData),P2o(e.responsePlaylistData,C));C=e.temporaryItems.findIndex(function(K){return K.videoId===z});
C>-1&&e.temporaryItems.splice(C,1);_.L3(e,_.hl(e,e.response?e.response.autoplayRenderer:void 0))};
_.yFa=function(e,z){if(e.responsePlaylistData){var C=Wy1(z,e.responsePlaylistData);P2o(e.responsePlaylistData,C);if(e.queueProxy){var w=e.queueProxy;C<0||(w.videoIds.splice(C,1),C<w.currentIndex&&w.JSC$13199_setCurrentIndex(w.currentIndex-1),w.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:z}),n3(w))}}_.L3(e,_.hl(e,e.response?e.response.autoplayRenderer:void 0))};
Pc.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.L3(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Pc.prototype.setPlaylistData=function(e,z,C){this.temporaryItems=[];this.listId=e;this.responsePlaylistData=z;_.L3(this,_.hl(this,C))};
var cFa=function(e){return(e==null?0:e.playlistId)?e.playlistId:"PPSV"},AFa=function(e){return e&&e.playlistId?e.playlistId==="PPSV"?!0:zOE(_.eB().getState().entities,e.playlistId):!1};
Pc.prototype.isPlayingOfflineVideo=function(){return this.response?AFa(this.response):!1};
Pc.prototype.closeMiniplayer=function(e){var z=this.queueProxy&&this.queueProxy.size()<=1,C=_.lh().resolve(_.gh);if(!this.queueProxy||z)this.queueProxy&&this.clearQueue(),C.close(!0);else{C.pipController.getWindow()&&window.focus();z=this.responsePlaylistData;var w=this.temporaryItems.length+(z&&z.contents?z.contents.length:0);z=_.kk("QUEUE_CLEARED_UNPLURALIZED")||_.qL("QUEUE_CLEARED",w);z=_.wP(z);C=_.kk("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");w=_.kk("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.qL("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",w);var K=_.kk("MINIPLAYER_CLOSE",void 0,"Close"),G=_.kk("CANCEL",void 0,"Cancel");_.wu(this.JSC$13253_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.AO(C),dialogMessages:[_.AO(w)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.AO(K),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
z]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.AO(G)}}}}}}],e)}};
_.hl=function(e,z){var C={},w=e.response;C.autoplayRenderer=z;if(!e.responsePlaylistData&&!e.temporaryItems.length)return!w||!w.hasRelatedVideoData&&_.M("kevlar_prefetch_data_augments_network_data")||(C.playerData={rvs:w.relatedVideoArgs,endScreenRenderer:w.endScreenRenderer}),C;C.playerData={};if(e.index===void 0)return _.yG(Error("Pf")),C;C.panel=e.responsePlaylistData?(0,_.de.unsafeClone)(e.responsePlaylistData):{titleText:_.AO(_.kk("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
z=C.panel;if(z.contents)for(var K=_.b(e.temporaryItems),G=K.next();!G.done;G=K.next())z.contents.push({playlistPanelVideoRenderer:G.value});e.queueProxy&&w&&w.playingVideo&&w.playingVideoId&&!vE4(w.playingVideoId,C.panel)&&(z=w.playingVideo,K=C.panel,G=e.index,K.contents&&K.contents.splice(G===void 0?0:G,0,{playlistPanelVideoRenderer:z}));w&&w.playingVideoId&&(z=e.index,K=C.panel,z=!K.contents||z>=K.contents.length?void 0:K.contents[z].playlistPanelVideoRenderer,z&&z.videoId===w.playingVideoId||(z=
IkN(w.playingVideoId,C.panel),e.index=z!==-1?z:e.index?e.index-1:0));z=UCo(e.index+1,C.panel);K=void 0;e.index>0&&(K=UCo(e.index-1,C.panel));if(K||z)C.autoplayRenderer=MN5(z,K,C.autoplayRenderer);!z&&(w==null?0:w.relatedVideoArgs)&&(C.playerData.rvs=w.relatedVideoArgs);w=w?w.playlistIndexOffset:0;e.queueProxy?oX4(C.panel,e.index,w,HBE,!0,!0,!0):oX4(C.panel,e.index,w);C.playerData.playlistPanelRenderer=C.panel;return C};
Pc.prototype.openToast=function(e){_.lh().resolve(_.gh).openToast(e,_.kk("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Pc.prototype.isMiniplayerActive=function(){return _.lh().resolve(_.gh).isMiniplayerActive()};
_.L3=function(e,z){e.playlistManager.setAutoplayRenderer(z.autoplayRenderer||null);e.playlistManager.setPlaylistData(z.panel||null);z.playerData&&e.playlistManager.setPlayerPlaybackControlData(z.playerData)};var Yj1="#";var Za6={},pSc={},eqT={},zqU={},CIa={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:(Za6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Za6),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:(pSc.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",pSc),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:(eqT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",eqT),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:(zqU.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",zqU),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 sw5=[{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:CIa},{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:CIa}}];var EX4;_.qp=[[["bXI2eTZ3bTM5a2luZCNxd2Y=","a2I2Y3ZhbHVlI2gzcGlrY3R1"],"SU5EX1NUQVJUIzRiZTg1ZjZsNWMxNUFEX1BMQUNFTUVOVF9L"]];
EX4=[[["eSNqbXN2Yjk1c3Y5NTNwcmltYXI=",null,null],[null,["by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIjNXBzcjk5d2FqYXF5dGQtdHc=","eWxlLXNjb3BlI3V1YWl5cGl5MmExd3N0"],null],["c3RoZWFkLWFkIzYzdjIxNm5xY215am1h",["aWQtcmVuZGVyZXIjNXozc3YwZXVnYWZ6eXRkLXJpY2gtZ3I="],null],[null,["aWQtcmVuZGVyZXIjcWpmcThmMjNkdnhyeXRkLXJpY2gtZ3I=","eWxlLXNjb3BlI3Z0cnJjNXl2cnRwaHN0"],null],[null,["ZGVyZXIjcDY4eXFqbHR1ZWh6eXRkLWJhbm5lci1wcm9tby1yZW4=","eWxlLXNjb3BlI3N6eWlrcHJ3dmN0dHN0"],null],[null,["ZC1zbG90LXJlbmRlcmVyIzExNmIxcmN5ZW01anl0ZC1h"],
null]],[["MTZwbGF5ZXItYWRzIzF3YjU4aWZma24=",null,null]]];_.k5=["b2hudXVxZm4waWdsb2JhbENhbGxiYWNrcyM3cg==","YWxpdHlEZXRlY3RlZCN2ZjF0aDRiMjlxNjZvbkFibm9ybQ==","eTJnY3NsbmdjZm9uQWRTa2lwIzZ2","d19wbGF5ZXJfcmVzcG9uc2UjMzY4YXpkN21jb3B0cmE=","cyM5aHQyenFyMnlhb2NhZFNsb3Q="];_.Os="b2hudXVxZm4waWdsb2JhbENhbGxiYWNrcyM3cg== YWxpdHlEZXRlY3RlZCN2ZjF0aDRiMjlxNjZvbkFibm9ybQ== eTJnY3NsbmdjZm9uQWRTa2lwIzZ2 d19wbGF5ZXJfcmVzcG9uc2UjMzY4YXpkN21jb3B0cmE= cGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjbDcxcmQ0bnl2bXg5d2ViXw== ZnN1cXI4aTltOWFiX3NhX2VmI2t3 cyM5aHQyenFyMnlhb2NhZFNsb3Q=".split(" ");var Es;Es=function(e,z,C){this.vSX=e;this.kwm=z;this.czP=C};
_.CO1=[new Es("b.f_",!1,0),new Es("j.s_",!1,2),new Es("r.s_",!1,4),new Es("e.h_",!1,6),new Es("i.s_",!0,8),new Es("s.t_",!1,10),new Es("p.h_",!1,12),new Es("s.i_",!1,14),new Es("f.i_",!1,16),new Es("a.b_",!1,18),new Es("a.o_",!1),new Es("g.o_",!1,22),new Es("p.i_",!1,24),new Es("p.m_",!1),new Es("n.k_",!0,20),new Es("i.f_",!1),new Es("a.s_",!0),new Es("m.c_",!1),new Es("n.h_",!1,26),new Es("o.p_",!1),new Es("m.p_",!0,28),new Es("o.a_",!1),new Es("d.p_",!1),new Es("e.i_",!1)].reduce(function(e,z){e[z.vSX]=
z;return e},{});var wXC=function(){};
wXC.prototype.flush=function(e,z){e=e===void 0?[]:e;z=z===void 0?!1:z;if(_.M("enable_client_streamz_web")){e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=rGL(C.value),this.rootSpec&&_.PL(C,2,this.rootSpec),C={serializedIncrementBatch:_.FY(C.JSC$9776_serializeBinary())},_.gm("streamzIncremented",C,{sendIsolatedPayload:z})}};
var qj4=function(){};
_.U(qj4,wXC);var KCT=function(e){var z=new $6s;var C=new qHT;C=_.Et(C,1,"botguard");e=_.Et(C,2,e);this.rootSpec=_.RT(z,1,lK6,e)};
_.U(KCT,wXC);var b6,o7s=new Map;var Sjh,TiN,HT1,Qw5,nXm,hB7,dd7,RBg;Sjh=2;TiN=2;HT1=2;Qw5=2;nXm=2;hB7=2;dd7=2;RBg=new mEU;var YbL,b5g;YbL=function(){this.ongoingFlowNonces=new Map};
_.$5=function(){b5g||(b5g=new YbL);return b5g};
_.TU=function(e,z,C){return{eventType:{flowEventNamespace:e,flowEventType:z},metadata:C,statusCode:void 0,csn:void 0,can:void 0}};
_.K9L=function(e,z){var C=_.$5(),w=XXs(C,z,!0);C.logFlowEvent(e,z,w,void 0)};
YbL.prototype.logFlowEvent=function(e,z,C,w){z={flowNonce:C||XXs(this,z),flowType:z,flowEventType:e.eventType};e.metadata&&(z.flowMetadata=e.metadata);e.statusCode!==void 0&&(z.flowEventStatus=e.statusCode);e.csn&&(z.csn=e.csn);e.can&&(z.can=e.can);_.gm("flowEvent",z,w)};
var XXs=function(e,z,C){C=C===void 0?!1:C;var w=e.ongoingFlowNonces.get(z);if(!w||C)w=UX(16),e.ongoingFlowNonces.set(z,w);return w};_.JeT=new Qsc;var Xp4={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var Fz=function(e,z,C,w,K,G,X){C=C===void 0?!1:C;w=w===void 0?!1:w;G=G===void 0?_.Rl():G;this.aC=!1;this.ozG=e;this.xrJ=z;this.qUJ=C;this.fromHistory=w;this.previousVideoId=K;this.tuw=G;this.tempData=X;this.vKa=new _.aIa};
_.U(Fz,Sk);Fz.prototype.validate=function(e){return!(!e.data.playerResponse||e.data.page!=="watch"&&e.data.page!=="learning_journey_watch"&&e.data.page!=="shorts"||this.aC)};
Fz.prototype.handle=function(e){var z=this,C=_.r(e.endpoint,_.N$),w=_.r(e.endpoint,_.rP);if(_.M("kevlar_continue_playback_without_player_response")&&(C==null?0:C.videoId)&&this.previousVideoId&&(C==null?void 0:C.videoId)===this.previousVideoId&&(C==null?0:C.continuePlayback)&&!this.fromHistory)this.ozG.resolve();else{var K={};C?K.watch_endpoint=C:w&&(K.watch_endpoint=w,w.endTimeSeconds&&(K.end=w.endTimeSeconds));e.data.page==="watch"?(e.data.filler||this.qUJ||(_.FV("cfg"),_.G4.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(K,kYa(this,e.endpoint)),_.M("enable_masthead_quartile_ping_fix")&&Object.assign(K,qbh(this)),Object.assign(K,void 0),e.data.forceExternalPlaylist&&(K.external_list=!0)):e.data.page==="shorts"?_.G4.getInstance().triggerAction("yt-start-loading-shorts"):e.data.page==="learning_journey_watch"&&_.G4.getInstance().triggerAction("yt-start-loading-learning-journey");if(C=this.xrJ()){try{C.loadVideoWithPlayerResponse(e.data.playerResponse,K),C.getPlayerPromise().then(this.ozG.resolve)}catch(G){_.yG(G),
this.ozG.resolve()}this.aC=!0;C.getPlayerPromise().then(function(G){G.addEventListener("onAbnormalityDetected",function(){var X=e.data.playerResponse,J=G.getVideoData().cpn;dd7=0;_.GYT=J;if(J=zRN(X))z.vKa.increment("IN_PLAYER"),_.l6(5),_.M("ab_st_vid_ks")?G.pauseVideo(!0):G.stopVideo(),X.playabilityStatus=Object.assign({},X.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:J}}),X.videoDetails=void 0,_.G4.getInstance().triggerOptionalAction("yt-updated-playability-status",
X.playabilityStatus)})})}else _.AX(Error("Sf"))}};
var kYa=function(e,z){var C=_.r(z,_.N$);if(z&&C&&C.playlistId&&C.videoId&&(e=e.tuw,e.queueProxy?(e=e.queueProxy,C=e.listId===C.playlistId?e.attributionData.get(C.videoId):void 0):C=void 0,C))return{queue_info:C}},qbh=function(e){var z;
if((z=e.tempData)==null?0:z.adpings)return{adpings:e.tempData.adpings}};var VJ=function(e,z,C){this.aC=!1;this.aS0=e;this.tTe=z;this.rUJ=C};
_.U(VJ,Sk);VJ.prototype.validate=function(e){return!!_.de.getValueByKeys.apply(null,[e.data].concat(_.s_(VRa)))};
VJ.prototype.handle=function(e){var z=this;this.aS0.promise.then(function(){var C=e.data;var w=_.de.getValueByKeys.apply(null,[C].concat(_.s_(P_4))),K=_.de.getValueByKeys.apply(null,[C].concat(_.s_(EDa))),G=_.de.getValueByKeys.apply(null,[C].concat(_.s_(Loc)));var X=(X=_.de.getValueByKeys.apply(null,[C].concat(_.s_(R5a))))?{videoId:X.videoId,thumbnail:X.thumbnail,title:X.title?_.AO(X.title):void 0,shortBylineText:X.author?_.AO(X.author):void 0}:void 0;var J=void 0;_.M("web_get_playlist_id_from_current_endpoint_ks")||
(J=_.de.getValueByKeys.apply(null,[C].concat(_.s_(h5a))));var q=_.de.getValueByKeys.apply(null,[C].concat(_.s_(Foo))),T=_.de.getValueByKeys.apply(null,[C].concat(_.s_(Oag))),Q=!!q||!!T&&!!T.results&&T.results.length>0,m=0;K&&K.currentIndex&&K.localCurrentIndex&&(m=K.currentIndex-K.localCurrentIndex);K&&K.playlistId&&(J=K.playlistId);C={rawResponse:C,autoplayRenderer:w,hasRelatedVideoData:Q,playingVideo:X,playingVideoId:G,playlistPanelRenderer:K,playlistId:J,playlistIndex:K&&K.currentIndex,relatedVideoArgs:q,
endScreenRenderer:T,playlistIndexOffset:m};a:{w=z.rUJ;K=z.tTe;w.response=C;if(AFa(C))w.downloadPlaylistProxy&&w.downloadPlaylistProxy.getPlaylistId()===cFa(C)||(w.downloadPlaylistProxy=new nDa(cFa(C),w.setPlaylistData.bind(w),w.isPlayingOfflineVideo.bind(w))),w.responsePlaylistData=w.downloadPlaylistProxy.getPlaylistData(),w.listId=cFa(C),w.index=0;else if(C.playlistPanelRenderer&&C.playlistId&&C.autoplayRenderer)C.playlistId.startsWith("TLPQ")?w.queueProxy?w.listId===C.playlistId?(w.index=C.playlistIndex,
w.responsePlaylistData=C.playlistPanelRenderer,w.queueProxy.JSC$13199_setCurrentIndex(w.index)):C.playingVideoId&&w.index!==void 0&&K.clientParams.autoSaveToQueue&&(w.index+=1,w.queueProxy.JSC$13199_setCurrentIndex(w.index),w.queueProxy.addVideos([C.playingVideoId],{},w.index)):(w.queueProxy=new _.M2(w.JSC$13253_playlistNetworkManager,C.playlistId,w.setPlaylistData.bind(w),w.clearQueue.bind(w),_.RV7(C.playlistPanelRenderer),w.storage),w.responsePlaylistData=C.playlistPanelRenderer,w.listId=C.playlistId,
w.index=C.playlistIndex):(w.index=C.playlistIndex,w.listId!==C.playlistId&&w.clearQueue(),w.responsePlaylistData=C.playlistPanelRenderer,w.listId=C.playlistId,w.playlistProxy=new Wos(w.JSC$13253_playlistNetworkManager,C.playlistId,w.setPlaylistData.bind(w),_.RV7(C.playlistPanelRenderer)));else if(!w.queueProxy)w.responsePlaylistData=void 0;else if(C.playingVideoId&&K.clientParams.autoSaveToQueue){if(w.index===void 0){_.yG(Error("Of"));w.clearQueue();break a}w.queueProxy.videoIds.includes(C.playingVideoId)||
(w.index+=1,w.queueProxy.JSC$13199_setCurrentIndex(w.index),w.queueProxy.addVideos([C.playingVideoId],{},w.index))}_.L3(w,_.hl(w,w.response.autoplayRenderer))}})};var x7g=function(e,z){z=z===void 0?_.Rl():z;e0.call(this);this.zV.push(new VJ(this.hU,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},z));this.zV.push(new Fz(this.hU,e,!1,!1));_.M("web_response_commands_chunk_processor")&&this.zV.push(new zd)};
_.U(x7g,e0);x7g.prototype.processChunk=function(e){e&&e.data.player===void 0&&this.hU.resolve();e0.prototype.processChunk.call(this,e)};var f3=function(e,z){e=e===void 0?{layer:0}:e;this.aC=!1;this.createScreenConfig=e;this.gI2=z};
_.U(f3,Sk);f3.prototype.validate=function(e){return!(this.aC||!e.endpoint)};
f3.prototype.handle=function(e){var z=_.nm(),C,w,K=(w=_.r((C=e.endpoint)==null?void 0:C.commandMetadata,_.XV))==null?void 0:w.rootVe;this.gI2&&K?_.jk(z,K,this.gI2,this.createScreenConfig):eFS(z,e.endpoint,this.createScreenConfig);this.aC=!0};var S0=function(e,z){this.aC=!1;this.swI=e;this.previousVideoId=z};
_.U(S0,Sk);S0.prototype.validate=function(e){return _.M("kevlar_continue_playback_without_player_response")&&(e=_.r(e.endpoint,_.N$),(e==null?0:e.videoId)&&this.previousVideoId&&(e==null?void 0:e.videoId)===this.previousVideoId&&(e==null?0:e.continuePlayback))?!1:this.swI.p0z===0};
S0.prototype.handle=function(e){_.G4.getInstance().triggerAction("yt-stop-old-player",e.data,!0)};var Tsg=function(e){e=e===void 0?{layer:0}:e;e0.call(this);this.zV.push(new S0(this));this.zV.push(new f3(e));this.zV.push(new pH(e))};
_.U(Tsg,e0);var um=function(){Sk.apply(this,arguments)};
_.U(um,Sk);um.prototype.validate=function(e){return!!e.data.preconnect};
um.prototype.handle=function(e){_.hg("bc");e=_.b(e.data.preconnect);for(var z=e.next();!z.done;z=e.next())z=z.value,(new Image).src=z};var $7Y=function(e,z,C,w,K,G,X){C=C===void 0?{layer:0}:C;G=G===void 0?_.Rl():G;e0.call(this);if(w)if(K){K=G;this.zV.push(new VJ(this.hU,z,K));this.zV.push(new um);var J,q;this.zV.push(new Fz(this.hU,e,!1,!((J=z.clientParams)==null||!J.fromHistory),(q=z.clientParams)==null?void 0:q.previousVideoId,K,z.tempData));var T;this.zV.push(new S0(this,(T=z.clientParams)==null?void 0:T.previousVideoId));var Q;(Q=z.clientParams)!=null&&Q.fromHistory||(C.layer||(C=Object.assign({},C,{layer:0})),this.zV.push(new f3(C,
X)),this.zV.push(new pH(C)))}else this.zV.push(new VJ(this.hU,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},G)),this.zV.push(new Fz(this.hU,e,!1,!1));else this.zV.push(new S0(this)),this.zV.push(new f3(C)),this.zV.push(new pH(C));_.M("web_response_commands_chunk_processor")&&w&&this.zV.push(new zd)};
_.U($7Y,e0);$7Y.prototype.processChunk=function(e){e&&e.data.player===void 0&&this.hU.resolve();e0.prototype.processChunk.call(this,e)};var lZ4=function(){this.aC=this.aC=!1};
_.U(lZ4,Sk);lZ4.prototype.validate=function(e){return!this.aC&&!(!e.data.csn||!e.data.rootVe)};
lZ4.prototype.handle=function(e){this.aC=!0;_.Li(e.data.csn,e.data.rootVe,3)};var Qja=function(e,z,C){C=C===void 0?{layer:0}:C;e0.call(this);this.zV.push(new Fz(this.hU,e));this.zV.push(new f3(C));this.zV.push(new pH(C))};
_.U(Qja,e0);var m7h=function(e,z,C,w,K){C=C===void 0?{layer:0}:C;w=w===void 0?_.Rl():w;e0.call(this);var G=!!z&&!!z.clientParams&&!!z.clientParams.miniplayer;G&&this.zV.push(new lZ4);this.zV.push(new VJ(this.hU,z,w));this.zV.push(new um);var X,J;this.zV.push(new Fz(this.hU,e,G,!((X=z.clientParams)==null||!X.fromHistory),(J=z.clientParams)==null?void 0:J.previousVideoId,w,z.tempData));var q;this.zV.push(new S0(this,(q=z.clientParams)==null?void 0:q.previousVideoId));var T;(T=z.clientParams)!=null&&T.fromHistory||
(C.layer||(C=Object.assign({},C,{layer:G?3:0})),this.zV.push(new f3(C,K)),this.zV.push(new pH(C)));_.M("web_response_commands_chunk_processor")&&this.zV.push(new zd)};
_.U(m7h,e0);var dt,Mz4;dt={};
_.aZo=(dt["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dt["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dt["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dt["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dt["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dt["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dt["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dt);_.DM=new _.zE("yt-edu");_.n7c=function(){this.JSC$13351_eduDisplayedThisLoad_={}};
Mz4=function(e){var z=_.n7c.getInstance();var C=_.n0("kevlar_tooltip_impression_cap");z=C&&parseInt(_.DM.get(e+"-impression")||0,10)>=C||_.DM.get(e+"-dismissed")?!1:(C=_.aZo[e])&&!z.JSC$13351_eduDisplayedThisLoad_[C.setKey||e]&&(C.titleText&&_.kk(C.titleText)||C.bodyText&&_.kk(C.bodyText))?!0:!1;if(!z)return null;z=_.aZo[e];if(!z)return null;C=z.bodyText?_.kk(z.bodyText):void 0;var w=z.titleText?_.kk(z.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:z.position,popup:{bubbleHintRenderer:{text:w?
_.AO(w):void 0,detailsText:C?_.AO(C):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.AO(_.kk("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:e}}]}}}}}}}},{eduImpressionAction:{key:e}}]};
_.qI(_.n7c);var ovo=!1;for(var rec="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),H5o=[],im=6;im>=1;im--)H5o.push({columnCount:im,query:im==1?0:im*2*107-4+32,className:"grid-"+im+"-columns",width:im*2*107+"px"});_.ss=function(e){this.actionRouter_=e=e===void 0?_.G4.getInstance():e;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.U7c(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.U7c=function(e){var z=e.documentWidth_-(e.miniGuideVisible_?72:0)-(e.guidePersistentAndVisible_?240:0)-(e.persistentPanelVisible_?400:0);return H5o.find(function(C){return z>C.query})};
_.qI(_.ss);var v7S=function(){var e=this;this.JSC$13363_keyboardInUse=!1;document.addEventListener("keydown",function(){e.onKeydown()});
document.addEventListener("mousedown",function(){e.JSC$13363_keyboardInUse=!1})},IZX;
v7S.prototype.isKeyBoardInUse=function(){return this.JSC$13363_keyboardInUse};
v7S.prototype.onKeydown=function(){this.JSC$13363_keyboardInUse=!0};var WCT,gt;_.Bc=new _.zE("yt-mentions");_.tl=function(){};
WCT=function(e,z){return gt(z,"drag-to-reorder-edu-displayed")};
gt=function(e,z,C,w,K,G){C=C===void 0?"OPEN_POPUP_POSITION_TOP":C;if(z){if(_.Bc.get(z))return;_.Bc.set(z,!0,w)}if(K&&G!==void 0){z=Number(_.Bc.get(K)||0);if(z>=G)return;_.Bc.set(K,z+1)}return[{openPopupAction:{popupType:"HINT",position:C,popup:{bubbleHintRenderer:{detailsText:e,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.qI(_.tl);var PIh,RqL,LCU;PIh=function(e,z,C,w){this.JSC$13373_taskManager_=e;this.onFulfilled_=typeof z==="function"?z:null;this.onRejected_=typeof C==="function"?C:null;this.JSC$13373_context_=w};
RqL=function(e,z){e.onFulfilled_&&_.Oz(e.JSC$13373_taskManager_,function(){e.onFulfilled_.call(e.JSC$13373_context_,z)})};
LCU=function(e,z){e.onRejected_&&_.Oz(e.JSC$13373_taskManager_,function(){e.onRejected_.call(e.JSC$13373_context_,z)})};
_.j0=function(e){this.JSC$13376_taskManager_=e;this.callbacks_=[]};
_.j0.prototype.then=function(e,z,C){this.callbacks_.push(new PIh(this.JSC$13376_taskManager_,e,z,C));return this};
_.j0.prototype.onSuccess=function(e){this.callbacks_.forEach(function(z){RqL(z,e)})};
_.j0.prototype.onFailure=function(e){this.callbacks_.forEach(function(z){LCU(z,e)})};
_.j0.prototype.cancel=function(){this.callbacks_.length=0};
vi6(_.j0);_.kh7=null;_.UT=new _.Mt("ACTIVITY_TOKEN");var hqs;_.F9=new _.Mt("PAGE_REQUEST_TOKEN");hqs=new _.Mt("FETCH_PBJ_TOKEN");_.O5g=function(e){if(e.validatedFragments_.length==0)return null;if(!e.mergedPrefetchedData_){for(var z=[],C=_.b(e.validatedFragments_),w=C.next();!w.done;w=C.next()){w=_.b(e.fragmentConfiguration_[w.value].graftedKeys);for(var K=w.next();!K.done;K=w.next())(K=e.prefetchedData_[K.value].trackingParams)&&z.push(K)}e.mergedPrefetchedData_={};Object.assign(e.mergedPrefetchedData_,e.prefetchedData_,{clientSideGrafts:z})}return e.mergedPrefetchedData_};var E7h;_.yJ=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
E7h=function(e,z,C){if(_.qD7(z))return e.prefetchCache_.get(_.xNo(z,C))};_.cc=new _.Mt("NAVIGATION_TOKEN");var FCY=function(e){var z=this;var C=C===void 0?lNg():C;var w=w===void 0?_.lh().resolve(_.cc):w;this.onePickCommand=e;this.JSC$13448_playlistNetworkManager=C;this.navigationManager=w;this.videoPickerBuilder=_.TH8("yt-addtoplaylist");_.jO4(D$6(iio(d$c(this.videoPickerBuilder.setTitle(e.modalTitle).setSize(1E3).addView(sOC()).addView(NKo())).addView("youtube"),e.selectButtonLabel)),function(K){z.handleAction(K)})};
FCY.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
FCY.prototype.handleAction=function(e){var z=this;if(e&&this.onePickCommand.listId&&e.action==="picked"&&e.docs){var C=[];e.docs.forEach(function(w){C.push({addedVideoId:w.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13448_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,C).then(function(){_.M("playlist_add_video_hard_reload_killswitch")?z.navigationManager.reload():Vzc(z.navigationManager)})}};var fZX=function(){if(this.constructor===fZX)throw new TypeError("Uf");};
_.Y=fZX.prototype;_.Y.dispose=function(){};
_.Y.disconnect=function(){};
_.Y.reconnect=function(){};
_.Y.observe=function(e,z,C){return{element:e,option:C}};
_.Y.unobserveByKey=function(){};var Q$N=function(e,z){z=z===void 0?0:z;fZX.call(this);this.viewroot=e;this.defaultPrescanHeight=z;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),e?{root:e,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.U(Q$N,fZX);_.Y=Q$N.prototype;_.Y.dispose=function(){this.disconnect();this.handlers.clear()};
_.Y.disconnect=function(e){this.isConnected=!1;this.pauseObservingUntilReconnect=e===void 0?!1:e;this.observer.disconnect();e=_.b(this.prescanObservers.values());for(var z=e.next();!z.done;z=e.next())z.value.disconnect()};
_.Y.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var e=_.b(this.handlers),z=e.next();!z.done;z=e.next()){var C=_.b(z.value);z=C.next().value;var w=C.next().value;C=!1;w=_.b(w.keys());for(var K=w.next();!K.done;K=w.next())if((K=K.value)&&K.state==="prescan"){C=!0;break}C&&SbT(this,z).observe(z);this.observer.observe(z)}}};
_.Y.handleObserveEvent=function(e){e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;var C=this.handlers.get(z.target);if(C){var w=z.isIntersecting;C=_.b(C);for(var K=C.next();!K.done;K=C.next()){var G=_.b(K.value);K=G.next().value;G=G.next().value;K&&(K.state==="visible"&&w||K.state==="hidden"&&!w)&&(G(z.target,K.state),K.calledOnce&&this.unobserveByKey({element:z.target,option:K}))}}}};
_.Y.handlePrescanEvent=function(e){e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;var C=this.handlers.get(z.target);if(C&&z.isIntersecting){C=_.b(C);for(var w=C.next();!w.done;w=C.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;w&&w.state==="prescan"&&(K(z.target,w.state),w.calledOnce&&this.unobserveByKey({element:z.target,option:w}))}}}};
_.Y.observe=function(e,z,C){var w=(w=this.handlers.get(e))&&w.has(C)?{element:e,option:C}:void 0;if(w)return w;w={element:e,option:C};this.handlers.has(e)||this.handlers.set(e,new Map);var K=this.handlers.get(e);K&&!K.has(C)&&K.set(C,z);this.pauseObservingUntilReconnect||(C.state==="prescan"&&SbT(this,e).observe(e),this.observer.observe(e));return w};
_.Y.unobserveByKey=function(e){var z=this.handlers.get(e.element);if(z&&z.has(e.option)){z.delete(e.option);if(e&&e.option.state==="prescan")for(var C=_.b(this.prescanObservers.values()),w=C.next();!w.done;w=C.next())w.value.unobserve(e.element);z.size===0&&(this.handlers.delete(e.element),this.observer.unobserve(e.element))}};
var SbT=function(e,z){var C=e.defaultPrescanHeight;z.hasAttribute("prescan-height")&&(z=Number(z.getAttribute("prescan-height")),isNaN(z)||(C=z));if(e.prescanObservers.has(C))return e.prescanObservers.get(C);z="-0.1px -0.1px "+C+"px -0.1px";z=new IntersectionObserver(e.handlePrescanEvent.bind(e),e.viewroot?{root:e.viewroot,rootMargin:z}:{rootMargin:z});e.prescanObservers.set(C,z);return z};var uch=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],d7o=function(){var e,z=this;this.JSC$13465_actionRouter=e=e===void 0?_.G4.getInstance():e;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return z.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return z.visibilityObservedElementHandlerKeys}}},D7Y,Al,sjc;
d7o.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.M("kevlar_use_vimio_behavior")&&_.j5("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=mNL())};
d7o.prototype.dispose=function(){this.visibilityMonitor&&_.ib(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
d7o.prototype.handleVisibilityRefreshed=function(){for(var e=_.b(this.targetMap.entries()),z=e.next();!z.done;z=e.next()){var C=_.b(z.value);z=C.next().value;C=C.next().value;_.i5s(this,z,C)}};
_.ZM=function(e,z,C){Al(e,C);var w=_.NsX(e,z);w.element=C;e.targetedElements.set(C,z);_.i5s(e,z,w)};
Al=function(e,z){var C=e.targetedElements.get(z);if(C){var w=e.targetMap.get(C);w&&(delete w.element,e.targetMap.set(C,w));e.targetedElements.delete(z);e.visibilityObserver&&e.visibilityObservedElementHandlerKeys&&(C=e.visibilityObservedElementHandlerKeys.get(z))&&(e.visibilityObserver.unobserveByKey(C),e.visibilityObservedElementHandlerKeys.delete(z))}};
_.i5s=function(e,z,C){var w=C.action,K=C.element;K&&w&&(uch.includes(z)||_.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||e.visibilityMonitor&&e.visibilityMonitor.isNodeVisible(K)?sjc(e,z,C):e.visibilityObserver&&(e.visibilityObservedElementHandlerKeys||(e.visibilityObservedElementHandlerKeys=new WeakMap),w=e.visibilityObserver.observe(K,function(){sjc(e,z,C);e.visibilityObservedElementHandlerKeys.delete(K)},{calledOnce:!0,
state:"visible"}),e.visibilityObservedElementHandlerKeys.set(K,w)))};
sjc=function(e,z,C){var w=C.action;(C=C.element)&&w&&(_.wu(e.JSC$13465_actionRouter,[w],C),e.targetMap.delete(z),e.targetedElements.delete(C),e.triggeredTargets.add(z))};
_.NsX=function(e,z){var C=e.targetMap.get(z);C||(C={},e.targetMap.set(z,C));return C};
_.p3=function(){D7Y||(D7Y=new d7o);return D7Y};var Bsg=document.createElement("div");Bsg.style.touchAction="pan-down";var aN1=Bsg.style.touchAction==="pan-down";var tzg,g7o;tzg=function(){this.hammerFn=y8U();this.JSC$13473_screenManager=_.nm();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.mT(83615);_.c7(this.JSC$13473_screenManager,this.ve);nvN()};
_.ef=function(){g7o||(g7o=new tzg);return g7o};
tzg.prototype.registerTouchEvents=function(e,z,C){var w=_.yL.apply(3,arguments),K=this.hammerFn(e,{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}]]});C&&K.set({touchAction:C});this.nodeManagerMapping.set(e,K);var G=
Meh(z);w=_.b(w);for(var X=w.next();!X.done;X=w.next()){X=X.value;if(X.includes("swipe")||X.includes("pinch")||X.includes("pan"))X.includes("swipe")?K.get("swipe").set({enable:!0,direction:G,velocity:.2}):X.includes("pinch")?K.get("pinch").set({enable:!0}):X.includes("pan")&&(K.get("pan").set({enable:!0,direction:G}),K.get("swipe").set({enable:!0,direction:G,velocity:.2}),K.get("swipe").recognizeWith("pan"));jjo(this,e,K,X)}};
var jjo=function(e,z,C,w){C.on(w,function(K){if(w.includes("pinch"))e.lastPinchTime=Date.now();else if(w.includes("swipe")&&Date.now()-e.lastPinchTime<400)return;K.pointerType!=="mouse"&&(K=w==="doubletap"?{coordinates:K.center}:w.includes("pan")?K:w.includes("swipe")?{target:K.target}:{},z.dispatchEvent(new CustomEvent(w,{bubbles:!0,composed:!0,detail:K})))})};
tzg.prototype.unregisterTouchEvents=function(e){var z=_.yL.apply(1,arguments),C=this.nodeManagerMapping.get(e);if(C){z=_.b(z);for(var w=z.next();!w.done;w=z.next())C.off(w.value);this.nodeManagerMapping.delete(e);e.style.touchAction="unset"}};var ye4=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var r_1=null;_.Ig={getLocalStorage:_.uS(function(){try{var e=new cg4;var z=e.isAvailable()?e:null}catch(C){return null}return z?new _.vA(z):null}),
getSessionStorage:_.uS(function(){var e=new Agm;return e.isAvailable()?new _.vA(e):null})};var ceX=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},DN8=function(){ceX.instance||(ceX.instance=new ceX);
return ceX.instance},i9g=function(e){var z=e.networkEvents;
e.networkEvents=[];return _.M("enable_network_monitoring")?z:[]};var Aeg;Aeg={};_.Z5h=m0("yt-serviceworker-metadata",{objectStores:(Aeg.auth={addedAtVersion:1},Aeg["resource-manifest-assets"]={addedAtVersion:2},Aeg),shared:!0,upgrade:function(e,z){z(1)&&wm(e,"resource-manifest-assets");z(2)&&wm(e,"auth")},
version:2});var POo=self.location.origin+"/";RRL([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);RRL([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);RRL([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);RRL([/purge_shell=1/]);var pX6=void 0;pX6=pX6===void 0?[]:pX6;
for(var eHs=[],zH4=_.b(IEC),CFa=zH4.next();!CFa.done;CFa=zH4.next())eHs.push({key:CFa.value});for(var wYa=_.b(pX6),KQL=wYa.next();!KQL.done;KQL=wYa.next())eHs.push(KQL.value);var o6U,LW=_.wL==null?void 0:(o6U=_.wL.performance)==null?void 0:o6U.memory,O91=!1,NHm={},VeE={},hU={},OG=navigator;var zr=function(e){this.JSC$13518_expiringStorage=new D6(e)};
zr.prototype.set=function(e,z,C){C=C!==void 0?Date.now()+C:void 0;this.JSC$13518_expiringStorage.set(e,z,C)};
zr.prototype.get=function(e){return this.JSC$13518_expiringStorage.get(e)};
zr.prototype.remove=function(e){this.JSC$13518_expiringStorage.remove(e)};var A_L=_.Kb(["https://www.youtube.com/",""]),Z97=_.Kb(["https://studio.youtube.com/",""]),wK1="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",ec1=null,b$m;var Gch=_.Kb(["https://www.youtube.com/iframe_api"]),CE=function(){this.playerResolver_=_.cj();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.S2;this.playbackDurationSeconds_=0},YKa=function(e){var z=function(){return window.YT&&typeof window.YT.ready==="function"};
if(z())return _.oS(window.YT);var C=_.cj(),w=_.Lh("SCRIPT");w.onload=w.onreadystatechange=function(){w.readyState&&w.readyState!="loaded"&&w.readyState!="complete"||(w.onload=_.S2,w.onreadystatechange=_.S2,w.onerror=_.S2,z()?C.resolve(window.YT):C.reject(new _.uh("Failed to load the iframe player library","script.onload",w.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
w.onerror=function(K){w.onload=_.S2;w.onreadystatechange=_.S2;w.onerror=_.S2;C.reject(new _.uh("Failed to load the iframe player library","script.onerror",K&&K.target&&K.target.src))};
_.Jn(w,_.nJ(Gch));e.insertBefore(w,e.firstChild);return C.promise},b8X=function(e,z,C){var w,K;
_.k(function(G){switch(G.nextAddress){case 1:return e.playbackEndedCallback_=C,_.Iv(G,2),G.yield(YKa(z.parentElement||null),4);case 4:w=G.yieldResult;_.Yj(G,3);break;case 2:return K=_.O_(G),K instanceof _.uh&&K.args&&K.args[0]=="script.onerror"?_.AX(K):_.yG(K),G.return();case 3:w.ready(function(){return new w.Player(z,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:e.onPlayerReady_.bind(e),onStateChange:e.onPlayerStateChange_.bind(e),
onCueRangeExit:e.onCueRangeExit_.bind(e)}})}),_.E_(G)}})};
_.Y=CE.prototype;_.Y.getPlayerPromise=function(){return this.playerPromise_};
_.Y.onPlayerReady_=function(e){this.playerResolver_.resolve(e.target)};
_.Y.onPlayerStateChange_=function(e){if(e.data==YT.PlayerState.PLAYING){e=e.target;var z=e.getCurrentTime();e.addCueRange("playback",z,z+this.playbackDurationSeconds_)}};
_.Y.onCueRangeExit_=function(e){e.data=="playback"&&(e.target.stopVideo(),this.playbackEndedCallback_())};
_.Y.stopVideo=function(){this.playerPromise_.then(function(e){e.stopVideo()})};
var XYs=function(e){e.playerVars_&&e.playerPromise_.then(function(z){typeof z.cueVideoByPlayerVars!="function"?_.AX(new _.uh("vmh: player API not ready","cueVideoByPlayerVars",typeof z.cueVideoByPlayerVars)):z.cueVideoByPlayerVars(e.playerVars_)})};
CE.prototype.playVideo=function(){var e=this;this.playerVars_&&this.playerPromise_.then(function(z){typeof z.loadVideoByPlayerVars!="function"?(z=new _.uh("vmh: player API not ready","loadVideoByPlayerVars",typeof z.loadVideoByPlayerVars),_.yG(z)):z.loadVideoByPlayerVars(e.playerVars_)})};
var J66=function(e,z,C,w,K){z&&(C===void 0&&(C=0),w===void 0&&(w=0),e.playbackDurationSeconds_=w/1E3,e.playerVars_={adformat:"17_8",videoId:z,suggestedQuality:"hd720",startSeconds:C/1E3,player_params:K})};
CE.prototype.mute=function(){this.playerPromise_.then(function(e){e.mute()})};
CE.prototype.unMute=function(){this.playerPromise_.then(function(e){e.unMute()})};var $Qg=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var wX;wX=function(){this.tokenJars={};if(this.cookiesEnabled=_.Vj()){var e=_.E3.get("CONSISTENCY",void 0);e&&kcs(this,{encryptedTokenJarContents:e})}};
_.Q7N=function(){wX.instance||(wX.instance=new wX);return wX.instance};
wX.prototype.handleResponse=function(e,z){if(!z)throw Error("Zf");var C,w;z=((C=z.innerTubeRequest.context)==null?void 0:(w=C.request)==null?void 0:w.consistencyTokenJars)||[];var K;(e=(K=e.responseContext)==null?void 0:K.consistencyTokenJar)&&this.replace(z,e)};
wX.prototype.replace=function(e,z){e=_.b(e);for(var C=e.next();!C.done;C=e.next())delete this.tokenJars[C.value.encryptedTokenJarContents];kcs(this,z)};
var kcs=function(e,z){if(z.encryptedTokenJarContents&&(e.tokenJars[z.encryptedTokenJarContents]=z,typeof z.expirationSeconds==="string")){var C=Number(z.expirationSeconds);setTimeout(function(){delete e.tokenJars[z.encryptedTokenJarContents]},C*1E3);
e.cookiesEnabled&&_.FF("CONSISTENCY",z.encryptedTokenJarContents,C,void 0,!0)}};var qKU,KE;qKU=window.location.hostname.split(".").slice(-2).join(".");_.BJ=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var e=_.j5("LOCATION_PLAYABILITY_TOKEN");_.j5("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=xfc(this))&&(e=this.localStorage.get("yt-location-playability-token"));e&&(this.locationPlayabilityToken=e,this.mostRecentPosition=void 0)};
_.BJ.getInstance=function(){KE=_.pd("yt.clientLocationService.instance");KE||(KE=new _.BJ,_.lM("yt.clientLocationService.instance",KE));return KE};
_.BJ.prototype.setLocationOnInnerTubeContext=function(e){e.client||(e.client={});if(this.mostRecentPosition)e.client.locationInfo||(e.client.locationInfo={}),e.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),e.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),e.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),e.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)e.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.BJ.prototype.handleResponse=function(e){var z;e=(z=e.responseContext)==null?void 0:z.locationPlayabilityToken;e!==void 0&&(this.locationPlayabilityToken=e,this.mostRecentPosition=void 0,_.j5("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=xfc(this))&&this.localStorage.set("yt-location-playability-token",e,15552E3):_.FF("YT_CL",JSON.stringify({loctok:e}),15552E3,qKU,!0))};
var xfc=function(e){return e.localStorage===void 0?new _.zE("yt-client-location"):e.localStorage};
_.BJ.prototype.clearLocationPlayabilityToken=function(e){e==="TVHTML5"?(this.localStorage=xfc(this))&&this.localStorage.remove("yt-location-playability-token"):_.NQk("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.BJ.prototype.getCurrentPositionFromGeolocation=function(){var e=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var z=!1,C=1E4;_.j5("INNERTUBE_CLIENT_NAME")==="MWEB"&&(z=!0,C=15E3);return new Promise(function(w,K){navigator.geolocation.getCurrentPosition(function(G){e.mostRecentPosition=G;w(G)},function(G){K(G)},{enableHighAccuracy:z,
maximumAge:0,timeout:C})})};
_.BJ.prototype.createUnpluggedLocationInfo=function(e){var z={};e=e.coords;if(e==null?0:e.latitude)z.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)z.longitudeE7=Math.floor(e.longitude*1E7);if(e==null?0:e.accuracy)z.locationRadiusMeters=Math.round(e.accuracy);return z};
_.BJ.prototype.createLocationInfo=function(e){var z={};e=e.coords;if(e==null?0:e.latitude)z.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)z.longitudeE7=Math.floor(e.longitude*1E7);return z};var TrU=function(e,z){var C=Fu();e||(e="unknown");z||(z="unknown");e="MAIN_APP_WEB_PAGE_TYPE_"+e.toUpperCase();e in iH4||(e="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");z="MAIN_APP_WEB_REQUEST_TYPE_"+z.toUpperCase();z in NAL||(z="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.MZ(C,{mainAppWeb:{pageType:e,requestType:z,isShellLoad:_.cR("IS_SHELL_LOAD",!1)}})},$f4={start:function(){_.MZ(Fh5(),{mainAppWeb:_.tU()})},
success:function(){_.rh(Fh5(),"SUCCESS")},
failure:function(){_.rh(Fh5(),"FAILURE")},
cancelled:function(){_.rh(Fh5(),"CANCELLED")}};var lJL,QRC,rr1;lJL=_.Kb(["/sw.js"]);QRC=_.Kb(["/sw.js?0"]);_.mfc=_.nJ(lJL);rr1=_.nJ(QRC);var aJU=function(){var e=Error.apply(this,arguments);this.message=e.message;"stack"in e&&(this.stack=e.stack)};
_.U(aJU,Error);_.y$.prototype.load=function(e){this.megabloxUrl_=_.j5("YPC_MB_URL");_.Vq(this.megabloxUrl_,(0,_.uZ)(function(){e&&e()},this))};
_.iLg=function(e,z,C,w,K,G,X,J,q,T,Q){_.UQ5(q);e.load((0,_.uZ)(function(){try{var m=G?G:_.j5("HL"),a=_.j5("SESSION_INDEX");_.xB4("client",function(){h_o("59",{helpCenterPath:"/youtube",locale:m,window:window}).JSC$10144_loadChatSupport({authuser:String(a)})})}catch(n){throw gP(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),K&&K(n),_.yG(n),n;
}n6s(this,z,C,w,K,G,X,J,q,T,Q)},e))};
_.y$.prototype.openFixFlowDialog=function(e,z,C,w){this.load((0,_.uZ)(function(){try{MPU(this,_.pd("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(e).withIntegratorCallback(z).load(C,w)}catch(K){throw _.yG(K),K;}},this))};
var MPU=function(e,z,C,w){var K=z.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.M("enable_window_constrained_buy_flow_dialog")&&(K=K.usingPopupStyle(_.pd("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));w&&(K=K.usingCloseCallback(w));z.bootstrap.fromPaymentsUrl(e.megabloxUrl_);e=z.bootstrap.asMashupMode(K);C=C?C:_.j5("HL");e.usingGaiaIndex(_.j5("SESSION_INDEX")).usingLocale(C).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.M("enable_google_payments_buyflow_material2_style_web")?
e.usingStyle(":m2;pc=#444;ac=#065fd4"):e.usingStyle(":md;pc=#444;ac=#065fd4");return e},n6s=function(e,z,C,w,K,G,X,J,q,T,Q){try{var m=_.pd("payments.business.integration");
if(!m)throw new aJU("payments.business.integration is undefined");var a=m.standaloneContextAuthId.forUserId(),n=MPU(e,m,G,function(){IR8(!1);J&&J()});
X&&n.usingServerAnalyticsEventHandler(X);var H=n.inStandaloneContext(a).buyFlow(function(I){if(I&&(!I.integratorData||I.integratorData===""||I.error))if(I.error!=null)if(String(I.error)==="-1")_.vU8(q);else{var L=String(I.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";gP(10,Q,L,I.debugCode);_.jB(L,q,I.debugCode);L=new _.uh("PAYMENT_ERROR_MESSAGE::"+I.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+I.internalErrorDetails);
_.yG(L)}else gP(10,Q,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.jB("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",q,"EMPTY_INTEGRATOR_DATA"),_.yG(Error("bg"));C&&(IR8(!1),C(I))}).withEncryptedParameters(z);
T&&H.withClientParameters(W7S(_.u8g(T)));H.load(function(){gP(24,Q);_.Vu("ttc",void 0,"commerce_transaction");RS("commerce_transaction");w&&(w(),IR8(!0))},function(I){if(I==null?0:I.debugCode)var L=I==null?void 0:I.debugCode;
else if(!I||(I==null?0:I.debugCode))L="EMPTY_LOAD_FAILURE_ERROR",_.yG(Error(L));else{L="EMPTY_LOAD_FAILURE_DEBUG_CODE";var h=new _.uh("LOAD_FAILURE:"+I.message," DEBUG_CODE:"+L);_.yG(h)}gP(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",L);_.jB("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",q,L);_.yG(I);K&&K(I)})}catch(I){throw I instanceof aJU&&(gP(10,Q,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),K&&K(I)),_.yG(I),I;
}};var r6U;r6U=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.uEE=function(e,z){z=z===void 0?!1:z;e=r6U.test(e)?_.EC(e):null;!z&&window.payments||!e?(e=_.cj(),z=e.promise,e.resolve()):z=_.mxa(e,{attributes:{"data-payments-main":"",id:"payment-lib"}});return z};var H86;H86=_.Kb(["//www.googletagmanager.com/gtm.js?id=",""]);_.oQ=function(e,z){_.b3(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:z}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.j5("GL")}),z=_.Lh("SCRIPT"),z.async=!0,_.Jn(z,_.nJ(H86,e)),z.id="gtm",e=document.getElementsByTagName("script"),e.length==0?document.head.appendChild(z):(e=e[0],e.parentNode.insertBefore(z,e)))};
_.Gr=function(e){if(e=JSON.parse(e))window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)};var Ufa,v6c;Ufa=_.Kb(["https://clients2.google.com/gr/gr_sync.js"]);_.fak=function(){};
_.fak.prototype.init=function(){if(v6c()){var e=_.cj();e.resolve();return e.promise}return _.mxa(_.nJ(Ufa)).then(function(){if(!v6c())throw Error("cg");},function(){throw Error("dg");
})};
_.SPs=function(){if(!v6c())return"";var e=window.google.gr;e.init({async:{schedule:"sync"},merchantId:"youtube"});e.start();e=e.finish();return e==null?"":e};
v6c=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.V=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.U(_.V,PolymerFakeBaseClassWithoutHtml);_.rO=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.U(_.rO,PolymerFakeBaseClassWithoutHtml);var WvL=window.ShadyDOM;var kMs,XOg,xMh,TFL,lQ4,Qz8,Yq,bE;kMs=_.M("enable_shadydom_free_scoped_query_methods");XOg=_.M("enable_shadydom_free_scoped_node_methods");xMh=_.M("enable_shadydom_free_scoped_readonly_properties_batch_one");TFL=_.M("enable_shadydom_free_parent_node");lQ4=_.M("enable_shadydom_free_children");Qz8=_.M("enable_shadydom_free_last_child");Yq=window.ShadyDOM;_.x$=Yq&&Yq.noPatch&&Yq.wrap?Yq.wrap:Yq?function(e){return Yq.patch(e)}:function(e){return e};
bE=function(e){if(e instanceof ShadowRoot)this.host=(0,_.x$)(e.host),this.root=e;else if(e.$$){this.host=(0,_.x$)(e);var z;this.root=(z=e.root)!=null?z:this.host}else if(e.polymerController){this.host=(0,_.x$)(e);var C;this.root=(C=this.host.shadowRoot)!=null?C:this.host}else this.root=this.host=(0,_.x$)(e)};
Jzm();qdm();mMk();aQ7();$Mg();var IJS={querySelector:function(e,z){z=DQs(z,eL(e));return _.M("sunnydom_native_scoped_query_selectors")?Rck(e,z):Rck(_.z8(e),z)},
querySelectorAll:function(e,z){z=DQs(z,eL(e));return _.M("sunnydom_native_scoped_query_selectors")?Array.from(Lvs(e,z)):Lvs(_.z8(e),z)}},WQT={appendChild:function(e,z){var C=eL(e),w=_.pW(z);
return _.YdE(_.z8(e),C?_.G8(z,C,w):z)},
cloneNode:function(e,z){var C=_.pW(e);e=_.z8(e);z=Zc(e).prototype.cloneNode.call(e,z);return C?Y$(z,C):z},
contains:function(e,z){var C=eL(e),w=_.pW(z);return C!==w?!1:bDm(e,z)},
insertBefore:function(e,z,C){var w=eL(e),K=_.pW(z);e=_.z8(e);z=w?_.G8(z,w,K):z;return Zc(e).prototype.insertBefore.call(e,z,C)},
removeChild:function(e,z){var C=eL(e);e=_.z8(e);z=C?Y$(z,C):z;return Zc(e).prototype.removeChild.call(e,z)},
replaceChild:function(e,z,C){var w=eL(e),K=_.pW(z);z=w?_.G8(z,w,K):K?Y$(z,K):z;C=w?Y$(C,w):C;e=_.z8(e);return Zc(e).prototype.replaceChild.call(e,z,C)},
getRootNode:function(e,z){z=z===void 0?{composed:!0}:z;var C;if(((C=z)!=null?C:{}).composed)e=GMo(e);else{z=e;for(e=O$5(e);e;)z=e,e=Nbg(e);e=z}return e}},MU5=xMh?{firstChild:eE5,
nextSibling:Arg,previousSibling:pKL,firstElementChild:zEg,lastElementChild:wO1,nextElementSibling:cr4,previousElementSibling:Z$k,childNodes:KqL}:{};TFL&&(MU5.parentNode=yr4);lQ4&&(MU5.children=o0k);Qz8&&(MU5.lastChild=CWk);kMs&&n0g(IJS);XOg&&n0g(WQT);rzE();var HD4=function(e){this.node=e instanceof ShadowRoot?e.host:e};
UME();v08();var PW8=new WeakMap;var Lqm=Symbol("Bd");var VU7=new Set(["tap","track","down","up"]),fQ4=_.M("pbcm_fi_query_decorators");var bz=function(){return _.rO.apply(this,arguments)||this};
_.U(bz,_.rO);_.Y=bz.prototype;_.Y.getState=function(){return this.store.getState()};
_.Y.dispatch=function(e){this.store.dispatch(e)};
_.Y.beforeRegister=function(){if(this&&typeof this==="object"){var e;var z=!!this.useSignals||!((e=this.polymerController)==null||!e.useSignals)}else z=!1;if(!z&&this.properties)for(z=_.b(Object.keys(this.properties)),e=z.next();!e.done;e=z.next()){var C=e.value;e=this.properties[C];if(e.selector){if(e.computed)throw Error("kg");C=["reduxPropertiesRecomputeTrigger",'"'+C+'"'].concat(_.s_(e.selectorArgs||[])).join(",");e.computed="recomputeReduxSelector("+C+")"}}};
_.Y.attached=function(){var e=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){e.reduxPropertiesRecomputeTrigger++}));
_.M("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.Y.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.Y.recomputeReduxSelector=function(e,z){var C=_.yL.apply(2,arguments),w=this.properties[z].selector;if(!w)throw Error("ig`"+z);return w.apply(null,[this.store.getState()].concat(_.s_(C)))};
_.Y.select=function(e){var z=_.yL.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return e.apply(null,[this.store.getState()].concat(_.s_(z)))};
_.lB.Object.defineProperties(bz.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
bz.prototype.recomputeReduxSelector=bz.prototype.recomputeReduxSelector;_.d([_.F(),_.B("design:type",Number)],bz.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.d([_.HI()],bz);var Xr=[],DML={},Vi=function(){return mA.apply(this,arguments)||this};
_.U(Vi,mA);Vi.prototype._addPropertyEffect=function(e,z,C){if(z==="__observeEffects"&&C){var w,K=(w=C.info.method)!=null?w:C.info.methodName;if(K){var G=this[K];this[K]=function(){Xr.push(K);try{G==null||G.apply(this,arguments)}finally{Xr.pop()}}}}_.cm._addPropertyEffect.apply(this,[e,
z,C])};
Vi.prototype._setPendingProperty=function(e,z,C){if(Xr.length){var w=Xr[Xr.length-1],K;(K=DML[this.is])!=null&&K.has(w)||(iD7(this.is,w),_.gm("polymerPropertyChangedInObserver",{componentName:this.is,observerName:w}))}return _.cm._setPendingProperty.apply(this,[e,z,C])};
_.d([kvs()],Vi);var NFh=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),BFo,I3={};_.M("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=I3);var R3=function(){return _.rO.apply(this,arguments)||this};
_.U(R3,_.rO);R3.prototype._setUnmanagedPropertyToNode=function(e,z,C){e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!0);if(C!==e[z]||typeof C==="object")e[z]=C;e.is&&e.polymerController&&e.polymerController!==e&&WI(e.is,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");e.loggingStatus&&(e.loggingStatus.isDeclarativeExternal=!1)};
_.d([_.HI()],R3);sz7()&&(KG.prototype._setUnmanagedPropertyToNode=(new R3)._setUnmanagedPropertyToNode);_.oAo={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(e){},set polymerController(e){}}]};var FC=function(){var e=mA.apply(this,arguments)||this;e.json=function(){};
return e};
_.U(FC,mA);FC.prototype.equals=function(e,z){return e===z};
FC.prototype.isEmpty=function(e){var z;(z=!e)||(z=_.B1(e)&&e.length===0);return z};
_.d([kvs()],FC);var PFs=function(e){e=kak(e);TK.call(this,e)};
_.U(PFs,TK);PFs.prototype.addProvider=function(e){e=e.key?e:kak([e])[0];var z=this.keyIdToIndex.get(e.key.id);if(z){if(czg(e,this.providers[z]))throw Error("lg`"+e.key.displayName);}else TK.prototype.addProvider.call(this,e)};
var RH4=new PFs([]);var LQL=!1;var CJk={};LQL||(zFk(),LQL=!0);
CJk.InjectBehavior={initializeInjection:function(){var e=this.provide;try{if((e=e!=null?e:[])&&e.length>0)for(var z=kak(e),C=_.b(z),w=C.next();!w.done;w=C.next())RH4.addProvider(w.value);var K=new Set;Az7(this.behaviors||[],K);z={};for(var G=_.b(K),X=G.next();!X.done;X=G.next()){var J=X.value;J.inject&&Object.assign(z,J.inject)}this.inject&&Object.assign(z,this.inject);for(var q=_.b(Object.keys(z)),T=q.next();!T.done;T=q.next()){var Q=T.value,m=z[Q];try{this[Q]=RH4.resolve(m)}catch(a){throw a;}}}catch(a){throw Error(a.message);
}}};var KYg;var GnE=/\bclass\b/.test(function(){}.toString()),XPk=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var hHc=function(e){this.wasDefined=!0;Array.isArray(e)||e instanceof Array?(this.JSC$13676_getImpl=e[0],this.JSC$13676_setImpl=e[1]):this.JSC$13676_getImpl=e};
_.Y=hHc.prototype;_.Y.getWithPath=function(e){return q58(this.JSC$13676_getImpl(),e)};
_.Y.setWithPath=function(e,z){var C=this;if(e.length)throw Error("mg");if(!this.JSC$13676_setImpl)throw Error("ng");OH(function(){C.JSC$13676_setImpl(z)})};
_.Y.notifyPath=function(){throw Error("og");};
_.Y.notifySplices=function(){throw Error("pg");};
_.Y.getChangeRecordSignal=function(e,z){var C=this;if(e.length)throw Error("qg");return function(){var w=C.getWithPath(e);return{path:z!=null?z:"",base:w,value:w}}};
_.Y.getSplicesSignal=function(){throw Error("rg");};
_.Y.getPathMutationSignal=function(){throw Error("sg");};
_.Y.pop=function(){throw Error("tg");};
_.Y.push=function(){throw Error("ug");};
_.Y.splice=function(){throw Error("vg");};
_.Y.unshift=function(){throw Error("wg");};var JY=function(e){var z=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(e)||e instanceof Array?(this.JSC$13681_getImpl=e[0],this.JSC$13681_setImpl=e[1]):this.JSC$13681_getImpl=e;this.wasDefined=!1;_.UH(function(){z.wasDefined=z.JSC$13681_getImpl()!==void 0})};
JY.prototype.getWithPath=function(e){return q58(this.JSC$13681_getImpl(),e)};
JY.prototype.setWithPath=function(e,z){var C=this;if(e[e.length-1]!=="*"&&e[e.length-1]!=="splices"){var w=_.UH(function(){return C.getWithPath([])});
if(e.length===0){if(!this.JSC$13681_setImpl)throw Error("xg");if(w===z)return;this.wasDefined||(this.wasDefined=z!==void 0);OH(function(){C.JSC$13681_setImpl(z)})}else{for(var K=0;K<e.length-1;K++){if(!w)return;
w=w[e[K]]}K=e[e.length-1];w&&(w[K]=z);this.wasDefined||(this.wasDefined=e.length>1||z!==void 0)}O8C(this,e,{pathComponents:e,value:z})}};
JY.prototype.notifyPath=function(e,z){e.length===0?z&&this.setWithPath(e,z.value):O8C(this,e,{pathComponents:e,value:z==null?void 0:z.value,fallbackWhenUndefined:z==null?void 0:z.value})};
var O8C=function(e,z,C,w){if(e.setMutationSignal){var K=++e.mutationIndex,G=[e.observedPath],X=e.observedPath,J;z.length===0&&(J=X);for(var q=0;q<z.length;q++){var T=X.subPaths[z[q]];if(!T)break;G.push(T);X=T;q===z.length-1&&(J=T)}for(z=!1;G.length;)X=G.shift(),X.data={index:K,mutation:C,spliceMutationIndex:w},z||(z=X===J),z&&G.push.apply(G,_.s_(Object.values(X.subPaths)));OH(function(){e.setMutationSignal(K)})}};
JY.prototype.notifySplices=function(e,z){var C=this,w=_.UH(function(){return C.getWithPath(e)}),K=[].concat(_.s_(e),["splices"]);
O8C(this,K,{pathComponents:K,value:{indexSplices:z}});if(w==null?0:w.length)z=this.mutationIndex,K=[].concat(_.s_(e),["length"]),O8C(this,K,{pathComponents:K,value:w.length},z)};
var E64=function(e,z,C,w,K,G){e.notifySplices(C,[{index:w,addedCount:K,removed:G,object:z,type:"splice"}])},FQX=function(e,z){e=e.observedPath;
for(var C=0;C<z.length;C++){var w=z[C],K=e.subPaths[w];K||(K={pathComponents:z.slice(0,C+1),subPaths:{}},e.subPaths[w]=K);e=K}},fJS=function(e,z,C){FQX(e,z);
if(!e.getMutationSignal){var w=_.b(_.II(e.mutationIndex,void 0,"sNBMCd"));e.getMutationSignal=w.next().value;e.setMutationSignal=w.next().value}var K=e.getMutationSignal;return _.hG(function(){K();return C(VPS(e,z))},void 0,"zvsXEd")};
JY.prototype.getChangeRecordSignal=function(e,z){var C=this,w=this.mutationIndex,K;return fJS(this,e,function(G){if(G&&G.index>w){var X=G.mutation;w=G.index;K=void 0}G=_.UH(function(){return C.getWithPath(e)});
if(X){var J=X.pathComponents[X.pathComponents.length-1],q=[].concat(_.s_(X.pathComponents));if(J==="splices"||J==="length")return{base:G,path:(z?[z].concat(_.s_(q)):q).join("."),value:X.value};var T=e.length>q.length?e:q,Q;return{base:G!=null?G:X.fallbackWhenUndefined,path:(z?[z].concat(_.s_(T)):T).join("."),value:(Q=_.UH(function(){return C.getWithPath(T)}))!=null?Q:X.fallbackWhenUndefined}}K||(K={base:G,
path:(z?[z].concat(_.s_(e)):e).join("."),value:G});return K})};
JY.prototype.getSplicesSignal=function(e){var z=this.mutationIndex,C;return fJS(this,e,function(w){if(w&&w.index>z&&w.spliceMutationIndex!==z){var K=w.mutation;z=w.index;C=void 0}return K&&K.pathComponents[K.pathComponents.length-1]==="splices"?C=w=K.value:C})};
JY.prototype.getPathMutationSignal=function(e){var z=this;FQX(this,e);if(!this.getMutationSignal){var C=_.b(_.II(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=C.next().value;this.setMutationSignal=C.next().value}var w=this.getMutationSignal,K=this.mutationIndex,G;return _.hG(function(){w();var X=VPS(z,e);if(X&&X.index>K&&X.mutation&&xOk(X.mutation.pathComponents,e)){var J=X.mutation;K=X.index}if(!G||K!==G.index){var q,T;X=(T=_.UH(function(){return z.getWithPath(e)}))!=null?T:(q=J)==null?
void 0:q.fallbackWhenUndefined;
G={index:K,value:X}}return G},void 0,"RXYC9b")};
var VPS=function(e,z){e=e.observedPath;z=_.b(z);for(var C=z.next();!C.done;C=z.next())e=e.subPaths[C.value];return e.data};
JY.prototype.pop=function(e){var z=this,C=_.UH(function(){return z.getWithPath(e)});
if(!(C instanceof Array))throw Error("yg");var w=C.length>0,K=C.pop();w&&E64(this,C,e,C.length,0,[K]);return K};
JY.prototype.push=function(e){var z=_.yL.apply(1,arguments),C=this,w=_.UH(function(){return C.getWithPath(e)});
if(!(w instanceof Array))throw Error("zg");var K=w.length,G=w.push.apply(w,_.s_(z));z.length&&E64(this,w,e,K,z.length,[]);return G};
JY.prototype.splice=function(e,z,C){var w=_.yL.apply(3,arguments),K=this,G=_.UH(function(){return K.getWithPath(e)});
if(!(G instanceof Array))throw Error("Ag");z<0?z=G.length-Math.floor(-z):z&&(z=Math.floor(z));var X=G.splice.apply(G,[z,C].concat(_.s_(w)));(w.length||X.length)&&E64(this,G,e,z,w.length,X);return X};
JY.prototype.unshift=function(e){var z=_.yL.apply(1,arguments),C=this,w=_.UH(function(){return C.getWithPath(e)});
if(!(w instanceof Array))throw Error("Bg");var K=w.unshift.apply(w,_.s_(z));z.length&&E64(this,w,e,0,z.length,[]);return K};var kq=function(e,z,C){this.model=e;this.unknownSignalResolver=z;this.options=C;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];z=_.b(rah());e=z.next().value;z=z.next().value;this.owner=e;this.disposeImpl=z};
kq.prototype.dispose=function(){if(!this.isDisposed){for(var e=_.b(this.childSignalProxies),z=e.next();!z.done;z=e.next())z.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var SKh=function(e,z){e=_.kJ(e.owner);try{z()}finally{_.kJ(e)}};
kq.prototype.effect=function(e){SKh(this,function(){_.N6(e,"h")})};
var uJ6=function(e,z){e.options!=null||(e.options={});var C;(C=e.options).immutableProps!=null||(C.immutableProps=new Set);e.options.immutableProps.add(z)},jBk=function(e,z){z=""+z;
dfL(e,z);var C,w;if((C=e.options)==null?0:(w=C.immutableProps)==null?0:w.has(z))return!0;var K;if((K=e.model.__signalCache)==null?0:K.has(z))C=e.model.__signalCache.get(z),Array.isArray(C)&&uJ6(e,z);var G,X,J;return(J=(G=e.options)==null?void 0:(X=G.immutableProps)==null?void 0:X.has(z))!=null?J:!1},Dfc=function(e,z){var C;
e.unknownSignalResolver&&(C=e.unknownSignalResolver(z));var w,K;((w=e.options)==null?0:(K=w.immutableProps)==null?0:K.has(z))?C!=null||(C=new hHc(_.II(e.model[z],void 0,"By5iP"))):C!=null||(C=new JY(_.II(e.model[z],void 0,"CXghNc")));var G=e.model.hostElement;Object.defineProperty(e.model,z,{get:function(){g04(G,z);return C.getWithPath([])},
set:function(X){PI(G,z);e.setWithPath([z],X)},
configurable:!0});return C},dfL=function(e,z){var C,w,K;
((C=e.model.__signalCache)==null||!C.has(z))&&((w=e.options)==null?0:(K=w.externalSignalProps)==null?0:K.has(z))&&e.model[z]},DL=function(e,z){z=""+z;
var C=e.signalCache[z];if(C!==void 0)return C;C=!1;dfL(e,z);var w;if((w=e.model.__signalCache)==null?0:w.has(z))if(C=e.model.__signalCache.get(z),Array.isArray(C))C=!0,uJ6(e,z);else return e.signalCache[z]=e.model.__signalCache.get(z).signal,e.signalCache[z];var K,G;w=(G=(K=e.options)==null?void 0:K.reactivityMode)!=null?G:0;var X,J;if(!((X=e.options)==null?0:(J=X.reactiveProps)==null?0:J.has(z))&&!C&&w===1)throw Error("Cg`"+z);K=C?i8S(e,z):Dfc(e,z);return e.signalCache[z]=K},i8S=function(e,z){var C=
Object.getOwnPropertyDescriptor(e.model.constructor.prototype,z),w=function(){return e.model[z]};
return new hHc(C&&C.get&&!C.set?w:[w,function(K){e.model[z]=K}])};
kq.prototype.getWithPath=function(e){var z=_.b(e);e=z.next().value;z=b0(z);g04(this.model.hostElement,""+e);return DL(this,e).getWithPath(z)};
kq.prototype.setWithPath=function(e,z){if(e.length){PI(this.model.hostElement,e.join("."));var C=_.b(e);e=C.next().value;C=b0(C);DL(this,e).setWithPath(C,z)}};
kq.prototype.getPathMutationSignal=function(e){var z=_.b(e);e=z.next().value;z=b0(z);return DL(this,e).getPathMutationSignal(z)};
kq.prototype.notifyPath=function(e,z){var C=_.b(e);e=C.next().value;C=b0(C);DL(this,e).notifyPath(C,z)};
var Nrs=function(e,z){if(z.type==="literal")return function(){return{rootWasDefined:!0,value:z.value}};
var C=uE(z.path),w=_.b(C),K=w.next().value;w=b0(w);var G,X;if(z.type==="path"&&(C.length===1||((G=e.options)==null?0:(X=G.immutableProps)==null?0:X.has(K))))return function(){var m=e.getWithPath(C.slice(0,1));m=q58(m,C.slice(1));return{rootWasDefined:DL(e,C[0]).wasDefined,value:m}};
var J=DL(e,K);if(z.type==="path"){var q=J.getPathMutationSignal(w);return function(){var m,a=(m=q())==null?void 0:m.value;return{rootWasDefined:J.wasDefined,value:a}}}if(z.type==="splices"){var T=J.getSplicesSignal(w);
return function(){var m=T();return{rootWasDefined:J.wasDefined,value:m}}}var Q=J.getChangeRecordSignal(w,""+K);
return function(){var m=Q();return{rootWasDefined:J.wasDefined,value:m}}},a9L=function(e,z,C){var w=C.map(function(J){return Nrs(e,J)}),K=C.length===0,G=[],X=C.length!==1||C[0].type!=="path"?!1:!0;
e.effect(function(){for(var J=w.length,q=[],T=!!G.length,Q=0;Q<J;Q++){var m=w[Q](),a=m.rootWasDefined;m=m.value;K||(K=a);q[Q]=m;X&&(q[Q+J]=T?G[Q]:q[Q],G[Q]=m)}K&&ja(e.owner,function(){return void z.apply(null,_.s_(q))})})},TCL=function(e,z,C,w,K){var G=DL(e,z);
K!==void 0&&G.setWithPath([],K);a9L(e,function(){var X=_.yL.apply(0,arguments);PI(e.model.hostElement,z,!0);G.setWithPath([],C.apply(null,_.s_(X)))},w)};
kq.prototype.arrayPush=function(e){var z=_.yL.apply(1,arguments),C=_.b(e),w=C.next().value;C=b0(C);w=DL(this,w);return w.push.apply(w,[C].concat(_.s_(z)))};
kq.prototype.arraySplice=function(e,z,C){var w=_.yL.apply(3,arguments),K=_.b(e),G=K.next().value;K=b0(K);G=DL(this,G);return G.splice.apply(G,[K,z,C].concat(_.s_(w)))};
kq.prototype.arrayUnshift=function(e){var z=_.yL.apply(1,arguments),C=_.b(e),w=C.next().value;C=b0(C);w=DL(this,w);return w.unshift.apply(w,[C].concat(_.s_(z)))};
kq.prototype.notifySplices=function(e,z){var C=_.b(e);e=C.next().value;C=b0(C);DL(this,e).notifySplices(C,z)};var sRS=!0,Brs=!1,yF1=!1,tPS=!1,g6S=0;tPS=!1;g6S=0;sRS=!0;Brs=yF1=!1;var PJs=/([^\s]+?)\(([\s\S]*)\)/,vA1=/\.([^.]+)$/,LYN=/\\,/g,HQE=/&comma;/g,UOk=/\\(.)/g,RFs=[],I9N={"*":"wildcard",splices:"splices"};var DO5=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"),f9k=/[A-Z]/,jRa=["class","hidden","id","on-dom-change"],NCo=new Set([].concat(_.s_(jRa),
["if","notify-dom-change","restamp"])),sBg=new Set([].concat(_.s_(jRa),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),BC8=new Set(["restamp"]);var Nsg=new Set(["className","id"]);var cao=Symbol(),wSh=window;var kS1=window;var mjo=0,T_m=0,iE=[],Q_8=0,xj1=!1,lqo=document.createTextNode("");(new window.MutationObserver($j1)).observe(lqo,{characterData:!0});var sx=new Map,NH=0,y6a=function(e){this.mappedHandleId=e},nD1=function(e,z,C,w){this.mappedHandleId=e;
var K=this;this.mappedHandleId=e;this.callback=z;this.waitTime=C;this.schedulerPriority=w;this.handleId=_.c5.addJob(function(){K.callback();sx.delete(K.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.U(nD1,y6a);nD1.prototype.cancel=function(){_.c5.cancelJob(this.handleId);sx.delete(this.mappedHandleId)};
var MRo=function(e,z){this.mappedHandleId=e;var C=this;this.mappedHandleId=e;this.callback=z;this.handleId=aqN(function(){C.callback();sx.delete(C.mappedHandleId)})};
_.U(MRo,y6a);MRo.prototype.cancel=function(){var e=this.handleId-T_m;e<0||iE.length<=e||(iE[e]=null);sx.delete(this.mappedHandleId)};var vD8=function(){};
vD8.prototype.cancel=function(){this.jobHandle!==void 0&&(rFo(this.jobHandle),this.jobHandle=void 0)};
vD8.prototype.run=function(e,z,C){var w=this;this.cancel();this.callback=e;this.jobHandle=_.BI(function(){e();w.callback=void 0},z,C)};
vD8.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Hag=new WeakMap;var c6a=nc(function(e){for(var z=e,C=0;C<3;C++)z=Object.getPrototypeOf(z);delete z.prototype.connectedCallback;var w=function(){return e.apply(this,arguments)||this};
_.U(w,e);w.prototype._attachDom=function(K){if(!K)return null;var G=(0,_.x$)(this.hostElement);G.attachShadow({mode:"open",shadyUpgradeFragment:K});G.shadowRoot.appendChild(K);return G.shadowRoot};
w.prototype._takeAttributes=function(){for(var K=this.hostElement.attributes,G=0;G<K.length;G++){var X=K[G],J=void 0,q=void 0;(q=(J=this).__attributeReaction)==null||q.call(J,X.name,null,X.value)}};
w.prototype._readyClients=function(){e.prototype._readyClients.call(this);this.root=this};
w.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);e.prototype.connectedCallback.call(this)};
_.lB.Object.defineProperties(w,{template:{configurable:!0,enumerable:!0,get:function(){return w.prototype._template}}});
return w}),A6a=nc(function(e){var z=function(){return e.apply(this,arguments)||this};
_.U(z,e);z.prototype.created=function(){if(this.__notifyEffects)for(var C=_.b(Object.values(this.__notifyEffects)),w=C.next();!w.done;w=C.next()){w=_.b(w.value);for(var K=w.next();!K.done;K=w.next())K.value.fn=R51}if(this.__reflectEffects)for(C=_.b(Object.values(this.__reflectEffects)),w=C.next();!w.done;w=C.next())for(w=_.b(w.value),K=w.next();!K.done;K=w.next())K.value.fn=Lo7};
z.prototype._addEventListenerToNode=function(C,w,K){C=gO(C);yr(C,w,K)||e.prototype._addEventListenerToNode.call(this,C,w,K)};
z.prototype._removeEventListenerFromNode=function(C,w,K){C=gO(C);cQ(C,w,K)||e.prototype._removeEventListenerFromNode.call(this,C,w,K)};
z.prototype._propertiesChanged=function(C,w,K){if(this.__dataToNotify&&this.__notifyEffects)for(var G=_.b(Object.keys(this.__dataToNotify)),X=G.next();!X.done;X=G.next()){X=X.value;var J=P_k(X);this.__notifyEffects[J]||delete this.__dataToNotify[X]}else this.__dataToNotify=null;e.prototype._propertiesChanged.call(this,C,w,K)};
z.prototype.fire=function(C,w,K){w=w===void 0?{}:w;var G;return _.pi(gO((G=K==null?void 0:K.node)!=null?G:this),C,w,K)};
z.prototype._ensureAttribute=function(C,w){var K=gO(this);K.hasAttribute(C)||dO(K,w,C)};
z.prototype.isLightDescendant=function(C){var w=gO(this);return gO(w)!==C&&_.XC(w).contains(C)&&_.XC(w).getRootNode()===_.XC(C).getRootNode()};
return z});
_.Ap.ready=function(){var e;((e=this.hostElement)!=null?e:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var z;((z=this.hostElement)!=null?z:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.oY._subscribeIronResize=function(e){var z;((z=e.hostElement)!=null?z:e).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.oY._unsubscribeIronResize=function(e){var z;((z=e.hostElement)!=null?z:e).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var ED1=[Array,Boolean,Date,Number,Object,String],yi=function(e,z,C,w){this.polySiInfo=e;this.polySiParams=z;this.polySiContext=C;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;w||this instanceof HTMLElement&&(w=this);if(!w)throw Error("Jg");this.allowedProps=z.allowedProps;this.hostElement=w;this.is=e.is;this.upgradeDisabled=!!z.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");e=new Set(z.reactiveSchemas.filter(function(K){return K.type!==
"observe"}).map(function(K){return K.propertyKey}));
this.signalProxy=new kq(this,void 0,{reactiveProps:e,reactivityMode:z.reactivityMode});this.__dataHasAccessor={};z=_.b(z.reactiveSchemas);for(e=z.next();!e.done;e=z.next())e=e.value,e.type==="signal"&&(this.__dataHasAccessor[e.propertyKey]=!0);this.upgradeDisabled||Z8T(this)};
yi.prototype.getExtraMethodsToForward=function(){return[]};
var Z8T=function(e){e.polySiContext.didRegister||(e.registered(),e.polySiContext.didRegister=!0);e.polySiContext.finalizedTemplate||(e.polySiContext.finalizedTemplate={},e.polySiParams.templateGetter&&(e.polySiContext.finalizedTemplate.processedTemplate=q$N(e.polySiParams.templateGetter,e.polySiParams.is)));pYa(e);var z=e.hostElement;z.loggingStatus!=null||(z.loggingStatus={});z.loggingStatus.isInitializing=!0;_.UH(function(){return void e.created()});
z.loggingStatus.isInitializing=!1;e.isPolySiElementConnected&&e36(e)},e36=function(e){e.didCallReady||(_.UH(function(){return void e.ready()}),e.didCallReady=!0);
e.isAttached=!0;e.attached()};
_.Y=yi.prototype;_.Y.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||e36(this)};
_.Y.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.Y.attributeChangedCallback=function(e,z,C){if(this.upgradeDisabled)e==="disable-upgrade"&&C===null&&(this.upgradeDisabled=!1,Z8T(this));else if(z!==C){var w=_.Jw(e),K=this.polySiContext.typesForSignals[w];if(K&&(!this.reflecting||_.M("polysi_attribute_changed_serializing_killswitch"))){switch(K){case Object:try{var G=JSON.parse(C)}catch(J){G=C}break;case Array:try{G=JSON.parse(C)}catch(J){G=null}break;case Date:G=isNaN(C)?String(C):Number(C);G=new Date(G);break;case Boolean:G=C!==null;break;case Number:G=
Number(C);break;default:G=C}this[w]=G}w=_.b(this.polySiParams.behaviors);for(K=w.next();!K.done;K=w.next())G=void 0,(G=K.value.attributeChanged)==null||G.call(this,e,z,C);var X;(X=this.attributeChanged)==null||X.call(this,e,z,C)}};
_.Y.attributeChangedCallbackWrapper=function(e,z,C){this.attributeChangedCallback(e,z,C)};
_.Y.setPropertiesFromInitialAttributeValues=function(){for(var e=0;e<this.hostElement.attributes.length;e++){var z=this.hostElement.attributes[e];(z.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(z.name))&&this.attributeChangedCallback(z.name,null,z.value)}};
_.Y.created=function(){this.provide=this.polySiParams.provide;var e;(e=this.initializeInjection)==null||e.call(this);e=_.b(this.polySiParams.reactiveSchemas);for(var z=e.next();!z.done;z=e.next())z=z.value,z.type==="signal"&&(this.mutablePropNames.add(z.propertyKey),DL(this.signalProxy,z.propertyKey));Oao(this,this.polySiInfo,this.polySiParams.behaviors);e=_.b(this.polySiParams.reactiveSchemas);for(z=e.next();!z.done;z=e.next())z=z.value,z.type==="signal"&&z.value!==void 0&&(this.signalProxy.model[z.propertyKey]=
typeof z.value==="function"?z.value.call(this):z.value);if(this.polySiParams.signalProperties)for(e=_.b(this.polySiParams.signalProperties),z=e.next();!z.done;z=e.next()){z=z.value;var C=void 0;((C=this.__signalCache)==null?0:C.has(z))||(this.signalProxy.model[z]=void 0)}tPS||z3g(this);h51(this);e=_.b(this.polySiParams.behaviors);for(z=e.next();!z.done;z=e.next())C=void 0,(C=z.value.created)==null||C.call(this);var w;(w=this.polySiInfo.created)==null||w.call(this)};
_.Y.registered=function(){var e=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var z=Object.getPrototypeOf(this);z.addReactiveSchema=function(J){e.polySiParams.reactiveSchemas.push(J)};
for(var C=_.b(this.polySiParams.behaviors),w=C.next();!w.done;w=C.next()){var K=void 0;(K=w.value.beforeRegister)==null||K.call(z)}var G;(G=this.polySiInfo.beforeRegister)==null||G.call(z);z.addReactiveSchema=VR1;C=_.b(this.polySiParams.behaviors);for(w=C.next();!w.done;w=C.next())K=void 0,(K=w.value.registered)==null||K.call(z);var X;(X=this.polySiInfo.registered)==null||X.call(z)};
_.Y.ready=function(){var e;(e=this.beforeReady)==null||e.call(this);tPS&&z3g(this);var z;if(e=(z=this.polySiContext.finalizedTemplate)==null?void 0:z.processedTemplate){e=JF1(e.template,e.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:e.hasInsertionPoint,thisCtx:this});z=e.nodesById;e=e.root;var C=this.hostElement;var w=w===void 0?!1:w;C=(0,_.x$)(C);if(!C.attachShadow)throw Error("Hd");if(!C.shadowRoot||w)C.attachShadow({mode:"open",shadyUpgradeFragment:e}),C.shadowRoot.appendChild(e);
this.root=C.shadowRoot;this.$=z}CaS(this);w=_.b(this.polySiParams.behaviors);for(z=w.next();!z.done;z=w.next())e=void 0,(e=z.value.ready)==null||e.call(this);var K;(K=this.polySiInfo.ready)==null||K.call(this)};
_.Y.attached=function(){for(var e=_.b(this.polySiParams.behaviors),z=e.next();!z.done;z=e.next()){var C=void 0;(C=z.value.attached)==null||C.call(this)}var w;(w=this.polySiInfo.attached)==null||w.call(this)};
_.Y.detached=function(){for(var e=_.b(this.polySiParams.behaviors),z=e.next();!z.done;z=e.next()){var C=void 0;(C=z.value.detached)==null||C.call(this)}var w;(w=this.polySiInfo.detached)==null||w.call(this)};
var pYa=function(e){for(var z=_.b(e.polySiParams.behaviors),C=z.next();!C.done;C=z.next())if(C=C.value,C.listeners)for(var w in C.listeners)XS4(e,e.hostElement,w,C.listeners[w]);if(e.polySiInfo.listeners)for(var K in e.polySiInfo.listeners)XS4(e,e.hostElement,K,e.polySiInfo.listeners[K])},XS4=function(e,z,C,w,K){e=knL(e,w,K);
yr(z,C,e)||z.addEventListener(C,e);return e},z3g=function(e){for(var z=_.b(e.polySiParams.reactiveSchemas),C=z.next();!C.done;C=z.next())C=C.value,C.type==="compute"||C.type==="computeWithMethod"?$O1(e.signalProxy,C,e):C.type==="redux"?mOo(e.signalProxy,C,e.store):C.type==="signal"&&C.readOnly&&QBL(e.signalProxy,C)},CaS=function(e){for(var z=_.b(e.polySiParams.reactiveSchemas),C=z.next(),w={};!C.done;w={schema$jscomp$12:void 0},C=z.next())w.schema$jscomp$12=C.value,w.schema$jscomp$12.type==="notify"?
nAg(e.signalProxy,w.schema$jscomp$12,e.hostElement):w.schema$jscomp$12.type==="observe"?MZ8(e.signalProxy,w.schema$jscomp$12,e):w.schema$jscomp$12.type==="reflect"&&e.signalProxy.effect(function(G){return function(){var X=e.signalProxy.getWithPath([G.schema$jscomp$12.propertyKey]);
e.reflecting=!0;OQm(e.hostElement,G.schema$jscomp$12.propertyKey,X,!0);e.reflecting=!1}}(w));
if(e.reflectedAttributes)for(z=_.b(Object.entries(e.reflectedAttributes)),w=z.next(),C={};!w.done;C={key$jscomp$938:void 0,value$jscomp$10251:void 0},w=z.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;C.key$jscomp$938=w;C.value$jscomp$10251=K;e.signalProxy.effect(function(G){return function(){e.reflecting=!0;OQm(e.hostElement,G.key$jscomp$938,(0,G.value$jscomp$10251)(),!0);e.reflecting=!1}}(C))}};
_.Y=yi.prototype;_.Y._setPendingProperty=function(e,z){this.set(e,z);return!1};
_.Y._enableProperties=function(){};
_.Y._setPendingPropertyOrPath=function(e,z){this.notifyPath(e,z);return!1};
_.Y._addPropertyEffect=function(){};
_.Y._stampTemplate=function(){throw Error("Kg");};
_.Y.fire=function(e,z,C){z=z===void 0?{}:z;C=C===void 0?{}:C;var w,K,G={bubbles:(w=C.bubbles)!=null?w:!0,cancelable:!!C.cancelable,composed:(K=C.composed)!=null?K:!0},X;return _.pi(fqE((X=C.node)!=null?X:this.hostElement),e,z,G)};
_.Y.get=function(e,z){var C=uE(e);return z?q58(z,C):e==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(C)};
_.Y.linkPaths=function(){};
_.Y.listen=function(e,z,C){e=fqE(e);this.boundListeners!=null||(this.boundListeners=new WeakMap);var w=this.boundListeners.get(e);w||(w={},this.boundListeners.set(e,w));var K=z+C;w[K]||(w[K]=XS4(this,e,z,C))};
_.Y.notifyPath=function(e,z){this.signalProxy.notifyPath(uE(e),arguments.length===2?{value:z}:void 0)};
_.Y.canNotifyPath=function(e){return this.mutablePropNames.has(e)&&!jBk(this.signalProxy,e)};
_.Y.notifySplices=function(e,z){this.signalProxy.notifySplices(uE(e),z)};
_.Y.pop=function(e){var z=this.signalProxy;e=uE(e);var C=_.b(e);e=C.next().value;C=b0(C);return DL(z,e).pop(C)};
_.Y.push=function(e){var z=_.yL.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[uE(e)].concat(_.s_(z)))};
_.Y.set=function(e,z,C){if(C)throw Error("Lg");e==="hidden"?this.hostElement.hidden=!!z:this.signalProxy.setWithPath(uE(e),z)};
_.Y.setProperties=function(e){e=_.b(Object.entries(e));for(var z=e.next();!z.done;z=e.next()){var C=_.b(z.value);z=C.next().value;C=C.next().value;this[z]=C}};
_.Y.splice=function(e,z,C){var w=_.yL.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[uE(e),z,C].concat(_.s_(w)))};
_.Y.unlinkPaths=function(){};
_.Y.unlisten=function(e,z,C){e=fqE(e);if(this.boundListeners){var w=this.boundListeners.get(e);if(w){C=z+C;var K=w[C];K&&(cQ(e,z,K)||e.removeEventListener(z,K),delete w[C])}}};
_.Y.unshift=function(e){var z=_.yL.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[uE(e)].concat(_.s_(z)))};
_.lB.Object.defineProperties(yi.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 j_h=[Array,Boolean,Date,Number,Object,String];var AF1=!1;var qe=function(){var e=HTMLElement.apply(this,arguments)||this;e.restamp=!1;e.notifyDomChange=!1;e.JSC$13789_didCallConnected=!1;e.JSC$13789_renderDebouncer=null;e.disableTemplateUpdateSignalImpl=cI()?void 0:_.II(!1,void 0,"Ofhkwb");var z;e.getDisableTemplateUpdate=(z=e.disableTemplateUpdateSignalImpl)==null?void 0:z[0];var C;e.setDisableTemplateUpdate=(C=e.disableTemplateUpdateSignalImpl)==null?void 0:C[1];return e};
_.U(qe,HTMLElement);var wBo=function(e){e.conditionSignalImpl!=null||(e.conditionSignalImpl=new JY(_.II(!1,void 0,"gE52Fb")));return e.conditionSignalImpl};
_.Y=qe.prototype;_.Y.showHideChildren=function(e){K3S(this,e,this.if)};
_.Y.attributeChangedCallback=function(e,z,C){if(this.JSC$13789_didCallConnected)throw Error("Pg`"+e);e==="notify-dom-change"?this.notifyDomChange=C!==null:e==="restamp"&&(this.restamp=C!==null)};
_.Y.debounceRender=function(){this.JSC$13789_renderDebouncer=_.OJ(this.JSC$13789_renderDebouncer,ZV,this.JSC$13789_renderImpl.bind(this));_.EJ(this.JSC$13789_renderDebouncer)};
_.Y.disconnectedCallback=function(){var e=(0,_.x$)(this).parentNode;(!e||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e&&!e.host)&&ohX(this)};
_.Y.connectedCallback=function(){var e=this;this.JSC$13789_didCallConnected=!0;sRS?ZaL():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.M("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){wBo(e).getWithPath([]);e.debounceRender()})};
_.Y.render=function(){_.S1()};
_.Y.JSC$13789_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var e=this.if,z=!1;if(e){this.hasInstance()||(G7S(this),z=!0);a:{var C=(0,_.x$)(this).parentNode;if(this.hasInstance()){var w=this.instance.children;if((w==null?0:w.length)&&(0,_.x$)(this).previousSibling!==w[w.length-1])for(var K=0;K<w.length;K++)(0,_.x$)(C).insertBefore(w[K],this)}else{if(!C){C=!1;break a}YpU(this,C)}C=!0}if(!C)return}else this.restamp&&ohX(this);K3S(this,!1,e);e&&!z&&G7S(this);Brs&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.Y.hasInstance=function(){return!!this.instance};
var YpU=function(e,z){var C=e.parentSignalProxy;if(cI()){var w=_.b(_.II(!0,void 0,"dkzufd"));var K=w.next().value;w=w.next().value;C=e.parentSignalProxy}else{var G;var X=new kq((G=bua(e))!=null?G:{},function(q){var T=DL(e.parentSignalProxy,q).getChangeRecordSignal([]);q=_.II(void 0,void 0,"iG8Uwe");var Q=new JY(q);X.effect(function(){if(e.getDisableTemplateUpdate&&!e.getDisableTemplateUpdate()){var m=T();Q.notifyPath(uE(m.path),{value:m.value})}});
return Q});
e.parentSignalProxy.childSignalProxies.push(X);var J=C=X}C=JF1(e.templateInfo,e.templateInfo.nodeInfoList,C,{eventListenerHost:e.eventListenerHost,hasInsertionPoint:e.templateInfo.hasInsertionPoint,thisCtx:e.eventListenerHost,enabledSignal:cI()?K:void 0,getModel:function(){return bua(e)}}).root;
e.instance={root:C,children:[],hidden:!1,signalProxy:J,getTemplateUpdatesEnabled:K,setTemplateUpdatesEnabled:w};J=_.b(C.childNodes);for(K=J.next();!K.done;K=J.next())e.instance.children.push(K.value);(0,_.x$)(z).insertBefore(e.instance.root,e)},bua=function(e){if((e=e.parentSignalProxy.model)&&!e.hostElement){var z={},C;
for(C in e)e.hasOwnProperty(C)&&(z[C]=e[C]);return z}},ohX=function(e){if(e.instance){var z=e.instance.children;
if(z.length){var C=(0,_.x$)(z[0]).parentNode;if(C){C=(0,_.x$)(C);for(var w=0;w<z.length;w++)C.removeChild(z[w])}}cI()?e.instance.setTemplateUpdatesEnabled(!1):e.instance.signalProxy.dispose();e.instance=void 0}},K3S=function(e,z,C){z=z||!C;
e.instance&&e.instance.hidden!==z&&(e.instance.hidden=z,cF1(z,e.instance.children))},G7S=function(e){if(cI()){var z=e.instance;
z&&ja(e.parentSignalProxy.owner,function(){return!z.getTemplateUpdatesEnabled()})&&z.setTemplateUpdatesEnabled(!0)}else e.setDisableTemplateUpdate(!1)};
_.lB.Object.defineProperties(qe.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var e=this;return ja(this.parentSignalProxy.owner,function(){return wBo(e).getWithPath([])})},
set:function(e){e||(cI()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));wBo(this).setWithPath([],!!e)}}});
_.lB.Object.defineProperties(qe,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",qe);var XBU=[],xq=function(){var e=HTMLElement.apply(this,arguments)||this;e.as="item";e.indexAs="index";e.itemsIndexAs="itemsIndex";e.targetFramerate=20;e.notifyDomChange=!1;e.isDetached=!1;e.JSC$13796_renderDebouncer=null;e.instances=[];e.chunkingId=null;e.chunkCount=null;e.shouldMeasureChunk=!1;e.shouldContinueChunking=!1;e.renderStartTime=null;e.JSC$13796_didCallConnected=!1;return e};
_.U(xq,HTMLElement);var J34=function(e){e.itemSignalImpl!=null||(e.itemSignalImpl=new JY(_.II(XBU,void 0,"YBrqgf")));return e.itemSignalImpl},k76=function(e,z){Array.isArray(z)||(z=XBU);
J34(e).setWithPath([],z)};
_.Y=xq.prototype;_.Y.showHideChildren=function(e){for(var z=_.b(this.instances),C=z.next();!C.done;C=z.next())cF1(e,C.value.children)};
_.Y.notifyPath=function(e,z){e=uE(e);e[0]==="items"&&(e.length===1?k76(this,z):J34(this).setWithPath(e.slice(1),z))};
_.Y.canNotifyPath=function(e){return e==="items"};
_.Y.attributeChangedCallback=function(e,z,C){if(this.JSC$13796_didCallConnected)throw Error("Qg`"+e);e==="as"?this.as=C:e==="index-as"?this.indexAs=C:e==="items-index-as"?this.itemsIndexAs=C:e==="initial-count"?this.initialCount=Number(C):e==="notify-dom-change"?this.notifyDomChange=C!==null:e==="target-framerate"&&(this.targetFramerate=Number(C))};
_.Y.disconnectedCallback=function(){this.isDetached=!0;for(var e=0;e<this.instances.length;e++)qph(this,e);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.Y.connectedCallback=function(){var e=this,z=J34(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var K=z(),G=uE(K.path);if(G[0]===void 0||G[0]==="splices"||G[0]==="length")e.debounceRender();else{var X=G[0];if(X=e.instances[typeof X==="string"?Math.floor(Number(X)):X])G=[e.as].concat(_.s_(G.slice(1))),X.signalProxy.notifyPath(G,K)}});
this.JSC$13796_didCallConnected=!0;sRS?ZaL():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var C=(0,_.x$)((0,_.x$)(this).parentNode),w=0;w<this.instances.length;w++)C.insertBefore(this.instances[w].root,this);this.chunkingId&&this.render()}};
_.Y.debounceRender=function(){this.JSC$13796_renderDebouncer=_.OJ(this.JSC$13796_renderDebouncer,ZV,this.JSC$13796_renderImpl.bind(this));_.EJ(this.JSC$13796_renderDebouncer)};
_.Y.render=function(){this.debounceRender();_.S1()};
_.Y.JSC$13796_renderImpl=function(){var e=this;if(!this.parentSignalProxy.isDisposed){var z=this.items,C=xA4(this,z.length);T26(this,z,C);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){e.chunkingId=null;if(e.shouldMeasureChunk){var w=performance.now()-e.renderStartTime;e.chunkCount=Math.round(Math.ceil(1E3/e.targetFramerate)/w*e.chunkCount)||1}e.shouldContinueChunking&&e.debounceRender()}));
Brs&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var xA4=function(e,z){var C=z,w=e.instances.length;if(e.initialCount){if(e.chunkCount){var K=Math.min(Math.max(z-w,0),e.chunkCount);C=Math.min(w+K,z)}else C=Math.min(z,e.initialCount),K=Math.max(C-w,0),e.chunkCount=K||1;e.shouldMeasureChunk=K===e.chunkCount;e.shouldContinueChunking=C<z;e.renderStartTime=performance.now()}return C},T26=function(e,z,C){for(var w=0;w<C;w++){var K=e.instances[w],G=z[w];
K?(K.signalProxy.setWithPath([e.as],G),K.signalProxy.setWithPath([e.indexAs],w)):$Ag(e,G,w)}for(z=e.instances.length-1;z>=w;z--)C=e,K=z,qph(C,K),_.b(C.instances.splice(K,1)).next().value.signalProxy.dispose()},qph=function(e,z){e=e.instances[z];
z=(0,_.x$)(e.root);for(var C=0;C<e.children.length;C++)z.appendChild(e.children[C])},$Ag=function(e,z,C){var w={};
z=Object.assign({},ltX(e),(w[e.as]=z,w[e.indexAs]=C,w[e.itemsIndexAs]=C,w));var K=new kq(z,function(X){if(X!==e.as&&X!==e.indexAs){if(X===e.itemsIndexAs)return DL(K,e.indexAs);var J=DL(e.parentSignalProxy,X).getChangeRecordSignal([]);X=_.II(void 0,void 0,"T21Pqc");var q=new JY(X);K.effect(function(){var T=J();q.notifyPath(uE(T.path),{value:T.value})});
return q}});
e.parentSignalProxy.childSignalProxies.push(K);w=JF1(e.templateInfo,e.templateInfo.nodeInfoList,K,{eventListenerHost:e.eventListenerHost,getModel:function(){var X={};return Object.assign({},ltX(e),(X[e.as]=K.model[e.as],X[e.indexAs]=K.model[e.indexAs],X[e.itemsIndexAs]=K.model[e.indexAs],X))},
hasInsertionPoint:e.templateInfo.hasInsertionPoint,thisCtx:e.eventListenerHost,methodInvocationRequirement:g6S,enabledSignal:e.stampingEnabled}).root;z={root:w,children:[],signalProxy:K};w=_.b(w.childNodes);for(var G=w.next();!G.done;G=w.next())z.children.push(G.value);w=(w=e.instances[C+1])?w.children[0]:e;(0,_.x$)((0,_.x$)(e).parentNode).insertBefore(z.root,w);e.instances[C]=z},ltX=function(e){if((e=e.parentSignalProxy.model)&&!e.hostElement){var z={},C;
for(C in e)e.hasOwnProperty(C)&&(z[C]=e[C]);return z}};
xq.prototype.itemForElement=function(e){var z=this,C=this.instances.find(function(w){return w.children.includes(e)});
if(C)return ja(this.parentSignalProxy.owner,function(){return C.signalProxy.getWithPath([z.as])})};
xq.prototype.indexForElement=function(e){var z=this.instances.findIndex(function(C){return C.children.includes(e)});
return z>=0?z:void 0};
_.lB.Object.defineProperties(xq.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var e=this;return ja(this.parentSignalProxy.owner,function(){return J34(e).getWithPath([])})},
set:function(e){k76(this,e)}},
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}}});
_.lB.Object.defineProperties(xq,{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",xq);var QGa,mAc;_.Tr=new _.Mt("STATE_STORE_TOKEN");QGa=new _.Mt("SELECT_TOKEN");mAc=new _.Mt("DISPATCH_TOKEN");var KC8={getSelectFn:function(){var e;return(e=_.lh().resolve(_.$B(QGa)))!=null?e:pS7},
getDispatchFn:function(){var e;return(e=_.lh().resolve(_.$B(mAc)))!=null?e:_.AK().dispatch.bind(_.AK())},
getAppStore:function(){return _.lh().resolve(_.Tr)}},eq8,wXs=!1;var kY1=function(){};var b5o=void 0;var atg=function(){};
atg.prototype.hasAttribute=function(e){if(e==="dir")return!1;if(e==="disable-upgrade"){var z,C;return(C=(z=this.hostElement)==null?void 0:z.hasAttribute("disable-upgrade"))!=null?C:!1}throw Error("Rg`"+e);};
atg.prototype.attributeChangedCallbackWrapper=function(e,z,C){if(e==="disable-upgrade"&&this.__isUpgradeDisabled&&C===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var w;((w=this.hostElement)!=null?w:this).isConnected&&this.connectedCallback()}else z===C||this.__isReflecting||this.attributeChangedCallback(e,z,C)};
atg.prototype.getExtraMethodsToForward=function(){for(var e=this,z=[],C=_.b(nhS),w=C.next(),K={};!w.done;K={tagName$jscomp$67:void 0,name$jscomp$630:void 0},w=C.next())K.name$jscomp$630=w.value,w=void 0,K.name$jscomp$630==="_setPendingProperty"?(K.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),w=function(G){return function(X,J,q){WI(G.tagName$jscomp$67,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return e._setPendingProperty(X,J,q)}}(K)):w=function(G){return function(){return e[G.name$jscomp$630].apply(e,
_.s_(_.yL.apply(0,arguments)))}}(K),z.push([K.name$jscomp$630,
w]);return z};
for(var Tso=A6a(c6a((0,_.gu)(atg))),m7m=["disabled","disable-upgrade"],M$a=(0,_.gu)(function(){}),r3a=new Set(Object.getOwnPropertyNames(M$a.prototype)),H5g=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.s_(r3a))),n77=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),nhS=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),HuX=new Set([].concat(_.s_(n77),_.s_(nhS),_.s_(r3a))),UAs=_.b(HuX),vhX=UAs.next();!vhX.done;vhX=UAs.next())NFh.add(vhX.value);var re7={created:function(){h51(this);this.initializeInjection()}};var O5o=!1,o5=window.ShadyDOM,D75=["appendChild","insertBefore","removeChild","replaceChild"],d7g=[Node];o5&&d7g.push(o5.Wrapper);var jjg,yek,Z5m={};var Gx,wY1=new WeakMap,eH4=new Set;var b8g=new Set("context didCallReady is info params signalProxy".split(" ")),J6L="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),kc4="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var ItY=E8({entities:obg}),W3a=new p4(ItY);var Pao=function(){return _.rO.apply(this,arguments)||this};
_.U(Pao,_.rO);_.lB.Object.defineProperties(Pao.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return W3a}}});
_.d([_.HI()],Pao);_.$q=[bz.prototype,Pao.prototype];_.lz={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var e=this,z={};setTimeout(function(){var C;return _.pi((C=e.hostElement)!=null?C:e,"yt-live-chat-add-tooltip-target",z)},0);
this.handler_=z.handler},
detached:function(){if(this.handler_){var e;this.handler_.removeElementFromSupportingTooltips((e=this.hostElement)!=null?e:this)}this.handler_=null}}};_.xp=new _.Mt("ICON_MANAGER_TOKEN");var R3X=[48,20,18,16,15,13,12],hH7=new Map,WQ8=new Set,Uf1=new Set,IJh=new Set,H8L=new Set,v67=new Set,RHk=new Promise(function(e){var z=!1,C=!1,w=!1,K=[],G=function(X){if("detail"in X)if(X=X.detail,X.name==="yt-icons")PF4(X),z=!0;else if(X.name==="yt-sys-icons")PF4(X),C=!0;else{var J;((J=X.name)==null?0:J.includes("yt-sys-icons"))&&X.size!==24&&(PF4(X,!0),K.push(X.size),K.length===R3X.length&&(w=!0))}z&&C&&w&&(window.removeEventListener("iron-iconset-added",G),e())};
window.addEventListener("iron-iconset-added",G)}),L3o=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"]]);_.Q5={};_.Q5.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Zd,computeHref_:function(e,z){z=z===void 0?!1:z;if(!e||e.commandExecutorCommand)return null;var C=ahN(e,z);return z||C!==null?C?_.M("enable_polymer_resin")?_.gw(C).toString():C:null:(_.AX(new _.uh("computeHref was null",this.is,e)),null)},
computeOptionalHref_:function(e){return this.computeHref_(e,!0)},
computeNofollow_:function(e){return e?Jmg(e)?"nofollow":null:null},
computeIcon_:function(e){return e&&e.iconType?_.qF(e.iconType):""},
resolveCommand:function(e,z,C){z=z===void 0?{}:z;return _.$p(e,this.hostElement,z,C===void 0?!1:C)}};var Ou6,mF;_.h3a={};Ou6=null;
mF={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_=mNL(this.viewroot));_.BI(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var e=this;this.unobserve_();if(_.M("kevlar_vimio_use_shared_monitor"))Qk(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 z=[];this.visibilityOptionVisible_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return e.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return e.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&z.push(this.visibilityObserver.observe(this.hostElement,function(){return e.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=z}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){O8s(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 e=_.j8(this.parentNode,function(C){var w,K=(w=C.polymerController)!=null?w:C;return!!K.getVisibilityObserverForChild&&K.getVisibilityObserverForChild()},!0);
if(e){var z;this.localVisibilityObserver_=((z=e.polymerController)!=null?z:e).getVisibilityObserverForChild()}else Ou6||(Ou6=mNL()),this.localVisibilityObserver_=Ou6;return this.localVisibilityObserver_},visibilityCallback:function(e){e?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.M("kevlar_use_vimio_behavior")||(mF={});mF&&!_.M("kevlar_use_vimio_behavior")&&(delete mF.attached,delete mF.detached);_.h3a.YtVisibilityObserverBehavior=[mF];var EhC={};EhC.YtVisualElementBehavior=[_.h3a.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.M("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.M("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var e=this.getScreenLayer&&this.getScreenLayer(),z=this.getVisibilityLogger();z&&z.reportShown(this,void 0,e)}},
onHidden:function(){if(_.M("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.M("kevlar_vimio_use_shared_monitor")){var e=this.getScreenLayer&&this.getScreenLayer(),z=this.getVisibilityLogger();z&&z.reportHidden(this,void 0,e)}},
getVisibilityLogger:function(){return _.M("kevlar_use_vimio_behavior")?_.mO():null},
shouldSkipLogging:function(){if(_.j5("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var e=this.getParentRenderer&&this.getParentRenderer();if(!e)return!1;var z,C=(z=e.polymerController)!=null?z:e;if(!C.data)return!1;e=this.data.trackingParams;e=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:e;var w;z=(w=C.data)==null?void 0:w.trackingParams;var K,G;z=((K=C.data)==null?0:K.loggingDirectives)?(G=C.data)==null?void 0:G.loggingDirectives.trackingParams:z;return e&&z&&e===
z}}];var uJL=new Map,I5;var jq1=function(e){this.layer=e},HM=function(e){return e.layer!==void 0?e.layer:e.parent?HM(e.parent):e.layer=0};var Br4;_.c={};Br4=0;_.c.YtRendererBehavior=[_.Q5.YtComponentBehavior,EhC.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_:_.M("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var e,z;(z=(e=this.monitorScrollElement)!=null?e:this.hostElement)==null||z.removeEventListener("scroll",_.lE(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();fJh(this.hostElement);Al(_.p3(),this.hostElement);cf.delete(this.hostElement)},
registerRenderer:function(e){var z;((z=e.polymerController)!=null?z:e).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(e),this.markDirty())},
unregisterRenderer_:function(e){this.useVimio_||(this.childCache_.delete(e),this.markDirty())},
attached:function(){var e=this,z=this.getParentRenderer();if(z){var C,w,K;(w=(C=(K=z.polymerController)!=null?K:z).registerRenderer)==null||w.call(C,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var G,X;(X=(G=this.monitorScrollElement)!=null?G:this.hostElement)==null||X.addEventListener("scroll",_.lE(this,this.onScroll))}_.c5.addJob(function(){dfN(e.hostElement)},8);
C=new jq1(this.screenLayer||void 0);(z=cf.get(z))&&z.layerNode&&(C.parent=z.layerNode);z={};Iwg(this.hostElement,(z.isRenderer=!0,z.layerNode=C,z[yM7]=this.data,z))},
getParentRenderer:function(){for(var e=this.hostElement.parentNode,z,C;e&&((z=cf.get(e))==null||!z.isRenderer)&&!((C=e.polymerController)!=null?C:e).isRenderer_;)e=e.parentNode||e.host;return e},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.M("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.cR("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.M("debug_web_ve_data")&&this.data.trackingParams){var e="";try{e=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(C){_.yG(C)}if(e){var z=uVL(e,1);z!==void 0&&(this.hostElement.dataset.veIndex=String(z));e=uVL(e,2);
e!==void 0&&(this.hostElement.dataset.ve=String(e))}}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,_.M("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.v9(this.data.loggingDirectives.trackingParams)),this.visualElement=_.a5(_.nm(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var e=this.data.targetId;_.ZM(_.p3(),e,this.hostElement)}else Al(_.p3(),this.hostElement)},
onScroll:function(){var e=Date.now();e-this.lastHandledScroll_<50||(this.lastHandledScroll_=e,this.markDirty())},
markDirty:function(){_.M("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():tPh(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var e=this.getParentRenderer();if(e&&(e=cf.get(e))&&e.layerNode)return HM(e.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.s_(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var e=0;e<this.data.impressionEndpoints.length;e++)this.sendImpression(this.data.impressionEndpoints[e]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(e){e.clickTrackingParams&&delete e.clickTrackingParams;var z,C;(e==null?0:(z=e.commandMetadata)==null?0:(C=z.webCommandMetadata)==null?0:C.sendPost)?_.wQ(this.hostElement,[e,{impression:!0}]):_.KK(this.hostElement,[e],this.hostElement)},
logExplicitClick:function(e){var z=_.Pr(this.getScreenLayer());if(z){var C,w=(C=e.polymerController)!=null?C:e;e=w.visualElement;w=w.trackingParams||w.clickTrackingParams;!e&&w&&(e=_.v9(w));e&&_.gQ(z,e)}}}];var F3X={},aQ=function(){return _.rO.apply(this,arguments)||this};
_.U(aQ,_.rO);aQ.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
aQ.prototype.onPdgItemBehaviorClick=aQ.prototype.onPdgItemBehaviorClick;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],aQ.prototype,"data",void 0);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],aQ.prototype,"onPdgItemBehaviorClick",null);_.d([_.HI()],aQ);F3X.YtPdgLiveChatItemBehavior=[aQ.prototype,_.c.YtRendererBehavior];var V$a;var fta;_.nE={};_.nE.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Me=function(){var e=mA.apply(this,arguments)||this;e.switchTemplateAtRegistration=!1;return e};
_.U(Me,mA);Me.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||c61(this),_.Iq1(this,"doRender"),this.doRender())};
Me.prototype.debounceRender=function(){this.templatingFn&&_.tK(this,"doRender",this.doRender)};
Me.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.yG(Error("ah"))};
Me.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.d([kvs()],Me);var Spa=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,rX={},e3L=(rX[1]={filterString:null,isUnwrappable:null,unwrap:null},rX[2]={filterString:function(e,z,C){return QA(C)},
isUnwrappable:function(e){return e instanceof Zy},
unwrap:function(e){return z6(e)}},rX[3]={filterString:function(e,z,C){return Spa.test(C)?C:sC.toString()},
isUnwrappable:function(e){return dw(e)},
unwrap:function(e){return _.Dy(e)}},rX[4]={filterString:function(){return sC.toString()},
isUnwrappable:function(e){return e instanceof OC},
unwrap:function(e){return _.F2(e).toString()}},rX[5]={filterString:function(e,z,C){return C},
isUnwrappable:function(e){return typeof e==="string"},
unwrap:function(e){return e.toString()}},rX[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(e){return e instanceof _.G6},
unwrap:function(e){return bC(e)}},rX[8]={filterString:function(e,z,C){C=String(C).toLowerCase();
return rHk(e,z,C)?C:"zClosurez"},
isUnwrappable:null,unwrap:null},rX[10]={filterString:null,isUnwrappable:null,unwrap:null},rX);lp[zR["default"]]=Cah;var wBg=[];(function(){var e=ki;ki=function(z){e==null||e(z);Lm(function(){for(var C=0;C<z.length;C++)K3h(z[C])})}})();var u3o=function(){var e=_.rO.apply(this,arguments)||this;e.hasUnmounted=!1;return e};
_.U(u3o,_.rO);_.Y=u3o.prototype;_.Y.beforeRegister=function(){var e=this.doIdomRender;this.templatingFn?_.yG(Error("$g")):(this.templatingFn=e,this.switchTemplateAtRegistration=!0,pY1(this))};
_.Y.attached=function(){};
_.Y.detached=function(){K3h(this.hostElement)};
_.Y.renderIdom=function(){throw Error("ch");};
_.Y.doIdomRender=function(){var e=this;O78(this.hostElement,function(){e.renderIdom()})};
_.d([_.HI()],u3o);var dAs=[Me.prototype,u3o.prototype];var DAT,iuX=function(){return DAT!==void 0?DAT:DAT=document.createElement("template")};
document.head.appendChild(iuX().content);var N2c;var sG4,B2a=function(){return sG4!==void 0?sG4:sG4=document.createElement("template")};
document.head.appendChild(B2a().content);var t$X;var gha=document.head,jGa=gha.appendChild,y36;if(t$X===void 0){var c3s=document.createElement("template");_.v(c3s,"\x3c!--css-build:shady--\x3e");c3s.content.insertBefore(B2a().content.cloneNode(!0),c3s.content.firstChild);t$X=c3s}y36=t$X;jGa.call(gha,y36.content);var A3a,Zug=function(){return A3a!==void 0?A3a:A3a=document.createElement("template")};
document.head.appendChild(Zug().content);var pBo;var euL=document.head,zuo=euL.appendChild,CQh;if(pBo===void 0){var weS=document.createElement("template");_.v(weS,"\x3c!--css-build:shady--\x3e");weS.content.insertBefore(Zug().content.cloneNode(!0),weS.content.firstChild);pBo=weS}CQh=pBo;zuo.call(euL,CQh.content);var KPU=document.head,o_s=KPU.appendChild,Gua;if(N2c===void 0){var YY6=document.createElement("template");_.v(YY6,"\x3c!--css-build:shady--\x3e");YY6.content.insertBefore(iuX().content.cloneNode(!0),YY6.content.firstChild);N2c=YY6}Gua=N2c;o_s.call(KPU,Gua.content);var b24,Xea=function(){return b24!==void 0?b24:b24=document.createElement("template")};
document.head.appendChild(Xea().content);var JNo;_.jQ=new _.Mt("DARK_THEME_TOKEN");var gh1=new _.nN("accessibilityProperties");var t$g=new _.nN("layoutProperties");var jG1=new _.nN("imageType");var kuo={};if("ytAttributedStringLinkHoverColor"in kuo)throw Error("fh`ytAttributedStringLinkHoverColor");(function(e,z){kuo[e]="value"in z&&"unit"in z?J3k(e,z):function(C){try{return z(C)}catch(w){throw Error("dh`"+e+"`"+w.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var qYc=function(e){var z=this;this.holdTime=e===void 0?500:e;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(C){var w=new CustomEvent("LONG_PRESS"),K;(K=C.changedTouches[0].target)==null||K.dispatchEvent(w)};
this.ontouchstart=function(C){z.longPressTimeout=_.UQ(_.c5,function(){z.onlongpress(C);z.longPressOccurred=!0},z.holdTime)};
this.ontouchmove=function(){_.c5.cancelJob(z.longPressTimeout);z.longPressTimeout=NaN;z.longPressOccurred=!1;z.moveOccurred=!0};
this.ontouchend=function(C){if(z.longPressTimeout&&!z.longPressOccurred&&!z.moveOccurred){var w;(w=C.changedTouches[0].target)==null||w.dispatchEvent(new Event("click"))}_.c5.cancelJob(z.longPressTimeout);z.longPressTimeout=NaN;z.longPressOccurred=!1;z.moveOccurred=!1}};var Pag=function(e,z){qYc.call(this,z);var C=this;this.callback=e;this.onlongpress=function(w){var K;(K=C.callback)==null||K.call(C,w)}};
_.U(Pag,qYc);var R3g=function(e,z){var C=Object.assign({},z);e=_.b(new Map([["ontouchstart",e.ontouchstart],["ontouchend",e.ontouchend],["ontouchmove",e.ontouchmove]]));for(var w=e.next(),K={};!w.done;K={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},w=e.next()){var G=_.b(w.value);w=G.next().value;G=G.next().value;K.eventName$jscomp$103=w;K.eventHandler$jscomp$2=G;z[K.eventName$jscomp$103]=function(X){return function(J){var q;(q=C[X.eventName$jscomp$103])==null||q.call(C,J);(0,X.eventHandler$jscomp$2)(J)}}(K)}};_.ms=new _.Mt("COMMAND_HANDLER_TOKEN");var qpm=new _.nN("parallelCommand");var $Ao=new _.nN("performOnceCommand");var T2L=new _.nN("serialCommand");var ltg=void 0;var xiC=function(){this.data=[];this.consumer=null};
xiC.prototype.push=function(e){this.consumer?this.consumer(e):this.data.push(e)};var e4={};_.II(e4,void 0,"sgPmTd");_.II(null,void 0,"jypsq");_.II(null,void 0,"mWiOof");var iy5=new xiC;var UA4=[zXs,CCC,wZh,ooo,Kgo,eXa,G6L,Y_6];var sGk=new _.nN("bracketTextDecorator");var tE=new _.nN("highlightTextDecorator");_.c9=new _.Mt("APP_DIRECTION_TOKEN");var DA8={calledOnce:!1,state:"visible"},dA4={calledOnce:!1,state:"hidden"};Object.freeze&&Object.freeze(Object.create(null));var u3g=function(){},Tz6;
(Tz6=window.requestIdleCallback)==null||Tz6.bind(window);var $io=new _.Mt("ICON_WIZ_COMPONENT_TOKEN");_.mB=_.f(function(e){var z=e.icon;var C=e.active;var w=e.className;var K=e.style;var G=e.dataSelected;var X=e.dataDisabled;var J=e.role;var q=e.animateIcon;var T=e.themeOverride;var Q=e.ariaHidden;var m=e.ariaExpanded;var a=e.ariaLabel;var n=e.tabindex;var H=e.id;var I=e.size;var L=e.iconFilter;var h=e.gradientColor;var E=e.onKeydown;var N=e.title;return _.x(_.l,{cond:z,then:function(){var D=_.lh().resolve($io);return _.x(D,{icon:z,dataSelected:G,dataDisabled:X,animateIcon:q,themeOverride:T,ariaExpanded:m,
tabindex:n,id:H,active:C,size:I,role:J,className:w,ariaHidden:Q,ariaLabel:a,style:function(){return K!=null&&K()||I==null||!I()?K==null?void 0:K():"width: "+(I==null?void 0:I())+"px;height: "+((I==null?void 0:I())+"px;")},
title:N,iconFilter:L,gradientColor:h,onKeydown:E})}})},"n");
_.mB.idomCompat={callbacks:{onKeydown:!0}};var Xe1=new _.nN("borderImageProcessor");var qY7=window.devicePixelRatio||1;var lDg=new Map([["yt_outline_bag_black_24","bag"]]);var Hh=function(e){var z=this;this.margin=.1;this.whenInViewportWithMargin=e;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){z.requestScan()});
window.addEventListener("touchend",function(){z.requestScan()});
window.addEventListener("updateui",function(){z.requestScan()});
var C=new _.lw((0,_.uZ)(this.requestScan,this),100);window.addEventListener("scroll",function(){C.fire()},!0);
window.addEventListener("resize",(0,_.uZ)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){z.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.uZ)(this.requestScan,this))};
Hh.prototype.observe=function(e){this.observationTargets.includes(e)||this.observationTargets.push(e)};
Hh.prototype.unobserve=function(e){this.observationTargets=this.observationTargets.filter(function(z){return z!==e})};
Hh.prototype.requestScan=function(){var e=this;this.scanRequested||(Lm(function(){lDo(e)}),this.scanRequested=!0)};
var lDo=function(e){var z=(1+e.margin)*(document.documentElement.clientHeight||window.innerHeight);e.observationTargets=e.observationTargets.filter(function(C){var w=C.getBoundingClientRect();(w=z>w.top&&!!w.height)&&e.whenInViewportWithMargin(C);return!w&&C.parentNode});
e.scanRequested=!1};
Hh.prototype.disconnect=function(){this.observationTargets=[]};var QDc,aDS;QDc=_.b(_.II(MWE(),void 0,"O3X2wd"));_.miT=QDc.next().value;aDS=QDc.next().value;window.addEventListener("resize",function(){aDS(MWE())});var n_a={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},MWU=void 0,rNo=window.innerWidth,H26=window.innerHeight;window.addEventListener("resize",function(){MWU=void 0});var UiU;if("IntersectionObserver"in window)UiU=UiE();else{if(MWU===void 0){var v_T;v_T="matchMedia"in window?window.matchMedia(n_a.landscape+","+n_a.portrait).matches:void 0;MWU=v_T!==void 0?v_T:rNo>=930&&H26>=550||rNo>=550&&H26>=930}UiU=MWU?{observe:function(e){Lm(function(){var z;(z=e.onViewportEntered)==null||z.call(e)})},
unobserve:function(){}}:new Hh(function(e){Lm(function(){var z;
(z=e.onViewportEntered)==null||z.call(e)})})}var rNg=UiU;var IDs=_.f(function(e){var z=!1,C=_.kI("img",function(w){_.BC(function(){z=!0;w.onload=null})});
_.sH(function(){var w,K=(w=e.data)==null?void 0:w.call(e),G,X=(G=e.getSrc)==null?void 0:G.call(e).cb,J;w=(J=e.config)==null?void 0:J.call(e);if(J=C.value)if(G=function(T,Q){if(!z)return X?X(T,Q):T},WPm(J,w),_.M("web_image_dont_reload_same_src")&&ID4(J,K,G))_.M("web_image_dont_reload_same_src_simulate_load")&&J.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var q;v_8(J,K||null,G,w,(q=e.lazy)==null?void 0:q.call(e))}},"zS0jKb");
return _.x("img",{el:C})},"p");
IDs.idomCompat=!0;_.Zf=_.f(function(e){var z=function(){var C,w=e.data(),K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z,YN,Jk,v1,lg,M5,fo,ug,sE,w6;var qY={contentMode:(K=e.contentMode)==null?void 0:K.call(e),loadedClass:(G=e.loadedClass)==null?void 0:G.call(e),isPreloaded:(X=e.isPreloaded)==null?void 0:X.call(e),notifyOnLoaded:(J=e.notifyOnLoaded)==null?void 0:J.call(e),notifyOnUnloaded:(q=e.notifyOnUnloaded)==null?void 0:q.call(e),preferredThumbnail:(T=e.preferredThumbnail)==null?void 0:T.call(e),preserveHeight:(Q=e.preserveHeight)==
null?void 0:Q.call(e),preserveWidth:(m=e.preserveWidth)==null?void 0:m.call(e),objectPosition:(a=e.objectPosition)==null?void 0:a.call(e),targetWidth:(n=e.targetWidth)==null?void 0:n.call(e),targetHeight:(H=e.targetHeight)==null?void 0:H.call(e),shouldShowPlaceholder:(I=e.shouldShowPlaceholder)==null?void 0:I.call(e),useWidth:(L=e.useWidth)==null?void 0:L.call(e),isToggled:(h=e.isToggled)==null?void 0:h.call(e),alt:(E=e.alt)==null?void 0:E.call(e),className:(N=e.className)==null?void 0:N.call(e),
onerror:e.onerror,onload:e.onload,style$:((D=e.style$)==null?void 0:D.call(e))||((g=e.style)==null?void 0:g.call(e)),color:(y=e.color)==null?void 0:y.call(e),width:(Z=e.width)==null?void 0:Z.call(e),height:(YN=e.height)==null?void 0:YN.call(e),"aria-hidden$":(sE=(Jk=e["aria-hidden$"])==null?void 0:Jk.call(e))!=null?sE:(v1=e.ariaHidden)==null?void 0:v1.call(e),draggable:(lg=e.draggable)==null?void 0:lg.call(e),"data-disabled$":(w6=(M5=e["data-disabled$"])==null?void 0:M5.call(e))!=null?w6:(fo=e.dataDisabled)==
null?void 0:fo.call(e),size:(ug=e.size)==null?void 0:ug.call(e)};return LP1(w,qY,(C=e.hideOn404)==null?void 0:C.call(e))};
return _.x(_.d1,null,_.x(_.fd,{when:function(){var C;return((C=z())==null?void 0:C.type)==="image"}},function(){return _.x(IDs,{data:function(){return z().image},
getSrc:{cb:function(C,w){var K=z().image.sources,G=z().config.isPreloaded,X=z().config.useWidth,J=z().config.targetWidth,q=z().config.targetHeight,T=z().config.preferredThumbnail;return _.xis(w,K,G,X,J,q,T)||""}},
config:function(){var C=z().config,w;for(w in C)C[w]===void 0&&delete C[w];return C},
lazy:e.renderLazy})}),_.x(_.fd,{when:function(){var C;
return((C=z())==null?void 0:C.type)==="icon"}},function(){return _.x(_.mB,{icon:function(){return z().iconName},
role:function(){return z().config.role},
className:function(){return z().config.className},
style:function(){return z().config.style$+";width: "+(z().config.width+"px;height: ")+(z().config.height+"px;color: ")+(z().config.color+";")},
ariaLabel:function(){return z().config["aria-label$"]},
ariaHidden:function(){return z().config["aria-hidden$"]},
dataDisabled:function(){return z().config["data-disabled$"]},
active:function(){return z().config.isToggled},
size:function(){return z().config.size}})}))},"q");
_.Zf.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var FP1=_.f(function(e){var z=function(K){var G,X,J=_.ej(function(n){G=K();X=tG(function(){for(var H=_.b(m()),I=H.next();!I.done;I=H.next()){I=SYE(I.value);I=typeof I==="string"?document.createTextNode(I):I;if(!(I instanceof Node)){H=new _.uh("Part is not a node",I,typeof I);_.yG(H);break}n.appendChild(I)}})}),q=_.pP(e.config),T=function(){var n;
return A31(K(),(n=q())==null?void 0:n.ariaLabel)},Q=O2o(q,{isEqual:dih}),m=function(){var n=y3L(K(),Q());
Zuo(n,Q());return K().content?KPE(K().content,n).parts:[]},a=!0;
_.sH(function(){K();Q();if(a&&(a=!1,E_h(K(),G)))return;var n=m();Promise.resolve().then(function(){var H=J.value;if(H){H.innerText="";var I;(I=X)==null||I();X=_.ii(H,function(){return _.x(ud1,{parts:n})},"r")}})},"LRRSgc");
return _.x("span",{el:J,class:function(){return K()&&F3g(K(),q())},
dir:function(){var n;return((n=q())==null?0:n.userInput)?"auto":void 0},
"aria-label":function(){var n;return T()?(n=q())==null?void 0:n.ariaLabel:void 0},
role:function(){return T()?"text":void 0}})},C=O2o(function(){var K,G=(K=e.text)==null?void 0:K.call(e);
if(G)return K=_.yk(G)?G:_.Em(G),(K==null?0:K.content)?K:void 0},{isEqual:E_h}),w;
return((w=e.config)==null?0:w.contentAsserted)?z(C):_.x(_.l,{cond:C,then:z})},"t");
FP1.idomCompat=!0;_.U2=_.f(function(e){var z=_.pP(e.text),C=Dig(e);e.contentAsserted!==void 0&&(C.contentAsserted=!0);return _.x(FP1,{text:z,config:C})},"u");
_.U2.idomCompat=!0;var i24=function(e,z,C){z=z===void 0?"unknown":z;C=C===void 0?{}:C;_.uh.call(this,e+" ("+z+")",Object.assign({},{name:"YtWcwError",tagName:z},C));Object.setPrototypeOf(this,this.constructor.prototype)};
_.U(i24,_.uh);_.wG=new WeakMap;_.CU=!1;var g_4,jDN,tWE;_.vh=Symbol("hh");_.z9=Symbol("ih");g_4=Symbol("jh");jDN=new Set(Object.getOwnPropertyNames(Element.prototype));tWE=Symbol("kh");var WPh=_.f(function(e){return _.x("yt-attributed-string",{"aria-label":e.ariaLabel,hidden:e.hidden,id:e.id,class:e.className,"force-default-style":e.forceDefaultStyle},_.x(_.U2,{text:e.data,ariaLabel:e.ariaLabel,ellipsisTruncate:e.ellipsisTruncate,isOverlay:e.isOverlay,linkInheritColor:e.linkInheritColor,noPreWrap:e.noPreWrap,noWrap:e.noWrap,userInput:e.userInput,noEndpoints:e.noEndpoints,headerRuns:e.headerRuns,isHeadline:e.isHeadline}))},"v");
_.M("web_wiz_attributed_string")&&_.KU(WPh,"yt-attributed-string",{props:{ariaHidden:_.vh,ariaLabel:_.vh,className:_.vh,ellipsisTruncate:_.vh,isOverlay:_.vh,linkInheritColor:_.vh,noEndpoints:_.vh,noStyleRuns:_.vh,noLinkColor:_.vh,noPreWrap:_.vh,noWrap:_.vh,skipOnClick:_.vh,userInput:_.vh,headerRuns:_.vh,isHeadline:_.vh,id:_.vh,data:_.vh,hidden:_.vh,forceDefaultStyle:_.vh,text:_.z9,disableUpgrade:_.z9,disable:_.z9,slot:_.z9}});var IQ=function(){return _.V.apply(this,arguments)||this};
_.U(IQ,_.V);IQ.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},fDE(this.data,this.config))};
_.d([_.W(dAs),_.B("design:type",Object)],IQ.prototype,"ytIdomTemplatingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],IQ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IQ.prototype,"ariaLabel",void 0);_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"disable",void 0);_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"ellipsisTruncate",void 0);_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"isOverlay",void 0);
_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"linkInheritColor",void 0);_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"noPreWrap",void 0);_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"noWrap",void 0);_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"userInput",void 0);_.d([_.F(),_.B("design:type",Boolean)],IQ.prototype,"noEndpoints",void 0);_.d([_.F(),_.B("design:type",Array)],IQ.prototype,"headerRuns",void 0);
_.d([_.fP({is:"yt-attributed-string",disableElementRegistration:!0})],IQ);
_.M("web_wiz_attributed_string")||_.u(IQ,"yt-attributed-string",function(){if(JNo===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
e.content.insertBefore(Xea().content.cloneNode(!0),e.content.firstChild);JNo=e}e=JNo;return e},{mode:2});var PQ6,Rug,zMN;PQ6=function(){this.firstThumbnailLoaded=!1};
_.LPa=function(){Rug||(Rug=new PQ6);return Rug};
zMN=function(e){var z=_.LPa();z.firstThumbnailLoaded||(z.firstThumbnailLoaded=!0,_.hg("ftl",e))};
PQ6.prototype.reset=function(){this.firstThumbnailLoaded=!1};var cNg=0,eML=new WeakMap,Z2E=0,Yf=new Set;var huU,O2g=function(){return huU!==void 0?huU:huU=document.createElement("template")};
document.head.appendChild(O2g().content);var E_S;var oM4,Yek,Wh;_.Jq=_.wL.caches;Wh=function(){};
Wh.prototype.open=function(e){return _.Jq.open(FPa(e))};
Wh.prototype.has=function(e){return _.Jq.has(FPa(e))};
Wh.prototype.delete=function(e){return _.Jq.delete(FPa(e))};
Wh.prototype.match=function(e,z){var C=this,w,K,G,X,J,q;return _.k(function(T){switch(T.nextAddress){case 1:return T.yield(C.keys(),2);case 2:w=T.yieldResult,K=_.b(w),G=K.next();case 3:if(G.done){T.jumpTo(5);break}X=G.value;return T.yield(C.open(X),6);case 6:return J=T.yieldResult,T.yield(J.match(e,z),7);case 7:if(q=T.yieldResult)return T.return(q);G=K.next();T.jumpTo(3);break;case 5:return T.return()}})};
var bnN=function(){};
_.U(bnN,Wh);var FPa=function(e){if(e.includes(":"))throw Error("nh`"+e);return e+":"+_.f0("CacheStorage get")};
bnN.prototype.keys=function(){var e,z,C,w,K,G,X,J,q;return _.k(function(T){if(T.nextAddress==1)return e=[],z=_.f0("CacheStorage keys"),T.yield(_.Jq.keys(),2);C=T.yieldResult;w=_.b(C);for(K=w.next();!K.done;K=w.next())G=K.value,X=_.Krg(G),J=X.originalName,q=X.datasyncId,q===z&&e.push(J);return T.return(e)})};var Ph=function(){var e=_.V.apply(this,arguments)||this;e.objectURL=null;e.loadTime=Infinity;return e};
_.U(Ph,_.V);_.Y=Ph.prototype;_.Y.renderIdom=function(){w_s(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&PQL(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.Y.objectFitToContentMode=function(e){switch(e){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.Y.logThumbnailFailureVe=function(){var e=_.mT(197497);_.yQ(_.nm(),e);var z=_.Pr();z&&e&&z&&_.Bf(z,[e])};
_.Y.loadImageFromCacheIfExists=function(e){var z=this,C=e.target;(C==null?0:C.src)&&Jbg(C.src).then(function(w){z.objectURL=_.jg(w).toString();z.setSrc(C,z.objectURL)}).catch(function(){})};
_.Y.onError=function(e){var z=this;if(_.M("web_use_cache_for_image_fallback")){var C=e.target;C&&Jbg(C.src).then(function(w){z.objectURL=_.jg(w).toString();z.setSrc(C,z.objectURL)}).catch(function(){_.M("kevlar_woffle_log_thumbnail_failure_ve")&&z.logThumbnailFailureVe();
_.M("kevlar_woffle_fallback_image")&&z.setSrc(C,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.Y.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.Y.setConfig=function(){var e=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(z){e.loadImageFromCacheIfExists(z);e.revokeObjectURL();Cvg(e.hostElement)},
onerror:function(z){e.onError(z)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.M("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.Y.setSrc=function(e,z){z&&(e.src=z)};
_.d([_.W(dAs),_.B("design:type",Object)],Ph.prototype,"ytIdomTemplatingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ph.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],Ph.prototype,"alt",void 0);_.d([_.F(),_.B("design:type",Boolean)],Ph.prototype,"ftlEligible",void 0);_.d([_.F(),_.B("design:type",Number)],Ph.prototype,"height",void 0);_.d([_.F(),_.B("design:type",Boolean)],Ph.prototype,"notifyOnLoaded",void 0);
_.d([_.F(),_.B("design:type",Boolean)],Ph.prototype,"notifyOnUnloaded",void 0);_.d([_.F(),_.B("design:type",String)],Ph.prototype,"objectFit",void 0);_.d([_.F(),_.B("design:type",String)],Ph.prototype,"objectPosition",void 0);_.d([_.F(),_.B("design:type",String)],Ph.prototype,"preferredThumbnail",void 0);_.d([_.F(),_.B("design:type",Boolean)],Ph.prototype,"preserveHeight",void 0);_.d([_.F(),_.B("design:type",Boolean)],Ph.prototype,"preserveWidth",void 0);
_.d([_.F({value:!0}),_.B("design:type",Boolean)],Ph.prototype,"useWidth",void 0);_.d([_.F({value:function(){return!_.cR("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.B("design:type",Boolean)],Ph.prototype,"shouldRenderLazy",void 0);_.d([_.F(),_.B("design:type",Number)],Ph.prototype,"width",void 0);_.d([_.fP({is:"yt-image",disableElementRegistration:!0})],Ph);
_.u(Ph,"yt-image",function(){if(E_S===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);e.content.insertBefore(O2g().content.cloneNode(!0),e.content.firstChild);
E_S=e}e=E_S;return e},{mode:2});var RQ=function(){return _.V.apply(this,arguments)||this};
_.U(RQ,_.V);RQ.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var e=_.SQ(this.data.onVisibleCommand);e&&this.ytComponentBehavior.resolveCommand(e)}};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],RQ.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.nE.YtVisibilityBehavior),_.B("design:type",Object)],RQ.prototype,"ytVisibilityBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],RQ.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],RQ);
_.u(RQ,"yt-bumper-user-edu-content-view-model",function(){if(fta===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;V$a===void 0&&(V$a=document.createElement("template"));var w=V$a;C.call(z,w.content.cloneNode(!0),e.content.firstChild);fta=e}e=fta;return e},{mode:0});var VWo;var fDU,SYU=function(){if(fDU!==void 0)return fDU;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;VWo===void 0&&(VWo=document.createElement("template"));var w=VWo;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return fDU=e};var uda;_.LE={};uda=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"]);_.LE.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var e=this.getContext_();return e?e.getTaskManager():_.c5},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var e=_.pi(this.hostElement,"yt-get-context-provider",{});e.detail&&e.detail.contextProvider?this.cachedProviderNode_=e.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return uda.has(this.hostElement.localName)},
getNetworkManager:function(){var e=this.getContext_();if(e)return e.getNetworkManager()}};var lpN,diS,i2s,Dio;_.hY=function(e){var z=diS.get(e);if(z&&(z=z.pop()))return Dio++,z;i2s++;try{var C=document.createElement(e)}catch(w){throw new _.uh("ElementPool failed to create element",e,w.message);}return C};
lpN=function(e){var z=e.is;if(z){var C=diS.get(z);C||(C=[],diS.set(z,C));var w=_.j5("ELEMENT_POOL_CONFIG")||{};C.length>=(w[z]!==void 0?w[z]:_.j5("ELEMENT_POOL_DEFAULT_CAP",0))||C.push(e)}else _.AX(new _.uh("Element pool should only handle custom elements:",e.nodeName))};
diS=new Map;i2s=0;Dio=0;var kf=new WeakMap,$Sm=new WeakMap;var sD4;_.O2=function(e,z,C){C=C===void 0?_.So():C;this.JSC$14064_defaultPriority=e;this.signal=z;this.scheduler=C;this.nextJobDescriptor=0;this.JSC$14064_parkedJobs=[];this.scheduledJobs=new Map};
_.E2=function(e,z){if(z){var C=_.Il();e.signal&&!_.Wc(C,e.signal)?(C.addListener(e.signal,function(){e.processSignal()}),e.JSC$14064_parkedJobs.push({job:z,
priority:void 0})):Nz6(e,z)}};
sD4=function(e,z){if(z!==e.JSC$14064_defaultPriority){e.JSC$14064_defaultPriority=z;for(var C=_.b(e.scheduledJobs.values()),w=C.next();!w.done;w=C.next())w=w.value,e.scheduler.cancelJob(w.jobId),w.jobId=e.scheduler.addJob(w.jobWrapper,z)}};
_.O2.prototype.flushJobs=function(){sD4(this,10);this.processSignal()};
_.O2.prototype.cancel=function(){for(var e=_.b(this.scheduledJobs),z=e.next();!z.done;z=e.next()){var C=_.b(z.value);z=C.next().value;C=C.next().value;this.scheduler.cancelJob(C.jobId);this.scheduledJobs.delete(z)}this.JSC$14064_parkedJobs=[]};
_.O2.prototype.processSignal=function(){for(var e=_.b(this.JSC$14064_parkedJobs),z=e.next();!z.done;z=e.next())z=z.value,Nz6(this,z.job,z.priority);this.JSC$14064_parkedJobs=[]};
var Nz6=function(e,z,C){C=C||e.JSC$14064_defaultPriority;if(C===10)bw(z);else{var w=e.nextJobDescriptor++,K=function(){z();e.scheduledJobs.delete(w)},G=e.scheduler.addJob(K,C);
e.scheduledJobs.set(w,{jobWrapper:K,jobId:G,priority:C})}};var Bz4;_.Fr={};Bz4={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Fr.YtRendererstamperBehavior=[_.LE.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 e in this.stampDom){var z=this.stampDom[e];z&&z.id&&this.addReactiveSchema({type:"observe",method:{methodName:qe5(z.id),args:[{type:"wildcard",path:e}]}})}else{(e=(this.constructor.generatedFrom||this).observers)||(e=[]);for(z in this.stampDom){var C=this.stampDom[z];C&&C.id&&e.push(qe5(C.id)+"("+z+".*)")}this.constructor.generatedFrom.observers=e}},
addStampDomObserverFns_:function(){for(var e in this.stampDom){var z=this.stampDom[e];z.id?(this[qe5(z.id)]=this.rendererStamperObserver_.bind(this,e,z.id),this.hasDataPath_[e]=!1):(z=new _.uh("Bad rendererstamper config",this.is+":"+e),_.yG(z))}},
rendererStamperObserver_:function(e,z,C){if(C.path==e){if(C.value===void 0&&!this.hasDataPath_[e])return;this.hasDataPath_[e]=C.value!==void 0}this.rendererStamperApplyChangeRecord_(e,z,C)},
rendererStamperApplyChangeRecord_:function(e,z,C){var w=this.renderJobsMap_[z],K=null;e==C.path?(C=C.value,_.B1(C)||(C=C===void 0||C===null?[]:[C]),e=this.stampDom[e],e.mapping&&(K=this.stampDomArray_.bind(this,C,z,e.mapping,e.reuseComponents,e.events,e.stamperStableList)),w&&w.cancel(),C=e.usePageScheduler?this.getTaskManager():void 0,w||e.initialRenderPriority==void 0)?e.renderPriority==void 0||w||(w=new _.O2(e.renderPriority,e.waitForSignal,C),this.renderJobsMap_[z]=w):(w=new _.O2(e.initialRenderPriority,
e.waitForSignal,C),this.renderJobsMap_[z]=w,K=function(G,X){G();sD4(X,10)}.bind(this,K,w)):K=e+".splices"==C.path?this.stampDomArraySplices_.bind(this,e,z,C.value):this.forwardRendererStamperChanges_.bind(this,e,z,C);
w?_.E2(w,K):K()},
forwardRendererStamperChanges_:function(e,z,C){var w=C.path.slice(e.length+1),K=this.getStampContainer_(z),G=w.indexOf("."),X=w.substring(0,G),J=!1,q=0,T=parseInt(X,0);if(X[0]=="#"){J=parseInt(X.substring(1),0);T=this.get(e);var Q=this.get([e,X]);T[J]==Q?q=J:q=T.indexOf(Q);J=!0}else isNaN(T)||(q=T,J=!0);J&&(w=w.substring(X.length+1),G=w.indexOf("."));X=this.polymerDom(K).children[q];var m;if(K=(m=X==null?void 0:X.polymerController)!=null?m:X)w="data"+w.slice(G),typeof K.notifyPath!=="function"?_.AX(new _.uh("notifyPath missing",
this.is+": "+e+", "+z)):C.value?K.notifyPath(w,C.value):K.notifyPath(w)},
stampDomArraySplices_:function(e,z,C){if(C&&C.indexSplices){var w=this.getStampContainer_(z);if(w){for(var K=this.polymerDom(w),G=Tgk(this.stampDom[e].reuseComponents),X=C.indexSplices.length,J=0;J<X;J++){for(var q=C.indexSplices[J],T=K.children[q.index],Q=q.removed.length;Q>0;Q--)T&&T.parentElement&&(this.polymerDom(T.parentElement).removeChild(T),G&&lpN(T),T=K.children[q.index]);Q=this.stampDom[e].mapping;for(var m=q.index+q.addedCount,a=document.createDocumentFragment(),n=G,H=q.index;H<m;H++){var I=
q.object[H],L=k2E(Q,I);if(L){var h=Q[L];I=I[L];L=this.getComponentName_(h,I);var E=T?kf.has(T):!1;n&&T&&T.is==L&&E?(L=T,this.telemetry_.reuse++,T=T.nextElementSibling):n&&T&&E?(L=this.createComponent_(h,I,G),E=this.polymerDom(T).nextElementSibling,K.insertBefore(L,E),mS5(this.is,K,T,G),T=E):(n=!1,L=this.createComponent_(h,I,G),a.appendChild(L));this.deferRenderStamperBinding_(L,h,I)}else h=new _.uh("Unimplemented type",e,z,w.tagName,Object.keys(I)[0]),_.yG(h)}K.insertBefore(a,T)}this.flushRenderStamperComponentBindings_();
this.stampDom[e].events&&_.pi(this.hostElement,"yt-rendererstamper-finished",{container:w})}else e=new _.uh("Container object not found",z,this.hostElement?this.hostElement.is:""),_.yG(e)}},
stampDomArray_:function(e,z,C,w,K,G){var X=this.getStampContainer_(z);if(X)if(z=this.polymerDom(X),w=Tgk(w),e){var J=0,q=0,T;if(G=G===void 0?_.cR("STAMPER_STABLE_LIST",!1):G||!1)for(T=z.firstElementChild;T&&!kf.has(T)&&e.length>q;){G=e[q];var Q=k2E(C,G);if(Q){if(this.getComponentName_(C[Q],G[Q])!=T.is){var m=this.createComponent_(C[Q],G[Q],w),a=this.polymerDom(T).nextElementSibling;a?z.insertBefore(m,a):z.appendChild(m);mS5(this.is,z,T,w);T=m}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(T,
C[Q],G[Q]);J++;q++;T=this.polymerDom(T).nextElementSibling}else q++}apg(this.is,z,J,w);J=T;if(e.length>q){G=document.createDocumentFragment();for(Q=e.length;q<Q;q++)if(m=e[q],a=k2E(C,m))T=this.createComponent_(C[a],m[a],w),this.deferRenderStamperBinding_(T,C[a],m[a]),G.appendChild(T);J&&this.polymerDom(J).parentNode&&T&&!kf.has(T)?z.insertBefore(G,J):z.appendChild(G)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();K&&_.pi(this.hostElement,"yt-rendererstamper-finished",
{container:X})}else apg(this.is,z,0,w);else e=new _.uh("Container object not found",z,this.hostElement?this.hostElement.is:""),_.yG(e)},
polymerDom:function(e){return this.minimizePipBreakages?e:_.mb(e)},
getStampContainer_:function(e){return this.$&&this.$[e]||_.XC(this.hostElement).querySelector("#"+e)},
getComponentName_:function(e,z){return typeof e==="string"?e:e.matcher?e.matcher.call(this,z):e.component},
createComponent_:function(e,z,C){e=this.getComponentName_(e,z);try{var w=eH4.has(e);if(C&&!w){var K=_.hY(e);try{_.T8(K)}catch(G){C="Failed to clear styles for "+e+".",G.message&&(C+=" Original error: "+G.message),_.AX(new _.uh(C))}}else K=document.createElement(e)}catch(G){return K="YtRendererStamperBehavior failed to create "+e+".",G.message&&(K+=" Original description: "+G.message),G.message="YtRendererStamperBehavior failed to create element",_.Zz(G,K),Bz4.hasOwnProperty(e)?_.AX(G):_.yG(G),document.createElement("SPAN")}this.telemetry_.create++;
return K},
deferRenderStamperBinding_:function(e,z,C){this.deferredBindingTasks_.push({component:e,typeOrConfig:z,data:C})},
flushRenderStamperComponentBindings_:function(){for(var e=0,z=this.deferredBindingTasks_.length;e<z;e++){var C=this.deferredBindingTasks_[e];if(!C)break;var w=void 0,K=void 0,G=void 0,X=void 0,J=C.component,q=C.typeOrConfig;C=C.data;var T=(X=J.polymerController)!=null?X:J;X=J.loggingStatus;try{X&&(X.isRendererStamper=!0);if(typeof q!=="string"){for(G in q.attributes)q.attributes[G]===!0?J.setAttribute(G,""):q.attributes[G]===!1?J.removeAttribute(G):J.setAttribute(G,q.attributes[G]);for(K in q.params)T[K]=
q.params[K],J!==T&&WI(J.localName,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(w in q.properties){var Q=q.properties[w];if(Q){var m=xSh(Q);T[w]=this.get(m);J!==T&&WI(J.localName,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(w==="on-tap"||w==="on-click"){var a=this.get(m);J.addEventListener("click",a);$Sm.set(J,{property:w,listener:{type:"element",eventName:"click",handler:a}})}}else{var n=new _.uh("Undefined property binding",w);_.yG(n)}}}if(q.classListBinding){var H=xSh(q.classListBinding),
I=H?this[H]:null;if(I)for(w=0;w<I.length;w++)_.k$(J,I[w],!0)}T.data=C}finally{X&&(X.isRendererStamper=!1)}if(w=kf.get(J))J.hidden=!1,kf.delete(J),_.c5.cancelJob(w)}this.deferredBindingTasks_.length=0}}];_.KU(_.f(function(e){function z(){C().seconds&&G(Xkg({seconds:Number(C().seconds)-Date.now()/1E3}))}
var C=e.targetTimestamp;e=e.className;var w=_.b(_.II("",void 0,"U1Q8Ae")),K=w.next().value,G=w.next().value;_.Nm(function(){z();var X=setInterval(function(){z()},1E3);
_.BC(function(){clearInterval(X)})});
return _.x("yt-countdown",{class:_.qT("ytCountDownHost",e)},_.x("div",null,K))},"x"),"yt-countdown",{props:{targetTimestamp:_.vh,
className:_.z9}});_.V5=new _.Mt("KEY_MANAGER_TOKEN");var Wr4={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.fE=_.f(function(e){var z=_.kI("a",e.ref),C=e.aTagConfig?e.aTagConfig:_.hG(function(){var w,K,G,X,J;var q=(J=_.SQ((G=e.command)==null?void 0:G.call(e)))!=null?J:(X=e.command)==null?void 0:X.call(e);return _.Df({innertubeCommand:q,skipOnClick:(w=e.skipOnClick)==null?void 0:w.call(e),defaultTarget:(K=e.target)==null?void 0:K.call(e)})||{}},void 0,"TAvz0");
_.sH(function(){_.M("mweb_get_endpoint_from_atag_command")||(z.value._data=C()._data,z.value.params=C().params)},"dcjvAe");
return _.x("a",{el:z,href:function(){return C().href$},
rel:function(){return C().rel$},
class:function(){var w,K;return(K=C().className)!=null?K:(w=e.className)==null?void 0:w.call(e)},
style:function(){var w;if((w=e.style)==null?0:w.call(e))return e.style();var K;return((K=e.disabled)==null?0:K.call(e))?"pointer-events:none":""},
"aria-haspopup":function(){return!!C()["aria-haspopup$"]},
"force-new-state":$f(function(){return C()["force-new-state$"]}),
title:$f(function(){var w,K;return(K=C().title$)!=null?K:(w=e.title)==null?void 0:w.call(e)}),
role:$f(function(){var w;return((w=e.role)==null?void 0:w.call(e))||C().role$}),
target:$f(function(){return C().target$}),
dir:$f(function(){var w;return((w=e.dir)==null?void 0:w.call(e))||C().dir}),
tabindex:function(){var w;return C().tabindex$?Number(C().tabindex$):(w=e.tabIndex)==null?void 0:w.call(e)},
"aria-hidden":function(){var w,K;return(K=C()["aria-hidden$"])!=null?K:(w=e.ariaHidden)==null?void 0:w.call(e)},
"aria-label":function(){var w,K;return(K=C()["aria-label$"])!=null?K:(w=e.ariaLabel)==null?void 0:w.call(e)},
"aria-current":e.ariaCurrent,"aria-disabled":e.disabled,"aria-labelledby":e.ariaLabelledby,"aria-describedby":e.ariaDescribedby,"aria-selected":e.ariaSelected,"tab-identifier":e.tabIdentifier,"on:pointerdown":_.T9(function(w){var K,G;return void((G=(K=C()).onpointerdown)==null?void 0:G.call(K,w))}),
"on:click":_.T9(function(w){var K,G;(G=(K=C()).onclick)==null||G.call(K,w);var X;(X=e.onClick)==null||X.call(e,w)}),
"on:focusin":_.T9(function(w){var K;(K=e.onFocusin)==null||K.call(e,w)}),
"on:focusout":_.T9(function(w){var K;(K=e.onFocusout)==null||K.call(e,w)})},e.children)},"z");var Vig={duration:1E3,easing:"ease",fill:"forwards"};Frs.componentType=Fy;var uI4={duration:1E3,easing:"ease",fill:"forwards"},jDL=_.f(function(e){var z=_.kI("animated-rolling-character"),C=void 0,w=function(){var J,q;return Br((J=e.character)==null?void 0:J.call(e))||Br((q=e.previousCharacter)==null?void 0:q.call(e))},K=_.b(_.II(0,void 0,"CYT8Ob")),G=K.next().value,X=K.next().value;
_.Nm(function(){if(window.ResizeObserver&&_.M("web_fix_rolling_numbers_zoom_safari")){var J=new _.lw(function(){var T,Q,m=Math.round(((Q=(T=z.value.querySelector("div"))==null?void 0:T.getBoundingClientRect().height)!=null?Q:0)*100)/100;m&&X(m)},500),q=new ResizeObserver(function(){J.fire()});
q.observe(z.value);_.BC(function(){q.disconnect();J.dispose()})}});
_.sH(function(){var J=_.M("web_fix_rolling_numbers_zoom_safari")?G:e.marginMultiplier;if(J()){var q;(q=C)==null||q.cancel();if(w()){var T;q=((T=e.previousCharacter)==null?0:T.call(e))?Number(e.previousCharacter())+10:e.rollUp()?0:30;var Q;if((Q=e.shouldAnimate)==null||!Q.call(e)){var m,a;q-=Se8((m=e.character)==null?void 0:m.call(e),(a=e.previousCharacter)==null?void 0:a.call(e),e.rollUp(),q)}}else{q=e.rollUp()?0:2;var n;(n=e.shouldAnimate)!=null&&n.call(e)||(T=q,Q=e.rollUp()?-1:1,q=T-Q)}z.value.style.marginTop=
"-"+q*J()+"px";var H;if((H=e.shouldAnimate)==null?0:H.call(e)){var I,L;C=dSo(z.value,(I=e.character)==null?void 0:I.call(e),(L=e.previousCharacter)==null?void 0:L.call(e),e.rollUp(),q,w(),J())}else{var h;z.value.style.display=((h=e.character)==null?0:h.call(e))?"":"none"}}},"CA6Pmf");
return _.x("animated-rolling-character",{el:z,class:"animatedRollingCharacterHost"},_.x(_.l,{cond:w,then:function(){return _.x(tWU,null)},
else:function(){return _.x(g_s,{character:e.character})}}))},"C");
jDL.idomCompat=!0;var DS5=_.M("web_enable_sink_animated_rolling_character_and_number")?jDL:Frs,yNS=_.M("web_enable_sink_animated_rolling_character_and_number")?jDL:fpk(Frs),tWU=_.f(function(){for(var e=[],z=1;z<30;z++)e.push(_.x("div",null,z%10));return _.x(_.Qw,null,_.x("div",null,"\u00a0"),e,_.x("div",null,"\u00a0"))},"D"),g_s=_.f(function(e){var z=e.character;
return _.x(_.Qw,null,_.x("div",null,"\u00a0"),_.x(_.l,{cond:function(){return!(z==null?0:z())||_.bg(z==null?void 0:z())},
then:function(){return _.x("div",null,"\u00a0")},
else:function(){return _.x("div",null,z)}}),_.x("div",null,"\u00a0"))},"E");inE.componentType=Fy;var cNX=_.f(function(e){var z=void 0,C=void 0,w=function(){var G;return((G=e.fontSizeMultiplier)==null?0:G.call(e))?e.heightPx()*e.fontSizeMultiplier():e.heightPx()},K=_.hG(function(){if(!e.numberText())return[];
var G,X,J=((G=e.forceRollUp)==null?void 0:G.call(e))||!C||!((X=e.numberValue)==null?0:X.call(e))||C<e.numberValue(),q,T=e.numberText();G=w();X=!((q=e.shouldAnimate)==null||!q.call(e));q=[];var Q=0,m=0,a=(z?z.replace(/\D/g,"").length:0)-(T?T.replace(/\D/g,"").length:0),n=z?z.split(/(\d)/).filter(Boolean):[];for(T=T.split(/(\d)/).filter(Boolean);a<0;){var H=T[m];q.push({character:H,rollUp:J,marginMultiplier:G,shouldAnimate:X});m++;Br(H)&&a++}for(;Q<a;)H=n[Q],q.push({previousCharacter:H,rollUp:J,marginMultiplier:G,
shouldAnimate:X}),Q++,Br(H)||a++;for(;m<T.length;)a=T[m],H=n[Q],Br(a)===Br(H)?(m++,Q++):Br(a)?(Q++,a=void 0):Br(H)&&(m++,H=void 0),q.push({character:a,previousCharacter:H,rollUp:J,marginMultiplier:G,shouldAnimate:X});z=e.numberText();var I;C=(I=e.numberValue)==null?void 0:I.call(e);return q},void 0,"kWiBv");
return _.x("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return e.numberText()?["height: "+w()+"px;","line-height: "+e.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.x(_.ui,{each:K,keyBy:"INDEX"},function(G){return _.x(yNS,{character:function(){return G().character},
previousCharacter:function(){return G().previousCharacter},
marginMultiplier:function(){return G().marginMultiplier},
rollUp:function(){return G().rollUp},
shouldAnimate:function(){return G().shouldAnimate}})}))},"F");
cNX.idomCompat=!0;_.ANh=_.M("web_enable_sink_animated_rolling_character_and_number")?cNX:fpk(inE);var Z2U=function(e,z){this.fillAnimation=new Animation(ti7(e),document.timeline);this.strokeAnimation=new Animation(gMg(z),document.timeline)};
Z2U.prototype.play=function(){var e,z;(z=(e=this.fillAnimation).play)==null||z.call(e);var C,w;(w=(C=this.strokeAnimation).play)==null||w.call(C)};
Z2U.prototype.cancel=function(){var e,z;(z=(e=this.fillAnimation).cancel)==null||z.call(e);var C,w;(w=(C=this.strokeAnimation).cancel)==null||w.call(C)};_.Sf=_.f(function(e){var z=e.model;var C=e.pointerDownEvent;var w=e.pointerUpEvent;var K=e.pointerLeaveEvent;var G=e.hovered;e=_.kI("yt-touch-feedback-shape");var X=_.kI("div"),J=_.kI("div"),q=_.b(_.zx(function(){return(w==null?0:w())||(K==null?0:K())?!1:!(C==null||!C())||!1})),T=q.next().value,Q=q.next().value,m=void 0,a=function(){!m&&J.value&&X.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(m=new Z2U(J.value,X.value));
var E;(E=m)==null||E.play()},n=function(){var E;
(E=m)==null||E.cancel()},H=function(){var E;
(E=m)==null||E.cancel()};
_.sH(function(){(w==null?0:w())&&a()},"bg756c");
_.sH(function(){(C==null?0:C())&&n()},"QAes8c");
_.sH(function(){(K==null?0:K())&&H()},"YaFbrc");
q=_.T9(function(){a();Q(!1)});
var I=_.T9(function(){n();Q(!0)}),L=_.T9(function(){H();
Q(!1)});
_.BC(function(){if(m){var E;(E=m)==null||E.cancel();m=void 0}});
var h={};T=_.qT("yt-spec-touch-feedback-shape",function(){return jyg(z().color)},function(){return ybE(z().thumbnailSize,!!z().isExtended)},(h["yt-spec-touch-feedback-shape--focused"]=function(){return!!z().focused&&!z().disabled},h["yt-spec-touch-feedback-shape--circular"]=function(){return!!z().circular},h["yt-spec-touch-feedback-shape--down"]=T,h["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!z().triggerEvents},h["yt-spec-touch-feedback-shape--hovered"]=function(){return G==
null?void 0:G()},h));
return _.x("yt-touch-feedback-shape",{el:e,class:T,style:_.QC({"margin-top":function(){return z().customTopExtend?"-"+z().customTopExtend+"px":void 0}}),
"on:mousedown":I,"on:mouseup":q,"on:pointerleave":L,"on:touchstart":I,"on:touchend":q,"aria-hidden":!0},_.x(_.l,{cond:function(){return!!z().hoverEffect},
then:function(){return _.x("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.QC({"border-radius":function(){return z().borderRadius},
background:function(){var E;if(E=z().hoverEffect){for(var N=[],D=_.b((E==null?void 0:E.lightingTechniques)||[]),g=D.next();!g.done;g=D.next())switch(g.value){case 2:var y=g=void 0,Z=void 0,YN=void 0;N.push("linear-gradient(180deg, "+((g=E)==null?void 0:(y=g.palette)==null?void 0:y.keyLight)+", "+((Z=E)==null?void 0:(YN=Z.palette)==null?void 0:YN.background)+")")}var Jk,v1;N.push((Jk=z().hoverEffect)==null?void 0:(v1=Jk.palette)==null?void 0:v1.background);E=N.join(", ")}else E=void 0;return E}})})}}),
_.x("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.QC({"border-radius":function(){return z().borderRadius},
"border-color":function(){var E,N;return(E=z().touchEffect)==null?void 0:(N=E.palette)==null?void 0:N.background}}),
el:X}),_.x("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.QC({"border-radius":function(){return z().borderRadius},
"background-color":function(){var E,N;return(E=z().touchEffect)==null?void 0:(N=E.palette)==null?void 0:N.background}}),
el:J}))},"J");
_.Sf.idomCompat=!0;var peS={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 uz=_.Q1();uz=uz.toLowerCase();if(_.X4(uz,"android")){var eM6=uz.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);eM6&&parseFloat(eM6[1])<100||uz.match("("+Object.keys(peS).join("|")+")")};var zML=_.f(function(e){return _.x(_.l,{cond:e.aTagConfig,then:function(z){return _.x(_.fE,{aTagConfig:z,disabled:e.disabled,className:e.className,style:e.style,title:e.title,ariaLabel:e.ariaLabel,ariaCurrent:function(){var C,w;return((C=e.toggleable)==null?void 0:C.call(e))&&((w=e.toggled)==null?void 0:w.call(e))},
ref:e.ref},e.children)},
else:function(){return _.x("button",{el:_.ej(e.ref),"on:click":_.T9(function(z){var C;return(C=e.onClick)==null?void 0:C.call(e,z)}),
class:e.className,title:e.title,style:e.style,disabled:e.disabled,"aria-pressed":function(){var z,C;return((z=e.toggleable)==null?0:z.call(e))?!((C=e.toggled)==null||!C.call(e)):void 0},
"aria-label":e.ariaLabel,"aria-disabled":e.visiblyDisabled,"aria-hidden":e.ariaHidden,tabindex:e.tabIndex},e.children)}})},"K"),w_C=_.f(function(e){var z=e.data;
var C=e.hasIconLeading;var w=e.hasIconLeadingTrailing;var K=e.hasIconTrailing;var G=e.iconButton;var X=e.iconClassName;var J=e.secondaryIconClassName;var q=e.icon;var T=e.secondaryIcon;var Q=e.textContentClassName;return _.x(dX,{className:"",style:"display: inherit; justify-content: center"},_.x(_.l,{debugInstance:"V4z1Uc",cond:function(){return q&&(C()||w()||(G==null?void 0:G()))},
then:function(){return _.x(dX,null,_.x("div",{class:X,"aria-hidden":"true"},q==null?void 0:q()))}}),_.x(_.l,{debugInstance:"ok3btb",
cond:function(){return(z().buttonText||z().animatedTextProps||z().formattedButtonText)&&!(G==null?0:G())},
then:function(){return _.x(dX,null,_.x(Cvo,{className:Q,iconPosition:function(){return z().iconPosition},
text:function(){return z().buttonText},
oneOffCustomTextWrap:function(){return z().oneOffCustomTextWrap},
formattedButtonText:function(){return z().formattedButtonText},
animatedTextProps:function(){return z().animatedTextProps}}))}}),_.x(_.l,{debugInstance:"DO5Rz",
cond:K,then:function(){return _.x(dX,null,_.x("div",{class:X},q==null?void 0:q()))}}),_.x(_.l,{debugInstance:"bnojSc",
cond:w,then:function(){return _.x(dX,null,_.x("div",{class:J},T==null?void 0:T()))}}),_.x(_.l,{debugInstance:"HN3kad",
cond:function(){return!z().disabled&&!0},
then:function(){return _.x(_.Sf,{model:function(){var m=z();return{color:m.style==="overlay-dark"?4:m.style==="overlay"?m.type==="filled"?4:3:m.type==="filled"||m.style==="call-to-action-inverse"||m.style==="mono-inverse"?2:1}}})}}))},"L"),Cvo=_.f(function(e){var z=function(){var C,w;
return((C=e.iconPosition)==null?void 0:C.call(e))==="icon-with-label"||((w=e.oneOffCustomTextWrap)==null?void 0:w.call(e))};
return _.x("div",{class:e.className,"aria-hidden":function(){var C,w,K;return((C=e.ariaHidden)==null?void 0:C.call(e))&&(!((w=e.animatedTextProps)==null||!w.call(e))||!((K=e.formattedButtonText)==null||!K.call(e)))}},_.x(_.d1,null,_.x(_.fd,{when:function(){var C;
return(C=e.animatedTextProps)==null?void 0:C.call(e)}},function(){return _.x(_.ANh,{numberText:function(){return e.animatedTextProps().numberText},
numberValue:function(){return e.animatedTextProps().numberValue},
heightPx:function(){return e.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return e.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return e.animatedTextProps().shouldAnimate},
forceRollUp:function(){return e.animatedTextProps().forceRollUp}})}),_.x(_.fd,{when:function(){var C;
return(C=e.formattedButtonText)==null?void 0:C.call(e)}},function(){return _.x(_.U2,{text:function(){return Object.assign({},e.formattedButtonText(),{lineBreakMode:z()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":e.formattedButtonText().lineBreakMode,
alignment:z()?"TEXT_ALIGNMENT_CENTER":e.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!z()}})}),_.x(_.fd,{when:function(){var C,w;
return((C=e.iconPosition)==null?void 0:C.call(e))==="icon-with-label"&&((w=e.text)==null?void 0:w.call(e))}},function(){return _.x(_.U2,{text:function(){return{content:e.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.x(_.S5,null,function(){return e.text})))},"M"),KrX=_.f(function(e){return _.x(_.l,{debugInstance:"kM7Sgc",
cond:e.hasLabel,then:function(){var z;return _.x("label",{class:e.className},e.children,(z=e.textContent)==null?void 0:z.call(e))},
else:function(){return e.children}})},"N"),dX=_.f(function(e){return e.children},"O");var oMs=_.f(function(e){function z(){G(void 0);J(void 0);T(void 0)}
var C=_.ej(),w=_.b(_.II(void 0,void 0,"Ug77pc")),K=w.next().value,G=w.next().value;w=_.b(_.II(void 0,void 0,"XGf7Zb"));var X=w.next().value,J=w.next().value,q=_.b(_.II(void 0,void 0,"w55oqd"));w=q.next().value;var T=q.next().value;q=_.b(_.II(0,void 0,"rBgpzc"));var Q=q.next().value,m=q.next().value;q=_.T9(function(){switch(Q()){case 1:m(2);break;case 3:var n,H;(H=(n=C.value).hidePopover)==null||H.call(n);m(0);z()}});
_.sH(function(){if(e.show()){var n;G((n=e.children)==null?void 0:n.call(e));var H;J((H=e.location)==null?void 0:H.call(e));var I;T((I=e.classNames)==null?void 0:I.call(e));switch(Q()){case 0:var L,h;(h=(L=C.value).showPopover)==null||h.call(L);m(1);break;case 3:m(1);var E,N;(N=(E=C.value).hidePopover)==null||N.call(E);var D,g;(g=(D=C.value).showPopover)==null||g.call(D)}}else switch(Q()){case 2:m(3);break;case 1:var y,Z;(Z=(y=C.value).hidePopover)==null||Z.call(y);z();m(0)}},"Z8V4Qb");
_.sg(function(){});
var a={};return _.x("yt-popover",{popover:"manual",el:C,style:_.QC({left:function(){var n;return(n=X())==null?void 0:n.left},
top:function(){var n;return(n=X())==null?void 0:n.top},
bottom:function(){var n;return(n=X())==null?void 0:n.bottom},
right:function(){var n;return(n=X())==null?void 0:n.right}}),
class:_.qT("ytPopoverComponentHost",w,(a.ytPopoverComponentHostClosing=function(){return Q()===3},a.ytPopoverComponentHostSeeThrough=function(){var n;
return((n=e.seeThrough)==null?void 0:n.call(e))===!0},a)),
"on:animationend":q},K)},"Q");var G2T={left:"0px",right:"auto",top:"0px",bottom:"auto"},Ye4=function(){var e=this;this.registerTooltipElement=function(C){var w;e.tooltipElement=(w=C.querySelector("yt-popover"))!=null?w:void 0};
var z=_.b(_.II(void 0,void 0,"EIh5sc"));this.state=z.next().value;this.setState=z.next().value;z=_.b(_.II(void 0,void 0,"PC1M0b"));this.schedulerJobID=z.next().value;this.setSchedulerJobID=z.next().value},KH7=function(e,z){var C=nU,w=_.c5.addJob(function(){var K=bnL(C,e,z);
C.currentConfig=z;C.setState({text:z.text,location:_.M("web_tooltip_location_fix")?void 0:K,anchor:e,offset:z.offset,style:z.style})},4,z.delay);
C.setSchedulerJobID(w)},oS4=function(){var e=nU,z=e.schedulerJobID();
z&&(_.c5.cancelJob(z),e.setSchedulerJobID(void 0));e.setState(void 0);e.currentConfig=void 0};
Ye4.prototype.notify=function(e,z){var C;((C=this.state())==null?void 0:C.anchor)===e&&(C=bnL(this,e,z),this.currentConfig=z,this.setState({text:z.text,location:_.M("web_tooltip_location_fix")?void 0:C,anchor:e,offset:z.offset,style:z.style}))};
var bnL=function(e,z,C){var w=z.getBoundingClientRect();z=window.innerWidth;var K=window.innerHeight,G=C.location,X=C.offset;C=C.text;if(e=e.tooltipElement){var J=getComputedStyle(e);e=J.font;var q=ao(J.lineHeight),T=ao(J.paddingLeft),Q=ao(J.paddingRight),m=ao(J.paddingTop);J=ao(J.paddingBottom);var a=document.createElement("canvas").getContext("2d");a.font=e;C={width:a.measureText(C).width+T+Q,height:q+m+J}}else C=void 0;e=C;if(!e)return G2T;C=e.width;e=e.height;T=X+e;m=X+C;q=w.top>=T;T=K-w.bottom>=
T;Q=w.left>=m;m=z-w.right>=m;J=G;switch(G){case "top":!q&&T&&(J="bottom");break;case "bottom":!T&&q&&(J="top");break;case "left":!Q&&m&&(J="right");break;case "right":!m&&Q&&(J="left")}switch(J){case "top":G=w.left+w.width/2-C/2;w=w.top-e-X;break;case "bottom":G=w.left+w.width/2-C/2;w=w.bottom+X;break;case "left":G=w.left-C-X;w=w.top+w.height/2-e/2;break;case "right":G=w.right+X;w=w.top+w.height/2-e/2;break;default:G=w.left+w.width/2-C/2,w=w.bottom+X}X=Object.assign({},G2T);G+C>z?(X.right="0px",X.left=
"auto"):(X.left=Math.round(Math.max(0,G)+window.scrollX)+"px",X.right="auto");w+e>K?(X.bottom="0px",X.top="auto"):(X.top=Math.round(Math.max(0,w)+window.scrollY)+"px",X.bottom="auto");return X};var nU;nU=new Ye4;_.X_c=_.f(function(){var e=_.hG(function(){var K;return(K=nU.state())==null?void 0:K.anchor},void 0,"tiGUn"),z=_.hG(function(){var K;
return(K=nU.state())==null?void 0:K.text},void 0,"TA2GQe"),C=_.hG(function(){var K;
return(K=nU.state())==null?void 0:K.style},void 0,"ucvFsf"),w=_.M("web_tooltip_location_fix")?_.hG(function(){var K=e();
var G=nU.currentConfig;if(K&&G)return bnL(nU,K,G)},void 0,"EpDz6"):_.hG(function(){var K;
return(K=nU.state())==null?void 0:K.location},void 0,"aRJtfd");
return _.x("yt-tooltip",{class:"ytTooltipContainerHost",el:_.ej(nU.registerTooltipElement),"aria-hidden":"true"},_.x(oMs,{classNames:function(){switch(C()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:w,show:function(){return!!z()&&!!w()},
seeThrough:!0},z))},"R");var BEg=xJ("stamper-context");_.DS=_.f(function(e){var z=e.data;var C=e.icon;var w=e.iconName;var K=e.animateIcon;var G=e.secondaryIcon;var X=e.secondaryIconName;var J=e.focusedOverride;var q=e.clientOnlyWizTooltipsEnabled;YlE();var T=cb1(z),Q=T.size,m=T.style;e=T.disabled;var a=T.onTap,n=T.alignByText,H=T.aTagConfig,I=T.customColors,L=T.segmentedPosition,h=T.toggled,E=T.toggleable,N=T.accessibilityLabel,D=T.onToggle,g=T.iconPosition,y=T.oneOffCustomTextWrap,Z=T.disableTextEllipsis,YN=T.disableBackdropFilter,Jk=T.tooltipText,
v1=T.ariaHidden,lg=T.tabIndex,M5=T.buttonText,fo=T.formattedButtonText,ug=T.animatedTextProps,sE=T.onClickRateLimitMs,w6=ezE(z,C,G,w,X,J,K),qY=w6.type;C=w6.shouldFocus;w=w6.hasIconLeading;K=w6.hasIconTrailing;var y1=w6.hasIconLeadingTrailing,Qa=w6.hasIconOnly;G=w6.hasIconOnly40;var Ha=w6.hasIconWithLabel;X=w6.iconButton;var OU=w6.visiblyDisabled;J=w6.overrideSmallSizeIcon;var ab=w6.iconToRender;w6=w6.secondaryIconToRender;var Pa=_.b(Gfh(Jk,T.tooltipShape)).next().value,$N=function(r6){a==null||a(r6);
E()&&(D==null||D(r6))},N5=_.hG(function(){return sE==null?void 0:sE()},void 0,"siKywb"),$L=_.hG(function(){return N5()?jvC($N,N5()):$N},void 0,"wDTcN");
T={};var Ba={};return _.x(KrX,{className:_.qT("yt-spec-button-shape-with-label",(T["yt-spec-button-shape-with-label--is-overlay"]=function(){return m()==="overlay"||m()==="overlay-dark"},T)),
hasLabel:Ha,textContent:function(){return _.x(Cvo,{text:M5,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:y,iconPosition:g,formattedButtonText:fo,animatedTextProps:ug})}},_.x(zML,{aTagConfig:H,
className:_.qT("yt-spec-button-shape-next",function(){return zzk(qY())},function(){return OU()?void 0:Crg(m())},function(){return w6o(Q())},(Ba["yt-spec-button-shape-next--disabled"]=OU,Ba["yt-spec-button-shape-next--focused"]=C,Ba["yt-spec-button-shape-next--icon-trailing"]=K,Ba["yt-spec-button-shape-next--icon-leading"]=w,Ba["yt-spec-button-shape-next--icon-leading-trailing"]=y1,Ba["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return y1()&&!(M5()||fo())},Ba["yt-spec-button-shape-next--icon-button"]=
function(){return Qa()||Ha()},Ba["yt-spec-button-shape-next--icon-only-default"]=G,Ba["yt-spec-button-shape-next--align-by-text"]=n,Ba["yt-spec-button-shape-next--segmented-start"]=function(){return L()==="start"},Ba["yt-spec-button-shape-next--segmented-end"]=function(){return L()==="end"},Ba["yt-spec-button-shape-next--override-small-size-icon"]=J,Ba["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=y,Ba["yt-spec-button-shape-next--disable-text-ellipsis"]=Z,Ba["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!YN()&&!_.M("web_disable_backdrop_filter")},Ba)),
style:function(){var r6=I();if(r6){var eE=r6.color;var q1=r6.backgroundColor;r6=r6.borderColor;var g6="";eE&&(g6+="color: "+eE+";");q1&&(g6+="background-color: "+q1+";");r6&&(g6+="border-color: "+r6+";");eE={style:g6}}else eE={};return eE.style},
onClick:function(r6){$L()(r6)},
disabled:e,ariaLabel:N,toggleable:E,toggled:h,title:function(){return(q==null?0:q())||!Jk()?"":Jk()},
visiblyDisabled:OU,ariaHidden:v1,tabIndex:lg,ref:function(r6){(q==null?0:q())&&Pa(r6)}},_.x(w_C,{data:z,
hasIconLeading:w,hasIconLeadingTrailing:y1,hasIconTrailing:K,iconButton:X,icon:ab,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:w6})))},"T");
_.DS.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.iz=_.f(function(e){var z=e.data;var C=e.className;var w=e.style;var K=e.useOutlinedIcon;var G=e.buttonOverrides;var X=e.animatedTextProps;var J=e.onClick;var q=e.target;var T=_.kI("button-view-model",function(D){D.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var g=z().targetId;g&&_.ZM(_.p3(),g,D);return function(){Al(_.p3(),D)}}),Q=function(){return z().iconName},m=_.rG(function(D){a:{var g=z().entityKey,y=z().buttonEntitySelectorType;
if(y&&g)switch(y){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":D=(D=_.xf(D,g))?{isHidden:D.adsState==="ADS_STATE_NONE"||D.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:D={isHidden:!1};break a}D=void 0}return D}),a,n=(a=_.lh().resolve(_.$B(_.jQ)))==null?void 0:a(),H=function(){var D=z();
var g=G==null?void 0:G(),y=X==null?void 0:X(),Z=q==null?void 0:q();if(D){var YN=$y7(D.type);var Jk=!!D.title||!!D.titleFormatted;var v1=!(!D.iconName&&!D.iconImage);Jk=v1&&!Jk?"icon-only":v1?D.iconTrailing||D.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Jk==="icon-only-40"&&(YN="text");var lg;v1=(lg=g==null?void 0:g.state)!=null?lg:lY4(D.state);var M5,fo=(M5=g==null?void 0:g.disabled)!=null?M5:D.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||D.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.M("web_button_vm_refactor_disabled")){var ug;fo=(ug=g==null?void 0:g.disabled)!=null?ug:v1==="disabled"}y=y&&y.numberText&&!isNaN(Number(y.numberValue))?y:void 0;M5=Object;ug=M5.assign;lg=D.title;var sE=D.titleFormatted,w6=D.accessibilityText,qY=T84(D.style),y1=QLk(D.buttonSize);Z=xym(D,T,fo,J,Z);fo=fo&&!D.onDisabledTap;var Qa=kfE(D,T),Ha=D.customFontColor,OU=D.customBackgroundColor;var ab=D.customBorderColor;var Pa=D.customDarkThemeFontColor,$N=D.customDarkThemeBackgroundColor,N5=D.customDarkThemeBorderColor;
Ha=n&&Pa?Pa:Ha;OU=n&&$N?$N:OU;ab=n&&N5?N5:ab;ab={color:Ha?_.FN(Ha):void 0,backgroundColor:OU?_.FN(OU):void 0,borderColor:ab?_.FN(ab):void 0};if(N5=_.r(D.tooltipData,dCh)){var $L;OU={text:($L=N5.tooltipText)!=null?$L:"",location:X6s(N5.placement),style:N5.style}}else OU=void 0;D=ug.call(M5,{},{buttonText:lg,formattedButtonText:sE,animatedTextProps:y,accessibilityLabel:w6,style:qY,type:YN,state:v1,size:y1,iconPosition:Jk,onTap:Z,disabled:fo,aTagConfig:Qa,customColors:ab,tooltipText:D.tooltip,tooltipShape:OU},
g)}else D={style:"mono",type:"text",state:"active",size:"M"};D.focused=h();return D},I=function(){return Zn5(H(),!!z().iconName)};
e=_.b(_.II(!1,void 0,"yZ8hab"));a=e.next().value;var L=e.next().value,h=a;e=_.T9(function(){var D=_.lh().resolve(_.$B(_.V5));D&&L(D.isKeyBoardInUse());return!1});
a=_.T9(function(){L(!1);return!1});
_.sH(function(){var D,g=_.r(z==null?void 0:(D=z())==null?void 0:D.onVisible,_.fm);g&&_.uA(g,{disableClickTracking:!0})},"G9MlKd");
var E=function(){var D;return(z==null?0:(D=z())==null?0:D.iconImage)?{sources:[z().iconImage]}:void 0},N=_.M("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.x("button-view-model",{el:T,class:_.qT("ytSpecButtonViewModelHost",C),"on:focusin":e,"on:focusout":a},_.x(_.l,{cond:function(){var D,g;return!((g=z().entityKey&&z().buttonEntitySelectorType&&((D=m())==null?void 0:D.isHidden))!=null&&g)},
then:function(){return _.x(_.l,{cond:E,then:function(D){return _.x(_.DS,{data:H,icon:function(){return _.x(_.Zf,{data:D,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:N})},
else:function(){return _.x(_.DS,{data:H,icon:function(){return _.x(_.mB,{icon:Q,active:function(){return(K==null?0:K())?!1:H().toggled},
animateIcon:function(){var D;return!!(w==null?0:(D=w())==null?0:D.animateIcon)},
size:I})},
clientOnlyWizTooltipsEnabled:N})}})}}))},"V");
_.iz.idomCompat={callbacks:{onClick:!0}};_.KU(_.f(function(e){return _.x("yt-button-view-model",{id:e.id,class:_.qT(e.scopingClassName,e.classes),icon:function(){var z;return(z=e.icon)==null?void 0:z.call(e)},
"dialog-dismiss":function(){var z;return((z=e.dialogDismiss)==null?0:z.call(e))?"":void 0}},_.x(_.iz,{data:function(){var z;
return(z=e.data)==null?void 0:z.call(e)},
className:function(){var z;return(z=e.className)==null?void 0:z.call(e)},
style:function(){var z;return(z=e.style)==null?void 0:z.call(e)},
useOutlinedIcon:function(){var z;return(z=e.useOutlinedIcon)==null?void 0:z.call(e)},
buttonOverrides:function(){var z;return(z=e.buttonOverrides)==null?void 0:z.call(e)},
animatedTextProps:function(){var z;return(z=e.animatedTextProps)==null?void 0:z.call(e)},
onClick:function(z){var C;return(C=e.onClick)==null?void 0:C.call(e,z)}}))},"W"),"yt-button-view-model",{props:{data:_.vh,
className:_.vh,style:_.vh,useOutlinedIcon:_.vh,buttonOverrides:_.vh,animatedTextProps:_.vh,onClick:_.z9,scopingClassName:_.vh,id:_.vh,icon:_.vh,dialogDismiss:_.vh,classes:_.vh,target:_.z9}});_.KU(_.f(function(e){var z=e.data;var C=e.id;var w=e.className;var K=e.iconName;var G=e.animateIcon;var X=e.secondaryIconName;e=_.b(_.II(!1,void 0,"TtJl8"));var J=e.next().value,q=e.next().value,T=function(){var m=_.lh().resolve(_.$B(_.V5));m&&q(m.isKeyBoardInUse())},Q=function(){q(!1)};
e=_.kI("yt-button-shape",function(m){if(_.lh().resolve(_.$B(_.V5)))return m.addEventListener("focusin",T),m.addEventListener("focusout",Q),function(){m.removeEventListener("focusin",T);m.removeEventListener("focusout",Q)}});
return _.x("yt-button-shape",{el:e,id:C,class:w},_.x(_.l,{cond:z,then:function(){return _.x(_.DS,{data:z,iconName:K,secondaryIconName:X,focusedOverride:J,animateIcon:G})}}))},"X"),"yt-button-shape",{props:{data:_.vh,
id:_.vh,className:_.vh,iconName:_.vh,animateIcon:_.vh,secondaryIconName:_.vh,clientOnlyWizTooltipsEnabled:_.vh,disableUpgrade:_.vh},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var tY=function(){var e=_.V.apply(this,arguments)||this;e.isGoalActive=!0;return e};
_.U(tY,_.V);tY.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
tY.prototype.progressBarChanged=function(){var e=_.XC(this.hostElement).querySelector("#progress-bar-progress"),z,C,w,K=(w=Number((z=this.creatorGoalState)==null?void 0:z.currentGoalCount)/Number((C=this.creatorGoalState)==null?void 0:C.totalGoalCount)*100)!=null?w:0,G;e.style.width=((G=Math.min(K,100))!=null?G:0)+"%"};
tY.prototype.goalStateChanged=function(){var e;this.isGoalActive=((e=this.creatorGoalState)==null?void 0:e.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var z;e={"--yt-progress-bar-color":g6h((z=this.creatorGoalState)==null?void 0:z.progressBarColor)};_.T8(this.hostElement,e)};
tY.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.lB.Object.defineProperties(tY.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var e;return this.isGoalActive&&!((e=this.creatorGoalState)==null||!e.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.creatorGoalState)==null?0:e.endTimestampMs){var z;e=Number((z=this.creatorGoalState)==null?void 0:z.endTimestampMs)/1E3;return{seconds:String(e)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.creatorGoalState)==null?0:e.themedTargetImage){var z;e=_.r((z=this.creatorGoalState)==null?void 0:z.themedTargetImage,RR6);return this.isAppDarkTheme()?e==null?void 0:e.imageDark:e==null?void 0:e.imageLight}}}});
_.lB.Object.defineProperties(tY,{template:{configurable:!0,enumerable:!0,get:function(){return SYU()}}});
tY.prototype.goalStateChanged=tY.prototype.goalStateChanged;tY.prototype.progressBarChanged=tY.prototype.progressBarChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],tY.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);
_.d([_.F({selectorArgs:["data.creatorGoalEntityKey"],selector:function(e,z){return _.xz(e.entities,"creatorGoalEntity",z)}}),
_.B("design:type",Object)],tY.prototype,"creatorGoalState",void 0);_.d([_.F(),_.B("design:type",Object)],tY.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],tY.prototype,"isGoalActive",void 0);_.d([_.P("creatorGoalState","isGoalActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tY.prototype,"shouldShowCountdown",null);_.d([_.P("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],tY.prototype,"endTimestamp",null);
_.d([_.P("creatorGoalState"),_.B("design:type",Object),_.B("design:paramtypes",[])],tY.prototype,"targetIconThemedImage",null);_.d([_.mi("creatorGoalState.currentGoalCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tY.prototype,"progressBarChanged",null);_.d([_.mi("creatorGoalState.creatorGoalState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tY.prototype,"goalStateChanged",null);
_.d([_.fP({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],tY);_.u(tY,"yt-creator-goal-progress-flow-view-model",function(){return SYU()},{mode:0});var Jbo;var k2U;var gX=function(){return _.V.apply(this,arguments)||this};
_.U(gX,_.V);gX.prototype.attached=function(){var e,z,C;if(this==null?0:(e=this.data)==null?0:(z=e.pdgPurchasedBumperLoggingDirectives)==null?0:(C=z.loggingDirectives)==null?0:C.trackingParams){var w,K,G;nSL(this==null?void 0:(w=this.data)==null?void 0:(K=w.pdgPurchasedBumperLoggingDirectives)==null?void 0:(G=K.loggingDirectives)==null?void 0:G.trackingParams)}};
gX.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],gX.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gX.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],gX);
_.u(gX,"yt-live-chat-item-bumper-view-model",function(){if(k2U===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Jbo===void 0&&(Jbo=document.createElement("template"));var w=Jbo;C.call(z,w.content.cloneNode(!0),e.content.firstChild);k2U=e}e=k2U;return e},{mode:0});var qeY;var xSS;_.pU=function(e,z){this.data=e;this.actions=z;this.data=e;this.actions=z};
_.sT=function(){};_.jf={};_.jf.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(e,z){MX7(this.hostElement,e,z)},
getNavigationEndpointPopupAction:function(e){return rj1(e,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(e,z){HI7(this.hostElement,e,z,this.openPopupConfig)}};var ES1=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.y5={};
_.y5.YtEndpointBehavior=[_.jf.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.j5("openPopupConfig");(this.useClickHandler=_.cR("useClickHandler",!1))?this.hostElement.addEventListener("click",$$(this,this.onEndpointClick_)):(yr(this.hostElement,"tap",$$(this,this.onEndpointTap_)),yr(this.hostElement,"touchend",$$(this,this.onEndpointTouchEnd_)));yr(this.hostElement,"touchstart",$$(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
$$(this,this.onEndpointTapStart_))},
onEndpointClick_:function(e){IYk(this.hostElement,e,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(e){var z=this.hostElement,C=this.openPopupConfig,w=this.disableCommandHandlerOverride;w=w===void 0?!1:w;var K=Uyg(e);if(K){K.href&&u6(K.href);var G=e.detail;var X=G.sourceEvent;G=G.preventer;X=X.button!==void 0?X.button===0&&!Hj(X):G?!Hj(G):!0;K.data&&X&&vSo(z,K,e,C,w)}},
onEndpointTouchEnd_:function(e){Hj(e)||Uyg(e)&&e.preventDefault()},
onEndpointTapStart_:function(e){hz1(e)}}];_.ch={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(e){for(var z=_.G4.getInstance(),C=_.b(Object.keys(e)),w=C.next();!w.done;w=C.next()){var K=w.value;w=e[K];if(this&&this[w]){var G=z.actionRoutingMap.get(K);G||(G=new Map,z.actionRoutingMap.set(K,G));z.registerActionHandler(this,K,this[w].bind(this),G)}else K=Error("ld"),K.params=w,_.AR(K)}},
unregisterActionMap:function(e){_.XL(_.G4.getInstance(),e,this)}}]};var Io=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_"+(_.M("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.M("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.M("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.M("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.M("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.M("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var vj;var Wj=new Map;var dy5=window.matchMedia("(forced-colors: active)").matches;var Tg4;var $Sh;var lpL=new _.Mt("LOTTIE_LOADER_TOKEN");_.AY=_.f(function(e){var z=e.data;var C=e.className;var w=e.animationName;var K=e.animationRef;var G=e.elRefForInterop;var X=_.qD("lottie-component"),J;_.BC(function(){var T;return void((T=J)==null?void 0:T.destroy())});
var q;_.sH(function(){var T=_.gp(w);if(T!==q){q=T;var Q=Object.assign({},{animationName:T,animationRef:_.gp(K)},_.gp(z));try{_.lh().resolve(lpL)().then(function(n){var H;(H=J)==null||H.destroy();var I,L;H=(L=G==null?void 0:(I=G())==null?void 0:I.value)!=null?L:X.value;I=Q.animationRef;L=Q.listeners;n=n.loadAnimation(Object.assign({},{container:H},Q.animationConfig));I&&(I.lottieEl=n);if(L)for(H=_.b(Object.entries(L)),I=H.next();!I.done;I=H.next())L=_.b(I.value),I=L.next().value,(L=L.next().value)&&
n.addEventListener(I,L);J=n})}catch(n){T=n;
var m="LottieComponent error.";T.message&&(m+=" Original description: "+T.message);_.Zz(T,m);_.AX(T);var a;((a=Q.listeners)==null?0:a.error)&&Q.listeners.error(T)}}},"nrJISd");
return _.x(m$7,{cond:function(){return!(G==null?0:G())},
then:function(){return _.x("lottie-component",{class:_.qT("ytLottieComponentHost",C),el:X})}})},"Z");_.KU(_.f(function(e){return _.x("ytd-lottie-player",{id:e.id,hidden:e.hidden,class:e.className,"aria-label":e.ariaLabel,style:"display: block;"},_.x(_.AY,{data:e.data,animationName:function(){var z;return((z=e.data().animationConfig)==null?void 0:z.name)||""},
animationRef:function(){return e.data().animationRef}}))},"$"),"ytd-lottie-player",{props:{data:_.vh,
id:_.vh,hidden:_.vh,className:_.vh,ariaLabel:_.vh}});var ZS=function(){var e=_.V.apply(this,arguments)||this;e.animationRef={};e.delhiIconsEnabled=_.M("enable_web_delhi_icons");return e};
_.U(ZS,_.V);_.Y=ZS.prototype;
_.Y.handlePropertyChange=function(){var e=this.animatedIcon,z=this.active,C=this.isDarkTheme;if(e){var w=this.previousActive!==z;this.previousActive=z;this.animationRef.lottieEl?w?this.toggleAnimation(z,e.totalFrames):_.M("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(z,e.totalFrames):z?this.initializeAnimationAsToggled(e.lottiePlayerProps,e.totalFrames):this.initializeAnimationAsUntoggled(e.lottiePlayerProps);e.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
e.type;this.lottiePlayerProps=this.computeLottiePlayerProps(e,C)}};
_.Y.computeLottiePlayerProps=function(e,z){var C=this.deepCloneLottiePlayerProps(e);z?(z=e.nameDarkTheme,e=e.pathDarkTheme):(z=e.name,e=e.path);C.animationConfig.name=z;(z=Wj.get(e))?C.animationConfig.animationData=z:C.animationConfig.path=e;return C};
_.Y.initializeAnimationAsToggled=function(e,z){e.animationConfig.initialSegment=[z-1,z]};
_.Y.initializeAnimationAsUntoggled=function(e){e.animationConfig.initialSegment=void 0};
_.Y.toggleAnimation=function(e,z){if(e){var C;(C=this.animationRef.lottieEl)==null||C.playSegments([0,z],!0)}else{var w;(w=this.animationRef.lottieEl)==null||w.playSegments([0,1],!0)}};
_.Y.setAnimationState=function(e,z){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(e?z-1:0,!0)};
_.Y.deepCloneLottiePlayerProps=function(e){var z=Object.assign({},e.lottiePlayerProps.animationConfig);e=Object.assign({},e.lottiePlayerProps);e.animationConfig=z;return e};
ZS.prototype.handlePropertyChange=ZS.prototype.handlePropertyChange;_.d([_.F(),_.B("design:type",Object)],ZS.prototype,"animatedIcon",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],ZS.prototype,"active",void 0);_.d([_.F(),_.B("design:type",Boolean)],ZS.prototype,"isDarkTheme",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],ZS.prototype,"animatedIconType",void 0);_.d([_.F(),_.B("design:type",Boolean)],ZS.prototype,"previousActive",void 0);
_.d([_.F(),_.B("design:type",Object)],ZS.prototype,"lottiePlayerProps",void 0);_.d([_.F(),_.B("design:type",Object)],ZS.prototype,"animationRef",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ZS.prototype,"delhiIconsEnabled",void 0);_.d([_.mi("animatedIcon","active","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZS.prototype,"handlePropertyChange",null);_.d([_.fP({is:"yt-animated-icon",disableElementRegistration:!0})],ZS);
_.u(ZS,"yt-animated-icon",function(){if($Sh===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Tg4===void 0&&(Tg4=document.createElement("template"));var w=Tg4;C.call(z,w.content.cloneNode(!0),e.content.firstChild);$Sh=e}e=$Sh;return e},{mode:2});var QyS;var mSY;_.Pj=_.f(function(e){var z={value:null,cancelled:!1};_.BC(function(){z.cancelled=!0});
var C=_.hG(e.data,{equals:function(w,K){return w.iconName===K.iconName&&w.iconStyle===K.iconStyle&&w.iconSize===K.iconSize&&w.iconSetName===K.iconSetName&&w.iconSelected===K.iconSelected}},"ck24jb");
return _.x("span",{class:"yt-icon-shape",el:_.ej(function(w){_.sH(function(){var K,G=(K=e.options)==null?void 0:K.call(e);K=C();B85(w,z,K,G)},"v878Je")})})},"ba");
_.Pj.idomCompat=!0;var YPs=["youtube_fill","youtube_outline"];var apo=new _.zK({type:"iconset",value:void 0}),pE=function(){var e=_.V.apply(this,arguments)||this;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.iconName="";e.iconsetName="yt-icons";e.iconset=null;e.missingIconSet=!1;e.iconType=null;e.iconShapeDataSignal=_.II(void 0,void 0,"TaEgXd");e.renderingOptionsSignal=_.II({iconWidth:"100%",iconHeight:"100%",iconFilter:e.iconFilter,iconColor:e.gradientColor},void 0,"a1vqYe");e.wizHasRendered=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return e};
_.U(pE,_.V);pE.prototype.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e)};
pE.prototype.handlePropertyChange=function(){var e=this,z,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h;return _.k(function(E){switch(E.nextAddress){case 1:if(z=!e.icon&&!e.iconName||!e.isAttached)return E.return();C=e;w=C.icon;K=C.size;G=C.defaultToFilled;X=C.active;J=C.targetContainer;e.toggleContainerClass(J);_.M("kevlar_use_wil_icons")&&w&&(q=r6E(w),e.iconType=q.length?q[1]:null);if(w){E.jumpTo(2);break}e.iconsetName="";e.iconName="";return E.yield(e.renderIcon(J,w),3);case 3:return E.return();case 2:T=nMU(w);
Q=r6E(T);Q.length&&(e.iconsetName=Q[0],e.iconName=Q[1]);if(!_.M("kevlar_use_wil_icons")){E.jumpTo(4);break}m=pE;a=MiY;n=e.iconType;H=e.active;I=e.defaultToFilled;L=e.size;h=e.iconsetName;return E.yield(rbY(),6);case 6:return E.yield(a.call(m,n,H,I,L,h,E.yieldResult),5);case 5:e.iconShapeData=E.yieldResult;case 4:if(e.shouldRenderIconShape(J)){E.jumpTo(7);break}return E.yield(e.determineIconSet(T,X,G,K,J),7);case 7:return E.yield(e.renderIcon(J,w),0)}})};
pE.prototype.toggleContainerClass=function(e){e?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var nMU=function(e){return!_.M("default_to_innertube_icon")||e.indexOf(":")>0?e:_.qF(e)};
_.Y=pE.prototype;_.Y.determineIconSet=function(e,z,C,w){var K=this;return _.k(function(G){return G.nextAddress==1?_.M("kevlar_system_icons")||_.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.j5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?G.yield(K.switchToYtSysIconset(e,z,C,w),3):G.jumpTo(2):G.nextAddress!=2?G.return():G.yield(K.useYtSysIconsetForMissingIcons(e,z,C,w),0)})};
_.Y.switchToYtSysIconset=function(e,z,C,w){var K=this,G,X,J,q,T,Q,m;return _.k(function(a){switch(a.nextAddress){case 1:if(!e||K.iconsetName!=="yt-icons"&&K.iconsetName!=="yt-sys-icons"){a.jumpTo(0);break}G=r6E(e);X=G[1];var n=X;if(LQN(n))X=n;else{var H=n=n.toLowerCase();(n=L3o.get(n))&&(H=n);X=H}_.M("enable_polymer_icons_replace_underscores_dash")&&X.includes("_filled")&&(X=X.replace(/_filled/g,"-filled"));return a.yield(kp(X,!0),3);case 3:return J=a.yieldResult,a.yield(kp(X,!1),4);case 4:if((q=
a.yieldResult)||z&&J)K.iconsetName="yt-sys-icons";K.iconName=K.getIconName(X,z,C,q,J);if(w===24){a.jumpTo(0);break}T="yt-sys-icons"+w+":"+K.iconName;return a.yield(kp(T,!1,!0),6);case 6:return Q=a.yieldResult,a.yield(kp(T,!0,!0),7);case 7:m=a.yieldResult;K.iconName=K.getIconName(X,z,C,Q,m);if(!z&&Q||z&&m)K.iconsetName="yt-sys-icons"+w;_.E_(a)}})};
_.Y.getIconName=function(e,z,C,w,K){e.includes("-filled")&&(e=e.replace("-filled",""));return K&&(z||C)?e+"-filled":e};
_.Y.useYtSysIconsetForMissingIcons=function(e,z,C,w){var K=this,G,X;return _.k(function(J){if(J.nextAddress==1)return K.iconsetName!=="yt-icons"?J.jumpTo(0):J.yield(kp(K.iconName,!1,!1,!0),3);if(J.nextAddress!=4)return G=J.yieldResult,J.yield(kp(K.iconName,!1),4);X=J.yieldResult;if(G||!X)return J.jumpTo(0);K.iconsetName="yt-sys-icons";return J.yield(K.switchToYtSysIconset(e,z,C,w),0)})};
_.Y.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var rbY=function(){return _.k(function(e){try{return e.return(_.lh().resolve(_.xp))}catch(z){return e.return(new Promise(function(C){_.Il().parkOrScheduleJob(function(){C(_.lh().resolve(_.xp))},2,"ci")}))}})},MiY=function(e,z,C,w,K,G){w=w===void 0?24:w;
if(e){e=e.toLowerCase();var X=e.endsWith("_filled")||e.endsWith("-filled");z={iconName:e,iconStyle:(z===void 0?0:z)||(C===void 0?0:C)||X?"youtube_fill":"youtube_outline",iconSize:w,iconSetName:K===void 0?"yt-icons":K};C=!!G.resolveIcon(z);C||(z.iconSize=void 0,C=!!G.resolveIcon(z));!C&&X&&(z.iconName=e.substring(0,e.length-7),z.iconSize=w,C=!!G.resolveIcon(z),C||(z.iconSize=void 0,C=!!G.resolveIcon(z)));C||(z.iconStyle=void 0,C=!!G.resolveIcon(z));C||_.AX(new _.uh("Icon not supported",{iconName:z.iconName,
iconStyle:z.iconStyle,iconSize:z.iconSize,iconType:e}));return C?z:void 0}};
_.Y=pE.prototype;_.Y.shouldRenderIconShape=function(e){if(!_.M("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;e=this.getContainer(e);return!Dyk(e,this.icon)};
_.Y.renderIcon=function(e,z){var C=this,w,K,G,X,J,q,T,Q;return _.k(function(m){switch(m.nextAddress){case 1:if(z&&C.icon!==z)return m.return();w=C.getContainer(e);K=Dyk(w,C.icon);if(C.shouldRenderIconShape(e)&&C.iconType)return C.applyIconShape(K,w),m.return();C.removeIconShape();if(!w)return m.return();C.iconName===""&&C.iconset&&w&&(C.removeStaticIcon(C.iconset,w),K&&C.removeAnimatedIcon(w));if(C.iconName===""&&C.iconset||!C.iconsetName||!apo)return m.return();C.iconset=apo.byKey(C.iconsetName);
if(!C.iconset)return C.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.lE(C,C.onIconsetAdded)),m.return();C.missingIconSet&&(C.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.lE(C,C.onIconsetAdded)));X=(G=K||C.isAnimatedIcon?Sls(C.icon):void 0)&&!G.lazyLoad;q=G&&((J=G)==null?void 0:J.lazyLoad)&&(G.lottiePlayerProps.animationConfig.animationData?!0:Wj.get(C.isDarkTheme?G.pathDarkTheme:G.path)?!0:!1);if(X||q)return C.applyAnimatedIcon(w,G,C.iconset),m.return();if(q||
(T=G)==null||!T.lazyLoad){m.jumpTo(2);break}Q=N81(G,C.isDarkTheme);C.applyStaticIcon(C.iconset,w,C.iconName,e,K);return m.yield(Q,3);case 3:return m.yield(C.renderIcon(C.targetContainer,C.icon),4);case 4:return m.return();case 2:C.applyStaticIcon(C.iconset,w,C.iconName,e,K),_.E_(m)}})};
_.Y.getContainer=function(e){var z,C=(z=GMo(this.hostElement))==null?void 0:z.host;z=!!C&&!!C.polymerController;if(!e||z)return e?this.getTargetContainer(e,C):this.hostElement};
_.Y.getTargetContainer=function(e,z){var C=_.XC(z).querySelector("#"+e);C||(e=new _.uh("yt-icon container missing",z.is,e),_.yG(e));return C};
_.Y.applyStaticIcon=function(e,z,C,w,K){K&&this.removeAnimatedIcon(z);this.removeIconShape();K=K&&!!this.iconType&&!!this.iconShapeData&&_.M("kevlar_use_wil_icons");try{K?this.applyIconShape(!1,z):e.applyIcon(z,C)}catch(G){this.handleError(G,w,z)}};
_.Y.applyIconShape=function(e,z){this.iconset&&z&&(this.removeStaticIcon(this.iconset,z),e&&this.removeAnimatedIcon(z));e={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var C=_.b(this.iconShapeDataSignal);z=C.next().value;C=C.next().value;var w=_.b(this.renderingOptionsSignal),K=w.next().value;w=w.next().value;C(this.iconShapeData);w(e);if(!this.wizHasRendered)for(this.wizHasRendered=!0,e=_.b(tXh(z,K)).next().value;e.firstChild;)_.XC(this.hostElement).appendChild(e.firstChild)};
_.Y.removeIconShape=function(){if(_.M("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.Y.removeStaticIcon=function(e,z){e.removeIcon(z)};
_.Y.applyAnimatedIcon=function(e,z,C){this.removeStaticIcon(C,e);this.removeIconShape();var w;C=this.animatedIconElement&&((w=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:w.type)===z.type;if(this.animatedIconElement&&C){this.animatedIconElement.polymerController.animatedIcon=z;var K;((K=this.animatedIconElement)==null?void 0:K.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(e),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=z,this.animatedIconElement.polymerController.active=this.active,_.M("delhi_modern_web_player_icons")?(z=uTk(e,this.icon)&&e.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=z?z.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.M("kevlar_use_wil_icons")?
e.insertBefore(this.animatedIconElement,e.childNodes[0]):(e=_.XC(e),e.insertBefore(this.animatedIconElement,e.childNodes[0]))};
_.Y.removeAnimatedIcon=function(e){_.M("kevlar_use_wil_icons")?this.animatedIconElement&&e.contains(this.animatedIconElement)&&e.removeChild(this.animatedIconElement):(e=_.XC(e),this.animatedIconElement&&e.contains(this.animatedIconElement)&&e.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.Y.handleError=function(e,z,C){_.Zz(e,this.iconName,z,C);z=Dyk(C,this.icon);var w=!1;window.location.href.includes("JpymaW6Lh2w")?w=!0:C._svgIcon&&(C=(C=C._svgIcon.parentNode)?C.tagName:"unknown",_.Zz(e,C),C==="YT-ICON"&&e.name==="NotFoundError"?w=!0:e.name==="NotFoundError"&&z&&(w=!0));w?_.AX(e):_.yG(e)};
_.lB.Object.defineProperties(pE,{template:{configurable:!0,enumerable:!0,get:function(){if(mSY===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;
QyS===void 0&&(QyS=document.createElement("template"));var w=QyS;C.call(z,w.content.cloneNode(!0),e.content.firstChild);mSY=e}e=mSY;return e}}});
pE.prototype.handlePropertyChange=pE.prototype.handlePropertyChange;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],pE.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",String)],pE.prototype,"icon",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],pE.prototype,"active",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],pE.prototype,"defaultToFilled",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],pE.prototype,"isAnimatedIcon",void 0);
_.d([_.F({value:24}),_.B("design:type",Number)],pE.prototype,"size",void 0);_.d([_.F({value:""}),_.B("design:type",String)],pE.prototype,"targetContainer",void 0);_.d([_.F(),_.B("design:type",Object)],pE.prototype,"animatedIconElement",void 0);_.d([_.F(),_.B("design:type",Object)],pE.prototype,"isDarkTheme",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],pE.prototype,"ariaHidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],pE.prototype,"ariaLabel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],pE.prototype,"role",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],pE.prototype,"tabindex",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],pE.prototype,"title",void 0);_.d([_.F(),_.B("design:type",String)],pE.prototype,"style",void 0);_.d([_.F(),_.B("design:type",String)],pE.prototype,"iconFilter",void 0);_.d([_.F(),_.B("design:type",String)],pE.prototype,"gradientColor",void 0);
_.d([_.mi("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],pE.prototype,"handlePropertyChange",null);_.d([_.fP({is:"yt-icon",noInjection:!0})],pE);var gSE="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),yj1=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Hn6={};Hn6.YtPlaintextBehavior=[_.cv,{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(e){e.preventDefault();e=e.clipboardData.getData("text/plain");document.execCommand("insertText",!1,e)},
preventRichTextFormatting_:function(e){_.U7&&(e=e.detail.keyboardEvent,e.stopImmediatePropagation(),e.preventDefault())}}];var USs;var vMc;var ew=function(){var e=_.V.apply(this,arguments)||this;e.ignoreShadyDom=!1;e.hasChange_=!1;e.hasSetTitle_=!1;e.useIOObserverForVisibilityLogging_=_.M("kevlar_use_vimio_behavior")&&_.j5("INNERTUBE_CLIENT_NAME")==="WEB";e.ytFormattedStringObserverHandlerKeys_=void 0;return e};
_.U(ew,_.V);_.Y=ew.prototype;_.Y.created=function(){this.useIOObserverForVisibilityLogging_=_.M("kevlar_use_vimio_behavior")&&_.j5("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.Y.ready=function(){_.j5("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_()};
_.Y.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.Y.detached=function(){this.unobserveIOObservers_()};
_.Y.clearContents_=function(){for(var e=this.getRoot(),z=e.lastChild;z&&z.tagName!=="STYLE";){try{e.removeChild(z)}catch(C){break}z=e.lastChild}};
_.Y.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var e=_.b(this.ytFormattedStringObserverHandlerKeys_),z=e.next();!z.done;z=e.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(z.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.Y.resetForAttributedString=function(){var e=this.getRoot();!e.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),e.appendChild(this.ytAttributedStringElementRef))};
_.Y.resetForFormattedString=function(){var e=this.getRoot(),z=e.querySelector("yt-attributed-string");z&&(this.ytAttributedStringElementRef=e.removeChild(z))};
_.Y.textChanged=function(){this.textChanged_(this.text)};
_.Y.textChanged_=function(e){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!e||!e.runs&&!e.simpleText;if(_.M("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var z=this.hostElement.firstChild;z&&z.nodeName==="FONT";){var C=z;z=z.nextSibling;this.hostElement.removeChild(C)}z=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
C=e.simpleText;var w;!C&&((w=e.runs)==null?void 0:w.length)===1&&this.isSimpleString_(e.runs[0])&&(C=e.runs[0].text);C!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.j5("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(C!==void 0){try{z.textContent=C}catch(K){}z.textContent||(this.isEmpty=!0)}else e=e.runs,C!==void 0&&(e=[{text:C}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),e&&this.updateText_(e),
z.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.Y.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)};
_.Y.computeAriaLabel_=function(e){return e};
_.Y.computeEllipsisTruncateStyling=function(e,z){return e&&!z};
_.Y.computeUseAttributedString=function(e){return _.M("web_replace_formatted_with_attributed_string")&&XBE(e)&&!this.disableAttributedString&&!this.enableContentEditable};
_.Y.setNodeStyle_=function(e,z){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.M("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?z.removeAttribute("dir"):z.setAttribute("dir","auto");z.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");z.style.color="";var C=null;this.noStyles||(e.bold&&(z.classList.add("bold"),C="bold"),e.deemphasize&&(z.classList.add("deemphasize"),C="deemphasize"),e.italics&&z.classList.add("italic"),
e.strikethrough&&z.classList.add("strikethrough"),e.errorUnderline&&(z.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),e.bracket&&z.classList.add("bracket"),e.textColor&&(z.style.color=_.EG(e.textColor)));C!==z.getAttribute("style-target")&&(C?z.setAttribute("style-target",C):z.removeAttribute("style-target"))};
_.Y.setUpVisibilityLogging_=function(e,z){var C=this;this.setNodeTrackingParams_(e,z);var w;((w=z.data)==null?0:w.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(e=this.ytRendererBehavior.visibilityObserver.observe(z,function(K){var G=C.ytRendererBehavior.getVisibilityLogger();G&&G.reportShown(K)},this.ytRendererBehavior.visibilityOptionVisible_),z=this.ytRendererBehavior.visibilityObserver.observe(z,function(K){var G=C.ytRendererBehavior.getVisibilityLogger();
G&&G.reportHidden(K)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(e),this.ytFormattedStringObserverHandlerKeys_.push(z))};
_.Y.setNodeTrackingParams_=function(e,z){z.data||(z.data={});if((e=e.loggingDirectives?e.loggingDirectives.trackingParams:null)||z.data.trackingParams)z.data.trackingParams=e};
_.Y.computeHasLinkOnly_=function(e){return!(!e||e.length!==1||this.noEndpoints||!e[0].navigationEndpoint)};
_.Y.getRoot=function(){var e=this.buildScopeDomOptions();return this.enableContentEditable?_.XC(_.XC(this.hostElement,e).querySelector("[contenteditable]")):_.XC(this.hostElement,e)};
_.Y.fixContenteditableScope=function(){var e=function(z){z&&(z.nodeType===1&&z.classList&&(z.classList.add("style-scope"),z.classList.add("yt-formatted-string")),z.childNodes&&z.childNodes.forEach(function(C){e(C)}))};
e(this.getRoot())};
_.Y.updateText_=function(e){for(var z=e.length,C=this.getRoot(),w=C.firstChild;w&&w.nodeName==="STYLE";)w=w.nextSibling;for(var K=0;K<z&&w;){var G=e[K],X=_.M("remove_cr_char")&&G.text?G.text.replace("\r",""):G.text;if(this.isSimpleString_(G)&&!this.useMixedDirectionFormattedStrings)if(w.nodeName==="#text"){w.textContent!=X&&(w.textContent=X);K++;w=w.nextSibling;continue}else break;if(_.r(G,FH))break;else if(!this.noEndpoints&&G.navigationEndpoint){if(w.nodeName!=="A")break;this.setDataOnAnchor_(w,
G.navigationEndpoint)}else if(w.nodeName!=="SPAN")break;this.setNodeStyle_(G,w);this.setUpVisibilityLogging_(G,w);w.textContent!=X&&(w.textContent=X);K++;w=w.nextSibling}if(w)for(G=C.lastChild,w=K?w.previousSibling:null;G&&G!=w;){try{C.removeChild(G)}catch(J){break}G=C.lastChild}K!==z&&this.addTextNodes_(e,K)};
_.Y.addTextNodes_=function(e,z){for(var C=document.createDocumentFragment(),w=e.length;z<w;z++){var K=e[z],G=_.M("remove_cr_char")&&K.text?K.text.replace("\r",""):K.text;if(this.isSimpleString_(K)&&!this.useMixedDirectionFormattedStrings)C.appendChild(document.createTextNode(G));else{var X=_.r(K,FH);if(X){if(X.image){var J=document.createElement("img");X.isCustomEmoji||J.classList.add("small-emoji");J.classList.add("emoji");X.isCustomEmoji&&(J.dataset.emojiId=X.emojiId);J.src=_.oo(X.image.thumbnails,
this.emojiSize);(K=this.get("image.accessibility.accessibilityData.label",X))?J.alt=K:X.shortcuts&&X.shortcuts.length>0?J.alt=X.shortcuts[0]:X.emojiId&&(J.alt=X.emojiId);C.appendChild(J);this.hasEmoji=!0}}else!this.noEndpoints&&K.navigationEndpoint?(J=document.createElement("a"),J.classList.add("yt-simple-endpoint"),J.setAttribute("spellcheck","false"),this.setDataOnAnchor_(J,K.navigationEndpoint)):J=document.createElement("span"),this.setNodeStyle_(K,J),this.setUpVisibilityLogging_(K,J),J.appendChild(document.createTextNode(G)),
C.appendChild(J)}}this.getRoot().appendChild(C)};
_.Y.isSimpleString_=function(e){return(this.noEndpoints||!e.navigationEndpoint)&&!_.r(e,FH)&&(this.noStyles||!(e.bold||e.deemphasize||e.italics||e.strikethrough||e.errorUnderline||e.bracket||e.textColor))&&!e.loggingDirectives};
_.Y.getRawText=function(){return _.Zd(this.text)};
_.Y.getFirstRunText=function(){var e;if(((e=this.text)==null?0:e.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.Y.setFirstRunText=function(e){var z;((z=this.text)==null?0:z.runs)&&this.text.runs[0]&&(this.text.runs[0].text=e,this.textChanged_(this.text))};
_.Y.setDataOnAnchor_=function(e,z){var C=this;!_.M("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(z)||this.isSignalServiceEndpoint_(z)?(e.onclick=this.serviceEndpointHandler_(z),At(e,"#")):b75({text:this.text,command:z},function(){nTE(e,z,C.target)})};
_.Y.isServiceEndpoint_=function(e){var z;return!((z=_.r(e==null?void 0:e.commandMetadata,_.XV))==null||!z.sendPost)};
_.Y.isSignalServiceEndpoint_=function(e){return!!_.r(e,_.bd)};
_.Y.serviceEndpointHandler_=function(e){var z=this;return function(C){_.wQ(z.hostElement,[e]);C.preventDefault()}};
_.Y.overrideAriaLabelChanged_=function(){var e=this.getRoot();this.enableContentEditable&&e&&e.setAttribute("aria-label",this.overrideAriaLabel)};
_.Y.enableContentEditableChanged_=function(){var e=this,z=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),z=_.XC(this.hostElement,z),!z.lastChild||z.lastChild instanceof HTMLElement&&z.lastChild.id!=="contenteditable-root"){var C=document.createElement("div");C.id="contenteditable-root";C.setAttribute("contenteditable","true");C.setAttribute("dir","auto");C.onfocus=function(){e.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
z.appendChild(C);this.overrideAriaLabel&&C.setAttribute("aria-label",this.overrideAriaLabel)}}else C=_.JK(this.hostElement).firstChild,C instanceof HTMLElement&&C.id==="contenteditable-root"&&_.XC(this.hostElement,z).removeChild(C)};
_.Y.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.Y.getNodesForVisibilityLogging_=function(){return _.Q8(this.getRoot().childNodes,function(e){var z;return!((z=e.data)==null||!z.trackingParams)})};
_.Y.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.Y.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var e=this.ytRendererBehavior.getVisibilityLogger();e&&this.getNodesForVisibilityLogging_().forEach(function(z){e.reportShown(z)})}};
_.Y.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var e=this.ytRendererBehavior.getVisibilityLogger();e&&this.getNodesForVisibilityLogging_().forEach(function(z){e.reportHidden(z)})}};
_.lB.Object.defineProperties(ew.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.M("enable_mixed_direction_formatted_strings")}}});
ew.prototype.enableContentEditableChanged_=ew.prototype.enableContentEditableChanged_;ew.prototype.overrideAriaLabelChanged_=ew.prototype.overrideAriaLabelChanged_;ew.prototype.ellipsisTruncateChanged_=ew.prototype.ellipsisTruncateChanged_;ew.prototype.textChanged=ew.prototype.textChanged;_.d([_.W(Hn6.YtPlaintextBehavior),_.B("design:type",Object)],ew.prototype,"ytPlaintextBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],ew.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ew.prototype,"text",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"noEndpoints",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"noStyles",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ew.prototype,"isDarkTheme",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],ew.prototype,"splitLines",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ew.prototype,"forceDefaultStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ew.prototype,"ellipsisTruncate",void 0);_.d([_.F(),_.B("design:type",Object)],ew.prototype,"ignoreShadyDom",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.B("design:type",Boolean)],ew.prototype,"ellipsisTruncateStyling",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.B("design:type",String)],ew.prototype,"ariaLabel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ew.prototype,"isEmpty",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.B("design:type",Boolean)],ew.prototype,"hasLinkOnly_",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"hasEmoji",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"disableAttributedString",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"isOverlay",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"linkInheritColor",void 0);
_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"noPreWrap",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"userInput",void 0);_.d([_.F({value:16}),_.B("design:type",Number)],ew.prototype,"emojiSize",void 0);_.d([_.F(),_.B("design:type",String)],ew.prototype,"target",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"enableContentEditable",void 0);_.d([_.F(),_.B("design:type",String)],ew.prototype,"overrideAriaLabel",void 0);
_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"respectHtmlDir",void 0);_.d([_.F(),_.B("design:type",Boolean)],ew.prototype,"respectLangDir",void 0);_.d([_.P("plaintextOnly"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ew.prototype,"useMixedDirectionFormattedStrings",null);_.d([_.F({computed:"computeUseAttributedString(text)"}),_.B("design:type",Boolean)],ew.prototype,"useYtAttributedString",void 0);
_.d([_.mi("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ew.prototype,"textChanged",null);_.d([_.mi("ellipsisTruncate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ew.prototype,"ellipsisTruncateChanged_",null);_.d([_.mi("overrideAriaLabel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ew.prototype,"overrideAriaLabelChanged_",null);
_.d([_.mi("enableContentEditable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ew.prototype,"enableContentEditableChanged_",null);_.d([_.fP({is:"yt-formatted-string",disableElementRegistration:!0})],ew);
_.u(ew,"yt-formatted-string",function(){if(vMc===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;USs===void 0&&(USs=document.createElement("template"));var w=USs;C.call(z,w.content.cloneNode(!0),e.content.firstChild);vMc=e}e=vMc;return e});var Iph;var Wrs;var PvC;var RMX;var zB=function(){var e=_.V.apply(this,arguments)||this;e.focused=!1;e.disabled=!1;e.isOverlay=!1;return e};
_.U(zB,_.V);zB.prototype.triggerDown=function(){if(!this.disabled){_.k$(this.hostElement,"down",!0);var e;(e=this.currentAnimation)==null||e.cancel()}};
zB.prototype.triggerUp=function(){if(!this.disabled){_.k$(this.hostElement,"down",!1);var e=this.fillElement;var z=this.strokeElement;typeof GroupEffect==="function"?(e=new GroupEffect([ti7(e),gMg(z)]),e=new Animation(e,document.timeline)):e=new Z2U(e,z);this.currentAnimation=e;var C;(C=this.currentAnimation)==null||C.play()}};
_.d([_.nP(".stroke"),_.B("design:type",HTMLElement)],zB.prototype,"strokeElement",void 0);_.d([_.nP(".fill"),_.B("design:type",HTMLElement)],zB.prototype,"fillElement",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],zB.prototype,"focused",void 0);_.d([_.F(),_.B("design:type",Object)],zB.prototype,"disabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],zB.prototype,"isOverlay",void 0);_.d([_.fP({is:"yt-interaction",disableElementRegistration:!0})],zB);
_.u(zB,"yt-interaction",function(){if(RMX===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;PvC===void 0&&(PvC=document.createElement("template"));var w=PvC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);RMX=e}e=RMX;return e},{mode:2});var Cx=function(){return _.V.apply(this,arguments)||this};
_.U(Cx,_.V);_.Y=Cx.prototype;_.Y.ready=function(){var e=this,z=_.XC(this.hostElement).querySelector("#button");z.addEventListener("focus",function(){IZX||(IZX=new v7S);e.keyboardFocused=IZX.isKeyBoardInUse()});
z.addEventListener("blur",function(){e.keyboardFocused=!1;e.rippleUp_()})};
_.Y.computeTabIndex_=function(e){return e?-1:0};
_.Y.computeButtonAriaPressed_=function(e){if(this.toggleable)return e?"true":"false"};
_.Y.rippleDown_=function(){_.XC(this.hostElement).querySelector("#interaction").triggerDown()};
_.Y.rippleUp_=function(){_.XC(this.hostElement).querySelector("#interaction").triggerUp()};
_.Y.onPressedChanged_=function(){var e=_.JK(_.XC(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.JK(_.XC(this.hostElement).querySelector("#button")).children[0];e&&(e.active=this.pressed)};
Cx.prototype.onPressedChanged_=Cx.prototype.onPressedChanged_;Cx.prototype.rippleUp_=Cx.prototype.rippleUp_;Cx.prototype.rippleDown_=Cx.prototype.rippleDown_;_.d([_.F(),_.B("design:type",String)],Cx.prototype,"label",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Cx.prototype,"disabled",void 0);_.d([_.F(),_.B("design:type",Boolean)],Cx.prototype,"pressed",void 0);_.d([_.F(),_.B("design:type",Object)],Cx.prototype,"toggleable",void 0);
_.d([_.F(),_.B("design:type",Boolean)],Cx.prototype,"untabbable",void 0);_.d([_.F(),_.B("design:type",Boolean)],Cx.prototype,"keyboardFocused",void 0);_.d([_.Qi("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cx.prototype,"rippleDown_",null);_.d([_.Qi("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cx.prototype,"rippleUp_",null);
_.d([_.mi("pressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cx.prototype,"onPressedChanged_",null);_.d([_.fP({is:"yt-icon-button",disableElementRegistration:!0})],Cx);
_.u(Cx,"yt-icon-button",function(){if(Wrs===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Iph===void 0&&(Iph=document.createElement("template"));var w=Iph;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Wrs=e}e=Wrs;return e},{mode:2});var LrT;var hMY=function(){var e=document.body,z=e.appendChild;if(LrT===void 0){var C=document.createElement("template");_.v(C,'\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>');
LrT=C}C=LrT;z.call(e,C.content)};
document.body?hMY():window.addEventListener("DOMContentLoaded",hMY);var Ong=_.Kb(["aria-"]),wy={};wy.YtRenderButtonBehavior=[_.c.YtRendererBehavior,_.y5.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!!_.lh().resolve(_.$B(_.V5))&&_.M("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 e=this.computeHref_(this.endpoint,!0);e?At(this.elements_.endpoint,e):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){e=this.buttonClass.split(" ");e=_.b(e);for(var z=e.next();!z.done;z=e.next())z=z.value,_.k$(this.hostElement,z,!0),this.elements_.button&&_.k$(this.elements_.button,z,!0),this.elements_.text&&_.k$(this.elements_.text,z,!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&&(e=null,this.buttonAccessibility&&(e=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=e:e?_.xo([_.Qb(Ong)],this.elements_.button,"aria-label",e):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var e=_.lh().resolve(_.$B(_.V5));e&&(this.keyboardFocused=e.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.hY("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,_.mb(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.mb(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(e,z){if(z)for(e=z.split(" "),e=_.b(e),z=e.next();!z.done;z=e.next())z=z.value,_.k$(this.hostElement,z,!1),this.elements_.button&&_.k$(this.elements_.button,z,!1),this.elements_.text&&_.k$(this.elements_.text,z,!1)},
buttonIconChanged_:function(e){this.elements_.icon?e?(this.elements_.icon.icon=e,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.mb(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.qH(this.hostElement,"is-paper-button-with-icon",!1)):e&&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"&&_.mb(this.elements_.button).appendChild(this.elements_.icon):_.mb(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.qH(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(e){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,e){var z=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(e){case "yt_icon_button_with_label":z=!0;_.k$(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();e=_.mb(this.elements_.button).firstElementChild;
this.elements_.icon=e;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.mb(this.elements_.endpoint).appendChild(this.elements_.button);_.mb(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.hY("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;_.mb(this.elements_.button).appendChild(this.elements_.text);_.mb(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":z=!0,this.elements_.button=this.getYtIconButton_(),e=_.mb(this.elements_.button).firstElementChild,this.elements_.icon=e,this.setIconActive_(this.elements_.icon),
_.mb(this.elements_.endpoint).appendChild(this.elements_.button)}_.qH(this.hostElement,"is-icon-button",z);_.qH(this.hostElement,"is-paper-button",!z);_.qH(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 C;_.XC((C=this.container.hostElement)!=null?C:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.mb(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(e){if(e!=void 0||this.disabled)this.disabled=e,this.elements_.button&&(this.elements_.button.disabled=e)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(e){_.M("kevlar_system_icons")&&e&&this.data&&(this.data.isSelected!==void 0?e.active=this.data.isSelected:this.data.isToggled!==void 0&&(e.active=this.data.isToggled))},
observeBasicPalette_:function(e){_.Ro(this.hostElement,e)},
disabledChanged_:function(e){this.data&&this.set("data.isDisabled",e)},
onYtButtonTap_:function(e){if(this.disabled)e.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.wQ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(e=this.disableCommandHandlerOverride,!this.data||!this.data.command||e||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.M("handle_service_request_actions")||_.wQ(this.hostElement,[this.serviceEndpoint]),
_.pi(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.M("handle_service_request_actions")?(e=[],this.serviceEndpoint&&e.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&e.push(this.data.command),e.length&&_.KK(this.hostElement,e,this.hostElement)):this.data&&this.data.command&&(e=this.data.command,e.accountUnlinkCommand||e.accountLinkCommand||e.insertAdCommand||e.insertHighlightMarkerCommand||
e.createLivestreamHighlightClipCommand||e.getVideoUploadFeedbackCommand||e.musicDeletePrivatelyOwnedEntityCommand||e.ypcCancelRecurrenceEndpoint||e.getMultiSelectCommandEndpoint?_.wQ(this.hostElement,[e]):_.KK(this.hostElement,[e],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 e,z=_.XC((e=this.container.hostElement)!=null?e:this.container);z.lastChild&&z.lastChild.tagName!="STYLE";)try{z.removeChild(z.lastChild)}catch(C){break}},
getYtIconButton_:function(){var e=this.reuseEnabled_()?_.hY("yt-icon-button"):document.createElement("yt-icon-button"),z=_.mb(e).firstElementChild;if(z&&z.is!="yt-icon"){for(z=_.mb(e);z.lastChild;)z.removeChild(z.lastChild);z=null}z||(z=this.getIcon_(),this.setIconActive_(z),_.mb(e).appendChild(z));return e},
reuseEnabled_:function(){return _.M("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.hY("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.hY("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.EMC={};
_.EMC.YtButtonBehavior=[wy.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var e=this.data;e&&(this._setEndpoint(this.computeEndpoint_(e)),this._setServiceEndpoint(this.computeServiceEndpoint_(e)),this._setCommand(this.computeCommand_(e)),this._setButtonIcon(this.computeButtonIcon_(e)),this._setButtonText(this.computeButtonText_(e,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(e)),this._setButtonTooltip(this.computeTooltip_(e)),this._setButtonClass(this.computeButtonClass_(e)),this._setIconPositionType(this.computeIconPositionType_(e)),this.updateRenderedElements())},
setPressedState:function(e){var z;if((z=this.elements_)==null?0:z.button)this.elements_.button.pressed=!!e},
computeIconPositionType_:function(e){return e&&e.iconPosition||null},
computeEndpoint_:function(e){var z=e&&e.navigationEndpoint,C=this.get("data.command.commandMetadata.webCommandMetadata.url"),w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:e&&e.command&&e.command.modalEndpoint?e.command:C&&!w&&e.command?e.command:null},
computeServiceEndpoint_:function(e){var z=e&&e.serviceEndpoint,C=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:C&&e.command?e.command:null},
computeCommand_:function(e){return e&&e.command||null},
computeButtonIcon_:function(e){return e&&e.icon&&e.icon.iconType?_.qF(e.icon.iconType):null},
computeButtonText_:function(e,z){return!z&&e&&e.text||null},
computeAccessibility_:function(e){return this.get("accessibilityData.accessibilityData",e)||e&&e.accessibility||(e&&e.text?{label:this.getSimpleString(e.text)}:null)},
computeTooltip_:function(e){return e?e.isDisabled&&e.disabledTooltip||e.tooltip||null:null},
computeButtonClass_:function(e){var z=e&&e.style?e.style.toLowerCase().replace(/_/g,"-")+" ":"";z+=e&&e.size?e.size.toLowerCase().replace(/_/g,"-")+" ":"";e.colorData&&e.colorData.basicColorPaletteData&&e.colorData.basicColorPaletteData.borderColor&&(z+="palette-with-border");return z.trim()}}];var LU={};var FrC;var ViX;var fp4,SeT=function(){return fp4!==void 0?fp4:fp4=document.createElement("template")};
document.head.appendChild(SeT().content);var uIs;var dSg,DSY=function(){return dSg!==void 0?dSg:dSg=document.createElement("template")};
document.head.appendChild(DSY().content);var inU;var NgU,sy6=function(){return NgU!==void 0?NgU:NgU=document.createElement("template")};
document.head.appendChild(sy6().content);var Bg6;var tic=document.head,gMo=tic.appendChild,jyX;if(Bg6===void 0){var ybU=document.createElement("template");_.v(ybU,"\x3c!--css-build:shady--\x3e");ybU.content.insertBefore(sy6().content.cloneNode(!0),ybU.content.firstChild);Bg6=ybU}jyX=Bg6;gMo.call(tic,jyX.content);var cba=document.head,Abc=cba.appendChild,ZnY;if(inU===void 0){var p_6=document.createElement("template");_.v(p_6,"\x3c!--css-build:shady--\x3e");p_6.content.insertBefore(DSY().content.cloneNode(!0),p_6.content.firstChild);inU=p_6}ZnY=inU;Abc.call(cba,ZnY.content);var ezU=document.head,zz4=ezU.appendChild,CrX;if(uIs===void 0){var w6g=document.createElement("template");_.v(w6g,"\x3c!--css-build:shady--\x3e");w6g.content.insertBefore(SeT().content.cloneNode(!0),w6g.content.firstChild);uIs=w6g}CrX=uIs;zz4.call(ezU,CrX.content);var KHc;_.hq("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");KHc=_.M("web_button_rework")&&_.cR("BUTTON_REWORK")||_.M("web_button_rework_with_live");_.Kx=function(){return _.V.apply(this,arguments)||this};
_.U(_.Kx,_.V);_.Kx.prototype.created=function(){this.openPopupConfig=_.j5("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Kx.prototype.onYtNavigate_=function(e){var z=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);z&&(this.ytOpenPopupBehavior.openPopup(z),e.stopPropagation(),e.preventDefault())};
_.lB.Object.defineProperties(_.Kx,{template:{configurable:!0,enumerable:!0,get:function(){if(ViX===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
var z=e.content,C=z.insertBefore;FrC===void 0&&(FrC=document.createElement("template"));var w=FrC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ViX=e}e=ViX;return e}}});
_.Kx.prototype.onYtNavigate_=_.Kx.prototype.onYtNavigate_;_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],_.Kx.prototype,"ytOpenPopupBehavior",void 0);_.d([_.W(_.EMC.YtButtonBehavior),_.B("design:type",Object)],_.Kx.prototype,"ytButtonBehavior",void 0);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.Kx.prototype,"onYtNavigate_",null);
_.d([_.fP({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:KHc})],_.Kx);var oSs;var GfS=_.M("web_button_rework")&&_.cR("BUTTON_REWORK")||_.M("web_button_rework_with_live"),o6=function(){var e=_.V.apply(this,arguments)||this;e.isPressed=!1;e.forceIconButton=!1;e.forceIconOnly=!1;e.forceModernIconButton=!1;e.skipCommandHandling=!1;e.alignByText=!1;e.fitToVisibleBounds=!0;e.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};e.onTap=function(z){_.pi(e.hostElement,"yt-service-request-sent-button-renderer",z)};
return e};
_.U(o6,_.V);_.Y=o6.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.Y.onClick=function(e){var z,C=this.disabled||((z=this.data)==null?void 0:z.isDisabled);z=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");C&&z&&e.stopPropagation()};
_.Y.computeIcon=function(){var e,z,C=(e=this.data)==null?void 0:(z=e.icon)==null?void 0:z.iconType;if(C)return _.qF(C)};
_.Y.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.Y.handleUpdateButtonAction=function(e){e=_.r(e,ksY);var z=_.r(e==null?void 0:e.updatedButton,_.a2);if(this.data&&e&&z){var C=this.data;C.targetId&&e.targetId&&C.targetId===e.targetId&&(this.data=z)}};
_.lB.Object.defineProperties(o6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var e=this;if(this.data){var z=zI5({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.pi(e.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.pi(e.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});z.alignByText=this.alignByText;return z}}}});
_.lB.Object.defineProperties(o6,{template:{configurable:!0,enumerable:!0,get:function(){if(oSs===void 0){var e=document.createElement("template");_.v(e,'\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>');oSs=e}e=oSs;return e}}});
o6.prototype.onClick=o6.prototype.onClick;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],o6.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],o6.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"isPressed",void 0);
_.d([_.F(),_.B("design:type",Object)],o6.prototype,"forceIconButton",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"forceIconOnly",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"forceModernIconButton",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"skipCommandHandling",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"alignByText",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"buttonTooltipPosition",void 0);
_.d([_.F(),_.B("design:type",Object)],o6.prototype,"fitToVisibleBounds",void 0);_.d([_.F({computed:"computeTooltip(data)"}),_.B("design:type",Object)],o6.prototype,"tooltip",void 0);_.d([_.F(),_.B("design:type",Object)],o6.prototype,"overrides",void 0);_.d([_.F(),_.B("design:type",Boolean)],o6.prototype,"disabled",void 0);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],o6.prototype,"onClick",null);
_.d([_.P("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.B("design:type",Object),_.B("design:paramtypes",[])],o6.prototype,"computedButtonShape",null);_.d([_.fP({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!GfS,cssBuildOptOut:!0}),_.fP({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!GfS,cssBuildOptOut:!0})],o6);var YlU;var bIS;var GB=function(){var e=_.V.apply(this,arguments)||this;e.empty_=!0;e.loadTime=Infinity;e.pendingPaint=!1;e.hasChange_=!1;e.oldThumbnail_=null;e.oldDelayedSrc_="";e.objectURL_=null;return e};
_.U(GB,_.V);_.Y=GB.prototype;_.Y.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.Y.ready=function(){var e=this.shouldShowPlaceholder_();_.k$(this.hostElement,"no-transition",!0);e&&this.hostElement.classList.add("with-placeholder")};
_.Y.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.Y.isThumbPreloaded_=function(e){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",e)};
_.Y.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||X6C};
_.Y.computeThumbnailSrc_=function(e){return e&&e.thumbnails?_.oo(e.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.Y.computeAlt_=function(){var e=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&e||""};
_.Y.thumbnailChanged_=function(){var e=_.b([this.thumbnail,this.oldThumbnail_]),z=e.next().value;e=e.next().value;this.oldThumbnail_=z;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(e=this.computeThumbnailSrc_(e),this.computeThumbnailSrc_(z)===e))return;_.M("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(z)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):z&&_.cR("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.T0(this,this.onReload_):_.T0(this,this.onShow_):this.resetImage_();z&&(this.hostElement.style.opacity=""+z.opacity)}};
_.Y.delayedSrcChanged_=function(){var e=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===e||this.resetImage_()};
_.Y.setSrc_=function(e){e?(_.XC(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.XC(this.hostElement).querySelector("#img").src=e):(_.XC(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.Y.resetImage_=function(){w_s(this.hostElement);this.empty_=!0;this.setSrc_(X6C);this.ytRendererBehavior.invalidate(!1)};
_.Y.observePlaceholderColor_=function(){var e=this.thumbnail&&this.thumbnail.placeholderColor;e?this.hostElement.style.backgroundColor=_.EG(e):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.Y.onLoad_=function(){_.XC(this.hostElement).querySelector("#img").src&&_.XC(this.hostElement).querySelector("#img").src!==X6C&&(Cvg(this.hostElement),this.notifyOnLoaded&&_.pi(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.Y.onError_=function(){var e=this;if(_.M("web_use_cache_for_image_fallback"))Jbg(_.XC(this.hostElement).querySelector("#img").src).then(function(z){e.objectURL_=_.jg(z).toString();e.setSrc_(e.objectURL_)}).catch(function(){_.M("kevlar_woffle_fallback_image")&&e.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.Y.onPrescanVisible=function(){this.onShow_()};
_.Y.onVisible=function(){if(_.M("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.Y.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var e=this.computeSrc_();e!==_.XC(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(e))}};
_.Y.onReload_=function(){this.empty_=!1;var e=this.computeSrc_();e!==_.XC(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(e))};
_.Y.shouldShowPlaceholder_=function(){return _.M("kevlar_thumbnail_bg")};
GB.prototype.observePlaceholderColor_=GB.prototype.observePlaceholderColor_;GB.prototype.delayedSrcChanged_=GB.prototype.delayedSrcChanged_;GB.prototype.thumbnailChanged_=GB.prototype.thumbnailChanged_;_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],GB.prototype,"alt",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],GB.prototype,"ariaHidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],GB.prototype,"ariaLabel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],GB.prototype,"hidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],GB.prototype,"id",void 0);_.d([_.W(_.nE.YtVisibilityBehavior),_.B("design:type",Object)],GB.prototype,"ytVisibilityBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",String)],GB.prototype,"delayedSrc",void 0);
_.d([_.F(),_.B("design:type",Object)],GB.prototype,"thumbnail",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],GB.prototype,"loaded",void 0);_.d([_.F(),_.B("design:type",Boolean)],GB.prototype,"notifyOnLoaded",void 0);_.d([_.F(),_.B("design:type",Number)],GB.prototype,"height",void 0);_.d([_.F(),_.B("design:type",Number)],GB.prototype,"width",void 0);_.d([_.F({value:function(){return"width"}}),
_.B("design:type",String)],GB.prototype,"dimension",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],GB.prototype,"fit",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],GB.prototype,"fitHeight",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],GB.prototype,"fitWidth",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],GB.prototype,"objectFit",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],GB.prototype,"objectPosition",void 0);_.d([_.F(),_.B("design:type",String)],GB.prototype,"preferredThumbnail",void 0);_.d([_.F({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.B("design:type",String)],GB.prototype,"alt_",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],GB.prototype,"sharedTooltipText",void 0);
_.d([_.F(),_.B("design:type",Boolean)],GB.prototype,"ftlEligible",void 0);_.d([_.F({value:void 0}),_.B("design:type",String)],GB.prototype,"observeHiddenOption",void 0);_.d([_.F({value:"observe_once"}),_.B("design:type",String)],GB.prototype,"observePrescanOption",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],GB.prototype,"roundedContainer",void 0);
_.d([_.Ux("thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GB.prototype,"thumbnailChanged_",null);_.d([_.Ux("delayedSrc"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GB.prototype,"delayedSrcChanged_",null);_.d([_.mi("thumbnail.placeholderColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GB.prototype,"observePlaceholderColor_",null);
_.d([_.fP({is:"yt-img-shadow",disableElementRegistration:!0})],GB);var X6C=_.cR("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Yp()(GB,"yt-img-shadow",function(){if(bIS===void 0){var e=document.createElement("template");_.v(e,'\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">');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;YlU===void 0&&(YlU=document.createElement("template"));var w=YlU;C.call(z,w.content.cloneNode(!0),e.content.firstChild);bIS=e}e=bIS;return e},{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 Jcg;_.YV=new _.Mt("SCREEN_MANAGER_TOKEN");Jcg=new _.Mt("LOG_INITIAL_SCREEN_TOKEN");var JjL=ET({entities:{}});_.b9=FW(JjL)(JjL.entities,{selectSfvAudioItemPlaybackState:function(e,z){var C,w;e=(w=_.xz(e,"sfvAudioItemCurrentlyPlayingEntity",z))!=null?w:void 0;return(C=e==null?void 0:e.sfvAudioItemPlaybackState)!=null?C:void 0},
playlistLoopStateEntitySelector:KGo,toggleMenuServiceItemEntitySelector:oH1});_.XG=_.f(function(e){function z(Z){return _.r(Z,_.H7)}
function C(){var Z=w().isTogglingDisabled||I()&&w().toggledIsTogglingDisabled,YN=Z||a()?I():!I();L(YN);E(!1);if(!Z){var Jk;(Jk=X)==null||Jk(!!YN)}var v1;((v1=G)==null?0:v1())||_.Zw(_.lh().resolve(_.YV),w().trackingParams);var lg;if(!YN||!z(w().defaultButtonViewModel)||(lg=G)!=null&&lg()){var M5;!z(w().toggledButtonViewModel)||((M5=G)==null?0:M5())||_.Zw(_.lh().resolve(_.YV),z(w().toggledButtonViewModel).trackingParams)}else _.Zw(_.lh().resolve(_.YV),z(w().defaultButtonViewModel).trackingParams)}
var w=e.data,K=e.buttonShapeOverrides,G=e.disableExplicitClickLogging,X=e.onToggle,J=e.style,q=e.useOutlinedIcon,T=e.className,Q=function(){var Z,YN;return I()?(Z=e.animatedTextPropsToggled)==null?void 0:Z.call(e):(YN=e.animatedTextPropsDefault)==null?void 0:YN.call(e)},m=_.hG(function(){return Q()?Object.assign({},Q(),{shouldAnimate:h()}):void 0},void 0,"Zp4uoe"),a=function(){var Z;
return((Z=g())==null?void 0:Z.isToggled)!==void 0},n=_.b(_.zx(function(){var Z,YN,Jk;
return a()?(Z=g())==null?void 0:Z.isToggled:(Jk=K==null?void 0:(YN=K())==null?void 0:YN.toggled)!=null?Jk:w().isToggled})),H=n.next().value;
n=n.next().value;var I=H,L=n;n=_.b(_.zx(function(){var Z,YN;return(Z=e.animatedTextPropsToggled)==null?void 0:(YN=Z.call(e))==null?void 0:YN.shouldAnimate}));
H=n.next().value;n=n.next().value;var h=H,E=n;H=_.b(_.II(!1,void 0,"mq3Zfe"));var N=H.next().value,D=H.next().value,g=_.rG(function(Z){a:{var YN=w().entityKey,Jk=w().toggledStateEntitySelectorType;if(Jk)switch(Jk){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!YN)break;Z=_.b9.selectSfvAudioItemPlaybackState(Z,YN);if(Z==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Z={isToggled:!0};break a}if(Z){Z={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":Z={isToggled:_.Xyh(Z).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":Z={isToggled:_.Xyh(Z).includes("engagement-panel-live-chat-item-section")};break a;default:_.AX(new _.uh("Error: entitySelectorType defined but not matched in selector.",Z,Jk))}Z=void 0}return Z}),y=function(){return Object.assign({},K==null?void 0:K(),{onToggle:C,
toggleable:!0,toggled:I(),focused:N()})};
return _.x("toggle-button-view-model",{"on:focusin":_.T9(function(){var Z=_.lh().resolve(_.$B(_.V5));Z&&D(Z.isKeyBoardInUse());return!1}),
"on:focusout":_.T9(function(){D(!1);return!1})},_.x(_.l,{cond:function(){return I()?z(w().toggledButtonViewModel):z(w().defaultButtonViewModel)},
then:function(Z){return _.x(_.iz,{data:Z,className:T,style:J,useOutlinedIcon:q,buttonOverrides:y,animatedTextProps:m})}}))},"da");
_.XG.idomCompat={callbacks:{onToggle:!0}};_.KU(_.f(function(e){return _.x("yt-toggle-button-view-model",{class:function(){var z;return(z=e.scopingClassName)==null?void 0:z.call(e)}},_.x(_.XG,{data:function(){var z;
return(z=e.data)==null?void 0:z.call(e)},
buttonShapeOverrides:function(){var z;return(z=e.overrides)==null?void 0:z.call(e)},
animatedTextPropsDefault:function(){var z;return(z=e.animatedTextPropsDefault)==null?void 0:z.call(e)},
animatedTextPropsToggled:function(){var z;return(z=e.animatedTextPropsToggled)==null?void 0:z.call(e)},
disableExplicitClickLogging:function(){var z;return(z=e.disableExplicitClickLogging)==null?void 0:z.call(e)},
onToggle:function(z){var C;return(C=e.onToggle)==null?void 0:C.call(e,z)},
style:function(){var z;return(z=e.style)==null?void 0:z.call(e)},
useOutlinedIcon:function(){var z;return(z=e.useOutlinedIcon)==null?void 0:z.call(e)},
className:function(){var z;return(z=e.className)==null?void 0:z.call(e)}}))},"ea"),"yt-toggle-button-view-model",{props:{data:_.vh,
buttonShapeOverrides:_.vh,overrides:_.vh,animatedTextPropsDefault:_.vh,animatedTextPropsToggled:_.vh,disableExplicitClickLogging:_.vh,onToggle:_.z9,style:_.vh,useOutlinedIcon:_.vh,className:_.vh,scopingClassName:_.vh}});var Ju=function(){return _.V.apply(this,arguments)||this};
_.U(Ju,_.V);Ju.prototype.onTap=function(e){e.stopPropagation();e=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.d$("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:e})):this.ytLiveChatReduxBehavior.dispatch(_.Rx("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:e}))};
_.lB.Object.defineProperties(Ju.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.engagementState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=_.r(this.data.toggleButton,_.v7),z;if(Number(((z=this.likeCountState)==null?void 0:z.likeCountIfIndifferentNumber)||"0")===0){var C;z=((C=this.data.likeCountPlaceholder)==null?void 0:C.content)||""}else{var w,K,G;z=((w=this.likeCountState)==null?void 0:(K=w.likeCountIfIndifferent)==null?void 0:K.content)||((G=this.data.likeCountPlaceholder)==null?void 0:G.content)||""}var X,J;C=((X=this.likeCountState)==null?void 0:(J=
X.likeCountIfLiked)==null?void 0:J.content)||"1";X=_.r(e.toggledButtonViewModel,_.H7);return Object.assign({},e,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.r(e.defaultButtonViewModel,_.H7),{title:z})},toggledButtonViewModel:{buttonViewModel:Object.assign({},X,{title:C})}})}}}});
Ju.prototype.onTap=Ju.prototype.onTap;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Ju.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],Ju.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ju.prototype,"data",void 0);
_.d([_.F({selectorArgs:["data.likeCountEntityKey"],selector:J$h}),_.B("design:type",Object)],Ju.prototype,"likeCountState",void 0);_.d([_.F({selectorArgs:["data.engagementStateKey"],selector:mys}),_.B("design:type",Object)],Ju.prototype,"engagementState",void 0);_.d([_.P("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ju.prototype,"isLiked",null);
_.d([_.P("data","likeCountState","isLiked"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ju.prototype,"toggleButton",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Ju.prototype,"onTap",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Ju);
_.u(Ju,"yt-live-chat-like-button-view-model",function(){if(xSS===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;qeY===void 0&&(qeY=document.createElement("template"));var w=qeY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);xSS=e}e=xSS;return e},{mode:0});var kfU;var qls;var kV=function(){return _.V.apply(this,arguments)||this};
_.U(kV,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kV.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],kV);
_.u(kV,"yt-live-chat-paid-message-footer-renderer",function(){if(qls===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;kfU===void 0&&(kfU=document.createElement("template"));var w=kfU;C.call(z,w.content.cloneNode(!0),e.content.firstChild);qls=e}e=qls;return e},{mode:0});var xyh;var T8s;var $yc;var lYs,QL4=function(){if(lYs!==void 0)return lYs;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;$yc===void 0&&($yc=document.createElement("template"));var w=$yc;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return lYs=e};var qw=function(){return _.V.apply(this,arguments)||this};
_.U(qw,_.V);qw.prototype.onTap=function(e){e.stopPropagation()};
_.lB.Object.defineProperties(qw.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=_.r(this.data.replyButton,_.H7),z,C,w,K,G,X,J,q=Number(((z=this.replyCountState)==null?void 0:z.replyCountNumber)||"0")===0?(C=this.data)==null?void 0:(w=C.replyCountPlaceholder)==null?void 0:w.content:((K=this.replyCountState)==null?void 0:(G=K.replyCount)==null?void 0:G.content)||((X=this.data)==null?void 0:(J=X.replyCountPlaceholder)==null?void 0:J.content)||"",T;return Object.assign({},
e,{title:q,accessibilityText:(T=this.replyCountState)==null?void 0:T.replyButtonAccessibilityText})}}}});
_.lB.Object.defineProperties(qw,{template:{configurable:!0,enumerable:!0,get:function(){return QL4()}}});
qw.prototype.onTap=qw.prototype.onTap;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],qw.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qw.prototype,"data",void 0);
_.d([_.F({selectorArgs:["data.replyCountEntityKey"],selector:function(e,z){return _.xz(e.entities,"replyCountEntity",z)}}),
_.B("design:type",Object)],qw.prototype,"replyCountState",void 0);_.d([_.P("data","replyCountState"),_.B("design:type",Object),_.B("design:paramtypes",[])],qw.prototype,"buttonViewModel",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],qw.prototype,"onTap",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],qw);_.u(qw,"yt-live-chat-reply-button-view-model",function(){return QL4()},{mode:0});var myC;var aYo;var xV=function(){var e=_.V.apply(this,arguments)||this;e.ariaLabel="";return e};
_.U(xV,_.V);
xV.prototype.dataChanged=function(){for(var e=(0,_.x$)(_.XC(this.hostElement).querySelector("#image"));e.firstChild;)e.removeChild(e.firstChild);if(this.data)if(this.data.icon){var z=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(z.polymerController.icon="yt-sys-icons:shield-filled",z.polymerController.defaultToFilled=!0):z.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();e.appendChild(z)}else if(this.data.customThumbnail){z=document.createElement("img");
var C=_.yNh(this.data.customThumbnail.thumbnails,16);C?(z.src=C,e.appendChild(z),z.setAttribute("alt",this.hostElement.ariaLabel||"")):_.AX(new _.uh("Could not compute URL for thumbnail",this.data.customThumbnail))}};
xV.prototype.identity=function(e){return e};
xV.prototype.computeType=function(e){return XH(e||void 0)};
xV.prototype.dataChanged=xV.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],xV.prototype,"data",void 0);_.d([_.F({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.B("design:type",Object)],xV.prototype,"ariaLabel",void 0);_.d([_.F({computed:"computeType(data)",reflectToAttribute:!0}),_.B("design:type",String)],xV.prototype,"type",void 0);
_.d([_.F({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.B("design:type",String)],xV.prototype,"sharedTooltipText",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("live_chat_enable_new_moderator_badge")}}),
_.B("design:type",Boolean)],xV.prototype,"enableNewModeratorBadge",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xV.prototype,"dataChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],xV);
_.u(xV,"yt-live-chat-author-badge-renderer",function(){if(aYo===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;myC===void 0&&(myC=document.createElement("template"));var w=myC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);aYo=e}e=aYo;return e},{mode:0});var nS6;var MXc;var TB=function(){return _.V.apply(this,arguments)||this};
_.U(TB,_.V);_.Y=TB.prototype;_.Y.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"}}}}};
_.Y.computeBadgesInsideChip=function(e){return e?e.filter(function(z){return XH(z.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.Y.computeBadgesOutsideChip=function(e){return this.prependChatBadges||!e?[]:e.filter(function(z){z=XH(z.liveChatAuthorBadgeRenderer);return z!=="verified"&&z!=="owner"})};
_.Y.computeBadgesBeforeChip=function(e){return this.prependChatBadges&&e?e.filter(function(z){z=XH(z.liveChatAuthorBadgeRenderer);return z!=="verified"&&z!=="owner"}):[]};
_.Y.computeIsHighlighted=function(e,z){var C=!!TrE(e,"owner"),w=!!TrE(e,"verified");e=!!TrE(e,"moderator");return(C||w&&!e)&&!z};
_.Y.computeAuthorType=function(e){return xf7(e)};
_.Y.computeAuthorClass=function(e,z){return z?(e?e+" ":"")+"single-line":e};
_.Y.onSeedColorChanged=function(){_.M("live_chat_author_name_color_usernames")||_.M("live_chat_seed_color_usernames")||_.M("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):_.M("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
TB.prototype.onSeedColorChanged=TB.prototype.onSeedColorChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],TB.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],TB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TB.prototype,"authorName",void 0);_.d([_.F(),_.B("design:type",Array)],TB.prototype,"authorBadges",void 0);
_.d([_.F({computed:"computeAuthorType(authorBadges)"}),_.B("design:type",String)],TB.prototype,"authorType",void 0);_.d([_.F({computed:"computeAuthorClass(authorType, singleLine)"}),_.B("design:type",String)],TB.prototype,"authorClass",void 0);_.d([_.F({computed:"computeBadgesInsideChip(authorBadges)"}),_.B("design:type",Array)],TB.prototype,"badgesInsideChip",void 0);_.d([_.F({computed:"computeBadgesOutsideChip(authorBadges)"}),_.B("design:type",Array)],TB.prototype,"badgesOutsideChip",void 0);
_.d([_.F({computed:"computeBadgesBeforeChip(authorBadges)"}),_.B("design:type",Array)],TB.prototype,"badgesBeforeChip",void 0);_.d([_.F({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.B("design:type",Boolean)],TB.prototype,"isHighlighted",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],TB.prototype,"singleLine",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],TB.prototype,"disableHighlighting",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],TB.prototype,"dashboardMoneyFeed",void 0);_.d([_.F({value:_.M("live_chat_prepend_badges"),reflectToAttribute:!0}),_.B("design:type",Boolean)],TB.prototype,"prependChatBadges",void 0);_.d([_.F(),_.B("design:type",String)],TB.prototype,"authorNameColor",void 0);_.d([_.nP("#author-name"),_.B("design:type",HTMLDivElement)],TB.prototype,"username",void 0);
_.d([_.mi("authorNameColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TB.prototype,"onSeedColorChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],TB);
_.u(TB,"yt-live-chat-author-chip",function(){if(MXc===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;nS6===void 0&&(nS6=document.createElement("template"));var w=nS6;C.call(z,w.content.cloneNode(!0),e.content.firstChild);MXc=e}e=MXc;return e},{mode:0});var rja;var HIc;var $V=function(){var e=_.V.apply(this,arguments)||this;e.debounceCommand=_.dJ(function(z){e.ytComponentBehavior.resolveCommand(z)},1500);
return e};
_.U($V,_.V);$V.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var e=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",z,C,w=this.isHearted?(z=this.data)==null?void 0:z.unheartCommand:(C=this.data)==null?void 0:C.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.d$("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:e}));(e=_.SQ(w))&&this.debounceCommand(e)}};
_.lB.Object.defineProperties($V.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var e,z;if(!((e=this.data)==null?0:(z=e.creatorThumbnail)==null?0:z.sources))return{};e={thumbnails:[]};z={};z.url=this.data.creatorThumbnail.sources[0].url;e.thumbnails.push(z);return e}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.engagementState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((z=this.engagementState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.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}}});
$V.prototype.onTap=$V.prototype.onTap;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],$V.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],$V.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$V.prototype,"data",void 0);
_.d([_.F({selectorArgs:["data.engagementStateKey"],selector:mys}),_.B("design:type",Object)],$V.prototype,"engagementState",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$V.prototype,"thumbnailDetails",null);_.d([_.P("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$V.prototype,"isHearted",null);_.d([_.P("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$V.prototype,"isEditable",null);
_.d([_.P("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$V.prototype,"showCreatorView",null);_.d([_.P("data","engagementState"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$V.prototype,"showButton",null);_.d([_.P("data","isHearted"),_.B("design:type",String),_.B("design:paramtypes",[])],$V.prototype,"label",null);_.d([_.P("data","isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],$V.prototype,"heartHoverText",null);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$V.prototype,"onTap",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],$V);
_.u($V,"yt-live-chat-creator-heart-view-model",function(){if(HIc===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;rja===void 0&&(rja=document.createElement("template"));var w=rja;C.call(z,w.content.cloneNode(!0),e.content.firstChild);HIc=e}e=HIc;return e},{mode:0});var l9=function(e,z){this.serviceId=new W$a(e,z)};
l9.prototype.toString=function(){return this.serviceId.toString()};var UyX=function(){this.internalMap={}};
_.Y=UyX.prototype;_.Y.contains=function(e){return Object.prototype.hasOwnProperty.call(this.internalMap,e)};
_.Y.get=function(e){if(this.contains(e))return this.internalMap[e]};
_.Y.set=function(e,z){this.internalMap[e]=z};
_.Y.getKeys=function(){return Object.keys(this.internalMap)};
_.Y.remove=function(e){delete this.internalMap[e]};var QP=function(){this.mappings=new UyX;this.errorCallbacks=new Set};
QP.prototype.getModuleId=function(e){return e.serviceId.getModuleId()};
QP.prototype.get=function(e){var z=this.mappings.get(e.toString());return vSg(this,z,e)};
QP.prototype.getMultipleAsync=function(){var e=_.yL.apply(0,arguments),z=this,C=e.map(function(q){return z.getModuleId(q)}),w=e.map(function(q){return z.mappings.get(q.toString())}).filter(function(q){return q});
if(w.length===e.length)return _.oS(w.map(function(q,T){return vSg(z,q,e[T])}));
var K=Bo().loadMultiple(C);w=_.tT(C.map(function(q){return K[q]}));
var G=document.hidden,X=-1,J=_.n0("get_async_timeout_ms",-1);J>-1&&(X=setTimeout(function(){_.AX(new _.uh("Module timeout.",C,G,document.hidden))},J));
return _.gB(w.then(function(){return e.map(function(q){return vSg(z,z.mappings.get(q.toString()),q)})}).thenCatch(function(q){for(var T=_.b(z.errorCallbacks),Q=T.next();!Q.done;Q=T.next())Q=Q.value,Q(q);
throw q;}),function(){clearTimeout(X)})};
QP.prototype.registerService=function(e,z){this.mappings.set(e.toString(),{type:"mapping",value:z});return e};
var vSg=function(e,z,C){switch(z.type){case "mapping":return z.value;case "factory":return z=z.value(),e.mappings.set(C.toString(),{type:"mapping",value:z}),z;default:return _.ca(z)}};
QP.prototype.onLoadError=function(e){var z=this;this.errorCallbacks.add(e);return function(){z.errorCallbacks.delete(e)}};
_.mj=new QP;var IY4=function(){};
_.Y=IY4.prototype;
_.Y.JSC$14340_getRequest=function(e,z,C){z=z===void 0?{}:z;C=C===void 0?Ekg:C;var w=z;if(this.isNavigationCommand()){var K,G=(K=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:K.url;w=_.mQ7(e.clickTrackingParams,!0,!1,G,this.JSC$14340_getClientScreen(w))}else w=_.mQ7(e.clickTrackingParams,!1,this.includeCsn);w={context:w};if(K=this.getExtension(e))return this.JSC$14340_buildRequest(w,K,z),K=this.getApiUrl(e),G=Object.assign({},{command:e},this.getRequestConfig(e,z)),w={input:K,requestShell:DP(K),
innerTubeRequest:w,config:G},w.config.authStrategy?w.config.authStrategy.identity=C:w.config.authStrategy={identity:C},(e=this.JSC$14340_getRequestKey(e,z))&&!w.config.requestKey&&(w.config.requestKey=e),w;e=new _.uh("Error: Failed to create Request from Command.",e);_.yG(e)};
_.Y.getApiUrl=function(e){var z=_.zU(this.getApiPaths(e)),C;(e=(C=_.r(e.commandMetadata,_.XV))==null?void 0:C.apiUrl)&&(z=e);return cpo(ypg(z))};
_.Y.isNavigationCommand=function(){return!1};
_.Y.JSC$14340_getClientScreen=function(){};
_.Y.JSC$14340_getRequestKey=function(){};
_.Y.getRequestConfig=function(){};
_.lB.Object.defineProperties(IY4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var a6=function(){};
_.U(a6,IY4);a6.prototype.JSC$14347_getStoreKey=function(){};
a6.prototype.JSC$14340_getRequestKey=function(e,z){z=z===void 0?{}:z;return this.JSC$14347_getStoreKey(e,z)};var nx=function(){};
_.U(nx,a6);nx.prototype.JSC$14340_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:DP("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
nx.prototype.getApiPaths=function(){return[]};
nx.prototype.getExtension=function(){};
nx.prototype.JSC$14340_buildRequest=function(){};var WHc={},Pr4=(WHc.GET_DATASYNC_IDS=De(nx),WHc);var RzU,LH6,hza,SlC,Mw,VXL,OIa,FHU,ESa;RzU="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");LH6=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.tq=function(e,z,C,w,K,G,X,J,q){this.endpointMap=e;this.networkManager=z;this.authService=C;this.responseProcessorMap=w;this.innertubeResponseStore=K;this.contextProcessors=G;this.asyncContextProcessors=X;this.localInnertubeRouter=J;this.requestSequencer=q;this.inflightRequests=new Map;e.signalEndpointMap||(e.signalEndpointMap={});e.signalEndpointMap=Object.assign({},Pr4,e.signalEndpointMap)};
hza=function(e,z,C,w,K,G,X,J,q){if(_.tq.instance!==void 0){if(w=_.tq.instance,e=[e!==w.endpointMap,z!==w.networkManager,C!==w.authService,K!==w.innertubeResponseStore,G!==w.contextProcessors,X!==w.asyncContextProcessors,J!==w.localInnertubeRouter],e.some(function(T){return T}))throw new _.uh("InnerTubeTransportService is already initialized",e);
}else _.tq.instance=new _.tq(e,z,C,w,K,G,X,J,q)};
_.yC=function(e,z,C){var w=w===void 0?Ekg:w;var K=OIa(e,z);return K?new _.RC(function(G,X){var J,q,T,Q,m;return _.k(function(a){switch(a.nextAddress){case 1:return a.yield(K,2);case 2:J=a.yieldResult;q=J.JSC$14340_getRequest(z,C,w);if(!q){X(new _.uh("Error: Failed to build request for command.",z));a.jumpTo(0);break}u6(q.input);Q=((T=q.requestShell)==null?void 0:T.mode)==="cors"?"cors":void 0;if(e.authService.syncHeaders){m=ESa(q.config,Q);a.jumpTo(4);break}return a.yield(FHU(q.config,Q),5);case 5:m=
a.yieldResult;case 4:G(VXL(e,q,m)),_.E_(a)}})}):_.R5(new _.uh("Error: No request builder found for command.",z))};
SlC=function(e,z,C,w){var K=K===void 0?Ekg:K;var G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y;return _.k(function(Z){switch(Z.nextAddress){case 1:G=T7g(z,e.endpointMap);if(!G)throw new _.uh("Error: No streaming request builder found for command",z);X=G.JSC$14340_getRequest(z,C,K);if(!X)throw new _.uh("Failed to build YtRequest for streaming Command",z);if((J=e.localInnertubeRouter)==null||!J.shouldPreferLocalResponse(X.input,X.innerTubeRequest)){Z.jumpTo(2);break}return Z.yield(e.localInnertubeRouter.localInnertubeResponse(X.input,
X.innerTubeRequest),3);case 3:return q=Z.yieldResult,T={},q.playerResponse&&(Mw(e,q.playerResponse,X),T.player=q.playerResponse,(Q=w)==null||Q(T,q)),q.watchNextResponse&&(Mw(e,q.watchNextResponse,X),T.content=q.watchNextResponse,(m=w)==null||m(T,q)),Z.return(T);case 2:n=((a=X.requestShell)==null?void 0:a.mode)==="cors"?"cors":void 0;if(e.authService.syncHeaders){H=ESa(X.config,n);Z.jumpTo(4);break}return Z.yield(FHU(X.config,n),5);case 5:H=Z.yieldResult;case 4:return h=(L=(I=X.requestShell)==null?
void 0:I.headers)!=null?L:{},X.requestShell=Object.assign({},X.requestShell,{headers:Object.assign({},h,H)}),E=Object.assign({},X.requestShell),N=JSON.stringify(X.innerTubeRequest),X.requestShell.method==="POST"&&(E=Object.assign({},E,{body:N})),D=function(YN,Jk){Mw(e,Jk.playerResponse||Jk.watchNextResponse||Jk.reelItemWatchResponse||Jk.reelWatchSequenceResponse,X);w==null||w(YN,Jk);_.M("web_watch_stop_scheduler_on_player_response")&&Jk.playerResponse&&uV6()},g={},Z.yield(fYs(e.networkManager,X.input,
E,D),6);
case 6:return g=Z.yieldResult,((y=X.config)==null?0:y.responseTick)&&_.hg(X.config.responseTick),Z.return(g)}})};
_.Hc=function(e,z,C,w,K){K=K===void 0?{authStrategy:{identity:Ekg}}:K;var G=G===void 0?!0:G;var X=function(){};
X=GCN(Ku1(C));z.context||(z.context=_.mQ7(w,G));return new _.RC(function(J){var q,T,Q,m,a;return _.k(function(n){if(n.nextAddress==1)return q=ypg(C),T=_.dN(q),e.authService.syncHeaders?(Q=ESa(K,T),n.jumpTo(2)):n.yield(FHU(K,T),3);n.nextAddress!=2&&(Q=n.yieldResult);m=cpo(ypg(C));a={input:m,requestShell:DP(m),innerTubeRequest:z,config:K};J(VXL(e,a,Q,X));_.E_(n)})})};
Mw=function(e,z,C){var w;if(z&&!(z==null?0:(w=z.sequenceMetaData)==null?0:w.skipProcessing)&&e.responseProcessorMap){w=_.b(RzU);for(var K=w.next();!K.done;K=w.next())K=K.value,e.responseProcessorMap[K]&&e.responseProcessorMap[K].handleResponse(z,C)}};
VXL=function(e,z,C,w){w=w===void 0?function(){}:w;
var K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z,YN,Jk,v1,lg,M5,fo,ug,sE,w6,qY,y1,Qa,Ha,OU,ab,Pa,$N,N5,$L,Ba;return _.k(function(r6){switch(r6.nextAddress){case 1:X=(K=z.config)==null?void 0:(G=K.storeStrategy)==null?void 0:G.storeKey;if(!(X&&e.innertubeResponseStore&&e.innertubeResponseStore.has(X))||((J=z.config)==null?0:(q=J.storeStrategy)==null?0:q.disableCache)){r6.jumpTo(2);break}return r6.yield(e.innertubeResponseStore.get(X),3);case 3:if((T=r6.yieldResult)&&!T.isExpired())return r6.return(Promise.resolve(_.J8(T)));
case 2:if(!((Q=z)==null?0:(m=Q.innerTubeRequest)==null?0:m.context)){r6.jumpTo(4);break}a=z.innerTubeRequest.context;if(!(e.asyncContextProcessors&&e.asyncContextProcessors.length>0)){r6.jumpTo(5);break}n=[];H=_.b(e.asyncContextProcessors);for(I=H.next();!I.done;I=H.next())L=I.value,h=L.processContext(z),h.wrappedPromise_&&n.push(h.wrappedPromise_);if(!(n.length>0)){r6.jumpTo(5);break}return r6.yield(Promise.all(n),5);case 5:E=_.b(e.contextProcessors||[]),N=E.next();case 8:if(N.done){r6.jumpTo(4);
break}D=N.value;return r6.yield(D.processContext(a),9);case 9:N=E.next();r6.jumpTo(8);break;case 4:if((g=e.localInnertubeRouter)==null||!g.shouldPreferLocalResponse(z.input,z.innerTubeRequest)){r6.jumpTo(12);break}return r6.yield(e.localInnertubeRouter.localInnertubeResponse(z.input,z.innerTubeRequest),13);case 13:return y=r6.yieldResult,Mw(e,y,z),r6.return(y);case 12:return(Jk=(YN=z.config)==null?void 0:YN.requestKey)&&e.inflightRequests.has(Jk)?Z=e.inflightRequests.get(Jk):(v1=JSON.stringify(z.innerTubeRequest),
fo=(M5=(lg=z.requestShell)==null?void 0:lg.headers)!=null?M5:{},z.requestShell=Object.assign({},z.requestShell,{headers:Object.assign({},fo,C)}),ug=Object.assign({},z.requestShell),z.requestShell.method==="POST"&&(ug=Object.assign({},ug,{body:v1})),((sE=z.config)==null?0:sE.requestTick)&&_.hg(z.config.requestTick),w6=function(){return e.networkManager.fetch(z.input,ug,z.config)},Z=e.requestSequencer?uT4(e.requestSequencer,z,w6):w6(),Jk&&e.inflightRequests.set(Jk,Z)),r6.yield(Z,14);
case 14:(qY=r6.yieldResult)&&_.M("web_streaming_player")&&Array.isArray(qY)&&(qY=qY[0].playerResponse);if(qY&&"error"in qY&&((y1=qY)==null?0:(Qa=y1.error)==null?0:Qa.details))for(Ha=qY.error.details,OU=_.b(Ha),ab=OU.next();!ab.done;ab=OU.next())Pa=ab.value,($N=Pa["@type"])&&LH6.indexOf($N)>-1&&(delete Pa["@type"],qY=Pa);Jk&&e.inflightRequests.has(Jk)&&e.inflightRequests.delete(Jk);((N5=z.config)==null?0:N5.responseTick)&&_.hg(z.config.responseTick);if(qY||($L=e.localInnertubeRouter)==null||!$L.canProvideFallbackResponse(z.input,
z.innerTubeRequest)){r6.jumpTo(15);break}return r6.yield(e.localInnertubeRouter.localFallbackInnertubeResponse(z.input,z.innerTubeRequest),16);case 16:qY=r6.yieldResult;case 15:return Mw(e,qY,z),((Ba=z.config)==null?0:Ba.processorTick)&&_.hg(z.config.processorTick),w(),r6.return(qY||void 0)}})};
_.jj=function(e,z){return x81(z,e.endpointMap)};
OIa=function(e,z){e=$8g(z,e.endpointMap);if(e!==void 0)return Promise.resolve(e)};
FHU=function(e,z){var C,w,K,G;return _.k(function(X){if(X.nextAddress==1){K=(C=e)==null?void 0:(w=C.authStrategy)==null?void 0:w.sessionIndex;var J=X.yield;var q=_.oS(C6h({sessionIndex:K}));return J.call(X,q,2)}G=X.yieldResult;return X.return(Promise.resolve(Object.assign({},lUL(z),G)))})};
ESa=function(e,z){var C;e=e==null?void 0:(C=e.authStrategy)==null?void 0:C.sessionIndex;C=C6h({sessionIndex:e});return Object.assign({},lUL(z),C)};var dyY,Dy4,iIg,N8a,sLX,B8Y,jLa,yja,UW,cjo,AjC,gSU,ZIa;dyY=0;Dy4=/tone[1-5]/;iIg=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");N8a="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
sLX=Number.MAX_SAFE_INTEGER;B8Y=RegExp("\ufe0f","g");_.ry=function(e){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;e&&_.tXS(this,e)};
_.tXS=function(e,z){try{_.RX(z,{context:e,onSuccess:function(w,K){Array.isArray(K)?e.load(K):(w=new _.uh("Emoji manager JSON response was not an array!",{response:K}),_.yG(w))},
onError:function(w){w=new _.uh("Failed to retrieve emoji manager initial JSON data!",{url:z,statusCode:_.Hi(w).toString()});_.AX(w)}})}catch(w){var C=new _.uh("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:z});
_.AX(C)}};
_.ry.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.ry.prototype.load=function(e,z){if(z)if(e.length)e=e.concat(z.emojis);else{this.emojis=z.emojis;this.emojiMap=z.emojiMap;this.emojiShortcutMap=z.emojiShortcutMap;this.emojiShortcutCharMap=gSU(z);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=z.emojiRegex;return}this.emojis=[].concat(_.s_(new Set(this.emojis.concat(e))));this.hasInitializedShortcutCharMap=!1;e=Array(this.emojis.length);for(z=0;z<this.emojis.length;z++){var C=this.emojis[z];if(C.emojiId){this.emojiMap[C.emojiId]=C;this.emojiMap[C.emojiId].index=
z;for(var w=0;C.shortcuts&&w<C.shortcuts.length;w++)this.emojiShortcutMap[C.shortcuts[w].toLocaleLowerCase()]=C;e[z]=C.isCustomEmoji&&C.shortcuts?C.shortcuts[0]:C.emojiId}}e.sort(function(K,G){return G.length-K.length});
if(e.length)try{this.emojiRegex=new RegExp(e.join("|").replace("*","\\*"),"gi")}catch(K){this.emojiRegex=/$./}else this.emojiRegex=/$./};
jLa=function(e,z){z=_.b(z);for(var C=z.next();!C.done;C=z.next()){var w=C.value;if(w.emojiId&&e.emojiMap[w.emojiId]){C=Object.assign({},e.emojiMap[w.emojiId],w);e.emojiMap[w.emojiId]=C;var K=void 0;C.index&&((K=e.emojis[C.index])==null?void 0:K.emojiId)===w.emojiId&&(e.emojis[C.index]=C);w=void 0;if((w=C.shortcuts)==null?0:w.length)for(e.hasInitializedShortcutCharMap=!1,w=_.b(C.shortcuts),K=w.next();!K.done;K=w.next())e.emojiShortcutMap[K.value.toLocaleLowerCase()]=C}}};
yja=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(_.kb.getInstance(),2);if(w.nextAddress!=3)return(z=w.yieldResult)?w.yield(z.get("ytlc-emoji-pref"),3):w.return();(C=w.yieldResult)&&jLa(e,Object.keys(C).map(function(K){return{emojiId:K,stickyPrefId:C[K]}}).filter(function(K){return!!K.emojiId&&!!K.stickyPrefId}));
_.E_(w)})};
_.Hk=function(e,z,C){return(e=e.emojiMap[z])&&(!e.isLocked||C!==void 0&&C)?e:void 0};
UW=function(e,z,C){C=_.Hk(e,z,C===void 0?!1:C);var w=z.match("\u200d");C&&e.skinTone!==0&&(e=(w==null?void 0:w.length)===1?_.Hk(e,z.replace("\u200d",iIg[e.skinTone]+"\u200d")):_.Hk(e,z+iIg[e.skinTone]))&&(C=e);return C};
cjo=function(e,z){var C=e.emojiMap[z];return(C==null?0:C.stickyPrefId)?e.emojiMap[C.stickyPrefId]:UW(e,z)};
_.TV=function(e,z){e=e.emojiShortcutMap[z.toLocaleLowerCase()];return!e||e.isLocked?null:e};
AjC=function(e,z,C){return gSU(e,C===void 0?!1:C)[z]||{}};
gSU=function(e,z){z=z===void 0?!1:z;if(!e.hasInitializedShortcutCharMap){e.hasInitializedShortcutCharMap=!0;for(var C=0;C<e.emojis.length;C++){var w=e.emojis[C];if(!(w.isLocked||z&&w.isCustomEmoji&&w.emojiId&&!e.pickerCustomEmojiIds.includes(w.emojiId)))for(var K=0;w.shortcuts&&K<w.shortcuts.length;K++){var G=w.shortcuts[K];G.startsWith(":_")&&w.isCustomEmoji&&(e.emojiShortcutCharMap[":_"]==null&&(e.emojiShortcutCharMap[":_"]=Object.create(null)),e.emojiShortcutCharMap[":_"][G]=w);if(!(G.length<3||
!w.isCustomEmoji&&Dy4.test(G))){var X=G.substr(0,3).toLocaleLowerCase();e.emojiShortcutCharMap[X]==null&&(e.emojiShortcutCharMap[X]=Object.create(null));e.emojiShortcutCharMap[X][G]=w}}}}return e.emojiShortcutCharMap};
_.ry.prototype.createEmoji=function(e,z){z=z===void 0?!0:z;var C=document.createElement("img");e.isCustomEmoji||C.classList.add("small-emoji");C.classList.add("emoji");C.classList.add("yt-formatted-string");C.src=e.image?_.oo(e.image.thumbnails,this.emojiSize)||"":"";var w=void 0;e.image&&e.image.accessibility&&e.image.accessibility.accessibilityData&&(w=e.image.accessibility.accessibilityData.label);C.alt=w?w:(e.isCustomEmoji&&e.shortcuts?e.shortcuts[0]:e.emojiId)||"";e.isCustomEmoji&&(C.dataset.emojiId=
e.emojiId);_.aP&&(C.setAttribute("contenteditable","false"),C.setAttribute("unselectable","on"));z&&(e.shortcuts&&e.shortcuts.length&&C.setAttribute("shared-tooltip-text",e.shortcuts[0]),C.id="emoji-"+dyY++);return C};
_.ry.prototype.createDocumentFragment=function(e,z,C,w){z=z===void 0?!1:z;C=C===void 0?!0:C;w=w===void 0?!1:w;e=e.replace(B8Y,"");for(var K=document.createDocumentFragment(),G=0,X,J=0;(X=this.emojiRegex.exec(e))!=null;){var q=_.Hk(this,X[0])||_.TV(this,X[0]);!q||q.isCustomEmoji&&!z||(q=this.createEmoji(q,C),G!==X.index&&K.appendChild(document.createTextNode(e.substring(G,X.index))),K.appendChild(q),G=X.index+X[0].length,J++)}if(!w||J)return K.appendChild(document.createTextNode(e.substr(G))),K};
ZIa=function(e,z,C){var w,K,G,X,J,q,T,Q,m;return _.k(function(a){if(a.nextAddress==1){if(!z.emojiId||!e.emojiMap[z.emojiId])return a.return();w=Object.assign({},e.emojiMap[z.emojiId],{stickyPrefId:C});e.emojiMap[z.emojiId]=w;z.index&&((K=e.emojis[z.index])==null?void 0:K.emojiId)===z.emojiId&&(e.emojis[z.index]=w);if((G=z.shortcuts)==null?0:G.length)for(e.hasInitializedShortcutCharMap=!1,X=_.b(z.shortcuts),J=X.next();!J.done;J=X.next())q=J.value,e.emojiShortcutMap[q.toLocaleLowerCase()]=w;return a.yield(_.kb.getInstance(),
2)}if(a.nextAddress!=4)return(T=a.yieldResult)?a.yield(T.get("ytlc-emoji-pref"),4):a.jumpTo(0);m=(Q=a.yieldResult)!=null?Q:{};m[z.emojiId]=C;return a.yield(T.set("ytlc-emoji-pref",m,sLX),0)})};
_.vk=new _.ry;var zIY;_.I6={};
zIY={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.M("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:_.M("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 cH(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 e=_.XC(this.hostElement||this).querySelector("#inline-action-button-container");e&&e.setAttribute("aria-hidden","true");this.menuButton=_.XC(this.hostElement).querySelector("#menu-button")},
attached:function(){var e=this.menuButton;e&&(e.addEventListener("focusin",_.lE(this,this.onMenuButtonFocus_)),e.addEventListener("focusout",_.lE(this,this.onMenuButtonBlur_)))},
detached:function(){var e=this.menuButton;e&&(e.removeEventListener("focusin",_.lE(this,this.onMenuButtonFocus_)),e.removeEventListener("focusout",_.lE(this,this.onMenuButtonBlur_)))},
identity:_.F4,truthy:function(e){return!!e},
computeTimestampString:function(e){return e?e.timestampText?this.getSimpleString(e.timestampText):this.TIME_FORMATTER.format(new Date(e.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(e){return e},
computeMenuVisible_:function(e,z){return e||z},
computeHasInlineActionButtons:function(e){if(!e)return!1;var z,C;return!((z=e.inlineActionButtons)==null||!z.length)||!((C=e.additionalInlineActionButtons)==null||!C.length)},
createDocumentFragmentFromString:function(e){var z=_.vk.createDocumentFragment.bind(_.vk),C;if((C=this.participantsManager)==null||!C.viewerRegex)return z(e);C=document.createDocumentFragment();for(var w=0,K;(K=this.participantsManager.viewerRegex.exec(e))!=null;){if(K.index>0){var G=":"+K[0]+":";if((_.Hk(_.vk,G)||_.TV(_.vk,G))&&e.indexOf(G)===K.index-1)continue}C.appendChild(z(e.substring(w,K.index)));w=document.createElement("span");w.appendChild(z(K[0]));w.classList.add("mention");C.appendChild(w);
w=K.index+K[0].length}C.appendChild(z(e.substring(w)));return C},
createDocumentFragment:function(e){var z=document.createDocumentFragment();if(e.simpleText)return z.appendChild(this.createDocumentFragmentFromString(e.simpleText)),z;if(!e.runs)return z;for(var C=0;C<e.runs.length;C++){var w=e.runs[C];if(w.emoji)z.appendChild(_.vk.createEmoji(w.emoji));else if(w.text)if(w.navigationEndpoint){var K=document.createElement("a");K.classList.add("yt-simple-endpoint");nTE(K,w.navigationEndpoint);_.XC(K).appendChild(this.createDocumentFragmentFromString(w.text));z.appendChild(K)}else z.appendChild(this.createDocumentFragmentFromString(w.text))}return z},
hasModerationOverlayVisible:function(){var e;return((e=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:e.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(e){e.composedPath().some(function(z){return(z=z instanceof Element?z:null)?z.tagName&&(z.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||z.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.M("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(e)},
colorFromDecimal:function(e){return g6h(e)},
markAsDeleted:function(e,z){this.set("data.deletedStateMessage",e);this.set("data.showOriginalContentMessage",z)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(e){if(this.data.contextMenuEndpoint){var z=_.lh().resolve(_.UG),C=this.data.contextMenuEndpoint,w;(w=_.tq.instance)&&_.jj(w,C)?(z=p6C(z,C),w=_.Hc(w,{},z)):w=_.eIg(z,C);w.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);e&&e.stopPropagation()}},
handleGetContextMenuResponse_:function(e){var z=_.tq.instance;z&&_.jj(z,{liveChatEndpoint:{}})||(e=e.response);e.liveChatItemContextMenuSupportedRenderers&&e.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(e.liveChatItemContextMenuSupportedRenderers.menuRenderer);e.actions&&_.eA(this.hostElement,"yt-live-chat-actions",[e.actions])},
handleGetContextMenuError:function(e){if(e instanceof Error||e instanceof Object||e instanceof String)var z=e;_.yG(new _.uh("Error encountered calling GetLiveChatItemContextMenu",z))},
showContextMenu_:function(e){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:e}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.pi(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.pi(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.I6.YtLiveChatItemBehavior=[zIY,_.Q5.YtComponentBehavior,_.jf.YtOpenPopupBehavior];_.Wk=function(){};var Cqs;var wys;var KGg;var oHa;var Pk=function(){var e=_.V.apply(this,arguments)||this;e.active=!1;e.identity=_.F4;return e};
_.U(Pk,_.V);Pk.prototype.dataChanged=function(){this.active=!1};
Pk.prototype.onClick=function(){_.pi(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Pk.prototype.dataChanged=Pk.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],Pk.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pk.prototype,"active",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pk.prototype,"dataChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Pk);
_.u(Pk,"yt-live-chat-text-input-field-suggestion",function(){if(oHa===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;KGg===void 0&&(KGg=document.createElement("template"));var w=KGg;C.call(z,w.content.cloneNode(!0),e.content.firstChild);oHa=e}e=oHa;return e},{mode:0});_.R6=function(e,z,C){return CustomEvent.call(this,e,{detail:{value:z,path:C}})||this};
_.U(_.R6,CustomEvent);_.Lx=function(){var e=_.V.apply(this,arguments)||this;e.viewerName=null;e.actionMap={"yt-live-chat-actions":"onChatMessage_"};e.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];e.PARTICIPANT_TIME_USEC_=3E8;return e};
_.U(_.Lx,_.V);_.Y=_.Lx.prototype;_.Y.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.Y.addParticipant=function(e){var z=_.f8m(this.participants,e,function(w,K){w=w[Object.keys(w)[0]];K=K[Object.keys(K)[0]];w=String(_.Zd(w.authorName)).toLowerCase();K=String(_.Zd(K.authorName)).toLowerCase();return w<K?-1:w==K?0:1}.bind(this));
if(z>=0){var C=this.participants[z];C[Object.keys(C)[0]].timestampUsec&&this.splice("participants",z,1,e)}else this.splice("participants",-z-1,0,e);e=e[Object.keys(e)[0]];z=_.Zd(e.authorName).toLocaleLowerCase();C=z.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(C)||(this.allParticipantsCharMap_[C]={});this.allParticipantsCharMap_[C][z]=e};
_.Y.getAuthorsFromPrefix=function(e){return this.allParticipantsCharMap_.hasOwnProperty(e)?this.allParticipantsCharMap_[e]:null};
_.Y.computeViewerRegex_=function(e){if(!e)return null;e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var z=e.indexOf("@")===0&&_.M("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(z+e.replace(/ /g,"\\s*")+"|^"+e.replace(/ /g,"\\s*")+"$|^"+e.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+e.replace(/ /g,"\\s*")+"$|(?<=\\s)"+e.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.Y.checkForStaleParticipants_=function(){var e=this;this.trimOldParticipants_();this.asyncHandle_&&rFo(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.BI(function(){e.checkForStaleParticipants_()},3E4))};
_.Y.onChatMessage_=function(e){var z=this,C=Date.now()*1E3;e.forEach(function(w){if(w=_.r(w,BU6)){w=w.item;var K=Object.keys(w)[0];z.SUPPORTED_ITEM_TYPES_.indexOf(K)!=-1&&w[K].timestampUsec>=C-z.PARTICIPANT_TIME_USEC_&&z.addParticipant(w)}},this);
this.checkForStaleParticipants_()};
_.Y.trimOldParticipants_=function(){for(var e=Date.now()*1E3,z=this.participants.length-1;z>=0;z--){var C=this.participants[z];C=C[Object.keys(C)[0]];C.timestampUsec&&C.timestampUsec<e-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",z,1)}};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],_.Lx.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],_.Lx.prototype,"viewerName",void 0);_.d([_.F({computed:"computeViewerRegex_(viewerName)"}),_.B("design:type",Object)],_.Lx.prototype,"viewerRegex",void 0);_.d([_.F({value:function(){return[]},
notify:!0}),_.B("design:type",Array)],_.Lx.prototype,"participants",void 0);_.d([_.fP({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Lx);var GGo=/.*([:@#].*?)$/,hu=/\u00a0/g,YIT=String.fromCharCode(160),b_h={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"},OW=function(){var e=_.V.apply(this,arguments)||this;e.disabled=!1;e.liveChatRichMessageInput=null;e.messageInput=null;e.isValidWithNoInputText=!1;e.suggestions=[];e.emojiManager=_.vk;e.inputMethodEditorActive=
!1;e.suggestionIndex=-1;e.JSC$14398_lastSuggestionRange=null;return e};
_.U(OW,_.V);_.Y=OW.prototype;_.Y.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.Y.attached=function(){_.nb&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.Y.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.Y.dataChanged=function(){if(!this.ignoreColorMapping){var e=!1,z={},C;for(C in b_h)this.data&&this.data.hasOwnProperty(C)&&(z[b_h[C]]=this.colorFromDecimal(this.data[C]),e=!0);e&&_.T8(this.hostElement,z)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.Y.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.Y.colorFromDecimal=function(e){e=Math.floor(Number(e));return"rgba("+[e>>16&255,e>>8&255,e&255,(e>>24&255)/255].join()+")"};
_.Y.preventDrag=function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="none");e.preventDefault()};
_.Y.preventResize=function(e){e.returnValue=!1};
_.Y.onInputChange=function(){var e=this.characterCount,z=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&z&&z.remove();if(!z&&this.characterCount>this.maxCharacterLimit){var C=window.getSelection();if(C){var w=C.getRangeAt(0);C.removeAllRanges();C.addRange(w)}}if(C=this.getCurrentRange())w=this.calculateTextBeforeRange(C),this.completeEmojisInRange(C,w,!0)||this.updateSuggestions(C,w);w=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(w);
_.pi(this.hostElement,"yt-live-chat-message-input-change",w);z&&this.characterCount===0&&z.remove();C&&C.commonAncestorContainer.parentElement.id==="input"&&C.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>e):C&&!C.collapsed&&C.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(e=this.input.childNodes.length-1;e>=0;e--)this.input.childNodes[e].nodeName==="BR"&&this.input.childNodes[e].remove()};
_.Y.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.Y.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var e=this.getCurrentRange();e&&e.commonAncestorContainer.parentElement.id==="input"&&e.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Y.mergeOverflowText=function(e){if(e){var z=document.createRange();z.selectNodeContents(e);z=z.extractContents();this.input.insertBefore(z,e)}};
_.Y.checkRangeAtEndOfInput=function(){var e=this.getCurrentRange();if(e){var z=_.XC(this.hostElement).querySelector("#overflow-text"),C=document.createRange();z&&z.previousSibling?z.previousSibling instanceof HTMLImageElement?C.selectNode(z.previousSibling):C.selectNodeContents(z.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?C.selectNode(this.input.lastChild):C.selectNodeContents(this.input.lastChild));C.collapse(!1);return C.isPointInRange(e.startContainer,
e.startOffset)}return!1};
_.Y.handleOverflowText=function(e){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var z=_.XC(this.hostElement).querySelector("#overflow-text"),C=this.getCurrentRange();this.input.normalize();e=this.checkRangeAtEndOfInput()&&e;this.mergeOverflowText(z);for(var w,K=0,G=0,X,J=this.input.childNodes,q=0;q<J.length;q++){var T=J[q];T instanceof Text?(G+=T.textContent.length,G>this.maxCharacterLimit&&(w=T,K=this.maxCharacterLimit+T.textContent.length-G)):T instanceof HTMLImageElement&&
(w=void 0,G=T.dataset.emojiId&&((w=this.data)==null?0:w.emojiCharacterCount)?G+this.data.emojiCharacterCount:G+T.alt.length,w=this.input,K=q);if(G>this.maxCharacterLimit&&w){X=document.createRange();X.collapse(!1);z?(G=this.input.lastChild.previousSibling,G instanceof Text?X.setEnd(this.input.lastChild.previousSibling,G.textContent.length):G instanceof HTMLImageElement&&X.setEnd(this.input,this.input.childNodes.length-1)):X.selectNodeContents(this.input);X.setStart(w,K);break}}X&&(w=!1,C&&(e=X.isPointInRange(C.startContainer,
C.startOffset-1)),z||(z=document.createElement("span"),z.id="overflow-text",z.textContent="",z.setAttribute("contenteditable","true"),_.XC(_.XC(this.hostElement).querySelector("#input")).appendChild(z),w=!0),z&&(C=X.extractContents(),z.insertBefore(C,z.firstChild),e&&z.firstChild&&(C=document.createRange(),w?C.setStartAfter(z.lastChild):C.setStartAfter(z.firstChild),C.collapse(!0),z=window.getSelection(),z.removeAllRanges(),z.addRange(C))))}};
_.Y.checkForDuplicateSpans=function(){for(var e=0;e<this.input.childNodes.length;e++){var z=this.input.childNodes[e];if(z.nodeName==="SPAN"){var C=document.createRange();C.selectNodeContents(z);C=C.extractContents();this.input.insertBefore(C,z);z.remove()}}this.handleOverflowText(!0)};
_.Y.getCurrentRange=function(){var e=window.getSelection();return e&&e.rangeCount?e.getRangeAt(0).cloneRange():null};
_.Y.getInputRange=function(){var e=this.getCurrentRange();if(e){for(var z=e.commonAncestorContainer,C=!1,w=_.XC(this.hostElement).querySelector("#input");z;){if(z===w){C=!0;break}z=z.parentNode}C||(e=null)}e||(e=this.getRangeAtEnd());return e};
_.Y.getRangeAtEnd=function(){var e=document.createRange(),z=_.XC(this.hostElement).querySelector("#input").lastChild;!z||z.nodeName!=="#text"&&z.nodeName!=="SPAN"?(e.selectNodeContents(_.XC(this.hostElement).querySelector("#input")),e.collapse(!1)):z.nodeName==="#text"?e.setStart(z,z.textContent.length):e.setStart(z,z.childNodes.length);return e};
_.Y.getChatParticipantSuggestions=function(e,z,C,w){var K=_.M("live_chat_enable_handles_web_text_input_update");if(z)for(var G in z)if(G.indexOf(e)===0||K&&G.indexOf(C+e)===0){var X=z[G],J=_.Zd(X.authorName);w.push({suggestion:{author:!0,authorType:C,image:X.authorPhoto,alt:J,text:J}});if(w.length>=64)break}};
_.Y.getSuggestions=function(e){var z=[],C=e.substring(0,3),w=AjC(_.vk,C,!0);if(w)for(var K in w)if(K.toLocaleLowerCase().indexOf(e)===0){var G=w[K];if(G&&G.emojiId){if(G=cjo(_.vk,G.emojiId)){var X=void 0,J=void 0,q=void 0,T=void 0,Q=((X=G.image)==null?0:(J=X.accessibility)==null?0:(q=J.accessibilityData)==null?0:q.label)||G.isCustomEmoji?(T=G.shortcuts)==null?void 0:T[0]:G.emojiId;z.push({suggestion:{emoji:!0,image:G.image,alt:Q,text:K,textToInsertWhenSelected:G.isCustomEmoji?K:Q}})}if(z.length>=
64)break}}if(!this.participantsManager)return null;if(C.indexOf("@")===0||C.indexOf("#")===0)w=C.charAt(0),e=e.substring(1),K=_.M("live_chat_enable_handles_web_text_input_update"),C.indexOf("@")===0&&K&&(K=this.participantsManager.getAuthorsFromPrefix(C.substring(0,2)),this.getChatParticipantSuggestions(e,K,w,z)),C=C.substring(1),C=this.participantsManager.getAuthorsFromPrefix(C),this.getChatParticipantSuggestions(e,C,w,z);return z?z.sort(function(m,a){return a.suggestion.text<m.suggestion.text?-1:
a.suggestion.text===m.suggestion.text?0:1}):null};
_.Y.insertSuggestion=function(e){var z=_.M("live_chat_enable_handles_web_text_input_update"),C=e.authorType;z=e.text.indexOf(C)===0&&z?e.text+YIT:C+e.text+YIT;e.emoji?this.insertTextAtRange(this.JSC$14398_lastSuggestionRange,e.textToInsertWhenSelected||""):e.author&&this.insertTextAtRange(this.JSC$14398_lastSuggestionRange,z)};
_.Y.updateSuggestionsAtCaret=function(){var e=this.getCurrentRange();e&&this.updateSuggestions(e,this.calculateTextBeforeRange(e))};
_.Y.offsetStartOfRangeBy=function(e,z){for(;z>0;)if(e.startOffset-z>=0){e.setStart(e.startContainer,e.startOffset-z);break}else{z=e.startContainer instanceof HTMLImageElement?z-e.startContainer.alt.length:z-e.startOffset;var C=e.startContainer.previousSibling;if(!C){e.setStart(e.startContainer,0);break}if(_.M("live_chat_require_space_for_autocomplete_emoji")){var w=void 0,K=void 0;e.setStart(C,((w=C)==null?void 0:(K=w.textContent)==null?void 0:K.length)||0)}else e.setStart(C,C.childNodes.length||
0)}};
_.Y.updateSuggestions=function(e,z){var C=this;this.JSC$14398_lastSuggestionRange&&(this.JSC$14398_lastSuggestionRange.detach(),this.JSC$14398_lastSuggestionRange=null);if((z=GGo.exec(z))&&z.length&&(z=z[z.length-1].toLocaleLowerCase(),z.length>2&&(this.offsetStartOfRangeBy(e,z.length),this.JSC$14398_lastSuggestionRange=e,(e=this.getSuggestions(z))&&e.length))){this.suggestions=e;_.T0(this,function(){_.XC(C.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(e.length-1);return}this.dropdown.opened=!1};
_.Y.completeEmojisInRange=function(e,z,C){var w=z.replace(/[\s\xa0]+$/,"");z=z.length-w.length;w=w.split(" ");w=w[w.length-1].trim().toLocaleLowerCase();var K=w.lastIndexOf(":");if(C&&!z&&K!==w.length-1)return!1;K!==-1&&(C=w.lastIndexOf(":",K-1),C!==-1&&(w=w.substring(C)));if((C=_.TV(_.vk,w))&&C.emojiId){C=cjo(_.vk,C.emojiId)||null;this.offsetStartOfRangeBy(e,w.length+z);var G,X,J,q;w=(((G=C)==null?0:G.isCustomEmoji)?(X=C)==null?void 0:(J=X.shortcuts)==null?void 0:J[0]:(q=C)==null?void 0:q.emojiId)||
"";z&&(w+=YIT);this.insertTextAtRange(e,w);this.dropdown.opened=!1;return!0}return!1};
_.Y.onSuggestion=function(e){this.insertSuggestion(e.detail);this.dropdown.opened=!1};
_.Y.onKeyPress=function(e){e.keyCode===13&&(e.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.pi(this.hostElement,"yt-live-chat-send-message"))};
_.Y.completeEmojis=function(){var e=document.createRange(),z=_.XC(this.hostElement).querySelector("#input").lastChild;z?e.setStart(z,z.childNodes.length):(e.selectNodeContents(_.XC(this.hostElement).querySelector("#input")),e.collapse(!1));this.completeEmojisInRange(e,this.calculateTextBeforeRange(e),_.M("live_chat_require_space_for_autocomplete_emoji"))};
_.Y.maybePreventTextFormatting=function(e){!_.U7||!e.ctrlKey&&!e.metaKey||e.keyCode!==66&&e.keyCode!==73||(e.stopImmediatePropagation(),e.preventDefault())};
_.Y.onKeyDown=function(e){this.maybePreventTextFormatting(e);if(this.dropdown.opened)switch(e.keyCode){case 27:this.dropdown.opened=!1;e.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;e.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);e.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),e.preventDefault()}};
_.Y.onKeyUp=function(e){switch(e.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.aP)this.onInputChange()};
_.Y.changeSuggestionIndex=function(e){if(this.dropdown.opened){var z=_.XC(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<z.children.length&&(z.children[this.suggestionIndex].active=!1);var C=this.suggestions.length;this.suggestionIndex=(e+C)%C;e=z.children[this.suggestionIndex];e.active=!0;z.scrollTop=e.offsetTop}};
_.Y.onInputPaste=function(e){e.preventDefault();(e=e.clipboardData)&&e.types&&(e=e.getData("text/plain")||"",e=e.replace(/\n/g,""),this.insertText(e));(e=this.getCurrentRange())&&e.commonAncestorContainer.parentElement.id==="input"&&e.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.Y.onFocus=function(){this._setFocused(!0)};
_.Y.onBlur=function(){this._setFocused(!1)};
_.Y.insertText=function(e){this.insertTextAtRange(this.getInputRange(),e)};
_.Y.insertTextAtRange=function(e,z){if(e&&(e.collapsed||e.deleteContents(),z=_.vk.createDocumentFragment(z,!0,!1))){for(var C=_.b((z==null?void 0:z.childNodes)||[]),w=C.next();!w.done;w=C.next()){w=w.value;var K=void 0,G=void 0,X=void 0,J=void 0,q=void 0;(X=(K=window)==null?void 0:(G=K.ShadyCSS)==null?void 0:G.ScopingShim)==null||(q=(J=X).scopeNode)==null||q.call(J,w,this.hostElement.localName)}C=z.lastChild;e.insertNode(z);this.focused||this.input.focus();if(this.focused){e=e.cloneRange();e.selectNodeContents(C);
e.collapse(!1);if(z=window.getSelection())z.removeAllRanges(),z.addRange(e);e.commonAncestorContainer.parentElement.id==="input"&&e.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}e=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(e);_.pi(this.hostElement,"yt-live-chat-message-input-change",e)}};
_.Y.setLiveChatRichMessageInput=function(e){_.XC(_.XC(this.hostElement).querySelector("#input")).textContent="";if(e&&e.textSegments){for(var z=0;z<e.textSegments.length;z++){var C=e.textSegments[z];C.text?_.XC(_.XC(this.hostElement).querySelector("#input")).appendChild(_.vk.createDocumentFragment(C.text,!0,!1)):C.emojiId&&(C=_.Hk(_.vk,C.emojiId))&&_.XC(_.XC(this.hostElement).querySelector("#input")).appendChild(_.vk.createEmoji(C,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.Y.setText=function(e){this.setLiveChatRichMessageInput(e?{textSegments:[{text:e}]}:null)};
_.Y.calculateTextBeforeRange=function(e){var z="",C=e.startContainer;if(C&&C instanceof Text){var w;z=((w=C.textContent)==null?void 0:w.substring(0,e.startOffset))||"";C=C.previousSibling}for(;C&&C instanceof Text;)z=C.textContent+z,C=C.previousSibling;return z.replace(hu," ")};
_.Y.calculateLiveChatRichMessageInput=function(){for(var e=[],z="",C=_.XC(_.XC(this.hostElement).querySelector("#input")).childNodes,w=0;w<C.length;w++){var K=C[w];K instanceof Text?z+=K.textContent:K instanceof HTMLImageElement&&(K.dataset.emojiId?(z&&(e.push({text:z.replace(hu," ")}),z=""),e.push({emojiId:K.dataset.emojiId})):z+=K.alt)}z&&e.push({text:z.replace(hu," ")});if(C=_.XC(this.hostElement).querySelector("#overflow-text")){z="";C=C.childNodes;for(w=0;w<C.length;w++)K=C[w],K instanceof Text?
z+=K.textContent:K instanceof HTMLImageElement&&(K.dataset.emojiId?(z&&(e.push({text:z.replace(hu," ")}),z=""),e.push({emojiId:K.dataset.emojiId})):z+=K.alt);z&&e.push({text:z.replace(hu," ")})}return{textSegments:e}};
_.Y.computeCharacterCount=function(e){if(!e||!e.textSegments)return 0;for(var z=0,C=0;C<e.textSegments.length;C++){var w=e.textSegments[C];if(w.text)z+=w.text.length;else if(w.emojiId){var K=void 0;if((K=this.data)==null?0:K.emojiCharacterCount)z+=this.data.emojiCharacterCount;else{var G=K=void 0,X=void 0;z+=((G=_.Hk(_.vk,(K=w)==null?void 0:K.emojiId))==null?void 0:(X=G.shortcuts)==null?void 0:X[0].length)||0}}}return z};
_.Y.characterCountChanged=function(){_.pi(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.Y.focusedChanged=function(){this.hostElement.dispatchEvent(new _.R6("focused-changed",this.focused))};
_.Y.focus=function(){this.setFocus(!1)};
_.Y.focusAtEnd=function(){this.setFocus(!0)};
_.Y.setFocus=function(e){e=e?this.getRangeAtEnd():this.getInputRange();_.XC(this.hostElement).querySelector("#input").focus();var z=window.getSelection();z&&(z.removeAllRanges(),z.addRange(e))};
_.Y.insertEmoji=function(e){var z,C=((e==null?0:e.isCustomEmoji)?(z=e.shortcuts)==null?void 0:z[0]:e==null?void 0:e.emojiId)||"";this.insertText(C)};
_.Y.computeText=function(e){if(!e||!e.textSegments)return"";for(var z="",C=0;C<e.textSegments.length;C++){var w=e.textSegments[C];if(w.text)z+=w.text;else if(w.emojiId){var K=void 0,G=void 0,X=void 0;z+=((G=_.Hk(_.vk,(K=w)==null?void 0:K.emojiId))==null?void 0:(X=G.shortcuts)==null?void 0:X[0])||""}}return z};
_.Y.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.lB.Object.defineProperties(OW.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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}}});
OW.prototype.focusedChanged=OW.prototype.focusedChanged;OW.prototype.characterCountChanged=OW.prototype.characterCountChanged;OW.prototype.onSuggestion=OW.prototype.onSuggestion;OW.prototype.onMessageSet=OW.prototype.onMessageSet;OW.prototype.dataChanged=OW.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],OW.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],OW.prototype,"disabled",void 0);_.d([_.P("disabled"),_.B("design:type",Number),_.B("design:paramtypes",[])],OW.prototype,"inputTabIndex",null);_.d([_.P("data.maxCharacterLimit"),_.F({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],OW.prototype,"maxCharacterLimit",null);
_.d([_.P("liveChatRichMessageInput"),_.F({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],OW.prototype,"characterCount",null);_.d([_.P("maxCharacterLimit, characterCount"),_.F({readOnly:!0,notify:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],OW.prototype,"remainingCharacterCount",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],OW.prototype,"isChatMessageInput",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],OW.prototype,"inputExpanded",void 0);_.d([_.F({readOnly:!0,notify:!0}),_.B("design:type",Object)],OW.prototype,"liveChatRichMessageInput",void 0);_.d([_.F(),_.B("design:type",Object)],OW.prototype,"messageInput",void 0);_.d([_.F(),_.B("design:type",Boolean)],OW.prototype,"ignoreColorMapping",void 0);_.d([_.P("characterCount"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],OW.prototype,"hasText",null);
_.d([_.F(),_.B("design:type",Object)],OW.prototype,"isValidWithNoInputText",void 0);_.d([_.P("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.F(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],OW.prototype,"isInputValid",null);_.d([_.F({readOnly:!0,value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],OW.prototype,"focused",void 0);_.d([_.F(),_.B("design:type",Array)],OW.prototype,"suggestions",void 0);
_.d([_.F(),_.B("design:type",_.ry)],OW.prototype,"emojiManager",void 0);_.d([_.F(),_.B("design:type",_.Lx)],OW.prototype,"participantsManager",void 0);_.d([_.F(),_.B("design:type",Boolean)],OW.prototype,"noUnderline",void 0);_.d([_.F(),_.B("design:type",Object)],OW.prototype,"inputMethodEditorActive",void 0);_.d([_.nP("#dropdown"),_.B("design:type",Object)],OW.prototype,"dropdown",void 0);_.d([_.nP("#input"),_.B("design:type",HTMLElement)],OW.prototype,"input",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OW.prototype,"dataChanged",null);_.d([_.mi("messageInput"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OW.prototype,"onMessageSet",null);_.d([_.Qi("yt-live-chat-select-suggestion"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],OW.prototype,"onSuggestion",null);
_.d([_.mi("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OW.prototype,"characterCountChanged",null);_.d([_.mi("focused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OW.prototype,"focusedChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],OW);
_.XyS=_.u(OW,"yt-live-chat-text-input-field-renderer",function(){if(wys===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Cqs===void 0&&(Cqs=document.createElement("template"));var w=Cqs;C.call(z,w.content.cloneNode(!0),e.content.firstChild);wys=e}e=wys;return e},{mode:0});var EW=function(){var e=_.V.apply(this,arguments)||this;e.buttonOverrides={style:"overlay",type:"filled"};e.allowAnimations=!1;e.modern=_.M("web_button_rework_with_live");e.noPadding=!1;return e};
_.U(EW,_.V);_.Y=EW.prototype;_.Y.shouldSupportInlineActionButtons=function(){return!0};
_.Y.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"}}}}};
_.Y.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Y.attached=function(){this.allowAnimations=!1};
_.Y.dataChanged=function(){if(this.data){var e={"--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)};_.T8(this.hostElement,e);this.allowAnimations=!0}};
_.Y.messageChanged=function(){var e,z=(e=this.data)==null?void 0:e.message;e=_.XC(_.XC(this.hostElement).querySelector("#message"));e.textContent="";z&&e.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(z))};
_.Y.computeShowOnlyHeader=function(e,z){return!e||e.pdgLikeButton||e.replyButton||e.buyFlowButton?!1:this.isEmpty(e,z)&&!e.footer};
_.Y.computeShowFooterDivider=function(e,z,C){return e?!!e.footer&&!this.isEmpty(e,z)&&!C:!1};
_.Y.computeIsUserEditable=function(e){return!!e.inputField};
_.Y.computeHasHeartButton=function(e){return(e==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(e==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(e==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.Y.computeNoveltyImage=function(e){if(e.headerOverlayImage&&e.headerOverlayImage.thumbnails.length){var z=e.headerOverlayImage.thumbnails[0],C,w;if((C=e.pdgPurchasedNoveltyLoggingDirectives)==null?0:(w=C.loggingDirectives)==null?0:w.trackingParams){var K,G;nSL((K=e.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(G=K.loggingDirectives)==null?void 0:G.trackingParams)}return z.width||0}return 0};
_.Y.computeAuthorPhotoSize=function(e){return(e==null?0:e.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.Y.inputFocus=function(){var e=_.XC(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");e&&e.focus()};
_.Y.inputInsertEmoji=function(e){var z=_.XC(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");z&&z.insertEmoji(e)};
_.Y.inputMessage=function(){var e=_.XC(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),z;return e&&((z=this.data)==null?0:z.inputField)?(e.completeEmojis(),_.NT(e.liveChatRichMessageInput)):null};
_.Y.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.Y.isEmpty=function(e,z){return e?e.empty||!(e.message||e.inputField||z):!0};
_.Y.onLowerBuyButtonClick=function(){var e,z=_.r((e=this.data)==null?void 0:e.buyButton,_.a2);z&&z.trackingParams&&!y61(z.command)&&(e=_.v9(z.trackingParams))&&(z=_.Pr())&&_.gQ(z,e)};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.lB.Object.defineProperties(EW.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
EW.prototype.isDeletedChanged=EW.prototype.isDeletedChanged;EW.prototype.messageChanged=EW.prototype.messageChanged;EW.prototype.dataChanged=EW.prototype.dataChanged;_.d([_.W(F3X.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],EW.prototype,"ytPdgLiveChatItemBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],EW.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],EW.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],EW.prototype,"data",void 0);_.d([_.F({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:mys}),_.B("design:type",Object)],EW.prototype,"engagementState",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.B("design:type",Boolean)],EW.prototype,"isUserEditable",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.B("design:type",Boolean)],EW.prototype,"hasHeartButton",void 0);_.d([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Boolean)],EW.prototype,"showOnlyHeader",void 0);
_.d([_.F({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.B("design:type",Boolean)],EW.prototype,"showFooterDivider",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],EW.prototype,"allowAnimations",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],EW.prototype,"dashboardMoneyFeed",void 0);_.d([_.F({computed:"computeNoveltyImage(data)"}),_.B("design:type",Number)],EW.prototype,"noveltyWidth",void 0);
_.d([_.F({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],EW.prototype,"authorPhotoSize",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],EW.prototype,"modern",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],EW.prototype,"noPadding",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EW.prototype,"dataChanged",null);
_.d([_.mi("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EW.prototype,"messageChanged",null);_.d([_.P("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],EW.prototype,"hideLowerBumper",null);_.d([_.mi("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EW.prototype,"isDeletedChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],EW);
_.u(EW,"yt-live-chat-paid-message-renderer",function(){if(T8s===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;xyh===void 0&&(xyh=document.createElement("template"));var w=xyh;C.call(z,w.content.cloneNode(!0),e.content.firstChild);T8s=e}e=T8s;return e},{mode:0});var J$S;var kGs;var FG=function(){var e=_.rO.apply(this,arguments)||this;e._noAccessors=!0;return e};
_.U(FG,_.rO);FG.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.j5("openPopupConfig")};
_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],FG.prototype,"ytOpenPopupBehavior",void 0);_.d([_.HI()],FG);_.VP=[_.jf.YtOpenPopupBehavior,FG.prototype];var qIU;var Aq=[_.mJ,nPS,_.iH,_.OxX,_.e3,_.NDc,_.$R,_.rP,_.ag,_.Zxa,_.N$];Aq.push(_.dG);_.M("web_show_ep_endpoint_response_received")&&Aq.push(_.Dr);var Vpm=new _.Mt("RESPONSE_RECEIVED_COMMANDS"),O_L=new _.Mt("RESPONSE_RECEIVED_COMMANDS");var vHg="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),U81=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],H_h=["GET_UNSEEN_NOTIFICATION_COUNT"];var fx=function(){var e=_.rO.apply(this,arguments)||this;e._noAccessors=!0;e.serviceEndpointHandlers=[];return e};
_.U(fx,_.rO);fx.prototype.created=function(){var e=this;this.endpointHandlerActionMap={"yt-service-request":function(z,C,w,K){var G;return r$g(e.hostElement,z,C,w,K,e.serviceEndpointHandlers,(G=e.onEntitiesUpdated)==null?void 0:G.bind(e))}}};
fx.prototype.attached=function(){_.YI(_.G4.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
fx.prototype.detached=function(){_.XL(_.G4.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.d([_.HI()],fx);_.x8a=[fx.prototype];var T7X,$8o=function(){return T7X!==void 0?T7X:T7X=document.createElement("template")};
document.head.appendChild($8o().content);var lU6;var QHs=document.head,m8g=QHs.appendChild,aUC;if(lU6===void 0){var nHo=document.createElement("template");_.v(nHo,"\x3c!--css-build:shady--\x3e");nHo.content.insertBefore($8o().content.cloneNode(!0),nHo.content.firstChild);lU6=nHo}aUC=lU6;m8g.call(QHs,aUC.content);var MbS,r$o=function(){return MbS!==void 0?MbS:MbS=document.createElement("template")};
document.head.appendChild(r$o().content);var H_S;var U8a=document.head,vHX=U8a.appendChild,IUU;if(H_S===void 0){var WG4=document.createElement("template");_.v(WG4,"\x3c!--css-build:shady--\x3e");WG4.content.insertBefore(r$o().content.cloneNode(!0),WG4.content.firstChild);H_S=WG4}IUU=H_S;vHX.call(U8a,IUU.content);var Pqs;_.hq("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.hq("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Pqs=_.M("web_button_rework")&&_.cR("BUTTON_REWORK")||_.M("web_button_rework_with_live");_.Sw=function(){var e=_.V.apply(this,arguments)||this;e.isPressed=!1;e.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return e};
_.U(_.Sw,_.V);_.Y=_.Sw.prototype;_.Y.created=function(){this.showTooltips=!0};
_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.onHintIdChanged=function(){var e=this,z,C,w=(z=this.ytButtonBehavior.data)==null?void 0:(C=z.hint)==null?void 0:C.hintRenderer;if(w&&w.hintId){z=_.zj(this.hostElement,"yt-get-opened-popups-action");z=(z&&z.length===1?z[0]:[]).length>0;var K=null;w.hintId!=="sponsor-pre-purchase"||z?w.hintId.startsWith("sponsor-post-purchase")&&!z?K=Mz4("membership-manage"):w.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!z&&(K=Mz4("membership-freebie-join")):K=Mz4("membership-join");K&&_.c5.addLowPriorityJob(function(){for(var G=
_.b(K),X=G.next();!X.done;X=G.next())e.ytComponentBehavior.resolveCommand(X.value)})}};
_.Y.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.Y.onYtNavigate=function(e){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);z&&(e.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(z))};
_.Y.onYtServiceRequestSent=function(e,z){this.handleServiceRequestActions(z);_.pi(this.hostElement,"yt-service-request-sent-button-renderer")};
_.Y.onServiceRequestCompleted=function(e,z){this.handleServiceRequestActions(z);_.pi(this.hostElement,"yt-service-request-completed-button-renderer")};
_.Y.updateButton=function(e){var z;if(e=(z=_.r(e,ksY))==null?void 0:z.updatedButton)this.ytButtonBehavior.data=_.r(e,_.a2)};
_.Y.handleUpdateButtonAction=function(e){var z=this.ytButtonBehavior.data;z.targetId&&e.updateButtonAction.targetId&&z.targetId===e.updateButtonAction.targetId&&this.updateButton(e)};
_.Y.handleServiceRequestActions=function(e){if(e=e.actions)for(var z=0;z<e.length;z++)this.updateButton(e[z])};
_.lB.Object.defineProperties(_.Sw,{template:{configurable:!0,enumerable:!0,get:function(){if(qIU===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);qIU=e}e=qIU;return e}}});
_.Sw.prototype.onServiceRequestCompleted=_.Sw.prototype.onServiceRequestCompleted;_.Sw.prototype.onYtServiceRequestSent=_.Sw.prototype.onYtServiceRequestSent;_.Sw.prototype.onYtNavigate=_.Sw.prototype.onYtNavigate;_.Sw.prototype.onPressedStateChanged=_.Sw.prototype.onPressedStateChanged;_.Sw.prototype.onHintIdChanged=_.Sw.prototype.onHintIdChanged;_.d([_.F(),_.B("design:type",Object)],_.Sw.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],_.Sw.prototype,"isPressed",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],_.Sw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.EMC.YtButtonBehavior),_.B("design:type",Object)],_.Sw.prototype,"ytButtonBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],_.Sw.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],_.Sw.prototype,"ytComponentBehavior",void 0);
_.d([_.W(wy.YtRenderButtonBehavior),_.B("design:type",Object)],_.Sw.prototype,"ytRenderButtonBehavior",void 0);_.d([_.mi("data.hint.hintRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.Sw.prototype,"onHintIdChanged",null);_.d([_.mi("isPressed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],_.Sw.prototype,"onPressedStateChanged",null);
_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],_.Sw.prototype,"onYtNavigate",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],_.Sw.prototype,"onYtServiceRequestSent",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],_.Sw.prototype,"onServiceRequestCompleted",null);_.d([_.SL({is:"ytd-button-renderer",disableElementRegistration:Pqs})],_.Sw);var u9=function(){var e=_.V.apply(this,arguments)||this;e.modern=_.M("web_button_rework_with_live");e.buttonOverrides={style:"overlay",type:"filled"};return e};
_.U(u9,_.V);_.Y=u9.prototype;_.Y.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"}}}}};
_.Y.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.Y.dataChanged=function(){if(this.data&&this.data.sticker){var e=_.oo(this.data.sticker.thumbnails,this.stickerWidth);e||_.ufs(e).thenCatch(function(){_.AX(new _.uh("Failed to load Super Sticker with url",e))})}};
_.Y.computeAuthorPhotoSize=function(e){return(e==null?0:e.isV2Style)?32:40};
_.Y.computeIsV2Style=function(e){return(e==null?0:e.isV2Style)?!0:!1};
_.Y.onStickerLoaded=function(e){var z,C,w;(z=_.AU(e))==null||(C=z.parentNode)==null||(w=C.classList)==null||w.add("sticker-loaded")};
_.Y.computeNoveltyImageWidth=function(e){var z,C;if(e==null?0:(z=e.headerOverlayImage)==null?0:(C=z.thumbnails)==null?0:C.length){z=e.headerOverlayImage.thumbnails[0];var w,K;if((w=e.pdgPurchasedNoveltyLoggingDirectives)==null?0:(K=w.loggingDirectives)==null?0:K.trackingParams){var G,X;nSL((G=e.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(X=G.loggingDirectives)==null?void 0:X.trackingParams)}return z.width||0}return 0};
_.Y.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.Y.updateStickerStyles=function(){var e=this.data;e&&(e={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(e.authorNameTextColor)},
_.T8(this.hostElement,e))};
_.Y.onBuyButtonClick=function(){var e,z=_.r((e=this.data)==null?void 0:e.buyButton,_.a2);z&&!y61(z.command)&&this.ytRendererBehavior.logExplicitClick(z)};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.lB.Object.defineProperties(u9.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 e;return((e=this.data)==null?0:e.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
u9.prototype.updateStickerStyles=u9.prototype.updateStickerStyles;u9.prototype.isDeletedChanged=u9.prototype.isDeletedChanged;u9.prototype.onStickerLoaded=u9.prototype.onStickerLoaded;u9.prototype.dataChanged=u9.prototype.dataChanged;_.d([_.W(F3X.YtPdgLiveChatItemBehavior),_.B("design:type",Object)],u9.prototype,"ytPdgLiveChatItemBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],u9.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],u9.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],u9.prototype,"data",void 0);
_.d([_.F({computed:"computeAuthorPhotoSize(data)"}),_.B("design:type",Number)],u9.prototype,"authorPhotoSize",void 0);_.d([_.F(),_.B("design:type",Boolean)],u9.prototype,"isDeleted",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],u9.prototype,"dashboardMoneyFeed",void 0);_.d([_.F({computed:"computeNoveltyImageWidth(data)"}),_.B("design:type",Number)],u9.prototype,"noveltyWidth",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],u9.prototype,"modern",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.B("design:type",Boolean)],u9.prototype,"isV2Style",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u9.prototype,"dataChanged",null);_.d([_.Qi("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],u9.prototype,"onStickerLoaded",null);
_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],u9.prototype,"stickerWidth",null);_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],u9.prototype,"stickerHeight",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],u9.prototype,"hasHeartButton",null);_.d([_.P("data","dashboardMoneyFeed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],u9.prototype,"hideLowerBumper",null);
_.d([_.mi("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u9.prototype,"isDeletedChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],u9.prototype,"updateStickerStyles",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],u9);
_.u(u9,"yt-live-chat-paid-sticker-renderer",function(){if(kGs===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;J$S===void 0&&(J$S=document.createElement("template"));var w=J$S;C.call(z,w.content.cloneNode(!0),e.content.firstChild);kGs=e}e=kGs;return e},{mode:0});var RIC;var LGT;var hIo,O_6=function(){return hIo!==void 0?hIo:hIo=document.createElement("template")};
document.head.appendChild(O_6().content);var EHs,FGo=function(){return EHs!==void 0?EHs:EHs=document.createElement("template")};
document.head.appendChild(FGo().content);var Vbs;var fUX,SIa=function(){return fUX!==void 0?fUX:fUX=document.createElement("template")};
document.head.appendChild(SIa().content);var ufC;var d84=document.head,D8L=d84.appendChild,i_X;if(ufC===void 0){var N7c=document.createElement("template");_.v(N7c,"\x3c!--css-build:shady--\x3e");N7c.content.insertBefore(SIa().content.cloneNode(!0),N7c.content.firstChild);ufC=N7c}i_X=ufC;D8L.call(d84,i_X.content);var sHs=document.head,B7X=sHs.appendChild,tba;if(Vbs===void 0){var dy=document.createElement("template");_.v(dy,"\x3c!--css-build:shady--\x3e");dy.content.insertBefore(FGo().content.cloneNode(!0),dy.content.firstChild);dy.content.insertBefore(O_6().content.cloneNode(!0),dy.content.firstChild);Vbs=dy}tba=Vbs;B7X.call(sHs,tba.content);var DC=function(){var e=_.rO.apply(this,arguments)||this;e.focusedIndex=0;e.verticalOffset=0;e.verticalAlign="top";e.dynamicAlign=!0;return e};
_.U(DC,_.rO);DC.prototype.emojiUrl=function(e){e=_.Hk(this.emojiManager,e);if(!e)return"";var z;e=(z=e.image)==null?void 0:z.thumbnails;return _.oo(e,24)||""};
var gHg=function(e){var z;e.emojiVariants&&(z=e.data)!=null&&z.target&&_.T0(e,function(){e.set("verticalOffset",-1*e.hostElement.clientHeight);var C=_.XC(e.hostElement).querySelector("img");C&&C.focus()})};
_.Y=DC.prototype;_.Y.onKeyboardEnter=function(){};
_.Y.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.Y.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.Y.onKeyDown=function(e){switch(e.keyCode){case 13:this.onKeyboardEnter();e.preventDefault();break;case 40:this.changeFocus(1);e.preventDefault();break;case 38:this.changeFocus(-1);e.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.Y.onYtEmojiSelect=function(e){var z=this,C,w,K,G,X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1)return w=(C=z.data)==null?void 0:C.emoji,X=((K=w)==null?void 0:K.stickyPrefId)||((G=w)==null?void 0:G.emojiId),q=(J=e.detail)==null?void 0:J.emojiId,X&&q&&X!==q?Q.yield((T=z.emojiManager)==null?void 0:ZIa(T,w,q),2):Q.return();_.eA(z.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[w,q]);_.E_(Q)})};
_.Y.changeFocus=function(e){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+e+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(e=_.XC(this.hostElement).querySelector("#variants"))&&e.children[this.focusedIndex].focus())};
_.lB.Object.defineProperties(DC.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
DC.prototype.onYtEmojiSelect=DC.prototype.onYtEmojiSelect;DC.prototype.onKeyDown=DC.prototype.onKeyDown;DC.prototype.onEmojiVariantsChanged=DC.prototype.onEmojiVariantsChanged;DC.prototype.onVerticalOffsetOrPositionTargetChanged=DC.prototype.onVerticalOffsetOrPositionTargetChanged;_.d([_.W(_.MB),_.B("design:type",Object)],DC.prototype,"ironOverlayBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],DC.prototype,"data",void 0);_.d([_.F(),_.B("design:type",_.ry)],DC.prototype,"emojiManager",void 0);
_.d([_.F(),_.B("design:type",Object)],DC.prototype,"emojiVariants",void 0);_.d([_.F(),_.B("design:type",Object)],DC.prototype,"focusedIndex",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],DC.prototype,"positionTarget",null);_.d([_.F({reflectToAttribute:!0}),_.P("verticalOffset","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DC.prototype,"isPositioned",null);_.d([_.F(),_.B("design:type",Object)],DC.prototype,"verticalOffset",void 0);
_.d([_.F(),_.B("design:type",Object)],DC.prototype,"verticalAlign",void 0);_.d([_.F(),_.B("design:type",Object)],DC.prototype,"dynamicAlign",void 0);_.d([_.mi("verticalOffset","positionTarget"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DC.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.d([_.mi("emojiVariants"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DC.prototype,"onEmojiVariantsChanged",null);
_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],DC.prototype,"onKeyDown",null);_.d([_.Qi("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],DC.prototype,"onYtEmojiSelect",null);_.d([_.HI()],DC);var jH4=[DC.prototype];var y$a;var c$g;var A$Y=/medium-light|medium-dark|light|medium|dark/,Z_h=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,pyg=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),i9=function(){var e=_.V.apply(this,arguments)||this;e.userSelection={left:null,right:null};e.scrollAction="lock";e.isEmojiDraftInProgress=!1;return e};
_.U(i9,_.V);_.Y=i9.prototype;_.Y.onClick=function(e){e=_.AU(e);e instanceof HTMLImageElement&&this.selectOrUpdateEmoji(e)};
_.Y.selectOrUpdateEmoji=function(e){var z=e.getAttribute("selection");z&&(z==="default"?_.pi(this.hostElement,"yt-emoji-select",_.Hk(this.emojiManager,e.id)):z==="left"?this.userSelection=Object.assign({},this.userSelection,{left:e.src}):z==="right"?this.userSelection=Object.assign({},this.userSelection,{right:e.src}):z==="user"&&this.userSelection.left&&this.userSelection.right&&_.pi(this.hostElement,"yt-emoji-select",_.Hk(this.emojiManager,e.id)))};
_.Y.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.Y.onMultiSelectorThumbnailRowChanged=function(){var e,z,C;((e=this.data)==null?0:(z=e.emoji)==null?0:(C=z.multiSelectorThumbnailRow)==null?0:C.length)&&this.openSelector()};
_.Y.getThumbnailFromEmojiRow=function(e){var z,C;return(e==null?void 0:(z=e.thumbnails)==null?void 0:(C=z[0])==null?void 0:C.url)||""};
_.Y.getEmojiAltTextForPartialSelector=function(e){var z;return((z=this.getThumbnailFromEmojiRow(e).match(Z_h))==null?void 0:z[0])||""};
_.Y.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.Y.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.Y.getRowSelection=function(e){return["left","right"][e]};
_.Y.getIdFromComposedEmoji=function(e){return(e==null?void 0:e.emojiId)||""};
_.Y.getEmojiFromPartialSelections=function(e,z){if(!e&&!z)return null;var C,w,K=(C=this.data)==null?void 0:(w=C.emoji)==null?void 0:w.variantIds;if(!K||!K.length)return null;var G;e=(G=e.match(A$Y))==null?void 0:G[0];var X;z=(X=z.match(A$Y))==null?void 0:X[0];if(!e||!z)return null;var J=pyg.get(e);X=pyg.get(z);if(J===X){X=Array.from(pyg.values()).filter(function(T){return T!==J}).join("|");
var q=new RegExp("^((?!("+X+")).)*"+J+"$")}else q=new RegExp(J+".*"+X);return(K=K.find(function(T){return q.test(T)}))&&_.Hk(this.emojiManager,K)||null};
_.Y.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var e,z=this.ytEmojiSelectorBehavior.emojiUrl(((e=this.data.emoji)==null?void 0:e.emojiId)||"");_.XC(this.hostElement).querySelector('[selection="user"]').src.includes(z)||(this.isEmojiDraftInProgress=!0)}};
_.Y.onDomChange=function(){gHg(this.ytEmojiSelectorBehavior)};
_.Y.getFocusableElements=function(){return _.XC(this.hostElement).querySelectorAll("img").filter(function(e){return e.getAttribute("role")==="option"})};
_.Y.changeFocus=function(e){var z=this.getFocusableElements();z!=null&&z.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+e+z.length)%z.length,this.ytEmojiSelectorBehavior.focusedIndex<z.length&&(e=z[this.ytEmojiSelectorBehavior.focusedIndex])&&e.focus())};
_.Y.onKeyboardEnter=function(){var e=this.getFocusableElements();e!=null&&e.length&&(e=e[this.ytEmojiSelectorBehavior.focusedIndex])&&e instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(e),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.lB.Object.defineProperties(i9.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var e=this,z,C,w;return this.emojiManager&&((z=this.data)==null?0:(C=z.emoji)==null?0:(w=C.variantIds)==null?0:w.length)?this.data.emoji.variantIds.map(function(K){return!!K&&_.Hk(e.emojiManager,K)}).filter(function(K){return!!K}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var e,z=(e=this.userSelection)==null?void 0:e.left,C;e=(C=this.userSelection)==null?void 0:C.right;return z&&e?this.getEmojiFromPartialSelections(z,e):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.composedEmojiSelection)==null?0:e.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var z;e=(z=this.userSelection)==null?void 0:z.left;var C;z=(C=this.userSelection)==null?void 0:C.right;if(!e&&!z){var w;return this.ytEmojiSelectorBehavior.emojiUrl(((w=this.data.emoji)==null?void 0:w.emojiId)||"")}return e&&!z?e:!e&&z?z:""}}});
i9.prototype.onMultiSelectorThumbnailRowChanged=i9.prototype.onMultiSelectorThumbnailRowChanged;i9.prototype.onClick=i9.prototype.onClick;_.d([_.W(_.MB),_.B("design:type",Object)],i9.prototype,"ironOverlayBehavior",void 0);_.d([_.W(jH4),_.B("design:type",Object)],i9.prototype,"ytEmojiSelectorBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],i9.prototype,"data",void 0);_.d([_.F(),_.B("design:type",_.ry)],i9.prototype,"emojiManager",void 0);
_.d([_.F(),_.B("design:type",Object)],i9.prototype,"userSelection",void 0);_.d([_.F(),_.B("design:type",Object)],i9.prototype,"scrollAction",void 0);_.d([_.F(),_.B("design:type",Object)],i9.prototype,"isEmojiDraftInProgress",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],i9.prototype,"emojiVariants",null);_.d([_.P("data","userSelection"),_.B("design:type",Object),_.B("design:paramtypes",[])],i9.prototype,"composedEmojiSelection",null);
_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],i9.prototype,"onClick",null);_.d([_.mi("data.emoji.multiSelectorThumbnailRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],i9.prototype,"onMultiSelectorThumbnailRowChanged",null);_.d([_.P("data","userSelection","composedEmojiSelection"),_.B("design:type",String),_.B("design:paramtypes",[])],i9.prototype,"draftEmojiUrl",null);
_.d([_.fP({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],i9);
_.u(i9,"yt-emoji-multi-person-selector",function(){if(c$g===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;y$a===void 0&&(y$a=document.createElement("template"));var w=y$a;C.call(z,w.content.cloneNode(!0),e.content.firstChild);c$g=e}e=c$g;return e},{mode:2});var eZg;var zZa;var Nw=function(){var e=_.V.apply(this,arguments)||this;e.tooltip_=null;return e};
_.U(Nw,_.V);_.Y=Nw.prototype;_.Y.dataChanged_=function(){var e;if((e=this.data)==null?0:e.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.XC(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.x$)(this.tooltip_).textContent=this.data.tooltip};
_.Y.computeTargetId=function(){var e;return((e=this.data)==null?void 0:e.targetId)||""};
_.Y.computeId_=function(e){return e};
_.Y.computeIcon_=function(e){return _.qF(e)};
_.Y.onTap_=function(){this.active=!this.active;_.pi(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.Y.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("active-changed",this.active))};
_.lB.Object.defineProperties(Nw.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var e,z;if((e=this.data)==null?0:(z=e.icon)==null?0:z.iconType)return this.data.icon.iconType==="SUPER_STICKER";var C,w;return((C=this.data)==null?void 0:(w=C.icon)==null?void 0:w.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Nw.prototype.activeChangedForBinding=Nw.prototype.activeChangedForBinding;Nw.prototype.dataChanged_=Nw.prototype.dataChanged_;_.d([_.W(_.lz.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],Nw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Nw.prototype,"data",void 0);_.d([_.F({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.B("design:type",String)],Nw.prototype,"id",void 0);
_.d([_.F({computed:"computeTargetId(data.targetId)"}),_.B("design:type",String)],Nw.prototype,"targetId",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Nw.prototype,"active",void 0);_.d([_.F({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.B("design:type",String)],Nw.prototype,"icon",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nw.prototype,"dataChanged_",null);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Nw.prototype,"iconFilled",null);_.d([_.mi("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nw.prototype,"activeChangedForBinding",null);_.d([_.fP({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Nw);
_.u(Nw,"yt-emoji-picker-category-button-renderer",function(){if(zZa===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;eZg===void 0&&(eZg=document.createElement("template"));var w=eZg;C.call(z,w.content.cloneNode(!0),e.content.firstChild);zZa=e}e=zZa;return e},{mode:2});var C8X;var wz6;var sW=function(){var e=_.V.apply(this,arguments)||this;e.ariaLabel=null;e.ariaActivedescendant=null;e.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};e.JSC$14463_ignoreNextFocus_=!1;e.longPressTimeoutId=-1;return e};
_.U(sW,_.V);_.Y=sW.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.Y.emojiChanged_=function(){this.changeFocus_(0,!1);for(var e=_.nm(),z=0;z<this.emoji.length;z++){var C={veType:88013,elementIndex:z},w=this.emoji[z];w.isCustomEmoji&&(w=document.querySelector(("#"+w.emojiId).replace("/","\\/")))&&(C=_.a5(e,C))&&(w.visualElement=C)}};
_.Y.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.Y.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.Y.emojiSkinToneChanged_=function(e){this.skinTone=e};
_.Y.dataChanged=function(){this.data&&this.data.emojiData&&jLa(this.emojiManager,this.data.emojiData)};
_.Y.emojiUrl=function(e){e=this.getEmoji(e);if(!e)return"";var z;e=(z=e.image)==null?void 0:z.thumbnails;return _.oo(e,24)||""};
_.Y.emojiAlt=function(e){var z=this.get("image.accessibility.accessibilityData.label",e);return z?z:e.isCustomEmoji?e.shortcuts[0]:e.emojiId};
_.Y.emojiAriaLabel=function(e){return e.shortcuts?e.shortcuts[0]:""};
_.Y.emojiAriaSelected=function(e,z,C){return e&&C==z?"true":"false"};
_.Y.getEmoji=function(e){if(this.emojiManager)return this.shouldUseStickyPreferences?cjo(this.emojiManager,e):UW(this.emojiManager,e)};
_.Y.computeId_=function(e){return e.categoryId||""};
_.Y.computeEmoji=function(e){var z=this;return this.emojiManager?e.emojiIds?e.emojiIds.map(function(C){return C?_.Hk(z.emojiManager,C):null}).filter(d8k):e.emojiData?e.emojiData.map(function(C){var w=!!C.emojiId&&_.Hk(z.emojiManager,C.emojiId);
return w?Object.assign({},w,C):null}).filter(d8k):[]:[]};
_.Y.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.Y.computeAriaLabel_=function(e){return _.Zd(e)};
_.Y.computeAriaActivedescendant_=function(e,z){return e&&e[z]?e[z].emojiId||"":""};
_.Y.handleLongPressEmojiWithVariants=function(e,z){this.changeFocusToEmoji(e.emojiId,!1);this.openVariantSelector(e,z)};
_.Y.onMouseDown=function(e){var z=this;this.hostElement!==document.activeElement&&(this.JSC$14463_ignoreNextFocus_=!0);if(e.button===0){var C=_.AU(e);if(C instanceof HTMLImageElement){var w=_.XC(this.hostElement).querySelector("#repeat").itemForElement(C);this.emojiContainsVariants(w)&&(this.longPressTimeoutId=setTimeout(function(){z.handleLongPressEmojiWithVariants(w,C)},500))}}};
_.Y.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.Y.onFocus=function(){this.JSC$14463_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14463_ignoreNextFocus_=!1};
_.Y.onBlur_=function(){this.showFocus=!1};
_.Y.emojiContainsVariants=function(e){return!!(e&&e.variantIds&&e.variantIds.length)};
_.Y.onClick=function(e){clearTimeout(this.longPressTimeoutId);e=_.AU(e);if(e instanceof HTMLImageElement){var z=e.id;this.changeFocusToEmoji(z,!1);var C=this.getEmoji(z),w;if(w=this.shouldUseStickyPreferences&&this.emojiContainsVariants(C)){var K;w=!((K=this.emojiManager.emojiMap[z])!=null&&K.stickyPrefId)}w?(K=_.XC(this.hostElement).querySelector("#repeat").itemForElement(e),this.openVariantSelector(K,e)):_.pi(this.hostElement,"yt-emoji-select",C)}};
_.Y.isActiveEmojiWithVariants=function(e,z){return e&&z?z.stickyPrefId?e===z.stickyPrefId:e===z.emojiId:!1};
_.Y.onCloseEmojiVariantSelector=function(e){this.activeEmojiWithVariantsId===e&&(this.activeEmojiWithVariantsId="")};
_.Y.onMouseOver_=function(e){e=_.AU(e);e instanceof HTMLImageElement&&_.pi(this.hostElement,"yt-emoji-hover",_.Hk(this.emojiManager,e.id))};
_.Y.changeFocus_=function(e,z){this.focusedIndex=(this.focusedIndex+e+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(e=this.emoji[this.focusedIndex],z&&(this.showFocus=!0,_.XC(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.pi(this.hostElement,"yt-emoji-hover",e)))};
_.Y.changeFocusToEmoji=function(e,z){if(e){var C=this.emoji.findIndex(function(w){return w.emojiId===e});
C!==-1&&this.changeFocus_(C-this.focusedIndex,z)}};
_.Y.onKeyDown_=function(e){switch(e.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var z=this.emoji[this.focusedIndex];if(z&&z.emojiId){if(this.emojiContainsVariants(z)){var C=_.XC(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(z,C)}else _.pi(this.hostElement,"yt-emoji-select",UW(this.emojiManager,z.emojiId)),this.hostElement.focus();e.preventDefault()}}break;case 40:this.changeFocus_(1,!0);e.preventDefault();break;case 38:this.changeFocus_(-1,!0),
e.preventDefault()}};
_.Y.onEmojiStickyPreferenceChanged=function(e,z){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&e.emojiId&&e.variantIds&&e.variantIds.includes(z)&&this.activeEmojiWithVariantsId!==z&&this.setStickyEmojiPreference(e.emojiId,z)};
_.Y.openVariantSelector=function(e,z){this.activeEmojiWithVariantsId=e.stickyPrefId||e.emojiId||"";_.pi(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:e,target:z})};
_.Y.setStickyEmojiPreference=function(e,z){if(this.data){var C=this.emoji.findIndex(function(K){return K.emojiId===e});
if(C!==-1){var w=this.emoji[C];w.stickyPrefId=z;this.set("emoji."+C,Object.assign({},w));this.activeEmojiWithVariantsId=z}}};
sW.prototype.onKeyDown_=sW.prototype.onKeyDown_;sW.prototype.onMouseOver_=sW.prototype.onMouseOver_;sW.prototype.onClick=sW.prototype.onClick;sW.prototype.onBlur_=sW.prototype.onBlur_;sW.prototype.onFocus=sW.prototype.onFocus;sW.prototype.onMouseUp=sW.prototype.onMouseUp;sW.prototype.onMouseDown=sW.prototype.onMouseDown;sW.prototype.dataChanged=sW.prototype.dataChanged;sW.prototype.disableIncrementalLoadingChanged_=sW.prototype.disableIncrementalLoadingChanged_;sW.prototype.emojiManagerChanged_=sW.prototype.emojiManagerChanged_;
sW.prototype.emojiChanged_=sW.prototype.emojiChanged_;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],sW.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sW.prototype,"data",void 0);_.d([_.F({computed:"computeId_(data)"}),_.B("design:type",String)],sW.prototype,"id",void 0);_.d([_.F({computed:"computeEmoji(data)"}),_.B("design:type",Array)],sW.prototype,"emoji",void 0);_.d([_.F(),_.B("design:type",Number)],sW.prototype,"skinTone",void 0);
_.d([_.F(),_.B("design:type",_.ry)],sW.prototype,"emojiManager",void 0);_.d([_.F(),_.B("design:type",Boolean)],sW.prototype,"disableIncrementalLoading",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],sW.prototype,"focusedIndex",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],sW.prototype,"showFocus",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.B("design:type",Object)],sW.prototype,"ariaLabel",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.B("design:type",Object)],sW.prototype,"ariaActivedescendant",void 0);_.d([_.F({value:60}),_.B("design:type",Number)],sW.prototype,"domRepeatTargetFramerate",void 0);_.d([_.F({value:1}),_.B("design:type",Number)],sW.prototype,"domRepeatInitialCount",void 0);_.d([_.F({value:""}),_.B("design:type",String)],sW.prototype,"activeEmojiWithVariantsId",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],sW.prototype,"shouldUseStickyPreferences",void 0);_.d([_.mi("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sW.prototype,"emojiChanged_",null);_.d([_.mi("emojiManager"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sW.prototype,"emojiManagerChanged_",null);
_.d([_.mi("disableIncrementalLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sW.prototype,"disableIncrementalLoadingChanged_",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sW.prototype,"dataChanged",null);_.d([_.Qi("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],sW.prototype,"onMouseDown",null);
_.d([_.Qi("mouseup"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sW.prototype,"onMouseUp",null);_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sW.prototype,"onFocus",null);_.d([_.Qi("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sW.prototype,"onBlur_",null);
_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],sW.prototype,"onClick",null);_.d([_.Qi("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],sW.prototype,"onMouseOver_",null);_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],sW.prototype,"onKeyDown_",null);
_.d([_.fP({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],sW);
_.u(sW,"yt-emoji-picker-category-renderer",function(){if(wz6===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;C8X===void 0&&(C8X=document.createElement("template"));var w=C8X;C.call(z,w.content.cloneNode(!0),e.content.firstChild);wz6=e}e=wz6;return e},{mode:2});var Kng;var oCL;var GWX;var Yoh;var Bk=function(){var e=_.V.apply(this,arguments)||this;e.ariaLabel=null;e.ariaActivedescendant=null;e.getFormattedStringRawText=_.Zd;e.JSC$14469_ignoreNextFocus_=!1;return e};
_.U(Bk,_.V);_.Y=Bk.prototype;_.Y.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")};
_.Y.emojiUrl=function(e){var z,C;e=(z=UW(this.emojiManager,e,!0))==null?void 0:(C=z.image)==null?void 0:C.thumbnails;return _.oo(e,24)||""};
_.Y.emojiAlt=function(e){var z=this.get("image.accessibility.accessibilityData.label",e);return z?z:e.isCustomEmoji?e.shortcuts[0]:e.emojiId};
_.Y.emojiId=function(e){return"emoji"+e};
_.Y.computeId_=function(e){return e.categoryId||""};
_.Y.computeAriaActivedescendant_=function(e){return this.emoji&&e<this.emoji.length?this.emojiId(e):""};
_.Y.emojiChanged_=function(){this.changeFocus_(0,!1);for(var e=_.nm(),z=0;z<this.emoji.length;z++){var C={veType:88013,elementIndex:z},w=this.emoji[z];w.isCustomEmoji&&(w=document.querySelector(("#"+w.emojiId).replace("/","\\/")))&&(C=_.a5(e,C))&&(w.visualElement=C)}};
_.Y.computeEmoji_=function(e){var z=this;return this.emojiManager?e.emojiIds.map(function(C){return _.Hk(z.emojiManager,C,!0)}).filter(D8N):[]};
_.Y.titleOffsetChanged_=function(){var e=this.hostElement.getBoundingClientRect(),z=_.XC(this.hostElement).querySelector("#title").getBoundingClientRect();e=Math.max(0,Math.min(this.titleOffset,e.height-z.height));_.XC(this.hostElement).querySelector("#title").style.top=e+"px"};
_.Y.onEmojiMouseOver_=function(e){_.pi(this.hostElement,"yt-emoji-hover",e.model.item)};
_.Y.onEmojiTap_=function(e){this.data.command&&(e=Prk(_.lh().resolve(_.$B(KZ)),this.data.command,e),_.pi(this.hostElement,"yt-navigate",e))};
_.Y.emojiAriaLabel=function(e){return e.shortcuts[0]};
_.Y.emojiAriaSelected=function(e,z,C){return e&&C==z?"true":"false"};
_.Y.changeFocus_=function(e,z){var C=this.emoji.length;this.focusedIndex=(this.focusedIndex+e+C)%C;e=this.emoji[this.focusedIndex];if(z){var w;(w=_.XC(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||w.scrollIntoView(!1);_.pi(this.hostElement,"yt-emoji-hover",e)}};
_.Y.onMouseDown_=function(){this.JSC$14469_ignoreNextFocus_=!0};
_.Y.onFocus_=function(){this.JSC$14469_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14469_ignoreNextFocus_=!1};
_.Y.onBlur_=function(){this.showFocus=!1};
_.Y.onKeyDown_=function(e){switch(e.keyCode){case 13:this.onEmojiTap_(e);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);e.preventDefault();break;case 38:this.changeFocus_(-1,!0),e.preventDefault()}};
Bk.prototype.onKeyDown_=Bk.prototype.onKeyDown_;Bk.prototype.onBlur_=Bk.prototype.onBlur_;Bk.prototype.onFocus_=Bk.prototype.onFocus_;Bk.prototype.onMouseDown_=Bk.prototype.onMouseDown_;Bk.prototype.onEmojiTap_=Bk.prototype.onEmojiTap_;Bk.prototype.titleOffsetChanged_=Bk.prototype.titleOffsetChanged_;Bk.prototype.emojiChanged_=Bk.prototype.emojiChanged_;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Bk.prototype,"ytComponentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],Bk.prototype,"data",void 0);_.d([_.F({computed:"computeId_(data)"}),_.B("design:type",String)],Bk.prototype,"id",void 0);_.d([_.F({computed:"computeEmoji_(data)"}),_.B("design:type",Array)],Bk.prototype,"emoji",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],Bk.prototype,"titleOffset",void 0);_.d([_.F({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.B("design:type",Object)],Bk.prototype,"ariaLabel",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.B("design:type",Object)],Bk.prototype,"ariaActivedescendant",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Bk.prototype,"showFocus",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],Bk.prototype,"focusedIndex",void 0);_.d([_.F(),_.B("design:type",_.ry)],Bk.prototype,"emojiManager",void 0);
_.d([_.mi("emoji"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bk.prototype,"emojiChanged_",null);_.d([_.mi("titleOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bk.prototype,"titleOffsetChanged_",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Bk.prototype,"onEmojiTap_",null);
_.d([_.Qi("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bk.prototype,"onMouseDown_",null);_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bk.prototype,"onFocus_",null);_.d([_.Qi("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bk.prototype,"onBlur_",null);
_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Bk.prototype,"onKeyDown_",null);_.d([_.fP({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Bk);
_.u(Bk,"yt-emoji-picker-upsell-category-renderer",function(){if(Yoh===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;GWX===void 0&&(GWX=document.createElement("template"));var w=GWX;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Yoh=e}e=Yoh;return e},{mode:2});var bXg;var Xzs;var tu=function(){var e=_.V.apply(this,arguments)||this;e.scrollAction="lock";e.verticalAlign="top";return e};
_.U(tu,_.V);_.Y=tu.prototype;_.Y.onClick=function(e){e=_.AU(e);e instanceof HTMLImageElement&&_.pi(this.hostElement,"yt-emoji-select",_.Hk(this.emojiManager,e.id))};
_.Y.openSelector=function(){this.ironOverlayBehavior.open()};
_.Y.onDomChange=function(){gHg(this.ytEmojiSelectorBehavior)};
_.Y.computeIsFamilySelector=function(e){var z;return(e==null?void 0:(z=e.emoji)==null?void 0:z.emojiId)==="\ud83d\udc6a"};
_.Y.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var e=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];e&&e.emojiId&&(_.pi(this.hostElement,"yt-emoji-select",_.Hk(this.emojiManager,e.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.lB.Object.defineProperties(tu.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var e=this,z,C,w;return this.emojiManager&&((z=this.data)==null?0:(C=z.emoji)==null?0:(w=C.variantIds)==null?0:w.length)?this.data.emoji.variantIds.map(function(K){return!!K&&_.Hk(e.emojiManager,K)}).filter(function(K){return!!K}):[]}}});
tu.prototype.onClick=tu.prototype.onClick;_.d([_.W(_.MB),_.B("design:type",Object)],tu.prototype,"ironOverlayBehavior",void 0);_.d([_.W(jH4),_.B("design:type",Object)],tu.prototype,"ytEmojiSelectorBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tu.prototype,"data",void 0);_.d([_.F(),_.B("design:type",_.ry)],tu.prototype,"emojiManager",void 0);_.d([_.F(),_.B("design:type",Object)],tu.prototype,"scrollAction",void 0);_.d([_.F(),_.B("design:type",Object)],tu.prototype,"verticalAlign",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.B("design:type",Boolean)],tu.prototype,"isFamilySelector",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],tu.prototype,"emojiVariants",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],tu.prototype,"onClick",null);_.d([_.fP({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],tu);
_.u(tu,"yt-emoji-variant-selector",function(){if(Xzs===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;bXg===void 0&&(bXg=document.createElement("template"));var w=bXg;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Xzs=e}e=Xzs;return e},{mode:2});var JxX=/:/g,kWT=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],gy=function(){var e=_.V.apply(this,arguments)||this;e.emojiVariantSelector=null;e.emojiMultiPersonSelector=null;e.identity=_.F4;e.lastAnimationTime_=0;e.animationStart_=null;e.animationEnd_=null;return e};
_.U(gy,_.V);_.Y=gy.prototype;
_.Y.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}}};
_.Y.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.vk)};
_.Y.attached=function(){_.aP&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&yja(this.emojiManager)};
_.Y.dataChanged=function(){var e;if((e=this.data)==null?0:e.categories){e=this.emojiManager;var z=this.getCustomEmojiIds();e.pickerCustomEmojiIds=[].concat(_.s_(N8a),_.s_(z))}};
_.Y.getCustomEmojiIds=function(){var e,z=(e=this.data.categories)==null?void 0:e.find(function(G){var X;return((X=G.emojiPickerCategoryRenderer)==null?void 0:X.categoryId)&&kWT.includes(G.emojiPickerCategoryRenderer.categoryId)}),C;
e=(C=this.data.categories)==null?void 0:C.find(function(G){return G.emojiPickerUpsellCategoryRenderer});
var w,K;return[z==null?void 0:(w=z.emojiPickerCategoryRenderer)==null?void 0:w.emojiIds,e==null?void 0:(K=e.emojiPickerUpsellCategoryRenderer)==null?void 0:K.emojiIds].flat().filter(function(G){return!!G})};
_.Y.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.Y.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.Y.updateCategoriesAndPlaceholderInternal=function(e,z){var C=this;e&&z&&(this.categories=e.categories||[],this.categoryButtons=e.categoryButtons||[],this.resetPlaceholder(),this.search="",_.BI(function(){C.updateButtons_()}))};
_.Y.computeId_=function(e){return e.id||""};
_.Y.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(e){return e.emojiPickerCategoryRenderer&&e.emojiPickerCategoryRenderer.emojiData}):!1};
_.Y.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.Y.onShowEmojiVariantSelector=function(e){var z=e.detail.emojiData;z.variantIds&&z.variantIds.length&&(z.multiSelectorThumbnailRow&&z.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:z,target:e.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:z,target:e.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Y.onIronOverlayClosed=function(e){var z=cjo(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");z&&e.composedPath&&(e.composedPath().includes(_.XC(this.hostElement).querySelector("#emoji-variant-selector"))||e.composedPath().includes(_.XC(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.eA(this.hostElement,"yt-close-emoji-variant-selector",[z.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.Y.onEmojiVariantSelectorMouseup=function(e){var z=e.target.firstChild;this.variantSelectorOpened&&z&&_.BI(function(){z.noCancelOnOutsideClick=!1},100)};
_.Y.onEmojiVariantSelectorMousedown=function(e){e=e.target.firstChild;this.variantSelectorOpened&&e&&(e.noCancelOnOutsideClick=!1)};
_.Y.onSelectCategory_=function(e){var z=this.search!="";this.search="";for(var C=_.XC(this.hostElement).querySelector("#categories").children,w=0;w<C.length;w++){var K=C[w];if(K.id==e.detail.categoryId){z?(_.XC(this.hostElement).querySelector("#categories").scrollTop=K.offsetTop,this.updateButtons_()):(this.animationStart_=_.XC(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=K.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.Y.onEmojiHover_=function(e){this.placeholder=e.detail.shortcuts?e.detail.shortcuts[0]:""};
_.Y.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.Y.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.Y.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.Y.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.Y.computeSearchCategory_=function(e){e=e.replace(JxX,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();e=e.split(" ");for(var z=[],C=this.emojiManager.emojis,w=0;w<C.length;w++){var K=C[w];if(K.searchTerms)for(var G=0;G<K.searchTerms.length;G++){for(var X=K.searchTerms[G].toLocaleLowerCase(),J=!1,q=0;q<e.length;q++)if(X.indexOf(e[q])!=-1){J=!0;break}if(J&&(!K.isCustomEmoji||!K.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(K.emojiId))){z.push(K.emojiId);
break}}}return{categoryId:-1,emojiIds:z}};
_.Y.computeSearchEmptyMessage_=function(e,z){return e&&z&&z.emojiIds&&z.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.Y.computeSearching_=function(e){return this.emojiManager&&e.replace(JxX,"").length>1};
_.Y.computeSkinToneHidden=function(){var e;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((e=this.data)==null||!e.hideSkinTonePicker)};
_.Y.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.Y.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.Y.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.Y.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.Y.selectSkinTone_=function(e){e=Number(e.target.getAttribute("tone"));this.set("emojiManager.skinTone",e);_.eA(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[e]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.Y.skinToneChanged_=function(){_.XC(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var e=_.XC(this.hostElement).querySelector("#dropdown-content").children,z=0;z<e.length;z++)z===this.skinTone?e[z].setAttribute("selected",""):e[z].removeAttribute("selected")};
_.Y.animateScroll_=function(e){this.lastAnimationTime_||(this.lastAnimationTime_=e);e-=this.lastAnimationTime_;e<200?(_.XC(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*e/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.XC(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.Y.searchChanged_=function(){this.updateButtons_()};
_.Y.updateButtons_=function(){var e=null;if(!this.search)for(var z=_.XC(this.hostElement).querySelector("#categories").scrollTop,C=_.XC(this.hostElement).querySelector("#categories").children,w=0;w<C.length;w++){var K=C[w];K.offsetTop<=z&&(e=K.id)}z=_.XC(this.hostElement).querySelector("#category-buttons").children;for(C=0;C<z.length;C++)w=z[C],w.active=w.id===e};
gy.prototype.searchChanged_=gy.prototype.searchChanged_;gy.prototype.skinToneChanged_=gy.prototype.skinToneChanged_;gy.prototype.onEmojiHover_=gy.prototype.onEmojiHover_;gy.prototype.onSelectCategory_=gy.prototype.onSelectCategory_;gy.prototype.onShowEmojiVariantSelector=gy.prototype.onShowEmojiVariantSelector;gy.prototype.updateCategoriesAndPlaceholder_=gy.prototype.updateCategoriesAndPlaceholder_;gy.prototype.dataChanged=gy.prototype.dataChanged;
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gy.prototype,"data",void 0);_.d([_.F({value:function(){return[]}}),
_.B("design:type",Array)],gy.prototype,"categories",void 0);_.d([_.F({value:function(){return[]}}),
_.B("design:type",Array)],gy.prototype,"categoryButtons",void 0);_.d([_.F({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gy.prototype,"disableScroll",void 0);_.d([_.F({computed:"computeId_(data)",reflectToAttribute:!0}),_.B("design:type",String)],gy.prototype,"id",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],gy.prototype,"selected",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],gy.prototype,"disableIncrementalLoading",void 0);_.d([_.F(),_.B("design:type",String)],gy.prototype,"placeholder",void 0);_.d([_.F({value:""}),_.B("design:type",String)],gy.prototype,"search",void 0);_.d([_.F({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gy.prototype,"searching",void 0);_.d([_.F({computed:"computeSearchCategory_(search)"}),_.B("design:type",Object)],gy.prototype,"searchCategory",void 0);
_.d([_.F({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.B("design:type",Object)],gy.prototype,"searchEmptyMessage",void 0);_.d([_.F({computed:"identity(emojiManager.skinTone)"}),_.B("design:type",Number)],gy.prototype,"skinTone",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],gy.prototype,"skinToneOpened",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],gy.prototype,"variantSelectorOpened",void 0);
_.d([_.F({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.B("design:type",Boolean)],gy.prototype,"skinToneHidden",void 0);_.d([_.F(),_.B("design:type",_.ry)],gy.prototype,"emojiManager",void 0);_.d([_.F(),_.B("design:type",Object)],gy.prototype,"emojiVariantSelector",void 0);_.d([_.F(),_.B("design:type",Object)],gy.prototype,"emojiMultiPersonSelector",void 0);
_.d([_.F({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.B("design:type",Boolean)],gy.prototype,"shouldUseStickyPreferences",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gy.prototype,"dataChanged",null);_.d([_.mi("data","selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gy.prototype,"updateCategoriesAndPlaceholder_",null);
_.d([_.Qi("yt-show-emoji-variant-selector"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],gy.prototype,"onShowEmojiVariantSelector",null);_.d([_.Qi("yt-emoji-picker-select-category"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],gy.prototype,"onSelectCategory_",null);_.d([_.Qi("yt-emoji-hover"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],gy.prototype,"onEmojiHover_",null);
_.d([_.mi("skinTone"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gy.prototype,"skinToneChanged_",null);_.d([_.mi("search"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gy.prototype,"searchChanged_",null);_.d([_.fP({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],gy);
_.u(gy,"yt-emoji-picker-renderer",function(){if(oCL===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Kng===void 0&&(Kng=document.createElement("template"));var w=Kng;C.call(z,w.content.cloneNode(!0),e.content.firstChild);oCL=e}e=oCL;return e},{mode:2});var jw=function(){var e=_.V.apply(this,arguments)||this;e.emojiManager=_.vk;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.selectedIndex=1;e.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return e};
_.U(jw,_.V);_.Y=jw.prototype;_.Y.handleEmojiCustomizationVisible=function(e){this.emojiPickerRenderer.selected=e;this.selectedIndex=1;e?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.Y.emojiCustomizationSetChanged=function(){var e;(e=this.data)!=null&&e.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Z8(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.Y.updateSaveButtonState=function(e){var z;(z=this.data)!=null&&z.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Rx("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:e}))};
_.Y.emojiUrl=function(e){e=_.Hk(this.emojiManager,e);if(!e)return"";var z;e=(z=e.image)==null?void 0:z.thumbnails;return _.oo(e,24)||""};
_.Y.emojiAlt=function(e){var z=_.Hk(this.emojiManager,e);if(!z)return e;var C,w,K,G=(z==null?void 0:(C=z.image)==null?void 0:(w=C.accessibility)==null?void 0:(K=w.accessibilityData)==null?void 0:K.label)||"";return G?G:z.isCustomEmoji?z.shortcuts[0]:z.emojiId||e};
_.Y.emojiAriaLabel=function(e){var z,C;return((z=_.Hk(this.emojiManager,e))==null?void 0:(C=z.shortcuts)==null?void 0:C[0])||e};
_.Y.onEmojiClick=function(e){e.model.index!==0&&(this.selectedIndex=e.model.index)};
_.Y.onEmojiSelect=function(e){e=e.detail;var z,C;((z=this.data)==null?0:z.emojiCustomizationSetEntityKey)&&((C=this.emojiCustomizationSet)==null?0:C.emojiId)&&e.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,e.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Rx("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,e.emojiId,this.selectedIndex)}))};
_.Y.canEditEmoji=function(e,z,C){e=e.indexOf(z);return e===C||e===0||C===0?!1:!0};
_.Y.getUpdatedEmojiIdList=function(e,z,C){var w=e.indexOf(z);e=[].concat(_.s_(e));w>=0&&(e[w]=e[C]);e[C]=z;return e};
_.lB.Object.defineProperties(jw,{template:{configurable:!0,enumerable:!0,get:function(){if(LGT===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;RIC===void 0&&(RIC=document.createElement("template"));var w=RIC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);LGT=e}e=LGT;return e}}});
jw.prototype.onEmojiSelect=jw.prototype.onEmojiSelect;_.d([_.W(_.$q),_.B("design:type",Object)],jw.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],jw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.nP("yt-emoji-picker-renderer"),_.B("design:type",Object)],jw.prototype,"emojiPickerRenderer",void 0);
_.d([_.F({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(e,z){return _.xz(e.entities,"emojiCustomizationSetEntity",z)},
observer:"emojiCustomizationSetChanged"}),_.B("design:type",Object)],jw.prototype,"emojiCustomizationSet",void 0);_.d([_.F(),_.B("design:type",Object)],jw.prototype,"originalEmojiSet",void 0);_.d([_.F(),_.B("design:type",_.ry)],jw.prototype,"emojiManager",void 0);_.d([_.F(),_.B("design:type",Object)],jw.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jw.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",Object)],jw.prototype,"selectedIndex",void 0);
_.d([_.Qi("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jw.prototype,"onEmojiSelect",null);_.d([_.fP({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],jw);var qoL;var xcX;var TVs;var $co;var yP=function(){var e=_.V.apply(this,arguments)||this;e.authorBadges=[];return e};
_.U(yP,_.V);_.Y=yP.prototype;_.Y.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.Y.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]]"}}}}}};
_.Y.dataChanged=function(){var e=xf7(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",e)};
_.Y.updateMessage=function(){var e=this.data.message,z=_.XC(_.XC(this.hostElement).querySelector("#message"));z.textContent="";e&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.Y.shouldSupportWholeItemClick=function(){return!0};
_.Y.onShowOriginalClick=function(e){e.preventDefault();this.showOriginal=!0};
_.Y.computeShowBar=function(e,z,C){return e&&z||C};
_.Y.computeAuthorBadges=function(e){return e.authorBadges||[]};
_.Y.computeAuthorIsOwner=function(e){return!!TrE(e.authorBadges,"owner")};
_.Y.computeAuthorNameColor=function(e){var z;if(_.M("live_chat_author_name_color_usernames")&&(e==null?0:(z=e.authorName)==null?0:z.simpleText))return _.n64(_.MPE(e.authorName.simpleText));if(_.M("live_chat_seed_color_usernames")&&(e==null?0:e.authorSeedColorArgb))return _.n64(_.JE(e.authorSeedColorArgb));if(_.M("live_chat_colored_usernames"))return"#cc0000";var C;return _.M("live_chat_simple_color_usernames")&&(e==null?0:(C=e.authorName)==null?0:C.simpleText)&&(e==null?0:e.authorUsernameColorLight)&&
(e==null?0:e.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.JE(e.authorUsernameColorDark):_.JE(e.authorUsernameColorLight):""};
yP.prototype.updateMessage=yP.prototype.updateMessage;yP.prototype.dataChanged=yP.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],yP.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yP.prototype,"data",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yP.prototype,"showOriginal",void 0);_.d([_.F({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],yP.prototype,"isDimmed",void 0);_.d([_.F({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.B("design:type",Boolean)],yP.prototype,"showBar",void 0);
_.d([_.F({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],yP.prototype,"authorBadges",void 0);_.d([_.F({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],yP.prototype,"authorIsOwner",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yP.prototype,"inCollapsedBanner",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yP.prototype,"inBanner",void 0);
_.d([_.F({value:_.M("live_chat_hide_avatars"),reflectToAttribute:!0}),_.B("design:type",Boolean)],yP.prototype,"avatarHidden",void 0);_.d([_.F({computed:"computeAuthorNameColor(data)"}),_.B("design:type",String)],yP.prototype,"authorNameColor",void 0);_.d([_.F(),_.B("design:type",_.Lx)],yP.prototype,"participantsManager",void 0);_.d([_.F({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.B("design:type",Object)],yP.prototype,"filledButtonOverrides",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yP.prototype,"dataChanged",null);_.d([_.mi("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yP.prototype,"updateMessage",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],yP);
_.u(yP,"yt-live-chat-text-message-renderer",function(){if($co===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;TVs===void 0&&(TVs=document.createElement("template"));var w=TVs;C.call(z,w.content.cloneNode(!0),e.content.firstChild);$co=e}e=$co;return e},{mode:0});var ck=function(){var e=_.V.apply(this,arguments)||this;e.tonalButtonOverrides={type:"tonal",style:"overlay"};return e};
_.U(ck,_.V);
ck.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]]"}}}}}};
ck.prototype.shouldSupportInlineActionButtons=function(){return!0};
ck.prototype.shouldSupportWholeItemClick=function(){return!0};
_.lB.Object.defineProperties(ck.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],ck.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ck.prototype,"data",void 0);_.d([_.F(),_.B("design:type",_.Lx)],ck.prototype,"participantsManager",void 0);
_.d([_.F(),_.B("design:type",Object)],ck.prototype,"tonalButtonOverrides",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.infoDialogButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],ck.prototype,"hasInfoDialogButton",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],ck);
_.u(ck,"yt-live-chat-auto-mod-message-renderer",function(){if(xcX===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;qoL===void 0&&(qoL=document.createElement("template"));var w=qoL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);xcX=e}e=xcX;return e},{mode:0});var lB6;var Qao;var mc6;var aBc=function(){return _.V.apply(this,arguments)||this};
_.U(aBc,_.V);_.d([_.F(),_.B("design:type",Object)],aBc.prototype,"data",void 0);_.d([_.SL({is:"ytd-factoid-renderer",disableElementRegistration:!0})],aBc);
_.u(aBc,"ytd-factoid-renderer",function(){if(mc6!==void 0)return mc6;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return mc6=e},{mode:1});var Au=function(){return _.V.apply(this,arguments)||this};
_.U(Au,_.V);Au.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.d([_.F(),_.B("design:type",Object)],Au.prototype,"data",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Au);
_.u(Au,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Qao===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;lB6===void 0&&(lB6=document.createElement("template"));var w=lB6;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Qao=e}e=Qao;return e},{mode:0});var nCU;var MKa;var ZC=function(){return _.V.apply(this,arguments)||this};
_.U(ZC,_.V);ZC.prototype.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Boolean)],ZC.prototype,"menuFocused",void 0);_.d([_.F(),_.B("design:type",Object)],ZC.prototype,"data",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],ZC.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],ZC);
_.u(ZC,"yt-live-chat-donation-announcement-renderer",function(){if(MKa===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;nCU===void 0&&(nCU=document.createElement("template"));var w=nCU;C.call(z,w.content.cloneNode(!0),e.content.firstChild);MKa=e}e=MKa;return e},{mode:0});var rxL;var HXL,Uc4=function(){if(HXL!==void 0)return HXL;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;rxL===void 0&&(rxL=document.createElement("template"));var w=rxL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return HXL=e};var px=function(){return _.V.apply(this,arguments)||this};
_.U(px,_.V);_.lB.Object.defineProperties(px,{template:{configurable:!0,enumerable:!0,get:function(){return Uc4()}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],px.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],px.prototype,"data",void 0);_.d([_.fP({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],px);_.u(px,"yt-live-chat-empty-feed-view-model",function(){return Uc4()},{mode:0});var vCc;var IBY;var eN=function(){return _.V.apply(this,arguments)||this};
_.U(eN,_.V);eN.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"}}}}}};
_.lB.Object.defineProperties(eN.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var e,z;return{runs:[{text:(e=this.data)==null?void 0:(z=e.channelName)==null?void 0:z.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var e=[],z;if((z=this.data)==null||!z.channelBadges)return e;var C;z=_.b((C=this.data)==null?void 0:C.channelBadges);for(C=z.next();!C.done;C=z.next()){C=_.r(C.value,vRU);var w=void 0,K=void 0;if((w=C)==null?0:(K=w.badgeImage)==null?0:K.sources)w=void 0,K={liveChatAuthorBadgeRenderer:{tooltip:C.tooltip,accessibility:{accessibilityData:{label:(w=_.r(C.rendererContext,_.Re))==null?void 0:w.label}}}},C.badgeImage.sources[0].clientResource?K.liveChatAuthorBadgeRenderer.icon=
{iconType:C.badgeImage.sources[0].clientResource.imageName}:K.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:C.badgeImage.sources},e.push(K)}return e}}});
_.d([_.F(),_.B("design:type",Object)],eN.prototype,"data",void 0);_.d([_.P("data.channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],eN.prototype,"channelName",null);_.d([_.P("data.channelBadges"),_.B("design:type",Array),_.B("design:paramtypes",[])],eN.prototype,"channelBadges",null);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],eN);
_.u(eN,"yt-live-chat-identity-view-model",function(){if(IBY===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;vCc===void 0&&(vCc=document.createElement("template"));var w=vCc;C.call(z,w.content.cloneNode(!0),e.content.firstChild);IBY=e}e=IBY;return e},{mode:0});var WnU;var P8U;var RZs;var LnY;var zA=function(){var e=_.V.apply(this,arguments)||this;e.hidden=!1;e.supportsInlineActionButtons=!0;return e};
_.U(zA,_.V);zA.prototype.ready=function(){var e;((e=document.querySelector("yt-live-chat-app"))==null?0:e.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
zA.prototype.dataChanged=function(e){var z=(0,_.x$)(_.XC(this.hostElement).querySelector("#detail-text"));z.textContent="";(e==null?0:e.detailText)&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e.detailText))};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],zA.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({observer:"dataChanged"}),_.B("design:type",Object)],zA.prototype,"data",void 0);
_.d([_.F({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],zA.prototype,"hidden",void 0);_.d([_.SL({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],zA);
_.u(zA,"yt-live-chat-legacy-paid-message-renderer",function(){if(LnY===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;RZs===void 0&&(RZs=document.createElement("template"));var w=RZs;C.call(z,w.content.cloneNode(!0),e.content.firstChild);LnY=e}e=LnY;return e},{mode:0});var hZ6;var OXL;var ECo={},CB=function(){return _.rO.apply(this,arguments)||this};
_.U(CB,_.rO);CB.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
CB.prototype.onLiveChatMembershipItemBehaviorClick=CB.prototype.onLiveChatMembershipItemBehaviorClick;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],CB.prototype,"data",void 0);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],CB.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.d([_.HI()],CB);
ECo.YtLiveChatMembershipItemBehavior=[CB.prototype,_.c.YtRendererBehavior];var wn=function(){var e=_.V.apply(this,arguments)||this;e.supportsInlineActionButtons=!0;e.hasPrimaryHeaderText=!1;e.showOnlyHeader=!1;e.authorBadges=[];e.modern=_.M("web_button_rework_with_live");e.buttonOverrides={style:"overlay",type:"filled"};return e};
_.U(wn,_.V);_.Y=wn.prototype;_.Y.shouldSupportInlineActionButtons=function(){return!0};
_.Y.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.Y.ready=function(){var e=document.querySelector("yt-live-chat-app");e&&e.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Y.messageChanged=function(){var e=this.data.message,z=(0,_.x$)(_.XC(this.hostElement).querySelector("#message"));z.textContent="";e&&z.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(e))};
_.Y.computeHasPrimaryHeaderText=function(e){return!(!e||!e.headerPrimaryText)};
_.Y.computeShowOnlyHeader=function(e,z){return this.isMessageEmpty(e,z)};
_.Y.computeAuthorBadges=function(e){return e.authorBadges||[]};
_.Y.isMessageEmpty=function(e,z){return!e||e.empty?!0:!e.message&&!e.inputField&&!z};
_.Y.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.Y.getInputElement=function(){return _.XC(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.Y.inputFocus=function(){var e=this.getInputElement();e&&e.focus()};
_.Y.inputInsertEmoji=function(e){var z=this.getInputElement();z&&z.insertEmoji(e)};
_.Y.inputMessage=function(){var e=this.getInputElement();return e&&this.data.inputField?(e.completeEmojis(),_.NT(e.liveChatRichMessageInput)):null};
_.Y.onFooterButtonClick=function(){this.data.footerButton&&_.pi(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.Y.shouldSupportWholeItemClick=function(){return!0};
wn.prototype.isDeletedChanged=wn.prototype.isDeletedChanged;wn.prototype.messageChanged=wn.prototype.messageChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],wn.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(ECo.YtLiveChatMembershipItemBehavior),_.B("design:type",Object)],wn.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wn.prototype,"data",void 0);_.d([_.F({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.B("design:type",Object)],wn.prototype,"hasPrimaryHeaderText",void 0);_.d([_.F({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.B("design:type",Object)],wn.prototype,"showOnlyHeader",void 0);
_.d([_.F({computed:"computeAuthorBadges(data)"}),_.B("design:type",Array)],wn.prototype,"authorBadges",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],wn.prototype,"modern",void 0);_.d([_.mi("data.message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wn.prototype,"messageChanged",null);_.d([_.mi("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wn.prototype,"isDeletedChanged",null);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],wn);
_.u(wn,"yt-live-chat-membership-item-renderer",function(){if(OXL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;hZ6===void 0&&(hZ6=document.createElement("template"));var w=hZ6;C.call(z,w.content.cloneNode(!0),e.content.firstChild);OXL=e}e=OXL;return e},{mode:0});var Fna;var VK6;var KB=function(){return _.V.apply(this,arguments)||this};
_.U(KB,_.V);KB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],KB.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],KB);
_.u(KB,"yt-live-chat-mode-change-message-renderer",function(){if(VK6===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Fna===void 0&&(Fna=document.createElement("template"));var w=Fna;C.call(z,w.content.cloneNode(!0),e.content.firstChild);VK6=e}e=VK6;return e},{mode:0});var fBS;var Soc;var o0=function(){return _.V.apply(this,arguments)||this};
_.U(o0,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],o0.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],o0.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],o0);
_.u(o0,"yt-live-chat-moderation-message-renderer",function(){if(Soc===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;fBS===void 0&&(fBS=document.createElement("template"));var w=fBS;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Soc=e}e=Soc;return e},{mode:0});var uvC;var dcg;var GA=function(){return _.V.apply(this,arguments)||this};
_.U(GA,_.V);GA.prototype.onClick=function(){var e;if((e=this.data)!=null&&e.onClickCommand){var z;_.Tx.instance.resolveCommand((z=this.data)==null?void 0:z.onClickCommand)}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],GA.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],GA.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GA.prototype,"data",void 0);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],GA);
_.u(GA,"yt-live-chat-offer-click-count-message-renderer",function(){if(dcg===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;uvC===void 0&&(uvC=document.createElement("template"));var w=uvC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);dcg=e}e=dcg;return e},{mode:0});var DcT;var iXc=function(){return _.V.apply(this,arguments)||this};
_.U(iXc,_.V);_.d([_.F(),_.B("design:type",Object)],iXc.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],iXc);
_.u(iXc,"yt-live-chat-placeholder-item-renderer",function(){if(DcT===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);DcT=e}e=DcT;return e},{mode:0});var NVT;var sa4;var BVS=new cH(7),YE=function(){var e=_.V.apply(this,arguments)||this;e.data={};return e};
_.U(YE,_.V);YE.prototype.dataChanged=function(){var e;((e=this.data)==null?0:e.class)&&_.k$(this.hostElement,this.data.class,!0);var z;((z=this.oldData)==null?0:z.class)&&_.k$(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
YE.prototype.computeTimestampString=function(e){return BVS.format(new Date(e/1E3))};
YE.prototype.dataChanged=YE.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],YE.prototype,"data",void 0);_.d([_.F({computed:"computeTimestampString(data.timestampUsec)"}),_.B("design:type",String)],YE.prototype,"timestampString",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YE.prototype,"dataChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],YE);
_.u(YE,"yt-live-chat-server-error-message",function(){if(sa4===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;NVT===void 0&&(NVT=document.createElement("template"));var w=NVT;C.call(z,w.content.cloneNode(!0),e.content.firstChild);sa4=e}e=sa4;return e},{mode:0});var tKC;var gC4;var b2=function(){var e=_.V.apply(this,arguments)||this;e.defaultToFilledIcon=!1;return e};
_.U(b2,_.V);b2.prototype.computeHasPrimaryColorIcon=function(e){return e==="SPARK"||e==="SPONSORSHIP_STAR"};
b2.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],b2.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],b2.prototype,"defaultToFilledIcon",void 0);_.d([_.F(),_.B("design:type",Object)],b2.prototype,"data",void 0);
_.d([_.F({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.B("design:type",Boolean)],b2.prototype,"hasPrimaryColorIcon",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],b2);
_.u(b2,"yt-live-chat-viewer-engagement-message-renderer",function(){if(gC4===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;tKC===void 0&&(tKC=document.createElement("template"));var w=tKC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);gC4=e}e=gC4;return e},{mode:0});var jaT;var Xq=function(){var e=_.V.apply(this,arguments)||this;e.modernUpdate=!1;e.buttonStyle="overlay";e.buttonType="filled";return e};
_.U(Xq,_.V);Xq.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Xq.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xq.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Xq.prototype,"modernUpdate",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Xq.prototype,"buttonStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Xq.prototype,"buttonType",void 0);
_.d([_.SL({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Xq);
_.u(Xq,"ytd-ad-hover-text-button-renderer",function(){if(jaT!==void 0)return jaT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jaT=e},{mode:1});var yxs;var J5=function(){var e=_.V.apply(this,arguments)||this;e.buttonOverrides={size:"XS"};return e};
_.U(J5,_.V);J5.prototype.onHelpTap=function(e){this.data&&this.data.informationDialog&&(_.pi(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),e.preventDefault(),e.stopPropagation())};
_.d([_.F(),_.B("design:type",Object)],J5.prototype,"buttonOverrides",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],J5.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],J5);
_.u(J5,"ytd-live-chat-purchased-product-message-renderer",function(){if(yxs!==void 0)return yxs;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return yxs=e},{mode:1});var cxC;var AxS;var kE=function(){var e=_.V.apply(this,arguments)||this;e.isContainerDeleted=!1;return e};
_.U(kE,_.V);kE.prototype.onContextMenuClick=function(e){this.ytLiveChatItemBehavior.showContextMenu(e)};
kE.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))};
kE.prototype.isContainerDeletedChanged=kE.prototype.isContainerDeletedChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],kE.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kE.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],kE.prototype,"isContainerDeleted",void 0);
_.d([_.F(),_.B("design:type",String)],kE.prototype,"deletedStateMessage",void 0);_.d([_.mi("isContainerDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kE.prototype,"isContainerDeletedChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],kE);
_.u(kE,"ytd-sponsorships-live-chat-header-renderer",function(){if(AxS!==void 0)return AxS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return AxS=e},{mode:1});var qC=function(){var e=_.V.apply(this,arguments)||this;e.modern=_.M("web_button_rework_with_live");e.buttonOverrides={style:"overlay",type:"filled"};return e};
_.U(qC,_.V);qC.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]]"}}}}}};
qC.prototype.onCtaButtonClick=function(){var e,z=_.r((e=this.data)==null?void 0:e.optInPrompt,_.a2);if(e=this.maybeGetButtonCommand(z)){var C;(C=_.nm())==null||C.clickCommand(e)}};
qC.prototype.maybeGetButtonCommand=function(e){return!e||!e.command||_.r(e.command,X$L)===void 0&&_.r(e.command,bBo)===void 0?null:e.command};
qC.prototype.shouldHideOptinPrompt=function(e,z){return!e||z};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],qC.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qC.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],qC.prototype,"modern",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],qC);
_.u(qC,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(cxC!==void 0)return cxC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return cxC=e},{mode:1});var ZXs;var xE=function(){return _.V.apply(this,arguments)||this};
_.U(xE,_.V);xE.prototype.onContextMenuClick=function(e){this.ytLiveChatItemBehavior.showContextMenu(e)};
xE.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))};
xE.prototype.isDeletedChanged=xE.prototype.isDeletedChanged;_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],xE.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xE.prototype,"data",void 0);_.d([_.mi("isDeleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xE.prototype,"isDeletedChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],xE);
_.u(xE,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(ZXs!==void 0)return ZXs;var e=document.createElement("template");_.v(e,'\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="star_circle_ribbon" 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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ZXs=e},{mode:1});var TA=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return e};
_.U(TA,_.V);_.Y=TA.prototype;
_.Y.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"}}}};
_.Y.handleLiveChatAction=function(e){_.r(e,gmL)?this.handleMarkChatItemAsDeletedAction(_.r(e,gmL)):_.r(e,tOa)&&this.handleRemoveChatItemAction(_.r(e,tOa))};
_.Y.handleLiveChatActions=function(e){e.forEach(this.handleLiveChatAction,this)};
_.Y.handleMarkChatItemAsDeletedAction=function(e){var z=this,C;((C=this.data)==null?0:C.items)&&this.data.items.forEach(function(w,K){var G=Object.keys(w)[0];Object.values(w)[0].id===e.targetItemId&&z.markAsDeleted("data.items",K,G,e.deletedStateMessage,e.showOriginalContentMessage)})};
_.Y.handleRemoveChatItemAction=function(e){var z=this,C;((C=this.data)==null?0:C.items)&&this.data.items.forEach(function(w,K){Object.values(w)[0].id===e.targetItemId&&z.splice("data.items",K,1)})};
_.Y.markAsDeleted=function(e,z,C,w,K){e=[e,z,C].join(".");this.set(e+".deletedStateMessage",w);this.set(e+".showOriginalContentMessage",K)};
_.d([_.F(),_.B("design:type",Object)],TA.prototype,"data",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],TA.prototype,"ytActionHandlerBehavior",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],TA);
_.u(TA,"yt-live-chat-item-display-list-renderer",function(){if(P8U===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;WnU===void 0&&(WnU=document.createElement("template"));var w=WnU;C.call(z,w.content.cloneNode(!0),e.content.firstChild);P8U=e}e=P8U;return e},{mode:0});var pzs;var eQa,zQc=function(){if(eQa!==void 0)return eQa;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;pzs===void 0&&(pzs=document.createElement("template"));var w=pzs;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return eQa=e};var $E=function(){var e=_.V.apply(this,arguments)||this;e.isHeader=!1;return e};
_.U($E,_.V);$E.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.lB.Object.defineProperties($E,{template:{configurable:!0,enumerable:!0,get:function(){return zQc()}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$E.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$E.prototype,"isHeader",void 0);_.d([_.fP({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],$E);_.u($E,"yt-live-chat-item-display-renderer",function(){return zQc()},{mode:0});var CxC,wdT,b6a,Y0S;
CxC={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}};wdT={home:"eohps",search:"eosps",watch:"eowps"};_.Kk4=["watch","search","home"];
_.l2=function(){this.JSC$14580_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14580_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.j5("PRECONSTRUCTION_DELAY",0);this.signals_=_.Il();this.targetPage_=""};
_.l2.prototype.init=function(e,z){e=e===void 0?"":e;z=z===void 0?null:z;if(this.JSC$14580_isInitialized_)this.abort();else if(this.JSC$14580_isInitialized_=!0,e&&_.o9a(this,e),z){var C=_.Wc(this.signals_,"pcl")?0:10,w=function(){for(var K=0,G;G=_.Kk4[K++];)G!=e&&G!=z&&this.pendingPages_.push(G);_.GQX(this)}.bind(this);
this.signals_.parkOrScheduleJob(w,C,"pcl")}};
_.l2.prototype.abort=function(){this.fragmentJobId_&&(_.c5.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Y0S(this)};
_.o9a=function(e,z){e.JSC$14580_isInitialized_&&!e.targetPage_&&(e.targetPage_=z,b6a(e,z),e.isInitialPass_=!1,b6a(e,z),e.signals_.processSignal(wdT[e.targetPage_]),Y0S(e),_.GQX(e))};
_.GQX=function(e){e.pendingPages_.length&&!e.pagePreparerJobId_&&(e.pagePreparerJobId_=_.Dz(_.c5,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.o9a(this,this.pendingPages_.shift())}.bind(e),e.DEFAULT_DELAY_))};
b6a=function(e,z){if(z=CxC[z])for(var C in z){var w=!1,K=C;C.charAt(0)=="~"&&(w=!0,K=C.substring(1));var G=z[C];G=typeof G=="object"?G:{count:G};z[C]=G;G.componentName=K;G.count>0&&(e.isInitialPass_?w||e.isSeenDuringInitialPass_[K]||(e.JSC$14580_queue_.push({componentName:K,count:1,signals:G.signals}),e.isSeenDuringInitialPass_[K]=!0,G.count--):e.JSC$14580_queue_.push(G))}};
Y0S=function(e){e.JSC$14580_queue_.length=0;e.targetPage_="";e.isInitialPass_=!0;e.signals_.processSignal("eop")};
_.l2.getInstance=function(){return _.bH(_.l2)};var XdL=function(){this.signals=_.Il();this.init()};
XdL.prototype.startPreconstruction=function(){_.l2.getInstance().init(_.cR("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
XdL.prototype.init=function(){J9X(this);window.Polymer&&mLL&&Gh5();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var e=_.wL.ytcsi;if(e&&e.gt&&(e=e.gt())&&e.tick&&(e.tick.aft>0||e.tick.pbs>0)&&(_.cR("IS_HOMEPAGE_COLD")||_.cR("IS_RESULTS_PAGE_COLD")||_.cR("IS_WATCH_PAGE_COLD"))){kQU(this);break a}jg4(yhk,this.onNotifications,this)}};
var J9X=function(e){var z=function(){e.signals.processSignal("dl")};
document.readyState==="complete"?(_.es(Error("th"),"WARNING"),z()):_.Hm7(window,"load",z)};
XdL.prototype.onNotifications=function(e){e.timer||(_.cR("IS_HOMEPAGE_COLD")||_.cR("IS_RESULTS_PAGE_COLD")||_.cR("IS_WATCH_PAGE_COLD"))&&kQU(this)};
var kQU=function(e){e.signals.parkOrScheduleJob(function(){e.signals.processSignal("eocs")},10,"eor")};
new XdL;var q0X=function(){return _.rO.apply(this,arguments)||this};
_.U(q0X,_.rO);_.lB.Object.defineProperties(q0X.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_entity_store_from_dependency_injection")?_.AK():_.eB()}}});
_.d([_.HI()],q0X);_.QX=[bz.prototype,q0X.prototype];var x0h=["ytd-rich-shelf-renderer"],my=function(){var e=_.rO.apply(this,arguments)||this;e._noAccessors=!0;e.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";e.followUpDialogPromise=null;e.followUpDialogPromiseResolve=null;e.followUpDialogPromiseReject=null;return e};
_.U(my,_.rO);_.Y=my.prototype;_.Y.dismissibleItemIsDismissedChanged_=function(e){_.M("kevlar_fluid_dismiss")&&(e?_.pi(this.hostElement,"yt-dismissible-item-dismissed"):_.pi(this.hostElement,"yt-dismissible-item-undismissed"))};
_.Y.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.Y.dismissibleItemReset_=function(){var e=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 _.RC(function(z,C){e.followUpDialogPromiseResolve=z;e.followUpDialogPromiseReject=C});
_.pi(this.hostElement,"yt-enable-lockup-interaction")};
_.Y.dismissibleItemOnYtServiceRequestSent_=function(e,z){z.actions&&this.dismissibleItemProcessActions(z.actions,e)};
_.Y.dismissibleItemOnRequestSent=function(e){for(var z=_.b(e.detail),C=z.next();!C.done;C=z.next()){var w=void 0;(C=(w=_.r(C.value,_.bd))==null?void 0:w.actions)&&this.dismissibleItemProcessActions(C,e)}};
_.Y.dismissibleItemOnCommandSent=function(e,z){z&&this.dismissibleItemProcessActions(z,e)};
_.Y.setAndGetDismissedContentId=function(e){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+e};
_.Y.replayDismissAction=function(e){this.dismissibleItemProcessActions([e])};
_.Y.dismissibleItemProcessActions=function(e,z){for(var C=0;C<e.length;C++){var w=e[C],K=void 0;((K=_.r(w,_.Gj))==null?0:K.commands)&&this.dismissibleItemProcessActions(_.r(w,_.Gj).commands,z);if(_.r(w,_.Zl)){if(K=_.r(w,_.Zl),!K.replaceParentSection||x0h.includes(this.hostElement.nodeName.toLowerCase()))K.groupDismissal&&i_g(this,K.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(K),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Rx("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:w})),w=void 0,(w=z)==null||w.stopPropagation()}else if(_.r(w,dtT))this.dismissibleItemHandleHideEnclosingAction_(),w=void 0,(w=z)==null||w.stopPropagation();else if(_.r(w,JpS))w=_.r(w,JpS),K=void 0,((K=w)==null?0:K.targetGroupId)&&i_g(this,{targetGroupId:w.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Rx("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
w=void 0,(w=z)==null||w.stopPropagation();else if(_.r(w,_.bd))(w=_.r(w,_.bd).actions)&&_.KK(this.hostElement,w,this.hostElement),w=void 0,(w=z)==null||w.stopPropagation();else{var G=K=void 0;((K=_.r(w,_.wK))==null?void 0:K.signal)!=="TELL_US_WHY"||((G=_.r(w,_.wK))==null?0:G.targetId)&&_.M("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),w=void 0,(w=z)==null||w.stopPropagation())}}};
_.Y.dismissibleItemOnYtServiceRequestCompleted_=function(e,z){var C=this.get("feedbackResponses.0.followUpDialog",z.data);C?this.followUpDialogPromiseResolve(C):z.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(z.actions,e)};
_.Y.dismissibleItemHandleReplaceEnclosingAction_=function(e){this.dismissedRenderer=e.item;this.isDismissed=!0;var z=null;(z=_.XC(this.hostElement).querySelector("#dismissed"))&&_.T0(this,function(){_.qU(z)});
_.pi(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.Y.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.Y.dismissibleItemHandleUndoFeedbackAction_=function(){_.pi(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.Y.dismissibleItemHandleTellUsWhySignalAction_=function(){var e=this;this.followUpDialogPromise.then(function(z){e.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:z}})})};
my.prototype.dismissibleItemOnYtServiceRequestCompleted_=my.prototype.dismissibleItemOnYtServiceRequestCompleted_;my.prototype.dismissibleItemOnCommandSent=my.prototype.dismissibleItemOnCommandSent;my.prototype.dismissibleItemOnRequestSent=my.prototype.dismissibleItemOnRequestSent;my.prototype.dismissibleItemOnYtServiceRequestSent_=my.prototype.dismissibleItemOnYtServiceRequestSent_;my.prototype.dismissibleItemDataChanged_=my.prototype.dismissibleItemDataChanged_;
my.prototype.dismissibleItemIsDismissedChanged_=my.prototype.dismissibleItemIsDismissedChanged_;_.d([_.W(_.VP),_.B("design:type",Object)],my.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],my.prototype,"ytdReduxBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],my.prototype,"isDismissed",void 0);_.d([_.F(),_.B("design:type",Object)],my.prototype,"dismissedRenderer",void 0);
_.d([_.mi("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],my.prototype,"dismissibleItemIsDismissedChanged_",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],my.prototype,"dismissibleItemDataChanged_",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],my.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.d([_.Qi("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],my.prototype,"dismissibleItemOnRequestSent",null);
_.d([_.Qi("yt-dismissible-item-action"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Array]),_.B("design:returntype")],my.prototype,"dismissibleItemOnCommandSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],my.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.d([_.HI()],my);_.a0=[_.VP,_.QX,my.prototype];var nB=function(){var e=_.rO.apply(this,arguments)||this;e.disableGridStateAware=!1;e.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};e.currentGridClass="";return e};
_.U(nB,_.rO);nB.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.T0(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var e=this.gridStateAwareGetElement();_.k$(e,"grid",!0)}};
nB.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
nB.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.XC(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
nB.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var e="grid-disabled";else{e=_.ss.getInstance();var z=this.get("pageSubtype");e=z&&rec.includes(z)?"grid-disabled":e.currentSnapState_?e.currentSnapState_.className:null}(z=this.gridStateAwareGetElement())&&e!==this.currentGridClass&&(e&&_.k$(z,e,!0),this.currentGridClass&&_.k$(z,this.currentGridClass,!1),this.currentGridClass=e)};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],nB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",String)],nB.prototype,"gridStateAwareSizingElementSelector",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nB.prototype,"disableGridStateAware",void 0);_.d([_.HI()],nB);_.MC=[nB.prototype,_.ch.YtActionHandlerBehavior];_.rn=new _.Mt("GUIDE_TOKEN");var UZ;_.H$={};UZ=function(){var e=_.rO.apply(this,arguments)||this;e.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 e};
_.U(UZ,_.rO);_.Y=UZ.prototype;_.Y.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Y.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var e=_.lh().resolve(_.$B(_.rn));e&&(this.guidePersistentAndVisible=e.getGuidePersistentAndVisible(),this.activeEndpoint=e.getActiveEndpoint(),this.guideOpened=e.getGuideOpened(),this.miniGuideVisible=e.getMiniGuideVisible())};
_.Y.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.Y.handleGuideStateAction=function(e){this.guidePersistentAndVisible=e};
_.Y.handleMiniGuideStateAction=function(e){this.miniGuideVisible=e};
_.Y.handleGuideOpenedAction=function(e){this.guideOpened=e};
_.Y.handleActiveEndpointAction=function(e){this.activeEndpoint=e};
UZ.prototype.onActiveEndpointChange=UZ.prototype.onActiveEndpointChange;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],UZ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],UZ.prototype,"guidePersistentAndVisible",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],UZ.prototype,"miniGuideVisible",void 0);_.d([_.F(),_.B("design:type",Object)],UZ.prototype,"activeEndpoint",void 0);
_.d([_.mi("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UZ.prototype,"onActiveEndpointChange",null);_.d([_.F(),_.B("design:type",Boolean)],UZ.prototype,"guideOpened",void 0);_.d([_.HI()],UZ);_.H$.YtdGuideStateAwareBehavior=[];_.H$.YtdGuideStateAwareBehavior.push(UZ.prototype,_.ch.YtActionHandlerBehavior);var TZa=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],v$=function(){var e=_.rO.apply(this,arguments)||this;e.hoverJobId=0;e.JSC$14607_touched=!1;return e};
_.U(v$,_.rO);_.Y=v$.prototype;_.Y.created=function(){this.useExpandableTooltip=!TZa.includes(this.is)};
_.Y.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.Y.detached=function(){this.useExpandableTooltip=!1};
_.Y.lockupOnDown=function(e){this.interactionElement&&!_.zi(_.cJ(e),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.Y.lockupOnUp=function(e){this.interactionElement&&!_.zi(_.cJ(e),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.Y.onTouchStart=function(){this.JSC$14607_touched=!0};
_.Y.lockupOnMouseEnter=function(){var e=this,z=_.n0("kevlar_lockup_hover_delay",-1);this.JSC$14607_touched&&z>=0?(_.c5.cancelJob(this.hoverJobId),this.hoverJobId=_.c5.addJob(function(){e.lockupIsHovered=!0},8,z),this.JSC$14607_touched=!1):this.lockupIsHovered=!0};
_.Y.lockupOnMouseLeave=function(){this.hoverJobId&&(_.c5.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.Y.lockupOnPopupClosed=function(e,z){var C;((C=z.popupRenderer)==null?void 0:C.is)==="ytd-menu-popup-renderer"&&(e=z.popupRenderer.veData,z=_.Pr(),e&&z&&_.tg(z,[e]))};
_.Y.lockupOnLockupRequested=function(e){var z=e.detail.videoIds[0],C;e.detail&&z===((C=this.data)==null?void 0:C.videoId)&&(e.detail.returnValue=[this.data])};
_.Y.lockupOnYtServiceRequestSent=function(e,z){if(e=z.actions)for(var C=0;C<e.length;C++){var w=e[C];if(w.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&z.ajaxPromise){var K=void 0,G=(K=_.r(z.endpoint,_.$R))==null?void 0:K.playlistId;K=void 0;w=(K=w.removedVideoId)!=null?K:"";j_S(_.Rl(),w,G)}else w.action==="ACTION_REMOVE_VIDEO"&&z.ajaxPromise&&(G=void 0,w=(G=w.setVideoId)!=null?G:"",_.yFa(_.Rl(),w))}};
_.Y.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.Y.lockupOnLockupEnabled=function(){if(!this.$){var e=_.lh().resolve(_.wE).getCurrentPage(),z=this.getParentRenderer?this.getParentRenderer():void 0;_.AX(new _.uh("component not ready",this.is,this.isAttached,e==null?void 0:e.is,z==null?void 0:z.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
v$.prototype.lockupOnLockupEnabled=v$.prototype.lockupOnLockupEnabled;v$.prototype.lockupOnLockupDisabled=v$.prototype.lockupOnLockupDisabled;v$.prototype.lockupOnYtServiceRequestSent=v$.prototype.lockupOnYtServiceRequestSent;v$.prototype.lockupOnLockupRequested=v$.prototype.lockupOnLockupRequested;v$.prototype.lockupOnPopupClosed=v$.prototype.lockupOnPopupClosed;v$.prototype.lockupOnMouseLeave=v$.prototype.lockupOnMouseLeave;v$.prototype.lockupOnMouseEnter=v$.prototype.lockupOnMouseEnter;
v$.prototype.onTouchStart=v$.prototype.onTouchStart;v$.prototype.lockupOnUp=v$.prototype.lockupOnUp;v$.prototype.lockupOnDown=v$.prototype.lockupOnDown;_.d([_.F(),_.B("design:type",Object)],v$.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],v$.prototype,"lockupIsHovered",void 0);_.d([_.F(),_.B("design:type",Boolean)],v$.prototype,"lockupTouchTriggered",void 0);_.d([_.F(),_.B("design:type",Boolean)],v$.prototype,"useExpandableTooltip",void 0);
_.d([_.nP("#interaction"),_.B("design:type",Object)],v$.prototype,"interactionElement",void 0);_.d([_.Qi("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],v$.prototype,"lockupOnDown",null);_.d([_.Qi("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],v$.prototype,"lockupOnUp",null);
_.d([_.Qi("touchstart"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],v$.prototype,"onTouchStart",null);_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],v$.prototype,"lockupOnMouseEnter",null);_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],v$.prototype,"lockupOnMouseLeave",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],v$.prototype,"lockupOnPopupClosed",null);_.d([_.Qi("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],v$.prototype,"lockupOnLockupRequested",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],v$.prototype,"lockupOnYtServiceRequestSent",null);_.d([_.Qi("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],v$.prototype,"lockupOnLockupDisabled",null);
_.d([_.Qi("yt-enable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],v$.prototype,"lockupOnLockupEnabled",null);_.d([_.HI()],v$);_.I0=[v$.prototype];_.$0X={YtdReduxBehavior:[]};_.$0X.YtdReduxBehavior.push.apply(_.$0X.YtdReduxBehavior,_.QX);var W$=function(){var e=_.rO.apply(this,arguments)||this;e._noAccessors=!0;e.disableNowPlaying=!1;e.disableTooltips=!1;e.useHoveredProperty=!1;e.hovered=!1;e.isThumbnailHovered_=!1;e.addBackground=_.M("kevlar_thumbnail_bg");e.nowPlaying=!1;e.disableRounding=!1;e.size="small";return e};
_.U(W$,_.rO);_.Y=W$.prototype;_.Y.computeThumbnailOverlaySidePanelWidth_=function(e,z){return e-z};
_.Y.computeSize=function(e,z){if(!this.disableRounding){if(!e&&!z)return"small";e=Math.max(e||0,z||0);return e>=256?"large":e>=96?"medium":"small"}};
_.Y.computeFinalHoveredState_=function(e,z,C){return this.nowPlaying?!1:_.M("kevlar_thumbnail_fluid")&&e?z:C};
_.Y.computeHoverOverlays_=function(e,z){return e&&z?z:void 0};
_.Y.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.Y.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.Y.checkMiniplayer_=function(){var e;if(((e=this.data)==null?0:e.playlistSetVideoId)&&_.M("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{e=_.C3();var z=e.currentEndpoint;!this.disableNowPlaying&&z&&_.r(z,_.N$)&&this.data?(z=_.r(z,_.N$),this.nowPlaying=this.data.playlistId?z.playlistId===this.data.playlistId:z.videoId===this.data.videoId,this.isVideoPlaying=e==null?void 0:e.isVideoPlaying):this.nowPlaying=!1}};
W$.prototype.checkMiniplayer_=W$.prototype.checkMiniplayer_;W$.prototype.onMouseLeave_=W$.prototype.onMouseLeave_;W$.prototype.onMouseEnter_=W$.prototype.onMouseEnter_;W$.prototype.computeHoverOverlays_=W$.prototype.computeHoverOverlays_;W$.prototype.computeFinalHoveredState_=W$.prototype.computeFinalHoveredState_;W$.prototype.computeSize=W$.prototype.computeSize;W$.prototype.computeThumbnailOverlaySidePanelWidth_=W$.prototype.computeThumbnailOverlaySidePanelWidth_;
_.d([_.W(_.QX),_.B("design:type",Object)],W$.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],W$.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],W$.prototype,"height",void 0);_.d([_.F(),_.B("design:type",Boolean)],W$.prototype,"bottomSidePanel",void 0);_.d([_.F(),_.B("design:type",Number)],W$.prototype,"width",void 0);_.d([_.F(),_.B("design:type",Object)],W$.prototype,"disableNowPlaying",void 0);
_.d([_.F({selector:_.V2}),_.B("design:type",Boolean)],W$.prototype,"miniplayerIsActive",void 0);_.d([_.F(),_.B("design:type",Object)],W$.prototype,"disableTooltips",void 0);_.d([_.F(),_.B("design:type",Object)],W$.prototype,"useHoveredProperty",void 0);_.d([_.F(),_.B("design:type",Object)],W$.prototype,"hovered",void 0);_.d([_.F(),_.B("design:type",Object)],W$.prototype,"isThumbnailHovered_",void 0);
_.d([_.F({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.B("design:type",Boolean)],W$.prototype,"finalHoveredState_",void 0);_.d([_.F({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.B("design:type",Number)],W$.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],W$.prototype,"addBackground",void 0);
_.d([_.F({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.B("design:type",Object)],W$.prototype,"hoverOverlays_",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],W$.prototype,"nowPlaying",void 0);_.d([_.F(),_.B("design:type",Boolean)],W$.prototype,"isVideoPlaying",void 0);_.d([_.F(),_.B("design:type",Object)],W$.prototype,"disableRounding",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.B("design:type",Object)],W$.prototype,"size",void 0);_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W$.prototype,"onMouseEnter_",null);_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W$.prototype,"onMouseLeave_",null);
_.d([_.mi("data","disableNowPlaying","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],W$.prototype,"checkMiniplayer_",null);_.d([_.HI()],W$);var l1L=[W$.prototype];_.P$={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(e,z){return e+":"+_.c1(z)},
getPlayerListener_:function(e,z,C){e=this.getPlayerListenerKey_(e,z);z=this.playerListeners_.get(e);C&&this.playerListeners_.delete(e);return z},
savePlayerListener_:function(e,z){var C=z.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(e,z),C);return C},
listenToPlayerEvent:function(e,z,C){C=this.savePlayerListener_(z,C);e.addEventListener(z,C)},
listenToPlayerEvents:function(e,z){z.forEach(function(C,w){this.listenToPlayerEvent(e,w,C)}.bind(this))},
unlistenFromPlayerEvent:function(e,z,C){C=this.getPlayerListener_(z,C,!0);e.removeEventListener(z,C)},
unlistenFromPlayerEvents:function(e,z){z.forEach(function(C,w){this.unlistenFromPlayerEvent(e,w,C)}.bind(this))}}};
_.R0=function(){};_.QfT=new _.Mt("PLAYER_API_TOKEN");var tb1=!1,c$o,jHk=!1,Z_m;var Jm=function(e,z,C,w,K){_.Sn.call(this);var G=this;this.playerId=z;this.webPlayerContextConfig=w;this.zg2=K;this.nr7=!1;this.api={};this.tmG=this.xD0=null;this.i1y=new _.hJ;this.zf={};this.uWn=this.r9Q=this.elementId=this.bO7=this.config=null;this.ljz=!1;this.rL=this.r5P=null;this.k7n={};this.vV2=["onReady"];this.lastError=null;this.cvn=NaN;this.i8x={};this.yix=0;this.ie=this.targetElement=e;_.I4(this,this.i1y);m0C(this);C?this.yix=setTimeout(function(){G.loadNewVideoConfig(C)},0):w&&(a1S(this),
n9U(this))};
_.U(Jm,_.Sn);Jm.prototype.getId=function(){return this.playerId};
Jm.prototype.loadNewVideoConfig=function(e){if(!this.isDisposed()){this.yix&&(clearTimeout(this.yix),this.yix=0);var z=e||{};z instanceof ppc||(z=new ppc(z));this.config=z;this.setConfig(e);n9U(this);this.isReady()&&MrY(this)}};
var a1S=function(e){var z;e.webPlayerContextConfig?z=e.webPlayerContextConfig.rootElementId:z=e.config.attrs.id;e.elementId=z||e.elementId;e.elementId==="video-player"&&(e.elementId=e.playerId,e.webPlayerContextConfig?e.webPlayerContextConfig.rootElementId=e.playerId:e.config.attrs.id=e.playerId);var C;((C=e.ie)==null?void 0:C.id)===e.elementId&&(e.elementId+="-player",e.webPlayerContextConfig?e.webPlayerContextConfig.rootElementId=e.elementId:e.config.attrs.id=e.elementId)};
Jm.prototype.setConfig=function(e){this.bO7=e;this.config=r9c(e);a1S(this);if(!this.r9Q){var z;this.r9Q=H6g(this,((z=this.config.args)==null?void 0:z.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var C;if((C=this.config)==null?0:C.attrs)e=this.config.attrs,(z=e.width)&&this.ie&&(this.ie.style.width=Ck(Number(z)||z,!0)),(e=e.height)&&this.ie&&(this.ie.style.height=Ck(Number(e)||e,!0))};
Jm.prototype.getConfig=function(){return this.bO7};
var MrY=function(e){if(e.config&&e.config.loaded!==!0)if(e.config.loaded=!0,!e.config.args||e.config.args.autoplay!=="0"&&e.config.args.autoplay!==0&&e.config.args.autoplay!==!1){var z;e.api.loadVideoByPlayerVars((z=e.config.args)!=null?z:null)}else e.api.cueVideoByPlayerVars(e.config.args)},v9L=function(e){var z=!0,C=e.getPlayerElement();
C&&e.config&&(z=C.dataset.version===U0a(e));return z&&!!_.pd("yt.player.Application.create")},n9U=function(e){if(!e.isDisposed()&&!e.ljz){var z=v9L(e);
if(z&&(e.getPlayerElement()?"html5":null)==="html5")e.uWn="html5",e.isReady()||I14(e);else if(Wkg(e),e.uWn="html5",z&&e.rL&&e.targetElement)e.targetElement.appendChild(e.rL),I14(e);else{e.config&&(e.config.loaded=!0);var C=!1;e.r5P=function(){C=!0;var w=Pxc(e,"player_bootstrap_method")?_.pd("yt.player.Application.createAlternate")||_.pd("yt.player.Application.create"):_.pd("yt.player.Application.create");var K=e.config?r9c(e.config):void 0;w&&w(e.targetElement,K,e.webPlayerContextConfig,e.zg2);I14(e)};
e.ljz=!0;z?e.r5P():(_.Vq(U0a(e),e.r5P),(z=RQS(e))&&QYs(z||""),Lkh(e)&&!C&&_.lM("yt.player.Application.create",null))}}};
Jm.prototype.getPlayerElement=function(){var e=_.b3(document,this.elementId);!e&&this.ie&&this.ie.querySelector&&(e=this.ie.querySelector("#"+this.elementId));return e};
var I14=function(e){if(!e.isDisposed()){var z=e.getPlayerElement(),C=!1;z&&z.getApiInterface&&z.getApiInterface()&&(C=!0);if(C){e.ljz=!1;if(!Pxc(e,"html5_remove_not_servable_check_killswitch")){var w;if((z==null?0:z.isNotServable)&&e.config&&(z==null?0:z.isNotServable((w=e.config.args)==null?void 0:w.video_id)))return}hQo(e)}else e.cvn=setTimeout(function(){I14(e)},50)}},hQo=function(e){m0C(e);
e.nr7=!0;var z=e.getPlayerElement();if(z){e.xD0=O6o(e,z,"addEventListener");e.tmG=O6o(e,z,"removeEventListener");var C=z.getApiInterface();C=C.concat(z.getInternalApiInterface());for(var w=e.api,K=0;K<C.length;K++){var G=C[K];w[G]||(w[G]=O6o(e,z,G))}}for(var X in e.zf)e.zf.hasOwnProperty(X)&&e.xD0&&e.xD0(X,e.zf[X]);MrY(e);e.r9Q&&e.r9Q(e.api);e.i1y.publish("onReady",e.api)},O6o=function(e,z,C){var w=z[C];
return function(){var K=_.yL.apply(0,arguments);try{return e.lastError=null,w.apply(z,K)}catch(G){if(C!=="sendAbandonmentPing")throw G.params=C,e.lastError=G,K=new _.uh("PlayerProxy error in method call",{error:G,method:C,playerId:e.playerId}),K.level="WARNING",K;}}},m0C=function(e){e.nr7=!1;
if(e.tmG)for(var z in e.zf)e.zf.hasOwnProperty(z)&&e.tmG(z,e.zf[z]);for(var C in e.i8x)e.i8x.hasOwnProperty(C)&&clearTimeout(Number(C));e.i8x={};e.xD0=null;e.tmG=null;z=e.api;for(var w in z)z.hasOwnProperty(w)&&(z[w]=null);z.addEventListener=function(K,G){e.addEventListener(K,G)};
z.removeEventListener=function(K,G){e.removeEventListener(K,G)};
z.destroy=function(){e.dispose()};
z.getLastError=function(){return e.getLastError()};
z.getPlayerType=function(){return e.getPlayerType()};
z.getCurrentVideoConfig=function(){return e.getConfig()};
z.loadNewVideoConfig=function(K){e.loadNewVideoConfig(K)};
z.isReady=function(){return e.isReady()}};
Jm.prototype.isReady=function(){return this.nr7};
Jm.prototype.addEventListener=function(e,z){var C=this;this.isDisposed();var w=H6g(this,z);w&&(_.Sh(this.vV2,e)||this.zf[e]||(z=E9X(this,e),this.xD0&&this.xD0(e,z)),this.i1y.subscribe(e,w),e==="onReady"&&this.isReady()&&setTimeout(function(){w(C.api)},0))};
Jm.prototype.removeEventListener=function(e,z){this.isDisposed()||(z=H6g(this,z))&&this.i1y.unsubscribe(e,z)};
var H6g=function(e,z){var C=z;if(typeof z==="string"){if(e.k7n[z])return e.k7n[z];C=function(){var w=_.yL.apply(0,arguments),K=_.pd(z);if(K)try{K.apply(_.wL,w)}catch(G){throw w=new _.uh("PlayerProxy error when executing callback",{error:G}),w.level="ERROR",w;}};
e.k7n[z]=C}return C?C:null},E9X=function(e,z){var C=function(w){var K=function(){e.isDisposed();
if(!e.isDisposed())try{e.i1y.publish(z,w!=null?w:void 0)}catch(J){var X=new _.uh("PlayerProxy error when creating global callback",{error:J.message,event:z,playerId:e.playerId,data:w,originalStack:J.stack,componentStack:J.componentStack});X.level="WARNING";throw X;}};
if(Pxc(e,"web_player_publish_events_immediately"))K();else{var G=setTimeout(function(){K();_.de.remove(e.i8x,String(G))},0);
_.de.add(e.i8x,String(G),!0)}};
return e.zf[z]=C};
Jm.prototype.getPlayerType=function(){return this.uWn||(this.getPlayerElement()?"html5":null)};
Jm.prototype.getLastError=function(){return this.lastError};
var Wkg=function(e){e.cancel();m0C(e);e.uWn=null;e.config&&(e.config.loaded=!1);var z=e.getPlayerElement();z&&(v9L(e)||!Lkh(e)?e.rL=z:(z&&z.destroy&&z.destroy(),e.rL=null));e.targetElement&&_.yx(e.targetElement)};
Jm.prototype.cancel=function(){this.r5P&&_.t6m(U0a(this),this.r5P);clearTimeout(this.cvn);this.ljz=!1};
Jm.prototype.disposeInternal=function(){Wkg(this);if(this.rL&&this.config&&this.rL.destroy)try{this.rL.destroy()}catch(z){var e=new _.uh("PlayerProxy error during disposal",{error:z});e.level="ERROR";throw e;}this.k7n=null;for(e in this.zf)this.zf.hasOwnProperty(e)&&delete this.zf[e];this.bO7=this.config=this.api=null;delete this.targetElement;delete this.ie;_.Sn.prototype.disposeInternal.call(this)};
var Lkh=function(e){var z,C;e=(z=e.config)==null?void 0:(C=z.args)==null?void 0:C.fflags;return!!e&&e.indexOf("player_destroy_old_version=true")!==-1},U0a=function(e){return e.webPlayerContextConfig?e.webPlayerContextConfig.jsUrl:(e=e.config.assets)?e.js:""},RQS=function(e){return e.webPlayerContextConfig?e.webPlayerContextConfig.cssUrl:(e=e.config.assets)?e.css:""},Pxc=function(e,z){if(e.webPlayerContextConfig)var C=e.webPlayerContextConfig.serializedExperimentFlags;
else{var w;if((w=e.config)==null?0:w.args)C=e.config.args.fflags}return(C||"").split("&").includes(z+"=true")},r9c=function(e){for(var z={},C=_.b(Object.keys(e)),w=C.next();!w.done;w=C.next()){w=w.value;
var K=e[w];z[w]=typeof K==="object"?_.de.clone(K):K}return z};var wzL={},C8g="player_uid_"+(Math.random()*1E9>>>0);var LB=function(e,z,C,w,K,G){z=z===void 0?document.createElement("div"):z;this.webPlayerContextConfig=e;this.container=z;this.commandResolver=C;this.apiResolver=GWg();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.x5;w||G?Fka(this):Vrc(this);this.pendingPlayerResponse=w;this.pendingWatchNextResponse=K;this.pendingPlayerVars=G;f1c(this)};
LB.prototype.loadVideoWithPlayerResponse=function(e,z,C){this.loadVideo(e,z,C)};
LB.prototype.loadVideoWithPlayerVars=function(e){return this.loadVideo(void 0,void 0,e)};
LB.prototype.destroy=function(e){if(e=_.b3(document,e))e=C8g+"_"+_.c1(e),(e=wzL[e])&&e.dispose()};
var u_g=function(e,z){var C;_.k(function(w){if(w.nextAddress==1)return e.pendingWatchNextResponse=z,e.synchronousApi?(C=e.synchronousApi,w.jumpTo(2)):w.yield(e.api,3);w.nextAddress!=2&&(C=w.yieldResult);if(!S0U(e,C))return w.return();e.pendingWatchNextResponse&&(C.updateVideoData({raw_watch_next_response:e.pendingWatchNextResponse}),e.pendingWatchNextResponse=void 0);_.E_(w)})},S0U=function(e,z){var C;
if(!(z==null?0:(C=z.isReady)==null?0:C.call(z))){var w;_.AX(new _.uh("playerApi is falsey",{synchronousApi:e.synchronousApi,apiResolved:e.apiResolver.resolved,playerApiUndefined:z===void 0,playerApiNull:z===null,playerApiReady:(z==null?void 0:(w=z.isReady)==null?void 0:w.call(z))===!0,playerApiMethods:z?Object.keys(z):[]}));return!1}return!0},d0X=function(e,z){if(typeof e[z]==="function")return e[z]()},D06=function(e){var z=window,C,w=(C=z.ytplayer)==null?void 0:C.bootstrapPlayerContainer;
if((C=w==null?void 0:w.firstElementChild)&&_.JQ(C,"html5-video-player")){var K,G,X=(K=z.ytplayer)==null?void 0:(G=K.bootstrapWebPlayerContextConfig)==null?void 0:G.contextId;K=e.webPlayerContextConfig.contextId;if(X&&X===K){w!==e.container&&(w=!1,d0X(C,"getPlayerState")===2&&(w=!0),e.container.appendChild(C),w||d0X(C,"playVideo"));var J;if((J=z.ytplayer)==null?0:J.bootstrapPlayerResponse)e.bootstrapPlayerResponse=z.ytplayer.bootstrapPlayerResponse}}},f1c=function(e){var z,C,w,K,G;
_.k(function(X){if(X.nextAddress==1)return e.pageReadyOrDataAvailable?X.jumpTo(2):X.yield(e.pageReadyOrDataAvailableResolver.promise,2);if(X.nextAddress!=4)return!_.M("kevlar_player_unified_player_loading")||gHo()&&y$1()?X.jumpTo(4):X.yield(eZo(),4);D06(e);if(e.pendingPlayerResponse||e.pendingPlayerVars)z=zZ1(e.pendingPlayerResponse,e.pendingWatchNextResponse,e.pendingPlayerVars),e.pendingPlayerResponse&&e.pendingPlayerResponse===e.bootstrapPlayerResponse&&(z.loaded=!0),e.bootstrapPlayerResponse=
void 0;C=oCN(e.container,z,e.webPlayerContextConfig);((w=z)==null?0:w.loaded)&&e.pendingWatchNextResponse?(u_g(e,e.pendingWatchNextResponse),e.pendingPlayerResponse=void 0,e.pendingPlayerVars=void 0):i6s(e);K=function(J){C.removeEventListener("onReady",K);e.synchronousApi=J;e.apiResolver.resolve(J)};
C.addEventListener("onReady",K);e.commandResolver!==void 0&&(G=e.commandResolver,C.addEventListener("innertubeCommand",function(J){G(J)}));
_.E_(X)})};
LB.prototype.loadVideo=function(e,z,C){var w=this,K,G,X,J,q,T,Q,m,a;return _.k(function(n){if(n.nextAddress==1)return w.pendingPlayerResponse=e,w.pendingWatchNextResponse=z,w.pendingPlayerVars=C,Fka(w),w.synchronousApi?(K=w.synchronousApi,n.jumpTo(2)):n.yield(w.api,3);n.nextAddress!=2&&(K=n.yieldResult);if(!S0U(w,K))return n.return(new Promise(function(){}));
X=new Promise(function(H){G=H});
J=function(){var H=K.getPlayerResponse();H&&(K.removeEventListener("onVideoDataChange",J),G(H))};
K.addEventListener("onVideoDataChange",J);if(w.pendingPlayerResponse||w.pendingPlayerVars)w.pendingPlayerResponse&&w.pendingPlayerResponse===w.bootstrapPlayerResponse?(G(w.pendingPlayerResponse),w.pendingWatchNextResponse&&u_g(w,w.pendingWatchNextResponse)):(q=zZ1(w.pendingPlayerResponse,w.pendingWatchNextResponse,w.pendingPlayerVars),(a=(T=w.pendingPlayerResponse)==null?void 0:(Q=T.playerConfig)==null?void 0:(m=Q.playbackStartConfig)==null?void 0:m.startPaused)?K.cueVideoByPlayerVars(q.args):K.loadVideoByPlayerVars(q.args)),
i6s(w),w.bootstrapPlayerResponse=void 0;return n.return(X)})};
var Vrc=function(e){if(document.readyState==="complete"||document.readyState==="interactive")Fka(e);else{var z=function(){document.removeEventListener("DOMContentLoaded",z);Fka(e)};
document.addEventListener("DOMContentLoaded",z)}},Fka=function(e){e.pageReadyOrDataAvailable=!0;
e.pageReadyOrDataAvailableResolver.resolve()},i6s=function(e){e.pendingPlayerResponse=void 0;
e.pendingWatchNextResponse=void 0;e.pendingPlayerVars=void 0};
_.lB.Object.defineProperties(LB.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var h5=function(e){za.call(this,e===void 0?"document_active":e);var z=this;this.overridePriority=10;this.JSC$14640_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(C){z.transition("document_disposed",{event:C})});
window.addEventListener("beforeunload",function(C){z.transition("document_disposed_preventable",{event:C})});
window.addEventListener("unload",function(C){z.transition("document_disposed",{event:C});z.JSC$14640_hasRun=new Map})};
_.U(h5,za);
h5.prototype.runPreventableDispose=function(e,z){if(!this.JSC$14640_hasRun.get("document_disposed_preventable")){e(z==null?void 0:z.event);var C,w;if((z==null?0:(C=z.event)==null?0:C.defaultPrevented)||(z==null?0:(w=z.event)==null?0:w.returnValue)){z.event.returnValue||(z.event.returnValue=!0);z.event.defaultPrevented||z.event.preventDefault();this.JSC$14640_hasRun=new Map;this.transition("document_active");return}}this.JSC$14640_hasRun.set("document_disposed_preventable",!0);this.JSC$14640_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
h5.prototype.runDispose=function(e,z){this.JSC$14640_hasRun.get("document_disposed")?this.transition("document_active"):(e(z==null?void 0:z.event),this.JSC$14640_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
h5.prototype.runFlush=function(e,z){e(z==null?void 0:z.event);this.transition("document_active")};
h5.prototype.runActive=function(){};var OZ=function(e){za.call(this,e===void 0?"document_visibility_unknown":e);var z=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(C){document.visibilityState==="visible"?z.transition("document_visible",{event:C}):z.transition("document_hidden",
{event:C})});
_.M("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(C){z.transition("document_backgrounded",{event:C})}),window.addEventListener("focus",function(C){z.transition("document_foregrounded",{event:C})}))};
_.U(OZ,za);OZ.prototype.runVisible=function(e,z){e(z==null?void 0:z.event);_.M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
OZ.prototype.runHidden=function(e,z){e(z==null?void 0:z.event);_.M("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
OZ.prototype.runBackgrounded=function(e,z){e(z==null?void 0:z.event)};
OZ.prototype.runForegrounded=function(e,z){e(z==null?void 0:z.event)};var EZ=function(){this.teardownLifecycle=new h5;this.visibilityLifecycle=new OZ};
EZ.prototype.install=function(){var e=_.yL.apply(0,arguments),z=this;e.forEach(function(C){z.teardownLifecycle.install(C)});
e.forEach(function(C){z.visibilityLifecycle.install(C)})};var Fq=function(){EZ.call(this);var e={};this.install((e.document_disposed={callback:this.abortSlisAndFlush},e));_.M("combine_ve_grafts")&&(e={},this.install((e.document_disposed={callback:this.flushInteractionLoggingAttachVes},e)));e={};this.install((e.flush_logs={callback:this.logFinalPayload},e));_.M("web_log_cfg_cee_ks")||_.Dz(_.c5,NZ4)};
_.U(Fq,EZ);var Yom=function(){Fq.loggingInstance||(Fq.loggingInstance=new Fq);return Fq.loggingInstance};
Fq.prototype.logFinalPayload=function(){if(_.M("web_fp_via_jspb")){var e=new juc,z=_.Pr();z&&_.Et(e,1,z);z=_.M("jspb_sparse_encoded_pivot")?new dm([{}]):new dm;_.RT(z,380,yOa,e);VOL("finalPayload",z);_.M("web_fp_via_jspb_and_json")&&_.gm("finalPayload",{csn:_.Pr()})}else _.gm("finalPayload",{csn:_.Pr()})};
Fq.prototype.abortSlisAndFlush=function(){SDc(W7);P7!=null&&P7.flush()};
Fq.prototype.flushInteractionLoggingAttachVes=function(){KYo(_.nm())};
var NZ4=function(){var e=_.j5("CLIENT_EXPERIMENT_EVENTS");if(e){var z=Cok();e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=C.value,z(C)&&_.gm("genericClientExperimentEvent",{eventType:C});delete _.tR.CLIENT_EXPERIMENT_EVENTS}};var sfL={};
sfL.YtPlayerBehavior=[_.P$.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 e=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.x5;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;bXo(function(){e.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.AH(this,"pan-down"),_.M("kevlar_pinch_fullscreen")&&_.ef().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.M("kevlar_pinch_fullscreen")&&_.ef().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(e,z,C){var w=this;kT(this.useUnifiedPlayer_());if(this.mainAppPlayer_)kT(!1,"MainAppPlayer already created.");else{var K=_.M("kevlar_player_container_query_killswitch")?this.$.container:_.XC(this.hostElement).querySelector("#container");this.mainAppPlayer_=new LB(this.getWebPlayerContextConfig_(),K,function(G){return _.$p(G,w.hostElement)},e,z,C);
this.mainAppPlayer_.api.then(function(G){w.player_=G;w.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&GSU.resolve(G)})}},
loadVideoWithPlayerResponse:function(e,z){var C=this;if(this.useUnifiedPlayer_()){var w=this.watchNextData,K,G=(K=e.videoDetails)==null?void 0:K.videoId,X,J,q;(K=(X=this.watchNextData)==null?void 0:(J=X.currentVideoEndpoint)==null?void 0:(q=J.watchEndpoint)==null?void 0:q.videoId)&&G!=K&&(w=void 0,_.M("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(e,w,z):this.createMainAppPlayer_(e,w,z);this.mainAppPlayer_.api.then(function(){_.pi(C.hostElement,
"yt-player-updated")})}else this.update(N77(e,z))},
loadVideoWithPlayerVars:function(e){var z=this;this.useUnifiedPlayer_()?(_.M("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(e):this.createMainAppPlayer_(void 0,void 0,e),this.mainAppPlayer_.api.then(function(){_.pi(z.hostElement,"yt-player-updated")})):this.update({args:e})},
update:function(e){var z=this;if(this.useUnifiedPlayer_())kT(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(e);var C=zgN(e.args);C&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==C&&Object.assign(e.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(e).then(function(w){_.pi(z.hostElement,"yt-player-updated",_.M("kevlar_player_updated_obsolete_player_killswitch")?
w:void 0)})}_.cn(new _.uh("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.getPlayerPromise(),2);C=w.yieldResult;if(!C)throw Error("vh");e&&z.updatePlayerPlaylist_(e);_.E_(w)})},
acquireApi_:function(e){var z=this;if(this.useUnifiedPlayer_())kT(!1,"Invalid method call in kevlar_unified_player.");else return _.c5.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(kT(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(C){z.shouldAutoplay_(e)?C.loadVideoByPlayerVars(e.args):C.cueVideoByPlayerVars(e.args)})):this.initPlayerPromise_=this.initPlayerContainer_(e),this.initPlayerPromise_},
initPlayerContainer_:function(e){var z=this;if(this.useUnifiedPlayer_())kT(!1,"Invalid method call in kevlar_unified_player.");else return kT(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.AX(Error("wh")),kT(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.M("kevlar_player_container_query_killswitch")?this.$.container:_.XC(this.hostElement).querySelector("#container"),eZo().then(function(){var C=z.initPlayer_(e);z.playerResolver_.resolve(C);
return C})},
onPlayerReady_:function(e,z){this.useUnifiedPlayer_()?kT(!1,"Invalid method call in kevlar_unified_player."):(e.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&GSU.resolve(e),z(e))},
maybeCallApiMethodOnElement_:function(e,z){if(typeof e[z]==="function")return e[z]()},
maybeAdoptBootstrapPlayer_:function(){var e=window,z,C=(z=e.ytplayer)==null?void 0:z.bootstrapPlayerContainer;if((z=C==null?void 0:C.firstElementChild)&&z.classList.contains("html5-video-player")){var w,K,G=(w=e.ytplayer)==null?void 0:(K=w.bootstrapWebPlayerContextConfig)==null?void 0:K.contextId;w=this.getWebPlayerContextConfig_().contextId;if(G&&G===w){C!==this.playerContainer_&&(C=!1,this.maybeCallApiMethodOnElement_(z,"getPlayerState")===2&&(C=!0),this.playerContainer_.appendChild(z),C||this.maybeCallApiMethodOnElement_(z,
"playVideo"));var X;if((X=e.ytplayer)==null?0:X.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=e.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(e){var z=this;if(this.useUnifiedPlayer_())kT(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(C){z.maybeAdoptBootstrapPlayer_();var w=e?sH4(e):void 0;w&&w==z.bootstrapPlayerResponse_&&(e.loaded=!0);w=z.playerContainer_;var K=z.getWebPlayerContextConfig_();w=oCN(w,e,K);z.player_=w;z.onPlayerReadyEvent_=z.onPlayerReady_.bind(z,z.player_,C);z.player_.addEventListener("onReady",z.onPlayerReadyEvent_);z.player_.addEventListener("innertubeCommand",
z.onPlayerInnerTubeCommand_.bind(z))})},
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(e){e.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(e){e.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var e=_.lh().resolve(_.wE).getCurrentPage();e&&e.getScrollTop()<=0?_.AH(this,"pan-down"):_.AH(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(e){e.isFullscreen()||e.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(e){e.isFullscreen()&&e.toggleFullscreen()})},
updatePlayerPlaylist_:function(e){var z=this,C,w,K;return _.k(function(G){if(G.nextAddress==1)return C=_.lh().resolve(_.$B(_.Us)),w=!!(C&&C.playlistComponent&&C.playlistComponent.loopOn),G.yield(z.getPlayerPromise(),2);var X=K=G.yieldResult,J=X.updatePlaylist,q=[];if(_.M("kevlar_player_playlist_use_local_index")){var T,Q;var m=(Q=(T=e.localCurrentIndex)!=null?T:e.currentIndex)!=null?Q:0}else{var a;m=(a=e.currentIndex)!=null?a:0}if(e.contents)for(T=0;T<e.contents.length;T++)if((Q=e.contents[T])&&Q.playlistPanelVideoRenderer)if(r5g(Q)){Q=
Q.playlistPanelVideoRenderer;a="";Q.shortBylineText&&(a=_.Zd(Q.shortBylineText));var n="";Q.title?n=_.Zd(Q.title):Q.unplayableText&&(n=_.Zd(Q.unplayableText));q.push({author:a,title:n,encrypted_id:Q.videoId})}else T<m&&--m;J.call(X,{index:m,list:e.playlistId?e.playlistId:"",loop:w,playlist_title:e.title,playlist_length:q.length,video:q,fetch:0,external_list:"1",title:e.title?e.title:"",playlist_author:e.ownerName?_.Zd(e.ownerName):void 0});_.E_(G)})},
focusOnPlayer:function(){_.T0(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var e=this.playerContainer_.querySelector(".html5-video-player");e&&(_.VX(_.lh().resolve(_.UT)),e.focus())}})},
preparePlayer:function(){var e=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(z){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")z();else{var C=function(){document.removeEventListener("DOMContentLoaded",C);z()};
document.addEventListener("DOMContentLoaded",C)}})).then(function(){return eZo()}).then(function(){e.initPlayerPromise_||e.preparePlayerJobId_||(e.preparePlayerJobId_=_.Dz(_.c5,function(){e.initPlayerPromise_||(e.initPlayerPromise_=e.initPlayerContainer_())}))}):_.cn(new _.uh("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(e){this.useUnifiedPlayer_()?kT(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(e)||(e.args.autoplay="0")},
shouldAutoplay_:function(e){if(this.useUnifiedPlayer_())kT(!1,"Invalid method call in kevlar_unified_player.");else{var z=this.get("args.el",e);return z&&z!="detailpage"&&this.isMiniplayerActive_()||z&&(z=="sponsorshipsoffer"||z=="handlesclaiming")&&this.get("args.autoplay",e)=="0"?!1:(e=sH4(e))&&this.get("playerConfig.playbackStartConfig.startPaused",e)?!1:!0}},
isMiniplayerActive_:function(){return _.lh().resolve(_.gh).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var e=this.getPlayer();if(e){var z=e.getPlayerState();_.M("kevlar_player_check_ad_state_on_stop")&&(z=e.getPlayerState(e.getPresentingPlayerType()));z!=5&&e.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(e,z,C){C=C===void 0?!1:C;var w=this,K,G,X,J;return _.k(function(q){if(q.nextAddress==1)return z||(z=w.hostElement),K=w.useUnifiedPlayer_()?!!w.mainAppPlayer_:!!w.initPlayerPromise_,K?q.yield(w.getPlayerPromise(),2):(C?e.insertBefore(z,e.firstChild):e.appendChild(z),q.return());G=q.yieldResult;X=G.getPlayerState(G.getPresentingPlayerType());J=!1;if(X==-1||X==1||X==3)J=!0;C?e.insertBefore(z,e.firstChild):e.appendChild(z);J&&G.playVideo();G.setSize(NaN,NaN);_.E_(q)})},
watchNextDataChanged_:function(e){var z=this;e&&(this.useUnifiedPlayer_()&&_.M("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&u_g(this.mainAppPlayer_,e):this.getPlayerPromise().then(function(C){C.updateVideoData(z.computeWatchNextPlayerVars_(e))}))},
computeWatchNextPlayerVars_:function(e){if(this.useUnifiedPlayer_()&&_.M("kevlar_unified_player_update_watch_next_killswitch"))kT(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:e}},
maybeSendAbandonmentPing_:function(){var e=this.getPlayer();e&&e.getPlayerState()!=5&&e.getPlayerState()!=0&&e.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var e=_.j5("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(e=Object.assign({},e),e.rootElementId=this.playerId);e.serializedExperimentIds&&e.serializedExperimentFlags||_.AX(Error("xh"));return e},
hasWebPlayerContextConfig_:function(){return!!_.j5("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(e){this.useUnifiedPlayer_()?kT(!1,"Invalid method call in kevlar_unified_player."):_.$p(e,this.hostElement)},
useUnifiedPlayer_:function(){var e=_.M("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.M("kevlar_unified_player")||e}}];var BZs={};BZs.YtPlaylistPanelBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(e){e=e.detail;if(e.actions.loop!=void 0||e.actions["yt-icons:loop"]!=void 0)this.loopOn=e.actions.loop||e.actions["yt-icons:loop"];if(e.actions.shuffle!=void 0||e.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=e.actions.shuffle||e.actions["yt-icons:shuffle"]},
setMenuData_:function(e){if(!e||!e.playlistButtons||e.isInfinite)return null;for(var z=e.playlistButtons.menuRenderer.topLevelButtons,C=z.length,w=0;w<C;w++)if(z[w].toggleButtonRenderer){var K=z[w].toggleButtonRenderer;K.defaultIcon.iconType=="LOOP"&&this.loopOn?K.isToggled=this.loopOn:K.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(K.isToggled=this.shuffleOn)}return e.playlistButtons}}];_.fB={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(e,z,C){var w=this.getClickTarget_(z);if(w&&this.isClickAllowed_(w)){z.preventDefault();e=(0,_.de.unsafeClone)(e);var K=this.getContainerBoundingRect();z=this.getRelativeClickXy_(z,K);this.expandEndpointUrlMacros_(e,{NX:z[0],NY:z[1],NB:w.code});C&&this.truncateWebCommendMetadataUrl_(e);_.pi(this.hostElement,"yt-navigate",{endpoint:e})}},
getClickTarget_:function(e){if(!this.clickTargetMap)return null;e=_.cJ(e)||[];e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;if(z===_.XC(this.hostElement).querySelector("#menu"))break;if(z=this.clickTargetMap.get(z.id))return z}return null},
getRelativeClickXy_:function(e,z){var C=Math.round(e.detail.x-z.left);e=Math.round(e.detail.y-z.top);return C<0||e<0?[null,null]:[C,e]},
getContainerBoundingRect:function(){return _.XC(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(e,z){for(var C=_.b(e.loggingUrls||[]),w=C.next();!w.done;w=C.next())w=w.value,w.baseUrl&&(w.baseUrl=aKh(w.baseUrl,z));e.urlEndpoint&&e.urlEndpoint.url&&(e.urlEndpoint.url=aKh(e.urlEndpoint.url,z));e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.url&&(e.commandMetadata.webCommandMetadata.url=aKh(e.commandMetadata.webCommandMetadata.url,z))},
truncateWebCommendMetadataUrl_:function(e){if(e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.url){var z=e.commandMetadata.webCommandMetadata.url,C=z.indexOf("&pp=");if(C>0){var w=z.indexOf("&",C+1);e.commandMetadata.webCommandMetadata.url=w>C&&w<z.length?z.slice(0,C)+z.slice(w):z.slice(0,C)}}},
configureClickTargets:function(e,z,C){this.containerId=e;this.clickTargetMap=new Map;e=_.b(z);for(z=e.next();!z.done;z=e.next())if(z=z.value,z.location){var w=C.get(z.location);w&&(_.k$(_.XC(this.hostElement).querySelector("#"+w),"yt-simple-endpoint",this.isClickAllowed_(z)),this.clickTargetMap.set(w,z))}},
isClickAllowed_:function(e){return e.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||e.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||e.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||e.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.SN={};
_.SN.YtLazyListBehavior=[_.LE.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 e=(this.constructor.generatedFrom||this).observers;e||(e=[]);e.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
e}},
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 e=this.renderElementsOutsideVisibleArea_;e&&(sD4(e,4),e.processSignal())},
deepLazyListObserver_:function(e){var z=this;if(e){var C=e.value||[];if(this.itemsPath==e.path){var w=this.nonDeferredItemCount;e=0;w>-1&&C.length>w&&(e=_.j5("REMAINING_DOVA_DEFERRED_CHUNKS",-1));e>0?(w>0&&(w=C.slice(0,w),this.setInitialItemsOnDataChanged(w)),(w=this.renderElementsOutsideVisibleArea_)?w.cancel():(w=this.renderElementsOutsideVisibleArea_=new _.O2(2,"eocs"),_.Hm7(window,"scroll",function(){return z.renderDeferredElements()})),_.E2(w,function(){z.setInitialItemsOnDataChanged(C)}),_.g1("REMAINING_DOVA_DEFERRED_CHUNKS",
e-1)):this.setInitialItemsOnDataChanged(C)}else if(this.itemsPath+".splices"==e.path)this.onItemsUpdated_(C);
else w="shownItems"+e.path.substr(this.itemsPath.length),this.useSignals&&w==="shownItems.length"||this.notifyPath(w,e.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(e){e&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(e),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(e){e=e.indexSplices;for(var z=0,C=e.length;z<C;z++){var w=e[z];if(w.index<this.shownCount&&(w.removed&&this.splice("shownItems",w.index,w.removed.length),w.addedCount)){var K=w.object.slice(w.index,w.index+w.addedCount);w=["shownItems",w.index,0];w.push.apply(w,K);this.splice.apply(this,w)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(e){this.cancelPendingTasks_();e||(e=[]);this.items_=e;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&&(_.cR("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.T0(this,this.tryRenderChunk_)))},
fillRange_:function(e,z){this.canShowMore&&this.items_&&(e=this.items_.slice(e,z),e.unshift("shownItems"),this.push.apply(this,e),this.shownCount=z,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var e=this;this.canShowMore&&_.tK(this,"renderChunk",function(){e.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.cR("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Oz(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var e=this.renderElementsOutsideVisibleArea_;e&&(e.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var e=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(e-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=e;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(e){return Math.ceil(1E3/e)},
onCanShowMoreUpdated_:function(e){this.data&&this.items_!==null&&(e?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(e){!this.shouldUseTaskManager()&&this.data&&(!e&&this.canShowMore?(_.Iq1(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):e&&this.partiallyRenderedItems_.has(this.items_)&&(_.M("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Dk;_.u2={};
Dk=function(){var e=_.rO.apply(this,arguments)||this;e.atStart=!0;e.atEnd=!0;e.startIndex=0;e.endIndex=0;e.scrollCount=0;e.initialStartIndex=0;e.disableScrollEventListener=!1;e.useFloorScrolling=!1;e.isSearch=!1;e.dragging=!1;e.dragMouseStart=0;e.dragOffsetStart=0;e.disableWheelScroll=!1;e.centerListItems=!1;e.offset=0;e.minComponentWidth=0;e.marginWidthRight=0;e.marginWidthLeft=0;e.setButtonsStateRequested=!1;e.itemsVisibilityObserver=null;e.fullyVisibleItemsIndices=[];e.JSC$14669_onWheelScroll=function(z){if(e.isSearch&&
!e.disableWheelScroll&&_.M("desktop_enable_dmpanel_wheel_scroll")){var C=z.shiftKey?Math.abs(z.deltaY)>Math.abs(z.deltaX)?z.deltaY:z.deltaX:z.deltaX;C!==0&&(z.preventDefault(),e.ytLazyListBehavior.fillRemainingListItems(),e.offset+=C,dn(e),e.reposition_())}};
e.onPointerDown=function(z){trh(e)&&(e.dragMouseStart=z.clientX,e.dragOffsetStart=e.offset,e.dragging=!0)};
e.onPointerMove=function(z){trh(e)&&e.dragging&&(e.ytLazyListBehavior.fillRemainingListItems(),e.offset=e.dragOffsetStart-(z.clientX-e.dragMouseStart),dn(e),e.reposition_())};
e.onPointerUp=function(){trh(e)&&(e.dragging=!1)};
return e};
_.U(Dk,_.rO);var g94=function(e){var z=_.XC(e.hostElement).querySelector("#items").children;if(!z)return 0;var C=0;e=_.b(e.fullyVisibleItemsIndices);for(var w=e.next();!w.done;w=e.next())C+=z[w.value].clientWidth;return C},trh=function(e){return e.isSearch&&_.M("desktop_enable_dmpanel_click_drag_scroll")};
Dk.prototype.created=function(){this.cachedViewportWidth=_.j5("initialInnerWidth")||window.innerWidth;this.JSC$14669_cachedViewportHeight=_.j5("initialInnerHeight")||window.innerHeight;_.j5("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.g1("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Dk.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.M("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();jfU(this)};
Dk.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.M("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var e;(e=this.itemsVisibilityObserver)==null||e.disconnect();this.itemsVisibilityObserver=null;var z;(z=this.itemsObserver)==null||z.disconnect()};
var jfU=function(e){var z=_.XC(e.hostElement).querySelector("#scroll-container");if(z){if(!e.itemsVisibilityObserver){var C=window.getComputedStyle(z).marginRight;e.itemsVisibilityObserver=new IntersectionObserver(function(w){y9g(e,w)},{root:z,
rootMargin:C,threshold:.98})}if(z=_.XC(e.hostElement).querySelector("#items"))e.itemsObserver=new rEc(z,function(w){c9C(e,w)})}},c9C=function(e,z){A9c(e)&&(Array.from(z.addedNodes).filter(function(C){return C.nodeType===Node.ELEMENT_NODE}).forEach(function(C){e.itemsVisibilityObserver&&e.itemsVisibilityObserver.observe(C)}),Array.from(z.removedNodes).filter(function(C){return C.nodeType===Node.ELEMENT_NODE}).forEach(function(C){e.itemsVisibilityObserver&&e.itemsVisibilityObserver.unobserve(C)}))},
y9g=function(e,z){var C=new Set(e.fullyVisibleItemsIndices);
z=_.b(z);for(var w=z.next();!w.done;w=z.next()){w=w.value;var K=w.target.parentElement;K?(K=Array.from(K.children).indexOf(w.target),w.isIntersecting?C.add(K):C.has(K)&&C.delete(K)):_.AX(new _.uh("Parent element not found",w.target.nodeName))}e.fullyVisibleItemsIndices=Array.from(C).sort(function(G,X){return G-X});
C.size===0?_.AX(new _.uh("No visible entries in horizontal list")):(e.startIndex=e.fullyVisibleItemsIndices[0],e.endIndex=e.fullyVisibleItemsIndices[e.fullyVisibleItemsIndices.length-1])},A9c=function(e){e.data?e=(e=e.data)&&e.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===e.itemSizeConstraint:!1:e=!1;
return e};
_.Y=Dk.prototype;_.Y.addScrollEventListeners=function(){var e=_.XC(this.hostElement).querySelector("#scroll-container");e.style.touchAction="pan-y";e.addEventListener("wheel",this.JSC$14669_onWheelScroll);e.addEventListener("pointerdown",this.onPointerDown);e.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.Y.removeScrollEventListeners=function(){var e=_.XC(this.hostElement).querySelector("#scroll-container");e.removeEventListener("wheel",this.JSC$14669_onWheelScroll);e.removeEventListener("pointerdown",this.onPointerDown);e.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.Y.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.T0(this,this.setStartIndex,[this.initialStartIndex])};
_.Y.reposition_=function(){var e=_.j5("HTML_DIR")=="rtl"?"":"-",z=_.XC(this.hostElement).querySelector("#items");z&&(z.style.transform="translateX("+e+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.Y.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.T0(this,this.setButtonsState_))};
_.Y.setButtonsState_=function(){this.setButtonsStateRequested=!1;var e=_.XC(this.hostElement).querySelector("#items").firstElementChild;if(e){this.minComponentWidth||(this.minComponentWidth=Z6a(this,e));e=_.XC(this.hostElement).querySelector("#scroll-container").clientWidth;var z=_.XC(this.hostElement).querySelector("#items");z=_.M("kevlar_horizontal_list_scroll_width_killswitch")?z.clientWidth:z.scrollWidth;var C=this.get(this.ytLazyListBehavior.itemsPath,this);if(C){var w=Math.round(e/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+w,C.length)-1)}this.ytLazyListBehavior.canShowMore?z+this.minComponentWidth>=this.offset+e&&(this.atEnd=!1):this.atEnd=this.offset+e>=z-20?!0:!1;this.atStart=this.offset<=20}};
_.Y.setStartIndex=function(e){if(!this.minComponentWidth){var z=_.XC(this.hostElement).querySelector("#items").firstElementChild;if(!z)return;this.minComponentWidth=Z6a(this,z)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*e;dn(this);this.reposition_()};
_.Y.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.S1();var e=_.XC(this.hostElement).querySelector("#scroll-container").clientWidth;_.M("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=Z6a(this,_.XC(this.hostElement).querySelector("#items").firstElementChild));e=this.useFloorScrolling?Math.floor(e/this.minComponentWidth)||1:Math.round(e/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&pdU(this);this.offset+=A9c(this)?
g94(this):e*this.minComponentWidth;dn(this);this.reposition_();this.scrollCount++};
_.Y.prevClick_=function(){var e=_.XC(this.hostElement).querySelector("#scroll-container").clientWidth;e=this.useFloorScrolling?Math.floor(e/this.minComponentWidth)||1:Math.round(e/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=A9c(this)?g94(this):this.minComponentWidth*this.scrollCount-1):this.offset-=A9c(this)?g94(this):e*this.minComponentWidth;this.centerListItems&&pdU(this);dn(this);this.reposition_()};
_.Y.onIronResize_=function(){this.resizeSupportEnabled&&_.T0(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.Y.onItemsTransitionEnd_=function(e){_.AU(e)===_.XC(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.Y.onChildElementFocus_=function(e){e=e.target.closest("#items > *");var z=_.XC(this.hostElement).querySelector("#scroll-container");if(z.contains(e)){if(_.M("web_horizontal_list_behavior_focus_killswitch"))if(e.offsetLeft<this.offset)this.offset=Math.abs(e.offsetLeft)<e.clientWidth?0:e.offsetLeft;else if(e.offsetLeft+e.clientWidth>this.offset+z.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.S1(),this.offset=e.offsetLeft+e.clientWidth-z.clientWidth;else return;else{var C=_.XC(this.hostElement).querySelector("#items"),
w=_.j5("HTML_DIR")==="rtl",K=w?C.clientWidth-e.offsetLeft:e.offsetLeft;C=w?C.clientWidth-(e.offsetLeft+e.clientWidth):e.offsetLeft+e.clientWidth;var G=w?K>this.offset+z.clientWidth:K<this.offset,X=w?C<this.offset:C>this.offset+z.clientWidth,J=w?G:X;if(w?X:G)z=w?C:K,this.offset=Math.abs(z)<e.clientWidth?0:z;else if(J)this.ytLazyListBehavior.fillRemainingListItems(),_.S1(),this.offset=(w?K:C)-z.clientWidth;else return}dn(this);this.reposition_()}};
_.Y.observeShownItems_=function(){this.reset()};
_.Y.checkComponentWidthResize=function(){var e=_.XC(this.hostElement).querySelector("#items").firstElementChild;e&&(e=Z6a(this,e),this.centerListItems||e!==this.minComponentWidth)&&(this.minComponentWidth=e,this.offset=e*this.scrollCount,this.centerListItems&&pdU(this),dn(this),this.reposition_())};
var Z6a=function(e,z){var C=window.getComputedStyle(z).marginRight;C=Math.floor(Number(C.replace("px","")));var w=window.getComputedStyle(z).marginLeft;w=Math.floor(Number(w.replace("px","")));e.centerListItems&&!e.marginWidthRight&&(e.marginWidthRight=C,e.marginWidthLeft=w);return e.resizeSupportEnabled?z.getBoundingClientRect().width+C:z.offsetWidth+C},dn=function(e){var z=_.XC(e.hostElement).querySelector("#scroll-container").clientWidth,C=_.XC(e.hostElement).querySelector("#items").clientWidth;
e.offset<0?e.offset=0:e.offset+z>=C&&(e.offset=C-z)},pdU=function(e){e.offset-=(_.XC(e.hostElement).querySelector("#scroll-container").clientWidth+e.marginWidthRight-e.minComponentWidth)/2-e.marginWidthLeft};
_.lB.Object.defineProperties(Dk.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var e=_.j5("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(e==-1)e=this.JSC$14669_cachedViewportHeight,e=e>1320?5:e>1020?4:e>730?3:e>430?2:1;else if(e==0)return 0;_.g1("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",e-1);e=_.j5("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(e>-1)return e;e=this.cachedViewportWidth;e=e>1600?6:e>1400?5:e>1300?4:e>1090?5:e>870?4:e>660?3:2;_.g1("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
e);return e},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.M("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Dk.prototype.observeShownItems_=Dk.prototype.observeShownItems_;Dk.prototype.onChildElementFocus_=Dk.prototype.onChildElementFocus_;Dk.prototype.onItemsTransitionEnd_=Dk.prototype.onItemsTransitionEnd_;Dk.prototype.onIronResize_=Dk.prototype.onIronResize_;Dk.prototype.prevClick_=Dk.prototype.prevClick_;Dk.prototype.nextClick_=Dk.prototype.nextClick_;Dk.prototype.setButtonsState_=Dk.prototype.setButtonsState_;Dk.prototype.requestButtonsStateUpdate_=Dk.prototype.requestButtonsStateUpdate_;
Dk.prototype.reposition_=Dk.prototype.reposition_;Dk.prototype.reset=Dk.prototype.reset;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],Dk.prototype,"ytLazyListBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Dk.prototype,"atStart",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Dk.prototype,"atEnd",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"startIndex",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"endIndex",void 0);_.d([_.F({value:6}),_.B("design:type",Number)],Dk.prototype,"initialCount",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"scrollCount",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"initialStartIndex",void 0);
_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"disableScrollEventListener",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"supportComponentResize",void 0);_.d([_.F({value:function(){var e=this;return function(){return e.prevClick_()}}}),
_.B("design:type",Function)],Dk.prototype,"boundPrevClick",void 0);_.d([_.F({value:function(){var e=this;return function(){return e.nextClick_()}}}),
_.B("design:type",Function)],Dk.prototype,"boundNextClick",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"useFloorScrolling",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"isSearch",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"dragging",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"dragMouseStart",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"dragOffsetStart",void 0);
_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"disableWheelScroll",void 0);_.d([_.F(),_.B("design:type",Object)],Dk.prototype,"centerListItems",void 0);_.d([_.Qi("iron-resize"),_.mi("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dk.prototype,"onIronResize_",null);_.d([_.Qi("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Dk.prototype,"onItemsTransitionEnd_",null);
_.d([_.Qi("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Dk.prototype,"onChildElementFocus_",null);_.d([_.mi("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dk.prototype,"observeShownItems_",null);_.d([_.HI()],Dk);_.u2.YtdHorizontalListBehavior=[];_.u2.YtdHorizontalListBehavior.push(_.oY,_.c.YtRendererBehavior,_.SN.YtLazyListBehavior,_.H$.YtdGuideStateAwareBehavior,Dk.prototype);var Jxg=["APP_STATE","PI"];var i2,NC=function(e){this.hostElement=e},sZ=function(e,z){if(z&&(TV4(z.viewableCommands)||TV4(z.endOfSessionCommands))){var C=lBL(z.viewableCommands);
z=lBL(z.endOfSessionCommands);if(!i2){var w=_.n0("custom_active_view_tos_timeout_ms");i2=w>0&&w!==36E5?new upN($cg(),w):new upN($cg())}Dhg(i2,e.hostElement);i1k(i2,e.hostElement,C,z)}},B$=function(e){i2&&Dhg(i2,e.hostElement)};var epa=_.Kb(["about:blank"]),zp4={pushState:window.history.pushState,replaceState:window.history.replaceState};var t5=function(e){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=e;this.internalPushState=e.pushState.bind(e);this.internalReplaceState=e.replaceState.bind(e)};
t5.prototype.init=function(){this.initialized=!0};
t5.prototype.pushState=function(e,z){this.initialized||this.init();this.internalPushState&&this.internalPushState(e,"",z)};
t5.prototype.replaceState=function(e,z){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(e,"",z)};
t5.prototype.getState=function(){return this.history&&this.history.state};var CXs=function(e){var z=function(){var C=e.apply(this,arguments)||this;C.boundHistoryPushState=!1;C.boundHistoryReplaceState=!1;C.debugInfo={};return C};
_.U(z,e);z.prototype.init=function(){var C=_.Lh("IFRAME");_.Cq(C,_.nJ(epa));C.sandbox="allow-same-origin";C.style.display="none";this.iframe=C;document.body.appendChild(C);this.bindHistoryStateFunctions();e.prototype.init.call(this)};
z.prototype.bindHistoryStateFunctions=function(){var C=this,w=[],K;this.iframe&&((K=this.iframe.contentWindow)==null?0:K.history)&&(K=this.iframe.contentWindow.history)&&(w.push(K),Object.getPrototypeOf(K)&&w.push(Object.getPrototypeOf(K)));window.history&&w.push(window.history);K=window.history;Object.getPrototypeOf(K)&&w.push(Object.getPrototypeOf(K));w.push(zp4);K=function(X){for(var J=null,q=0;q<w.length;q++){var T=w[q][X];if(typeof T==="function"){J=T.bind(window.history);C.debugInfo[X]=q;break}}return J};
if(!this.boundHistoryReplaceState){var G=K("replaceState");G&&(this.internalReplaceState=G,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(K=K("pushState"))&&(this.internalPushState=K,this.boundHistoryPushState=!0)};
return z}(t5),w3Y=function(){return CXs.call(this,window.history)||this};
_.U(w3Y,CXs);w3Y.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var gn=function(e){this.browserHistory=e;this.initialized=!1};
gn.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
gn.prototype.pushState=function(e,z){this.initialized||this.init();this.browserHistory.pushState(e,z)};
gn.prototype.replaceState=function(e,z){this.initialized||this.init();this.browserHistory.replaceState(e,z)};
gn.prototype.handlePopstate=function(e){return e.state};_.KKg=function(e,z,C,w,K){this.endpoint=e;this.forward=z;this.historyEntry=C;this.JSC$30934_savedComponentState=w;this.legacyBorder=K===void 0?!1:K};var oeg=function(e,z){this.rootData=e;this.scrollTop=z};_.jN=new _.Mt("EPHEMERAL_STORE_TOKEN");_.yX=function(e){this.data=Object.assign({},e);var z;(z=this.data.innertubeResponse)==null||delete z.frameworkUpdates};
_.yX.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.as)()};
_.J8=function(e){return Object.assign({},e.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var GFh=function(){this.maxSize=100;this.timeToDataCache=new Map};
GFh.prototype.get=function(e){var z=this.timeToDataCache.get(e);z&&(this.timeToDataCache.delete(e),this.timeToDataCache.set(e,z));if(z&&z.rootData&&(_.M("web_use_response_store_for_history_cache")||_.M("mweb_use_new_history_manager"))){var C=_.lh().resolve(_.jN),w=YBY(z),K=!!w;if(w){if(w.content){var G=c$(C,w.content);K&&G?z.rootData.response=_.J8(G):K=!1}w.player&&(G=c$(C,w.player),K&&G?z.rootData.playerResponse=_.J8(G):K=!1);w.reelSequence&&(C=c$(C,w.reelSequence),K&&C?z.rootData.reelWatchSequenceResponse=
_.J8(C):K=!1)}K||(this.timeToDataCache.delete(e),z=void 0)}return z};
GFh.prototype.set=function(e,z){if(z.rootData&&(_.M("web_use_response_store_for_history_cache")||_.M("mweb_use_new_history_manager"))){var C=YBY(z),w=Object.assign({},z.rootData);C&&(C.content&&z.rootData.response&&(bla(this,C.content,z.rootData.response),w.response=null),C.player&&z.rootData.playerResponse&&(bla(this,C.player,z.rootData.playerResponse),w.playerResponse=null),C.reelSequence&&z.rootData.reelWatchSequenceResponse&&(bla(this,C.reelSequence,z.rootData.reelWatchSequenceResponse),w.reelWatchSequenceResponse=
null));z=new oeg(w,z.scrollTop)}this.timeToDataCache.has(e)?this.timeToDataCache.delete(e):this.timeToDataCache.size>=this.maxSize&&(C=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(C.value));this.maxSize!==0&&this.timeToDataCache.set(e,z)};
GFh.prototype.clear=function(){this.timeToDataCache.clear()};
var YBY=function(e){var z=_.lh().resolve(_.$B(_.F9)),C;if((C=e.rootData)==null?0:C.endpoint)return z==null?void 0:Rbg(z,e.rootData.endpoint);var w;_.AX(new _.uh("History snapshot response data does not contain endpoint",(w=e.rootData)==null?void 0:w.url));return null},bla=function(e,z,C){if(e.maxSize>0){var w;
(e=(w=C.responseContext)==null?void 0:w.maxAgeSeconds)&&Number(e)>0&&(w=_.lh().resolve(_.jN),C=l3(C,e),w.put(z,new _.yX(C)))}};var X3c=function(e,z,C){this.endpoint=z;this.JSC$30940_savedComponentState=C===void 0?null:C;this.entryTime=e};var aB7=1;var A5=function(e){var z=function(){var C=e.apply(this,[].concat(_.s_(_.yL.apply(0,arguments))))||this;C.historyEntryTime=0;C.historySnapshotCache=C.createHistoryCache();return C};
_.U(z,e);z.prototype.createHistoryCache=function(){return new GFh};
z.prototype.saveAndReplace=function(C,w,K){var G=window.location.href;var X=X===void 0?{}:X;var J=(J=this.browserHistory.getState())&&J.entryTime?J.entryTime:nCE();C=this.createNewHistoryEntry(C,X,J);this.saveSnapshot(J,w,K);this.replaceState(C,G||window.location.href)};
z.prototype.saveAndPush=function(C,w,K,G,X){X=X===void 0?{}:X;this.saveSnapshot(this.historyEntryTime,K,G);K=this.historySnapshotCache;G=this.historyEntryTime;var J=K.timeToDataCache.keys();J=_.b(J);for(var q=J.next();!q.done;q=J.next())q=q.value,q>G&&K.timeToDataCache.delete(q);w=this.createNewHistoryEntry(w,X);this.pushState(w,C)};
z.prototype.saveSnapshot=function(C,w,K){this.historySnapshotCache.set(C,new oeg(w,K))};
z.prototype.createNewHistoryEntry=function(C,w,K){K=K===void 0?nCE():K;return new X3c(K,C,w)};
z.prototype.handlePopstate=function(C){var w=e.prototype.handlePopstate.call(this,C),K=null,G=null,X=!1,J=null;w&&w.entryTime&&(J=this.historySnapshotCache.get(w.entryTime)||null,X=w.entryTime>this.historyEntryTime,this.historyEntryTime=w.entryTime,K=w.endpoint,G=w.JSC$30940_savedComponentState);this.handleHistoryCacheLoad(new _.KKg(K,X,J,G),C);return w};
z.prototype.pushState=function(C,w){Number(C==null?void 0:C.entryTime)>=0&&(this.historyEntryTime=C.entryTime);e.prototype.pushState.call(this,C,w)};
z.prototype.replaceState=function(C,w){Number(C==null?void 0:C.entryTime)>=0&&(this.historyEntryTime=C.entryTime);e.prototype.replaceState.call(this,C,w)};
z.prototype.handleHistoryCacheLoad=function(){};
return z}(gn),JWY=function(){var e=A5.call(this,new w3Y)||this;
e.dispatchElement=null;e.entryIndex=0;return e};
_.U(JWY,A5);_.Y=JWY.prototype;_.Y.init=function(e){e=e===void 0?!0:e;A5.prototype.init.call(this);this.initialized||(e||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.Y.handlePopstate=function(e){var z=null;e.state||(z="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return A5.prototype.handlePopstate.call(this,e);var C=new CustomEvent("yt-history-pop",{cancelable:!0});_.eA(this.dispatchElement,"yt-history-pop",[C,{errorMsg:z}]);_.zj(this.dispatchElement,"yt-close-all-popups-action");if(!C.defaultPrevented){C=_.lh().resolve(_.wE);z=C.getCurrentData();var w=C.getCurrentPage();C=0;w?(w=_.eA(this.dispatchElement,"yt-get-page-offset",
[w]),w.length>0&&(C=w[0])):_.AX(new _.uh("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:z?z.page:"undefined"}));z&&(z.csn=_.Pr());this.saveSnapshot(this.historyEntryTime,z,C)}return A5.prototype.handlePopstate.call(this,e)};
_.Y.handleHistoryCacheLoad=function(e,z){e.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.b(_.zj(this.dispatchElement,"yt-history-will-navigate",[z])).next().value||_.eA(this.dispatchElement,"yt-history-load",[z,e]))};
_.Y.pushState=function(e,z){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var C=new _.uh("history.pushState is not a function",this.getDebugString());_.yG(C)}A5.prototype.pushState.call(this,e,z)};
_.Y.replaceState=function(e,z){if(!this.browserHistory.boundHistoryReplaceState){var C=new _.uh("history.replaceState is not a function",this.getDebugString());_.yG(C)}A5.prototype.replaceState.call(this,e,z)};
_.Y.saveAndPush=function(e,z,C,w,K){K=K===void 0?{}:K;C&&(C.csn=_.Pr());A5.prototype.saveAndPush.call(this,e,z,C,w,K)};
_.Y.getDebugString=function(){var e=[];this.initialized&&e.push("i");this.browserHistory.boundHistoryReplaceState&&e.push("bhr");this.browserHistory.boundHistoryPushState&&e.push("bhs");"replaceState"in this.browserHistory.debugInfo&&e.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&e.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&e.push("ei:"+String(this.entryIndex));return e.join(",")};
_.Zk=function(e,z){e.init(!0);var C=e.browserHistory.getState();e.replaceState(C,xT(z))};
JWY.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.pB=new _.Mt("DESKTOP_HISTORY_MANAGER_TOKEN");var kFU=[10,20,30,40,50,60],eG=function(){this.currentPartitionIndex=0},qB4=function(e){tea({mainAppWeb:_.tU(),
survivalSli:{partitionMinute:e,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},xRc=function(e){tea({mainAppWeb:_.tU(),
survivalSli:{partitionMinute:e,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},TT6=function(e){return e.currentPartitionIndex>=0&&e.currentPartitionIndex<kFU.length?kFU[e.currentPartitionIndex]:-1},$R4=function(e){return e.currentPartitionIndex>0&&e.currentPartitionIndex-1<kFU.length?kFU[e.currentPartitionIndex-1]:-1};
eG.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var e=$R4(this);e>0&&xRc(e);e=TT6(this);e>0&&qB4(e);luT(this)}};
var luT=function(e){var z=TT6(e);if(z>0){var C=$R4(e);C<0&&(C=0);e.intervalId=_.c5.addJob(function(){var w=$R4(e);w>0&&xRc(w);w=TT6(e);w>0&&qB4(w);luT(e)},3,(z-C)*6E4);
e.currentPartitionIndex+=1}else e.currentPartitionIndex=-1};var QNh=function(e){U8.call(this,e,132);this.isDocument=e===document.documentElement};
_.U(QNh,U8);QNh.prototype.calculateScrollDelta=function(e,z,C){var w=0;e<z?w=e<z-100?-48:-8:e>z+C&&(w=e>z+C+100?48:8);return w};
QNh.prototype.JSC$11561_onMouseMove=function(e){this.isDocument||(e.clientX=e.event_.pageX,e.clientY=e.event_.pageY);U8.prototype.JSC$11561_onMouseMove.call(this,e)};_.mR6=function(e,z){var C=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14723_dragListGroup=null;this.onDraggerCreated=function(w){var K=w.JSC$11557_dragger;K.scrollTarget_=C.scrollElement;w=w.draggerEl;K&&w.menuOpened&&K.setEnabled(!1)};
this.onDragStart=function(w){var K=w.draggerEl;w=w.currDragItem;var G=Object.assign({},w==null?void 0:w.data);G.trackingParams=void 0;K.data=G;K.style.position="absolute";K.style.width=(w==null?void 0:w.clientWidth)+"px";K.style.zIndex="2030";K.onDrag&&K.onDrag();w=_.t0(K);(G=w.querySelector("ytd-app"))?_.XC(G).appendChild(K):w.body.appendChild(K);C.dragScrollSupport=new QNh(C.scrollElement);C.dragScrollSupport.horizontalScrolling_=!1;K=C.dragScrollSupport;K.constrainScroll_=!!K.margin_&&!1};
this.onDrop=function(w){C.handleDrop(w);C.dragScrollSupport&&(_.XU(C.dragScrollSupport),C.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(C.JSC$14723_dragListGroup){var w=C.JSC$14723_dragListGroup;gfa(w,w.currDragItem_)}};
this.handleDrop=z};
_.z$=function(e){e.JSC$14723_dragListGroup&&(_.ib(e.JSC$14723_dragListGroup,ST6,e.onDragStart),_.ib(e.JSC$14723_dragListGroup,iUg,e.onDragStart),e.JSC$14723_dragListGroup.dispose(),e.JSC$14723_dragListGroup=null);e.dragScrollSupport&&(_.XU(e.dragScrollSupport),e.dragScrollSupport=null);e.scrollElement.removeEventListener("scroll",e.onReorderableScroll)};
_.auS=function(e,z,C,w){w=w===void 0?"":w;_.z$(e);C&&(e.scrollElement=C);e.JSC$14723_dragListGroup=new qV;e.JSC$14723_dragListGroup.hysteresisDistance_=2;soX(e.JSC$14723_dragListGroup,z);e.JSC$14723_dragListGroup.draggerElClasses_=xN("dragging").split(" ");w&&BGC(e.JSC$14723_dragListGroup,function(K){var G=K||document,X=null;G.getElementsByClassName?X=G.getElementsByClassName(w)[0]:X=a0U("*",w,K);return X||K});
_.W9(e.JSC$14723_dragListGroup,Vjg,e.onDraggerCreated);_.W9(e.JSC$14723_dragListGroup,ST6,e.onDragStart);_.W9(e.JSC$14723_dragListGroup,iUg,e.onDrop);e.JSC$14723_dragListGroup.init();e.scrollElement.addEventListener("scroll",e.onReorderableScroll,{passive:!0})};
_.lB.Object.defineProperties(_.mR6.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var nec=function(){this.skipNextNavigation=!1},M7g=function(e,z,C){if(!z)return!1;
if(e.skipNextNavigation)return e.skipNextNavigation=!1;if(_.r(C,_.oO))return!1;var w,K,G;if((w=_.r(C,_.mJ))==null?0:(K=w.browseEndpointContextSupportedConfigs)==null?0:(G=K.browseEndpointContextMainConfig)==null?0:G.skipConfirmation)return!1;var X;return((X=_.r(z.commandMetadata,_.XV))==null?void 0:X.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
nec.prototype.showConfirmationDialog=function(e,z){this.navigateParams=z;this.customConfirmationCommand?_.lh().resolve(_.ms).resolveCommand(this.customConfirmationCommand):(z={openPopupAction:{popup:{confirmDialogRenderer:{title:_.AO(_.kk("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.AO(_.kk("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.AO(_.kk("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.AO(_.kk("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.G4.getInstance().triggerAction("yt-open-popup-action",z,e))};
nec.prototype.cancelPendingNavigation=function(){var e;((e=this.navigateParams)==null?void 0:e.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var rWc=function(){},URa=function(e,z,C,w,K,G,X){C=C===void 0?{}:C;
X=X===void 0?{}:X;var J=_.lh().resolve(_.F9),q,T=(q=_.r(z,_.oO))==null?void 0:q.url;return T?bt7(J,T,C,window.location.href,function(Q,m){Hlh(e,Q,m,!1,!0,C,G,w)},function(){return!1}):Zr(J,z,C,window.location.href,nW(z),function(Q,m){Hlh(e,Q,m,!1,!0,C,G,w)},K,X)},Hlh=function(e,z,C,w,K,G,X,J){if(!e.JSC$14738_chunkHandler)if(C.page==="learning_journey_watch"&&_.M("web_enable_canvas_on_learning_journey")){var q=!_.r(J,_.mJ);
K=K||w;if(q)if(K){if(_.M("kevlar_continue_playback_without_player_response")){var T;var Q=(T=_.r(J,_.N$))==null?void 0:T.videoId}w={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:w,previousVideoId:Q},tempData:G}}else w={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else w={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};e.JSC$14738_chunkHandler=new $7Y(_.ox,w,X,q,K)}else if(C.page==="watch"||C.page==="learning_journey_watch")if(K||w){if(_.M("kevlar_continue_playback_without_player_response")){var m;
q=(m=_.r(J,_.N$))==null?void 0:m.videoId}e.JSC$14738_chunkHandler=new m7h(_.ox,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:w,previousVideoId:q},tempData:G},X)}else e.JSC$14738_chunkHandler=new x7g(_.ox);else C.page==="shorts"&&K&&!w?e.JSC$14738_chunkHandler=new Qja(_.ox,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:G},X):e.JSC$14738_chunkHandler=new Tsg(X);e.JSC$14738_chunkHandler.processChunk({endpoint:z,data:C});return e.JSC$14738_chunkHandler.hU.promise},
veY=function(e,z,C,w,K){(C=_.O5g(C))&&Hlh(e,z,C,!1,!0,w,void 0,K)};_.Iuh=new _.Mt("NAVIGATION_SERVICE_TOKEN");var WKU=function(){this.pendingNavigationPromise=null};
_.Y=WKU.prototype;_.Y.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.Y.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.Y.addEventListener=function(){throw Error("yh");};
_.Y.dispatchEvent=function(){throw Error("yh");};
_.Y.removeEventListener=function(){throw Error("yh");};var PXU=new _.Mt("APP_ROOT");var rxN=null;var RpS=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],CT=function(){_.N3.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];LKS(this)};
_.U(CT,_.N3);CT.prototype.verifyUser=function(){var e=LKS(this),z=e.logout;if(!e.sessionChange)return!0;this.dispatchEvent("ytsessionchange");z&&this.dispatchEvent("ytuserinvalid");return!1};
var LKS=function(e){var z=RpS.map(function(K){var G;return(G=_.E3.get(K))!=null?G:""}),C=z.some(function(K,G){return e.sessionCookies&&e.sessionCookies[G]!==""&&K===""}),w=z.some(function(K,G){return e.sessionCookies&&e.sessionCookies[G]!==K});
e.sessionCookies=z;return{logout:C,sessionChange:w}};
CT.prototype.clearTimeout=function(){this.scheduledJobId&&(_.c5.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var P8E=new _.Mt("POSTMESSAGE_TUNNEL_TOKEN");var vC7=["/parent_tools","/file_download","/artist_roster"],hZL=[zXs,CCC,wZh,ooo,Kgo,eXa,G6L,Y_6];var wi=new _.Mt("NAVIGATION_CONFIRMATION_SERVICE");var hpc="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),OlC=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],KT=function(e,z){this.pendingNavigationPromise=null;this.JSC$14761_clientRoot=e;this.historyManager=z;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 rWc;this.debugString=e.is;e={"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};_.YI(_.G4.getInstance(),e,this.JSC$14761_clientRoot)},SBL,uB4,dRa,DRa,fuL;
_.U(KT,WKU);KT.prototype.reload=function(){_.dP(window.location.href)};
var Vzc=function(e){e.currentEndpoint&&_.r(e.currentEndpoint,_.rP)?e.reload():e.currentEndpoint&&e.navigate(e.currentEndpoint,!0,void 0,{disableCache:!0})};
KT.prototype.navigate=function(e,z,C,w,K,G,X,J){z=z===void 0?!1:z;C=C===void 0?{}:C;w=w===void 0?{}:w;var q=_.lh().resolve(wi),T;if(!X&&M7g(q,(T=this.currentEndpoint)!=null?T:void 0,e))return q.showConfirmationDialog(this.JSC$14761_clientRoot.parentElement,{endpoint:e,reload:z,params:C,tempData:w,requestType:K,createScreenConfig:G}),!1;var Q=_.Il();_.Wc(Q,"eocs")||Q.parkOrScheduleJob(function(){Q.processSignal("eocs")},10,"eor");
HXN();X=nW(e);q=w.autonav==="1";T=_.Pr();CT.instance||(CT.instance=new CT);var m=CT.instance.verifyUser(),a;if(_.M("enable_dark_theme_only_on_shorts")){var n=document.documentElement.hasAttribute("dark"),H=_.i6(!0)==="USER_INTERFACE_THEME_DARK";if(X==="shorts"){if(!n)if(_.M("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var I;_.dP((I=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:I.url,void 0,void 0,window.top)}}else{var L;_.dP(_.bh((L=_.r(e==
null?void 0:e.commandMetadata,_.XV))==null?void 0:L.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.M("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!n){var h;_.dP(_.bh((h=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:h.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(H!==n){var E;_.dP(_.bh((E=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:E.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(X==="watch"){if(Ee4(_.lh().resolve(_.gh),
e)&&(m||_.M("fix_miniplayer_navigation_killswitch")))return!1;_.M("block_all_player_prefetch_requests")||(a=E7h(_.bH(_.yJ),e,q))}else{var N,D=(N=_.r(this.currentEndpoint,_.N$))==null?void 0:N.videoId;D&&_.kb.getInstance().then(function(fo){fo&&fo.set("yt-miniplayer-shown-video-id",D)})}a&&(C.frags=a.missingFragments_.join(","));
I=null;var g;L=(g=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:g.ignoreNavigation;if(!L)if(_.M("kevlar_command_url")){var y;I=(y=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?void 0:y.url}else I=_.XFo(e,C);if(I&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&I==this.lastNavigationUrl)return _.Pf({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.rh(Fu(),"CANCELLED")}I&&(this.lastNavigationUrl=I);wp8();_.g1("IS_HOMEPAGE_COLD",
!1);_.g1("IS_RESULTS_PAGE_COLD",!1);_.g1("IS_WATCH_PAGE_COLD",!1);e.loggingUrls&&e.loggingUrls.forEach(function(fo){fo.baseUrl&&_.GE(fo.baseUrl)});
_.VKL(e,G?G.layer:0)&&_.M("kevlar_flush_logs_on_away_navigation")&&_.ju();if(OXN(e))return!1;TrU(X,K);if(!I)return L||_.AX(new _.uh("Can't construct url for endpoint",e)),_.rh(Fu(),"FAILURE"),!1;_.Uck();g=e&&_.r(e,_.mJ)&&_.r(e,_.mJ).browseId.startsWith("UC");C=(y=_.M("enable_dark_theme_only_on_shorts")&&X==="shorts"?!1:_.Np()&&document.documentElement.hasAttribute("dark")!==_.Dc())?{themeRefresh:1}:{};y&&!_.Vj()&&_.i6()==="USER_INTERFACE_THEME_DARK"&&(C.theme="dark");g=y||FKh(I)&&!g&&!_.M("kevlar_disable_url_allowlist");
m||(g=!0);if(g||_.j5("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Z;var YN=(Z=window.top)==null?void 0:Z.location.href}catch(fo){var Jk;YN=(Jk=fo)==null?void 0:Jk.message}_.AX(new _.uh("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:YN}))}e=_.M("kevlar_redirect_on_window_killswitch")?window.top:window;u6(I);_.dP(_.bh(I,C),void 0,void 0,e);_.rh(Fu(),"ABORTED");return!1}_.M("kevlar_early_popup_close")&&_.eA(this.JSC$14761_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14738_chunkHandler=void 0;var v1;YN=nW((v1=this.currentEndpoint)!=null?v1:void 0);(v1=X==="shorts"&&YN==="shorts")||_.ptN();_.Z_(DB5)("nr",void 0);q&&_.Pf({webInfo:{navigationReason:"an"}});e.clickTrackingParams&&(w.itct=e.clickTrackingParams,w.csn=T);Cc4(w);w.endpoint=JSON.stringify(e);_.M("enable_unknown_lact_fix_on_html5")&&(_.lh().resolve(_.UT),w.lact=_.aC());_.de.isEmpty(w)||_.gN(I,w);!_.M("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(G=Object.assign({},{layer:0},G,{parentLayer:3}));this.pendingNavigationPromise=G=URa(this.pageFetcher,e,w,this.currentEndpoint,this.JSC$14761_isNetworkPromiseStale.bind(this),G,J);G=G.then(this.handleNavigateSuccess.bind(this,G,e,a,w),this.handleNavigateFail.bind(this,G,e));_.C3().navigationFinishPromise=G;z={endpoint:e,pageType:X,url:xT(I),reload:!!z,noProgressBar:v1};K&&(z.type=K);var lg;K=_.Q$((lg=this.currentEndpoint)!=null?lg:null);lg=_.Q$(e!=null?e:null);this.fireEvent("yt-navigate-start",
z);var M5;(M5=_.lh().resolve(_.$B(_.Iuh)))==null||M5.publish("navigation-start",{sourcePageSubtype:K,destinationPageSubtype:lg});a&&veY(this.pageFetcher,e,a,w,this.currentEndpoint);return!0};
KT.prototype.JSC$14761_isNetworkPromiseStale=function(e){return e!=this.pendingNavigationPromise};
var V7c=function(e,z,C,w,K){var G=nW(z);z={endpoint:z,pageType:G};K&&(z.errorMessage=K);_.AX(C);z.navigationDoneMs=_.hg("nd");z.navigationErrorReason=w;e.fireEvent("yt-navigate-error",z)};
KT.prototype.handleNavigateFail=function(e,z,C){var w=void 0;C instanceof _.g$&&(w=C,Yz5(C));if(this.JSC$14761_isNetworkPromiseStale(e))return _.R5(w);_.rh(Fu(),"FAILURE");V7c(this,z,C,"101");return _.R5(C)};
KT.prototype.handleNavigateSuccess=function(e,z,C,w,K){if(this.JSC$14761_isNetworkPromiseStale(e))return _.oS();this.pendingNavigationPromise=null;if(!K)return z=new _.uh("Missing data in response for navigation endpoint",z),_.R5(z);if(K.reload)return window.location.reload(!0),_.oS();C&&(e={},_.de.extend(e,_.O5g(C),K),K=e);var G,X;C=(G=K)==null?void 0:(X=G.timing)==null?void 0:X.responseStart;C!=null&&_.hg("srt",C);_.hg("pdc");var J,q;G=(J=K)==null?void 0:(q=J.timing)==null?void 0:q.info;G!=null&&
(J=_.Z_(_.BUL)(G),_.Pf(J));_.rh(Fu(),"SUCCESS");fuL(this,z,K,1,w);return _.oS()};
var FKh=function(e){var z=e;_.M("kevlar_no_redirect_to_classic_2_ks")||(z=(new _.sX(e)).getPath());if(z==="/"||z==="/red")return!1;var C=!0;hpc.forEach(function(w){e.indexOf(w)===0&&(C=!1)});
OlC.forEach(function(w){var K=w.url;_.M(w.expFlag)&&e.indexOf(K)===0&&(C=!1)});
return C};
KT.prototype.publishPageData=function(e){this.fireEvent("yt-page-data-fetched",{pageData:e})};
SBL=function(e,z,C,w,K,G){var X=null;z.page!=="watch"&&z.page!=="learning_journey_watch"||w?z.filler||_.eA(e.JSC$14761_clientRoot,"yt-stop-old-player",[z]):X=Hlh(e.pageFetcher,K,z,C,!1,G,void 0,e.currentEndpoint);if(X)return X.then(e.publishPageData.bind(e,z));e.publishPageData(z);return _.oS()};
uB4=function(e,z,C){var w=null;if(!C)return w=new _.uh("Empty data",e.debugString,z);var K=C.response;if(!K)return w;var G={endpointType:nW(z)||"unknown"};K.responseContext?(K=K.responseContext.errors)&&(w=new _.uh("Errors in response context",e.debugString,z,K,G)):w=K.error||K.errorMetadata?new _.uh("Errors in response",e.debugString,z,K.error,K.errorMetadata,G):new _.uh("responseContext missing",e.debugString,z,Object.keys(K).sort().join(","),G);var X,J,q,T;if(e=C==null?void 0:(X=C.response)==null?
void 0:(J=X.responseContext)==null?void 0:(q=J.webResponseContextExtensionData)==null?void 0:(T=q.webResponseContextDebugData)==null?void 0:T.debugErrorMessages)for(X=0;X<e.length;X++);return w};
dRa=function(e){var z,C,w,K;return e==null?void 0:(z=e.response)==null?void 0:(C=z.responseContext)==null?void 0:(w=C.errors)==null?void 0:(K=w.error)==null?void 0:K["0"]};
DRa=function(e,z){var C;if(C=z.url&&!z.url.startsWith("/clip"))C=z.url,C=!_.M("webfe_parse_debug_param_in_resolveurl_service")&&e.searchDebugUrlMatcher.test(C)||QSg(C)?!0:!1;if(C)QSg(z.url)&&_.YB(window.location.href).themeRefresh?(z=_.jy(z.url,"themeRefresh"),_.Zk(e.historyManager,z)):z.url&&!Qag(z.url)&&_.Zk(e.historyManager,z.url);else if(z.endpoint){var w,K,G;(C=(w=z.endpoint)==null?void 0:(K=w.commandMetadata)==null?void 0:(G=K.webCommandMetadata)==null?void 0:G.url)&&!Qag(C)&&_.Zk(e.historyManager,
C);C&&z.url&&C!=z.url&&!z.url.match("playnext=1")&&new _.uh("Response url mismatch in response data",e.debugString,C,z.url)}};
_.il4=function(e,z,C,w,K,G,X,J){G=G===void 0?!1:G;var q=_.lh().resolve(wi),T;if(!J&&M7g(q,(T=e.currentEndpoint)!=null?T:void 0,z))return q.showConfirmationDialog(e.JSC$14761_clientRoot.parentElement,{endpoint:z,data:C,navigationType:w,tempData:K,isMiniplayer:G,isForwardHistoryNavigation:X==null?void 0:X.forward}),_.oS();e.pageFetcher.JSC$14738_chunkHandler=void 0;return fuL(e,z,C,w,K,G)};
fuL=function(e,z,C,w,K,G){G=G===void 0?!1:G;e.isMiniplayerExpansion=G;var X=w===2;e.currentEndpoint=z;e.numNavigations++;e.numNavigations&&(NHm.navigationCount=e.numNavigations);_.g1("NUM_NAV",e.numNavigations);var J=uB4(e,z,C);if(J)return V7c(e,z,J,"102",dRa(C)),_.R5(J);var q,T,Q,m;J=C.rootVe||(C==null?void 0:(q=C.response)==null?void 0:(T=q.responseContext)==null?void 0:(Q=T.webResponseContextExtensionData)==null?void 0:(m=Q.ytConfigData)==null?void 0:m.rootVisualElementType);!X&&C&&DRa(e,C);var a,
n;q=C==null?void 0:(a=C.response)==null?void 0:(n=a.responseContext)==null?void 0:n.maxAgeSeconds;if(!X&&!isNaN(q)){var H;_.M("kevlar_use_response_ttl_to_invalidate_cache")?H=(0,_.as)()+1E3*q:_.M("kevlar_always_invalidate_cache")&&(H=0);isNaN(H)||(C.expirationTime=H)}_.bH(_.yJ).prefetchCache_.clear();X||C.page!=="watch"||w!==1?w=SBL(e,C,X,!!G,z,K):(e.publishPageData(C),w=_.oS());K=w.then(function(){var I=nW(z);I={endpoint:z,pageType:I,fromHistory:X,response:C};I.navigationDoneMs=_.hg("nd");e.fireEvent("yt-navigate-finish",
I);var L;(L=_.lh().resolve(_.$B(_.Iuh)))==null||L.publish("navigation-end")});
C.csn&&J&&C.clientSideGrafts&&w.then(e.attachClientSideGrafts.bind(e,C,_.Ip()));return K};
_.Y=KT.prototype;_.Y.attachClientSideGrafts=function(e,z){e.clientSideGrafts&&z&&e.clientSideGrafts.forEach(function(C){if(z&&C){var w=_.v9(C);_.M("combine_ve_grafts")?_.nm().graftServerVe(C,z):_.id(e.csn,z,w)}})};
_.Y.handleSignalActionHistoryBack=function(){window.history.back()};
_.Y.handleSignalActionCloseWindow=function(){window.close()};
_.Y.handleSignalActionReloadPage=function(){this.reload()};
_.Y.handleSignalActionSoftReloadPage=function(){Vzc(this)};
_.Y.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.Y.fireEvent=function(e,z){e=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:z});this.dispatchEvent(e)};
_.Y.addEventListener=function(e,z){this.JSC$14761_clientRoot.addEventListener(e,z)};
_.Y.dispatchEvent=function(e){return this.JSC$14761_clientRoot.dispatchEvent(e)};
_.Y.removeEventListener=function(e,z){this.JSC$14761_clientRoot.removeEventListener(e,z)};
KT[Qj]=[PXU,_.pB];_.Tvg=new l9("browse","h8y2qb");_.$91=new l9("search","JzFVk");_.lx1=new l9("shorts","xwEKAe");_.Q1E=new l9("watchFixie","nmfa2d");_.m9g=new l9("watchFlexy","CF909");_.ax1=new l9("watchGrid","Tm0L3c");_.nrm=new l9("watchLearningJourney","L3n37");var NTg;var sNa=function(){return _.V.apply(this,arguments)||this};
_.U(sNa,_.V);_.lB.Object.defineProperties(sNa,{template:{configurable:!0,enumerable:!0,get:function(){if(NTg===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);NTg=e}e=NTg;return e}}});
_.d([_.W(sfL.YtPlayerBehavior),_.B("design:type",Object)],sNa.prototype,"ytPlayerBehavior",void 0);_.d([_.SL({is:"ytd-player"})],sNa);var BTg;var t7c;var ges;var ow=function(){var e=_.V.apply(this,arguments)||this;e.forceModernIconButton=!1;e.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return e};
_.U(ow,_.V);ow.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]]"}}}}}};
ow.prototype.handleAccountLinkingStateChangedCommand=function(e){if(e=_.r(e,HAg)){var z,C=(z=this.data)==null?void 0:z.providerKey;z=e.providerKey;C&&z&&C.id===z.id&&C.subject===z.subject&&(e=e.linked,e!==void 0&&(this.set("data.linked",e),this.notifyPath("data.linked"),_.M("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(e)))}};
ow.prototype.setPlayerAccountLinkState=function(e){var z=new d4s;D44(z,Sfa(new fwa,e));var C=_.ox();C&&C.getPlayerPromise().then(function(w){w.setAccountLinkState(_.FY(z.JSC$12488_serializeBinary(),4));w.updateAccountLinkingConfig(e)})};
ow.prototype.handleShowAccountLinkDialog=function(){var e=this.get("button.buttonRenderer.command");e&&_.Yk([e],this.hostElement)};
_.lB.Object.defineProperties(ow.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}}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.d([_.W([_.ch.YtActionHandlerBehavior]),_.B("design:type",Object)],ow.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ow.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],ow.prototype,"overrides",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ow.prototype,"forceModernIconButton",void 0);_.d([_.F({value:"bottom"}),_.B("design:type",String)],ow.prototype,"buttonTooltipPosition",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],ow.prototype,"forceIconButton",void 0);_.d([_.F(),_.B("design:type",Boolean)],ow.prototype,"disableTextTransform",void 0);
_.d([_.P("data","data.linked","data.isWarning"),_.B("design:type",Object),_.B("design:paramtypes",[])],ow.prototype,"button",null);_.d([_.SL({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],ow);
_.u(ow,"ytd-account-link-button-renderer",function(){if(ges!==void 0)return ges;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ges=e},{mode:1});var jNa;var yWC=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],G$=function(){return _.V.apply(this,arguments)||this};
_.U(G$,_.V);G$.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
G$.prototype.updateButtonActiveState=function(){var e=this,z=!!yWC.find(function(C){return e.currentState===C});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.M("enable_web_delhi_icons")&&(z=!1);this.button&&(this.button.isPressed=z)};
_.lB.Object.defineProperties(G$.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.playlistLoopStateEntity)==null?void 0:e.state)||((z=this.data)==null?void 0:z.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var e=void 0,z;if(this.currentState&&((z=this.data)==null?0:z.states)){z=_.b(this.data.states);for(var C=z.next();!C.done;C=z.next()){C=_.r(C.value,_.uAg);var w=void 0;if(((w=C)==null?void 0:w.state)===this.currentState){e=C;break}}}return e}}});
G$.prototype.updateButtonActiveState=G$.prototype.updateButtonActiveState;_.d([_.W(_.QX),_.B("design:type",Object)],G$.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.b9.playlistLoopStateEntitySelector}),_.B("design:type",Object)],G$.prototype,"playlistLoopStateEntity",void 0);_.d([_.F(),_.B("design:type",Object)],G$.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],G$.prototype,"forceIconOnly",void 0);_.d([_.nP("ytd-button-renderer"),_.B("design:type",_.Sw)],G$.prototype,"button",void 0);
_.d([_.P("data","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],G$.prototype,"currentState",null);_.d([_.mi("currentButtonStateRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G$.prototype,"updateButtonActiveState",null);_.d([_.P("currentState"),_.B("design:type",Object),_.B("design:paramtypes",[])],G$.prototype,"currentButtonStateRenderer",null);
_.d([_.SL({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],G$);
_.u(G$,"ytd-playlist-loop-button-renderer",function(){if(jNa!==void 0)return jNa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return jNa=e},
{mode:1});var cWa;var AWs=_.kk("DOWNLOAD",{},"Download"),Zl4=_.kk("DOWNLOADING",{},"Downloading"),p3C=_.kk("DOWNLOADED",{},"Downloaded"),erT=_.kk("RETRY",{},"Retry"),YX=function(){var e=_.V.apply(this,arguments)||this;e.forceIconButton=!1;e.forceIconOnly=!1;e.overrides=!1;e.buttonTooltipPosition=!1;e.styleActionButton=!1;e.disableTextTransform=!1;e.downloadProgress=0;e.isDownloadComplete=!1;e.isHidden=!0;e.transferState="TRANSFER_STATE_UNKNOWN";e.isVideoDeletedByUser=!1;e.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return e};
_.U(YX,_.V);_.Y=YX.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.dataChanged=function(){var e;(e=this.data)!=null&&e.text||(e=_.dk(_.eB().getState(),this.videoId),this.updateButtonState(e))};
_.Y.computeVideoId=function(e){return e};
_.Y.computePlayerStateEntityKey=function(e){return e};
_.Y.showHideButton=function(){this.updateButtonVisibility()};
_.Y.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var e;((e=this.playerStateEntity)==null?void 0:e.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.Y.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Y.updateButtonState=function(e){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Zl4||!_.HH(e))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(e){case "TRANSFER_STATE_UNKNOWN":e=AWs;var z="OFFLINE_DOWNLOAD";var C="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":e=erT;z="OFFLINE_DOWNLOAD";C="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":e=p3C;z="OFFLINE_PIN";C="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":e=
Zl4;z="OFFLINE_DOWNLOADING_ZERO";C="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":e=erT;z="OFFLINE_DOWNLOAD";C="ACTION_RETRY";break;default:e=AWs,z="OFFLINE_DOWNLOAD",C="ACTION_ADD"}this.isVideoDeletedByUser&&(e=AWs,z="OFFLINE_DOWNLOAD",C="ACTION_ADD");var w=Object.assign({},this.data);w.text=_.AO(e);w.tooltip=e;w.icon={iconType:z};w.size="SIZE_DEFAULT";w.style="STYLE_DEFAULT";_.r(w.command,_.HF)&&(_.r(w.command,_.HF).action=C);this.set("data",w)}};
_.Y.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var e="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?e="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?e="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?e="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?e="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?e="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(e="OFFLINE_PIN",this.isDownloadComplete=!0);var z;e!==((z=this.data.icon)==null?void 0:z.iconType)&&(z=Object.assign({},this.data),z.text=_.AO(Zl4),z.tooltip=Zl4,z.icon={iconType:e},_.r(z.command,_.HF)&&(_.r(z.command,_.HF).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",z))}};
YX.prototype.updateProgress=YX.prototype.updateProgress;YX.prototype.onTransferStateChanged=YX.prototype.onTransferStateChanged;YX.prototype.showHideButton=YX.prototype.showHideButton;YX.prototype.dataChanged=YX.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],YX.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],YX.prototype,"forceIconButton",void 0);
_.d([_.F(),_.B("design:type",Object)],YX.prototype,"forceIconOnly",void 0);_.d([_.F(),_.B("design:type",Object)],YX.prototype,"overrides",void 0);_.d([_.F(),_.B("design:type",Object)],YX.prototype,"buttonTooltipPosition",void 0);_.d([_.F(),_.B("design:type",Object)],YX.prototype,"styleActionButton",void 0);_.d([_.F(),_.B("design:type",Object)],YX.prototype,"disableTextTransform",void 0);
_.d([_.F({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.B("design:type",String)],YX.prototype,"videoId",void 0);_.d([_.F({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.B("design:type",String)],YX.prototype,"playerStateEntityKey",void 0);_.d([_.F(),_.B("design:type",Object)],YX.prototype,"data",void 0);_.d([_.F({selector:i7,selectorArgs:["videoId"]}),_.B("design:type",Object)],YX.prototype,"downloadProgress",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],YX.prototype,"isDownloadComplete",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],YX.prototype,"isHidden",void 0);_.d([_.F({selector:_.dk,selectorArgs:["videoId"]}),_.B("design:type",String)],YX.prototype,"transferState",void 0);_.d([_.F({selector:_.Kj5,selectorArgs:["videoId"]}),_.B("design:type",Object)],YX.prototype,"isVideoDeletedByUser",void 0);
_.d([_.F({selector:ZE8,selectorArgs:["videoId"]}),_.B("design:type",Object)],YX.prototype,"offlineabilityState",void 0);_.d([_.F({selector:_.xf,selectorArgs:["playerStateEntityKey"]}),_.B("design:type",Object)],YX.prototype,"playerStateEntity",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],YX.prototype,"showTooltips",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],YX.prototype,"sendCommandWhenDisabled",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],YX.prototype,"disabled",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YX.prototype,"dataChanged",null);_.d([_.Ux("offlineabilityState","playerStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YX.prototype,"showHideButton",null);
_.d([_.Ux("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YX.prototype,"onTransferStateChanged",null);_.d([_.Ux("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YX.prototype,"updateProgress",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],YX);
_.u(YX,"ytd-download-button-renderer",function(){if(cWa!==void 0)return cWa;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return cWa=e},{mode:2});var zrs;var CuU,wGT=function(){if(CuU!==void 0)return CuU;var e=document.createElement("template");_.v(e,'\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 CuU=e};var KwU=_.M("web_button_rework")&&_.cR("BUTTON_REWORK")||_.M("web_button_rework_with_live"),oFa=_.n0("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,bT=function(){var e=_.V.apply(this,arguments)||this;e.isPressed=!1;e.forceIconButton=!1;e.forceIconOnly=!1;e.forceModernIconButton=!1;e.alignByText=!1;e.isShorts=!1;e.animatedText=!1;e.shouldAnimate=!1;e.JSC$14799_browserSupportsAnimation=_.M("web_supports_animations_api");e.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};e.onTap=function(){var z;if((z=e.data)==null||!z.defaultNavigationEndpoint){var C;z=!((C=e.data)==null?0:C.isToggled);var w;if((w=e.data)==null||!w.preventAutoToggle){e.shouldAnimate=!1;e.disableTextUpdateJobId&&_.c5.cancelJob(e.disableTextUpdateJobId);e.disableTextUpdateJobId=_.c5.addLowPriorityJob(function(){e.disableTextUpdateJobId=void 0},oFa);
var K;e.set("data.isToggled",!((K=e.data)==null?0:K.isToggled));C=e.getInnertubeIcon();w={toggled:z,actions:{}};C&&(w.actions[C.toLowerCase()]=z);_.pi(e.hostElement,"yt-toggle-button",w)}}};
return e};
_.U(bT,_.V);_.Y=bT.prototype;_.Y.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.c5.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.toggle=function(e){var z;this.set("data.isToggled",e!==void 0?e:!((z=this.data)==null?0:z.isToggled))};
_.Y.handleUpdateToggleButtonStateCommand=function(e){if(this.data){e=_.r(e,RLg);var z,C,w,K=(z=this.data)==null?void 0:(C=z.toggleButtonSupportedData)==null?void 0:(w=C.toggleButtonIdData)==null?void 0:w.id;K&&e&&K===(e==null?void 0:e.buttonId)&&this.set("data.isToggled",e.toggled)}};
_.Y.handleUpdateToggleButtonTextAction=function(e){if(this.data){e=_.r(e,c5a);var z,C,w,K=(z=this.data)==null?void 0:(C=z.toggleButtonSupportedData)==null?void 0:(w=C.toggleButtonIdData)==null?void 0:w.id;K&&e&&K===(e==null?void 0:e.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=e.defaultNumericalValue,this.set("data.defaultText",e.defaultText),this.set("data.toggledText",e.toggledText),this.shouldAnimate=!1)}};
_.Y.getInnertubeIcon=function(){var e=this.data;if(e){var z,C,w=((z=e.defaultIcon)==null?0:z.iconType)?(C=e.defaultIcon)==null?void 0:C.iconType:null,K,G;z=((K=e.toggledIcon)==null?0:K.iconType)?(G=e.toggledIcon)==null?void 0:G.iconType:w;return e.isToggled?z:w}};
_.Y.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.lB.Object.defineProperties(bT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e={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$14799_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var z=e.renderer;var C=e.element;var w=e.toggled;var K=e.onTapCallback;var G=e.commandClientArgs;var X=e.overrides;var J=e.forceIcon;var q=e.forceModernIconButton;var T=e.forceDisabled;var Q=e.useAnimatedText;var m=e.animatedTextProps;e=uvs(z,w);J=!z.defaultIcon||!J&&z.defaultText?z.defaultIcon?"leading":void 0:q?"icon-only":"icon-only-40";J==="icon-only-40"&&(e.type="text");var a;q=Object;var n=q.assign,H;a:switch((H=
z.style)==null?void 0:H.styleType){case "STYLE_COMPACT_GRAY":H={size:"S"};break a;default:H={size:"M"}}var I=!!w;var L=(L=w&&z.toggledText||z.defaultText)?_.Em(L):void 0;Q?(Q=_.Zd(w&&z.toggledText||z.defaultText))&&m&&!isNaN(Number(m.numberValue))?(m.numberText=Q,w&&(m.numberValue+=1),Q=m):Q=void 0:Q=void 0;var h,E,N,D;var g=(m=((E=w?z.toggledAccessibilityData||((g=z.toggledText)==null?void 0:g.accessibility):z.accessibilityData||((h=z.defaultText)==null?void 0:h.accessibility))==null?void 0:(N=E.accessibilityData)==
null?void 0:N.label)||((D=z.accessibility)==null?void 0:D.label))?m:_.Zd(w&&z.toggledText||z.defaultText);T=T===void 0?z.isDisabled:T;C=So7(z,w,K,C,G);w=fBh(z,w);w!=null&&w.length?(w=_.Df({innertubeCommand:r31(w),forceNewState:!0}),w=iA(w)?w:void 0):w=void 0;z=n.call(q,{},e,H,{iconPosition:J},X,{focused:!1,toggled:I,toggleable:!0,formattedButtonText:L,animatedTextProps:Q,accessibilityLabel:g,disabled:T,onTap:C,aTagConfig:w},cjg((a=z.colorData)==null?void 0:a.basicColorPaletteData));z.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(z.type="filled");return z}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var e=this.getInnertubeIcon();if(e)return _.qF(e)}}});
bT.prototype.resetAnimation=bT.prototype.resetAnimation;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],bT.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],bT.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],bT.prototype,"isPressed",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"forceIconButton",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"forceIconOnly",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"forceModernIconButton",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"alignByText",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"overrides",void 0);
_.d([_.F(),_.B("design:type",Boolean)],bT.prototype,"disabled",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"isShorts",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"buttonTooltipPosition",void 0);_.d([_.F(),_.B("design:type",Object)],bT.prototype,"animatedText",void 0);_.d([_.F(),_.B("design:type",String)],bT.prototype,"textNumberValue",void 0);_.d([_.F({computed:"computeTooltip(data, data.isToggled)"}),_.B("design:type",Object)],bT.prototype,"tooltip",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bT.prototype,"resetAnimation",null);_.d([_.P("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.B("design:type",Object),_.B("design:paramtypes",[])],bT.prototype,"computedButtonShape",null);_.d([_.P("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],bT.prototype,"computedIcon",null);
_.d([_.SL({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],bT);KwU&&_.u(bT,"ytd-toggle-button-renderer",wGT,{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var GIh=_.f(function(e){function z(T){var Q;return _.k(function(m){if(m.nextAddress==1)return(Q=!Dc8(T,J())||!J().enabled)?m.jumpTo(2):m.yield(tKs(),3);m.nextAddress!=2&&(Q=m.yieldResult);if(Q)return m.return();C();setTimeout(function(){X(!1)},1500);
_.E_(m)})}
function C(){setTimeout(function(){X(!0);var T;(T=w.lottieEl)==null||T.goToAndPlay(0)},150)}
var w=_.MK(),K=_.b(_.II(!1,void 0,"UfUosc")),G=K.next().value,X=K.next().value,J=_.pP(e.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.sg(function(){var T,Q;((T=e.settings)==null?void 0:(Q=T.call(e))==null?void 0:Q.uniqueId)==="this is not intended behavior"&&_.AX(new _.uh("Smartimation Settings is undefined"))});
_.sH(function(){J().experimentEnabled&&(J().enabled?iX7(z):(X(!1),NV8(z)),_.BC(function(){NV8(z)}))},"IHhVmc");
_.sH(function(){J().timings.join("");J().experimentEnabled&&(sak(J()),_.BC(function(){BVh(J())}))},"fsfhOe");
var q=_.hG(function(){var T=w,Q=J().uniqueId+"-border",m,a;var n="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((a=(m=_.lh().resolve(_.$B(_.jQ)))==null?void 0:m())!=null&&a?"dark":"light")+"_v2.json";return{animationRef:T,animationConfig:{name:Q,autoplay:!1,loop:!1,path:n}}},void 0,"UWvUGe");
K={};return _.x("yt-smartimation",{class:_.qT(e.className,"smartimation",(K["smartimation--experiment-enabled"]=function(){return J().experimentEnabled},K["smartimation--active-border"]=G,K["smartimation--enable-masking"]=gCk(),K))},_.x(_.l,{cond:function(){return J().experimentEnabled},
then:function(){return _.x("div",{class:"smartimation__border"},_.x(_.AY,{className:"smartimation__border-gradient",data:q,animationName:function(){return q().animationConfig.name}}))}}),_.x("div",{class:"smartimation__content"},e.children))},"ha");
GIh.idomCompat=!0;_.KU(GIh,"yt-smartimation",{props:{className:_.vh,settings:_.vh}});var Xk=function(){var e=_.V.apply(this,arguments)||this;e.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};e.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};e.shouldEnableSmartimation=!1;return e};
_.U(Xk,_.V);Xk.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Xk.prototype.onDataChanged=function(){var e,z;this.shouldEnableSmartimation=(((e=this.data)==null?void 0:(z=e.timedAnimationData)==null?void 0:z.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Xk.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var e=_.r(this.data.likeButton,_.nH),z=_.r(this.data.dislikeButton,_.nH);return!!((e==null?0:e.isToggled)||(z==null?0:z.isToggled))};
Xk.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]]"}}}}}};
_.lB.Object.defineProperties(Xk.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var e,z,C=((e=this.data)==null?void 0:(z=e.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"like-dislike",timings:C,enabled:this.shouldEnableSmartimation,experimentEnabled:C.length>0}}}});
Xk.prototype.onDataChanged=Xk.prototype.onDataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Xk.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xk.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Xk.prototype,"likeButtonOverride",void 0);_.d([_.F(),_.B("design:type",Object)],Xk.prototype,"dislikeButtonOverride",void 0);
_.d([_.P("shouldEnableSmartimation"),_.B("design:type",Object),_.B("design:paramtypes",[])],Xk.prototype,"smartimationSettings",null);_.d([_.mi("data"),_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xk.prototype,"onDataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Xk);
_.u(Xk,"ytd-segmented-like-dislike-button-renderer",function(){if(zrs!==void 0)return zrs;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return zrs=e},{mode:1});var YhY;var bSc;(bSc=document.body)==null||bSc.setAttribute("rounded-container","");var XGS={};XGS.YtToggleButtonBehavior=[_.ch.YtActionHandlerBehavior,wy.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 e=this.data.isToggled;if(!this.isModal_(e)){if(!this.data.preventAutoToggle){this.toggle();var z={toggled:this.data.isToggled,actions:{}};z.actions[this.buttonIcon]=this.data.isToggled;_.pi(this.hostElement,"yt-toggle-button",z)}z=this.data.defaultServiceEndpoint||null;var C=this.data.toggledServiceEndpoint||null;if(z&&C||z&&this.data.preventAutoToggle)e=e?C:z,z=this.disableCommandHandlerOverride,_.M("killswitch_toggle_button_behavior_resolve_command")||z?_.wQ(this.hostElement,
[e]):_.$p(e,this.hostElement),_.pi(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:e})}},
stateChanged_:function(){var e=this.data;if(e){var z=e.isToggled;this._setEndpoint(this.computeEndpoint_(e));this._setServiceEndpoint(this.computeServiceEndpoint_(e));this._setButtonIcon(this.computeButtonIcon_(e,z));this._setButtonText(this.computeButtonText_(e,z));this._setButtonAccessibility(this.computeAccessibility_(e,z));this._setButtonTooltip(this.computeTooltip_(e,z));this._setButtonClass(this.computeButtonClass_(e,z));this._setIconPositionType(this.computeIconPositionType_(e));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=z):this.elements_.button.setAttribute("aria-pressed",z));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=z)}},
shouldSetIconActiveState_:function(){return _.M("kevlar_system_icons")},
toggle:function(e){this.set("data.isToggled",e!==void 0?e:!this.data.isToggled);_.M("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(e){if(e){var z,C;return!!((z=this.data)==null?0:(C=z.toggledServiceEndpoint)==null?0:C.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(e){return e&&e.defaultNavigationEndpoint||null},
computeButtonIcon_:function(e,z){var C=e&&e.defaultIcon?_.qF(e.defaultIcon.iconType):null;e=e&&e.toggledIcon?_.qF(e.toggledIcon.iconType):C;return z?e:C},
handleUpdateToggleButtonStateCommand_:function(e){e=e.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==e.buttonId&&this.toggle(e.toggled)},
computeButtonText_:function(e,z){return e?z&&e.toggledText||e.defaultText||null:null},
computeAccessibility_:function(e,z){return e?(z?this.get("toggledAccessibilityData.accessibilityData",e):this.get("accessibilityData.accessibilityData",e))||e.accessibility||null:null},
computeTooltip_:function(e,z){return e?z&&e.toggledTooltip||e.defaultTooltip||null:null},
computeButtonClass_:function(e,z){if(!e)return"";var C="",w=e.toggledStyle||e.style;if(z=z?w:e.style){z.styleType&&(z=z.styleType);try{C+=z.toLowerCase().replace(/_/g,"-")+" "}catch(K){_.Zz(K,z,typeof z),_.AX(K)}}if(e=e.size){e.sizeType&&(e=e.sizeType);try{C+=e.toLowerCase().replace(/_/g,"-")+" "}catch(K){_.Zz(K,e,typeof e),_.AX(K)}}return C.trim()},
computeIconPositionType_:function(e){return e&&e.iconPosition||null},
computeServiceEndpoint_:function(e){var z=e&&e.serviceEndpoint,C=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return z?z:C&&e.command?e.command:null},
handleUpdateToggleButtonTextAction_:function(e){e=e.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==e.buttonId&&(this.set("data.defaultText",e.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",e.toggledText),this.notifyPath("data.toggledText"))}}];_.hq("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var JyY=_.M("web_button_rework")&&_.cR("BUTTON_REWORK")||_.M("web_button_rework_with_live"),JB=function(){var e=_.V.apply(this,arguments)||this;e.systemIcons=_.M("kevlar_system_icons");e.roundedContainer=!0;return e};
_.U(JB,_.V);JB.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
JB.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var e=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var z={toggled:!!this.data.isToggled,actions:{}};z.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var C,w;z.actions.playlistId=(C=this.data.defaultServiceEndpoint)==null?void 0:(w=C.playlistEditEndpoint)==null?void 0:w.playlistId;_.pi(this.hostElement,"yt-toggle-button",z)}(e=e?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(e)}};
JB.prototype.onYtNavigate=function(e){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);z&&(e.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(z))};
_.lB.Object.defineProperties(JB,{template:{configurable:!0,enumerable:!0,get:function(){if(YhY===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);YhY=e}e=YhY;return e}}});
JB.prototype.onYtNavigate=JB.prototype.onYtNavigate;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],JB.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],JB.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(XGS.YtToggleButtonBehavior),_.B("design:type",Object)],JB.prototype,"ytToggleButtonBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],JB.prototype,"data",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],JB.prototype,"showTooltips",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],JB.prototype,"systemIcons",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],JB.prototype,"roundedContainer",void 0);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JB.prototype,"onYtNavigate",null);
_.d([_.SL({is:"ytd-toggle-button-renderer",disableElementRegistration:JyY})],JB);var kIg,qhc;_.kX=new _.Mt("PANEL_CONTROLLER_TOKEN");_.qd=new _.Mt("SHEET_CONTROLLER_TOKEN");_.xX=new _.Mt("DIALOG_CONTROLLER_TOKEN");kIg=new _.Mt("DIALOG_CONTAINER_TOKEN");qhc=new _.Mt("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.T$=new _.Mt("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Cxs=_.kk("DOWNLOAD",{},"Download"),wd8=_.kk("DOWNLOADING",{},"Downloading"),Kkk=_.kk("DOWNLOADED",{},"Downloaded"),o91=_.kk("RETRY",{},"Retry");var xWY=_.f(function(e){var z=J9g,C=function(){return""},w=GQg(e.data),K=Y0h(e.data),G=b61(e.data),X=XdN(e.data);
z=function(){var J=e.data(),q=eQ1(J,w(),K(),G(),X()),T=!!J.videoId,Q=q.text;return{title:T?Q:void 0,tooltip:T?void 0:Q,accessibilityText:Q,onTap:q.onTap,iconName:q.iconType,style:J.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:q.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:J.buttonSize}};
C={};C=_.qT("ytDownloadButtonViewModelHost",(C.ytDownloadButtonViewModelIsHidden=function(){var J=e.data(),q=X();return J.playlistId||q()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||q()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},C));
return _.x("download-button-view-model",{class:C},_.x(_.iz,{data:z}))},"ia");
xWY.idomCompat=!0;var a1h=new _.Mt("SUBMIT_API_SERVICE_TOKEN");var l1N,Qf8,n9E={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var u_o=new _.Mt("RENDERER_LOGGER_TOKEN");var Fk1=new _.Mt("RENDERER_STAMPER_OPTIONS_TOKEN");var r97;_.WF=new PnT;r97=new Map;var Vr7="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),S0E=["notificationTextRenderer","notificationMultiActionRenderer"],
f17="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),E9g=H6o(function(e){return _.gp(e==null?void 0:e.targetId)}).useUpdatableData;var O6g=0,Lkm=new Set;_.PF.debugName="EjJbCe";var TRg=_.f(function(e){var z=e.data;e=e.className;_.Nm(function(){z().formId||_.yG(Error("Ch"))});
var C=_.$0g(function(){return z().formId},function(){return z().beforeSubmitCommand},function(){return z().afterSubmitCommand}),w=C.submitForm,K=C.isValid,G=C.isSubmitting,X=function(){return{state:z().isDisabled||!K()||G()?"disabled":"active"}};
return _.x("yt-submit-button-view-model",{class:_.qT("ytSubmitButtonViewModelHost",e)},_.x(_.PF,{data:function(){return z().button}},{buttonViewModel:function(J){return _.x(_.iz,{data:J.data,
buttonOverrides:X,onClick:w})}}))},"la");var lbc=_.f(function(e){var z=e.backgroundLottieRef;var C=e.foregroundLottieRef;var w=e.children;var K=e.wrapperClass;var G=e.disableAnimation;e=function(){return(_.M("web_animated_actions")||_.M("web_animated_actions_v2"))&&!(G==null?0:G())};
return _.x("yt-animated-action",{class:_.qT("ytAnimatedActionHost",K)},_.x("div",{class:"ytAnimatedActionContentWithBackground"},_.x(_.l,{cond:e,then:function(){return _.x($WT,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:z==null?void 0:z(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(d0g()?"dark":"light")+"_v5.json"}}}})}}),w),_.x(_.l,{cond:e,
then:function(){return _.x($WT,{lottiePlayerProps:function(){return{animationRef:C==null?void 0:C(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(d0g()?"dark":"light")+"_v4.json"}}}})}}))},"ma");
lbc.idomCompat=!0;var $WT=_.f(function(e){var z=e.wrapperClass;var C=e.lottieClass;var w=e.lottiePlayerProps;return _.x("div",{class:_.qT("ytAnimatedActionLottie",z),"aria-hidden":"true"},_.x(_.AY,{className:C,data:w,animationName:function(){return w().animationConfig.name}}))},"na");var D0L={isOpen:!1};var NZk={isAllowed:!1};var BZ4={errorMessage:"",title:"",privacy:"",isDisabled:!0};var g9k={isOpen:!1};var y9o={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var QFU={response:void 0};var A97=function(e,z){e=e===void 0?QFU:e;switch(z.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},e,{response:z.payload});default:return e}};var mWa={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Z61=function(e,z){e=e===void 0?mWa:e;switch(z.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},e,{nextDisabled:z.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},e,{nextCommand:z.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},e,{footerSubmissionData:z.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},e,{isImpersonationValid:z.payload});default:return e}};var abc={reportFormData:void 0,reportDetailsFormData:void 0};var pdE=function(e,z){e=e===void 0?abc:e;switch(z.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},e,{reportFormData:z.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},e,{reportDetailsFormData:z.payload});default:return e}};var nFc=void 0;_.M("mweb_enable_redux_store_on_demand")||(nFc=new p4(ep1()));var $X=_.M("enable_web_delhi_icons");var MtT=_.f(function(e){e=_.eQ(e,{themeOverride:void 0,animationRef:{}});var z=e.animatedIconType,C=e.active,w=e.themeOverride,K=e.animationRef;e=e.staticIconFn;var G=_.b(_.II(void 0,void 0,"l48agc")),X=G.next().value,J=G.next().value,q=function(){a:{var L=z();var h=w==null?void 0:w();var E;h=(h==null?void 0:h.useDarkTheme)||((E=_.lh().resolve(_.$B(_.jQ)))==null?void 0:E());switch(L){case "LIKE":nFc||(nFc=new p4(ep1()));L=(L=Ipm(nFc.getState()))&&L.animationLightUrl&&L.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:h?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:h?L.animationDarkUrl:L.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(L){h=L;break a}h="animated_like_icon_"+(h?"dark":"light")+"_"+($X?"v5":"v4");h={lottiePlayerProps:{animationConfig:{name:h,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+h+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
($X?" animated-like-icon-delhi":"")}}},totalFrames:$X?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":h={lottiePlayerProps:{animationConfig:{name:h?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(h?"dark":"light")+($X?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+($X?" animated-subscribe-icon-delhi":"")}}},totalFrames:$X?120:79,lazyLoad:!1};break a}h=
void 0}return h},T=function(){var L,h;
return(h=(L=q())==null?void 0:L.lottiePlayerProps.animationConfig.name)!=null?h:""},Q=function(){if(q()){var L=q().lottiePlayerProps.animationConfig.path;
return Wj.get(L)||X()}};
G=_.b(_.II(!1,void 0,"sDrGId"));var m=G.next().value;G=G.next().value;var a=CX4(G),n=function(){var L=q(),h,E,N;return(N=L==null?void 0:(h=L.lottiePlayerProps.animationConfig)==null?void 0:(E=h.rendererSettings)==null?void 0:E.className)!=null?N:""},H=void 0,I=void 0;
_.sH(function(){var L=q(),h=T(),E=Q(),N=m(),D=C();if(L&&(I!==h&&(I=h,H=D,h=K(),a.animationConfig=L.lottiePlayerProps.animationConfig,a.animationRef=h,E&&(a.animationConfig.animationData=E,a.animationConfig.path=void 0),h=L.lottiePlayerProps.animationConfig.path,!Wj.get(h)&&L.lazyLoad&&h&&zpk(h,J)),!(N||L.lazyLoad&&!E))){if(E=!K().lottieEl)D?(N=L.totalFrames,a.animationConfig.initialSegment=[N-1,N]):a.animationConfig.initialSegment=void 0;if(H!==D&&!E)if(E=K(),D){var g;(g=E.lottieEl)==null||g.playSegments([0,
L.totalFrames],!0)}else{var y;(y=E.lottieEl)==null||y.playSegments([0,1],!0)}H=D}},"RQVZ1d");
return _.x("animated-icon",{class:"ytAnimatedIconHost"},_.x(_.l,{cond:function(){var L,h;return!((L=q())==null||!L.lottiePlayerProps.animationConfig.path||((h=q())==null?0:h.lazyLoad)&&!Q()||m())},
then:function(){return _.x(_.AY,{data:a,animationName:T,className:n,animationRef:K})},
else:e}))},"pa");_.lT=_.f(function(e){var z=_.kI("yt-subscribe-button-view-model"),C=_.kI("div"),w=_.kI("div"),K=_.MK(),G=_.MK(),X=_.MK(),J=_.vF(GFm,function(){return e.data().stateEntityStoreKey}),q=_.vF(YB5,function(){var y1,Qa;
return(Qa=(y1=e.data().notificationStateEntityStoreKeys)==null?void 0:y1.subsNotificationStateKey)!=null?Qa:""}),T=function(){return!e.data().enableSubscribeButtonPostClickAnimation},Q=_.b(_.II(0,void 0,"YtsSKb")),m=Q.next().value,a=Q.next().value;
Q=_.b(_.II(0,void 0,"V6JxRe"));var n=Q.next().value,H=Q.next().value;Q=_.b(_.II(!1,void 0,"JUCSZ"));var I=Q.next().value,L=Q.next().value;Q=_.b(_.II(!1,void 0,"oV6jwf"));var h=Q.next().value,E=Q.next().value;Q=_.b(_.II(!1,void 0,"hK1Whe"));var N=Q.next().value,D=Q.next().value,g;Q=_.b(_.II(!1,void 0,"Asaolf"));var y=Q.next().value,Z=Q.next().value,YN=function(){E(!0);_.Oz(_.c5,function(){E(!1)},1500)};
_.sH(function(){var y1=h();_.UH(function(){y1&&!T()&&J()&&ne7(K,G,X)})},"Qq6Hsf");
_.sH(function(){var y1=J();_.UH(function(){if(!T()&&y1){var Qa;((Qa=e.animateWidth)==null?0:Qa.call(e))&&auh(z.value,!!y1.subscribed,m(),n());var Ha,OU;((Ha=g)==null?0:Ha.subscribed)||!y1.subscribed||y1.key!==((OU=g)==null?void 0:OU.key)||YN();g=y1}})},"hog8te");
Q=_.hG(function(){var y1,Qa,Ha,OU=e.data(),ab=!((y1=J())==null||!y1.subscribed);y1=!((Qa=e.isOverlay)==null||!Qa.call(e));Qa=I()?z:void 0;var Pa=(Ha=q())==null?void 0:Ha.state;Ha=y();mRL(OU,Pa);return oeo({model:OU,subscribed:ab,isOverlay:y1,element:Qa,notificationState:Pa,disableTextEllipsis:!0,focused:Ha})},void 0,"hc1PRd");
var Jk=function(){var y1;if(!T()&&((y1=e.animateWidth)==null?0:y1.call(e))&&(C==null?0:C.value)&&(w==null?0:w.value)&&!N()){y1=J();var Qa=_.b((y1==null?0:y1.subscribed)?[C,w]:[w,C]),Ha=Qa.next().value;Qa=Qa.next().value;Ha=Math.ceil(Ha.value.getBoundingClientRect().width);Qa=Math.ceil(Qa.value.getBoundingClientRect().width);a(Ha);H(Qa);auh(z.value,!(y1==null||!y1.subscribed),Ha,Qa);D(!0)}},v1=_.T9(function(y1){Jk();
var Qa=J();Qa&&(y1.detail.endpoint.subscribeEndpoint||y1.detail.endpoint.unsubscribeEndpoint)&&$Rk(z.value,!Qa.subscribed,Qa)}),lg=function(){var y1=_.lh().resolve(_.$B(_.V5));
y1&&Z(y1.isKeyBoardInUse())},M5=function(){Z(!1)};
_.JH("yt-player-subscribe",function(y1){var Qa=J();Qa&&y1===e.data().channelId&&$Rk(z.value,!0,Qa)});
_.JH("yt-player-unsubscribe",function(y1){var Qa=J();Qa&&y1===e.data().channelId&&$Rk(z.value,!1,Qa)});
_.JH("yt-update-subscribe-button-action",function(y1){y1=_.r(y1,qrU);var Qa=J();Qa&&y1&&y1.channelId===e.data().channelId&&$Rk(z.value,!!y1.subscribed,Qa)});
_.sg(function(){z.value&&(z.value.addEventListener("focusin",lg),z.value.addEventListener("focusout",M5));var y1=_.Dz(_.c5,function(){Jk()});
L(!0);_.BC(function(){_.c5.cancelJob(y1);z.value&&(z.value.removeEventListener("focusin",lg),z.value.removeEventListener("focusout",M5))})});
var fo=function(){var y1,Qa,Ha;if(Ha=!((y1=J())==null||!y1.subscribed))y1=!!e.data().disableNotificationBell,Ha=(Qa=q())==null?void 0:Qa.state,Ha=!y1&&!!Ha;return Ha},ug=function(){var y1;
return!((y1=J())==null?0:y1.subscribed)},sE=function(){var y1,Qa;
if(Qa=ug()){Qa=!!e.data().disableNotificationBell;var Ha=(y1=q())==null?void 0:y1.state;Qa=!Qa&&!!Ha}return Qa},w6={},qY={};
return _.x("yt-subscribe-button-view-model",{class:_.qT(e.className,"ytSubscribeButtonViewModelHost",(w6.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var y1,Qa;return!((y1=J())==null||!y1.subscribed)&&((Qa=e.animateWidth)==null?void 0:Qa.call(e))&&h()},w6.ytSubscribeButtonViewModelHostHidden=function(){var y1;
return!((y1=J())==null?0:y1.subscribed)&&e.data().hideWhenUnsubscribed},w6)),
el:z,"on:yt-service-request-sent":v1},_.x(lbc,{backgroundLottieRef:K,foregroundLottieRef:G,wrapperClass:_.qT("ytSubscribeButtonViewModelAnimatedActionWrapper",(qY.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var y1;return((y1=e.animateWidth)==null?void 0:y1.call(e))&&h()},qY.ytSubscribeButtonViewModelStaticWidth=function(){var y1;
return!((y1=e.animateWidth)==null?0:y1.call(e))},qY)),
disableAnimation:T},_.x("div",{el:C,class:"ytSubscribeButtonViewModelContainer"},_.x(_.DS,{data:Q,icon:function(){return _.x(_.l,{cond:fo,then:function(){var y1=function(){var Qa;return TTL((Qa=q())==null?void 0:Qa.state)};
return _.x(_.l,{cond:function(){return T()||y1()!=="NOTIFICATIONS_NONE"},
then:function(){return _.x(_.mB,{icon:y1})},
else:function(){return _.x(MtT,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:X})}})}})},
secondaryIconName:function(){return fo()?"EXPAND":void 0}}))),_.x("div",{el:w,
class:"ytSubscribeButtonViewModelInvisible"},_.x(_.l,{cond:function(){var y1;return((y1=e.animateWidth)==null?void 0:y1.call(e))&&!T()&&!N()},
then:function(){return _.x(_.DS,{data:_.hG(function(){var y1;return oeo({model:e.data(),subscribed:ug(),isOverlay:!((y1=e.isOverlay)==null||!y1.call(e)),element:z,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var y1;return sE()?TTL((y1=q())==null?void 0:y1.state):void 0},
secondaryIconName:function(){return sE()?"EXPAND":void 0}})}})))},"sa");
_.lT.idomCompat=!0;var ryh=_.f(function(e){var z=e.data;var C=_.vF(GFm,function(){return z().subscriptionStateEntityKey});
return _.x(_.l,{cond:function(){var w=z(),K=C();return!w.hideWhenUnsubscribed||(K==null?0:K.subscribed)?_.r(z().button,_.H7):void 0},
then:function(w){return _.x("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.x(_.iz,{data:w,buttonOverrides:function(){return{toggled:!0}}}))}})},"ta");
ryh.idomCompat=!0;var HSh,Qd;HSh=_.f(function(e){return _.x(_.PF,{data:function(){return e.actionRow().actions}},{buttonViewModel:function(z){var C=z.data;
return _.x(Qd,{isRow:e.isRow,isIconOnlyButton:function(){return M7o(C())},
useIntrinsicWidth:e.useIntrinsicWidth},_.x(_.iz,{data:C}))},
subscribeButtonViewModel:function(z){return _.x(Qd,{isRow:e.isRow},_.x(_.lT,{data:z.data,isOverlay:!1,animateWidth:function(){return!e.isRow()}}))},
downloadButtonViewModel:function(z){var C=z.data;return _.x(Qd,{isRow:e.isRow,isIconOnlyButton:function(){return!!C().playlistId}},_.x(xWY,{data:C}))},
submitButtonViewModel:function(z){var C=z.data;return _.x(Qd,{isRow:e.isRow,isIconOnlyButton:function(){var w=C();return M7o(_.r(w==null?void 0:w.button,_.H7))}},_.x(TRg,{data:C}))},
toggleButtonViewModel:function(z){var C=z.data;return _.x(Qd,{isRow:e.isRow,isIconOnlyButton:function(){var w=C();return M7o(_.r(w.isToggled?w.toggledButtonViewModel:w.defaultButtonViewModel,_.H7))}},_.x(_.XG,{data:C}))},
subscribePlusButtonViewModel:function(z){return _.x(Qd,{isRow:e.isRow},_.x(ryh,{data:z.data}))}})},"ua");
Qd=_.f(function(e){var z={};return _.x("div",{class:_.qT("ytFlexibleActionsViewModelAction",(z.ytFlexibleActionsViewModelActionRowAction=e.isRow,z.ytFlexibleActionsViewModelActionIntrinsicWidth=e.useIntrinsicWidth,z.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,z.ytFlexibleActionsViewModelActionIconOnlyButton=e.isIconOnlyButton,z))},e.children)},"va");
_.ml=_.f(function(e){var z=function(){var w;return((w=e.layout)==null?void 0:w.call(e))===1},C={};
return _.x("yt-flexible-actions-view-model",{class:_.qT("ytFlexibleActionsViewModelHost",e.className,(C.ytFlexibleActionsViewModelInline=function(){return!z()},C.ytFlexibleActionsViewModelScrollable=function(){return e.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},C))},_.x(_.ui,{each:function(){return e.data().actionsRows||[]}},function(w){return _.x(_.l,{cond:z,
then:function(){return _.x("div",{class:"ytFlexibleActionsViewModelActionRow"},_.x(HSh,{actionRow:w,isRow:z,useIntrinsicWidth:function(){return!!e.data().respectActionIntrinsicWidth}}))},
else:function(){return _.x(HSh,{actionRow:w,isRow:z})}})}))},"wa");_.KU(_.ml,"yt-flexible-actions-view-model",{props:{data:_.vh,layout:_.vh,justifyContentOverride:_.vh,className:_.vh}});_.aw=_.f(function(e){var z=_.vF(_.uw,function(){var K;return(K=e.data().dislikeEntityKey)!=null?K:""}),C=_.hG(function(){var K=z();
return K?K.likeStatus==="DISLIKE":_.r(e.data().toggleButtonViewModel,_.v7).isToggled},void 0,"fNr9he"),w=_.hG(function(){return Object.assign({},_.r(e.data().toggleButtonViewModel,_.v7),{isToggled:C()})},void 0,"AezoCc");
return _.x("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.x(_.XG,{data:w,buttonShapeOverrides:e.buttonShapeOverrideables,onToggle:function(K){var G=z();G&&K!==(G.likeStatus==="DISLIKE")&&G.key&&_.ZL(_.d$("likeStatusEntity",G.key,{likeStatus:K?"DISLIKE":"INDIFFERENT",hadUserInteraction:K}))}}))},"xa");
_.aw.idomCompat=!0;_.nT=_.f(function(e){var z=_.M("web_supports_animations_api"),C=O2o(function(a){var n=T();if(!a){var H,I;return{numberText:(I=n==null?void 0:(H=n.likeCountIfIndifferent)==null?void 0:H.content)!=null?I:"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var L;H=(n==null?void 0:(L=n.likeCountIfIndifferent)==null?void 0:L.content)!==a.numberText;if(J()||!H)return a;var h;return{numberText:(n==null?void 0:(h=n.likeCountIfIndifferent)==null?void 0:h.content)||
"",numberValue:Number(n==null?void 0:n.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!n}}),w=O2o(function(a){var n=T();
if(!a){var H,I;return{numberText:(I=n==null?void 0:(H=n.likeCountIfLiked)==null?void 0:H.content)!=null?I:"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var L;H=(n==null?void 0:(L=n.likeCountIfIndifferent)==null?void 0:L.content)!==a.numberText;if(J()||!H)return a;var h;return{numberText:(n==null?void 0:(h=n.likeCountIfLiked)==null?void 0:h.content)||"",numberValue:Number(n==null?void 0:n.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!n}}),K=_.b(_.II(void 0,
void 0,"xYSlUe")),G=K.next().value,X=K.next().value,J=G,q=_.vF(_.uw,function(){var a,n;
return(n=(a=e.data())==null?void 0:a.likeStatusEntityKey)!=null?n:""}),T=_.vF(J$h,function(){var a,n;
return((a=e.likeCountEntity)==null?void 0:(n=a.call(e))==null?void 0:n.key)||""}),Q=_.hG(function(){var a;
return((a=q())==null?void 0:a.likeStatus)==="LIKE"},void 0,"DG5Osd"),m=function(){var a;
return z&&!((a=e.likeCountEntity)==null||!a.call(e))};
return _.x("like-button-view-model",{class:_.qT("ytLikeButtonViewModelHost",e.className)},_.x(_.XG,{data:function(){var a=Object,n=a.assign,H;var I=_.r((H=e.data())==null?void 0:H.toggleButtonViewModel,_.v7);return n.call(a,{},I||{},{isToggled:Q()})},
buttonShapeOverrides:e.buttonShapeOverrideables,animatedTextPropsDefault:function(){return m()?C():void 0},
animatedTextPropsToggled:function(){return m()?w():void 0},
onToggle:function(a){rW7(a,q(),J(),X)},
style:function(){var a;return((a=e.disableIconAnimation)==null?0:a.call(e))?void 0:{animateIcon:"true"}}}))},"ya");
_.nT.idomCompat=!0;var UWs=_.f(function(e){var z=function(){return _.r(e.data().likeButtonViewModel,_.jo)},C=function(){var K;
return((K=z())==null?void 0:K.likeStatusEntityKey)||""},w=_.hG(function(){var K,G;
var X=(G=_.vF(_.uw,C)())!=null?G:(K=z())==null?void 0:K.likeStatusEntity;K=e.data();var J;K=(K==null?void 0:(J=K.timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:"like-dislike",timings:K,enabled:(X==null?void 0:X.likeStatus)==="INDIFFERENT"&&K.length>0,experimentEnabled:K.length>0}},void 0,"zZ3GQb");
return _.x("segmented-like-dislike-button-view-model",{class:_.qT("ytSegmentedLikeDislikeButtonViewModelHost",e.className),"button-renderer":!0},_.x(GIh,{settings:w},_.x("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.x(_.l,{cond:z,then:function(K){return _.x(_.nT,{data:K,likeCountEntity:function(){return e.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.M("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.x(_.l,{cond:function(){return _.r(e.data().dislikeButtonViewModel,_.yg)},
then:function(K){return _.x(_.aw,{data:K,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"za");
UWs.idomCompat=!0;_.KU(UWs,"segmented-like-dislike-button-view-model",{props:{data:_.vh,className:_.vh}});var vFC=_.f(function(e){var z=e.data;var C=e.className;var w=e.setMinWidth;var K=e.forceIconOnly;var G=_.kI("account-link-button-view-model"),X=_.vF(_.Hlm,function(){var a;return(a=z().accountLinkStatusEntityKey)!=null?a:""}),J=_.vF(_.Hlm,function(){var a;
return(a=z().accountLinkStatusSecondaryEntityKey)!=null?a:""}),q=function(){if(!_.M("web_account_link_secondary_killswitch")){var a,n;
return((a=X())==null?void 0:a.linked)||((n=J())==null?void 0:n.linked)}var H;return(H=X())==null?void 0:H.linked};
_.sH(function(){var a=X();if(a){var n=D44(new d4s,Sfa(new fwa,!!a.linked));_.ax().then(function(H){H&&(H.setAccountLinkState(_.FY(n.JSC$12488_serializeBinary(),4)),H.updateAccountLinkingConfig(!!a.linked))})}},"IvZF7");
var T=function(){return _.r(z().toggleButtonViewModel,_.v7)};
_.JH("yt-signal-action-show-account-link-dialog",function(){if(T()){var a=q()?T().toggledButtonViewModel:T().defaultButtonViewModel;a=_.r(a,_.H7);var n;if((n=X())==null?0:n.isWarning){n=_.r(z().warningButtonViewModel,_.H7);if(!n){_.es(Error("Dh"));return}a=n}var H;(n=_.SQ((H=a)==null?void 0:H.onTap))&&_.Yk([n],G.value)}else _.es(Error("Eh"))});
var Q=function(){var a=T();return Object.assign({},a,{isToggled:q()})},m=function(){return(K==null?0:K())?{iconPosition:"icon-only"}:{}};
return _.x("account-link-button-view-model",{class:_.qT("ytwAccountLinkButtonViewModelHost",C,function(){return(w==null?0:w())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:G,"button-renderer":!0},_.x("div",null,_.x(_.l,{cond:function(){var a;if((a=X())==null?0:a.isWarning)return(a=_.r(z().warningButtonViewModel,_.H7))||_.es(Error("Dh")),a},
then:function(a){return _.x(_.iz,{data:a,buttonOverrides:m})},
else:function(){return _.x(_.XG,{data:Q,buttonShapeOverrides:m})}})))},"Ba");_.KU(vFC,"account-link-button-view-model",{props:{data:_.vh,className:_.z9,setMinWidth:_.z9,forceIconOnly:_.z9}});_.hq("menuRenderer","menuRenderer","ytd-menu-renderer");
var Ibg={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"}},
WwT=_.M("web_fix_missing_action_buttons")?100:200,Md=function(){var e=_.V.apply(this,arguments)||this;e.safeArea=!_.M("kevlar_flex_menu_safe_area_killswitch");e.tonalOverride=!1;e.threeDotSize="M";e.isOverlay=!1;e.useOverlayDark=!1;e.topLevelIconsOnly=!1;e.JSC$14933_lastWidth=0;e.maybeUpdateFlexibleMenu=function(){_.M("web_fix_missing_action_buttons")?requestAnimationFrame(e.maybeUpdateFlexibleMenuImpl):e.maybeUpdateFlexibleMenuImpl()};
e.maybeUpdateFlexibleMenuImpl=function(){var z;if((z=e.data)!=null&&z.flexibleItems){e.maybeFlushDebouncer();z=e.hostElement.clientWidth;var C=z>e.JSC$14933_lastWidth,w,K=((w=e.topLevelButtonsContainer)==null?void 0:w.scrollHeight)||0,G;w=((G=e.flexibleItemButtonsContainer)==null?void 0:G.scrollHeight)||0;G=e.hostElement.scrollHeight>Math.max(K,w)+8;C?(e.resetFlexibleItems(),e.JSC$14933_lastWidth=e.hostElement.clientWidth,e.maybeUpdateFlexibleMenu()):G&&(e.shrinkFlexibleMenu(),e.JSC$14933_lastWidth=
z)}};
e.computeThreeDotButtonShape=function(){if(e.tonalOverride)return Object.assign({},{onTap:function(){e.onOverflowTap()},
iconPosition:"icon-only",style:e.isOverlay?e.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:e.threeDotSize,state:"active",accessibilityLabel:e.computeAccessibilityLabel(e.data)},e.threeDotButtonOverride)};
e.onOverflowTap=function(){var z,C,w,K,G,X;_.k(function(J){switch(J.nextAddress){case 1:if(e.data.fetchMenuCommand)return z=_.lh().resolve(_.ms),z.resolveCommand(e.data.fetchMenuCommand,{form:{element:e.hostElement}}),J.return();if(e.data.isDisabled&&e.data.disabledCommand)return _.$p(e.data.disabledCommand,e.hostElement),J.return();C=e.createMenuRendererVe();w={items:e.items};e.data.menuPopupAccessibility&&(w.menuPopupAccessibility=e.data.menuPopupAccessibility);e.data.footer&&(w.footer=e.data.footer);
K={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:w},veData:C}};G=_.lh().resolve(_.qd);if(!_.M("ytd-menu-singleton-sheet-killswitch")){J.jumpTo(2);break}return J.yield(G.openSheet({openPopupActionCommand:K},e.hostElement),3);case 3:return J.return();case 2:return J.yield(G.isSheetOpen(),4);case 4:return(X=J.yieldResult)?J.yield(G.closeSheet(),0):J.yield(G.openSheet({openPopupActionCommand:K},e.hostElement),0)}})};
return e};
_.U(Md,_.V);_.Y=Md.prototype;_.Y.updateButtonOverrides=function(){if(!_.M("menu_renderer_label_update_upkillswitch")){var e=_.XC(this.hostElement).querySelector("yt-button-view-model");e&&(e.buttonOverrides=this.buttonOverrides)}};
_.Y.computeHasItems=function(){var e;return((e=this.topLevelButtonData)==null?void 0:e.length)||this.hasFlexibleItems};
_.Y.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.Y.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.T8(this.hostElement,{"--ytd-menu-renderer-button-color":_.EG(this.data.iconColor)}))};
_.Y.onStamperFinished=function(){this.JSC$14933_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.Y.setupFlexibleMenu=function(){var e=this,z;(z=this.data)!=null&&z.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.lw(this.maybeUpdateFlexibleMenu,WwT,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){e.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))};
_.Y.maybeFlushDebouncer=function(){if(_.M("web_replace_formatted_with_attributed_string")){var e;(e=this.topLevelButtons)==null||e.forEach(function(C){var w;(C=(w=C.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0])&&Wo4(C)});
var z;(z=this.flexibleItemButtons)==null||z.forEach(function(C){var w;(C=(w=C.getElementsByTagName("yt-attributed-string"))==null?void 0:w[0])&&Wo4(C)})}};
_.Y.resetFlexibleItems=function(){var e;if((e=this.data)!=null&&e.flexibleItems){_.M("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var z;this.flexAsTopLevelButtons=(z=this.data.flexibleItems)==null?void 0:z.map(function(C){return _.r(C,_.nV6).topLevelButton});
_.M("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.Y.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.Y.shrinkFlexibleMenu=function(){var e;(e=this.flexAsTopLevelButtons)!=null&&e.length&&(this.flexAsTopLevelButtons=[].concat(_.s_(this.flexAsTopLevelButtons.slice(0,-1))))};
_.Y.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Ibg,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Ibg,events:!0}}};
_.Y.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Y.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.Y.detached=function(){this.icon="MORE_VERT"};
_.Y.computeTopLevelButtonData=function(e){if(!e)return[];var z;e=(z=e==null?void 0:e.topLevelButtons)!=null?z:[];return _.de.unsafeClone([].concat(_.s_(e)))};
_.Y.computeItems=function(e,z){if(!e)return[];var C=[];if(z){var w=(e.flexibleItems||[]).map(function(X){return _.r(X,_.nV6)});
w=_.b(w);for(var K=w.next();!K.done;K=w.next())K=K.value,z.includes(K.topLevelButton)||(K=K.menuItem)&&C.push(K)}var G;e=(G=e==null?void 0:e.items)!=null?G:[];return[].concat(_.s_(C),_.s_(e))};
_.Y.computeMenuActive=function(e,z){return e||z};
_.Y.onPopupOpened=function(){this.overlayOpen=!0;_.pi(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.Y.onPopupClosed=function(){this.overlayOpen=!1;_.pi(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Y.onPopupCanceled=function(){this.overlayOpen=!1;_.pi(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.Y.computeAccessibilityLabel=function(e){return this.get("accessibility.accessibilityData.label",e)};
_.Y.isHidden=function(e,z){return this.tonalOverride||!e?!0:e.fetchMenuCommand||e.isDisabled&&e.disabledCommand?!1:!(z==null?0:z.length)};
_.Y.isModernOverflowHidden=function(e,z){return this.tonalOverride&&e?e.fetchMenuCommand?!1:!(z==null?0:z.length):!0};
_.Y.createMenuRendererVe=function(){var e=this.data.trackingParams,z=_.Pr(),C=_.Ip();return e&&z&&C?(e=_.v9(e),C=_.mT(7591),_.M("combine_ve_grafts")?_.yQ(_.nm(),C,e):_.id(z,e,C),C):null};
_.lB.Object.defineProperties(Md.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.flexAsTopLevelButtons)==null||!e.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Md.prototype.onPopupCanceled=Md.prototype.onPopupCanceled;Md.prototype.onPopupClosed=Md.prototype.onPopupClosed;Md.prototype.onPopupOpened=Md.prototype.onPopupOpened;Md.prototype.tonalOverrideChanged=Md.prototype.tonalOverrideChanged;Md.prototype.resetFlexibleItems=Md.prototype.resetFlexibleItems;Md.prototype.setupFlexibleMenu=Md.prototype.setupFlexibleMenu;Md.prototype.iconButtonColorChanged=Md.prototype.iconButtonColorChanged;Md.prototype.updateButtonOverrides=Md.prototype.updateButtonOverrides;
_.d([_.W(_.VP),_.B("design:type",Object)],Md.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("#button-shape"),_.B("design:type",HTMLElement)],Md.prototype,"buttonShape",void 0);_.d([_.nP("#button"),_.B("design:type",Object)],Md.prototype,"button",void 0);
_.d([_.F(),_.B("design:type",Object)],Md.prototype,"data",void 0);_.d([_.F({computed:"computeTopLevelButtonData(data)"}),_.B("design:type",Array)],Md.prototype,"topLevelButtonData",void 0);_.d([_.F(),_.B("design:type",Array)],Md.prototype,"flexAsTopLevelButtons",void 0);_.d([_.F({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.B("design:type",Array)],Md.prototype,"items",void 0);_.d([_.F({value:"MORE_VERT"}),_.B("design:type",String)],Md.prototype,"icon",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Md.prototype,"safeArea",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.B("design:type",Boolean)],Md.prototype,"menuActive",void 0);_.d([_.F(),_.B("design:type",Boolean)],Md.prototype,"menuFocused",void 0);_.d([_.F({value:"bottom"}),_.B("design:type",String)],Md.prototype,"buttonTooltipPosition",void 0);_.d([_.F(),_.B("design:type",Boolean)],Md.prototype,"overlayOpen",void 0);
_.d([_.F({value:!0}),_.B("design:type",Boolean)],Md.prototype,"forceIconButton",void 0);_.d([_.F(),_.B("design:type",Boolean)],Md.prototype,"styleActionButton",void 0);_.d([_.F(),_.B("design:type",Boolean)],Md.prototype,"disableTextTransformOnButtons",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Md.prototype,"tonalOverride",void 0);_.d([_.F(),_.B("design:type",Object)],Md.prototype,"threeDotSize",void 0);
_.d([_.F(),_.B("design:type",Object)],Md.prototype,"threeDotButtonOverride",void 0);_.d([_.F(),_.B("design:type",Object)],Md.prototype,"isOverlay",void 0);_.d([_.F(),_.B("design:type",Object)],Md.prototype,"useOverlayDark",void 0);_.d([_.F({computed:"computeButtonOverride(tonalOverride)"}),_.B("design:type",Object)],Md.prototype,"buttonOverride",void 0);_.d([_.F(),_.B("design:type",Boolean)],Md.prototype,"minimizePipBreakages",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Md.prototype,"hasCustomIconColor",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("flexAsTopLevelButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],Md.prototype,"hasFlexibleItems",null);_.d([_.F({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.B("design:type",Boolean)],Md.prototype,"hasItems",void 0);_.d([_.F(),_.B("design:type",Object)],Md.prototype,"topLevelIconsOnly",void 0);
_.d([_.mi("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"updateButtonOverrides",null);_.d([_.P("topLevelIconsOnly"),_.B("design:type",Object),_.B("design:paramtypes",[])],Md.prototype,"buttonOverrides",null);_.d([_.nP("#top-level-buttons-computed"),_.B("design:type",HTMLElement)],Md.prototype,"topLevelButtonsContainer",void 0);_.d([_.MH(".top-level-buttons > *"),_.B("design:type",Array)],Md.prototype,"topLevelButtons",void 0);
_.d([_.nP("#flexible-item-buttons"),_.B("design:type",HTMLElement)],Md.prototype,"flexibleItemButtonsContainer",void 0);_.d([_.MH("#flexible-item-buttons > *"),_.B("design:type",Array)],Md.prototype,"flexibleItemButtons",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"iconButtonColorChanged",null);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"setupFlexibleMenu",null);_.d([_.Ux("topLevelIconsOnly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"resetFlexibleItems",null);_.d([_.mi("tonalOverride"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"tonalOverrideChanged",null);
_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"onPopupOpened",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"onPopupClosed",null);_.d([_.Qi("yt-popup-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Md.prototype,"onPopupCanceled",null);
_.u(Md,"ytd-menu-renderer",function(){if(t7c===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);t7c=e}e=t7c;return e},{mode:2});var Puh;var Rr4;_.ri=_.f(function(e){var z=e.data;var C=function(){if(z().icon)a:{var K={iconName:z().icon};for(var G=_.lh().resolve(_.xp),X=_.b([12,24]),J=X.next();!J.done;J=X.next()){var q=J.value;J=Object.assign({},K,{iconStyle:"youtube_fill",iconSize:q});q=Object.assign({},K,{iconStyle:"youtube_outline",iconSize:q});if(G.resolveIcon(J)){K=J;break a}if(G.resolveIcon(q)){K=q;break a}}K=void 0}else K=void 0;return K};
e={};var w={};return _.x("badge-shape",{class:_.qT("yt-badge-shape",function(){return Rph(z().type)},(e["yt-badge-shape--overlay"]=function(){return z().isOverlay},e["yt-badge-shape--ads-include-dot"]=function(){return z().adsIncludeDot},e["yt-badge-shape--thumbnail-badge"]=function(){a:switch(z().type){case 17:case 18:case 19:var K=!0;
break a;default:K=!1}return K},e["yt-badge-shape--status-badge"]=function(){a:switch(z().type){case 12:case 13:case 14:case 15:case 16:var K=!0;
break a;default:K=!1}return K},e["yt-badge-shape--no-text"]=function(){return!z().text},e["yt-badge-shape--modern"]=function(){return z().modern||_.M("web_modern_badge_shape")},e)),
style:_.QC({"background-color":function(){var K;return(K=z().customColors)==null?void 0:K.backgroundColor}}),
role:function(){return z().accessibilityText?"img":void 0},
"aria-label":function(){return z().accessibilityText}},_.x(_.l,{cond:function(){return z().animation},
then:function(K){return _.x(_.AY,{className:"yt-badge-shape__icon",data:K,animationName:function(){return K().animationConfig.name||""}})}}),_.x(_.l,{cond:function(){var K;
return C()&&!((K=z())==null?0:K.animation)},
then:function(){return _.x("div",{class:"yt-badge-shape__icon"},_.x(_.Pj,{data:function(){return C()}}))}}),_.x("div",{class:_.qT("yt-badge-shape__text",(w["yt-badge-shape__text--clip-text-overflow"]=function(){return z().clipTextOverflow},w["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(z().numBadgesInRow||0)>1},w))},function(){var K;
return(K=z())==null?void 0:K.text}))},"Ca");
_.ri.idomCompat=!0;_.KU(_.ri,"badge-shape",{props:{data:_.vh}});var HU=function(){var e=_.V.apply(this,arguments)||this;e.systemIcons=_.M("kevlar_system_icons");e.animated=_.M("animated_live_badge_icon");e.useBadgeShape=_.M("web_badge_shape_defrag");return e};
_.U(HU,_.V);_.Y=HU.prototype;_.Y.addTooltips=function(){for(var e=_.XC(this.hostElement).querySelectorAll(".badge"),z=0,C;C=e[z++];){var w=this.repeatElement.itemForElement(C);C=_.XC(C);C.lastChild&&C.lastChild.is==="tp-yt-paper-tooltip"&&C.removeChild(C.lastChild);if(w=w.metadataBadgeRenderer&&w.metadataBadgeRenderer.tooltip){var K=_.hY("tp-yt-paper-tooltip");(0,_.x$)(K).textContent=w;K.setAttribute("position","top");K.setAttribute("aria-hidden","true");C.appendChild(K)}}};
_.Y.badgesChanged=function(){var e=this;_.Il().parkOrScheduleJob(function(){e.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.Y.standaloneRoundedBadgeChanged=function(){var e=this.useRoundedBadge?this.useRoundedBadge:void 0;e&&(this.useRoundedBadge=e)};
_.Y.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Y.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.Y.computeStyle=function(e){_.M("kevlar_ytb_live_badges")&&e==="BADGE_STYLE_TYPE_LIVE_NOW"&&(e="badge-style-type-live-now-alternate");return e?e.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeRole=function(e){return this.computeAriaLabel(e)?"img":"status"};
_.Y.computeAriaLabel=function(e){var z;return(e==null?void 0:(z=e.accessibilityData)==null?void 0:z.label)||(e==null?void 0:e.label)};
_.Y.computeBadgeShape=function(e){if(e){var z,C;var w=WKE(e.style);var K=PXE(e.style),G=e.label,X=((z=e.accessibilityData)==null?void 0:z.label)||e.label;a:switch(e.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":z=!0;break a;default:z=!1}var J=(C=e.icon)==null?void 0:C.iconType;a:switch(e.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":e=!0;break a;default:e=!1}w={type:w,brNzRatingBadgeType:K,text:G,accessibilityText:X,
isOverlay:z,icon:J!=="PREMIUM"?J:void 0,modern:_.M("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:e}}else w={};return w};
_.Y.updateComputedBadges=function(e,z,C){var w=this;(z=z?[z]:C?[C]:void 0)?this.computedBadges=z:this.computedBadges=e==null?void 0:e.filter(function(K){var G;if((G=K.metadataBadgeRenderer)==null?0:G.groups){G=!1;K=_.b(K.metadataBadgeRenderer.groups);for(var X=K.next();!X.done;X=K.next()){X=X.value;var J=void 0;G=G||((J=w.hiddenBadgeGroups)==null?void 0:J.includes(X))}return!G}return!0})};
_.Y.useFilledIcons=function(e){return _.M("kevlar_system_icons")&&(e==="AUDIO_BADGE"||e==="CHECK_CIRCLE_THICK"||e==="OFFICIAL_ARTIST_BADGE"||e==="SPONSORSHIP_STAR"||e==="PERSON_RADAR_FILLED"||e==="PERSON_RADAR")};
_.Y.computeBadgeShapeStyle=function(e){return this.useBadgeShape?e==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||e==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":e==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.Y.computeIcon=function(e){var z,C;e=e==null?void 0:(z=e.metadataBadgeRenderer)==null?void 0:(C=z.icon)==null?void 0:C.iconType;if(e!=="PREMIUM"&&e)return _.qF(e)};
_.Y.computeStandaloneBadge=function(e){var z;e=e==null?void 0:(z=e.icon)==null?void 0:z.iconType;return e==="PREMIUM_STANDALONE"||e==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
HU.prototype.hiddenBadgeGroupsChanged=HU.prototype.hiddenBadgeGroupsChanged;HU.prototype.standaloneBadgeChanged=HU.prototype.standaloneBadgeChanged;HU.prototype.standaloneRoundedBadgeChanged=HU.prototype.standaloneRoundedBadgeChanged;HU.prototype.badgesChanged=HU.prototype.badgesChanged;_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"hidden",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],HU.prototype,"componentBehavior",void 0);
_.d([_.F(),_.B("design:type",Array)],HU.prototype,"badges",void 0);_.d([_.F(),_.B("design:type",Object)],HU.prototype,"topStandaloneBadge",void 0);_.d([_.F(),_.B("design:type",Object)],HU.prototype,"bottomStandaloneBadge",void 0);_.d([_.F(),_.B("design:type",Object)],HU.prototype,"computedBadges",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"mediumFontAdBadge",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"useRoundedBadge",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"largeFontAdBadge",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"overlayAd",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"overlayPremium",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"noDotAdBadge",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"collectionTruncate",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"isThumbnailBadge",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],HU.prototype,"wrapBadges",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Number)],HU.prototype,"numBadgesInRow",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HU.prototype,"systemIcons",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HU.prototype,"animated",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HU.prototype,"useBadgeShape",void 0);_.d([_.F({value:[]}),_.B("design:type",Array)],HU.prototype,"hiddenBadgeGroups",void 0);_.d([_.nP("#repeat"),_.B("design:type",Ox)],HU.prototype,"repeatElement",void 0);_.d([_.Ux("badges"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HU.prototype,"badgesChanged",null);
_.d([_.Ux("useRoundedBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HU.prototype,"standaloneRoundedBadgeChanged",null);_.d([_.Ux("topStandaloneBadge","bottomStandaloneBadge"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HU.prototype,"standaloneBadgeChanged",null);_.d([_.Ux("hiddenBadgeGroups"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HU.prototype,"hiddenBadgeGroupsChanged",null);
_.d([_.SL({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],HU);
var Lwa=_.Yp()(HU,"ytd-badge-supported-renderer",function(){if(Rr4===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);Rr4=e}e=Rr4;return e},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.bA("kevlar_poly_si_batch_j053")?1:2});var Uj=function(){var e=_.V.apply(this,arguments)||this;e.iconType="STAR";e.plaMedium=_.M("enable_pla_resizing_for_desktop_medium");e.plaLarge=_.M("enable_pla_resizing_for_desktop_large");e.plaExtraLarge=_.M("enable_pla_resizing_for_desktop_extra_large");e.standardizeIconSize=_.M("kevlar_system_icons");e.mediaHoverOverlayInitialVisibility=_.M("enable_top_landscape_image_button_command_web");e.noBottomMargin=!1;e.thumbnailObjectFit="CONTAIN";e.thumbnailFitHeight=!0;e.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return e};
_.U(Uj,_.V);_.Y=Uj.prototype;_.Y.created=function(){this.activeView=new NC(this.hostElement)};
_.Y.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"}}}};
_.Y.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",Uj.JSC$14945_DEFAULT_CLICK_LOCATION_BEHAVIOR,Uj.JSC$14945_CLICK_LOCATION_ID_MAP))};
_.Y.onTap=function(e){this.onTapOrClick(e)};
_.Y.onTapOrClick=function(e){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,e,!1)};
_.Y.updateMediaBackgroundImage=function(){var e=this.get("data.image.thumbnail.thumbnails");e&&(e=_.oo(e,0))&&_.T8(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+e+")"})};
_.Y.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var e=0;e<this.data.impressionEndpoints.length;e++){var z=this.data.impressionEndpoints[e];z.clickTrackingParams&&delete z.clickTrackingParams;_.lh().resolve(_.ms).resolveCommand(z,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var C;((C=this.data)==null?0:C.activeView)&&sZ(this.activeView,this.data.activeView)}};
_.Y.handleMuteAd=function(){};
_.Y.attached=function(){var e=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B$(e.activeView)})};
_.Y.detached=function(){_.M("stop_av_measurement_on_detach")&&B$(this.activeView)};
_.lB.Object.defineProperties(Uj.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.titleText)return"";var z;return _.kk("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((z=this.data)==null?void 0:z.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.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 e;return!((e=this.data)==null||!e.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"}}});
Uj.prototype.onTap=Uj.prototype.onTap;Uj.prototype.dataChanged=Uj.prototype.dataChanged;
Uj.JSC$14945_CLICK_LOCATION_ID_MAP=_.M("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"]]);
Uj.JSC$14945_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.M("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"}];_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.a0),_.B("design:type",Object)],Uj.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Uj.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],Uj.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.W([_.ch.YtActionHandlerBehavior]),_.B("design:type",Object)],Uj.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Uj.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],Uj.prototype,"clickCommand",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],Uj.prototype,"miniMode",void 0);_.d([_.F(),_.B("design:type",String)],Uj.prototype,"iconType",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Uj.prototype,"plaMedium",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Uj.prototype,"plaLarge",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Uj.prototype,"plaExtraLarge",void 0);_.d([_.P("data.titleText"),_.B("design:type",String),_.B("design:paramtypes",[])],Uj.prototype,"titleAriaLabel",null);_.d([_.P("data.rating"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uj.prototype,"getRating",null);_.d([_.P("data.price"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uj.prototype,"getPrice",null);
_.d([_.P("data.thirdLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uj.prototype,"getThirdLine",null);_.d([_.P("data.fourthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uj.prototype,"getFourthLine",null);_.d([_.P("data.fifthLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uj.prototype,"getFifthLine",null);_.d([_.P("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"computeRatingHidden",null);
_.d([_.P("getPrice"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"computePriceHidden",null);_.d([_.P("getThirdLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"computeThirdLineHidden",null);_.d([_.P("getFourthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"computeFourthLineHidden",null);_.d([_.P("getFifthLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"computeFifthLineHidden",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data.energyIcon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"hasEnergyIcon",null);_.d([_.P("computePriceHidden","computeRatingHidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"computeSecondaryTextHidden",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Uj.prototype,"standardizeIconSize",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Uj.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Uj.prototype,"noBottomMargin",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.layout"),_.B("design:type",String),_.B("design:paramtypes",[])],Uj.prototype,"layout",null);_.d([_.P("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],Uj.prototype,"mediaThumbnailWidth",null);
_.d([_.P("layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uj.prototype,"useRoundedBadge",null);_.d([_.F(),_.B("design:type",String)],Uj.prototype,"thumbnailObjectFit",void 0);_.d([_.F(),_.B("design:type",Object)],Uj.prototype,"thumbnailFitHeight",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Uj.prototype,"dataChanged",null);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Uj.prototype,"onTap",null);_.d([_.SL({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Uj);
_.u(Uj,"ytd-display-ad-renderer",function(){if(Puh!==void 0)return Puh;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Puh=e},{mode:1});var hrL;var OSU;var EFX;var LKh=new Map;var FwS=!1;var vU=function(){var e=_.V.apply(this,arguments)||this;e.DEFAULT_TOOLTIP_OFFSET="10";e.TOOLTIP_OFFSET_NO_BANNER="-8";e.badges=null;e.noEndpoints=!1;e.wrapText=!1;e.forceVerified=!1;e.tooltipPosition="top";e.compactStyle=!1;e.height=0;e.lineHeight=0;return e};
_.U(vU,_.V);_.Y=vU.prototype;_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.Y.attached=function(){var e=this;this.observer=new MutationObserver(function(z,C){e.handleResized();C.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.Y.detached=function(){this.observer&&this.observer.disconnect()};
_.Y.logTooltipEvent=function(){_.M("kevlar_wiz_tooltip_event_killswitch")||FwS||(_.hp7("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),FwS=!0)};
_.Y.handleWindowResized=function(){this.handleResized()};
_.Y.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")))};
_.Y.onHeightChanged=function(){if(this.verified){var e=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.j5("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=e:this.textContainerEl.style.marginRight=e}};
_.Y.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.j5("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.Y.handleResized=function(){var e=this;this.verified&&_.c5.addLowPriorityJob(function(){e.fitBackgroundToText();var z=getComputedStyle(e.hostElement).lineHeight;z&&(z=z.match(/\d+/))&&z.length&&(e.lineHeight=Number(z[0]));e.height=e.lineHeight&&!e.wrapText?e.lineHeight:e.textEl.offsetHeight})};
_.Y.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var e=document.createRange(),z=_.XC(this.textEl).children;z.length>0?e.selectNodeContents(z[0]):e.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(e.getBoundingClientRect().width)+"px"}};
_.Y.computeChannelBadgeStyle=function(e){var z;if((e==null?0:(z=e.runs)==null?0:z.length)&&e.runs[0].textColor)return"--ytd-badge-icon-color:"+_.EG(e.runs[0].textColor)+";"};
_.lB.Object.defineProperties(vU.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"?_.AO(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var e=this.get("badges.0.metadataBadgeRenderer.tooltip");if(e)return e}return _.Zd(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
vU.prototype.onLineHeightChanged=vU.prototype.onLineHeightChanged;vU.prototype.onHeightChanged=vU.prototype.onHeightChanged;vU.prototype.onChannelNameChanged=vU.prototype.onChannelNameChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],vU.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vU.prototype,"badges",void 0);_.d([_.F(),_.B("design:type",Object)],vU.prototype,"channelName",void 0);
_.d([_.F(),_.B("design:type",Object)],vU.prototype,"noEndpoints",void 0);_.d([_.F(),_.B("design:type",Object)],vU.prototype,"wrapText",void 0);_.d([_.F(),_.B("design:type",Object)],vU.prototype,"forceVerified",void 0);_.d([_.F(),_.B("design:type",Object)],vU.prototype,"tooltipPosition",void 0);_.d([_.F(),_.B("design:type",String)],vU.prototype,"tooltip",void 0);_.d([_.F(),_.B("design:type",Boolean)],vU.prototype,"hasChannelArt",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],vU.prototype,"compactStyle",void 0);_.d([_.nP("#text-container"),_.B("design:type",HTMLElement)],vU.prototype,"textContainerEl",void 0);_.d([_.nP("#text"),_.B("design:type",Object)],vU.prototype,"textEl",void 0);_.d([_.nP("#verified-tooltip"),_.B("design:type",HTMLElement)],vU.prototype,"verifiedTooltip",void 0);_.d([_.F(),_.B("design:type",Object)],vU.prototype,"height",void 0);
_.d([_.F(),_.B("design:type",Object)],vU.prototype,"lineHeight",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("badges","forceVerified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vU.prototype,"verified",null);_.d([_.P("badges","verified"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vU.prototype,"hideBadges",null);_.d([_.P("channelName"),_.B("design:type",Object),_.B("design:paramtypes",[])],vU.prototype,"formattedName",null);
_.d([_.P("badges","verified","formattedName"),_.B("design:type",String),_.B("design:paramtypes",[])],vU.prototype,"tooltipText",null);_.d([_.P("hasChannelArt"),_.B("design:type",String),_.B("design:paramtypes",[])],vU.prototype,"tooltipOffset",null);_.d([_.mi("channelName"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vU.prototype,"onChannelNameChanged",null);
_.d([_.mi("height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vU.prototype,"onHeightChanged",null);_.d([_.mi("lineHeight","height"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vU.prototype,"onLineHeightChanged",null);_.d([_.SL({is:"ytd-channel-name",disableElementRegistration:!0})],vU);
_.u(vU,"ytd-channel-name",function(){if(EFX!==void 0)return EFX;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return EFX=e},{mode:_.bA("kevlar_poly_si_batch_j036")?1:2});var Iw=function(){var e=_.V.apply(this,arguments)||this;e.standardizeIconSize=_.M("kevlar_system_icons");return e};
_.U(Iw,_.V);Iw.prototype.basicPaletteChanged=function(){var e;(e=this.data.color)!=null&&e.basicColorPaletteData&&_.Ro(this.hostElement,this.data.color.basicColorPaletteData)};
Iw.prototype.useFilledIcons=function(e){return _.M("kevlar_system_icons")&&(e==="CHECK_CIRCLE_THICK"||e==="OFFICIAL_ARTIST_BADGE")};
_.lB.Object.defineProperties(Iw.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return this.data.authorCreator||((e=this.data)==null?void 0:(z=e.color)==null?void 0:(C=z.basicColorPaletteData)==null?void 0:C.backgroundColor)}}});
Iw.prototype.basicPaletteChanged=Iw.prototype.basicPaletteChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Iw.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Iw.prototype,"standardizeIconSize",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.authorUnifiedVerified"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iw.prototype,"verified",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iw.prototype,"creator",null);_.d([_.mi("data.color.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Iw.prototype,"basicPaletteChanged",null);_.d([_.SL({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Iw);
_.u(Iw,"ytd-author-comment-badge-renderer",function(){if(OSU!==void 0)return OSU;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return OSU=e},{mode:1});var VtY;var WU=function(){return _.V.apply(this,arguments)||this};
_.U(WU,_.V);WU.prototype.computeThumbnailWidth=function(e){if(e==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],WU.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],WU.prototype,"icon",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],WU.prototype,"surface",void 0);
_.d([_.F({reflectToAttribute:!0,value:_.M("enable_shrink_image_size_on_web_posts_singleton")}),_.B("design:type",Boolean)],WU.prototype,"searchSxsUx",void 0);_.d([_.F({reflectToAttribute:!0,value:_.M("enable_community_page_on_desktop")}),_.B("design:type",Boolean)],WU.prototype,"useSmallerPostImageAttachments",void 0);_.d([_.SL({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],WU);
_.u(WU,"ytd-backstage-image-renderer",function(){if(VtY!==void 0)return VtY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return VtY=e},{mode:1});var fbU;var PU=function(){var e=_.V.apply(this,arguments)||this;e.isLoading=!1;e.selectedItemIndex=-1;return e};
_.U(PU,_.V);_.Y=PU.prototype;_.Y.computeIsChannelOwner=function(e){if(!e)return!0;e=e[0];return!(e&&(e.signinEndpoint||e.selectServiceEndpoint))};
_.Y.computeIsImagePoll=function(e){return(e==null?void 0:e.type)==="POLL_TYPE_IMAGE"};
_.Y.computeIsTotalVotesDisabled=function(e){return!(e==null?0:e.totalVotes)};
_.Y.thumbnailSrc=function(e){var z,C,w,K;return(e==null?0:(z=e.thumbnails)==null?0:(C=z[0])==null?0:C.url)?_.gw((w=e.thumbnails)==null?void 0:(K=w[0])==null?void 0:K.url):void 0};
_.Y.progressWidth=function(e){return"width:"+(e?e*100:0)+"%;"};
_.Y.textAreaWidth=function(e){return this.isImagePoll?null:"width:"+(e?e*100:0)+"%;"};
_.Y.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.Y.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var e=this.data.choices,z=0;z<e.length;z++)if(e[z].selected){this.selectedItemIndex=z;break}};
_.Y.onPopupClosed=function(e,z){e=Number(this.pollVotes.selected);z.confirmed&&(this.selectChoice(e,!1),_.eA(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.Y.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.Y.onYtCommentPollRevert=function(e,z){z&&(this.selectChoice(z.selectedChoiceIndex,!0),this.set("data.totalVotes",z.totalVotes))};
_.Y.onYtServiceRequestSent=function(e,z){if(z.actions)for(e=0;e<z.actions.length;e++){var C=z.actions[e];_.r(C,zC)&&this.set("data.totalVotes",_.r(C,zC).totalVotes)}};
_.Y.onYtServiceRequestCompleted=function(e){var z=this.get("detail.data.actionResults.0.feedback",e);e=this.get("detail.data.actionResults.0.status",e);if(z==="FEEDBACK_DESELECT"||z==="FEEDBACK_SELECT")this.isLoading=!1,e==="STATUS_FAILED"?_.pi(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.Y.getEndpoint=function(e,z){return z===e?this.data.choices[z].deselectServiceEndpoint||null:this.data.choices[e].selectServiceEndpoint||null};
_.Y.selectChoice=function(e,z){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var C=0;C<this.data.choices.length;C++){var w;if(e===this.selectedItemIndex){var K=!1;var G=w=null}else w=(K=C===e)?this.data.choices[C].voteRatioIfSelected:this.data.choices[C].voteRatioIfNotSelected,G=K?this.data.choices[C].votePercentageIfSelected:this.data.choices[C].votePercentageIfNotSelected;this.set("data.choices."+C+".voteRatio",w);
this.set("data.choices."+C+".votePercentage",G);this.set("data.choices."+C+".selected",K)}z||(this.isLoading=!0,(z=this.getEndpoint(e,this.selectedItemIndex))&&_.lh().resolve(_.ms).resolveCommand(z,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===e?-1:e};
_.lB.Object.defineProperties(PU.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
PU.prototype.onYtServiceRequestCompleted=PU.prototype.onYtServiceRequestCompleted;PU.prototype.onYtServiceRequestSent=PU.prototype.onYtServiceRequestSent;PU.prototype.onYtCommentPollRevert=PU.prototype.onYtCommentPollRevert;PU.prototype.onPopupClosed=PU.prototype.onPopupClosed;PU.prototype.dataChanged=PU.prototype.dataChanged;_.d([_.W(_.U4),_.B("design:type",Object)],PU.prototype,"paperItemBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],PU.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],PU.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],PU.prototype,"isLoading",void 0);_.d([_.F({computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],PU.prototype,"isChannelOwner",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.B("design:type",Boolean)],PU.prototype,"isImagePoll",void 0);_.d([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],PU.prototype,"isTotalVotesDisabled",void 0);_.d([_.F(),_.B("design:type",Object)],PU.prototype,"previousPollInfo",void 0);_.d([_.F(),_.B("design:type",Object)],PU.prototype,"selectedItemIndex",void 0);_.d([_.nP("#poll-votes"),_.B("design:type",Object)],PU.prototype,"pollVotes",void 0);
_.d([_.P("isChannelOwner"),_.B("design:type",Object),_.B("design:paramtypes",[])],PU.prototype,"endpointStyle",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PU.prototype,"dataChanged",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],PU.prototype,"onPopupClosed",null);
_.d([_.Qi("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],PU.prototype,"onYtCommentPollRevert",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],PU.prototype,"onYtServiceRequestSent",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],PU.prototype,"onYtServiceRequestCompleted",null);_.d([_.SL({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],PU);
_.u(PU,"ytd-backstage-poll-renderer",function(){if(fbU!==void 0)return fbU;var e=document.createElement("template");_.v(e,'\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]]">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" aria-selected$="[[item.selected]]" name="[[index]]" role="option" 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" default-to-filled="true" hidden="[[!item.selected]]" icon="check-circle"></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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return fbU=e},{mode:2});var ShS;var uaS={autoplay:!1,loop:!1},dWC={simpleText:""},Rw=function(){var e=_.V.apply(this,arguments)||this;e.isLoading=!1;e.usesPanelLockup=!1;e.selectedItemIndex=-1;e.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},uaS,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});e.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},uaS,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});e.correctnessAnimationProps=[];e.correctnessAnimationRefs=[];return e};
_.U(Rw,_.V);_.Y=Rw.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.Y.computeIsChannelOwner=function(e){if(!e)return!0;e=e[0];return!(e&&(e.signinEndpoint||e.selectServiceEndpoint))};
_.Y.computeIsTotalVotesDisabled=function(e){return!(e==null?0:e.totalVotes)};
_.Y.computeIsImageQuiz=function(e){return(e==null?void 0:e.type)==="POLL_TYPE_IMAGE"};
_.Y.onExplanationChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var e=this.data.choices;if(e){this.maybeInitializeQuizLotties(e);for(var z=0;z<e.length;z++)if(e[z].isSelected||this.isChannelOwner&&e[z].isCorrect){this.selectedItemIndex=z;return}this.selectedItemIndex=-1}}};
_.Y.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var e=this.selectedItemIndex,z=Number(this.quizVotes.selected);this.selectChoice(z);this.sendVoteAction(z,e);this.quizVotes.selected=-1;var C;e=!((C=this.data)==null?0:C.enableAnimation);this.maybePlayAnswerAnimations(e)}};
_.Y.onYtCommentPollRevert=function(e,z){z&&(this.selectChoice(z.selectedChoiceIndex),this.set("data.totalVotes",z.totalVotes))};
_.Y.onYtServiceRequestSent=function(e,z){if(z.actions)for(e=_.b(z.actions),z=e.next();!z.done;z=e.next())(z=_.r(z.value,zC))&&this.set("data.totalVotes",z.totalVotes)};
_.Y.onYtServiceRequestCompleted=function(e){var z=this.get("detail.data.actionResults.0.feedback",e);e=this.get("detail.data.actionResults.0.status",e);if(z==="FEEDBACK_DESELECT"||z==="FEEDBACK_SELECT")this.isLoading=!1,e==="STATUS_FAILED"?_.pi(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.Y.getAnimationPropsForChoiceIndex=function(e,z){return z[e]};
_.Y.maybePlayAnswerAnimations=function(e){e=e===void 0?!1:e;var z;if((z=this.data)!=null&&z.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){z=_.b(this.correctnessAnimationRefs);for(var C=z.next();!C.done;C=z.next()){var w=void 0,K=void 0;(w=C.value)==null||(K=w.lottieEl)==null||K.stop()}if(!(this.selectedItemIndex<0)){z=0;e&&(z=this.isCorrect?37:25);var G,X;(G=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(X=G.lottieEl)==null||X.goToAndPlay(e?z:0,!0);if(!(this.isCorrect||
(G=this.data.choices.findIndex(function(Q){return Q.isCorrect}),G<0))){var J,q;
(q=(J=this.correctnessAnimationRefs[G])==null?void 0:J.lottieEl)==null||q.goToAndPlay(37,!0);var T;J=(T=this.fadeContainers)==null?void 0:T.item(G);!e&&J&&this.fadeIn(J)}}}};
_.Y.thumbnailSrc=function(e){var z,C,w,K;return(e==null?0:(z=e.thumbnails)==null?0:(C=z[0])==null?0:C.url)?_.gw((w=e.thumbnails)==null?void 0:(K=w[0])==null?void 0:K.url):void 0};
_.Y.a11yVotedText=function(e,z){var C,w,K=((C=this.data)==null?void 0:(w=C.correctVotedText)==null?void 0:w.simpleText)||"",G,X;C=((G=this.data)==null?void 0:(X=G.votedText)==null?void 0:X.simpleText)||"";if(!z)return"";var J,q;if((J=this.data)==null?0:(q=J.choices)==null?0:q[e].isCorrect)return K;var T,Q;return((T=this.data)==null?0:(Q=T.choices)==null?0:Q[e].isSelected)?C:""};
_.Y.getEndpoint=function(e,z){return z===e?this.data.choices[e].deselectServiceEndpoint||null:this.data.choices[e].selectServiceEndpoint||null};
_.Y.sendVoteAction=function(e,z){if(e=this.getEndpoint(e,z))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(e)};
_.Y.selectChoice=function(e){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var z=0;z<this.data.choices.length;z++)this.set("data.choices."+z+".isSelected",e===this.selectedItemIndex?!1:z===e);this.selectedItemIndex=this.selectedItemIndex===e?-1:e};
_.Y.maybeInitializeQuizLotties=function(e){var z=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=e.map(function(C){return{animationConfig:C.isCorrect?z.baseCorrectLottiePlayerAnimationConfig:z.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){z.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(C){return C.animationRef||{}})};
_.Y.fadeIn=function(e){e.classList.add("fade-in");_.XW(_.c5,function(){e.classList.remove("fade-in")},900)};
_.lB.Object.defineProperties(Rw.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Zd(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 e,z;return((e=this.data)==null?void 0:(z=e.choices)==null?void 0:z.some(function(C){return C.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null||!e.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?dWC:this.data.choices[this.selectedItemIndex].explanation||dWC}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null||!e.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Rw.prototype.onYtServiceRequestCompleted=Rw.prototype.onYtServiceRequestCompleted;Rw.prototype.onYtServiceRequestSent=Rw.prototype.onYtServiceRequestSent;Rw.prototype.onYtCommentPollRevert=Rw.prototype.onYtCommentPollRevert;Rw.prototype.dataChanged=Rw.prototype.dataChanged;Rw.prototype.onExplanationChanged=Rw.prototype.onExplanationChanged;_.d([_.W(_.U4),_.B("design:type",Object)],Rw.prototype,"paperItemBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Rw.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.LE.YtTaskEmitterBehavior),_.B("design:type",Object)],Rw.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],Rw.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Rw.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],Rw.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Object)],Rw.prototype,"usesPanelLockup",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.B("design:type",Boolean)],Rw.prototype,"isChannelOwner",void 0);_.d([_.F({computed:"computeIsTotalVotesDisabled(data)"}),_.B("design:type",Boolean)],Rw.prototype,"isTotalVotesDisabled",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.B("design:type",Boolean)],Rw.prototype,"isImageQuiz",void 0);_.d([_.F(),_.B("design:type",Object)],Rw.prototype,"previousQuizInfo",void 0);_.d([_.F(),_.B("design:type",Object)],Rw.prototype,"selectedItemIndex",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data","usesPanelLockup"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rw.prototype,"shouldUseModernUi",null);
_.d([_.MH(".fade-container"),_.B("design:type",Object)],Rw.prototype,"fadeContainers",void 0);_.d([_.F(),_.B("design:type",Array)],Rw.prototype,"correctnessAnimationProps",void 0);_.d([_.P("explanation","showCorrectAnswer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rw.prototype,"showExplanation",null);_.d([_.P("isChannelOwner","isAttempted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rw.prototype,"showCorrectAnswer",null);
_.d([_.P("isChannelOwner","isAttempted","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rw.prototype,"isQuizAnsweringDisabled",null);_.d([_.P("isQuizAnsweringDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rw.prototype,"endpointStyle",null);_.d([_.P("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rw.prototype,"isAttempted",null);
_.d([_.P("data","selectedItemIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rw.prototype,"explanation",null);_.d([_.P("data","selectedItemIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rw.prototype,"isCorrect",null);_.d([_.nP("ytd-expander"),_.B("design:type",Object)],Rw.prototype,"expander",void 0);_.d([_.nP("#quiz-votes"),_.B("design:type",Object)],Rw.prototype,"quizVotes",void 0);
_.d([_.mi("explanation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rw.prototype,"onExplanationChanged",null);_.d([_.mi("data","isChannelOwner"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rw.prototype,"dataChanged",null);_.d([_.Qi("yt-comment-quiz-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Rw.prototype,"onYtCommentPollRevert",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],Rw.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Rw.prototype,"onYtServiceRequestCompleted",null);_.d([_.SL({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Rw);
_.u(Rw,"ytd-backstage-quiz-renderer",function(){if(ShS!==void 0)return ShS;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ShS=e},{mode:1});var DWX;var LT=function(){return _.V.apply(this,arguments)||this};
_.U(LT,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],LT.prototype,"data",void 0);_.d([_.SL({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],LT);
_.u(LT,"ytd-post-uploaded-video-renderer",function(){if(DWX!==void 0)return DWX;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return DWX=e},{mode:1});var iS4;var hB=function(){return _.V.apply(this,arguments)||this};
_.U(hB,_.V);hB.prototype.useFilledIcons=function(e){return e==="SPONSORSHIP_STAR"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hB.prototype,"data",void 0);_.d([_.SL({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],hB);
var NRT=_.Yp()(hB,"ytd-sponsors-only-badge-renderer",function(){if(iS4===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);iS4=e}e=iS4;return e},{allowedProps:["data"],
mode:1});var sFC;var Oj=function(){return _.V.apply(this,arguments)||this};
_.U(Oj,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Oj.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Oj.prototype,"data",void 0);_.d([_.SL({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Oj);
_.u(Oj,"ytd-child-video-renderer",function(){if(sFC!==void 0)return sFC;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return sFC=e},{mode:1});var BRY;var ttU;var Ej=function(){var e=_.V.apply(this,arguments)||this;e.size=0;e.fallbackImageSize={height:void 0,width:9999};e.webModernCollections=!1;return e};
_.U(Ej,_.V);_.Y=Ej.prototype;_.Y.computeBlurredImageSize=function(e){return e?{height:e*2,width:e*2}:this.fallbackImageSize};
_.Y.computeImageSize=function(e){return e?{height:e,width:e}:this.fallbackImageSize};
_.Y.computeObjectFit=function(e){return e?"FILL":"CONTAIN"};
_.Y.computePreserve=function(e){return e?!0:!1};
_.Y.setBackground=function(){var e,z;if((e=this.data)==null?0:(z=e.thumbnail)==null?0:z.sampledThumbnailColor)e=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+e.red+","+e.green+","+e.blue+",1)"};
Ej.prototype.setBackground=Ej.prototype.setBackground;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ej.prototype,"watchFeedThumbnail",void 0);_.d([_.F(),_.B("design:type",Object)],Ej.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Ej.prototype,"size",void 0);
_.d([_.F({computed:"computeBlurredImageSize(size)"}),_.B("design:type",Object)],Ej.prototype,"blurredImageSize",void 0);_.d([_.F({computed:"computeImageSize(size)"}),_.B("design:type",Object)],Ej.prototype,"imageSize",void 0);_.d([_.F({computed:"computePreserve(size)"}),_.B("design:type",String)],Ej.prototype,"preserve",void 0);_.d([_.F({computed:"computeObjectFit(size)"}),_.B("design:type",String)],Ej.prototype,"objectFit",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ej.prototype,"webModernCollections",void 0);_.d([_.mi("data.thumbnail.sampledThumbnailColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ej.prototype,"setBackground",null);_.d([_.SL({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Ej);
_.u(Ej,"ytd-playlist-custom-thumbnail-renderer",function(){if(ttU!==void 0)return ttU;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ttU=e},{mode:1});var gFT;var Fk=function(){return _.V.apply(this,arguments)||this};
_.U(Fk,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Fk.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Fk.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],Fk.prototype,"width",void 0);_.d([_.SL({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Fk);
_.u(Fk,"ytd-playlist-video-thumbnail-renderer",function(){if(gFT!==void 0)return gFT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return gFT=e},{mode:1});var jFC;var Vd=function(){return _.V.apply(this,arguments)||this};
_.U(Vd,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Vd.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],Vd.prototype,"width",void 0);_.d([_.SL({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Vd);
_.u(Vd,"ytd-show-custom-thumbnail-renderer",function(){if(jFC!==void 0)return jFC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jFC=e},{mode:1});var yyo;var fT=function(){return _.V.apply(this,arguments)||this};
_.U(fT,_.V);fT.prototype.useFilledIcons=function(e){return e==="MUSIC"||e==="COURSE"};
fT.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=V$(this.overlayColor,"0.8");else if(this.overlayColor){var e=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+e.red+","+e.green+","+e.blue+",0.8)"}};
_.lB.Object.defineProperties(fT.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)}}});
fT.prototype.overlayColorChanged=fT.prototype.overlayColorChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],fT.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],fT.prototype,"overlayColor",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],fT.prototype,"overlayStyle",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data.icon","data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],fT.prototype,"overlayTextStyle",null);_.d([_.mi("overlayColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fT.prototype,"overlayColorChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],fT);
_.u(fT,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(yyo!==void 0)return yyo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return yyo=e},{mode:1});var cya;var SG=function(){var e=_.V.apply(this,arguments)||this;e.active=!1;return e};
_.U(SG,_.V);SG.prototype.computeIsSpinnerHidden=function(e){return(e==null?void 0:e.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
SG.prototype.computeOverlayIcon=function(e){return(e==null?void 0:e.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(e==null?void 0:e.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],SG.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],SG.prototype,"active",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],SG);
_.u(SG,"ytd-thumbnail-overlay-downloading-renderer",function(){if(cya!==void 0)return cya;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return cya=e},{mode:1});var Aya;var uT=function(){return _.V.apply(this,arguments)||this};
_.U(uT,_.V);_.lB.Object.defineProperties(uT.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uT.prototype,"data",void 0);_.d([_.P("data.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],uT.prototype,"text",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],uT);
_.u(uT,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(Aya!==void 0)return Aya;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Aya=e},{mode:1});var ZSX,pGT=function(){if(ZSX!==void 0)return ZSX;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ZSX=e};var di=function(){return _.V.apply(this,arguments)||this};
_.U(di,_.V);_.lB.Object.defineProperties(di,{template:{configurable:!0,enumerable:!0,get:function(){return pGT()}}});
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],di.prototype,"animateEqualizer",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],di);_.Yp()(di,"ytd-thumbnail-overlay-equalizer",function(){return pGT()},{allowedProps:["animateEqualizer"],
mode:1});var e4U;var D5=function(){var e=_.V.apply(this,arguments)||this;e.nowPlayingBadge=_.M("web_now_playing_badge");e.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return e};
_.U(D5,_.V);D5.prototype.activeChanged=function(){var e=this;_.M("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.T0(this,function(){_.pi(e.hostElement,"yt-playlist-lockup-now-playing-active",e)})};
D5.prototype.onMiniplayerPlayStateChanged=function(e){var z,C=(z=_.r(_.C3().currentEndpoint,_.N$))==null?void 0:z.videoId;this.isVideoPlaying=e&&(_.M("web_limit_now_playing_animation_killswitch")||this.videoId===C)};
D5.prototype.activeChanged=D5.prototype.activeChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],D5.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],D5.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],D5.prototype,"isVideoPlaying",void 0);_.d([_.F(),_.B("design:type",String)],D5.prototype,"videoId",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],D5.prototype,"equalizerOnly",void 0);_.d([_.F(),_.B("design:type",Boolean)],D5.prototype,"isActive",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],D5.prototype,"nowPlayingBadge",void 0);_.d([_.mi("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D5.prototype,"activeChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],D5);
_.u(D5,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(e4U!==void 0)return e4U;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return e4U=e},{mode:1});var z4U;var iT=function(){return _.V.apply(this,arguments)||this};
_.U(iT,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iT.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],iT);
_.u(iT,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(z4U!==void 0)return z4U;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return z4U=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var CD6;var Nd=function(){return _.V.apply(this,arguments)||this};
_.U(Nd,_.V);Nd.prototype.onDurationChanged=function(){var e,z;_.XC(this.hostElement).querySelector("#progress").style.width=((z=(e=this.data)==null?void 0:e.percentDurationWatched)!=null?z:0)+"%"};
Nd.prototype.onDurationChanged=Nd.prototype.onDurationChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Nd.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Nd.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Nd.prototype,"isLive",void 0);_.d([_.mi("data.percentDurationWatched"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Nd.prototype,"onDurationChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Nd);
_.u(Nd,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(CD6!==void 0)return CD6;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return CD6=e},{mode:1});var wuo;var sj=function(){var e=_.V.apply(this,arguments)||this;e.bottomPanel=!1;e.richGridOverlay=!1;e.watchFeedOverlay=!1;e.isCompact=!1;return e};
_.U(sj,_.V);sj.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.lB.Object.defineProperties(sj.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:(z=e.icon)==null?void 0:z.iconType)==="PLAY_ALL"&&_.M("kevlar_system_icons")}}});
sj.prototype.widthChanged=sj.prototype.widthChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sj.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],sj.prototype,"width",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sj.prototype,"bottomPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sj.prototype,"richGridOverlay",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sj.prototype,"watchFeedOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sj.prototype,"isCompact",void 0);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sj.prototype,"isIconFilled",null);_.d([_.mi("width","watchFeedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sj.prototype,"widthChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],sj);
_.u(sj,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(wuo!==void 0)return wuo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return wuo=e},{mode:1});var KLa;var oYC=["CLIP","SHORTS"],BU=function(){var e=_.V.apply(this,arguments)||this;e.animated=_.M("animated_live_badge_icon");e.hasIcon=!1;e.updateTimerIntervalId=0;e.timeSinceLive=0;return e};
_.U(BU,_.V);_.Y=BU.prototype;_.Y.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.Y.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.Y.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.Y.hasIconOrText=function(){var e,z;return!!(((e=this.data)==null?0:e.icon)||((z=this.data)==null?0:z.text))};
_.Y.initializeLiveBadgeTimer=function(){var e=this,z,C=(z=this.liveBadgeData)==null?void 0:z.startTimestampSec;if(C&&this.canShowLiveBadgeTimer()){var w;z=Number((w=this.liveBadgeData)==null?void 0:w.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(C);this.updateTimerIntervalId=_.vi(function(){e.canShowLiveBadgeTimer()?e.timeSinceLive++:(e.timeSinceLive=0,window.clearInterval(e.updateTimerIntervalId))},z)}else this.timeSinceLive=0};
_.Y.canShowLiveBadgeTimer=function(){var e=Date.now(),z,C;return e<(Number((z=this.liveBadgeData)==null?void 0:z.endTimestampSec)-1)*1E3&&e>Number((C=this.liveBadgeData)==null?void 0:C.startTimestampSec)*1E3};
_.lB.Object.defineProperties(BU.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Ols(this.data,this.timeSinceLive):{}}},
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 e;return(e=this.data)==null?void 0:e.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 oYC.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
BU.prototype.initializeLiveBadgeTimer=BU.prototype.initializeLiveBadgeTimer;BU.prototype.dataChanged=BU.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],BU.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BU.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],BU.prototype,"icon",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BU.prototype,"animated",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.B("design:type",Boolean)],BU.prototype,"hideTimeStatus",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],BU.prototype,"hasIcon",void 0);_.d([_.F(),_.B("design:type",Object)],BU.prototype,"timeSinceLive",void 0);_.d([_.P("data","timeSinceLive"),_.B("design:type",Object),_.B("design:paramtypes",[])],BU.prototype,"badgeShapeData",null);
_.d([_.P("data","overlayType"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],BU.prototype,"hideBadgeShape",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BU.prototype,"dataChanged",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],BU.prototype,"overlayStyle",null);
_.d([_.P("data.liveBadgeData"),_.B("design:type",Object),_.B("design:paramtypes",[])],BU.prototype,"liveBadgeData",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.type"),_.B("design:type",Object),_.B("design:paramtypes",[])],BU.prototype,"overlayType",null);_.d([_.P("overlayType","overlayStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],BU.prototype,"useFilledIcon",null);
_.d([_.Ux("liveBadgeData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BU.prototype,"initializeLiveBadgeTimer",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],BU);
_.u(BU,"ytd-thumbnail-overlay-time-status-renderer",function(){if(KLa!==void 0)return KLa;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return KLa=e},{mode:_.bA("kevlar_poly_si_batch_j035")?1:2});var GHg;var tB=function(){return _.V.apply(this,arguments)||this};
_.U(tB,_.V);tB.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"}}}}};
tB.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(e){if(this.hasPlaybackProgressBar)return{percentDurationWatched:e.percentDurationWatched}};
tB.prototype.computeHasPlaybackProgressBar=function(e){return!!e.percentDurationWatched&&e.percentDurationWatched>0};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tB.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.B("design:type",Boolean)],tB.prototype,"hasPlaybackProgressBar",void 0);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],tB);
_.u(tB,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(GHg!==void 0)return GHg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return GHg=e},{mode:1});var Yus;var b1X=_.f(function(e){var z=e.data;var C=e.children;var w=function(){return!!z().doubleStack},K=function(){return!!z().includeStackHeight};
return _.x("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!z().experimentEnabled}},_.x(_.l,{cond:z,
then:function(){var G={};return _.x(_.Qw,null,_.x(_.l,{cond:K,then:function(){var X={};return _.x("div",{class:_.qT("ytCollectionsStackSpacer",(X.ytCollectionsStackSpacerDoubleStack=w,X))})}}),_.x("div",{class:_.qT((G.ytCollectionsStackRelativeStack=K,G))},_.x(_.l,{cond:w,
then:function(){var X={};return _.x("div",{class:_.qT("ytCollectionsStackCollectionStack2",function(){return z().customClassName2ndStack},(X.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return z().enableResponsiveMode},X)),
style:_.QC({"background-color":function(){return FKm(z())}})})}}),_.x("div",{class:_.qT("ytCollectionsStackCollectionStack1",function(){return z().customClassName1stStack},function(){return Eek(z().thumbnailSize?z().thumbnailSize:"medium")}),
style:_.QC({"background-color":function(){return FKm(z())}})}),C))}}))},"Da");_.KU(b1X,"yt-collections-stack",{props:{data:_.vh}});var gi=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};e.webModernCollections=!1;e.isSearch=!1;e.isDoubleStack=!1;e.thumbnailSize="medium";return e};
_.U(gi,_.V);_.Y=gi.prototype;
_.Y.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]]"}}}}}};
_.Y.getThumbnailDetails=function(e){if(e!=null&&e.thumbnailRenderer){var z=e.thumbnailRenderer,C;if((C=z.playlistVideoThumbnailRenderer)==null?0:C.thumbnail)return z.playlistVideoThumbnailRenderer.thumbnail;var w;if((w=z.playlistCustomThumbnailRenderer)==null?0:w.thumbnail)return z.playlistCustomThumbnailRenderer.thumbnail;e=e.thumbnailRenderer;var K;if((K=e.showCustomThumbnailRenderer)==null?0:K.thumbnail)return e.showCustomThumbnailRenderer.thumbnail}};
_.Y.computeOverlayColor=function(e){var z,C;if((z=this.getThumbnailDetails(e))==null?0:(C=z.darkColorPalette)==null?0:C.section2Color)return this.getThumbnailDetails(e).darkColorPalette.section2Color;var w;return(w=this.getThumbnailDetails(e))==null?void 0:w.sampledThumbnailColor};
_.Y.computeWebModernCollections=function(e){if(e==null||!e.thumbnailOverlays)return!1;e=_.b(e.thumbnailOverlays);for(var z=e.next();!z.done;z=e.next()){var C=void 0;if((C=z.value)==null?0:C.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.Y.computeNavigationEndpoint=function(e){return iHk(e==null?void 0:e.navigationEndpoint)};
_.lB.Object.defineProperties(gi.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var e=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:e==null?void 0:e.sampledThumbnailColor,vibrantColorPalette:e==null?void 0:e.vibrantColorPalette,darkColorPalette:e==null?void 0:e.darkColorPalette,experimentEnabled:!0}}}});
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],gi.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(l1L),_.B("design:type",Object)],gi.prototype,"ytdThumbnailBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],gi.prototype,"componentBehavior",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],gi.prototype,"watchFeedThumbnail",void 0);_.d([_.F(),_.B("design:type",Number)],gi.prototype,"customThumbnailSize",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],gi.prototype,"hideAria",void 0);_.d([_.F(),_.B("design:type",Object)],gi.prototype,"data",void 0);_.d([_.F({computed:"computeOverlayColor(data)"}),_.B("design:type",Object)],gi.prototype,"overlayColor",void 0);
_.d([_.F({computed:"computeWebModernCollections(data)"}),_.B("design:type",Object)],gi.prototype,"webModernCollections",void 0);_.d([_.F({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],gi.prototype,"computedNavigationEndpoint",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],gi.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],gi.prototype,"isDoubleStack",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],gi.prototype,"thumbnailSize",void 0);_.d([_.P("data","isDoubleStack","thumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],gi.prototype,"collectionStack",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],gi);
_.u(gi,"ytd-playlist-thumbnail",function(){if(Yus!==void 0)return Yus;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Yus=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var Xua;_.KU(_.f(function(e){return _.x("yt-text-view-model",{class:_.qT("ytTextViewModelHost")},_.x(_.U2,{text:function(){return e.data().text}}))},"Ea"),"yt-text-view-model",{props:{data:_.vh}});var jG=function(){var e=_.V.apply(this,arguments)||this;e.noEndpoints=!1;e.amsterdamPostMvp=_.M("web_amsterdam_post_mvp_playlists");e.badges=[];e.transferState="TRANSFER_STATE_UNKNOWN";return e};
_.U(jG,_.V);_.Y=jG.prototype;_.Y.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.Y.getMetadata=function(e){if(!e)return[];var z=[],C=e.shortViewCountText||e.viewCountText;C&&z.push(_.Zd(C));e.publishedTimeText&&z.push(_.Zd(e.publishedTimeText));e.upcomingEventData&&e.upcomingEventData.upcomingEventText&&z.push(_.Ez(_.Zd(e.upcomingEventData.upcomingEventText),Number(e.upcomingEventData.startTime)));return z};
_.Y.observeDataForBylineSeparator=function(){this.data&&_.k$(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.Y.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.EG(this.metadataColor)};
_.Y.getSimpleString=function(e){return _.Zd(e)};
_.Y.isBylineHidden=function(e){return this.noByline||!((e==null?0:e.longBylineText)||(e==null?0:e.shortBylineText))};
_.Y.isMetadataHidden=function(e){var z;return((z=this.getMetadata(e))==null?void 0:z.length)===0};
_.Y.isBylineMetadataSeparatorHidden=function(e){return this.isMetadataHidden(e)||!this.shouldShowVideoInfo};
_.Y.isLongByline=function(e,z){return z&&!(e==null||!e.longBylineText)};
_.lB.Object.defineProperties(jG.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var e;return this.amsterdamPostMvp&&!((e=this.data)==null||!e.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
jG.prototype.metadataColorChanged=jG.prototype.metadataColorChanged;jG.prototype.observeDataForBylineSeparator=jG.prototype.observeDataForBylineSeparator;_.d([_.W(_.QX),_.B("design:type",Object)],jG.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jG.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],jG.prototype,"noEndpoints",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jG.prototype,"isSlimShort",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jG.prototype,"radioMeta",void 0);_.d([_.F({selector:_.Sj}),_.B("design:type",Object)],jG.prototype,"isGridViewEnabled",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jG.prototype,"richMeta",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jG.prototype,"amsterdamPostMvp",void 0);
_.d([_.F(),_.B("design:type",Boolean)],jG.prototype,"noByline",void 0);_.d([_.F({computed:"isLongByline(data, radioMeta)"}),_.B("design:type",Boolean)],jG.prototype,"longByline",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jG.prototype,"truncateMetadataLine",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jG.prototype,"miniMode",void 0);_.d([_.F(),_.B("design:type",Number)],jG.prototype,"metadataColor",void 0);
_.d([_.F(),_.B("design:type",Array)],jG.prototype,"badges",void 0);_.d([_.F({selector:_.dk,selectorArgs:["data.videoId"]}),_.B("design:type",String)],jG.prototype,"transferState",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jG.prototype,"isDownloading",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],jG.prototype,"typographyBump",void 0);_.d([_.nP("#metadata-line"),_.B("design:type",HTMLElement)],jG.prototype,"metadataLine",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jG.prototype,"observeDataForBylineSeparator",null);_.d([_.mi("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jG.prototype,"metadataColorChanged",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],jG.prototype,"shouldShowVideoInfo",null);
_.d([_.P("badges"),_.B("design:type",String),_.B("design:paramtypes",[])],jG.prototype,"inlineBadgeClass",null);_.d([_.P("longByline"),_.B("design:type",String),_.B("design:paramtypes",[])],jG.prototype,"longBylineClass",null);_.d([_.P("data","longByline"),_.B("design:type",Object),_.B("design:paramtypes",[])],jG.prototype,"bylineText",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jG.prototype,"hasAttributedBylineText",null);
_.d([_.P("isGridViewEnabled","data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jG.prototype,"watchFeedBigThumbs",null);_.d([_.SL({is:"ytd-video-meta-block",disableElementRegistration:!0})],jG);
_.u(jG,"ytd-video-meta-block",function(){if(Xua!==void 0)return Xua;var e=document.createElement("template");_.v(e,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Xua=e},{mode:_.bA("kevlar_poly_si_batch_j080")?1:2});_.hq("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var yd=function(){var e=_.V.apply(this,arguments)||this;e.displayItemCount=2;e.isBackstagePlaylist=!1;e.isPostCompactPlaylist=!1;e.shouldShowChannelThumbnail=!1;return e};
_.U(yd,_.V);_.Y=yd.prototype;_.Y.computeFirstVideos=function(e,z){return e===void 0||z===void 0?[]:e.slice(0,z)};
_.Y.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var e=this.data.thumbnailRenderer;e.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",e.playlistVideoThumbnailRenderer.thumbnail);e.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",e.playlistCustomThumbnailRenderer.thumbnail)}};
_.Y.computeThumbnailHeight=function(e,z,C,w,K){return w?K==="BIG"?280:K==="MASSIVE"?337:234:C?240:z?72:e?118:138};
_.Y.computeThumbnailWidth=function(e,z,C,w,K){return w?K==="MEDIUM"?450:K==="BIG"?500:K==="MASSIVE"?600:420:C?360:z?128:e?210:246};
_.Y.computeUseBiggerThumbs=function(e){return e&&_.M("enable_desktop_search_bigger_thumbs")};
_.Y.computeShouldShowChannelThumbnail=function(e,z){return e&&!(z==null||!z.channelThumbnail)};
_.lB.Object.defineProperties(yd.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
yd.prototype.dataChanged=yd.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],yd.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],yd.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yd.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],yd.prototype,"displayItemCount",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yd.prototype,"isBackstagePlaylist",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yd.prototype,"isPostCompactPlaylist",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yd.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.B("design:type",Boolean)],yd.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],yd.prototype,"biggerThumbsStyle",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],yd.prototype,"isDownloads",void 0);_.d([_.F({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.B("design:type",Object)],yd.prototype,"shouldShowChannelThumbnail",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yd.prototype,"dataChanged",null);
_.d([_.P("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],yd.prototype,"stackThumbnailSize",null);_.d([_.SL({is:"ytd-playlist-renderer",disableElementRegistration:!0})],yd);
_.u(yd,"ytd-playlist-renderer",function(){if(BRY===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);BRY=e}e=BRY;return e},{mode:1});var JVU;var kH6;var cU=function(){var e=_.V.apply(this,arguments)||this;e.startX=0;return e};
_.U(cU,_.V);cU.prototype.onEndpointMouseDown=function(e){this.startX=e.clientX};
cU.prototype.onEndpointClick=function(e){this.startX!==e.clientX&&(e.preventDefault(),e.stopPropagation())};
cU.prototype.computeObjectFit=function(e){return e==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||e==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||e==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
cU.prototype.computeCardStyle=function(e){return e?e.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.lB.Object.defineProperties(cU.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:(z=e.searchRefinementCardRendererStyle)==null?void 0:z.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cU.prototype,"data",void 0);_.d([_.F({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",Number)],cU.prototype,"objectFit",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.B("design:type",String)],cU.prototype,"cardStyle",void 0);
_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],cU.prototype,"roundContainer",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],cU.prototype,"isAlbumCard",null);_.d([_.P("data","isAlbumCard"),_.B("design:type",Object),_.B("design:paramtypes",[])],cU.prototype,"collectionStack",null);_.d([_.SL({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],cU);
_.u(cU,"ytd-search-refinement-card-renderer",function(){if(kH6!==void 0)return kH6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return kH6=e},{mode:1});var qua;var AB=function(){var e=_.V.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.U(AB,_.V);_.d([_.F(),_.B("design:type",Object)],AB.prototype,"data",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],AB.prototype,"componentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],AB.prototype,"ytdReduxBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],AB.prototype,"isRichGrid",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],AB.prototype,"miniMode",void 0);
_.d([_.SL({is:"ytd-game-details-renderer",disableElementRegistration:!0})],AB);
_.u(AB,"ytd-game-details-renderer",function(){if(qua!==void 0)return qua;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return qua=e},{mode:1});var xhX;var Tjh;var Z5=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return e};
_.U(Z5,_.V);_.Y=Z5.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.currentStateData=function(e){var z=e||this.data;return z&&z.states&&z.currentStateId!=null?z.states.find(function(C){return C.stateId===z.currentStateId})||null:null};
_.Y.currentStateRendererData=function(e){return(e=this.currentStateData(e))&&e.state&&e.state.buttonRenderer?e.state.buttonRenderer:null};
_.Y.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())};
_.Y.computeButtonIcon=function(e){e=this.currentStateRendererData(e);var z;return(e==null?0:(z=e.icon)==null?0:z.iconType)?e.icon.iconType.toLowerCase():null};
_.Y.computeAccessibility=function(e){return(e=this.currentStateRendererData(e))&&e.accessibilityData?e.accessibilityData.accessibilityData||null:null};
_.Y.computeButtonClass=function(e){var z=this.currentStateRendererData(e);if(!z)return"";e="";var C=z.style;C&&(e+=C.toLowerCase().replace(/_/g,"-")+" ");(z=z.size)&&(e+=z.toLowerCase().replace(/_/g,"-")+" ");return e.trim()};
_.Y.computeServiceEndpoint=function(e){if(!e)return null;var z=e&&e.serviceEndpoint,C=this.get("command.commandMetadata.webCommandMetadata.sendPost",e);return z?z:C&&e.command?e.command:null};
_.Y.computeBellMenuItemParams=function(e){var z;e=(z=_.r(e==null?void 0:e.command,_.Gj))==null?void 0:z.commands;if(!e||e.length===0)return null;z=_.r(e[0],_.CH);var C,w;return(z==null?0:(C=z.popup)==null?0:(w=C.menuPopupRenderer)==null?0:w.items)?z.popup.menuPopupRenderer.items.map(function(K){return K.menuServiceItemRenderer.trackingParams}):null};
_.Y.handleBellMenuOpenSelectedAction=function(e){var z=e.trackingParams,C=this.computeBellMenuItemParams(this.data);this.data&&z&&C&&C.includes(z)&&this.ytRenderButtonBehavior._setButtonIcon(e.icon.iconType.toLowerCase())};
_.Y.onYtServiceRequestCompleted=function(e,z){(e=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",z))&&this.set("data",e)};
_.Y.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.Y.resetState=function(){this.set("data.currentStateId",3)};
_.Y.onYtButtonTapHandler=function(){if(this.data){var e=this.currentStateRendererData(this.data);e&&this.ytRendererBehavior.logExplicitClick(e)}};
Z5.prototype.onYtServiceRequestError=Z5.prototype.onYtServiceRequestError;Z5.prototype.onYtServiceRequestCompleted=Z5.prototype.onYtServiceRequestCompleted;Z5.prototype.stateChanged=Z5.prototype.stateChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(wy.YtRenderButtonBehavior),_.B("design:type",Object)],Z5.prototype,"ytRenderButtonBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Z5.prototype,"data",void 0);_.d([_.Ux("data","data.currentStateId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z5.prototype,"stateChanged",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],Z5.prototype,"onYtServiceRequestCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Z5.prototype,"onYtServiceRequestError",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Z5);
_.u(Z5,"ytd-subscription-notification-toggle-button-renderer",function(){if(Tjh!==void 0)return Tjh;var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Tjh=e},{mode:1});var $hs;var pT=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};e.tapHandler=function(){if(e.data){var z=e.currentStateRendererData();z&&e.ytRendererBehavior.logExplicitClick(z)}};
return e};
_.U(pT,_.V);_.Y=pT.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.currentStateData=function(){var e=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(z){return z.stateId===e.data.currentStateId})||null:null};
_.Y.currentStateRendererData=function(){var e=this.currentStateData();return e&&e.state&&e.state.buttonRenderer?e.state.buttonRenderer:null};
_.Y.computeAccessibilityLabel=function(){var e,z,C;return(e=this.currentStateRendererData())==null?void 0:(z=e.accessibilityData)==null?void 0:(C=z.accessibilityData)==null?void 0:C.label};
_.Y.computeBellMenuItemParams=function(){var e,z,C=(z=_.r((e=this.data)==null?void 0:e.command,_.Gj))==null?void 0:z.commands;if(!C||C.length===0)return null;e=_.r(C[0],_.CH);var w,K;return(e==null?0:(w=e.popup)==null?0:(K=w.menuPopupRenderer)==null?0:K.items)?e.popup.menuPopupRenderer.items.map(function(G){return G.menuServiceItemRenderer.trackingParams}):null};
_.Y.handleBellMenuOpenSelectedAction=function(e){var z=e.trackingParams,C=this.computeBellMenuItemParams();if(this.data&&z&&C&&C.includes(z)&&(e==null||!e.isDisabled)){var w;((w=_.r(e.serviceEndpoint,_.bd))==null?void 0:w.signal)!=="CLIENT_SIGNAL"&&(this.icon=e.icon.iconType)}};
_.Y.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.Y.onYtServiceRequestCompleted=function(e,z){if(e=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",z))this.icon=void 0,this.set("data",e)};
_.Y.onYtServiceRequestError=function(){this.icon=void 0};
_.lB.Object.defineProperties(pT.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=this.data,z=this.textLabel,C=this.hostElement,w=this.computeAccessibilityLabel(),K=this.tapHandler,G=this.isOverlay?"overlay":"mono",X=(e==null?0:e.disableButton)?"disabled":"active";z=z?_.Em(z):void 0;return{style:G,type:"tonal",state:X,size:"M",focused:!1,formattedButtonText:z,iconPosition:"leading-trailing",onTap:fuN(e,K,C),accessibilityLabel:w}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var e=this.currentStateRendererData(),z,C,w=(C=this.icon)!=null?C:e==null?void 0:(z=e.icon)==null?void 0:z.iconType;if(w)return _.qF(w)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.secondaryIcon)==null?void 0:z.iconType;if(C)return _.qF(C)}}});
pT.prototype.onYtServiceRequestError=pT.prototype.onYtServiceRequestError;pT.prototype.onYtServiceRequestCompleted=pT.prototype.onYtServiceRequestCompleted;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],pT.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],pT.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],pT.prototype,"textLabel",void 0);
_.d([_.F(),_.B("design:type",String)],pT.prototype,"icon",void 0);_.d([_.F(),_.B("design:type",Boolean)],pT.prototype,"isOverlay",void 0);_.d([_.P("data.*","textLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],pT.prototype,"computedButtonShape",null);_.d([_.P("data.*","icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],pT.prototype,"computedIcon",null);_.d([_.P("computedIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],pT.prototype,"computedAnimateIcon",null);
_.d([_.P("data.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],pT.prototype,"computedSecondaryIcon",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],pT.prototype,"onYtServiceRequestCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],pT.prototype,"onYtServiceRequestError",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],pT);
_.u(pT,"ytd-subscription-notification-toggle-button-renderer-next",function(){if($hs!==void 0)return $hs;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return $hs=e},{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var l$S;_.KU(lbc,"yt-animated-action",{props:{backgroundLottieRef:_.vh,foregroundLottieRef:_.vh,wrapperClass:_.vh,disableAnimation:_.vh},unsafeExternallySettableAttributes:new Set(["key"])});var ee=function(){var e=_.V.apply(this,arguments)||this;e.animatedActionEnabled=_.M("web_animated_actions");e.foregroundLottieRef={};e.backgroundLottieRef={};e.forceIconOnly=!1;e.showTextWhileAnimating=!1;e.keyboardFocused=!1;e.isAnimating=!1;e.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return e};
_.U(ee,_.V);_.Y=ee.prototype;_.Y.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.Y.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]]"}}}}}};
_.Y.attached=function(){this.keyboardFocused=!1};
_.Y.onYtServiceRequestSent=function(e,z){(this.get("endpoint.subscribeEndpoint",z)||this.get("endpoint.unsubscribeEndpoint",z))&&this.updateSubscriptionState(!this.subscribed)};
_.Y.onYtServiceRequestCompleted=function(e,z){(e=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",z.data))&&this.bellButton&&(this.bellButton.data=e)};
_.Y.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.T8(this.hostElement)};
_.Y.onPlayerSubscribe=function(e){this.isCompactRed()||e!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.Y.onPlayerUnsubscribe=function(e){this.isCompactRed()||e!==this.data.channelId||this.updateSubscriptionState(!1)};
_.Y.handleUpdateSubscribeButtonAction=function(e){e=_.r(e,qrU);var z;e&&e.channelId===((z=this.data)==null?void 0:z.channelId)&&this.updateSubscriptionState(!!e.subscribed)};
_.Y.computeButtonStyle=function(e){return this.get("style.styleType",e)||null};
_.Y.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.Y.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.Y.updateSubscriptionState=function(e){if(e!==this.subscribed){this.set("data.subscribed",e);var z,C=(z=this.data)==null?void 0:z.subscribedEntityKey;C&&this.ytdReduxBehavior.dispatch(_.Rx("subscriptionStateEntity",C,{key:C,subscribed:e}));this.isCompactRed()||_.pi(this.hostElement,"yt-subscription-changed",e);e||(_.eA(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!e),e&&this.hasBellButton&&this.startAnimation())}};
_.Y.startAnimation=function(){var e=this;if(!this.isAnimating){var z=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var C;(C=this.backgroundLottieRef.lottieEl)==null||C.goToAndPlay(0);var w;(w=this.foregroundLottieRef.lottieEl)==null||w.goToAndPlay(0);_.c5.addJob(function(){e.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.c5.addJob(function(){e.updateContainerToFitContent(!!e.subscribed,!0)},2,1500);
_.c5.addJob(function(){e.isAnimating=!1},2,z)}};
_.Y.maybeAnimateBellIcon=function(){var e=_.JK(this.hostElement).querySelector("yt-animated-icon");if(e){var z;(z=e.animationRef.lottieEl)==null||z.goToAndPlay(0)}};
_.Y.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.Y.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.Y.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var e;this.unsubscribedWidth=(e=this.subscribeButtonShape)==null?void 0:e.getBoundingClientRect().width}var z;this.subscribedWidth=(z=this.bellButton)==null?void 0:z.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.Y.updateContainerToFitContent=function(e,z){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(e?(e=this.subscribedWidth,z=this.isAnimating&&!z,this.subscribedIconOnlyWidth===void 0||z||(e=this.subscribedIconOnlyWidth),this.hostElement.style.width=e+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.Y.clearContainerSize=function(){this.hostElement.style.width=""};
_.Y.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.Y.maybeSetSubscribedButtonIconOnlyWidth=function(){var e=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var z;e.subscribedIconOnlyWidth=(z=e.bellButton)==null?void 0:z.getBoundingClientRect().width;requestAnimationFrame(function(){if(e.bellButton){var C;e.bellButton.textLabel=
(C=e.data)==null?void 0:C.subscribedButtonText}})})))};
_.lB.Object.defineProperties(ee.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 e;return(e=this.data)==null?void 0:e.subscribedButtonText}var z;return this.forceIconOnly?void 0:(z=this.data)==null?void 0:z.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var e,z,C=((e=this.data)==null?void 0:(z=e.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"subscribe",timings:C,enabled:C.length>0&&!this.subscribed,experimentEnabled:C.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var e;return!this.subscribed&&((e=this.data)==null?void 0:e.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 e={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var z=e.renderer;var C=e.element;var w=e.subscribed;var K=e.commandController;var G=e.isOverlay;e=e.stopPropagation;var X=DR1(z,w);G&&(X.style="overlay");G=Object;var J=G.assign,q;a:switch((q=z.style)==null?void 0:q.styleType){case "COMPACT_GRAY":case "COMPACT_RED":q={size:"S"};break a;default:q={size:"M"}}var T=dR1(z,
w);var Q=(Q=w?z.subscribedButtonText:z.unsubscribedButtonText)?_.Em(Q):void 0;return J.call(G,{},X,q,{focused:!1,toggled:w,accessibilityLabel:T,formattedButtonText:Q,onTap:uBk(z,w,C,K,e)})}}}});
ee.prototype.onMouseDown=ee.prototype.onMouseDown;ee.prototype.onDataChanged=ee.prototype.onDataChanged;ee.prototype.observedSubscribed=ee.prototype.observedSubscribed;ee.prototype.onYtServiceRequestCompleted=ee.prototype.onYtServiceRequestCompleted;ee.prototype.onYtServiceRequestSent=ee.prototype.onYtServiceRequestSent;ee.prototype.maybeUpdateBellButtonText=ee.prototype.maybeUpdateBellButtonText;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],ee.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ee.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ee.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],ee.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ee.prototype,"data",void 0);
_.d([_.F({selectorArgs:["data.subscribedEntityKey"],selector:GFm}),_.B("design:type",Object)],ee.prototype,"subscriptionStateEntity",void 0);_.d([_.F({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.B("design:type",Boolean)],ee.prototype,"subscribed",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ee.prototype,"branded",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ee.prototype,"animatedActionEnabled",void 0);
_.d([_.F(),_.B("design:type",Object)],ee.prototype,"foregroundLottieRef",void 0);_.d([_.F(),_.B("design:type",Object)],ee.prototype,"backgroundLottieRef",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ee.prototype,"overlayButton",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.B("design:type",Object)],ee.prototype,"buttonStyle",void 0);_.d([_.F(),_.B("design:type",Object)],ee.prototype,"forceIconOnly",void 0);
_.d([_.F(),_.B("design:type",Object)],ee.prototype,"showTextWhileAnimating",void 0);_.d([_.F({value:function(){return!!_.lh().resolve(_.$B(_.V5))&&_.M("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],ee.prototype,"useKeyboardFocused",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ee.prototype,"keyboardFocused",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ee.prototype,"isAnimating",void 0);_.d([_.P("data.notificationPreferenceButton.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],ee.prototype,"hasBellButton",null);
_.d([_.mi("subscribedButtonText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"maybeUpdateBellButtonText",null);_.d([_.P("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],ee.prototype,"subscribedButtonText",null);_.d([_.P("data.timedAnimationData.animationTiming","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],ee.prototype,"smartimationSettings",null);
_.d([_.F({reflectToAttribute:!0}),_.P("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],ee.prototype,"subscribeButtonHidden",null);_.d([_.F({reflectToAttribute:!0}),_.P("subscribed","hasBellButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],ee.prototype,"subscribeButtonInvisible",null);
_.d([_.F({reflectToAttribute:!0}),_.P("subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],ee.prototype,"unsubscribeButtonHidden",null);_.d([_.nP("ytd-subscription-notification-toggle-button-renderer-next"),_.B("design:type",Object)],ee.prototype,"bellButton",void 0);_.d([_.nP("#subscribe-button-shape"),_.B("design:type",HTMLElement)],ee.prototype,"subscribeButtonShape",void 0);
_.d([_.P("overlayButton","subscribed","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ee.prototype,"buttonShape",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],ee.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],ee.prototype,"onYtServiceRequestCompleted",null);
_.d([_.mi("subscribed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"observedSubscribed",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ee.prototype,"onDataChanged",null);_.d([_.Qi("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],ee.prototype,"onMouseDown",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],ee);
_.u(ee,"ytd-subscribe-button-renderer",function(){if(l$S!==void 0)return l$S;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return l$S=e},{mode:1});var zh=function(){var e=_.V.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.U(zh,_.V);zh.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zh.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],zh.prototype,"isRichGrid",void 0);_.d([_.SL({is:"ytd-game-card-renderer",disableElementRegistration:!0})],zh);
_.u(zh,"ytd-game-card-renderer",function(){if(xhX!==void 0)return xhX;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return xhX=e},{mode:1});var C9={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.M("defer_menus")&&!ye4?0:void 0,waitForSignal:"eocs"};var QtX;var mhU;var wH=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return e};
_.U(wH,_.V);_.Y=wH.prototype;_.Y.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.Y.onSeriesReminderStateEntityChange=function(){var e,z,C;((e=this.eventReminderStateEntity)==null?0:e.key)&&((z=this.seriesReminderStateEntity)==null?void 0:z.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((C=this.eventReminderStateEntity)==null?void 0:C.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Rx("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.Y.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.Y.onYtServiceRequestError=function(){var e;this.updateReminderStateEntitiesFromButtonState((e=this.data)==null?void 0:e.currentState)};
_.Y.handleUpdateUpcomingEventReminderButtonStateCommand=function(e){if(e=_.r(e,kA6)){var z,C=(z=this.data)==null?void 0:z.targetId;C&&e.targetId===C&&_.BI(this.updateReminderStateEntitiesFromButtonState.bind(this,e.state))}};
_.Y.getButtonStateFromReminderState=function(){var e;if(((e=this.seriesReminderStateEntity)==null?void 0:e.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var z;if(((z=this.eventReminderStateEntity)==null?void 0:z.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var C,w;if(((C=this.seriesReminderStateEntity)==null?void 0:C.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((w=this.eventReminderStateEntity)==
null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var K;return(K=this.data)==null?void 0:K.currentState};
_.Y.updateReminderStateEntitiesFromButtonState=function(e){if(e){switch(e){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":e="UPCOMING_EVENT_REMINDER_STATE_NONE";var z="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":e="UPCOMING_EVENT_REMINDER_STATE_SINGLE";z="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":e="UPCOMING_EVENT_REMINDER_STATE_NONE";z="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var C;
((C=this.eventReminderStateEntity)==null?0:C.key)&&this.ytdReduxBehavior.dispatch(_.Rx("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:e})));var w;((w=this.seriesReminderStateEntity)==null?0:w.key)&&this.ytdReduxBehavior.dispatch(_.Rx("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:z})))}};
_.lB.Object.defineProperties(wH.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var e=this.getButtonStateFromReminderState(),z,C;if(e&&((z=this.data)==null?0:(C=z.states)==null?0:C.length))for(z=_.b(this.data.states),C=z.next();!C.done;C=z.next()){C=C.value;var w=void 0;if(((w=_.r(C,qZg))==null?void 0:w.state)===e)return _.r(C,qZg)}}}});
wH.prototype.onYtServiceRequestError=wH.prototype.onYtServiceRequestError;wH.prototype.onYtServiceRequestCompleted=wH.prototype.onYtServiceRequestCompleted;wH.prototype.onSeriesReminderStateEntityChange=wH.prototype.onSeriesReminderStateEntityChange;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],wH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],wH.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wH.prototype,"data",void 0);_.d([_.F({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:bl1}),_.B("design:type",Object)],wH.prototype,"eventReminderStateEntity",void 0);
_.d([_.F({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(e,z){return _.xz(e.entities,"sportsSeriesReminderStateEntity",z)}}),
_.B("design:type",Object)],wH.prototype,"seriesReminderStateEntity",void 0);_.d([_.P("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],wH.prototype,"currentButtonStateRenderer",null);_.d([_.mi("seriesReminderStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wH.prototype,"onSeriesReminderStateEntityChange",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wH.prototype,"onYtServiceRequestCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wH.prototype,"onYtServiceRequestError",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],wH);
_.u(wH,"ytd-upcoming-event-reminder-button-renderer",function(){if(mhU!==void 0)return mhU;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return mhU=e},{mode:1});var a$Y;var K9=function(){return _.V.apply(this,arguments)||this};
_.U(K9,_.V);K9.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.lB.Object.defineProperties(K9.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(_.M("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],K9.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],K9.prototype,"shelfDismissal",void 0);_.d([_.P("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],K9.prototype,"text",null);
_.d([_.P("data.responseText"),_.B("design:type",Object),_.B("design:paramtypes",[])],K9.prototype,"textAriaLabel",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],K9);
_.u(K9,"ytd-notification-multi-action-renderer",function(){if(a$Y!==void 0)return a$Y;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return a$Y=e},{mode:1});var nYh;var o$=function(){return _.V.apply(this,arguments)||this};
_.U(o$,_.V);o$.prototype.ready=function(){var e=this;_.XC(this.hostElement).querySelector("#undo").addEventListener("tap",function(){e.onUndoTap()})};
o$.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],o$.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],o$);
_.u(o$,"ytd-notification-text-renderer",function(){if(nYh!==void 0)return nYh;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return nYh=e},{mode:1});var MTo;var Gh=function(){var e=_.V.apply(this,arguments)||this;e.mouseOverDelayJobId=0;e.fadeInImageDelayJobId=0;e.startTimeMs=-1;e.loadingStartTimeMs=-1;e.loadingEndTimeMs=-1;e.hasVideoPreview=!1;return e};
_.U(Gh,_.V);_.Y=Gh.prototype;_.Y.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Y.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.Y.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.Y.showThumbnail=function(){var e=this;this.csn=_.Pr();_.FV("fmth");_.c5.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.XW(_.c5,function(){e.loadingStartTimeMs=(0,_.as)();var z=_.XC(e.hostElement).querySelector("#thumbnail");z.complete?e.displayMouseOverImage():z.addEventListener("load",_.lE(e,e.displayMouseOverImage))},150):_.k$(_.XC(this.hostElement).querySelector("#play"),"show",!0)};
_.Y.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.Y.onTap=function(){this.removeVideoPreview()};
_.Y.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var e=this.videoId,z=this.csn,C=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,w=this.startTimeMs,K=this.hasVideoPreview,G=_.v9(this.trackingParams),X={isMovingThumbnail:K};K&&w>0&&(C>0&&(X.movingThumbnailLoadingDurationMs=Math.round(C)),X.durationHoveredMs=Math.round((0,_.as)()-w));e&&(X.videoId=e);_.jA(z,G,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:X});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.Y.removeVideoPreview=function(){_.c5.cancelJob(this.mouseOverDelayJobId);_.c5.cancelJob(this.fadeInImageDelayJobId);var e=_.XC(this.hostElement).querySelector("#thumbnail");_.k$(e,"fade-in",!1);e.removeEventListener("load",_.lE(this,this.displayMouseOverImage));e=_.XC(this.hostElement).querySelector("#play");_.k$(e,"fade-in",!1);_.k$(e,"show",!1)};
_.Y.displayMouseOverImage=function(){var e=_.XC(this.hostElement).querySelector("#thumbnail"),z=_.XC(this.hostElement).querySelector("#play");this.isImageAvailable(e)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.as)(),this.startTimeMs=(0,_.as)(),this.fadeInImageDelayJobId=_.XW(_.c5,function(){_.k$(e,"fade-in",!0)},50)):_.k$(z,"fade-in",!0)};
_.Y.computeThumbnail=function(e,z){var C;e&&e.movingThumbnailDetails&&e.movingThumbnailDetails.thumbnails&&z?C=_.oo(e.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):C=z?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(C)return _.gw(C)};
_.Y.isImageAvailable=function(e){return!(!e.src||e.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||e.naturalWidth===120)};
Gh.prototype.onTap=Gh.prototype.onTap;Gh.prototype.dataChanged=Gh.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Gh.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Gh.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Gh.prototype,"csn",void 0);_.d([_.F(),_.B("design:type",Object)],Gh.prototype,"trackingParams",void 0);
_.d([_.F(),_.B("design:type",String)],Gh.prototype,"videoId",void 0);_.d([_.F(),_.B("design:type",Boolean)],Gh.prototype,"isAttachedAndDataSet",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gh.prototype,"dataChanged",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gh.prototype,"onTap",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Gh);
_.u(Gh,"ytd-moving-thumbnail-renderer",function(){if(MTo!==void 0)return MTo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return MTo=e},{mode:1});var rVU;_.mU=function(e){this.hostElement=e;this.eventSink=null;this.eventList=[]};
_.mU.prototype.shouldForward=function(){var e,z;return(z=(e=this.eventSink)==null?void 0:e.isConnected)!=null?z:document.body.contains(this.eventSink)};
_.mU.prototype.start=function(e,z){this.eventSink&&this.stop();for(var C=0;C<e.length;C++)this.hostElement.addEventListener(e[C],_.lE(this,this.forwardEvent));var w;this.eventSink=(w=z.hostElement)!=null?w:z;this.eventList=e};
_.mU.prototype.stop=function(){for(var e=0;e<this.eventList.length;e++)this.hostElement.removeEventListener(this.eventList[e],_.lE(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.mU.prototype.forwardEvent=function(e,z){this.shouldForward()&&(e.stopPropagation(),this.eventSink instanceof Element?_.pi(this.eventSink,e.type,z):_.AX(new _.uh("eventSink is not an element")))};_.Yv={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.mU(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(e,z){this.forwarder_.start(e,z)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var bO=function(){return _.V.apply(this,arguments)||this};
_.U(bO,_.V);_.Y=bO.prototype;_.Y.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=_.j5("HTML_DIR")==="rtl"?"right":"left"};
_.Y.dataChanged=function(){this.popupOpen=!1};
_.Y.computeAriaLabel=function(e){return _.r(e,hST).label};
_.Y.onTap=function(e){e.stopPropagation();e.preventDefault();this.data.command&&_.lh().resolve(_.ms).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.Y.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Y.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
bO.prototype.onPopupClosed=bO.prototype.onPopupClosed;bO.prototype.onPopupOpened=bO.prototype.onPopupOpened;bO.prototype.onTap=bO.prototype.onTap;bO.prototype.dataChanged=bO.prototype.dataChanged;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],bO.prototype,"eventForwardingBehavior",void 0);_.d([_.W(_.Ym),_.B("design:type",Object)],bO.prototype,"ironButtonState",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],bO.prototype,"componentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],bO.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:-1}),_.B("design:type",Number)],bO.prototype,"tabindex",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.B("design:type",Object)],bO.prototype,"ariaLabel",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],bO.prototype,"disableTooltips",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],bO.prototype,"popupOpen",void 0);
_.d([_.F(),_.B("design:type",Element)],bO.prototype,"eventSink",void 0);_.d([_.nP("#tooltip"),_.B("design:type",Object)],bO.prototype,"tooltip",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bO.prototype,"dataChanged",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],bO.prototype,"onTap",null);
_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bO.prototype,"onPopupOpened",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bO.prototype,"onPopupClosed",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],bO);
_.u(bO,"ytd-thumbnail-overlay-button-renderer",function(){if(rVU!==void 0)return rVU;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return rVU=e},{mode:1});var H1h;var Xt=function(){return _.V.apply(this,arguments)||this};
_.U(Xt,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xt.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Xt.prototype,"disableAnimation",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Xt.prototype,"rounded",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Xt.prototype,"transparentBackground",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Xt.prototype,"noPadding",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Xt);
_.u(Xt,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(H1h!==void 0)return H1h;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return H1h=e},{mode:1});var Uha;var J_=function(){return _.V.apply(this,arguments)||this};
_.U(J_,_.V);J_.prototype.computeIconPosition=function(e){return this.get("iconPosition",e)||null};
J_.prototype.computeIconStyle=function(e){return this.get("iconStyle",e)||null};
J_.prototype.computeIsIconStyleFilled=function(e){if(!e)return!1;var z;return e.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((z=e.icon)==null?void 0:z.iconType)==="ERROR_BLACK"};
_.d([_.F(),_.B("design:type",Object)],J_.prototype,"data",void 0);_.d([_.F({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.B("design:type",Object)],J_.prototype,"iconPosition",void 0);_.d([_.F({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.B("design:type",Object)],J_.prototype,"iconStyle",void 0);_.d([_.F({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],J_.prototype,"iconStyleFilled",void 0);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],J_);
_.u(J_,"ytd-thumbnail-overlay-icon-renderer",function(){if(Uha!==void 0)return Uha;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Uha=e},{mode:1});var vYa;var kv=function(){return _.V.apply(this,arguments)||this};
_.U(kv,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kv.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],kv);
_.u(kv,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(vYa!==void 0)return vYa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vYa=e},{mode:1});var I$U;var qN=function(){var e=_.V.apply(this,arguments)||this;e.isPreviewLoading=!1;return e};
_.U(qN,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qN.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],qN.prototype,"isPreviewLoading",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],qN);
_.u(qN,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(I$U!==void 0)return I$U;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return I$U=e},{mode:1});var WL6;var xv=function(){return _.V.apply(this,arguments)||this};
_.U(xv,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xv.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],xv);
_.u(xv,"ytd-thumbnail-overlay-pinking-renderer",function(){if(WL6!==void 0)return WL6;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return WL6=e},{mode:1});var PDY;var Th=function(){var e=_.V.apply(this,arguments)||this;e.disableTooltips=!1;e.isLoading=!1;e.useExpandableTooltip=!1;e.toggled=!1;e.hovered=!1;e.mouseoverDelayJobId=0;e.toggleDelayJobId=0;e.expandAnimationDelayJobId=0;return e};
_.U(Th,_.V);_.Y=Th.prototype;_.Y.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");_.XC(this.hostElement).querySelector("#tooltip").position=_.j5("HTML_DIR")==="rtl"?"right":"left"};
_.Y.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.c5.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.c5.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.c5.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.Y.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.c5.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.c5.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.c5.cancelJob(this.expandAnimationDelayJobId)};
_.Y.computeIcon=function(e,z,C){return(e=C?z:e)&&e.iconType?_.qF(e.iconType):void 0};
_.Y.computeAriaLabel=function(e,z,C){return _.r(C?z:e,hST).label};
_.Y.computeTooltip=function(e,z,C){return C?z:e};
_.Y.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.Y.computeIconOnHover=function(e,z){if((e==null?0:e.iconType)&&!z)return _.qF(e.iconType)};
_.Y.onTap=function(e){var z=this;e.stopPropagation();e.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(e=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(e),this.useExpandableTooltip&&(this.toggleDelayJobId=_.XW(_.c5,function(){z.hovered=!1;z.data&&!z.data.toggledServiceEndpoint&&(z.expandAnimationDelayJobId=_.XW(_.c5,function(){z.set("data.isToggled",
!1)},200))},2E3))};
_.Y.onMouseenter=function(){var e=this;this.mouseoverDelayJobId=_.XW(_.c5,function(){e.hovered=!0},300)};
_.Y.onMouseleave=function(){_.c5.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.Y.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.Y.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.Y.onServiceRequestCompleted=function(e,z){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(z)||this.set("data.isToggled",!this.data.isToggled)};
_.Y.serviceRequestWasSuccessful=function(e){return _.r(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.$R)?e.data.status==="STATUS_SUCCEEDED":!0};
Th.prototype.onServiceRequestCompleted=Th.prototype.onServiceRequestCompleted;Th.prototype.onPopupClosed=Th.prototype.onPopupClosed;Th.prototype.onPopupOpened=Th.prototype.onPopupOpened;Th.prototype.onMouseleave=Th.prototype.onMouseleave;Th.prototype.dataChanged=Th.prototype.dataChanged;_.d([_.W(_.Ym),_.B("design:type",Object)],Th.prototype,"ironButtonState",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],Th.prototype,"ytEventForwardingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Th.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.B("design:type",Object)],Th.prototype,"ariaLabel",void 0);_.d([_.F(),_.B("design:type",Object)],Th.prototype,"disableTooltips",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Th.prototype,"popupOpen",void 0);_.d([_.F(),_.B("design:type",Object)],Th.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Element)],Th.prototype,"eventSink",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Th.prototype,"useExpandableTooltip",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.B("design:type",Object)],Th.prototype,"toggled",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Th.prototype,"hovered",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.B("design:type",Object)],Th.prototype,"iconOnHover",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Th.prototype,"dataChanged",null);
_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Th.prototype,"onMouseleave",null);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Th.prototype,"onPopupOpened",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Th.prototype,"onPopupClosed",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],Th.prototype,"onServiceRequestCompleted",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Th);
_.u(Th,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(PDY!==void 0)return PDY;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return PDY=e},{mode:_.bA("kevlar_poly_si_batch_j053")?1:2});var R4Y;var LLL=_.f(function(e){var z=e.data;var C=e.thumbnailSize;var w=function(){return z().enableSegmentView};
return _.x("yt-thumbnail-overlay-progress-bar-view-model",{class:_.qT("ytThumbnailOverlayProgressBarHost",function(){return ilk(C==null?void 0:C())})},_.x(_.l,{cond:w,
then:function(){return _.x("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.x("div",{class:_.VA("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+z().startPercent+"%"}}),_.x("div",{class:_.VA("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+z().segmentDurationPercent+"%"}},_.x("div",{class:_.VA("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.x("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.x("div",null," ",function(){return z().segmentLabel})),_.x("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.x("div",{class:_.VA("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.x(_.l,{cond:function(){return!w()&&z().startPercent},
then:function(){var K={};return _.x("div",{class:_.VA("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(K.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.M("web_enable_modern_progress_bar_overlay"),K))},_.x("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+z().startPercent+"%"}}))}}))},"Fa");
LLL.idomCompat=!0;_.h4a=_.f(function(e){var z=_.MK(),C=_.rG(function(K){var G,X,J;a:{var q=(G=e.data())==null?void 0:G.animationActivationTargetId;G=((X=e.data())==null?void 0:X.animationActivationEntityKey)||"";X=(J=e.data())==null?void 0:J.animationActivationEntitySelectorType;if(G&&q)switch(X){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":K=_.xf(K,G);J=_.lh().resolve(_.$B(_.gh));q=!!(K&&K.videoId===q&&(J==null?0:J.isMiniplayerActive()));q={activated:q,playAnimation:q&&K.playerState==="PLAYER_STATE_PLAYING"};
break a}q=void 0}return q});
_.sH(function(){var K;if((K=C())==null?0:K.activated){var G;if((G=C())==null?0:G.playAnimation){var X;(X=z.lottieEl)==null||X.goToAndPlay(0)}else{var J;(J=z.lottieEl)==null||J.goToAndStop(0)}}},"DbQiXd");
var w=function(){var K,G=!((K=C())==null||!K.activated);if(e.data()){K=e.data();var X=void 0;K.icon&&(X=_.b2k(K.icon),X=QD7(X));var J=void 0,q;if((q=K.backgroundColor)==null?0:q.lightTheme){var T;J={backgroundColor:V$((T=K.backgroundColor)==null?void 0:T.lightTheme,"0.8")}}if(K.text||X||G){if(G&&K.lottieData&&z){T=K.lottieData;var Q,m,a;q={animationConfig:{name:T.url,path:T.url,autoplay:(Q=T.settings)==null?void 0:Q.autoplay,loop:(a=(m=T.settings)==null?void 0:m.loop)!=null?a:!0},animationRef:z}}else q=
void 0;if(G)Q=17;else b:switch(K.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":Q=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":Q=19;break b;default:Q=17}G={type:Q,text:G&&K.animatedText?K.animatedText:K.text,icon:X,customColors:J,animation:q}}else G=void 0}else G=void 0;return G};
return _.x("yt-thumbnail-badge-view-model",{class:_.qT("ytThumbnailBadgeViewModelHost",e.class)},_.x(_.l,{cond:w,then:function(){return _.x(_.ri,{data:function(){return w()}})}}))},"Ha");var O14=_.f(function(e){var z={},C={};return _.x("yt-thumbnail-bottom-overlay-view-model",{class:_.qT("ytThumbnailBottomOverlayViewModelHost",(z.ytThumbnailBottomOverlayViewModelHostBackground=function(){return e.data().enableGradientBackground},z))},_.x(_.PF,{data:function(){return e.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(w){return _.x(LLL,{data:w.data,
thumbnailSize:e.thumbnailSize})}}),_.x("div",{class:_.qT("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var w;
return NTo((w=e.thumbnailSize)==null?void 0:w.call(e))},(C.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var w;
return(w=e.isClip)==null?void 0:w.call(e)},C.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var w;
return!_.M("web_enable_modern_progress_bar_overlay")&&((w=e.thumbnailSize)==null?void 0:w.call(e))==="small"},C))},_.x(_.PF,{data:function(){return e.data().badge}},{thumbnailBadgeViewModel:function(w){return _.x(_.h4a,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.x(_.PF,{data:function(){return e.data().badges}},{thumbnailBadgeViewModel:function(w){return _.x(_.h4a,{data:w.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ia");
O14.idomCompat=!0;_.KU(O14,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.z9,thumbnailSize:_.z9,isClip:_.z9}});var $v=_.f(function(e){var z=e.data;var C=e.className;e=e.alwaysShow;var w=_.t77(),K={};return _.x("thumbnail-hover-overlay-view-model",{el:_.ej(_.Dh(function(){return z().rendererContext})),
class:_.qT("ytThumbnailHoverOverlayViewModelHost",C,(K.ytThumbnailHoverOverlayViewModelHostForceHover=e,K)),"aria-label":function(){var G;return(G=_.r(z().rendererContext,_.Re))==null?void 0:G.label},
role:function(){return _.u3(z().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.u3(z().rendererContext)!==void 0?0:void 0},
"on:keypress":w},_.x("div",{class:_.qT("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(z().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var G="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:G="ytThumbnailHoverOverlayViewModelStyleCover"}return G})},_.x(_.l,{cond:function(){return z().icon},
then:function(G){return _.x(_.Zf,{data:G,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.x(_.l,{cond:function(){return z().text},
then:function(G){return _.x(_.U2,{text:G,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ka");
$v.idomCompat=!0;var EYT=_.f(function(e){var z=e.data;return _.x(_.PF,{data:function(){return z==null?void 0:z().overlays}},{thumbnailHoverOverlayViewModel:$v})},"La");
EYT.idomCompat=!0;var FLS={};var VTh=_.f(function(e){var z=e.data;var C=e.image;var w=e.state;var K=e.iconType;var G=e.overlays;var X=e.isOverlay;var J=_.qD("div");e=_.b(_.II(!0,void 0,"AA4e7b"));var q=e.next().value,T=e.next().value,Q=function(){return!!z().onTap},m=_.pP(K,"LIVE");
_.sH(function(){var n=z();requestAnimationFrame(function(){if(J.value===null)var H=!0;else{var I=J.value;H=n.badgeText;var L=er8(n.size);H in FLS?I=FLS[H]:(I=I.clientWidth,FLS[H]=I);(H=I>L)?J.value.style.display="none":J.value.style.visibility="visible"}T(H)})},"vNdN8b");
var a=function(){var n={};return n["yt-spec-avatar-shape__image"]=!0,n["yt-spec-avatar-shape__image--ads-app"]=z().type===1,n["yt-spec-avatar-shape__image--inscribed-square"]=z().type===2,n};
return _.x("yt-avatar-shape",null,_.x("div",{el:_.ej(CuE(Q,{keydown:function(n){if(n.key==="Enter"){var H;(H=n.currentTarget)==null||H.click()}},
click:function(n){var H,I;return void((I=(H=z()).onTap)==null?void 0:I.call(H,n))}})),
class:function(){var n={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},H=z();n=(n[H.clusterLayoutConfig?oF1(H.clusterLayoutConfig):GIm(H.size)]=!0,n["yt-spec-avatar-shape__button--tappable"]=Q(),n);(H=z().avatarButtonCustomClassName)&&(n[H]=!0);return _.VA(n)},
"aria-label":function(){return Q()?z().accessibilityText:""},
role:function(){return Q()?"button":void 0},
tabindex:function(){return Q()?0:void 0}},_.x("div",{class:function(){var n,H=z(),I=w==null?void 0:w(),L=X==null?void 0:X(),h=!((n=H.decorations)==null||!n.includes(2)||H.size!=="medium"&&H.size!=="large"),E=H.size==="tiny"||H.size==="extra-small",N,D,g,y,Z={};
n=(Z["yt-spec-avatar-shape--live-ring"]=!!(((N=H.decorations)==null?0:N.includes(0))&&bS7(H.size)),Z["yt-spec-avatar-shape--stories-watched"]=h&&!(I==null||!I.storiesWatched),Z["yt-spec-avatar-shape--stories-unwatched"]=h&&!(I==null?0:I.storiesWatched),Z["yt-spec-avatar-shape--background-border"]=XGh(H.decorations)&&!E,Z["yt-spec-avatar-shape--background-border-thin"]=XGh(H.decorations)&&E,Z["yt-spec-avatar-shape__on-select-border"]=!((D=H.decorations)==null||!D.includes(4)),Z["yt-spec-avatar-shape__white-border"]=
!((g=H.decorations)==null||!g.includes(5)),Z["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=H.decorations)==null?0:y.includes(5))&&E),Z["yt-spec-avatar-shape--is-overlay"]=!!L,Z);return _.VA(n)},
style:function(){a:{var n=z().clusterLayoutConfig;if(n){b:{var H=n.numAvatarsInCluster;var I=n.avatarIndex;if(I!==H-1){switch(n.clusterSize){case "small":n="32";break;case "medium":n="36";break;case "40":n="40";break;default:H=void 0;break b}H="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+n+"x"+n+"_avatars_"+H+"_index_"+I+".svg"}else H=void 0}if(H){H=_.QC({"-webkit-mask-image":"url("+H+")","mask-image":"url("+H+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}H=void 0}return H}},_.x("div",{class:function(){var n={};
var H=z();n=(n[H.clusterLayoutConfig?wG8(H.clusterLayoutConfig):KwE(H.size)]=!0,n["yt-spec-avatar-shape--no-margin"]=XGh(z().decorations),n["yt-spec-avatar-shape--square"]=z().type===2,n);return _.VA(n)}},_.x(_.Zf,{data:C,
alt:function(){return!Q()&&z().accessibilityText?z().accessibilityText:""},
targetWidth:function(){return Yh5(z().size)},
targetHeight:function(){return Yh5(z().size)},
className:function(){return _.VA(a())}}),_.x(_.l,{cond:function(){var n;
return((n=z().decorations)==null?void 0:n.includes(0))&&bS7(z().size)},
then:function(){return _.x("div",{class:function(){var n={};n=(n["yt-spec-avatar-shape__live-badge"]=!0,n["yt-spec-avatar-shape__live-badge--badge-small"]=z().size==="small",n["yt-spec-avatar-shape__live-badge--badge-medium"]=z().size==="medium"||z().size==="48",n["yt-spec-avatar-shape__live-badge--badge-large"]=z().size==="large",n["yt-spec-avatar-shape__live-badge--badge-extra-large"]=z().size==="extra-large"||z().size==="extra-extra-large"||z().size==="giant",n);return _.VA(n)}},_.x(_.l,{cond:function(){return z().badgeText},
then:function(n){return _.x("div",{class:"yt-spec-avatar-shape__badge-text",el:J},n)}}),_.x(_.l,{cond:q,
then:function(){return _.x("div",{class:"yt-spec-avatar-shape__badge-icon"},_.x(_.mB,{icon:m,size:function(){a:switch(z().size){case "extra-large":var n=16;break a;default:n=13}return n}}))}}))}}),_.x(_.l,{cond:function(){var n,H;
return((n=z().decorations)==null?void 0:n.includes(1))||((H=z().decorations)==null?void 0:H.includes(0))&&!bS7(z().size)},
then:function(){return _.x("div",{class:function(){var n=z(),H,I,L={};var h=(L["yt-spec-avatar-shape__live-dot"]=!((H=n.decorations)==null||!H.includes(0)||bS7(n.size)),L["yt-spec-avatar-shape__new-content"]=!((I=n.decorations)==null||!I.includes(1)),L);return _.VA(h)}})}}),_.x(_.l,{cond:function(){return!!G},
then:function(){return _.x("div",{class:function(){var n={};n=Object.assign((n["yt-spec-avatar-shape__image-overlays"]=!0,n),a());return _.VA(n)}},G==null?void 0:G())}})))))},"Oa");
VTh.idomCompat={callbacks:{overlays:!0}};_.lO=_.f(function(e){function z(){C().endpoint&&_.NF(C().endpoint)}
var C=e.data;var w=e.decorations;var K=e.avatarButtonCustomClassName;var G=e.isOverlay;var X=e.clusterLayoutConfig;return _.x("avatar-view-model",null,_.x(_.l,{cond:function(){return C().image},
then:function(J){return _.x(VTh,{data:function(){return kIo({data:C(),onTap:C().endpoint?z:void 0,decorations:w==null?void 0:w(),badgeText:void 0,accessibilityText:C().accessibilityText,avatarButtonCustomClassName:K==null?void 0:K(),clusterLayoutConfig:X==null?void 0:X()})},
image:J,iconType:"RADAR_LIVE",overlays:function(){return _.x(EYT,{data:C})},
isOverlay:G})}}))},"Pa");
_.lO.idomCompat=!0;_.Qh=_.f(function(e){var z=e.data;e=e.className;var C=_.qD("yt-decorated-avatar-view-model"),w=function(){return _.r(z().avatar,_.NK)},K=_.hG(function(){var G,X=z(),J=w(),q=_.u3(z().rendererContext),T=(G=C.value)!=null?G:void 0,Q;
if(J){T={data:X,avatar:J,onTap:q,element:T};G=T.data;X=T.avatar;J=T.onTap;q=T.element;T=T.commandController;J=J?$W8(J,q,T):void 0;q=[];G.liveData&&q.push(0);var m;T=(m=G.liveData)==null?void 0:m.liveBadgeText;m=(Q=_.r(G.rendererContext,_.Re))==null?void 0:Q.label;Q=kIo({data:X,onTap:J,decorations:q,badgeText:T,accessibilityText:m?m:G.a11yLabel})}else Q={size:"medium"};return Q},void 0,"c00kWd");
return _.x("yt-decorated-avatar-view-model",{class:_.qT("ytDecoratedAvatarViewModelHost",e),el:C},_.x(_.l,{cond:function(){var G;return(G=w())==null?void 0:G.image},
then:function(G){return _.x(VTh,{data:K,image:G,iconType:"RADAR_LIVE",overlays:function(){return _.x(EYT,{data:w})}})}}))},"Qa");
_.Qh.idomCompat=!0;_.m9=_.f(function(e){var z=function(){var J;return Object.assign({},e.data(),(J=e.overrides)==null?void 0:J.call(e))},C=function(){return _.dE(z().rendererContext)},w=function(){var J=z().avatars,q,T;
return(T=(q=(J==null?0:J[0])?_.r(J[0],_.NK):void 0)==null?void 0:q.avatarImageSize)!=null?T:"AVATAR_SIZE_UNKNOWN"},K=function(){return TRo(z())},G=function(){if(z().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var J=void 0;
else if((J=e.decorations)==null?0:J.call(e))J=e.decorations();else{J=z();var q=0;J.avatars&&(q+=J.avatars.length);J.decoratedText&&(q+=1);J=q>1?[3]:[]}return J},X={};
return _.x("yt-avatar-stack-view-model",{el:_.ej(_.Dh(function(){return z().rendererContext})),
class:_.qT("yt-avatar-stack-view-model",e.className,(X["yt-avatar-stack-view-model--tappable"]=C,X["yt-avatar-stack-view-model--is-overlay"]=e.isOverlay,X["yt-avatar-stack-view-model--medium-text"]=e.useMediumText,X)),tabindex:function(){return C()?0:void 0},
role:function(){return C()?"link":void 0},
"aria-label":function(){var J,q;return(q=(J=_.r(z().rendererContext,_.Re))==null?void 0:J.label)!=null?q:""}},_.x(_.l,{cond:function(){var J;
return z().avatars&&!((J=e.hideAvatar)==null?0:J.call(e))},
then:function(){return _.x("div",{class:"yt-avatar-stack-view-model__avatars"},_.x(_.l,{cond:function(){return z().decoratedText},
then:function(J){var q={};return _.x("div",{class:_.qT("yt-avatar-stack-view-model__text-container",(q["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return w()==="AVATAR_SIZE_XXS"||w()==="AVATAR_SIZE_XS"},q["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var T;
return((T=e.isOverlay)==null?void 0:T.call(e))&&(w()==="AVATAR_SIZE_XXS"||w()==="AVATAR_SIZE_XS")},q)),
style:_.QC({width:function(){return K().avatarSizeInPx+"px"},
height:function(){return K().avatarSizeInPx+"px"}})},_.x(_.U2,{text:J,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.x("div",{style:function(){return _.QC(K().avatarStackStyle)()},
class:function(){return K().avatarStackClass}},_.x(_.PF,{data:function(){return K().avatars.reverse()}},{avatarViewModel:function(J,q){return _.x("div",{style:function(){var T,Q;
return _.QC((Q=(T=K()).avatarStyle)==null?void 0:Q.call(T,q()))()},
class:function(){return K().avatarClass}},_.x(_.lO,{data:J.data,
decorations:G,avatarButtonCustomClassName:function(){return K().avatarButtonCustomClassName},
isOverlay:e.isOverlay,clusterLayoutConfig:function(){var T,Q;return(Q=(T=K()).clusterLayoutConfig)==null?void 0:Q.call(T,q())}}))},
decoratedAvatarViewModel:function(J,q){return _.x("div",{style:function(){var T,Q;return _.QC((Q=(T=K()).avatarStyle)==null?void 0:Q.call(T,q()))()},
class:function(){return K().avatarClass}},_.x(_.Qh,{data:J.data}))}})))}}),_.x(_.l,{cond:function(){return z().text},
then:function(J){return _.x(_.U2,{text:J,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ra");
_.m9.idomCompat=!0;_.KU(_.f(function(e){var z=e.data;var C=e.thumbnailSize;return _.x("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.x("div",{class:_.qT("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return lb7(C==null?void 0:C())})},_.x(_.PF,{data:function(){return z().avatarStack}},{avatarStackViewModel:function(w){return _.x(_.m9,{data:w.data,
decorations:[5]})}})))},"Sa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.vh,
thumbnailSize:_.vh}});var f$6=_.f(function(e){e=_.eQ(e,{hidden:!1});var z=e.data;e=e.hidden;return _.x("yt-thumbnail-overlay-title-view-model",{class:_.qT("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(z().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var C="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:C="ytThumbnailOverlayTitleViewModelPositionTop"}return C}),
hidden:e},_.x(_.l,{cond:function(){return z().leadingContent},
then:function(C){return _.x("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.x(_.PF,{data:C},{decoratedAvatarViewModel:_.Qh}))}}),_.x("div",null,_.x(_.U2,{text:function(){return z().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.x(_.l,{cond:function(){return z().subtitle},
then:function(){return _.x(_.U2,{text:function(){return z().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Ta");
f$6.idomCompat=!0;_.KU(f$6,"yt-thumbnail-overlay-title-view-model",{props:{data:_.vh,hidden:_.vh}});_.Suo=_.f(function(e){e=_.eQ(e,{isClip:!1});var z=e.data,C=e.thumbnailSize,w={};return _.x("yt-thumbnail-overlay-badge-view-model",{class:_.qT("yt-thumbnail-overlay-badge-view-model",function(){a:switch(z().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var K="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:K="yt-thumbnail-overlay-badge-view-model--bottom-end"}return K},function(){return QFE(C==null?void 0:C())},(w["yt-thumbnail-overlay-badge-view-model--clip"]=e.isClip,
w))},_.x(_.PF,{data:function(){return z().thumbnailBadges}},{thumbnailBadgeViewModel:function(K){return _.x(_.h4a,{data:K.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ua");
_.Suo.idomCompat=!0;_.KU(_.Suo,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.vh,thumbnailSize:_.vh,isClip:_.vh}});var upL=_.f(function(e){var z=e.data;e=e.hidden;var C=_.hG(function(){return z().indicatorCount||0},void 0,"AbKnMc"),w={};
return _.x("yt-page-indicator-view-model",{class:_.qT("ytPageIndicatorViewModelHost",(w.ytPageIndicatorViewModelIndicatorHidden=function(){return!z().indicatorCount},w)),
hidden:e},_.x(_.ui,{each:function(){return Array(C())}},function(K,G){var X={};
return _.x("div",{class:_.qT("ytPageIndicatorViewModelIndicator",(X.ytPageIndicatorViewModelIndicatorSelected=function(){return z().selectedIndex===G()},X))})}))},"Va");
upL.idomCompat=!0;_.KU(upL,"yt-page-indicator-view-model",{props:{data:_.vh,hidden:_.vh}});var a$=function(){var e=_.V.apply(this,arguments)||this;e.eventSink=function(){return e};
e.disableInteraction=!1;e.noRoundedCorners=!1;e.isPreviewLoading=!1;e.isOriginalAspectRatio=!1;e.computedObjectFit=!1;e.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return e};
_.U(a$,_.V);_.Y=a$.prototype;
_.Y.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:_.M("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"}}};
_.Y.onImageLoaded=function(){this.loaded=!0};
_.Y.onImageUnloaded=function(){this.loaded=!1};
_.Y.computeRichThumbnail=function(e,z,C,w){if(e&&z&&!w&&!_.M("disable_moving_thumbs_handling")&&!C)return z};
_.Y.computeImageWidth=function(e,z){return z||9999};
_.Y.computeIsOriginalAspectRatio=function(e){return e};
_.Y.computeIsLive=function(e){if(e==null?0:e.badges)for(var z=0;z<e.badges.length;z++){var C=e.badges[z];if(C.metadataBadgeRenderer&&C.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(e==null?0:e.thumbnailOverlays)for(z=0;z<e.thumbnailOverlays.length;z++)if(C=e.thumbnailOverlays[z],C.thumbnailOverlayTimeStatusRenderer&&C.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.Y.computeObjectFit=function(e,z){return z||(e?"CONTAIN":"")};
_.Y.computeNavigationEndpoint=function(e,z,C){return e?z:C};
_.Y.computeHasClip=function(e){e=_.b(e||[]);for(var z=e.next();!z.done;z=e.next())if(z.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.Y.computeOverlayColor=function(e){var z;return(e==null?0:(z=e.darkColorPalette)==null?0:z.section2Color)?e.darkColorPalette.section2Color:e==null?void 0:e.sampledThumbnailColor};
_.lB.Object.defineProperties(a$.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.syL(this.width)}}});
a$.prototype.onImageUnloaded=a$.prototype.onImageUnloaded;a$.prototype.onImageLoaded=a$.prototype.onImageLoaded;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],a$.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(l1L),_.B("design:type",Object)],a$.prototype,"ytdThumbnailBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],a$.prototype,"componentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],a$.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],a$.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],a$.prototype,"circular",void 0);
_.d([_.F({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.B("design:type",Object)],a$.prototype,"richThumbnail",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.B("design:type",Boolean)],a$.prototype,"hasClip",void 0);_.d([_.F(),_.B("design:type",Object)],a$.prototype,"eventSink",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],a$.prototype,"queued",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],a$.prototype,"richGridThumbnail",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],a$.prototype,"useExpandableTooltip",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],a$.prototype,"useUntranslatedNavigationEndpoint",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],a$.prototype,"disableInteraction",void 0);
_.d([_.F({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.B("design:type",Object)],a$.prototype,"computedNavigationEndpoint",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],a$.prototype,"nowPlayingEqualizerOnly",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],a$.prototype,"hidePlaybackStatus",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],a$.prototype,"objectFit",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],a$.prototype,"noRoundedCorners",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],a$.prototype,"watchFeedThumbnail",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],a$.prototype,"isPreviewLoading",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.B("design:type",Object)],a$.prototype,"isOriginalAspectRatio",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.B("design:type",Object)],a$.prototype,"computedObjectFit",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.B("design:type",Boolean)],a$.prototype,"isLiveVideo",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],a$.prototype,"loaded",void 0);_.d([_.F({computed:"computeOverlayColor(data.thumbnail)"}),_.B("design:type",Object)],a$.prototype,"overlayColor",void 0);_.d([_.F(),_.B("design:type",Boolean)],a$.prototype,"minimizePipBreakages",void 0);_.d([_.F({selector:_.Deg}),_.B("design:type",Boolean)],a$.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.F(),_.B("design:type",Number)],a$.prototype,"width",void 0);
_.d([_.P("inlinePreviewIsEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],a$.prototype,"isPreviewDisabled",null);_.d([_.P("width"),_.B("design:type",String),_.B("design:paramtypes",[])],a$.prototype,"thumbnailSize",null);_.d([_.Qi("image-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],a$.prototype,"onImageLoaded",null);
_.d([_.Qi("image-unloaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],a$.prototype,"onImageUnloaded",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-thumbnail"})],a$);
var dha=_.Yp()(a$,"ytd-thumbnail",function(){if(R4Y===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);R4Y=e}e=R4Y;return e},{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 minimizePipBreakages".split(" "),mode:2});var nF7=function(e){var z=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15205_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15205_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(C){Dho(z,C)};
this.onLockupMouseLeaveFn=function(C){C=C.relatedTarget;var w,K;((w=document.getElementsByTagName("ytd-video-preview"))==null?0:(K=w.item(0))==null?0:K.contains(C))||(z.terminateVideoPreview(),n9(z))};
this.onThumbnailMouseDownFn=function(){z.terminateVideoPreview();n9(z)};
this.onTouchStart=function(){z.JSC$15205_touched=!0};
this.mediaRenderer=e.mediaRenderer;this.thumbnailElement=e.thumbnailElement;this.lockupElement=e.lockupElement;this.videoPreviewOptsInput=e.videoPreviewOpts;i14(this);MN(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)):
_.AX(Error("Fh")):_.AX(Error("Gh")):Njg(this)},on=function(e){Njg(e);
var z;(z=e.lockupElement)==null||z.removeEventListener("mouseenter",e.onMouseMoveFn);var C;(C=e.lockupElement)==null||C.removeEventListener("mouseleave",e.onLockupMouseLeaveFn);var w;(w=e.lockupElement)==null||w.removeEventListener("touchstart",e.onTouchStart);var K;(K=e.thumbnailElement)==null||K.removeEventListener("mousedown",e.onThumbnailMouseDownFn);n9(e)},i14=function(e){e.inlinePreviewIsEnabledForUser=_.eB().getState().ui.inlinePreviewIsEnabled;
e.unsubscribeFromInlinePreviewIsEnabled=_.K3(_.eB(),_.Deg,function(z){(e.inlinePreviewIsEnabledForUser=z)||n9(e)});
e.JSC$15205_unsubscribeFromInlinePreviewIsActive=_.K3(_.eB(),_.deg,function(z){(e.inlinePreviewIsActive=z)||n9(e)})},Njg=function(e){e.unsubscribeFromInlinePreviewIsEnabled();
e.unsubscribeFromInlinePreviewIsEnabled=function(){};
e.JSC$15205_unsubscribeFromInlinePreviewIsActive();e.JSC$15205_unsubscribeFromInlinePreviewIsActive=function(){}},Dho=function(e,z){z.buttons>0||(z=_.n0("kevlar_lockup_hover_delay",-1),e.JSC$15205_touched&&z>=0?(_.c5.cancelJob(e.videoPreviewJobId),e.videoPreviewJobId=_.XW(_.c5,function(){sto(e)},z),e.JSC$15205_touched=!1):sto(e))},Tlk=function(e){e.videoPreviewJobId=_.XW(_.c5,function(){return _.k(function(z){return z.yield(BjS(e,{isAutoplay:!0}),0)})})},sto=function(e){!e.previewTriggered&&MN(e)&&
(e.inlinePreviewIsActive&&e.terminateVideoPreview(),e.previewTriggered=!0,e.mediaRenderer.isInlinePreviewTriggered=!0,_.c5.cancelJob(e.videoPreviewJobId),e.videoPreviewJobId=_.XW(_.c5,function(){return _.k(function(z){return z.yield(BjS(e),0)})}))},BjS=function(e,z){z=z===void 0?{}:z;
var C=z.isAutoplay===void 0?!1:z.isAutoplay;var w,K,G,X;return _.k(function(J){if(J.nextAddress==1){if(!MN(e))return J.return();w=e.getVideoPreviewOpts();if(!w)return J.return();C&&(w.isAutoplay=!0);return(G=(K=_.zj(e.mediaRenderer.hostElement,"yt-open-video-preview-action",[w]))&&K[0])?J.yield(K[0],3):J.jumpTo(2)}J.nextAddress!=2&&(G=J.yieldResult===1);if(G){var q=(X=e.mediaRenderer)==null?void 0:X.data;q&&(ab7(q)?delete q.inlinePlayerData:"inlinePlaybackEndpoint"in q&&delete q.inlinePlaybackEndpoint)}_.E_(J)})};
nF7.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var e,z;if((z=(e=this.videoPreviewOptsInput)==null?void 0:e.videoPreviewData)!=null)e=z;else if(e=this.mediaRenderer.data)if(ab7(e))e={inlinePlaybackEndpoint:_.SQ(e.inlinePlayerData.onVisible),navigationEndpoint:_.SQ(e.onTap),thumbnail:"image"in e?e.image:e.thumbnail,thumbnailOverlays:void 0,accessibilityText:mW1(e)};else if("multipleInlinePlaybackEndpoint"in e){var C=_.r(_.r(e.multipleInlinePlaybackEndpoint,jrL),ypX);if(C!=
null&&C.playerDescriptors){z=[];C=_.b(C.playerDescriptors);for(var w=C.next();!w.done;w=C.next())w=w.value,z.push({inlinePlaybackEndpoint:w.inlinePlaybackEndpoint,navigationEndpoint:w.navigationEndpoint,thumbnail:w.thumbnail,thumbnailOverlays:w.thumbnailOverlays,accessibilityText:mW1(e)});e=z}else e=void 0}else e={inlinePlaybackEndpoint:e.inlinePlaybackEndpoint,navigationEndpoint:e.navigationEndpoint,thumbnail:e.thumbnail,thumbnailOverlays:e.thumbnailOverlays,accessibilityText:mW1(e)};else e=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:e,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var MN=function(e){var z;if(z=e.inlinePreviewIsEnabledForUser)z=(e=e.mediaRenderer.data)?"inlinePlaybackEndpoint"in e&&e.inlinePlaybackEndpoint||ab7(e)&&e.inlinePlayerData||"multipleInlinePlaybackEndpoint"in e&&e.multipleInlinePlaybackEndpoint?!0:!1:!1;return z};
nF7.prototype.terminateVideoPreview=function(){_.eA(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var n9=function(e){_.c5.cancelJob(e.videoPreviewJobId);e.inlinePreviewIsActive=!1;e.previewTriggered=!1;e.mediaRenderer.isInlinePreviewTriggered=!1};var tTU=_.Kb(["#"]),rH=function(){var e=_.V.apply(this,arguments)||this;e.isDisabled=!1;return e};
_.U(rH,_.V);_.Y=rH.prototype;
_.Y.configureRendererStamper=function(){return{"data.menu":C9,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.getMetadata=function(e){var z=[];if(e.metadataText&&Object.keys(e.metadataText).length>0){var C=this.ytRendererBehavior.getSimpleString(e.metadataText);e.upcomingEventData&&e.upcomingEventData.upcomingEventText&&(C=_.Ez(C,Number(e.upcomingEventData.startTime)));z.push(C)}else e.shortViewCountText&&z.push(this.ytRendererBehavior.getSimpleString(e.shortViewCountText)),e.publishedTimeText&&z.push(this.ytRendererBehavior.getSimpleString(e.publishedTimeText)),e.upcomingEventData&&e.upcomingEventData.upcomingEventText&&
(C=this.ytRendererBehavior.getSimpleString(e.upcomingEventData.upcomingEventText),z.push(_.Ez(C,Number(e.upcomingEventData.startTime))));return z};
_.Y.calculateBylineText=function(e){return e.shortBylineText?e.shortBylineText:e.bylineText?e.bylineText:null};
_.Y.calculateIsDisabled=function(e){return!!e.isDisabled};
_.Y.computeHrefWithDefault=function(e){return this.ytComponentBehavior.computeHref_(e)||_.$1m(tTU)};
_.Y.onDetailsTap=function(e){var z=this.data&&this.data.navigationEndpoint;z&&!_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.M("kevlar_grid_video_renderer_killswitch")?_.pi(this.hostElement,"yt-navigate",{endpoint:z}):this.ytComponentBehavior.resolveCommand(z))};
_.Y.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15212_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:_.XC(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.XC(this.hostElement).querySelector("ytd-thumbnail")})};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15212_inlinePreviewHoverListener)==null||on(e)};
_.Y.computeThumbnailWidth=function(e,z){return z&&z>0?z:e?360:210};
_.Y.computeNumBadgesInRow=function(e){var z;return((z=e.badges)==null?void 0:z.length)||0};
_.Y.computeShowChannelThumbnail=function(e,z){var C;return z&&!!(e==null?0:(C=e.channelThumbnailSupportedRenderers)==null?0:C.channelThumbnailWithLinkRenderer)};
_.lB.Object.defineProperties(rH.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15212_inlinePreviewHoverListener)==null?0:MN(e))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
rH.prototype.dataChanged=rH.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],rH.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],rH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],rH.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.W(_.I0),_.B("design:type",Object)],rH.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],rH.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rH.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],rH.prototype,"noEndpoints",void 0);_.d([_.F({computed:"calculateBylineText(data)"}),_.B("design:type",Object)],rH.prototype,"bylineText",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],rH.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],rH.prototype,"isDownloading",void 0);_.d([_.F({reflectToAttribute:!0,value:0}),_.B("design:type",Number)],rH.prototype,"width",void 0);_.d([_.F({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.B("design:type",Object)],rH.prototype,"isDisabled",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rH.prototype,"dataChanged",null);_.d([_.P("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rH.prototype,"isHovered",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rH.prototype,"hasAttributedBylineText",null);
_.d([_.P("bylineText","hasAttributedBylineText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rH.prototype,"showBylineText",null);_.d([_.SL({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],rH);
_.u(rH,"ytd-grid-video-renderer",function(){if(QtX!==void 0)return QtX;var e=document.createElement("template");_.v(e,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return QtX=e},{mode:_.bA("kevlar_poly_si_batch_j047")?1:2});var gYa;var Hp=function(){var e=_.V.apply(this,arguments)||this;e.roundedContainer=!0;e.skipRoundingTop=!1;e.disableTopPadding=!1;e.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");e.extractOverlay=!1;return e};
_.U(Hp,_.V);Hp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Hp.prototype.onClick=function(e){var z,C=(z=this.data)==null?void 0:z.sourceEndpoint;!_.zi(_.cJ(e),this.hostElement,["A".toString()])&&C&&_.pi(this.hostElement,"yt-navigate",{endpoint:C})};
_.lB.Object.defineProperties(Hp.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 e;return!((e=this.data)==null||!e.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=(e=this.data)==null?void 0:e.paragraphMaxLines)!=null?z:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Hp.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hp.prototype,"showVerticalDividers",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hp.prototype,"roundedContainer",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hp.prototype,"skipRoundingTop",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hp.prototype,"disableTopPadding",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hp.prototype,"amsterdamEnabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hp.prototype,"extractOverlay",void 0);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hp.prototype,"showMetadataAtTop",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hp.prototype,"showMetadataBelowTitle",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hp.prototype,"hasMenu",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data.truncateParagraphs"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hp.prototype,"truncateParagraphs",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.paragraphMaxLines"),_.B("design:type",Number),_.B("design:paramtypes",[])],Hp.prototype,"paragraphMaxLines",null);
_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hp.prototype,"background",null);_.d([_.SL({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Hp);
_.u(Hp,"ytd-info-panel-content-renderer",function(){if(gYa!==void 0)return gYa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return gYa=e},{mode:_.bA("kevlar_poly_si_batch_j076")?1:2});var jtY;var yVg;var cV6;var AVX;var UD=function(){return _.V.apply(this,arguments)||this};
_.U(UD,_.V);UD.prototype.computeStyle=function(e){return e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],UD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],UD.prototype,"style_",void 0);_.d([_.fP({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],UD);
_.u(UD,"yt-channel-thumbnail-with-link-renderer",function(){if(AVX===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;cV6===void 0&&(cV6=document.createElement("template"));var w=cV6;C.call(z,w.content.cloneNode(!0),e.content.firstChild);AVX=e}e=AVX;return e},{mode:2});var vp=function(){return _.V.apply(this,arguments)||this};
_.U(vp,_.V);vp.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"}}}};
vp.prototype.computeTitleStyle=function(e){return e||null};
vp.prototype.computeAvatarStyle=function(e){return e||null};
vp.prototype.computeShowNavigationButton=function(e,z){return!(e==null||!e.navigationButton||z)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vp.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.B("design:type",String)],vp.prototype,"titleStyle",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.B("design:type",String)],vp.prototype,"avatarStyle",void 0);_.d([_.F(),_.B("design:type",Boolean)],vp.prototype,"hideNavigationButton",void 0);_.d([_.SL({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],vp);
_.u(vp,"ytd-rich-list-header-renderer",function(){if(yVg!==void 0)return yVg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return yVg=e},{mode:_.bA("kevlar_poly_si_batch_j058")?1:2});var I$=function(){return _.V.apply(this,arguments)||this};
_.U(I$,_.V);I$.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]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],I$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],I$.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],I$.prototype,"isSearch",void 0);_.d([_.SL({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],I$);
_.u(I$,"ytd-preview-card-renderer",function(){if(jtY!==void 0)return jtY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jtY=e},{mode:1});var Z1a;var Wp=function(){return _.V.apply(this,arguments)||this};
_.U(Wp,_.V);Wp.prototype.configureRendererStamper=function(){return{"data.menu":C9}};
Wp.prototype.dataChanged=function(){var e=this.get("colorExtractionPalette.section1Color",this.data);e=_.EG(e);_.T8(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":e})};
Wp.prototype.computeCardStyle=function(e){return this.get("style.value",e)||null};
Wp.prototype.dataChanged=Wp.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],Wp.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Wp.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.B("design:type",String)],Wp.prototype,"cardStyle",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wp.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Wp);
_.u(Wp,"ytd-compact-channel-recommendation-card-renderer",function(){if(Z1a!==void 0)return Z1a;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Z1a=e},{mode:1});var pua;var eeh;var Pp=function(){var e=_.V.apply(this,arguments)||this;e.alignAuto=!1;e.collapsed=!0;e.isToggled=!1;e.alwaysCollapsed=!1;e.canToggle=!0;e.collapsedHeight=80;e.disableToggle=!1;e.alwaysToggleable=!1;e.reversed=!1;e.shouldUseNumberOfLines=!1;e.recomputeOnResize=!1;e.canToggleJobId=0;e.lastReversed=!1;return e};
_.U(Pp,_.V);_.Y=Pp.prototype;_.Y.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.Y.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.Y.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var e=_.XC(this.hostElement),z=e.childNodes,C=document.createDocumentFragment(),w=e.childNodes.length-1;w>=0;w--)_.XC(C).appendChild(z[w]);_.M("enable_shadydom_free_scoped_node_methods")?_.JK(this.hostElement).appendChild(C):e.appendChild(C)}};
_.Y.ready=function(){var e=this;_.BI(function(){e.initChildrenObserver()},1)};
_.Y.attached=function(){var e;(e=this.resizeObserver)==null||e.observe(this.content)};
_.Y.detached=function(){this.detachObserver()};
_.Y.toggle=function(e,z){this.canToggle&&(this.isToggled=z,_.pi(this.hostElement,"yt-refit"),e&&e.stopPropagation())};
_.Y.reset=function(){this.childrenChanged()};
_.Y.onIronResize=function(){this.recomputeOnResize&&!_.M("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.Y.computeIsMoreVisible=function(e,z){return e&&!z};
_.Y.computeShouldUseNumberOfLines=function(e){try{return!!e&&window.CSS.supports("-webkit-line-clamp","1")}catch(z){}return!1};
_.Y.computeIsLessVisible=function(e,z){return e&&z};
_.Y.observeCollapsedHeightAndMaxLines=function(){var e=this.collapsedHeight,z=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.T8(this.hostElement,{"--ytd-expander-max-lines":""+z,"--ytd-expander-collapsed-height":""}):_.T8(this.hostElement,{"--ytd-expander-collapsed-height":e+"px","--ytd-expander-max-lines":""})};
_.Y.handleMoreTap=function(e){this.disableToggle||(_.pi(this.hostElement,"yt-expander-more-tapped"),this.toggle(e,!0))};
_.Y.handleLessTap=function(e){_.pi(this.hostElement,"yt-expander-less-tapped");this.toggle(e,!1)};
_.Y.initChildrenObserver=function(){var e=this;this.observer=new MutationObserver(function(){e.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.M("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.lw(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var z;(z=e.resizeThrottle)==null||z.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.Y.childrenChanged=function(){var e=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){bw(function(){e.canToggleJobId=0;e.calculateCanCollapse()})}))};
_.Y.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};
_.Y.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.Y.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("collapsed-changed",this.collapsed))};
_.Y.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("is-toggled-changed",this.isToggled))};
_.Y.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("can-toggle-changed",this.canToggle))};
_.lB.Object.defineProperties(Pp.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Pp.prototype.canToggleChangedForBinding=Pp.prototype.canToggleChangedForBinding;Pp.prototype.isToggledChangedForBinding=Pp.prototype.isToggledChangedForBinding;Pp.prototype.collapsedChangedForBinding=Pp.prototype.collapsedChangedForBinding;Pp.prototype.observeCollapsedHeightAndMaxLines=Pp.prototype.observeCollapsedHeightAndMaxLines;Pp.prototype.onIronResize=Pp.prototype.onIronResize;Pp.prototype.reversedChanged=Pp.prototype.reversedChanged;Pp.prototype.toggledChanged=Pp.prototype.toggledChanged;
Pp.prototype.alwaysToggleableChanged=Pp.prototype.alwaysToggleableChanged;_.d([_.W(_.oY),_.B("design:type",Object)],Pp.prototype,"ironResizableBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pp.prototype,"alignAuto",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pp.prototype,"collapsed",void 0);_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"isToggled",void 0);_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"alwaysCollapsed",void 0);
_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"canToggle",void 0);_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"collapsedHeight",void 0);_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"disableToggle",void 0);_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"alwaysToggleable",void 0);_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"reversed",void 0);_.d([_.F(),_.B("design:type",Number)],Pp.prototype,"maxNumberOfLines",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.B("design:type",Object)],Pp.prototype,"shouldUseNumberOfLines",void 0);_.d([_.F(),_.B("design:type",Object)],Pp.prototype,"recomputeOnResize",void 0);_.d([_.nP("#content"),_.B("design:type",HTMLDivElement)],Pp.prototype,"content",void 0);_.d([_.Ux("alwaysToggleable"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"alwaysToggleableChanged",null);
_.d([_.Ux("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"toggledChanged",null);_.d([_.P("canToggleJobId"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pp.prototype,"isResetting",null);_.d([_.mi("reversed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"reversedChanged",null);
_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"onIronResize",null);_.d([_.mi("maxNumberOfLines","collapsedHeight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"observeCollapsedHeightAndMaxLines",null);_.d([_.mi("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"collapsedChangedForBinding",null);
_.d([_.mi("isToggled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"isToggledChangedForBinding",null);_.d([_.mi("canToggle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pp.prototype,"canToggleChangedForBinding",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-expander"})],Pp);
_.u(Pp,"ytd-expander",function(){if(eeh!==void 0)return eeh;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return eeh=e},{mode:1});var R$=function(){return _.V.apply(this,arguments)||this};
_.U(R$,_.V);R$.prototype.computeIsCarousel=function(e){return!!e.isCarousel};
R$.prototype.observeLightsourcePalette=function(){var e,z=(e=this.data)==null?void 0:e.vibrantsourceColorPaletteData;z&&_.Ro(this.hostElement,z)};
R$.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
R$.prototype.observeLightsourcePalette=R$.prototype.observeLightsourcePalette;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],R$.prototype,"data",void 0);_.d([_.F({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],R$.prototype,"isCarousel",void 0);
_.d([_.mi("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],R$.prototype,"observeLightsourcePalette",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],R$);
_.u(R$,"ytd-media-upsell-renderer",function(){if(pua!==void 0)return pua;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pua=e},{mode:2});var zeo;var L9=function(){var e=_.V.apply(this,arguments)||this;e.JSC$15239_playerEvents=new Map;e.listeningToPlayer=!1;e.startX=0;e.active=!1;e.shouldShowButtons=_.M("web_buttons_hidden_killswitch");e.isHighlighted=!1;e.useHighlightStyling=_.M("web_enable_deeper_metadata_highlight_styling");e.enableProblemWalkthrough=_.M("problem_walkthrough_sd");return e};
_.U(L9,_.V);_.Y=L9.prototype;
_.Y.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}}}}}};
_.Y.created=function(){this.JSC$15239_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Y.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.lE(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.lE(this,this.onActiveUpdate))};
_.Y.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.lE(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.lE(this,this.onActiveUpdate))};
_.Y.onDataChanged=function(){this.removePlayerListeners()};
_.Y.onColorPaletteChange=function(){var e={},z;if(_.i6()==="USER_INTERFACE_THEME_DARK"&&((z=this.data)==null?0:z.darkColorPalette)){var C=this.data.darkColorPalette;e["--ytd-macro-markers-list-item-background-color"]=_.FN(this.get("section2Color",C))}else{var w;_.i6()==="USER_INTERFACE_THEME_LIGHT"&&((w=this.data)==null?0:w.lightColorPalette)&&(C=this.data.lightColorPalette,e["--ytd-macro-markers-list-item-background-color"]=_.FN(this.get("section3Color",C)))}C?(e["--ytd-macro-markers-list-item-title-color"]=
_.FN(this.get("primaryTitleColor",C)),e["--ytd-macro-markers-list-item-secondary-color"]=_.FN(this.get("secondaryTitleColor",C)),e["--ytd-macro-markers-list-item-timestamp-background-color"]=_.FN(this.get("section1Color",C)),this.customButtonProperties={customColors:{color:_.FN(this.get("primaryTitleColor",C))}},this.useColorSampling=!0):(e["--ytd-macro-markers-list-item-background-color"]="initial",e["--ytd-macro-markers-list-item-title-color"]="initial",e["--ytd-macro-markers-list-item-secondary-color"]=
"initial",e["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.T8(this.hostElement,e)};
_.Y.onEndpointMouseDown=function(e){this.startX=e.clientX};
_.Y.onEndpointClick=function(e){var z=this,C,w,K;return _.k(function(G){if(G.nextAddress==1){if(z.startX!==e.clientX)return e.preventDefault(),G.return();z.data&&z.ytRendererBehavior.logExplicitClick(z.data);if(!z.seekWithAnimationOnClick)return G.jumpTo(0);if(e.button!==0||e.shiftKey||e.altKey||e.metaKey||e.ctrlKey||_.zi(_.cJ(e),z.hostElement,["BUTTON".toString()]))return G.return();e.stopPropagation();e.preventDefault();return z.data?G.yield(_.Gi().getPlayerPromise(),3):G.return()}C=G.yieldResult;
K=(w=_.r(z.data.onTap,_.N$))==null?void 0:w.startTimeSeconds;K!==void 0&&C.seekToTimeWithAnimation(K*1E3,_.Zd(z.data.title));_.E_(G)})};
_.Y.computeLayout=function(e){return e};
_.Y.computeIsHighlighted=function(e){return!!e};
_.Y.computeCarouselType=function(e){return e};
_.Y.hideCarousel=function(e){return this.hideThumbnail(e)};
_.Y.hideThumbnail=function(e){return this.enableProblemWalkthrough&&e!==null&&e==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.Y.onRepeatButtonToggle=function(e){var z=this;e.detail.toggled&&_.Gi().getPlayerPromise().then(function(C){z.ytPlayerListenerBehavior.listenToPlayerEvents(C,z.JSC$15239_playerEvents);z.listeningToPlayer=!0})};
_.Y.onLoopRangeChange=function(e){var z=_.XC(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(z){var C=z.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",z.polymerController.data);if(C){var w=Number(C.endTimeMs);if(Number(C.startTimeMs)!==(e==null?void 0:e.startTimeMs)||w!==(e==null?void 0:e.endTimeMs))z.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.Y.removePlayerListeners=function(){var e=this;this.listeningToPlayer&&_.Gi().getPlayerPromise().then(function(z){e.ytPlayerListenerBehavior.unlistenFromPlayerEvents(z,e.JSC$15239_playerEvents);e.listeningToPlayer=!1})};
_.Y.onActiveUpdate=function(e){this.active=e.detail.active};
L9.prototype.onColorPaletteChange=L9.prototype.onColorPaletteChange;L9.prototype.onDataChanged=L9.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],L9.prototype,"ytPlayerListenerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],L9.prototype,"data",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],L9.prototype,"useCustomColors",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],L9.prototype,"active",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],L9.prototype,"shouldShowButtons",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.B("design:type",String)],L9.prototype,"layout",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.B("design:type",Object)],L9.prototype,"isHighlighted",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],L9.prototype,"useHighlightStyling",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],L9.prototype,"enableProblemWalkthrough",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.B("design:type",String)],L9.prototype,"carouselType",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],L9.prototype,"useColorSampling",void 0);_.d([_.F(),_.B("design:type",Boolean)],L9.prototype,"seekWithAnimationOnClick",void 0);_.d([_.F(),_.B("design:type",Object)],L9.prototype,"customButtonProperties",void 0);
_.d([_.nP("#repeat-button"),_.B("design:type",HTMLElement)],L9.prototype,"repeatButton",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L9.prototype,"onDataChanged",null);_.d([_.mi("data.lightColorPalette","data.darkColorPalette"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L9.prototype,"onColorPaletteChange",null);
_.d([_.SL({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],L9);
_.u(L9,"ytd-macro-markers-list-item-renderer",function(){if(zeo!==void 0)return zeo;var e=document.createElement("template");_.v(e,'\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="[[hideCarousel(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="[[!hideCarousel(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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zeo=e},{mode:1});var CR4;var w8h;var Vh=function(){return _.V.apply(this,arguments)||this};
_.U(Vh,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Vh.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Vh);
_.u(Vh,"ytd-title-and-button-list-header-renderer",function(){if(w8h!==void 0)return w8h;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return w8h=e},{mode:1});var Keh;var o8o=new _.Mt("BUTTON_RENDERER_TOKEN");_.f9=_.f(function(e){var z=_.lh().resolve(o8o);return _.x(z,Object.assign({},e,{overrides:e.buttonOverrides}))},"Wa");var Glg=_.f(function(e){var z=e.data,C=_.pP(e.useSquareAspectRatio,!1);return _.x("dismissed-mini-game-card-view-model",null,_.x(_.l,{cond:function(){var w,K;return(w=z().responseText)==null?void 0:(K=w.runs)==null?void 0:K.length},
then:function(){var w={};return _.x("div",{class:_.qT("yt-mini-game-card-view-model__dismissed-card",(w["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!C()},w["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.M("web_game_card_force_2_by_3")},w["yt-mini-game-card-view-model--dismissed-square-card"]=C,w))},_.x("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.x(_.l,{cond:function(){return z().responseText.runs[0].text},
then:function(K){return _.x("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:K},K)}}),_.x(_.PF,{data:function(){return z().buttons}},{buttonRenderer:_.f9,
buttonViewModel:_.iz})))}}))},"Xa");var Y9c=_.f(function(e){var z=e.data;return _.x("br-nz-badge-shape",{class:_.qT(function(){return Mt8(z().brNzRatingBadgeType)}),
role:function(){return z().accessibilityText?"img":void 0},
"aria-label":function(){return z().accessibilityText}},function(){var C;
return(C=z())==null?void 0:C.text})},"Ya");_.Se=_.f(function(e){var z=function(){var C=e.data(),w,K,G,X;if(C){var J=!((w=e.workaroundShortsIsThumbnailBadge)==null||!w.call(e));w=(K=e.modern)==null?void 0:K.call(e);K=(G=e.numBadgesInRow)==null?void 0:G.call(e);G=(X=e.clipTextOverflow)==null?void 0:X.call(e);var q;a:switch(C.badgeStyle){case "BADGE_OVERLAY":X=!0;break a;default:X=!1}C={type:J?17:rym(C.badgeStyle),brNzRatingBadgeType:HSm(C.badgeStyle),text:C.badgeText,icon:C.iconName,isOverlay:X,modern:w||_.M("web_modern_badge_view_model"),accessibilityText:C.accessibilityLabel||
((q=_.r(C.rendererContext,_.Re))==null?void 0:q.label),numBadgesInRow:K,clipTextOverflow:G}}else C=void 0;return C};
return _.x("yt-badge-view-model",{class:_.qT("ytBadgeViewModelHost",e.class)},_.x(_.d1,null,_.x(_.fd,{when:function(){var C;return!((C=z())==null||!C.brNzRatingBadgeType)}},function(){return _.x(Y9c,{data:function(){return z()}})}),_.x(_.fd,{when:function(){return!!z()&&!z().brNzRatingBadgeType}},function(){return _.x(_.ri,{data:function(){return z()}})})))},"Za");
_.Se.idomCompat=!0;var $sh=_.f(function(e){e=_.eQ(e,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var z=e.data,C=e.useFullWidth,w=e.isDesktopWeb,K=e.addSearchResultTopMargin,G=function(){return z().layout},X=function(){return z().title},J=function(){return z().metadataText?z().metadataText:z().genre},q=function(){return z().channelName},T=function(){return z().image},Q=function(){return z().colorPalette},m=function(){return z().actionButton},a=function(){return z().overflowButton},
n=function(){return z().avatar},H=function(){return z().ageRating},I=function(){var N={};
N=_.qT("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(N["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return w()},N));
return _.x("div",{class:N},_.x(bzg,{imageData:T,colorPalette:Q}),_.x(X8L,{onTap:function(){return z().onTap},
imageData:T,accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
isDesktopWeb:w}),_.x(_.l,{cond:function(){return!w()},
then:function(){return _.x(_.Qw,null,_.x(JPC,{layout:G,colorPalette:Q,isDesktopWeb:w,overflowButton:a,avatar:n,onTap:function(){return z().onTap},
genre:J,title:X,channelName:q}),_.x(klX,{actionButton:m}))}}))},L=function(){var N={};
N=_.qT((N["yt-mini-game-card-view-model--search-result-desktop"]=function(){return w()},N["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!w()},N["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return K()},N));
return _.x("div",{class:N},I(),_.x(q9T,{description:function(){return z().description},
isDesktopWeb:w,title:X,genre:J,onTap:function(){return z().onTap},
actionButton:m,overflowButton:a,avatar:n,channelName:q}))},h=function(){var N={};
N=_.qT("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(N["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return w()},N["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return w()&&z().width===135},N["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return w()},N["yt-mini-game-card-view-model--big-metadata-font"]=function(){return z().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},N["yt-mini-game-card-view-model--use-full-width"]=
function(){return C()},N["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.M("web_game_card_force_2_by_3")},N));
return _.x("div",{class:N},_.x(xss,{colorPalette:Q,isDesktopWeb:w,onTap:function(){return z().onTap},
accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
actionButton:m,imageData:T}),_.x(JPC,{layout:G,colorPalette:Q,isDesktopWeb:w,overflowButton:a,avatar:n,onTap:function(){return z().onTap},
genre:J,title:X,channelName:q}),_.x(_.l,{cond:H,then:function(D){return _.x(T0S,{ageRating:D})}}))},E=function(){var N={};
N=_.qT("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(N["yt-mini-game-card-view-model--square-card-desktop"]=function(){return w()},N["yt-mini-game-card-view-model--use-full-width"]=function(){return C()},N));
return _.x("div",{class:N},_.x(X8L,{onTap:function(){return z().onTap},
imageData:T,accessibilityText:function(){return z().accessibilityText},
overlayBadgeText:function(){return z().overlayBadgeText},
iconName:function(){return z().iconName},
unplayableInlinePlaybackIconName:function(){return z().unplayableInlinePlaybackIconName},
isDesktopWeb:w}),_.x(JPC,{layout:G,colorPalette:Q,isDesktopWeb:w,overflowButton:a,avatar:n,onTap:function(){return z().onTap},
genre:J,title:X,channelName:q}),_.x(_.l,{cond:H,then:function(D){return _.x(T0S,{ageRating:D})}}))};
return _.x("mini-game-card-view-model",{class:e.className},_.x(_.d1,null,_.x(_.fd,{when:function(){return G()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return h()}),_.x(_.fd,{when:function(){return G()==="MINI_APP_LAYOUT_SQUARE"}},function(){return E()}),_.x(_.fd,{when:function(){return G()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return L()})))},"$a");
$sh.idomCompat=!0;var klX=_.f(function(e){var z=_.pP(e.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.x(_.PF,{data:e.actionButton},{buttonViewModel:function(C){return _.x("div",{class:z},_.x(_.iz,{data:C.data}))}})},"ab"),X8L=_.f(function(e){var z=e.onTap;
var C=e.imageData;var w=e.accessibilityText;var K=e.overlayBadgeText;var G=e.iconName;var X=e.unplayableInlinePlaybackIconName;e=e.isDesktopWeb;return _.x(_.fE,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:z},_.x(_.Zf,{data:C,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(w==null?void 0:w())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.x(lia,{overlayBadgeText:K,iconName:G,unplayableInlinePlaybackIconName:X,isDesktopWeb:e}))},"bb"),lia=_.f(function(e){var z=e.overlayBadgeText;
var C=e.iconName;var w=e.unplayableInlinePlaybackIconName;var K=e.isDesktopWeb;return _.x("div",{class:"yt-mini-game-card-view-model__badge-container"},_.x(_.l,{cond:C,then:function(G){return _.x("div",{class:"yt-mini-game-card-view-model__badge"},_.x("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.x(_.mB,{icon:G,className:"yt-mini-game-card-view-model__icon",size:12}),_.x("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},z)))}}),_.x(_.l,{cond:function(){return!C()&&
z()},
then:function(){return _.x("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},z)}}),_.x(_.l,{cond:function(){return w()&&K()},
then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.x(_.mB,{icon:w,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"cb"),bzg=_.f(function(e){var z=e.colorPalette;
var C=e.imageData;var w=function(){return z().vibrantColorPalette?z().vibrantColorPalette.section2Color:z().sectionTwoColor};
return _.x(_.Qw,null,_.x("div",{class:"yt-mini-game-card-view-model__background-base",style:_.QC({"background-color":function(){return V$(w(),"1")}})}),_.x("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.QC({"background-image":function(){return"url("+C().sources[0].url+")"}})}),_.x("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.QC({background:function(){return"linear-gradient(180deg,\n    "+V$(w(),".8")+" 0%,\n    "+V$(w(),".4")+" 25%,\n    "+V$(z().vibrantColorPalette?z().vibrantColorPalette.section4Color:z().sectionFourColor,".8")+" 100%)"}})}))},"db"),JPC=_.f(function(e){var z=e.layout;
var C=e.colorPalette;var w=e.overflowButton;var K=e.avatar;var G=e.onTap;var X=e.title;var J=e.channelName;var q=e.genre;var T=function(){var Q;return z()!=="MINI_APP_LAYOUT_SQUARE"&&((Q=C())==null?0:Q.textPrimaryColor)?"color: "+V$(C().textPrimaryColor,".7"):""};
return _.x("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.x(_.l,{cond:K,then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__avatar"},_.x(_.PF,{data:K},{avatarViewModel:_.lO}))}}),_.x(_.fE,{command:G,
className:"yt-mini-game-card-view-model__metadata-details"},_.x("h3",{class:"yt-mini-game-card-view-model__title",title:X},X),_.x(_.l,{cond:K,then:function(){return _.x("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.x("span",{class:"yt-mini-game-card-view-model__genre",title:J,style:T},J),_.x("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:T},q))},
else:function(){return _.x("span",{class:"yt-mini-game-card-view-model__genre",title:q},q)}})),_.x("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.x(_.PF,{data:w},{buttonViewModel:function(Q){var m=Q.data;
return _.x(_.iz,{data:function(){return Object.assign({},m(),{customFontColor:z()==="MINI_APP_LAYOUT_SINGLETON"?m().customFontColor:void 0})}})}})))},"eb"),xss=_.f(function(e){var z=e.colorPalette;
var C=e.isDesktopWeb;var w=e.onTap;var K=e.accessibilityText;var G=e.overlayBadgeText;var X=e.iconName;var J=e.unplayableInlinePlaybackIconName;var q=e.actionButton;e=e.imageData;return _.x("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.x(bzg,{imageData:e,colorPalette:z}),_.x(X8L,{onTap:w,imageData:e,accessibilityText:K,overlayBadgeText:G,iconName:X,unplayableInlinePlaybackIconName:J,isDesktopWeb:C}),_.x(_.l,{cond:function(){return q==null?void 0:q()},
then:function(){return _.x(klX,{actionButton:q})}}))},"fb"),q9T=_.f(function(e){var z=e.description;
var C=e.isDesktopWeb;var w=e.title;var K=e.genre;var G=e.onTap;var X=e.actionButton;var J=e.overflowButton;var q=e.avatar;e=e.channelName;var T={};T=_.qT("yt-mini-game-card-view-model--search-result-metadata-wrapper",(T["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=C,T["yt-mini-game-card-view-model--show-unplayable-on-hover"]=C,T["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!C()},T));
var Q={};Q=_.qT("yt-mini-game-card-view-model__search-result-info-row",(Q["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!C()},Q));
return _.x("div",{class:T},_.x("div",{class:Q},_.x(_.fE,{command:G,className:"yt-mini-game-card-view-model__metadata-details"},_.x("h3",{class:"yt-mini-game-card-view-model__title",title:w},w),_.x("span",{class:"yt-mini-game-card-view-model__genre",title:K},K)),_.x(klX,{actionButton:X,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.x("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.x(_.PF,{data:J},{buttonViewModel:_.iz}))),_.x("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.x("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.x("div",{class:"yt-mini-game-card-view-model__avatar"},_.x(_.PF,{data:q},{avatarViewModel:function(m){var a=m.data;return _.x(_.lO,{data:function(){return Object.assign({},a(),{avatarImageSize:C()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.x(_.fE,{command:G,
className:"yt-mini-game-card-view-model__description"},_.x("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},e)),_.x(_.fE,{command:G,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.x("div",null)))),_.x(_.l,{cond:C,then:function(){return _.x(_.fE,{command:G,className:"yt-mini-game-card-view-model__description"},z)}}))},"gb"),T0S=_.f(function(e){var z=e.ageRating;
return _.x("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.x(_.Zf,{data:function(){return{sources:[{url:z().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.x(_.Se,{data:function(){return{badgeText:z().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"hb");_.KU($sh,"mini-game-card-view-model",{props:{data:_.vh,className:_.vh,useFullWidth:_.vh,isDesktopWeb:_.vh,addSearchResultTopMargin:_.vh}});_.KU(Glg,"dismissed-mini-game-card-view-model",{props:{data:_.vh,useSquareAspectRatio:_.vh}});var uO=function(){var e=_.V.apply(this,arguments)||this;e.isSearch=!1;e.isRichGrid=!1;return e};
_.U(uO,_.V);_.Y=uO.prototype;_.Y.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.Y.dismissibleItemOnYtServiceRequestSent=function(e,z){z.actions&&this.dismissibleItemProcessActions(e,z.actions)};
_.Y.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.Y.dataChanged=function(){this.dismissibleItemReset()};
_.Y.dismissibleItemProcessActions=function(e,z){for(var C=0;C<z.length;C++){var w=z[C];_.r(w,_.Zl)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.r(w,_.Zl)),e.stopPropagation())}};
_.Y.dismissibleItemHandleReplaceEnclosingAction=function(e){this.dismissedRenderer=e.item;this.isDismissed=!0};
_.lB.Object.defineProperties(uO.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var e;return!!this.data&&!((e=this.dismissedRenderer)==null?0:e.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.dismissedRenderer)==null||!e.notificationMultiActionRenderer)}}});
uO.prototype.dataChanged=uO.prototype.dataChanged;uO.prototype.dismissibleItemOnRequestSent=uO.prototype.dismissibleItemOnRequestSent;uO.prototype.dismissibleItemOnYtServiceRequestSent=uO.prototype.dismissibleItemOnYtServiceRequestSent;_.d([_.F(),_.B("design:type",Object)],uO.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],uO.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],uO.prototype,"isDismissed",void 0);
_.d([_.F(),_.B("design:type",Object)],uO.prototype,"dismissedRenderer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],uO.prototype,"isRichGrid",void 0);_.d([_.P("data.layout"),_.B("design:type",Object),_.B("design:paramtypes",[])],uO.prototype,"useSquareAspectRatio",null);_.d([_.P("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],uO.prototype,"showCard",null);
_.d([_.P("data","dismissedRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],uO.prototype,"showDismissed",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],uO.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.d([_.Qi("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uO.prototype,"dismissibleItemOnRequestSent",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uO.prototype,"dataChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],uO);
_.u(uO,"ytd-mini-game-card-view-model",function(){if(Keh!==void 0)return Keh;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Keh=e},{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var QWC;var msa;var dH=function(){return _.Qt.apply(this,arguments)||this};
_.U(dH,_.Qt);dH.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
dH.prototype.getContinuationUrl=function(e){var z={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(z.itct=this.data.clickTrackingParams);return _.XF(e,z)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],dH.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],dH.prototype,"data",void 0);_.d([_.fP({is:"yt-reload-continuation",noInjection:!0})],dH);var aiC;var n8L;var DN=function(){var e=_.V.apply(this,arguments)||this;e.notificationData={};return e};
_.U(DN,_.V);_.Y=DN.prototype;_.Y.isMenuExpanded=function(e){return e&&e.length<=1?"undefined":"false"};
_.Y.dataChanged_=function(){this.selected=void 0;var e=this.computeSelectedIndex_(this.data);e>=0&&(this.selected=e);e=this.data&&this.data.length>1;_.k$(this.hostElement,"has-items",e);_.XC(this.hostElement).querySelector("#label").tabIndex=e?0:-1};
_.Y.onDropdownOpen=function(){var e=_.Pr();if(this.parentTrackingParams&&this.data){var z=_.v9(this.parentTrackingParams);this.data.forEach(function(C){e&&z&&C.trackingParams&&(C=_.v9(C.trackingParams),_.id(e,z,C),_.Bf(e,[C]))})}else this.parentTrackingParams||_.AX(new _.uh("No parent tracking params passed in for yt-dropdown-menu."))};
_.Y.hasNotification=function(e){var z;if(e.targetId&&((z=this.notificationData)==null?0:z.targetId)){var C;return e.targetId===((C=this.notificationData)==null?void 0:C.targetId)}};
_.Y.computeSelectedIndex_=function(e){if(e)for(var z=0,C=e.length;z<C;z++)if(e[z].selected)return z;return-1};
_.Y.computeLabel_=function(e){return this.data&&e!=void 0?this.data[e].title:""};
_.Y.computeShowIcon_=function(e,z){return!z&&!!e};
_.Y.computeVerticalOffset_=function(e){return e?36:0};
_.Y.computeEndpoint_=function(e){return e.endpoint||e.navigationEndpoint};
_.Y.onLabelClick_=function(e){this.data&&this.data.length<=1?e.stopPropagation():this.menuExpanded="true"};
_.Y.onIronActivate_=function(e){e=e.detail.item;var z=_.XC(this.hostElement).querySelector("#repeat").itemForElement(e);if(z&&z.trackingParams){var C=_.Pr(),w=_.v9(z.trackingParams);C&&_.gQ(C,w)}if(z&&z.serviceEndpoint)_.M("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(z.serviceEndpoint):_.wQ(this.hostElement,[z.serviceEndpoint]),_.pi(this.hostElement,"yt-playlist-reloading");else a:{if((z=e.querySelector("yt-supported-renderers"))&&
(z=z.rendererElement)&&z.is=="yt-reload-continuation"){z.trigger();break a}(e=e.querySelector("yt-reload-continuation"))&&e.trigger()}};
_.Y.onTap_=function(e){e.preventDefault()};
_.Y.onItemTap_=function(e){this.ytEndpointBehavior.onEndpointTap_(e)};
_.Y.onLinkFocus_=function(e){try{var z=e.target}catch(w){}if(z){var C=z.querySelector("tp-yt-paper-item");C&&_.tK(this,"focus",function(){C.focus()})}};
_.Y.onMenuClose_=function(){this.menuExpanded="false"};
_.Y.isLabelIconActive_=function(e){return e==="true"};
_.Y.computeHasSubtitle_=function(e){return!!e};
_.Y.computeHrefForItem_=function(e){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(e))};
_.Y.updateSelectedFromBinding=function(e){this.selected=e.detail.value};
_.lB.Object.defineProperties(DN.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
DN.prototype.onMenuClose_=DN.prototype.onMenuClose_;DN.prototype.onTap_=DN.prototype.onTap_;DN.prototype.onIronActivate_=DN.prototype.onIronActivate_;DN.prototype.onDropdownOpen=DN.prototype.onDropdownOpen;DN.prototype.dataChanged_=DN.prototype.dataChanged_;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],DN.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.y5.YtEndpointBehavior),_.B("design:type",Object)],DN.prototype,"ytEndpointBehavior",void 0);
_.d([_.F(),_.B("design:type",Array)],DN.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],DN.prototype,"parentTrackingParams",void 0);_.d([_.F(),_.B("design:type",Object)],DN.prototype,"selected",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],DN.prototype,"useLabel",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],DN.prototype,"useComputedAriaLabel",void 0);_.d([_.F(),_.B("design:type",String)],DN.prototype,"icon",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],DN.prototype,"iconLabel",void 0);_.d([_.F(),_.B("design:type",String)],DN.prototype,"ariaLabel",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],DN.prototype,"disabled",void 0);_.d([_.F({computed:"isMenuExpanded(data)"}),_.B("design:type",String)],DN.prototype,"menuExpanded",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],DN.prototype,"closeOnActivate",void 0);
_.d([_.F({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.B("design:type",Boolean)],DN.prototype,"modernButtons",void 0);_.d([_.F(),_.B("design:type",Object)],DN.prototype,"notificationData",void 0);_.d([_.P("ariaLabel, selected"),_.F(),_.B("design:type",String),_.B("design:paramtypes",[])],DN.prototype,"computedAriaLabel",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DN.prototype,"dataChanged_",null);
_.d([_.Qi("paper-dropdown-open"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],DN.prototype,"onDropdownOpen",null);_.d([_.Qi("iron-activate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],DN.prototype,"onIronActivate_",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],DN.prototype,"onTap_",null);
_.d([_.Qi("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],DN.prototype,"onMenuClose_",null);_.d([_.fP({is:"yt-dropdown-menu",disableElementRegistration:!0})],DN);
_.u(DN,"yt-dropdown-menu",function(){if(n8L===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;aiC===void 0&&(aiC=document.createElement("template"));var w=aiC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);n8L=e}e=n8L;return e},{mode:2});var iO=function(){var e=_.V.apply(this,arguments)||this;e.hasNotification=!1;return e};
_.U(iO,_.V);iO.prototype.computeId=function(e){return e};
iO.prototype.computeHorizontalAlign=function(e){return e?"right":"left"};
iO.prototype.computeAccessibilityLabel=function(e){var z,C;return((z=e.accessibility)==null?void 0:(C=z.accessibilityData)==null?void 0:C.label)||null};
iO.prototype.notificationDataChanged=function(){var e;this.hasNotification=!!this.notificationData&&!((e=this.data)==null?0:e.icon)};
iO.prototype.notificationDataChanged=iO.prototype.notificationDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.lz.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],iO.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iO.prototype,"data",void 0);_.d([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],iO.prototype,"id",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],iO.prototype,"isRightAligned",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],iO.prototype,"disabled",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],iO.prototype,"closeOnActivate",void 0);_.d([_.F(),_.B("design:type",Object)],iO.prototype,"notificationData",void 0);_.d([_.F(),_.B("design:type",Object)],iO.prototype,"hasNotification",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],iO.prototype,"useComputedAriaLabel",void 0);_.d([_.mi("notificationData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iO.prototype,"notificationDataChanged",null);_.d([_.fP({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],iO);
_.u(iO,"yt-sort-filter-sub-menu-renderer",function(){if(msa===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;QWC===void 0&&(QWC=document.createElement("template"));var w=QWC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);msa=e}e=msa;return e},{mode:2});var MDa=_.f(function(e){var z=e.data;var C=_.T9(function(){var G=z().onTap;(G=_.r(G,_.fm))&&_.lh().resolve(_.ms).resolveCommand(G);return!1}),w=function(){return{sources:[{url:z().thumbnailUrl,
width:120,height:90}]}},K=function(){return z().rating&&z().ratingA11yLabel&&z().reviewsCount&&z().reviewsCountA11yLabel};
return _.x("place-data-view-model",null,_.x(_.l,{cond:function(){return z().placeName&&z().placeCategory},
then:function(){return _.x("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":C},_.x(_.Zf,{data:w,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.x(_.fE,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return z().onTap}},_.x("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return z().placeName}},function(){return z().placeName})),_.x("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.x(_.l,{cond:K,
then:function(){return _.x("div",{class:_.qT("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.x("span",{class:"score",title:function(){return z().ratingA11yLabel}},function(){return z().rating}),_.x("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.x(_.mB,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.x("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return z().reviewsCountA11yLabel}},function(){return z().reviewsCount}))},
else:function(){return _.x("div",{class:_.qT("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.x("div",{class:_.qT("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.x("span",{class:"category",
title:function(){return z().placeCategory}},function(){return z().placeCategory}))))}}))},"ib");
MDa.idomCompat=!0;_.KU(MDa,"place-data-view-model",{props:{data:_.vh}});var rPs=new _.Mt("INLINE_PLAYBACK_HOOK_TOKEN");var Hz4=ET({sharedUi:z5L});_.cF=FW(Hz4)(Hz4.sharedUi,{animatedThumbnailEnabledSelector:function(e){return e.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(e){return e.inlinePreviewEnabled},
currentPageTypeSelector:function(e){return e.currentPageType},
currentPageSubTypeSelector:function(e){return e.currentPageSubType},
persistentPanelVisibleSelector:function(e){return e.persistentPanelVisible}});var Usc=function(e){this.setActiveSlideIndex=e;this.jobIds=[];this.isSlideshowPlaying=!1},WeT=function(e,z){e.isSlideshowPlaying||(e.isSlideshowPlaying=!0,v8a(e),IiX(e,z,0))},v8a=function(e){_.XW(_.c5,function(){e.setActiveSlideIndex(0)},1)},IiX=function(e,z,C){e.jobIds.push(_.XW(_.c5,function(){var w=C<z-1?C+1:0;
e.setActiveSlideIndex(w);IiX(e,z,w)},1800))};var PRX,LeS;PRX=new _.Mt("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.Res=new _.Mt("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");LeS=new _.Mt("COMMON_MARK_VIEW_MODEL_TOKEN");var heh=new _.Mt("IMAGE_ON_LOAD_HANDLER_TOKEN");var Oz4=_.f(function(e){return _.x("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.x(_.l,{cond:function(){var z;return(z=e.data())==null?void 0:z.thumbnail},
then:function(z){return _.x(_.Zf,{data:z,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"jb");_.E8X=_.f(function(e){var z=e.data;var C=e.lockupExperiments;e={};return _.x("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.x("div",{class:_.qT("ytThumbnailOverlayButtonViewModelButton",(e.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var w;return C&&((w=C())==null?void 0:w.useLegacySizedIconButton)},e))},_.x(_.PF,{data:function(){return z().overlayButton}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
buttonOverrides:function(){var K;return C&&((K=C())==null?0:K.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"kb");
_.E8X.idomCompat=!0;var Feo=_.f(function(e){return _.x("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.T9(function(z){z.preventDefault();return!1})},_.x(_.PF,{data:function(){return e.data().buttons}},{toggleButtonViewModel:function(z){return _.x("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.x(_.XG,{data:z.data}))}}))},"lb");
Feo.idomCompat=!0;var VDC=_.f(function(e){var z=function(){var C;return((C=_.r(e.data().rendererContext,_.Re))==null?void 0:C.label)||""};
return _.x("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.x(_.l,{cond:function(){return e.data().image},
then:function(){return _.x("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.x(_.Zf,{data:function(){return e.data().image},
alt:z}))}}),_.x(_.l,{cond:function(){return e.data().text},
then:function(){return _.x("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return e.data().text})}}))},"mb");var fio;fio=_.cF.animatedThumbnailEnabledSelector;_.NN=_.f(function(e){var z=[],C=function(){var a,n;return _.syL((a=e.width)==null?void 0:a.call(e),(n=e.height)==null?void 0:n.call(e))},w=_.lh().resolve(_.$B(heh)),K=_.kI("yt-thumbnail-view-model",function(){z.push("elRef.value set");
var a;(a=e.playbackRef)==null||a.call(e,{thumbnailElRef:K,thumbnail:e.data().image,thumbnailOverlays:e.data().overlays,thumbnailSize:C()})});
_.sg(function(){z.push("onInit");_.BC(function(){z.push("onCleanup")})});
var G=_.rG(fio),X=function(){var a,n;return(n=(a=e.aspectRatio)==null?void 0:a.call(e))!=null?n:0},J=function(){return(e.data().image?_.YYL(e.data().image):X())<=1&&X()===0},q=function(){return J()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},T=function(){K.value||_.AX(new _.uh("Thumbnail elRef.value is null",z.join("\n")));
w&&K.value&&w(K.value)},Q=function(){var a,n;
return((a=e.hovered)==null?void 0:a.call(e))&&C()!=="large"&&((n=e.data().overlays)==null?void 0:n.some(function(H){return _.r(H,EEa)}))},m={};
return _.x("yt-thumbnail-view-model",{class:_.qT("ytThumbnailViewModelHost",e.className,function(){return vFs(X())},function(){var a,n;
a:{var H=C(),I=(a=e.disableRounding)==null?void 0:a.call(e);a=(n=e.isClip)==null?void 0:n.call(e);if(!I&&!a)switch(H){case "large":n="ytThumbnailViewModelLarge";break a;case "small":n="ytThumbnailViewModelSmall";break a;default:n="ytThumbnailViewModelMedium";break a}n=void 0}return n},(m.ytThumbnailViewModelCinematic=J,m)),
style:_.QC({"background-color":function(){var a,n=J()?(a=e.data().backgroundColor)==null?void 0:a.lightTheme:void 0;return n?V$(n,"1"):void 0}}),
el:K},_.x(_.l,{cond:J,then:function(){return _.x("div",{class:"ytThumbnailViewModelBlurredImage"},_.x(_.Zf,{data:function(){return e.data().image},
alt:"",contentMode:q,targetWidth:e.width,onload:T}))}}),_.x("div",{class:"ytThumbnailViewModelImage"},_.x(_.Zf,{data:function(){return e.data().image},
alt:"",contentMode:q,targetWidth:e.width,onload:T}),null),_.x(_.PF,{data:function(){return Q()?void 0:e.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:f$6,thumbnailOverlayBadgeViewModel:function(a){return _.x(_.Suo,{data:a.data,thumbnailSize:C,isClip:e.isClip})},
thumbnailBottomOverlayViewModel:function(a){return _.x(O14,{data:a.data,thumbnailSize:C,isClip:e.isClip})},
thumbnailOverlayFullViewModel:VDC,thumbnailOverlayButtonViewModel:function(a){return _.x(_.E8X,{data:a.data,lockupExperiments:e.lockupExperiments})},
channelDisclosureViewModel:function(a){a=a.data;var n;return _.x("div",null,(n=_.lh().resolve(_.$B(PRX)))==null?void 0:n({data:a}))}}),_.x(_.PF,{data:function(){var a;
return((a=e.hovered)==null?0:a.call(e))?e.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(a){return _.x($v,{data:a.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Feo}),_.x(_.PF,{data:function(){var a;return((a=e.hovered)==null?0:a.call(e))&&G()?e.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Oz4}),_.x(_.l,{cond:e.isClip,then:function(){return _.x("div",{class:"ytPinkingNsHost"},_.x("svg",{class:"ytPinkingNsPinkingLeft"},_.x("defs",null,_.x("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.x("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.x("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.x("svg",{class:"ytPinkingNsPinkingRight"},_.x("defs",null,_.x("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.x("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.x("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"nb");
_.NN.idomCompat={callbacks:{playbackRef:!0}};var S9X=_.f(function(e){var z=_.b(_.II(-1,void 0,"RW2Ole")),C=z.next().value,w=z.next().value;_.sg(function(){var K=new Usc(w);WeT(K,e.data().thumbnails.length);_.BC(function(){if(K.isSlideshowPlaying){K.isSlideshowPlaying=!1;for(var G=K.jobIds,X=0,J=G.length;X<J;X++)_.c5.cancelJob(G[X]);K.jobIds.length=0}})});
return _.x("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.x(_.PF,{data:function(){return e.data().thumbnails}},{thumbnailViewModel:function(K,G){return _.x("div",{class:function(){var X=!e.data().primaryThumbnail,J=G(),q=C(),T=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
X&&J===0&&T.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");J<=q&&T.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return T.join(" ")}},_.x(_.NN,{data:K.data,
disableRounding:e.disableRounding}))}}))},"ob");
S9X.idomCompat=!0;var Ibo=new _.Mt("DWELL_DETECTOR_REGISTRY_TOKEN");var dsa=_.f(function(e){var z=Ww8(e.triggeringElement),C=function(){return!!e.data().primaryThumbnail},w=function(){var G,X=(G=e.data())==null?void 0:G.maxHeight,J;
G=(J=e.maxHeight)==null?void 0:J.call(e);return X!=null&&G!=null?Math.min(X,G):G!=null?G:X},K=function(){var G=w();
if(G){var X;if(C()&&(X=e.includeStackHeight)!=null&&X.call(e)){var J;X=((J=e.doubleStack)==null?0:J.call(e))?8:4}else X=0;G=G-X-1;if(!(G<0)){J=Math;X=J.ceil;var q,T;var Q=NgE((T=(q=e.aspectRatio)==null?void 0:q.call(e))!=null?T:0);return X.call(J,G*Q)}}};
return _.x("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.QC({height:function(){return w()?w()+"px":void 0},
width:function(){return K()?K()+"px":void 0}})},_.x(u6c,{stackEnabled:C,
thumbnailSize:function(){var G,X;return _.syL((G=e.width)==null?void 0:G.call(e),(X=e.height)==null?void 0:X.call(e))},
doubleStack:e.doubleStack,stackColor:function(){return e.data().stackColor},
includeStackHeight:e.includeStackHeight},_.x(_.PF,{data:function(){return e.data().primaryThumbnail}},{thumbnailViewModel:function(G){var X={};
return _.x(_.NN,{data:G.data,width:e.width,height:e.height,aspectRatio:e.aspectRatio,disableRounding:e.disableRounding,className:_.qT((X.ytCollectionThumbnailViewModelHostHasStacks=C,X)),hovered:e.hovered,playbackRef:e.playbackRef})}}),_.x(_.l,{cond:function(){var G;
return z()&&((G=e.data().thumbnails)==null?void 0:G.length)},
then:function(){return _.x("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.x(S9X,{data:e.data,disableRounding:function(){return!C()}}))}})))},"pb");
dsa.idomCompat={callbacks:{playbackRef:!0}};
var u6c=_.f(function(e){var z=e.children;var C=e.stackEnabled;var w=e.thumbnailSize;var K=e.doubleStack;var G=e.stackColor;var X=e.includeStackHeight;var J,q=(J=_.lh().resolve(_.$B(_.jQ)))==null?void 0:J();return _.x(_.l,{cond:C,then:function(){return _.x(b1X,{data:function(){var T,Q;return{experimentEnabled:!0,thumbnailSize:w(),doubleStack:K==null?void 0:K(),color:q?G==null?void 0:(T=G())==null?void 0:T.darkTheme:G==null?void 0:(Q=G())==null?void 0:Q.lightTheme,enableResponsiveMode:!1,includeStackHeight:X==
null?void 0:X()}}},z)},
else:function(){return z}})},"qb");var Dsa=new _.Mt("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Bp;_.sD={calledOnce:!0,state:"visible"};Bp={calledOnce:!0,state:"hidden"};_.t_=_.f(function(e){var z=e.data;var C=e.customCommandResolver;var w=e.className;var K=e.delayedClassName;var G=e.animationEntityKey;var X=e.isCompactWidth;var J=e.isContentWidth;e=_.b(_.II(!1,void 0,"pC3tUb"));var q=e.next().value,T=e.next().value,Q=_.pP(G,""),m=_.vF(US4,Q),a=function(){var lg,M5;return(M5=(lg=m())==null?void 0:lg.value)!=null?M5:!1},n=function(){_.ZL(_.Rx("booleanEntity",Q(),{key:Q(),
value:!0}));g=void 0};
G=_.b(_.zx(a));var H=G.next().value,I=G.next().value;G=_.b(_.zx(a));var L=G.next().value,h=G.next().value;G=_.b(_.zx(function(){var lg;return a()?(lg=z().styleTransitionConfig)==null?void 0:lg.destinationStyle:void 0}));
var E=G.next().value,N=G.next().value,D=function(){var lg=Object.assign({},z(),E()&&{style:E()});var M5,fo,ug=lg.label,sE=(M5=lg.interaction)==null?void 0:(fo=M5.accessibility)==null?void 0:fo.label;M5=lg.iconImage?lg.label&&lg.label.content?lg.iconLeading?"leading":"trailing":"icon-only":void 0;lg={formattedButtonText:ug,accessibilityLabel:sE,style:hrN(lg.style),type:OSE(lg.style),state:"active",size:Lw1(lg.size),iconPosition:M5,disabled:!1,aTagConfig:Rrk(lg,C)};_.M("enable_desktop_vdcbg_components")&&
(lg.focused=q());return lg},g;
G=_.aO({visibilityCallback:function(lg){var M5,fo=(M5=z().interaction)==null?void 0:M5.onFirstVisible;lg&&fo&&_.NF(fo)},
showOption:_.sD});var y=function(){return Zn5(D(),!!z().iconImage)};
e={};var Z={};w=_.qT(function(){return"ytwAdButtonViewModelHost"},function(){return z().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var lg=!!z().delayedAppearanceConfig,M5=H();
return lg?M5?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var lg=!!z().delayedAppearanceConfig,M5=L();
return lg?M5?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!z().delayedAppearanceConfig||H()?K==null?void 0:K():""},(e.ytwAdButtonViewModelHostCompactWidth=function(){return X==null?void 0:X()},e),(Z.ytwAdButtonViewModelHostContentWidth=function(){return J==null?void 0:J()},Z),w!=null?w:"");
var YN=function(){var lg,M5=(lg=z().delayedAppearanceConfig)==null?void 0:lg.delayedInvisibleSeconds;M5&&(g=_.Oz(_.c5,function(){I(!0);Jk()},M5*1E3))},Jk=function(){var lg,M5=(lg=z().delayedAppearanceConfig)==null?void 0:lg.delayedVisibleSeconds;
M5&&(g=_.Oz(_.c5,function(){h(!0);v1()},M5*1E3))},v1=function(){var lg,M5=(lg=z().styleTransitionConfig)==null?void 0:lg.styleTransitionSeconds,fo,ug=(fo=z().styleTransitionConfig)==null?void 0:fo.destinationStyle;
M5&&ug?g=_.Oz(_.c5,function(){N(ug);n()},M5*1E3):n()};
_.sg(function(){YN()});
_.BC(function(){g&&_.c5.cancelJob(g)});
return _.x("ad-button-view-model",{"on:focusin":_.T9(_.M("enable_desktop_vdcbg_components")?function(){var lg=_.lh().resolve(_.$B(_.V5));lg&&T(lg.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.T9(_.M("enable_desktop_vdcbg_components")?function(){T(!1);return!1}:void 0),
class:w,el:_.ej(G),style:_.QC({"transition-duration":"0.3s"})},_.x(_.l,{cond:D,then:function(){return _.x(_.DS,{data:D,icon:function(){return _.x(_.l,{cond:function(){return z().iconImage},
then:function(lg){return _.x(_.Zf,{data:lg,alt:"",targetWidth:y,targetHeight:y,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"sb");var izc=_.f(function(e){var z=e.data;e=function(){return z().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var C=_.aO({visibilityCallback:function(G){var X,J=(X=z().interaction)==null?void 0:X.onFirstVisible;G&&J&&_.NF(J)},
showOption:_.sD}),w={},K={};return _.x("ad-button-group-view-model",{class:_.qT("ytwAdButtonGroupViewModelHost",(w.ytwAdButtonGroupViewModelHostCompactWidth=e,w)),el:_.ej(C)},_.x("div",{class:_.qT("ytwAdButtonGroupViewModelHostSecondaryButton",(K.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=e,K))},_.x(_.PF,{data:function(){return z().secondaryAdButton}},{adButtonViewModel:function(G){return _.x(_.t_,{data:G.data})}})),_.x("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.x(_.PF,
{data:function(){return z().primaryAdButton}},{adButtonViewModel:function(G){return _.x(_.t_,{data:G.data})}})))},"tb");var N0c=_.f(function(e){var z=function(){var C;return((C=e.data())==null?void 0:C.answers)||[]};
return _.x("yt-survey-icons",{class:"ytSurveyIconsHost"},_.x("div",{class:"ytSurveyIconsHeader"},_.x("div",{class:"ytSurveyIconsTitle"},function(){var C;return(C=e.data())==null?void 0:C.text}),_.x("div",null,_.x(_.DS,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var C;(C=e.onDismiss)==null||C.call(e)}}},
iconName:"DISMISSAL"}))),_.x("div",null,_.x("div",{class:"ytSurveyIconsAnswers"},_.x(_.ui,{each:function(){return z()},
keyBy:"INDEX"},function(C,w){return _.x("div",null,_.x(_.DS,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var K;(K=e.onSelect)==null||K.call(e,C(),w)}}},
icon:function(){return _.x(_.mB,{icon:function(){var K,G;return(K=C())==null?void 0:(G=K.icon)==null?void 0:G.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.x("div",{class:"ytSurveyIconsAnswersText"},_.x("div",null,function(){return z().length?z()[0].text:""}),_.x("div",null,function(){return z().length?z()[z().length-1].text:""}))))},"ub");var sWX=_.f(function(e){var z=_.ej(_.Dh(function(){var q;return(q=e.data())==null?void 0:q.rendererContext},void 0,void 0,void 0,!0)),C=_.b(_.II(!1,void 0,"GW0yjf")),w=C.next().value,K=C.next().value,G=_.vF(UR1,function(){var q;
return(q=e.data().keys)==null?void 0:q.surveyEntityKey}),X=_.vF(ve5,function(){var q;
return(q=e.data().keys)==null?void 0:q.surveyStateEntityKey});
_.JH("ytd-slimline-survey-show-action",function(){K(!1)});
var J=function(){var q,T;var Q=(q=X())==null?void 0:(T=q.questionStack)==null?void 0:T[0];if(Q!==void 0){var m,a;return(m=G())==null?void 0:(a=m.questions)==null?void 0:a[Q]}};
C={};return _.x("yt-slimline-survey-view-model",{el:z,class:_.qT("ytSlimlineSurveyViewModelHost",(C.ytSlimlineSurveyViewModelCollapsed=function(){return w()},C))},_.x("div",{class:"ytSlimlineSurveyViewModelContainer"},_.x(_.l,{cond:function(){var q;
return((q=J())==null?void 0:q.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.x(N0c,{data:function(){return J()},
onSelect:function(q,T){var Q,m;return _.k(function(a){K(!0);if(m=(Q=e.data())==null?void 0:Q.onSelectRating)_.NF(m),_.ZL(T_h(T));_.E_(a)})},
onDismiss:function(){K(!0);var q;var T=(q=G())==null?void 0:q.dismissalFeedbackToken;q=T?{feedbackEndpoint:{feedbackToken:T}}:void 0;q&&_.uA(q,{form:{element:z.value}})}})}})))},"vb");var B0a=_.f(function(e){return _.x("yt-table-view-model",{class:_.qT("ytTableViewModelHost",e.className)},_.x(_.ui,{each:function(){return e.data().rows||[]}},function(z){var C={};
return _.x("div",{class:_.qT("ytTableViewModelRow",(C.ytTableViewModelRowBottomBorder=function(){return e.data().showSeparators},C))},_.x(_.ui,{each:function(){return(z==null?void 0:z.cells)||[]}},function(w,K){var G,X={};
return _.x("span",{class:_.qT((X.ytTableViewModelRowLabel=function(){return K()===0&&e.data().showHorizontalHeaders},X.ytTableViewModelCell=function(){return!e.data().showHorizontalHeaders||K()>0},X))},(G=w.text)==null?void 0:G.content)}))}))},"wb");var tDC=_.f(function(e){return _.x("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.x(_.PF,{data:function(){var z;return(z=e.data())==null?void 0:z.attachments}},{flexibleActionsViewModel:function(z){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(_.ml,{data:z.data,
layout:function(){var C;return((C=e.lockupStyle())==null?void 0:C.arrangement)===1?0:1},
justifyContentOverride:function(){var C;return((C=e.lockupStyle())==null?void 0:C.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(z){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(sWX,{data:z.data}))},
expandableMetadataViewModel:function(z){z=z.data;var C;return _.x("div",{class:_.qT("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(C=_.lh().resolve(_.$B(Dsa)))==null?void 0:C({data:z}))},
adButtonGroupViewModel:function(z){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(izc,{data:z.data}))},
adButtonViewModel:function(z){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(_.t_,{data:z.data,isCompactWidth:!0}))},
tableViewModel:function(z){return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.x(B0a,{data:z.data}))},
aiCompanionAttachmentViewModel:function(z){z=z.data;var C;return _.x("div",{class:"ytLockupAttachmentsViewModelAttachment"},(C=_.lh().resolve(_.$B(_.Res)))==null?void 0:C({data:z}))}}))},"xb");var uah=_.n0("rich_grid_min_item_width",310),fbE=_.n0("rich_grid_max_item_width",500);var jFs,gF8;jFs=16/9;gF8=2/3;_.gH=_.f(function(e){var z=e.data;var C=e.className;var w=e.imageSizeConfig;var K=e.notifyOnLoaded;var G=function(){return z().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X=function(){var a;
return _.dE((a=z())==null?void 0:a.rendererContext)};
e={};e=(e.ytContentPreviewImageViewModelHost=!0,e.ytContentPreviewImageViewModelCircleImage=function(){return G()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},e.ytContentPreviewImageViewModelTappable=function(){return X()},e);
var J=function(){var a,n;return(n=(a=_.r(z().rendererContext,_.Re))==null?void 0:a.label)!=null?n:""},q=function(){return cy1(z())},T=function(){var a=yyg(G(),z().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",w==null?void 0:w(),Ay1(q()),z().layoutWidth,z().layoutHeight),n=Object.assign({},a);
a.width&&(n.width=Math.round(a.width));a.height&&(n.height=Math.round(a.height));a.maxWidth&&(n.maxWidth=Math.round(a.maxWidth));a.maxHeight&&(n.maxHeight=Math.round(a.maxHeight));return n},Q=_.hG(function(){return T().height},void 0,"CxFlJb"),m=_.hG(function(){return T().width},void 0,"lb8Jhd");
return _.x("yt-content-preview-image-view-model",{el:_.ej(_.Dh(function(){var a;return(a=z())==null?void 0:a.rendererContext})),
role:function(){return X()?"link":void 0},
tabindex:function(){return X()?0:void 0},
class:_.qT(C,e,function(){var a=G();var n=w==null?void 0:w();a=a==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||a==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||a==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||a==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(n==null?void 0:n.size)!=null&&n.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(n==null?void 0:n.size)!=null&&n.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return a}),
style:function(){var a=T(),n=[];a.width&&n.push("width: "+a.width+"px");a.height&&n.push("height: "+a.height+"px");a.maxWidth&&n.push("max-width: "+a.maxWidth+"px");a.maxHeight&&n.push("max-height: "+a.maxHeight+"px");a.fullWidth&&n.push("width: 100%");return n.join(";")}},_.x(_.l,{cond:q,
then:function(a){return _.x(_.Zf,{data:a,alt:J,"data-disabled$":function(){return!J()},
notifyOnLoaded:K,targetWidth:m,targetHeight:Q,preserveWidth:function(){return!!m()},
preserveHeight:function(){return!!Q()}})}}),_.x(_.PF,{data:function(){var a;
return(a=z())==null?void 0:a.overlays}},{thumbnailHoverOverlayViewModel:$v,
thumbnailOverlayButtonViewModel:_.E8X}))},"yb");
_.gH.idomCompat=!0;var je=_.f(function(e){var z=e.data;var C=e.className;var w=e.useSmallLayout;var K=e.useMediumText;e=e.useHeavyText;var G={};return _.x("yt-attribution-view-model",{el:_.ej(_.Dh(function(){var X;return(X=z())==null?void 0:X.rendererContext})),
class:_.qT(C,(G.ytAttributionViewModelHost=!0,G.ytAttributionViewModelMediumText=K,G.ytAttributionViewModelHeavyText=e,G))},_.x(_.l,{cond:function(){return _.dE(z().rendererContext)},
then:function(){return _.x("button",{class:"ytAttributionViewModelTappable"},_.x(g8S,{data:z,useSmallLayout:w}))},
else:function(){return _.x(g8S,{data:z,useSmallLayout:w})}}))},"zb"),g8S=_.f(function(e){var z=e.data;
var C=e.useSmallLayout;var w=function(){return{size:(C==null?0:C())?16:24}};
return _.x(_.Qw,null,_.x(_.PF,{data:function(){return z().contentPreviewImage}},{contentPreviewImageViewModel:function(K){return _.x(_.gH,{data:K.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:w})}}),_.x(_.PF,{data:function(){return z().badge}},{badgeViewModel:function(K){return _.x(_.Se,{data:K.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.x(_.l,{cond:function(){return z().text},
then:function(){return _.x(_.U2,{text:function(){return z().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.x(_.l,{cond:function(){return z().suffix},
then:function(){return _.x(_.U2,{text:function(){return z().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Ab");
je.idomCompat=!0;var jWc,yPa,cPX,APL,ZzY;jWc=_.f(function(e){var z=e.delimiter;var C=e.max;var w=e.index;var K=e.isStandalone;return _.x(_.l,{cond:function(){return C()-1>w()},
then:function(){var G={};return _.x("span",{class:_.qT("yt-content-metadata-view-model__delimiter",(G["yt-content-metadata-view-model__delimiter--standalone"]=K,G)),"aria-hidden":!0},z)}})},"Bb");
yPa=_.f(function(e){var z=e.metadataPart;var C=e.maxLines;return _.x(_.U2,{text:function(){return z().text},
linkInheritColor:!0,className:function(){return ZSg(C())},
userInput:!0})},"Cb");
cPX=_.f(function(e){var z=e.metadataPart;var C=e.maxLines;return _.x(_.l,{cond:function(){return z().tooltip},
then:function(w){return _.x("span",{title:w,role:"tooltip"},_.x(yPa,{metadataPart:z,maxLines:C}))},
else:function(){return _.x(yPa,{metadataPart:z,maxLines:C})}})},"Db");
APL=_.f(function(e){var z=e.metadataPart;var C=e.isOverlay;var w=e.useMediumText;var K=e.hideAvatar;var G=function(){return z().maxLines!==void 0?z().maxLines:1};
return _.x(_.Qw,null,_.x(_.PF,{data:function(){return z().avatarStack}},{avatarStackViewModel:function(X){return _.x(_.m9,{data:X.data,
isOverlay:C,useMediumText:w,hideAvatar:K})},
badgeViewModel:_.Se}),_.x(_.l,{cond:function(){return z().leadingIcon},
then:function(X){return _.x(_.mB,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return X().name},
size:function(){return X().width}})}}),_.x(_.l,{cond:function(){return z().text},
then:function(){return _.x(cPX,{metadataPart:z,maxLines:G})}}),_.x(_.l,{cond:function(){return z().icon},
then:function(X){return _.x(_.mB,{className:"yt-content-metadata-view-model__icon",icon:function(){return X().name},
size:function(){return X().width}})}}))},"Eb");
ZzY=_.f(function(e){var z=e.metadataRow;var C=e.isInline;var w=e.delimiter;var K=e.isOverlay;var G=e.useMediumText;var X=e.extensions;var J=function(){var T,Q=X==null?void 0:(T=X())==null?void 0:T.lockupMetadata;T=z();var m,a;return!!((Q==null?0:(m=Q.byline)==null?0:m.hideAvatar)&&((a=_.r(T,vEs))==null?void 0:a.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},q=function(){return z().metadataParts||[]};
e={};return _.x("div",{class:_.qT("yt-content-metadata-view-model__metadata-row",(e["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=C,e["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var T,Q=X==null?void 0:(T=X())==null?void 0:T.lockupMetadata;T=z();var m,a;return!!((Q==null?0:(m=Q.byline)==null?0:m.addPadding)&&((a=_.r(T,vEs))==null?void 0:a.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},e["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var T;
return!!(X==null?0:(T=X())==null?0:T.lockupMetadata)&&z().badges&&!z().metadataParts},e))},_.x(_.PF,{data:function(){return z().badges}},{badgeViewModel:function(T){return _.x("div",{class:"yt-content-metadata-view-model__badge"},_.x(_.Se,{data:T.data,
numBadgesInRow:function(){var Q,m;return((Q=z())==null?void 0:(m=Q.badges)==null?void 0:m.length)||0}}))}}),_.x(_.ui,{each:q},function(T,Q){return _.x(_.Qw,null,_.x(APL,{metadataPart:T,
isOverlay:K,useMediumText:G,hideAvatar:J}),_.x(jWc,{delimiter:w,max:function(){return q().length},
index:Q,isStandalone:!1}))}),_.x(_.l,{cond:function(){return z().isSpacerRow&&!C()},
then:function(){return _.x("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Fb");
_.yh=_.f(function(e){e=_.eQ(e,{layout:0,isOverlay:!1});var z=e.data,C=e.layout,w=e.isOverlay,K=e.useMediumText,G=e.extensions,X=function(){return C()===0},J=function(){var T;
return((T=z().metadataRows)==null?void 0:T.filter(function(Q){var m,a=G==null?void 0:(m=G())==null?void 0:m.lockupMetadata,n,H;m=!!((a==null?0:(n=a.description)==null?0:n.hideDescription)&&((H=_.r(Q,vEs))==null?void 0:H.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var I,L;return!((a==null?0:(I=a.spacer)==null?0:I.hideSpacer)&&((L=_.r(Q,vEs))==null?void 0:L.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||m)}))||[]},q={};
return _.x("yt-content-metadata-view-model",{class:_.qT(e.className,"yt-content-metadata-view-model",(q["yt-content-metadata-view-model--inline"]=X,q["yt-content-metadata-view-model--tappable"]=function(){return _.dE(z().rendererContext)},q["yt-content-metadata-view-model--medium-text"]=K,q)),
el:_.ej(_.Dh(function(){return z().rendererContext}))},_.x(_.ui,{each:J},function(T,Q){return _.x(_.Qw,null,_.x(ZzY,{metadataRow:T,
isInline:X,delimiter:function(){return z().delimiter},
isOverlay:w,useMediumText:K,extensions:G}),_.x(_.l,{cond:function(){return X()&&!T.isSpacerRow},
then:function(){return _.x(jWc,{delimiter:function(){return z().delimiter},
max:function(){return J().length},
index:Q,isStandalone:!0})}}))}))},"Gb");
_.yh.idomCompat=!0;var p8U=_.f(function(e){var z=_.lh().resolve(_.$B(_.jQ)),C={};return _.x("yt-lockup-metadata-view-model",{class:_.qT("yt-lockup-metadata-view-model",function(){a:{var w=e.lockupStyle();if(w==null?0:w.isOverlay)w="yt-lockup-metadata-view-model--overlay";else switch(w==null?void 0:w.arrangement){case 1:w="yt-lockup-metadata-view-model--horizontal";break a;default:w="yt-lockup-metadata-view-model--vertical"}}return w},function(){a:{var w=e.lockupStyle();
switch(w==null?void 0:w.titleMaxLines){case 1:w="yt-lockup-metadata-view-model--title-max-lines-1";break a}w=void 0}return w},function(){a:{var w=e.lockupStyle();
if(w==null?0:w.isTiny)w="yt-lockup-metadata-view-model--tiny";else switch(w==null?void 0:w.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":w="yt-lockup-metadata-view-model--compact";break a;default:w="yt-lockup-metadata-view-model--standard"}}return w},(C["yt-lockup-metadata-view-model--overlay"]=function(){var w;
return(w=e.lockupStyle())==null?void 0:w.isOverlay},C["yt-lockup-metadata-view-model--card"]=function(){var w;
return(w=e.lockupStyle())==null?void 0:w.isCard},C["yt-lockup-metadata-view-model--centered"]=function(){var w;
return(w=e.lockupStyle())==null?void 0:w.isCentered},C["yt-lockup-metadata-view-model--typography-bump"]=function(){var w;
return(w=e.lockupStyle())==null?void 0:w.typographyBump},C["yt-lockup-metadata-view-model--legacy-typography"]=function(){var w;
return(w=e.lockupStyle())==null?void 0:w.useLegacyTypography},C["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var w;
return(w=e.lockupStyle())==null?void 0:w.useRichGridLegacyTypography},C))},_.x(_.PF,{data:function(){return e.data().image}},{avatarStackViewModel:function(w){return _.x("div",{class:"yt-lockup-metadata-view-model__avatar"},_.x(_.m9,{data:w.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(w){return _.x("div",{class:"yt-lockup-metadata-view-model__avatar"},_.x(_.lO,{data:w.data}))},
decoratedAvatarViewModel:function(w){return _.x("div",{class:"yt-lockup-metadata-view-model__avatar"},_.x(_.Qh,{data:w.data}))}}),_.x("div",{class:"yt-lockup-metadata-view-model__text-container"},_.x("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var w;return(w=e.data().title)==null?void 0:w.content}},_.x(_.l,{cond:function(){return e.data().title},
then:function(w){return _.x(_.fE,{command:e.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.QC({color:function(){var K;a:{var G=e.lockupStyle();var X=(K=e.hovered)==null?void 0:K.call(e);K=!(z==null||!z());var J;if((G==null?0:(J=G.onFocusEffect)==null?0:J.textPrimaryColor)&&X&&(G=K?G.onFocusEffect.textPrimaryColor.darkTheme:G.onFocusEffect.textPrimaryColor.lightTheme)){G=fW(G);break a}G=void 0}return G}}),
ariaLabel:e.lockupAccessibilityLabel},_.x(_.U2,{text:w,userInput:!0}))}})),_.x("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.QC({color:function(){var w;a:{var K=e.lockupStyle();var G=(w=e.hovered)==null?void 0:w.call(e);w=!(z==null||!z());var X;if((K==null?0:(X=K.onFocusEffect)==null?0:X.textSecondaryColor)&&G&&(K=w?K.onFocusEffect.textSecondaryColor.darkTheme:K.onFocusEffect.textSecondaryColor.lightTheme)){K=fW(K);break a}K=void 0}return K}})},_.x(_.PF,{data:function(){return e.data().metadata}},{contentMetadataViewModel:function(w){return _.x(_.yh,{data:w.data,
layout:function(){var K,G;return(G=(K=e.layout)==null?void 0:K.call(e))!=null?G:1},
useMediumText:function(){var K,G;return((K=e.lockupStyle())==null?void 0:K.typographyBump)||((G=e.lockupStyle())==null?void 0:G.useRichGridLegacyTypography)},
extensions:function(){var K,G,X,J;return{lockupMetadata:{byline:{hideAvatar:((K=e.lockupStyle())==null?void 0:K.arrangement)===0,addPadding:((G=e.lockupStyle())==null?void 0:G.arrangement)===1},description:{hideDescription:!((X=e.lockupStyle())==null||!X.compactMetadata)},spacer:{hideSpacer:!((J=e.lockupStyle())==null||!J.compactMetadata)}}}}})}})),_.x(_.PF,{data:function(){return e.data().attribution}},{attributionViewModel:function(w){return _.x("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.x(je,{data:w.data,
useSmallLayout:!0}))}})),_.x("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.x(_.PF,{data:function(){return e.data().menuButton}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
buttonOverrides:function(){var K;return((K=e.lockupStyle())==null?0:K.isOverlay)?{style:"overlay"}:void 0}})}})))},"Hb");
p8U.idomCompat=!0;var e1h=_.f(function(e){var z=_.kI("notification-multi-action-renderer");_.Nm(function(){requestAnimationFrame(function(){_.qU(z.value)})});
var C={},w={},K={};return _.x("notification-multi-action-renderer",{class:_.qT("ytNotificationMultiActionRendererHost",(C.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var G;return(G=e.useLegacyShelfStyle)==null?void 0:G.call(e)},C)),
el:z},_.x("span",{"aria-live":"polite",class:_.qT("ytNotificationMultiActionRendererTextContainer",(w.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var G;return(G=e.useLegacyShelfStyle)==null?void 0:G.call(e)},w))},_.x(_.U2,{text:function(){return e.data().responseText}})),_.x("div",{class:_.qT("ytNotificationMultiActionRendererButtonContainer",(K.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var G;
return(G=e.useLegacyShelfStyle)==null?void 0:G.call(e)},K))},_.x(_.PF,{data:function(){var G;
return(G=e.data().buttons)==null?void 0:G.map(function(X){if(X=X.buttonRenderer){var J,q=Object,T=q.assign,Q=(J=X.icon)==null?void 0:J.iconType;J=(J=X.command||X.serviceEndpoint||X.navigationEndpoint)?{innertubeCommand:J}:void 0;X={buttonViewModel:T.call(q,{},{iconName:Q,onTap:J,trackingParams:X.trackingParams,titleFormatted:X.text?_.Em(X.text):void 0},e4E(X))}}else X=void 0;return X}).filter(function(X){return!!X})}},{buttonViewModel:function(G,X){return _.x("div",null,_.x(_.iz,{data:G.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var J;return((J=e.useModernStyles)==null?0:J.call(e))?{type:X()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Jb");var z1g=_.f(function(e){var z=_.kI("notification-text-renderer");_.Nm(function(){requestAnimationFrame(function(){_.qU(z.value)})});
return _.x("notification-text-renderer",{el:z,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.x(_.U2,{text:function(){return e.data().successResponseText}}))},"Lb");_.cp=_.f(function(e){var z=_.vF(xR7,function(){var w;return z4E((w=e.contentId)==null?void 0:w.call(e))}),C=function(){var w;
return _.r((w=z())==null?void 0:w.command,_.Zl)};
return _.x(_.l,{cond:function(){var w;if(!(w=C())){var K;w=_.r((K=z())==null?void 0:K.command,dtT)}return w},
then:function(){return _.x(_.l,{cond:C,then:function(){var w={};return _.x("div",{class:_.qT("ytDismissibleItemReplacedContent",function(){var K;return CDL((K=e.aspectRatio)==null?void 0:K.call(e))})},_.x("div",{class:_.qT((w.ytDismissibleItemAspectRatioContainer=function(){var K;
return((K=e.aspectRatio)==null?void 0:K.call(e))!==void 0},w))},_.x(_.PF,{data:function(){var K;
return(K=C())==null?void 0:K.item}},{notificationMultiActionRenderer:function(K){return _.x(e1h,{data:K.data,
useModernStyles:e.useModernStyle,useLegacyShelfStyle:e.useLegacyShelfStyle})},
notificationTextRenderer:z1g})))}})},
else:e.children})},"Mb");_.CjL=_.f(function(e){var z=e.data;var C=e.customCommandResolver;e=_.ej(_.aO({visibilityCallback:function(G){var X,J=(X=z().interaction)==null?void 0:X.onFirstVisible;G&&J&&_.NF(J)},
showOption:_.sD}));var w=function(){var G;return((G=z().interaction)==null?0:G.onTap)?function(X){var J;Pum(X,(J=z().interaction)==null?void 0:J.onTap,C)}:void 0},K=function(){var G,X=z(),J=w(),q=(G=_.r(z().rendererContext,_.Re))==null?void 0:G.label;
a:switch(X.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":G=1;break a;default:G=0}return{size:oYs(X.size),type:G,onTap:J,accessibilityText:q}};
return _.x("ad-avatar-view-model",{class:function(){var G;return((G=z().interaction)==null?0:G.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:e},_.x(_.l,{cond:function(){return z().image},
then:function(G){return _.x(VTh,{data:K,image:G})}}))},"Nb");_.A_=_.f(function(e){var z=_.eQ(e,{hasDot:!1,usedInMasthead:!1}),C=Object.assign({},z),w=z.data,K=z.hasDot;e=z.customCommandResolver;var G=z.usedInMasthead,X=(delete C.data,delete C.hasDot,delete C.customCommandResolver,delete C.usedInMasthead,C);z=function(){return w().style};
z!==void 0&&z!==null||_.es(Error("Hh"));e=_.tm(function(){return w().interaction},e);
return _.x("ad-badge-view-model",{class:_.qT(function(){var J;return((J=w().interaction)==null?0:J.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var J=X.adRenderingContextType(),q=G();
w();return J!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||q?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.ej(e)},_.x(_.ri,{data:function(){var J;w();return{type:2,text:(J=w().label)==null?void 0:J.content,adsIncludeDot:K(),isOverlay:w().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ob");var wbc;_.ZN=_.f(function(e){var z=e.data;var C=e.customCommandResolver;var w=e.adRenderingContextType;return _.x("ad-details-line-view-model",{class:function(){var K;return((K=z().interaction)==null?0:K.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(K){var G,X=(G=z().interaction)==null?void 0:G.onFirstVisible;K&&X&&_.NF(X)},
showOption:_.sD}),_.tm(function(){return z().interaction},C))},_.x(_.l,{cond:function(){return z().style},
then:function(K){return _.x(_.ui,{each:function(){var G;return((G=z())==null?void 0:G.attributes)||[]},
keyBy:"INDEX"},function(G){return _.x(wbc,{attribute:G,style:K,adRenderingContextType:function(){return w()}})})}}))},"Pb");
wbc=_.f(function(e){var z=e.attribute;var C=e.style;var w=e.adRenderingContextType;return _.x(_.l,{cond:function(){return z().text},
then:function(K){return _.x(_.U2,{text:K,className:function(){var G=w();C();return G==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Qb");var KZU=_.f(function(e){var z=e.data;var C=e.typographyBump;var w=function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},K=function(){return{size:"M"}};
e={};return _.x(_.Qw,null,_.x("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.x(_.U2,{text:function(){return z().headline},
className:_.qT("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(e.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return w==null?void 0:w()},e.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(C==null?void 0:C())&&!(w==null?0:w())},e)),
linkInheritColor:!0}),_.x(_.l,{cond:function(){return z().description},
then:function(G){var X={};return _.x(_.U2,{text:G,className:_.qT("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(X.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return w==null?void 0:w()},X.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(C==null?void 0:C())&&!(w==null?0:w())},X)),
linkInheritColor:!0})}}),_.x(_.l,{cond:function(){return z().secondaryDescription},
then:function(G){var X={};return _.x(_.U2,{text:G,className:_.qT("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(X.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return C==null?void 0:C()},X)),
linkInheritColor:!0})}}),_.x("div",{class:function(){return w()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.x(_.l,{cond:function(){return z().adAvatar},
then:function(){return _.x("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.x(_.PF,{data:function(){return z().adAvatar}},{adAvatarViewModel:_.CjL}))}}),_.x(_.PF,{data:function(){return z().adBadge}},{adBadgeViewModel:function(G){return _.x(_.A_,{data:G.data,
hasDot:function(){return!!z().adDetailsLine},
adRenderingContextType:function(){return z().adRenderingContextType}})}}),_.x(_.PF,{data:function(){return z().adDetailsLine}},{adDetailsLineViewModel:function(G){return _.x(_.ZN,{data:G.data,
adRenderingContextType:function(){return z().adRenderingContextType}})}}))),_.x("div",{class:function(){return _.M("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":w()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.x(_.PF,{data:function(){return z().menu}},{buttonViewModel:function(G){return _.x(_.iz,{data:G.data,
buttonOverrides:_.M("enable_desktop_vdc_components")?K:function(){a:switch(z().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var X="S";break a;default:X="M"}return{size:X}}})}})))},"Rb"),on6=_.f(function(e){var z=e.data;
var C=e.noBottomMargin;var w=e.useVideoLockupTopPadding;var K=e.typographyBump;e={};e=_.qT("ytwFeedAdMetadataViewModelHostMetadata",(e.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return C==null?void 0:C()},e.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return w==null?void 0:w()},e));
var G=function(){return z().adBadge};
G!==void 0&&G!==null||_.es(Error("Ih"));G={};var X={};return _.x(_.Qw,null,_.x(_.l,{cond:function(){return z().adAvatar},
then:function(){return _.x("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.x(_.PF,{data:function(){return z().adAvatar}},{adAvatarViewModel:function(J){return _.x(_.CjL,{data:J.data})}}))}}),_.x("div",{class:e},_.x("div",{class:_.qT("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(G.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return K==null?void 0:K()},G.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(K==
null?void 0:K())&&_.M("web_enable_typography_bump_v2")},G))},_.x(_.U2,{text:function(){return z().headline},
linkInheritColor:!0})),_.x(_.l,{cond:function(){return z().description},
then:function(J){return _.x(_.U2,{text:J,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.x("div",{class:function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.M("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.x(_.PF,{data:function(){return z().adBadge}},
{adBadgeViewModel:function(J){return _.x(_.A_,{data:J.data,
hasDot:function(){return!!z().adDetailsLine},
adRenderingContextType:function(){return z().adRenderingContextType}})}}),_.x(_.PF,{data:function(){return z().adDetailsLine}},{adDetailsLineViewModel:function(J){return _.x(_.ZN,{data:J.data,
adRenderingContextType:function(){return z().adRenderingContextType}})}})),_.x(_.l,{cond:function(){return z().secondaryDescription},
then:function(J){return _.x(_.U2,{text:J,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.x("div",{class:_.qT("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(X.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return w==null?void 0:w()},X))},_.x(_.PF,{data:function(){return z().menu}},{buttonViewModel:_.iz})))},"Sb"),p9=_.f(function(e){var z=e.data;
var C=e.noBottomMargin;var w=e.listenToTapEvent;var K=e.setTouchEndHandler;var G=e.useVideoLockupTopPadding;var X=e.typographyBump;e=_.aO({visibilityCallback:function(m){var a,n=(a=z().interaction)==null?void 0:a.onFirstVisible;m&&n&&_.NF(n)},
showOption:_.sD});var J=_.tm(function(){return z().interaction},void 0,function(){return w==null?void 0:w()}),q=_.b(_.II(!1,void 0,"N3Oquc")),T=q.next().value,Q=q.next().value;
q=_.T9(function(m){(K==null?0:K())&&!T()&&(m.currentTarget.click(),Q(!0),setTimeout(function(){Q(!1)},100));
return!1});
return _.x("feed-ad-metadata-view-model",{class:function(){var m;return((m=z().interaction)==null?0:m.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.ej(e,J),"on:touchend":q},_.x(_.d1,null,_.x(_.fd,{when:function(){return z().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.x(KZU,{data:z,
typographyBump:X})}),_.x(_.fd,{when:function(){return z().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.x(on6,{data:z,
noBottomMargin:C,useVideoLockupTopPadding:G,typographyBump:X})})))},"Tb");var GZo,YLa;GZo=_.cF.inlinePreviewEnabledSelector;_.eI=_.f(function(e){return _.x("yt-lockup-view-model",{class:_.qT(e.className,"yt-lockup-view-model--wrapper")},_.x(_.cp,{contentId:function(){return e.data().contentId},
useModernStyle:!0,aspectRatio:function(){var z,C;return((z=e.containerType)==null?void 0:z.call(e))!==3?BR5(e.data().contentType,(C=e.force16By9ThumbnailAspectRatio)==null?void 0:C.call(e)):void 0}},function(){return _.x(YLa,Object.assign({},e))}))},"Ub");
YLa=_.f(function(e){e=_.eQ(e,{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,useOverlayStyling:void 0});var z=e.data,C=e.containerLayoutConfig,w=e.containerType,K=e.sizing,G=e.protectBackground,X=e.typographyBump,J=e.force16By9ThumbnailAspectRatio,q=e.thumbnailFixedWidth,T=e.thumbnailTargetWidth,Q=e.lockupExperiments,
m=e.elementsPerRow,a=e.useOverlayStyling,n=_.lh().resolve(_.$B(_.jQ));e=_.ej(_.Dh(function(){var sE;return(sE=z())==null?void 0:sE.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var H=_.rG(GZo),I=_.lh().resolve(_.$B(rPs)),L=I?{}:void 0,h=function(){var sE,w6,qY;return(qY=(w6=_.r((sE=z())==null?void 0:sE.rendererContext,_.Re))==null?void 0:w6.label)!=null?qY:void 0},E=function(){var sE;
return(sE=_.r(z().metadata,_.IkL))==null?void 0:sE.endorsement},N=function(){var sE=C==null?void 0:C(),w6;
if(sE==null?0:sE.containerType){var qY=(w6=z())==null?void 0:w6.contentType;w6=Q();var y1=X(),Qa=T(),Ha=G();sE=Object.assign({},ttE(DWg(sE),j3(sE.responsiveSize),y1,qY,sE.force16By9ThumbnailAspectRatio,Qa,Ha,void 0,w6),{thumbnailFixedWidth:sE.contentPreviewWidth})}else sE=ttE(w(),K(),X(),(qY=z())==null?void 0:qY.contentType,J(),T(),G(),a(),Q());return sE};
I&&L&&I({enabled:function(){return H()},
itemPlaybackModel:function(){return z().itemPlayback},
thumbnailElRef:function(){return L.thumbnailElRef},
containerElRef:e,options:function(){var sE=L.thumbnailOverlays||[],w6=E(),qY;!w6||((qY=Q())==null?0:qY.onFocusEffect)||sE.push(w6);var y1,Qa;return{thumbnail:L.thumbnail,thumbnailOverlays:sE,accessibilityText:h(),thumbnailSize:L.thumbnailSize,enableRounding:N().isCollection,containPlayerWithinThumbnail:N().isCollection,mouseleaveCallback:function(){y(!1)},
trackingParams:(y1=_.r(z().rendererContext,_.MF))==null?void 0:(Qa=y1.loggingDirectives)==null?void 0:Qa.trackingParams}}});
var D=0;I=_.b(_.II(!1,void 0,"v0iGab"));var g=I.next().value,y=I.next().value;I=_.b(_.II(!1,void 0,"PVKcBd"));var Z=I.next().value,YN=I.next().value;I=_.T9(function(){Z()?(_.c5.cancelJob(D),D=_.c5.addJob(function(){y(!0)},8,32)):y(!0);
return!0});
var Jk=_.T9(function(sE){sE=sE.relatedTarget;var w6=document.querySelector("ytd-video-preview");sE&&w6&&w6.contains(sE)||(D&&(_.c5.cancelJob(D),D=0),y(!1))});
_.BC(function(){D&&(_.c5.cancelJob(D),D=0)});
var v1=KL1(function(){YN(!0)}),lg=v1.touchFeedbackEvents,M5=v1.touchFeedbackOnPointerUp,fo=v1.touchFeedbackOnPointerDown;
v1=v1.touchFeedbackOnPointerLeave;var ug={};return _.x(_.Qw,null,_.x("div",{el:e,class:_.qT("yt-lockup-view-model",function(){a:{var sE=N();if(sE.metadataOnThumbnail)sE="yt-lockup-view-model--metadata-on-thumbnail";else switch(sE.arrangement){case 1:sE="yt-lockup-view-model--horizontal";break a;default:sE="yt-lockup-view-model--vertical"}}return sE},function(){a:{var sE=N();
if(sE.metadataOnThumbnail)sE="yt-lockup-view-model--metadata-on-thumbnail";else{switch(sE.collectionStackNumber){case 1:sE="yt-lockup-view-model--collection-stack-1";break a;case 2:sE="yt-lockup-view-model--collection-stack-2";break a}sE=void 0}}return sE},function(){var sE;
return _.pG8((sE=z())==null?void 0:sE.contentId)},(ug["yt-lockup-view-model--card"]=function(){return N().isCard},ug["yt-lockup-view-model--compact"]=function(){return N().isTiny||N().sizing!=="STANDARD"},ug["yt-lockup-view-model--protect-background"]=G,ug["yt-lockup-view-model--add-margins"]=function(){return N().addMarginForFullbleed},ug["yt-lockup-view-model--centered"]=function(){return N().isCentered},ug["yt-lockup-view-model--fullbleed"]=function(){return N().fullbleed},ug["yt-lockup-view-model--single-column-grid"]=
function(){return m()===1&&w()===2},ug["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var sE;
return(sE=Q())==null?void 0:sE.useRichGridLegacyMargin},ug["yt-lockup-view-model--flex-none"]=function(){return!_.M("lockup_flex_none_killswitch")},ug)),
"on:mousedown":fo,"on:mouseleave":Jk,"on:mouseup":M5,"on:mouseover":I,"on:touchstart":fo,"on:touchend":M5,"on:pointerleave":v1},_.x(_.Sf,{model:function(){var sE,w6,qY=Object,y1=qY.assign,Qa=(L==null?void 0:L.thumbnailSize)||"small";a:{var Ha=N();var OU=!!(E()&&((sE=Q())==null?0:sE.onFocusEffect));switch((L==null?void 0:L.thumbnailSize)||"small"){case "small":sE=4;break;case "large":sE=12;break;default:sE=8}if(OU)Ha=sE+12;else{switch(Ha.collectionStackNumber){case 1:Ha=sE+8;break a;case 2:Ha=sE+12;
break a}Ha=void 0}}Qa={thumbnailSize:Qa,triggerEvents:!0,customTopExtend:Ha};var ab;Ha=(w6=Q())==null?void 0:w6.onFocusEffect;OU=!(n==null||!n());if(Ha){var Pa,$N;w6=OU?(Pa=Ha.onFocusColor)==null?void 0:Pa.darkTheme:($N=Ha.onFocusColor)==null?void 0:$N.lightTheme;var N5,$L;Pa=OU?(N5=Ha.keyLightColor)==null?void 0:N5.darkTheme:($L=Ha.keyLightColor)==null?void 0:$L.lightTheme;var Ba;N5=OU?(ab=Ha.touchResponseColor)==null?void 0:ab.darkTheme:(Ba=Ha.touchResponseColor)==null?void 0:Ba.lightTheme;ab={background:w6!==
void 0?fW(w6):void 0,keyLight:Pa!==void 0?fW(Pa):void 0};Ba=[];$L=_.b(Ha.lightingTechniques||[]);for(Pa=$L.next();!Pa.done;Pa=$L.next())switch(Pa.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Ba.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Ba.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Ba.push(3)}ab={hoverEffect:{palette:ab,lightingTechniques:Ba},touchEffect:{palette:{background:N5!==void 0?fW(N5):void 0}}}}else ab={};return y1.call(qY,{},Qa,ab)},
hovered:function(){return g()},
pointerDownEvent:lg.pointerDownEvent,pointerUpEvent:lg.pointerUpEvent,pointerLeaveEvent:lg.pointerLeaveEvent}),_.x(_.l,{cond:function(){var sE;return E()&&g()&&((sE=Q())==null?void 0:sE.onFocusEffect)},
then:function(){return _.x("div",{class:"yt-lockup-view-model__endorsement"},_.x(_.PF,{data:function(){return E()}},{attributionViewModel:function(sE){return _.x(je,{data:sE.data,
useHeavyText:!0})}}))}}),_.x(_.fE,{command:function(){var sE;
return _.u3((sE=z())==null?void 0:sE.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(q()||N().thumbnailFixedWidth)&&N().arrangement===1?"width: "+(q()||N().thumbnailFixedWidth):""}},_.x(_.PF,{data:function(){var sE;
return(sE=z())==null?void 0:sE.contentImage}},{thumbnailViewModel:function(sE){return _.x(_.NN,{data:sE.data,
aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:T,hovered:function(){return g()&&!(H()&&z().itemPlayback)},
isClip:function(){var w6;return((w6=z())==null?void 0:w6.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:UW4(L),lockupExperiments:function(){return Q()}})},
collectionThumbnailViewModel:function(sE){return _.x(dsa,{data:sE.data,aspectRatio:function(){return N().aspectRatio},
disableRounding:function(){return N().disableRounding},
width:T,doubleStack:function(){return N().collectionStackNumber===2},
hovered:function(){return g()&&!(H()&&z().itemPlayback)},
playbackRef:UW4(L)})},
decoratedAvatarViewModel:_.Qh})),_.x("div",{class:"yt-lockup-view-model__metadata"},_.x(_.PF,{data:function(){var sE;return(sE=z())==null?void 0:sE.metadata}},{lockupMetadataViewModel:function(sE){return _.x(p8U,{data:sE.data,
hovered:g,lockupStyle:N,lockupCommand:function(){var w6;return _.u3((w6=z())==null?void 0:w6.rendererContext)},
lockupAccessibilityLabel:function(){return h()},
layout:function(){var w6;return((w6=Q())==null?0:w6.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(sE){return _.x(p9,{data:sE.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:X})}}),_.x(_.PF,{data:function(){var sE;
return(sE=z())==null?void 0:sE.attachmentSlot}},{lockupAttachmentsViewModel:function(sE){return _.x(tDC,{data:sE.data,
lockupStyle:N})}}))),_.x(_.PF,{data:function(){var sE;
return(sE=z())==null?void 0:sE.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(sE){return _.x(tDC,{data:sE.data,
lockupStyle:N})}}))},"Vb");
_.eI.idomCompat=!0;_.KU(_.eI,"yt-lockup-view-model",{props:{data:_.vh,containerLayoutConfig:_.vh,containerType:_.vh,sizing:_.vh,protectBackground:_.vh,typographyBump:_.vh,thumbnailFixedWidth:_.vh,thumbnailTargetWidth:_.vh,force16By9ThumbnailAspectRatio:_.vh,className:_.vh,lockupExperiments:_.vh,elementsPerRow:_.vh,useOverlayStyling:_.vh}});var Xu1,bOh=_.f(function(e){var z=_.eQ(e,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),C=z.text,w=z.alwaysShowTruncationText;e=z.truncationText;var K=z.onTextClick,G=z.maxLines,X=z.disableTextMask,J=z.textStyle,q=z.accessibilityLabel,T=z.textSize,Q=z.alwaysTruncateAtMaxLines,m=z.expandOnClick;z=_.b(_.II(!1,void 0,"EzA1q"));var a=z.next().value,n=z.next().value;z=_.T9(function(){m()&&n(!a());K==null||K()});
var H=function(){a:switch(T()){case "medium":var Z=2;break a;case "large":Z=2.2;break a;default:Z=1.8}return Z},I=qu1(C,function(){return a()?Infinity:G()},H,X,Q,a),L=I.isTruncated;
C=I.displayText;Q=I.contentRef;var h=I.hiddenRef,E=I.placeholderTruncationTextRef,N=I.hiddenTruncationTextRef;I=I.truncationTextRef;var D={},g={},y={};return _.x("truncated-text",{class:_.qT((D["yt-truncated-text"]=!0,D["yt-truncated-text--overlay"]=function(){return J()==="overlay"},D["yt-truncated-text--medium-text"]=function(){return T()==="medium"},D["yt-truncated-text--large-text"]=function(){return T()==="large"},D["yt-truncated-text--primary-text"]=function(){return J()==="primary-text"},D)),
"on:click":z,style:function(){return"line-height: "+H()+"rem;"}},_.x("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:Q,style:function(){return a()?"":"max-height: "+G()*H()+"rem;"}},_.x(_.U2,{text:C}),_.x("button",{"aria-disabled":!0,
disabled:!0,class:_.qT((g["yt-truncated-text__inline-button"]=!0,g["yt-truncated-text--hidden"]=function(){return!(!a()&&(w!=null&&w()||L()))},g)),
el:E,style:function(){return"line-height: "+H()+"rem;"}},_.x(_.U2,{text:e}))),_.x("truncated-text-content",{class:_.qT("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:h,style:function(){return a()?"":"max-height: "+G()*H()+"rem;"},
"aria-hidden":"true"},_.x(_.U2,{text:C}),_.x("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:N,style:function(){return"line-height: "+H()+"rem;"}},_.x(_.U2,{text:e}))),_.x("button",{"aria-label":q,
class:_.qT((y["yt-truncated-text__absolute-button"]=function(){return!X()},y["yt-truncated-text__bottom-button"]=function(){return X()},y["yt-truncated-text--hidden"]=function(){return!(!a()&&(w!=null&&w()||L()))},y)),
el:I,style:function(){return"line-height: "+H()+"rem;"}},_.x(_.U2,{text:e})))},"Xb");
bOh.idomCompat={callbacks:{onTextClick:!0}};var kZa=_.f(function(e){var z=e.data;e=e.className;var C=_.hG(function(){return Tjm(z())},void 0,"uDhDke"),w=_.x(_.Qw,null,_.x(_.l,{cond:function(){return z().heroText||z().image},
then:function(){return _.x(Xbs,{data:z})}}),_.x(Jva,{data:z,
sizeSmall:function(){return z().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.x("yt-video-attribute-view-model",{class:e},_.x("div",{class:function(){var K=z();a:switch(K.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var G="yt-video-attribute-view-model--vertical";break a;default:G="yt-video-attribute-view-model--horizontal"}a:switch(K.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var X="yt-video-attribute-view-model--image-small";break a;default:X="yt-video-attribute-view-model--image-large"}a:switch(K.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var J=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":J="yt-video-attribute-view-model--image-avatar";break a;default:J=""}a:switch(K.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var q="yt-video-attribute-view-model--metadata-header";break a;default:q=""}a:switch(K.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var T="yt-video-attribute-view-model--container-card";break a;default:T=""}return["yt-video-attribute-view-model",G,X,
J,q,T,Tjm(K)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.QC({"background-color":function(){var K=z();if(K.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var G="";else{G=K.lightColorPalette;K=K.darkColorPalette;var X,J=((X=_.lh().resolve(_.$B(_.jQ)))==null?0:X())&&K?K:G;G=(G=J==null?void 0:J.section2Color)?_.FN(G):""}return G}})},_.x(_.l,{cond:C,
then:function(){return _.x(_.fE,{className:"yt-video-attribute-view-model__content-container",command:C,role:"group",ariaLabel:function(){return z().title}},w)},
else:function(){return _.x("div",{class:"yt-video-attribute-view-model__content-container"},w)}})))},"Yb");
kZa.idomCompat=!0;var Xbs=_.f(function(e){var z=e.data;var C,w=(C=_.lh().resolve(_.$B(_.jQ)))==null?void 0:C(),K=function(){return w&&z().darkThemeImage?z().darkThemeImage:z().image},G=_.hG(function(){return $h4(z())},void 0,"UDqj0b");
return _.x("div",{class:"yt-video-attribute-view-model__hero-section"},_.x(_.d1,null,_.x(_.fd,{when:K},function(){return _.x(_.Zf,{data:function(){return K()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.x(_.fd,{when:function(){return z().heroText}},function(){return _.x("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.x("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return z().heroText}))})),_.x(_.l,{cond:function(){return z().overflowMenuOnTap},
then:function(){return _.x("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.x(_.DS,{data:G,iconName:"MORE_VERT"}))}}))},"Zb");
Xbs.idomCompat=!0;var Jva=_.f(function(e){var z=e.data;e=e.sizeSmall;var C=function(){return z().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},w=_.hG(function(){return iA(_.Df({innertubeCommand:Tjm(z())}))?"link":Tjm(z())?"button":"group"},void 0,"e2MmYe"),K={};
return _.x("div",{class:_.qT("yt-video-attribute-view-model__metadata",(K["yt-video-attribute-view-model--small-font"]=e,K)),role:w},_.x("h1",{class:"yt-video-attribute-view-model__title"},function(){return z().title}),_.x(_.l,{cond:function(){return z().subtitle},
then:function(){return _.x("h4",{class:"yt-video-attribute-view-model__subtitle"},_.x(_.l,{cond:C,then:function(){return _.x(bOh,{text:function(){return xhg(z().subtitle)},
truncationText:function(){return xhg(z().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.x("span",null,function(){return z().subtitle})}}))}}),_.x(_.l,{cond:function(){return z().secondarySubtitle},
then:function(G){return _.x("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.x(_.U2,{text:function(){var X=G();if(X!=null&&X.attachmentRuns){for(var J=[],q=_.b(X.attachmentRuns),T=q.next();!T.done;T=q.next())T=T.value,T.element&&J.push(Object.assign({},T,{element:Object.assign({},T.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));X=Object.assign({},X,{attachmentRuns:J})}return X}}))}}),_.x(_.PF,
{data:function(){return z().buttonViewModel}},{buttonViewModel:function(G){return _.x(_.iz,{data:G.data,
className:"yt-video-attribute-view-model__button"})}}))},"$b");
Jva.idomCompat=!0;_.KU(kZa,"yt-video-attribute-view-model",{props:{data:_.vh,className:_.vh}});var z_=function(){var e=_.V.apply(this,arguments)||this;e.useHighlightStyling=_.M("web_enable_deeper_metadata_highlight_styling");e.isSearch=!1;e.JSC$15455_lastScrollContainerWidth=NaN;e.pageLoadingFromNavigation=!1;e.currentIndex=0;e.supportComponentResize=!1;return e};
_.U(z_,_.V);_.Y=z_.prototype;
_.Y.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}}}}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.lE(this,this.onPageChange))};
_.Y.detached=function(){document.removeEventListener("yt-page-type-changed",_.lE(this,this.onPageChange))};
_.Y.getItemsPath=function(){return"data.cards"};
_.Y.onIronResize=function(){this.updateListStyles()};
_.Y.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var e;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(e=this.data)==null?void 0:e.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.M("problem_walkthrough_sd")&&!!this.centerItems};
_.Y.computeCardListStyle=function(e){return e||null};
_.Y.computeEmpty=function(e){return!this.get("cards.length",e)};
_.Y.computeThumbnailStyle=function(e){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",e)||null};
_.Y.computeHasSubtitle=function(e){return!!this.get("header.richListHeaderRenderer.subtitle",e)};
_.Y.computeInitialCountNumber=function(e){return this.hasSquareMiniApp&&e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.Y.computeUseFloorScrolling=function(e){return e==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.Y.computeHasGameCard=function(e){return(e=this.get("cards",e))?e.some(function(z){return z.gameCardRenderer}):!1};
_.Y.computeCenterHeaderTitle=function(e){return!(e==null||!e.centerHeaderTitle)};
_.Y.computeHasPortraitMiniApp=function(e){return(e=e==null?void 0:e.cards)?e.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.Y.computeHasSquareMiniApp=function(e){return(e=e==null?void 0:e.cards)?e.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.Y.computeHasSkinnyWidthPortraitMiniApp=function(e){return(e=e==null?void 0:e.cards)?e.some(function(z){return z.miniGameCardViewModel&&z.miniGameCardViewModel.width===135}):!1};
_.Y.computeCenterItems=function(e){return!!e};
_.Y.computeHasInfoPanel=function(e){var z;return e==null?void 0:(z=e.cards)==null?void 0:z.some(function(C){return C.infoPanelContentRenderer})};
_.Y.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.Y.getItemByIndex=function(e){var z=this.items.children;return z&&z.length>e?z[e]:void 0};
_.Y.onPageChange=function(){var e=this;this.pageLoadingFromNavigation=!0;_.c5.addJob(function(){e.pageLoadingFromNavigation=!1;_.zj(e.hostElement,"yt-terminate-video-preview-action")},8)};
_.Y.updateListStyles=function(){if(_.M("problem_walkthrough_sd")&&this.JSC$15455_scrollContainer!==void 0){var e=this.JSC$15455_scrollContainer.clientWidth;e!==this.JSC$15455_lastScrollContainerWidth&&(this.JSC$15455_lastScrollContainerWidth=e,_.T8(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(e*.8,415)+"px"}),_.pi(this.hostElement,"iron-resize"))}};
_.lB.Object.defineProperties(z_.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.M("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!((e=this.data)==null?0:(z=e.cards)==null?0:(C=z[0])==null?0:C.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!((e=this.data)==null?0:(z=e.cards)==null?0:(C=z[0])==null?0:C.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return _.M("enable_desktop_amsterdam_info_panels")&&!!((e=this.data)==null?0:(z=e.cards)==null?0:(C=z[0])==null?0:C.infoPanelContentRenderer)}}});
z_.prototype.dataChanged=z_.prototype.dataChanged;z_.prototype.onIronResize=z_.prototype.onIronResize;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.u2.YtdHorizontalListBehavior),_.B("design:type",Object)],z_.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.W(_.a0),_.B("design:type",Object)],z_.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],z_.prototype,"data",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],z_.prototype,"useCustomColors",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],z_.prototype,"useHighlightStyling",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.B("design:type",Object)],z_.prototype,"cardListStyle",void 0);_.d([_.F({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.B("design:type",Boolean)],z_.prototype,"empty",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.B("design:type",Boolean)],z_.prototype,"hasSubtitle",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.B("design:type",Boolean)],z_.prototype,"thumbnailStyle",void 0);_.d([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.B("design:type",Boolean)],z_.prototype,"hasGameCard",void 0);_.d([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.B("design:type",Boolean)],z_.prototype,"centerHeaderTitle",void 0);
_.d([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.B("design:type",Boolean)],z_.prototype,"hasPortraitMiniApp",void 0);_.d([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.B("design:type",Boolean)],z_.prototype,"hasSquareMiniApp",void 0);_.d([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.B("design:type",Boolean)],z_.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.d([_.F({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.B("design:type",Boolean)],z_.prototype,"hasInfoPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],z_.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],z_.prototype,"inlineStructuredDescription",void 0);_.d([_.nP("#scroll-container"),_.B("design:type",HTMLDivElement)],z_.prototype,"JSC$15455_scrollContainer",void 0);
_.d([_.F({computed:"computeInitialCountNumber(data.style.type)"}),_.B("design:type",Number)],z_.prototype,"initialCount",void 0);_.d([_.F({computed:"computeUseFloorScrolling(data.style.type)"}),_.B("design:type",Boolean)],z_.prototype,"useFloorScrolling",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.B("design:type",Boolean)],z_.prototype,"centerItems",void 0);_.d([_.F(),_.B("design:type",Object)],z_.prototype,"pageLoadingFromNavigation",void 0);
_.d([_.F(),_.B("design:type",Object)],z_.prototype,"currentIndex",void 0);_.d([_.F(),_.B("design:type",Number)],z_.prototype,"scrollCount",void 0);_.d([_.F(),_.B("design:type",Object)],z_.prototype,"supportComponentResize",void 0);_.d([_.nP("#items"),_.B("design:type",HTMLDivElement)],z_.prototype,"items",void 0);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],z_.prototype,"onIronResize",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],z_.prototype,"dataChanged",null);_.d([_.F({reflectToAttribute:!0}),_.P("inlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],z_.prototype,"hideNavigationButton",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],z_.prototype,"modernChapters",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],z_.prototype,"hasVideoAttributeViewModels",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],z_.prototype,"modernInfoPanels",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],z_);
_.u(z_,"ytd-horizontal-card-list-renderer",function(){if(CR4!==void 0)return CR4;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return CR4=e},{mode:_.bA("kevlar_poly_si_batch_j072")?1:2});var qLU=_.f(function(e){var z=e.data;var C={};return _.x("video-summary-content-view-model",{class:_.qT("videoSummaryContentViewModelHost",e.className,(C.videoSummaryContentViewModelHostIsSearch=e.isSearch,C))},_.x(_.ui,{each:function(){var w=[],K=z().paragraphs;if(K==null||!K.length)return[];for(var G=0;G<K.length;G++){var X=_.r(K[G],PmS),J=void 0;G>0&&(J=_.r(K[G-1],PmS));J&&!!J.marker===!!X.marker?w[w.length-1].paragraphs.push(X):w.push({isList:!!X.marker,paragraphs:[X]})}return w},
keyBy:"INDEX"},function(w){return _.x(_.l,{cond:function(){return w().isList},
then:function(){return _.x("ul",{class:"videoSummaryContentViewModelList"},_.x(_.ui,{each:function(){return w().paragraphs},
keyBy:"INDEX"},function(K){return _.x("li",{class:"videoSummaryContentViewModelListItem"},_.x(_.U2,{text:function(){return K().text}}))}))},
else:function(){return _.x("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.x(_.ui,{each:function(){return w().paragraphs},
keyBy:"INDEX"},function(K){return _.x("p",{class:"videoSummaryContentViewModelParagraph"},_.x(_.U2,{text:function(){return K().text}}))}))}})}),_.x(_.l,{cond:function(){return!!_.r(z().likeButtonViewModel,_.jo)&&!!_.r(z().dislikeButtonViewModel,_.yg)},
then:function(){return _.x("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.x("div",{class:"videoSummaryContentViewModelLikeButton"},_.x(_.nT,{data:function(){return _.r(z().likeButtonViewModel,_.jo)},
disableIconAnimation:!0})),_.x(_.aw,{data:function(){return _.r(z().dislikeButtonViewModel,_.yg)}}))}}))},"ac");
qLU.idomCompat=!0;_.KU(qLU,"video-summary-content-view-model",{props:{data:_.vh,isSearch:_.vh,className:_.vh}});var C$=function(){var e=_.V.apply(this,arguments)||this;var z,C;e.isExpanded=(C=(z=e.data)==null?void 0:z.isExpanded)!=null?C:!1;e.disableExpand=!1;e.showProminentLabel=!1;e.showRightSideLabel=!0;e.toggleExpandableContent=function(w){e.disableExpand||(w.stopPropagation(),_.C7(_.cJ(w),e.hostElement,["info","expanded-subtitle"])||(e.isExpanded=!e.isExpanded,e.ytRendererBehavior.logExplicitClick(e.data),e.JSC$15466_cardList&&!_.M("expandable_metadata_a11y_fix_ks")&&_.T0(e,function(){_.kO(e.hostElement)})))};
e.useSquareThumbnail=!1;e.startX=0;return e};
_.U(C$,_.V);_.Y=C$.prototype;_.Y.computeUseSquareThumbnail=function(){var e;return(e=this.data)==null?void 0:e.useSquareThumbnail};
_.Y.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"}}}}};
_.Y.dataChanged=function(){if(this.data){var e,z;this.isExpanded=(z=(e=this.data)==null?void 0:e.isExpanded)!=null?z:!1;var C,w,K,G;if(e=this.isDarkTheme()?(C=this.data)==null?void 0:(w=C.colorData)==null?void 0:w.darkColorPalette:(K=this.data)==null?void 0:(G=K.colorData)==null?void 0:G.lightColorPalette){var X,J;if((X=this.data)==null?0:(J=X.colorData)==null?0:J.vibrantColorPalette)e.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Ro(this.hostElement,e)}}};
_.Y.isExpandedChanged=function(){this.isExpanded&&this.JSC$15466_cardList&&_.pi(this.JSC$15466_cardList,"iron-resize")};
_.Y.computeIsExpanded=function(e){return!!e.isExpanded};
_.Y.computeShowProminentLabel=function(e,z){var C;return!!(e==null?0:(C=e.header)==null?0:C.showLeadingCollapsedLabel)&&!z};
_.Y.computeShowRightSideLabel=function(e,z){var C;return!(e==null?0:(C=e.header)==null?0:C.showLeadingCollapsedLabel)&&!z};
_.Y.captureContentClick=function(e){if(!this.disableExpand)if(_.M("expandable_metadata_fix_killswitch")){var z=e.target;_.sML(z,"ytd-macro-markers-list-item-renderer")||e.stopPropagation();(z==null?void 0:z.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.C7(_.cJ(e),this.hostElement,["items"])||_.zi(_.cJ(e),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.Y.timestampClick=function(e){e.stopPropagation();var z,C;(e=(z=this.data)==null?void 0:(C=z.header)==null?void 0:C.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(e)};
_.Y.onDown=function(e){e.stopPropagation();this.startX=e.detail?e.detail.x:0};
_.Y.onUp=function(e){this.skipKeyInteraction(e)&&e.stopPropagation()};
_.Y.skipKeyInteraction=function(e){var z=e.target;if((z==null?void 0:z.id)==="scroll-container"||(z==null?void 0:z.id)==="items"||e.detail&&e.detail.x!==this.startX)return!0;e=_.cJ(e);e=_.b(e);for(z=e.next();!z.done;z=e.next()){z=z.value;if(z===this.hostElement)break;if(z.hasAttribute&&z.hasAttribute("skip-key-interaction"))return!0}return!1};
_.Y.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.lB.Object.defineProperties(C$.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.r((e=this.data)==null?void 0:e.expandedContent,WSh)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.r((e=this.data)==null?void 0:e.expandedContent,_.Wya)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.useCustomColors)&&!((z=this.data)==null||!z.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!((e=this.data)==null?0:(z=e.header)==null?0:z.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!((e=this.data)==null?0:(z=e.header)==null?0:z.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.header)==null?void 0:z.expandedSubtitleTapCommand;e=C&&_.r(C,_.oO);return _.M("web_open_ai_support_links_external_window")&&(e==null?void 0:e.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.header)==null?void 0:z.expandedSubtitleTapCommand;e=C&&_.r(C,_.oO);return _.M("web_open_ai_support_links_external_window")&&(e==null?void 0:e.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!((e=this.data)==null?0:(z=e.header)==null?0:z.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
C$.prototype.onUp=C$.prototype.onUp;C$.prototype.onDown=C$.prototype.onDown;C$.prototype.isExpandedChanged=C$.prototype.isExpandedChanged;C$.prototype.dataChanged=C$.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],C$.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],C$.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],C$.prototype,"isExpanded",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],C$.prototype,"disableExpand",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],C$.prototype,"isSearch",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],C$.prototype,"isWatch",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.B("design:type",Object)],C$.prototype,"showProminentLabel",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.B("design:type",Object)],C$.prototype,"showRightSideLabel",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C$.prototype,"hasVideoSummary",null);_.d([_.F({value:!1,reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C$.prototype,"hasLockupViewModel",null);_.d([_.F({reflectToAttribute:!0}),_.P("data","isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C$.prototype,"useCustomColors",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C$.prototype,"showInfoButton",null);_.d([_.P("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C$.prototype,"showTimestamp",null);_.d([_.P("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C$.prototype,"showExpandedSubtitle",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],C$.prototype,"expandedSubtitleTarget",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],C$.prototype,"expandedSubtitleRel",null);_.d([_.P("data","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],C$.prototype,"showThumbnail",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],C$.prototype,"useVppShoppingDestinationStyle",null);
_.d([_.F(),_.B("design:type",Object)],C$.prototype,"toggleExpandableContent",void 0);_.d([_.nP("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],C$.prototype,"JSC$15466_cardList",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.B("design:type",Object)],C$.prototype,"useSquareThumbnail",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],C$.prototype,"dataChanged",null);
_.d([_.mi("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],C$.prototype,"isExpandedChanged",null);_.d([_.Qi("down"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C$.prototype,"onDown",null);_.d([_.Qi("up"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],C$.prototype,"onUp",null);
_.d([_.SL({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],C$);
_.u(C$,"ytd-expandable-metadata-renderer",function(){if(JVU!==void 0)return JVU;var e=document.createElement("template");_.v(e,'\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]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return JVU=e},{mode:1});var xoc,Tda=function(){if(xoc!==void 0)return xoc;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" 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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return xoc=e};_.KU(_.m9,"yt-avatar-stack-view-model",{props:{className:_.vh,data:_.vh,overrides:_.vh,isOverlay:_.vh,useMediumText:_.vh,decorations:_.vh,hideAvatar:_.vh}});_.hq("itemSectionRenderer","videoRenderer","ytd-video-renderer");var wb=function(){var e=_.V.apply(this,arguments)||this;e.disableExpand=!1;e.shouldShowChannelInfo=!1;e.hasAttributedBylineText=!1;e.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return e};
_.U(wb,_.V);_.Y=wb.prototype;_.Y.computeUseSearchUi=function(){var e,z;return this.isSearch||((e=this.data)==null?void 0:(z=e.style)==null?void 0:z.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Y.computeUseThreeLineTitle=function(){var e;return((e=this.data)==null?void 0:e.maxTitleLines)===3};
_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.M("polymer_video_renderer_defer_menu")&&!ye4?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.Y.attached=function(){_.k$(this.hostElement,"blue-links",_.M("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.qH(_.XC(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var e=this.get("data.buttons.buttonRenderer.serviceEndpoint"),z;e&&((z=_.r(e.commandMetadata,_.wA))==null?0:z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(e);this.updateInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15471_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:this.JSC$15471_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15471_inlinePreviewHoverListener)==null||on(e)};
_.Y.onTextWrapperClick=function(e){var z,C,w=this.hideTranslation?(z=this.data)==null?void 0:z.untranslatedNavigationEndpoint:(C=this.data)==null?void 0:C.navigationEndpoint;z=_.C7(_.cJ(e),this.hostElement,["expandable-metadata"]);!w||z&&!_.M("expandable_metadata_fix_killswitch")||_.zi(_.cJ(e),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.pi(this.hostElement,"yt-navigate",{endpoint:w})};
_.Y.computeThumbnailWidth=function(e,z,C,w,K){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:w?K==="MASSIVE"?600:K==="BIG"?500:K==="MEDIUM"?450:420:C?360:z?128:e?210:246};
_.Y.computeUseBiggerThumbs=function(e){return e&&_.M("enable_desktop_search_bigger_thumbs")};
_.Y.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.Y.computeHasAttributedBylineText=function(){var e;return!((e=this.data)==null||!e.attributedBylineText)};
_.Y.computeVideoStyle=function(){if(_.M("enable_video_style")){var e,z;return(e=this.data)==null?void 0:(z=e.style)==null?void 0:z.value}};
_.Y.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.Y.handleHideItemSectionVideosByIdCommand=function(e){var z;e=(z=_.r(e,ciS))==null?void 0:z.videoId;this.data&&this.data.videoId===e&&(this.isHidden=!0)};
_.Y.getMetadataSnippetContainerClass=function(e){return e?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.Y.computeTitleText=function(e,z,C){return e?C:z};
_.Y.computeDescriptionSnippet=function(e,z,C){return e?C:z};
_.Y.computeSnippetText=function(e,z,C){return e?C:z};
_.Y.computeNavigationEndpoint=function(e,z){return e?z==null?void 0:z.untranslatedNavigationEndpoint:z==null?void 0:z.navigationEndpoint};
_.Y.hideInlineTitleIcon=function(e,z){return e||!z};
_.lB.Object.defineProperties(wb.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 e;return(e=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?e:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!(this==null?0:(e=this.data)==null?0:(z=e.channelThumbnailSupportedRenderers)==null?0:(C=z.channelThumbnailWithLinkRenderer)==null?0:C.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.r((e=this.data)==null?void 0:e.avatar,P2g)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15471_inlinePreviewHoverListener)==null?0:MN(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.lB.Object.defineProperties(wb,{template:{configurable:!0,enumerable:!0,get:function(){return Tda()}}});
wb.prototype.dataChanged=wb.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],wb.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wb.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],wb.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.W(_.I0),_.B("design:type",Object)],wb.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],wb.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],wb.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wb.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],wb.prototype,"isBackstageVideo",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],wb.prototype,"isPostCompactVideo",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],wb.prototype,"isHistory",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],wb.prototype,"isRichGridVideoPost",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],wb.prototype,"isHidden",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],wb.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.B("design:type",Boolean)],wb.prototype,"useSearchUi",void 0);_.d([_.F({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.B("design:type",Boolean)],wb.prototype,"useThreeLineTitle",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.B("design:type",Boolean)],wb.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.B("design:type",Object)],wb.prototype,"videoStyle",void 0);_.d([_.F({computed:"computeDisableExpand(videoStyle)"}),_.B("design:type",Object)],wb.prototype,"disableExpand",void 0);
_.d([_.F({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.B("design:type",Object)],wb.prototype,"shouldShowChannelInfo",void 0);_.d([_.F({computed:"computeHasAttributedBylineText(data)"}),_.B("design:type",Object)],wb.prototype,"hasAttributedBylineText",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],wb.prototype,"biggerThumbsStyle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.B("design:type",String)],wb.prototype,"inlineTitleIcon",void 0);_.d([_.F({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.B("design:type",Object)],wb.prototype,"computedNavigationEndpoint",void 0);_.d([_.F({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(e,z){return _.xz(e.entities,"searchVideoResultEntity",z)}}),
_.B("design:type",Object)],wb.prototype,"searchVideoResultEntity",void 0);_.d([_.nP("ytd-thumbnail"),_.B("design:type",HTMLElement)],wb.prototype,"thumbnail",void 0);_.d([_.nP("#dismissible"),_.B("design:type",HTMLElement)],wb.prototype,"JSC$15471_dismissibleMedia",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wb.prototype,"dataChanged",null);
_.d([_.P("searchVideoResultEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wb.prototype,"hideTranslation",null);_.d([_.P("searchVideoResultEntity"),_.B("design:type",Array),_.B("design:paramtypes",[])],wb.prototype,"hiddenBadgeGroups",null);_.d([_.P("data","useAvatar"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wb.prototype,"shouldShowChannelThumbnail",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wb.prototype,"useAvatar",null);
_.d([_.P("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],wb.prototype,"isHovered",null);_.d([_.SL({is:"ytd-video-renderer",disableElementRegistration:!0})],wb);_.u(wb,"ytd-video-renderer",function(){return Tda()},{mode:_.bA("kevlar_poly_si_batch_j047")?1:2});var K$=function(){var e=_.V.apply(this,arguments)||this;e.editDialog=null;e.roundedContainer=!0;e.isLoading=!1;e.isRichGrid=!1;e.isRichGridRepost=!1;e.reduceSidePaddings=_.M("reduce_side_paddings_in_shelf");e.JSC$15478_spinnerEl=null;return e};
_.U(K$,_.V);_.Y=K$.prototype;
_.Y.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"}}}};
_.Y.contentTextChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){var e=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var z=0,C=this.data.actions&&this.data.actions.length;z<C;z++)this.openEditDialog(_.r(this.data.actions[z],OcX));if((z=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(z=this.get("buttonRenderer.hint.hintRenderer.hintId",z))&&z.startsWith("share-post-hint")){var w=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(w){_.tl.getInstance();var K=gt(_.AO(_.kk("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.c5.addLowPriorityJob(function(){_.KK(e.hostElement,K,w)})}}}};
_.Y.updatePoll=function(e){e>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.Y.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15478_spinnerEl||(this.JSC$15478_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.XC(this.hostElement).appendChild(this.JSC$15478_spinnerEl));this.JSC$15478_spinnerEl&&(this.JSC$15478_spinnerEl.active=this.isLoading)};
_.Y.onYtNavigate=function(e){var z=this.get("updateCommentDialogEndpoint",e.detail.endpoint);z&&(this.openEditDialog(z),e.stopPropagation())};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.onYtCommentPollRevert=function(e,z){z&&this.updatePoll(z.selectedChoiceIndex)};
_.Y.onYtServiceRequestSent=function(e,z){var C;z.endpoint&&(_.r(z.endpoint,NyT)||_.r(z.endpoint,ix6)&&((C=_.r(z.endpoint,ix6))==null||!C.clientActions))&&(this.isLoading=!0);if(z.actions)for(e=0;e<z.actions.length;e++)C=z.actions[e],_.r(C,zC)&&(C=this.get("updateBackstagePollAction.selectedChoiceIndex",C),C==void 0&&(C=-1),this.updatePoll(C))};
_.Y.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Y.openEditDialog=function(e){e&&e.dialog&&(this.editDialog=e.dialog,e=this.editDialogEl.firstElementChild)&&(e.focus(),e.openDialog&&e.openDialog())};
_.Y.computeIsPostHidden=function(e,z){return!!e||z};
_.Y.computeSurfaceType=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeUsesCompactLockup=function(e){return e==="BACKSTAGE_SURFACE_TYPE_HOME"||e==="BACKSTAGE_SURFACE_TYPE_SEARCH"||e==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||e==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||e==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||e==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Y.computeShowWithoutToolbar=function(e){return!e.actionButtons&&!e.actionMenu};
_.Y.computePostAttachment=function(e){if(e.backstageAttachment){if(_.r(e.backstageAttachment,Mws))return"poll";if(_.r(e.backstageAttachment,oVL))return"quiz";if(_.r(e.backstageAttachment,_.M4))return"video";if(_.r(e.backstageAttachment,GBX))return"uploaded-videos";if(_.r(e.backstageAttachment,KXa))return e.contentText?"image":"image-only";if(_.r(e.backstageAttachment,zJX))return"playlist"}return"none"};
_.Y.computePostTabIndex=function(e){return e?0:-1};
_.Y.computeButtonTooltipPosition=function(e){return this.computeUsesCompactLockup(e)?"top":"bottom"};
_.Y.computeHasText=function(e){return!(e==null||!e.contentText)};
_.Y.onTap=function(e){var z,C;if(((z=this.data)==null?0:z.navigationEndpoint)&&((C=this.data)==null?void 0:C.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var w;((w=this.data)==null?0:w.navigationEndpoint)&&!_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.lB.Object.defineProperties(K$.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.voteCount)||_.AO("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,Mws))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,GBX))}}});
K$.prototype.onYtServiceRequestCompleted=K$.prototype.onYtServiceRequestCompleted;K$.prototype.onYtServiceRequestSent=K$.prototype.onYtServiceRequestSent;K$.prototype.onYtCommentPollRevert=K$.prototype.onYtCommentPollRevert;K$.prototype.onYtCommentboxDismiss=K$.prototype.onYtCommentboxDismiss;K$.prototype.onYtNavigate=K$.prototype.onYtNavigate;K$.prototype.isLoadingChanged=K$.prototype.isLoadingChanged;K$.prototype.dataChanged=K$.prototype.dataChanged;K$.prototype.contentTextChanged=K$.prototype.contentTextChanged;
_.d([_.W(_.a0),_.B("design:type",Object)],K$.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],K$.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],K$.prototype,"editDialog",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],K$.prototype,"roundedContainer",void 0);_.d([_.F(),_.B("design:type",Object)],K$.prototype,"isLoading",void 0);_.d([_.F({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.B("design:type",String)],K$.prototype,"surface",void 0);
_.d([_.F({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.B("design:type",Boolean)],K$.prototype,"usesCompactLockup",void 0);_.d([_.F({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],K$.prototype,"showWithoutToolbar",void 0);_.d([_.F({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.B("design:type",String)],K$.prototype,"attachment",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],K$.prototype,"isRichGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],K$.prototype,"isRichGridRepost",void 0);_.d([_.F({reflectToAttribute:!0,value:_.M("use_better_post_dismissals")}),_.B("design:type",Boolean)],K$.prototype,"useBetterPostDismissals",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],K$.prototype,"reduceSidePaddings",void 0);
_.d([_.F({computed:"computeHasText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],K$.prototype,"hasText",void 0);_.d([_.nP("#expander"),_.B("design:type",Object)],K$.prototype,"expander",void 0);_.d([_.nP("#action-buttons"),_.B("design:type",Object)],K$.prototype,"actionButtons",void 0);_.d([_.nP("#edit-dialog"),_.B("design:type",HTMLElement)],K$.prototype,"editDialogEl",void 0);
_.d([_.mi("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K$.prototype,"contentTextChanged",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K$.prototype,"dataChanged",null);_.d([_.mi("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K$.prototype,"isLoadingChanged",null);
_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],K$.prototype,"onYtNavigate",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],K$.prototype,"onYtCommentboxDismiss",null);_.d([_.Qi("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],K$.prototype,"onYtCommentPollRevert",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],K$.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],K$.prototype,"onYtServiceRequestCompleted",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],K$.prototype,"voteCount",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],K$.prototype,"commentCount",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],K$.prototype,"hasPoll",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],K$.prototype,"hasUploadedVideo",null);_.d([_.SL({is:"ytd-post-renderer",disableElementRegistration:!0})],K$);
_.u(K$,"ytd-post-renderer",function(){if(hrL!==void 0)return hrL;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return hrL=e},{mode:1});var $og;var lX6;var o7=function(){return _.V.apply(this,arguments)||this};
_.U(o7,_.V);o7.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.u2.YtdHorizontalListBehavior),_.B("design:type",Object)],o7.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],o7.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],o7.prototype,"data",void 0);
_.d([_.F({value:"$.items.children"}),_.B("design:type",String)],o7.prototype,"itemsPath",void 0);_.d([_.F({value:1}),_.B("design:type",Number)],o7.prototype,"initialCount",void 0);_.d([_.F({reflectToAttribute:!0,value:_.M("enable_community_page_on_desktop")}),_.B("design:type",Boolean)],o7.prototype,"useSmallerPostImageAttachments",void 0);_.d([_.F(),_.B("design:type",String)],o7.prototype,"surface",void 0);_.d([_.SL({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],o7);
_.u(o7,"ytd-post-multi-image-renderer",function(){if(lX6!==void 0)return lX6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return lX6=e},{mode:_.bA("kevlar_poly_si_batch_j079")?1:2});var QEU={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
G_=function(){var e=_.V.apply(this,arguments)||this;e.hasInlineCommentSection=!1;e.editDialog=null;e.isLoading=!1;e.shouldHideAuthor=!1;e.shouldShowVideoTime=!1;e.isInEngagementPanel=!1;e.hideBorder=!1;e.usesFullLockup=!1;e.shouldShowMenuInCompactView=!1;e.JSC$15493_spinnerEl=null;e.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return e};
_.U(G_,_.V);_.Y=G_.prototype;_.Y.configureRendererStamper=function(){return QEU};
_.Y.computeIsPollHeaderEnabled=function(e){return(e==null?void 0:e.pollMetadataIcon)!=null};
_.Y.getPublishTimeStampString=function(e,z){z=new Date((Number(z)-60*((new Date).getTimezoneOffset()-(new Date(Number(z)*1E3)).getTimezoneOffset()))*1E3);z=(new cH(10)).format(z);if(e&&e.runs&&e.runs.length)for(var C=0;C<e.runs.length;C++)e.runs[C].text&&(e.runs[C].text=e.runs[C].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",z));return e};
_.Y.created=function(){this.JSC$15493_spinnerEl=null};
_.Y.contentTextChanged=function(){this.expander.reset()};
_.Y.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var e;if((e=this.data)==null?0:e.actions){e=_.b(this.data.actions);for(var z=e.next();!z.done;z=e.next())this.openEditDialog(_.r(z.value,OcX))}};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){_.XC(this.hostElement).querySelector("#action-buttons").reply()};
_.Y.updatePoll=function(e,z){z&&this.set("data.pollMetadataVoteCountText",z);this.hasInlineCommentSection&&(e=e>=0,z=_.XC(this.hostElement).querySelector("#action-buttons"),e?z.reply():z.hideReplyDialog())};
_.Y.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15493_spinnerEl||(this.JSC$15493_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.XC(this.hostElement).appendChild(this.JSC$15493_spinnerEl));this.JSC$15493_spinnerEl&&(this.JSC$15493_spinnerEl.active=this.isLoading)};
_.Y.onYtNavigate=function(e){var z=this.get("updateCommentDialogEndpoint",e.detail.endpoint);z&&(this.openEditDialog(z),e.stopPropagation())};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.onYtCommentPollRevert=function(e,z){z&&this.updatePoll(z.selectedChoiceIndex,z.totalVotes)};
_.Y.onYtServiceRequestSent=function(e,z){e.stopPropagation();e=_.r(z.endpoint,ix6);if(_.r(z.endpoint,NyT)||e&&!e.clientActions)this.isLoading=!0;if(z.actions)for(e=0;e<z.actions.length;e++){var C=z.actions[e],w=_.r(C,zC);w&&(C=this.get("updateBackstagePollAction.selectedChoiceIndex",C),C===void 0&&(C=-1),this.updatePoll(C,w.totalVotes))}};
_.Y.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.Y.openEditDialog=function(e){e&&e.dialog&&(this.editDialog=e.dialog,e=this.editDialogElement.firstElementChild)&&(e.focus(),e.openDialog&&e.openDialog())};
_.Y.computeIsBodyHidden=function(e,z){return!!e||z};
_.lB.Object.defineProperties(G_.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var e=this.data,z=e.showPostAuthorBackgroundHighlight,C=e.postAuthorBadgeType,w=e.authorEndpoint;if(!z&&C!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&C!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var K,G,X;e=_.AO(((K=e.authorText)==null?void 0:(G=K.runs)==null?void 0:(X=G[0])==null?void 0:X.text)||"");K=void 0;switch(C){case "POST_AUTHOR_BADGE_TYPE_ARTIST":K={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":K={iconType:z?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:e,authorEndpoint:w,authorCreator:z,icon:K}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var e,z;if((e=this.data)==null?0:(z=e.pollMetadataIcon)==null?0:z.iconType)return _.qF(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.voteCount)||_.AO("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,Mws))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,oVL))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,GBX))}}});
G_.prototype.onYtServiceRequestCompleted=G_.prototype.onYtServiceRequestCompleted;G_.prototype.onYtServiceRequestSent=G_.prototype.onYtServiceRequestSent;G_.prototype.onYtCommentPollRevert=G_.prototype.onYtCommentPollRevert;G_.prototype.onYtCommentboxDismiss=G_.prototype.onYtCommentboxDismiss;G_.prototype.onYtNavigate=G_.prototype.onYtNavigate;G_.prototype.isLoadingChanged=G_.prototype.isLoadingChanged;G_.prototype.dataChanged=G_.prototype.dataChanged;G_.prototype.contentTextChanged=G_.prototype.contentTextChanged;
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],G_.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],G_.prototype,"rendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],G_.prototype,"rendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],G_.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.nP("#contentTextExpander"),_.B("design:type",Object)],G_.prototype,"expander",void 0);_.d([_.nP("#edit-dialog"),_.B("design:type",Element)],G_.prototype,"editDialogElement",void 0);_.d([_.F(),_.B("design:type",Object)],G_.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],G_.prototype,"hasInlineCommentSection",void 0);_.d([_.F(),_.B("design:type",Object)],G_.prototype,"editDialog",void 0);_.d([_.F(),_.B("design:type",Object)],G_.prototype,"isLoading",void 0);
_.d([_.F({computed:"computeIsPollHeaderEnabled(data)"}),_.B("design:type",Boolean)],G_.prototype,"isPollHeaderEnabled",void 0);_.d([_.F(),_.B("design:type",Object)],G_.prototype,"shouldHideAuthor",void 0);_.d([_.F(),_.B("design:type",Object)],G_.prototype,"shouldShowVideoTime",void 0);_.d([_.F(),_.B("design:type",Object)],G_.prototype,"isInEngagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],G_.prototype,"hideBorder",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],G_.prototype,"usesFullLockup",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],G_.prototype,"shouldShowMenuInCompactView",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],G_.prototype,"authorCommentBadge",null);_.d([_.P("isInEngagementPanel"),_.B("design:type",Number),_.B("design:paramtypes",[])],G_.prototype,"postTextMaxLines",null);
_.d([_.P("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],G_.prototype,"pollIcon",null);_.d([_.mi("data.contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G_.prototype,"contentTextChanged",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G_.prototype,"dataChanged",null);
_.d([_.mi("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G_.prototype,"isLoadingChanged",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],G_.prototype,"onYtNavigate",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],G_.prototype,"onYtCommentboxDismiss",null);
_.d([_.Qi("yt-comment-poll-revert"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],G_.prototype,"onYtCommentPollRevert",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],G_.prototype,"onYtServiceRequestSent",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],G_.prototype,"onYtServiceRequestCompleted",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],G_.prototype,"voteCount",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],G_.prototype,"commentCount",null);
_.d([_.P("data.backstageAttachment"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G_.prototype,"hasPoll",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G_.prototype,"hasQuiz",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],G_.prototype,"hasUploadedVideo",null);_.d([_.SL({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],G_);
_.u(G_,"ytd-backstage-post-renderer",function(){if($og!==void 0)return $og;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return $og=e},{mode:1});var moh;var YU=function(){var e=_.V.apply(this,arguments)||this;e.editDialog=null;e.showExpandButton=!1;e.isRichGrid=!1;e.usesFullLockup=!1;return e};
_.U(YU,_.V);_.Y=YU.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.Y.computeShowExpandButton=function(e){return this.usesCompactLockup||e&&e.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.Y.computeUsesCompactLockup=function(e){return!!e.condensedContent};
_.Y.computeShowFullContentText=function(e){return!e};
_.Y.onYtNavigate=function(e){e=this.get("updateCommentDialogEndpoint",e.detail.endpoint);this.openEditDialog(e)};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null};
_.Y.openEditDialog=function(e){e&&e.dialog&&(this.editDialog=e.dialog,e=this.repostEditDialogEl.firstElementChild)&&(e.focus(),e.openDialog&&e.openDialog())};
_.Y.onTap=function(e){if(this.data){var z=null;this.usesCompactLockup&&!_.zi(_.cJ(e)||[],this.hostElement,["YT-IMG-SHADOW"])?z=this.get("navigationEndpoint",this.data):e.target===this.moreButtonEl&&(z=this.get("navigationEndpoint",e.target.data));z&&_.pi(this.hostElement,"yt-navigate",{endpoint:z})}};
YU.prototype.onYtCommentboxDismiss=YU.prototype.onYtCommentboxDismiss;YU.prototype.onYtNavigate=YU.prototype.onYtNavigate;YU.prototype.dataChanged=YU.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],YU.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],YU.prototype,"editDialog",void 0);_.d([_.F({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],YU.prototype,"usesCompactLockup",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],YU.prototype,"showExpandButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],YU.prototype,"isRichGrid",void 0);
_.d([_.F({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.B("design:type",Boolean)],YU.prototype,"showFullContentText",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],YU.prototype,"usesFullLockup",void 0);_.d([_.nP("#more"),_.B("design:type",Object)],YU.prototype,"moreButtonEl",void 0);_.d([_.nP("#repost-content-text"),_.B("design:type",HTMLElement)],YU.prototype,"repostContentTextEl",void 0);
_.d([_.nP("#repost-edit-dialog"),_.B("design:type",HTMLElement)],YU.prototype,"repostEditDialogEl",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YU.prototype,"dataChanged",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],YU.prototype,"onYtNavigate",null);
_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YU.prototype,"onYtCommentboxDismiss",null);_.d([_.SL({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],YU);
_.u(YU,"ytd-shared-post-renderer",function(){if(moh!==void 0)return moh;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return moh=e},{mode:1});var aXh;var nnT;var bc=function(){return _.V.apply(this,arguments)||this};
_.U(bc,_.V);bc.prototype.attached=function(){var e=this;this.networkStatusManager||(this.networkStatusManager=new _.bk,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){e.onlineHandler()}))};
bc.prototype.detached=function(){var e=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){e.onlineHandler()}),delete this.networkStatusManager)};
bc.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],bc.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bc.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],bc);
_.u(bc,"ytd-reload-page-button-renderer",function(){if(nnT!==void 0)return nnT;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return nnT=e},{mode:1});var M9X={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"},XO=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(XO,_.V);_.Y=XO.prototype;_.Y.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Y.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Y.computeHasBodyText=function(e){return!!e.bodyText};
_.Y.computeButtons=function(e){var z=[];e.ctaButton&&z.push(e.ctaButton);e.secondaryButton&&z.push(e.secondaryButton);return z};
_.Y.computeRendererStyle=function(e){return e.style?e.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():e.icon?"":"no-icon"};
_.Y.getIconName=function(e,z){z=z===void 0?!1:z;if(e===void 0)return"";e=this.get("icon.iconType",e);var C;_.M("enable_hlp_client_icon_pick")?C=this.getThemedIcon(e,z):C=e;(z=M9X[C])||(z="yt-icons");return[z,C].join(":")};
_.Y.getThemedIcon=function(e,z){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(e)?z?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(e)?z?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":e};
_.Y.isThumbnail=function(e){return!!e.thumbnail};
_.Y.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],XO.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],XO.prototype,"data",void 0);
_.d([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],XO.prototype,"rendererStyle",void 0);_.d([_.F({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.B("design:type",String)],XO.prototype,"iconName",void 0);_.d([_.F({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],XO.prototype,"thumbnail",void 0);_.d([_.F({computed:"computeButtons(data)"}),_.B("design:type",Array)],XO.prototype,"buttons",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],XO.prototype,"isDarkTheme",void 0);_.d([_.F({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],XO.prototype,"hasBodyText",void 0);_.d([_.SL({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],XO);
_.Yp()(XO,"ytd-background-promo-renderer",function(){if(aXh===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);aXh=e}e=aXh;return e},{allowedProps:["data"],
mode:1});var rvs;var Jr=function(){return _.V.apply(this,arguments)||this};
_.U(Jr,_.V);_.lB.Object.defineProperties(Jr.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K,G;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(e=this.data)==null?void 0:(z=e.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(C=this.data)==null?void 0:(w=C.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(K=this.data)==null?void 0:(G=K.thumbnail)==null?void 0:G.darkColorPalette,experimentEnabled:!0}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Jr.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Jr.prototype,"collectionStack",null);_.d([_.SL({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Jr);
_.u(Jr,"ytd-compact-station-renderer",function(){if(rvs!==void 0)return rvs;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return rvs=e},{mode:1});var HO6;var kU=function(){var e=_.V.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.U(kU,_.V);kU.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]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kU.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],kU.prototype,"isRichGrid",void 0);_.d([_.SL({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],kU);
_.u(kU,"ytd-grid-channel-renderer",function(){if(HO6!==void 0)return HO6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return HO6=e},{mode:1});var UoY;var qQ=function(){return _.V.apply(this,arguments)||this};
_.U(qQ,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qQ.prototype,"data",void 0);_.d([_.SL({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],qQ);
_.u(qQ,"ytd-grid-movie-playlist-renderer",function(){if(UoY!==void 0)return UoY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return UoY=e},{mode:1});var vnC;var xU=function(){var e=_.V.apply(this,arguments)||this;e.downloadProgress=0;e.transferState="TRANSFER_STATE_UNKNOWN";e.modernButtons=_.M("web_modern_buttons");return e};
_.U(xU,_.V);xU.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
xU.prototype.configureRendererStamper=function(){return{"data.menu":C9}};
xU.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
xU.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.M("woffle_playlist_renderer_killswitch")){var e,z=SW4(this.entityInfo,this.transferState,this.downloadProgress,(e=this.data)==null?void 0:e.playlistId,this.isOnline);e=z.viewPlaylistText;var C=z.badges;z=z.thumbnailOverlays;this.isDownloads=!!e||!!C;this.set("data.viewPlaylistText",e);C&&C.length>0&&this.set("data.badges",C);z&&z.length>0&&this.set("data.thumbnailOverlays",
z)}};
_.lB.Object.defineProperties(xU.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 e;return!((e=this.data)==null?0:e.menu)}}});
xU.prototype.transferStateChanged=xU.prototype.transferStateChanged;xU.prototype.dataChanged=xU.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],xU.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],xU.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F({selector:_.yY8,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],xU.prototype,"downloadProgress",void 0);_.d([_.F({selector:_.Dd,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],xU.prototype,"transferState",void 0);_.d([_.F({selector:jQg,selectorArgs:["data.playlistId"]}),_.B("design:type",Object)],xU.prototype,"entityInfo",void 0);_.d([_.F({selector:_.SJ}),_.B("design:type",Boolean)],xU.prototype,"isOnline",void 0);
_.d([_.F(),_.B("design:type",Object)],xU.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],xU.prototype,"downloadRenderData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],xU.prototype,"modernButtons",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],xU.prototype,"isDownloads",void 0);_.d([_.P("transferState"),_.F({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],xU.prototype,"downloadState",null);
_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xU.prototype,"menuHidden",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xU.prototype,"dataChanged",null);_.d([_.Ux("transferState","downloadProgress","isOnline"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xU.prototype,"transferStateChanged",null);
_.d([_.SL({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],xU);
_.u(xU,"ytd-grid-playlist-renderer",function(){if(vnC!==void 0)return vnC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vnC=e},{mode:1});var IXT;var T_=function(){return _.V.apply(this,arguments)||this};
_.U(T_,_.V);T_.prototype.configureRendererStamper=function(){return{"data.menu":C9,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.lB.Object.defineProperties(T_.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K,G;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(e=this.data)==null?void 0:(z=e.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(C=this.data)==null?void 0:(w=C.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(K=this.data)==null?void 0:(G=K.thumbnail)==null?void 0:G.darkColorPalette,experimentEnabled:!0}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],T_.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],T_.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],T_.prototype,"data",void 0);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],T_.prototype,"collectionStack",null);_.d([_.SL({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],T_);
_.u(T_,"ytd-grid-radio-renderer",function(){if(IXT!==void 0)return IXT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return IXT=e},{mode:1});var WZC;var $U=function(){return _.V.apply(this,arguments)||this};
_.U($U,_.V);$U.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
$U.prototype.computeNavigationEndpoint=function(e){return iHk(e==null?void 0:e.navigationEndpoint)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$U.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],$U.prototype,"ytdLockupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$U.prototype,"data",void 0);_.d([_.F({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],$U.prototype,"computedNavigationEndpoint",void 0);
_.d([_.SL({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],$U);
_.u($U,"ytd-grid-show-renderer",function(){if(WZC!==void 0)return WZC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return WZC=e},{mode:1});var PjS;_.lc=function(e){this.playerClient=e};
_.R1a=function(e,z,C){C=C===void 0?{}:C;return e.playerClient.setOption("ad",z,C)};
_.lc.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.lc.prototype.executeCommand=function(e,z){this.getOptions().includes("executeCommand")?_.R1a(this,"executeCommand",{command:e,layoutId:z}):_.Am("Calling executeCommand when adModule is not loaded")};var Qn=function(){return _.V.apply(this,arguments)||this};
_.U(Qn,_.V);Qn.prototype.getLayoutId=function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
Qn.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var e=_.ox(),z=this.getLayoutId(),C=this.data.clickthroughEndpoint;e&&z&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?e.getPlayerPromise().then(function(w){(new _.lc(w)).executeCommand(C,z)}):_.pi(this.hostElement,"yt-navigate",{endpoint:C})}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Qn.prototype,"data",void 0);_.d([_.SL({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Qn);
_.u(Qn,"ytd-shopping-companion-item-renderer",function(){if(PjS!==void 0)return PjS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return PjS=e},{mode:1});var LZX;var mv=function(){var e=_.V.apply(this,arguments)||this;e.isExpandableContent=!1;return e};
_.U(mv,_.V);_.lB.Object.defineProperties(mv.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?void 0:e.price)||((z=this.data)==null?void 0:(C=z.dealsData)==null?void 0:C.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var e,z;if((e=this.data)!=null&&e.dealsData&&((z=this.data)==null||!z.priceReplacementText)){e=this.data.dealsData;var C,w,K;return((C=e.salesData)==null?void 0:C.originalPrice)||((w=e.priceDropData)==null?void 0:w.referencePrice)||((K=e.promotionData)==null?void 0:K.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var e,z;return(e=this.data)==null?void 0:(z=e.dealsData)==null?void 0:z.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],mv.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mv.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mv.prototype,"isExpandableContent",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"showCta",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"ctaText",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"hasPriceTopPosition",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"hasPriceBottomPosition",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"useNewStyle",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"showPriceReplacementText",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"priceValue",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"showDeal",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"showAffiliateDisclaimer",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"useSaleStyle",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"useFromBrandCtaStyle",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"useFromVendorCtaStyle",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mv.prototype,"useShoppingCollectionCtaStyle",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],mv);
_.u(mv,"ytd-vertical-product-card-renderer",function(){if(LZX!==void 0)return LZX;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return LZX=e},{mode:1});var h1o;var a7=function(){return _.V.apply(this,arguments)||this};
_.U(a7,_.V);a7.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],a7.prototype,"ytdLockupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],a7.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],a7);
_.u(a7,"ytd-grid-movie-renderer",function(){if(h1o!==void 0)return h1o;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return h1o=e},{mode:1});var OOg;var n$=function(){var e=_.V.apply(this,arguments)||this;e.roundedFix=_.M("web_enable_merch_item_rounding_fix");e.itemStyle="small-item";return e};
_.U(n$,_.V);n$.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var e,z,C,w,K=(z=_.r((e=this.data)==null?void 0:e.buttonCommand,_.u5g))==null?void 0:(C=z.item)==null?void 0:(w=C.notificationTextRenderer)==null?void 0:w.successResponseText;K&&_.l$h(this.hostElement,K)}};
_.lB.Object.defineProperties(n$.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:e.isProductPlaceholder)!==void 0&&((z=this.data)==null?void 0:z.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],n$.prototype,"ytRendererBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],n$.prototype,"roundedFix",void 0);_.d([_.F(),_.B("design:type",Object)],n$.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],n$.prototype,"itemStyle",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n$.prototype,"hasPrice",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n$.prototype,"hasPriceReplacementText",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n$.prototype,"hasAdditionalFeesText",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n$.prototype,"hasAffiliateDisclaimer",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n$.prototype,"isProductPlaceholder",null);
_.d([_.F(),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n$.prototype,"hideOpenInNewIcon",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],n$.prototype,"ariaLabel",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],n$);
_.u(n$,"ytd-merch-shelf-item-renderer",function(){if(OOg!==void 0)return OOg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return OOg=e},{mode:1});_.KU(_.f(function(e){return _.x("button-card-view-model",{el:_.ej(_.Dh(function(){return e.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return e.data().title},
role:"button"},_.x(_.Sf,{model:{}}),_.x("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.x("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.x(_.l,{cond:function(){return e.data().image},
then:function(z){return _.x(_.Zf,{data:z,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.x("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return e.data().title})))},"bc"),"button-card-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){e=_.eQ(e,{className:void 0});var z=e.data;e=e.className;var C=_.hG(function(){return z().onTapCommand},void 0,"SXkP9e");
return _.x("ytd-shopping-item-card",{class:_.qT("ytdShoppingItemCardHost",e)},_.x(_.fE,{command:C,className:"ytdShoppingItemCardHostLink"},_.x("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.x(_.PF,{data:function(){return z().thumbnailViewModel}},{thumbnailViewModel:function(w){return _.x(_.NN,{data:w.data,
aspectRatio:3})}})),_.x("div",null,_.x("p",{class:"ytdShoppingItemCardHostItemTitle"},_.x(_.U2,{text:function(){return z().itemTitle}})),_.x("p",{class:"ytdShoppingItemCardHostPrice"},_.x(_.U2,{text:function(){return z().priceOrStatus}})))))},"cc"),"ytd-shopping-item-card",{props:{data:_.vh,
className:_.vh}});var EnL={isAdsVideo:!0},FZT={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},V94={showPlayerControls:!1,videoPreviewDurationMs:15E3},fXL={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},SLa={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var p7=null,Qtg={};var nYm="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(" "),MQ={},MTg=(MQ.FEwhat_to_watch="home",MQ.FEhashtag="hashtag",MQ.FEtrending="trending",MQ.FEhistory="history",MQ.SPunlimited="premium",MQ.FEmemberships_and_purchases="paid_memberships",MQ.SPredeem_code="redeem",MQ.SPverify_location="locate",MQ.SPminor_moment="minor_moment",
MQ.FEmini_app_container="mini_app",MQ.FEnews_destination="news",MQ.SPopen_in_app="open_in_app",MQ.FEexplore="explore",MQ.FEsubscriptions="subscriptions",MQ.FEsfv_audio_pivot="sfv_audio_pivot",MQ.FEplaylist_aggregation="playlist_aggregation",MQ);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");_.oS("init");var uMa=function(){},Ndc=_.f(function(e){var z=e.data;
var C=e.inlineMetadata;var w=e.aspectRatio;var K=e.scrimStyle;var G=e.className;var X=e.useDefaultStyle;var J=e.titleStyle;var q=new uMa,T=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",Q=_.hG(function(){return(X==null?0:X())?T==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),m=_.hG(function(){return _.gp(C)||Q()||!1},void 0,"SEL6Qd"),a=function(){return(K==null?void 0:K())!==void 0?K==null?void 0:K():1},
n=_.hG(function(){return z().belowThumbnailMetadata||!m()},void 0,"KAqk1b");
e=_.aO({visibilityCallback:function(YN){var Jk=z().onFirstVisible;YN&&Jk&&_.NF(Jk)},
showOption:{calledOnce:!0,state:"visible"}});var H=_.ej(),I={},L=_.qT(function(){return Q(),"shortsLockupViewModelHostThumbnailContainer"},(I.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.gp(w)===1},I.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.gp(w)===2},I.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.M("web_shorts_2_by_3_lockups_study")&&!_.M("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
I)),h=_.hG(function(){if(_.gp(w)===1)return 1;
_.gp(w);return 2},void 0,"Bg5Es"),E,N=function(){if(q){var YN;
(YN=E)==null||on(YN);var Jk;if(q.hostElement&&((Jk=q.data)==null?0:Jk.inlinePlayerData)){var v1,lg;YN=((v1=q.data)==null?0:(lg=v1.inlinePlayerData)==null?0:lg.enableAudioControl)?Object.assign({},SLa):Object.assign({},fXL);var M5,fo;((M5=q.data)==null?void 0:(fo=M5.inlinePlayerData)==null?void 0:fo.maxPlaybackLengthSec)!==void 0&&(YN.videoPreviewDurationMs=q.data.inlinePlayerData.maxPlaybackLengthSec*1E3);E=sz({mediaRenderer:q,lockupElement:q.hostElement,thumbnailElement:H.value,videoPreviewOpts:YN})}}};
_.sH(function(){q&&(q.data=z(),N())},"wo9C7e");
var D=_.hG(function(){return z().thumbnail},void 0,"haijYd");
I=_.hG(function(){return z().badge},void 0,"RpDeSe");
var g=_.hG(function(){return z().onTap},void 0,"hOfuOb"),y={},Z={};
return _.x("ytm-shorts-lockup-view-model",{el:_.ej(function(YN){q&&(q.hostElement=YN)},N,e),
class:_.qT("shortsLockupViewModelHost",G)},_.x(_.Qw,null,_.x(_.fE,{command:g,className:_.qT("shortsLockupViewModelHostEndpoint",(y.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!n()},y),"reel-item-endpoint",""),
ariaHidden:function(){return!m()},
tabIndex:function(){return m()?0:-1}},_.x("div",{el:H,
class:_.qT("shortsLockupViewModelHostThumbnailParentContainer",(Z.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!Q()},Z))},_.x(_.l,{cond:D,
then:function(){return _.x("div",{class:L},_.x(_.Zf,{data:function(){var YN;return(YN=D==null?void 0:D())!=null?YN:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.x(_.PF,{data:function(){return z().thumbnailViewModel}},{thumbnailViewModel:function(YN){return _.x(_.NN,{data:YN.data,
aspectRatio:function(){return h()},
disableRounding:function(){return Q()}})}}),null),_.x(_.l,{cond:m,
then:function(){return _.x(doX,{data:z,scrimStyle:a,useDefaultStyle:X,titleStyle:J})}}),_.x(_.PF,{data:I},{badgeViewModel:function(YN){return _.x(_.Se,{data:YN.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.x(_.l,{cond:function(){return m()&&z().menuOnTap},
then:function(){return _.x(DoL,{data:z,inlineMetadata:!0})}}),_.x(_.l,{cond:n,
then:function(){return _.x(iOT,{data:z,useDefaultStyle:X,inlineMetadata:m})}})))},"ec"),doX=_.f(function(e){var z=e.data;
var C=e.scrimStyle;var w=e.useDefaultStyle;var K=e.titleStyle;var G=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",X=w&&_.M("web_hide_primary_text_for_pivot_panel"),J=_.hG(function(){return(w==null?0:w())?G==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
e={};e=_.qT("shortsLockupViewModelHostInlineMetadata",(e.shortsLockupViewModelHostMetadataRounded=function(){return!J()},e.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(C==null?void 0:C())===3&&!_.M("enable_shorts_lockup_new_scrim")},e.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(C==null?void 0:C())===3&&_.M("enable_shorts_lockup_new_scrim")},e.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(C==null?void 0:C())===2||(C==null?void 0:
C())===4},e.shortsLockupViewModelHostShowOverPlayer=function(){return!0},e),"image-overlay-text");
var q={};return _.x("div",{class:e},_.x("h3",{class:_.qT("shortsLockupViewModelHostMetadataTitle",(q.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(C==null?void 0:C())===4},q.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return z().belowThumbnailMetadata},q.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(K==null?void 0:K())===1},q.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(K==null?void 0:K())===2},q)),
"aria-label":function(){return z().accessibilityText}},_.x(_.l,{cond:function(){var T;
return!((T=z().overlayMetadata)==null||!T.primaryText)&&!X},
then:function(){return _.x(_.U2,{text:function(){var T;return(T=z().overlayMetadata)==null?void 0:T.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.x(_.l,{cond:function(){var T;
return(T=z().overlayMetadata)==null?void 0:T.secondaryText},
then:function(){return _.x(sEa,{data:z,scrimStyle:C,className:void 0})}}))},"fc"),iOT=_.f(function(e){var z=e.data;
var C=e.useDefaultStyle;var w=e.inlineMetadata;var K=_.M("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",G=_.hG(function(){return(C==null?0:C())?K==="SHORTS_LOCKUP_STYLE_SLIM":z().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),X=_.ej(),J;
e=_.T9(function(n){if(_.S3(_.f7(n),X.value,["AVATAR-VIEW-MODEL"]))return!1;var H;(H=J)==null||H.click();return!1});
var q=_.hG(function(){return z().belowThumbnailMetadata||z().overlayMetadata},void 0,"GwezKf"),T=function(){return z().menuOnTap&&!w()},Q=function(){var n;
return(n=q())==null?void 0:n.avatar},m={},a={};
return _.x("div",{class:_.qT(function(){return G()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(m.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!Q()},m.shortsLockupViewModelHostOutsideMetadataHasMenu=T,m)),
"on:click":e,el:X,role:"presentation"},_.x(_.PF,{data:Q},{avatarViewModel:function(n){return _.x(_.lO,{data:n.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.x("div",null,_.x("h3",{class:_.qT("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(a.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var n,H;
return!((n=q())==null?0:(H=n.primaryText)==null?0:H.content)},a.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=w,a)),
role:"presentation"},_.x(_.fE,{ref:function(n){return void(J=n)},
command:function(){return z().onTap},
className:_.qT("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var n,H;return(n=q())==null?void 0:(H=n.primaryText)==null?void 0:H.content},
"aria-label":function(){return z().accessibilityText}},_.x(_.l,{cond:function(){var n;
return(n=q())==null?void 0:n.primaryText},
then:function(n){return _.x(_.U2,{text:n,noEndpoints:!0,noStyleRuns:!0})}}))),_.x(_.l,{cond:function(){var n;
return(n=q())==null?void 0:n.secondaryText},
then:function(n){return _.x("div",{class:_.qT("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.x(_.U2,{text:n,noStyleRuns:!0}))}})),_.x(_.l,{cond:T,
then:function(){return _.x(DoL,{data:z,inlineMetadata:!1})}}))},"gc"),sEa=_.f(function(e){var z=e.data;
var C=e.scrimStyle;e=e.className;var w={};return _.x("div",{class:_.qT((w.shortsLockupViewModelHostMetadataSubhead=function(){return(C==null?void 0:C())!==4},w.shortsLockupViewModelHostMetadataSubheadNew=_.M("enable_shorts_lockup_new_scrim"),w.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(C==null?void 0:C())===4},w),e),
"aria-hidden":"true"},_.x(_.U2,{text:function(){var K;return(K=z().overlayMetadata)==null?void 0:K.secondaryText},
noStyleRuns:!0}))},"hc"),DoL=_.f(function(e){var z=e.data;
var C=e.inlineMetadata;e={};e=_.qT((e.shortsLockupViewModelHostInlineMetadataMenu=function(){return C()},e.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!C()},e.shortsLockupViewModelHostShowOverPlayer=function(){return!0},e),"image-overlay-text");
return _.x("div",{class:e},_.x(_.DS,{data:function(){return{style:C()?"overlay":"mono",accessibilityLabel:z().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(w){w.preventDefault();w.stopPropagation();var K=_.Df({elementsCommand:z().menuOnTap,forceNewState:!0});if(K==null?0:K.onclick)K.onclick(w)}}},
iconName:"MORE_VERT"}))},"ic");var Bdg=_.f(function(e){var z=e.data;var C=e.inlineMetadata;var w=e.aspectRatio;var K=e.scrimStyle;var G=e.className;var X=e.useDefaultStyle;e=_.hG(function(){var J=z().entityId;return J?J.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.x("ytm-shorts-lockup-view-model-v2",{class:_.qT("shortsLockupViewModelHost",G)},_.x(_.cp,{contentId:e,aspectRatio:function(){return(w==null?void 0:w())===1?1:(w==null?void 0:w())===2?2:4}},function(){return _.x(Ndc,{data:z,
inlineMetadata:C,aspectRatio:w,scrimStyle:K,className:G,useDefaultStyle:X})}))},"jc");_.KU(Bdg,"ytm-shorts-lockup-view-model-v2",{props:{data:_.z9,inlineMetadata:_.z9,aspectRatio:_.z9,scrimStyle:_.z9,className:_.z9,useDefaultStyle:_.z9,titleStyle:_.z9}});var t9s=16/9*210,rb=function(){var e=_.V.apply(this,arguments)||this;e.isExpandableContent=!1;e.hideShelfHeader=!1;e.engagementPanel=!1;e.buttonClasses=["arrow"];e.isSearch=!1;e.disableScrollEventListener=!1;e.containsLockup=!1;e.overrideArrowPositionForProductCard=!1;e.overrideArrowPositionForShoppingItemCard=!1;e.overrideArrowPositionForReelItems=!1;e.overrideArrowPositionForGridMovie=!1;e.overrideArrowPositionToCenter=!1;e.isSearchPostShelf=!1;e.overrideArrowPositionForMixedShelf=!1;e.overrideArrowPositionForMixedShelfShortsOnly=
!1;e.hasBigThumbsReelItems=!1;e.shouldUseMixedListHeight=!1;e.shouldUseShortsListHeight=!1;e.gridVideoWidth=0;e.isSearchVodShelf=!1;e.disableWheelScroll=!1;e.sizing="COMPACT";e.shortsLockupAspectRatio=0;return e};
_.U(rb,_.V);_.Y=rb.prototype;
_.Y.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]]"}}}}};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.M("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.Y.computeInitialCountNumber=function(e){if(!e)return 6;var z=e.items.some(function(G){return!!G.topicRecommendationsChipRenderer}),C=e.items.some(function(G){return!!G.displayAdRenderer}),w=this.computeShouldListItemsHaveEqualHeight(e),K=e.items.some(function(G){return!!G.gridPlaylistRenderer});
e=e.items.some(function(G){return!!G.shoppingItemCardViewModel});
return z?9:C?8:K||w?10:e?7:6};
_.Y.computeContainsPost=function(e){return!!e&&!!e.items&&e.items.some(function(z){return!!z.postRenderer})};
_.Y.computeContainsLockup=function(){if(_.M("web_horizontal_list_lockup_arrow_killswitch"))return!1;var e,z;return(e=this.data)==null?void 0:(z=e.items)==null?void 0:z.some(function(C){return!!C.lockupViewModel})};
_.Y.maybeUpdateLockupAspectRatio=function(){var e,z;if(this.computeContainsLockup()&&((e=this.data)==null?0:(z=e.items)==null?0:z.length)){var C;e=BR5((C=this.data.items[0].lockupViewModel)==null?void 0:C.contentType,this.data.force16By9ThumbnailAspectRatio);C=BgL(e);C=this.computeLockupWidth()/C;_.T8(this.hostElement,{"--yt-horizontal-list-content-height":C+"px"})}};
_.Y.computeOverrideArrowPositionForProductCard=function(e){if(this.isExpandableContent)return!1;var z;return!!(e==null?0:(z=e.items)==null?0:z.some(function(C){return!!C.verticalProductCardRenderer}))};
_.Y.computeOverrideArrowPositionForShoppingItemCard=function(e){var z;return!!(e==null?0:(z=e.items)==null?0:z.some(function(C){return!!C.shoppingItemCardViewModel}))};
_.Y.computeOverrideArrowPositionForReelItemRenderer=function(e){return this.containsReelItemRenderer(e)};
_.Y.computeHasBigThumbsReelItems=function(e,z){return e&&this.containsReelItemRenderer(z)};
_.Y.computeShouldListItemsHaveEqualHeight=function(e){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(e==null?void 0:e.itemSizeConstraint)};
_.Y.computeShouldListItemsHaveShortsHeight=function(e){return this.computeShouldListItemsHaveEqualHeight(e)&&!this.containsGridVideoRenderer(e)};
_.Y.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.Y.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.Y.containsReelItemRenderer=function(e){var z;return!!(e==null?0:(z=e.items)==null?0:z.some(function(C){return!(!C.reelItemRenderer&&!C.shortsLockupViewModel)}))};
_.Y.containsGridVideoRenderer=function(e){var z;return!!(e==null?0:(z=e.items)==null?0:z.some(function(C){return!!C.gridVideoRenderer||!!C.lockupViewModel}))};
_.Y.computeContainsGridMovieRenderer=function(e){var z;return!!(e==null?0:(z=e.items)==null?0:z.some(function(C){return!!C.gridMovieRenderer}))};
_.Y.computeOverrideArrowPositionToCenter=function(e){return this.computeIsSearchPostShelf(e)};
_.Y.computeIsSearchPostShelf=function(e){var z;return!!(e==null?0:(z=e.items)==null?0:z.some(function(C){var w,K;return((K=(w=C.postRenderer)==null?void 0:w.surface)!=null?K:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.Y.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(e){var z;return!!(e==null?0:(z=e.items)==null?0:z.some(function(C){var w,K,G;return((G=(w=C.backgroundPromoRenderer)==null?void 0:(K=w.style)==null?void 0:K.value)!=null?G:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.Y.computeIsSearchVodShelf=function(e,z){return e&&this.containsGridVideoRenderer(z)};
_.Y.computeDisableWheelScroll=function(e,z){return this.computeIsSearchVodShelf(e,z)};
_.Y.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.Y.computeShortsLockupAspectRatio=function(){return 1};
_.Y.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.T8(this.hostElement,{"--ytd-reel-item-thumbnail-height":t9s+"px"})};
rb.prototype.dataChanged=rb.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rb.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],rb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.u2.YtdHorizontalListBehavior),_.B("design:type",Object)],rb.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rb.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],rb.prototype,"isExpandableContent",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"hideShelfHeader",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"engagementPanel",void 0);_.d([_.F(),_.B("design:type",Array)],rb.prototype,"buttonClasses",void 0);_.d([_.F(),_.B("design:type",Object)],rb.prototype,"isSearch",void 0);
_.d([_.F(),_.B("design:type",Object)],rb.prototype,"disableScrollEventListener",void 0);_.d([_.F({computed:"computeInitialCountNumber(data)"}),_.B("design:type",Number)],rb.prototype,"initialCount",void 0);_.d([_.F({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],rb.prototype,"supportComponentResize",void 0);_.d([_.F({computed:"computeContainsPost(data)"}),_.B("design:type",Boolean)],rb.prototype,"containsPost",void 0);
_.d([_.F({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"containsLockup",void 0);_.d([_.F({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],rb.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.d([_.F({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"overrideArrowPositionForProductCard",void 0);_.d([_.F({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.d([_.F({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"overrideArrowPositionForReelItems",void 0);_.d([_.F({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"overrideArrowPositionForGridMovie",void 0);
_.d([_.F({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"overrideArrowPositionToCenter",void 0);_.d([_.F({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"isSearchPostShelf",void 0);_.d([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.d([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.d([_.F({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"hasBigThumbsReelItems",void 0);
_.d([_.F({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"shouldUseMixedListHeight",void 0);_.d([_.F({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"shouldUseShortsListHeight",void 0);_.d([_.F({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"gridVideoWidth",void 0);
_.d([_.F({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"isSearchVodShelf",void 0);_.d([_.F({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.B("design:type",Object)],rb.prototype,"disableWheelScroll",void 0);_.d([_.F({computed:"computeSizing(isSearch)"}),_.B("design:type",Object)],rb.prototype,"sizing",void 0);
_.d([_.F({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.B("design:type",Object)],rb.prototype,"shortsLockupAspectRatio",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rb.prototype,"dataChanged",null);
_.u(rb,"yt-horizontal-list-renderer",function(){if(BTg===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);BTg=e}e=BTg;return e},{mode:1});var gna=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
gna.prototype.subscribe=function(e,z){var C=this.subscriptions.get(e);if(!C)return function(){};
C.add(z);return function(){C.delete(z)}};
gna.prototype.unsubscribe=function(e,z){(e=this.subscriptions.get(e))&&e.delete(z)};
gna.prototype.publish=function(e,z){z=z===void 0?{}:z;(e=this.subscriptions.get(e))&&e.forEach(function(C){C(z)})};var jEg;var yvc=[10,12,14,16,18,20,24,28,32,36],cvs=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],HK=function(){var e=_.V.apply(this,arguments)||this;e.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";e.hideOverflow=!1;e.useRoboto=!1;e.fontClass="";e.overflown=!1;e.actionMap={"yt-window-resized":"resize"};return e};
_.U(HK,_.V);_.Y=HK.prototype;
_.Y.attached=function(){var e=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();_.T0(this,function(){e.resize()});
if(!_.aP){var z,C,w;(z=document)==null||(C=z.fonts)==null||(w=C.ready)==null||w.then(function(){e.resize()})}};
_.Y.dataChanged=function(){this.resize()};
_.Y.guideIsExpandedChanged=function(){this.resize()};
_.Y.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 e=this.getMaxNumLines(),z=this.getMinFont(),C=this.getMaxFont(),w=this.useRoboto?yvc:cvs;for(w=w.filter(function(G){return G<=C&&G>=z});w.length>1;){var K=Math.floor(w.length/2);
this.updateFontSize(w[K]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=e)w=w.slice(K,w.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>e)w=w.slice(0,K);else break}this.updateFontSize(w[w.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(e)}};
_.Y.handleOverflow=function(e){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>e&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",e.toString()))};
_.Y.updateFontSize=function(e){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+e;this.textNode.classList.add(this.fontClass)};
_.Y.getMaxFont=function(){var e=this.useRoboto?yvc:cvs;e=e[e.length-1];return this.maxFontSize&&this.maxFontSize<=e?this.maxFontSize:e};
_.Y.getMinFont=function(){var e=(this.useRoboto?yvc:cvs)[0];return this.minFontSize&&this.minFontSize>=e?this.minFontSize:e};
_.Y.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.Y.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.Y.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Zd(this.text).split("\n").length-1:Infinity};
_.Y.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("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
HK.prototype.guideIsExpandedChanged=HK.prototype.guideIsExpandedChanged;HK.prototype.dataChanged=HK.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],HK.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],HK.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],HK.prototype,"text",void 0);
_.d([_.F(),_.B("design:type",String)],HK.prototype,"fontFamily",void 0);_.d([_.F(),_.B("design:type",Number)],HK.prototype,"maxWidth",void 0);_.d([_.F(),_.B("design:type",Number)],HK.prototype,"maxHeight",void 0);_.d([_.F(),_.B("design:type",Number)],HK.prototype,"maxFontSize",void 0);_.d([_.F(),_.B("design:type",Number)],HK.prototype,"minFontSize",void 0);_.d([_.F(),_.B("design:type",Number)],HK.prototype,"maxLines",void 0);_.d([_.F(),_.B("design:type",Object)],HK.prototype,"hideOverflow",void 0);
_.d([_.F({selector:_.Vfk}),_.B("design:type",Boolean)],HK.prototype,"guideIsExpanded",void 0);_.d([_.nP("#container"),_.B("design:type",HTMLElement)],HK.prototype,"containerNode",void 0);_.d([_.nP("#text"),_.B("design:type",HTMLElement)],HK.prototype,"textNode",void 0);_.d([_.Ux("text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HK.prototype,"dataChanged",null);
_.d([_.Ux("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HK.prototype,"guideIsExpandedChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],HK);
_.u(HK,"yt-dynamic-sizing-formatted-string",function(){if(jEg!==void 0)return jEg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jEg=e},{mode:1});var Ava;_.ZOT=function(e){_.eh.call(this,e)};
_.U(_.ZOT,_.eh);var pbC=function(e){_.eh.call(this,e)};
_.U(pbC,_.ZOT);var Ua=function(){return _.V.apply(this,arguments)||this};
_.U(Ua,_.V);Ua.prototype.onTapSuspendedChannel=function(){var e;if((e=this.data)!=null&&e.serviceEndpoint){var z,C;(e=(C=_.r((z=this.data)==null?void 0:z.serviceEndpoint,_.oO))==null?void 0:C.url)?_.dP(e,void 0,void 0,window.top):(z=new pbC("Did not handle suspended account tap. No appealUrl."),_.yG(z))}else z=new pbC("Did not handle suspended account tap. No serviceEndpoint."),_.yG(z)};
Ua.prototype.onTap=function(){var e=this,z=_.nm(),C,w=(C=_.a5(z,{veType:7116}))!=null?C:void 0;_.Bj(z,{visualElement:w});_.SB();this.saveRoleText();var K;if((K=this.data)==null?0:K.youtubeSuspended)this.onTapSuspendedChannel();else{var G=!1,X,J;(z=(J=_.r((X=this.data)==null?void 0:X.serviceEndpoint,_.yu4))==null?void 0:J.supportedTokens)&&z.forEach(function(q){if(q.accountSigninToken)if(G=!0,e.onAccountItemTap)e.onAccountItemTap(q.accountSigninToken.signinUrl);else _.dP(q.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!G){if(X=this.get("serviceEndpoint",this.data))G=!0,this.ytComponentBehavior.resolveCommand(X);G||_.cn(new pbC("Did not handle account switch tap. No token."))}}};
Ua.prototype.saveRoleText=function(){if(this.data){var e=this.data,z=e.channelDelegationRole;if(z){var C,w=(C=_.r(e==null?void 0:e.serviceEndpoint,_.yu4))==null?void 0:C.supportedTokens;if(!w){var K,G,X,J;w=(K=_.r(e==null?void 0:e.serviceEndpoint,_.CH))==null?void 0:(G=K.popup)==null?void 0:(X=G.confirmDialogRenderer)==null?void 0:(J=X.confirmButton)==null?void 0:J.buttonRenderer;var q;w=(q=_.r(w==null?void 0:w.command,_.Gj))==null?void 0:q.commands;if(!w)return;var T;w=(T=_.r(w[1],_.yu4))==null?
void 0:T.supportedTokens}if(w){q=void 0;T=_.b(w);for(w=T.next();!w.done;w=T.next())if(w=w.value,w.datasyncIdToken){q=w.datasyncIdToken.datasyncIdToken;break}if(q){var Q;a:{if(_.y_L()&&(T=_.s3(q+"::pom"))){T=new zr(T);break a}T=void 0}(Q=T)==null||Q.set("role_text",z);if((b$m?b$m:window.location).href.indexOf("studio")!==-1&&(Q=c_1())){T=Q.src?(new URL(Q.src)).origin:"*";var m;(m=Q.contentWindow)==null||m.postMessage({action:"save_pom_role",datasyncId:q,roleText:z},T)}}}}}};
_.lB.Object.defineProperties(Ua.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.accountPhoto)==null?void 0:z.thumbnails;return C&&C.length>0&&(C[0].height===36||C[0].height===48)?C[0].height:40}}});
Ua.prototype.onTap=Ua.prototype.onTap;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Ua.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ua.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ua.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!1}),_.B("design:type",Function)],Ua.prototype,"onAccountItemTap",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ua.prototype,"enableRingForActiveAccount",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],Ua.prototype,"thumbnailSize",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ua.prototype,"onTap",null);_.d([_.SL({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Ua);
_.u(Ua,"ytd-account-item-renderer",function(){if(Ava!==void 0)return Ava;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Ava=e},{mode:1});var ewg;var vK=function(){return _.V.apply(this,arguments)||this};
_.U(vK,_.V);vK.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.lh().resolve(_.ms).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vK.prototype,"data",void 0);_.d([_.SL({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],vK);
_.u(vK,"ytd-identity-chip-renderer",function(){if(ewg!==void 0)return ewg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ewg=e},{mode:1});var zwC;var Cya;var ws4;var K_L;var I7=function(){var e=_.V.apply(this,arguments)||this;e.richItemMinWidth=_.n0("wn_grid_min_item_width",310);e.isShorts=!1;e.isWatchNext=!1;e.isExploreHub=!1;return e};
_.U(I7,_.V);_.lB.Object.defineProperties(I7.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var e=[],z=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.T8(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var C;if(((C=this.data)==null?0:C.rows)&&z)for(z*=this.data.rows,C=0;C<z;C++)e.push({});return e}}});
_.d([_.W(_.QX),_.B("design:type",Object)],I7.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],I7.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Fn,value:3}),_.B("design:type",Number)],I7.prototype,"itemsPerRow",void 0);_.d([_.F({selector:_.FF5,value:6}),_.B("design:type",Number)],I7.prototype,"slimItemsPerRow",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Number)],I7.prototype,"richItemMinWidth",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],I7.prototype,"miniMode",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I7.prototype,"isShorts",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I7.prototype,"isWatchNext",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I7.prototype,"isExploreHub",void 0);
_.d([_.P("isExploreHub"),_.F({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],I7.prototype,"shimmerAnimation",null);_.d([_.P("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.B("design:type",Array),_.B("design:paramtypes",[])],I7.prototype,"cardItems",null);_.d([_.SL({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],I7);
_.ogL=_.Yp()(I7,"ytd-ghost-grid-renderer",function(){if(K_L===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);K_L=e}e=K_L;return e},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.KU(_.f(function(e){var z=_.eQ(e,{numberOfComments:3}).numberOfComments,C=_.eQ(e,{isInitialLoad:!1}).isInitialLoad,w=_.eQ(e,{engagementPanel:!1}).engagementPanel,K=function(){return Math.min(Number(z==null?void 0:z())||20,20)};
return _.x("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.x(_.l,{cond:function(){return!(w==null?0:w())&&(C==null?void 0:C())},
then:function(){return _.x("div",{class:"ytGhostCommentsComments"},_.x("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.x("div",{class:_.qT("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.x("div",{class:_.qT("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.x("div",{class:"ytGhostCommentsGhostCard"},_.x("div",{class:"ytGhostCommentsAvatar"},_.x("div",{class:"ytGhostCommentsCircle"})),_.x("div",{class:"ytGhostCommentsComments"},_.x("div",{class:"ytGhostCommentsMeta"},
_.x("div",{class:_.qT("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.x("div",{class:_.qT("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.x("div",{class:"ytGhostCommentsComments"},_.x(_.ui,{each:function(){return Array((K==null?void 0:K())||3)}},function(){return _.x("div",{class:"ytGhostCommentsGhostCard"},_.x("div",{class:"ytGhostCommentsAvatar"},_.x("div",{class:"ytGhostCommentsCircle"})),_.x("div",{class:"ytGhostCommentsHost"},_.x("div",{class:"ytGhostCommentsMeta"},
_.x("div",{class:_.qT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.x("div",{class:_.qT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:_.qT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:"ytGhostCommentsGhostLikeDislike"},_.x("div",{class:_.qT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.x("div",{class:_.qT("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"kc"),"yt-ghost-comments",{props:{numberOfComments:_.vh,
isInitialLoad:_.vh,engagementPanel:_.vh},unsafeExternallySettableAttributes:new Set(["hidden"])});_.hq("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var WK=function(){var e=_.V.apply(this,arguments)||this;e.isOverridable=!1;e.spinnerActive=!1;e.showButton=!1;e.isCommentsSection=!1;e.engagementPanel=!0;e.isShortsGrid=!1;e.isShortsPage=!1;e.isWatchPage=!1;e.originalShowButton=!1;e.endOfList=!1;return e};
_.U(WK,_.V);_.Y=WK.prototype;_.Y.resetIntersectionObserver=function(){var e;(e=this.observer)==null||e.disconnect();this.observer=void 0};
_.Y.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var e,z;((e=this.data)==null?void 0:e.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((z=this.data)==null?0:z.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.Y.initializeIntersectionObserver=function(){var e=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(z){z=_.b(z);for(var C=z.next();!C.done;C=z.next())C.value.isIntersecting&&(e.triggerContinuation(),e.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.Y.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.Y.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var e;((e=this.data)==null?0:e.continuationEndpoint)&&(e=_.r(this.data.continuationEndpoint,_.dG))&&this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:e}}))};
_.Y.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.Y.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.Y.onServiceRequestCompleted=function(e,z){if(!_.M("kevlar_hide_spinner_on_empty_continuation_killswitch")){var C;(C=z.actions)!=null&&C.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.Y.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.Y.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.Y.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.Y.numberOfGhostCommentsChanged=function(){var e=3;if(this.engagementPanel){var z,C,w;e=Math.floor(((((z=this.hostElement)==null?void 0:(C=z.parentElement)==null?void 0:(w=C.parentElement)==null?void 0:w.scrollHeight)||108)-108)/108);e=this.isInitialLoad?Math.max(e,3):3}z=[].concat(_.s_(this.hostElement.querySelectorAll("yt-ghost-comments")));z=_.b(z);for(C=z.next();!C.done;C=z.next())C=C.value,C.numberOfComments=e,C.isInitialLoad=this.isInitialLoad,C.engagementPanel=this.engagementPanel};
_.Y.detached=function(){this.resetIntersectionObserver()};
_.lB.Object.defineProperties(WK.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
WK.prototype.numberOfGhostCommentsChanged=WK.prototype.numberOfGhostCommentsChanged;WK.prototype.continuationTriggerOffsetChanged=WK.prototype.continuationTriggerOffsetChanged;WK.prototype.showButtonChanged=WK.prototype.showButtonChanged;WK.prototype.onYtServiceRequestCompletedForButtonRenderer=WK.prototype.onYtServiceRequestCompletedForButtonRenderer;WK.prototype.onServiceRequestCompleted=WK.prototype.onServiceRequestCompleted;WK.prototype.onYtServiceRequestSentForButtonRenderer=WK.prototype.onYtServiceRequestSentForButtonRenderer;
WK.prototype.observeData=WK.prototype.observeData;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.nE.YtVisibilityBehavior),_.B("design:type",Object)],WK.prototype,"ytVisibilityBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],WK.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],WK.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],WK.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],WK.prototype,"isOverridable",void 0);_.d([_.F(),_.B("design:type",Object)],WK.prototype,"spinnerActive",void 0);_.d([_.F(),_.B("design:type",Object)],WK.prototype,"showButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],WK.prototype,"isCommentsSection",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],WK.prototype,"engagementPanel",void 0);_.d([_.F(),_.B("design:type",Object)],WK.prototype,"isShortsGrid",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.ur1}),_.B("design:type",Object)],WK.prototype,"isShortsPage",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.S2g}),_.B("design:type",Object)],WK.prototype,"isWatchPage",void 0);_.d([_.F(),_.B("design:type",Number)],WK.prototype,"continuationTriggerOffset",void 0);
_.d([_.F(),_.B("design:type",Object)],WK.prototype,"endOfList",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],WK.prototype,"isInitialLoad",void 0);_.d([_.nP("ytd-button-renderer"),_.B("design:type",_.Sw)],WK.prototype,"buttonRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],WK.prototype,"buttonOverrides",void 0);
_.d([_.F(),_.P("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.B("design:type",Object),_.B("design:paramtypes",[])],WK.prototype,"showGhostCardComments",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WK.prototype,"observeData",null);
_.d([_.Qi("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WK.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],WK.prototype,"onServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-completed-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WK.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.d([_.Ux("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WK.prototype,"showButtonChanged",null);
_.d([_.Ux("continuationTriggerOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WK.prototype,"continuationTriggerOffsetChanged",null);_.d([_.mi("isInitialLoad","engagementPanel"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WK.prototype,"numberOfGhostCommentsChanged",null);_.d([_.SL({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],WK);
_.u(WK,"ytd-continuation-item-renderer",function(){if(ws4!==void 0)return ws4;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ws4=e},{mode:1});var GJY;var PK=function(){var e=_.V.apply(this,arguments)||this;e.downloadProgress=0;e.transferState="TRANSFER_STATE_UNKNOWN";e.downloadState="DOWNLOAD_STATE_UNKNOWN";e.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";e.offlineVideoPolicyExpirationTimestamp=0;e.downloadedVideoPlaybackPosition=0;return e};
_.U(PK,_.V);PK.prototype.dataChanged=function(){var e;this.videoData=_.r((e=this.data)==null?void 0:e.renderer,ICs);this.transferStateChanged()};
PK.prototype.downloadProgressChanged=function(){if(this.entityInfo){var e=Object.assign({},this.videoData),z=uGg(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),C=z.publishedTimeText,w=z.badges;e.shortViewCountText=z.shortViewCountText;e.publishedTimeText=C;e.badges=w;this.set("videoData",e)}};
PK.prototype.transferStateChanged=function(){if(this.entityInfo){var e=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",z=_.HH(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!rk(this.entityInfo.policyEntity),C=Object.assign({},this.videoData),w=uGg(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),K=w.publishedTimeText,G=w.badges;C.shortViewCountText=
w.shortViewCountText;C.publishedTimeText=K;C.badges=G;C.isDisabled=z;C.isWatched=this.downloadedVideoPlaybackPosition>0;C.navigationEndpoint=z?void 0:d44(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var X;e&&((X=this.videoData)==null?0:X.videoId)&&!_.M("dl_resume_click_killswitch")&&(C.isDisabled=!1,C.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});C.thumbnailOverlays=fCE(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",C)}};
PK.prototype.transferStateChanged=PK.prototype.transferStateChanged;PK.prototype.downloadProgressChanged=PK.prototype.downloadProgressChanged;PK.prototype.dataChanged=PK.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],PK.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],PK.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],PK.prototype,"videoData",void 0);_.d([_.F({selector:i7,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],PK.prototype,"downloadProgress",void 0);_.d([_.F(),_.B("design:type",Number)],PK.prototype,"relativeDateReference",void 0);_.d([_.F({selector:_.dk,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],PK.prototype,"transferState",void 0);
_.d([_.F({selector:oVN,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],PK.prototype,"downloadState",void 0);_.d([_.F({selector:sQs,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],PK.prototype,"offlinePolicyAction",void 0);_.d([_.F({selector:BXo,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],PK.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.d([_.F({selector:Nq,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],PK.prototype,"downloadedVideoPlaybackPosition",void 0);_.d([_.F({selector:gq1,selectorArgs:["videoData.videoId"]}),_.B("design:type",Object)],PK.prototype,"entityInfo",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],PK.prototype,"isDownloading",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PK.prototype,"dataChanged",null);
_.d([_.Ux("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PK.prototype,"downloadProgressChanged",null);_.d([_.Ux("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PK.prototype,"transferStateChanged",null);
_.d([_.SL({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],PK);
_.u(PK,"ytd-downloaded-video-grid-video-renderer",function(){if(GJY!==void 0)return GJY;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return GJY=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var YNa;var R7=function(){};
R7.prototype.resolve=function(e,z){var C=this;return _.k(function(w){return w.yield(C.resolveCommand(e,z),0)})};var bya,L$;bya=H6o(function(e){return e.targetId},{shouldPersist:!1});
L$=bya.updateData;_.XsY=bya.useUpdatableData;var J7Y,kJY;J7Y=H6o(function(e){return e.targetId});
kJY=J7Y.updateData;_.qNa=J7Y.useUpdatableData;var xz6=Uh1.bind(null,L$),TY4=Uh1.bind(null,kJY);(function(e,z,C){var w=_.r(C==null?void 0:C.updatedRenderer,_.C9o);return w?e({targetId:z},function(){return w}):!1}).bind(null,L$);var hr=function(){};
_.U(hr,R7);hr.prototype.resolveCommand=function(e){var z;return _.k(function(C){z=_.r(e,_.FGg);if(!z)return C.return();xz6(z.targetId,z);_.E_(C)})};var Oa=function(){var e=_.rO.apply(this,arguments)||this;e.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return e};
_.U(Oa,_.rO);_.Y=Oa.prototype;_.Y.configureContinuationPathMap=function(){return{}};
_.Y.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.Y.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.Y.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.Y.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.Y.handleAppendContinuationItemsAction=function(e){var z=_.r(e,_.jJa);if(this.data&&this.data.targetId&&z&&this.continuationPathMap&&z.targetId===this.data.targetId){var C=xK8(e),w=C&&this.continuationPathMap[C];if(w&&C)if(e=this.get(w,this.data)){a:{for(C=0;C<e.length;C++){var K=e[C],G=void 0,X=!!_.r((G=_.r(K,FhY))==null?void 0:G.content,_.ruY);if(_.r(K,_.GO)||X)break a}C=e.length}w="data."+w;z.continuationItems?C===e.length-1?(this.pop(w),this.push.apply(this,[w].concat(_.s_(z.continuationItems)))):
C===e.length?this.push.apply(this,[w].concat(_.s_(z.continuationItems))):this.splice.apply(this,[w,C,1].concat(_.s_(z.continuationItems))):this.splice(w,C,1);(_.M("web_enable_voting_animation")||_.M("enable_music_web_cairo_voting_animation"))&&_.pi(this.hostElement,"yt-append-continuation-items-action-finished");_.pi(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.AX(new _.uh("append continuation items does not exist",C));else _.AX(new _.uh("append continuation path does not exist",
C))}};
_.Y.handleReloadContinuationItemsCommand=function(e){var z=_.r(e,_.FGg);if(this.data&&z){if(_.M("web_client_explore_hub")||_.M("web_explore_hub_on_hover")||_.M("web_client_explore_hub_on_hover")||!_.M("web_reload_continuation_items_command_resolver_killswitch"))try{_.lh().resolve(hr).resolveCommand(e)}catch(G){}if(this.data.targetId&&this.continuationPathMap&&z.targetId===this.data.targetId&&(!_.M("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||z.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var C,
w=(C=z.slot)==null?void 0:C.replace("RELOAD_CONTINUATION_SLOT_","");C=(e=xK8(e)+"-"+(w==null?void 0:w.toLowerCase()))&&this.continuationPathMap[e];if(!C||!e||!w)_.AX(new _.uh("reload continuation path does not exist",e));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(z)){if(z.replaceWithFirstItem){var K;this.set("data."+C,((K=z.continuationItems)==null?0:K.length)?z.continuationItems[0]:{})}else this.set("data."+C,z.continuationItems?z.continuationItems:
[]);this.continuationIsReloading=!1;this.reloadUiContent=void 0;_.pi(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.Y.handleShowReloadUiCommand=function(e){e=_.r(e,XvC);var z;((z=this.data)==null?0:z.targetId)&&(e==null?0:e.targetId)&&e.targetId===this.data.targetId&&(this.continuationIsReloading=!0,e.content&&(this.reloadUiContent=e.content))};
Oa.prototype.observeData=Oa.prototype.observeData;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Oa.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Oa.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Oa.prototype,"data",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Oa.prototype,"continuationIsReloading",void 0);
_.d([_.F(),_.B("design:type",Object)],Oa.prototype,"reloadUiContent",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Oa.prototype,"observeData",null);_.d([_.HI()],Oa);_.Ea=[_.Q5.YtComponentBehavior,_.ch.YtActionHandlerBehavior,Oa.prototype];_.FO={};_.FO.YtNextContinuationBehavior=[_.LE.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",_.lE(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.lE(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(e,z){e.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,z,{}):(e={locationRetrieved:function(C){this.makeNextContinuationRequest_(C,z,{})}.bind(this)},_.pi(this.hostElement,"yt-retrieve-location",e))},
makeNextContinuationRequest_:function(e,z,C){_.FV("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();e=z(e);var w;this.canUseContextualNetworkManager_()&&(w=this.getNetworkManager());w||(w=_.lh().resolve(_.UG));z=_.tq.instance;if(_.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&z){w=_.zU([e.startsWith("/")?e.substr(1):e]);var K,G;C=_.Hc(z,{},w,C==null?void 0:(K=C.context)==null?void 0:(G=K.clickTracking)==null?void 0:G.clickTrackingParams).then(function(X){return{response:X}})}else C=
this.nextContinuation.usePost?w.postData(e,C):w.fetchData(e);
C.then(this.updateNextContinuationData_.bind(this,e));this.pendingContinuationRequest_=C;this.startListeningForNavigate_()},
updateNextContinuationData_:function(e,z){var C=this;_.FV("ncl");this.pendingContinuationRequest_=void 0;if(z){var w={};this.nextContinuation&&(w=this.nextContinuation);if(z.response&&z.response.continuationContents&&z.response.continuationContents[w.continuationType]){e=z.response.continuationContents[w.continuationType];var K=w.header||"data.header",G=e[w.responseHeaderKey||"header"];G&&this.set(K,G);K=w.contentsArray||"data.contents";G=this.getContents_(e,w.responseContentsKey||"contents")||[];
this.pathExists_(K)?(G.unshift(K),this.push.apply(this,G)):this.set(K,G);G&&(vY1(_.nm(),z.response,this.hostElement,function(X){_.eA(C.hostElement,"yt-store-grafted-ve-action",[X])}),_.pi(this.hostElement,"yt-next-continuation-data-updated",{continuationData:z,
page:this,contentsArray:K}));this.set(w.continuationsArray||"data.continuations",e[w.responseContinuationsKey||"continuations"]||[])}else z.reload?_.AX(new _.uh("Reloading from continuation is unsupported")):z.responseContext&&z.responseContext.errors||(delete z.xsrf_token,delete z.timing,delete z.endpoint,delete z.csn,z.responseContext&&delete z.responseContext.serviceTrackingParams,K={request:_.bh(e,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(z).sort()},z.response&&(K.responseContentKeys=
Object.keys(z.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(K.continuationType=this.nextContinuation.continuationType.substr(0,256)),z=new _.uh("Malformed continuation",K),e.indexOf("/comment_service_ajax")==0?_.AX(z):_.yG(z)),this.set(w.continuationsArray||"data.continuations",[])}else _.cn(new _.uh("Missing continuation response",e))},
getContents_:function(e,z){z=z.split(".");return _.de.getValueByKeys(e,z)},
pathExists_:function(e){var z=this;e=e.toString().split(".");for(var C=0;C<e.length;C++)if(z=z[e[C]],z===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var $zL;var lmS;var Vn=function(){var e=_.V.apply(this,arguments)||this;e.triggered_=!1;return e};
_.U(Vn,_.V);_.Y=Vn.prototype;_.Y.attached=function(){this.maybeTriggerAutoload()};
_.Y.detached=function(){this.hasBeenTriggered_=!1};
_.Y.onPrescanVisible=function(){this.onShow()};
_.Y.onShow=function(){this.showButton||this.trigger()};
_.Y.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.pi(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.Y.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.Y.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.Y.computeLabel_=function(e,z){return e===void 0?null:e.label||!z?e.label:this.showMoreText_};
_.Y.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.Y.getContinuationUrl=function(e){var z={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(z.itct=this.data.clickTrackingParams);return _.XF(e,z)};
_.Y.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Vn.prototype.showButtonChanged_=Vn.prototype.showButtonChanged_;Vn.prototype.observeData_=Vn.prototype.observeData_;_.d([_.W(_.nE.YtVisibilityBehavior),_.B("design:type",Object)],Vn.prototype,"ytVisibilityBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Vn.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Vn.prototype,"showButton",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],Vn.prototype,"showIcon",void 0);_.d([_.F({computed:"computeLabel_(data, showButton)"}),_.B("design:type",Object)],Vn.prototype,"label",void 0);_.d([_.F({value:_.AO(_.kk("SHOW_MORE",void 0,"Show More"))}),_.B("design:type",Object)],Vn.prototype,"showMoreText_",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Vn.prototype,"spinnerActive_",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Vn.prototype,"hasBeenTriggered_",void 0);
_.d([_.F({value:void 0}),_.B("design:type",String)],Vn.prototype,"observeVisibleOption",void 0);_.d([_.F({value:void 0}),_.B("design:type",String)],Vn.prototype,"observeHiddenOption",void 0);_.d([_.F({value:"observe_once"}),_.B("design:type",Object)],Vn.prototype,"observePrescanOption",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vn.prototype,"observeData_",null);
_.d([_.mi("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Vn.prototype,"showButtonChanged_",null);_.d([_.fP({is:"yt-next-continuation",disableElementRegistration:!0})],Vn);
_.u(Vn,"yt-next-continuation",function(){if(lmS===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;$zL===void 0&&($zL=document.createElement("template"));var w=$zL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);lmS=e}e=lmS;return e},{mode:2});var Qdc;var mzX;var f$=function(){return _.V.apply(this,arguments)||this};
_.U(f$,_.V);f$.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],f$.prototype,"data",void 0);_.d([_.fP({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],f$);
_.u(f$,"yt-music-pass-small-feature-info-renderer",function(){if(mzX===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Qdc===void 0&&(Qdc=document.createElement("template"));var w=Qdc;C.call(z,w.content.cloneNode(!0),e.content.firstChild);mzX=e}e=mzX;return e},{mode:2});_.hq("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var SI=function(){var e=_.V.apply(this,arguments)||this;e.isCollapsible=!1;e.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return e};
_.U(SI,_.V);_.Y=SI.prototype;_.Y.computeIsCollapsible=function(e){return!!(((e==null?0:e.showMoreText)||(e==null?0:e.visibleRowCount))&&(e==null?0:e.isCollapsible))};
_.Y.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"}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.Y.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.Y.onIronResize=function(){var e=this;_.tK(this,"updateGridInitItems",function(){e.maybeUpdateInitialItemsDisplayed()})};
_.Y.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var e=this.getVisibleWidth();e!==0&&(e=Math.floor(e/214)*(this.data.visibleRowCount||2),e!==this.initialCount&&(this.initialCount=e,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.Y.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.Y.computeExpandVisible=function(e,z,C,w){return e&&z&&C&&!!w&&!!w.showMoreText};
_.Y.computeShowMoreButton=function(e){return{text:e,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.Y.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.Y.initCollapsed=function(){var e=this;this.ytLazyListBehavior.canShowMore=!1;var z;(this.collapsed=!((z=this.data)==null||!z.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.T0(this,function(){_.zj(e.hostElement,"yt-refit-popups-action")})};
_.Y.fillRestIfNotCollapsible=function(){var e=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!e||this.ytLazyListBehavior.fillRemainingListItems()};
_.Y.computeViewAllHidden=function(e,z){return e||!z.viewAllEndpoint};
SI.prototype.fillRestIfNotCollapsible=SI.prototype.fillRestIfNotCollapsible;SI.prototype.initCollapsed=SI.prototype.initCollapsed;SI.prototype.onIronResize=SI.prototype.onIronResize;SI.prototype.persistentGuideChanged=SI.prototype.persistentGuideChanged;_.d([_.W(_.oY),_.B("design:type",Object)],SI.prototype,"ironResizableBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],SI.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],SI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],SI.prototype,"ytLazyListBehavior",void 0);_.d([_.W(_.FO.YtNextContinuationBehavior),_.B("design:type",Object)],SI.prototype,"ytNextContinuationBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],SI.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.W(_.Ea),_.B("design:type",Object)],SI.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],SI.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],SI.prototype,"collapsed",void 0);_.d([_.F(),_.B("design:type",Number)],SI.prototype,"initialCount",void 0);_.d([_.F({computed:"computeShowMoreButton(data.showMoreText)"}),_.B("design:type",Object)],SI.prototype,"showMoreButton",void 0);
_.d([_.F({computed:"computeIsCollapsible(data)"}),_.B("design:type",Object)],SI.prototype,"isCollapsible",void 0);_.d([_.nP("#items"),_.B("design:type",HTMLElement)],SI.prototype,"items",void 0);_.d([_.Ux("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SI.prototype,"persistentGuideChanged",null);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SI.prototype,"onIronResize",null);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SI.prototype,"initCollapsed",null);_.d([_.Ux("canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SI.prototype,"fillRestIfNotCollapsible",null);_.d([_.SL({is:"ytd-grid-renderer",disableElementRegistration:!0})],SI);
_.u(SI,"ytd-grid-renderer",function(){if(YNa!==void 0)return YNa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return YNa=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var uc=function(){return _.V.apply(this,arguments)||this};
_.U(uc,_.V);
uc.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"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uc.prototype,"data",void 0);_.d([_.SL({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],uc);
_.u(uc,"ytd-carousel-ad-renderer",function(){if(Cya!==void 0)return Cya;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Cya=e},{mode:1});var am6;var db=function(){return _.V.apply(this,arguments)||this};
_.U(db,_.V);_.Y=db.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,db.JSC$15676_CLICK_LOCATION_ID_MAP))};
_.Y.onSitelinkTap=function(e){e.stopPropagation();var z,C,w=e==null?void 0:(z=e.model)==null?void 0:(C=z.item)==null?void 0:C.onTap;w&&this.ytSparklesClickLocationBehavior.handleClick(w,e,!1)};
_.Y.onTap=function(e){var z=this.data&&this.data.content&&this.data.content.navigationEndpoint;z&&this.ytSparklesClickLocationBehavior.handleClick(z,e,!1)};
_.Y.sendImpression=function(){if(this.data&&this.data.content)for(var e=_.b(this.data.content.impressionEndpoints||[]),z=e.next();!z.done;z=e.next()){z=_.b(z.value.loggingUrls||[]);for(var C=z.next();!C.done;C=z.next())C=C.value,C.baseUrl&&YO(C.baseUrl,C.attributionSrcMode)}};
db.prototype.onTap=db.prototype.onTap;db.prototype.dataChanged=db.prototype.dataChanged;db.JSC$15676_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"]]);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],db.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],db.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],db.prototype,"data",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],db.prototype,"dataChanged",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],db.prototype,"onTap",null);_.d([_.SL({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],db);
_.u(db,"ytd-promoted-sparkles-text-search-renderer",function(){if(am6!==void 0)return am6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return am6=e},{mode:1});var ngs;var DR=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-mute-ad-action":"handleMuteAd"};return e};
_.U(DR,_.V);_.Y=DR.prototype;_.Y.created=function(){this.activeView=new NC(this.hostElement)};
_.Y.configureRendererStamper=function(){return{"data.menu":{id:_.M("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]]"}}}}}};
_.Y.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.Y.computeHasAdBadge=function(e){return!(e==null||!e.adBadge)};
_.Y.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",DR.JSC$15685_DEFAULT_AD_BADGE_RENDERER),_.k$(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&sZ(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,DR.JSC$15685_CLICK_LOCATION_ID_MAP))};
_.Y.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var e;(((e=this.data)==null?void 0:e.impressionCommands)||[]).forEach(function(z){z=_.b(z.loggingUrls||[]);for(var C=z.next();!C.done;C=z.next())C=C.value,C.baseUrl&&YO(C.baseUrl,C.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.Y.onTap=function(e){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint,w;(z=(w=this.data)==null?void 0:w.thumbnailNavigationEndpoint)&&_.C7(_.cJ(e),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(z,e,!1):C&&this.ytSparklesClickLocationBehavior.handleClick(C,e,!1)};
_.Y.handleMuteAd=function(){this.collapsed=!0};
_.Y.attached=function(){var e=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B$(e.activeView)})};
_.Y.detached=function(){_.M("stop_av_measurement_on_detach")&&B$(this.activeView)};
_.lB.Object.defineProperties(DR.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var e;return!(((e=this.data)==null?void 0:e.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var e;return!(((e=this.data)==null?void 0:e.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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}}});
DR.prototype.dataChanged=DR.prototype.dataChanged;
DR.JSC$15685_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"]]);
DR.JSC$15685_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],DR.prototype,"actionHandlerBehavior",void 0);
_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],DR.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],DR.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],DR.prototype,"collapsed",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],DR.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],DR.prototype,"biggerThumbsStyle",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.B("design:type",Boolean)],DR.prototype,"fixAlignmentSmallScreens",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs_square")}}),
_.B("design:type",Boolean)],DR.prototype,"useBiggerThumbsSquare",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.mediaHoverOverlay"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DR.prototype,"hideHoverOverlay",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DR.prototype,"webSearchLayout",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DR.prototype,"webSearchLayoutLandscape",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DR.prototype,"webSearchLayoutSquare",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DR.prototype,"sparklesCtaNoBackground",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.actionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DR.prototype,"hideActionButton",null);_.d([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],DR.prototype,"buttonOverride",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.B("design:type",Boolean)],DR.prototype,"hasNewAdBadge",void 0);_.d([_.P("data.promotedSparklesWebStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],DR.prototype,"useRoundedBadge",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],DR.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],DR);
_.u(DR,"ytd-promoted-sparkles-web-renderer",function(){if(ngs!==void 0)return ngs;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ngs=e},{mode:1});var MM6;var ic=function(){var e=_.V.apply(this,arguments)||this;e.isInlinePreviewTriggered=!1;e.enableMonoStyle=_.M("enable_default_mono_cta_migration_web_client");return e};
_.U(ic,_.V);_.Y=ic.prototype;_.Y.created=function(){this.activeView=new NC(this.hostElement)};
_.Y.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]]"}}}}}};
_.Y.computeShowCta=function(e){return!(e==null||!e.ctaRenderer)};
_.Y.onCtaClick=function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.ctaRenderer)==null?void 0:(C=z.buttonRenderer)==null?void 0:C.command;w&&this.ytComponentBehavior.resolveCommand(w)};
_.Y.onWatchButtonClick=function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.watchButtonRenderer)==null?void 0:(C=z.buttonRenderer)==null?void 0:C.command;w&&this.ytComponentBehavior.resolveCommand(w)};
_.Y.onTap=function(){};
_.Y.dataChanged=function(){if(this.data){var e;_.M("enable_inline_muted_playback_on_web_search")&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",ic.JSC$15689_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&sZ(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ic.JSC$15689_DEFAULT_CLICK_LOCATION_BEHAVIOR,ic.JSC$15689_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"));var z;if(((z=this.data)==null?0:z.forceImpAutoplay)&&_.M("enable_force_imp_autoplay_on_desktop_search")){var C;(C=this.JSC$15690_inlinePreviewHoverListener)==null||Tlk(C)}}};
_.Y.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var e=_.b(this.data.impressionUrls),z=e.next();!z.done;z=e.next())z=z.value,ZP1(z,e9o(z));this.data.impressionsFired=!0}};
_.Y.maybeComputeHref=function(){return null};
_.Y.computeIsShortDR=function(e){return!(e==null||!e.watchButtonRenderer)&&!(e==null||!e.ctaRenderer)&&!!this.enableShortDR};
_.Y.computeIsNewUiOrShortDr=function(e){return!!this.enableUiUpdate||this.computeIsShortDR(e)};
_.Y.computeIsNewUiAndNotShortDr=function(e){return!!this.enableUiUpdate&&!this.computeIsShortDR(e)};
_.Y.computeHideAvatar=function(e){return!((e==null?0:e.channelThumbnail)&&this.computeIsNewUiOrShortDr(e))};
_.Y.onClick=function(e){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint;if(this.enableShortDR&&C&&(_.r(C,_.N$)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(C,e,!!_.r(C,_.N$)),e.stopPropagation();else if(C&&_.r(C,_.N$))this.ytSparklesClickLocationBehavior.handleClick(C,e,!0),e.stopPropagation();else if(C){var w,K;((w=this.data)==null?0:w.navigationEndpoint)&&((K=this.data)==null?0:K.adPlaybackContextParams)&&(z=this.data.navigationEndpoint,e=this.data.adPlaybackContextParams,
z.commandMetadata&&_.r(z.commandMetadata,_.XV)&&_.r(z.commandMetadata,_.XV).url&&(z=_.YB(_.r(z.commandMetadata,_.XV).url).adurl)&&_.zNg(z)&&_.gN(_.Sy(z),{encoded_ad_playback_context:e}));this.ytComponentBehavior.resolveCommand(C)}};
_.Y.computeButtonOverride=function(e){if(this.computeIsNewUiOrShortDr(e))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.Y.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Y.onThumbnailContainerClick=function(e){this.onClick(e)};
_.Y.computeThumbnailWidth=function(e,z){return e?z==="MASSIVE"?600:z==="BIG"?500:z==="MEDIUM"?450:420:360};
_.Y.attached=function(){var e=this,z;_.M("enable_inline_muted_playback_on_web_search")&&((z=this.data)==null?0:z.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B$(e.activeView)})};
_.Y.detached=function(){var e;_.M("enable_inline_muted_playback_on_web_search")&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.M("stop_av_measurement_on_detach")&&B$(this.activeView)};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15690_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:EnL})};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15690_inlinePreviewHoverListener)==null||on(e)};
ic.prototype.dataChanged=ic.prototype.dataChanged;ic.prototype.onTap=ic.prototype.onTap;ic.JSC$15689_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};ic.JSC$15689_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ic.JSC$15689_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"}];_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],ic.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],ic.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.nP("#main-container"),_.B("design:type",HTMLElement)],ic.prototype,"mainContainer",void 0);
_.d([_.F(),_.B("design:type",Object)],ic.prototype,"isInlinePreviewTriggered",void 0);_.d([_.F(),_.B("design:type",Object)],ic.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],ic.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_video_display_compact_button_group_for_desktop_search")}}),
_.B("design:type",Boolean)],ic.prototype,"enableShortDR",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_vac_ui_update_for_desktop_search")}}),
_.B("design:type",Boolean)],ic.prototype,"enableUiUpdate",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],ic.prototype,"biggerThumbsStyle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.B("design:type",Boolean)],ic.prototype,"showCta",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.B("design:type",Boolean)],ic.prototype,"isShortDr",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.B("design:type",Boolean)],ic.prototype,"isShortDrOrNewUi",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.B("design:type",Boolean)],ic.prototype,"isNewUiAndNotShortDr",void 0);_.d([_.F({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],ic.prototype,"buttonOverride",void 0);_.d([_.F({computed:"computeSecondaryButtonOverride(data)"}),_.B("design:type",Object)],ic.prototype,"secondaryButtonOverride",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ic.prototype,"enableMonoStyle",void 0);
_.d([_.nP("ytd-thumbnail"),_.B("design:type",HTMLElement)],ic.prototype,"thumbnail",void 0);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ic.prototype,"onTap",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ic.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],ic);
_.u(ic,"ytd-promoted-video-renderer",function(){if(MM6!==void 0)return MM6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return MM6=e},{mode:1});var r7s;var NQ=function(){var e=_.V.apply(this,arguments)||this;e.useRoundedBadge=!0;e.sitelinkIds=[];return e};
_.U(NQ,_.V);_.Y=NQ.prototype;
_.Y.configureRendererStamper=function(){return{"data.menu":{id:_.M("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]]"}}}}}};
_.Y.dataChanged=function(){var e;(e=this.data)!=null&&e.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,NQ.JSC$15695_CLICK_LOCATION_ID_MAP)};
_.Y.onTap=function(e){var z,C=(z=this.data)==null?void 0:z.navigationCommand;C&&!_.C7(_.cJ(e),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(C,e,!1)};
_.Y.onSitelinkTap=function(e){var z,C,w=e==null?void 0:(z=e.model)==null?void 0:(C=z.item)==null?void 0:C.onTap;w&&this.ytSparklesClickLocationBehavior.handleClick(w,e,!1)};
_.Y.configureSitelinkClickTargets=function(){var e=this,z,C,w=(z=this.data)==null?void 0:(C=z.clickLocationTargets)==null?void 0:C.find(function(K){return K.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
w&&_.XC(this.hostElement).querySelectorAll(".sitelink").forEach(function(K){_.k$(K,"yt-simple-endpoint",!0);e.sitelinkIds.push(K.id);var G,X;(G=e.ytSparklesClickLocationBehavior)==null||(X=G.clickTargetMap)==null||X.set(K.id,w)})};
_.Y.sendImpression=function(){var e,z,C=((e=this.data)==null?void 0:(z=e.impressionCommand)==null?void 0:z.loggingUrls)||[];e=_.b(C);for(z=e.next();!z.done;z=e.next())z=z.value,z.baseUrl&&YO(z.baseUrl,z.attributionSrcMode)};
_.Y.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.lB.Object.defineProperties(NQ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
NQ.prototype.onTap=NQ.prototype.onTap;NQ.prototype.dataChanged=NQ.prototype.dataChanged;NQ.JSC$15695_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"]]);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],NQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],NQ.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],NQ.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NQ.prototype,"showFavicon",null);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],NQ.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],NQ.prototype,"biggerThumbsStyle",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.B("design:type",Boolean)],NQ.prototype,"enableThumbnailScalingFix",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NQ.prototype,"dataChanged",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],NQ.prototype,"onTap",null);_.d([_.SL({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],NQ);
_.u(NQ,"ytd-text-image-no-button-layout-renderer",function(){if(r7s!==void 0)return r7s;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return r7s=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var HyS;var sa=function(){var e=_.V.apply(this,arguments)||this;e.isInlinePlaybackState=!1;e.uiUpdate=_.M("web_modern_buttons");e.hideCta=_.M("hide_cta_for_home_web_video_ads");e.noBottomMargin=!1;e.animateInTimeStamp=_.n0("hide_cta_for_home_web_video_ads_animate_in_time");e.animateInCta=!1;e.isHovered=!1;e.enableMonoStyle=_.M("enable_default_mono_cta_migration_web_client");e.player=null;e.JSC$15702_playerEvents=new Map;e.JSC$15702_preventProgressSaveTimer=null;e.delayedCtaJobId=null;return e};
_.U(sa,_.V);_.Y=sa.prototype;_.Y.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]]"}}}}}};
_.Y.attached=function(){this.JSC$15702_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15702_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.M("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.Y.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15702_playerEvents)};
_.Y.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",sa.JSC$15701_DEFAULT_CLICK_LOCATION_BEHAVIOR,sa.JSC$15701_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.Y.hoverChanged=function(){var e=this;this.delayedCtaJobId&&(_.c5.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.M("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Oz(_.c5,function(){e.buttonContainer.classList.add("show-delayed-buttons")},_.n0("delayed_cta_on_web_delay_milliseconds")))};
_.Y.setPlayer=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return(z=_.zj(e.hostElement,"yt-get-inline-preview-player-action"))&&z[0]?C.yield(z[0].getPlayerPromise(),3):C.jumpTo(0);e.player=C.yieldResult;e.ytPlayerListenerBehavior.listenToPlayerEvents(e.player,e.JSC$15702_playerEvents);_.E_(C)})};
_.Y.onPlaybackStart=function(){var e=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15702_preventProgressSaveTimer=_.XW(_.c5,function(){e.JSC$15702_preventProgressSaveTimer=null},1E4))};
_.Y.onVideoProgress=function(e){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&e>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.Y.resetPreventProgressSaveTimer=function(){_.c5.cancelJob(this.JSC$15702_preventProgressSaveTimer);this.JSC$15702_preventProgressSaveTimer=null};
_.Y.getSimpleString=function(e){return _.Zd(e)};
_.Y.onClick=function(e){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint,w;z=(w=this.data)==null?void 0:w.channelEndpoint;var K,G;((G=_.r((K=this.data)==null?void 0:K.adCtaButton,_.a2))==null?0:G.command)&&_.C7(_.cJ(e),this.hostElement,["call-to-action"])||(z&&_.C7(_.cJ(e),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(z,e,!1):!_.C7(_.cJ(e),this.hostElement,
["secondary-button"])&&C&&(_.M("enable_short_dr_for_desktop_launchable")?(w=!!_.r(C,_.N$),this.isInlinePlaybackState&&w&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(C,e,w)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(C,e,!0))))}};
_.Y.updateWatchEndpointStartTime=function(){var e,z;this.player&&((e=this.data)==null?0:e.inlinePlaybackEndpoint)&&((z=this.data)==null?0:z.navigationEndpoint)&&!this.JSC$15702_preventProgressSaveTimer&&(e=Math.floor(this.player.getCurrentTime()),_.r(this.data.navigationEndpoint,_.N$).startTimeSeconds=e,_.r(this.data.inlinePlaybackEndpoint,_.N$).startTimeSeconds=e)};
_.Y.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.Y.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.lB.Object.defineProperties(sa.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.M("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.watchButton)&&!((z=this.data)==null||!z.adCtaButton)}}});
sa.prototype.hoverChanged=sa.prototype.hoverChanged;sa.prototype.dataChanged=sa.prototype.dataChanged;
sa.JSC$15701_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"]]);
sa.JSC$15701_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"}];
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],sa.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],sa.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],sa.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sa.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sa.prototype,"isInlinePlaybackState",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],sa.prototype,"miniMode",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sa.prototype,"uiUpdate",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sa.prototype,"hideCta",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sa.prototype,"noBottomMargin",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sa.prototype,"animateInCta",void 0);_.d([_.F({computed:"computeButtonOverride(uiUpdate)"}),_.B("design:type",Object)],sa.prototype,"buttonOverride",void 0);
_.d([_.F({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.B("design:type",Object)],sa.prototype,"secondaryButtonOverride",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sa.prototype,"isHovered",void 0);_.d([_.nP("#button-container"),_.B("design:type",HTMLElement)],sa.prototype,"buttonContainer",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],sa.prototype,"typographyBump",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sa.prototype,"typographyBumpV2",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sa.prototype,"enableMonoStyle",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sa.prototype,"dataChanged",null);
_.d([_.mi("isHovered"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sa.prototype,"hoverChanged",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sa.prototype,"isButtonGroup",null);_.d([_.SL({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],sa);
_.u(sa,"ytd-ad-inline-playback-meta-block",function(){if(HyS!==void 0)return HyS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return HyS=e},{mode:_.bA("kevlar_poly_si_batch_j065")?1:2});var Uzo;var BK=function(){var e=_.V.apply(this,arguments)||this;e.noBottomMargin=!1;e.isInlinePreviewTriggered=!1;e.JSC$15707_activeViewMeasurementDataResolver=_.cj();return e};
_.U(BK,_.V);_.Y=BK.prototype;_.Y.created=function(){this.activeView=new NC(this.hostElement)};
_.Y.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.attached=function(){var e=this;this.updateInlinePreviewHoverListeners();this.JSC$15707_activeViewMeasurementDataResolver.promise.then(function(z){sZ(e.activeView,z)});
_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B$(e.activeView)})};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners();_.M("stop_av_measurement_on_detach")&&B$(this.activeView)};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15707_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:this.JSC$15707_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:EnL})};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15707_inlinePreviewHoverListener)==null||on(e)};
_.Y.onDataChanged=function(){var e;((e=this.data)==null?0:e.activeView)&&this.JSC$15707_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",BK.JSC$15706_DEFAULT_CLICK_LOCATION_BEHAVIOR,BK.JSC$15706_CLICK_LOCATION_ID_MAP);this.thumbnail&&(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"));var z;if((z=this.data)==
null?0:z.forceImpAutoplay){var C;(C=this.JSC$15707_inlinePreviewHoverListener)==null||Tlk(C)}};
_.Y.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.Y.onThumbnailContainerClick=function(e){if(this.data&&this.data.navigationEndpoint){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(C,e,!!_.r(C,_.N$));e.stopPropagation()}};
_.Y.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Y.impressionLog=function(){var e=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var z,C,w=(C=_.r((z=this.data)==null?void 0:z.onImpression,_.Gj))==null?void 0:C.commands;w&&(w.forEach(function(K){K.clickTrackingParams&&delete K.clickTrackingParams;e.ytComponentBehavior.resolveCommand(K)}),this.data.impressionsFired=!0)}};
_.lB.Object.defineProperties(BK.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15707_inlinePreviewHoverListener)==null?0:MN(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
BK.prototype.onTypographyBumpChanged=BK.prototype.onTypographyBumpChanged;BK.prototype.onDataChanged=BK.prototype.onDataChanged;BK.JSC$15706_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);BK.JSC$15706_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"}];
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],BK.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],BK.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],BK.prototype,"ytdLockupBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],BK.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],BK.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BK.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],BK.prototype,"noBottomMargin",void 0);_.d([_.F(),_.B("design:type",Object)],BK.prototype,"isInlinePreviewTriggered",void 0);
_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],BK.prototype,"miniMode",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],BK.prototype,"typographyBump",void 0);_.d([_.nP("ytd-thumbnail"),_.B("design:type",HTMLElement)],BK.prototype,"thumbnail",void 0);_.d([_.nP("#dismissible"),_.B("design:type",HTMLElement)],BK.prototype,"JSC$15707_dismissibleMedia",void 0);
_.d([_.nP("ytd-ad-inline-playback-meta-block"),_.B("design:type",HTMLElement)],BK.prototype,"adInlinePlaybackMetaBlock",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BK.prototype,"onDataChanged",null);_.d([_.Ux("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BK.prototype,"onTypographyBumpChanged",null);
_.d([_.P("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],BK.prototype,"isHovered",null);_.d([_.SL({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],BK);
_.u(BK,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(Uzo!==void 0)return Uzo;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Uzo=e},{mode:1});var vgU;var tr=function(){var e=_.V.apply(this,arguments)||this;e.isInlinePreviewTriggered=!1;e.JSC$15710_activeViewMeasurementDataResolver=_.cj();return e};
_.U(tr,_.V);_.Y=tr.prototype;_.Y.created=function(){this.activeView=new NC(this.hostElement)};
_.Y.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.attached=function(){var e=this;this.updateInlinePreviewHoverListeners();this.JSC$15710_activeViewMeasurementDataResolver.promise.then(function(z){sZ(e.activeView,z)})};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15710_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:this.JSC$15710_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:EnL})};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$15710_inlinePreviewHoverListener)==null||on(e)};
_.Y.onDataChanged=function(){var e;((e=this.data)==null?0:e.activeView)&&this.JSC$15710_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tr.JSC$15709_DEFAULT_CLICK_LOCATION_BEHAVIOR,tr.JSC$15709_CLICK_LOCATION_ID_MAP);this.thumbnail&&(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"))};
_.Y.onThumbnailContainerClick=function(e){if(this.data&&this.data.navigationEndpoint){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(C,e,!0);e.stopPropagation()}};
_.Y.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.Y.impressionLog=function(){var e=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var z,C,w=(C=_.r((z=this.data)==null?void 0:z.onImpression,_.Gj))==null?void 0:C.commands;w&&(w.forEach(function(K){K.clickTrackingParams&&delete K.clickTrackingParams;_.lh().resolve(_.ms).resolveCommand(K,{form:{element:e.hostElement}})}),this.data.impressionsFired=!0)}};
_.lB.Object.defineProperties(tr.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$15710_inlinePreviewHoverListener)==null?0:MN(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tr.prototype.onDataChanged=tr.prototype.onDataChanged;tr.JSC$15709_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tr.JSC$15709_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"}];_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],tr.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],tr.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],tr.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],tr.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],tr.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],tr.prototype,"isInlinePreviewTriggered",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],tr.prototype,"miniMode",void 0);_.d([_.nP("ytd-thumbnail"),_.B("design:type",HTMLElement)],tr.prototype,"thumbnail",void 0);_.d([_.nP("#dismissible"),_.B("design:type",HTMLElement)],tr.prototype,"JSC$15710_dismissibleMedia",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tr.prototype,"onDataChanged",null);_.d([_.P("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tr.prototype,"isHovered",null);_.d([_.SL({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],tr);
_.u(tr,"ytd-video-display-full-buttoned-renderer",function(){if(vgU!==void 0)return vgU;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vgU=e},{mode:1});var Ys=function(e,z,C,w){w=w===void 0?!1:w;_.eh.call(this,e);this.adsClientErrorMessage=C;this.aggressivelySample=w;this.args=[];z&&this.args.push(z)};
_.U(Ys,_.eh);var oe=function(e,z,C,w){w=w===void 0?!1:w;_.eh.call(this,e);this.adsClientErrorMessage=C;this.aggressivelySample=w;this.args=[];z&&this.args.push(z)};
_.U(oe,_.eh);var ImY=function(e){_.Sn.call(this);var z=this;this.initializationFunction=e;this.instance=null;this.addOnDisposeCallback(function(){_.XU(z.instance);z.instance=null})};
_.U(ImY,_.Sn);ImY.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Am("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var EY8=function(){var e=new Map;[].forEach(function(z){e.set(z.JSC$31248_getType(),z)});
this.getters=e};new Promise(function(){});var PD5=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"]]),I$E=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"}]]),W_h=function(e){this.experimentApiProvider=e;e=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=e<.1};var gb=function(e,z,C,w){_.Sn.call(this);this.adsControlFlowEventListeners=z;this.adEventLogger=C;this.experimentApiProvider=w;this.adsControlFlowManagerHelper=e(this,this,this,this,this);_.I4(this,this.adsControlFlowManagerHelper);e=_.b(z);for(z=e.next();!z.done;z=e.next())_.I4(this,z.value)};
_.U(gb,_.Sn);var Pyh=function(e,z,C,w){jI(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",z,C,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w);e=_.b(e.adsControlFlowEventListeners);for(w=e.next();!w.done;w=e.next())Pyh(w.value,z,C)};
_.Y=gb.prototype;_.Y.onOpportunityProcessedExternallyManaged=function(e,z,C,w){jI(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",e,C,z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w)};
_.Y.onSlotReceivedExternallyManaged=function(e,z){yn(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",e,z)};
_.Y.onSlotEntered=function(e){if(cK(this.adsControlFlowManagerHelper,e)!=null){yn(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",e);this.adsControlFlowManagerHelper.onSlotEntered(e);for(var z=_.b(this.adsControlFlowEventListeners),C=z.next();!C.done;C=z.next())C.value.onSlotEntered(e);if(cK(this.adsControlFlowManagerHelper,e)!=null&&cK(this.adsControlFlowManagerHelper,e).isOccupyingSlotType()&&Ar(this.adsControlFlowManagerHelper,e)&&!RwY(this.adsControlFlowManagerHelper,e)){var w;ZR(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",e,(w=Ar(this.adsControlFlowManagerHelper,e))!=null?w:void 0);e=cK(this.adsControlFlowManagerHelper,e);e.slotLifecycleStage!=="entered"&&p$(e.slot,e.slotLifecycleStage,"enterLayoutForSlot");e.slotLifecycleStage="rendering";e.registeredLayoutRenderingAdapter.startRendering(e.layout)}}};
_.Y.onSlotExited=function(e){if(cK(this.adsControlFlowManagerHelper,e)!=null){yn(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",e);this.adsControlFlowManagerHelper.onSlotExited(e);for(var z=_.b(this.adsControlFlowEventListeners),C=z.next();!C.done;C=z.next())C.value.onSlotExited(e);cK(this.adsControlFlowManagerHelper,e)!=null&&cK(this.adsControlFlowManagerHelper,e).markedForUnscheduleAfterOutboundAdapterRequests&&L_Y(this,e)}};
_.Y.onLayoutReceivedExternallyManaged=function(e,z,C){e.managerLayer!=="core"&&ZR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",e,z,C)};
var hwU=function(e,z,C){if(cK(e.adsControlFlowManagerHelper,z)!=null){ZR(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",z,C);e=_.b(e.adsControlFlowEventListeners);for(var w=e.next();!w.done;w=e.next())hwU(w.value,z,C)}};
gb.prototype.onLayoutExited=function(e,z,C){if(cK(this.adsControlFlowManagerHelper,e)!=null){ZR(this.adEventLogger,WLL(C),e,z);this.adsControlFlowManagerHelper.onLayoutExited(e,z);for(var w=_.b(this.adsControlFlowEventListeners),K=w.next();!K.done;K=w.next())K.value.onLayoutExited(e,z,C);(C=Ar(this.adsControlFlowManagerHelper,e))&&z.layoutId===C.layoutId&&Oya(this,e)}};
gb.prototype.disposeInternal=function(){var e=EgX(this.adsControlFlowManagerHelper);e=_.b(e);for(var z=e.next();!z.done;z=e.next())L_Y(this,z.value);_.Sn.prototype.disposeInternal.call(this)};
var L_Y=function(e,z){if(cK(e.adsControlFlowManagerHelper,z)!=null)if(cK(e.adsControlFlowManagerHelper,z).JSC$31278_isSlotExitRequested()||cK(e.adsControlFlowManagerHelper,z).JSC$31278_isLayoutExitRequested())cK(e.adsControlFlowManagerHelper,z).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(cK(e.adsControlFlowManagerHelper,z).isOccupyingSlotType())cK(e.adsControlFlowManagerHelper,z).markedForUnscheduleAfterOutboundAdapterRequests=!0,Oya(e,z);else if(cK(e.adsControlFlowManagerHelper,z).JSC$31278_isSlotFillRequested())cK(e.adsControlFlowManagerHelper,
z).markedForUnscheduleAfterOutboundAdapterRequests=!0,cK(e.adsControlFlowManagerHelper,z)!=null&&(yn(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",z),z=cK(e.adsControlFlowManagerHelper,z),z.fulfillmentLifecycleStage="fill_cancel_requested",z.registeredFulfillmentAdapter.cancelSlotFilling());else{var C=Ar(e.adsControlFlowManagerHelper,z),w;e.experimentApiProvider.get();(w=_.M("h5_enable_layout_unscheduling_events"))&&(C?F_S(e,z,C):_.Am(Error("Lh"),z,C,void 0,!1));yn(e.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",z);var K=cK(e.adsControlFlowManagerHelper,z),G=z.slotEntryTrigger,X=K.registeredSlotEntryTriggerAdapters.get(G.triggerId);X&&(X.unregisterTrigger(G),K.registeredSlotEntryTriggerAdapters.delete(G.triggerId));G=_.b(z.slotFulfillmentTriggers);for(X=G.next();!X.done;X=G.next()){X=X.value;var J=K.registeredFulfillmentTriggerAdapters.get(X.triggerId);J&&(J.unregisterTrigger(X),K.registeredFulfillmentTriggerAdapters.delete(X.triggerId))}G=_.b(z.slotExpirationTriggers);
for(X=G.next();!X.done;X=G.next())if(X=X.value,J=K.registeredExpirationTriggerAdapters.get(X.triggerId))J.unregisterTrigger(X),K.registeredExpirationTriggerAdapters.delete(X.triggerId);K.hasLayout()&&(G=K.layout,eU(K,G.layoutExitNormalTriggers),eU(K,G.layoutExitSkipTriggers),eU(K,G.layoutExitMuteTriggers),eU(K,G.layoutExitUserInputSubmittedTriggers),eU(K,G.layoutExitUserCancelledTriggers));K.registeredFulfillmentAdapter=void 0;K.registeredSlotAdapter!=null&&(K.registeredSlotAdapter.release(),K.registeredSlotAdapter=
void 0);K.registeredLayoutRenderingAdapter!=null&&(K.registeredLayoutRenderingAdapter.release(),K.registeredLayoutRenderingAdapter=void 0);K=e.adsControlFlowManagerHelper;cK(K,z)&&(K=VMo(K,z.slotType+"_"+z.slotPhysicalPosition))&&K.delete(z.slotId);yn(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",z);e=_.b(e.adsControlFlowEventListeners);for(K=e.next();!K.done;K=e.next())K=K.value,K.onSlotUnscheduled(z),C&&!w&&F_S(K,z,C)}},F_S=function(e,z,C){ZR(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
z,C);
ZR(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",z,C);e=_.b(e.adsControlFlowEventListeners);for(var w=e.next();!w.done;w=e.next())w=w.value,C&&F_S(w,z,C)},Oya=function(e,z){if(cK(e.adsControlFlowManagerHelper,z)!=null&&cK(e.adsControlFlowManagerHelper,z).isOccupyingSlotType()){var C=Ar(e.adsControlFlowManagerHelper,z);
if(C&&RwY(e.adsControlFlowManagerHelper,z)){if(cK(e.adsControlFlowManagerHelper,z)!=null){var w=e.adEventLogger,K;var G=((K=I$E.get("abandoned"))==null?void 0:K.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";ZR(w,G,z,C);e=cK(e.adsControlFlowManagerHelper,z);e.slotLifecycleStage!=="rendering"&&p$(e.slot,e.slotLifecycleStage,"exitLayout");e.slotLifecycleStage="rendering_stop_requested";e.registeredLayoutRenderingAdapter.stopRendering(C,"abandoned")}}else{yn(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
z);try{w=cK(e.adsControlFlowManagerHelper,z);if(!w)throw new oe("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");w.slotLifecycleStage!=="enter_requested"&&w.slotLifecycleStage!=="entered"&&w.slotLifecycleStage!=="rendering"&&p$(w.slot,w.slotLifecycleStage,"exitSlot");w.slotLifecycleStage="exit_requested";if(w.registeredSlotAdapter===void 0)throw w.slotLifecycleStage="scheduled",new oe("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
w.registeredSlotAdapter.exit()}catch(X){X instanceof oe&&X.adsClientErrorMessage?(fmo(e.adEventLogger,X.adsClientErrorMessage,z),_.Am(X,z,void 0,void 0,X.aggressivelySample)):(fmo(e.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",z),_.Am(X,z))}}}};var zM=function(e,z,C,w,K,G){_.Sn.call(this);this.registry=e;this.experimentApiProvider=G;this.slotMap=new Map};
_.U(zM,_.Sn);var VMo=function(e,z){return(e=e.slotMap.get(z))?e:new Map},cK=function(e,z){return VMo(e,z.slotType+"_"+z.slotPhysicalPosition).get(z.slotId)},EgX=function(e){var z=[];
e.slotMap.forEach(function(C){C=_.b(C.values());for(var w=C.next();!w.done;w=C.next())z.push(w.value.slot)});
return z};
zM.prototype.onSlotEntered=function(e){e=cK(this,e);e.slotLifecycleStage!=="enter_requested"&&p$(e.slot,e.slotLifecycleStage,"onSlotEntered");e.slotLifecycleStage="entered"};
var RwY=function(e,z){e=cK(e,z);return e.hasLayout()&&e.isRendering()},Ar=function(e,z){(e=cK(e,z))?e.hasLayout()&&!e.layout&&_.Am("Unexpected empty layout",z):_.Am("Unexpected undefined slotState",z);
return(e==null?void 0:e.layout)||null};
zM.prototype.onSlotExited=function(e){e=cK(this,e);e.slotLifecycleStage!=="exit_requested"&&p$(e.slot,e.slotLifecycleStage,"onSlotExited");e.slotLifecycleStage="scheduled"};
zM.prototype.onLayoutExited=function(e,z){e=cK(this,e);e.isPrimaryLayout(z)&&(e.slotLifecycleStage!=="rendering_stop_requested"&&p$(e.slot,e.slotLifecycleStage,"onLayoutExited"),e.slotLifecycleStage="entered")};
var eU=function(e,z){z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=e.registeredLayoutExitTriggerAdapters.get(C.triggerId);w&&(w.unregisterTrigger(C),e.registeredLayoutExitTriggerAdapters.delete(C.triggerId))}},p$=function(e,z,C){_.Am("Slot stage was "+z+" when calling method "+C,e)};var ulh=function(e){_.Sn.call(this);this.deps=e;this.JSC$15763_adsControlFlowManager=SNo(this)};
_.U(ulh,_.Sn);var SNo=function(e){var z=new gb(function(C,w,K,G){return new zM(e.deps.registry,C,w,K,G,e.deps.experimentApiProvider)},new Set(O1k(e.deps.registry).concat(e.deps.listeners)),e.deps.adEventLogger,e.deps.experimentApiProvider);
_.I4(e,z);return z};var Gj8=function(){};var dz4=function(e,z){_.Sn.call(this);this.experimentApiProvider=e;this.eventLoggingSettingsProvider=z;this.eventCount=0;this.premiumAdSeenEventLogger=Y6N()()};
_.U(dz4,_.Sn);dz4.prototype.logEvent=function(e){jI(this,e)};
var yn=function(e,z,C,w){jI(e,z,void 0,void 0,void 0,C,void 0,void 0,void 0,C.adSlotLoggingData,void 0,void 0,w)},ZR=function(e,z,C,w,K){jI(e,z,void 0,void 0,void 0,C,w?w:void 0,void 0,void 0,C.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,void 0,K);
C=_.lh().resolve(_.$B(ik))==null?void 0:NU();z=C==null?void 0:C.adsSeenHotConfig;C=C==null?void 0:C.adsHotConfig;(z==null?0:z.logOnAdsSeen)&&(C==null?0:C.webEnablePremiumAdsSeenLogging)&&DzT(e,w?w:void 0,K)},fmo=function(e,z,C){jI(e,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,C,void 0,void 0,void 0,C.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:z})},jI=function(e,z,C,w,K,G,X,J,q,T,Q,m,a){a=a===void 0?0:a;
iyY(e.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"slot:",G,"layout:",X,"ping:",J,"Opportunity:",{opportunityType:C,associatedSlotId:w,slotsFromOpportunity:K,triggerBundle:q,adSlotLoggingData:T,adLayoutLoggingData:Q});try{var n=function(){e.experimentApiProvider.get();if(z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){z||_.Am("Empty PACF event type",G,X);var H=e.eventLoggingSettingsProvider.get();var I;(I=H.alwaysIncludeDebugData)||(H.experimentApiProvider.get(),I=
!1);H=I;I={eventType:z,eventOrder:++e.eventCount};var L={};G&&(L.slotData=LLN(H,G));if(X){var h={type:X.layoutType,controlFlowManagerLayer:PD5.get(X.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H&&(h.debugData={layoutId:X.layoutId});L.layoutData=h}J&&(L.pingData={pingDispatchStatus:J.dispatchStatus,serializedAdPingMetadata:J.ping.serializedAdPingMetadata,pingIndex:J.index});q&&(L.triggerData=R45(q.trigger,q.category));C&&(L.opportunityData=h41(H,C,w,K));I.adClientData=L;T&&(I.serializedSlotAdServingData=
T.serializedSlotAdServingDataEntry);Q&&(I.serializedAdServingData=Q.serializedAdServingDataEntry);m&&(I.errorInfo=m);_.gm("adsClientStateChange",{adsClientEvent:I})}};
a&&a>0?_.Dz(_.So(),function(){return n()},a):n()}catch(H){iyY(e.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Dz(_.So(),function(){_.Am(H instanceof Error?H:String(H),G,X,{pacf_message:"exception during pacf logging"})})}},DzT=function(e,z,C){if(z){var w=z.adLayoutLoggingData;
_.Dz(_.So(),function(){e.premiumAdSeenEventLogger!=null&&w&&_.gm("adsSeenClientLogging",{serializedAdServingDataEntry:w.serializedAdServingDataEntry})},C!=null?C:0)}};var NYL=function(e,z){dz4.call(this,e,z)};
_.U(NYL,dz4);var sd4=function(){},iyY=function(e,z){return _.M(z)};var tMs=function(){var e=new BYY;this.JSC$15788_adsControlFlowManager=(new ulh(e)).JSC$15763_adsControlFlowManager},BYY=function(){_.Sn.call(this);
var e=this;this.experimentApiProvider=new ImY(function(){return new sd4});
var z=new ImY(function(){return new W_h(e.experimentApiProvider)});
this.adEventLogger=new NYL(this.experimentApiProvider,z);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.U(BYY,_.Sn);var ggT=function(){},jdo,CD=function(){jdo||(jdo=new ggT);
return jdo},wF=function(e){if(!e.JSC$15799_externallyManagedSlotAdapterCallback){var z=(new tMs).JSC$15788_adsControlFlowManager;
e.JSC$15799_externallyManagedSlotAdapterCallback=z}return e.JSC$15799_externallyManagedSlotAdapterCallback},y74=function(e,z,C){var w=z.opportunityType,K=Error("Mh");
if(w!==void 0){var G=wF(e);Pyh(G,w,void 0,C)}else _.Am(K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});G=[];if(z.adSlotAndLayoutMetadata!==void 0){z=_.b(z.adSlotAndLayoutMetadata);for(var X=z.next();!X.done;X=z.next()){var J=X.value;if(X=J.adSlotMetadata)if(G.push(X),e.onSlotReceivedExternallyManaged(X,C),J.adLayoutMetadata){J=_.b(J.adLayoutMetadata);for(var q=J.next();!q.done;q=J.next())e.onLayoutReceivedExternallyManaged(X,q.value,C)}else C>0&&_.Am("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else C>0&&_.Am("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else C>0&&_.Am("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+w,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(w!==void 0)e.onOpportunityProcessedExternallyManaged(w,G,void 0,C);else _.Am(K,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
ggT.prototype.onSlotReceivedExternallyManaged=function(e,z){e=GV(e);if(e instanceof oe)_.Am(e,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else wF(this).onSlotReceivedExternallyManaged(e,z)};
ggT.prototype.onLayoutReceivedExternallyManaged=function(e,z,C){e=GV(e);z=FLh(z);if(e instanceof oe)_.Am(e,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(z instanceof Ys)_.Am(z,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else wF(this).onLayoutReceivedExternallyManaged(e,z,C)};
ggT.prototype.onOpportunityProcessedExternallyManaged=function(e,z,C,w){var K=[];z=_.b(z);for(var G=z.next();!G.done;G=z.next())G=GV(G.value),G instanceof oe?_.Am(G,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):K.push(G);wF(this).onOpportunityProcessedExternallyManaged(e,K,C,w)};
var c76=function(e,z){z=GV(z);if(z instanceof oe)_.Am(z,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var C=wF(e);yn(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",z);C=_.b(C.adsControlFlowEventListeners);for(var w=C.next();!w.done;w=C.next())w=cK(w.value,z),w.slotLifecycleStage!=="not_scheduled"&&p$(w.slot,w.slotLifecycleStage,"onSlotScheduled"),w.slotLifecycleStage="scheduled";e=wF(e);yn(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",z);e=_.b(e.adsControlFlowEventListeners);
for(C=e.next();!C.done;C=e.next())C.value.onSlotEntered(z)}},A7o=function(e,z){z=GV(z);
if(z instanceof oe)_.Am(z,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var C=wF(e);yn(C.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",z);C=_.b(C.adsControlFlowEventListeners);for(var w=C.next();!w.done;w=C.next())w.value.onSlotExited(z);e=wF(e);yn(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",z);e=_.b(e.adsControlFlowEventListeners);for(C=e.next();!C.done;C=e.next())C.value.onSlotUnscheduled(z)}},Zyc=function(e,z,C){z=GV(z);
C=FLh(C);if(z instanceof oe)_.Am(z,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(C instanceof Ys)_.Am(C,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var w=wF(e);ZR(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",z,C);w=_.b(w.adsControlFlowEventListeners);for(var K=w.next();!K.done;K=w.next())K.value.onLayoutScheduled(z,C);e=wF(e);ZR(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",z,C);e=_.b(e.adsControlFlowEventListeners);
for(w=e.next();!w.done;w=e.next())hwU(w.value,z,C)}},KD=function(e,z,C){z=GV(z);
C=FLh(C);if(z instanceof oe)_.Am(z,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(C instanceof Ys)_.Am(C,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var w=wF(e);ZR(w.adEventLogger,WLL("normal"),z,C);w=_.b(w.adsControlFlowEventListeners);for(var K=w.next();!K.done;K=w.next())K.value.onLayoutExited(z,C,"normal");e=wF(e);e=_.b(e.adsControlFlowEventListeners);for(w=e.next();!w.done;w=e.next())F_S(w.value,z,C)}};_.oz=_.f(function(e){var z=_.eQ(e,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});e=Object.assign({},z);var C=z.data;z=z.customCommandResolver;var w=(delete e.data,delete e.customCommandResolver,e);e=_.aO({visibilityCallback:function(J,q){var T,Q=(T=C().interaction)==null?void 0:T.onFirstVisible;J&&(Q&&_.NF(Q),w.setOnErrorHandler()&&VTm(q))},
showOption:_.sD});z=_.tm(function(){return C().interaction},z,function(){var J;
return(J=w.listenToTapEvent)==null?void 0:J.call(w)});
var K=_.b(_.II(!1,void 0,"wAC0Lc")),G=K.next().value,X=K.next().value;K=_.T9(function(J){var q;((q=w.setTouchEndHandler)==null?0:q.call(w))&&!G()&&(J.currentTarget.click(),X(!0),setTimeout(function(){X(!1)},100));
return!1});
return _.x("ad-image-view-model",{class:function(){var J,q=[((J=C().interaction)==null?0:J.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],T;((T=w.isGridViewEnabled)==null?0:T.call(w))&&q.push("ytwAdImageViewModelHostInGridView");return q.join(" ")},
el:_.ej(e,z),"on:touchend":K},_.x("div",{class:"ytwAdImageViewModelHostImageContainer"},_.x(_.Zf,{data:function(){var J;return{sources:C().imageSources,contentMode:(J=C().imageProperties)==null?void 0:J.contentMode}},
alt:function(){var J,q;return((J=C().interaction)==null?void 0:(q=J.accessibility)==null?void 0:q.label)||""},
targetHeight:w.targetHeight,targetWidth:w.targetWidth,preserveHeight:w.preserveHeight,preserveWidth:w.preserveWidth,useWidth:w.useWidth,style:function(){var J,q;return"vertical-align: bottom;"+(((J=C().background)==null?0:J.color)?"background-color:"+_.EG((q=C().background)==null?void 0:q.color)+";":"")},
className:function(){return w.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var J,q;return(q=(J=w.setDraggable)==null?void 0:J.call(w))!=null?q:void 0}})))},"lc");var ps6=_.f(function(e){var z=e.data,C=e.listenToTapEvent,w=function(){};
return _.x("ad-button-hover-overlay-view-model",{"on:click":_.T9(function(K){if(_.M("enable_web_home_top_landscape_image_layout_legacy_click_command")){var G,X=(G=z().interaction)==null?void 0:G.onTap;X&&_.pi(K.currentTarget,"yt-navigate",{endpoint:_.SQ(X)})}}),
class:function(){var K;return((K=z().interaction)==null?0:K.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(K){var G,X=(G=z().interaction)==null?void 0:G.onFirstVisible;K&&X&&_.NF(X)},
showOption:_.sD}),_.tm(function(){return z().interaction},void 0,function(){return!_.M("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(C==null?void 0:C())}))},function(){return _.M("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.x(_.PF,{data:function(){return z().button}},{adButtonViewModel:function(K){return _.x(_.t_,{data:K.data,
customCommandResolver:w})}}):_.x(_.PF,{data:function(){return z().button}},{adButtonViewModel:_.t_})}())},"mc");var bn;_.KU(_.f(function(e){var z=e.data;e=_.aO({visibilityCallback:function(J,q){if(J){var T;(J=(T=z().interaction)==null?void 0:T.onFirstVisible)&&_.NF(J);var Q;if(T=(Q=z().adLayoutData)==null?void 0:Q.activeViewData)XZ(q,T),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&JS(q)})}else _.M("stop_av_measurement_on_detach")&&JS(q)},
showOption:_.sD,hideOption:Bp});var C=_.tm(function(){return z().interaction},void 0,function(){return!0}),w=_.b(_.II(!1,void 0,"VNDDT")),K=w.next().value,G=w.next().value;
w=_.T9(function(){G(!0)});
var X=_.T9(function(){G(!1)});
return _.x("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.ej(e,Njo,C),"on:mouseenter":w,"on:mouseleave":X},_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.QC({"max-width":function(){return _.M("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.x("div",{class:function(){var J;
a:{var q;switch((J=_.r(z().thumbnailImage,ZNS))==null?void 0:(q=J.imageProperties)==null?void 0:q.renderingAspect){case "RENDERING_ASPECT_SQUARE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}J=void 0}return J}},_.x(_.PF,{data:function(){return z().thumbnailImage}},{adImageViewModel:function(J){return _.x(_.oz,
{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.M("enable_top_landscape_image_experiment_dom_id_web")})}})),_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.x(_.l,{cond:function(){var J,q,T;
return(J=_.r(z().thumbnailImage,ZNS))==null?void 0:(q=J.imageProperties)==null?void 0:(T=q.overlayIcon)==null?void 0:T.iconImage},
then:function(J){return _.x(_.Zf,{data:J,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.x("div",{class:function(){return K()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.x(_.PF,{data:function(){return z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(J){return _.x(ps6,
{data:J.data,
listenToTapEvent:!0})}}))),_.x("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.x(_.PF,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:function(J){return _.x(p9,{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.M("enable_top_landscape_image_experiment_dom_id_web")})}})))},"nc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;e=_.aO({visibilityCallback:function(J,q){if(J){var T;(J=(T=z().interaction)==null?void 0:T.onFirstVisible)&&_.NF(J);var Q;if(T=(Q=z().adLayoutData)==null?void 0:Q.activeViewData)XZ(q,T),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&JS(q)})}else _.M("stop_av_measurement_on_detach")&&JS(q)},
showOption:_.sD,hideOption:Bp});var C=_.rG(_.Sj),w=_.tm(function(){return z().interaction}),K={},G={},X={};
return _.x("square-image-layout-view-model",{class:_.qT("ytwSquareImageLayoutViewModelHost",(K.ytwSquareImageLayoutViewModelHostColumn=C,K)),el:_.ej(e,stg,w)},_.x("div",{class:_.qT("ytwSquareImageLayoutViewModelHostImage",(G.ytwSquareImageLayoutViewModelHostColumnImage=C,G))},function(){return _.x(_.PF,{data:function(){return z().adImage}},{adImageViewModel:function(J){return _.x(_.oz,{data:J.data,
isGridViewEnabled:C,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.x("div",{class:_.qT("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(X.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=C,X))},_.x(_.PF,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:p9}),function(){return _.x(_.PF,{data:function(){return z().adButton}},{adButtonViewModel:function(J){var q={};
return _.x(_.t_,{data:J.data,className:_.qT((q.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,q.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=C,q))})}})}()))},"oc"),"square-image-layout-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=e.noBottomMargin;var w=e.typographyBump;e=_.aO({visibilityCallback:function(m,a){if(m){var n;(m=(n=z().interaction)==null?void 0:n.onFirstVisible)&&_.NF(m);var H;if(n=(H=z().adLayoutData)==null?void 0:H.activeViewData)XZ(a,n),_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&JS(a)})}else _.M("stop_av_measurement_on_detach")&&JS(a)},
showOption:_.sD,hideOption:Bp});var K=_.tm(function(){return z().interaction},void 0,function(){return _.M("enable_web_home_top_landscape_image_layout_level_click")}),G=function(){return z().interaction};
G!==void 0&&G!==null||_.es(Error("Nh"));var X=function(){var m,a,n;return(m=_.r(z().thumbnailImage,ZNS))==null?void 0:(a=m.background)==null?void 0:(n=a.backgroundImageSource)==null?void 0:n.imageSources};
G=_.b(_.II(!1,void 0,"NFjwje"));var J=G.next().value,q=G.next().value;G=_.T9(function(){q(!0)});
var T=_.T9(function(){q(!1)}),Q=function(){return J()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.x("top-landscape-image-layout-view-model",{class:function(){var m;return((m=z().interaction)==null?0:m.onTap)&&_.M("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.ej(e,Bjh,K),"on:mouseenter":G,"on:mouseleave":T},_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.x(_.l,{cond:function(){return X()&&X().length>0},
then:function(){return _.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.QC({top:"0","background-image":function(){return"url("+String(X()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.x(_.l,{cond:function(){return!!z().adButtonHoverOverlay},
then:function(){return _.x("div",{class:Q},_.x(_.PF,{data:function(){return z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:ps6}))}}),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.x(_.PF,{data:function(){return z().thumbnailImage}},{adImageViewModel:function(m){return _.x(_.oz,{data:m.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.M("enable_web_home_top_landscape_image_layout_level_click")})}})),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.x(_.Zf,{data:{sources:[{clientResource:{imageName:_.M("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.x("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.x(_.PF,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:function(m){return _.x(p9,{data:m.data,
noBottomMargin:function(){return C==null?void 0:C()},
listenToTapEvent:function(){return _.M("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return w==null?void 0:w()}})}})))},"pc"),"top-landscape-image-layout-view-model",{props:{data:_.vh,
noBottomMargin:_.vh,typographyBump:_.vh}});var eaS=_.f(function(e){var z=e.data,C=_.aO({visibilityCallback:function(K){var G,X=(G=z().interaction)==null?void 0:G.onFirstVisible;K&&X&&_.NF(X)},
showOption:_.sD});e=_.tm(function(){return z().interaction},e.customCommandResolver);
var w={};return _.x("ad-text-image-view-model",{class:_.qT("ytwAdTextImageViewModelHost",(w.ytwAdTextImageViewModelHostDarkBackground=function(){return z().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},w)),
el:_.ej(C,e),"aria-label":function(){var K,G;return(K=z().interaction)==null?void 0:(G=K.accessibility)==null?void 0:G.label}},_.x("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.x(_.U2,{text:function(){return z().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.x(_.l,{cond:function(){return z().overlayIcon},
then:function(K){return _.x("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.x(_.Zf,{data:K,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"qc");var za4=_.f(function(e){var z=e.data;return _.x("feed-ad-sitelink-view-model",{class:function(){var C;return((C=z().interaction)==null?0:C.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.ej(_.tm(function(){return z().interaction},e.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var C,w;return(C=z().interaction)==null?void 0:(w=C.accessibility)==null?void 0:w.label},
role:"link",tabindex:0},_.x(_.U2,{text:function(){return z().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"rc");var CfT=_.f(function(e){var z=e.data;e={};return _.x("feed-ad-sitelinks-carousel-view-model",{el:_.ej(_.aO({visibilityCallback:function(C){var w,K=(w=z().interaction)==null?void 0:w.onFirstVisible;C&&K&&_.NF(K)},
showOption:_.sD})),class:_.qT("ytwFeedAdSitelinksCarouselViewModelHost",(e.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return z().style==="FEED_AD_SITELINKS_STYLE_NONE"},e))},_.x(_.PF,{data:function(){return z().sitelinks}},{feedAdSitelinkViewModel:za4}))},"sc");_.KU(_.f(function(e){var z=e.data;e=_.aO({visibilityCallback:function(X,J){if(X){var q;(X=(q=z().interaction)==null?void 0:q.onFirstVisible)&&_.NF(X);var T;(q=(T=z().adLayoutData)==null?void 0:T.activeViewData)&&XZ(J,q)}},
showOption:_.sD});var C=_.b(_.II(!1,void 0,"BzPhl")),w=C.next().value,K=C.next().value;C=_.T9(function(){K(!0)});
var G=_.T9(function(){K(!1)});
return _.x("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.ej(e),"on:mouseenter":C,"on:mouseleave":G},_.x("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.x("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.x(_.PF,{data:function(){return z().textImage}},{adTextImageViewModel:eaS})),_.x("div",{class:function(){return w()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.x(_.PF,{data:function(){return z().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(X){return _.x(ps6,{data:X.data,
listenToTapEvent:!0})}}))),_.x("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.x(_.PF,{data:function(){return z().feedAdMetadata}},{feedAdMetadataViewModel:function(X){return _.x(p9,{data:X.data,
listenToTapEvent:!0})}}),_.x(_.PF,{data:function(){return z().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:CfT})))},"tc"),"text-image-no-button-layout-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=e.typographyBump;return _.x("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.ej(_.aO({visibilityCallback:function(w,K){if(w){var G;(w=(G=z().interaction)==null?void 0:G.onFirstVisible)&&_.NF(w);var X;(G=(X=z().adLayoutData)==null?void 0:X.activeViewData)&&XZ(K,G)}},
showOption:_.sD,hideOption:Bp}))},_.x("div",null,_.x(_.PF,{data:function(){return z().videoLockup}},{lockupViewModel:function(w){return _.x(_.eI,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:C})}})))},"uc"),"video-display-button-group-layout-view-model",{props:{data:_.vh,
noBottomMargin:_.vh,typographyBump:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=e.className;var w=e.typographyBump;return _.x("video-display-compact-button-group-layout-view-model",{el:_.ej(_.aO({visibilityCallback:function(K,G){if(K){var X;(K=(X=z().interaction)==null?void 0:X.onFirstVisible)&&_.NF(K);var J;(X=(J=z().adLayoutData)==null?void 0:J.activeViewData)&&XZ(G,X)}},
showOption:_.sD})),class:_.qT("videoDisplayCompactButtonGroupLayoutViewModelHost",C)},_.x(_.PF,{data:function(){return z().videoLockup}},{lockupViewModel:function(K){return _.x(_.eI,{data:K.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:w})}}))},"vc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.vh,
className:_.vh,typographyBump:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=e.className;var w=e.typographyBump;return _.x("video-display-compact-buttoned-layout-view-model",{el:_.ej(_.aO({visibilityCallback:function(K,G){if(K){var X;(K=(X=z().interaction)==null?void 0:X.onFirstVisible)&&_.NF(K);var J;(X=(J=z().adLayoutData)==null?void 0:J.activeViewData)&&XZ(G,X)}},
showOption:_.sD})),class:_.qT("videoDisplayCompactButtonedLayoutViewModelHost",C)},_.x(_.PF,{data:function(){return z().videoLockup}},{lockupViewModel:function(K){return _.x(_.eI,{data:K.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:w})}}))},"wc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.vh,
className:_.vh,typographyBump:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=e.className;var w=e.typographyBump;var K=function(){return z().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},G=_.rG(_.Sj);
e=_.aO({visibilityCallback:function(T,Q){if(T){var m=z();T=m.adLayoutData;var a;(m=(a=m.interaction)==null?void 0:a.onFirstVisible)&&_.NF(m);(a=T==null?void 0:T.activeViewData)&&XZ(Q,a)}},
showOption:_.sD});var X=_.hG(function(){return{containerType:K()&&G()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:K()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),J=_.hG(function(){return K()&&G()?"":K()?"168px":"50%"},void 0,"Om6kNe"),q=_.hG(function(){return K()&&G()?9999:void 0},void 0,"S71lKd");
return _.x("video-display-compact-layout-view-model",{el:_.ej(e),class:_.qT("videoDisplayCompactLayoutViewModelHost",C)},_.x(_.PF,{data:function(){return z().videoLockup}},{lockupViewModel:function(T){return _.x(_.eI,{data:T.data,
containerLayoutConfig:X,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:J,thumbnailTargetWidth:q,typographyBump:w})}}))},"xc"),"video-display-compact-layout-view-model",{props:{data:_.vh,
className:_.vh,typographyBump:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=e.typographyBump;return _.x("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.ej(_.aO({visibilityCallback:function(w,K){if(w){var G;(w=(G=z().interaction)==null?void 0:G.onFirstVisible)&&_.NF(w);var X;(G=(X=z().adLayoutData)==null?void 0:X.activeViewData)&&XZ(K,G)}},
showOption:_.sD,hideOption:Bp}))},_.x("div",null,_.x(_.PF,{data:function(){return z().videoLockup}},{lockupViewModel:function(w){return _.x(_.eI,{data:w.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:C})}})))},"yc"),"video-display-full-layout-view-model",{props:{data:_.vh,
noBottomMargin:_.vh,typographyBump:_.vh}});_.wNL=_.f(function(e){var z=e.data;e=_.kI("ad-card-badge-view-model");return _.x("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:e},_.x(_.l,{cond:function(){return z().imageBadge},
then:function(C){return _.x(_.Zf,{data:C,alt:""})}}))},"zc");var KRh=_.f(function(e){var z=e.data;var C=e.customCommandResolver;return _.x("carousel-ad-card-image-view-model",{class:function(){var w;return((w=z().interaction)==null?0:w.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(w){var K,G=(K=z().interaction)==null?void 0:K.onFirstVisible;w&&G&&_.NF(G)},
showOption:_.sD}),_.tm(function(){return z().interaction},C)),
"aria-label":function(){var w,K;return(w=z().interaction)==null?void 0:(K=w.accessibility)==null?void 0:K.label}},_.x(_.PF,{data:function(){return z().adImage}},{adImageViewModel:function(w){return _.x(_.oz,{data:w.data,
customCommandResolver:C})}}),_.x("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.x(_.PF,{data:function(){return z().badge}},{adCardBadgeViewModel:_.wNL})),_.x(_.Sf,{model:{color:4}}))},"Ac");var owa=_.f(function(e){var z=_.b(_.II(0,void 0,"JJ0QQc")),C=z.next().value;z.next();var w=z.next().value,K=_.b(_.II(!1,void 0,"f6YICe"));z=K.next().value;var G=K.next().value,X;_.BC(function(){clearTimeout(X)});
K=_.T9(function(){var T;((T=e.animate)==null?0:T.call(e))?(G(!0),X=setTimeout(function(){G(!1);J()},200)):J();
return!1});
var J=function(){w(function(T){return(T+e.numShownItems())%e.data().length})},q={};
return _.x("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.x("div",{class:_.qT("ytwHorizontalCarouselCarouselWrapper")},_.x("div",{class:_.qT("ytwHorizontalCarouselCarouselInnerWrapper",(q.ytwHorizontalCarouselAnimating=z,q))},_.x(_.ui,{each:e.data,keyBy:"INDEX"},function(T,Q){return _.x("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.QC({"flex-basis":function(){return"calc((100% - (8px * "+(e.numShownItems()-1)+")) / "+e.numShownItems()+")"},
order:function(){var m=Q-C();m<0&&(m+=e.data().length);return m}})},e.children(T,Q))}))),_.x("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":K},e.nextButton()))},"Bc");var GwS=_.f(function(e){var z=e.data;var C=e.customCommandResolver;var w=e.expansive;return _.x("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.ej(_.aO({visibilityCallback:function(K){var G,X=(G=z().interaction)==null?void 0:G.onFirstVisible;K&&X&&_.NF(X)},
showOption:_.sD}))},_.x(owa,{data:function(){var K;return((K=z())==null?void 0:K.carouselAdCards)||[]},
nextButton:function(){return _.x(_.PF,{data:function(){return z().nextButton}},{buttonViewModel:function(K){var G=K.data;
return _.x(_.iz,{data:function(){return(w==null?0:w())?Object.assign({},G(),{style:"mono"}):G()},
className:_.M("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(K){return _.x(_.PF,{data:K},{carouselAdCardImageViewModel:function(G){return _.x(KRh,{data:G.data,customCommandResolver:C})}})}))},"Cc");var YMo=_.f(function(e){var z=e.data;var C=e.customCommandResolver;var w=e.className;var K=e.buttonClassName;var G=e.animationEntityKey;var X=e.expansive;return _.x("carousel-button-view-model",{class:_.qT("ytwCarouselButtonViewModelHost",w)},_.x(_.PF,{data:function(){return z().carousel}},{carouselAdCardCollectionViewModel:function(J){return _.x(GwS,{data:J.data,
customCommandResolver:C,expansive:X})}}),_.x(_.PF,{data:function(){return z().button}},{adButtonViewModel:function(J){var q=J.data;
return _.x(_.t_,{data:function(){return(X==null?0:X())?Object.assign({},q(),{style:"AD_BUTTON_STYLE_TONAL"}):q()},
className:K,customCommandResolver:C,animationEntityKey:G})}}))},"Dc");_.bwh=_.f(function(e){var z=e.data;e=e.className;var C=_.kI("pivot-button-view-model");_.sg(function(){var w;((w=z())==null?0:w.backgroundColor)&&C.value.setAttribute("data-background-color",String(z().backgroundColor))});
return _.x("pivot-button-view-model",{el:C,class:_.qT("ytwPivotButtonViewModelHost",e)},_.x(_.fE,{command:function(){var w=z();w=w.onClickCommand?_.SQ(w.onClickCommand):w.contentDescription?_.wP(w.contentDescription):void 0;return w},
ariaLabel:function(){return z().contentDescription}},_.x(_.l,{cond:function(){return z().thumbnail},
then:function(w){return _.x(_.Zf,{data:w,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.x(_.l,{cond:function(){return z().icon},
then:function(w){return _.x(_.mB,{icon:function(){return w().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ec");_.XN4=_.f(function(e){var z=e.data;var C=e.buttonShapeOverrideables;return _.x("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.x(_.PF,{data:function(){return z().buttonViewModels}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
buttonOverrides:C})},
likeButtonViewModel:function(w){return _.x(_.nT,{data:w.data,buttonShapeOverrideables:C})},
dislikeButtonViewModel:function(w){return _.x(_.aw,{data:w.data,buttonShapeOverrideables:C})},
toggleButtonViewModel:function(w){return _.x(_.XG,{data:w.data,buttonShapeOverrides:C})}}))},"Fc");var JDS=_.f(function(e){var z=e.avatar;var C=e.headline;var w=e.badge;var K=e.description;var G=e.expansive;e={};return _.x("yt-ad-metadata-shape",{class:_.qT("ytAdMetadataShapeHost",(e.ytAdMetadataShapeHostLarge=G,e))},_.x("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.x(_.l,{cond:z,then:function(X){return _.x(_.CjL,{data:function(){return(G==null?0:G())?Object.assign({},X(),{size:"AD_AVATAR_SIZE_M"}):X()}})}}),_.x("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.x(_.U2,{text:C,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.x(_.l,{cond:w,then:function(X){return _.x(_.A_,{data:function(){return(G==null?0:G())?Object.assign({},X(),{style:"AD_BADGE_STYLE_STARK"}):X()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.x("h2",{class:"ytAdMetadataShapeHostDescription"},_.x(_.U2,{text:K,
linkInheritColor:!0,isHeadline:function(){return G==null?void 0:G()}})))},"Gc");var kwU=_.f(function(e){var z=e.data;var C=e.onShow;var w=e.expansive;e=_.tm(function(){return z().interaction});
_.sg(function(){var G,X=(G=z().animatedRenderingConfig)==null?void 0:G.delayedSecondsToVisible;if(X){var J=setTimeout(C,X*1E3);_.BC(function(){clearTimeout(J)})}});
var K={};return _.x("reels-ad-card-buttoned-view-model",{class:_.qT(function(){var G;return((G=z().interaction)==null?0:G.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(K.ytwReelsAdCardButtonedViewModelHostExpansive=w,K)),
el:_.ej(e)},_.x(JDS,{avatar:function(){return _.r(z().avatar,yI6)},
headline:function(){return z().headline},
badge:function(){return _.r(z().adBadge,cIa)},
description:function(){return z().description},
expansive:w}),_.x(_.PF,{data:function(){return z().ctaButton}},{adButtonViewModel:function(G){var X=G.data;
return _.x(_.t_,{data:function(){return(w==null?0:w())?Object.assign({},X(),{style:"AD_BUTTON_STYLE_FILLED"}):X()}})}}))},"Hc");var qMC=_.f(function(e){var z=e.data;e=e.expansive;var C=_.M("web_ad_metadata_clickable")?_.tm(function(){return z().interaction},void 0,function(){return _.M("web_ad_metadata_clickable")}):void 0,w={};
w=_.VA("ytwReelsAdMetadataViewModelHost",(w.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.M("web_ad_metadata_clickable"),w));return _.x("reels-ad-metadata-view-model",{class:w,el:_.ej(C)},_.x(JDS,{avatar:function(){return _.r(z().avatar,yI6)},
headline:function(){return z().headline},
badge:function(){return _.r(z().adBadge,cIa)},
description:function(){return z().description},
expansive:e}))},"Ic");var xkg={iconPosition:"icon-with-label",size:"L"},TWL=_.f(function(e){var z=e.data;var C=e.overlayDensity;var w=e.extractOverlay;var K=e.extractActionBar;e=_.kI("reels-player-overlay-layout-view-model");var G=_.pP(C,0),X=function(){var n;return(n=z().reelsAdCardButtonedEntityKey)!=null?n:""},J=function(){return X()+"/ad_button"},q=_.vF(US4,X),T=function(){var n,H;
return(H=(n=q())==null?void 0:n.value)!=null?H:!1},Q=_.rG(tTE),m=function(){var n;
return Object.assign({},xkg,(Q()||!((n=K==null?void 0:K())!=null&&n))&&{style:"overlay-dark"})};
C={};var a={};return _.x("reels-player-overlay-layout-view-model",{class:_.qT("ytwReelsPlayerOverlayLayoutViewModelHost",(C.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!z().extension},C.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},C.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return G()===1&&!(w==null?0:w())},C.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var n;
return(n=w==null?void 0:w())!=null?n:!1},C.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var n;
return(n=K==null?void 0:K())!=null?n:!1},C)),
"overlay-density":function(){return String(G())},
el:e},_.x("div",{class:_.qT("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(a.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},a))},_.x("div",{"aria-hidden":function(){return T()},
class:_.qT("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return T()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.QC({"transition-duration":function(){return cVL(z())}})},_.x(_.PF,{data:function(){return z().adMetadata}},{reelsAdMetadataViewModel:function(n){return _.x(qMC,{data:n.data,
expansive:function(){return G()===1}})}}),_.x(_.l,{cond:function(){return z().extension},
then:function(n){return _.x("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.x(_.PF,{data:n},{adButtonViewModel:function(H){return _.x(_.t_,{data:H.data,animationEntityKey:J,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(H){return _.x(YMo,{data:H.data,animationEntityKey:J,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return G()===1}})}}))}})),_.x("div",{"aria-hidden":function(){return!T()},
class:_.qT("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return T()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.QC({"transition-duration":function(){return cVL(z())}})},_.x(_.PF,{data:function(){return z().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(n){return _.x(kwU,{data:n.data,
onShow:function(){_.ZL(_.Rx("booleanEntity",X(),{key:X(),value:!0}))},
expansive:function(){var H;return(H=w==null?void 0:w())!=null?H:!1}})}}))),_.x("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.x(_.PF,{data:function(){return z().actions}},{reelActionBarViewModel:function(n){return _.x(_.XN4,{data:n.data,
buttonShapeOverrideables:m})}}),_.x(_.PF,{data:function(){return z().menu}},{buttonViewModel:function(n){return _.x(_.iz,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},m(),{type:"tonal"})}})}}),_.x(_.PF,{data:function(){return z().pivotButton}},{pivotButtonViewModel:function(n){return _.x(_.bwh,{data:n.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Jc");_.KU(TWL,"reels-player-overlay-layout-view-model",{props:{data:_.vh,overlayDensity:_.vh,extractOverlay:_.vh,extractActionBar:_.vh}});var GM=function(){var e=_.V.apply(this,arguments)||this;e.noBottomMargin=!1;e.overlayDensity=0;e.extractOverlay=!1;e.extractActionBar=!1;return e};
_.U(GM,_.V);_.Y=GM.prototype;
_.Y.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.M("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.Y.ready=function(){var e=this;bXo(function(){e.isAttached&&w$(e.JSC$15845_storedAdSlotMetadata,e.JSC$15845_storedAdLayoutMetadata,e.adSlotMetadata,e.adLayoutMetadata)&&KD(CD(),e.JSC$15845_storedAdSlotMetadata,e.JSC$15845_storedAdLayoutMetadata)})};
_.Y.attached=function(){w$(this.JSC$15845_storedAdSlotMetadata,this.JSC$15845_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Zyc(CD(),this.JSC$15845_storedAdSlotMetadata,this.JSC$15845_storedAdLayoutMetadata)};
_.Y.detached=function(){w$(this.JSC$15845_storedAdSlotMetadata,this.JSC$15845_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&KD(CD(),this.JSC$15845_storedAdSlotMetadata,this.JSC$15845_storedAdLayoutMetadata)};
_.Y.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.Y.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15845_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15845_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15845_storedAdLayoutMetadata!==void 0&&this.JSC$15845_storedAdSlotMetadata!==void 0&&KD(CD(),this.JSC$15845_storedAdSlotMetadata,this.JSC$15845_storedAdLayoutMetadata),Zyc(CD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15845_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15845_storedAdSlotMetadata=this.adSlotMetadata)};
_.lB.Object.defineProperties(GM.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.adLayoutMetadata}}});
GM.prototype.onAdMetadataChanged=GM.prototype.onAdMetadataChanged;GM.prototype.onTypographyBumpChanged=GM.prototype.onTypographyBumpChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GM.prototype,"rendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],GM.prototype,"ytComponentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],GM.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],GM.prototype,"noBottomMargin",void 0);_.d([_.F(),_.B("design:type",Object)],GM.prototype,"overlayDensity",void 0);_.d([_.F(),_.B("design:type",Object)],GM.prototype,"extractOverlay",void 0);_.d([_.F(),_.B("design:type",Object)],GM.prototype,"extractActionBar",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],GM.prototype,"typographyBump",void 0);
_.d([_.P("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],GM.prototype,"adLayoutMetadata",null);_.d([_.F(),_.B("design:type",Object)],GM.prototype,"adSlotMetadata",void 0);_.d([_.nP("ytd-video-display-full-buttoned-and-button-group-renderer"),_.B("design:type",HTMLElement)],GM.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.d([_.mi("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GM.prototype,"onTypographyBumpChanged",null);_.d([_.mi("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GM.prototype,"onAdMetadataChanged",null);_.d([_.SL({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],GM);
_.u(GM,"ytd-in-feed-ad-layout-renderer",function(){if(zwC!==void 0)return zwC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return zwC=e},
{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var $kX;var lng;_.KU(_.A_,"ad-badge-view-model",{props:{data:_.vh,hasDot:_.vh,customCommandResolver:_.z9,adRenderingContextType:_.z9,usedInMasthead:_.z9}});_.KU(_.t_,"ad-button-view-model",{props:{data:_.vh,customCommandResolver:_.z9,className:_.z9,delayedClassName:_.z9,animationEntityKey:_.z9,isCompactWidth:_.z9,isContentWidth:_.z9}});var k0=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return e};
_.U(k0,_.V);_.Y=k0.prototype;_.Y.computeHasLiveDescription=function(e){return!(e==null||!e.liveDescription)};
_.Y.computeHasByline=function(e){return!(e==null||!e.byline)};
_.Y.computeUsesAdButtonViewModel=function(e){return!!_.r(e==null?void 0:e.cta,AIC)};
_.Y.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.Y.onYtToggleButton=function(e){var z,C=(z=this.data)==null?void 0:z.videoReminderEntityKey;C&&this.ytdReduxBehavior.dispatch(_.Rx("upcomingEventReminderStateEntity",C,{key:C,state:e.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.Y.attached=function(){this.updateChannelBanner()};
_.Y.dataChanged=function(){this.updateChannelBanner()};
_.Y.videoReminderStateChanged=function(){var e;this.videoReminderState&&_.r((e=this.data)==null?void 0:e.cta,_.nH)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.Y.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var e=_.oo(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);e&&(e.startsWith("//")&&(e="https:"+e),this.hostElement.classList.add("channel-banner"),_.T8(this.hostElement,{"--ytvmh-channel-banner":"url("+e+")"}))}else _.M("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.Y.onPlayerReady=function(){this.onIronResize()};
_.Y.maybeFlushDebouncer=function(){_.M("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(e){var z;e=(z=e.getElementsByTagName("yt-attributed-string"))==null?void 0:z[0];Wo4(e==null?void 0:e.polymerController)})};
_.Y.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var e=_.XC(this.hostElement).querySelector("#live-description"),z;e&&((z=this.data)==null?0:z.shortLiveDescription)&&e.clientWidth<e.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
k0.prototype.onIronResize=k0.prototype.onIronResize;k0.prototype.videoReminderStateChanged=k0.prototype.videoReminderStateChanged;k0.prototype.dataChanged=k0.prototype.dataChanged;k0.prototype.onYtToggleButton=k0.prototype.onYtToggleButton;_.d([_.W(_.oY),_.B("design:type",Object)],k0.prototype,"ironResizableBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],k0.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],k0.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],k0.prototype,"data",void 0);_.d([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:bl1}),_.B("design:type",Object)],k0.prototype,"videoReminderState",void 0);
_.d([_.F({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.B("design:type",Boolean)],k0.prototype,"rounded",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.B("design:type",Boolean)],k0.prototype,"hasLiveDescription",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.B("design:type",Boolean)],k0.prototype,"hasByline",void 0);
_.d([_.F({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.B("design:type",String)],k0.prototype,"adRenderingContextType",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],k0.prototype,"isMasthead",void 0);_.d([_.F({computed:"computeUsesAdButtonViewModel(data)"}),_.B("design:type",Boolean)],k0.prototype,"usesAdButtonViewModel",void 0);
_.d([_.F({reflectToAttribute:!0,value:_.M("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.B("design:type",Boolean)],k0.prototype,"resizableAdBannerSafariFix",void 0);_.d([_.MH("yt-formatted-string"),_.B("design:type",Array)],k0.prototype,"formattedStrings",void 0);_.d([_.nP("#cta-button"),_.B("design:type",HTMLElement)],k0.prototype,"ctaButton",void 0);
_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],k0.prototype,"onYtToggleButton",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k0.prototype,"dataChanged",null);_.d([_.mi("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k0.prototype,"videoReminderStateChanged",null);
_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k0.prototype,"onIronResize",null);_.d([_.SL({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],k0);
_.u(k0,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(lng!==void 0)return lng;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return lng=e},{mode:1});var Q9X;var qM=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};e.isLocked=!1;return e};
_.U(qM,_.V);_.Y=qM.prototype;_.Y.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Y.onExpandedChanged=function(){this.expanded&&_.zj(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.Y.onMouseOver=function(){this.maybeExpand()};
_.Y.onTap=function(){this.maybeExpand()};
_.Y.onExpandableTileExpanding=function(e){e!==this&&(this.expanded=!1)};
_.Y.onExpandableTileLockAndCollapse=function(e){this.isLocked=!0;e!==this&&(this.expanded=!1)};
_.Y.onExpandableTileUnlock=function(){this.isLocked=!1};
qM.prototype.onTap=qM.prototype.onTap;qM.prototype.onMouseOver=qM.prototype.onMouseOver;qM.prototype.onExpandedChanged=qM.prototype.onExpandedChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],qM.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qM.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],qM.prototype,"expanded",void 0);_.d([_.Ux("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qM.prototype,"onExpandedChanged",null);_.d([_.Qi("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qM.prototype,"onMouseOver",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qM.prototype,"onTap",null);
_.d([_.SL({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],qM);
_.u(qM,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Q9X!==void 0)return Q9X;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Q9X=e},{mode:1});var mks;var x0=function(){var e=_.V.apply(this,arguments)||this;e.buttonOverrides={style:"overlay"};e.useYtdPlayer=_.M("use_ytd_player_for_desktop_masthead");e.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};e.playbackFinished=!1;e.JSC$15859_playerManager=null;e.JSC$15859_mastheadCounter=new $Eg;return e};
_.U(x0,_.V);_.Y=x0.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$15859_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15859_playerManager=new CE)};
_.Y.ready=function(){var e=this;this.JSC$15859_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var z=_.XC(this.hostElement).querySelector("#player");this.useYtdPlayer?z.style.display="none":(this.ytdPlayer.style.display="none",b8X(this.JSC$15859_playerManager,z,function(){e.onPlaybackEnded()}),_.XC(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var C;
((C=e.data)==null?0:C.navigationEndpoint)&&_.pi(e.hostElement,"yt-navigate",{endpoint:e.data.navigationEndpoint})}))};
_.Y.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15859_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.Y.attached=function(){var e=this;_.BI(function(){e.maybePlayVideo()})};
_.Y.maybePlayVideo=function(){var e=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$15859_playerManager.playVideo(),this.getPlayerPromise().then(function(){e.JSC$15859_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.Y.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15859_playerManager.stopVideo()};
_.Y.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var e,z={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((e=this.data.playbackStartMs)!=null?e:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(z);this.setupYtdPlayer()}else J66(this.JSC$15859_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(XYs(this.JSC$15859_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.Y.getPlayerPromise=function(){return this.JSC$15859_playerManager.getPlayerPromise()};
_.Y.onYtToggleButton=function(e){this.useYtdPlayer?this.toggleMute(e.detail.toggled):e.detail.toggled?this.JSC$15859_playerManager.mute():this.JSC$15859_playerManager.unMute()};
_.Y.onYtNavigate=function(e){var z=JrE(e.detail.endpoint),C=k_k(this.data.clickthroughReportingData);z&&C&&(e.detail.endpoint.watchEndpoint?e.detail.tempData=C:_.gN(z,C,30))};
_.Y.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.Y.onExpandedChanged=function(){this.expanded?(_.zj(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.Y.onMouseOver=function(){this.maybeExpand()};
_.Y.onTap=function(){this.maybeExpand()};
_.Y.onExpandableTileExpanding=function(e){e!==this&&(this.stopVideo(),this.expanded=!1)};
_.Y.onExpandableTileLockAndCollapse=function(e){e!==this&&(this.isLocked=!0,this.expanded=!1)};
_.Y.onExpandableTileUnlock=function(){this.isLocked=!1};
_.Y.lockAndCollapseExpandableTiles=function(){_.eA(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.Y.unlockExpandableTiles=function(){_.eA(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.Y.setupYtdPlayer=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return C.yield(e.ytdPlayer.getPlayerPromise(),2);z=C.yieldResult;z.addEventListener("onStateChange",function(w){e.onPlayerStateChange(w)});
z.addEventListener("onCueRangeExit",function(w){e.onCueRangeExit(w)});
_.E_(C)})};
_.Y.onPlayerStateChange=function(e){if(e===1&&(e=this.ytdPlayer.getPlayer())){var z=e.getCurrentTime(),C,w,K=z+((w=(C=this.data)==null?void 0:C.playbackDurationMs)!=null?w:0)/1E3;e.addCueRange("playback",z,K);this.JSC$15859_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.Y.onCueRangeExit=function(e){e==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Y.toggleMute=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.ytdPlayer.getPlayerPromise(),2);C=w.yieldResult;e?C.mute():C.unMute();_.E_(w)})};
x0.prototype.onTap=x0.prototype.onTap;x0.prototype.onMouseOver=x0.prototype.onMouseOver;x0.prototype.onExpandedChanged=x0.prototype.onExpandedChanged;x0.prototype.onYtNavigate=x0.prototype.onYtNavigate;x0.prototype.onYtToggleButton=x0.prototype.onYtToggleButton;x0.prototype.dataChanged=x0.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],x0.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],x0.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],x0.prototype,"expanded",void 0);_.d([_.F(),_.B("design:type",Object)],x0.prototype,"buttonOverrides",void 0);
_.d([_.F(),_.B("design:type",Object)],x0.prototype,"useYtdPlayer",void 0);_.d([_.nP("#ytd-player"),_.B("design:type",Object)],x0.prototype,"ytdPlayer",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x0.prototype,"dataChanged",null);_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],x0.prototype,"onYtToggleButton",null);
_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],x0.prototype,"onYtNavigate",null);_.d([_.Ux("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x0.prototype,"onExpandedChanged",null);_.d([_.Qi("mouseover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x0.prototype,"onMouseOver",null);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x0.prototype,"onTap",null);_.d([_.SL({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],x0);
_.u(x0,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(mks!==void 0)return mks;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return mks=e},{mode:1});var anY;var TM=function(){return _.V.apply(this,arguments)||this};
_.U(TM,_.V);TM.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
TM.prototype.onShow=function(){var e=_.XC(this.hostElement).querySelector("#live-description"),z;e&&((z=this.data)==null?0:z.shortLiveDescription)&&e.clientWidth<e.scrollWidth&&this.hostElement.classList.add("short-live-description")};
TM.prototype.onYtToggleButton=function(e){var z,C=(z=this.data)==null?void 0:z.videoReminderEntityKey;C&&this.ytdReduxBehavior.dispatch(_.Rx("upcomingEventReminderStateEntity",C,{key:C,state:e.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
TM.prototype.videoReminderStateChanged=function(){var e;this.videoReminderState&&_.r((e=this.data)==null?void 0:e.cta,_.nH)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
TM.prototype.videoReminderStateChanged=TM.prototype.videoReminderStateChanged;TM.prototype.onYtToggleButton=TM.prototype.onYtToggleButton;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],TM.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TM.prototype,"data",void 0);
_.d([_.F({selectorArgs:["data.videoReminderEntityKey"],selector:bl1}),_.B("design:type",Object)],TM.prototype,"videoReminderState",void 0);_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],TM.prototype,"onYtToggleButton",null);_.d([_.mi("videoReminderState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TM.prototype,"videoReminderStateChanged",null);
_.d([_.SL({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],TM);
_.u(TM,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(anY!==void 0)return anY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return anY=e},{mode:_.bA("kevlar_poly_si_batch_j065")?1:2});var nw6;var $0=function(){var e=_.V.apply(this,arguments)||this;e.useYtdPlayer=_.M("use_ytd_player_for_desktop_masthead");e.buttonOverrides={style:"overlay"};e.JSC$15867_playerManager=null;e.JSC$15867_mastheadCounter=new $Eg;e.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return e};
_.U($0,_.V);_.Y=$0.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$15867_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15867_playerManager=new CE)};
_.Y.ready=function(){var e=this;this.JSC$15867_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var z;(z=this.embeddedPlayer)==null||z.remove()}else{var C;(C=this.ytdPlayer)==null||C.remove();b8X(this.JSC$15867_playerManager,this.embeddedPlayer,function(){e.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){e.data&&e.data.navigationEndpoint&&_.pi(e.hostElement,"yt-navigate",{endpoint:e.data.navigationEndpoint})})}};
_.Y.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15867_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.Y.dataChanged=function(){var e=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var z=!this.data.disableAutoPlayback,C,w={autoplay:z,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((C=this.data.playbackStartMs)!=null?C:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(z?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(w);this.setupYtdPlayer()}else J66(this.JSC$15867_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(XYs(this.JSC$15867_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15867_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.eA(e.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");e.JSC$15867_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.Y.getPlayerPromise=function(){return this.JSC$15867_playerManager.getPlayerPromise()};
_.Y.onYtToggleButton=function(e){this.useYtdPlayer?this.toggleMute(e.detail.toggled):e.detail.toggled?this.JSC$15867_playerManager.mute():this.JSC$15867_playerManager.unMute()};
_.Y.onYtNavigate=function(e){var z=JrE(e.detail.endpoint),C=k_k(this.data.clickthroughReportingData);z&&C&&(e.detail.endpoint.watchEndpoint?e.detail.tempData=C:_.gN(z,C,30))};
_.Y.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15867_playerManager.stopVideo()};
_.Y.setupYtdPlayer=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return C.yield(e.ytdPlayer.getPlayerPromise(),2);z=C.yieldResult;z.addEventListener("onStateChange",function(w){e.onPlayerStateChange(w)});
z.addEventListener("onCueRangeExit",function(w){e.onCueRangeExit(w)});
_.E_(C)})};
_.Y.onPlayerStateChange=function(e){if(e===1&&(e=this.ytdPlayer.getPlayer())){var z=e.getCurrentTime(),C,w,K=z+((w=(C=this.data)==null?void 0:C.playbackDurationMs)!=null?w:0)/1E3;e.addCueRange("playback",z,K);_.eA(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15867_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.Y.onCueRangeExit=function(e){e==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.Y.toggleMute=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.ytdPlayer.getPlayerPromise(),2);C=w.yieldResult;e?C.mute():C.unMute();_.E_(w)})};
_.lB.Object.defineProperties($0.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var e,z;if(!((e=this.data)==null?0:(z=e.accessibilityData)==null?0:z.label))return"Ad primary link";var C,w;return _.kk("AD_TITLE",{title:(C=this.data)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label})}}});
$0.prototype.onYtMastheadHidden=$0.prototype.onYtMastheadHidden;$0.prototype.onYtNavigate=$0.prototype.onYtNavigate;$0.prototype.onYtToggleButton=$0.prototype.onYtToggleButton;$0.prototype.dataChanged=$0.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],$0.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$0.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],$0.prototype,"useYtdPlayer",void 0);_.d([_.nP("ytd-toggle-button-renderer"),_.B("design:type",Object)],$0.prototype,"muteButton",void 0);_.d([_.F(),_.B("design:type",Object)],$0.prototype,"buttonOverrides",void 0);
_.d([_.P("data.accessibilityData.label"),_.B("design:type",String),_.B("design:paramtypes",[])],$0.prototype,"titleAriaLabel",null);_.d([_.nP("#replay-button"),_.B("design:type",Object)],$0.prototype,"replayButton",void 0);_.d([_.nP("#player-container"),_.B("design:type",Object)],$0.prototype,"playerContainer",void 0);_.d([_.nP("#player"),_.B("design:type",Object)],$0.prototype,"embeddedPlayer",void 0);_.d([_.nP("#ytd-player"),_.B("design:type",Object)],$0.prototype,"ytdPlayer",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"dataChanged",null);_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$0.prototype,"onYtToggleButton",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$0.prototype,"onYtNavigate",null);
_.d([_.Qi("yt-masthead-hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$0.prototype,"onYtMastheadHidden",null);_.d([_.SL({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],$0);
_.u($0,"ytd-video-masthead-ad-primary-video-renderer",function(){if(nw6!==void 0)return nw6;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return nw6=e},{mode:2});var Mmh;var lW=function(){var e=_.V.apply(this,arguments)||this;e.collapsed=!1;e.impressionResolver=_.cj();e.JSC$15871_activeViewMeasurementDataResolver=_.cj();e.actionMap={"yt-mute-ad-action":"handleMuteAd"};return e};
_.U(lW,_.V);_.Y=lW.prototype;_.Y.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"}}}};
_.Y.created=function(){this.activeView=new NC(this.hostElement)};
_.Y.ready=function(){var e=this;_.XC(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){e.expandAd()});
this.hostElement.addEventListener("yt-action",function(z){if(z.detail.actionName==="yt-service-request"){var C=z.detail.args[1];C.videoMastheadAdMuteCommand&&(e.collapseAd(C.videoMastheadAdMuteCommand.encryptedMastheadId),z.stopPropagation())}})};
_.Y.attached=function(){var e=this;_.BI(function(){e.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(z){if(!e.collapsed){z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,YO(C.baseUrl,C.attributionSrcMode);e.data.impressionCommand=void 0}});
this.JSC$15871_activeViewMeasurementDataResolver.promise.then(function(z){sZ(e.activeView,z)});
_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B$(e.activeView)})};
_.Y.dataChanged=function(){var e;((e=this.data.impressionCommand)==null?0:e.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var z;((z=this.data)==null?0:z.activeView)&&this.JSC$15871_activeViewMeasurementDataResolver.resolve(this.data.activeView);(e=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(e.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.Y.computeWidescreen=function(e){var z;return!!(e&&((z=_.r(e,sZo))==null?0:z.isWidescreen))};
_.Y.computeExpandable=function(e){return!!(e&&e.length>0)};
_.Y.onIronResize=function(){if(this.expandable){var e=_.XC(this.hostElement).querySelector("#expandable-tile-container :first-child");e&&!e.expanded&&(e.expanded=!0)}};
_.Y.handleMuteAd=function(){this.collapseAd(null)};
_.Y.restoreCollapsedState=function(e){this.collapsed=_.Tj().get("HIDDEN_MASTHEAD_ID")===e};
_.Y.collapseAd=function(e){if(e){var z=_.Tj();z.set("HIDDEN_MASTHEAD_ID",e);z.save()}(e=_.XC(this.hostElement).querySelector("#video"))&&_.pi(e,"yt-masthead-hidden");this.collapsed=!0};
_.Y.expandAd=function(){var e=_.Tj();e.set("HIDDEN_MASTHEAD_ID",!1);e.save();location.reload()};
_.Y.detached=function(){_.M("stop_av_measurement_on_detach")&&B$(this.activeView)};
lW.prototype.onIronResize=lW.prototype.onIronResize;lW.prototype.dataChanged=lW.prototype.dataChanged;_.d([_.W(_.oY),_.B("design:type",Object)],lW.prototype,"ironResizableBehavior",void 0);_.d([_.W(_.MC),_.B("design:type",Object)],lW.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],lW.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lW.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.B("design:type",Boolean)],lW.prototype,"widescreen",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.B("design:type",Boolean)],lW.prototype,"expandable",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lW.prototype,"collapsed",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lW.prototype,"dataChanged",null);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lW.prototype,"onIronResize",null);_.d([_.SL({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],lW);
_.u(lW,"ytd-video-masthead-ad-v3-renderer",function(){if(Mmh!==void 0)return Mmh;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Mmh=e},{mode:2});var Qs=function(){return _.V.apply(this,arguments)||this};
_.U(Qs,_.V);_.Y=Qs.prototype;_.Y.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.Y.ready=function(){var e=this;bXo(function(){e.isAttached&&w$(e.JSC$15876_storedAdSlotMetadata,e.JSC$15876_storedAdLayoutMetadata,e.adSlotMetadata,e.adLayoutMetadata)&&KD(CD(),e.JSC$15876_storedAdSlotMetadata,e.JSC$15876_storedAdLayoutMetadata)})};
_.Y.attached=function(){w$(this.JSC$15876_storedAdSlotMetadata,this.JSC$15876_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Zyc(CD(),this.JSC$15876_storedAdSlotMetadata,this.JSC$15876_storedAdLayoutMetadata)};
_.Y.detached=function(){w$(this.JSC$15876_storedAdSlotMetadata,this.JSC$15876_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&KD(CD(),this.JSC$15876_storedAdSlotMetadata,this.JSC$15876_storedAdLayoutMetadata)};
_.Y.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15876_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15876_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15876_storedAdLayoutMetadata!==void 0&&this.JSC$15876_storedAdSlotMetadata!==void 0&&KD(CD(),this.JSC$15876_storedAdSlotMetadata,this.JSC$15876_storedAdLayoutMetadata),Zyc(CD(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15876_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15876_storedAdSlotMetadata=this.adSlotMetadata)};
_.lB.Object.defineProperties(Qs.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.adLayoutMetadata}}});
Qs.prototype.onAdMetadataChanged=Qs.prototype.onAdMetadataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Qs.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Qs.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Qs.prototype,"data",void 0);_.d([_.P("data.adLayoutMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],Qs.prototype,"adLayoutMetadata",null);
_.d([_.F(),_.B("design:type",Object)],Qs.prototype,"adSlotMetadata",void 0);_.d([_.mi("adLayoutMetadata","adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qs.prototype,"onAdMetadataChanged",null);_.d([_.SL({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Qs);
_.u(Qs,"ytd-page-top-ad-layout-renderer",function(){if($kX!==void 0)return $kX;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return $kX=
e},{mode:_.bA("kevlar_poly_si_batch_j070")?1:2});var rDa;var mq=function(){var e=_.V.apply(this,arguments)||this;e.noBottomMargin=!1;e.overlayDensity=0;e.typographyBump=!1;e.extractOverlay=!1;e.extractActionBar=!1;return e};
_.U(mq,_.V);_.Y=mq.prototype;
_.Y.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.Y.ready=function(){var e=this;bXo(function(){e.isAttached&&e.adSlotMetadata&&A7o(CD(),e.adSlotMetadata)})};
_.Y.attached=function(){if(this.adSlotMetadata){var e;if(this.adSlotMetadata===((e=this.data)==null?void 0:e.adSlotMetadata))c76(CD(),this.adSlotMetadata);else{var z;_.AX(Error("Oh`"+this.adSlotMetadata+"`"+((z=this.data)==null?void 0:z.adSlotMetadata)))}}};
_.Y.detached=function(){this.adSlotMetadata&&A7o(CD(),this.adSlotMetadata)};
_.Y.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.Y.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&A7o(CD(),this.adSlotMetadata),c76(CD(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.lB.Object.defineProperties(mq.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var e,z,C=_.r((e=this.data)==null?void 0:(z=e.fulfillmentContent)==null?void 0:z.fulfilledLayout,_.t_s),w;return(e=(w=_.r(C==null?void 0:C.renderingContent,BST))==null?void 0:w.layout)?e.toLowerCase().replace(/_/g,"-"):""}}});
mq.prototype.onAdSlotMetadataChanged=mq.prototype.onAdSlotMetadataChanged;mq.prototype.onTypographyBumpChanged=mq.prototype.onTypographyBumpChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],mq.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mq.prototype,"rendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],mq.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],mq.prototype,"noBottomMargin",void 0);_.d([_.F(),_.B("design:type",Object)],mq.prototype,"overlayDensity",void 0);_.d([_.F(),_.B("design:type",Object)],mq.prototype,"typographyBump",void 0);_.d([_.F(),_.B("design:type",Object)],mq.prototype,"extractOverlay",void 0);_.d([_.F(),_.B("design:type",Object)],mq.prototype,"extractActionBar",void 0);
_.d([_.nP("ytd-in-feed-ad-layout-renderer"),_.B("design:type",HTMLElement)],mq.prototype,"inFeedAdLayoutRenderer",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],mq.prototype,"layout",null);_.d([_.mi("typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mq.prototype,"onTypographyBumpChanged",null);
_.d([_.mi("data.adSlotMetadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mq.prototype,"onAdSlotMetadataChanged",null);_.d([_.SL({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],mq);
_.u(mq,"ytd-ad-slot-renderer",function(){if(rDa!==void 0)return rDa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return rDa=e},{mode:_.bA("kevlar_poly_si_batch_j077")?
1:2});var HwX;var az=function(){return _.V.apply(this,arguments)||this};
_.U(az,_.V);_.Y=az.prototype;_.Y.created=function(){this.activeView=new NC(this.hostElement)};
_.Y.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"}}}};
_.Y.maybeComputeHref=function(){return null};
_.Y.onTap=function(){};
_.Y.onThumbnailContainerClick=function(e){this.onClick(e)};
_.Y.onClick=function(e){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint;C&&_.r(C,_.N$)&&(this.ytSparklesClickLocationBehavior.handleClick(C,e,!1),e.stopPropagation())};
_.Y.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var e=_.b(this.data.impressionUrls),z=e.next();!z.done;z=e.next())z=z.value,ZP1(z,e9o(z));this.data.activeView&&sZ(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",az.JSC$15884_DEFAULT_CLICK_LOCATION_BEHAVIOR,az.JSC$15884_CLICK_LOCATION_ID_MAP);this.thumbnail&&(e=this.thumbnail.getElementsByTagName("a"),e.length>0&&(e=e.namedItem("thumbnail"))&&e.removeAttribute("href"))}};
_.Y.attached=function(){var e=this;_.M("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&B$(e.activeView)})};
_.Y.detached=function(){_.M("stop_av_measurement_on_detach")&&B$(this.activeView)};
_.lB.Object.defineProperties(az.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
az.prototype.dataChanged=az.prototype.dataChanged;az.prototype.onTap=az.prototype.onTap;az.JSC$15884_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
az.JSC$15884_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"}];_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],az.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],az.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],az.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.F({selector:_.Sj}),_.B("design:type",Object)],az.prototype,"isGridViewEnabled",void 0);_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],az.prototype,"watchFeedBigThumbs",null);_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],az.prototype,"thumbnailWidth",null);_.d([_.F(),_.B("design:type",Object)],az.prototype,"data",void 0);
_.d([_.nP("ytd-thumbnail"),_.B("design:type",HTMLElement)],az.prototype,"thumbnail",void 0);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],az.prototype,"onTap",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],az.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],az);
_.u(az,"ytd-compact-promoted-video-renderer",function(){if(HwX!==void 0)return HwX;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return HwX=e},{mode:1});var Uk6;_.hq("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var nD=function(){return _.V.apply(this,arguments)||this};
_.U(nD,_.V);nD.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],nD.prototype,"data",void 0);_.d([_.SL({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],nD);
_.u(nD,"ytd-search-pyv-renderer",function(){if(Uk6!==void 0)return Uk6;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Uk6=e},{mode:1});var vwC;_.hq("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var MM=function(){var e=_.V.apply(this,arguments)||this;e.roundedContainer=!0;e.JSC$15892_handleOpenPostCommentDialogActionAfterStamp=!1;e.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return e};
_.U(MM,_.V);_.Y=MM.prototype;
_.Y.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.Y.onStampFinished=function(){this.JSC$15892_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){var e=_.XC(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");e?e.openDialog():this.JSC$15892_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Y.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.Y.computeHideBorder=function(){return this.isInEngagementPanel};
_.Y.computeIsCompact=function(){return this.isInEngagementPanel};
_.Y.computeUsesCompactLockup=function(e){return e==="BACKSTAGE_SURFACE_TYPE_HOME"||e==="BACKSTAGE_SURFACE_TYPE_SEARCH"||e==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||e==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||e==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||e==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.Y.computeUsesFullLockup=function(){var e,z=(e=this.data)==null?void 0:e.post,C;e=(C=_.r(z,oPa))==null?void 0:C.surface;var w;C=(w=_.r(z,bcc))==null?void 0:w.originalPost;var K;if(w=e||((K=_.r(C,oPa))==null?void 0:K.surface))return!this.computeUsesCompactLockup(w)&&this.useUpdatedRepostUi;var G;return((G=_.r(z,bcc))==null?void 0:G.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.lB.Object.defineProperties(MM.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var e,z;return((z=_.r((e=this.data)==null?void 0:e.post,oPa))==null?void 0:z.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.useUpdatedRepostUi}}});
MM.prototype.onYtCommentModerationPanelEmpty=MM.prototype.onYtCommentModerationPanelEmpty;MM.prototype.onStampFinished=MM.prototype.onStampFinished;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],MM.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],MM.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],MM.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],MM.prototype,"roundedContainer",void 0);_.d([_.F({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],MM.prototype,"hideBorder",void 0);_.d([_.F({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.B("design:type",Boolean)],MM.prototype,"isCompact",void 0);
_.d([_.F({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.B("design:type",Boolean)],MM.prototype,"usesFullLockup",void 0);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MM.prototype,"onStampFinished",null);
_.d([_.Qi("ytd-comment-moderation-panel-empty"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MM.prototype,"onYtCommentModerationPanelEmpty",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],MM.prototype,"isInEngagementPanel",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],MM.prototype,"useUpdatedRepostUi",null);
_.d([_.SL({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],MM);
_.u(MM,"ytd-backstage-post-thread-renderer",function(){if(vwC!==void 0)return vwC;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vwC=e},{mode:1});var Inh;var rF=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(rF,_.V);rF.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
rF.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var e=this.data.thumbnail.thumbnails;this.isDarkTheme&&(e=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(e=_.oo(e,24,void 0,"height"))?e:void 0}};
rF.prototype.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
rF.prototype.computeHasText=function(){var e;return!((e=this.data)==null||!e.text)};
_.lB.Object.defineProperties(rF.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.gw(this.bannerImageUrl))+'");'}}});
rF.prototype.computeHasText=rF.prototype.computeHasText;rF.prototype.computeBannerImageUrl=rF.prototype.computeBannerImageUrl;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],rF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],rF.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],rF.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],rF.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",String)],rF.prototype,"bannerImageUrl",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.B("design:type",Boolean)],rF.prototype,"hasText",void 0);_.d([_.mi("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rF.prototype,"computeBannerImageUrl",null);
_.d([_.mi("data.text"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rF.prototype,"computeHasText",null);_.d([_.P("bannerImageUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],rF.prototype,"bannerStyle",null);_.d([_.SL({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],rF);
_.u(rF,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Inh!==void 0)return Inh;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Inh=e},{mode:1});var WRo;var HO=function(){return _.V.apply(this,arguments)||this};
_.U(HO,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],HO.prototype,"data",void 0);_.d([_.SL({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],HO);
_.u(HO,"ytd-backstage-zero-state-renderer",function(){if(WRo!==void 0)return WRo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return WRo=e},{mode:1});var PfL;var Ud=function(){return _.V.apply(this,arguments)||this};
_.U(Ud,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ud.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],Ud.prototype,"icon",void 0);_.d([_.SL({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Ud);
_.u(Ud,"ytd-post-filter-zero-state-renderer",function(){if(PfL!==void 0)return PfL;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return PfL=e},{mode:1});var Rac;var LRL={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},vO=function(){return _.V.apply(this,arguments)||this};
_.U(vO,_.V);vO.prototype.configureRendererStamper=function(){return LRL};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vO.prototype,"rendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vO.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],vO.prototype,"icon",void 0);_.d([_.SL({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],vO);
_.u(vO,"ytd-post-scheduling-zero-state-renderer",function(){if(Rac!==void 0)return Rac;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Rac=e},{mode:1});var haU;var Iz=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return e};
_.U(Iz,_.V);Iz.prototype.onTabsActivate=function(e){this.data&&this.data.tabs&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[e.detail.selected].navigationEndpoint})};
Iz.prototype.shouldShowTotalCount=function(e){return e&&e.totalCount!==void 0};
Iz.prototype.handleUpdatePostsTotalCountAction=function(e){var z=this.get(["data.tabs",1,"totalCount"]),C=this.get("updatePostsTotalCountAction.updateType",e);e=this.get("updatePostsTotalCountAction.number",e);z!==void 0&&C!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&e&&(C==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(z)+e):C==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(z)-e))};
_.lB.Object.defineProperties(Iz.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var e=0,z=this.data.tabs.length;e<z;e++)if(this.data.tabs[e].selected)return e;return 0}}});
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Iz.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Iz.prototype,"rendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Iz.prototype,"data",void 0);_.d([_.P("data.tabs"),_.B("design:type",Number),_.B("design:paramtypes",[])],Iz.prototype,"selected",null);_.d([_.SL({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Iz);
_.u(Iz,"ytd-post-stream-filter-renderer",function(){if(haU!==void 0)return haU;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return haU=e},{mode:1});var Ow6;var WO=function(){return _.V.apply(this,arguments)||this};
_.U(WO,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],WO.prototype,"kevlarBehaviors",void 0);_.d([_.F(),_.B("design:type",Object)],WO.prototype,"data",void 0);_.d([_.SL({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],WO);
_.u(WO,"ytd-channel-age-gate-renderer",function(){if(Ow6!==void 0)return Ow6;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Ow6=e},{mode:1});var EwX;_.hq("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var PO=function(){var e=_.V.apply(this,arguments)||this;e.data=null;return e};
_.U(PO,_.V);PO.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.lB.Object.defineProperties(PO.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?0:(z=e.title)==null?0:(C=z.runs)==null?0:C.length)?147:160}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],PO.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],PO.prototype,"imageSizePx",null);_.d([_.SL({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],PO);
_.u(PO,"ytd-channel-owner-empty-state-renderer",function(){if(EwX!==void 0)return EwX;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return EwX=e},{mode:1});var FRY;var Vmg;var Rz=function(){var e=_.V.apply(this,arguments)||this;e.boundSubmitSearch=function(){e.submitSearch()};
e.boundClearSearch=function(){e.clearSearch()};
return e};
_.U(Rz,_.V);_.Y=Rz.prototype;_.Y.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]]"}}}}}};
_.Y.toggleClearButton=function(){this.hideClearButton=yk6||!this.input.value};
_.Y.submitOnEnterKeyUp=function(e){e.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.Y.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.Y.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.Y.submit=function(){_.pi(this.hostElement,"search-query-changed",this.input.value)};
Rz.prototype.toggleClearButton=Rz.prototype.toggleClearButton;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Rz.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Rz.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Rz.prototype,"hideClearButton",void 0);_.d([_.F(),_.B("design:type",Object)],Rz.prototype,"boundSubmitSearch",void 0);_.d([_.F(),_.B("design:type",Object)],Rz.prototype,"boundClearSearch",void 0);_.d([_.nP("#input"),_.B("design:type",Object)],Rz.prototype,"input",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rz.prototype,"toggleClearButton",null);
_.d([_.SL({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Rz);
_.u(Rz,"ytd-channel-switcher-search-box-renderer",function(){if(Vmg!==void 0)return Vmg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Vmg=e},{mode:1});var fna;var LD=function(){var e=_.V.apply(this,arguments)||this;e.boundSubmit=function(){e.submit()};
return e};
_.U(LD,_.V);_.Y=LD.prototype;_.Y.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"}}}}};
_.Y.ready=function(){var e=this;this.form.addEventListener("submit",function(z){return e.onSubmit(z)})};
_.Y.onSubmit=function(e){e.preventDefault();return!1};
_.Y.toggleClearButton=function(){this.hideClearButton=yk6||!this.input.value};
_.Y.submitOnEnterKeyUp=function(e){e.keyCode===13&&this.submit()};
_.Y.submit=function(){var e=this.data.endpoint,z=(0,_.de.unsafeClone)(e);_.r(z,_.mJ)?_.r(z,_.mJ).query=this.input.value:_.r(z,_.ag)&&(_.r(z,_.ag).query=this.input.value);var C=_.r(z.commandMetadata,_.XV);(C==null?0:C.url)?(C.url=_.z4(C.url,"query",this.input.value),_.pi(this.hostElement,"yt-navigate",{endpoint:z})):_.r(z,Sna)?(_.r(z,Sna).channelSwitcherQuery=this.input.value,_.lh().resolve(_.ms).resolveCommand(z,{form:{element:this.hostElement}})):(e=Error("Ph`"+JSON.stringify(e)),_.yG(e))};
_.Y.getUrl=function(e){return this.get("commandMetadata.webCommandMetadata.url",e)};
LD.prototype.toggleClearButton=LD.prototype.toggleClearButton;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],LD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],LD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],LD.prototype,"hideClearButton",void 0);
_.d([_.F(),_.B("design:type",Object)],LD.prototype,"boundSubmit",void 0);_.d([_.nP("#form"),_.B("design:type",HTMLFormElement)],LD.prototype,"form",void 0);_.d([_.nP("#input"),_.B("design:type",Object)],LD.prototype,"input",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LD.prototype,"toggleClearButton",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],LD);
_.u(LD,"ytd-search-box-renderer",function(){if(fna!==void 0)return fna;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return fna=e},{mode:2});var hz=function(){var e=_.V.apply(this,arguments)||this;e.showSearchBox=!0;return e};
_.U(hz,_.V);hz.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],hz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hz.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],hz.prototype,"showSearchBox",void 0);_.d([_.SL({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],hz);
_.u(hz,"ytd-channel-switcher-header-renderer",function(){if(FRY!==void 0)return FRY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return FRY=e},{mode:1});var SMc;var u8X;var Od=function(){var e=_.V.apply(this,arguments)||this;e.isDisplayed=!0;return e};
_.U(Od,_.V);_.Y=Od.prototype;_.Y.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.dataChanged=function(){this.isDisplayed=!0};
_.Y.computeType=function(e){return e||"UNKNOWN"};
_.Y.onYtServiceRequestCompleted=function(e){e.stopPropagation();this.isDisplayed=!1};
_.Y.onClose=function(){this.isDisplayed=!1};
Od.prototype.onYtServiceRequestCompleted=Od.prototype.onYtServiceRequestCompleted;Od.prototype.dataChanged=Od.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Od.prototype,"data",void 0);
_.d([_.F({computed:"computeType(data.type)",reflectToAttribute:!0}),_.B("design:type",String)],Od.prototype,"type",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Od.prototype,"isDisplayed",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Od.prototype,"dataChanged",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Od.prototype,"onYtServiceRequestCompleted",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Od);
_.u(Od,"ytd-alert-with-button-renderer",function(){if(u8X!==void 0)return u8X;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return u8X=e},{mode:1});var Ed=function(){var e=_.V.apply(this,arguments)||this;e.noResult=!1;e.enableAlertBanner=!1;e.dismissedAlertBanner=!1;e.hideCreateChannelButton=!1;e.boundDismissAlertBanner=function(){e.dismissAlertBanner()};
e.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return e};
_.U(Ed,_.V);_.Y=Ed.prototype;_.Y.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.Y.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.Y.updateChannelSwitcherAction=function(e){var z;e=(z=_.r(e,EKh))==null?void 0:z.page;_.r(e,Oro)!==void 0&&(this.data=_.r(e,Oro))};
_.Y.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]]"}}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y.searchQueryChanged=function(e,z){if(this.data&&this.data.contents&&this.data.contents.length){e=[];var C=[];this.hideCreateChannelButton=this.noResult=!1;for(var w=document.querySelectorAll("ytd-account-item-renderer"),K=_.b(w),G=K.next();!G.done;G=K.next())G=G.value,C.push(G),G.style.display="block";this.resetRightBorder(C);if(z){this.hideCreateChannelButton=!0;for(C=1;C<this.data.contents.length;C++)if(G=this.data.contents[C],_.r(G,Fz6)){var X=void 0,J=void 0;K=(X=_.r(G,Fz6))==null?void 0:(J=
X.accountName)==null?void 0:J.simpleText;J=X=void 0;G=(X=_.r(G,Fz6))==null?void 0:(J=X.channelHandle)==null?void 0:J.simpleText;(X=w[C-1])&&K&&_.q5(K,z)?e.push(X):_.M("enable_handle_search_on_channel_switcher")&&X&&G&&_.q5(G.toString(),z.toString())?e.push(X):X.style.display="none"}e.length===0&&(this.noResult=!0);this.resetRightBorder(e)}}};
_.Y.resetRightBorder=function(e){for(var z=0;z<e.length;z++)e[z].style.borderRight=!this.hideCreateChannelButton&&(z+2)%3===0||this.hideCreateChannelButton&&(z+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.Y.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.Y.setShowSearchBox=function(e){if(e&&e.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var z=0;z<e.contents.length;z++)_.r(e.contents[z],_.GO)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.Y.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.lB.Object.defineProperties(Ed.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.contents)}}});
Ed.prototype.onContinuationItemsUpdated=Ed.prototype.onContinuationItemsUpdated;Ed.prototype.searchQueryChanged=Ed.prototype.searchQueryChanged;Ed.prototype.onDataChanged=Ed.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ed.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],Ed.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ed.prototype,"data",void 0);_.d([_.nP("ytd-channel-switcher-header-renderer"),_.B("design:type",Object)],Ed.prototype,"channelSwitcherHeaderRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],Ed.prototype,"noResult",void 0);
_.d([_.F(),_.B("design:type",Object)],Ed.prototype,"enableAlertBanner",void 0);_.d([_.F(),_.B("design:type",Object)],Ed.prototype,"dismissedAlertBanner",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ed.prototype,"hideCreateChannelButton",void 0);_.d([_.P("data.contents"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ed.prototype,"isLoading",null);_.d([_.F(),_.B("design:type",Object)],Ed.prototype,"boundDismissAlertBanner",void 0);
_.d([_.F({computed:"computeButtonOverride()"}),_.B("design:type",Object)],Ed.prototype,"buttonOverride",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ed.prototype,"onDataChanged",null);_.d([_.Qi("search-query-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],Ed.prototype,"searchQueryChanged",null);
_.d([_.Qi("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ed.prototype,"onContinuationItemsUpdated",null);_.d([_.SL({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Ed);
_.u(Ed,"ytd-channel-switcher-page-renderer",function(){if(SMc!==void 0)return SMc;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return SMc=e},{mode:1});var dkg;var Dka;var F$=function(){var e=_.V.apply(this,arguments)||this;e.images=[];e.selectedImageIndex=0;return e};
_.U(F$,_.V);_.Y=F$.prototype;
_.Y.ready=function(){_.W9(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.W9(this.JSC$15937_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.W9(this.JSC$15937_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.W9(this.JSC$15937_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.Y.onThumbnailClick=function(e){if(e=e.event_.detail)this.selectedImageIndex=this.images.indexOf(e)};
_.Y.updateImageThumbnails=function(e){e=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:e.event_.detail});this.images.splice(this.selectedImageIndex,1,e);this.images=[].concat(_.s_(this.images))};
_.Y.cancelImageRepositions=function(){this.selectedImageIndex=0;_.pi(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.Y.saveImageRepositions=function(){this.selectedImageIndex=0;_.pi(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.lB.Object.defineProperties(F$.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var e=this;return(this.images||[]).map(function(z,C){return{image:z,selected:C===e.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("ytd-backstage-image-preview-renderer"),_.B("design:type",Object)],F$.prototype,"JSC$15937_imagePreviewContainer",void 0);_.d([_.nP(".thumbnail-images-container"),_.B("design:type",HTMLElement)],F$.prototype,"thumbnailImagesContainer",void 0);_.d([_.F(),_.B("design:type",Array)],F$.prototype,"images",void 0);
_.d([_.F(),_.B("design:type",Object)],F$.prototype,"repositionInstructions",void 0);_.d([_.F(),_.B("design:type",Object)],F$.prototype,"selectedImageIndex",void 0);_.d([_.P("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],F$.prototype,"thumbnailRendererDatas",null);_.d([_.P("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],F$.prototype,"selectedImageData",null);
_.d([_.SL({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],F$);
_.u(F$,"ytd-backstage-multi-image-reposition-renderer",function(){if(Dka!==void 0)return Dka;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Dka=e},{mode:1});var Vs=function(e,z){_.N3.call(this);this.uploadUrl=e;this.channelId=z;this.imagesUploadData=[]};
_.U(Vs,_.N3);Vs.prototype.getAllUploadStatuses=function(){var e=this,z,C,w;return _.k(function(K){if(K.nextAddress==1)return K.yield(iwc(e),2);z=K.yieldResult;C=z.get("succeed");w=z.get("failed");return K.return(C.concat(w))})};
var s9h=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(iwc(e),2);z=w.yieldResult;C=z.get("failed");C.length>0&&NWs(e,C);return w.return(e.getAllUploadStatuses())})},iwc=function(e){var z,C,w,K,G,X,J;
return _.k(function(q){if(q.nextAddress==1)return z=new Map,q.yield(Promise.allSettled(e.imagesUploadData.map(function(T){return T.uploadPromise})),2);
C=q.yieldResult;w=[];K=_.b(C);for(G=K.next();!G.done;G=K.next())X=G.value,X.status==="fulfilled"&&w.push(X.value);J=e.imagesUploadData.map(function(T){return T.image}).filter(function(T){return w.every(function(Q){return Q.id!==T.id})});
z.set("succeed",w);z.set("failed",J);return q.return(z)})},NWs=function(e,z){z=_.b(z);
for(var C=z.next();!C.done;C=z.next()){var w=e;C=C.value;BWa(w,C.id)>=0&&w.cancel(C.id);var K=new tmC(C),G=_.HNa(w.uploadUrl,{"X-YouTube-ChannelId":w.channelId},C.imageBlob);K.transfer=G;K.uploadPromise=gwS(G,C);w.imagesUploadData.push(K);G.run()}};
Vs.prototype.cancel=function(e){var z=BWa(this,e);z!==-1&&((z=this.imagesUploadData[z].transfer)&&z.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(C){return C.image.id!==e}))};
var BWa=function(e,z){return e.imagesUploadData.findIndex(function(C){return C.image.id===z})},gwS=function(e,z){return new Promise(function(C,w){e.listen("l",function(){var K=e.getResponseText();
K?(K=JSON.parse(K).encryptedBlobId,z.encryptedBlobId=K,C(z)):w("upload failed")});
e.listen("n",function(){w("upload failed")})})},tmC=function(e){this.image=e};var AVg=function(e,z,C,w,K){this.id=e;this.imageBlob=z;this.localImageSrc=C;this.naturalWidth=w;this.naturalHeight=K;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 j9h=[".jpeg",".jpg",".png"],fD=function(){var e=_.V.apply(this,arguments)||this;e.showImagesPreview=!1;e.pollOptions=[];e.errorMessage="";e.optionPlaceholderText="";e.optionDefaultText="";e.JSC$15948_imageId=0;e.maxFileSizeMb=0;e.maxAspectRatio=0;e.invalidFileSizeError="";e.invalidAspectRatioError="";e.invalidFileTypeError="";e.imageSelector=new NB(null,"single_file",j9h);return e};
_.U(fD,_.V);_.Y=fD.prototype;_.Y.ready=function(){_.W9(this.imageSelector,"j",this.onImageSelect,!1,this);_.W9(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.W9(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.Y.dataChanged=function(){var e,z,C=_.r((e=this.data)==null?void 0:(z=e.cellTemplate)==null?void 0:z.onEmptyCellTap,TXC);if(C&&C.uploadUrl&&C.channelId){var w;this.maxFileSizeMb=((w=C.imageValidationInfo)==null?void 0:w.maxFileSizeMb)||0;var K;this.maxAspectRatio=((K=C.imageValidationInfo)==null?void 0:K.allowedMaxAspectRatio)||0;var G;this.invalidFileSizeError=this.getSimpleString((G=this.data)==null?void 0:G.invalidFileSizeError);var X;this.invalidAspectRatioError=this.getSimpleString((X=this.data)==
null?void 0:X.invalidAspectRatioError);var J;this.invalidFileTypeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileTypeError);this.uploadManager=new Vs(C.uploadUrl,C.channelId)}};
_.Y.onEditorInfoChange=function(){this.optionPlaceholderText=_.Zd(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Zd(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.Y.observeAddImageError=function(){this.errorMessage!==""&&_.pi(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.Y.onPollOptionsChange=function(){for(var e=!1,z=[],C=0;C<this.pollOptions.length;C++){var w=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(C+1);this.pollOptions[C].placeholderText!==w?(e=!0,z.push(Object.assign({},this.pollOptions[C],{placeholderText:w}))):z.push(this.pollOptions[C])}e&&(this.pollOptions=z);this.isValid()?_.pi(this.hostElement,"yt-commentbox-post-enable"):_.pi(this.hostElement,"yt-commentbox-post-disable")};
_.Y.createPollOptions=function(e){var z=[],C;e=(C=e==null?void 0:e.minPollOptions)!=null?C:0;for(C=0;C<e;C++)z.push(this.createPollOption());return z};
_.Y.onImageSelect=function(e){var z=this,C,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1){if(z.selectedImageIndex===void 0)return q.jumpTo(0);C=e.files[0];z.errorMessage="";w=z.validateImage(C);if(w!=="")return z.errorMessage=w,q.return();K=new hi(z.maxAspectRatio,!1,!0);return q.yield(K.transform(C),3)}if(q.nextAddress!=4)return G=q.yieldResult,G.transformedData?G.invalidAspectRatio?(z.errorMessage=z.invalidAspectRatioError,q.return()):q.yield(Z11(z.JSC$15948_imageId,e.files[0],G.transformedData),
4):(z.errorMessage=z.invalidFileTypeError,q.return());X=q.yieldResult;z.JSC$15948_imageId++;NWs(z.uploadManager,[X]);J=Object.assign({},z.pollOptions[z.selectedImageIndex],{image:X});z.pollOptions.splice(z.selectedImageIndex,1,J);z.refreshPollOptions();_.pi(z.hostElement,"yt-backstage-poll-image-select");_.E_(q)})};
_.Y.validateImage=function(e){return e.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.Y.refreshPollOptions=function(){this.pollOptions=[].concat(_.s_(this.pollOptions))};
_.Y.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.s_(this.pollOptions),[this.createPollOption()]))};
_.Y.onRemovePollOption=function(e){var z=this.pollOptions[e.model.index];z&&z.image&&this.uploadManager.cancel(z.image.id);this.pollOptions.splice(e.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.pi(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.Y.onTextInput=function(){this.refreshPollOptions()};
_.Y.onImageButtonClick=function(e){this.selectedImageIndex=e.model.index;this.imageSelector.click()};
_.Y.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.Y.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.Y.saveImageRepositions=function(e){e=e.event_.detail;for(var z=0,C=[],w=_.b(this.pollOptions),K=w.next();!K.done;K=w.next())K=K.value,K.image!==void 0?(K=Object.assign({},K,{image:e[z]}),C.push(K),z++):C.push(K);this.showImagesPreview=!1;this.pollOptions=[].concat(_.s_(C))};
_.Y.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 e=0,z=_.b(this.pollOptions),C=z.next();!C.done;C=z.next())if(C=C.value,C.optionText.trim()!==""||C.image!==void 0){if(!C.image||this.hasCustomOptionText&&C.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;e++}return e>=Number(this.editorInfo.minPollOptions)};
_.Y.getAllUploadStatuses=function(){var e=this,z,C,w,K;return _.k(function(G){if(G.nextAddress==1)return G.yield(e.uploadManager.getAllUploadStatuses(),2);z=G.yieldResult;C=_.b(z);for(w=C.next();!w.done;w=C.next())if(K=w.value,K.encryptedBlobId===void 0)return G.return(s9h(e.uploadManager));return G.return(z)})};
_.Y.getPostCreateOptions=function(){for(var e=[],z=_.b(this.pollOptions),C=z.next();!C.done;C=z.next())C=C.value,C.image!==void 0&&e.push({text:this.hasCustomOptionText?C.optionText:C.placeholderText,image:C.image});return e};
_.Y.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.Y.createButtonRenderer=function(e,z){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleString(e)}},isDisabled:z}};
_.Y.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.Y.computeThumbnailRendererData=function(e){return e?{image:e,selected:!1}:void 0};
_.Y.getSimpleString=function(e){return _.Zd(e)};
_.Y.updateOptionTextFromBinding=function(e){if(e.target){var z=Array.from(_.XC(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(e.target);if(z>=0){var C;this.pollOptions[z].optionText=(C=e.detail.value)!=null?C:""}}};
_.lB.Object.defineProperties(fD.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var e,z;return this.pollOptions.length<((z=(e=this.editorInfo)==null?void 0:e.maxPollOptions)!=null?z:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(e){return e.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(e){return e.image}).map(function(e){return e.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(e){return e.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var e,z=(e=this.data)==null?void 0:e.addOptionButtonText;return z?this.createButtonRenderer(z,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var e,z=(e=this.data)==null?void 0:e.repositionImagesButtonLabel;return z?this.createButtonRenderer(z,!this.hasImages):void 0}}});
fD.prototype.onPollOptionsChange=fD.prototype.onPollOptionsChange;fD.prototype.observeAddImageError=fD.prototype.observeAddImageError;fD.prototype.onEditorInfoChange=fD.prototype.onEditorInfoChange;fD.prototype.dataChanged=fD.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("ytd-backstage-multi-image-reposition-renderer"),_.B("design:type",Object)],fD.prototype,"imageRepositionContainer",void 0);
_.d([_.F(),_.B("design:type",Object)],fD.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],fD.prototype,"editorInfo",void 0);_.d([_.F(),_.B("design:type",Vs)],fD.prototype,"uploadManager",void 0);_.d([_.F(),_.B("design:type",Object)],fD.prototype,"showImagesPreview",void 0);_.d([_.F(),_.B("design:type",Array)],fD.prototype,"pollOptions",void 0);_.d([_.F(),_.B("design:type",Object)],fD.prototype,"errorMessage",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fD.prototype,"dataChanged",null);_.d([_.Ux("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fD.prototype,"onEditorInfoChange",null);_.d([_.mi("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fD.prototype,"observeAddImageError",null);
_.d([_.Ux("pollOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fD.prototype,"onPollOptionsChange",null);_.d([_.P("pollOptions","editorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],fD.prototype,"isAllowedToAddOption",null);_.d([_.P("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],fD.prototype,"hasImages",null);
_.d([_.P("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],fD.prototype,"imagesToReposition",null);_.d([_.P("pollOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],fD.prototype,"hasCustomOptionText",null);_.d([_.P("data","isAllowedToAddOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],fD.prototype,"addOptionButton",null);_.d([_.P("data","hasImages"),_.B("design:type",Object),_.B("design:paramtypes",[])],fD.prototype,"repositionImagesButton",null);
_.d([_.SL({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],fD);
_.u(fD,"ytd-backstage-image-poll-editor-renderer",function(){if(dkg!==void 0)return dkg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return dkg=e},{mode:2});var yDg={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 cDU;var SU=function(){var e=_.V.apply(this,arguments)||this;e.a11yConfig=yDg;e.imageDisplayOffsetTop=0;e.imageDisplayOffsetLeft=0;e.pickerDisplayOffsetTop=0;e.pickerDisplayOffsetLeft=0;e.showPreviewContainer=!0;e.startPicker=!1;e.repositionOptional=!1;e.editOnlyMode=!1;e.savedImageDisplayOffsetTop=0;e.savedImageDisplayOffsetLeft=0;return e};
_.U(SU,_.V);_.Y=SU.prototype;_.Y.created=function(){_.lK.requestAvailability()};
_.Y.ready=function(){};
_.Y.onArrowKeysDown=function(e){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){e.detail.keyboardEvent.preventDefault();var z=0,C=0,w="";switch(e.detail.keyboardEvent.key){case "ArrowUp":pu1(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?w=this.a11yConfig.reachBottomOfImage:z=this.imageHeight*.05*-1;break;case "ArrowDown":pu1(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?w=this.a11yConfig.reachTopOfImage:
z=this.imageHeight*.05;break;case "ArrowLeft":pu1(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?w=this.a11yConfig.reachRightOfImage:C=this.imageWidth*.05*-1;break;case "ArrowRight":pu1(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?w=this.a11yConfig.reachLeftOfImage:C=this.imageWidth*.05}w&&_.kk(w)&&_.pi(this.hostElement,"iron-announce",{text:_.kk(w)});if(C||z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+z)),e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),e=_.kk(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+C)),e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),e=_.kk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})),e&&_.pi(this.hostElement,"iron-announce",{text:e})}};
_.Y.getPreviewPosition=function(e,z,C,w){return Math.round(100*(e+z*.5-C)/w)};
_.Y.calculateDisplayPosition=function(){var e=this.imageData.naturalWidth,z=this.imageData.naturalHeight;this.displayScale=Math.max(200/e,200/z);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var C=e*this.displayScale*this.imageData.previewCoordinates.left,w=z*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=z>e?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-C;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=e>z?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-w;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=e*this.displayScale;this.imageHeight=z*this.displayScale};
_.Y.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.Y.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.Y.getSignedPosition=function(e,z,C){return z==="X"&&_.j5("HTML_DIR")==="rtl"?C==="-"?e+"px":e*-1+"px":C==="-"?e*-1+"px":e+"px"};
_.Y.pickerMove=function(e){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var z=this.pickerOffsetX-e.clientX,C=this.pickerOffsetY-e.clientY;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
C)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-z))}};
_.Y.pickerMoveStart=function(e){this.startPicker=!0;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY};
_.Y.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var e=this.generateCropPreview();e&&_.pi(this.hostElement,"ytd-backstage-image-preview-coordinates-update",e)};
_.Y.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.pi(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.Y.deleteImage=function(){_.pi(this.hostElement,"ytd-backstage-image-preview-delete")};
_.Y.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.Y.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var e=this.generateCropPreview();e&&_.pi(this.hostElement,"ytd-backstage-image-preview-coordinates-save",e)};
_.Y.getPreviewOffset=function(e,z,C){return z&&e?(C==="X"&&_.j5("HTML_DIR")==="rtl"?300/z*e:300/z*e*-1)+"px":"0px"};
_.Y.getSimpleText=function(e){return e?_.Zd(e):""};
_.Y.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}};
_.lB.Object.defineProperties(SU.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.kk(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.kk(this.a11yConfig.verticalRepositionInstruction)}e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.kk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.kk(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 e,z,C=(e=this.instruction)==null?void 0:(z=e.previewInstruction)==null?void 0:z.editButtonLabel;return C?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleText(C)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K=this.editOnlyMode?(e=this.instruction)==null?void 0:(z=e.editInstruction)==null?void 0:z.saveImagesButtonLabel:(C=this.instruction)==null?void 0:(w=C.editInstruction)==null?void 0:w.saveButtonLabel;return K?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.instruction)==null?void 0:(z=e.previewInstruction)==null?void 0:z.deleteButtonLabel;return C?{size:"SIZE_SMALL",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleText(C)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.instruction)==null?void 0:(z=e.editInstruction)==null?void 0:z.cancelButtonLabel;e=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return C?{style:e,size:"SIZE_SMALL",text:C,accessibilityData:{accessibilityData:{label:this.getSimpleText(C)}}}: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"}}});
SU.prototype.onEditOnlyModeUpdate=SU.prototype.onEditOnlyModeUpdate;SU.prototype.onImageChange=SU.prototype.onImageChange;_.d([_.F(),_.B("design:type",AVg)],SU.prototype,"imageData",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"instruction",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"a11yConfig",void 0);_.d([_.F(),_.B("design:type",Number)],SU.prototype,"imageWidth",void 0);_.d([_.F(),_.B("design:type",Number)],SU.prototype,"imageHeight",void 0);
_.d([_.F(),_.B("design:type",Number)],SU.prototype,"displayScale",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"imageDisplayOffsetTop",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"imageDisplayOffsetLeft",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"pickerDisplayOffsetTop",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"pickerDisplayOffsetLeft",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"showPreviewContainer",void 0);
_.d([_.F(),_.B("design:type",Object)],SU.prototype,"startPicker",void 0);_.d([_.F(),_.B("design:type",Number)],SU.prototype,"pickerOffsetX",void 0);_.d([_.F(),_.B("design:type",Number)],SU.prototype,"pickerOffsetY",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"repositionOptional",void 0);_.d([_.F(),_.B("design:type",Object)],SU.prototype,"editOnlyMode",void 0);_.d([_.nP("#picker-container"),_.B("design:type",HTMLElement)],SU.prototype,"JSC$15961_pickerContainer",void 0);
_.d([_.nP("#picker"),_.B("design:type",HTMLElement)],SU.prototype,"picker",void 0);_.d([_.nP("#preview-clipper"),_.B("design:type",HTMLElement)],SU.prototype,"previewClipper",void 0);_.d([_.nP("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],SU.prototype,"JSC$15961_imageInBackground",void 0);_.d([_.nP("#image-in-picker"),_.B("design:type",HTMLImageElement)],SU.prototype,"JSC$15961_imageInPicker",void 0);
_.d([_.nP("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],SU.prototype,"JSC$15961_imageInPreviewClipper",void 0);_.d([_.P("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],SU.prototype,"altLabelForImage",null);_.d([_.P("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],SU.prototype,"pickerSize",null);
_.d([_.P("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],SU.prototype,"imageOrientationStyle",null);_.d([_.P("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],SU.prototype,"editButton",null);_.d([_.P("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],SU.prototype,"saveButton",null);_.d([_.P("instruction"),_.B("design:type",Object),_.B("design:paramtypes",[])],SU.prototype,"deleteButton",null);
_.d([_.P("instruction","editOnlyMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],SU.prototype,"cancelButton",null);_.d([_.P("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],SU.prototype,"cropOffsetTop",null);_.d([_.P("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],SU.prototype,"cropOffsetLeft",null);
_.d([_.P("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],SU.prototype,"pickerBackgroundStyle",null);_.d([_.P("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],SU.prototype,"pickerDisplayStyle",null);_.d([_.P("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],SU.prototype,"imageInPickerStyle",null);
_.d([_.P("cropOffsetLeft","cropOffsetTop","pickerSize"),_.B("design:type",String),_.B("design:paramtypes",[])],SU.prototype,"previewClipperStyle",null);_.d([_.Ux("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SU.prototype,"onImageChange",null);_.d([_.Ux("editOnlyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SU.prototype,"onEditOnlyModeUpdate",null);
_.d([_.P("showPreviewContainer"),_.B("design:type",String),_.B("design:paramtypes",[])],SU.prototype,"pickerModeStyle",null);_.d([_.SL({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],SU);
_.u(SU,"ytd-backstage-image-preview-renderer",function(){if(cDU!==void 0)return cDU;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return cDU=e},{mode:1});var ADh;var ZwX={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 pNg;var e2o;var uW=function(){var e=_.V.apply(this,arguments)||this;e.a11yConfig=ZwX;e.imageDisplayOffsetTop=0;e.imageDisplayOffsetLeft=0;e.pickerDisplayOffsetTop=0;e.pickerDisplayOffsetLeft=0;e.cropCoordinatesSaved=!1;e.previewSize=0;e.startPicker=!1;e.repositionOptional=!1;return e};
_.U(uW,_.V);_.Y=uW.prototype;_.Y.created=function(){_.lK.requestAvailability()};
_.Y.ready=function(){};
_.Y.onArrowKeysDown=function(e){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){e.detail.keyboardEvent.preventDefault();var z=0,C=0,w="";switch(e.detail.keyboardEvent.key){case "ArrowUp":eem(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?w=this.a11yConfig.reachBottomOfImage:z=this.imageHeight*.05*-1;break;case "ArrowDown":eem(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?w=this.a11yConfig.reachTopOfImage:
z=this.imageHeight*.05;break;case "ArrowLeft":eem(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?w=this.a11yConfig.reachRightOfImage:C=this.imageWidth*.05*-1;break;case "ArrowRight":eem(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?w=this.a11yConfig.reachLeftOfImage:C=this.imageWidth*.05}w&&_.kk(w)&&_.pi(this.hostElement,"iron-announce",{text:_.kk(w)});if(C||z)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+z)),e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),e=_.kk(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+C)),e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),e=_.kk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})),e&&_.pi(this.hostElement,"iron-announce",{text:e})}};
_.Y.getPreviewPosition=function(e,z,C,w){return Math.round(100*(e+z*.5-C)/w)};
_.Y.displayImage=function(){var e=this.JSC$15972_pickerContainer.getBoundingClientRect().width,z=this.JSC$15972_pickerContainer.getBoundingClientRect().height,C=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),w=this.JSC$15972_imageInBackground.naturalWidth,K=this.JSC$15972_imageInBackground.naturalHeight;this.displayScale=Math.max(C/w,C/K);this.imageWidth=w*this.displayScale;this.imageHeight=K*this.displayScale;this.pickerDisplayOffsetLeft=(e-C)/2;this.pickerDisplayOffsetTop=
(z-C)/2;this.imageDisplayOffsetLeft=K>w?this.pickerDisplayOffsetLeft:(e-this.imageWidth)/2;this.imageDisplayOffsetTop=w>K?this.pickerDisplayOffsetTop:(z-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.Y.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15972_imageInBackground.src=this.imageData.toString(),this.JSC$15972_imageInPicker.src=this.imageData.toString(),this.JSC$15972_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.Y.getSignedPosition=function(e,z,C){return z==="X"&&_.j5("HTML_DIR")==="rtl"?C==="-"?e+"px":e*-1+"px":C==="-"?e*-1+"px":e+"px"};
_.Y.pickerMove=function(e){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var z=this.pickerOffsetX-e.clientX,C=this.pickerOffsetY-e.clientY;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
C)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-z))}};
_.Y.pickerMoveStart=function(e){this.startPicker=!0;this.pickerOffsetX=e.clientX;this.pickerOffsetY=e.clientY};
_.Y.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.Y.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.pi(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.Y.getPreviewOffset=function(e,z,C,w){return z&&e&&C?(w==="X"&&_.j5("HTML_DIR")==="rtl"?C/z*e:C/z*e*-1)+"px":"0px"};
_.Y.getSimpleText=function(e){return e?_.Zd(e):""};
_.Y.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var e=this.cropOffsetTop/this.imageHeight,z=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,C=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,w=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.XC(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.pi(this.hostElement,"yt-img-crop-coordinates-update",{top:e,right:z,bottom:C,left:w})}};
_.lB.Object.defineProperties(uW.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var e=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.kk(this.a11yConfig.imageVerticalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.kk(this.a11yConfig.verticalRepositionInstruction)}e=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.kk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+e,y_percent:""+(100-e)})+"\n"+_.kk(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 e,z=(e=this.learnMore.runs[0])==null?void 0:e.navigationEndpoint,C;return((C=_.r(z,_.oO))==null?void 0:C.url)||void 0}}}});
uW.prototype.onImageDataChange=uW.prototype.onImageDataChange;_.d([_.F(),_.B("design:type",Object)],uW.prototype,"imageData",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"instruction",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"a11yConfig",void 0);_.d([_.F(),_.B("design:type",Number)],uW.prototype,"imageWidth",void 0);_.d([_.F(),_.B("design:type",Number)],uW.prototype,"imageHeight",void 0);_.d([_.F(),_.B("design:type",Number)],uW.prototype,"displayScale",void 0);
_.d([_.F(),_.B("design:type",Object)],uW.prototype,"imageDisplayOffsetTop",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"imageDisplayOffsetLeft",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"pickerDisplayOffsetTop",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"pickerDisplayOffsetLeft",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"cropCoordinatesSaved",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"previewSize",void 0);
_.d([_.F(),_.B("design:type",Object)],uW.prototype,"startPicker",void 0);_.d([_.F(),_.B("design:type",Number)],uW.prototype,"pickerOffsetX",void 0);_.d([_.F(),_.B("design:type",Number)],uW.prototype,"pickerOffsetY",void 0);_.d([_.F(),_.B("design:type",Object)],uW.prototype,"repositionOptional",void 0);_.d([_.nP("#picker-container"),_.B("design:type",HTMLElement)],uW.prototype,"JSC$15972_pickerContainer",void 0);_.d([_.nP("#picker"),_.B("design:type",HTMLElement)],uW.prototype,"picker",void 0);
_.d([_.nP("#image-in-picker-background"),_.B("design:type",HTMLImageElement)],uW.prototype,"JSC$15972_imageInBackground",void 0);_.d([_.nP("#image-in-picker"),_.B("design:type",HTMLImageElement)],uW.prototype,"JSC$15972_imageInPicker",void 0);_.d([_.nP("#image-in-preview-clipper"),_.B("design:type",HTMLImageElement)],uW.prototype,"JSC$15972_imageInPreviewClipper",void 0);_.d([_.nP("#full-image-as-preview"),_.B("design:type",HTMLImageElement)],uW.prototype,"imageAsPreview",void 0);
_.d([_.P("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uW.prototype,"altLabelForImage",null);_.d([_.P("imageHeight","imageWidth"),_.B("design:type",Number),_.B("design:paramtypes",[])],uW.prototype,"pickerSize",null);_.d([_.P("imageHeight","imageWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],uW.prototype,"imageOrientationStyle",null);
_.d([_.P("instruction.previewInstruction.editButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],uW.prototype,"editButton",null);_.d([_.P("instruction.editInstruction.saveButtonLabel"),_.B("design:type",Object),_.B("design:paramtypes",[])],uW.prototype,"saveButton",null);_.d([_.P("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.B("design:type",Number),_.B("design:paramtypes",[])],uW.prototype,"cropOffsetTop",null);
_.d([_.P("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.B("design:type",Number),_.B("design:paramtypes",[])],uW.prototype,"cropOffsetLeft",null);_.d([_.P("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uW.prototype,"pickerBackgroundStyle",null);_.d([_.P("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uW.prototype,"pickerDisplayStyle",null);
_.d([_.P("cropOffsetLeft","cropOffsetTop"),_.B("design:type",String),_.B("design:paramtypes",[])],uW.prototype,"imageInPickerStyle",null);_.d([_.P("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.B("design:type",String),_.B("design:paramtypes",[])],uW.prototype,"previewClipperStyle",null);_.d([_.mi("imageData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uW.prototype,"onImageDataChange",null);
_.d([_.P("cropCoordinatesSaved"),_.B("design:type",String),_.B("design:paramtypes",[])],uW.prototype,"pickerModeStyle",null);_.d([_.P("instruction.editInstruction.learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],uW.prototype,"learnMore",null);_.d([_.P("learnMore"),_.B("design:type",Object),_.B("design:paramtypes",[])],uW.prototype,"learnMoreUrl",null);_.d([_.fP({is:"yt-img-crop-picker",disableElementRegistration:!0})],uW);
_.u(uW,"yt-img-crop-picker",function(){if(e2o===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;pNg===void 0&&(pNg=document.createElement("template"));var w=pNg;C.call(z,w.content.cloneNode(!0),e.content.firstChild);e2o=e}e=e2o;return e},{mode:2});var dF=function(){var e=_.V.apply(this,arguments)||this;e.errorMessage="";e.hasPreview=!1;e.isBackstagePost=!1;e.dismissButtonOverrides={size:"XS"};return e};
_.U(dF,_.V);_.Y=dF.prototype;_.Y.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"}}}};
_.Y.detached=function(){this.removeOverlay()};
_.Y.setPreview=function(e){_.XC(this.hostElement).querySelector("#preview-picker").imageData=e;this.hasPreview=!0;_.pi(this.hostElement,"yt-backstage-image-select-preview")};
_.Y.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var e=_.XC(this.hostElement).querySelector("#dropzone");e.classList.remove("dragover");e.classList.remove("error");_.pi(this.hostElement,"yt-backstage-image-select-cancel")};
_.Y.setupOverlay=function(){var e=this.imageUploadEndpoint;this.removeOverlay();if(e&&e.imageValidationInfo){var z=_.XC(this.hostElement).querySelector("#dropzone"),C=_.XC(this.hostElement).querySelector("#select");this.overlay=new Ef(e.uploadUrl,e.channelId,e.imageValidationInfo.maxFileSizeMb,e.imageValidationInfo.allowedMaxAspectRatio,z,C,!0);_.W9(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.W9(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.W9(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.W9(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.W9(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.Y.removeOverlay=function(){this.overlay&&(_.ib(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.ib(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.ib(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.ib(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.ib(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.Y.onDragOver=function(e){var z=_.XC(this.hostElement).querySelector("#dropzone");_.k$(z,"dragover",e.value)};
_.Y.onPreview=function(e){this.setPreview(e.value)};
_.Y.onImageError=function(e){if(e.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var z;e=(z=this.data)==null?void 0:z.fileSizeError}else if(e.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var C;e=(C=this.data)==null?void 0:C.invalidError}else if(e.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var w;e=(w=this.data)==null?void 0:w.invalidAspectRatioError}else return;this.errorMessage=_.Zd(e);_.XC(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.Y.onImageAlert=function(e){this.onImageError(e)};
_.Y.uploadPromise=function(){var e=this,z=this.overlay&&this.overlay.uploadPromise();if(z)return z.catch(function(){throw Error(e.data?_.Zd(e.data.uploadFailureError):"");})};
_.lB.Object.defineProperties(dF.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var e,z;if((e=this.data)==null?0:(z=e.icon)==null?0:z.iconType)return _.qF(this.data.icon.iconType)}}});
dF.prototype.setupOverlay=dF.prototype.setupOverlay;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],dF.prototype,"rendererStamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],dF.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],dF.prototype,"imageUploadEndpoint",void 0);_.d([_.F(),_.B("design:type",Object)],dF.prototype,"errorMessage",void 0);
_.d([_.F(),_.B("design:type",Ef)],dF.prototype,"overlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],dF.prototype,"hasPreview",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],dF.prototype,"isBackstagePost",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],dF.prototype,"selectionCancel",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],dF.prototype,"previewCancel",null);
_.d([_.P("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],dF.prototype,"icon",null);_.d([_.F(),_.B("design:type",Object)],dF.prototype,"dismissButtonOverrides",void 0);_.d([_.mi("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dF.prototype,"setupOverlay",null);_.d([_.SL({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],dF);
_.u(dF,"ytd-backstage-image-select-renderer",function(){if(ADh!==void 0)return ADh;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ADh=e},{mode:1});var z2C;var CUL;var DQ=function(){var e=_.V.apply(this,arguments)||this;e.selected=!1;return e};
_.U(DQ,_.V);_.Y=DQ.prototype;_.Y.computeSelected=function(e){return e==null?void 0:e.selected};
_.Y.computeTransform=function(e,z,C){var w,K,G=(K=(w=this.imageContainer)==null?void 0:w.getBoundingClientRect())!=null?K:{width:0,height:0};w=Math.max(G.width/z,G.height/C);C=C*w*e.top;return"translateX("+this.getSignedPosition(z*w*e.left,"X","-")+") translateY("+this.getSignedPosition(C,"Y","-")+")"};
_.Y.getSignedPosition=function(e,z,C){return z==="X"&&_.j5("HTML_DIR")==="rtl"?C==="-"?e+"px":e*-1+"px":C==="-"?e*-1+"px":e+"px"};
_.Y.onClick=function(){var e;_.pi(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(e=this.data)==null?void 0:e.image)};
_.Y.onKeyPress=function(e){if(e.keyCode===13)this.onClick()};
_.lB.Object.defineProperties(DQ.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:(z=e.image)==null?void 0:z.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)!=null&&e.image){var z;e=(z=this.data)==null?void 0:z.image;return e.previewCoordinates.top!==0||e.previewCoordinates.left!==0?(z=this.computeTransform(e.previewCoordinates,e.naturalWidth,e.naturalHeight),e.naturalHeight>=e.naturalWidth?"width:inherit;transform:"+z+";":"height:inherit;transform:"+z+";"):e.naturalHeight>=e.naturalWidth?"width:inherit;":"height:inherit;"}}}});
DQ.prototype.onKeyPress=DQ.prototype.onKeyPress;_.d([_.nP(".image-container"),_.B("design:type",HTMLElement)],DQ.prototype,"imageContainer",void 0);_.d([_.F(),_.B("design:type",Object)],DQ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.B("design:type",Object)],DQ.prototype,"selected",void 0);_.d([_.P("data.image"),_.B("design:type",Object),_.B("design:paramtypes",[])],DQ.prototype,"thumbnailUrl",null);
_.d([_.P("data.image","data.image.previewCoordinates"),_.B("design:type",Object),_.B("design:paramtypes",[])],DQ.prototype,"thumbnailStyle",null);_.d([_.Qi("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],DQ.prototype,"onKeyPress",null);_.d([_.SL({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],DQ);
_.u(DQ,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(CUL!==void 0)return CUL;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return CUL=e},{mode:2});var iW=function(e,z,C){C=C===void 0?!1:C;_.N3.call(this);var w=this;this.dropZoneOverlay=new iK(e);this.selectOverlay=C?new NB(z,"multiple_file",["image/*"]):new NB(z,"single_file",["image/*"]);this.handler=new _.HA(this);_.I4(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(z,"click",function(){w.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.U(iW,_.N3);iW.prototype.onChange=function(e){var z;(z=e.files)!=null&&z.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:e.files}))};var NM=function(){var e=_.V.apply(this,arguments)||this;e.addImageErrorMessage="";e.errorMessage="";e.images=[];e.selectedImageIndex=0;e.modern=_.M("web_modern_buttons");e.maxNumImagesPerPost=_.n0("max_num_images_per_post_web_ui");e.JSC$15987_imageId=0;return e};
_.U(NM,_.V);_.Y=NM.prototype;_.Y.created=function(){var e=this;this.JSC$15987_ytReorderableController=new _.mR6(100,function(z){e.handleDrop(z)})};
_.Y.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.pi(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.Y.observeDragToReorder=function(){var e=this;if(this.showImagesPreview){var z,C=WCT(_.tl.getInstance(),(z=this.data)==null?void 0:z.dragToReorderTooltip);_.c5.addLowPriorityJob(function(){_.KK(e.hostElement,C,e.thumbnailDragDropArea)})}};
_.Y.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}}};
_.Y.computeThumbnail=function(e){return(e==null?void 0:e.localImageSrc)||void 0};
_.Y.onRendererstamperFinished=function(){_.auS(this.JSC$15987_ytReorderableController,_.XC(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.XC(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.Y.handleDrop=function(e){var z=e.currDragItem;if(z!=null&&z.data){e=this.images[this.selectedImageIndex];var C=z.data.image,w=this.images.indexOf(C)||0;z=_.V1(z.parentNode.children,z);this.images.splice(w,1);this.images.splice(z,0,C);this.images=[].concat(_.s_(this.images));this.selectedImageIndex=this.images.indexOf(e)}};
_.Y.setUpImagePicker=function(){var e=this.imageUploadEndpoint;e&&e.imageValidationInfo&&(this.uploadManager=new Vs(e.uploadUrl,e.channelId),this.initialPicker||(this.initialPicker=new iW(this.dropzone,this.selectLink,!0),_.W9(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new iW(this.addImageButtonContainer,this.addImageSelectButton),_.W9(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.W9(this.JSC$15987_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.W9(this.JSC$15987_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.W9(_.XC(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.Y.detached=function(){this.initialPicker&&(_.ib(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.ib(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.z$(this.JSC$15987_ytReorderableController)};
_.Y.onInitialSelectImages=function(e){var z=this;return _.k(function(C){return C.yield(z.onSelectImages(e,!1),0)})};
_.Y.onAddImage=function(e){var z=this;return _.k(function(C){return C.yield(z.onSelectImages(e,!0),0)})};
_.Y.onSelectImages=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y;return _.k(function(Z){switch(Z.nextAddress){case 1:z?C.addImageErrorMessage="":(C.images=[],C.errorMessage="");w=e.detail;K=C.validateImages([].concat(_.s_(w)));if(K!=="")return z?C.addImageErrorMessage=K:C.errorMessage=K,Z.return();G=[].concat(_.s_(w)).map(function(YN){return(new hi(C.maxAspectRatio,!1,!0)).transform(YN)});
return Z.yield(Promise.allSettled(G),2);case 2:X=Z.yieldResult,J=_.b(X.entries()),q=J.next();case 3:if(q.done){Z.jumpTo(5);break}T=q.value;Q=_.b(T);m=Q.next().value;a=Q.next().value;n=m;H=a;if(H.status!=="fulfilled"){h=L=I=void 0;z?C.addImageErrorMessage=_.Zd((I=C.data)==null?void 0:I.invalidError):C.errorMessage=C.errorMessage===""?_.Zd((L=C.data)==null?void 0:L.invalidError):_.Zd((h=C.data)==null?void 0:h.multiFileError);Z.jumpTo(4);break}E=H.value;E.cropped&&_.pi(C.hostElement,"yt-backstage-multi-image-cropped");
if(E.invalidAspectRatio){g=D=N=void 0;z?C.addImageErrorMessage=_.Zd((N=C.data)==null?void 0:N.invalidAspectRatioError):C.errorMessage=C.errorMessage===""?_.Zd((D=C.data)==null?void 0:D.invalidAspectRatioError):_.Zd((g=C.data)==null?void 0:g.multiFileError);Z.jumpTo(4);break}return Z.yield(Z11(C.JSC$15987_imageId,e.detail[n],E.transformedData),8);case 8:y=Z.yieldResult,C.images.push(y),C.JSC$15987_imageId++;case 4:q=J.next();Z.jumpTo(3);break;case 5:if(C.errorMessage!==""||C.addImageErrorMessage!==
"")return Z.return();z?NWs(C.uploadManager,[C.images[C.images.length-1]]):NWs(C.uploadManager,C.images);C.images=[].concat(_.s_(C.images));C.selectedImageIndex=z?Math.max(C.images.length-1,0):0;_.pi(C.hostElement,"yt-backstage-multi-image-select");_.E_(Z)}})};
_.Y.onThumbnailClick=function(e){if(e=e.event_.detail)this.selectedImageIndex=this.images.indexOf(e)};
_.Y.validateImages=function(e){if(e.length>this.maxNumImagesPerPost){var z;return _.Zd((z=this.data)==null?void 0:z.multiImageExceedMaxImageCountError)}var C=1048576*this.maxFileSizeMb;e=e.filter(function(G){return G.size>C}).length;
if(e===0)return"";var w,K;e=e>1?(w=this.data)==null?void 0:w.multiFileError:(K=this.data)==null?void 0:K.fileSizeError;return _.Zd(e)};
_.Y.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.s_(this.images));this.selectedImageIndex=0};
_.Y.repositionImage=function(e){this.images[this.selectedImageIndex].previewCoordinates=e.event_.detail;this.images=[].concat(_.s_(this.images))};
_.Y.getAllUploadStatuses=function(){var e=this,z,C,w,K;return _.k(function(G){if(G.nextAddress==1)return G.yield(e.uploadManager.getAllUploadStatuses(),2);z=G.yieldResult;C=_.b(z);for(w=C.next();!w.done;w=C.next())if(K=w.value,K.encryptedBlobId===void 0)return G.return(s9h(e.uploadManager));return G.return(z)})};
_.Y.hasImages=function(){return this.images.length>0};
_.Y.cancel=function(){for(var e=this.uploadManager,z=_.b(e.imagesUploadData),C=z.next();!C.done;C=z.next())e.cancel(C.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.pi(this.hostElement,"yt-backstage-multi-image-cancel")};
_.lB.Object.defineProperties(NM.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.imageUploadEndpoint)==null?void 0:(z=e.imageValidationInfo)==null?void 0:z.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.imageUploadEndpoint)==null?void 0:(z=e.imageValidationInfo)==null?void 0:z.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var e,z;if((e=this.data)==null?0:(z=e.icon)==null?0:z.iconType)return _.qF(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.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 e=this;return(this.images||[]).map(function(z,C){return{renderer:{image:z,selected:C===e.selectedImageIndex}}})}}});
NM.prototype.setUpImagePicker=NM.prototype.setUpImagePicker;NM.prototype.onRendererstamperFinished=NM.prototype.onRendererstamperFinished;NM.prototype.observeDragToReorder=NM.prototype.observeDragToReorder;NM.prototype.observeAddImageError=NM.prototype.observeAddImageError;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],NM.prototype,"rendererStamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],NM.prototype,"ytRendererBehavior",void 0);
_.d([_.nP("#dropzone"),_.B("design:type",HTMLElement)],NM.prototype,"dropzone",void 0);_.d([_.nP("#select-link"),_.B("design:type",HTMLElement)],NM.prototype,"selectLink",void 0);_.d([_.nP("#thumbnail-drag-drop-area"),_.B("design:type",HTMLElement)],NM.prototype,"thumbnailDragDropArea",void 0);_.d([_.nP("#add-image-button-container"),_.B("design:type",HTMLElement)],NM.prototype,"addImageButtonContainer",void 0);
_.d([_.nP("#add-image-button"),_.B("design:type",HTMLElement)],NM.prototype,"addImageSelectButton",void 0);_.d([_.nP("#image-preview-container"),_.B("design:type",Object)],NM.prototype,"JSC$15987_imagePreviewContainer",void 0);_.d([_.F(),_.B("design:type",Object)],NM.prototype,"addImageErrorMessage",void 0);_.d([_.F(),_.B("design:type",Object)],NM.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],NM.prototype,"errorMessage",void 0);
_.d([_.F(),_.B("design:type",Object)],NM.prototype,"imageUploadEndpoint",void 0);_.d([_.F(),_.B("design:type",Array)],NM.prototype,"images",void 0);_.d([_.F(),_.B("design:type",iW)],NM.prototype,"initialPicker",void 0);_.d([_.F(),_.B("design:type",iW)],NM.prototype,"addImagePicker",void 0);_.d([_.F(),_.B("design:type",Vs)],NM.prototype,"uploadManager",void 0);_.d([_.F(),_.B("design:type",Object)],NM.prototype,"selectedImageIndex",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],NM.prototype,"modern",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],NM.prototype,"maxNumImagesPerPost",void 0);_.d([_.P("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],NM.prototype,"maxAspectRatio",null);_.d([_.P("imageUploadEndpoint"),_.B("design:type",Number),_.B("design:paramtypes",[])],NM.prototype,"maxFileSizeMb",null);
_.d([_.P("data.icon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],NM.prototype,"dropIcon",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],NM.prototype,"selectionCancel",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],NM.prototype,"previewCancel",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],NM.prototype,"dataForAddImageButton",null);
_.d([_.P("errorMessage"),_.B("design:type",String),_.B("design:paramtypes",[])],NM.prototype,"dropzoneClass",null);_.d([_.P("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NM.prototype,"showImagesPreview",null);_.d([_.P("images"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],NM.prototype,"containMaxImages",null);_.d([_.mi("addImageErrorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NM.prototype,"observeAddImageError",null);
_.d([_.mi("showImagesPreview"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NM.prototype,"observeDragToReorder",null);_.d([_.P("images","selectedImageIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],NM.prototype,"selectedImageData",null);_.d([_.P("images","selectedImageIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],NM.prototype,"thumbnailRenderers",null);
_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NM.prototype,"onRendererstamperFinished",null);_.d([_.mi("imageUploadEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],NM.prototype,"setUpImagePicker",null);_.d([_.SL({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],NM);
_.u(NM,"ytd-backstage-multi-image-select-renderer",function(){if(z2C!==void 0)return z2C;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return z2C=e},{mode:1});var wxa;var Kto;var ocS;var sd=function(){var e=_.V.apply(this,arguments)||this;e.boundCaptureFocus=function(z){e.onCaptureFocus(z)};
return e};
_.U(sd,_.V);_.Y=sd.prototype;_.Y.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.Y.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.Y.onCaptureFocus=function(e){_.cJ(e).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.Y.getIconType=function(e){return e?"yt-icons:"+e.toLowerCase():null};
_.Y.onSelect=function(){var e;if((e=this.data)==null?0:e.onSelectCommand)if(_.M("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var z;((z=_.r(this.data.onSelectCommand.commandMetadata,_.XV))==null?0:z.url)?_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.lh().resolve(_.ms).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.lB.Object.defineProperties(sd.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Zd(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}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],sd.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sd.prototype,"data",void 0);_.d([_.nP("#item"),_.B("design:type",HTMLElement)],sd.prototype,"item",void 0);_.d([_.P("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],sd.prototype,"label",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],sd.prototype,"value",null);_.d([_.SL({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],sd);
_.u(sd,"ytd-privacy-dropdown-item-renderer",function(){if(ocS!==void 0)return ocS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ocS=e},{mode:1});var BO=function(){var e=_.V.apply(this,arguments)||this;e.value="";e.label="";e.disabled=!1;return e};
_.U(BO,_.V);_.Y=BO.prototype;_.Y.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"}}}};
_.Y.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.Y.dataChanged=function(){this.reset()};
_.Y.valueChanged=function(){var e;if(this.value&&(e=this.data)!=null&&e.entries){e=_.b(this.data.entries);for(var z=e.next();!z.done;z=e.next())if((z=this.getRendererForEntry(z.value))&&this.getItemRendererValue(z)===this.value){this.label=this.ytComponentBehavior.getSimpleString(z.label);break}}};
_.Y.setInitialLabel=function(){if(this.data&&this.data.entries)for(var e=_.b(this.data.entries),z=e.next();!z.done;z=e.next())if(z=this.getRendererForEntry(z.value)){if(z.isSelected){this.label=this.ytComponentBehavior.getSimpleString(z.label);break}this.data.label&&(this.label=this.data.label)}};
_.Y.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var e=_.b(this.data.entries),z=e.next();!z.done;z=e.next()){z=this.getRendererForEntry(z.value);var C=void 0;if((C=z)==null?0:C.isSelected)return this.getItemRendererValue(z)||-1}return-1};
_.Y.getItemRendererValue=function(e){return"stringValue"in e||"int32Value"in e?e.stringValue||e.int32Value||null:null};
_.Y.getRendererForEntry=function(e){return e.dropdownItemRenderer||e.privacyDropdownItemRenderer||e.navigationDropdownItemRenderer||null};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("value-changed",this.value))};
_.Y.updateValueFromBinding=function(e){this.value=e.detail.value};
BO.prototype.valueChangedForBinding=BO.prototype.valueChangedForBinding;BO.prototype.valueChanged=BO.prototype.valueChanged;BO.prototype.dataChanged=BO.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],BO.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],BO.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],BO.prototype,"value",void 0);_.d([_.F(),_.B("design:type",Object)],BO.prototype,"label",void 0);_.d([_.nP("#entries"),_.B("design:type",Object)],BO.prototype,"entries",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],BO.prototype,"disabled",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BO.prototype,"dataChanged",null);
_.d([_.Ux("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BO.prototype,"valueChanged",null);_.d([_.mi("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BO.prototype,"valueChangedForBinding",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],BO);
_.u(BO,"ytd-flat-dropdown-renderer",function(){if(Kto!==void 0)return Kto;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Kto=e},{mode:1});var Gb4;var tz=function(){var e=_.V.apply(this,arguments)||this;e.quizOptions=[];e.explanationPlaceholderText="";e.optionPlaceholderText="";e.correctAnswerIndex=-1;e.isMarkAnswerTooltipShown=!1;e.timer=0;return e};
_.U(tz,_.V);_.Y=tz.prototype;_.Y.dataChanged=function(){this.optionPlaceholderText=_.Zd(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Zd(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.Y.onMarkCorrectAnswer=function(e){var z,C=((z=this.quizOptions[this.correctAnswerIndex])==null?void 0:z.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[e.model.index]=Object.assign({},this.quizOptions[e.model.index],{explanationText:C,isCorrect:!0});this.correctAnswerIndex=e.model.index;this.quizOptions=[].concat(_.s_(this.quizOptions))};
_.Y.updatePlaceholderTexts=function(){for(var e=!1,z=[],C=0;C<this.quizOptions.length;C++){var w=this.optionPlaceholderText+" "+(C+1),K=void 0;((K=this.quizOptions[C])==null?void 0:K.placeholderText)!==w?(e=!0,z.push(Object.assign({},this.quizOptions[C],{placeholderText:w}))):z.push(this.quizOptions[C])}e&&(this.quizOptions=z);this.isValid()?_.pi(this.hostElement,"yt-commentbox-post-enable"):_.pi(this.hostElement,"yt-commentbox-post-disable")};
_.Y.getSimpleString=function(e){return _.Zd(e)};
_.Y.createQuizOptions=function(e){var z=[],C;e=(C=e==null?void 0:e.minQuizOptions)!=null?C:0;for(C=0;C<e;C++)z.push(this.createQuizOption());return z};
_.Y.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.s_(this.quizOptions),[this.createQuizOption()]))};
_.Y.onInput=function(){this.quizOptions=[].concat(_.s_(this.quizOptions))};
_.Y.onExplanationInput=function(){_.pi(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.Y.onRemoveQuizOption=function(e){this.quizOptions.splice(e.model.index,1);e.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:e.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.s_(this.quizOptions));this.quizOptions.length===0&&_.pi(this.hostElement,"yt-quiz-attachment-dismiss")};
_.Y.updateHintRenderer=function(){var e=this;clearTimeout(this.timer);this.timer=setTimeout(function(){e.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.Y.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var e=0,z=0,C=_.b(this.quizOptions),w=C.next();!w.done;w=C.next()){w=w.value;var K=void 0;if(((K=w.optionText)==null?void 0:K.trim())!==""||w.isCorrect){w.isCorrect&&z++;K=void 0;if(this.hasCustomOptionText&&((K=w.optionText)==null?void 0:K.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;e++}}return e>=
Number(this.editorInfo.minQuizOptions)&&z===1};
_.Y.getPostCreateOptions=function(){for(var e=[],z=_.b(this.quizOptions),C=z.next();!C.done;C=z.next()){C=C.value;var w=void 0;((w=C.optionText)==null?void 0:w.trim())!==""&&e.push({pollOption:{text:C.optionText,explanation:C.explanationText},isCorrect:C.isCorrect})}return e};
_.Y.getExplanationText=function(){var e;return((e=this.quizOptions[this.correctAnswerIndex])==null?void 0:e.explanationText)||""};
_.Y.maybeDisplayMarkAnswerEduToolTip=function(){var e,z,C,w,K,G,X;this.shouldShowMarkAnswerTooltip()&&((e=this.editorInfo)==null?0:(z=e.markAnswerButton)==null?0:(C=z.buttonRenderer)==null?0:(w=C.hint)==null?0:(K=w.hintRenderer)==null?0:(G=K.content)==null?0:(X=G.bubbleHintRenderer)==null?0:X.text)&&(_.tl.getInstance(),e=gt(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,(e==null?void 0:e.length)>0&&this.optionSelectors&&_.$p(e[0],this.optionSelectors[0]))};
_.Y.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var e=0,z=_.b(this.quizOptions),C=z.next();!C.done;C=z.next()){C=C.value;var w=void 0;((w=C.optionText)==null?void 0:w.trim())!==""&&e++;if(C.isCorrect)return!1}return e<2?!1:!0};
_.Y.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.Y.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.Y.updateOptionTextFromBinding=function(e){if(e.target){var z=Array.from(_.XC(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(e.target);if(z>=0){var C;this.quizOptions[z].optionText=(C=e.detail.value)!=null?C:""}}};
_.lB.Object.defineProperties(tz.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.editorInfo)==null?void 0:(z=e.addOptionButton)==null?void 0:z.buttonRenderer;C&&(C.style="STYLE_SUGGESTIVE",C.size="SIZE_SMALL",C.isDisabled=!this.isAllowedToAddOption);return(C==null?0:C.text)?C:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var e,z;return this.quizOptions.length<((z=(e=this.editorInfo)==null?void 0:e.maxQuizOptions)!=null?z:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(e){var z;return(z=e.optionText)==null?void 0:z.trim()})}}});
tz.prototype.updatePlaceholderTexts=tz.prototype.updatePlaceholderTexts;tz.prototype.dataChanged=tz.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],tz.prototype,"editorInfo",void 0);_.d([_.F(),_.B("design:type",Array)],tz.prototype,"quizOptions",void 0);_.d([_.F(),_.B("design:type",Object)],tz.prototype,"explanationPlaceholderText",void 0);_.d([_.MH(".option-selector-button"),_.B("design:type",Array)],tz.prototype,"optionSelectors",void 0);
_.d([_.Ux("editorInfo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tz.prototype,"dataChanged",null);_.d([_.P("editorInfo","isAllowedToAddOption","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],tz.prototype,"addAnswerButton",null);_.d([_.P("editorInfo","quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],tz.prototype,"isAllowedToAddOption",null);
_.d([_.Ux("quizOptions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tz.prototype,"updatePlaceholderTexts",null);_.d([_.P("quizOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],tz.prototype,"hasCustomOptionText",null);_.d([_.SL({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],tz);
_.u(tz,"ytd-backstage-quiz-editor-renderer",function(){if(Gb4!==void 0)return Gb4;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Gb4=e},{mode:2});var YPC;var bLc=(Ml.FIRSTDAYOFWEEK+1)%7;var Xxg;var JoT=[],kbg=0,qPY=0;kbg=0;qPY=24;if(.25*(qPY-kbg)<0)Xxg=[];else{for(var xuY=kbg;xuY<qPY;xuY+=.25)JoT.push(xuY);Xxg=JoT}var Tl4=Xxg.map(function(e){e=e*60*60;return{secondsSinceMidnight:e,text:(new cH(7)).format(new Date(0,0,0,0,0,e))}});var $us;var gF=function(){var e=_.V.apply(this,arguments)||this;e.skipNextOpenDialog=!1;e.errorMessage="";e.previousMonthLabel=_.kk("PREVIOUS_MONTH_LABEL");e.nextMonthLabel=_.kk("NEXT_MONTH_LABEL");return e};
_.U(gF,_.V);_.Y=gF.prototype;_.Y.attached=function(){var e=this,z=new MutationObserver(function(){e.JSC$16029_calendarMain.scrollHeight>0&&(z.disconnect(),e.calendarConfig&&e.calendarConfig.selectedDate&&e.scrollToDate())});
z.observe(this.JSC$16029_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){z.disconnect()},1E3)};
_.Y.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.Y.onDateTextChange=function(){if(this.calendarConfig){var e=this.validateDateText();e.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(e.details)):this.textbox.setAttribute("invalid","")}};
_.Y.handleDayClick=function(e){e.model.day.date&&(this.commitDate(e.model.day.date),this.dialog.close())};
_.Y.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var e=X8N(this.calendarConfig.selectedDate,this.renderData);e!==void 0&&this.JSC$16029_calendarMain.scrollToIndex(e)}};
_.Y.scrollToNextMonth=function(){this.JSC$16029_calendarMain.scrollToIndex(this.JSC$16029_calendarMain.firstVisibleIndex+1)};
_.Y.scrollToPrevMonth=function(){this.JSC$16029_calendarMain.firstVisibleIndex===0&&this.JSC$16029_calendarMain.scrollTo(0,0);this.JSC$16029_calendarMain.scrollToIndex(this.JSC$16029_calendarMain.firstVisibleIndex-1)};
_.Y.onFormSubmit=function(e){e.preventDefault();this.calendarConfig&&(e=this.validateDateText(),e.isValid&&(this.commitDate(e.details),this.dialog.close()))};
_.Y.onEscOrClickingOutside=function(e){e=e.detail.path&&!!e.detail.path.length&&e.detail.path[0];if(e.classList.contains("ytd-calendar-date-picker")){e===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var z=0;z<this.dropdownButton.children.length;z++)this.dropdownButton.children[z]===e&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}e=this.textbox.value!==this.dateText;z=this.validateDateText();e&&z.isValid&&this.commitDate(z.details);this.dialog.close();this.textbox.value=
this.dateText};
_.Y.commitDate=function(e){this.calendarConfig&&(this.set("calendarConfig.selectedDate",e),_.pi(this.hostElement,"ytd-calendar-date-selected",e))};
_.Y.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var e=this.textbox.value;var z=new Date;e=(new PRg(2)).parse(e,z,{validate:!0})===e.length?Y97(z):void 0;if(!e)return this.errorMessage=_.kk("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};z=this.calendarConfig.start;var C=this.calendarConfig.end;if(CRk(e,z))return this.errorMessage=_.kk("ENTER_DATE_OR_LATER",{allowed_date:Glo(z)}),{isValid:!1,details:void 0};if(CRk(C,e))return this.errorMessage=
_.kk("ENTER_DATE_OR_EARLIER",{allowed_date:Glo(C)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:e}};
_.lB.Object.defineProperties(gF.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Glo(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var e=this.calendarConfig,z=[],C=0;C<7;C++)z.push(Ml.NARROWWEEKDAYS[(C+bLc)%7]);C=[];for(var w=new Date(e.start.year,e.start.month);w.getFullYear()<e.end.year||w.getFullYear()===e.end.year&&w.getMonth()<=e.end.month;){var K=C,G=K.push,X=w.getFullYear(),J=w.getMonth(),q=e,T=void 0,Q=[],m=Object.freeze({extraCssClass:"invisible",debugClass:""}),a=new Date(X,J),n=Y97(a);a=a.getDay();for(var H=Y97(new Date);n.month===
J;){a!==bLc&&T||(T=Array.from({length:7}).fill(m),Q.push(T));var I={date:{year:X,month:J,day:n.day},extraCssClass:"",debugClass:""};q.selectedDate&&I.date&&zeg(I.date,q.selectedDate)&&(I.extraCssClass+=" selected");if(CRk(n,q.start)||CRk(q.end,n))I.extraCssClass+=" disabled";zeg(n,H)&&(I.extraCssClass+=" today");I.extraCssClass=I.extraCssClass.trim();T[(a-bLc+7)%7]=I;n=Kem(n);a=(a+1)%7}G.call(K,{weeks:Q,monthLabel:Ml.SHORTMONTHS[J]+" "+X,year:X,month:J,monthLabelExtraCssClass:Q[0][2]===m?"shift-down-label":
""});w.setMonth(w.getMonth()+1)}return{months:C,daysOfWeekLabel:z}}}}});
gF.prototype.onEscOrClickingOutside=gF.prototype.onEscOrClickingOutside;gF.prototype.scrollToDate=gF.prototype.scrollToDate;_.d([_.F(),_.B("design:type",Object)],gF.prototype,"calendarConfig",void 0);_.d([_.F(),_.B("design:type",Object)],gF.prototype,"skipNextOpenDialog",void 0);_.d([_.F(),_.B("design:type",Object)],gF.prototype,"errorMessage",void 0);_.d([_.F(),_.B("design:type",Object)],gF.prototype,"previousMonthLabel",void 0);
_.d([_.F(),_.B("design:type",Object)],gF.prototype,"nextMonthLabel",void 0);_.d([_.nP("#textbox"),_.B("design:type",HTMLInputElement)],gF.prototype,"textbox",void 0);_.d([_.nP("#calendar-dialog"),_.B("design:type",Object)],gF.prototype,"dialog",void 0);_.d([_.nP("#calendar-main"),_.B("design:type",Object)],gF.prototype,"JSC$16029_calendarMain",void 0);_.d([_.nP("#date-picker"),_.B("design:type",HTMLElement)],gF.prototype,"dropdownButton",void 0);
_.d([_.P("calendarConfig.selectedDate"),_.B("design:type",String),_.B("design:paramtypes",[])],gF.prototype,"dateText",null);_.d([_.P("calendarConfig","calendarConfig.selectedDate"),_.B("design:type",Object),_.B("design:paramtypes",[])],gF.prototype,"renderData",null);_.d([_.mi("renderData","calendarConfig.selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gF.prototype,"scrollToDate",null);
_.d([_.Qi("iron-overlay-canceled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gF.prototype,"onEscOrClickingOutside",null);_.d([_.fP({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],gF);
_.u(gF,"ytd-calendar-date-picker",function(){if($us!==void 0)return $us;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return $us=e},{mode:2});var lac=_.kk("UTC_OFFSET_FORMAT",{utc_offset:(new cH("Z")).format(new Date)}),QcX=(new Date).getTimezoneOffset()*-60,muh=new Date,aao,nca=y2(muh.getTimezoneOffset());aao=KTY(GiC(nca,muh));var MHa=_.kk("LOCAL_TIME_GMT_LABEL",{gmt_text:aao.replace("+0","+").replace("-0","-").replace(":00","")}),jU=function(){var e=_.V.apply(this,arguments)||this;e.selectedTimeIndex=0;e.selectedTimezoneIndex=0;e.timeOfDayOptions=Tl4;return e};
_.U(jU,_.V);_.Y=jU.prototype;_.Y.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var e=o8g();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=e,this.selectedTimeIndex=0;else{var z=bzo(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},e,{selectedDate:z.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(C){return C.secondsSinceMidnight===z.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.Y.onDatePicked=function(e){this.selectedDate=e.detail};
_.Y.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.pi(this.hostElement,"ytd-date-time-selection-cancelled")};
_.Y.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var e=this.selectedDate;e=new Date(e.year,e.month,e.day);_.pi(this.hostElement,"ytd-date-time-selection-update",Math.floor(e.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+e.getTimezoneOffset()*60))}};
_.Y.getTimezoneFormat=function(e){return e.localizedDisplayText?e.localizedDisplayText:_.kk("TIMEZONE_FORMAT",{utc_offset_text:""+e.localizedUtcOffset,city_name:""+e.localizedName})};
_.Y.updateSelectedTimeIndexFromBinding=function(e){this.selectedTimeIndex=e.detail.value};
_.Y.updateSelectedTimezoneIndexFromBinding=function(e){this.selectedTimezoneIndex=e.detail.value};
_.lB.Object.defineProperties(jU.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var e=this.data.timezoneOptions;var z={name:"Etc/Unknown",localizedName:_.kk("LOCAL_TIME_LABEL"),localizedUtcOffset:lac,utcOffsetSec:""+QcX,localizedDisplayText:MHa};e?e.length&&e[0].name!==z.name&&(e[0].localizedDisplayText||(z.localizedDisplayText=""),e.unshift(z)):e=[z];return e}}},
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]}}});
jU.prototype.onDateTimeTimezoneChange=jU.prototype.onDateTimeTimezoneChange;jU.prototype.onDatePicked=jU.prototype.onDatePicked;jU.prototype.updateDefaultSelectedValue=jU.prototype.updateDefaultSelectedValue;_.d([_.F(),_.B("design:type",Object)],jU.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],jU.prototype,"calendarConfig",void 0);_.d([_.F(),_.B("design:type",Object)],jU.prototype,"selectedDate",void 0);_.d([_.F(),_.B("design:type",Object)],jU.prototype,"selectedTimeIndex",void 0);
_.d([_.F(),_.B("design:type",Object)],jU.prototype,"selectedTimezoneIndex",void 0);_.d([_.nP("#time-listbox"),_.B("design:type",Object)],jU.prototype,"timeListBox",void 0);_.d([_.nP("#timezone-listbox"),_.B("design:type",Object)],jU.prototype,"timezoneListBox",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jU.prototype,"rendererStamperBehavior",void 0);_.d([_.P("data.timezoneOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],jU.prototype,"timeZones",null);
_.d([_.Ux("data","timeZones"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jU.prototype,"updateDefaultSelectedValue",null);_.d([_.P("selectedTimezoneIndex","timeZones"),_.B("design:type",Object),_.B("design:paramtypes",[])],jU.prototype,"selectedTimezone",null);_.d([_.P("selectedTimeIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],jU.prototype,"selectedTime",null);
_.d([_.Qi("ytd-calendar-date-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jU.prototype,"onDatePicked",null);_.d([_.mi("selectedTimezone","selectedTime","selectedDate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jU.prototype,"onDateTimeTimezoneChange",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],jU);
_.u(jU,"ytd-date-time-picker-renderer",function(){if(YPC!==void 0)return YPC;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return YPC=e},{mode:1});var ro6;var ys=function(){var e=_.V.apply(this,arguments)||this;e.boundOnTapDismissButton=function(){e.dismissTapHandler()};
e.dismissButtonOverrides={size:"XS"};return e};
_.U(ys,_.V);ys.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}}}}}};
ys.prototype.dismissTapHandler=function(){_.pi(this.hostElement,"yt-backstage-attachment-dismissed")};
ys.prototype.computeAttachmentType=function(e){return e?e.backstageImageRenderer?"image":e.videoRenderer?"video":"none":"none"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ys.prototype,"attachmentPreview",void 0);_.d([_.F(),_.B("design:type",Object)],ys.prototype,"dismissButton",void 0);_.d([_.F(),_.B("design:type",Object)],ys.prototype,"boundOnTapDismissButton",void 0);
_.d([_.F(),_.B("design:type",Object)],ys.prototype,"dismissButtonOverrides",void 0);_.d([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.B("design:type",String)],ys.prototype,"attachmentType",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],ys);
_.u(ys,"ytd-backstage-dismissable-attachment",function(){if(ro6!==void 0)return ro6;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ro6=e},{mode:1});var HLU;var cO=function(){var e=_.V.apply(this,arguments)||this;e.selectedVideoId=void 0;e.picker=void 0;e.dismissButtonOverrides={size:"XS"};e.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return e};
_.U(cO,_.V);_.Y=cO.prototype;_.Y.onServiceRequestCompleted=function(e){e.stopPropagation()};
_.Y.handleAddVideoPreviewAction=function(e){e=this.get("addVideoPreviewAction",e);this.onGetVideoPreviewSuccess(e)};
_.Y.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}}}}}};
_.Y.onLaunchVideoPicker=function(e){var z=this,C=_.Zd(this.get("addVideoLinkAction.title",e)),w=this.get("addVideoLinkAction.onePickHostId",e);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",e);w&&(this.picker||(C=_.jO4(_.TH8(w).setTitle(C).addView(sOC()).addView(NKo()),function(K){z.onPickVideo(K)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",e)||C.addView("youtube"),this.picker=C.build()),this.picker.setVisible(!0))};
_.Y.onPickVideo=function(e){if(e)if(e.action==="cancel")_.pi(this.hostElement,"yt-video-link-button-cancel");else if(e.action==="picked"){e=e.docs;if(!e||e.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(e=(e==null?0:e.length)?e[0]:void 0)?e.id:void 0;this.setVideoPreview()}};
_.Y.setVideoPreview=function(){var e=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){e.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.Y.onGetVideoPreviewSuccess=function(e){if(e&&e.videoPreview&&e.cancelButton)this.videoPreview=e.videoPreview,this.cancelButton=e.cancelButton,_.pi(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.Y.onGetVideoPreviewError=function(){this.cancel()};
_.Y.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.pi(this.hostElement,"yt-video-link-cancel")};
_.Y.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
cO.prototype.onServiceRequestCompleted=cO.prototype.onServiceRequestCompleted;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],cO.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cO.prototype,"videoPreview",void 0);_.d([_.F(),_.B("design:type",Object)],cO.prototype,"cancelButton",void 0);_.d([_.F(),_.B("design:type",Object)],cO.prototype,"getVideoPreviewCommand",void 0);_.d([_.F(),_.B("design:type",Object)],cO.prototype,"dismissButtonOverrides",void 0);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],cO.prototype,"onServiceRequestCompleted",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],cO);
_.u(cO,"ytd-backstage-video-link-attachment",function(){if(HLU!==void 0)return HLU;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return HLU=e},{mode:1});var Uus;var vcc;var IaL;var Az=function(){return _.V.apply(this,arguments)||this};
_.U(Az,_.V);Az.prototype.dataChanged=function(){this.active=!1};
Az.prototype.onTap=function(){_.pi(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Az.prototype.identity=function(e){return e};
_.lB.Object.defineProperties(Az.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w;if((e=this.data)==null?0:(z=e.image)==null?0:(C=z.thumbnails)==null?0:(w=C[0])==null?0:w.url)return e=this.data.image.thumbnails[0].url,e.startsWith("data:image/svg+xml")?ul(e):_.gw(e)}}});
Az.prototype.dataChanged=Az.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],Az.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Az.prototype,"active",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Az.prototype,"dataChanged",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Az.prototype,"imageSrc",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Az);
_.u(Az,"ytd-emoji-suggestion",function(){if(IaL!==void 0)return IaL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return IaL=e},{mode:1});var Wt6=/.*([:@#].*?)$/,ZQ=function(){var e=_.V.apply(this,arguments)||this;e.suggestions=[];e.suggestionIndex=-1;e.JSC$16057_lastSuggestionRange=null;return e};
_.U(ZQ,_.V);_.Y=ZQ.prototype;_.Y.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.Y.getSuggestions=function(e){var z=[],C=AjC(this.emojiManager,e.substr(0,3));if(C)for(var w in C)if(w.toLocaleLowerCase().indexOf(e)===0){var K=C[w];if(K&&K.emojiId){K=UW(this.emojiManager,K.emojiId);var G=void 0,X=void 0,J=void 0,q=void 0,T=((G=K)==null?0:G.isCustomEmoji)?(X=K)==null?void 0:(J=X.shortcuts)==null?void 0:J[0]:(q=K)==null?void 0:q.emojiId;G=void 0;z.push({suggestion:{image:(G=K)==null?void 0:G.image,alt:T,text:w}});if(z.length>=64)break}}return z?z.sort(function(Q,m){return m.suggestion.text<
Q.suggestion.text?-1:m.suggestion.text===Q.suggestion.text?0:1}):null};
_.Y.insertSuggestion=function(e){_.pi(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16057_lastSuggestionRange,text:e.alt});this.dropdown.opened=!1};
_.Y.updateSuggestionsAtCaret=function(e){this.updateSuggestions(e,this.retrieveTextBeforeRange(e))};
_.Y.offsetStartOfRangeBy=function(e,z){e.startOffset>=z&&e.setStart(e.startContainer,e.startOffset-z)};
_.Y.updateSuggestions=function(e,z){var C=this;this.JSC$16057_lastSuggestionRange&&(this.JSC$16057_lastSuggestionRange.detach(),this.JSC$16057_lastSuggestionRange=null);if((z=Wt6.exec(z))&&z.length&&(z=z[z.length-1].toLocaleLowerCase(),z.length>2||z===":_")&&(this.offsetStartOfRangeBy(e,z.length),this.JSC$16057_lastSuggestionRange=e,(e=this.getSuggestions(z))&&e.length)){this.suggestions=e;_.T0(this,function(){C.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(e.length-1);return}this.dropdown.opened=!1};
_.Y.onKeyDown=function(e){if(this.dropdown.opened)switch(e.key){case "Escape":this.dropdown.opened=!1;e.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);e.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);e.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),e.preventDefault()}};
_.Y.onKeyUp=function(e,z){switch(e.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(z);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(z)}};
_.Y.onKeyPress=function(e){e.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),e.preventDefault())};
_.Y.changeSuggestionIndex=function(e){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(e+this.suggestions.length)%this.suggestions.length,e=this.dropdownContent.children[this.suggestionIndex],e.active=!0,this.dropdownContent.scrollTop=e.offsetTop)};
_.Y.retrieveTextBeforeRange=function(e){var z=e.startContainer;return z&&z.nodeType===Node.TEXT_NODE?z.textContent.substr(0,e.startOffset):""};
ZQ.prototype.onKeyPress=ZQ.prototype.onKeyPress;ZQ.prototype.onKeyUp=ZQ.prototype.onKeyUp;ZQ.prototype.onKeyDown=ZQ.prototype.onKeyDown;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Array)],ZQ.prototype,"suggestions",void 0);_.d([_.F(),_.B("design:type",_.ry)],ZQ.prototype,"emojiManager",void 0);_.d([_.F(),_.B("design:type",Number)],ZQ.prototype,"verticalSuggestionsOffset",void 0);
_.d([_.nP("#dropdown"),_.B("design:type",Object)],ZQ.prototype,"dropdown",void 0);_.d([_.nP("#dropdown-content"),_.B("design:type",HTMLDivElement)],ZQ.prototype,"dropdownContent",void 0);_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],ZQ.prototype,"onKeyDown",null);_.d([_.Qi("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent,Range]),_.B("design:returntype")],ZQ.prototype,"onKeyUp",null);
_.d([_.Qi("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],ZQ.prototype,"onKeyPress",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-emoji-input"})],ZQ);
_.u(ZQ,"ytd-emoji-input",function(){if(vcc!==void 0)return vcc;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vcc=e},{mode:2});var PU4;var pD=function(){var e=_.V.apply(this,arguments)||this;e.hasMaxOptions=!1;return e};
_.U(pD,_.V);_.Y=pD.prototype;_.Y.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.Y.setPrefilledChoices=function(e){var z=this;this.set("pollOptions",[]);var C;for(C=0;C<Math.min(e.length,this.data.maxPollOptions);C++)this.push("pollOptions",e[C].substring(0,this.data.maxPollOptionChars));for(;C<this.data.minPollOptions;C++)this.push("pollOptions","");this.hasMaxOptions=C>=this.data.maxPollOptions;_.T0(this,function(){for(var w=z.pollOptions,K=_.XC(z.hostElement).querySelectorAll(".poll-option-input"),G=0;G<K.length;G++)K[G].value=w[G]})};
_.Y.focusChanged=function(){_.T8(this.hostElement)};
_.Y.onInput=function(){var e=this;_.tK(this,"onInput",function(){e.isValid()?_.pi(e.hostElement,"yt-commentbox-post-enable"):_.pi(e.hostElement,"yt-commentbox-post-disable")},300)};
_.Y.setPollOptions=function(){var e=[],z,C=((z=this.data)==null?0:z.minPollOptions)?this.data.minPollOptions:0;for(z=0;z<C;z++)e.push("");return e};
_.Y.addPollOption=function(){var e=this;_.pi(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.c5.addLowPriorityJob(function(){var z;(z=_.XC(e.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||z.focus()})};
_.Y.onRemovePollOption=function(e){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.pi(this.hostElement,"yt-poll-attachment-dismiss")):(e=this.repeat.indexForElement(e.target.parentNode),e!==null&&(this.splice("pollOptions",e,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.pi(this.hostElement,"yt-commentbox-post-enable"))))};
_.Y.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.Y.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var e=0,z=this.pollOptions.length;e<z;e++)if(this.pollOptions[e].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.Y.getPollOptions=function(){return this.pollOptions};
_.Y.setPollOptionsFromInputs=function(){for(var e=_.XC(this.hostElement).querySelectorAll(".poll-option-input"),z=0;z<e.length;z++)this.pollOptions[z]=e[z].value.trim()};
_.Y.clearPollOptions=function(){var e=_.XC(this.hostElement).querySelectorAll(".poll-option-input");e=_.b(e);for(var z=e.next();!z.done;z=e.next())z.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.Y.getSimpleString=function(e){return _.Zd(e)};
_.Y.updateValueFromBinding=function(e){if(e.target&&this.pollOptions){var z=Array.from(_.XC(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(e.target);if(z>=0){var C;this.pollOptions[z]=(C=e.detail.value)!=null?C:"";this.notifyPath("pollOptions."+z)}}};
pD.prototype.dataChanged=pD.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],pD.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Array)],pD.prototype,"pollOptions",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pD.prototype,"hasMaxOptions",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],pD.prototype,"enableCreationBox",void 0);
_.d([_.nP("#repeat"),_.B("design:type",Ox)],pD.prototype,"repeat",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pD.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-poll-attachment"})],pD);
_.u(pD,"ytd-poll-attachment",function(){if(PU4!==void 0)return PU4;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return PU4=e},{mode:2});var R2U;var LtU;var h2c;var OLg;var eZ=function(){return _.V.apply(this,arguments)||this};
_.U(eZ,_.V);_.lB.Object.defineProperties(eZ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eZ.prototype,"rendererBehaviors",void 0);_.d([_.F(),_.B("design:type",Object)],eZ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],eZ.prototype,"focused",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("focused"),_.B("design:type",Object),_.B("design:paramtypes",[])],eZ.prototype,"ariaSelected",null);_.d([_.fP({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],eZ);
_.u(eZ,"yt-user-mention-suggestion-renderer",function(){if(OLg===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;h2c===void 0&&(h2c=document.createElement("template"));var w=h2c;C.call(z,w.content.cloneNode(!0),e.content.firstChild);OLg=e}e=OLg;return e},{mode:2});var EcC;var Fts;var zn=function(){var e=_.V.apply(this,arguments)||this;e.focusedSuggestionIndex=-1;return e};
_.U(zn,_.V);_.Y=zn.prototype;_.Y.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.Y.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.Y.setFocusedSuggestionIndex=function(e){!this.data||!this.data.suggestions||e<0||e>=this.data.suggestions.length||(this.focusedSuggestionIndex=e,e=this.getSuggestionId(e),this._setFocusedSuggestionId(e))};
_.Y.advanceSuggestion=function(e){this.focusedSuggestionIndex===-1||e!==-1&&e!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+e),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.Y.ensureSuggestionVisible=function(e){e=this.getSuggestionId(e);e=_.XC(this.hostElement).querySelector("[id="+e+"]");e!=null&&(e.offsetTop<this.hostElement.scrollTop?e.scrollIntoView(!0):e.offsetTop+e.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&e.scrollIntoView(!1))};
_.Y.getSuggestionId=function(e){return"user-mention-suggestion-"+e};
_.Y.onSuggestionTap=function(e){var z=_.r(e.model.item,YZT);this.ytRendererBehavior.logExplicitClick(z);_.pi(this.hostElement,"yt-user-mention-suggestion-selected",{data:z,index:e.model.index})};
_.Y.onSuggestionMouseMove=function(e){e.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(e.model.index)};
_.Y.isSuggestionFocused=function(e,z){return e===z};
_.Y.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Y.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("focused-suggestion-id-changed",this.focusedSuggestionId))};
zn.prototype.focusedSuggestionIdChangedForBinding=zn.prototype.focusedSuggestionIdChangedForBinding;zn.prototype.onDomChange=zn.prototype.onDomChange;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zn.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],zn.prototype,"focusedSuggestionIndex",void 0);_.d([_.F({readOnly:!0}),_.B("design:type",String)],zn.prototype,"focusedSuggestionId",void 0);
_.d([_.Qi("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],zn.prototype,"onDomChange",null);_.d([_.mi("focusedSuggestionId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zn.prototype,"focusedSuggestionIdChangedForBinding",null);_.d([_.fP({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],zn);
_.u(zn,"yt-user-mention-suggestions-dropdown",function(){if(Fts===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;EcC===void 0&&(EcC=document.createElement("template"));var w=EcC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Fts=e}e=Fts;return e},{mode:2});var CQ=function(){var e=_.V.apply(this,arguments)||this;e.suggestionsResponse=null;e.activeMention=null;e.selectionChangeListener=e.onSelectionChange.bind(e);e.handlesEnabled=_.M("enable_handles_in_mention_suggest_posts");e.handlesInMentionSuggestionsEnabled=_.M("handles_in_mention_suggest_posts");e.zeroPrefixMentionSuggestionEnabled=_.M("enable_zero_prefix_mention_suggestion_web");e.pendingQuery=null;e.flowNonce=null;return e};
_.U(CQ,_.V);_.Y=CQ.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.Y.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.Y.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.Y.hasSuggestions=function(e){return!!(e&&e.suggestions&&e.suggestions.length>0)};
_.Y.onInput=function(){var e=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var z=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),C=this.activeMention.JSC$11513_getText().slice(-1)===" ",w=this.activeMention.JSC$11513_getText().slice(-2,-1)===" ",K="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11513_getText().slice(-2,
-1))>=0;K=this.zeroPrefixMentionSuggestionEnabled&&K;if(this.activeMention.isCollapsed()||(z||w||K)&&C)this.cancelActiveMention();else{var G=this.activeMention.JSC$11513_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.tK(this,"requestSuggestions",function(){e.requestSuggestions(G)},100)}}}};
_.Y.onServiceRequestSent=function(e){e.stopPropagation()};
_.Y.onServiceRequestCompleted=function(e){e.stopPropagation();e=e.detail.data;e.query&&(!this.pendingQuery||this.pendingQuery!==e.query)||!this.zeroPrefixMentionSuggestionEnabled&&e.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=e,this.hasSuggestions(e)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.Y.onServiceRequestError=function(e){e.stopPropagation()};
_.Y.onUserMentionSuggestionSelected=function(e){this.selectSuggestion(e.detail.data,e.detail.index)};
_.Y.onSelectionChange=function(){if(this.activeMention){var e=_.ln(),z=this.activeMention.JSC$11513_containsRange(e);e=e&&this.containsHelper(this.dropdown,e.getContainer());z||e||this.cancelActiveMention()}};
_.Y.containsHelper=function(e,z){var C;if(((C=window.ShadyDOM)==null?void 0:C.noPatch)===!0)return e.contains(z);for(;z;){if(z===e)return!0;z=z instanceof ShadowRoot?z.host:z.parentNode}return!1};
_.Y.maybeStartSuggest=function(){var e=_.ln();if(e&&e.isCollapsed()){var z=e.JSC$11513_getStartNode(),C=e.JSC$11513_getStartOffset();if(z instanceof Text&&!(C<1)){var w=z.textContent;!(w=w&&w.charAt(C-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(w)<0||(this.activeMention=_.Jp(z,C-1,e.JSC$11513_getEndNode(),e.JSC$11513_getEndOffset()),this.flowNonce=UX(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.Y.updateActiveMention=function(){if(this.activeMention){var e=_.ln();e&&e.isCollapsed()&&(this.activeMention=_.Jp(this.activeMention.JSC$11513_getStartNode(),this.activeMention.JSC$11513_getStartOffset(),e.JSC$11513_getEndNode(),e.JSC$11513_getEndOffset()))}};
_.Y.requestSuggestions=function(e){if(this.activeMention){var z={suggestions_query:e};this.pendingQuery=e;_.wQ(this.hostElement,[this.suggestionsEndpoint,z])}};
_.Y.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()};
_.Y.focusPreviousSuggestion=function(e){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),e.preventDefault())};
_.Y.focusNextSuggestion=function(e){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),e.preventDefault())};
_.Y.selectFocusedSuggestion=function(e){if(this.hasSuggestions(this.suggestionsResponse)){var z=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.r(z,YZT)&&(this.selectSuggestion(_.r(z,YZT),this.dropdown.focusedSuggestionIndex),e.preventDefault())}};
_.Y.selectSuggestion=function(e,z){if(e){var C=this.activeMention;if(C){var w=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&e.handle?_.pV(w,"\u00a0\u2068@"+e.handle+"\u2069\u00a0"):this.handlesEnabled?_.pV(w,"\u00a0"+e.displayName+"\u00a0"):_.pV(w,"\u00a0@"+e.displayName+"\u00a0");At(w,"/channel/"+e.channelId);w.classList.add("yt-formatted-string","yt-simple-endpoint");w.setAttribute("spellcheck","false");C.isCollapsed()||C.JSC$11513_removeContents();C.insertNode(w,!0);e=document.createTextNode(" ");
w.parentNode.insertBefore(e,w.nextSibling);window.getSelection().collapse(e,1);z={suggestionSelected:{suggestionIndex:z}};if(this.zeroPrefixMentionSuggestionEnabled){var K;z.suggestionSelected.isZeroPrefix=((K=this.suggestionsResponse)==null?void 0:K.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",z);this.cancelActiveMention();_.pi(this.hostElement,"yt-mention-inserted")}}};
_.Y.getPositionTarget=function(e){return e&&e.getBrowserRangeObject()};
_.Y.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.Y.onFocusedSuggestionIdChanged=function(e){var z=_.Wqg(this.hostElement)[0];z&&(e.detail.value?z.setAttribute("aria-activedescendant",e.detail.value):z.removeAttribute("aria-activedescendant"))};
_.Y.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.Y.logGELEvent=function(e,z){e={eventType:e,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};z&&(e=Object.assign(e,z));_.gm("userMentionAutoCompleteBoxEvent",e)};
CQ.prototype.onDomChange=CQ.prototype.onDomChange;CQ.prototype.onUserMentionSuggestionSelected=CQ.prototype.onUserMentionSuggestionSelected;CQ.prototype.onServiceRequestError=CQ.prototype.onServiceRequestError;CQ.prototype.onServiceRequestCompleted=CQ.prototype.onServiceRequestCompleted;CQ.prototype.onServiceRequestSent=CQ.prototype.onServiceRequestSent;CQ.prototype.onInput=CQ.prototype.onInput;_.d([_.W(_.cv),_.B("design:type",Object)],CQ.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],CQ.prototype,"suggestionsEndpoint",void 0);_.d([_.F(),_.B("design:type",Object)],CQ.prototype,"suggestionsResponse",void 0);_.d([_.F(),_.B("design:type",Object)],CQ.prototype,"activeMention",void 0);_.d([_.nP("#dropdown"),_.B("design:type",Object)],CQ.prototype,"dropdown",void 0);_.d([_.nP("#iron-dropdown"),_.B("design:type",Object)],CQ.prototype,"ironDropdown",void 0);
_.d([_.Qi("input"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],CQ.prototype,"onInput",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CQ.prototype,"onServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CQ.prototype,"onServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CQ.prototype,"onServiceRequestError",null);_.d([_.Qi("yt-user-mention-suggestion-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CQ.prototype,"onUserMentionSuggestionSelected",null);
_.d([_.Qi("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CQ.prototype,"onDomChange",null);_.d([_.fP({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],CQ);
_.u(CQ,"yt-user-mention-autosuggest-input",function(){if(LtU===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;R2U===void 0&&(R2U=document.createElement("template"));var w=R2U;C.call(z,w.content.cloneNode(!0),e.content.firstChild);LtU=e}e=LtU;return e},{mode:2});var wC=null;
_.hK({is:"ytd-commentbox",_template:function(){if(Uus!==void 0)return Uus;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Uus=e},
behaviors:[_.oAo.YtHostElementBehavior,_.cv,_.ch.YtActionHandlerBehavior,_.Q5.YtComponentBehavior,_.Fr.YtRendererstamperBehavior,_.$0X.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(e,z){return _.xz(e.entities,"aadcGuidelinesStateEntityPayload",z)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(e,z){return _.xz(e.entities,"commentboxStateEntity",z)},
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 _.vk}},
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:_.M("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.M("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",_.lE(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(e){this.fire(e?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(e){this.set("submitButtonDisabled",void 0);this.clear();e&&this.computeIsEmojiButtonDisplayed_(e)&&(e=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&e.updateEmojiCategories()},
observePrefilledImage_:function(e,z,C){this.isValidPrefilledImage_(e,z,C)&&(this.prefilledAttachment_="image",this.prefilledImageData_=z,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(e,z){this.isValidPrefilledVideo_(e,z)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(e){e&&e.pollData&&e.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(e.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.S1();this.focus()},
detached:function(){document.removeEventListener("tap",_.lE(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(e){e=e.detail;e=e.isCustomEmoji?e.shortcuts[0]:e.emojiId;var z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(z,e);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var e=_.ln();if(e){e=e.getBrowserRangeObject();for(var z=e.commonAncestorContainer;z;){if(z===this.getEditableTextArea_())return e;z=z.parentNode}}e=this.getEditableTextArea_();e=_.XA(e,e.childNodes.length);e.select();return e.getBrowserRangeObject()},
insertTextWithEmojis_:function(e,z,C){(z=this.emojiManager.createDocumentFragment(z,!0,!1,C===void 0?!0:C))&&z.childNodes.length!==0&&(e.collapsed||e.deleteContents(),C=z.lastChild,e.insertNode(z),_.vfg(C).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var e=_.ln();if(e){var z=e.JSC$11513_getStartNode(),C=e.JSC$11513_getEndNode();if(JPs(z)&&JPs(C)){var w=e.JSC$11513_getStartOffset(),K;if(_.HW&&z.nodeType===Node.ELEMENT_NODE&&(K=_.nyU(z)))_.XA(K,0).select();else{K=xs(z)?z:_.j8(z,xs);var G=xs(C)?C:_.j8(C,xs);if(K||G)if(e.isCollapsed()){if(z.nodeType===Node.TEXT_NODE){e=!0;w===z.length&&(e=!1);if(wC==="end"||wC==="right")e=!1;z=z.parentNode;e=[].concat(_.s_(z.parentNode.childNodes)).indexOf(z)+(e?0:1);_.XA(z.parentNode,
e).select()}}else K?K.previousSibling&&K.previousSibling.length>0?_.Jp(C,e.JSC$11513_getEndOffset(),K.previousSibling,K.previousSibling.length-1).select():(z=document.createTextNode("\u200b"),K.parentNode.insertBefore(z,K),_.Jp(C,e.JSC$11513_getEndOffset(),z,0).select()):G&&(G.nextSibling&&G.nextSibling.length>0?_.Jp(z,e.JSC$11513_getStartOffset(),G.nextSibling,1).select():(C=document.createTextNode("\u200b"),G.parentNode.insertBefore(C,G.nextSibling),_.Jp(z,e.JSC$11513_getStartOffset(),C,C.length).select()));
wC=null}}else wC=null}else wC=null},
leftKeyPressed_:function(){wC="left"},
rightKeyPressed_:function(){wC="right"},
endKeyPressed_:function(){wC="end"},
maybeDeleteChip_:function(){var e=li1(!0);if(e){var z=_.ln(),C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();_.Kr(C,z,e,e.childNodes.length).select()}},
maybeBackspaceChip_:function(){var e=li1(!1);if(e){var z=_.ln(),C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();_.Kr(C,z,e,0).select()}},
maybeBackspaceChipWordMode_:function(e){var z=_.ln();if(z.isCollapsed()){var C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();var w=QWs(C,z,!0);w&&(_.Kr(C,z,w,0).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(e){var z=_.ln();if(z.isCollapsed()){var C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();var w=QWs(C,z,!1);w&&(_.Kr(C,z,w,w.childNodes.length).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
onTap_:function(e){if(!e.defaultPrevented&&(e.currentTarget.tagName==="YTD-COMMENTBOX"&&xs(e.target)&&e.preventDefault(),this.isEmojiPickerDisplayed)){var z=this.$$("#emojis"),C=this.$$("#emoji-button"),w=this.getEditableTextArea_();if((e=e.path?e.path:e.composedPath&&e.composedPath())&&!e.includes(z)&&!e.includes(w)&&!e.includes(C))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(e,z,C){return e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&z!==void 0&&z.encryptedBlobId!==null&&z.sourceExternalVideoId!==null&&C!==void 0&&C.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(e,z){return e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!z&&!!z.videoRenderer&&!!z.videoRenderer.videoId},
isValidPrefilledAttachment_:function(e,z,C){return this.isValidPrefilledImage_(e,z,C)||this.isValidPrefilledVideo_(e,C)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.M("enable_multi_image_post_creation")){var e=this.$$("ytd-backstage-multi-image-select-renderer");e&&e.hasImages()&&e.cancel()}else(e=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&e.cancel();(e=this.$["poll-attachment"])&&this.hasPoll_&&e.clearPollOptions();(e=this.$["image-poll-attachment"])&&this.hasImagePoll_&&e.resetPollOptions();(e=this.$["quiz-attachment"])&&this.hasQuiz_&&e.resetQuizOptions();
(e=this.$["video-link-attachment"])&&this.hasVideo_&&e.cancel();(e=this.$["access-restrictions-selector"].firstElementChild)&&e.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 _.XC(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.XC(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(e,z){e=q98(e,this.emojiManager,z).cloneNode(!0);for(z=e.firstChild;z;)if(z.nodeType!==1)z=z.nextSibling;else switch(z.tagName){case "BR":var C=_.gJ();_.P4C(C,z);z=C.nextSibling;break;case "DIV":(C=z.lastChild)&&z.nextSibling&&_.AL(_.gJ(),C);z.previousSibling&&(z.previousSibling.nodeType===1||z.previousSibling.nodeType===3&&!z.previousSibling.textContent.endsWith("\n"))&&_.cT(_.gJ(),z);C&&C.nodeName==="BR"&&_.hA(C);C=z;z.hasChildNodes()?(z=z.firstChild,
_.Rn4(C)):(z=z.nextSibling,_.hA(C));break;default:z=z.nextSibling}return ms1(e)},
onAddImageError_:function(e){e.stopPropagation();this.errorMessage_=_.AO(e.detail)},
setTextAreaValue_:function(e){e||(e="");var z=this.getEditableFormattedString_();z.text="";this.getEditableTextArea_().innerText="";typeof e==="string"&&(e={runs:[{text:e}]});z.text=e},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();wC=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var e=this.getEditableTextArea_();e&&(_.XA(e,e.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.j5("HTML_DIR")==="rtl"){var e=this.getEditableTextArea_(),z=this.getTextAreaValue()!==""?"auto":"rtl";e.setAttribute("dir",z)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var e;return YrL((e=this.$["quiz-attachment"])==null?void 0:e.getExplanationText())||YrL(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var e=null;if(this.isEmojiButtonDisplayed){var z=this.getInputRange_();z&&(e=this.emojiInput.retrieveTextBeforeRange(z))}this.insertText_(e,!0);this.updateCharCount_();this.setSubmitButton_();e=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=e.scrollHeight>e.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var e=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:e})},
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(e){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(e)},
onPasteEmoji_:function(e){e.preventDefault();e.stopImmediatePropagation();e=e.clipboardData.getData("text/plain");this.insertText_(e,!1,!1)},
insertText_:function(e,z,C){z=z===void 0?!1:z;C=C===void 0?!0:C;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&e){var w=this.getInputRange_().cloneRange();this.emojiManager&&w&&(z&&this.emojiInput.offsetStartOfRangeBy(w,e.length),this.insertTextWithEmojis_(w,e,C),klg(this.getEditableTextArea_().lastChild)||(w=this.getInputRange_().cloneRange()),w&&(this.emojiInput.updateSuggestions(w,e),this.updateSuggestionOffset_(w)))}},
setSubmitButton_:function(){if(this.data){var e=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",z=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(e||z){var C=this.getTextAreaValue().trim();z=C===this.previousText_;C=!C||this.aboveCharLimit_;e&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(C=this.aboveCharLimit_);this.submitButtonDisabled=
z||C||!this.getTextLength();e&&_.M("enable_post_scheduling")&&(this.submitButtonDisabled=z&&!this.scheduledPublishTimeSec_||C)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Zd,computeCreationBoxClass_:function(e){return e?"focused":"not-focused"},
computeFooterMessageClass_:function(e,z){return z?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(e,z){return z?z:e},
computeFooterMessageHidden_:function(e,z){return!z&&!e},
computePlaceholderText_:function(e,z,C){return(C==="video"||C==="image")&&(e==null?0:e.prefilledPlaceholderText)?e==null?void 0:e.prefilledPlaceholderText:z==="poll"||z==="image-poll"?e==null?void 0:e.pollPostPlaceholderText:z==="quiz"?e==null?void 0:e.quizPostPlaceholderText:z==="image"?e==null?void 0:e.imagePostPlaceholderText:e==null?void 0:e.placeholderText},
computeHideAttachmentButtons_:function(e,z,C,w){return e===void 0?!1:w&&this.getSimpleString(w)===this.getSimpleString(e.rateLimitErrorMessage)?!0:z!=="none"||C!=="none"||!e.videoLinkButton&&!e.pollButton&&!e.imagePollButton&&!e.quizButton&&!e.imageButton},
computeHideDismissableAttachment_:function(e){return e!=="image"&&e!=="video"},
computeHasVideo_:function(e){return e==="video"},
computeHasImage_:function(e){return e==="image"},
computeHasPoll_:function(e){return e==="poll"},
computeHasImagePoll_:function(e){return e==="image-poll"},
computeHasQuiz_:function(e){return e==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(e){return e&&e.backstageAttachment?e.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!e.backstageAttachment.quizRenderer&&!e.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(e){if(this.isValidPrefilledAttachment_(e.purpose,e.prefilledImageData,e.backstageAttachment))return e.backstageAttachment},
computeEditAttachment_:function(e){if(this.computePrefilledContent_(e)===void 0)return e.backstageAttachment},
computeAuthorThumbnailDimension_:function(e,z){return e&&!z?24:40},
computeImageUploadEndpoint_:function(e){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",e)},
computeRateLimitErrorCommands_:function(e){var z,C;return e==null?void 0:(z=e.advancedTierFeatures)==null?void 0:(C=z.rateLimit)==null?void 0:C.rateLimitCommands},
computeIsBackstageComment_:function(e){return!(!e||e!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(e){return this.get("submitButton.buttonRenderer.serviceEndpoint",e)||this.get("replyButton.buttonRenderer.serviceEndpoint",e)||this.get("postButton.buttonRenderer.serviceEndpoint",e)},
computeSubmitButtonOverride:function(){if(_.M("web_modern_buttons")){var e,z;return{segmentedPosition:this.dropdownSchedulePanel_||!((e=this.data)==null?0:(z=e.postOptionsMenu)==null?0:z.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.M("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(e,z){e=this.get("submitButton.buttonRenderer",e)||this.get("replyButton.buttonRenderer",e)||this.get("postButton.buttonRenderer",e);z&&(e=z);e&&(e=Object.assign({},e),e.serviceEndpoint=void 0,e.isDisabled=this.submitButtonDisabled);return e},
computeHasExternalLinksAccess_:function(e){if(_.M("enable_rfa_external_links")){var z,C,w;return(w=e==null?void 0:(z=e.advancedTierFeatures)==null?void 0:(C=z.externalLinks)==null?void 0:C.allowExternalLinks)!=null?w:!0}return!0},
computeIsEmojiButtonDisplayed_:function(e){return e.emojiButton&&e.emojiPicker&&e.emojiPicker.emojiPickerRenderer&&e.emojiPicker.emojiPickerRenderer.categories?e.emojiPicker.emojiPickerRenderer.categories.find(function(z){return z.emojiPickerCategoryRenderer?z.emojiPickerCategoryRenderer.emojiIds&&z.emojiPickerCategoryRenderer.emojiIds.length>0:z.emojiPickerUpsellCategoryRenderer?z.emojiPickerUpsellCategoryRenderer.emojis&&z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(e){return e.charLimit?e.charLimit:null},
computeDropdownSchedulingPanel_:function(e,z){if(e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&z)return z},
computeInlineSchedulingPanel_:function(e,z){if(e==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&z)return z},
computeHideAuthorThumbnail_:function(e,z){return e||this.computeUseIdentityChip_(z)},
computeHideIdentityChipRenderer_:function(e,z){return e||!this.computeUseIdentityChip_(z)},
computeUseIdentityChip_:function(e){return!!e&&!!e.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(e){var z,C,w,K;(e==null?0:(z=e.detail)==null?0:(C=z.endpoint)==null?0:C.ypcGetOffersEndpoint)||(e==null?0:(w=e.detail)==null?0:(K=w.endpoint)==null?0:K.ypcOffersEndpoint)?(e.stopPropagation(),_.wQ(this,[e.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",e)&&(e.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(e){this.addedAttachment="video";this.selectedVideoId_=e.detail.videoId},
commentboxStateEntityChanged_:function(e){var z=this;(e==null?void 0:e.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(e==null?void 0:e.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){z.focus()})},
onYtServiceRequestSent_:function(e,z){if(z.actions)for(e=_.b(z.actions),z=e.next();!z.done;z=e.next())z.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(e){this.isLoading=!1;var z=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",e),C,w,K,G=e==null?void 0:(C=e.detail)==null?void 0:(w=C.data)==null?void 0:(K=w.actionResult)==null?void 0:K.commentboxStateEntityKey;if(z)this.errorMessage_=z;else if(G){var X;this.dismissData_=e==null?void 0:(X=e.detail)==null?void 0:X.data;this.commentboxStateKey_=G}else{this.clear();var J;this.fire("yt-commentbox-dismiss",e==null?void 0:(J=e.detail)==
null?void 0:J.data)}},
onYtServiceRequestError_:function(e){e.stopPropagation();this.isLoading=!1;var z,C;if(((z=this.data)==null?void 0:z.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((C=this.data)==null?void 0:C.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(z=this.get("detail.error.args",e)||[],z.length>1&&z[1].message){this.handlePostsServiceRequestError_(z[1].message);return}(e=this.get("detail.error.message",e))?this.errorMessage_=this.data.errorMessage||_.AO(e):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(e){if(_.M("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var z=_.b(this.rateLimitErrorCommands),C=z.next();!C.done;C=z.next())if(C=C.value,C.errorLabel===e){_.$p(C.command,this.hostElement);return}this.errorMessage_=_.AO(e)},
submitIfNotBackstagePost_:function(e){if(!this.isBackstagePost)this.onSubmit_(e)},
onSubmit_:function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L;return _.k(function(h){switch(h.nextAddress){case 1:e.stopPropagation();if(!z.serviceEndpoint||!z.isValidInput_())return h.return();if(z.shouldShowPostAadcNotice_())return z.showPostAadcNotice_(),h.return();if(z.shouldShowCommentAadcNotice_())return z.showCommentAadcNotice_(),h.return();if(!(z.$$("ytd-backstage-multi-image-select-renderer")&&z.hasImage_&&_.M("enable_multi_image_post_creation"))){h.jumpTo(2);break}C=z.$$("ytd-backstage-multi-image-select-renderer");
return h.yield(C.getAllUploadStatuses(),3);case 3:w=h.yieldResult;if(!w)return h.return();K=_.b(w);for(G=K.next();!G.done;G=K.next())if(X=G.value,X.encryptedBlobId===void 0)return z.isLoading=!1,q=J=void 0,z.errorMessage_=(q=(J=z.imageUploadEndpoint_)==null?void 0:J.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?q:null,h.return();return h.return(z.submitForm_(void 0,void 0,void 0,void 0,C.images,z.taggedVideoId_));case 2:if(!z.hasImagePoll_||!z.$["image-poll-attachment"]){h.jumpTo(4);
break}return h.yield(z.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:T=h.yieldResult;if(!T)return h.return();Q=_.b(T);for(m=Q.next();!m.done;m=Q.next())if(a=m.value,!a.encryptedBlobId)return z.isLoading=!1,n=void 0,z.errorMessage_=(n=z.data.errorMessage)!=null?n:null,h.return();case 4:I=(H=z.$$("ytd-backstage-image-select-renderer"))&&H.uploadPromise(),L=z.getSharedPostId_(),I?I.then(function(){z.submitForm_.apply(z,_.s_(_.yL.apply(0,arguments)))}).catch(function(E){z.isLoading=!1;
z.errorMessage_=_.AO(E.message)}):z.selectedVideoId_?z.submitForm_(void 0,z.selectedVideoId_):z.prefilledAttachment_==="image"?z.submitForm_(z.prefilledImageData_.encryptedBlobId,void 0,void 0,z.prefilledImageData_.sourceExternalVideoId,void 0,z.taggedVideoId_):z.prefilledAttachment_==="video"?z.submitForm_(void 0,z.data.backstageAttachment.videoRenderer.videoId):L?z.submitForm_(void 0,void 0,L):z.taggedVideoId_!==void 0?z.submitForm_(void 0,void 0,void 0,void 0,void 0,z.taggedVideoId_):z.submitForm_(),
_.E_(h)}})},
openSchedulingPanel:function(e){e&&e.scheduleButton&&e.scheduleButton.buttonRenderer&&(this.scheduleButton_=e.scheduleButton.buttonRenderer);e&&e.dateTimePicker&&this.set("data.schedulingDateTimePicker",e.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(e){e.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(e){e.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(e){e.stopPropagation();e.detail.alertMessage&&(this.alertMessage_=e.detail.alertMessage)},
onImageSelected_:function(e){e.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(e){e.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(e){e.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(e.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(e){e.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(e){var z=this.$["video-link-attachment"];z&&z.onLaunchVideoPicker(e)},
onAttachmentDismiss_:function(e){e.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"&&_.M("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.M("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 e;if(this.addedAttachment==="image-poll"&&((e=this.$["image-poll-attachment"])==null||!e.isValid()))return!1;var z;if(this.addedAttachment==="quiz"&&((z=this.$["quiz-attachment"])==null||!z.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;e=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(e=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")e=!0;return e||!!this.getTextAreaValue().trim()},
submitForm_:function(e,z,C,w,K,G){var X=this.getTextAreaValue().trim(),J={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&X===this.previousText_&&(X=void 0);X!==void 0&&(J.comment_text=X);this.isLoading=!0;G!=void 0&&(J.tagged_video_id=G);e?(J.image_blob_id=e,this.imagePreviewCoordinates_&&(J.image_preview_coordinates=this.imagePreviewCoordinates_)):z?J.attached_video_id=z:C?J.shared_post_id=C:K&&K.length>0&&(J.images_data=K.map(function(q){return{encryptedBlobId:q.encryptedBlobId,
previewCoordinates:q.previewCoordinates}}));
w&&(J.source_video_id=w);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(J.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(J.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(J.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(J.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.M("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(J.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.wQ(this,[this.serviceEndpoint,J])},
onIsInputFocusChanged_:function(e,z){e?this.fire("yt-autonav-pause-focus"):z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(e){var z=this.getEditableTextArea_();[].concat(_.s_(e.dataTransfer.items)).forEach(function(C){C.kind==="string"&&C.type.match("^text/plain")&&C.getAsString(function(w){z.appendChild(document.createTextNode(w))})});
e.preventDefault()},
preventDefault_:function(e){e.preventDefault()},
onSuggestionInsert_:function(e){this.insertTextWithEmojis_(e.detail.range,e.detail.text)},
onEmojiSuggestionClick_:function(e){this.emojiInput.insertSuggestion(e.detail)},
computeSubmitButtonClass_:function(e,z){return!z||e?"":"with-options"},
updateSuggestionOffset_:function(e){if(this.emojiInput&&_.XC(this.emojiInput).querySelector("#dropdown")){var z=this.getEditableTextArea_().getBoundingClientRect().bottom,C=e.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(z-C)+5;z=this.getEditableTextArea_().getBoundingClientRect().left;e=e.getBoundingClientRect().left-z;_.XC(this.emojiInput).querySelector("#dropdown").style.marginLeft=e+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(e){if(_.M("enable_post_scheduling")&&this.data&&this.data.purpose){e=e.detail;if(Math.floor(Date.now()/1E3)>=e)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var z=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(z)||z!==e?this.scheduledPublishTimeSec_=e:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=e;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var e=["image-button","image-poll-button","poll-button","quiz-button"];_.M("auto_convert_posts_video_tag")||e.push("video-link-button");return e},
getButtonRenderer:function(e,z){if(e)switch(z){case "video-link-button":var C;return((C=e.videoLinkButton)==null?void 0:C.buttonRenderer)||void 0;case "image-button":var w;return((w=e.imageButton)==null?void 0:w.buttonRenderer)||void 0;case "poll-button":var K;return((K=e.pollButton)==null?void 0:K.buttonRenderer)||void 0;case "image-poll-button":var G;return((G=e.imagePollButton)==null?void 0:G.buttonRenderer)||void 0;case "quiz-button":var X;return((X=e.quizButton)==null?void 0:X.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var e;return(e=this.data)==null||!e.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var e,z;return!((e=this.data)==null||!e.openAadcDialog)&&!((z=this.aadcGuidelinesState_)==null||!z.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.j5("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var e;((e=this.data)==null?0:e.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.zE("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(e){e.clickTrackingParams&&_.nm().clickCommand(e);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.eA(this,"yt-close-popup-action")},
onHideIdentityChip:function(e){var z;this.set("data.placeholderText",(z=e.hideIdentityChipAction)==null?void 0:z.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var KQ=function(){var e=_.V.apply(this,arguments)||this;e.isOpen=!1;e.modern=_.M("web_modern_buttons");e.roundedContainer=!0;e.dropdownButtonOverride=_.M("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;e.inPopupContainer=!1;e.isCommentboxLoading=!1;var z=["image-button","image-poll-button","poll-button"];_.M("enable_quiz_creation")&&z.push("quiz-button");_.M("auto_convert_posts_video_tag")||z.push("video-link-button");e.attachmentButtonIds=z;e.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 e};
_.U(KQ,_.V);_.Y=KQ.prototype;_.Y.computeButtonOverride=function(){var e;return((e=this.data)==null?0:e.postOptionsMenu)&&_.M("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.Y.configureRendererStamper=function(){var e={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.M("auto_convert_posts_video_tag")||(e["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return e};
_.Y.ready=function(){var e=this,z=_.XC(this.hostElement).querySelector("#placeholder-area"),C=function(w){e.onOpen(w)};
z.addEventListener("tap",C);z.addEventListener("keypress",C)};
_.Y.showButtonEduTooltip=function(){var e,z,C,w,K,G,X;if(_.M("enable_quiz_creation")&&((e=this.data)==null?0:(z=e.quizButton)==null?0:(C=z.buttonRenderer)==null?0:(w=C.hint)==null?0:(K=w.hintRenderer)==null?0:(G=K.content)==null?0:(X=G.bubbleHintRenderer)==null?0:X.text)&&(_.tl.getInstance(),e=gt(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(e==null?void 0:
e.length)>0)){this.ytComponentBehavior.resolveCommand(e[0],{form:{element:this.quizButton}});return}var J;if((J=this.data)==null?0:J.imagePollButtonTooltip)if(_.tl.getInstance(),J=gt(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(J==null?void 0:J.length)>0){this.ytComponentBehavior.resolveCommand(J[0],{form:{element:this.imagePollButton}});return}var q;_.M("enable_multi_image_post_creation")&&
((q=this.data)==null?0:q.multiImageButtonTooltip)&&(_.tl.getInstance(),q=gt(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(q==null?void 0:q.length)>0&&this.ytComponentBehavior.resolveCommand(q[0],{form:{element:this.imageButton}}))};
_.Y.onCreatePollAction=function(e){_.r(e,LX6)&&(this.JSC$16112_commentbox.addedAttachment="poll",this.openDialog())};
_.Y.onAddVideoLinkAction=function(e){if(_.r(e,IoX))this.JSC$16112_commentbox.onAddVideoLink(e)};
_.Y.onShowSchedulingPanelCommand=function(e){(e=_.r(e,Csh))&&this.openSchedulingPanel(e)};
_.Y.onCreateImagePollCommand=function(e){_.r(e,wkg)&&(this.JSC$16112_commentbox.openImagePollComponent(),this.openDialog())};
_.Y.onCreateQuizCommand=function(e){_.r(e,KjY)&&(this.JSC$16112_commentbox.openQuizComponent(),this.openDialog())};
_.Y.openSchedulingPanel=function(e){_.M("enable_post_scheduling")&&(this.openDialog(),this.JSC$16112_commentbox.openSchedulingPanel(e))};
_.Y.onCreateCommentAction=function(e){this.get("createCommentAction.contents",e)&&(this.JSC$16112_commentbox.clear(),this.closeDialog())};
_.Y.onOpen=function(e){e instanceof KeyboardEvent&&e.type==="keypress"&&e.keyCode!==13&&e.keyCode!==32||(this.data.prepareAccountEndpoint?_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.Y.onYtCommentboxDismiss=function(){this.closeDialog()};
_.Y.onYtCommentboxLoadingStart=function(e){e.stopPropagation();this.isCommentboxLoading=!0};
_.Y.onYtCommentboxLoadingEnd=function(e){e.stopPropagation();this.isCommentboxLoading=!1};
_.Y.onYtVideoLinkButtonCancel=function(e){e.stopPropagation();this.onOpen(e)};
_.Y.onYtVideoLinkSelected=function(e){e.stopPropagation();this.onOpen(e)};
_.Y.onIronSelect=function(e){e.stopPropagation();e.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=e.detail.item.value&&(this.accessRestriction?(this.accessRestriction=e.detail.item.value,this.onOpen(e)):this.accessRestriction=e.detail.item.value)};
_.Y.onYtNavigate=function(e){this.get("detail.endpoint.backstageImageUploadEndpoint",e)&&(this.JSC$16112_commentbox.addedAttachment="image",this.JSC$16112_commentbox.submitButtonDisabled=!0,this.onOpen(e))};
_.Y.onRequestSent=function(e){for(var z=_.b(e.detail),C=z.next();!C.done;C=z.next())_.r(C.value,TXC)&&(this.JSC$16112_commentbox.addedAttachment="image",this.JSC$16112_commentbox.submitButtonDisabled=!0,this.onOpen(e))};
_.Y.openDialog=function(){var e;(e=this.data)!=null&&e.isIneligibleForCommunityPagePostCreation||(this.JSC$16112_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16112_commentbox.focus())};
_.Y.onPopupClosed=function(){_.tl.getInstance()};
_.Y.computeCreationDisabled=function(e){return!!e};
_.Y.computeIsCreationDialog=function(e){return!!e&&e==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.Y.computeDisabledPostButton=function(e){if(!e)return null;e.isDisabled=!0;return e};
_.Y.computeIsCreationDialogWithHeader=function(e){return!this.inPopupContainer&&!!e&&!!e.authorText&&e.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.Y.computeIsHeaderHidden=function(e,z){return!e||z};
_.Y.computeDropdownRendererClasses=function(e){return e?["text-secondary-style"]:[]};
_.Y.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var e=_.XC(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;e&&e.reset()};
KQ.prototype.onPopupClosed=KQ.prototype.onPopupClosed;KQ.prototype.onRequestSent=KQ.prototype.onRequestSent;KQ.prototype.onYtNavigate=KQ.prototype.onYtNavigate;KQ.prototype.onIronSelect=KQ.prototype.onIronSelect;KQ.prototype.onYtVideoLinkSelected=KQ.prototype.onYtVideoLinkSelected;KQ.prototype.onYtVideoLinkButtonCancel=KQ.prototype.onYtVideoLinkButtonCancel;KQ.prototype.onYtCommentboxLoadingEnd=KQ.prototype.onYtCommentboxLoadingEnd;KQ.prototype.onYtCommentboxLoadingStart=KQ.prototype.onYtCommentboxLoadingStart;
KQ.prototype.onYtCommentboxDismiss=KQ.prototype.onYtCommentboxDismiss;KQ.prototype.showButtonEduTooltip=KQ.prototype.showButtonEduTooltip;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],KQ.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],KQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],KQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],KQ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],KQ.prototype,"isOpen",void 0);_.d([_.F({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],KQ.prototype,"buttonOverride",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],KQ.prototype,"modern",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],KQ.prototype,"roundedContainer",void 0);_.d([_.F(),_.B("design:type",Object)],KQ.prototype,"dropdownButtonOverride",void 0);_.d([_.F({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.B("design:type",Boolean)],KQ.prototype,"creationDisabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],KQ.prototype,"enableCreationBox",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.B("design:type",Boolean)],KQ.prototype,"isCreationDialog",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],KQ.prototype,"inPopupContainer",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.B("design:type",Boolean)],KQ.prototype,"isCreationDialogWithHeader",void 0);_.d([_.F(),_.B("design:type",Object)],KQ.prototype,"accessRestriction",void 0);
_.d([_.F({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.B("design:type",Array)],KQ.prototype,"dropdownRendererClasses",void 0);_.d([_.F(),_.B("design:type",Object)],KQ.prototype,"isCommentboxLoading",void 0);_.d([_.F(),_.B("design:type",Array)],KQ.prototype,"attachmentButtonIds",void 0);_.d([_.nP("#image-button"),_.B("design:type",HTMLElement)],KQ.prototype,"imageButton",void 0);
_.d([_.nP("#image-poll-button"),_.B("design:type",HTMLElement)],KQ.prototype,"imagePollButton",void 0);_.d([_.nP("#quiz-button"),_.B("design:type",HTMLElement)],KQ.prototype,"quizButton",void 0);_.d([_.nP("#commentbox"),_.B("design:type",Object)],KQ.prototype,"JSC$16112_commentbox",void 0);_.d([_.mi("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KQ.prototype,"showButtonEduTooltip",null);
_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onYtCommentboxDismiss",null);_.d([_.Qi("yt-commentbox-loading-start"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onYtCommentboxLoadingStart",null);
_.d([_.Qi("yt-commentbox-loading-end"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onYtCommentboxLoadingEnd",null);_.d([_.Qi("yt-video-link-button-cancel"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onYtVideoLinkButtonCancel",null);
_.d([_.Qi("yt-video-link-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onYtVideoLinkSelected",null);_.d([_.Qi("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onIronSelect",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onYtNavigate",null);
_.d([_.Qi("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],KQ.prototype,"onRequestSent",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KQ.prototype,"onPopupClosed",null);_.d([_.SL({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],KQ);
_.u(KQ,"ytd-backstage-post-dialog-renderer",function(){if(wxa!==void 0)return wxa;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return wxa=e},{mode:1});var VHo;var fa4;var oB=function(){return _.V.apply(this,arguments)||this};
_.U(oB,_.V);_.Y=oB.prototype;_.Y.computeHeartButtonStyle=function(e){return(e==null?0:e.styleType)?e.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Y.onYtButtonTap=function(){if(this.data.isEnabled){var e=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(e=this.getEndpoint(e))&&_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})}else(e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(e)};
_.Y.toggle=function(e){this.set("data.isHearted",e!==void 0?e:!this.data.isHearted)};
_.Y.getEndpoint=function(e){var z,C=(z=this.data)==null?void 0:z.heartEndpoint,w;z=(w=this.data)==null?void 0:w.unheartEndpoint;if(C&&z)return e?z:C};
_.Y.computeButtonAccessibility=function(e,z){var C,w,K=e==null?void 0:(C=e.heartedAccessibility)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label,G,X;e=e==null?void 0:(G=e.unheartedAccessibility)==null?void 0:(X=G.accessibilityData)==null?void 0:X.label;return z?K:e};
_.lB.Object.defineProperties(oB.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 e;return _.M("kevlar_system_icons")&&!((e=this.data)==null||!e.isHearted)}}});
oB.prototype.onYtButtonTap=oB.prototype.onYtButtonTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],oB.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oB.prototype,"data",void 0);_.d([_.P("data.isHearted"),_.B("design:type",Object),_.B("design:paramtypes",[])],oB.prototype,"heartTooltip",null);
_.d([_.P("data.isHearted"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oB.prototype,"iconFilled",null);_.d([_.F({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.B("design:type",String)],oB.prototype,"buttonAccessibility",void 0);_.d([_.F({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],oB.prototype,"heartButtonStyle",void 0);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oB.prototype,"onYtButtonTap",null);_.d([_.SL({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],oB);
_.u(oB,"ytd-creator-heart-renderer",function(){if(fa4!==void 0)return fa4;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return fa4=e},{mode:1});var Gn=function(){var e=_.V.apply(this,arguments)||this;e.hasCreatorReply=!1;e.buttonOverrides={size:"S",iconPosition:"icon-only"};e.replyButtonOverrides={size:"S",type:"text"};e.forceIconButton=!_.M("web_modern_buttons");e.modern=_.M("web_modern_buttons");e.buttonTooltipPosition="bottom";e.systemIcons=_.M("kevlar_system_icons");e.replyDialog=null;return e};
_.U(Gn,_.V);_.Y=Gn.prototype;
_.Y.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]]"}}}}}};
_.Y.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.Y.dataChange=function(){this.replyDialog&&_.XC(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var e,z,C;this.isLiked=this.systemIcons&&!!((e=this.data)==null?0:(z=e.likeButton)==null?0:(C=z.toggleButtonRenderer)==null?0:C.isToggled)};
_.Y.computeShowVoteCountBeginning=function(e,z){return e===void 0||z===void 0?!0:e.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.Y.computeShowVoteCountEnd=function(e,z){return e===void 0||z===void 0?!0:e.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.Y.computeShowCommentCount=function(e,z){return e===void 0||z===void 0?!0:e.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!z&&this.ytRendererBehavior.getSimpleString(z)!=="0"};
_.Y.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.Y.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.Y.showReplyDialog=function(e){e&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.XC(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=e,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.Y.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.Y.onRequestSent=function(e){e=_.b(e.detail);for(var z=e.next();!z.done;z=e.next())(z=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",z.value))&&this.showReplyDialog(z)};
_.Y.onYtNavigate=function(e){var z,C;(e=(z=_.r(e.detail.endpoint,_.lS4))==null?void 0:(C=z.dialog)==null?void 0:C.commentReplyDialogRenderer)&&this.showReplyDialog(e)};
_.Y.onYtServiceRequestSent=function(e,z){e.stopPropagation();if(z.actions)for(e=0;e<z.actions.length;e++){var C=_.r(z.actions[e],fo4);C&&this.handleUpdateCommentVoteAction(C)}};
_.Y.handleUpdateCommentVoteAction=function(e){this.voteCount=e.voteCount||_.AO("0");e.voteStatus==="LIKE"?this.JSC$16124_ytdDislikeToggleButtonRenderer.toggle(!1):e.voteStatus==="DISLIKE"?this.JSC$16124_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16124_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16124_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Y.computeReplyButtonHidden=function(e){return e};
_.Y.computeReplyButtonBeginning=function(e){return(e==null?0:e.replyButton)&&e.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?e.replyButton:void 0};
_.Y.computeReplyButtonEnd=function(e){return(e==null?0:e.replyButton)&&e.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?e.replyButton:void 0};
_.Y.computeActionButtonStyle=function(e){return(e==null?0:e.style)?e.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.Y.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.Y.onYtToggleButton=function(e){var z,C;this.isLiked=this.systemIcons&&!!((z=e.detail)==null?0:(C=z.actions)==null?0:C.like)};
Gn.prototype.onYtToggleButton=Gn.prototype.onYtToggleButton;Gn.prototype.onButtonTooltipPositionChanged=Gn.prototype.onButtonTooltipPositionChanged;Gn.prototype.onYtServiceRequestSent=Gn.prototype.onYtServiceRequestSent;Gn.prototype.onYtNavigate=Gn.prototype.onYtNavigate;Gn.prototype.onRequestSent=Gn.prototype.onRequestSent;Gn.prototype.onYtCommentboxDismiss=Gn.prototype.onYtCommentboxDismiss;Gn.prototype.dataChange=Gn.prototype.dataChange;
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"voteCount",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"commentCount",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"replyThumbnail",void 0);
_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"hasCreatorReply",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Gn.prototype,"enableCreationBox",void 0);_.d([_.F({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],Gn.prototype,"actionButtonsStyle",void 0);_.d([_.F({computed:"computeReplyButtonBeginning(data)"}),_.B("design:type",Object)],Gn.prototype,"replyButtonBeginning",void 0);
_.d([_.F({computed:"computeReplyButtonEnd(data)"}),_.B("design:type",Object)],Gn.prototype,"replyButtonEnd",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"buttonOverrides",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"replyButtonOverrides",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"forceIconButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Gn.prototype,"useCommentIcon",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Gn.prototype,"modern",void 0);_.d([_.F(),_.B("design:type",Object)],Gn.prototype,"buttonTooltipPosition",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Gn.prototype,"systemIcons",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Gn.prototype,"isLiked",void 0);_.d([_.nP("ytd-button-renderer"),_.B("design:type",Object)],Gn.prototype,"ytdReplyButtonRenderer",void 0);
_.d([_.nP("#like-button"),_.B("design:type",Object)],Gn.prototype,"JSC$16124_ytdLikeToggleButtonRenderer",void 0);_.d([_.nP("#dislike-button"),_.B("design:type",Object)],Gn.prototype,"JSC$16124_ytdDislikeToggleButtonRenderer",void 0);_.d([_.nP("#reply-dialog"),_.B("design:type",HTMLElement)],Gn.prototype,"replyDialogElement",void 0);_.d([_.nP("#reply-button"),_.B("design:type",HTMLElement)],Gn.prototype,"replyButtonElement",void 0);
_.d([_.nP("#reply-button-end"),_.B("design:type",HTMLElement)],Gn.prototype,"replyButtonEndElement",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gn.prototype,"dataChange",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gn.prototype,"onYtCommentboxDismiss",null);
_.d([_.Qi("yt-service-request-sent-button-renderer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gn.prototype,"onRequestSent",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gn.prototype,"onYtNavigate",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],Gn.prototype,"onYtServiceRequestSent",null);_.d([_.mi("buttonTooltipPosition"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gn.prototype,"onButtonTooltipPositionChanged",null);
_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gn.prototype,"onYtToggleButton",null);_.d([_.SL({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Gn);
_.u(Gn,"ytd-comment-action-buttons-renderer",function(){if(VHo!==void 0)return VHo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return VHo=e},{mode:1});var SPC;var YA=function(){return _.V.apply(this,arguments)||this};
_.U(YA,_.V);YA.prototype.focus=function(){_.XC(this.hostElement).querySelector("#commentbox").focus()};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],YA.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],YA.prototype,"zeroStepChannelCreationRenderer",void 0);_.d([_.SL({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],YA);
_.u(YA,"ytd-comment-dialog-renderer",function(){if(SPC!==void 0)return SPC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return SPC=e},{mode:1});var uEU;var bJ=function(){var e=_.V.apply(this,arguments)||this;e.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.M("enable_web_delhi_icons")};e.replyButtonOverrides={size:"S",type:"text"};return e};
_.U(bJ,_.V);_.Y=bJ.prototype;_.Y.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.Y.detached=function(){this.replyBox&&this.replyBox.remove()};
_.Y.showReplyDialog=function(e){if(e){var z=this.replyBox;z||(z=document.createElement("ytd-comment-reply-dialog-renderer"),z.id="replybox",_.XC(this.replyDialogDiv).appendChild(z));z.data=e;this.replyDialogDiv.hidden=!1;z.openDialog()}};
_.Y.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.Y.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var e,z=_.r((e=this.toolbarSurface)==null?void 0:e.subscribersOnlyDisclaimerSnackbarCommand,_.fm);z&&_.pi(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:z})}};
_.Y.onYtServiceRequestSent=function(e,z){e.stopPropagation();if(z.actions)for(var C=0;C<z.actions.length;C++){var w=_.r(z.actions[C],fo4);w?this.handleUpdateCommentVoteAction(w):e.target===this.heartButton&&this.toggleHeartState()}};
_.Y.handleUpdateCommentVoteAction=function(e){var z;(z=this.toolbarState)!=null&&z.key&&this.ytdReduxBehavior.dispatch(_.d$("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:e.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":e.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.Y.toggleHeartState=function(){var e;(e=this.toolbarState)!=null&&e.key&&this.ytdReduxBehavior.dispatch(_.d$("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.lB.Object.defineProperties(bJ.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return(((e=this.toolbarState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(z=this.toolbarData)==null?void 0:z.likeCountLiked:(C=this.toolbarData)==null?void 0:C.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.toolbarSurface)==null?void 0:e.prepareAccountCommand)!==void 0&&!_.M("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e,z=_.r((e=this.toolbarSurface)==null?void 0:e.prepareAccountCommand,_.fm),C,w,K,G,X,J,q,T,Q;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((C=this.toolbarSharedData)==null||!C.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((w=this.toolbarState)==null?void 0:w.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:z!=null?z:_.r((K=this.toolbarSurface)==null?void 0:K.likeCommand,_.fm),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.r((G=this.toolbarSurface)==null?void 0:G.unlikeCommand,_.fm),defaultCommand:this.isVisiblyDisabled?_.r((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.fm):void 0,defaultTooltip:(J=this.toolbarData)==null?void 0:J.likeInactiveTooltip,toggledTooltip:(q=this.toolbarData)==null?void 0:q.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(T=this.toolbarData)==null?void 0:T.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(Q=this.toolbarSharedData)==null?void 0:Q.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e,z=_.r((e=this.toolbarSurface)==null?void 0:e.prepareAccountCommand,_.fm),C,w,K,G,X,J,q,T,Q,m;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((C=this.toolbarSharedData)==null||!C.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((w=this.toolbarState)==null?void 0:w.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.r((K=this.toolbarSurface)==null?void 0:K.dislikeCommand,_.fm),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:z!=null?z:_.r((G=this.toolbarSurface)==null?void 0:G.undislikeCommand,_.fm),defaultCommand:this.isVisiblyDisabled?_.r((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.fm):void 0,defaultTooltip:(J=this.toolbarData)==null?void 0:J.dislikeInactiveTooltip,toggledTooltip:(q=this.toolbarData)==null?void 0:
q.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(T=this.toolbarSharedData)==null?void 0:T.dislikeReplyButtonA11y:(Q=this.toolbarSharedData)==null?void 0:Q.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var e,z,C;if(((e=this.toolbarState)==null?void 0:e.heartState)!==void 0&&((z=this.toolbarState)==null?void 0:z.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((C=this.toolbarState)==null?void 0:C.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var w,K,G,X,J,q,T,Q,m,a,n,H,I,L;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(w=this.toolbarData)==null?void 0:w.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((G=this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.r((q=this.toolbarSurface)==null?void 0:q.heartCommand,
_.fm),unheartEndpoint:this.isVisiblyDisabled?void 0:_.r((T=this.toolbarSurface)==null?void 0:T.unheartCommand,_.fm),disabledEndpoint:this.isVisiblyDisabled?_.r((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,_.fm):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(m=this.toolbarData)==null?void 0:m.heartActiveTooltip,unheartedTooltip:(a=this.toolbarData)==null?void 0:a.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((n=
this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(H=this.toolbarSharedData)==null?void 0:H.unheartButtonA11y:(I=this.toolbarSharedData)==null?void 0:I.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(L=this.toolbarSharedData)==null?void 0:L.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.toolbarSurface)==null||!e.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.commentStrings)!=null&&e.replyButtonText){var z,C,w,K;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(z=this.commentStrings)==null?void 0:z.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.r((C=this.toolbarSurface)==null?void 0:C.replyCommand,_.fm),command:this.isVisiblyDisabled?
_.r((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.fm):this.isSubsOnlyCommentsIneligibleUser?_.r((K=this.toolbarSurface)==null?void 0:K.subscribersOnlySnackbarCommand,_.fm):void 0}}}}});
bJ.prototype.onYtServiceRequestSent=bJ.prototype.onYtServiceRequestSent;bJ.prototype.hideReplyDialogDiv=bJ.prototype.hideReplyDialogDiv;_.d([_.F(),_.B("design:type",Object)],bJ.prototype,"commentStrings",void 0);_.d([_.F(),_.B("design:type",Boolean)],bJ.prototype,"isReply",void 0);_.d([_.F(),_.B("design:type",Object)],bJ.prototype,"toolbarData",void 0);_.d([_.F(),_.B("design:type",Object)],bJ.prototype,"toolbarSharedData",void 0);
_.d([_.F(),_.B("design:type",String)],bJ.prototype,"toolbarStateKey",void 0);_.d([_.F(),_.B("design:type",String)],bJ.prototype,"toolbarSurfaceKey",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],bJ.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],bJ.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.VP),_.B("design:type",Object)],bJ.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.nP("#reply-dialog"),_.B("design:type",HTMLElement)],bJ.prototype,"replyDialogDiv",void 0);_.d([_.nP("#replybox"),_.B("design:type",Object)],bJ.prototype,"replyBox",void 0);_.d([_.nP("ytd-creator-heart-renderer"),_.B("design:type",Object)],bJ.prototype,"heartButton",void 0);_.d([_.F({selector:function(e,z){return _.xz(e.entities,"engagementToolbarStateEntityPayload",z)},
selectorArgs:["toolbarStateKey"]}),_.B("design:type",Object)],bJ.prototype,"toolbarState",void 0);_.d([_.F({selector:JW5,selectorArgs:["toolbarSurfaceKey"]}),_.B("design:type",Object)],bJ.prototype,"toolbarSurface",void 0);_.d([_.F(),_.B("design:type",Object)],bJ.prototype,"buttonOverrides",void 0);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bJ.prototype,"hideReplyDialogDiv",null);
_.d([_.P("toolbarData","toolbarState"),_.B("design:type",String),_.B("design:paramtypes",[])],bJ.prototype,"likeCount",null);_.d([_.P("likeCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bJ.prototype,"showLikeCount",null);_.d([_.P("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bJ.prototype,"isVisiblyDisabled",null);_.d([_.P("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bJ.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.d([_.P("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bJ.prototype,"isSubsOnlyCommentsEligibleUser",null);_.d([_.P("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bJ.prototype,"hasPrepareAccountCommand",null);_.d([_.P("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],bJ.prototype,"likeToggleButtonRenderer",null);
_.d([_.P("isReply","toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],bJ.prototype,"dislikeToggleButtonRenderer",null);_.d([_.P("toolbarData","toolbarState","toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],bJ.prototype,"creatorHeartSupportedRenderer",null);_.d([_.P("toolbarSurface"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bJ.prototype,"hasReplyCommand",null);
_.d([_.P("toolbarSurface","commentStrings","isVisiblyDisabled"),_.B("design:type",Object),_.B("design:paramtypes",[])],bJ.prototype,"replyButtonRenderer",null);_.d([_.F(),_.B("design:type",Object)],bJ.prototype,"replyButtonOverrides",void 0);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],bJ.prototype,"onYtServiceRequestSent",null);_.d([_.SL({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],bJ);
_.u(bJ,"ytd-comment-engagement-bar",function(){if(uEU!==void 0)return uEU;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return uEU=e},{mode:1});var duo;var Xm=function(){return _.V.apply(this,arguments)||this};
_.U(Xm,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xm.prototype,"data",void 0);_.d([_.SL({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],Xm);
_.u(Xm,"ytd-comment-inline-thumbnail-renderer",function(){if(duo!==void 0)return duo;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return duo=e},{mode:1});var Dus;var Ja=function(){return _.V.apply(this,arguments)||this};
_.U(Ja,_.V);Ja.prototype.onMessageTap=function(){if(this.onTapCommand){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);e&&this.ytdOpenPopupBehavior.openPopup(e)}};
_.lB.Object.defineProperties(Ja.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return(e=this.data)==null?void 0:(z=e.button)==null?void 0:(C=z.buttonRenderer)==null?void 0:C.command}}});
_.d([_.W(_.VP),_.B("design:type",Object)],Ja.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ja.prototype,"data",void 0);_.d([_.P("data.button.buttonRenderer.command"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ja.prototype,"onTapCommand",null);_.d([_.SL({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Ja);
_.u(Ja,"ytd-comment-pause-composer-renderer",function(){if(Dus!==void 0)return Dus;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Dus=e},{mode:1});var iLo;var Nls;var kA=function(){var e=_.V.apply(this,arguments)||this;e.isOpen=!1;return e};
_.U(kA,_.V);_.Y=kA.prototype;_.Y.dataChanged=function(){this.isOpen=!1};
_.Y.onTap=function(){this.data&&(this.data.navigationEndpoint?_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.Y.focus=function(){this.JSC$16153_commentbox.focus()};
_.Y.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.Y.openDialog=function(){this.isOpen=!0;this.JSC$16153_commentbox.focus();this.JSC$16153_commentbox.maybeHeightChanged()};
kA.prototype.onYtCommentboxDismiss=kA.prototype.onYtCommentboxDismiss;kA.prototype.dataChanged=kA.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kA.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],kA.prototype,"isOpen",void 0);_.d([_.nP("#commentbox"),_.B("design:type",Object)],kA.prototype,"JSC$16153_commentbox",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kA.prototype,"dataChanged",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kA.prototype,"onYtCommentboxDismiss",null);_.d([_.SL({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],kA);
_.u(kA,"ytd-comment-reply-dialog-renderer",function(){if(Nls!==void 0)return Nls;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Nls=e},{mode:1});var sca;var qO=function(){return _.V.apply(this,arguments)||this};
_.U(qO,_.V);_.lB.Object.defineProperties(qO.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.icon)==null?void 0:z.iconType;return C?"yt-icons:"+C.toLowerCase():null}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qO.prototype,"data",void 0);_.d([_.F(),_.P("data.icon"),_.B("design:type",Object),_.B("design:paramtypes",[])],qO.prototype,"icon",null);_.d([_.SL({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],qO);
_.u(qO,"ytd-pinned-comment-badge-renderer",function(){if(sca!==void 0)return sca;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return sca=e},{mode:1});var BlT;var tHs={},gcg={input:!0,meta:!0,br:!0,link:!0,img:!0},xA=null;tHs.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(){xA==null&&(xA=document.createElement("tp-yt-paper-tooltip"),xA.offset=8,xA.fitToVisibleBounds=!0)},
onMouseOver_:function(e){if(e=_.j8(e.target,function(K){return K==this||K.getAttribute&&K.getAttribute("shared-tooltip-text")}.bind(this),!0)){var z=e.getAttribute("shared-tooltip-text");
if(z){var C=this,w=null;e!=this&&(e.tagName.toLowerCase()in gcg?C=e.parentElement:C=e,e.id&&(w=e.id));this.polymerController.createTooltipIfRequired_();if(xA.parentElement!=C||xA.for!=w)(0,_.x$)(xA).textContent=z,_.XC(C).appendChild(xA),xA.for=w,xA.animationDelay=this.polymerController.sharedTooltipAnimationDelay,xA.position=this.polymerController.sharedTooltipPosition}}}};var Tn=function(){return _.V.apply(this,arguments)||this};
_.U(Tn,_.V);Tn.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]]"}}}}}};
Tn.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var e;((e=this.data)==null?0:e.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var z;((z=this.data)==null?0:z.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Tn.prototype.colorChanged=function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.color)==null?void 0:(C=z.basicColorPaletteData)==null?void 0:C.foregroundBodyColor;w&&(this.rgbBadgeColor=_.EG(w));_.XC(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Tn.prototype.tooltipChanged=function(){var e;((e=this.data)==null?0:e.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Tn.prototype.tooltipChanged=Tn.prototype.tooltipChanged;Tn.prototype.colorChanged=Tn.prototype.colorChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(tHs.YtSharedTooltipBehavior),_.B("design:type",Object)],Tn.prototype,"ytSharedTooltipBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Tn.prototype,"data",void 0);
_.d([_.F({value:"#4285F4"}),_.B("design:type",String)],Tn.prototype,"rgbBadgeColor",void 0);_.d([_.mi("data.color"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tn.prototype,"colorChanged",null);_.d([_.mi("data.tooltip"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tn.prototype,"tooltipChanged",null);_.d([_.SL({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Tn);
_.u(Tn,"ytd-sponsor-comment-badge-renderer",function(){if(BlT!==void 0)return BlT;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return BlT=e},{mode:1});var jc4;var yog;var $A=function(){return _.V.apply(this,arguments)||this};
_.U($A,_.V);$A.prototype.computeState=function(e){switch(e==null?void 0:e.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"}};
$A.prototype.updateStateIdentifier=function(e){if(this.viewModel.triStateKey){var z=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.d$("triStateButtonStateEntityPayload",z,{key:z,stateIdentifier:e}))}};
$A.prototype.onClick=function(){var e=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(){e.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){e.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.lB.Object.defineProperties($A.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 e;return((e=this.data)==null?void 0:e.buttonText)||""}}});
_.d([_.F(),_.B("design:type",Object)],$A.prototype,"viewModel",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],$A.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],$A.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.d([_.F({selector:kFE,selectorArgs:["viewModel.triStateKey"]}),_.B("design:type",Object)],$A.prototype,"triStateButtonStateEntity",void 0);
_.d([_.F({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.B("design:type",String)],$A.prototype,"state",void 0);_.d([_.P("viewModel","state"),_.B("design:type",Object),_.B("design:paramtypes",[])],$A.prototype,"data",null);_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],$A.prototype,"buttonText",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],$A);
_.u($A,"ytd-tri-state-button-view-model",function(){if(yog!==void 0)return yog;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return yog=e},{mode:1});var coa;var Aog;var lJ=function(){var e=_.V.apply(this,arguments)||this;e.defaultIconToFilled=!_.M("kevlar_fill_comment_chip_icon_killswitch");return e};
_.U(lJ,_.V);lJ.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
lJ.prototype.dataChanged=function(){if(this.data){var e,z;((e=this.data.chipColorPalette)==null?0:e.backgroundColor)&&((z=this.data.chipColorPalette)==null?0:z.foregroundTitleColor)&&_.T8(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.FN(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.FN(this.data.chipColorPalette.foregroundTitleColor)});var C;((C=this.data)==null?0:C.command)?(_.T8(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.T8(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}};
lJ.prototype.onTap=function(){var e;if(this.data&&(e=this.data)!=null&&e.command){var z;this.ytComponentBehavior.resolveCommand((z=this.data)==null?void 0:z.command)}};
lJ.prototype.getIconSize=function(){return _.M("kevlar_fill_comment_chip_icon_killswitch")?24:12};
lJ.prototype.onTap=lJ.prototype.onTap;lJ.prototype.dataChanged=lJ.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],lJ.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.cv),_.B("design:type",Object)],lJ.prototype,"ironA11yKeysBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lJ.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],lJ.prototype,"basePriceText",void 0);_.d([_.F(),_.B("design:type",Object)],lJ.prototype,"chipIcon",void 0);_.d([_.F(),_.B("design:type",Object)],lJ.prototype,"defaultIconToFilled",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lJ.prototype,"dataChanged",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lJ.prototype,"onTap",null);
_.d([_.fP({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],lJ);
_.u(lJ,"yt-pdg-comment-chip-renderer",function(){if(Aog===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;coa===void 0&&(coa=document.createElement("template"));var w=coa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Aog=e}e=Aog;return e},{mode:2});var QI=function(){var e=_.V.apply(this,arguments)||this;e.useSmallAvatars=_.M("small_avatars_for_comments");e.commentThreadingEnabled=_.M("web_delhi_comment_threads");e.webWatchCompactComments=_.M("web_watch_compact_comments");e.editDialog=null;return e};
_.U(QI,_.V);_.Y=QI.prototype;_.Y.onShow=function(){_.FV("cmv",void 0,"wn_comments")};
_.Y.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"}}}};
_.Y.detached=function(){this.editDialog=null;this.expander.reset()};
_.Y.updateBackgroundColor=function(){if(this.backgroundColor){var e={"--ytd-comment-paid-background-color":_.FN(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.T8(this.hostElement,e)}else _.T8(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.Y.resetExpander=function(){var e;(e=this.expander)==null||e.reset()};
_.Y.openEditDialog=function(e){e.dialog&&(this.editDialog=e.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.Y.onYtNavigate=function(e){var z=e.detail.endpoint;if(z=_.r(z,_.QQ4)||_.r(z,_.meS))e.stopPropagation(),this.openEditDialog(z)};
_.Y.onYtCommentboxDismiss=function(){this.editDialog=null;_.T8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.Y.onAuthorThumbnailClicked=function(){_.M("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.Y.onYtCommentboxResize=function(e){var z;(e==null?0:(z=e.detail)==null?0:z.height)&&_.T8(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":e.detail.height+"px"})};
_.lB.Object.defineProperties(QI.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 e,z=(e=this.commentEntity)==null?void 0:e.author;return z&&(z.isCreator||z.isVerified||z.isArtist)?{renderer:{authorEndpoint:z.channelPageEndpoint?_.r(z.channelPageEndpoint,_.fm):_.r(z.channelCommand,_.fm),authorText:{runs:[{text:z.displayName}]},color:z.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:z.isArtist?{iconType:"AUDIO_BADGE"}:
z.isVerified?{iconType:z.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:z.isArtist||z.isVerified?z.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var e,z=(e=this.commentEntity)==null?void 0:e.author;return z!=null&&z.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:z.sponsorBadgeUrl}]},tooltip:z.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var e;return _.r((e=this.commentSurfaceEntity)==null?void 0:e.pdgCommentChip,_.gqa)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var e;return this.voiceReplyContainerViewModel&&((e=this.voiceReplyContainerViewModel)==null?void 0:e.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return _.r((e=this.commentSurfaceEntity)==null?void 0:e.voiceReplyContainerViewModel,t1S)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var e;return this.voiceReplyContainerViewModel&&(e=this.voiceReplyContainerViewModel)!=null&&e.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=(e=this.commentSurfaceEntity)==null?void 0:e.commentBackgroundColor)!=null?z:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.M("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var e,z;return(((e=this.commentEntity)==null?void 0:(z=e.properties)==null?void 0:z.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var e,z;if(_.M("enable_profile_cards_on_comments")&&((e=this.commentEntity)==null?0:(z=e.author)==null?0:z.profileCardEndpoint)&&this.viewModel.allowProfileCard){var C,w;return _.r((C=this.commentEntity)==null?void 0:(w=C.author)==null?void 0:w.profileCardEndpoint,_.fm)}var K,G;return _.r((K=this.commentEntity)==null?void 0:(G=K.avatar)==null?void 0:G.endpoint,_.fm)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var e,z;if(_.M("enable_profile_cards_on_comments")&&((e=this.commentEntity)==null?0:(z=e.author)==null?0:z.channelPageEndpoint)){var C,w;return _.r((C=this.commentEntity)==null?void 0:(w=C.author)==null?void 0:w.channelPageEndpoint,_.fm)}var K,G;return _.r((K=this.commentEntity)==null?void 0:(G=K.avatar)==null?void 0:G.endpoint,_.fm)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K=(e=this.commentEntity)==null?void 0:(z=e.avatar)==null?void 0:(C=z.image)==null?void 0:(w=C.sources)==null?void 0:w[0];return K?{thumbnails:[{url:K.url,width:K.width,height:K.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.commentEntity)==null?0:(z=e.author)==null?0:z.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.commentEntity)==null?void 0:(z=e.author)==null?void 0:z.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.commentEntity)==null?void 0:(z=e.properties)==null?void 0:z.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var e;return _.r((e=this.commentSurfaceEntity)==null?void 0:e.publishedTimeCommand,_.fm)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var e,z;if(((e=this.commentEntity)==null?0:e.translatedContent)&&((z=this.translateButtonState)==null?void 0:z.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var C;if((C=this.voiceReplyContainerViewModel)==null?0:C.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var w,K;return((w=this.commentEntity)==null?void 0:(K=w.properties)==null?void 0:K.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.commentSharedEntity)==null?void 0:(z=e.strings)==null?void 0:z.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.commentSharedEntity)==null?void 0:(z=e.strings)==null?void 0:z.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.commentEntity)==null||!e.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var e,z,C=(z=_.r((e=this.viewModel)==null?void 0:e.translateButton,Bua))!=null?z:{},w,K,G,X,J,q,T,Q,m,a,n;return Object.assign({},C,{untoggledStateData:Object.assign({},C.untoggledStateData,{buttonText:(w=this.commentEntity)==null?void 0:(K=w.translateData)==null?void 0:K.text}),togglingStateData:Object.assign({},C.togglingStateData,{buttonText:(G=this.commentSharedEntity)==null?
void 0:(X=G.strings)==null?void 0:X.translatingText}),toggledStateData:Object.assign({},C.toggledStateData,{buttonText:(J=this.commentSharedEntity)==null?void 0:(q=J.strings)==null?void 0:q.seeOriginalText}),transitionCommand:((T=this.commentEntity)==null?0:T.translatedContent)?void 0:_.r((Q=this.commentEntity)==null?void 0:(m=Q.translateData)==null?void 0:m.translateComment,_.fm),triStateKey:(a=this.commentEntity)==null?void 0:(n=a.properties)==null?void 0:n.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((z=_.r(_.r((e=this.toolbarSurface)==null?void 0:e.menuCommand,_.fm),aSC))==null?void 0:(C=z.menu)==null?void 0:C.menuRenderer)||null}}});
QI.prototype.onYtCommentboxResize=QI.prototype.onYtCommentboxResize;QI.prototype.onYtCommentboxDismiss=QI.prototype.onYtCommentboxDismiss;QI.prototype.onYtNavigate=QI.prototype.onYtNavigate;QI.prototype.resetExpander=QI.prototype.resetExpander;QI.prototype.updateBackgroundColor=QI.prototype.updateBackgroundColor;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],QI.prototype,"ytdReduxBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],QI.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("#author-thumbnail > button"),_.B("design:type",HTMLElement)],QI.prototype,"authorThumbnailAnchor",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QI.prototype,"linked",null);
_.d([_.P("viewModel","linked"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"linkedCommentBadge",null);_.d([_.F({reflectToAttribute:!0}),_.P("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QI.prototype,"pinned",null);_.d([_.P("viewModel","pinned"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"pinnedCommentBadge",null);
_.d([_.P("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"authorCommentBadge",null);_.d([_.F({reflectToAttribute:!0}),_.P("authorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"hasAuthorBadge",null);_.d([_.P("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"sponsorCommentBadge",null);
_.d([_.F({reflectToAttribute:!0}),_.P("sponsorCommentBadge"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"hasSponsorBadge",null);_.d([_.P("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"pdgCommentChipRenderer",null);_.d([_.F({reflectToAttribute:!0}),_.P("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"hasVoiceReply",null);
_.d([_.P("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"voiceReplyContainerViewModel",null);_.d([_.P("voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"voiceReplyUnavailableText",null);_.d([_.F(),_.B("design:type",Object)],QI.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"viewModel",null);
_.d([_.F({selector:function(e,z){return _.xz(e.entities,"commentSharedEntityPayload",z)},
selectorArgs:["viewModel.sharedKey"]}),_.B("design:type",Object)],QI.prototype,"commentSharedEntity",void 0);_.d([_.F({selector:X37,selectorArgs:["viewModel.commentKey"]}),_.B("design:type",Object)],QI.prototype,"commentEntity",void 0);_.d([_.F({selector:function(e,z){return _.xz(e.entities,"commentSurfaceEntityPayload",z)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.B("design:type",Object)],QI.prototype,"commentSurfaceEntity",void 0);_.d([_.F({selector:JW5,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.B("design:type",Object)],QI.prototype,"toolbarSurface",void 0);_.d([_.F({selector:kFE,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.B("design:type",Object)],QI.prototype,"translateButtonState",void 0);
_.d([_.P("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"backgroundColor",null);_.d([_.F({reflectToAttribute:!0}),_.P("viewModel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QI.prototype,"optimalReadingWidthComments",null);_.d([_.nP("ytd-expander"),_.B("design:type",Object)],QI.prototype,"expander",void 0);
_.d([_.mi("backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QI.prototype,"updateBackgroundColor",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],QI.prototype,"useSmallAvatars",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],QI.prototype,"engagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],QI.prototype,"commentThreadingEnabled",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],QI.prototype,"webWatchCompactComments",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"isReply",null);_.d([_.P("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"authorThumbnailEndpoint",null);_.d([_.P("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"authorNameEndpoint",null);
_.d([_.P("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"authorThumbnail",null);_.d([_.P("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],QI.prototype,"authorTextClass",null);_.d([_.P("commentEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],QI.prototype,"authorChannelName",null);_.d([_.P("commentEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"publishedTime",null);
_.d([_.P("commentSurfaceEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"publishedTimeCommand",null);_.d([_.P("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"contentText",null);_.d([_.mi("contentText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QI.prototype,"resetExpander",null);
_.d([_.P("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QI.prototype,"shouldShowReadMoreInitially",null);_.d([_.P("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],QI.prototype,"expandText",null);_.d([_.P("commentSharedEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],QI.prototype,"collapseText",null);_.d([_.P("commentEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],QI.prototype,"shouldShowTranslateButton",null);
_.d([_.P("commentEntity","commentSharedEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"translateButton",null);_.d([_.P("toolbarSurface"),_.B("design:type",Object),_.B("design:paramtypes",[])],QI.prototype,"overflowMenuRenderer",null);_.d([_.F(),_.B("design:type",Object)],QI.prototype,"editDialog",void 0);_.d([_.nP("ytd-comment-dialog-renderer"),_.B("design:type",Object)],QI.prototype,"editCommentDialogContainer",void 0);
_.d([_.nP("ytd-comment-reply-dialog-renderer"),_.B("design:type",Object)],QI.prototype,"editReplyDialogContainer",void 0);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QI.prototype,"onYtNavigate",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QI.prototype,"onYtCommentboxDismiss",null);
_.d([_.Qi("yt-commentbox-resize"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QI.prototype,"onYtCommentboxResize",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-comment-view-model"})],QI);
_.u(QI,"ytd-comment-view-model",function(){if(jc4!==void 0)return jc4;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jc4=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});_.KU(_.f(function(e){var z={};return _.x("yt-sub-thread",{class:_.qT("ytSubThreadHost",(z.ytSubThreadHasButton=e.isButton,z.ytSubThreadHovered=e.hovered,z.ytSubThreadTopLevelThread=function(){var C,w;return((C=e.topLevelThread)==null?void 0:C.call(e))&&!(_.M("small_avatars_for_comments")&&((w=e.engagementPanel)==null?0:w.call(e)))},z))},_.x("div",{class:"ytSubThreadThreadline"},_.x(_.l,{cond:function(){var C;
return!((C=e.isTeaser)==null?0:C.call(e))},
then:function(){return _.x("div",{class:"ytSubThreadConnection"})}}),_.x("div",{class:"ytSubThreadContinuation"}),_.x("div",{class:"ytSubThreadShadow"})),_.x("div",{class:"ytSubThreadSubThreadContent"},e.children))},"Kc"),"yt-sub-thread",{props:{isButton:_.vh,
isTeaser:_.vh,hovered:_.vh,topLevelThread:_.vh,engagementPanel:_.vh}});var mY=function(){var e=_.V.apply(this,arguments)||this;e.modern=_.M("web_modern_buttons");e.commentThreadingEnabled=_.M("web_delhi_comment_threads");e.isWatchGrid=_.M("kevlar_watch_grid");e.buttonOverrides=e.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};e.JSC$16199_spinnerEl=null;return e};
_.U(mY,_.V);_.Y=mY.prototype;_.Y.configureContinuationPathMap=function(){return _.M("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Y.shouldShowLegacyTeasers=function(e,z){return e&&!z};
_.Y.shouldShowExpandedThreads=function(e,z){return this.commentThreadingEnabled&&z&&(e==null?void 0:e.length)>0};
_.Y.shouldShowCollapsedThreads=function(e,z){return this.commentThreadingEnabled&&!z&&e};
_.Y.computeCommentViewModel=function(e){return _.r(e,sJs)};
_.Y.computeThreadRenderer=function(e){return _.r(e,SJa)};
_.Y.computeIsContinuationItem=function(e){return!!this.computeContinuationItemRenderer(e)};
_.Y.computeButtonRenderer=function(e){return _.r(e,_.a2)};
_.Y.computeContinuationItemRenderer=function(e){return _.r(e,_.GO)};
_.Y.computeShowButton=function(e){var z;return!((z=this.computeContinuationItemRenderer(e))==null||!z.button)};
_.Y.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.Y.attached=function(){this.isShowRepliesVisible=!0};
_.Y.dataChanged=function(){var e=this.expanderContents;e&&(e.hidden=!0);this.isLoading=!1};
_.Y.endsInContinuation=function(e){return!!e&&e.length>0&&!!this.computeContinuationItemRenderer(e[e.length-1])};
_.Y.computeShouldShowHideRepliesButton=function(e,z){return!e&&z};
_.Y.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.Y.isLoadingChanged=function(){this.isLoading&&!this.JSC$16199_spinnerEl&&(this.JSC$16199_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.XC(this.expanderContents).appendChild(this.JSC$16199_spinnerEl));this.JSC$16199_spinnerEl&&(this.JSC$16199_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var e;(e=this.contents)==null||e.classList.remove("reloading")}};
_.Y.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var e=_.r(this.data.viewReplies,_.a2);e&&this.ytRendererBehavior.logExplicitClick(e);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.Y.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var e=_.r(this.data.hideReplies,_.a2);e&&this.ytRendererBehavior.logExplicitClick(e);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.Y.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var e=_.XC(this.hostElement).querySelector("#expander-contents");e&&(e.hidden=this.isShowRepliesVisible)}};
_.Y.computeAlign=function(){if(this.modern){var e;return!((e=this.data)==null?0:e.viewRepliesCreatorThumbnail)}};
_.lB.Object.defineProperties(mY.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var e,z;return this.endsInContinuation((e=this.data)==null?void 0:e.contents)||this.commentThreadingEnabled&&this.endsInContinuation((z=this.data)==null?void 0:z.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var e;return(e=this.data)==null?void 0:e.teaserContents}}});
mY.prototype.isShowMoreChanged=mY.prototype.isShowMoreChanged;mY.prototype.isLoadingChanged=mY.prototype.isLoadingChanged;mY.prototype.triggerFirstContinuation=mY.prototype.triggerFirstContinuation;mY.prototype.dataChanged=mY.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.Ea),_.B("design:type",Object)],mY.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mY.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mY.prototype,"modern",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mY.prototype,"commentThreadingEnabled",void 0);_.d([_.F(),_.B("design:type",Boolean)],mY.prototype,"expanded",void 0);
_.d([_.F(),_.B("design:type",Function)],mY.prototype,"toggleExpanded",void 0);_.d([_.F(),_.B("design:type",Array)],mY.prototype,"addedReplies",void 0);_.d([_.F(),_.B("design:type",Boolean)],mY.prototype,"hovered",void 0);_.d([_.F(),_.B("design:type",Boolean)],mY.prototype,"topLevelThread",void 0);_.d([_.F(),_.B("design:type",Boolean)],mY.prototype,"isLoading",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],mY.prototype,"isShowRepliesVisible",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],mY.prototype,"useNewFormatting",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],mY.prototype,"engagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mY.prototype,"isWatchGrid",void 0);_.d([_.F(),_.B("design:type",Object)],mY.prototype,"buttonOverrides",void 0);_.d([_.nP("#expander-contents"),_.B("design:type",HTMLElement)],mY.prototype,"expanderContents",void 0);
_.d([_.nP("ytd-continuation-item-renderer"),_.B("design:type",Object)],mY.prototype,"continuationItemRenderer",void 0);_.d([_.nP("#contents"),_.B("design:type",HTMLElement)],mY.prototype,"contents",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"dataChanged",null);_.d([_.P("data.contents","data.subThreads.*"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],mY.prototype,"hasContinuation",null);
_.d([_.P("data.teaserContents"),_.B("design:type",Object),_.B("design:paramtypes",[])],mY.prototype,"subThreadTeasers",null);_.d([_.Qi("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"triggerFirstContinuation",null);_.d([_.mi("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"isLoadingChanged",null);
_.d([_.mi("isShowRepliesVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mY.prototype,"isShowMoreChanged",null);_.d([_.SL({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],mY);
_.u(mY,"ytd-comment-replies-renderer",function(){if(iLo!==void 0)return iLo;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return iLo=e},{mode:1});var ZL6;var aB=function(){var e=_.V.apply(this,arguments)||this;e.isOpen=!1;e.commentDialog=null;e.useSmallAvatars=_.M("small_avatars_for_comments");e.useSmallAvatarsEngagementPanelOnly=_.M("small_avatars_for_comments_ep");e.placeholderFocusListener=null;e.hasOpenedDialog=!1;e.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return e};
_.U(aB,_.V);_.Y=aB.prototype;_.Y.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]]"}}}}}};
_.Y.ready=function(){var e=this,z=_.XC(this.hostElement).querySelector("#placeholder-area"),C=_.XC(this.hostElement).querySelector("#simplebox-placeholder"),w=function(K){K.stopPropagation();K instanceof KeyboardEvent&&K.type==="keypress"&&K.keyCode!==13&&K.keyCode!==32||e.openDialog()};
this.placeholderFocusListener=w;C.addEventListener("focus",this.placeholderFocusListener);z.addEventListener("tap",w);z.addEventListener("keypress",w)};
_.Y.maybeRemoveFocusEventListener=function(){var e;(e=this.data)!=null&&e.prepareAccountEndpoint&&!_.M("web_comments_simplebox_modal_focus_on_tap_ks")&&(e=_.XC(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(e.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.Y.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.Y.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.M("web_comment_simplebox_resolve_polymer_command_ks")?_.Tx.instance.resolveCommand(this.data.prepareAccountEndpoint):_.$p(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);e&&this.ytdOpenPopupBehavior.openPopup(e);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(e),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.XC(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.Y.onYtCommentboxDismiss=function(e){e.stopPropagation();this.isOpen=!1};
_.Y.onCreateCommentAction=function(e){this.get("createCommentAction.contents",e)&&(this.isOpen=!1)};
_.Y.computeCommentDialog=function(e){return{placeholderText:e.placeholderText,authorThumbnail:e.authorThumbnail,submitButton:e.submitButton,imageButton:e.imageButton,cancelButton:e.cancelButton,emojiButton:e.emojiButton,emojis:e.emojis,emojiPicker:e.emojiPicker,aadcGuidelinesStateEntityKey:e.aadcGuidelinesStateEntityKey,openAadcDialog:e.openAadcDialog,unicodeEmojisUrl:e.unicodeEmojisUrl}};
_.Y.onHideIdentityChip=function(e){_.r(e,hTc)&&this.set("data.placeholderText",_.r(e,hTc).placeholderText)};
aB.prototype.onYtCommentboxDismiss=aB.prototype.onYtCommentboxDismiss;aB.prototype.dataChanged=aB.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],aB.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],aB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],aB.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],aB.prototype,"isOpen",void 0);_.d([_.F(),_.B("design:type",Object)],aB.prototype,"commentDialog",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],aB.prototype,"engagementPanel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],aB.prototype,"useSmallAvatars",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],aB.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],aB.prototype,"enableCreationBox",void 0);_.d([_.F(),_.B("design:type",Boolean)],aB.prototype,"showCreateDialog",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aB.prototype,"dataChanged",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],aB.prototype,"onYtCommentboxDismiss",null);_.d([_.SL({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],aB);
_.u(aB,"ytd-comment-simplebox-renderer",function(){if(ZL6!==void 0)return ZL6;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ZL6=e},{mode:1});var pxY;_.hq("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var nQ=function(){var e=_.V.apply(this,arguments)||this;e.addHoverEffect=_.M("swatcheroo_comments_hover_effect");e.useSmallAvatars=_.M("small_avatars_for_comments");e.scrollingEnabled=_.M("web_comment_threading_scroll_on_collapse");e.isSubThread=!1;e.threadHovered=!1;e.expanded=!1;e.removed=!1;e.addedReplies=[];e.actionMap=e.configureActionMap();e.toggleExpanded=function(){e.expanded=!e.expanded;!e.expanded&&e.scrollingEnabled&&_.eA(e.hostElement,"yt-scroll-to-comment-element",[e.commentElement])};
return e};
_.U(nQ,_.V);_.Y=nQ.prototype;_.Y.configureActionMap=function(){return _.M("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.Y.createCommentReplyAction=function(e){e=_.r(e,RTs);if(e!=null&&e.contents){var z=e.replyToCommentId,C=e.parentCommentId,w,K=(w=this.commentViewModel)==null?void 0:w.commentId;(K===z||K===C&&!z)&&this.maybeAttachReply(e.contents)}};
_.Y.maybeAttachReply=function(e){var z,C;(((z=this.commentEntity)==null?void 0:(C=z.properties)==null?void 0:C.replyLevel)||0)>=3?_.pi(this.hostElement,"yt-pushed-create-comment-reply",e):this.attachReply(e)};
_.Y.onPushedCreateCommentReply=function(e){var z,C;(((z=this.commentEntity)==null?void 0:(C=z.properties)==null?void 0:C.replyLevel)||0)>=3||(this.attachReply(e.detail),e.stopPropagation())};
_.Y.attachReply=function(e){var z;((z=this.data)==null?0:z.replies)?(z=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+z+".continuationItemRenderer")?z===0?this.push("addedReplies",e):this.splice("data.replies.commentRepliesRenderer.subThreads",z,0,e):this.push("data.replies.commentRepliesRenderer.subThreads",e)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[e],viewReplies:{buttonRenderer:{text:_.K4(_.kk("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.Y.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.s_(this.addedReplies))),this.set("addedReplies",[]))};
_.Y.removeCommentAction=function(e){e=_.r(e,FXL);var z=e==null?void 0:e.commentId,C;z&&((C=this.commentViewModel)==null?void 0:C.commentId)===z&&this.maybeRemoveComment(e.actionResult)};
_.Y.banAuthorAction=function(e){e=_.r(e,WXs);var z=e==null?void 0:e.commentId,C;z&&((C=this.commentViewModel)==null?void 0:C.commentId)===z&&this.maybeRemoveComment(e.actionResult)};
_.Y.hideReportedCommentAction=function(e){e=_.r(e,c1h);var z=e==null?void 0:e.commentId,C;z&&((C=this.commentViewModel)==null?void 0:C.commentId)===z&&this.maybeRemoveComment(e.actionResult)};
_.Y.maybeRemoveComment=function(e){e&&e.status==="STATUS_SUCCEEDED"&&(this.feedbackText=e.feedbackText||_.K4("Reply removed"),this.removed=!0)};
_.Y.onTap=function(e){if(this.addHoverEffect&&!this.engagementPanel&&!_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||_.$p({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.Y.attached=function(){var e=this;this.isSubThread&&(this.expanded=!0);var z;(z=this.commentThreadHitbox)==null||z.addEventListener("mouseover",function(){e.threadHovered=!0});
var C;(C=this.commentThreadHitbox)==null||C.addEventListener("mouseout",function(){e.threadHovered=!1});
var w;(w=this.commentThreadHitbox)==null||w.addEventListener("click",function(){e.maybeToggleExpanded()})};
_.Y.onDataChanged=function(){var e=_.M("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(e)&&this.set(e,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.Y.maybeToggleExpanded=function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.replies)==null?void 0:(C=z.commentRepliesRenderer)==null?void 0:C.subThreads,K;(w==null?void 0:w.length)===1&&((K=_.r(w[0],_.GO))==null?0:K.button)&&this.expanded||this.toggleExpanded()};
_.lB.Object.defineProperties(nQ.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return _.r((e=this.data)==null?void 0:e.commentViewModel,sJs)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return _.M("web_delhi_comment_threads")&&!!((e=this.data)==null?0:(z=e.replies)==null?0:(C=z.commentRepliesRenderer)==null?0:C.subThreads)}}});
nQ.prototype.onDataChanged=nQ.prototype.onDataChanged;nQ.prototype.onTap=nQ.prototype.onTap;nQ.prototype.onAppendContinuationItemsActionFinished=nQ.prototype.onAppendContinuationItemsActionFinished;nQ.prototype.onPushedCreateCommentReply=nQ.prototype.onPushedCreateCommentReply;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],nQ.prototype,"ytdReduxBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],nQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nQ.prototype,"addHoverEffect",void 0);_.d([_.F(),_.B("design:type",Object)],nQ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nQ.prototype,"useSmallAvatars",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nQ.prototype,"scrollingEnabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nQ.prototype,"isSubThread",void 0);_.d([_.nP(".thread-hitbox"),_.B("design:type",HTMLElement)],nQ.prototype,"commentThreadHitbox",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nQ.prototype,"threadHovered",void 0);_.d([_.nP("#comment"),_.B("design:type",HTMLElement)],nQ.prototype,"commentElement",void 0);
_.d([_.F(),_.B("design:type",Object)],nQ.prototype,"expanded",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nQ.prototype,"removed",void 0);_.d([_.F(),_.B("design:type",Object)],nQ.prototype,"feedbackText",void 0);_.d([_.F(),_.B("design:type",Array)],nQ.prototype,"addedReplies",void 0);_.d([_.F({selector:X37,selectorArgs:["commentViewModel.commentKey"]}),_.B("design:type",Object)],nQ.prototype,"commentEntity",void 0);
_.d([_.Qi("yt-pushed-create-comment-reply"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],nQ.prototype,"onPushedCreateCommentReply",null);_.d([_.Qi("yt-append-continuation-items-action-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nQ.prototype,"onAppendContinuationItemsActionFinished",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],nQ.prototype,"commentViewModel",null);
_.d([_.P("data.replies.commentRepliesRenderer.subThreads"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],nQ.prototype,"hasSubThreading",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],nQ.prototype,"engagementPanel",void 0);_.d([_.Qi("tap"),_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],nQ.prototype,"onTap",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nQ.prototype,"onDataChanged",null);_.d([_.SL({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],nQ);
_.u(nQ,"ytd-comment-thread-renderer",function(){if(pxY!==void 0)return pxY;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pxY=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var e7X;var MO=function(){var e=_.V.apply(this,arguments)||this;e.compactHeader=_.M("web_watch_compact_comments_header");e.hidePanelButton=!1;e.isPostSchedulingEnabled=_.M("enable_post_scheduling");e.hasFinishedStamping=!1;e.JSC$16222_handleOpenPostCommentDialogActionAfterStamp=!1;e.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return e};
_.U(MO,_.V);_.Y=MO.prototype;
_.Y.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"}}}};
_.Y.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.Y.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16222_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.Y.onYtServiceRequestSent=function(e,z){if(!_.M("kevlar_command_handler")&&z.actions)for(e=0;e<z.actions.length;e++){var C=z.actions[e];_.r(C,Csh)&&_.XC(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.r(C,Csh))}};
_.Y.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var e;if(this.getPrefilledBackstagePostDialog((e=this.data)==null?void 0:e.actions)){_.XC(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var z=_.XC(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;z&&_.T0(this,function(){z.focus();z.openDialog&&z.openDialog()})}}else this.hasActionsChange=!0};
_.Y.computeIsBackstage=function(e){return e};
_.Y.onYtCommentboxDismiss=function(){_.XC(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.Y.removePrefilledDialog=function(e){if(e==null?0:e.actions){for(var z=e.actions.length-1;z>=0;z--){var C=void 0;((C=_.r(e.actions[z],$eS))==null?0:C.dialog)&&delete e.actions[z]}this.set("data",void 0);this.set("data",e)}};
_.Y.getPrefilledBackstagePostDialog=function(e){if(e)for(var z=0;z<e.length;z++){var C=e[z],w=void 0;if((w=_.r(C,$eS))==null?0:w.dialog)return _.r(C,$eS).dialog}return null};
_.Y.computeBackstagePostDialog=function(e){return e&&(this.getPrefilledBackstagePostDialog(e.actions)||e.createRenderer)};
_.Y.dataChanged=function(){if(this.data){var e=this.data.customEmojis,z=this.data.unicodeEmojisUrl;_.vk.clear();z&&_.tXS(_.vk,z);e&&_.vk.load(e)}};
_.Y.handleSignalActionOpenPostCommentDialogAction=function(){var e=_.XC(this.hostElement).querySelector("ytd-comment-simplebox-renderer");e?e.openDialog():this.JSC$16222_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Y.onPostHeaderTap=function(){var e;((e=this.data)==null?0:e.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.lB.Object.defineProperties(MO.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.M("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K,G,X;return!this.hidePanelButton&&_.M("kevlar_watch_comments_panel_button")&&((X=_.r((e=this.data)==null?void 0:(z=e.sortMenu)==null?void 0:(C=z.sortFilterSubMenuRenderer)==null?void 0:(w=C.subMenuItems)==null?void 0:(K=w[0])==null?void 0:(G=K.serviceEndpoint)==null?void 0:G.commandMetadata,_.XV))==null?void 0:X.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.kk("MINIPLAYER_EXPAND_LABEL"),text:_.AO(_.kk("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
MO.prototype.dataChanged=MO.prototype.dataChanged;MO.prototype.onYtCommentboxDismiss=MO.prototype.onYtCommentboxDismiss;MO.prototype.observePrefilledBackstagePostDialog=MO.prototype.observePrefilledBackstagePostDialog;MO.prototype.onYtServiceRequestSent=MO.prototype.onYtServiceRequestSent;MO.prototype.onStampFinished=MO.prototype.onStampFinished;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],MO.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],MO.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],MO.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],MO.prototype,"compactHeader",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],MO.prototype,"engagementPanel",void 0);_.d([_.F(),_.B("design:type",Object)],MO.prototype,"hidePanelButton",void 0);_.d([_.F({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.B("design:type",Boolean)],MO.prototype,"isBackstage",void 0);_.d([_.F({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.B("design:type",Object)],MO.prototype,"backstagePostDialog",void 0);
_.d([_.F(),_.B("design:type",Object)],MO.prototype,"isPostSchedulingEnabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],MO.prototype,"useSpaceBetween",null);_.d([_.F({reflectToAttribute:!0}),_.P("data","hidePanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],MO.prototype,"showCommentsPanelButton",null);
_.d([_.P("data","showCommentsPanelButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],MO.prototype,"commentsPanelButtonData",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"onStampFinished",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],MO.prototype,"onYtServiceRequestSent",null);
_.d([_.mi("data.actions"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"observePrefilledBackstagePostDialog",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],MO.prototype,"onYtCommentboxDismiss",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MO.prototype,"dataChanged",null);
_.d([_.SL({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],MO);
_.u(MO,"ytd-comments-header-renderer",function(){if(e7X!==void 0)return e7X;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return e7X=e},{mode:1});var z7S;var rC=function(){return _.V.apply(this,arguments)||this};
_.U(rC,_.V);_.d([_.F(),_.B("design:type",Object)],rC.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.d([_.SL({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],rC);
_.u(rC,"ytd-destination-button-renderer",function(){if(z7S!==void 0)return z7S;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return z7S=e},{mode:1});var CeS;var HP=function(){var e=_.V.apply(this,arguments)||this;e.isRichGrid=!1;e.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return e};
_.U(HP,_.V);_.Y=HP.prototype;_.Y.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.Y.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.Y.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.Y.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var e;if((e=this.data)==null||!e.isExpanded){e=this.hostElement.clientWidth;var z;if(e&&(z=this.data)!=null&&z.destinationButtons){z=Math.floor((e+4)/214);e=this.data.destinationButtons.length;var C=Math.ceil(e/z);this.fullyVisibleRows=e%z===1&&C===2?1:Math.min(C,2);this.isShowMoreVisible=this.fullyVisibleRows<C}}}};
_.Y.updateRichGridDestinationButtonsVisibility=function(){var e,z;if(this.isRichGrid&&((e=this.data)==null||!e.isExpanded)&&(z=this.data)!=null&&z.destinationButtons){e=this.richGridItemsPerRow+1;z=this.data.destinationButtons.length;var C=Math.ceil(z/e);this.fullyVisibleRows=z%e===1&&C===2?1:Math.min(C,2);this.isShowMoreVisible=this.fullyVisibleRows<C}};
_.Y.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
HP.prototype.updateRichGridDestinationButtonsVisibility=HP.prototype.updateRichGridDestinationButtonsVisibility;_.d([_.F(),_.B("design:type",Object)],HP.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Number)],HP.prototype,"fullyVisibleRows",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],HP.prototype,"isShowMoreVisible",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HP.prototype,"isRichGrid",void 0);
_.d([_.F({selector:_.Fn,value:0}),_.B("design:type",Number)],HP.prototype,"richGridItemsPerRow",void 0);_.d([_.F(),_.B("design:type",Object)],HP.prototype,"gridStateActionMap",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],HP.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],HP.prototype,"ytdReduxBehavior",void 0);_.d([_.mi("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HP.prototype,"updateRichGridDestinationButtonsVisibility",null);_.d([_.SL({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],HP);
_.u(HP,"ytd-destination-shelf-renderer",function(){if(CeS!==void 0)return CeS;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return CeS=e},{mode:1});var w46;var U5=function(){return _.V.apply(this,arguments)||this};
_.U(U5,_.V);U5.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],U5.prototype,"data",void 0);_.d([_.SL({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],U5);
_.u(U5,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(w46!==void 0)return w46;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return w46=e},{mode:1});var K44;var vP=function(){var e=_.V.apply(this,arguments)||this;e.disableAnimation=!1;e.isSlimlineSurvey=!1;e.isSlimlineSurveyFollowUp=!1;e.isShortsStyle=!1;return e};
_.U(vP,_.V);vP.prototype.onTap=function(e){e.preventDefault();this.data&&_.pi(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.lB.Object.defineProperties(vP.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 e,z,C,w,K;return((e=this.data)==null?0:e.checked)?(z=this.data)==null?void 0:(C=z.onStateIcon)==null?void 0:C.iconType:(w=this.data)==null?void 0:(K=w.defaultStateIcon)==null?void 0:K.iconType}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],vP.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vP.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],vP.prototype,"disableAnimation",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],vP.prototype,"isSlimlineSurvey",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],vP.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],vP.prototype,"isShortsStyle",void 0);_.d([_.P("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vP.prototype,"isAnimatedIcon",null);
_.d([_.P("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Number),_.B("design:paramtypes",[])],vP.prototype,"iconSize",null);_.d([_.P("isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vP.prototype,"isDarkTheme",null);_.d([_.P("data.checked"),_.B("design:type",Object),_.B("design:paramtypes",[])],vP.prototype,"icon",null);_.d([_.SL({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],vP);
_.u(vP,"ytd-rating-survey-option-renderer",function(){if(K44!==void 0)return K44;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return K44=e},{mode:2});var oxs;var IB=function(){var e=_.V.apply(this,arguments)||this;e.firstResponseText=null;e.lastResponseText=null;e.selectedNonStarOption=null;e.hideOptions=!1;e.hideUndoButton=!0;e.disableAnimation=!1;e.showResponseRangeText=!1;e.selectedRatingIndex=-1;e.isSlimlineSurvey=!1;e.isSlimlineSurveyFollowUp=!1;e.isShortsStyle=!1;e.slimlineSurveyRatingSelectedIndex=-1;return e};
_.U(IB,_.V);_.Y=IB.prototype;_.Y.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.Y.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.Y.onOptionChange=function(e,z){var C=this;e=z.onStateIcon&&z.defaultStateIcon&&z.onStateIcon.iconType===z.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(X,J){X.responseText===z.responseText?C.isSlimlineSurvey?(C.selectedRatingIndex=J,C.ytdReduxBehavior.dispatch(T_h(J))):(C.setSurveyOptionValue(J,!0,"checked"),C.setSurveyOptionValue(J,!0,"selected")):(C.setSurveyOptionValue(J,!1,"checked"),C.setSurveyOptionValue(J,
!1,"selected"))});
else if(e)this.selectedNonStarOption=z,this.hideOptions=!0;else{var w=this.ytRendererBehavior.getSimpleString(z.responseText),K=!0;this.getOptionRenderers().forEach(function(X,J){C.setSurveyOptionValue(J,K,"checked");C.setSurveyOptionValue(J,!1,"selected");C.ytRendererBehavior.getSimpleString(X.responseText)===w&&(K=!1,C.setSurveyOptionValue(J,!0,"selected"))})}e=z.responseEndpoint;
var G;z.followUpCommand&&(G=_.r(z.followUpCommand,Y4h));this.isSlimlineSurvey?(this.resetComponent(),_.eA(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.eA(this.hostElement,"ytd-inline-survey-rating-select-action",[e,G])};
_.Y.showSelectedOption=function(){var e=this;_.c5.addJob(function(){var z=e.getOptionRenderers()[e.slimlineSurveyRatingSelectedIndex];e.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),z)},8,100)};
_.Y.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(e){var z;return(z=_.r(e,XtS))!=null?z:{}}):[]};
_.Y.onUndoClick=function(){this.resetComponent();_.eA(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.Y.setSurveyOptionValue=function(e,z,C){this.notifyPath("data.ratings."+e+".ratingSurveyOptionRenderer."+C);this.set("data.ratings."+e+".ratingSurveyOptionRenderer."+C,z)};
_.Y.resetComponent=function(){var e=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var z=this.getOptionRenderers(),C,w;this.firstResponseText=(w=(C=z[0])==null?void 0:C.responseText)!=null?w:null;var K,G;this.lastResponseText=(G=(K=z[z.length-1])==null?void 0:K.responseText)!=null?G:null;z.forEach(function(X,J){e.setSurveyOptionValue(J,!1,"checked");e.setSurveyOptionValue(J,!1,"selected")})};
_.lB.Object.defineProperties(IB.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
IB.prototype.onOptionChange=IB.prototype.onOptionChange;IB.prototype.dataChanged=IB.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],IB.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],IB.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],IB.prototype,"firstResponseText",void 0);_.d([_.F(),_.B("design:type",Object)],IB.prototype,"lastResponseText",void 0);_.d([_.F(),_.B("design:type",Object)],IB.prototype,"selectedNonStarOption",void 0);_.d([_.F(),_.B("design:type",Object)],IB.prototype,"hideOptions",void 0);_.d([_.F(),_.B("design:type",Object)],IB.prototype,"hideUndoButton",void 0);_.d([_.F(),_.B("design:type",Object)],IB.prototype,"disableAnimation",void 0);
_.d([_.F(),_.B("design:type",Object)],IB.prototype,"showResponseRangeText",void 0);_.d([_.F(),_.B("design:type",Object)],IB.prototype,"selectedRatingIndex",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IB.prototype,"isSlimlineSurvey",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IB.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IB.prototype,"isShortsStyle",void 0);_.d([_.F({selector:function(e){return e.ui.slimlineSurveyRatingSelectedIndex}}),
_.B("design:type",Object)],IB.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.d([_.P("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],IB.prototype,"isSingleSelect",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IB.prototype,"dataChanged",null);
_.d([_.Qi("ytd-rating-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],IB.prototype,"onOptionChange",null);_.d([_.SL({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],IB);
_.u(IB,"ytd-rating-survey-renderer",function(){if(oxs!==void 0)return oxs;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return oxs=e},{mode:1});var Gzs;var YFS;var bFa;var v81=(Ml.FIRSTDAYOFWEEK+1)%7,X4a=function(e,z,C,w){var K="";if(w.selection&&MD1(w.selection))m8(e,w.selection)&&(K+=" selected");else if(w.selection&&rP4(w.selection)){var G=w.selection.selectionState||"START_DATE";m8(e,w.selection.start)&&(K+=" period-start ",G==="START_DATE"&&(K+="selected"));m8(e,w.selection.end)&&(K+=" period-end ",G==="END_DATE"&&(K+="selected"));ae(e,w.selection.start)||ae(w.selection.end,e)||(K+=" highlighted")}if(ae(z,w.start)||ae(w.end,z))K+=" disabled";w.circleToday&&
m8(z,C)&&(K+=" today");return K};var WP=function(){return _.V.apply(this,arguments)||this};
_.U(WP,_.V);_.Y=WP.prototype;_.Y.attached=function(){var e=this;_.T0(this,function(){e.JSC$16256_calendarMain.scrollHeight>0&&(e.calendarConfig.selection?e.scrollToDate(Hzk(e.calendarConfig.selection)):e.scrollToDate(e.calendarConfig.end))})};
_.Y.updateSelection=function(e){e=Iig(Object.assign({},this.calendarConfig,{selection:e}),X4a);this.splice.apply(this,["renderData.months",0,e.length].concat(_.s_(e)))};
_.Y.scrollToDate=function(e){this.renderData&&(e=We8(e,this.renderData),e!==void 0&&this.JSC$16256_calendarMain.scrollToIndex(e))};
_.Y.scrollToNextMonth=function(){this.JSC$16256_calendarMain.scrollToIndex(this.JSC$16256_calendarMain.firstVisibleIndex+1)};
_.Y.scrollToPrevMonth=function(){this.JSC$16256_calendarMain.firstVisibleIndex===0&&this.JSC$16256_calendarMain.scrollTo(0,0);this.JSC$16256_calendarMain.scrollToIndex(this.JSC$16256_calendarMain.firstVisibleIndex-1)};
_.Y.handleDayClick=function(e){_.eA(this.hostElement,"ytd-calendar-date-clicked",[e.model.day.date])};
_.Y.handleDayMouseDown=function(e){e.preventDefault();_.eA(this.hostElement,"ytd-calendar-date-mousedown",[e.model.day.date])};
_.Y.handleDayMouseUp=function(e){_.eA(this.hostElement,"ytd-calendar-date-mouseup",[e.model.day.date])};
_.Y.handleDayMouseEnter=function(e){e.preventDefault();_.eA(this.hostElement,"ytd-calendar-date-mouseenter",[e.model.day.date])};
_.Y.handleDayMouseLeave=function(e){_.eA(this.hostElement,"ytd-calendar-date-mouseleave",[e.model.day.date])};
_.lB.Object.defineProperties(WP.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var e=this.calendarConfig,z=X4a;z=z===void 0?X4a:z;for(var C=[],w=0;w<7;w++)C.push(Ml.NARROWWEEKDAYS[(w+v81)%7]);return{months:Iig(e,z),daysOfWeekLabel:C}}}});
_.d([_.F(),_.B("design:type",Object)],WP.prototype,"calendarConfig",void 0);_.d([_.nP("#calendar-main"),_.B("design:type",Object)],WP.prototype,"JSC$16256_calendarMain",void 0);_.d([_.P("calendarConfig"),_.B("design:type",Object),_.B("design:paramtypes",[])],WP.prototype,"renderData",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],WP);
_.u(WP,"ytd-scrollable-calendar",function(){if(bFa!==void 0)return bFa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return bFa=e},{mode:2});var JZ6;var kz4;var PP=function(){var e=_.V.apply(this,arguments)||this;e.hideCharCounter=!1;e.hideLabel=!1;e.noLabelFloat=!1;e.autoValidate=!0;e.invalid=!1;e.disabled=!1;e.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return e};
_.U(PP,_.V);_.Y=PP.prototype;_.Y.reset=function(e){this.value=e&&this.data?this.data.value=e:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.Y.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.Y.focusTextInput=function(){this.input.focus()};
_.Y.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()};
_.Y.valueChanged=function(){var e,z;if(((e=this.data)==null?0:e.value)||((z=this.data)==null?void 0:z.value)==="")this.value=this.data.value;else{var C;((C=this.data)==null?void 0:C.value)!==void 0||this.value||(this.value="")}};
_.Y.computeLabel=function(e,z){return z?"":_.Zd(e)};
_.Y.computeAriaLabel=function(e,z){return z?_.Zd(e):""};
_.Y.computeErrorMessage=function(e,z,C,w){!e&&z?e=C||this.strings.REQUIRED_LABEL:(e=_.Zd(w),e=_.X4(e,"&")?"document"in _.wL?T5a(e):$1h(e):e);return e};
_.Y.computeType=function(e){return e==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.Y.onTextValueChanged=function(e){this.value=e.detail.value;var z;(z=this.onValueChanged)==null||z.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.Y.handleUpdateTextInputFormFieldRendererCommand=function(e){(e=_.r(e,PL6))&&this.data&&this.data.id===e.id&&(e.invalid!==void 0&&(this.invalid=e.invalid),e.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",e.invalidValueErrorMessage))};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("value-changed",this.value))};
_.Y.updateInvalidFromBinding=function(e){this.invalid=e.detail.value};
_.lB.Object.defineProperties(PP.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var e;return!((e=this.data)==null||!e.isMultiline)}}});
PP.prototype.valueChangedForBinding=PP.prototype.valueChangedForBinding;PP.prototype.valueChanged=PP.prototype.valueChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],PP.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],PP.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],PP.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],PP.prototype,"value",void 0);_.d([_.F(),_.B("design:type",String)],PP.prototype,"pattern",void 0);_.d([_.F(),_.B("design:type",String)],PP.prototype,"errorMessage",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],PP.prototype,"componentStyle",void 0);_.d([_.F(),_.B("design:type",Object)],PP.prototype,"hideCharCounter",void 0);
_.d([_.F(),_.B("design:type",Object)],PP.prototype,"hideLabel",void 0);_.d([_.F(),_.B("design:type",Object)],PP.prototype,"noLabelFloat",void 0);_.d([_.F(),_.B("design:type",Function)],PP.prototype,"onValueChanged",void 0);_.d([_.F(),_.B("design:type",Boolean)],PP.prototype,"isMultilineOverride",void 0);_.d([_.F(),_.B("design:type",Object)],PP.prototype,"autoValidate",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PP.prototype,"invalid",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PP.prototype,"disabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],PP.prototype,"enableOverlayTheme",void 0);_.d([_.F({value:{REQUIRED_LABEL:_.kk("REQUIRED_LABEL",void 0,"Required")}}),_.B("design:type",Object)],PP.prototype,"strings",void 0);_.d([_.nP("#input"),_.B("design:type",Object)],PP.prototype,"input",void 0);
_.d([_.P("data","isMultilineOverride"),_.B("design:type",Object),_.B("design:paramtypes",[])],PP.prototype,"isMultiline",null);_.d([_.Ux("data.value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PP.prototype,"valueChanged",null);_.d([_.mi("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PP.prototype,"valueChangedForBinding",null);_.d([_.fP({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],PP);
_.u(PP,"yt-text-input-form-field-renderer",function(){if(kz4===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;JZ6===void 0&&(JZ6=document.createElement("template"));var w=JZ6;C.call(z,w.content.cloneNode(!0),e.content.firstChild);kz4=e}e=kz4;return e},{mode:2});var RB=function(){var e=_.V.apply(this,arguments)||this;e.data=void 0;e.selectionState="START_DATE";e.isStartDateInvalid=!1;e.isEndDateInvalid=!1;e.autoapply=!1;e.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 e};
_.U(RB,_.V);_.Y=RB.prototype;_.Y.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"}}}}};
_.Y.focus=function(){this.startDateInput.focus()};
_.Y.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:ns(this.data.selection.start),end:ns(this.data.selection.end)})};
_.Y.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Y.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.ca(this.selectionState)}};
_.Y.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.Y.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.Y.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.Y.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var e=this.calendar.calendarConfig,z=e.end;e=Re4({start:e.start,end:this.endDate||z},this.startDateInput.value||"");this.isStartDateInvalid=!e.isValid;e.isValid&&(e=e.value,this.selection=this.endDate?{start:e,end:this.endDate}:e,this.calendar.scrollToDate(e));this.updateInvalidState()}};
_.Y.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var e=this.calendar.calendarConfig,z=e.start;e=Re4({start:this.startDate||z,end:e.end},this.endDateInput.value||"");this.isEndDateInvalid=!e.isValid;e.isValid&&(e=e.value,this.selection={start:this.startDate,end:e},this.calendar.scrollToDate(e));this.updateInvalidState()}};
_.Y.handleCalendarDateClicked=function(e){var z=this.selection&&Hzk(this.selection),C=this.selection&&Us7(this.selection);z&&!ae(e,z)&&this.selectionState==="END_DATE"?(this.selection={start:z,end:e},this.selectionState="START_DATE"):(C&&!ae(C,e)?this.selection={start:e,end:C}:this.selection=e,this.selectionState="END_DATE")};
_.Y.handleCalendarDateMouseDown=function(e){this.selection&&!MD1(this.selection)&&(this.dragPivot=m8(e,this.selection.start)?this.selection.end:m8(e,this.selection.end)?this.selection.start:e)};
_.Y.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.Y.handleCalendarDateMouseEnter=function(e){this.dragPivot&&(this.selection={start:function(z,C){return ae(z,C)?z:C}(this.dragPivot,e),
end:function(z,C){return ae(z,C)?C:z}(this.dragPivot,e)},this.dragPivot||(this.selectionState="START_DATE"))};
_.Y.handleCalendarDateMouseLeave=function(){};
_.Y.handleCalendarSubmitDateRange=function(){this.selection&&!MD1(this.selection)&&_.eA(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.Y.updateInvalidState=function(){var e=function(z,C){C?z.setAttribute("invalid",""):z.removeAttribute("invalid")};
e(this.startDateInput,this.isStartDateInvalid);e(this.endDateInput,this.isEndDateInvalid)};
_.Y.updateDateStrings=function(){this.selection&&(MD1(this.selection)?n8N(this.selection):(n8N(this.selection.start),n8N(this.selection.end)))};
_.Y.updateCalendarSelection=function(e){this.calendar.updateSelection(Object.assign({},e,{selectionState:this.selectionState}))};
_.Y.updateIsStartDateInvalidFromBinding=function(e){this.isStartDateInvalid=e.detail.value};
_.Y.updateIsEndDateInvalidFromBinding=function(e){this.isEndDateInvalid=e.detail.value};
_.Y.updateStartDateStringFromBinding=function(){};
_.Y.updateEndDateStringFromBinding=function(){};
_.lB.Object.defineProperties(RB.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:ns(this.data.dateRangeStart),end:ns(this.data.dateRangeEnd),selection:{start:ns(this.data.selection.start),end:ns(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Hzk(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Us7(this.selection)}}});
RB.prototype.resetTextboxes=RB.prototype.resetTextboxes;RB.prototype.observeSelection=RB.prototype.observeSelection;RB.prototype.dataChanged=RB.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("#calendar"),_.B("design:type",Object)],RB.prototype,"calendar",void 0);
_.d([_.nP("#start-date"),_.B("design:type",Object)],RB.prototype,"startDateInput",void 0);_.d([_.nP("#end-date"),_.B("design:type",Object)],RB.prototype,"endDateInput",void 0);_.d([_.F(),_.B("design:type",Object)],RB.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],RB.prototype,"selection",void 0);_.d([_.F(),_.B("design:type",String)],RB.prototype,"selectionState",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],RB.prototype,"calendarConfig",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],RB.prototype,"errorMessage",null);_.d([_.P("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],RB.prototype,"startDate",null);_.d([_.P("selection"),_.B("design:type",Object),_.B("design:paramtypes",[])],RB.prototype,"endDate",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RB.prototype,"dataChanged",null);
_.d([_.mi("selection","selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RB.prototype,"observeSelection",null);_.d([_.mi("selectionState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RB.prototype,"resetTextboxes",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],RB);
_.u(RB,"ytd-date-period-picker-renderer",function(){if(YFS!==void 0)return YFS;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return YFS=e},{mode:1});var LQ=function(){var e=_.V.apply(this,arguments)||this;var z={};e.actionMap=(z["ytd-date-period-picker-apply"]="handleDateRangeUpdated",z);return e};
_.U(LQ,_.V);LQ.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
LQ.prototype.handleDateRangeUpdated=function(){};
_.d([_.F(),_.B("design:type",Object)],LQ.prototype,"data",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],LQ.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],LQ.prototype,"rendererstamperBehavior",void 0);_.d([_.SL({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],LQ);
_.u(LQ,"ytd-report-history-section-header-renderer",function(){if(Gzs!==void 0)return Gzs;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Gzs=e},{mode:1});var qFY;var xPL;var Tc4;var ha=function(){return _.V.apply(this,arguments)||this};
_.U(ha,_.V);_.lB.Object.defineProperties(ha.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?0:(z=e.icon)==null?0:z.iconType)?_.qF(this.data.icon.iconType):""}}});
_.d([_.F(),_.B("design:type",Object)],ha.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],ha.prototype,"icon",null);_.d([_.SL({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],ha);
_.u(ha,"ytd-report-history-table-text-cell-renderer",function(){if(Tc4!==void 0)return Tc4;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Tc4=e},{mode:1});var O5=function(){return _.V.apply(this,arguments)||this};
_.U(O5,_.V);O5.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],O5.prototype,"data",void 0);_.d([_.SL({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],O5);
_.u(O5,"ytd-report-history-table-reason-cell-renderer",function(){if(xPL!==void 0)return xPL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return xPL=e},{mode:1});var E5=function(){return _.V.apply(this,arguments)||this};
_.U(E5,_.V);E5.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"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],E5.prototype,"rendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],E5.prototype,"data",void 0);_.d([_.SL({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],E5);
_.u(E5,"ytd-report-history-table-cell-renderer",function(){if(qFY!==void 0)return qFY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return qFY=e},{mode:1});var $P6;var Fm=function(){var e=_.V.apply(this,arguments)||this;e.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 e};
_.U(Fm,_.V);Fm.prototype.onDataChanged=function(){var e;if((e=this.data)==null?0:e.style)this.componentStyle=this.getStyleName(this.data.style)};
Fm.prototype.getCellForColumn=function(e){return this.cells.find(function(z){var C;return((C=_.r(z==null?void 0:z.cell,q46)||_.r(z==null?void 0:z.cell,kKo))==null?void 0:C.columnId)===e.type})};
Fm.prototype.getClassForColumn=function(e){switch(e){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Fm.prototype.getStyleName=function(e){switch(e){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.lB.Object.defineProperties(Fm.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.cells)||[]).map(function(z){return _.r(z,Jh6)})}}});
Fm.prototype.onDataChanged=Fm.prototype.onDataChanged;_.d([_.F(),_.B("design:type",Object)],Fm.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Array)],Fm.prototype,"columnRenderData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Fm.prototype,"componentStyle",void 0);_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Fm.prototype,"cells",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fm.prototype,"onDataChanged",null);_.d([_.SL({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Fm);
_.u(Fm,"ytd-report-history-table-row-renderer",function(){if($P6!==void 0)return $P6;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return $P6=e},{mode:1});var l4a;var QAS;var Leh={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},hem={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var VI=function(){return _.V.apply(this,arguments)||this};
_.U(VI,_.V);VI.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"}}}}}};
VI.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.lB.Object.defineProperties(VI.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.columns)?fig(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Feg(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var e=this.tableSpec,z=Leh;z=z===void 0?hem:z;z=VDs(e.columnDimensions,e.columnsToShow||[],z);e=0;z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,e+=C.minWidth+C.paddingLeft+C.paddingRight;return e}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.d([_.W(_.Ea),_.B("design:type",Object)],VI.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],VI.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],VI.prototype,"tableSpec",null);_.d([_.P("tableSpec"),_.B("design:type",Array),_.B("design:paramtypes",[])],VI.prototype,"columnRenderData",null);
_.d([_.P("tableSpec"),_.B("design:type",Number),_.B("design:paramtypes",[])],VI.prototype,"totalMinWidth",null);_.d([_.P("totalMinWidth"),_.B("design:type",String),_.B("design:paramtypes",[])],VI.prototype,"tableWidthStyle",null);_.d([_.SL({is:"ytd-table-renderer",disableElementRegistration:!0})],VI);
_.u(VI,"ytd-table-renderer",function(){if(QAS!==void 0)return QAS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return QAS=e},{mode:1});var fQ=function(){return _.V.apply(this,arguments)||this};
_.U(fQ,_.V);fQ.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}}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],fQ.prototype,"data",void 0);_.d([_.SL({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],fQ);
_.u(fQ,"ytd-report-reason-history-modal-renderer",function(){if(l4a!==void 0)return l4a;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return l4a=e},{mode:1});var mPL;var a4a;var nxY;var SZ=function(){return _.V.apply(this,arguments)||this};
_.U(SZ,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],SZ.prototype,"data",void 0);_.d([_.SL({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],SZ);
_.u(SZ,"ytd-profile-column-stats-entry-renderer",function(){if(nxY!==void 0)return nxY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return nxY=e},{mode:1});var Mda;var uJ=function(){return _.V.apply(this,arguments)||this};
_.U(uJ,_.V);uJ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uJ.prototype,"data",void 0);_.d([_.SL({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],uJ);
_.u(uJ,"ytd-profile-column-stats-renderer",function(){if(Mda!==void 0)return Mda;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Mda=e},{mode:1});var rZs;var dC=function(){return _.V.apply(this,arguments)||this};
_.U(dC,_.V);_.lB.Object.defineProperties(dC.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.useThumbnailSize)return 80;var z,C;e=(z=this.data)==null?void 0:(C=z.thumbnail)==null?void 0:C.thumbnails;var w;return e&&((w=e[0])==null?void 0:w.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.useThumbnailSize)return 80;var z,C;e=(z=this.data)==null?void 0:(C=z.thumbnail)==null?void 0:C.thumbnails;var w;return e&&((w=e[0])==null?void 0:w.height)||80}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],dC.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],dC.prototype,"componentStyle",void 0);_.d([_.P("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],dC.prototype,"thumbnailWidth",null);
_.d([_.P("data.useThumbnailSize"),_.B("design:type",Object),_.B("design:paramtypes",[])],dC.prototype,"thumbnailHeight",null);_.d([_.SL({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],dC);
_.u(dC,"ytd-profile-column-user-info-renderer",function(){if(rZs!==void 0)return rZs;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return rZs=e},{mode:1});var D9=function(){return _.V.apply(this,arguments)||this};
_.U(D9,_.V);D9.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]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],D9.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],D9.prototype,"componentStyle",void 0);_.d([_.SL({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],D9);
_.u(D9,"ytd-profile-column-renderer",function(){if(a4a!==void 0)return a4a;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return a4a=e},{mode:1});var iJ=function(){var e=_.V.apply(this,arguments)||this;e.componentStyle="NON_CENTERED_PROFILE";return e};
_.U(iJ,_.V);iJ.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
iJ.prototype.getIcon=function(e){return e?"settings:"+e.toLowerCase():null};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iJ.prototype,"data",void 0);_.d([_.SL({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],iJ);
_.u(iJ,"ytd-page-introduction-renderer",function(){if(mPL!==void 0)return mPL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return mPL=e},{mode:1});var HFa;var NO=function(){return _.V.apply(this,arguments)||this};
_.U(NO,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],NO.prototype,"data",void 0);_.d([_.SL({is:"ytd-report-description-renderer",disableElementRegistration:!0})],NO);
_.u(NO,"ytd-report-description-renderer",function(){if(HFa!==void 0)return HFa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return HFa=e},{mode:1});var UPa;var vxo;var s5=function(){return _.V.apply(this,arguments)||this};
_.U(s5,_.V);s5.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],s5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],s5.prototype,"data",void 0);_.d([_.SL({is:"ytd-video-report-renderer",disableElementRegistration:!0})],s5);
_.u(s5,"ytd-video-report-renderer",function(){if(vxo!==void 0)return vxo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vxo=e},{mode:1});var I4c;_.hq("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.hq("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var BP=function(){return _.V.apply(this,arguments)||this};
_.U(BP,_.V);BP.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
BP.prototype.computeMessageStyle=function(e){return e};
BP.prototype.computeButtonOverride=function(e){var z;if((e==null?0:(z=e.style)==null?0:z.value)&&e.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BP.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BP.prototype,"shelf",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BP.prototype,"panel",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.B("design:type",Boolean)],BP.prototype,"componentStyle",void 0);_.d([_.F({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],BP.prototype,"buttonOverride",void 0);_.d([_.SL({is:"ytd-message-renderer",disableElementRegistration:!0})],BP);
_.u(BP,"ytd-message-renderer",function(){if(I4c!==void 0)return I4c;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return I4c=e},{mode:1});var ta=function(){return _.V.apply(this,arguments)||this};
_.U(ta,_.V);ta.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"}}}};
ta.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
ta.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.lB.Object.defineProperties(ta.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!(((e=this.data)==null?0:e.header)&&((z=this.data)==null?0:z.table))}}});
ta.prototype.onRequestError=ta.prototype.onRequestError;_.d([_.W(_.Ea),_.B("design:type",Object)],ta.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ta.prototype,"data",void 0);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ta.prototype,"isUnifiedReportHistory",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ta.prototype,"onRequestError",null);_.d([_.SL({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],ta);
_.u(ta,"ytd-report-history-section-renderer",function(){if(UPa!==void 0)return UPa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return UPa=e},{mode:1});var W4S;var gC=function(){var e=_.V.apply(this,arguments)||this;e.answerExpanded=!1;return e};
_.U(gC,_.V);gC.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gC.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],gC.prototype,"answerExpanded",void 0);_.d([_.SL({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],gC);
_.u(gC,"ytd-handles-claiming-faq-renderer",function(){if(W4S!==void 0)return W4S;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return W4S=e},{mode:1});var PeC;var R7S=function(){return _.V.apply(this,arguments)||this};
_.U(R7S,_.V);_.d([_.F(),_.B("design:type",Object)],R7S.prototype,"data",void 0);_.d([_.SL({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],R7S);
_.u(R7S,"ytd-handles-claiming-faq-section-renderer",function(){if(PeC!==void 0)return PeC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return PeC=e},{mode:1});var L4a;var jZ=function(){var e=_.V.apply(this,arguments)||this;e.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";e.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";e.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";e.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";e.leftSquiggly=e.leftSquigglyLight;e.rightSquiggly=e.rightSquigglyLight;
e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};e.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return e};
_.U(jZ,_.V);_.Y=jZ.prototype;_.Y.updateLeftSquigglyStyle=function(){_.T8(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.Y.updateRightSquigglyStyle=function(){_.T8(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.Y.ready=function(){var e=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(e)};
_.Y.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.set("isDarkTheme",e),e?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
jZ.prototype.updateRightSquigglyStyle=jZ.prototype.updateRightSquigglyStyle;jZ.prototype.updateLeftSquigglyStyle=jZ.prototype.updateLeftSquigglyStyle;_.d([_.F(),_.B("design:type",Object)],jZ.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],jZ.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",String)],jZ.prototype,"leftSquiggly",void 0);_.d([_.F(),_.B("design:type",String)],jZ.prototype,"rightSquiggly",void 0);
_.d([_.mi("leftSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jZ.prototype,"updateLeftSquigglyStyle",null);_.d([_.mi("rightSquiggly"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jZ.prototype,"updateRightSquigglyStyle",null);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],jZ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jZ.prototype,"actionButtonOverride",void 0);_.d([_.SL({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],jZ);
_.u(jZ,"ytd-handles-claiming-header-renderer",function(){if(L4a!==void 0)return L4a;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return L4a=e},{mode:1});var h7L;var yI=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};e.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";e.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";e.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";e.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
e.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";e.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";e.image0SquigglyBackground=e.image0LightSquigglyBackground;e.image1SquigglyBackground=e.image1LightSquigglyBackground;e.image3SquigglyBackground=e.image3LightSquigglyBackground;return e};
_.U(yI,_.V);_.Y=yI.prototype;_.Y.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.Y.onDataChanged=function(){this.updateTitleAndImages()};
_.Y.onThemeChanged=function(){this.updateTitleAndImages()};
_.Y.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e)};
_.Y.updateImage0SquigglyBackground=function(){_.T8(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.Y.updateImage1SquigglyBackground=function(){_.T8(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.Y.updateImage3SquigglyBackground=function(){_.T8(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.Y.updateTitleAndImages=function(){var e,z;((e=this.data)==null?void 0:(z=e.titleImages)==null?void 0:z.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))};
yI.prototype.updateImage3SquigglyBackground=yI.prototype.updateImage3SquigglyBackground;yI.prototype.updateImage1SquigglyBackground=yI.prototype.updateImage1SquigglyBackground;yI.prototype.updateImage0SquigglyBackground=yI.prototype.updateImage0SquigglyBackground;yI.prototype.onThemeChanged=yI.prototype.onThemeChanged;yI.prototype.onDataChanged=yI.prototype.onDataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],yI.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],yI.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"title0",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"title1",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"title2",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"title3",void 0);
_.d([_.F(),_.B("design:type",Object)],yI.prototype,"title4",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"image0",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"image1",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"image2",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"image3",void 0);_.d([_.F(),_.B("design:type",Object)],yI.prototype,"image4",void 0);_.d([_.F(),_.B("design:type",String)],yI.prototype,"image0SquigglyBackground",void 0);
_.d([_.F(),_.B("design:type",String)],yI.prototype,"image1SquigglyBackground",void 0);_.d([_.F(),_.B("design:type",String)],yI.prototype,"image3SquigglyBackground",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yI.prototype,"onDataChanged",null);_.d([_.mi("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yI.prototype,"onThemeChanged",null);
_.d([_.mi("image0SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yI.prototype,"updateImage0SquigglyBackground",null);_.d([_.mi("image1SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yI.prototype,"updateImage1SquigglyBackground",null);
_.d([_.mi("image3SquigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yI.prototype,"updateImage3SquigglyBackground",null);_.d([_.SL({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],yI);
_.u(yI,"ytd-handles-claiming-title-images-section-renderer",function(){if(h7L!==void 0)return h7L;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return h7L=e},{mode:1});var OFh;var cP=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(cP,_.V);cP.prototype.ready=function(){var e=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(e)};
cP.prototype.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e)};
cP.prototype.onCopyButtonClick=function(){var e=this,z,C,w;return _.k(function(K){return(z=e.data)!=null&&z.primaryChannelUrl?K.yield(navigator.clipboard.writeText(((C=e.data)==null?0:C.encodedChannelUrl)?e.data.encodedChannelUrl:"https://"+_.Zd((w=e.data)==null?void 0:w.primaryChannelUrl)),0):K.jumpTo(0)})};
_.d([_.F(),_.B("design:type",Object)],cP.prototype,"data",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],cP.prototype,"isDarkTheme",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],cP.prototype,"ytActionHandlerBehavior",void 0);_.d([_.SL({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],cP);
_.u(cP,"ytd-handles-claiming-update-social-renderer",function(){if(OFh!==void 0)return OFh;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return OFh=e},{mode:1});var Ex4;var Aa=function(){var e=_.V.apply(this,arguments)||this;e.JSC$16350_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";e.JSC$16350_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};e.squigglyBackground=e.JSC$16350_squigglyBackgroundLight;return e};
_.U(Aa,_.V);Aa.prototype.updateSquigglyBackgroundStyle=function(){_.T8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Aa.prototype.ready=function(){var e=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",e);this.squigglyBackground=e?this.JSC$16350_squigglyBackgroundDark:this.JSC$16350_squigglyBackgroundLight};
Aa.prototype.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.set("isDarkTheme",e),this.squigglyBackground=e?this.JSC$16350_squigglyBackgroundDark:this.JSC$16350_squigglyBackgroundLight)};
Aa.prototype.updateSquigglyBackgroundStyle=Aa.prototype.updateSquigglyBackgroundStyle;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Aa.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Aa.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Aa.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",String)],Aa.prototype,"squigglyBackground",void 0);_.d([_.mi("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Aa.prototype,"updateSquigglyBackgroundStyle",null);_.d([_.SL({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Aa);
_.u(Aa,"ytd-handles-claiming-vanity-info-renderer",function(){if(Ex4!==void 0)return Ex4;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Ex4=e},{mode:1});var F4X;var Z9=function(){var e=_.V.apply(this,arguments)||this;e.JSC$16353_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";e.JSC$16353_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";e.squigglyBackground=e.JSC$16353_squigglyBackgroundLight;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(Z9,_.V);_.Y=Z9.prototype;_.Y.ready=function(){var e=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(e)};
_.Y.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.set("isDarkTheme",e),this.squigglyBackground=e?this.JSC$16353_squigglyBackgroundDark:this.JSC$16353_squigglyBackgroundLight)};
_.Y.updateSquigglyBackgroundStyle=function(){_.T8(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.Y.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.Y.detached=function(){this.stop()};
_.Y.stop=function(){this.playerElement.stop()};
_.Y.setupVideoPlayer=function(){var e=this,z,C;return _.k(function(w){z=e.data.videoId;C="http://i1.ytimg.com/vi/"+z+"/maxresdefault.jpg";e.playerElement.loadVideoWithPlayerVars({video_id:z,iurlhq:C});_.E_(w)})};
Z9.prototype.onDataChanged=Z9.prototype.onDataChanged;Z9.prototype.updateSquigglyBackgroundStyle=Z9.prototype.updateSquigglyBackgroundStyle;_.d([_.F({value:!1}),_.B("design:type",Boolean)],Z9.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",String)],Z9.prototype,"squigglyBackground",void 0);_.d([_.nP("#player"),_.B("design:type",Object)],Z9.prototype,"playerElement",void 0);_.d([_.F(),_.B("design:type",Object)],Z9.prototype,"data",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Z9.prototype,"ytActionHandlerBehavior",void 0);_.d([_.mi("squigglyBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z9.prototype,"updateSquigglyBackgroundStyle",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z9.prototype,"onDataChanged",null);
_.d([_.SL({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Z9);
_.u(Z9,"ytd-handles-claiming-video-item-renderer",function(){if(F4X!==void 0)return F4X;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return F4X=e},{mode:1});var Vdg;var eR=function(){var e=_.rO.apply(this,arguments)||this;e.dragging=!1;e.dragMouseStart=0;e.dragOffsetStart=0;e.containerWidthDiff=0;e.boundPrevClick=function(){e.set("offset",pQ(e,e.offset-(e.scrollDistance||320)))};
e.boundNextClick=function(){e.set("offset",pQ(e,e.offset+(e.scrollDistance||320)))};
e.boundScrollContainerMouseDown=function(z){e.dragMouseStart=z.clientX;e.dragOffsetStart=e.offset;e.dragging=!0};
e.boundScrollContainerDrag=function(z){e.dragging&&e.set("offset",pQ(e,e.dragOffsetStart-(z.clientX-e.dragMouseStart)))};
e.boundMouseUp=function(){e.onMouseUp()};
e.boundWheelScroll=function(z){var C=0;Math.abs(z.deltaX)>=Math.abs(z.deltaY)?C=z.deltaX:z.shiftKey&&(C=z.deltaY);C!==0&&(e.offset+=C,z.stopPropagation(),z.preventDefault())};
e.boundChipCloudChipScrollIntoView=function(z){(z=z.detail)&&e.scrollChipIntoView(z)};
return e};
_.U(eR,_.rO);eR.prototype.attached=function(){var e=_.XC(this.hostElement).querySelector("#scroll-container");e.addEventListener("wheel",this.boundWheelScroll);e.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);e.style.touchAction="pan-y";e.addEventListener("pointerdown",this.boundScrollContainerMouseDown);e.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
eR.prototype.detached=function(){var e=_.XC(this.hostElement).querySelector("#scroll-container");e.removeEventListener("wheel",this.boundWheelScroll);e.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);e.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);e.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
eR.prototype.reset=function(){this.set("offset",0);_.T0(this,this.setContainerWidthDiff);_.T0(this,this.setButtonsState)};
var pQ=function(e,z){return Math.min(Math.max(z,0),e.containerWidthDiff)};
_.Y=eR.prototype;_.Y.onMouseUp=function(){this.dragging=!1};
_.Y.transformContainer=function(){this.offset=pQ(this,this.offset);var e=_.j5("HTML_DIR")==="rtl"?"":"-";_.XC(this.hostElement).querySelector("#chips").style.transform="translateX("+e+this.offset+"px)";_.T0(this,this.setButtonsState)};
_.Y.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=pQ(this,this.offset));this.atStart=this.offset<=0};
_.Y.setContainerWidthDiff=function(){var e=_.XC(this.hostElement).querySelector("#scroll-container"),z=_.XC(this.hostElement).querySelector("#chips");e&&z&&(this.containerWidthDiff=z.clientWidth-e.clientWidth)};
_.Y.scrollChipIntoView=function(e){var z=_.XC(this.hostElement).querySelector("#scroll-container");if(z){var C=this.atStart?0:106,w=this.atEnd?0:106;e.offsetLeft<this.offset+C?this.offset=pQ(this,e.offsetLeft-C):e.offsetLeft+e.clientWidth>this.offset+z.clientWidth-w&&(this.offset=pQ(this,e.offsetLeft+e.clientWidth+w-z.clientWidth))}};
eR.prototype.transformContainer=eR.prototype.transformContainer;_.d([_.F({value:0}),_.B("design:type",Number)],eR.prototype,"offset",void 0);_.d([_.F({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],eR.prototype,"atStart",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],eR.prototype,"atEnd",void 0);_.d([_.F(),_.B("design:type",Number)],eR.prototype,"scrollDistance",void 0);
_.d([_.mi("offset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eR.prototype,"transformContainer",null);_.d([_.HI()],eR);var f4L;var SFT;_.zS=_.f(function(e){var z=e.data;e=_.b(_.II(!1,void 0,"bob3J"));var C=e.next().value,w=e.next().value;e=function(G){if((z==null?void 0:z().state)!==1){var X,J;(J=(X=z()).onTap)==null||J.call(X,G)}};
var K={};return _.x("chip-shape",{class:"ytChipShapeHost","on:focusin":_.T9(function(){var G=_.lh().resolve(_.$B(_.V5));if(G){w(G.isKeyBoardInUse());var X,J;(J=(X=z()).onFocusIn)==null||J.call(X)}return!1}),
"on:focusout":_.T9(function(){w(!1);return!1})},_.x(uwC,{shouldWrapInButton:function(){return z().type!==2},
selected:function(){return z().state===0},
onClick:e,isDropdown:function(){return z().type===1},
accessibilityLabel:function(){return z().type===1?void 0:z().accessibilityLabel}},_.x("div",{class:_.qT("ytChipShapeChip",function(){a:switch(z==null?void 0:z().state){case 0:var G="ytChipShapeActive";
break a;case 1:G="ytChipShapeDisabled";break a;default:G="ytChipShapeInactive"}return G},function(){var G=z().type===1||z().type===2,X=z();
return G||X!=null&&X.startIcon?X==null||!X.startIcon||X!=null&&X.text?G?"ytChipShapeEndIconPadding":(X==null?0:X.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var G=z();
if((G==null?void 0:G.style)===0&&(G==null?void 0:G.state)===0){var X;G=((X=_.lh().resolve(_.$B(_.jQ)))==null?0:X())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else G="";return G},(K.ytChipShapeFocused=function(){var G;
return C()&&((G=z())==null?void 0:G.state)!==1},K))},_.x(_.l,{cond:function(){return z().startIcon},
then:function(){return _.x(_.mB,{icon:function(){var G;return(G=z())==null?void 0:G.startIcon},
className:_.qT(function(){return z().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var G=z(),X,J=(X=_.lh().resolve(_.$B(_.jQ)))==null?void 0:X();
return(G==null?void 0:G.style)===0&&(G==null?void 0:G.state)===0&&J?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return z().text},_.x(dPo,{shape:z,
onClick:e}),_.x(_.Sf,{model:{borderRadius:"8px"}}))))},"Lc");
_.zS.idomCompat=!0;var uwC=_.f(function(e){var z=_.T9(function(C){e.onClick(C);return!1});
return _.x(_.l,{cond:e.shouldWrapInButton,then:function(){return _.x("button",{class:"ytChipShapeButtonReset","on:click":z,role:function(){return e.isDropdown()?"combobox":"tab"},
"aria-label":e.accessibilityLabel,"aria-selected":e.selected},e.children)},
else:function(){return e.children}})},"Mc"),dPo=_.f(function(e){var z=e.shape;
var C=e.onClick;var w=_.T9(function(K){C(K);return!1});
return _.x(_.d1,null,_.x(_.fd,{when:function(){return z().type===1}},function(){return _.x(_.mB,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.x(_.fd,{when:function(){return z().type===2}},function(){return _.x("button",{class:"ytChipShapeButtonReset",
"on:click":w},_.x(_.mB,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.x(_.fd,{when:function(){return z().type===0}},function(){return _.x(_.Qw,null)}))},"Nc");_.KU(_.zS,"chip-shape",{props:{data:_.vh}});var Ca=function(){var e=_.V.apply(this,arguments)||this;e.disableDeselectEvent=!1;e.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return e};
_.U(Ca,_.V);_.Y=Ca.prototype;_.Y.onSelectChipCommand=function(e){if(!this.selected&&this.data&&(e=_.r(e,mVc),e.targetId&&e.targetId===this.data.targetId))this.onTap()};
_.Y.onFilterChipTransformCommand=function(e){if(!this.selected&&this.data){var z;(e=(z=_.r(e,qJL))==null?void 0:z.chipUniqueId)&&e===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.Y.dataChanged=function(){var e=this;_.T0(this,function(){e.data&&e.data.isSelected&&!e.selected&&(e.scrollChipIntoView(),e.onTap())})};
_.Y.computeChipStyle=function(e){return e!=null?e:"STYLE_DEFAULT"};
_.Y.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.eA(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.eA(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.Y.onFocus=function(){var e=_.lh().resolve(_.$B(_.V5));e&&e.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.Y.scrollChipIntoView=function(){_.pi(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.lB.Object.defineProperties(Ca.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return sWg({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Ca.prototype.onFocus=Ca.prototype.onFocus;Ca.prototype.onTap=Ca.prototype.onTap;Ca.prototype.dataChanged=Ca.prototype.dataChanged;_.d([_.W(_.pr),_.B("design:type",Object)],Ca.prototype,"ironButtonState",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ca.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Ca.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.cv),_.B("design:type",Object)],Ca.prototype,"ironA11yKeysBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ca.prototype,"disableDeselectEvent",void 0);_.d([_.F(),_.B("design:type",Object)],Ca.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.icon"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ca.prototype,"hasIcon",null);
_.d([_.F({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.B("design:type",String)],Ca.prototype,"chipStyle",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Ca.prototype,"selected",void 0);_.d([_.P("data","selected"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ca.prototype,"chipShapeData",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"dataChanged",null);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"onTap",null);_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ca.prototype,"onFocus",null);_.d([_.fP({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Ca);
_.u(Ca,"yt-chip-cloud-chip-renderer",function(){if(SFT===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;f4L===void 0&&(f4L=document.createElement("template"));var w=f4L;C.call(z,w.content.cloneNode(!0),e.content.firstChild);SFT=e}e=SFT;return e},{mode:2});var g8h=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.DPT=_.f(function(e){function z(){if(g8h.has(e.data().displayType)){var T=!w(),Q;if((Q=e.disableDeselection)==null||!Q.call(e)||T){e.data().selected=T;Q=Object.assign({},X(),{selected:T});J(Q);var m;(m=e.callback)==null||m.call(e,Q,T)}}}
var C=_.kI("chip-view-model",function(T){var Q=e.data().tooltipTargetId,m=_.p3();Q&&_.ZM(m,Q,T);return function(){Al(m,T)}}),w=function(){var T,Q;
return!!(((T=e.selected)==null?void 0:T.call(e))!==void 0?(Q=e.selected)==null?0:Q.call(e):X().selected)},K=_.b(_.zx(e.data)),G=K.next().value;
K=K.next().value;var X=G,J=K,q=_.vF(tDs,function(){return e.data().chipEntityKey||""});
return _.x("chip-view-model",{class:"ytChipViewModelHost",el:C},_.x(_.zS,{data:function(){var T,Q=Object.assign({},X(),{selected:w()}),m=q(),a=(T=e.disableDeselection)==null?void 0:T.call(e);a:switch(Q.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":T=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":T=3;break a;default:T=0}return{text:(m==null?void 0:m.text)||Q.text,state:Q.disabled?1:Q.selected?0:2,type:T,onTap:jW7(Q,C,z,
a),accessibilityLabel:Q.accessibilityLabel||Q.text}}}))},"Oc");
_.DPT.idomCompat={callbacks:{callback:!0}};_.w_=_.f(function(e){e=_.eQ(e,{nextButtonStyle:0});var z=e.data,C=e.callback,w=e.selectionBehavior,K=e.disableChipsScrollAnimation,G=e.nextButtonStyle,X=_.qD("div");e=_.b(_.II(!0,void 0,"VwW6Jc"));var J=e.next().value,q=e.next().value;e=_.b(_.II(!1,void 0,"OIoagd"));var T=e.next().value,Q=e.next().value,m=!1,a=0,n=function(){switch(G()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.Nm(function(){q(L());Q(h())});
e=_.b(_.zx(function(){var Jk={};return z().autoselectedChipIndex!=null?(Jk[z().autoselectedChipIndex]=!0,Jk):{}}));
var H=e.next().value,I=e.next().value,L=function(){var Jk=X.value;return Jk==null||Jk.scrollLeft-1<=0},h=function(){var Jk=X.value;
return Jk==null?!1:Jk.scrollLeft+1>=(Jk==null?NaN:Jk.scrollWidth)-(Jk==null?NaN:Jk.clientWidth)},E=function(){return z().isHorizontallyScrollable},N=function(Jk){X.value!=null&&(_.j5("HTML_DIR")==="rtl"&&(Jk=-Jk),X.value.scrollBy({left:Jk,
behavior:(K==null?0:K())?"instant":"smooth"}))},D=function(){N(-320)},g=function(){N(320)},y=_.T9(function(Jk){m=!0;
a=Jk.clientX}),Z=_.T9(function(Jk){if(m){Jk=Jk.clientX;
var v1=Jk-a;a=Jk;var lg;(lg=X.value)==null||lg.scrollBy({left:-v1})}}),YN=_.T9(function(){var Jk=L(),v1=h();
Jk!==J()&&q(Jk);v1!==T()&&Q(v1)});
_.Qr("pointerup",function(){m&&(m=!1)});
return _.x("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.x(_.cp,{contentId:function(){return z().contentId},
useModernStyle:!0},function(){var Jk={},v1={};return _.x("div",null,_.x(_.l,{cond:function(){return z().title},
then:function(){return _.x("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.x("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return z().title}),_.x(_.PF,{data:function(){return z().overflowButton}},{buttonViewModel:_.iz}))}}),_.x("div",{class:_.qT("ytChipsShelfViewModelChipsShelfContent",n)},_.x(_.l,{cond:function(){return z().previousButton},
then:function(){var lg={};return _.x("div",{class:_.qT("ytChipsShelfViewModelLeftArrowContainer",(lg.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return J()},lg))},_.x(_.PF,{data:function(){return z().previousButton}},{buttonViewModel:function(M5){return _.x(_.iz,{data:M5.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:D})}}))}}),_.x("div",{el:X,
"on:pointerdown":y,"on:pointermove":Z,"on:scroll":YN,class:_.qT("ytChipsShelfViewModelChipsScrollContainer",(Jk.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=E,Jk))},_.x("div",{class:_.qT("ytChipsShelfViewModelChipsContainer",(v1.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=E,v1.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,v1)),role:"tablist"},_.x(_.PF,{data:function(){return z().contents}},{chipViewModel:function(lg,M5){return _.x("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.x(_.DPT,{data:lg.data,
callback:function(fo,ug){var sE=M5(),w6,qY=(w6=w==null?void 0:w())!=null?w6:0;qY===1||qY===2?(w6={},I((w6[sE]=ug,w6))):qY===0&&(w6={},I(Object.assign({},H(),(w6[sE]=ug,w6))));C==null||C(fo,ug,sE)},
disableDeselection:function(){return(w==null?void 0:w())===1},
selected:function(){return!!H()[M5()]}}))}}))),_.x(_.l,{cond:function(){return z().nextButton},
then:function(){var lg={};return _.x("div",{class:_.qT("ytChipsShelfViewModelRightArrowContainer",(lg.ytChipsShelfViewModelRightArrowContainerIsHidden=T,lg))},_.x(_.PF,{data:function(){return z().nextButton}},{buttonViewModel:function(M5){return _.x(_.iz,{data:M5.data,
className:"ytChipsShelfViewModelRightArrow",onClick:g})}}))}})))}))},"Qc");
_.w_.idomCompat={callbacks:{callback:!0}};var iFS=_.f(function(e){var z=e.data;var C=e.showChips;var w=e.isUpdateInProgress;var K=e.chipClickCallback;var G=function(){return C()&&!w()};
e={};return _.x("ytd-ai-response-box-view-model",{class:_.qT("ytdAiResponseBoxViewModelHost")},_.x("div",{class:_.qT("ytdAiResponseBoxViewModelResponseMessageContainer",(e.ytdAiResponseBoxViewModelResponseMessageContainerHidden=G,e))},_.x(_.l,{cond:w,then:function(){return _.x("div",null,_.x(_.U2,{text:function(){return z().responsePendingMessage}}))},
else:function(){return _.x(_.Qw,null,_.x(_.l,{cond:function(){var X;return(X=z().responseMessageIcon)==null?void 0:X.iconType},
then:function(X){return _.x("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.x(_.mB,{icon:X}))}}),_.x("div",null,_.x(_.U2,{text:function(){return z().responseMessage}})))}})),_.x(_.PF,{data:function(){return z().chipsShelf}},{chipsShelfViewModel:function(X){X=X.data;
var J={};return _.x("div",{class:_.qT("ytdAiResponseBoxViewModelChipsShelfContainer",(J.ytdAiResponseBoxViewModelChipsShelfContainerShown=G,J))},_.x(_.w_,{data:X,selectionBehavior:3,nextButtonStyle:1,callback:K}))}}))},"Rc");var NcC;NcC=Object.assign({},{continuation:wSS,download:cag,canvas:s6N,reportChannelAbuse:XSs,ui:tws,share:JFa,talkToRecs:xja,watch:mS,ypc:aqL,radioButtonGroup:ixL,collabInviteLink:dwo},C_T,{voiceSearch:yuk,shorts:QJ});_.sAT=ET(NcC);_.BcT=FW(_.sAT);_.tda=(0,_.BcT)(_.sAT.talkToRecs,{talkToRecsStateSelector:function(e){return e}});_.KU(_.f(function(e){var z=_.b((0,_.XsY)(e.data)).next().value;e=_.b(_.II(!1,void 0,"wK1hV"));var C=e.next().value,w=e.next().value;e=_.b(_.II(!1,void 0,"QNzWBf"));var K=e.next().value,G=e.next().value;e=_.b(B01());var X=e.next().value;e=e.next().value;var J=_.rG(_.tda.talkToRecsStateSelector),q=_.b(_.II("",void 0,"qkUInc")),T=q.next().value,Q=q.next().value;q=_.b(_.II(!1,void 0,"D8Tnjb"));var m=q.next().value,a=q.next().value,n=_.b(_.II(!1,void 0,"AAxskd"));q=n.next().value;var H=n.next().value;
n=_.b(_.II(!1,void 0,"fPqlme"));var I=n.next().value,L=n.next().value;n=_.b(_.II(!1,void 0,"exlayb"));var h=n.next().value,E=n.next().value,N=_.kI("div");n=_.b(_.II(void 0,void 0,"K6Q9Je"));var D=n.next().value,g=n.next().value,y=void 0,Z=function(Pa){Pa!==C()&&(G(!0),w(Pa),y&&clearTimeout(y),y=setTimeout(function(){G(!1)},300))},YN=function(){if(D()!==void 0){var Pa=D();
Z(window.scrollY>Pa)}},Jk=function(){var Pa;
g((Pa=N.value)==null?void 0:Pa.offsetHeight);X("yt-feed-filter-chip-bar-resize")};
_.sg(function(){var Pa=z().onVisible;Pa&&_.NF(Pa,{});var $N,N5,$L;Q(($L=(N5=cPg(z(),J()))!=null?N5:($N=z().textInputValue)==null?void 0:$N.content)!=null?$L:"");a(!!z().welcomeBannerTitle&&!T());Jk();document.addEventListener("scroll",YN);_.BC(function(){document.removeEventListener("scroll",YN);y&&clearTimeout(y)})});
_.sH(function(){var Pa=cPg(z(),J());Pa!==void 0&&Pa!==T()&&Q(Pa)},"aa4Ijf");
_.sH(function(){m();Jk()},"y3znBd");
n=_.T9(function(){L(!0);H(!0)});
var v1=_.T9(function(){H(!1)});
_.sH(function(){z()&&(L(!1),E(!1))},"D45fg");
var lg=function(Pa){var $N=z().onUpdateText;$N&&_.NF($N,{form:{userQuery:Pa}})},M5=_.dJ(function(Pa){lg(Pa)},150),fo=_.T9(function(Pa){M5(Pa.target.value);
return!1});
_.sH(function(){var Pa=cPg(z(),J());Pa&&Pa!==T()&&Q(Pa)},"dV4bSc");
var ug=function(){E(!0);a(!1)},sE=function(){var Pa=_.r(z().submitButton,_.H7);
if(Pa==null?0:Pa.trackingParams){var $N=_.v9(Pa.trackingParams),N5=_.Pr();N5&&$N&&_.jA(N5,$N,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(Pa=Pa==null?void 0:Pa.onTap)_.NF(Pa),ug()},w6=_.T9(function(Pa){Pa.key==="Enter"&&(lg(Pa.target.value.trim()),sE());
return!1}),qY=function(){sE()},y1=_.T9(function(){X("yt-feed-customization-scroll-up")}),Qa={},Ha={},OU={},ab={};
return _.x("ytd-feed-customization-form-view-model",{class:_.qT("ytdFeedCustomizationFormViewModelHost",(Qa.ytdFeedCustomizationFormViewModelHostCollapsed=C,Qa)),el:_.ej(e)},_.x("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:N},_.x("div",{class:_.qT("ytdFeedCustomizationFormViewModelExpandedContent",(Ha.ytdFeedCustomizationFormViewModelNotShown=function(){return C()&&!K()},Ha))},_.x(_.l,{cond:m,
then:function(){return _.x("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.x("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.x(_.U2,{text:function(){return z().welcomeBannerTitle}})),_.x("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.x(_.U2,{text:function(){return z().welcomeBannerSubtitle}})))}}),_.x("div",{class:_.qT("ytdFeedCustomizationFormViewModelInputContainer",(OU.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
q,OU))},_.x("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var Pa;return(Pa=z().textInputPlaceholder)==null?void 0:Pa.content},
"prop:value":T,"on:focus":n,"on:blur":v1,"on:input":fo,"on:keyup":w6,maxlength:250}),_.x(_.l,{cond:function(){return!!T()},
then:function(){return _.x(_.PF,{data:function(){return z().clearButton}},{buttonViewModel:function(Pa){return _.x("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.x(_.iz,{data:Pa.data}))}})}}),_.x(_.l,{cond:function(){return h()},
then:function(){return _.x(_.PF,{data:function(){return z().inProgressButton}},{buttonViewModel:function(Pa){return _.x("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.x(_.iz,{data:Pa.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.x(_.PF,{data:function(){return z().submitButton}},{buttonViewModel:function(Pa){return _.x("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.x(_.iz,{data:Pa.data,
onClick:ug}))}})}}),_.x(_.PF,{data:function(){return z().menuButton}},{buttonViewModel:function(Pa){return _.x("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.x(_.iz,{data:Pa.data}))}})),_.x(_.PF,{data:function(){return z().contents}},{aiResponseBoxViewModel:function(Pa){return _.x("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.x(iFS,{data:Pa.data,
showChips:I,isUpdateInProgress:h,chipClickCallback:qY}))}})),_.x("div",{class:_.qT("ytdFeedCustomizationFormViewModelCollapsedContent",(ab.ytdFeedCustomizationFormViewModelNotShown=function(){return!C()&&!K()},ab)),
"on:click":y1},_.x("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var Pa;return T()||((Pa=z().textInputPlaceholder)==null?void 0:Pa.content)}))))},"Wc"),"ytd-feed-customization-form-view-model",{props:{data:_.vh}});var gxg=_.cF.persistentPanelVisibleSelector,Ka=function(){var e=_.V.apply(this,arguments)||this;e.isDarkTheme=!1;e.notSticky=!1;e.transparentBackground=!1;e.shouldHide=!1;e.disableSticky=!1;e.fluidWidth=!1;e.isClipList=!1;e.defaultChipIndex=0;e.hasSelectedChipContent=!1;e.isPlaylist=!1;e.playlistVotingAnimationEnabled=_.M("web_enable_voting_animation");e.toolbarHeight=0;e.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(Ka,_.V);_.Y=Ka.prototype;
_.Y.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}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.Y.attached=function(){var e=this;document.addEventListener("scroll",_.lE(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.lE(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var z;this.toolbarHeight=((z=document.querySelector("ytd-masthead"))==null?void 0:z.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(C){e.handleIntersect(C)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){e.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.Y.detached=function(){var e;(e=this.intersectionObserver)==null||e.disconnect();var z;(z=this.resizeObserver)==null||z.disconnect();document.removeEventListener("scroll",_.lE(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.lE(this,this.onFeedFilterChipBarResize))};
_.Y.dataChanged=function(){var e=this,z,C,w=(z=this.data)==null?void 0:(C=z.contents)==null?void 0:C.findIndex(function(G){var X;return!((X=_.r(G,UwX))==null?0:X.navigationEndpoint)});
w&&(this.defaultChipIndex=w);this.updating=!0;var K=this.findSelectedChipIndex();this.selectedIndex!==K&&(this.selectedIndex=-1);_.T0(this,function(){e.selectedIndex=K;e.updateSelectedChipContent(e.selectedIndex);e.updating=!1;e.ytScrollableChipCloudBehavior.reset()})};
_.Y.findSelectedChipIndex=function(){var e;if((e=this.data)==null||!e.contents)return 0;e=this.data.contents;for(var z=0;z<e.length;z++){var C=void 0;if((C=_.r(e[z],UwX))==null?0:C.isSelected)return z}return 0};
_.Y.computeStyle=function(e){return e};
_.Y.handleChipCloudChipSelectAction=function(e){e=this.JSC$16395_chipsSelector.indexOf(e);e>-1&&(this.JSC$16395_chipsSelector.selectIndex(e),this.updateSelectedChipContent(e))};
_.Y.updateSelectedChipContent=function(e){var z;if((z=this.data)==null||!z.contents||e<0||e>=this.data.contents.length)this.selectedChipContent=void 0;else{var C;this.selectedChipContent=(C=_.r(this.data.contents[e],UwX))==null?void 0:C.content}};
_.Y.handleChipCloudChipDeselectAction=function(){if(_.M("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var e,z,C,w=(C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[this.defaultChipIndex],UwX))==null?void 0:C.navigationEndpoint;w&&_.eA(this.hostElement,"yt-browse-section-list-reload-endpoint",[w]);this.JSC$16395_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.Y.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.Y.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.Y.updateDynamicHeight=function(){var e=this;this.hasSelectedChipContent&&!this.notSticky?_.T0(this,function(){var z=_.XC(e.hostElement).querySelector("#chips-wrapper");z&&_.T8(e.hostElement,{"--ytd-chips-bar-dynamic-height":z.clientHeight+"px"})}):_.T8(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.Y.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.Y.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.Y.onResize=function(){this.updateLayout()};
_.Y.updateLayout=function(){var e=this.ytScrollableChipCloudBehavior;_.T0(e,e.setContainerWidthDiff);e=this.ytScrollableChipCloudBehavior;_.T0(e,e.setButtonsState)};
_.Y.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.Y.handleIntersect=function(e){this.notSticky=this.isChannelPageGrid||this.disableSticky||e[0].intersectionRatio===1};
_.Y.updateDimensions=function(){var e=this.ytRendererBehavior.parentComponent;if(e){var z,C=(z=e.headerElement)!=null?z:e;_.T8(this.hostElement,{"--ytd-rich-grid-chips-bar-width":C.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.Y.updateSelectedIndexFromBinding=function(e){this.selectedIndex=e.detail.value};
_.Y.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var e;(e=this.sortFilterHeaderRendererElement)==null||e.setAttribute("is-playlist-page-with-filters","")}};
_.Y.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(Q_T(!this.notSticky))};
_.lB.Object.defineProperties(Ka.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 e,z,C=(e=this.data)==null?void 0:(z=e.contents)==null?void 0:z.find(function(w){return _.r(w,RJh)});
return{sortFilterHeaderRenderer:_.r(C,RJh)}}}});
Ka.prototype.dispatchChipBarIsSticky=Ka.prototype.dispatchChipBarIsSticky;Ka.prototype.isPlaylistPageChanged=Ka.prototype.isPlaylistPageChanged;Ka.prototype.updateChipBarWidthAndTop=Ka.prototype.updateChipBarWidthAndTop;Ka.prototype.onResize=Ka.prototype.onResize;Ka.prototype.onPersistentPanelVisibleChanged=Ka.prototype.onPersistentPanelVisibleChanged;Ka.prototype.onGuideIsExpandedChanged=Ka.prototype.onGuideIsExpandedChanged;Ka.prototype.updateDynamicHeight=Ka.prototype.updateDynamicHeight;
Ka.prototype.onSelectedChipContentChanged=Ka.prototype.onSelectedChipContentChanged;Ka.prototype.dataChanged=Ka.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ka.prototype,"actionHandlerBehavior",void 0);
_.d([_.W(_.oY),_.B("design:type",Object)],Ka.prototype,"ironResizableBehavior",void 0);_.d([_.W(),_.B("design:type",eR)],Ka.prototype,"ytScrollableChipCloudBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Ka.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ka.prototype,"data",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],Ka.prototype,"selectedIndex",void 0);_.d([_.F({value:320}),_.B("design:type",Number)],Ka.prototype,"scrollDistance",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"isDarkTheme",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"notSticky",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"transparentBackground",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.B("design:type",String)],Ka.prototype,"componentStyle",void 0);
_.d([_.F({selector:_.Vfk}),_.B("design:type",Boolean)],Ka.prototype,"guideIsExpanded",void 0);_.d([_.F({selector:gxg}),_.B("design:type",Boolean)],Ka.prototype,"persistentPanelVisible",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"shouldHide",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"disableSticky",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"fluidWidth",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"isClipList",void 0);_.d([_.F(),_.B("design:type",Object)],Ka.prototype,"defaultChipIndex",void 0);_.d([_.F(),_.B("design:type",Object)],Ka.prototype,"selectedChipContent",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"hasSelectedChipContent",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ka.prototype,"isPlaylist",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ka.prototype,"playlistVotingAnimationEnabled",void 0);_.d([_.nP("#chips"),_.B("design:type",Object)],Ka.prototype,"JSC$16395_chipsSelector",void 0);_.d([_.nP("ytd-sort-filter-header-renderer"),_.B("design:type",HTMLElement)],Ka.prototype,"sortFilterHeaderRendererElement",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Ka.prototype,"updating",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"dataChanged",null);_.d([_.mi("selectedChipContent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"onSelectedChipContentChanged",null);_.d([_.mi("hasSelectedChipContent","notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"updateDynamicHeight",null);
_.d([_.mi("guideIsExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"onGuideIsExpandedChanged",null);_.d([_.mi("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"onPersistentPanelVisibleChanged",null);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"onResize",null);
_.d([_.Ux("isChannelPageGrid","disableSticky","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"updateChipBarWidthAndTop",null);_.d([_.P("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ka.prototype,"isChannelPageGrid",null);_.d([_.P("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ka.prototype,"isHashtagLandingPage",null);
_.d([_.mi("isPlaylistPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"isPlaylistPageChanged",null);_.d([_.P("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ka.prototype,"isPlaylistPage",null);_.d([_.P("componentStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ka.prototype,"isDisableDeselectEvent",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ka.prototype,"sortFilterHeaderRendererData",null);_.d([_.F({reflectToAttribute:!0,selector:_.NX4}),_.B("design:type",String)],Ka.prototype,"frostedGlassMode",void 0);_.d([_.mi("notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ka.prototype,"dispatchChipBarIsSticky",null);_.d([_.SL({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Ka);
_.u(Ka,"ytd-feed-filter-chip-bar-renderer",function(){if(Vdg!==void 0)return Vdg;var e=document.createElement("template");_.v(e,'\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 id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Vdg=e},{mode:1});var jAc;var yZs=_.f(function(e){var z=e.data;var C=e.buttonIndex;var w=e.selectedIndex;var K=e.onSelect;var G=function(){return C()===w()},X=function(){var J,q;
return(q=(J=z().text)==null?void 0:J.content)!=null?q:""};
e=_.BTo();return _.x("yt-toggleable-image-button-view-model",{class:function(){var J={};J=(J.toggleableImageButtonViewModelHost=!0,J[""]=!0,J.toggleableImageButtonViewModelSemiTransparent=w()!==-1&&!G(),J);return _.VA(J)},
tabindex:0,"aria-label":X,"aria-pressed":G,role:"button","on:keydown":e,"on:click":_.T9(function(){K(z().onSubmitCommand);return!1})},_.x(_.l,{cond:function(){return z().logo},
then:function(J){return _.x(_.Zf,{data:J,className:function(){var q={};q=(q.toggleableImageButtonViewModelImage=!0,q.toggleableImageButtonViewModelCircularRadius=!(!z().backgroundColor||!z().backgroundColorDarkMode),q.toggleableImageButtonViewModelGradientRing=!!(G()&&z().backgroundColor&&z().backgroundColorDarkMode),q);return _.VA(q)},
alt:X,useWidth:!1,style:function(){if(G()&&z().backgroundColor&&z().backgroundColorDarkMode){var q=V$(Number(z().backgroundColorDarkMode),"1");var T=V$(Number(z().backgroundColor),"1");q="background: linear-gradient(180deg,"+q+","+T+") border-box;"}else q="";return q}})}}),_.x(_.Sf,{model:{borderRadius:"16px"}}),_.x("p",{class:function(){var J={};
J=(J.toggleableImageButtonViewModelLabel=!0,J.toggleableImageButtonViewModelBoldText=G(),J);return _.VA(J)}},_.x(_.U2,{text:function(){return z().text}})))},"Xc");
yZs.idomCompat=!0;var AZa=_.f(function(e){var z=e.data;e=_.b(_.II({index:-1,command:{}},void 0,"GM3umb"));var C=e.next().value,w=e.next().value;return _.x("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.x("div",{class:"nudgeFormViewModelFormOptions"},_.x(_.PF,{data:function(){return z().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(K,G){return _.x(yZs,{data:K.data,buttonIndex:G,selectedIndex:function(){return C().index},
onSelect:function(X){w({index:G(),command:X})}})}})),_.x(_.U2,{text:function(){return z().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.x("div",{class:"nudgeFormViewModelSubmit"},_.x(_.PF,{data:function(){return z().submitButton}},{buttonViewModel:function(K){return _.x(cZc,{data:K.data,
isDisabled:function(){return C().index===-1},
onClick:function(){_.NF(C().command)}})}})))},"Yc");
AZa.idomCompat=!0;var cZc=_.f(function(e){var z=_.hG(function(){return Object.assign({},e.data(),{state:e.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.x(_.iz,{data:z,onClick:e.onClick})},"Zc");_.KU(AZa,"yt-nudge-form-view-model",{props:{data:_.vh}});var o_=function(){var e=_.V.apply(this,arguments)||this;e.roundedContainer=!0;e.buttonUpdate=_.M("web_modern_buttons");e.isDarkMode=!1;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return e};
_.U(o_,_.V);_.Y=o_.prototype;_.Y.computeNudgeStyle=function(e){return e?"modernized-nudge":""};
_.Y.handleDarkModeToggledAction=function(e){this.isDarkMode=e};
_.Y.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.Y.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"}}}};
_.Y.computeIsHorizontalButtons=function(e){return e?!!e.applyModernizedStyle&&!!e.enableHorizontalButtons&&!!e.secondaryButton:!1};
_.lB.Object.defineProperties(o_.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=(e=this.data)==null?void 0:e.backgroundStyle)!=null?z:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=(e=this.data)==null?void 0:e.contentsLocation)!=null?z:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.lightIconImage)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],o_.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],o_.prototype,"actionHandlerBehavior",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("isHideEnclosingAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],o_.prototype,"isHidden",null);_.d([_.F(),_.B("design:type",Object)],o_.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],o_.prototype,"roundedContainer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],o_.prototype,"buttonUpdate",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.B("design:type",String)],o_.prototype,"nudgeStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.trimStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],o_.prototype,"trimStyle",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.backgroundStyle"),_.B("design:type",String),_.B("design:paramtypes",[])],o_.prototype,"backgroundStyle",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data.contentsLocation"),_.B("design:type",String),_.B("design:paramtypes",[])],o_.prototype,"contentsLocation",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.disableDropShadow"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],o_.prototype,"noShadow",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.lightIconImage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],o_.prototype,"noIcon",null);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.B("design:type",Boolean)],o_.prototype,"isHorizontalButtons",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],o_.prototype,"isDarkMode",void 0);_.d([_.SL({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],o_);
_.u(o_,"ytd-feed-nudge-renderer",function(){if(jAc!==void 0)return jAc;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jAc=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var ZFg;var p44;var GS=function(){var e=_.V.apply(this,arguments)||this;e.collapsed=!1;e.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return e};
_.U(GS,_.V);GS.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"}}}};
GS.prototype.handleRatingSelect=function(){var e;((e=this.data)==null?0:e.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
GS.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],GS.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],GS.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.a0),_.B("design:type",Object)],GS.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GS.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],GS.prototype,"collapsed",void 0);_.d([_.SL({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],GS);
_.u(GS,"ytd-slimline-survey-renderer",function(){if(p44!==void 0)return p44;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return p44=e},{mode:1});var eYY;var YD=function(){return _.V.apply(this,arguments)||this};
_.U(YD,_.V);YD.prototype.maybeGetBackgroundColor=function(e){return this.isDarkMode?e.section2Color:e.section3Color};
YD.prototype.colorPaletteChanged=function(){var e=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;e&&(e==null?0:e.secondaryTitleColor)&&this.maybeGetBackgroundColor(e)?(this.hostElement.style.backgroundColor=_.EG(this.maybeGetBackgroundColor(e)),this.hostElement.style.color=_.EG(e.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
YD.prototype.colorPaletteChanged=YD.prototype.colorPaletteChanged;_.d([_.W(_.QX),_.B("design:type",Object)],YD.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],YD.prototype,"data",void 0);_.d([_.F({selector:function(e){return e.ui.darkModeIsEnabled}}),
_.B("design:type",Boolean)],YD.prototype,"isDarkMode",void 0);_.d([_.F(),_.B("design:type",Object)],YD.prototype,"lightColorPalette",void 0);_.d([_.F(),_.B("design:type",Object)],YD.prototype,"darkColorPalette",void 0);_.d([_.mi("darkColorPalette","lightColorPalette","data","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YD.prototype,"colorPaletteChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],YD);
_.u(YD,"ytd-endorsement-header-renderer",function(){if(eYY!==void 0)return eYY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return eYY=e},{mode:1});_.KU(_.Qh,"yt-decorated-avatar-view-model",{props:{data:_.vh,className:_.vh}});_.b_=new _.Mt("VIEW_TRANSITION_MANAGER_TOKEN");var XQ=function(){var e=_.V.apply(this,arguments)||this;e.fullHeight=_.M("web_rich_grid_media_full_height");e.showChannelAvatar=!0;e.hasPlaylistThumbnail=!1;e.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};e.registerThumbnailForPageTransition=function(){_.M("web_thumbnail_to_watch_transition")&&_.zY4(_.lh().resolve(_.b_),e.thumbnail)};
return e};
_.U(XQ,_.V);_.Y=XQ.prototype;
_.Y.configureRendererStamper=function(){return{lazyLoadMenu:C9,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.shouldLazyLoadMenu=function(){var e=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.M("kevlar_modern_downloads_page")||!e};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16419_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:this.JSC$16419_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.Y.getVideoPreviewOpts=function(){var e={},z;if((z=this.data)==null?0:z.multipleInlinePlaybackEndpoint)e=V94;this.isRadio&&(e=FZT);return e};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$16419_inlinePreviewHoverListener)==null||on(e)};
_.Y.getOwner=function(){var e,z,C;return((e=this.data)==null?void 0:(z=e.channelThumbnailSupportedRenderers)==null?void 0:z.channelThumbnailWithLinkRenderer)||_.r((C=this.data)==null?void 0:C.showProviderChannelThumbnail,r16)};
_.Y.updateLockupSize=function(){var e;((e=this.getOwner())==null?0:e.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.Y.getFeedbackEndpoint=function(e){if(_.r(e,_.iH))return e;var z,C;e=(C=(z=_.r(e,_.Gj))==null?void 0:z.commands)!=null?C:[];z=_.b(e);for(C=z.next();!C.done;C=z.next())if(C=this.getFeedbackEndpoint(C.value))return C;return null};
_.Y.computeNavigationEndpoint=function(e){return iHk(e==null?void 0:e.navigationEndpoint)};
_.Y.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var e=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(e)!==JSON.stringify(this.data)&&this.set("data",e)}};
_.Y.onDataChanged=function(){var e=this,z=this.getOwner();if(z){this.set("data.owner",z);var C,w,K,G,X,J=((C=this.data)==null?void 0:(w=C.shortBylineText)==null?void 0:(K=w.runs)==null?void 0:(G=K[0])==null?void 0:G.text)||((X=z.name)==null?void 0:X.simpleText);this.set("data.owner.title",J)}var q,T,Q,m,a,n;z=((q=this.data)==null?void 0:(T=q.thumbnailRenderer)==null?void 0:T.playlistVideoThumbnailRenderer)||((Q=this.data)==null?void 0:(m=Q.thumbnailRenderer)==null?void 0:m.playlistCustomThumbnailRenderer)||
((a=this.data)==null?void 0:(n=a.thumbnailRenderer)==null?void 0:n.showCustomThumbnailRenderer);var H;((H=this.data)==null?0:H.thumbnail)||!z||this.set("data.thumbnail",z.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){e.updateLockupSize()});
var I;if(q=((I=this.data)==null?void 0:I.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(q);var L;((L=this.dismissActionToReplayEntity)==null?0:L.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.Y.onHiddenChanged=function(){this.updateLockupSize()};
_.Y.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.eA(this.hostElement,"yt-terminate-video-preview-action");else{var e;(e=this.videoTitleLink)==null||e.focus()}};
_.Y.metadataColorChanged=function(){var e;if(this.metadataColor&&((e=this.videoTitle)==null?0:e.style))this.videoTitle.style.color=_.EG(this.metadataColor);else{var z,C;!this.metadataColor&&((z=this.videoTitle)==null?0:(C=z.style)==null?0:C.color)&&(this.videoTitle.style.color="")}};
_.Y.onDetailsClick=function(e){var z=this.computedNavigationEndpoint;z&&(_.zi(_.cJ(e),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.pi(this.hostElement,"yt-navigate",{endpoint:z}))};
_.Y.onRendererTap=function(){this.registerThumbnailForPageTransition();var e,z,C=((e=this.data)==null?void 0:e.serviceEndpoint)||this.getFeedbackEndpoint((z=this.data)==null?void 0:z.navigationEndpoint);C&&_.r(C,_.iH)&&this.ytComponentBehavior.resolveCommand(C)};
_.Y.onMouseDown=function(e){var z=e.target,C=this.computedNavigationEndpoint,w;e=z.href||((w=_.r(C==null?void 0:C.commandMetadata,_.XV))==null?void 0:w.url);w=z.data||C;e&&w&&OI1(e,w)};
_.Y.computeVideoTitleText=function(){var e;if((e=this.data)==null?0:e.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.Y.computeHasPlaylistThumbnail=function(e){var z,C,w,K,G;if((((z=e.thumbnailRenderer)==null?0:z.playlistVideoThumbnailRenderer)||((C=e.thumbnailRenderer)==null?0:C.playlistCustomThumbnailRenderer)||((w=e.thumbnailRenderer)==null?0:w.showCustomThumbnailRenderer)||((K=e.thumbnailRenderer)==null?0:K.playlistVideoThumbnailRenderer)||((G=e.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer))&&e.thumbnailOverlays)for(z=0;z<e.thumbnailOverlays.length;z++)if(C=void 0,(C=e.thumbnailOverlays[z])==
null?0:C.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.lB.Object.defineProperties(XQ.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.M("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var e;return(e=this.data)==null?void 0:e.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var e;return(e=this.data)==null?void 0:e.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$16419_inlinePreviewHoverListener)==null?0:MN(e))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.b9N(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:e.videoId)||((z=this.data)==null?void 0:z.playlistId)||""}}});
XQ.prototype.onMouseDown=XQ.prototype.onMouseDown;XQ.prototype.metadataColorChanged=XQ.prototype.metadataColorChanged;XQ.prototype.onIsDismissedChanged=XQ.prototype.onIsDismissedChanged;XQ.prototype.onHiddenChanged=XQ.prototype.onHiddenChanged;XQ.prototype.onDataChanged=XQ.prototype.onDataChanged;XQ.prototype.handleReloadDownloadsInfo=XQ.prototype.handleReloadDownloadsInfo;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],XQ.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],XQ.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],XQ.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],XQ.prototype,"ytdReduxBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],XQ.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],XQ.prototype,"entitySelectorType",void 0);_.d([_.F(),_.B("design:type",Boolean)],XQ.prototype,"noEndpoints",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],XQ.prototype,"isRadio",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],XQ.prototype,"miniMode",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],XQ.prototype,"fullHeight",void 0);
_.d([_.F(),_.B("design:type",Boolean)],XQ.prototype,"showDarkVideoMetadata",void 0);_.d([_.F(),_.B("design:type",Boolean)],XQ.prototype,"showLightVideoMetadata",void 0);_.d([_.F(),_.B("design:type",Number)],XQ.prototype,"metadataColor",void 0);_.d([_.F(),_.B("design:type",Object)],XQ.prototype,"showChannelAvatar",void 0);_.d([_.F(),_.B("design:type",Boolean)],XQ.prototype,"hidden",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],XQ.prototype,"showYtInteraction",void 0);
_.d([_.F(),_.B("design:type",String)],XQ.prototype,"dismissedContentId",void 0);_.d([_.F({selectorArgs:["dismissedContentId"],selector:xR7}),_.B("design:type",Object)],XQ.prototype,"dismissActionToReplayEntity",void 0);
_.d([_.F({selectorArgs:["entitySelectorType","mediaId"],selector:function(e,z,C){if(_.M("kevlar_modern_downloads_page")&&C&&z&&z!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(z){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var w=gq1(e,C);if(w){z=_.dk(e,C);var K=i7(e,C),G=oVN(e,C);e=Nq(e,C);var X=uGg(w,z,K,G);K=X.shortViewCountText;var J=X.publishedTimeText;X=X.badges;var q=e>0;G=fCE(w,z,G,e);w=_.HH(z)||z==="TRANSFER_STATE_FAILED"||z==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!rk(w.policyEntity)?
void 0:d44(C,e,w.videoEntity.lengthSeconds);z==="TRANSFER_STATE_PAUSED_BY_USER"&&C&&!_.M("dl_resume_click_killswitch")&&(w={offlineVideoEndpoint:{videoId:C,action:"ACTION_RESUME"}});C={shortViewCountText:K,publishedTimeText:J,badges:X,isWatched:q,navigationEndpoint:w,thumbnailOverlays:G}}else C=void 0;return C;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(z=jQg(e,C))if(w=_.Dd(e,C),G=_.yY8(e,C),w!=="TRANSFER_STATE_UNKNOWN"){C=SW4(z,w,G,C,_.SJ(e));break a}C=void 0}return C;default:_.AX(new _.uh("Error: entitySelectorType defined but not matched in selector.",
e,z))}}}),
_.B("design:type",Object)],XQ.prototype,"entityDrivenState",void 0);_.d([_.F({computed:"computeVideoTitleText(data)"}),_.B("design:type",Object)],XQ.prototype,"videoTitleText",void 0);_.d([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],XQ.prototype,"hasPlaylistThumbnail",void 0);_.d([_.F({computed:"computeNavigationEndpoint(data)"}),_.B("design:type",Object)],XQ.prototype,"computedNavigationEndpoint",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],XQ.prototype,"typographyBump",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("typographyBump"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XQ.prototype,"typographyBumpV2",null);_.d([_.nP("#video-title"),_.B("design:type",HTMLElement)],XQ.prototype,"videoTitle",void 0);_.d([_.nP("#video-title-link"),_.B("design:type",HTMLElement)],XQ.prototype,"videoTitleLink",void 0);
_.d([_.nP("#thumbnail"),_.B("design:type",HTMLElement)],XQ.prototype,"thumbnail",void 0);_.d([_.nP("#dismissible"),_.B("design:type",HTMLElement)],XQ.prototype,"JSC$16419_dismissibleMedia",void 0);_.d([_.P("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],XQ.prototype,"lazyLoadMenu",null);_.d([_.P("data.menu"),_.B("design:type",Object),_.B("design:paramtypes",[])],XQ.prototype,"immediateLoadMenu",null);
_.d([_.Ux("entityDrivenState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XQ.prototype,"handleReloadDownloadsInfo",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XQ.prototype,"onDataChanged",null);_.d([_.Ux("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XQ.prototype,"onHiddenChanged",null);
_.d([_.mi("isDismissed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XQ.prototype,"onIsDismissedChanged",null);_.d([_.mi("metadataColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],XQ.prototype,"metadataColorChanged",null);_.d([_.Qi("mousedown"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],XQ.prototype,"onMouseDown",null);
_.d([_.P("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XQ.prototype,"isHovered",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],XQ.prototype,"useAvatar",null);_.d([_.P("data","entitySelectorType"),_.B("design:type",String),_.B("design:paramtypes",[])],XQ.prototype,"mediaId",null);_.d([_.SL({is:"ytd-rich-grid-media",disableElementRegistration:!0})],XQ);
var CPU=_.Yp()(XQ,"ytd-rich-grid-media",function(){if(ZFg!==void 0)return ZFg;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ZFg=e},{mode:_.bA("kevlar_poly_si_batch_j072")?1:2});var wgC;var JF=function(){var e=_.V.apply(this,arguments)||this;e.removeMaxWidth=!0;e.insetMetadata=!1;return e};
_.U(JF,_.V);_.Y=JF.prototype;_.Y.configureRendererStamper=function(){return{innerMenu:C9,outerMenu:Object.assign({},C9,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.onDataChanged=function(){var e,z=((e=this.data)==null?void 0:e.trackingParams)||"";z&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(z));var C;((C=this.dismissActionToReplayEntity)==null?0:C.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16424_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:this.JSC$16424_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:fXL})};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$16424_inlinePreviewHoverListener)==null||on(e)};
_.Y.onRendererTap=function(){var e,z,C=(e=this.data)==null?void 0:(z=e.serviceEndpoints)==null?void 0:z[0];_.r(C,_.iH)&&this.componentBehavior.resolveCommand(C)};
_.Y.onDetailsClick=function(e){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint;C&&(_.zi(_.cJ(e),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(C))};
_.Y.onShow=function(){var e=this.data;e.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(e.onFirstVisibleCommand),delete e.onFirstVisibleCommand)};
_.lB.Object.defineProperties(JF.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var e;return this.insetMetadata?void 0:(e=this.data)==null?void 0:e.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var e;return this.insetMetadata?(e=this.data)==null?void 0:e.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var e=this.data;if(e!=null&&e.badge&&(e=_.r(e.badge,Q6c))){var z,C,w;return[{metadataBadgeRenderer:{label:((z=e.label)==null?void 0:(C=z.runs)==null?void 0:C[0].text)||((w=e.label)==null?void 0:w.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var e=this.data;return Object.assign({},e.headline,{accessibility:e.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return this.isSlimShort?(e=this.computedTitle)==null?void 0:(z=e.accessibility)==null?void 0:(C=z.accessibilityData)==null?void 0:C.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.M("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$16424_inlinePreviewHoverListener)==null?0:MN(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
JF.prototype.onDataChanged=JF.prototype.onDataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],JF.prototype,"componentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],JF.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],JF.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.a0),_.B("design:type",Object)],JF.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],JF.prototype,"ytdReduxBehavior",void 0);_.d([_.nP("ytd-thumbnail"),_.B("design:type",HTMLElement)],JF.prototype,"thumbnail",void 0);_.d([_.nP("#dismissible"),_.B("design:type",HTMLElement)],JF.prototype,"JSC$16424_dismissibleMedia",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],JF.prototype,"removeMaxWidth",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],JF.prototype,"insetMetadata",void 0);_.d([_.F(),_.B("design:type",String)],JF.prototype,"dismissedContentId",void 0);_.d([_.F({selectorArgs:["dismissedContentId"],selector:xR7}),_.B("design:type",Object)],JF.prototype,"dismissActionToReplayEntity",void 0);_.d([_.P("insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],JF.prototype,"thumbnailObjectFit",null);
_.d([_.P("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],JF.prototype,"innerMenu",null);_.d([_.P("data","insetMetadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],JF.prototype,"outerMenu",null);_.d([_.F(),_.B("design:type",Object)],JF.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],JF.prototype,"miniMode",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JF.prototype,"onDataChanged",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],JF.prototype,"shortsBadges",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JF.prototype,"isShort",null);
_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JF.prototype,"isSlimShort",null);_.d([_.P("data","isShort"),_.B("design:type",Object),_.B("design:paramtypes",[])],JF.prototype,"computedTitle",null);_.d([_.P("isSlimShort","computedTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],JF.prototype,"computedAccessibilityLabel",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JF.prototype,"shouldForce2By3",null);_.d([_.P("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],JF.prototype,"isHovered",null);_.d([_.SL({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],JF);
_.u(JF,"ytd-rich-grid-slim-media",function(){if(wgC!==void 0)return wgC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return wgC=e},{mode:_.bA("kevlar_poly_si_batch_j063")?1:2});var KdL;var o4c;var kD=function(){return _.V.apply(this,arguments)||this};
_.U(kD,_.V);kD.prototype.computeIcon=function(e){return e&&e.iconType?"yt-sys-icons:"+e.iconType.toLowerCase():""};
kD.prototype.onMouseEnter=function(){this.isHovered=!0};
kD.prototype.onMouseLeave=function(){this.isHovered=!1};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],kD.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kD.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],kD.prototype,"isHovered",void 0);
_.d([_.SL({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],kD);
_.u(kD,"ytd-expand-on-hover-card-renderer",function(){if(o4c!==void 0)return o4c;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return o4c=e},{mode:1});var G3h,Y1S=function(){if(G3h!==void 0)return G3h;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return G3h=e};_.hq("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var qj=function(){var e=_.V.apply(this,arguments)||this;e.compactStyle=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(qj,_.V);_.Y=qj.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.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"}}}};
_.Y.computeHideDot=function(e){return!(e&&e.subscriberCountText&&e.videoCountText)||this.compactStyle};
_.Y.hasDualButtons=function(e){return e&&e.purchaseButton&&e.subscribeButton};
_.Y.backgroundColorChanged=function(){if(this.data!==void 0){var e=this.data.backgroundColor;this.isDarkTheme&&(e=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=e!=null?_.EG(e):"transparent"}};
_.Y.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.onTap=function(e){var z,C,w=((z=this.data)==null?void 0:z.navigationEndpoint)||((C=this.data)==null?void 0:C.serviceEndpoint);_.r(w,_.zV)&&(w&&_.lh().resolve(_.ms).resolveCommand(w,{form:{element:this.hostElement}}),e.preventDefault())};
_.Y.computeChannelEndpoint=function(e){return _.r(e,_.zV)?null:e};
_.Y.computeHrefEndpoint=function(e){return _.r(e,_.zV)?null:this.componentBehavior.computeHref_(e)};
_.Y.computeChannelRendererStyle=function(e){return e};
_.Y.computeIconSize=function(e){return e?108:136};
_.lB.Object.defineProperties(qj,{template:{configurable:!0,enumerable:!0,get:function(){return Y1S()}}});
qj.prototype.backgroundColorChanged=qj.prototype.backgroundColorChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],qj.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],qj.prototype,"componentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],qj.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],qj.prototype,"isDarkTheme",void 0);_.d([_.F({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.B("design:type",String)],qj.prototype,"channelRendererStyle",void 0);_.d([_.F({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],qj.prototype,"dualButtons",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],qj.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],qj.prototype,"biggerThumbStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],qj.prototype,"compactStyle",void 0);_.d([_.mi("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qj.prototype,"backgroundColorChanged",null);_.d([_.SL({is:"ytd-channel-renderer",disableElementRegistration:!0})],qj);_.u(qj,"ytd-channel-renderer",function(){return Y1S()},{mode:1});var bfo;var Xgs;_.hq("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var xD=function(){var e=_.V.apply(this,arguments)||this;e.displayItemCount=2;e.hasPlaylistThumbnail=!1;e.stackThumbnailSize="large";return e};
_.U(xD,_.V);_.Y=xD.prototype;_.Y.attached=function(){this.updateInlinePreviewHoverListeners()};
_.Y.detached=function(){this.clearInlinePreviewHoverListeners()};
_.Y.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.Y.computeFirstVideos=function(e,z){return e&&z?e.slice(0,z):[]};
_.Y.computeThumbnailWidth=function(e,z){return e?z==="BIG"?500:z==="MASSIVE"?600:z==="MEDIUM"?450:420:360};
_.Y.computeThumbnailHeight=function(e,z){return e?z==="BIG"?280:z==="MASSIVE"?337:234:202};
_.Y.clearInlinePreviewHoverListeners=function(){var e;(e=this.JSC$16437_inlinePreviewHoverListener)==null||on(e)};
_.Y.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16437_inlinePreviewHoverListener=sz({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:V94,thumbnailElement:this.thumbnail})};
_.Y.computeHasPlaylistThumbnail=function(e){var z,C;if((((z=e.thumbnailRenderer)==null?0:z.playlistVideoThumbnailRenderer)||((C=e.thumbnailRenderer)==null?0:C.playlistCustomThumbnailRenderer))&&e.thumbnailOverlays)for(z=0;z<e.thumbnailOverlays.length;z++)if(C=void 0,(C=e.thumbnailOverlays[z])==null?0:C.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.lB.Object.defineProperties(xD.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.JSC$16437_inlinePreviewHoverListener)==null?0:MN(e))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
xD.prototype.dataChanged=xD.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],xD.prototype,"ytdLockupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xD.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],xD.prototype,"displayItemCount",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],xD.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],xD.prototype,"biggerThumbsStyle",void 0);_.d([_.F({computed:"computeHasPlaylistThumbnail(data)"}),_.B("design:type",Object)],xD.prototype,"hasPlaylistThumbnail",void 0);_.d([_.F(),_.B("design:type",String)],xD.prototype,"stackThumbnailSize",void 0);_.d([_.nP("ytd-thumbnail"),_.B("design:type",HTMLElement)],xD.prototype,"thumbnail",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xD.prototype,"dataChanged",null);
_.d([_.P("lockupIsHovered"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xD.prototype,"isHovered",null);_.d([_.SL({is:"ytd-radio-renderer",disableElementRegistration:!0})],xD);
_.u(xD,"ytd-radio-renderer",function(){if(Xgs!==void 0)return Xgs;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Xgs=e},{mode:_.bA("kevlar_poly_si_batch_j058")?1:2});var JML;_.hq("itemSectionRenderer","showRenderer","ytd-show-renderer");var TS=function(){return _.V.apply(this,arguments)||this};
_.U(TS,_.V);TS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
TS.prototype.computeThumbnailWidth=function(e){return e?360:246};
TS.prototype.computeUseProminentThumbs=function(e){return e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TS.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],TS.prototype,"isSearch",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.B("design:type",Boolean)],TS.prototype,"useProminentThumbs",void 0);_.d([_.SL({is:"ytd-show-renderer",disableElementRegistration:!0})],TS);
_.u(TS,"ytd-show-renderer",function(){if(JML!==void 0)return JML;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return JML=e},{mode:1});_.hq("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var $D=function(){var e=_.V.apply(this,arguments)||this;e.isRichGrid=!1;return e};
_.U($D,_.V);$D.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"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$D.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$D.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$D.prototype,"isRichGrid",void 0);_.d([_.SL({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],$D);
_.u($D,"ytd-feed-entry-renderer",function(){if(bfo!==void 0)return bfo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return bfo=e},{mode:1});var k36;var l_=function(){return _.V.apply(this,arguments)||this};
_.U(l_,_.V);l_.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.d([_.W(_.QX),_.B("design:type",Object)],l_.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],l_.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],l_.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Fn,value:3}),_.B("design:type",Number)],l_.prototype,"itemsPerRow",void 0);
_.d([_.SL({is:"ytd-link-card-renderer",disableElementRegistration:!0})],l_);
_.u(l_,"ytd-link-card-renderer",function(){if(k36!==void 0)return k36;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return k36=e},{mode:1});var q1S;var QD=function(){return _.V.apply(this,arguments)||this};
_.U(QD,_.V);_.Y=QD.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":C9,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Y.onRendererTap=function(e){if(!this.ytdDismissibleItemBehavior.isDismissed){var z,C=(z=this.data)==null?void 0:z.navigationEndpoint;C&&!_.zi(_.cJ(e),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(C)?_.zi(_.cJ(e),this.hostElement,["A"])||_.pi(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C,{}))}};
_.Y.maybeComputeHref=function(e){return this.ytComponentBehavior.computeHref_(e,!0)};
_.Y.getNavigationCommand=function(e){return this.isNavigationCommand(e)?e:null};
_.Y.isNavigationCommand=function(e){return e?_.r(e,_.mJ)||_.r(e,_.N$)||_.r(e,_.oO)?!0:!1:!1};
QD.prototype.onRendererTap=QD.prototype.onRendererTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],QD.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],QD.prototype,"ytComponentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],QD.prototype,"data",void 0);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QD.prototype,"onRendererTap",null);_.d([_.SL({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],QD);
_.u(QD,"ytd-lumiere-promo-item-image-renderer",function(){if(q1S!==void 0)return q1S;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return q1S=e},{mode:1});var xrg;var mo=function(){return _.V.apply(this,arguments)||this};
_.U(mo,_.V);mo.prototype.computeLandscapeThumbnail=function(){var e;return((e=this.data)==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],mo.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mo.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],mo.prototype,"miniMode",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Fn}),_.B("design:type",Number)],mo.prototype,"itemsPerRow",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.B("design:type",Boolean)],mo.prototype,"landscapeThumbnail",void 0);_.d([_.SL({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],mo);
_.u(mo,"ytd-lumiere-shelf-details-renderer",function(){if(xrg!==void 0)return xrg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return xrg=e},{mode:_.bA("kevlar_poly_si_batch_j076")?1:2});var Txg;var a_=function(){return _.V.apply(this,arguments)||this};
_.U(a_,_.V);a_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],a_.prototype,"data",void 0);_.d([_.SL({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],a_);
_.u(a_,"ytd-primetime-promo-details-renderer",function(){if(Txg!==void 0)return Txg;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Txg=e},{mode:1});var $rC;var na=function(){return _.V.apply(this,arguments)||this};
_.U(na,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],na.prototype,"data",void 0);_.d([_.SL({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],na);
_.u(na,"ytd-panel-show-style-metadata-renderer",function(){if($rC!==void 0)return $rC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return $rC=e},{mode:1});var lFa;var Mj=function(){return _.V.apply(this,arguments)||this};
_.U(Mj,_.V);_.Y=Mj.prototype;_.Y.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.Y.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.Y.computeThumbnail=function(e){if(e)return e.smallFormFactorBackgroundThumbnail||e.largeFormFactorBackgroundThumbnail};
_.Y.maybeComputeHref=function(e){return this.ytComponentBehavior.computeHref_(e,!0)};
_.Y.isNavigationCommand=function(e){return e?_.r(e,_.mJ)||_.r(e,_.N$)||_.r(e,_.oO)?!0:!1:!1};
_.Y.getNavigationCommand=function(e){return this.isNavigationCommand(e)?e:null};
Mj.prototype.onPanelTap=Mj.prototype.onPanelTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Mj.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Mj.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Mj.prototype,"roundedContainer",void 0);_.d([_.F({reflectToAttribute:!0,value:_.M("web_modern_buttons")}),_.B("design:type",Boolean)],Mj.prototype,"modernButtons",void 0);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mj.prototype,"onPanelTap",null);_.d([_.SL({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Mj);
_.u(Mj,"ytd-primetime-promo-panel-renderer",function(){if(lFa!==void 0)return lFa;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return lFa=e},{mode:1});_.KU(_.f(function(e){e=_.eQ(e,{data:{},useFullWidth:!1});var z=e.data,C=e.useFullWidth;e={};return _.x("teaser-card-view-model",{class:_.qT("ytTeaserCardViewModelHost",(e.ytTeaserCardViewModelUseFullWidth=function(){return C()},e))},_.x(_.l,{cond:function(){return z().onTap},
then:function(w){return _.x(_.fE,{className:"ytTeaserCardViewModelLink",command:w},_.x("div",{class:"ytTeaserCardViewModelImageContainer"},_.x(_.l,{cond:function(){return z().image},
then:function(K){return _.x(_.Zf,{data:K,className:"ytTeaserCardViewModelImage",alt:""})}})),_.x("p",{class:"ytTeaserCardViewModelCaption"},function(){return z().caption}))}}))},"$c"),"teaser-card-view-model",{props:{data:_.vh,
useFullWidth:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=function(){var w;return _.yA((w=z())==null?void 0:w.iconThemedImage)};
return _.x("yt-edu-card-view-model",null,_.x(_.cp,{contentId:function(){return z().nudgeId}},function(){return _.x("div",{class:_.qT("ytEduCardViewModelHost",function(){return z().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.x("div",{class:"ytEduCardViewModelTopCornerButton"},_.x(_.PF,{data:function(){return z().dismissButton}},{buttonViewModel:_.iz})),_.x("div",{class:"ytEduCardViewModelContentWrapper"},_.x("div",{class:"ytEduCardViewModelHeaderImage"},_.x(_.l,
{cond:C,
then:function(w){return _.x(_.Zf,{data:w,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.x("div",{class:"ytEduCardViewModelTextContainer"},_.x("div",{class:"ytEduCardViewModelTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:"ytEduCardViewModelSubtitle"},_.x(_.U2,{text:function(){return z().subtitle}}))),_.x("div",{class:"ytEduCardViewModelContent"},_.x(_.PF,{data:function(){return z().form}},{nudgeFormViewModel:AZa}))),_.x("div",{class:_.qT("ytEduCardViewModelButtonWrapper",
function(){return z().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.x(_.PF,{data:function(){return z().primaryButton}},{buttonViewModel:function(w){return _.x("div",{class:"ytEduCardViewModelPrimaryButton"},_.x(_.iz,{data:w.data}))}}),_.x(_.PF,{data:function(){return z().secondaryButton}},{buttonViewModel:function(w){return _.x("div",{class:"ytEduCardViewModelSecondaryButton"},_.x(_.iz,{data:w.data}))}})))}))},"ad"),"yt-edu-card-view-model",{props:{data:_.vh}});var QqC=new _.Mt("RICH_GRID_VIDEO_RENDERER_TOKEN");_.KU(_.f(function(e){var z=e.data;var C=e.showYtInteractionInContent;var w=function(){return!!z().selectableFeedback};
e=_.b(_.II(!1,void 0,"qxtgaf"));var K=e.next().value,G=e.next().value;_.sg(function(){var a=_.r(z().primaryButton,_.v7);(a==null?0:a.isToggled)&&G(a.isToggled)});
e=_.T9(function(a){if(!w())return!1;if(K()){var n;var H=(n=z().selectableFeedback)==null?void 0:n.onDeselect}else{var I;H=(I=z().selectableFeedback)==null?void 0:I.onSelect}H&&_.NF(H,{form:{element:a.target}});G(!K());if(a=_.r(z().primaryButton,_.v7))a.isToggled=K();return!1});
var X=function(){if(!w()){var a,n=(a=z().loggingDirectives)==null?void 0:a.trackingParams;n&&_.Zw(_.lh().resolve(_.YV),n)}},J=_.t77(),q=function(){var a;
return w()?(a=z().selectableFeedback)==null?void 0:a.a11yLabel:void 0},T=function(){return w()?{toggled:K()}:{}},Q=_.lh().resolve(_.$B(QqC)),m={};
return _.x("yt-feedback-item-renderer",{class:_.qT("ytFeedbackItemRendererHost",(m.ytFeedbackItemRendererSelectableFeedback=w,m)),"on:click":e,"on:keydown":J,title:q,"aria-label":q,"aria-pressed":function(){return w()?K():void 0},
tabindex:function(){return w()?0:void 0},
role:function(){return w()?"button":void 0}},_.x("div",{class:"ytFeedbackItemRendererContentContainer"},_.x(_.PF,{data:function(){return z().content}},{videoRenderer:function(a){return _.x(Q,{data:a.data,
showYtInteraction:C})},
lockupViewModel:function(a){return _.x(_.eI,{data:a.data,containerType:2})}})),_.x("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.x(_.PF,{data:function(){return z().primaryButton}},{toggleButtonViewModel:function(a){return _.x(_.XG,{data:a.data,
buttonShapeOverrides:T,disableExplicitClickLogging:!0,onToggle:X})}})))},"bd"),"yt-feedback-item-renderer",{props:{data:_.vh,
showYtInteractionInContent:_.vh}});var r_=function(){var e=_.V.apply(this,arguments)||this;e.isShortsGrid=!1;e.isCompactGrid=!1;e.isShortsPanelGrid=!1;e.renderedFromRichGrid=!1;e.isInFirstColumn=!1;e.noGutterMargins=!1;e.noBottomMargin=!1;e.halfBottomMargin=!1;e.isInlineGroupItem=!1;e.insetMetadata=!1;e.noBottomMarginInAds=!0;e.force16By9ThumbnailAspectRatio=!1;e.useCompactList=!1;e.containerType=2;e.thumbnailTargetWidth=9999;e.isResponsiveGrid=!1;e.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};e.hoverListener=
e.hover.bind(e);e.leaveListener=e.leave.bind(e);e.highlighted=!1;e.JSC$16473_unsubscribeFromInlinePreviewIsActive=function(){};
return e};
_.U(r_,_.V);_.Y=r_.prototype;_.Y.computeContainerType=function(){return this.useCompactList?3:2};
_.Y.itemWidthChanged=function(){var e;this.thumbnailTargetWidth=(e=this.itemWidth)!=null?e:9999};
_.Y.updateIsInFirstColumn=function(){var e;this.isInFirstColumn=((e=this.data)==null?void 0:e.colIndex)===0};
_.Y.observerContainerType=function(){if(this.lockup){var e=this.lockup;e.containerType=this.containerType;e.sizing=this.sizing;e.typographyBump=this.typographyBump;e.itemWidth=this.itemWidth}this.richGridMedia&&_.M("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.M("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.Y.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.Y.leave=function(e){e=e.relatedTarget;var z=document.querySelector("ytd-video-preview");e&&z&&_.JK(z).contains(e)||this.removeAndCleanupHighlight()};
_.Y.hover=function(){var e;!this.highlighted&&(e=this.data)!=null&&e.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(e=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:e,boxShadow:"0 0 0 10px "+e})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.Y.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};
_.Y.registerHoverHighlightListeners=function(){var e=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16473_unsubscribeFromInlinePreviewIsActive=_.K3(_.eB(),_.deg,function(z){e.highlighted&&!z&&e.removeAndCleanupHighlight()})};
_.Y.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16473_unsubscribeFromInlinePreviewIsActive()};
_.Y.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.Y.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.Y.getBackgroundColor=function(){var e,z,C=(e=this.data)==null?void 0:(z=e.onFocusEffect)==null?void 0:z.onFocusColor;if(C){if(document.documentElement.hasAttribute("dark")&&(C==null?0:C.darkTheme))return fW(C==null?void 0:C.darkTheme);if(C==null?0:C.lightTheme)return fW(C==null?void 0:C.lightTheme)}};
_.Y.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var e=_.Pr(),z,C,w;e&&((z=this.data)==null?0:z.trackingParams)&&((C=this.data)==null?void 0:C.colIndex)!=null&&((w=this.data)==null?void 0:w.rowIndex)!=null&&_.yu(e,_.v9(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.Y.isSlimMediaRenderer=function(e){return!!_.r(e==null?void 0:e.content,_.BtY)||!!_.r(e==null?void 0:e.content,slL)||!!_.r(e==null?void 0:e.content,_.QQ)||!!_.r(e==null?void 0:e.content,TyU)};
_.Y.isPostRenderer=function(){var e,z;return!!_.r((e=this.data)==null?void 0:e.content,YJX)||!!_.r((z=this.data)==null?void 0:z.content,bcc)};
_.Y.computeIsGameCardShelf=function(){var e;return!!_.r((e=this.data)==null?void 0:e.content,rhC)};
_.Y.computeIsMiniGameCardShelf=function(){var e,z;return!!_.r((e=this.data)==null?void 0:e.content,fla)||!!_.r((z=this.data)==null?void 0:z.content,S4h)};
_.Y.computeIsTeaserCard=function(){var e;return!!_.r((e=this.data)==null?void 0:e.content,S4h)};
_.Y.computeIsSelectableFeedbackItem=function(){var e,z;return!((z=_.r((e=this.data)==null?void 0:e.content,dBs))==null||!z.selectableFeedback)};
_.Y.computeContainsLumierePosters=function(){var e,z;return((z=_.r((e=this.data)==null?void 0:e.content,QJU))==null?void 0:z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Y.computeIsExpandOnHoverCardShelf=function(){var e;return!!_.r((e=this.data)==null?void 0:e.content,loa)};
_.Y.computeIsLinkCardShelf=function(){var e;return!!_.r((e=this.data)==null?void 0:e.content,vXa)};
_.Y.computeIsReelItemStyleAvatarCircle=function(e){var z;return((z=_.r(e==null?void 0:e.content,_.QQ))==null?void 0:z.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.Y.computeIsLinkCardFullWidth=function(e,z){var C;return((C=_.r(e==null?void 0:e.content,vXa))==null?void 0:C.useFullWidth)||z<=2};
_.lB.Object.defineProperties(r_.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var e;return _.M("web_hover_effect_refactor")&&_.r((e=this.data)==null?void 0:e.content,_.Wya)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.M("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var e;if(_.M("web_hover_effect_refactor")&&_.r((e=this.data)==null?void 0:e.content,_.Wya))return!1;var z;return!((z=this.data)==null||!z.onFocusEffect)||_.M("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var e;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.M("web_hover_effect_refactor")?(e=this.data)==null?void 0:e.onFocusEffect:void 0}}}});
r_.prototype.richGridHoverHighlightChanged=r_.prototype.richGridHoverHighlightChanged;r_.prototype.observerContainerType=r_.prototype.observerContainerType;r_.prototype.updateIsInFirstColumn=r_.prototype.updateIsInFirstColumn;r_.prototype.itemWidthChanged=r_.prototype.itemWidthChanged;_.d([_.W(_.QX),_.B("design:type",Object)],r_.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],r_.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],r_.prototype,"ytdLockupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],r_.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.B("design:type",Boolean)],r_.prototype,"isPost",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.B("design:type",Boolean)],r_.prototype,"containsLumierePosters",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.B("design:type",Boolean)],r_.prototype,"isSlimMedia",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.B("design:type",Boolean)],r_.prototype,"isGameCardShelf",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.B("design:type",Boolean)],r_.prototype,"isMiniGameCardShelf",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.B("design:type",Boolean)],r_.prototype,"isTeaserCard",void 0);_.d([_.F({computed:"computeIsSelectableFeedbackItem(data)"}),_.B("design:type",Boolean)],r_.prototype,"isSelectableFeedbackItem",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"isShortsGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],r_.prototype,"isSlimGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"isCompactGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"isShortsPanelGrid",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.B("design:type",Boolean)],r_.prototype,"isExpandOnHoverCardShelf",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.B("design:type",Boolean)],r_.prototype,"isLinkCardShelf",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Fn,value:3}),_.B("design:type",Number)],r_.prototype,"itemsPerRow",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"renderedFromRichGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"isInFirstColumn",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"noGutterMargins",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"noBottomMargin",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"halfBottomMargin",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"isInlineGroupItem",void 0);_.d([_.F(),_.B("design:type",Object)],r_.prototype,"insetMetadata",void 0);_.d([_.F(),_.B("design:type",Object)],r_.prototype,"noBottomMarginInAds",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],r_.prototype,"isShelfItem",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.B("design:type",Boolean)],r_.prototype,"isReelItemStyleAvatarCircle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.B("design:type",Boolean)],r_.prototype,"isLinkCardFullWidth",void 0);_.d([_.F(),_.B("design:type",Object)],r_.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"useCompactList",void 0);_.d([_.F(),_.B("design:type",String)],r_.prototype,"sizing",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],r_.prototype,"typographyBump",void 0);_.d([_.F(),_.B("design:type",Number)],r_.prototype,"itemWidth",void 0);_.d([_.F(),_.B("design:type",Boolean)],r_.prototype,"isHomeShelf",void 0);_.d([_.F(),_.B("design:type",Boolean)],r_.prototype,"isHomeGrid",void 0);
_.d([_.nP("yt-lockup-view-model"),_.B("design:type",HTMLElement)],r_.prototype,"lockup",void 0);_.d([_.nP("ytd-rich-grid-media"),_.B("design:type",HTMLElement)],r_.prototype,"richGridMedia",void 0);_.d([_.nP("ytd-ad-slot-renderer"),_.B("design:type",HTMLElement)],r_.prototype,"adSlotRenderer",void 0);_.d([_.F({computed:"computeContainerType(useCompactList)"}),_.B("design:type",Object)],r_.prototype,"containerType",void 0);_.d([_.F(),_.B("design:type",Object)],r_.prototype,"thumbnailTargetWidth",void 0);
_.d([_.P("showYtInteractionOnRichItem"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],r_.prototype,"showYtInteractionOnRichGridMedia",null);_.d([_.P("isSelectableFeedbackItem","richGridHoverHighlight"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],r_.prototype,"showYtInteractionOnRichItem",null);_.d([_.P("typographyBump","isHomeGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],r_.prototype,"richTypographyBump",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data","isShortsGrid","isCompactGrid"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],r_.prototype,"richGridHoverHighlight",null);_.d([_.P("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],r_.prototype,"shortsLockupViewModelAspectRatio",null);_.d([_.P("isInlineGroupItem"),_.B("design:type",Number),_.B("design:paramtypes",[])],r_.prototype,"shortsLockupViewModelScrimStyle",null);
_.d([_.mi("itemWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r_.prototype,"itemWidthChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r_.prototype,"updateIsInFirstColumn",null);_.d([_.mi("containerType","sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r_.prototype,"observerContainerType",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],r_.prototype,"isResponsiveGrid",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],r_.prototype,"lockupExperiments",null);_.d([_.mi("richGridHoverHighlight"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],r_.prototype,"richGridHoverHighlightChanged",null);_.d([_.SL({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],r_);
_.mra=_.Yp()(r_,"ytd-rich-item-renderer",function(){if(KdL===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);KdL=e}e=KdL;return e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var KZE={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var QEE=_.AO(_.kk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var GZg={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},bOm={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},Xb4={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var aFX;var HS=function(){var e=_.V.apply(this,arguments)||this;e.useResponsiveGrid=!1;e.hidden=!1;e.isShowMoreHidden=!1;e.isShowLessHidden=!0;e.hasExpansionButton=!1;e.isInnerShelf=!1;e.allVideosCount=0;e.allPlaylistCount=0;e.haveSmartDownloadsCompleted=!1;e.restrictContentsOverflow=!1;e.firstShownIndex=0;e.horizontalOffset=0;e.atEnd=!0;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
e.nextClick=function(){var z;(z=e.data)!=null&&z.contents&&(e.firstShownIndex+=e.currentElementsPerRow,e.updateHorizontalOffset(),e.updateHorizontalItemVisibility())};
e.previousClick=function(){var z;(z=e.data)!=null&&z.contents&&(e.firstShownIndex-=e.currentElementsPerRow,e.updateHorizontalOffset(),e.updateHorizontalItemVisibility())};
return e};
_.U(HS,_.V);_.Y=HS.prototype;
_.Y.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.j5("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.refreshGridLayoutNew=function(){var e;if((e=this.data)!=null&&e.contents&&this.containerWidth){var z;((z=this.data.responsiveContainerConfiguration)==null?0:z.responsiveSize)?(e=_.nn8(this.data.responsiveContainerConfiguration,this.containerWidth,2),e=_.gE(Object.assign({},e,{standardUnitMinWidth:this.standardUnitMinWidth}))):e=_.gE({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=e.typographyBump;if(this.elementsPerRow!==
e.numItems||this.gutter!==e.gutter)this.elementsPerRow=e.numItems,this.gutter=e.gutter,this.itemWidth=e.itemWidth,_.T8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":e.gutter+"px"})}};
_.Y.computeSizing=function(){if(!this.isLumiere){var e=_.dWs(this.data);return e?e:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.Y.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.Y.computeButton=function(e){var z=_.r(e,_.a2);e=Object.assign({},_.r(e,_.a2));return z?(e.text||(e.text={simpleText:e.tooltip}),e.style="STYLE_MONO_OUTLINE",e.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",e):z};
_.Y.onRowIndexChange=function(){var e=_.Pr(),z,C;((z=this.data)==null?0:z.trackingParams)&&((C=this.data)==null?void 0:C.rowIndex)!=null&&e&&_.yu(e,_.v9(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.Y.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var e,z=((e=this.getRichItemRenderers()[0])==null?void 0:e.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*z;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.Y.requestElementsPerRow=function(){_.pi(this.hostElement,"yt-request-elements-per-row")};
_.Y.onUpdateElementsPerRowAction=function(e,z,C,w,K,G){if(this.containerWidth!==G&&(this.containerWidth=G,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&e&&z&&C&&w&&K&&(this.elementsPerRow!==e||this.postsPerRow!==z||this.slimItemsPerRow!==C||this.gameCardsPerRow!==w||this.miniGameCardsPerRow!==K)&&(this.elementsPerRow=e,this.postsPerRow=z,this.slimItemsPerRow=C,this.gameCardsPerRow=w,this.miniGameCardsPerRow=K,this.updateItemVisibility())};
_.Y.isExpandedChanged=function(){var e=this.getRichItemRenderers(),z=this.isExpanded;e.forEach(function(C){C.halfBottomMargin=z})};
_.Y.isCollapsedChanged=function(){var e=this.getRichItemRenderers(),z=this.isCollapsed;e.forEach(function(C){C.noBottomMargin=z})};
_.Y.getRichItemRenderers=function(){return _.XC(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.Y.updateItemVisibility=function(){var e=this;if(this.data&&this.data.contents){var z=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(w,K){var G;((G=e.data)==null?0:G.isExpanded)?(w.hidden=K>z-1,w.ytRendererBehavior.markDirty()):w.hidden=K>e.currentElementsPerRow-1||K>z-1});
var C=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||C||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||C||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.Y.setHeightToSingleRow=function(){var e=this.getRichItemRenderers(),z=Number.parseInt(getComputedStyle(e[0]).marginBottom,10)||0;e=e.slice(0,this.currentElementsPerRow).reduce(function(C,w){return Math.max(C,w.getBoundingClientRect().height+z)},0);
this.contents.style.height=e+"px"};
_.Y.focusNextExpandedItem=function(){var e;((e=this.data)==null?0:e.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.Y.focusItem=function(e,z){var C=this.getRichItemRenderers();if(C[e]&&(e=C[e].querySelector(".focus-on-expand"))){if(z){var w;(w=C[this.currentElementsPerRow])==null||w.scrollIntoView({behavior:"smooth",block:"center"})}e.focus({preventScroll:!0})}};
_.Y.onDataChange=function(){var e=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var z;if((z=this.data)==null?0:z.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.T0(this,function(){e.updateItemVisibility()});
var C;if((C=this.data)==null?0:C.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.T8(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),z=0;z<this.data.contents.length;z++)C=_.r(this.data.contents[z],_.KH)||{},C.colIndex=z,C.rowIndex=this.data.rowIndex};
_.Y.handleRerenderDownloadsData=function(){_.M("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())};
_.Y.blockInlinePreview=function(e){var z=this,C;return _.k(function(w){(C=z.inlinePreviewIsEnabled)&&z.ytdReduxBehavior.dispatch(_.lqg(!1));return w.return(new Promise(function(K){e(function(){C&&z.ytdReduxBehavior.dispatch(_.lqg(!0));K()})}))})};
_.Y.expandShelf=function(){var e=this;if(this.data){var z,C=(z=_.r(this.data.showMoreButton,_.a2))==null?void 0:z.trackingParams;C&&_.Zw(_.nm(),C);this.set("data.isExpanded",!0);this.blockInlinePreview(function(w){e.setHeightToSingleRow();e.updateItemVisibility();e.contents.style.height=e.contents.scrollHeight+"px";_.c5.addJob(function(){e.contents.style.height="auto";e.focusNextExpandedItem();w()},2,200)})}};
_.Y.collapseShelf=function(){var e=this;return _.k(function(z){if(z.nextAddress==1){if(!e.data)return z.return();e.set("data.isExpanded",!1);return z.yield(e.blockInlinePreview(function(C){e.contents.style.height=e.contents.scrollHeight+"px";e.setHeightToSingleRow();_.c5.addJob(function(){e.updateItemVisibility();e.contents.style.height="auto";C()},2,200)}),2)}_.pi(e.hostElement,"yt-rich-shelf-renderer-collapse",e.data.trackingParams);
e.focusItem(0,!1);_.E_(z)})};
_.Y.updateArrowButtonStatus=function(){this.getRichItemRenderers();var e,z;var C=((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=C};
_.Y.onChildElementFocus=function(e){this.hasChevronButtons&&(e=e.target.closest("#contents > *"),this.contents.contains(e)&&(e.offsetLeft<this.horizontalOffset?this.previousClick():e.offsetLeft+e.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.Y.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.j5("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.Y.updateHorizontalOffset=function(){var e=this.getRichItemRenderers(),z,C;var w=((z=this.data)==null?void 0:(C=z.contents)==null?void 0:C.length)||0;var K;e=((K=e[0])==null?void 0:K.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>w?this.firstShownIndex=w-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*e};
_.Y.isSlimMediaShelfRenderer=function(){var e,z,C,w=(C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH))==null?void 0:C.content;return!!(_.r(w,_.BtY)||_.r(w,slL)||_.r(w,_.QQ)||_.r(w,TyU))};
_.Y.isGameCardShelf=function(){var e,z,C,w=(C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH))==null?void 0:C.content;return!!_.r(w,rhC)};
_.Y.isMiniGameCardShelf=function(){var e,z,C,w=(C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH))==null?void 0:C.content;return!!_.r(w,fla)||!!_.r(w,S4h)};
_.Y.hasGameBoxArtAvatarStyle=function(){var e;return((e=this.data)==null?void 0:e.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.Y.hasRoundedGameBoxArtAvatarStyle=function(){var e;return((e=this.data)==null?void 0:e.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.Y.isShortsShelf=function(){var e,z,C,w=(C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH))==null?void 0:C.content;return!!_.r(w,_.QQ)||!!_.r(w,TyU)};
_.Y.isPostShelfRenderer=function(){var e,z,C,w=(C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH))==null?void 0:C.content;return!(!_.r(w,YJX)&&!_.r(w,bcc))};
_.Y.isLumiereShelf=function(){var e,z,C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH);return!!_.r(C==null?void 0:C.content,QJU)};
_.Y.isLumiereShelfWithPosters=function(){var e,z,C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH),w;return((w=_.r(C==null?void 0:C.content,QJU))==null?void 0:w.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.Y.isExpandOnHoverCardShelf=function(){var e,z,C,w=(C=_.r((e=this.data)==null?void 0:(z=e.contents)==null?void 0:z[0],_.KH))==null?void 0:C.content;return!!_.r(w,loa)};
_.Y.computeHasFeaturedBadge=function(){var e,z,C=_.r((e=this.data)==null?void 0:(z=e.badges)==null?void 0:z[0],_.f2a);return C?C.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Y.computeHasPaygatedFeaturedBadge=function(){var e,z,C=_.r((e=this.data)==null?void 0:(z=e.badges)==null?void 0:z[0],_.f2a);return C?(C==null?void 0:C.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.Y.computeHeaderHidden=function(){var e,z,C,w,K,G;return!((e=this.data)==null?0:e.icon)&&!((z=this.data)==null?0:z.title)&&!((C=this.data)==null?0:C.subtitle)&&!((w=this.data)==null?0:w.thumbnail)&&!((K=this.data)==null?0:K.badges)&&!((G=this.data)==null?0:G.menu)};
_.Y.showCtaButton=function(){var e;return!((e=this.data)==null||!e.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.Y.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.Y.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.Y.computeForce16By9ThumbnailAspectRatio=function(){var e,z;return((e=this.data)==null?void 0:(z=e.responsiveContainerConfiguration)==null?void 0:z.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.Y.onSectionReactiveDismissal=function(e,z,C){var w,K;var G=(w=this.data)==null?void 0:(K=w.targetingContext)==null?void 0:K.targetGroupId;this&&G&&z.targetGroupId&&G.includes(z.targetGroupId)?(w=this.rowIndex,e=w===void 0?!1:!(z.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&w<=e)):e=!1;e&&(this.hidden=C)};
_.lB.Object.defineProperties(HS.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var e=this.elementsPerRow;this.isPostShelfRenderer()?e=this.postsPerRow:this.isSlimMediaShelfRenderer()?e=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?e=this.slimItemsPerRow-1:this.isGameCardShelf()?e=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(e=this.miniGameCardsPerRow);return e}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null?0:e.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.previousButton)&&!((z=this.data)==null||!z.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 e;return((e=_.lh().resolve(_.wE).getCurrentPage())==null?void 0:e.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w;return!((e=this.data)==null?0:(z=e.thumbnail)==null?0:(C=z.accessibility)==null?0:(w=C.accessibilityData)==null?0:w.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
HS.prototype.onChildElementFocus=HS.prototype.onChildElementFocus;HS.prototype.handleRerenderDownloadsData=HS.prototype.handleRerenderDownloadsData;HS.prototype.onDataChange=HS.prototype.onDataChange;HS.prototype.isCollapsedChanged=HS.prototype.isCollapsedChanged;HS.prototype.isExpandedChanged=HS.prototype.isExpandedChanged;HS.prototype.onRowIndexChange=HS.prototype.onRowIndexChange;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],HS.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],HS.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],HS.prototype,"ytdReduxBehavior",void 0);
_.d([_.F({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.B("design:type",Object)],HS.prototype,"useResponsiveGrid",void 0);_.d([_.F(),_.B("design:type",Object)],HS.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],HS.prototype,"standardUnitMinWidth",void 0);_.d([_.F({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],HS.prototype,"elementsPerRow",void 0);_.d([_.F({value:3}),_.B("design:type",Number)],HS.prototype,"postsPerRow",void 0);
_.d([_.F({value:6}),_.B("design:type",Number)],HS.prototype,"slimItemsPerRow",void 0);_.d([_.F({value:6}),_.B("design:type",Number)],HS.prototype,"gameCardsPerRow",void 0);_.d([_.F({value:6}),_.B("design:type",Number)],HS.prototype,"miniGameCardsPerRow",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HS.prototype,"hidden",void 0);_.d([_.F(),_.B("design:type",Object)],HS.prototype,"isShowMoreHidden",void 0);
_.d([_.F(),_.B("design:type",Object)],HS.prototype,"isShowLessHidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HS.prototype,"hasExpansionButton",void 0);_.d([_.P("data.isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HS.prototype,"isExpanded",null);_.d([_.P("data.isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HS.prototype,"isCollapsed",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HS.prototype,"isInnerShelf",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.B("design:type",Boolean)],HS.prototype,"isShorts",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.B("design:type",Boolean)],HS.prototype,"isLumiere",void 0);_.d([_.F({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],HS.prototype,"hasBoxArtThumbnailStyle",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.B("design:type",Boolean)],HS.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.B("design:type",Boolean)],HS.prototype,"hasFeaturedBadge",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.B("design:type",Boolean)],HS.prototype,"hasPaygatedFeaturedBadge",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.B("design:type",Boolean)],HS.prototype,"isHeaderHidden",void 0);_.d([_.F({selector:_.tf5}),_.B("design:type",Object)],HS.prototype,"allVideosCount",void 0);_.d([_.F({selector:aXm}),_.B("design:type",Object)],HS.prototype,"allPlaylistCount",void 0);_.d([_.F({selector:C9g}),_.B("design:type",Object)],HS.prototype,"haveSmartDownloadsCompleted",void 0);
_.d([_.F({selectorArgs:["entitySelectorType"],selector:function(e,z){if(_.M("kevlar_modern_downloads_page")&&z&&z!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var C=e.entities;switch(z){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":z=_.L4(C);e=H0(z);var w=_.Uk(z);C=_.Ok(C);C=_.K4(kZ1(w,C,z.length));return{contents:e,subtitle:C};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return C=_.L4(C),{contents:H0(C)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return C=
_.hO(C),{contents:H0(C)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return C=_.rYL(C),{contents:H0(C)};default:_.AX(new _.uh("Error: entitySelectorType defined but not matched in selector.",e,z))}}}}),
_.B("design:type",Object)],HS.prototype,"entityDrivenRichShelfData",void 0);_.d([_.F({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],HS.prototype,"hasTopCtaButton",void 0);_.d([_.F({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.B("design:type",Boolean)],HS.prototype,"hasBottomCtaButton",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.B("design:type",Boolean)],HS.prototype,"force16By9ThumbnailAspectRatio",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HS.prototype,"restrictContentsOverflow",void 0);_.d([_.F({selector:_.Deg}),_.B("design:type",Boolean)],HS.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.F({computed:"computeSizing(data)"}),_.B("design:type",String)],HS.prototype,"sizing",void 0);
_.d([_.F(),_.B("design:type",Boolean)],HS.prototype,"typographyBump",void 0);_.d([_.F(),_.B("design:type",Number)],HS.prototype,"itemWidth",void 0);_.d([_.F(),_.B("design:type",Object)],HS.prototype,"firstShownIndex",void 0);_.d([_.F(),_.B("design:type",Object)],HS.prototype,"horizontalOffset",void 0);_.d([_.F(),_.B("design:type",Object)],HS.prototype,"atEnd",void 0);_.d([_.nP("#contents"),_.B("design:type",HTMLElement)],HS.prototype,"contents",void 0);
_.d([_.mi("data.rowIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HS.prototype,"onRowIndexChange",null);_.d([_.mi("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HS.prototype,"isExpandedChanged",null);_.d([_.mi("isCollapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HS.prototype,"isCollapsedChanged",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HS.prototype,"onDataChange",null);_.d([_.mi("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HS.prototype,"handleRerenderDownloadsData",null);_.d([_.Qi("focusin"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],HS.prototype,"onChildElementFocus",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data","isHomePage"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HS.prototype,"isTruncated",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HS.prototype,"showBottomDivider",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],HS.prototype,"hasChevronButtons",null);
_.d([_.P("firstShownIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],HS.prototype,"previousButtonOverride",null);_.d([_.P("atEnd"),_.B("design:type",Object),_.B("design:paramtypes",[])],HS.prototype,"nextButtonOverride",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HS.prototype,"isHomePage",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HS.prototype,"thumbnailAriaHidden",null);
_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],HS.prototype,"entitySelectorType",null);_.d([_.SL({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],HS);
_.n4g=_.Yp()(HS,"ytd-rich-shelf-renderer",function(){if(aFX===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);aFX=e}e=aFX;return e},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var MFo;_.KU(_.Se,"yt-badge-view-model",{props:{data:_.vh,class:_.vh,workaroundShortsIsThumbnailBadge:_.vh,modern:_.vh,numBadgesInRow:_.vh,clipTextOverflow:_.vh}});_.KU(sWX,"yt-slimline-survey-view-model",{props:{data:_.vh}});var U$=function(){var e=_.V.apply(this,arguments)||this;e.tileLottieAnimationRef={};e.backgroundLottieAnimationRef={};e.isOnHoverBehaviorForLottieEnabled=!0;e.useBiggerShowcaseImage=_.M("enable_desktop_search_bigger_thumbs");e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return e};
_.U(U$,_.V);_.Y=U$.prototype;_.Y.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.Y.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.Y.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var e=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);e!==this.hasTile&&this.set("hasTile",e);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.Y.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.Y.currentColorChanged=function(){this.updateButtonPalette()};
_.Y.computeBackgroundStyle=function(e){if(e&&this.data){var z=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var C=_.G9((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);C&&z.push('background-image: url("'+C+'");')}var w;((w=e.basicColorData)==null?void 0:w.backgroundColor)!==void 0&&z.push("background-color: "+_.FN(e.basicColorData.backgroundColor)+";");return z.join("")}};
_.Y.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e)};
_.Y.getCurrentLogo=function(e,z){if(e)return z?e.darkLogoImage:e.lightLogoImage};
_.Y.getCurrentStaticTileImage=function(e,z){if(this.hasStaticTile(e))return e.darkTileImage?z?e.darkTileImage:e.tileImage:e.tileImage};
_.Y.computeTitleStyle=function(e){if(this.data&&this.data.title&&e&&e.basicColorData&&e.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.EG(e.basicColorData.foregroundTitleColor)+";"};
_.Y.computeSubtitleStyle=function(e){if(this.data&&this.data.subtitle&&e&&e.basicColorData&&e.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.EG(e.basicColorData.foregroundBodyColor)+";"};
_.Y.computeSupplementalStyle=function(e){if(this.data&&this.data.supplementalText&&e&&e.supplementalTextColor!==void 0)return e=_.EG(e.supplementalTextColor),"color:"+e+";--yt-endpoint-color:"+e+";--yt-endpoint-hover-color:"+e+";--yt-endpoint-visited-color:"+e+";--yt-formatted-string-bold-font-weight:700;"};
_.Y.computeDismissIconStyle=function(e){var z,C;if((e==null?0:(z=e.dismissButtonColorData)==null?0:z.foregroundTitleColor)&&(e==null?0:(C=e.dismissButtonColorData)==null?0:C.backgroundColor))return"--yt-button-color:"+_.FN(e.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.FN(e.dismissButtonColorData.backgroundColor)+";"};
_.Y.computeOverflowIconStyle=function(e){var z,C;if((e==null?0:(z=e.dismissButtonColorData)==null?0:z.foregroundTitleColor)&&(e==null?0:(C=e.dismissButtonColorData)==null?0:C.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.FN(e.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.FN(e.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.FN(e.dismissButtonColorData.foregroundTitleColor)+";"};
_.Y.computeBannerStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeLocation=function(e){switch(e==null?void 0:e.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.Y.shouldShowTileSection=function(e,z,C){return!this.shouldExpandLogo(e,z,C)&&z};
_.Y.shouldShowExpandedLogoSection=function(e,z,C){return this.shouldExpandLogo(e,z,C)&&e!==void 0&&this.hasLogo(e)};
_.Y.shouldExpandLogo=function(e,z,C){return e&&z?!1:C>=2};
_.Y.hasStaticTile=function(e){return!(e==null||!e.tileImage)};
_.Y.hasTileLottie=function(e){var z;return!!(e==null?0:(z=e.tileLottie)==null?0:z.url)};
_.Y.hasLogo=function(e){return this.getCurrentLogo(e,this.isDarkTheme)!==void 0};
_.Y.getLogoHeight=function(e){return this.logoWithPadding(e)?"26":"20"};
_.Y.getExpandedLogoHeight=function(e){return this.logoWithPadding(e)?"31":"24"};
_.Y.getLogoImageId=function(e){return this.logoWithPadding(e)?"logo-image-with-padding":"logo-image"};
_.Y.getMaxTitleFontSize=function(e){return e.overrideTitleMaxFontSize?String(e.overrideTitleMaxFontSize):"36"};
_.Y.hasBackgroundLottie=function(e){var z;return!!(e==null?0:(z=e.backgroundLottie)==null?0:z.url)};
_.Y.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var e,z;(e=this.tileLottieAnimationRef)==null||(z=e.lottieEl)==null||z.play();var C,w;(C=this.backgroundLottieAnimationRef)==null||(w=C.lottieEl)==null||w.play()}};
_.Y.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var e,z;(e=this.tileLottieAnimationRef)==null||(z=e.lottieEl)==null||z.pause();var C,w;(C=this.backgroundLottieAnimationRef)==null||(w=C.lottieEl)==null||w.pause()}};
_.Y.pauseLottie=function(){var e,z;(e=this.tileLottieAnimationRef)==null||(z=e.lottieEl)==null||z.pause();var C,w;(C=this.backgroundLottieAnimationRef)==null||(w=C.lottieEl)==null||w.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.Y.performPrimaryButtonAction=function(){var e,z,C;((e=this.data)==null?0:(z=e.primaryButton)==null?0:(C=z.buttonRenderer)==null?0:C.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.Y.requestElementsPerRow=function(){_.pi(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateButtonPalette=function(){if(this.data&&this.currentColorData){var e;((e=this.data.dismissButton)==null?0:e.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 z;if((z=this.data.primaryButton)==null?0:z.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 C;if((C=this.data.secondaryButton)==
null?0:C.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 w;((w=this.data.primaryButton)==null?0:w.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var K;((K=this.data.primaryButton)==null?0:K.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var G;((G=this.data.secondaryButton)==null?0:G.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var X;((X=this.data.primaryButton)==null?0:X.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.Y.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var e=this.getTileLottieDataBasedOnTheme(),z,C;if(e.url!==((z=this.tileLottiePlayerProps)==null?void 0:(C=z.animationConfig)==null?void 0:C.path)){var w,K;(w=this.tileLottieAnimationRef)==null||(K=w.lottieEl)==null||K.destroy();var G;this.isOnHoverBehaviorForLottieEnabled=!((G=e.settings)==null?0:G.autoplay);var X,J;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(J=(X=e.settings)==null?void 0:X.autoplay)!=null?J:!1,loop:this.getLottieLoopValue(e.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof e.url==="string"?this.tileLottiePlayerProps.animationConfig.path=e.url:this.tileLottiePlayerProps.animationConfig.animationData=e.url}}};
_.Y.getOverflowButton=function(e){return _.r(e.overflowButton,aCa)};
_.Y.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var e=this.getBackgroundLottieDataBasedOnTheme(),z,C;if(e.url!==((z=this.backgroundLottiePlayerProps)==null?void 0:(C=z.animationConfig)==null?void 0:C.path)){var w,K;(w=this.backgroundLottieAnimationRef)==null||(K=w.lottieEl)==null||K.destroy();var G;this.isOnHoverBehaviorForLottieEnabled=!((G=e.settings)==null?0:G.autoplay);var X,J;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(J=(X=e.settings)==null?void 0:X.autoplay)!=null?J:!1,loop:this.getLottieLoopValue(e.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof e.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=e.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
e.url}}};
_.Y.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var e;((e=this.tileLottieAnimationRef)==null?void 0:e.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var z;((z=this.backgroundLottieAnimationRef)==null?void 0:z.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.Y.getTileLottieDataBasedOnTheme=function(){var e;if(this.isDarkTheme&&((e=this.data)==null?0:e.darkThemeTileLottie))return this.data.darkThemeTileLottie;var z;return((z=this.data)==null?0:z.tileLottie)?this.data.tileLottie:{}};
_.Y.getBackgroundLottieDataBasedOnTheme=function(){var e;if(this.isDarkTheme&&((e=this.data)==null?0:e.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var z;return((z=this.data)==null?0:z.backgroundLottie)?this.data.backgroundLottie:{}};
_.Y.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e)};
_.Y.getLottieLoopValue=function(e){return e?e.loop!==void 0?e.loop:e.loopCount?e.loopCount-1:!0:!0};
_.Y.logoWithPadding=function(e){var z,C,w;return(e=(z=this.getCurrentLogo(e,this.isDarkTheme))==null?void 0:(C=z.thumbnails)==null?void 0:(w=C[0])==null?void 0:w.height)&&e%31===0?!0:!1};
U$.prototype.currentColorChanged=U$.prototype.currentColorChanged;U$.prototype.themeChanged=U$.prototype.themeChanged;U$.prototype.dataChanged=U$.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],U$.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],U$.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],U$.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],U$.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],U$.prototype,"primaryButton",void 0);_.d([_.F(),_.B("design:type",Object)],U$.prototype,"secondaryButton",void 0);
_.d([_.F({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],U$.prototype,"elementsPerRow",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],U$.prototype,"isDarkTheme",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],U$.prototype,"hasTile",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],U$.prototype,"hasMetadata",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],U$.prototype,"showLogoImage",void 0);_.d([_.F(),_.B("design:type",Object)],U$.prototype,"currentColorData",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.B("design:type",String)],U$.prototype,"bannerStyle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.B("design:type",String)],U$.prototype,"location",void 0);
_.d([_.F(),_.B("design:type",Object)],U$.prototype,"tileLottiePlayerProps",void 0);_.d([_.F(),_.B("design:type",Object)],U$.prototype,"tileLottieAnimationRef",void 0);_.d([_.F(),_.B("design:type",Object)],U$.prototype,"backgroundLottiePlayerProps",void 0);_.d([_.F(),_.B("design:type",Object)],U$.prototype,"backgroundLottieAnimationRef",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U$.prototype,"useBiggerShowcaseImage",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],U$.prototype,"isHideEnclosingAction",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U$.prototype,"dataChanged",null);_.d([_.Ux("isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U$.prototype,"themeChanged",null);
_.d([_.Ux("currentColorData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U$.prototype,"currentColorChanged",null);_.d([_.SL({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],U$);
_.u(U$,"ytd-statement-banner-renderer",function(){if(MFo!==void 0)return MFo;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return MFo=e},{mode:1});var rMT;var vS=function(){var e=_.V.apply(this,arguments)||this;e.isSearch=!1;e.hideShelfHeader=!1;e.engagementPanel=!1;e.disableMouseScroll=!0;e.useFloorScrolling=!0;return e};
_.U(vS,_.V);vS.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.kk("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.kk("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
vS.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
vS.prototype.onDataChanged=vS.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vS.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],vS.prototype,"hideShelfHeader",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],vS.prototype,"engagementPanel",void 0);_.d([_.F(),_.B("design:type",Object)],vS.prototype,"disableMouseScroll",void 0);_.d([_.F(),_.B("design:type",Object)],vS.prototype,"useFloorScrolling",void 0);_.d([_.F(),_.B("design:type",Object)],vS.prototype,"data",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vS.prototype,"onDataChanged",null);
_.d([_.SL({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],vS);
_.u(vS,"ytd-reel-shelf-renderer",function(){if(rMT!==void 0)return rMT;var e=document.createElement("template");_.v(e,'\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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return rMT=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var Hfo;var UrU;UrU=_.Kb(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.v4o=_.nJ(UrU);var IFU=_.f(function(e){var z=e.data;e=e.useSmallFont;var C={},w={};return _.x("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.x(_.l,{cond:function(){return z().favicon},
then:function(K){return _.x(_.Zf,{data:K,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.x("div",{class:"ytChannelExternalLinkViewModelContainer"},_.x(_.U2,{text:function(){return z().title},
className:_.qT("ytChannelExternalLinkViewModelTitle",(C.ytChannelExternalLinkViewModelTitleSmallFont=e,C)),ellipsisTruncate:!0,userInput:!0}),_.x(_.U2,{text:function(){return z().link},
className:_.qT("ytChannelExternalLinkViewModelLink",(w.ytChannelExternalLinkViewModelLinkSmallFont=e,w)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"cd");
IFU.idomCompat=!0;_.KU(IFU,"yt-channel-external-link-view-model",{props:{data:_.vh,useSmallFont:_.vh}});_.hq("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var I_=function(){var e=_.V.apply(this,arguments)||this;e.revealButtonClass="button";e.businessEmailDisplayState="HIDE_SECTION";return e};
_.U(I_,_.V);_.Y=I_.prototype;_.Y.refit=function(){var e=this;_.BI(function(){_.zj(e.hostElement,"yt-refit-popups-action")});
_.T0(this,function(){_.zj(e.hostElement,"yt-refit-popups-action")})};
_.Y.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Vq(_.v4o),this.businessEmailDisplayState="CAPTCHA")};
_.Y.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"};
_.Y.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Y.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"}}}};
_.Y.computeEmailHref=function(e){return"mailto:"+e};
_.Y.computeSafeUrl=function(e){if(e)return _.gw(e)};
_.Y.linkEndpoint=function(e){return _.r(e.onTap,_.fm)};
_.Y.linkEndpointToHref=function(e){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(e))};
_.Y.onYtServiceRequestCompleted=function(e){var z;if((z=e.detail.data)==null?0:z.businessEmail)this.businessEmail=e.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var C;if((C=e.detail.data)==null?0:C.errorMessage)this.businessEmailErrorMessage=e.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Y.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var e=this.JSC$16587_captchaTextarea.value;if(e){e={recaptcha_response_token:e,channel_id:this.metadata.channelId};var z=_.r(this.metadata.onBusinessEmailRevealClickCommand,_.fm);z&&this.ytComponentBehavior.resolveCommand(z,{form:e})}}};
_.Y.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.lB.Object.defineProperties(I_.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var e;return _.r((e=this.data)==null?void 0:e.metadata,M1X)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.r(this.metadata.businessEmailRevealButton,_.H7)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var e=new URL(this.metadata.canonicalChannelUrl);return e.host+e.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 _.r(this.metadata.learnMoreOnTap,_.fm)}}});
I_.prototype.onYtServiceRequestCompleted=I_.prototype.onYtServiceRequestCompleted;I_.prototype.businessEmailMetadataChanged=I_.prototype.businessEmailMetadataChanged;I_.prototype.refit=I_.prototype.refit;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],I_.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],I_.prototype,"JSC$16587_captchaTextarea",void 0);_.d([_.F(),_.B("design:type",Object)],I_.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],I_.prototype,"revealButtonClass",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],I_.prototype,"metadata",null);
_.d([_.P("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],I_.prototype,"revealButton",null);_.d([_.P("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],I_.prototype,"channelDisplayUrl",null);_.d([_.Ux("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I_.prototype,"refit",null);_.d([_.P("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],I_.prototype,"formattedDescription",null);
_.d([_.P("metadata","learnMoreCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],I_.prototype,"shouldRendereVerifiedPhoneStatus",null);_.d([_.P("metadata"),_.B("design:type",Object),_.B("design:paramtypes",[])],I_.prototype,"learnMoreCommand",null);_.d([_.F(),_.B("design:type",String)],I_.prototype,"businessEmailDisplayState",void 0);_.d([_.F(),_.B("design:type",String)],I_.prototype,"businessEmail",void 0);
_.d([_.F(),_.B("design:type",String)],I_.prototype,"businessEmailErrorMessage",void 0);_.d([_.Ux("metadata"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I_.prototype,"businessEmailMetadataChanged",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],I_.prototype,"onYtServiceRequestCompleted",null);
_.d([_.SL({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],I_);
_.u(I_,"ytd-about-channel-renderer",function(){if(Hfo!==void 0)return Hfo;var e=document.createElement("template");_.v(e,'\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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Hfo=e},{mode:1});var Wd4;var WS=function(){return _.V.apply(this,arguments)||this};
_.U(WS,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],WS.prototype,"data",void 0);_.d([_.SL({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],WS);
_.u(WS,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Wd4!==void 0)return Wd4;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Wd4=e},{mode:1});var PPT;var PS=function(){return _.V.apply(this,arguments)||this};
_.U(PS,_.V);PS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],PS.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],PS.prototype,"aligment",void 0);_.d([_.SL({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],PS);
_.u(PS,"ytd-channel-list-sub-menu-renderer",function(){if(PPT!==void 0)return PPT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return PPT=
e},{mode:1});var RYU;var R_=function(){return _.V.apply(this,arguments)||this};
_.U(R_,_.V);R_.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}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],R_.prototype,"data",void 0);_.d([_.SL({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],R_);
_.u(R_,"ytd-channel-sub-menu-renderer",function(){if(RYU!==void 0)return RYU;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return RYU=e},{mode:1});var Ldo;var hYa;var La=function(){var e=_.V.apply(this,arguments)||this;e.isCompact=!1;return e};
_.U(La,_.V);_.lB.Object.defineProperties(La.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var e,z;return((z=_.r((e=this.data)==null?void 0:e.endpoint,_.oO))==null?void 0:z.target)==="TARGET_NEW_WINDOW"}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],La.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],La.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],La.prototype,"isCompact",void 0);_.d([_.P("isCompact"),_.B("design:type",Number),_.B("design:paramtypes",[])],La.prototype,"thumbnailWidth",null);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],La.prototype,"openNewWindow",null);_.d([_.SL({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],La);
_.u(La,"ytd-media-lockup-renderer",function(){if(hYa!==void 0)return hYa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return hYa=e},{mode:1});var Ofg;var hF=function(){return _.V.apply(this,arguments)||this};
_.U(hF,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],hF.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hF.prototype,"data",void 0);_.d([_.SL({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],hF);
_.u(hF,"ytd-structured-description-channel-lockup-renderer",function(){if(Ofg!==void 0)return Ofg;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Ofg=e},{mode:1});var E4X;var O$=function(){var e=_.V.apply(this,arguments)||this;e.isCompact=!1;e.collectionsStackColor=_.M("modernize_structured_description_playlist_lockups_v2");return e};
_.U(O$,_.V);O$.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:_.M("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.lB.Object.defineProperties(O$.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K,G;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(e=this.data)==null?void 0:(z=e.thumbnail)==null?void 0:z.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(C=this.data)==null?void 0:(w=C.thumbnail)==null?void 0:w.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(K=this.data)==null?void 0:(G=K.thumbnail)==null?
void 0:G.vibrantColorPalette:void 0}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],O$.prototype,"componentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],O$.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],O$.prototype,"showSidePanelThumbnailOverlay",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],O$.prototype,"isCompact",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],O$.prototype,"collectionsStackColor",void 0);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],O$.prototype,"twoLineTitle",null);_.d([_.P("data","collectionsStackColor"),_.B("design:type",Object),_.B("design:paramtypes",[])],O$.prototype,"collectionStack",null);
_.d([_.SL({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],O$);
_.u(O$,"ytd-structured-description-playlist-lockup-renderer",function(){if(E4X!==void 0)return E4X;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return E4X=e},{mode:1});var Fda;var E$=function(){return _.V.apply(this,arguments)||this};
_.U(E$,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],E$.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],E$.prototype,"data",void 0);_.d([_.SL({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],E$);
_.u(E$,"ytd-structured-description-video-lockup-renderer",function(){if(Fda!==void 0)return Fda;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Fda=e},{mode:2});var FQ=function(){return _.V.apply(this,arguments)||this};
_.U(FQ,_.V);
FQ.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}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],FQ.prototype,"data",void 0);_.d([_.SL({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],FQ);
_.u(FQ,"ytd-compact-infocard-renderer",function(){if(Ldo!==void 0)return Ldo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Ldo=e},{mode:1});var VFc;var VD=function(){return _.V.apply(this,arguments)||this};
_.U(VD,_.V);VD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.lB.Object.defineProperties(VD.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],VD.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],VD.prototype,"ytdReduxBehavior",void 0);_.d([_.F({selector:_.Sj}),_.B("design:type",Object)],VD.prototype,"isGridViewEnabled",void 0);
_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],VD.prototype,"watchFeedBigThumbs",null);_.d([_.P("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"168"}),_.B("design:type",String),_.B("design:paramtypes",[])],VD.prototype,"thumbnailWidth",null);_.d([_.P("isGridViewEnabled","data"),_.F({reflectToAttribute:!0,value:"94"}),_.B("design:type",String),_.B("design:paramtypes",[])],VD.prototype,"customThumbnailSize",null);
_.d([_.F(),_.B("design:type",Object)],VD.prototype,"data",void 0);_.d([_.SL({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],VD);
_.u(VD,"ytd-compact-playlist-renderer",function(){if(VFc!==void 0)return VFc;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return VFc=e},{mode:1});var fFY;var fa=function(){var e=_.V.apply(this,arguments)||this;e.roundedContainer=!0;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return e};
_.U(fa,_.V);_.Y=fa.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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"}}}};
_.Y.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.Y.computeViewStyle=function(e){return e.style?e.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.Y.onUpdateElementsPerRowAction=function(e){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&e===1};
_.Y.requestElementsPerRow=function(){_.pi(this.hostElement,"yt-request-elements-per-row")};
fa.prototype.dataChanged=fa.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],fa.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],fa.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],fa.prototype,"actionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],fa.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],fa.prototype,"hideThumbnail",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.B("design:type",String)],fa.prototype,"viewStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],fa.prototype,"roundedContainer",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fa.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],fa);
_.u(fa,"ytd-compact-promoted-item-renderer",function(){if(fFY!==void 0)return fFY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return fFY=e},{mode:1});var S1C;var SR=function(){return _.V.apply(this,arguments)||this};
_.U(SR,_.V);SR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
SR.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
SR.prototype.onYtNavigate=function(e,z){var C=this;if(z.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",z)){var w=this.get("watchEndpoint.videoId",z.endpoint),K=_.zj(this.hostElement,"yt-get-current-video-id-action")[0];_.M("kevlar_mix_handle_first_endpoint_different")&&w&&K&&w!==K||(e.stopPropagation(),_.Gi().getPlayerPromise().then(function(G){if(G.getPlayerState()===0&&C.data.secondaryNavigationEndpoint)var X=C.data.secondaryNavigationEndpoint;else{X=
Object.assign({},z.endpoint);var J=_.r(X.commandMetadata,_.XV);J&&(G=Math.floor(G.getCurrentTime()),J.url=_.XF(J.url,{t:G}),!_.M("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(J=_.r(X,_.N$)))&&(J.startTimeSeconds=G)}_.pi(C.hostElement,"yt-navigate",{endpoint:X})}))}};
_.lB.Object.defineProperties(SR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K,G;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(e=this.data)==null?void 0:(z=e.thumbnail)==null?void 0:z.sampledThumbnailColor,vibrantColorPalette:(C=this.data)==null?void 0:(w=C.thumbnail)==null?void 0:w.vibrantColorPalette,darkColorPalette:(K=this.data)==null?void 0:(G=K.thumbnail)==null?void 0:G.darkColorPalette,experimentEnabled:!0}}}});
SR.prototype.onYtNavigate=SR.prototype.onYtNavigate;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.y5.YtEndpointBehavior),_.B("design:type",Object)],SR.prototype,"ytEndpointBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],SR.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.W(_.I0),_.B("design:type",Object)],SR.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],SR.prototype,"ytdReduxBehavior",void 0);_.d([_.F({selector:_.Sj}),_.B("design:type",Object)],SR.prototype,"isGridViewEnabled",void 0);_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],SR.prototype,"watchFeedBigThumbs",null);
_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],SR.prototype,"thumbnailWidth",null);_.d([_.F(),_.B("design:type",Object)],SR.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],SR.prototype,"collectionStack",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],SR.prototype,"onYtNavigate",null);
_.d([_.SL({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],SR);
_.u(SR,"ytd-compact-radio-renderer",function(){if(S1C!==void 0)return S1C;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return S1C=e},{mode:1});var uia;var u_=function(){return _.V.apply(this,arguments)||this};
_.U(u_,_.V);u_.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
u_.prototype.computeRendererStyle=function(e){return e.style?e.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.d([_.F(),_.B("design:type",Object)],u_.prototype,"data",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],u_.prototype,"rendererBehavior",void 0);_.d([_.F({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.B("design:type",String)],u_.prototype,"rendererStyle",void 0);_.d([_.SL({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],u_);
_.u(u_,"ytd-compact-text-promo-renderer",function(){if(uia!==void 0)return uia;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return uia=e},{mode:1});var drC;var d_=function(){var e=_.V.apply(this,arguments)||this;e.isShortsStyle=!1;return e};
_.U(d_,_.V);_.Y=d_.prototype;_.Y.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"}}}};
_.Y.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.pi(this.hostElement,"yt-disable-lockup-interaction"):_.pi(this.hostElement,"yt-enable-lockup-interaction"))};
_.Y.isMetaBlockEmpty=function(e){return!e||!e.longBylineText&&!e.shortBylineText&&!e.shortViewCountText&&!e.viewCountText};
_.Y.computeHasOneLineTitle=function(e){return this.forceOneLineTitle||!(e==null||!e.buttons)};
_.Y.computeDisableInteraction=function(){var e;return!((e=this.data)==null?0:e.navigationEndpoint)};
_.Y.hasSingularTopStandaloneBadge=function(){var e;return!((e=this.data)==null||!e.topStandaloneBadge)};
_.lB.Object.defineProperties(d_.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("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 e;return this.hasSingularTopStandaloneBadge()?[(e=this.data)==null?void 0:e.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var e;return this.shouldShowTopBadges?((e=this.data)==null?void 0:e.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
d_.prototype.disableInteractionChanged=d_.prototype.disableInteractionChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],d_.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],d_.prototype,"ytdLockupBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],d_.prototype,"ytdReduxBehavior",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.B("design:type",Boolean)],d_.prototype,"metaBlockEmpty",void 0);_.d([_.F({selector:_.Sj}),_.B("design:type",Object)],d_.prototype,"isGridViewEnabled",void 0);_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],d_.prototype,"watchFeedBigThumbs",null);
_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],d_.prototype,"thumbnailWidth",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],d_.prototype,"isShortsStyle",void 0);_.d([_.F(),_.B("design:type",Object)],d_.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.B("design:type",Boolean)],d_.prototype,"hasOneLineTitle",void 0);
_.d([_.F(),_.B("design:type",Boolean)],d_.prototype,"hideThumbnail",void 0);_.d([_.F(),_.B("design:type",Boolean)],d_.prototype,"forceOneLineTitle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.B("design:type",Boolean)],d_.prototype,"disableInteraction",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],d_.prototype,"musicMetadataVideoLockup",void 0);
_.d([_.mi("disableInteraction"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],d_.prototype,"disableInteractionChanged",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],d_.prototype,"shouldShowTopBadges",null);_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],d_.prototype,"topBadges",null);
_.d([_.P("shouldShowTopBadges","data"),_.B("design:type",Array),_.B("design:paramtypes",[])],d_.prototype,"inlineMetadataBadges",null);_.d([_.P("shouldShowTopBadges"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],d_.prototype,"shouldShowBadgesBelowMetadata",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],d_.prototype,"compactTitleClass",null);_.d([_.SL({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],d_);
_.u(d_,"ytd-compact-video-renderer",function(){if(drC!==void 0)return drC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return drC=e},{mode:_.bA("kevlar_poly_si_batch_j067")?1:2});var Dra;_.hq("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Dq=function(){return _.V.apply(this,arguments)||this};
_.U(Dq,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Dq.prototype,"data",void 0);_.d([_.SL({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Dq);
_.u(Dq,"ytd-counterfactual-renderer",function(){if(Dra!==void 0)return Dra;var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Dra=e},{mode:1});var ifh;var i_=function(){var e=_.V.apply(this,arguments)||this;e.hidden=!1;return e};
_.U(i_,_.V);i_.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.lh().resolve(_.ms).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
i_.prototype.computeHidden=function(e){return!!e};
_.lB.Object.defineProperties(i_.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}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],i_.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.B("design:type",Object)],i_.prototype,"hidden",void 0);_.d([_.P("data.label"),_.B("design:type",String),_.B("design:paramtypes",[])],i_.prototype,"label",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],i_.prototype,"value",null);
_.d([_.SL({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],i_);
_.u(i_,"ytd-dropdown-item-renderer",function(){if(ifh!==void 0)return ifh;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ifh=e},{mode:1});var Nxo;var sqS;var Nj=function(){return _.V.apply(this,arguments)||this};
_.U(Nj,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Nj.prototype,"data",void 0);_.d([_.F({computed:"getSimpleString(data.label)"}),_.B("design:type",String)],Nj.prototype,"label",void 0);_.d([_.SL({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Nj);
_.u(Nj,"ytd-navigation-dropdown-item-renderer",function(){if(sqS!==void 0)return sqS;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return sqS=e},{mode:1});var s$=function(){var e=_.V.apply(this,arguments)||this;e.disabled=!1;e.value="";e.noLabelFloat=!1;e.noUnderline=!1;e.usePrimaryColor=!1;e.hasBackground=!1;e.verticalAlign="top";e.autosize=!1;e.minAutosizeWidth=100;e.autosizeFont="14px Roboto";return e};
_.U(s$,_.V);_.Y=s$.prototype;_.Y.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"}}}};
_.Y.open=function(){this.inputEl.open()};
_.Y.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.Y.dataChanged=function(){this.reset()};
_.Y.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("value-changed",this.value))};
_.Y.stopPropagation=function(e){e.stopPropagation()};
_.Y.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var e=this.canvas.getContext("2d");e&&(e.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(e.measureText(this.inputEl.value).width)+24)+"px")}};
_.Y.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var e=0,z=this.data.entries.length;e<z;e++){var C=this.data.entries[e],w;for(w in C)if(C.hasOwnProperty(w)){var K=C[w];if("isSelected"in K&&K.isSelected)return"stringValue"in K?K.stringValue||"":"int32Value"in K?K.int32Value||0:0}}return null};
_.Y.updateValueFromBinding=function(e){this.value=e.detail.value};
_.lB.Object.defineProperties(s$.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 e=0,z=this.data.entries.length;e<z;e++){var C=this.data.entries[e],w;for(w in C)if(C.hasOwnProperty(w)){var K=C[w];if("isSelected"in K&&K.isSelected&&"label"in K)return this.ytRendererBehavior.getSimpleString(K.label)}}return null}}});
s$.prototype.autoSizeLabel=s$.prototype.autoSizeLabel;s$.prototype.stopPropagation=s$.prototype.stopPropagation;s$.prototype.valueChangedForBinding=s$.prototype.valueChangedForBinding;s$.prototype.dataChanged=s$.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],s$.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],s$.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],s$.prototype,"disabled",void 0);_.d([_.F(),_.B("design:type",Object)],s$.prototype,"value",void 0);_.d([_.F(),_.B("design:type",Object)],s$.prototype,"noLabelFloat",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],s$.prototype,"noUnderline",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],s$.prototype,"theme",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],s$.prototype,"usePrimaryColor",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],s$.prototype,"hasBackground",void 0);_.d([_.F(),_.B("design:type",Object)],s$.prototype,"verticalAlign",void 0);_.d([_.F(),_.B("design:type",Object)],s$.prototype,"autosize",void 0);_.d([_.F(),_.B("design:type",Object)],s$.prototype,"minAutosizeWidth",void 0);_.d([_.F(),_.B("design:type",Object)],s$.prototype,"autosizeFont",void 0);
_.d([_.nP("#entries"),_.B("design:type",Object)],s$.prototype,"entries",void 0);_.d([_.nP("#input"),_.B("design:type",Object)],s$.prototype,"inputEl",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s$.prototype,"dataChanged",null);_.d([_.Ux("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s$.prototype,"valueChangedForBinding",null);
_.d([_.Qi("iron-overlay-opened"),_.Qi("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],s$.prototype,"stopPropagation",null);_.d([_.Qi("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s$.prototype,"autoSizeLabel",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],s$.prototype,"label",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],s$);
_.u(s$,"ytd-dropdown-renderer",function(){if(Nxo!==void 0)return Nxo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Nxo=e},{mode:1});var BxS;var BS=function(){var e=_.V.apply(this,arguments)||this;e.isConstrainedList=!1;return e};
_.U(BS,_.V);BS.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"}}}};
BS.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
BS.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
BS.prototype.computeViewAllHidden=function(e,z){return e||!z.viewAllEndpoint};
BS.prototype.fillRestIfNoShowMore=BS.prototype.fillRestIfNoShowMore;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],BS.prototype,"ytLazyListBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BS.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],BS.prototype,"isConstrainedList",void 0);_.d([_.Ux("data","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BS.prototype,"fillRestIfNoShowMore",null);_.d([_.SL({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],BS);
_.u(BS,"ytd-expanded-shelf-contents-renderer",function(){if(BxS!==void 0)return BxS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return BxS=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var tFo;var tF=function(){return _.V.apply(this,arguments)||this};
_.U(tF,_.V);tF.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}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tF.prototype,"data",void 0);_.d([_.SL({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],tF);
_.u(tF,"ytd-feed-channel-filter-header-renderer",function(){if(tFo!==void 0)return tFo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return tFo=e},{mode:1});var g4a;var jqa;var yMc;var g_=function(){return _.V.apply(this,arguments)||this};
_.U(g_,_.V);_.Y=g_.prototype;_.Y.onClick=function(e){var z,C=(z=this.data)==null?void 0:z.sectionEndpoint;!_.zi(_.cJ(e),this.hostElement,["A".toString()])&&C&&_.pi(this.hostElement,"yt-navigate",{endpoint:C})};
_.Y.computeHasSectionEndpoint=function(e){return(e==null?void 0:e.sectionEndpoint)!==void 0};
_.Y.computeShowHeaderAsLink=function(e){return(e==null?void 0:e.header)!==void 0&&(e==null?void 0:e.sectionEndpoint)!==void 0};
_.Y.computeShowSubheaderAsLink=function(e){return(e==null?void 0:e.subheader)!==void 0&&(e==null?void 0:e.sectionEndpoint)!==void 0&&(e==null?void 0:e.header)===void 0};
_.Y.getHeaderAsLinkClass=function(e){var z=[],C;(e==null?0:(C=e.headerIcon)==null?0:C.iconType)&&z.push("header-link-active");return z.join(" ")};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],g_.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],g_.prototype,"data",void 0);
_.d([_.F({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],g_.prototype,"hasSectionEndpoint",void 0);_.d([_.F({computed:"computeShowHeaderAsLink(data)"}),_.B("design:type",Boolean)],g_.prototype,"showHeaderAsLink",void 0);_.d([_.F({computed:"computeShowSubheaderAsLink(data)"}),_.B("design:type",Boolean)],g_.prototype,"showSubheaderAsLink",void 0);_.d([_.SL({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],g_);
_.u(g_,"ytd-medical-panel-section-renderer",function(){if(yMc!==void 0)return yMc;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return yMc=e},{mode:1});var jR=function(){var e=_.V.apply(this,arguments)||this;e.isExpanded=!1;e.roundedContainer=!0;e.skipRoundingTop=!1;e.toggleExpandableSection=function(){e.isExpanded=!e.isExpanded};
return e};
_.U(jR,_.V);
jR.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]]"}}}}}};
jR.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
jR.prototype.dataChanged=jR.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jR.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],jR.prototype,"isExpanded",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jR.prototype,"roundedContainer",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jR.prototype,"skipRoundingTop",void 0);_.d([_.F(),_.B("design:type",Object)],jR.prototype,"toggleExpandableSection",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jR.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],jR);
_.u(jR,"ytd-medical-panel-content-renderer",function(){if(jqa!==void 0)return jqa;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return jqa=e},{mode:1});_.hq("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var yD=function(){var e=_.V.apply(this,arguments)||this;e.roundedContainer=!0;e.extractOverlay=!1;e.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");e.hasTitle=!1;e.linkIcon="OPEN_IN_NEW";e.isDismissed=!1;return e};
_.U(yD,_.V);yD.prototype.onOverlayConditionsChange=function(){var e=_.XC(this.hostElement).querySelector("ytd-info-panel-content-renderer");e&&(e.set("extractOverlay",this.extractOverlay),e.set("roundedContainer",this.roundedContainer))};
yD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
yD.prototype.computeHasTitle=function(e){return!(e==null||!e.title)};
yD.prototype.onClick=function(e){var z,C=(z=this.data)==null?void 0:z.headerEndpoint;!_.zi(_.cJ(e),this.hostElement,["BUTTON".toString()])&&C&&this.ytComponentBehavior.resolveCommand(C)};
_.lB.Object.defineProperties(yD.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 e;return((e=this.data)==null?void 0:e.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:e.disableBottomDivider)||!((z=this.data)==null?0:z.title)}}});
yD.prototype.onOverlayConditionsChange=yD.prototype.onOverlayConditionsChange;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],yD.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],yD.prototype,"ytdReduxBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],yD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yD.prototype,"roundedContainer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yD.prototype,"extractOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],yD.prototype,"amsterdamEnabled",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Object)],yD.prototype,"hasTitle",void 0);
_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.background"),_.B("design:type",Object),_.B("design:paramtypes",[])],yD.prototype,"background",null);_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],yD.prototype,"titleStyle",null);
_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.P("data.titleStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],yD.prototype,"showLinkIcon",null);_.d([_.F(),_.B("design:type",String)],yD.prototype,"linkIcon",void 0);_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yD.prototype,"hideDivider",null);
_.d([_.F({selectorArgs:["data.dismissStateEntityKey"],selector:function(e,z){e=_.xz(e.entities,"dismissState",z);return(e==null?void 0:e.isDismissed)||(e==null?void 0:e.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(e==null?void 0:e.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.B("design:type",Object)],yD.prototype,"isDismissed",void 0);_.d([_.mi("roundedContainer","extractOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yD.prototype,"onOverlayConditionsChange",null);_.d([_.SL({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],yD);
_.u(yD,"ytd-info-panel-container-renderer",function(){if(g4a!==void 0)return g4a;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return g4a=e},{mode:1});var cMT;_.hq("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var cS=function(){return _.V.apply(this,arguments)||this};
_.U(cS,_.V);cS.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cS.prototype.computeStyle=function(e){return e?e:""};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cS.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cS.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.B("design:type",String)],cS.prototype,"titleStyle",void 0);
_.d([_.SL({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],cS);
_.Yp()(cS,"ytd-item-section-header-renderer",function(){if(cMT===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);cMT=e}e=cMT;return e},{allowedProps:["data"],
mode:1});var AMo;var ZfU,pgh=function(){return ZfU!==void 0?ZfU:ZfU=document.createElement("template")};
document.head.appendChild(pgh().content);var e8U;_.AF=new _.Mt("VOTING_ANIMATION_CONTROLLER_TOKEN");var CVa=_.f(function(e){var z=e.data;var C=_.kI("div"),w=_.kI("div");e=_.b(_.II("VOTE_STATUS_NONE",void 0,"YPH5mf"));var K=e.next().value,G=e.next().value,X=_.vF(M9g,function(){var a;return(a=z())==null?void 0:a.entityKey}),J=_.M("web_enable_voting_animation")||_.M("enable_music_web_cairo_voting_animation");
_.sg(function(){var a;((a=z().initialState)==null?0:a.status)&&G(z().initialState.status)});
var q=function(){var a,n,H=(n=(a=z().initialState)==null?void 0:a.votes)!=null?n:0,I;a=(I=z().initialState)==null?void 0:I.status;return a==="VOTE_STATUS_UPVOTED"?H-1:a==="VOTE_STATUS_DOWNVOTED"?H+1:H},T=function(){return K()==="VOTE_STATUS_UPVOTED"?q()+1:K()==="VOTE_STATUS_DOWNVOTED"?q()-1:q()},Q=function(a){var n=a?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
G(n);var H=T(),I=_.lh().resolve(_.$B(_.AF)),L=X();L&&(a&&(L==null?0:L.upvoteDefaultButtonOnTap)?_.NF(L.upvoteDefaultButtonOnTap,{form:{element:C.value},disableClickTracking:!0}):(L==null?0:L.upvoteToggledButtonOnTap)&&_.NF(L.upvoteToggledButtonOnTap,{form:{element:C.value},disableClickTracking:!0}));var h;a=(h=L==null?void 0:L.enableOptimisticReordering)!=null?h:z().enableOptimisticReordering;J&&I&&z().itemId&&a&&z8L(I,z().itemId,H,n)},m=function(a){var n=a?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
G(n);var H=T(),I=_.lh().resolve(_.$B(_.AF)),L=X();L&&(a&&(L==null?0:L.downvoteDefaultButtonOnTap)?_.NF(L.downvoteDefaultButtonOnTap,{form:{element:w.value},disableClickTracking:!0}):(L==null?0:L.downvoteToggledButtonOnTap)&&_.NF(L.downvoteToggledButtonOnTap,{form:{element:w.value},disableClickTracking:!0}));var h;a=(h=L==null?void 0:L.enableOptimisticReordering)!=null?h:z().enableOptimisticReordering;J&&I&&z().itemId&&a&&z8L(I,z().itemId,H,n)};
e={};e=_.qT("ytVotingViewModelVoteCount",(e.ytVotingViewModelVoteCountDisabled=function(){return z().isDisabled},e));
return _.x("voting-view-model",{class:"ytVotingViewModelHost"},_.x("div",{el:C},_.x(_.PF,{data:function(){var a=_.r(z().upvoteButton,_.v7);return{toggleButtonViewModel:Object.assign({},a,{isToggled:K()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(a){return _.x(_.XG,{data:a.data,
onToggle:Q})}})),_.x("div",{class:e},function(){var a,n,H;
return K()==="VOTE_STATUS_UPVOTED"?(a=z().initialState)==null?void 0:a.compactVotesUpvoted:K()==="VOTE_STATUS_DOWNVOTED"?(n=z().initialState)==null?void 0:n.compactVotesDownvoted:(H=z().initialState)==null?void 0:H.compactVotes}),_.x("div",{el:w},_.x(_.PF,{data:function(){var a=_.r(z().downvoteButton,_.v7);
return{toggleButtonViewModel:Object.assign({},a,{isToggled:K()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(a){return _.x(_.XG,{data:a.data,
onToggle:m})}})))},"dd");_.KU(_.f(function(e){var z=e.data;return _.x("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.x("div",{class:_.qT("ytEngagementBarViewModelEngagementBarWrapper",e.className)},_.x(_.PF,{data:function(){return z().actions}},{votingViewModel:CVa})))},"ed"),"engagement-bar-view-model",{props:{data:_.vh,
className:_.vh}});var Zq=function(){var e=_.V.apply(this,arguments)||this;e.playlistVotingAnimationEnabled=_.M("web_enable_voting_animation");e.downloadProgress=0;e.transferState="TRANSFER_STATE_UNKNOWN";e.downloadState="DOWNLOAD_STATE_UNKNOWN";e.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";e.offlineVideoPolicyExpirationTimestamp=0;return e};
_.U(Zq,_.V);_.Y=Zq.prototype;_.Y.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"}}}};
_.Y.canReorderChanged=function(){this.persistentDragHandle=_.M("kevlar_playlist_drag_handles")&&this.canReorder};
_.Y.onDrag=function(){if(this.thumbnail){var e=_.XC(this.thumbnail).querySelector("yt-image");e&&(e.shouldRenderLazy=!1)}};
_.Y.onMenuOverlayChanged=function(e,z){this.menuOpened=z};
_.Y.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Y.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Y.onContentsTap=function(e){var z,C=(z=this.data)==null?void 0:z.serviceEndpoints;if(C&&C.length===1&&_.r(C[0],rVE)&&!_.zi(_.cJ(e),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(C[0]);else{var w;(z=(w=this.data)==null?void 0:w.navigationEndpoint)&&_.M("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?wDY(_.lh().resolve(_.gh),z):(_.C3().playlistSuggestionsShelfActivation=
!0,_.KNg(_.lh().resolve(_.gh),z)):z&&!_.zi(_.cJ(e),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.M("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.pi(this.hostElement,"yt-navigate",{endpoint:z}):this.ytComponentBehavior.resolveCommand(z))}};
_.Y.computeStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeThumbnailWidth=function(e){return e==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.Y.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=uGg(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))}};
_.Y.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Y.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.Y.dataChanged=function(){if(this.data){var e,z,C,w=((e=this.downloadRenderData)==null?void 0:e.badges)&&((z=this.downloadRenderData)==null?void 0:z.badges)!==((C=this.data)==null?void 0:C.badges),K,G,X;e=((K=this.downloadRenderData)==null?void 0:K.thumbnailOverlays)&&((G=this.downloadRenderData)==null?void 0:G.thumbnailOverlays)!==((X=this.data)==null?void 0:X.thumbnailOverlays);(!this.downloadRenderData||w||e)&&this.downloadStateChanged()}};
_.Y.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var e,z,C=(e=this.data.menu)==null?void 0:(z=e.menuRenderer)==null?void 0:z.items;if(C)for(e=_.b(C),z=e.next();!z.done;z=e.next())if(z=z.value,C=void 0,_.r((C=z.menuServiceItemRenderer)==null?void 0:C.serviceEndpoint,_.$R)){var w=C=void 0,K=void 0;z=(C=z)==null?void 0:(w=C.menuServiceItemRenderer)==null?void 0:(K=w.serviceEndpoint)==null?void 0:K.playlistEditEndpoint;K=w=void 0;if(C=(w=z)==null?void 0:(K=w.actions)==null?void 0:
K[0])w=void 0,C.setVideoId=(w=this.data)==null?void 0:w.setVideoId;K=w=C=void 0;if(z=(C=z)==null?void 0:(w=C.clientActions)==null?void 0:(K=w[0])==null?void 0:K.playlistRemoveVideosAction)C=void 0,z.setVideoIds=[(C=this.data)==null?void 0:C.setVideoId]}}};
_.lB.Object.defineProperties(Zq.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Zq.prototype.setVideoIdChanged=Zq.prototype.setVideoIdChanged;Zq.prototype.dataChanged=Zq.prototype.dataChanged;Zq.prototype.downloadStateChanged=Zq.prototype.downloadStateChanged;Zq.prototype.onMenuOverlayChanged=Zq.prototype.onMenuOverlayChanged;Zq.prototype.canReorderChanged=Zq.prototype.canReorderChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Zq.prototype,"ytdReduxBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Zq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],Zq.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],Zq.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Zq.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Zq.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zq.prototype,"canReorder",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zq.prototype,"menuOpened",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zq.prototype,"handleIsHovered",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zq.prototype,"persistentDragHandle",void 0);_.d([_.F(),_.B("design:type",Object)],Zq.prototype,"downloadRenderData",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],Zq.prototype,"styleType",void 0);_.d([_.F({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],Zq.prototype,"thumbnailWidth",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Zq.prototype,"isDownloads",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zq.prototype,"playlistVotingAnimationEnabled",void 0);
_.d([_.F({selector:i7,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zq.prototype,"downloadProgress",void 0);_.d([_.F(),_.B("design:type",Number)],Zq.prototype,"relativeDateReference",void 0);_.d([_.F({selector:_.dk,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zq.prototype,"transferState",void 0);_.d([_.F({selector:oVN,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zq.prototype,"downloadState",void 0);
_.d([_.F({selector:sQs,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zq.prototype,"offlinePolicyAction",void 0);_.d([_.F({selector:BXo,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zq.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.d([_.F({selector:gq1,selectorArgs:["data.videoId"]}),_.B("design:type",Object)],Zq.prototype,"entityInfo",void 0);_.d([_.F({selector:_.V2}),_.B("design:type",Boolean)],Zq.prototype,"miniplayerIsActive",void 0);
_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Zq.prototype,"playlistVideoId",null);_.d([_.nP("#thumbnail"),_.B("design:type",Object)],Zq.prototype,"thumbnail",void 0);_.d([_.Ux("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zq.prototype,"canReorderChanged",null);
_.d([_.Qi("yt-menu-overlay-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Boolean]),_.B("design:returntype")],Zq.prototype,"onMenuOverlayChanged",null);_.d([_.Ux("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zq.prototype,"downloadStateChanged",null);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zq.prototype,"dataChanged",null);_.d([_.Ux("data.setVideoId"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zq.prototype,"setVideoIdChanged",null);_.d([_.SL({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Zq);
_.u(Zq,"ytd-playlist-video-renderer",function(){if(e8U!==void 0)return e8U;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);e.content.insertBefore(pgh().content.cloneNode(!0),e.content.firstChild);return e8U=e},{mode:1});var otg;var pa=function(){return _.V.apply(this,arguments)||this};
_.U(pa,_.V);_.d([_.F(),_.B("design:type",Object)],pa.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pa.prototype,"rendererBehavior",void 0);_.d([_.SL({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],pa);
_.u(pa,"ytd-premium-browse-footer-renderer",function(){if(otg!==void 0)return otg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return otg=e},{mode:1});var GeL;var ez=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return e};
_.U(ez,_.V);_.Y=ez.prototype;_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.handleDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.computeHeaderLogoThumbnail=function(e,z){if(e)return z?e.darkLogo:e.lightLogo};
_.Y.computeHeaderLogoHeight=function(e,z){var C,w,K;return(e=(C=this.computeHeaderLogoThumbnail(e,z))==null?void 0:(w=C.thumbnails)==null?void 0:(K=w[0])==null?void 0:K.height)&&e%31===0?"31":"24"};
_.Y.computeHeaderLogoMarginBottom=function(e,z){return this.computeHeaderLogoHeight(e,z)==="24"?"0":"-7"};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ez.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ez.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],ez.prototype,"isDarkTheme",void 0);_.d([_.F({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.B("design:type",Object)],ez.prototype,"themeLogo",void 0);
_.d([_.F({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.B("design:type",String)],ez.prototype,"logoHeight",void 0);_.d([_.F({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.B("design:type",String)],ez.prototype,"logoMarginBottom",void 0);_.d([_.SL({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],ez);
_.u(ez,"ytd-primetime-promo-header-renderer",function(){if(GeL!==void 0)return GeL;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return GeL=e},{mode:1});var Yia;_.zY=_.f(function(e){var z=e.className;var C=e.data;var w=e.isOverlay;var K=e.maxLinesOverride;var G=e.useMediumText;var X=function(){return C().alwaysShowTruncationText},J=function(){return C().truncationText},q=function(){return G!==void 0&&G()?"medium":"small"},T=function(){return w!==void 0&&w()?"overlay":"default"},Q=function(){var H,I;
return(I=(H=_.r(C().rendererContext,_.Re))==null?void 0:H.label)!=null?I:""};
e=_.b(_.II(!1,void 0,"llBUm"));var m=e.next().value,a=e.next().value;e=_.T9(function(){C().expandOnTap&&a(!m());return!1});
var n={};return _.x("yt-description-preview-view-model",{el:_.ej(_.Dh(function(){return C().rendererContext})),
class:_.qT("ytDescriptionPreviewViewModelHost",z,(n.ytDescriptionPreviewViewModelClickable=function(){var H;return!((H=_.r(C().rendererContext,_.i3))==null||!H.onTap)},n.ytDescriptionPreviewViewModelIsOverlay=w,n)),
"on:click":e},_.x(_.l,{cond:function(){return C().description},
then:function(H){return _.x(_.l,{cond:m,then:function(){var I={};return _.x("div",{class:_.qT("ytDescriptionPreviewViewModelDescription",(I.ytDescriptionPreviewViewModelDescriptionMediumText=G,I))},_.x(_.U2,{text:H}))},
else:function(){return _.x(bOh,{text:H,alwaysShowTruncationText:X,truncationText:J,maxLines:function(){var I;return(I=K==null?void 0:K())!=null?I:C().maxLines},
textStyle:T,accessibilityLabel:Q,textSize:q})}})}}))},"fd");
_.zY.idomCompat=!0;var XDY=_.f(function(e){var z=_.T9(function(K){var G;(G=e.onClick)==null||G.call(e,K)}),C={},w={};
return _.x("yt-shelf-header-layout",{class:_.qT("yt-shelf-header-layout",(C["yt-shelf-header-layout--disable-horizontal-padding"]=e.disableHorizontalPadding,C["yt-shelf-header-layout--disable-vertical-padding"]=e.disableVerticalPadding,C["yt-shelf-header-layout--responsive"]=e.useResponsiveLayout,C["yt-shelf-header-layout--narrow"]=function(){var K,G;return((K=e.useResponsiveLayout)==null?void 0:K.call(e))&&((G=e.forceSmallLayout)==null?void 0:G.call(e))},C["yt-shelf-header-layout--is-overlay"]=e.isOverlay,
C["yt-shelf-header-layout--tappable"]=e.isInteractive,C["yt-shelf-header-layout--optional-medium-layout-padding"]=e.useUpdatedPadding,C)),
"on:click":z,tabindex:function(){var K;return((K=e.isInteractive)==null?0:K.call(e))?0:void 0}},_.x("div",{class:"yt-shelf-header-layout__header-row"},_.x(_.l,{cond:e.leadingIcon,
then:function(K){return _.x("div",{class:"yt-shelf-header-layout__leading-icon"},_.x(_.mB,{icon:K}))},
else:function(){return _.x(_.l,{cond:e.hasLeadingImage,then:function(){var K,G={};return _.x("div",{class:_.qT("yt-shelf-header-layout__leading-image",(G["yt-shelf-header-layout__leading-image--circular-image"]=e.circularImage,G))},(K=e.leadingImage)==null?void 0:K.call(e))}})}}),_.x("div",{class:"yt-shelf-header-layout__label-container"},_.x(_.l,{cond:e.hasSuperlabel,
then:function(){var K;return _.x("div",{class:"yt-shelf-header-layout__superlabel"},(K=e.superlabel)==null?void 0:K.call(e))}}),_.x("div",{class:"yt-shelf-header-layout__title-row"},_.x(btc,{text:e.title,
className:_.qT("yt-shelf-header-layout__title",(w["yt-shelf-header-layout__title--small-title"]=e.forceSmallLayout,w)),tagLevel:e.tagLevel}),_.x(_.l,{cond:e.hasDetail,then:function(){var K;return _.x("div",{class:"yt-shelf-header-layout__detail"},(K=e.detail)==null?void 0:K.call(e))}})),_.x(_.l,{cond:e.hasSublabel,
then:function(){var K;return _.x("div",{class:"yt-shelf-header-layout__sublabel"},(K=e.sublabel)==null?void 0:K.call(e))}})),_.x(_.l,{cond:e.hasTrailingActions,
then:function(){var K;return _.x("div",{class:"yt-shelf-header-layout__trailing-actions"},(K=e.trailingActions)==null?void 0:K.call(e))}})),_.x(_.l,{cond:e.hasBottomAccessory,
then:function(){var K;return _.x("div",{class:"yt-shelf-header-layout__bottom-accessory"},(K=e.bottomAccessory)==null?void 0:K.call(e))}}))},"gd");
XDY.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var btc=_.f(function(e){var z=e.text;var C=e.className;var w=e.tagLevel;return _.x(_.d1,null,_.x(_.fd,{when:function(){return(w==null?void 0:w())===0}},function(){return _.x("h2",{class:C},z())}),_.x(_.fd,{when:function(){return(w==null?void 0:w())===1}},function(){return _.x("h3",{class:C},z())}),_.x(_.fd,{when:function(){return(w==null?void 0:w())===2}},function(){return _.x("h4",{class:C},z())}),_.x(_.S5,null,function(){return _.x("h2",{class:C},z())}))},"hd");var qio,JcX,keo;_.C5=_.f(function(e){var z=e.className;var C=e.data;var w=e.disableHorizontalPadding;var K=e.disableVerticalPadding;var G=e.forceSmallLayout;var X=e.useResponsiveLayout;var J=e.isOverlay;e=e.useUpdatedPadding;return _.x("yt-section-header-view-model",{class:_.qT("ytSectionHeaderViewModelHost",z),style:_.QC({"background-color":function(){return UA(C().backgroundColor)?_.FN(UA(C().backgroundColor)):void 0}})},_.x(XDY,{hasDetail:!1,
title:function(){return _.x(_.U2,{text:function(){return C().headline}})},
hasTitle:!0,sublabel:function(){return _.x(JcX,{data:C})},
hasSublabel:function(){return!!C().sublabel||!!C().bottomBadge},
superlabel:function(){return _.x(keo,{data:C})},
hasSuperlabel:function(){return!!C().superlabel||!!C().topBadge},
leadingImage:function(){return _.x(qio,{leadingAccessory:function(){return C().leadingAccessory}})},
hasLeadingImage:function(){return!!C().leadingAccessory},
trailingActions:function(){return _.x(_.PF,{data:function(){return C().trailingActions}},{flexibleActionsViewModel:_.ml})},
hasTrailingActions:function(){return!!C().trailingActions},
disableHorizontalPadding:function(){return(w==null?void 0:w())||C().disableHorizontalPadding},
disableVerticalPadding:K,forceSmallLayout:G,useResponsiveLayout:X,isOverlay:J,isInteractive:function(){return!!_.u3(C().rendererContext)},
onClick:function(q){if(_.dE(C().rendererContext)){var T=_.u3(C().rendererContext);T&&_.uA(T,{form:{element:q.target,event:q}})}},
bottomAccessory:function(){return _.x(_.PF,{data:function(){return C().bottomAccessory}},{descriptionPreviewViewModel:function(q){return _.x(_.zY,{data:q.data,
useMediumText:!0})},
commonMarkViewModel:function(q){q=q.data;var T;return _.x(_.Qw,null,(T=_.lh().resolve(_.$B(LeS)))==null?void 0:T({data:q}))}})},
hasBottomAccessory:function(){return!!C().bottomAccessory},
useUpdatedPadding:e}))},"id");
qio=_.f(function(e){var z=e.leadingAccessory;return _.x(_.Qw,null,_.x(_.l,{cond:function(){var C;return(C=z().image)!=null?C:_.yA(z().themedImage)},
then:function(C){return _.x(_.Zf,{data:C,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.x(_.l,{cond:function(){return _.r(z().avatar,_.NK)},
then:function(C){return _.x(_.lO,{data:C})}}))},"jd");
JcX=_.f(function(e){var z=e.data;return _.x(_.Qw,null,_.x(_.l,{cond:function(){return _.r(z().bottomBadge,MNY)},
then:function(C){var w={};return _.x(_.Se,{data:C,class:_.qT((w.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!C()&&!!z().sublabel},w))})}}),_.x(_.l,{cond:function(){return z().sublabel},
then:function(C){return _.x(_.U2,{text:C})}}))},"kd");
keo=_.f(function(e){var z=e.data;return _.x(_.Qw,null,_.x(_.l,{cond:function(){return _.r(z().topBadge,MNY)},
then:function(C){var w={};return _.x(_.Se,{data:C,class:_.qT((w.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!C()&&!!z().superlabel},w))})}}),_.x(_.l,{cond:function(){return z().superlabel},
then:function(C){return _.x(_.U2,{text:C})}}))},"ld");_.KU(_.C5,"yt-section-header-view-model",{props:{data:_.vh,className:_.vh,disableHorizontalPadding:_.vh,disableVerticalPadding:_.vh,forceSmallLayout:_.vh,useResponsiveLayout:_.vh,isOverlay:_.vh,useUpdatedPadding:_.vh}});_.hq("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var ws=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return e};
_.U(ws,_.V);_.Y=ws.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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"}}}};
_.Y.onDataChange=function(){var e=this;_.T0(this,function(){e.updateItemVisibility()})};
_.Y.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e,this.updateItemVisibility())};
_.Y.updateItemVisibility=function(){var e=this;this.data&&this.data.panels&&_.XC(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(z,C){z.hidden=C>e.elementsPerRow-1})};
_.Y.requestElementsPerRow=function(){_.pi(this.hostElement,"yt-request-elements-per-row")};
ws.prototype.onDataChange=ws.prototype.onDataChange;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],ws.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ws.prototype,"actionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],ws.prototype,"data",void 0);_.d([_.F({value:3}),_.B("design:type",Number)],ws.prototype,"elementsPerRow",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ws.prototype,"onDataChange",null);_.d([_.SL({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],ws);
_.u(ws,"ytd-primetime-promo-renderer",function(){if(Yia!==void 0)return Yia;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Yia=e},{mode:1});var xba;var K5=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return e};
_.U(K5,_.V);K5.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
K5.prototype.handleButtonRefreshAction=function(e){if(e=_.r(e,Dth))this.set("data.button",e.membershipButton),this.notifyPath("data.button")};
_.lB.Object.defineProperties(K5.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:(z=e.avatars)==null?void 0:z.slice(0,8))||[]}}});
_.d([_.F(),_.B("design:type",Object)],K5.prototype,"data",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],K5.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],K5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],K5.prototype,"rendererBehavior",void 0);_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],K5.prototype,"avatars",null);
_.d([_.SL({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],K5);
_.u(K5,"ytd-recognition-shelf-renderer",function(){if(xba!==void 0)return xba;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return xba=e},{mode:1});var TIs;var $ba;var oj=function(){var e=_.V.apply(this,arguments)||this;e.modernButtons=_.M("web_modern_buttons");return e};
_.U(oj,_.V);_.Y=oj.prototype;
_.Y.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.Y.dataChanged=function(){this.collapsed=!0};
_.Y.computeVisibleItems=function(e,z){return e!==void 0&&e.items?z?e.items.slice(0,this.data.collapsedItemCount):e.items:[]};
_.Y.computeHideShowMore=function(e,z,C){return e>=z||!C};
_.Y.computeHideShowAll=function(e,z,C){return!(e&&z)||C};
_.Y.onMoreClick=function(){this.collapsed=!1};
_.lB.Object.defineProperties(oj.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.M("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Mv("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.M("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
oj.prototype.dataChanged=oj.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oj.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],oj.prototype,"isSearch",void 0);
_.d([_.F({computed:"computeVisibleItems(data,collapsed)"}),_.B("design:type",Array)],oj.prototype,"visibleItems",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],oj.prototype,"collapsed",void 0);_.d([_.F({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.B("design:type",Boolean)],oj.prototype,"hideShowMore",void 0);
_.d([_.F({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.B("design:type",Boolean)],oj.prototype,"hideShowAll",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],oj.prototype,"modernButtons",void 0);_.d([_.P("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oj.prototype,"typographyBump",null);
_.d([_.P("isSearch"),_.B("design:type",Object),_.B("design:paramtypes",[])],oj.prototype,"lockupExperiments",null);_.d([_.P("isSearch"),_.B("design:type",String),_.B("design:paramtypes",[])],oj.prototype,"thumbnailWidth",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oj.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],oj);
_.u(oj,"ytd-vertical-list-renderer",function(){if($ba!==void 0)return $ba;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return $ba=e},{mode:1});var ljs=_.Kb(["#"]);_.hq("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var GY=function(){var e=_.V.apply(this,arguments)||this;e.isConstrainedList=!1;return e};
_.U(GY,_.V);_.Y=GY.prototype;
_.Y.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"}}}};
_.Y.computeThumbnailStyle=function(e){return e||""};
_.Y.computePlaceAnnotationUnderTitle=function(){var e;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((e=this.data)==null?void 0:e.thumbnailStyle)||"")};
_.Y.computeHrefWithDefault=function(e){return this.ytComponentBehavior.computeHref_(e)||_.$1m(ljs)};
_.Y.computeIsPromoShelf=function(e){var z;return(e=e==null?void 0:(z=e[0])==null?void 0:z.metadataBadgeRenderer)?e.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.Y.computePlaceBadgeBesideTitle=function(e){var z;return(e==null?0:(z=e[0])==null?0:z.metadataBadgeRenderer)?!this.computeIsPromoShelf(e):!1};
_.Y.computeMenuIcon=function(e){return this.computeIsPromoShelf(e)?"yt-icons:more_vert":"yt-icons:more"};
_.Y.onDataChange=function(){var e,z;((e=this.data)==null?0:(z=e.content)==null?0:z.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.Y.onLockupRequested=function(e){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&e.detail&&e.detail.videoIds){for(var z=this.data.content.gridRenderer.items,C=new Set,w=_.b(e.detail.videoIds),K=w.next();!K.done;K=w.next())C.add(K.value);e.detail.returnValue=z.filter(function(G){return G.gridVideoRenderer&&G.gridVideoRenderer.videoId&&C.has(G.gridVideoRenderer.videoId)}).map(function(G){return G.gridVideoRenderer})}};
_.Y.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
GY.prototype.onLockupRequested=GY.prototype.onLockupRequested;GY.prototype.onDataChange=GY.prototype.onDataChange;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],GY.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],GY.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.oY),_.B("design:type",Object)],GY.prototype,"ironResizableBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GY.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],GY.prototype,"isSearch",void 0);_.d([_.F(),_.B("design:type",Object)],GY.prototype,"isConstrainedList",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("kevlar_fluid_dismiss")}}),
_.B("design:type",Boolean)],GY.prototype,"enableFluidDismiss",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.B("design:type",String)],GY.prototype,"thumbnailStyle",void 0);_.d([_.F({computed:"computeMenuIcon(data.badges)"}),_.B("design:type",String)],GY.prototype,"menuIcon",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.B("design:type",Boolean)],GY.prototype,"featuredPromo",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GY.prototype,"onDataChange",null);_.d([_.Qi("yt-lockup-requested"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],GY.prototype,"onLockupRequested",null);_.d([_.SL({is:"ytd-shelf-renderer",disableElementRegistration:!0})],GY);
_.u(GY,"ytd-shelf-renderer",function(){if(TIs!==void 0)return TIs;var e=document.createElement("template");_.v(e,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return TIs=e},{mode:1});var QUa;var Y7=function(){return _.V.apply(this,arguments)||this};
_.U(Y7,_.V);Y7.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.lB.Object.defineProperties(Y7.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Y7.prototype,"data",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Y7.prototype,"isPlaylist",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Y7.prototype,"isClipList",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Y7.prototype,"isPlaylistPageWithFilters",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Y7.prototype,"hasTitle",null);_.d([_.F(),_.P("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.B("design:type",Object),_.B("design:paramtypes",[])],Y7.prototype,"isRightAligned",null);
_.d([_.SL({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Y7);
_.u(Y7,"ytd-sort-filter-header-renderer",function(){if(QUa!==void 0)return QUa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return QUa=e},{mode:1});var mbC;var bI=function(){var e=_.V.apply(this,arguments)||this;e.enableRightArrowHidden=_.M("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return e};
_.U(bI,_.V);bI.prototype.attached=function(){var e=this;this.enableRightArrowHidden&&(this.JSC$16716_throttledOnResize=new _.lw(function(){var z;(z=e.ytdHorizontalListBehavior)==null||z.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var z;
(z=e.JSC$16716_throttledOnResize)==null||z.fire()}),this.resizeObserver.observe(this.hostElement))};
bI.prototype.detached=function(){if(this.enableRightArrowHidden){var e;(e=this.resizeObserver)==null||e.disconnect();var z;(z=this.JSC$16716_throttledOnResize)==null||z.dispose()}};
bI.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]]"}}}}}};
bI.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.lB.Object.defineProperties(bI.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.M("enable_creator_details_shelf_m2")){var e=[],z;((z=this.data)==null?0:z.creatorVideosButton)&&e.push(this.data.creatorVideosButton);var C;((C=this.data)==null?0:C.creatorAboutButton)&&e.push(this.data.creatorAboutButton);z=_.b(this.data.creatorCustomUrlButtons||[]);for(C=z.next();!C.done;C=z.next())e.push(C.value);return e}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.M("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bI.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.u2.YtdHorizontalListBehavior),_.B("design:type",Object)],bI.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bI.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],bI.prototype,"engagementPanel",void 0);
_.d([_.F(),_.B("design:type",Object)],bI.prototype,"enableRightArrowHidden",void 0);_.d([_.P("enableRightArrowHidden","atEnd"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bI.prototype,"hideRightArrow",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],bI.prototype,"creatorCustomUrlButtons",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data","creatorCustomUrlButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],bI.prototype,"showCreatorCustomUrlButtons",null);_.d([_.P("showCreatorCustomUrlButtons"),_.B("design:type",Number),_.B("design:paramtypes",[])],bI.prototype,"channelAvatarSize",null);_.d([_.SL({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],bI);
_.u(bI,"ytd-video-description-infocards-section-renderer",function(){if(mbC!==void 0)return mbC;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return mbC=e},{mode:_.bA("kevlar_poly_si_batch_j067")?1:2});var ajC;var Xc=function(){return _.V.apply(this,arguments)||this};
_.U(Xc,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xc.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],Xc.prototype,"infoIcon",void 0);_.d([_.SL({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Xc);
_.u(Xc,"ytd-eom-settings-disclaimer-renderer",function(){if(ajC!==void 0)return ajC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ajC=e},{mode:1});var ntL;var Je=function(){return _.V.apply(this,arguments)||this};
_.U(Je,_.V);_.lB.Object.defineProperties(Je.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.suppressPaddingDisclaimer)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Je.prototype,"componentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Je.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Je.prototype,"suppressPaddingDisclaimer",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Je);
_.u(Je,"ytd-product-list-header-renderer",function(){if(ntL!==void 0)return ntL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ntL=e},{mode:1});var MVs;var k7=function(){return _.V.apply(this,arguments)||this};
_.U(k7,_.V);k7.prototype.computeThumbnailStyle=function(e){if(e&&(e=_.EG(e)))return"background-color:"+e+";"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],k7.prototype,"rendererBehaviors",void 0);_.d([_.F(),_.B("design:type",Object)],k7.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],k7);
_.u(k7,"ytd-hashtag-tile-renderer",function(){if(MVs!==void 0)return MVs;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return MVs=e},{mode:1});var rcL;var q7=function(){return _.V.apply(this,arguments)||this};
_.U(q7,_.V);q7.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}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],q7.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],q7);
_.u(q7,"ytd-sponsorships-alert-renderer",function(){if(rcL!==void 0)return rcL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return rcL=e},{mode:1});var HtS;var x7=function(){return _.V.apply(this,arguments)||this};
_.U(x7,_.V);x7.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.lB.Object.defineProperties(x7.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.M("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.M("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.d([_.W(_.a0),_.B("design:type",Object)],x7.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],x7.prototype,"ytdLockupBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],x7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.d([_.F({selector:_.Sj}),_.B("design:type",Object)],x7.prototype,"isGridViewEnabled",void 0);
_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],x7.prototype,"watchFeedBigThumbs",null);_.d([_.P("isGridViewEnabled"),_.F({reflectToAttribute:!0}),_.B("design:type",String),_.B("design:paramtypes",[])],x7.prototype,"thumbnailWidth",null);_.d([_.F(),_.B("design:type",Object)],x7.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],x7);
_.u(x7,"ytd-compact-movie-renderer",function(){if(HtS!==void 0)return HtS;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return HtS=e},{mode:1});var Ubc;var vth;var Ij4=_.j5("HTML_DIR")==="rtl",TY=function(){var e=_.V.apply(this,arguments)||this;e.engagementPanel=!1;e.maxLines=2;e.expandButtonOffset=0;e.showExpandButton=!1;e.isTruncated=!1;e.isExpanded=!1;e.currentSnippetType=2;e.alwaysShowExpandButton=!1;e.JSC$16733_lastWidth=NaN;e.observer=null;e.left=0;e.right=0;e.mid=0;e.longestSnippetLength=0;e.isFinalSnippet=!1;e.isFirstMutation=!1;e.isResetMutation=!1;e.OVERFLOW_THRESHOLD=5;return e};
_.U(TY,_.V);_.Y=TY.prototype;_.Y.onClick=function(e){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;if((z=window.getSelection())==null||!z.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.Y.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.Y.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.Y.updateTextOnSnippetTypeChange=function(){_.M("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.Y.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.Y.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.AX(new _.uh("AttributedSnippet is empty when the description is not empty",this.text))};
_.Y.mutationCallback=function(){if(this.observer!=null){var e=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var z=Math.floor(e*this.maxLines/8);this.setSnippetText(this.text,z);z!==0||this.attributedTextIsEmpty()||_.AX(new _.uh("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;e=e*this.maxLines/8;this.left=0;var C;this.right=Math.min(e*2,(C=(z=this.simpleText)==null?void 0:z.length)!=null?C: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)}}};
_.Y.mutationObserve=function(e){var z=this;this.observer||(this.observer=new MutationObserver(function(){z.mutationCallback()}));
this.observer.observe(e,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.Y.attached=function(){var e=this;_.T0(this,function(){e.resize()})};
_.Y.isExpandedChanged=function(){_.pi(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.Y.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)};
_.Y.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var e="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Ij4?"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",e);this.snippetContainer.style.setProperty("mask-image",
e)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Ij4?"right":"left",this.expandButtonOffset+"px")};
_.Y.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.Y.setSnippetText=function(e,z){e||(e={});if(_.yk(e)){var C=go(e,z);C.attachmentRuns||C.commandRuns||C.decorationRuns||C.styleRuns||C.alignment||C.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:go(e,z),headerRuns:Sp1(z,this.headerRuns)},this.currentSnippetType=0):_.AX(new _.uh("Tried to set snippet text when HTML element was null",e)):(this.plainSnippetText.textContent=B9(e.content||"",z),this.currentSnippetType=2)}else{a:{C=rv4(e,z);if(C.runs){C=_.b(C.runs);for(var w=
C.next();!w.done;w=C.next())if(w=w.value,w.bold||w.deemphasize||w.italics||w.strikethrough||w.textColor||w.navigationEndpoint||_.r(w,FH)){C=!0;break a}}C=!1}C?this.formattedSnippetText?(this.formattedSnippetText.text=rv4(e,z),this.currentSnippetType=1):_.AX(new _.uh("Tried to set snippet text when HTML element was null",e)):(this.plainSnippetText.textContent=B9(_.Zd(e),z),this.currentSnippetType=2)}};
_.Y.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.Y.attributedTextIsEmpty=function(){var e=this.text;if(!_.yk(e))return!0;var z;return((z=e.content)==null?void 0:z.length)===0?!0:!1};
_.Y.resize=function(e){if(this.snippetText){if(e===void 0?0:e)this.JSC$16733_lastWidth=NaN;var z=this.hostElement.offsetWidth;if(z!==this.JSC$16733_lastWidth&&!this.isExpanded)if(this.JSC$16733_lastWidth=z,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;e=0;var C,w;z=Math.min(z*this.maxLines/8*2,(w=(C=this.simpleText)==null?void 0:C.length)!=null?w:0)-1;for(C=0;e<=z;)w=Math.floor(e+(z-e)/2),this.setSnippetText(this.text,w),this.isOverflowing()?z=w-1:(e=w+1,C=w);this.setSnippetText(this.text,C);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.Y.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.Y.onExpandClick=function(){var e=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.M("inline_expander_reset_focus_killswitch")||_.T0(this,function(){var z;((z=_.lh().resolve(_.$B(_.V5)))==null?0:z.isKeyBoardInUse())&&_.kO(e.hostElement)});
_.pi(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.Y.onCollapseClick=function(){this.collapse();_.pi(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.Y.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.Y.computeExpandButtonOffset=function(){var e=this.expandSizer;return e?Ij4?e.offsetParent?e.offsetParent.offsetWidth-e.offsetWidth-e.offsetLeft:0:e.offsetLeft:0};
_.lB.Object.defineProperties(TY.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.yk(this.text)?this.text.content||"":_.Zd(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 _.yk(this.text)?!0:this.text&&_.M("web_replace_formatted_with_attributed_string")&&XBE(this.text)?(this.text=_.Em(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}}});
TY.prototype.onTextChanged=TY.prototype.onTextChanged;TY.prototype.updateMaskAndExpandButtonOffset=TY.prototype.updateMaskAndExpandButtonOffset;TY.prototype.updateSnippetContainerMaxHeight=TY.prototype.updateSnippetContainerMaxHeight;TY.prototype.isExpandedChanged=TY.prototype.isExpandedChanged;TY.prototype.updateTextOnSnippetTypeChange=TY.prototype.updateTextOnSnippetTypeChange;TY.prototype.updateIsFormattedExpanded=TY.prototype.updateIsFormattedExpanded;TY.prototype.updateIsAttributedExpanded=TY.prototype.updateIsAttributedExpanded;
TY.prototype.onClick=TY.prototype.onClick;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],TY.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TY.prototype,"text",void 0);_.d([_.F(),_.B("design:type",Array)],TY.prototype,"headerRuns",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],TY.prototype,"engagementPanel",void 0);_.d([_.F(),_.B("design:type",Object)],TY.prototype,"maxLines",void 0);
_.d([_.F(),_.B("design:type",String)],TY.prototype,"expandLabel",void 0);_.d([_.F(),_.B("design:type",String)],TY.prototype,"collapseLabel",void 0);_.d([_.F(),_.B("design:type",Object)],TY.prototype,"expandCommand",void 0);_.d([_.F(),_.B("design:type",Object)],TY.prototype,"expandButtonOffset",void 0);_.d([_.P("text"),_.B("design:type",String),_.B("design:paramtypes",[])],TY.prototype,"simpleText",null);
_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],TY.prototype,"onClick",null);_.d([_.P("text","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],TY.prototype,"expandedText",null);_.d([_.P("headerRuns","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],TY.prototype,"expandedHeaderRuns",null);
_.d([_.P("text"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],TY.prototype,"hasAttributedStringText",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],TY.prototype,"showExpandButton",void 0);_.d([_.P("collapseLabel","isExpanded"),_.B("design:type",Object),_.B("design:paramtypes",[])],TY.prototype,"showCollapseButton",null);_.d([_.F(),_.B("design:type",Object)],TY.prototype,"isTruncated",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],TY.prototype,"isExpanded",void 0);_.d([_.F(),_.B("design:type",Boolean)],TY.prototype,"isAttributedExpanded",void 0);_.d([_.mi("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TY.prototype,"updateIsAttributedExpanded",null);_.d([_.F(),_.B("design:type",Boolean)],TY.prototype,"isFormattedExpanded",void 0);
_.d([_.mi("isExpanded","hasAttributedStringText"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TY.prototype,"updateIsFormattedExpanded",null);_.d([_.F(),_.B("design:type",Number)],TY.prototype,"currentSnippetType",void 0);_.d([_.P("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],TY.prototype,"useAttributedSnippet",null);
_.d([_.P("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],TY.prototype,"useFormattedSnippet",null);_.d([_.P("currentSnippetType"),_.B("design:type",Object),_.B("design:paramtypes",[])],TY.prototype,"usePlainSnippet",null);_.d([_.F(),_.B("design:type",Object)],TY.prototype,"alwaysShowExpandButton",void 0);_.d([_.mi("currentSnippetType"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TY.prototype,"updateTextOnSnippetTypeChange",null);
_.d([_.F(),_.B("design:type",Object)],TY.prototype,"attributedSnippetText",void 0);_.d([_.nP("#snippet"),_.B("design:type",HTMLElement)],TY.prototype,"snippetContainer",void 0);_.d([_.nP("#snippet-text"),_.B("design:type",HTMLElement)],TY.prototype,"snippetText",void 0);_.d([_.nP("#plain-snippet-text"),_.B("design:type",HTMLElement)],TY.prototype,"plainSnippetText",void 0);_.d([_.nP("#formatted-snippet-text"),_.B("design:type",Object)],TY.prototype,"formattedSnippetText",void 0);
_.d([_.nP("#attributed-snippet-text"),_.B("design:type",Object)],TY.prototype,"attributedSnippetTextEl",void 0);_.d([_.nP("#expand"),_.B("design:type",HTMLElement)],TY.prototype,"expandButton",void 0);_.d([_.nP("#expand-sizer"),_.B("design:type",HTMLElement)],TY.prototype,"expandSizer",void 0);_.d([_.Ux("isExpanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TY.prototype,"isExpandedChanged",null);
_.d([_.mi("isExpanded","maxLines"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TY.prototype,"updateSnippetContainerMaxHeight",null);_.d([_.mi("isTruncated","showExpandButton","expandButtonOffset"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TY.prototype,"updateMaskAndExpandButtonOffset",null);
_.d([_.Ux("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TY.prototype,"onTextChanged",null);_.d([_.SL({is:"ytd-text-inline-expander",disableElementRegistration:!0})],TY);
_.u(TY,"ytd-text-inline-expander",function(){if(vth===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);vth=e}e=vth;return e},{mode:2});var $7=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return e};
_.U($7,_.V);$7.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
$7.prototype.handleUpdateDescriptionAction=function(e){if(e=_.r(e,_.y5g))if(e.attributedDescription)this.set("data.attributedDescriptionBodyText",e.attributedDescription);else if(e.description){var z;((z=this.data)==null?0:z.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Em(e.description)):this.set("data.descriptionBodyText",e.description)}};
_.lB.Object.defineProperties($7.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.attributedDescriptionBodyText)||!((z=this.data)==null||!z.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.collapsedLineCount){var z;return(z=this.data)==null?void 0:z.collapsedLineCount}e=_.n0("web_watch_description_collapsed_default_lines",12);if(_.M("ww_desc_line_page_size_ks"))return e;z=Math.round(_.Mp().height*_.n0("web_watch_description_screen_height_percentage",.5)/20);return Math.max(z,e)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return(C=(e=this.data)==null?void 0:e.descriptionBodyText)!=null?C:(z=this.data)==null?void 0:z.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.sourceAttributions}}});
$7.prototype.panelContentVisibleChanged=$7.prototype.panelContentVisibleChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],$7.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],$7.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$7.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Boolean)],$7.prototype,"panelContentVisible",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$7.prototype,"engagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$7.prototype,"shortsPanel",void 0);_.d([_.nP("#inline-expander"),_.B("design:type",Object)],$7.prototype,"inlineExpander",void 0);
_.d([_.mi("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$7.prototype,"panelContentVisibleChanged",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$7.prototype,"hasDescriptionText",null);_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],$7.prototype,"collapsedLines",null);
_.d([_.P("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.B("design:type",Object),_.B("design:paramtypes",[])],$7.prototype,"descriptionText",null);_.d([_.P("data","data.headerRuns"),_.B("design:type",Object),_.B("design:paramtypes",[])],$7.prototype,"headerRuns",null);_.d([_.P("data","data.sourceAttributions"),_.B("design:type",Object),_.B("design:paramtypes",[])],$7.prototype,"sourceAttributions",null);
_.d([_.SL({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],$7);
_.u($7,"ytd-expandable-video-description-body-renderer",function(){if(Ubc!==void 0)return Ubc;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Ubc=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var WNS;var PVU=_.f(function(e){var z=e.data;return _.x("factoid-renderer",{class:"ytwFactoidRendererHost"},_.x("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return z().accessibilityText}},_.x("span",{class:"ytwFactoidRendererValue"},_.x(_.U2,{text:function(){return z().value}})),_.x("span",{class:"ytwFactoidRendererLabel"},_.x(_.U2,{text:function(){return z().label}}))))},"md");_.KU(PVU,"factoid-renderer",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;return _.x("upload-time-factoid-renderer",null,_.x(_.PF,{data:function(){return z().factoid}},{factoidRenderer:PVU}))},"nd"),"upload-time-factoid-renderer",{props:{data:_.z9}});_.KU(_.f(function(e){var z=e.data;return _.x("view-count-factoid-renderer",null,_.x(_.PF,{data:function(){return z().factoid}},{factoidRenderer:PVU}))},"od"),"view-count-factoid-renderer",{props:{data:_.z9}});var lI=function(){var e=_.V.apply(this,arguments)||this;e.shortsPanel=!1;e.engagementPanel=!1;e.watchWhileSdp=_.M("shorts_desktop_watch_while_sdp");return e};
_.U(lI,_.V);lI.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"}}}}};
_.lB.Object.defineProperties(lI.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var e;return(e=this.data)==null?void 0:e.channel}}});
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],lI.prototype,"componentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lI.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lI.prototype,"shortsPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lI.prototype,"engagementPanel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lI.prototype,"watchWhileSdp",void 0);_.d([_.P("shortsPanel","engagementPanel","data.channel"),_.B("design:type",Object),_.B("design:paramtypes",[])],lI.prototype,"showChannelInfo",null);_.d([_.SL({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],lI);
_.u(lI,"ytd-video-description-header-renderer",function(){if(WNS!==void 0)return WNS;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return WNS=e},{mode:1});var R8h;var QW=function(){return _.V.apply(this,arguments)||this};
_.U(QW,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],QW.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],QW.prototype,"noPadding",void 0);_.d([_.F(),_.B("design:type",Object)],QW.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],QW);
_.u(QW,"ytd-list-item-view-model",function(){if(R8h!==void 0)return R8h;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return R8h=e},{mode:1});var LNh;var h8C;var OtY;var Eta;var mC=function(){var e=_.V.apply(this,arguments)||this;e.adaptiveFullWidth=!1;e.modernButtons=_.M("web_modern_buttons");e.buttonOverrides={style:"call-to-action",type:"filled"};e.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return e};
_.U(mC,_.V);mC.prototype.handleSetTimestamp_=function(e){this.data&&this.data.shortUrl&&(_.XC(this.hostElement).querySelector("#share-url").value=e.isSet?_.YQ(this.data.shortUrl,"t",e.timestamp):this.data.shortUrl)};
mC.prototype.handleSignalActionCopyShareUrl_=function(e,z){(_.M("killswitch_copy_link_target_check")||_.XC(this.hostElement).querySelector("#copy-button")===z)&&this.copyUrlToClipboard()};
mC.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.XC(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
mC.prototype.computeStyle_=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],mC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mC.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.B("design:type",String)],mC.prototype,"rendererStyle",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mC.prototype,"adaptiveFullWidth",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mC.prototype,"modernButtons",void 0);_.d([_.F(),_.B("design:type",Object)],mC.prototype,"buttonOverrides",void 0);_.d([_.fP({is:"yt-copy-link-renderer",disableElementRegistration:!0})],mC);
_.u(mC,"yt-copy-link-renderer",function(){if(Eta===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;OtY===void 0&&(OtY=document.createElement("template"));var w=OtY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Eta=e}e=Eta;return e},{mode:2});_.hq("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var aj=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return e};
_.U(aj,_.V);_.Y=aj.prototype;_.Y.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.Y.attached=function(){this.keyboardFocused=!1};
_.Y.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var e=_.lh().resolve(_.$B(_.V5));e&&(this.keyboardFocused=e.isKeyBoardInUse())}};
_.Y.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.Y.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}};
_.Y.onChange_=function(){if(this.data){var e=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;e&&this.ytComponentBehavior.resolveCommand(e);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.Y.handleUpdateToggleAction_=function(e){(e=_.r(e,xV4))&&this.data&&e.targetId==this.data.targetId&&this.set("data.toggled",e.toggled)};
_.Y.toBoolean_=function(e){return!!e};
_.Y.reset=function(){};
_.Y.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("data-changed",this.data))};
_.Y.updateDataToggledFromBinding=function(e){this.set("data.toggled",e.detail.value)};
aj.prototype.dataChangedForBinding=aj.prototype.dataChangedForBinding;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],aj.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],aj.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],aj.prototype,"data",void 0);_.d([_.F({computed:"computeDescription_(data.*)"}),_.B("design:type",Object)],aj.prototype,"description_",void 0);_.d([_.F({value:function(){return!!_.lh().resolve(_.$B(_.V5))&&_.M("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.B("design:type",Boolean)],aj.prototype,"useKeyboardFocused",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],aj.prototype,"keyboardFocused",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aj.prototype,"dataChangedForBinding",null);_.d([_.fP({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],aj);
_.u(aj,"yt-toggle-form-field-renderer",function(){if(h8C===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;LNh===void 0&&(LNh=document.createElement("template"));var w=LNh;C.call(z,w.content.cloneNode(!0),e.content.firstChild);h8C=e}e=h8C;return e},{mode:2});var FNo;var VVs;var n5=function(){var e=_.V.apply(this,arguments)||this;e.isDarkTheme=!1;e.isSearch=!1;e.noTopMargin=_.M("kevlar_watch_no_top_margin");e.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 e};
_.U(n5,_.V);_.Y=n5.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.Y.dataChanged=function(){var e=this.getSelectedIndex();if(e>0)this.selected=e;else{this.selected=0;var z,C;(z=this.ytScrollableChipCloudBehavior)==null||(C=z.reset)==null||C.call(z)}};
_.Y.getSelectedIndex=function(){var e;if((e=this.data)==null||!e.chips)return-1;e=-1;for(var z,C=0;C<((z=this.data)==null?void 0:z.chips.length);C++){var w=void 0,K=void 0;if((w=this.data)==null?0:(K=w.chips[C].chipCloudChipRenderer)==null?0:K.isSelected){e=C;break}}return e};
_.Y.onResize=function(){var e=this.ytScrollableChipCloudBehavior;_.T0(e,e.setContainerWidthDiff);e=this.ytScrollableChipCloudBehavior;_.T0(e,e.setButtonsState)};
_.Y.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.handleRelatedChipCommand=function(e,z){e=this.JSC$16760_chipsSelector.indexOf(z);e!==-1&&this.JSC$16760_chipsSelector.selectIndex(e)};
_.Y.handleChipCloudChipSelectAction=function(e){e=this.JSC$16760_chipsSelector.indexOf(e);e>-1&&this.JSC$16760_chipsSelector.selectIndex(e)};
_.Y.handleChipCloudChipDeselectAction=function(){var e=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16760_chipsSelector&&((e==null?0:e.continuationCommand)?_.wQ(this.hostElement,[e]):(e==null?0:e.searchEndpoint)?this.ytComponentBehavior.resolveCommand(e):e&&_.KK(this.hostElement,[e],this.hostElement),this.JSC$16760_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.Y.updateSelectedFromBinding=function(e){this.selected=e.detail.value};
n5.prototype.onResize=n5.prototype.onResize;n5.prototype.dataChanged=n5.prototype.dataChanged;n5.prototype.isSearchChanged=n5.prototype.isSearchChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],n5.prototype,"actionHandlerBehavior",void 0);
_.d([_.W(_.oY),_.B("design:type",Object)],n5.prototype,"ironResizableBehavior",void 0);_.d([_.W(),_.B("design:type",eR)],n5.prototype,"ytScrollableChipCloudBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],n5.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],n5.prototype,"data",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],n5.prototype,"selected",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],n5.prototype,"isDarkTheme",void 0);_.d([_.F({value:160}),_.B("design:type",Number)],n5.prototype,"scrollDistance",void 0);_.d([_.F(),_.B("design:type",Object)],n5.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],n5.prototype,"noTopMargin",void 0);_.d([_.nP("#chips"),_.B("design:type",Object)],n5.prototype,"JSC$16760_chipsSelector",void 0);
_.d([_.mi("isSearch"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n5.prototype,"isSearchChanged",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n5.prototype,"dataChanged",null);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n5.prototype,"onResize",null);_.d([_.fP({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],n5);
_.u(n5,"yt-chip-cloud-renderer",function(){if(VVs===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;FNo===void 0&&(FNo=document.createElement("template"));var w=FNo;C.call(z,w.content.cloneNode(!0),e.content.firstChild);VVs=e}e=VVs;return e},{mode:2});var fjs,Sis=function(){return fjs!==void 0?fjs:fjs=document.createElement("template")};
document.head.appendChild(Sis().content);var u7g;var dbc=document.head,Dba=dbc.appendChild,ito;if(u7g===void 0){var NIa=document.createElement("template");_.v(NIa,"");NIa.content.insertBefore(Sis().content.cloneNode(!0),NIa.content.firstChild);u7g=NIa}ito=u7g;Dba.call(dbc,ito.content);var sUc=_.f(function(e){var z=e.data;return _.x("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.x("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.x("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.x(_.l,{cond:function(){return _.yA(z().image)},
then:function(C){return _.x("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.x(_.Zf,{data:C,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.x("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.x(_.U2,{text:function(){return z().subtitle}})))),_.x(_.l,{cond:function(){var C;
return(C=z())==null?void 0:C.hasBottomDivider},
then:function(){return _.x("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"pd");var BIa=_.f(function(e){var z=e.data;return _.x("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.x(_.PF,{data:function(){var C;return(C=z().offerPlanDetailsItem)!=null?C:[]}},{offerPlanDetailsItemViewModel:function(C){return _.x("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.x(sUc,{data:C.data}))}})),_.x("div",null,_.x(_.l,{cond:function(){return z().hasBottomDivider},
then:function(){return _.x("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.x("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.x("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.x("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"qd");var tVC=_.f(function(e){var z=e.data;e=_.b(_.II(!1,void 0,"MrXxy"));var C=e.next().value,w=e.next().value,K=_.T9(function(){w(!C());return!1}),G=function(){var X;
return(X=z().offerPlanDetailsContainer)!=null?X:[]};
return _.x("lp-complex-offer-card-details-view-model",null,_.x("div",null,_.x(_.l,{cond:function(){return C()},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.x("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":K,"aria-expanded":C},_.x(_.U2,{text:function(){return z().expandedTitle}})),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.x(_.PF,{data:G},{offerPlanDetailsContainerViewModel:function(X){return _.x("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.x(BIa,{data:X.data}))}})),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.x(_.U2,{text:function(){return z().legalText}})))},
else:function(){return _.x("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":K,"aria-expanded":C},_.x(_.U2,{text:function(){return z().collapsedTitle}}),_.x("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.x(_.mB,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"rd");var gta=_.f(function(e){var z=e.data;return _.x("lp-complex-offer-card-option-view-model",null,_.x("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.x(_.l,{cond:function(){return z().topDividerText},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.x("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.x(_.U2,{text:function(){return z().topDividerText}}))))}}),_.x(_.l,{cond:function(){return z().description},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.x(_.U2,{text:function(){return z().description}}))}}),_.x(_.l,{cond:function(){return z().planPricingPrimary},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.x(_.U2,{text:function(){return z().planPricingPrimary}}))}}),_.x(_.l,{cond:function(){return z().planPricingSecondary},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.x(_.U2,{text:function(){return z().planPricingSecondary}}))}}),_.x(_.l,{cond:function(){return z().primaryButton},
then:function(){return _.x("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.x(_.PF,{data:function(){return z().primaryButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"sd");var jUS=_.f(function(e){var z=e.data;var C=function(){var G;return((G=z())==null?void 0:G.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
e={};var w={},K={};return _.x("ytm-lp-complex-offer-card-view-model",null,_.x("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.x("div",{class:_.qT((e.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=C,e),"ytmLpComplexOfferCardViewModelCardContainer")},_.x(_.l,{cond:function(){var G;return(G=z())==null?void 0:G.bannerText},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.x("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.x(_.U2,{text:function(){return z().bannerText}})))}}),_.x(_.l,{cond:function(){return _.yA(z().logo)},
then:function(G){var X={};return _.x("div",{class:_.qT((X.ytmLpComplexOfferCardViewModelLogoAlignLeft=C,X),"ytmLpComplexOfferCardViewModelLogo")},_.x(_.Zf,{data:G,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.x("div",{class:_.qT((w.ytmLpComplexOfferCardViewModelTitleAlignLeft=C,w),"ytmLpComplexOfferCardViewModelTitle")},_.x(_.U2,{text:function(){return z().title}})),_.x(_.l,{cond:function(){var G;
return(G=z())==null?void 0:G.subtitle},
then:function(){var G={};return _.x("div",{class:_.qT((G.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=C,G),"ytmLpComplexOfferCardViewModelSubtitle")},_.x(_.U2,{text:function(){return z().subtitle}}))}}),_.x(_.l,{cond:function(){return z().planPricingPrimary},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.x(_.U2,{text:function(){return z().planPricingPrimary}}))}}),_.x(_.l,{cond:function(){return z().planPricingSecondary},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.x(_.U2,{text:function(){return z().planPricingSecondary}}))}}),_.x(_.l,{cond:function(){return z().purchaseButton},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.x(_.PF,{data:function(){return z().purchaseButton}},{buttonViewModel:function(G){return _.x(_.iz,{data:G.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.x(_.l,{cond:function(){var G;
return(G=z())==null?void 0:G.offerOptions},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.x(_.PF,{data:function(){return z().offerOptions}},{lpComplexOfferCardOptionViewModel:gta}))}}),_.x("div",{class:_.qT((K.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=C,K),"ytmLpComplexOfferCardViewModelLegalText")},_.x(_.U2,{text:function(){return z().legalText}})),_.x(_.l,{cond:function(){var G;
return(G=z())==null?void 0:G.offerCardDetails},
then:function(){return _.x("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.x(_.PF,{data:function(){return z().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:tVC}))}}))))},"td");var ycL=_.f(function(e){var z=e.data;var C=function(){var X;return((X=z())==null?void 0:X.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
e={};var w={},K={},G={};return _.x("ytm-lp-complex-offer-card-section-view-model",null,_.x("div",{class:_.qT("ytmLpComplexOfferCardSectionViewModelHost")},_.x("div",{class:_.qT((e.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=C,e),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.x("div",{class:_.qT((w.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=C,w),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.x("h2",{class:_.qT((K.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
C,K),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.x(_.U2,{text:function(){return z().title}}))),_.x(_.l,{cond:function(){var X;
return(X=z())==null?void 0:X.subtitle},
then:function(){var X={},J={};return _.x("div",{class:_.qT((X.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=C,X),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.x("div",{class:_.qT((J.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=C,J),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.x(_.U2,{text:function(){return z().subtitle}})))}}),_.x("div",{class:_.qT((G.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=C,G),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.x(_.PF,{data:function(){var X;
return(X=z().offerPlans)!=null?X:[]}},{lpComplexOfferCardViewModel:function(X){return _.x("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.x(jUS,{data:X.data}))}})))))},"ud");var cca=_.f(function(e){return _.x("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.x("div",{class:"ytLpCouponBannerViewModelIcon"},_.x(_.mB,{icon:function(){return"price_tag"}})),_.x("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.x("div",{class:"ytLpCouponBannerViewModelContent"},_.x("div",{class:"ytLpCouponBannerViewModelHeading"},_.x(_.U2,{text:function(){var z;
return(z=e.data())==null?void 0:z.title}})),_.x("div",{class:"ytLpCouponBannerViewModelBody"},_.x(_.U2,{text:function(){var z;
return(z=e.data())==null?void 0:z.subtitle}})))))},"vd");
cca.idomCompat=!0;_.M7=fOL.getInstance();var Aca;Aca=_.f(function(e){return _.x("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":e.shouldAriaHideContent},_.x("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:e.questionId},_.x(_.U2,{text:e.question})))},"wd");
_.Zta=_.f(function(e){var z=e.data;var C=e.themeOverride;e=_.b(_.II(!1,void 0,"pNli2b"));var w=e.next().value,K=e.next().value;e=_.T9(function(){K(!w());return!1});
var G=function(){return w()?"EXPAND_LESS":"EXPAND_MORE"},X=("faq-container"+_.e_(_.M7)).toString(),J="faq-question-and-answers-section-question"+_.e_(_.M7),q={},T={};
return _.x("faq-entry-view-model",null,_.x("div",{class:_.qT("ytLpFaqEntryViewModelHost",(q.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return C==null?void 0:C().useDarkTheme},q))},_.x("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":e,role:"button","aria-expanded":w,"aria-labelledby":J.toString(),"tab-index":"0"},_.x(Aca,{question:function(){return z().question},
questionId:J,shouldAriaHideContent:!0}),_.x(_.l,{cond:function(){return w()!==void 0},
then:function(){return _.x("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.x(_.mB,{icon:G,ariaHidden:!0}),_.x("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.x("div",{class:_.qT("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(T.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!w()},T))},_.x("div",{id:X},_.x(_.ui,{each:function(){return z().answers||[]}},function(Q){return _.x("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.x(_.U2,
{text:Q}))})))))},"xd");
_.Zta.idomCompat=!0;var pDa=_.f(function(e){var z=e.data;var C=e.themeOverride;e={};return _.x("lp-faq-section-view-model",null,_.x("div",{class:_.qT("yt-lp-faq-section-view-model",(e["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},e["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(C==null||!C().useDarkTheme)},e))},_.x("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.x(_.l,{cond:function(){return z().header},
then:function(w){return _.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.x(_.U2,{text:w}))}}),_.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.x(_.PF,{data:function(){return z().faqs}},{faqEntryViewModel:function(w){return _.x(_.Zta,{data:w.data,
themeOverride:C})}})),_.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.x(_.ui,{each:function(){return z().footers||[]}},function(w){return _.x(_.U2,{text:w})})),_.x(_.l,{cond:function(){return z().legal},
then:function(w){return _.x("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.x(_.U2,{text:w}))}}))))},"yd");
pDa.idomCompat=!0;var eb6=_.f(function(e){var z=e.data;var C=e.themeOverride;_.sg(function(){var X=z().gtmId;X&&_.oQ(X,_.j5("GL",""))});
var w={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var X,J,q;return(q=(X=z().logo)==null?void 0:(J=X.accessibilityData)==null?void 0:J.label)!=null?q:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},K=_.lh().resolve(_.$B(_.jQ)),G=function(){return K&&K()||(C==null?void 0:C().useDarkTheme)};
return _.x("lp-header-section-view-model",null,_.x("div",{class:function(){var X=z().layoutType,J=z().marginType==="LP_SECTION_MARGIN_TYPE_TOP",q=C==null?void 0:C().useDarkTheme,T=["lp-header-section-view-model"];switch(X){case "LP_MODULE_LAYOUT_TYPE_PTC":T.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":T.push("lp-header-section-view-model--narrow-header-layout-type")}J&&T.push("lp-header-section-view-model__lp-header-section-margin");q&&T.push("lp-header-section-view-model--premium-force-dark-mode");
return T.join(" ")}},_.x(_.l,{cond:function(){return z().logo},
then:function(){return _.x("div",null,_.x(_.l,{cond:G,then:function(){return _.x(_.l,{cond:function(){var X;return(X=z().logo)==null?void 0:X.imageDark},
then:function(X){return _.x(_.Zf,Object.assign({},{data:X},w))}})},
else:function(){return _.x(_.l,{cond:function(){var X;return(X=z().logo)==null?void 0:X.imageLight},
then:function(X){return _.x(_.Zf,Object.assign({},{data:X},w))}})}}))}}),_.x(_.l,{cond:function(){return z().title},
then:function(X){return _.x("div",{class:"lp-header-section-view-model__lp-header-title"},_.x(_.U2,{text:X}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.x(_.l,{cond:function(){return z().subtitles},
then:function(X){return _.x(_.ui,{each:X},function(J){return _.x("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.x(_.U2,{text:J}))})}})),_.x(_.l,{cond:function(){return z().additionalInfo},
then:function(X){return _.x("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.x(_.U2,{text:X}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.x(_.l,{cond:function(){return z().primaryButton},
then:function(X){return _.x("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.x(_.PF,{data:X},{buttonViewModel:_.iz}))}}),_.x(_.l,{cond:function(){return z().secondaryButton},
then:function(X){return _.x("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.x(_.PF,{data:X},{buttonViewModel:_.iz}))}})),_.x(_.l,{cond:function(){return z().otherOffersInfo},
then:function(X){return _.x("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.x(_.U2,{text:X}))}}),_.x("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.x(_.l,{cond:function(){return z().billingInfo},
then:function(X){return _.x(_.ui,{each:X},function(J){return _.x("div",null,_.x(_.U2,{text:J}))})}}))))},"zd");
eb6.idomCompat=!0;var zb6=_.f(function(e){return _.x("lp-header-upsell-banner-view-model",{class:_.qT("lpHeaderUpsellBannerViewModelHost",e.className,{})},_.x("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.x(_.mB,{icon:function(){return"CAMPAIGN"}})),_.x("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.x("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.x("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.x("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.x(_.U2,{text:function(){var z;
return(z=e.data())==null?void 0:z.description}})))),_.x(_.PF,{data:function(){var z;
return(z=e.data())==null?void 0:z.purchaseButton}},{buttonViewModel:function(z){return _.x(_.iz,{data:z.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Ad");var CNo=_.f(function(e){var z=e.data;var C=_.pP(e.themeOverride,{useDarkTheme:!1});e={};e=_.qT("ytmLpHeadlineSectionViewModelHost",(e.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return C().useDarkTheme},e));
return _.x("lp-headline-section-view-model",null,_.x("div",{class:e},_.x(_.l,{cond:function(){return z().title},
then:function(w){return _.x("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.x(_.U2,{text:w}))}}),_.x(_.l,{cond:function(){return z().subtitle},
then:function(w){return _.x("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.x(_.U2,{text:w}))}})))},"Bd");var wwc=_.f(function(e){var z=e.data;var C=e.themeOverride;var w=_.lh().resolve(_.$B(_.jQ)),K=function(){return w&&w()||(C==null?void 0:C().useDarkTheme)},G=function(){var T,Q;
var m=K()?(T=z().textBackgroundImage)==null?void 0:T.imageDark:(Q=z().textBackgroundImage)==null?void 0:Q.imageLight;return Gu1((m==null?void 0:m.sources)||[])},X=function(){var T,Q;
return K()?(T=z().featureImage)==null?void 0:T.imageDark:(Q=z().featureImage)==null?void 0:Q.imageLight},J=function(){return z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},q=function(){var T,Q;
return K()?(T=z().logo)==null?void 0:T.imageDark:(Q=z().logo)==null?void 0:Q.imageLight};
return _.x("ytm-lp-large-feature-section-view-model",null,_.x("div",{class:function(){var T=z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",Q=z().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",m=(z().index||0)%2===1,a=C==null?void 0:C().useDarkTheme,n=["yt-lp-large-feature-section-view-model"];T?n.push("yt-lp-large-feature-section-view-model--music-feature-type"):Q?n.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):m||n.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
a&&n.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return n.join(" ")}},_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.x(_.l,{cond:X,
then:function(){return _.x(_.Zf,{data:function(){return X()},
alt:function(){var T,Q,m;return(m=(T=z().featureImage)==null?void 0:(Q=T.accessibilityData)==null?void 0:Q.label)!=null?m:""},
contentMode:J})}})),_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var T;return((T=G())==null?0:T.url)?"background-image: url("+_.gw(G().url)+");":""}},_.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.x(_.l,{cond:q,
then:function(){return _.x(_.Zf,{data:function(){return q()},
alt:function(){var T,Q,m;return(m=(T=z().logo)==null?void 0:(Q=T.accessibilityData)==null?void 0:Q.label)!=null?m:""},
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"})}}),_.x(_.l,{cond:function(){return z().eyebrowText},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.x(_.U2,{text:function(){return z().eyebrowText}}))}}),_.x(_.l,{cond:function(){return z().title},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.x(_.U2,{text:function(){return z().title}}))}}),_.x(_.l,{cond:function(){return z().subtitles},
then:function(){return _.x("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.x(_.ui,{each:function(){return z().subtitles||[]}},function(T){return _.x(_.U2,{text:T})}))}})))))},"Cd");
wwc.idomCompat=!0;var KVa=_.f(function(e){return _.x("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.x("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.x(_.mB,{icon:function(){var z;return(z=e.data())==null?void 0:z.iconType},
className:function(){var z;switch((z=e.data())==null?void 0:z.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var z;return((z=e.data())==null?void 0:z.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.x("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.x(_.U2,{text:function(){var z;
return(z=e.data())==null?void 0:z.text},
className:function(){var z;return((z=e.data())==null?void 0:z.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Dd");var or6=_.f(function(e){e=_.eQ(e,{config:void 0,themeOverride:void 0});var z=e.data,C=e.config,w=e.themeOverride;e={};e=_.qT("ytmLpOfferCardOptionViewModelHost",(e.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var J;return(J=w())==null?void 0:J.useDarkTheme},e));
var K=_.T9(function(){var J,q;(J=C())==null||(q=J.handleRadioButtonClick)==null||q.call(J,z());return!1}),G=function(){var J;
return(J=C())==null?void 0:J.shouldDisplayRadioButton},X=function(){var J;
return(J=z().featureListItems)!=null?J:[]};
return _.x("ytm-lp-offer-card-option-view-model",null,_.x("div",{class:e,"on:click":_.T9(function(){if(G()){var J,q;(J=C())==null||(q=J.handleRadioButtonClick)==null||q.call(J,z())}return!1})},_.x(_.l,{cond:G,
then:function(){return _.x("div",null,_.x("input",{type:"radio","on:click":K,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var J;return!((J=C())==null||!J.isOptionSelected)}}))}}),_.x("div",null,_.x("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.x(_.U2,{text:function(){return z().eyebrowText}})),_.x("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.x(_.U2,
{text:function(){return z().subtitle}})),_.x(_.l,{cond:function(){return X().length>0},
then:function(){return _.x("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.x(_.PF,{data:X},{lpFeatureListItemViewModel:KVa}))}}),_.x("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.x(_.U2,{text:function(){return z().description}})))))},"Ed");
or6.idomCompat=!0;var GPC=_.f(function(e){var z=e.data;var C=e.themeOverride;e=_.b(_.zx(function(){var G,X=(G=z().offerOptions)==null?void 0:G[0];return _.r(X,bxc)||{}}));
var w=e.next().value,K=e.next().value;e={};return _.x("ytm-lp-offer-card-view-model",null,_.x("div",{class:_.qT("ytmLpOfferCardViewModelHost",(e.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(C==null||!C().useDarkTheme)},e))},_.x("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.x(_.l,{cond:function(){return z().titleIconType},
then:function(){return _.x("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.x(_.mB,{icon:function(){var G;return((G=z().titleIconType)==null?void 0:G.toString())||""}}))}}),_.x("div",{class:"ytmLpOfferCardViewModelTitleText"},_.x(_.U2,{text:function(){return z().title}})),_.x(_.PF,{data:function(){return z().titleBadge}},{badgeViewModel:function(G){return _.x("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.x(_.Se,{data:G.data}))}})),_.x("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.x(_.PF,{data:function(){return z().offerOptions}},{lpOfferCardOptionViewModel:function(G){var X=G.data;
return _.x(_.Qw,null,_.x("div",{class:"ytmLpOfferCardViewModelDivider"}),_.x(or6,{data:X,config:function(){var J;return{shouldDisplayRadioButton:(z().offerOptions||[]).length>1,isOptionSelected:X().id===((J=w())==null?void 0:J.id),handleRadioButtonClick:function(q){return void K(q)}}},
themeOverride:C}))}})),_.x("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.x(_.PF,{data:function(){var G;
return(G=w())==null?void 0:G.purchaseButtonOverride}},{buttonViewModel:_.iz}))))},"Fd");
GPC.idomCompat=!0;var YwY=_.f(function(e){var z=e.data;var C=e.themeOverride;e={};e=_.qT("ytmLpOfferCardSectionViewModelHost",(e.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var w;return C==null?void 0:(w=C())==null?void 0:w.useDarkTheme},e));
return _.x("ytm-lp-offer-card-section-view-model",null,_.x("div",{class:e},_.x(_.l,{cond:function(){return z().title!==void 0},
then:function(){return _.x("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.x("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.x(_.U2,{text:function(){return z().title}})),_.x(_.l,{cond:function(){return z().subtitle},
then:function(){return _.x("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.x(_.U2,{text:function(){return z().subtitle}}))}}))}}),_.x("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.x(_.PF,{data:function(){return z().offerCards}},{lpOfferCardViewModel:function(w){return _.x("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.x(GPC,{data:w.data,
themeOverride:C}))}})),_.x(_.l,{cond:function(){return z().footer},
then:function(){return _.x("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.x(_.U2,{text:function(){return z().footer}}))}})))},"Gd");var be6=_.f(function(e){var z=e.data;return _.x("lp-offer-table-cell-content-view-model",null,_.x("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.x(_.d1,null,_.x(_.fd,{when:function(){return z().title}},function(){return _.x(_.U2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return z().title}})}),_.x(_.fd,{when:function(){return z().subTitle}},function(){return _.x(_.U2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return z().subTitle}})}),_.x(_.fd,{when:function(){return z().featureDescription}},function(){return _.x(_.U2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return z().featureDescription}})}),_.x(_.fd,{when:function(){return z().description}},function(){return _.x(_.U2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return z().description}})}),_.x(_.fd,{when:function(){return z().iconType}},function(){return _.x("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.x(_.mB,{icon:function(){return z().iconType.toString()}}))}),_.x(_.fd,{when:function(){return z().purchaseButton}},function(){return _.x(_.PF,{data:function(){return z().purchaseButton}},{buttonViewModel:function(C){return _.x("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.x(_.iz,
{data:C.data}))}})}),_.x(_.fd,{when:function(){return z().note}},function(){return _.x(_.U2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return z().note}})}),_.x(_.fd,{when:function(){return z().featureDetail}},function(){return _.x(_.U2,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return z().featureDetail}})}),_.x(_.fd,{when:function(){return z().badge}},function(){return _.x(_.PF,{data:function(){return z().badge}},{badgeViewModel:_.Se})}))))},"Hd");
be6.idomCompat=!0;var XwS=_.f(function(e){var z=e.data;return _.x("lp-offer-table-cell-view-model",null,_.x("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(z().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;"}}},_.x(_.PF,{data:function(){return z().contents}},{lpOfferTableCellContentViewModel:be6})))},
"Id");
XwS.idomCompat=!0;var Jsa=_.f(function(e){var z=e.data;var C=e.lpTableIsFirstRow;var w=e.lpTableIsLastRow;var K=function(){return(C==null?0:C())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},G=function(){return(C==null?0:C())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(w==null?0:w())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.x("ytm-lp-offer-table-row-view-model",null,_.x("div",{class:"ytLpOfferTableRowViewModelHost"},_.x(_.PF,{data:function(){return z().rowHeaderCell}},{lpOfferTableCellViewModel:function(X){return _.x("div",{class:K},_.x(XwS,{data:X.data}))}}),_.x(_.PF,{data:function(){return z().contentCells}},{lpOfferTableCellViewModel:function(X){return _.x("div",{class:G},_.x(XwS,{data:X.data}))}})))},"Jd");
Jsa.idomCompat=!0;var kP6=_.f(function(e){var z=e.data;var C=e.themeOverride;var w=_.lh().resolve(_.$B(_.jQ)),K=function(){return _.r(z().logo,RR6)||{}};
e={};return _.x("ytm-lp-offer-table-section-view-model",null,_.x("div",{class:"ytLpOfferTableViewModelHost"},_.x(_.l,{cond:function(){var G,X;return w&&w()||(C==null?0:C().useDarkTheme)?(G=K())==null?void 0:G.imageDark:(X=K())==null?void 0:X.imageLight},
then:function(G){return _.x(_.Zf,{data:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var X,J,q;return(q=(X=K())==null?void 0:(J=X.accessibilityData)==null?void 0:J.label)!=null?q:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.x(_.U2,{text:function(){return z().subtitle}})),_.x(_.l,{cond:function(){return z().disclaimers},
then:function(G){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.x(_.ui,{each:G},function(X){return _.x("div",null,_.x(_.U2,{text:X}))}))}}),_.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.x(_.PF,{data:function(){return z().rows}},{lpOfferTableRowViewModel:function(G,X){return _.x(Jsa,{data:G.data,
lpTableIsFirstRow:function(){return X()===0},
lpTableIsLastRow:function(){return X()===z().rows.length-1}})}})),_.x("div",{class:_.qT((e.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return z().hasFooterBackground},e))},_.x(_.l,{cond:function(){return z().footer},
then:function(){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.x(_.U2,{text:function(){return z().footer}}))}}),_.x(_.l,{cond:function(){return z().footerTitle},
then:function(){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.x(_.U2,{text:function(){return z().footerTitle}}))}}),_.x(_.l,{cond:function(){return z().footerDescription},
then:function(){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.x(_.U2,{text:function(){return z().footerDescription}}))}}),_.x(_.l,{cond:function(){return z().footerDescriptions},
then:function(G){return _.x("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.x(_.ui,{each:G},function(X){return _.x("div",null,_.x(_.U2,{text:X}))}))}}))))},"Kd");
kP6.idomCompat=!0;var qwg=_.f(function(e){var z=e.data;var C=e.themeOverride;var w=_.lh().resolve(_.$B(_.jQ)),K=function(){var J;return C==null?void 0:(J=C())==null?void 0:J.useDarkTheme},G=function(){var J,q;
return w&&w()||K()?(J=z().image)==null?void 0:J.imageDark:(q=z().image)==null?void 0:q.imageLight};
e={};e=_.qT("ytmLpSmallFeatureSectionViewModelHost",(e.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=K,e));var X=function(){var J,q,T;return(T=(J=z().image)==null?void 0:(q=J.accessibilityData)==null?void 0:q.label)!=null?T:""};
return _.x("ytm-lp-small-feature-section-view-model",{class:e},_.x(_.l,{cond:function(){return G()&&!b1g},
then:function(){return _.x("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.x(_.Zf,{data:function(){return G()},
alt:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.x("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.x("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.x(_.l,{cond:function(){return z().title},
then:function(J){return _.x(_.U2,{text:J})}})),_.x("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.x(_.U2,{text:function(){return z().description}}))))},"Ld");
qwg.idomCompat=!0;var x9a=_.f(function(e){var z=e.data;var C=e.themeOverride;e={};return _.x("ytm-lp-small-feature-section-group-view-model",null,_.x("div",{class:_.qT("ytmLpSmallFeatureSectionGroupViewModelHost",(e.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(C==null||!C().useDarkTheme)},e))},_.x("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.x(_.PF,{data:function(){return z().smallFeatures}},{lpSmallFeatureSectionViewModel:function(w){return _.x("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.x(qwg,{data:w.data,
themeOverride:C}))}}))))},"Md");
x9a.idomCompat=!0;_.KU(_.f(function(e){var z=e.data;var C=function(){return z().forcedTheme==="USER_INTERFACE_THEME_DARK"},w=function(){return z().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},K=function(){var X="",J,q;
var T=_.lh().resolve(_.$B(_.jQ));T=C()||(T==null?0:T())?(J=z().themedImageViewModel)==null?void 0:J.imageDark:(q=z().themedImageViewModel)==null?void 0:q.imageLight;(J=Gu1((T==null?void 0:T.sources)||[]))&&J.url&&(X=w()?"background-image: linear-gradient(to bottom, transparent, "+(z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.gw(J.url)+");":"background-image: url("+_.gw(J.url)+");");return X},G=function(){return{useDarkTheme:C()}};
e={};return _.x("yt-section-group-view-model",null,_.x("div",{class:_.qT("yt-lp-section-group-view-model",(e["yt-lp-section-group-view-model--premium-force-dark-mode"]=C,e["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return z().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},e))},_.x(_.l,{cond:function(){return K().length},
then:function(){var X={};return _.x("div",{class:_.qT("yt-lp-section-group-view-model__bg-image",(X["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=w,X)),style:K})}}),_.x("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.x(_.PF,{data:function(){return z().sections}},{lpHeaderUpsellBannerViewModel:function(X){return _.x(zb6,{data:X.data})},
lpFaqSectionViewModel:function(X){return _.x(pDa,{data:X.data,themeOverride:G})},
lpHeaderSectionViewModel:function(X){return _.x(eb6,{data:X.data,themeOverride:G})},
lpHeadlineSectionViewModel:function(X){return _.x(CNo,{data:X.data,themeOverride:G})},
lpLargeFeatureSectionViewModel:function(X){return _.x(wwc,{data:X.data,themeOverride:G})},
lpOfferCardSectionViewModel:function(X){return _.x(YwY,{data:X.data,themeOverride:G})},
lpComplexOfferCardSectionViewModel:function(X){return _.x(ycL,{data:X.data})},
lpOfferTableSectionViewModel:function(X){return _.x(kP6,{data:X.data,themeOverride:G})},
lpSmallFeatureSectionGroupViewModel:function(X){return _.x(x9a,{data:X.data,themeOverride:G})},
lpCouponBannerViewModel:function(X){return _.x(cca,{data:X.data})}}))))},"Nd"),"yt-section-group-view-model",{props:{data:_.vh}});_.Tvo=_.f(function(e){var z=_.vF(HOL,function(){var X;return(X=e.data())==null?void 0:X.chipBarStateEntityKey}),C=function(){return e.data().disableDeselection},w=_.b(_.zx(function(){var X;
if(((X=z())==null?void 0:X.selectedIndex)!=void 0)return z().selectedIndex;var J,q;X=_.b(((J=e.data())==null?void 0:(q=J.chips)==null?void 0:q.entries())||[]);for(J=X.next();!J.done;J=X.next()){J=_.b(J.value);q=J.next().value;J=J.next().value;var T=void 0;if((T=_.r(J,_.Uf))==null?0:T.selected)return q}return-1})),K=w.next().value,G=w.next().value;
return _.x("chip-bar-view-model",{class:_.qT("ytChipBarViewModelHost",e.className),role:"tablist"},_.x(_.PF,{data:function(){return e.data().chips}},{chipViewModel:function(X,J){return _.x("div",{class:"ytChipBarViewModelChipWrapper"},_.x(_.DPT,{data:X.data,
selected:function(){return J()===K()},
callback:function(q,T){q=!!T;T=J();G(q?T:-1);var Q,m=(Q=e.data())==null?void 0:Q.chipBarStateEntityKey;m&&q&&_.ZL(_.Rx("chipBarStateEntity",m,{key:m,selectedIndex:T}))},
disableDeselection:e.disableDeselection||C}))}}))},"Od");_.KU(_.Tvo,"chip-bar-view-model",{props:{data:_.z9,className:_.z9,disableDeselection:_.z9}});_.$9a=_.f(function(e){var z=e.data;e={};return _.x("divider-view-model",{class:_.qT("dividerViewModelHost",(e.dividerViewModelInsetThinPadding=function(){return z().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},e))},_.x("div",{class:_.qT("dividerViewModelBaseDivider",function(){return Uo5(z().dividerStyle)})}))},"Pd");
_.$9a.idomCompat=!0;_.KU(_.$9a,"divider-view-model",{props:{data:_.vh}});var v0=new Map,Ie=new Map,WZs=0,W0;var EnN=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],fXN={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var lxa,Q1U;lxa=function(e){return function(z){return function(){return(z==null?void 0:z())!==void 0?String(z())+e:void 0}}};
_.rs=lxa("px");Q1U=lxa("s");var m9o=H6o(function(e){return e.targetGroupId}).useUpdatableData;_.HX=_.f(function(e){function z(YN){return function(){var Jk=L().numItemsPerGridRow,v1=YN()*Jk;Jk=v1+Jk;var lg,M5;return(M5=(lg=w().contents)==null?void 0:lg.slice(v1,Jk))!=null?M5:[]}}
var C=_.eQ(e,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),w=C.data,K=C.layoutContainerWidth,G=C.shouldUseOwnContainerSize,X=C.marginSettings,J=C.useUpdatedMargin,q=YlE(),T=_.b(m9o(function(){var YN,Jk;return{targetGroupId:(YN=w().targetingContext)==null?void 0:(Jk=YN.targetGroupId)==null?void 0:Jk[0]}})).next().value;
C=_.b(_.II(!0,void 0,"lKny6d"));var Q=C.next().value,m=C.next().value,a=function(){var YN,Jk=(YN=_.r(w().showMoreButton,_.H7))==null?void 0:YN.trackingParams;Jk&&_.Zw(_.nm(),Jk);m(!1)},n=function(){var YN,Jk=(YN=_.r(w().showLessButton,_.H7))==null?void 0:YN.trackingParams;
Jk&&_.Zw(_.nm(),Jk);m(!0)};
C=_.b(_.P0({canHaveZeroSize:!1}));var H=C.next().value;C=C.next().value;var I=function(){var YN;return(YN=w().contentAspectRatio)!=null?YN:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},L=_.hG(function(){var YN=G()&&H.width()>0?H.width()||K():K(),Jk,v1=(Jk=e.data())==null?void 0:Jk.responsiveContainerConfiguration;
YN=_.gE({containerWidth:YN,sizing:v1?j3(v1==null?void 0:v1.responsiveSize):"EXTRA_COMPACT",marginSettings:X(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:YN.maxContainerWidth,numItemsPerGridRow:YN.numItems,contentPadding:G()?YN.margin:YN.contentMargin,itemWidth:YN.itemWidth,itemMargin:YN.gutter/2}},void 0,"XYkF9e"),h=function(){if(w().enableVerticalExpansion){if(Q())return E();
var YN,Jk,v1=(Jk=(YN=w().contents)==null?void 0:YN.length)!=null?Jk:0;return Math.ceil(v1/L().numItemsPerGridRow)}return L().numItemsPerGridRow<=2?2:1},E=function(){var YN;
return Math.ceil(((YN=w().minCollapsedItemCount)!=null?YN:1)/L().numItemsPerGridRow)},N=function(){return w().enableVerticalExpansion&&w().showLessButton&&!Q()&&h()>E()},D=function(){var YN,Jk;
return w().enableVerticalExpansion&&w().showMoreButton&&Q()&&((Jk=(YN=w().contents)==null?void 0:YN.length)!=null?Jk:0)>L().numItemsPerGridRow*E()},g=function(){return!N()},y=function(){return!D()},Z={};
return _.x("grid-shelf-view-model",{class:_.qT("ytGridShelfViewModelHost",e.className,(Z.ytGridShelfViewModelHostHasBottomButton=function(){return N()||D()},Z.ytGridShelfViewModelHostIsDismissed=function(){var YN,Jk=(YN=T())!=null?YN:{};
YN=Jk.behavior;var v1=Jk.isDismissed,lg=Jk.stamperContextTargetId;Jk=Jk.stamperIndex;if(!(_.M("mweb_see_fewer_shorts_group_dismissal")&&v1&&YN&&lg))return!1;var M5;v1=q;for(var fo,ug,sE=((fo=v1)==null?0:fo.targetId)?_.gp((ug=v1)==null?void 0:ug.targetId):void 0;((M5=v1)==null?0:M5.parent)&&sE!==lg;)v1=v1.parent,ug=fo=void 0,sE=((fo=v1)==null?0:fo.targetId)?_.gp((ug=v1)==null?void 0:ug.targetId):void 0;M5=sE===lg?v1:void 0;if(!M5)return!1;var w6;lg=M5==null?void 0:(w6=M5.stamperIndex)==null?void 0:
w6.call(M5);return YN==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||YN==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&lg!=null&&Jk!=null&&lg>Jk},Z.ytGridShelfViewModelHostOptionalMediumLayoutMargin=J,Z)),
el:_.ej(C),style:_.QC({"margin-left":(0,_.rs)(function(){return L().contentPadding}),
"margin-right":(0,_.rs)(function(){return L().contentPadding})})},_.x(_.l,{cond:function(){return _.r(w().header,VNa)},
then:function(YN){return _.x(_.C5,{data:YN,useUpdatedPadding:J,disableHorizontalPadding:!0})}}),_.x("div",null,_.x(_.ui,{each:function(){return Array(h())}},function(YN,Jk){return _.x(axa,{className:e.className,
items:z(Jk),responsiveGridShelfLayout:L,contentAspectRatio:I})})),_.x("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.x(_.PF,{data:function(){return w().showMoreButton}},{buttonViewModel:function(YN){return _.x("div",{hidden:y},_.x(_.iz,{data:YN.data,
onClick:a}))}}),_.x(_.PF,{data:function(){return w().showLessButton}},{buttonViewModel:function(YN){return _.x("div",{hidden:g},_.x(_.iz,{data:YN.data,
onClick:n}))}})))},"Rd");
_.HX.idomCompat=!0;var axa=_.f(function(e){var z=e.items;var C=e.responsiveGridShelfLayout;var w=e.contentAspectRatio;e=e.className;var K=_.kI("div");IX8(K,function(){a:{var X=K.value;for(var J=z(),q=[],T=0;T<J.length;T++){var Q=_.r(J[T],TyU);if(!Q||Q==null||!Q.inlinePlayerData){X=null;break a}var m=X.children.item(T);if(!m){X=null;break a}q.push({thumbnailElement:m,videoData:Q})}X={gridVideoPreviewData:{gridItems:q}}}return X});
var G=(0,_.rs)(function(){return-C().itemMargin});
return _.x("div",{el:K,class:_.qT("ytGridShelfViewModelGridShelfRow",e),style:_.QC({"margin-left":G,"margin-right":G})},_.x(_.PF,{data:z,replacementWrapper:function(X){return _.x(nrh,{responsiveGridShelfLayout:C},X)}},{shortsLockupViewModel:function(X){return _.x(nrh,{responsiveGridShelfLayout:C},_.x(Bdg,{data:X.data,
aspectRatio:function(){return w()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.M("mweb_enable_one_line_title_on_shorts")?1:_.M("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(X){return _.x(nrh,{responsiveGridShelfLayout:C},_.x(_.eI,{data:X.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Sd"),nrh=_.f(function(e){return _.x("div",{style:_.QC({width:(0,_.rs)(function(){return e.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+e.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},e.children)},"Td");
_.HX.idomCompat=!0;_.KU(_.HX,"grid-shelf-view-model",{props:{data:_.vh,layoutContainerWidth:_.vh,shouldUseOwnContainerSize:_.vh,marginSettings:_.vh,useUpdatedMargin:_.vh,className:_.vh}});_.Mph=_.f(function(e){var z=_.b(_.II(!1,void 0,"FVl30c")),C=z.next().value,w=z.next().value;z={};return _.x("yt-alert-banner-view-model",{class:_.qT("ytAlertBannerViewModelHost",e.className,function(){var K;a:switch((K=e.data())==null?void 0:K.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":K="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":K="ytAlertBannerViewModelWarning";break a;default:K="ytAlertBannerViewModelInformational"}return K},(z.ytAlertBannerViewModelDismissed=
C,z.ytAlertBannerViewModelFullbleed=e.fullbleed,z.ytAlertBannerViewModelNarrow=e.narrow,z.ytAlertBannerViewModelIsInRichGrid=e.isInRichGrid,z))},_.x(_.l,{cond:function(){var K;
return!((K=e.data())==null?0:K.hideIcon)},
then:function(){return _.x("div",{class:"ytAlertBannerViewModelIcon"},_.x(_.mB,{icon:function(){return"info_circle"}}))}}),_.x("div",{class:"ytAlertBannerViewModelOuterContainer"},_.x("div",{class:"ytAlertBannerViewModelContainer"},_.x("div",{class:"ytAlertBannerViewModelContent"},_.x("div",{class:"ytAlertBannerViewModelHeading"},_.x(_.U2,{text:function(){var K;
return(K=e.data())==null?void 0:K.heading}})),_.x("div",{class:"ytAlertBannerViewModelBody"},_.x(_.U2,{text:function(){var K;
return(K=e.data())==null?void 0:K.body}})))),_.x(_.PF,{data:function(){var K;
return(K=e.data())==null?void 0:K.actionButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.x(_.PF,{data:function(){var K;
return(K=e.data())==null?void 0:K.dismissButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var G;((G=e.data())==null?0:G.disableLocalDismissBehavior)||w(!0)}})}}))},"Ud");_.KU(_.Mph,"yt-alert-banner-view-model",{props:{data:_.vh,fullbleed:_.vh,narrow:_.vh,isInRichGrid:_.vh,className:_.vh}});var rsU;_.Ub=_.f(function(e){return _.x("basic-content-view-model",{class:_.qT("ytBasicContentViewModelHost",_.pP(e.className))},_.x(_.l,{cond:function(){return e.data().headline},
then:function(z){return _.x("div",{class:"ytBasicContentViewModelHeadline"},_.x(_.U2,{text:z}))}}),_.x(_.ui,{each:function(){return e.data().paragraphs||[]},
keyBy:"INDEX"},function(z){return _.x("div",{class:"ytBasicContentViewModelParagraph"},_.x(_.l,{cond:function(){var C=z();return!!(C.header||C.customHeader||C.headline)},
then:function(){return _.x(rsU,{paragraph:z})}}),_.x(_.l,{cond:function(){return z().asset||z().text},
then:function(){return _.x("div",{class:"ytBasicContentViewModelParagraphContent"},_.x(_.l,{cond:function(){return z().asset},
then:function(C){return _.x("div",{class:"ytBasicContentViewModelParagraphAsset"},_.x(_.PF,{data:C},{contentPreviewImageViewModel:_.gH}))}}),_.x(_.l,{cond:function(){return z().text},
then:function(C){return _.x("div",{class:"ytBasicContentViewModelParagraphText"},_.x(_.U2,{text:C}))}}))}}))}))},"Vd");
rsU=_.f(function(e){var z=e.paragraph;return _.x(_.Qw,null,_.x(_.l,{cond:function(){return z().headline},
then:function(C){return _.x(_.U2,{text:C,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.x(_.PF,{data:function(){return z().header||z().customHeader}},{sectionHeaderViewModel:function(C){return _.x(_.C5,{data:C.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Wd");_.HeS=_.f(function(e){function z(){var n,H;q((H=(n=K)==null?void 0:n.isKeyBoardInUse())!=null?H:!1)}
function C(){q(!1)}
function w(){var n;return J()?(n=e.focusedClassName)==null?void 0:n.call(e):""}
var K=_.lh().resolve(_.$B(_.V5)),G=_.b(_.II(!1,void 0,"SgkTXc")),X=G.next().value;G=G.next().value;var J=X,q=G,T=function(){var n,H;return((n=e.toggleable)==null?0:n.call(e))?(H=e.toggled)==null?void 0:H.call(e):void 0},Q=_.T9(function(n){var H,I=(H=e.command)==null?void 0:H.call(e);
I&&_.lh().resolve(_.ms).resolveCommand(I);var L;(L=e.onClick)==null||L.call(e,n)}),m=_.T9(z),a=_.T9(C);
return _.x(_.l,{cond:function(){var n;if(n=e.command){n=e.command();n=QG1(n);var H=n.href;n=!(!n.navigatingCommand||!H)}return n},
then:function(){return _.x(_.fE,Object.assign({},{command:e.command,style:e.style,ariaDescribedby:e.ariaDescribedby,ariaHidden:e.ariaHidden,ariaLabel:e.ariaLabel,ariaLabelledby:e.ariaLabelledby,ariaSelected:e.ariaSelected,disabled:e.disabled,dir:e.dir,tabIndex:e.tabIndex,target:e.target,title:e.title,onClick:e.onClick},{className:_.qT("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",e.className,function(){return w()}),
onFocusin:z,onFocusout:C,ariaCurrent:function(){var n,H;return(H=(n=e.ariaCurrent)==null?void 0:n.call(e))!=null?H:T()}}),e.children)},
else:function(){return _.x("button",{"on:click":Q,"on:focusin":m,"on:focusout":a,class:_.qT("ytButtonOrAnchorHost","ytButtonOrAnchorButton",e.className,function(){return w()}),
style:e.style,"aria-describedby":e.ariaDescribedby,"aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-pressed":T,dir:e.dir,disabled:e.disabled,tabindex:e.tabIndex,title:e.title},e.children)}})},"Xd");var U9c=_.f(function(e){e=_.eQ(e,{disabled:!1});var z=e.active,C=e.disabled;e={};e=_.qT("ytSwitchShapeTrack",(e.ytSwitchShapeTrackActive=function(){return z()},e.ytSwitchShapeTrackDisabled=function(){return C()},e));
var w={};w=_.qT("ytSwitchShapeKnob",(w.ytSwitchShapeKnobActive=function(){return z()},w));
return _.x("switch-shape",{class:"ytSwitchShapeHost"},_.x("div",{class:e}),_.x("div",{class:w}))},"Yd");var vrc=_.f(function(e){var z=_.eQ(e,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),C=z.data;e=z.className;var w=z.handleOnTapEventInParent,K=z.parentActive,G=z.onTap;z=_.b(_.zx(function(){var a;return(a=K())!=null?a:C().switchedOnByDefault||!1}));
var X=z.next().value,J=z.next().value,q=function(){return C().isDisabled},T=_.kI("button");
z=_.T9(function(a){return a.key==="Enter"?(a.preventDefault(),T.value.click(),!1):!0});
var Q=_.T9(function(a){if(C().handleOnTapEventInParent||w())return!0;if(q())return!1;if(G)return G(a),!0;dog(C(),X(),a);J(!X());return!1}),m={};
m=_.qT("ytSwitchButtonViewModelButton",(m.ytSwitchButtonViewModelTappable=function(){return!q()},m));
return _.x("switch-button-view-model",{class:_.qT("ytSwitchButtonViewModelHost",e)},_.x("button",{el:T,class:m,"on:click":Q,"on:keydown":z,"aria-label":function(){return X()?C().a11yLabelSwitchedOn:C().a11yLabelSwitchedOff},
"aria-checked":X,"aria-disabled":q,role:"switch"},_.x(U9c,{active:X,disabled:q})))},"Zd");var IxL=_.f(function(e){var z=e.data;var C=e.isLeading;var w=e.hideSelectionTextChevron;var K=e.isToggled;var G=e.shouldNotFillIcon;var X=function(){if(C())var m=z().leadingImage;else{var a;m=(a=z().trailingImage)!=null?a:_.yA(z().themedTrailingImage)}return m},J=function(){a:switch(z().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var m="expand_more";
break a;default:m="chevron_right"}return m};
e={};var q=_.qT("yt-list-item-view-model__image-container",(e["yt-list-item-view-model__leading"]=C,e["yt-list-item-view-model__trailing"]=function(){return!C()},e)),T=_.qT("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
e={};var Q=_.qT("yt-list-item-view-model__accessory",(e["yt-list-item-view-model__leading"]=C,e["yt-list-item-view-model__trailing"]=function(){return!C()},e));
return _.x(_.l,{cond:function(){var m=z(),a=C();return!!(a&&(m.leadingImage||m.leadingAccessory)||!a&&(m.trailingImage||m.trailingButton||m.trailingButtons||m.selectionText||m.themedTrailingImage||m.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.x(_.Qw,null,_.x(_.l,{cond:X,then:function(m){return _.x("div",{class:q,"aria-hidden":"true"},_.x(_.Zf,{data:m,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var a=(C()?z().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":z().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?C()?Nd7(z().leadingIconAccessorySize):Nd7(z().trailingIconAccessorySize):void 0;return a},
className:T,isToggled:function(){return!(G==null?0:G())&&(K==null?void 0:K())}}))}}),_.x(_.l,{cond:function(){return C()&&z().leadingAccessory},
then:function(){return _.x("div",{class:q},_.x(_.PF,{data:function(){return z().leadingAccessory}},{avatarViewModel:function(m){return _.x(_.lO,{data:m.data,
avatarButtonCustomClassName:T})},
collectionThumbnailViewModel:function(m){return _.x(dsa,{data:m.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.x(_.l,{cond:function(){return!C()&&z().trailingButton},
then:function(){return _.x("div",{class:"yt-list-item-view-model__button-container"},_.x(_.PF,{data:function(){return z().trailingButton}},{buttonViewModel:function(m){return _.x(_.iz,{data:m.data,
className:Q})}}))}}),_.x(_.l,{cond:function(){var m;
return!C()&&((m=z().trailingButtons)==null?void 0:m.buttons)},
then:function(){return _.x("div",{class:"yt-list-item-view-model__button-container"},_.x(_.PF,{data:function(){var m;return(m=z().trailingButtons)==null?void 0:m.buttons}},{buttonViewModel:function(m){return _.x(_.iz,{data:m.data,
className:Q})},
accountLinkButtonViewModel:function(m){return _.x(vFC,{data:m.data,className:Q})},
switchButtonViewModel:function(m){return _.x(vrc,{data:m.data,className:Q})},
subscribeButtonViewModel:function(m){return _.x(_.lT,{data:m.data,isOverlay:!1,animateWidth:!1,className:Q})},
toggleButtonViewModel:function(m){return _.x(_.XG,{data:m.data,className:Q})}}))}}),_.x(_.l,{cond:function(){return!C()&&!!z().selectionText},
then:function(){return _.x(_.Qw,null,_.x(_.U2,{text:function(){return z().selectionText},
className:_.qT("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.x(_.l,{cond:function(){return!(w==null?0:w())},
then:function(){return _.x(_.mB,{icon:J,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.x(_.l,{cond:function(){return!C()&&z().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.x("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"$d");var WV6=_.f(function(e){var z=e.data;return _.x(_.l,{cond:function(){return z().title||z().subtitle},
then:function(){return _.x("div",{class:"yt-list-item-view-model__text-wrapper"},_.x(_.l,{cond:function(){return z().title},
then:function(C){return _.x("div",{class:"yt-list-item-view-model__title-wrapper"},_.x(_.U2,{text:C,className:"yt-list-item-view-model__title"}))}}),_.x(_.l,{cond:function(){return z().subtitle},
then:function(C){return _.x(_.U2,{text:C,className:"yt-list-item-view-model__subtitle"})}}))}})},"ae");var PNS=_.f(function(e){var z=e.data;var C=e.hideSelectionTextChevron;var w=e.TrailingAccessory;var K=e.isToggled;var G=e.disabled;var X=e.isSelectItem;var J=e.isCompact;var q=e.inPopup;var T=e.disableHorizontalPadding;var Q=e.isTappableWithoutSelect;var m=e.useButtonOrAnchor;var a=e.onTap;var n=e.shouldNotFillIcon;var H=function(){return _.x(WV6,{data:z,onTap:a,useButtonOrAnchor:m,isTappableWithoutSelect:Q,isToggled:K})};
e={};return _.x("div",{class:_.qT("yt-list-item-view-model__label",(e["yt-list-item-view-model__container"]=function(){return!(X==null?0:X())},e["yt-list-item-view-model__container--disabled"]=function(){return!!z().isDisabled||!(G==null||!G())},e["yt-list-item-view-model__container--has-subtitle"]=function(){return!!z().subtitle},e["yt-list-item-view-model__container--compact"]=J,e["yt-list-item-view-model__container--tappable"]=Q,e["yt-list-item-view-model__container--in-popup"]=q,e["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(T==null?void 0:T())&&!(X==null?0:X())},e))},_.x(IxL,{data:z,
isLeading:!0,hideSelectionTextChevron:C,isToggled:K,shouldNotFillIcon:n}),_.x(_.l,{cond:function(){return(m==null?void 0:m())&&(Q==null?void 0:Q())},
then:function(){return _.x(_.HeS,{command:function(){return _.u3(z().rendererContext)},
onClick:a,className:"yt-list-item-view-model__button-or-anchor",toggleable:K!==void 0,toggled:K},_.x(H,null))},
else:function(){return _.x(H,null)}}),_.x(_.l,{cond:function(){return!!w},
then:function(){return _.x("div",{class:"yt-list-item-view-model__trailing"},w&&_.x(w,null))},
else:function(){return _.x(IxL,{data:z,isLeading:!1,hideSelectionTextChevron:C,isToggled:K,shouldNotFillIcon:n})}}))},"be");var LVs=_.f(function(e){var z=_.eQ(e,{checked:!1,disabled:!1});e=z.name;var C=z.onChange,w=z.onClick,K=z.checked,G=z.labelRenderable,X=z.hasLeadingLabel,J=z.labelClass,q=z.isCompact,T=z.selectElementClass,Q=z.disableHorizontalPadding;z=z.disabled;var m="checkbox"+_.e_(_.M7),a=_.T9(function(I){w==null||w(I);return!1}),n=_.T9(function(I){C==null||C(I);
return!1}),H={};
return _.x("checkbox-shape",null,_.x("label",{class:_.qT("ytCheckboxShapeHost",J,(H.ytCheckboxShapeHostCompact=q,H.ytCheckboxShapeDisableHorizontalPadding=Q,H))},_.x("input",{class:"ytCheckboxShapeInput",id:m,checked:K,name:e,type:"checkbox",disabled:z,"prop:checked":K,"on:change":n,"on:click":a}),_.x(_.l,{cond:function(){return!(X==null?0:X())},
then:function(){return _.x(Rbo,{isLeading:!0,selectElementClass:T})}}),_.x(_.l,{cond:function(){return!!G},
then:function(){return _.x("div",{class:"ytCheckboxShapeLabel"},G==null?void 0:G())}}),_.x(_.l,{cond:X,
then:function(){return _.x(Rbo,{isLeading:!1,selectElementClass:T})}})))},"ce");
LVs.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Rbo=_.f(function(e){var z=e.selectElementClass;e={};return _.x("div",{class:_.qT("ytCheckboxShapeCheckbox",z,(e.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(z==null?0:z())},e)),
"aria-hidden":"true"},_.x(_.mB,{icon:_.M("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.x(_.mB,{icon:_.M("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"de");_.vX=_.f(function(e){var z=e.name;var C=e.onChange;var w=e.onClick;var K=e.checked;var G=e.labelRenderable;var X=e.useCheckIcon;var J=e.hasLeadingLabel;var q=e.labelClass;var T=e.isCompact;var Q=e.selectElementClass;var m=e.ariaLabel;var a=e.className;e=e.disabled;var n="radio"+_.e_(_.M7),H=_.kI("input"),I=_.M("enable_ios_webview_radio_button_responsiveness"),L=_.T9(function(Z){H.value.checked=!(K==null||!K());C==null||C(Z);return!1}),h=_.T9(function(Z){w==null||w(Z);
return!1}),E=_.b(_.II(!1,void 0,"Ucg5gd")),N=E.next().value,D=E.next().value;
E=_.T9(function(){var Z;((Z=_.lh().resolve(_.$B(_.V5)))==null?0:Z.isKeyBoardInUse())&&D(!0)});
var g=_.T9(function(){D(!1)}),y={};
return _.x("radio-shape",{class:_.qT("yt-radio-shape",a)},_.x("input",{el:H,class:"yt-radio-shape__input",id:n,"prop:checked":K,name:z,type:"radio",disabled:e,"on:change":L,"on:click":h,"aria-label":m,"on:focusin":E,"on:focusout":g}),_.x("label",{class:_.qT("yt-radio-shape__label-container",q,(y["yt-radio-shape--compact"]=T,y["yt-radio-shape__label-container--keyboard-focused"]=N,y)),for:n},_.x(_.l,{cond:function(){return!(J==null?0:J())},
then:function(){return _.x(hba,{checked:K,useCheckIcon:X,isLeading:!0,selectElementClass:Q,usePassthrough:I})}}),_.x(_.l,{cond:function(){return!!G},
then:function(){var Z={};return _.x("div",{class:_.qT("yt-radio-shape__label",(Z["yt-radio-shape--event-passthrough"]=I,Z)),"aria-hidden":function(){return(m==null?0:m())?"true":"false"}},G==null?void 0:G())}}),_.x(_.l,{cond:J,
then:function(){return _.x(hba,{checked:K,useCheckIcon:X,isLeading:!1,selectElementClass:Q,usePassthrough:I})}})))},"ee");
_.vX.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var hba=_.f(function(e){var z=e.useCheckIcon;var C=e.selectElementClass;e=e.usePassthrough;var w=function(){return(z==null?0:z())?"CHECK":_.M("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"},K={};
return _.x("div",{class:_.qT("yt-radio-shape__radio",C,(K["yt-radio-shape__radio--check-icon"]=z,K["yt-radio-shape__radio--radio-default-style"]=function(){return!(C==null?0:C())},K["yt-radio-shape--event-passthrough"]=e,K)),
"aria-hidden":"true"},_.x(_.mB,{icon:w}),_.x(_.mB,{icon:w,active:function(){return!(z==null?0:z())}}))},"fe");_.Ij=_.f(function(e){var z=e.data;var C=e.isMenuItem;var w=e.isCompact;var K=e.onTap;var G=e.trailingAccessory;var X=e.hideSelectionTextChevron;var J=e.disabled;var q=e.inPopup;var T=e.disableHorizontalPadding;var Q=e.isOverlay;var m=e.isToggled;var a=e.ariaLabel;var n=e.ariaPressed;var H=e.shouldNotFillIcon;var I=!_.M("web_enable_killswitch_for_selectable_list_item_on_tap_fix");e=!_.M("web_enable_killswitch_for_skip_child_tags");var L=_.rG(function(qY){return sE1(z(),qY)}),h=function(){return(T==
null?void 0:T())||z().disableHorizontalPadding},E=function(){return _.M("enable_web_shorts_captions_language_command")||_.M("web_shorts_audio_track_picker")||z().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},N=function(){return E()?Object.assign({},z(),L().data):z()},D=function(){return!!N().isDisabled||!(J==null||!J())},g=_.t94(function(){return N().rendererContext}),y=function(){return!(N().isSelected===void 0||!N().selectionStyle||N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
Z=function(){return(_.dE(N().rendererContext)||K)&&!y()},YN={},Jk=_.qT("yt-list-item-view-model__container",(YN["yt-list-item-view-model__container--tappable"]=function(){return _.dE(N().rendererContext)||y()},YN["yt-list-item-view-model__container--compact"]=w,YN["yt-list-item-view-model__container--in-popup"]=q,YN["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(h==null?void 0:h())&&y()},YN)),v1=function(){return N().leadingImage||N().leadingAccessory},lg=_.qT("yt-list-item-view-model__image-container",
function(){return v1()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
YN=_.BTo();var M5=_.b(_.II(!1,void 0,"D1Nwsd")),fo=M5.next().value,ug=M5.next().value,sE=function(){return _.x(PNS,{data:N,hideSelectionTextChevron:X,TrailingAccessory:G,isToggled:m,disabled:J,isSelectItem:y,isCompact:w,inPopup:q,disableHorizontalPadding:h,isTappableWithoutSelect:Z,useButtonOrAnchor:w6,onTap:K,shouldNotFillIcon:H})},w6=_.M("web_button_or_anchor_list_item");
M5={};return _.x("yt-list-item-view-model",{el:_.ej(_.Dh(function(){return D()?void 0:N().rendererContext},void 0,void 0,w6?["A".toString(),
"BUTTON".toString()]:[]),Bdo(function(qY){if(!D()){var y1;if(y1=I)y1=N().selectionStyle,y1=y1==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||y1==="LIST_ITEM_SELECTION_STYLE_RADIO"||y1==="LIST_ITEM_SELECTION_STYLE_DEFAULT";y1||K==null||K(qY)}},e?["A".toString(),
"BUTTON".toString()]:[]),CuE(function(){return Z==null?void 0:Z()},{focusin:function(){var qY;
((qY=_.lh().resolve(_.$B(_.V5)))==null?0:qY.isKeyBoardInUse())&&ug(!0)},
focusout:function(){ug(!1)}})),
class:_.qT("yt-list-item-view-model",(M5["yt-list-item-view-model--is-overlay"]=Q,M5["yt-list-item-view-model--keyboard-focused"]=fo,M5["yt-list-item-view-model--hidden"]=function(){return E()?L().isHidden:!1},M5)),
role:function(){return(C==null?0:C())?"menuitem":"listitem"},
tabindex:function(){var qY=Z();qY=w6?void 0:K||qY?0:void 0;return qY},
"on:keydown":YN,"aria-label":function(){var qY;return(a==null?void 0:a())||((qY=g())==null?void 0:qY.label)},
"aria-pressed":n},_.x(_.l,{cond:y,then:function(){return _.x(_.d1,null,_.x(_.fd,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.x(LVs,{labelRenderable:sE,
isCompact:w,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!v1()},
labelClass:Jk,selectElementClass:lg,disableHorizontalPadding:h,onClick:I?K:void 0,disabled:D})}),_.x(_.fd,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.x(_.vX,{labelRenderable:sE,
isCompact:w,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!v1()},
labelClass:Jk,selectElementClass:lg,onClick:I?K:void 0,disabled:D})}),_.x(_.fd,{when:function(){return N().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.x(_.vX,{labelRenderable:sE,
isCompact:w,checked:function(){return N().isSelected},
hasLeadingLabel:function(){return!!v1()},
labelClass:Jk,selectElementClass:lg,useCheckIcon:!0,onClick:I?K:void 0,disabled:D})}),_.x(_.S5,null,sE))},
else:sE}))},"ge");
_.Ij.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.WX=_.f(function(e){var z=_.b(_.P0({canHaveZeroSize:!1})),C=z.next().value;z=z.next().value;var w=function(){return K_N(C.width(),e.data().responsiveContainerConfiguration)||pbs(C.width(),e.data().linearLayoutContainerConfiguration)};
return _.x("yt-linear-layout-view-model",{el:_.ej(z),class:"ytLinearLayoutViewModelHost"},_.x("div",{class:_.qT("ytLinearLayoutViewModelContainer",function(){a:switch(e.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var K="ytLinearLayoutViewModelHorizontal";break a;default:K="ytLinearLayoutViewModelVertical"}return K},function(){var K=e.data().linearLayoutContainerConfiguration;
return K?[cv4(K.flexDirection),Av1(K.justifyContent),ZO8(K.alignItems)].join(" "):""}),
style:function(){var K;var G=((K=w())==null?void 0:K.containerStyles)||{};return _.QC(G)()}},_.x(_.PF,{data:function(){return e.data().items},
wrapper:function(K,G,X){return _.x("div",{style:function(){var J=X(),q;if((q=w())==null)J=void 0;else{var T=q.itemStyles,Q=J===0,m,a;var n=(a=(m=e.data().items)==null?void 0:m.length)!=null?a:0;J=T.call(q,Q,J===n-1)}return _.QC(J||{})()}},K())}},{lockupViewModel:function(K){return _.x(_.eI,{data:K.data,
containerLayoutConfig:function(){var G;return(G=w())==null?void 0:G.containerLayoutConfig}})},
basicContentViewModel:_.Ub,buttonViewModel:_.iz,linearLayoutViewModel:_.WX,thumbnailViewModel:_.NN,descriptionPreviewViewModel:_.zY,listItemViewModel:_.Ij,sectionHeaderViewModel:_.C5})))},"he");_.KU(_.WX,"yt-linear-layout-view-model",{props:{data:_.vh}});_.KU(_.w_,"chips-shelf-view-model",{props:{data:_.vh,callback:_.z9,selectionBehavior:_.vh,disableChipsScrollAnimation:_.vh,nextButtonStyle:_.vh}});_.KU(_.f(function(e){return _.x("yt-comment-filter-context-view-model",{class:_.qT("ytCommentFilterContextHost",e.className)},_.x(_.U2,{text:function(){return e.data().text}}))},"ie"),"yt-comment-filter-context-view-model",{props:{data:_.vh,
className:_.z9}});_.OeY=_.f(function(e){var z=e.data;var C=e.onTap;var w=e.onSwitch;var K=e.overrideDisabled;e=e.disableHorizontalPadding;var G=_.b(_.zx(function(){var a;return((a=iO8(Q()))==null?void 0:a.switchedOnByDefault)||!1})),X=G.next().value,J=G.next().value;
G=_.b(_.II(!1,void 0,"V0hCrd"));var q=G.next().value,T=G.next().value,Q=function(){var a;if(!(a=z().switchButton)){var n=z();a=K==null?void 0:K();n={switchOnCommand:n.switchOnCommand,switchOffCommand:n.switchOffCommand,switchedOnByDefault:n.switchedOnByDefault,isDisabled:n.isDisabled,a11yLabelSwitchedOn:n.a11yLabelSwitchedOn,a11yLabelSwitchedOff:n.a11yLabelSwitchedOff};a!==void 0&&(n.isDisabled=a);a={switchButtonViewModel:n}}return a},m=function(a){var n=iO8(Q());
!n||n.isDisabled||z().ignoreTapUntilCommandCompletes&&q()||(C==null||C(a),dog(n,X(),a,z().ignoreTapUntilCommandCompletes,T),J(!X()),w==null||w(X()))};
return _.x("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.x(_.Ij,{data:function(){return{title:z().title,subtitle:z().attributedSubtitle,leadingImage:z().leadingImage,leadingAccessory:z().leadingAccessory,isDisabled:z().isDisabled}},
onTap:m,isToggled:X,shouldNotFillIcon:!0,trailingAccessory:function(){return _.x(_.PF,{data:Q},{switchButtonViewModel:function(a){return _.x(vrc,{data:a.data,parentActive:X,onTap:m})}})},
disableHorizontalPadding:e}))},"je");var Er4=_.f(function(e){var z=_.b(_.zx(function(){var K,G;return!!((K=e.data())==null?0:(G=K.initialState)==null?0:G.isToggled)})),C=z.next().value,w=z.next().value;
return _.x("toggleable-list-item-view-model",{el:_.ej(_.Dh(function(){return e.data().rendererContext},{onTap:function(K,G){G();
w(!C())}})),
class:_.qT("toggleableListItemViewModelHost",e.className)},_.x(_.l,{cond:function(){if(C()){var K=e.data().toggledListItem;K=_.r(K,_.hm)}else K=e.data().defaultListItem,K=_.r(K,_.hm);return K},
then:function(K){return _.x(_.Ij,{data:K,isToggled:C,ariaLabel:function(){var G=C()?e.data().toggledListItem:e.data().defaultListItem,X;G=(X=_.r(G,_.hm))==null?void 0:X.rendererContext;var J;return(J=_.r(G,_.Re))==null?void 0:J.label},
ariaPressed:function(){return C()}})}}))},"ke");var FVS=_.kk("DOWNLOAD",{},"Download"),Vph=_.kk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),fxs=_.kk("RETRY",{},"Retry"),Sws=_.kk("PAUSE_DOWNLOADING",{},"Pause downloading"),ujo=_.kk("RESUME_DOWNLOAD",{},"Resume download"),ogN={text:FVS,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Ls={text:Vph,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},by1={text:fxs,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
GJ5={text:Sws,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},YN1={text:ujo,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var d9g=_.f(function(e){var z=function(){var J=e.data();J=_.u3(J.rendererContext);var q;return(q=_.r(J,_.HF))==null?void 0:q.videoId},C=_.rG(function(J){var q=z(),T=kJ5(e.data());
return q?_.dk(J,q):T?_.Dd(J,T):"TRANSFER_STATE_UNKNOWN"}),w=_.vF(_.Kj5,z),K=_.rG(function(J){return _.AYg(J,z(),kJ5(e.data()))}),G=function(){return J75(C(),w(),_.u3(e.data().rendererContext),!!kJ5(e.data()))},X=function(){return K()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.x("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:X},_.x(_.l,{cond:function(){return!X()},
then:function(){return _.x(_.l,{cond:G,then:function(J){return _.x(_.ui,{each:J},function(q){return _.x(_.Ij,{data:q,isCompact:e.isCompact,isMenuItem:e.isMenuItem,inPopup:e.inPopup,disableHorizontalPadding:e.disableHorizontalPadding})})}})}}))},"le");
d9g.idomCompat=!0;_.D9U=_.f(function(e){var z=e.data;var C=e.isCompact;var w=e.hideSelectionTextChevron;var K=e.inPopup;var G=e.isOverlay;var X=e.disableHorizontalPadding;var J=function(){return qN1(z())&&(K==null?void 0:K())},q=_.M("web_list_view_model_listbox_killswitch")?"menu":"listbox";
e=_.T9(function(Q){if(K!=null&&K()&&_.M("web_enable_arrow_key_navigation_in_dropdown")){var m=_.YE1(Q.currentTarget),a=m.length;if(a!==0){var n=Array.prototype.indexOf.call(m,document.activeElement);switch(Q.key){case "ArrowDown":Q.preventDefault();var H;(H=m[(n+1)%a])==null||H.focus();break;case "ArrowUp":Q.preventDefault();var I;(I=m[n===-1?a-1:(n-1+a)%a])==null||I.focus()}}}});
var T={};return _.x("yt-list-view-model",{class:_.qT("ytListViewModelHost",(T.ytListViewModelHostKaiosSpatNav=b1g&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",T)),role:function(){return J()?q:"list"},
style:_.QC({"max-height":function(){var Q,m=(Q=z())==null?void 0:Q.visibleElementCount;if(m)return(m+.5)*40+"px"}}),
"on:keydown":e},_.x(_.PF,{data:function(){return z().listItems}},{listItemViewModel:function(Q){return _.x(_.Ij,{data:Q.data,
isMenuItem:J,isCompact:C,hideSelectionTextChevron:w,inPopup:K,isOverlay:G,disableHorizontalPadding:X})},
toggleableListItemViewModel:function(Q){return _.x(Er4,{data:Q.data})},
downloadListItemViewModel:function(Q){return _.x(d9g,{data:Q.data,isMenuItem:J,isCompact:C,inPopup:K,disableHorizontalPadding:X})},
switchListItemViewModel:function(Q){return _.x(_.OeY,{data:Q.data,disableHorizontalPadding:X})}}))},"me");
_.D9U.idomCompat=!0;var ieY=_.f(function(e){var z=e.data;var C=e.isOverlay;e={};return _.x("yt-course-perks-view-model",{class:_.qT("ytwCoursePerksViewModelHost",(e.ytwCoursePerksViewModelHostOverlay=C,e))},_.x("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x("div",null,_.x(_.l,{cond:function(){return z().perks},
then:function(w){return _.x(_.D9U,{data:function(){return{listItems:w()}},
isCompact:!0,isOverlay:C})}})))},"ne");_.KU(ieY,"yt-course-perks-view-model",{props:{data:_.z9,isOverlay:_.z9}});_.KU(_.f(function(e){var z=e.data;return _.x("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.x("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.x(_.U2,{text:function(){return z().progressSummary}})),_.x("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.x("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.QC({width:function(){return z().progressPercentage*100+"%"}})})))},"oe"),"yt-course-progress-view-model",{props:{data:_.vh}});var NvT=_.f(function(e){var z={};return _.x("yt-progress-view-model",{class:_.qT("ytwProgressViewModelHost",(z.ytwProgressViewModelHostOverlay=_.pP(e.isOverlay,!1),z))},_.x(_.l,{cond:function(){return e.data().progressSummary},
then:function(C){return _.x("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.x(_.U2,{text:C}))}}),_.x("div",{class:"ytwProgressViewModelHostProgressContainer"},_.x(_.l,{cond:function(){return e.data().leadingLabel},
then:function(C){return _.x("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.x(_.U2,{text:C}))}}),_.x("div",{class:"ytwProgressViewModelHostProgressBar"},_.x("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(e.data().progressPercentage||0)*100+"%"}}))))},"pe");var PX=_.f(function(e){var z=e.starNumber;var C=e.data;var w=function(){var K;return((K=C())==null?void 0:K.rating)||0};
return _.x(_.l,{cond:function(){return z()},
then:function(K){return _.x(_.d1,null,_.x(_.fd,{when:function(){return w()>=K()-.25}},function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.mB,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.x(_.fd,{when:function(){return w()>=K()-.75}},function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.mB,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.x(_.S5,null,function(){return _.x("div",{class:"ytStarRatingViewModelHostStar"},_.x(_.mB,{icon:"STAR",
size:function(){return 24}}))}))}})},"qe"),s16=_.f(function(e){e=e.data;
return _.x("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.x(PX,{starNumber:1,data:e}),_.x(PX,{starNumber:2,data:e}),_.x(PX,{starNumber:3,data:e}),_.x(PX,{starNumber:4,data:e}),_.x(PX,{starNumber:5,data:e}))},"re");_.KU(_.f(function(e){var z=_.eQ(e,{}).data;return _.x("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.x("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.x(_.U2,{text:function(){var C;return(C=z())==null?void 0:C.title}})),_.x("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.x(_.l,{cond:function(){return z().starProgressViewModels},
then:function(C){return _.x("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.x(_.PF,{data:C},{progressViewModel:NvT}))}}),_.x("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.x("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.x(_.U2,{text:function(){var C;
return(C=z())==null?void 0:C.averageRatingLabel}})),_.x(_.l,{cond:function(){return z().zeroStateText},
then:function(C){return _.x("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.x(_.U2,{text:C}))}}),_.x(_.l,{cond:function(){return z().starRatingViewModel},
then:function(C){return _.x("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.x(_.PF,{data:C},{starRatingViewModel:s16}))}}),_.x("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.x(_.U2,{text:function(){var C;
return(C=z())==null?void 0:C.totalRatingsCountLabel}})))))},"se"),"yt-course-ratings-view-model",{props:{data:_.z9}});var Bvg;Bvg={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.tpX=_.f(function(e){var z=_.kI("yt-learning-journey-loader-view-model"),C=_.MK();_.Nm(function(){requestAnimationFrame(function(){var K;(K=C.lottieEl)==null||K.addEventListener("DOMLoaded",function(){var G;(G=e.onLottieLoaded)==null||G.call(e)})});
var w=e.data().browseEndpoint;w&&_.NF(w)});
return _.x("yt-learning-journey-loader-view-model",{class:_.qT("learningJourneyLoaderViewModelHost",e.className),"data-target-id":function(){return e.data().targetId||""},
el:z},_.x(_.AY,{className:_.qT("learningJourneyLoaderViewModelLoader",e.className),animationName:function(){return Bvg.animationConfig.name},
data:Bvg,animationRef:C}))},"ue");_.KU(_.tpX,"yt-learning-journey-loader-view-model",{props:{data:_.vh,className:_.z9,onLottieLoaded:_.z9}});var grh=_.f(function(e){var z=function(){return e.data()},C=function(){return!!_.EA(_.hS(z())).optionColor},w=_.b(_.II(-1,void 0,"gXOYR")),K=w.next().value,G=w.next().value,X=function(m){return K()===m},J=function(m){return z().correctAnswerIndex===m},q=function(){return K()!==-1};
w=_.b(_.II("",void 0,"BFwDQb"));var T=w.next().value,Q=w.next().value;return _.x("learning-journey-quiz-view-model",{class:_.qT("learningQuizComponentHost","learningJourneyQuizYoututorHost",e.className),style:_.QC({background:function(){return _.EA(_.hS(z())).backgroundColor}})},_.x("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},T),_.x("div",{class:"learningQuizComponentQuizContainer"},_.x("div",{class:"learningQuizComponentQuiz"},_.x("div",{class:"learningQuizComponentQuizContent"},_.x(_.l,{cond:function(){return!!z().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.x(_.U2,{text:function(){return z().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningQuizComponentQuizHeader",
style:_.QC({"align-items":function(){return z().overflowMenu?"start":"center"}})},_.x("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.QC({"min-height":function(){return z().overflowMenu?"48px":"26px"}})},_.x("div",{class:"learningJourneyQuizYoututorText",
style:_.QC({color:function(){return _.EA(_.hS(z())).primaryTextColor}})},_.x(_.U2,{text:function(){return z().questionHeaderText}})))),_.x("div",{class:"learningQuizComponentQuizSubheader",
style:_.QC({color:function(){return _.EA(_.hS(z())).secondaryTextColor}})},_.x(_.U2,{text:function(){var m=z();
return q()?m.explanationText:m.questionSubheaderText}}))),_.x("div",{role:"group",
class:_.qT("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.x(_.ui,{each:function(){return z().optionsData||[]}},function(m,a){var n={};
return _.x("button",{class:_.qT("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(n.learningQuizComponentQuizHover=function(){return!q()},n.learningQuizComponentQuizOptionWithCustomColor=C,n.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return q()&&J(a())},n.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return K()!==z().correctAnswerIndex&&X(a())},n.learningQuizComponentQuizIncorrectShake=
function(){return K()!==z().correctAnswerIndex&&X(a())},n)),
"on:click":_.T9(function(){_.Bj(_.nm(),{data:m});if(q())return!1;G(a());var H,I;Q(J(a())?((H=z().successTitle)==null?void 0:H.content)||"":((I=z().failureTitle)==null?void 0:I.content)||"");return!1}),
style:_.QC({background:"transparent"}),"aria-description":function(){var H,I;return q()?J(a())?(H=z().successTitle)==null?void 0:H.content:(I=z().failureTitle)==null?void 0:I.content:""},
"aria-disabled":q},_.x("div",{class:"learningQuizComponentQuizOptionContainer"},_.x(_.U2,{text:m.optionText}),_.x(_.l,{cond:function(){var H=a();return q()&&(X(H)||J(H))},
then:function(){var H={};return _.x(_.mB,{className:_.qT("learningJourneyQuizYoututorOptionIcon",(H.learningQuizComponentQuizPulse=function(){return K()===z().correctAnswerIndex&&J(a())},H)),
size:24,icon:function(){return J(a())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.x(_.l,{cond:q,
then:function(){return _.x("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.x("div",{class:"learningJourneyQuizYoututorExplanationText"},_.x(_.U2,{text:function(){return z().explanationHeaderText}})),_.x(_.U2,{text:function(){return z().optionsData[K()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ve");
grh.idomCompat=!0;var TYk=new Set,xzL=null;var j14;_.yso=_.f(function(e){var z=null,C=null,w=null,K=function(){return e.data()},G=function(){return _.EA(_.hS(K()))},X=function(){return!!G().optionColor},J=_.b(_.II(-1,void 0,"H2gnQb")),q=J.next().value,T=J.next().value,Q=function(D){return q()===D},m=function(D){return K().correctAnswerIndex===D},a=function(){return q()!==-1},n=function(){return q()===K().correctAnswerIndex},H=function(){var D=K(),g=a(),y=n();
return g?y?D.successTitle:D.failureTitle:D.questionHeaderText},I=function(){var D=a(),g=n();
return D?g?264685:264684:264683},L=function(){var D=K();
return a()?D.explanationText:D.questionSubheaderText},h=function(){return!!K().video},E=function(D){return n()&&m(D)},N=_.T9(function(){T(-1);
return!1});
return _.x(_.l,{cond:function(){return K().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.x(grh,{data:function(){return K()}})},
else:function(){return _.x("learning-journey-quiz-view-model",{class:_.qT("learningQuizComponentHost",e.className),style:_.QC({background:function(){return G().backgroundColor}})},_.x(_.l,{cond:h,
then:function(){return _.x("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.QC({background:function(){return G().videoBackgroundColor}})},_.x(_.PF,{data:function(){return K().video}},{lockupViewModel:function(D){return _.x(_.eI,{data:D.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.x("div",{class:"learningQuizComponentQuizContainer"},_.x("div",{class:"learningQuizComponentQuiz"},_.x("div",{class:"learningQuizComponentQuizContent"},_.x(_.l,{cond:function(){return!!K().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.x(_.U2,{text:function(){return K().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningQuizComponentQuizHeader",
style:_.QC({"align-items":function(){return K().overflowMenu?"start":"center"}})},_.x("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.QC({"min-height":function(){return K().overflowMenu?"48px":"26px"}})},_.x("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.ej(function(D){_.FZ(I(),D,z,function(g){z=g})}),
style:_.QC({color:function(){return G().primaryTextColor}}),
"client-ve-type":I},_.x(_.U2,{text:H}))),_.x("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.x(_.l,{cond:a,then:function(){return _.x("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.ej(function(D){_.FZ(264687,D,C,function(g){C=g})}),
"on:click":N,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.x("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.QC({fill:function(){return G().primaryTextColor}})},_.x("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"})))}}),
_.x(_.PF,{data:function(){return K().overflowMenu}},{buttonViewModel:function(D){return _.x(_.iz,{data:D.data})}}))),_.x("div",{class:"learningQuizComponentQuizSubheader",
el:_.ej(function(D){_.FZ(264688,D,w,function(g){w=g})}),
style:_.QC({color:function(){return G().secondaryTextColor}}),
"client-ve-type":264688},_.x(_.U2,{text:L}))),_.x("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.x(_.ui,{each:function(){return K().optionsData||[]}},function(D,g){var y={};
return _.x("button",{class:_.qT("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(y.learningQuizComponentQuizHover=function(){return!a()},y.learningQuizComponentQuizOptionWithCustomColor=X,y.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return E(g())},y.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!n()&&Q(g())},y.learningQuizComponentQuizIncorrectShake=function(){return!n()&&
Q(g())},y.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return a()&&!Q(g())},y)),
"on:click":_.T9(function(){_.Bj(_.nm(),{data:D});if(a())return!1;T(g());return!1}),
style:_.QC({background:function(){var Z=g();return a()&&Q(Z)?"":X()?G().optionColor:"transparent"}}),
"aria-disabled":a},_.x("div",{class:"learningQuizComponentQuizOptionContainer"},_.x(_.l,{cond:a,then:function(){return _.x(j14,{isOptionCorrect:m,optionIndex:g,isOptionSelectedAndCorrect:E,colors:G})}}),_.x(_.U2,{text:D.optionText})))})))))}})},"we");
j14=_.f(function(e){var z={};return _.x("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var C=e.optionIndex();return e.isOptionCorrect(C)?"0 0 24 24":"0 -960 960 960"},
class:_.qT("learningJourneyQuizViewModelQuizOptionIconLeading",(z.learningQuizComponentQuizPulse=function(){return e.isOptionSelectedAndCorrect(e.optionIndex())},z)),
style:_.QC({fill:function(){return e.colors().primaryTextColor}})},_.x("path",{d:function(){var C=e.optionIndex();
return e.isOptionCorrect(C)?"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"}}))},"xe");
_.yso.idomCompat=!0;_.KU(_.yso,"learning-journey-quiz-view-model",{props:{data:_.vh,className:_.vh}});var cs6=_.f(function(e){var z=_.b((0,_.XsY)(function(){var X;return{targetId:(X=e.data().config)==null?void 0:X.suspenseKey,contents:[e.data()]}})).next().value,C=_.lh().resolve(_.ms),w=function(){var X=z().contents.length>0?z().contents[0]:void 0;
return X==null?void 0:X.config},K=function(){var X;
return(X=w())==null?void 0:X.entityTriggerConfig},G=_.vF(qIE,function(){var X,J;
return(J=(X=K())==null?void 0:X.entityKey)!=null?J:""});
_.sH(function(){var X,J,q,T=(q=Number((X=K())==null?void 0:(J=X.invalidationTimestamp)==null?void 0:J.seconds))!=null?q:0,Q,m,a;if(((a=Number((Q=G())==null?void 0:(m=Q.lastUpdated)==null?void 0:m.seconds))!=null?a:0)>T){var n;(X=(n=w())==null?void 0:n.continuationCommand)&&C.resolveCommand(X)}},"tC8nKe");
return _.x("yt-suspense-view-model",{class:_.qT("ytSuspenseViewModelHost")},_.x(_.PF,{data:function(){var X;return(X=w())==null?void 0:X.contents}},{lockupViewModel:_.eI}))},"ze");var AsS=_.f(function(e){var z=_.eQ(e,{palette:void 0,isLastItem:!1}),C=z.palette,w=z.isLastItem,K=function(){return e.data().isHighlighted},G=function(){var q;
return lmh((q=C())==null?void 0:q.iconDisabledColor)},X=function(){var q;
return lmh((q=C())==null?void 0:q.primaryTitleColor)},J=function(){var q;
return lmh((q=C())==null?void 0:q.secondaryTitleColor)};
z={};return _.x("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.ej(_.Dh(function(){return e.data().rendererContext}))},_.x(_.PF,{data:function(){return e.data().thumbnail}},{thumbnailViewModel:_.NN}),_.x("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.x("div",{class:_.qT("ytMacroMarkerListItemViewModelTimeDescription",(z.ytMacroMarkerListItemViewModelHighlighted=K,z)),
style:_.QC({"background-color":function(){return K()?X():G()},
color:function(){return K()?"":J()}})},_.x(_.U2,{text:function(){return e.data().timestamp}})),_.x("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.QC({"background-color":function(){return w()?"transparent":G()}})}),_.x("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(K()?X():J())}},_.x(_.U2,{text:function(){return e.data().title}}))))},"Ae");_.Rj=_.f(function(e){function z(N5){E("transform:translateX("+(_.j5("HTML_DIR")==="rtl"?"":"-")+N5+"px)")}
function C(N5){return Math.min(Math.max(N5,0),h()-Z())}
function w(){var N5=g()+lg();return K()?(Math.round(Z()/N5)||1)*N5:0}
var K=function(){return e.data().items||[]},G=function(){return e.data().previousButton},X=function(){return e.data().nextButton},J=function(){var N5,$L;
return($L=(N5=e.disableArrows)==null?void 0:N5.call(e))!=null?$L:!1},q=function(){var N5;
return!((N5=e.forceNarrowLayout)==null||!N5.call(e))},T=_.hG(function(){var N5;
return!((N5=e.centerAlignItems)==null||!N5.call(e))&&h()<=Z()},void 0,"Uto0kc"),Q=_.kI("horizontal-shelf-view-model"),m=_.kI("div"),a=_.b(_.II(0,void 0,"G0xZB")),n=a.next().value,H=a.next().value;
a=_.b(_.II(0,void 0,"kqCYFf"));var I=a.next().value,L=a.next().value,h=I;I=_.b(_.II("",void 0,"Hh6Uye"));a=I.next().value;var E=I.next().value;I=_.b(_.II(0,void 0,"yMGBKb"));var N=I.next().value,D=I.next().value,g=N;I=_.b(_.II(0,void 0,"VChthd"));N=I.next().value;var y=I.next().value,Z=N;I=_.b(_.II(!1,void 0,"qJlhhe"));var YN=I.next().value,Jk=I.next().value;I=_.b(_.II(0,void 0,"x7H94"));N=I.next().value;var v1=I.next().value,lg=N;I=_.b(_.II(0,void 0,"ksuUee"));var M5=I.next().value,fo=I.next().value;
I=_.b(_.II("50%",void 0,"uxCxde"));var ug=I.next().value,sE=I.next().value,w6=function(){var N5,$L=(N5=e.data())==null?void 0:N5.responsiveContainerConfiguration,Ba,r6;return $L?j3($L==null?void 0:$L.responsiveSize):(r6=(Ba=e.sizing)==null?void 0:Ba.call(e))!=null?r6:"STANDARD"},qY=function(){var N5,$L=(N5=e.data())==null?void 0:N5.responsiveContainerConfiguration;
return $L?$L.enableContentSpecificAspectRatio===!1:!1};
I=_.hG(function(){return!J()&&n()>0},void 0,"hCgtqd");
N=_.hG(function(){return!J()&&n()<h()-Z()},void 0,"bluuC");
var y1=function(){H(C(n()-w()));z(n())},Qa=function(){H(C(n()+w()));
z(n())},Ha=function(){Q.value!==null&&ab()},OU;
_.sg(function(){ab();window.ResizeObserver?(OU=new ResizeObserver(_.dJ(Ha,0)),OU.observe(Q.value)):window.addEventListener("resize",Ha)});
_.BC(function(){if(window.ResizeObserver){var N5;(N5=OU)==null||N5.disconnect()}else window.removeEventListener("resize",Ha)});
var ab=function(){var N5=Q.value.clientWidth,$L=e.includeMargin!==void 0?e.includeMargin():!1,Ba;var r6=e.hasPeek!==void 0?e.hasPeek():!((Ba=e.data())==null||!Ba.hasPeek);N5=_.gE({containerWidth:N5,hasPeek:r6,sizing:w6(),marginSettings:$L?q()?4:1:0});v1(N5.gutter);fo(N5.margin);D(N5.itemWidth);Jk(N5.maxContainerWidth<528||q());y(N5.maxContainerWidth);K()&&L((N5.itemWidth+N5.gutter)*K().length-N5.gutter);if(K()){var eE;if(((eE=e.thumbnailAspectRatio)==null?void 0:eE.call(e))!==void 0){var q1;sE(g()/
NgE((q1=e.thumbnailAspectRatio)==null?void 0:q1.call(e))/2+"px")}else sE("50%")}},Pa={},$N={};
return _.x("horizontal-shelf-view-model",{class:_.qT("ytwHorizontalShelfViewModelHost",e.className),el:Q},_.x(_.l,{cond:function(){var N5;return e.data().header&&!((N5=e.horizontalShelfExperiments)==null?0:N5.call(e).hideHeader)},
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.QC({width:function(){return Z()+"px"},
padding:function(){return"0 "+M5()+"px"}})},_.x(_.PF,{data:function(){return e.data().header}},{sectionHeaderViewModel:function(N5){return _.x(_.C5,{data:N5.data,
disableHorizontalPadding:!0,forceSmallLayout:YN,useResponsiveLayout:!0})}}))}}),_.x("div",{class:_.qT("ytwHorizontalShelfViewModelOuterContainer",(Pa.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return T()},Pa)),
style:_.QC({"margin-top":function(){var N5,$L=e.data().header&&!((N5=e.horizontalShelfExperiments)==null?0:N5.call(e).hideHeader),Ba;return(((Ba=e.ensureMarginTop)==null?0:Ba.call(e))&&!$L?12:0)+"px"}})},_.x("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.QC({width:function(){return Z()+"px"},
padding:function(){return"0 "+M5()+"px"},
overflow:function(){return J()?"auto":"hidden"}})},_.x("div",{class:_.qT("ytwHorizontalShelfViewModelItems",($N.ytwHorizontalShelfViewModelCenterAlignItems=function(){return T()},$N)),
el:m,style:a},_.x(_.PF,{data:K},{macroMarkerListItemViewModel:function(N5,$L){return _.x("div",{style:_.QC({width:function(){return g()+"px"},
"margin-right":function(){return($L()===K().length-1?0:lg())+"px"}})},_.x(AsS,{data:N5.data,
palette:_.pP(e.palette),isLastItem:function(){return $L()===K().length-1}}))},
lockupViewModel:function(N5,$L){var Ba=N5.data;return _.x("div",{style:_.QC({width:function(){return g()+"px"},
"margin-right":function(){return($L()===K().length-1?0:lg())+"px"}})},_.x(_.eI,{data:Ba,
containerType:4,sizing:w6,protectBackground:e.protectBackground,thumbnailFixedWidth:function(){return Qd7(Ba())+"px"},
thumbnailTargetWidth:function(){return Qd7(Ba())},
force16By9ThumbnailAspectRatio:qY}))},
suspenseViewModel:function(N5,$L){return _.x("div",{style:_.QC({width:function(){return g()+"px"},
"margin-right":function(){return($L()===K().length-1?0:lg())+"px"}})},_.x(cs6,{data:N5.data}))}}))),_.x(_.l,{cond:I,
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.QC({top:function(){return ug()}})},_.x(_.PF,{data:G},{buttonViewModel:function(N5){return _.x(_.iz,{data:N5.data,
onClick:y1})}}))}}),_.x(_.l,{cond:N,
then:function(){return _.x("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.QC({top:function(){return ug()}})},_.x(_.PF,{data:X},{buttonViewModel:function(N5){return _.x(_.iz,{data:N5.data,
onClick:Qa})}}))}})))},"Be");
_.Rj.idomCompat=!0;var ZeU=_.f(function(e){var z=function(){return e.data().targetId||""},C=function(){var I;
return((I=e.data())==null?void 0:I.expansionEntityKey)||""},w=_.vF(_.kG4,C),K=!0,G=function(){var I;
return((I=w())==null?void 0:I.value)===z()},X=function(I){_.ZL(_.Rx("stringEntity",C(),{key:C(),
value:I?z():""}))};
_.Nm(function(){K=!1;e.data().isExpanded&&X(!0)});
var J=function(){if(G()){var I=!0;e.onCollapse!==void 0&&(I=e.onCollapse());I&&X(!1)}else X(!0)},q=_.T9(J),T=function(){var I;
return(((I=e.accordionStyle)==null?void 0:I.call(e))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},Q=_.kI("div"),m=function(){var I,L;
return(L=(I=_.r(e.data().rendererContext,_.Re))==null?void 0:I.label)!=null?L:""},a=function(){var I,L;
return{disabled:(I=e.hideIfNotExpanded)==null?void 0:I.call(e),ariaHidden:(L=e.hideIfNotExpanded)==null?void 0:L.call(e)}},n={},H={};
return _.x("yt-accordion-item-view-model",{class:_.qT("ytAccordionItemViewModelHost",e.className,(n.ytAccordionItemViewModelExpanded=function(){return G()},n.ytAccordionItemViewModelHidden=function(){var I;
return(I=e.hideIfNotExpanded)==null?void 0:I.call(e)},n.ytAccordionItemViewModelMini=T,n)),
"data-target-id":z},_.x("div",{class:"ytAccordionItemViewModelContainer"},_.x("div",{class:"ytAccordionItemViewModelLeftSection","on:click":q,title:m,"aria-hidden":function(){var I;return(I=e.hideIfNotExpanded)==null?void 0:I.call(e)}},_.x(_.U2,{text:function(){return e.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:m})),_.x("div",{class:"ytAccordionItemViewModelRightSection"},_.x(_.PF,{data:function(){return G()?e.data().expandButton:e.data().collapseButton}},{buttonViewModel:function(I){return _.x(_.iz,{data:I.data,
className:"ytAccordionItemViewModelToggleButton",onClick:J,buttonOverrides:a})}}))),_.x("div",{class:"ytAccordionItemViewModelContainer"},_.x("div",{class:_.qT("ytAccordionItemViewModelContent",(H.ytAccordionItemViewModelExpandedSubtitle=function(){return G()},H)),
el:Q,style:_.QC({"max-height":function(){return K?"auto":G()?Q.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!G()}},_.x(_.l,{cond:function(){return!T()},
then:function(){return _.x(_.U2,{text:function(){return e.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.x(_.PF,{data:function(){return e.data().content}},{horizontalShelfViewModel:function(I){return _.x(_.Rj,{data:I.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"De");_.pwh=_.f(function(e){var z=_.b((0,_.XsY)(e.data)).next().value,C=function(){return e.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},w=function(){return C()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},K=_.b(_.II(!0,void 0,"VFpYAb")),G=K.next().value,X=K.next().value,J=function(){return w()&&G()},q=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){X(!G())}}},T=_.T9(function(){z().onTitleTap&&_.NF(z().onTitleTap||{})});
K={};return _.x("yt-accordion-view-model",{class:_.qT("ytAccordionViewModelHost",(K.ytAccordionViewModelMinimized=function(){return J()},K)),
"data-target-id":function(){return e.data().targetId||""}},_.x(_.l,{cond:function(){return w()||!!z().title},
then:function(){return _.x("div",{class:"ytAccordionViewModelHeader"},_.x("div",{class:"ytAccordionViewModelTitleSection"},_.x("div",{class:"ytAccordionViewModelTitleWrapper"},_.x(_.l,{cond:function(){return!!e.data().headerIcon},
then:function(){return _.x(_.mB,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var Q;return(Q=e.data().headerIcon)==null?void 0:Q.iconType}})}}),_.x("div",{class:"ytAccordionViewModelTitle",
"on:click":T},_.x(_.U2,{className:"ytAccordionViewModelTitleText",text:function(){return z().title}})))),_.x("div",{class:"ytAccordionViewModelButtonSection"},_.x(_.l,{cond:w,
then:function(){return _.x(_.DS,{data:q,iconName:function(){return J()?"chevron_down":"chevron_collapse"}})}})))}}),_.x("div",{class:"ytAccordionViewModelContent"},_.x(_.PF,{data:function(){return z().contents}},{accordionItemViewModel:function(Q){return _.x(ZeU,{data:Q.data,
className:"ytAccordionViewModelRow",accordionStyle:C,hideIfNotExpanded:J,onCollapse:function(){return w()?(X(!0),!1):!0}})}})),_.x("div",null,_.x(_.l,{cond:function(){return!w()&&(!!z().disclaimerFooter||!!z().footer)},
then:function(){return _.x("div",{class:"ytAccordionViewModelFooter"},_.x(_.U2,{text:function(){return z().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.x(_.PF,{data:function(){return e.data().footer}},{flexibleActionsViewModel:function(Q){return _.x(_.ml,{data:Q.data,
layout:0})}}))}})))},"Ee");_.KU(_.pwh,"yt-accordion-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=null,C=null,w,K=(w=_.lh().resolve(_.$B(_.jQ)))==null?void 0:w(),G=_.b(_.II(!1,void 0,"CmEVtc"));w=G.next().value;var X=G.next().value;G=_.b(_.II(!0,void 0,"yo9dR"));var J=G.next().value,q=G.next().value,T=_.kI("textarea",function(L){_.FZ(264503,L,z,function(h){z=h})}),Q=function(L){X(!0);
L={learningJourneyFormData:{query:L}};_.NF(e.data().searchEndpoint||{},{form:{formData:L}});return!1},m=_.T9(function(L){L.target.closest("button-view-model")&&X(!0)});
G=_.T9(function(){q(T.value.value.length===0)});
var a=_.T9(function(L){if(L.key==="Enter"&&!L.shiftKey&&!J()){var h=L.target;L.preventDefault();Q(h.value)}}),n={},H={},I={};
return _.x("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.x("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.x(_.Zf,{data:function(){return e.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.x("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.x("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.x("div",{class:_.qT("ytLearningJourneyZeroStateSearchBar",(n.ytLearningJourneyZeroStateSearchBarDark=K,n))},_.x("textarea",{class:_.qT("ytLearningJourneyZeroStateTextInput",(H.ytLearningJourneyZeroStateTextInputDark=K,H)),el:T,"on:keyup":G,"on:keydown":a,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.x("div",{class:_.qT("ytLearningJourneyZeroStateSearchButtonContainer",(I.ytLearningJourneyZeroStateSearchButtonContainerDark=K,I))},_.x(_.iz,{data:function(){return _.r(e.data().searchButton,_.H7)},
className:"search-button",onClick:function(){return Q(T.value.value)},
buttonOverrides:function(){return{disabled:J(),style:K?"mono-inverse":"mono",size:"XL"}}}))),_.x(_.l,{cond:function(){return!!e.data().errorBanner},
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.ej(function(L){_.FZ(264617,L,C,function(h){C=h})})},_.x(_.PF,{data:function(){return e.data().errorBanner}},{alertBannerViewModel:function(L){return _.x(_.Mph,{data:L.data,
"client-ve-type":264617})}}))}})),_.x(_.l,{cond:w,
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.x(_.PF,{data:function(){return e.data().loader}},{learningJourneyLoaderViewModel:function(L){return _.x(_.tpX,{data:L.data})}}))},
else:function(){return _.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.x(_.l,{cond:function(){return!!e.data().learningJourneyShelf},
then:function(){return _.x("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.x("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return e.data().learningJourneySectionTitle}),_.x(_.PF,{data:function(){return e.data().learningJourneyShelf}},{horizontalShelfViewModel:function(L){return _.x(_.Rj,{data:L.data,
centerAlignItems:!0})}}))}}),_.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.x("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return e.data().suggestedJourneySectionTitle}),_.x("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":m},_.x(_.PF,{data:function(){return e.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(L){return _.x(_.ml,{data:L.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Fe"),"yt-learning-journey-zero-state",{props:{data:_.vh}});var eso=_.f(function(e){var z=e.data;return _.x("ytvl-live-leaderboard-item-action-content-view-model",{class:_.qT("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.x(_.U2,{text:function(){var C;return(C=z())==null?void 0:C.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.x(_.PF,{data:function(){return z().actionButton}},{buttonViewModel:function(C){return _.x(_.iz,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:C.data})}}))},"Ge");var zs3=_.f(function(e){var z=e.data;return _.x("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.qT("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.x(_.U2,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var C;return(C=z())==null?void 0:C.displayName},
ellipsisTruncate:!0}),_.x(_.PF,{data:function(){return z().badge}},{buttonViewModel:function(C){return _.x(_.iz,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:C.data})}}))},"He");_.KU(_.f(function(e){var z=e.data;return _.x("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.x("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.x(_.U2,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var C;return(C=z())==null?void 0:C.rank}})),_.x("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO})),_.x("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.x(_.PF,{data:function(){return z().content}},{liveLeaderboardItemChannelContentViewModel:zs3,
liveLeaderboardItemActionContentViewModel:eso})),_.x(_.U2,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var C;return(C=z())==null?void 0:C.points}}))},"Ie"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;return _.x("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.x(_.U2,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var C,w;return(C=z())==null?void 0:(w=C.ranking)==null?void 0:w.rank}}),_.x("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO})),_.x(_.U2,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var C,w;return(C=z())==null?void 0:(w=C.channelContent)==null?void 0:w.channelName}}),_.x(_.U2,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var C;return(C=z())==null?void 0:C.points}}))},"Je"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.vh}});var Cgv=_.f(function(e){e=_.eQ(e,{wrapper:!1}).wrapper;return _.x(_.l,{cond:e,then:function(){return _.x("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.x("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.x("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Ke");
Cgv.idomCompat=!0;var w15=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],K7a=_.f(function(e){var z=e.data;var C=_.ej(),w=_.hG(function(){return z().command},void 0,"fyYsT");
_.sH(function(){w()&&_.uA(w(),{form:{element:C.value}})},"B0nxdb");
return _.x("div",{el:C,class:"YtQrCodeRendererHostContainer"},_.x(_.l,{cond:function(){return z().qrCodeImage},
then:function(K){return _.x(_.Zf,{data:K,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.x(_.l,{cond:function(){return z().spinner},
then:function(){return _.x(Cgv,null)}})}}),_.x(_.l,{cond:function(){return z().label},
then:function(K){return _.x(_.U2,{text:K,className:"YtQrCodeRendererHostLabel"})}}),_.x(_.l,{cond:function(){return z().labels},
then:function(K){return _.x("div",{class:"YtQrCodeRendererHostLabels"},_.x(_.ui,{each:K},function(G){return _.x(_.U2,{text:G})}))}}))},"Ne");_.KU(_.f(function(e){var z=e.data;var C=_.hG(function(){return z().qrEntityKey},void 0,"LmZ2xf"),w=_.hG(function(){return z().deleteEntityOnDismiss},void 0,"my0Tzb"),K=_.hG(function(){return z().command},void 0,"hzECIb"),G=_.vF(vM7,C);
e=_.hG(function(){return z().qrCodeImage},void 0,"AnD9rc");
var X=_.hG(function(){return z().style&&w15.includes(z().style)},void 0,"f5fZv"),J=_.aO({visibilityCallback:function(q){q&&K()&&_.uA(K())},
showOption:{calledOnce:!0,state:"visible"}});_.sg(function(){_.BC(function(){w()&&C()&&_.AK().dispatch(_.Rx("qrCodeEntity",C()))})});
return _.x("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.ej(J)},_.x(_.l,{cond:X,then:function(){return _.x(_.l,{cond:G,then:function(q){return _.x(K7a,{data:q})}})}}),_.x(_.l,{cond:e,
then:function(q){return _.x(_.Zf,{data:q,alt:""})}}))},"Le"),"yt-qr-code-renderer",{props:{data:_.vh}});var GgW=_.f(function(e){var z=function(){return _.FN(1728053247&(e.barColor!==void 0?UA(e.barColor()):4278190080))};
return _.x("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.x("div",{class:"ytVideoOverviewGhostCardDetails"},_.x(oNa,{animationDelay:0,percentWidth:100,barColor:function(){return z()}}),_.x(oNa,{animationDelay:600,
percentWidth:60,barColor:function(){return z()}})))},"Oe"),oNa=_.f(function(e){return _.x("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+e.percentWidth()+"%"}},_.x("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var z=e.animationDelay(),C=e.barColor();return"animation-delay:"+z+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+C+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Pe");var YEo;_.boY=_.f(function(e){function z(h){X(h)}
var C=e.data;var w=_.kI("yt-video-overview-view-model"),K=_.qD("div");e=_.b(_.II(-1,void 0,"dW11He"));var G=e.next().value,X=e.next().value;e=_.b(_.II(0,void 0,"LqrsK"));var J=e.next().value,q=e.next().value,T={},Q=_.vF(mzg,function(){return C().asyncDataEntityKey}),m=function(){var h;
if((h=Q())==null?0:h.videoOverviewViewModel){var E;return _.r((E=Q())==null?void 0:E.videoOverviewViewModel,Fja)}return C()};
_.sg(function(){q(Math.min((w.value.clientWidth-24)/4-8,72))});
var a=function(h){X(h);(K==null?0:K.value)&&K.value.children[h]&&K.value.children[h].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
IX8(w,function(){var h;if((h=m())==null||!h.inlinePlaybackEndpoint)return null;var E;h=T==null?void 0:(E=T.thumbnailElRef)==null?void 0:E.value;if(!h)return null;var N;E=(N=m())==null?void 0:N.inlinePlaybackEndpoint;N=_.r(E,ypX);return{multipleVideoPreviewData:{data:(N==null?0:N.playerDescriptors)&&(N==null?0:N.playerDescriptors.length)?N.playerDescriptors:[],thumbnailElement:h,trackingParams:"test",callbacks:{onPlaybackStarted:a},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var n=function(){var h;return((h=m())==null?void 0:h.headerSubtext)!==void 0?!0:!1},H=function(){var h,E=UA((h=m())==null?void 0:h.titleColor);
return E?"color: "+_.FN(E)+";":void 0},I=function(){var h,E=UA((h=m())==null?void 0:h.subtextColor);
return E?"color: "+_.FN(E)+";":void 0},L=function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.x("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return H()}},_.x(_.U2,{text:function(){var h;
return(h=m())==null?void 0:h.headerText}})),_.x(_.l,{cond:n,
then:function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.x("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return I()}},_.x(_.mB,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.x("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return I()}},_.x(_.U2,{text:function(){var h;
return(h=m())==null?void 0:h.headerSubtext}})))}}))};
e={};return _.x("yt-video-overview-view-model",{class:_.qT("ytGenAiVideoOverviewViewModelHost",(e.ytGenAiVideoOverviewViewModelMweb=!1,e.ytGenAiVideoOverviewViewModelDesktop=!0,e)),el:w,style:function(){var h,E=UA((h=m())==null?void 0:h.backgroundColor);return E?"background-color: "+_.FN(E)+";":void 0}},_.x(_.l,{cond:function(){var h;
return(h=m())==null?void 0:h.isLoading},
then:function(){return _.x(GgW,{barColor:function(){var h;return(h=m())==null?void 0:h.titleColor}})},
else:function(){return _.x(_.Qw,null,null,_.x("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.x(_.PF,{data:function(){var h;return(h=m())==null?void 0:h.thumbnail}},{thumbnailViewModel:function(h){return _.x(_.NN,{data:h.data,
aspectRatio:0,playbackRef:UW4(T)})}})),_.x("div",{class:"ytGenAiVideoOverviewViewModelDetails"},L(),_.x(_.l,{cond:function(){var h,E,N,D;
return((h=m())==null?void 0:(E=h.listItems)==null?void 0:E.length)!==void 0&&((N=m())==null?void 0:(D=N.listItems)==null?void 0:D.length)>0?!0:!1},
then:function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:K},_.x(_.ui,{each:function(){var h;return(h=m())==null?void 0:h.listItems}},function(h,E){return _.x(YEo,{image:h.image,
index:E,isSelected:function(){return E()===G()},
onClick:z,itemWidth:J})}))}}),_.x("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.x("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return H()}},_.x(_.U2,{text:function(){var h,E,N,D,g,y,Z;
return(Z=(h=m())==null?void 0:(E=h.listItems)==null?void 0:(N=E[G()])==null?void 0:N.headline)!=null?Z:(D=m())==null?void 0:(g=D.listItems)==null?void 0:(y=g[0])==null?void 0:y.headline}})),_.x("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return I()}},_.x(_.U2,{text:function(){var h,E,N,D,g,y,Z;
return(Z=(h=m())==null?void 0:(E=h.listItems)==null?void 0:(N=E[G()])==null?void 0:N.subtext)!=null?Z:(D=m())==null?void 0:(g=D.listItems)==null?void 0:(y=g[0])==null?void 0:y.subtext}})))))}}))},"Qe");
YEo=_.f(function(e){var z=e.image;var C=e.itemWidth;var w=e.index;var K=e.isSelected;var G=e.onClick;e=_.T9(function(){w!==void 0&&G!==void 0&&G(w());return!1});
var X={};return _.x("div",{class:_.qT("ytGenAiVideoOverviewViewModelCarouselItem",(X.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return K==null?void 0:K()},X)),
style:function(){return"width: "+C()+"px;"},
"on:click":e},_.x(_.Zf,{data:z,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.x(_.l,{cond:function(){return K==null?void 0:K()},
then:function(){return _.x("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.x("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Re");
_.boY.idomCompat=!0;_.KU(_.boY,"yt-video-overview-view-model",{props:{data:_.vh}});_.X1a=_.f(function(e){var z=e.data;var C=e.topbarOffset;var w,K=((w=_.lh().resolve(_.$B(_.jQ)))==null?void 0:w())||!1;return _.x("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var G=z();var X,J,q=K?(X=G.config)==null?void 0:X.darkThemeBackgroundColor:(J=G.config)==null?void 0:J.lightThemeBackgroundColor;G=q?_.EG(q):void 0;G="background-color: "+G+";";C!==void 0&&(G+="top: -"+C()+"px;");return G},
"aria-hidden":!0},_.x(_.l,{cond:function(){var G,X,J;return!!((G=z().backgroundImageConfig)==null?0:(X=G.image)==null?0:(J=X.sources)==null?0:J.length)},
then:function(){return _.x(_.Zf,{data:function(){var G;return(G=z().backgroundImageConfig)==null?void 0:G.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.x("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+amL(K,z().gradientColorConfig)+";"}}))},"Se");
_.X1a.idomCompat=!0;var Jkb=_.f(function(e){var z=e.data;var C=e.isOverlay;return _.x("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.x("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.x(_.PF,{data:function(){return z().header}},{sectionHeaderViewModel:function(w){return _.x(_.C5,{data:w.data,
isOverlay:C})}})),_.x("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.x(_.PF,{data:function(){return z().channelInfoButtons}},{flexibleActionsViewModel:_.ml})),_.x("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.x(_.PF,{data:function(){return z().description}},{descriptionPreviewViewModel:function(w){return _.x(_.zY,{data:w.data,
isOverlay:C})}})))},"Te");
Jkb.idomCompat=!0;var kgL=_.f(function(e){var z=e.data;var C={};return _.x("factoid-view-model",{class:_.qT("ytwFactoidViewModelHost",(C.ytwFactoidViewModelHostOverlay=e.isOverlay,C))},_.x(_.U2,{text:function(){return z().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.x(_.U2,{text:function(){return z().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ue");
kgL.idomCompat=!0;var qE$=_.f(function(e){var z=e.data;var C=e.isOverlay;return _.x("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.x(_.PF,{data:function(){return z().factoids}},{factoidViewModel:function(w){return _.x(kgL,{data:w.data,
isOverlay:C})}}))},"Ve");
qE$.idomCompat=!0;_.x5f=_.f(function(e){var z=e.data;var C=e.isOverlay;return _.x("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.x(_.PF,{data:function(){return z().items}},{channelInfoViewModel:function(w){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(Jkb,{data:w.data,
isOverlay:C}))},
coursePerksViewModel:function(w){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(ieY,{data:w.data,isOverlay:C}))},
descriptionPreviewViewModel:function(w){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(_.zY,{data:w.data,isOverlay:C}))},
factoidsRowViewModel:function(w){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(qE$,{data:w.data,isOverlay:C}))},
progressViewModel:function(w){return _.x("div",{class:"ytwCourseMetadataViewModelHostItem"},_.x(NvT,{data:w.data,isOverlay:C}))}}))},"We");var TLq=_.f(function(e){return _.x("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.x(_.PF,{data:function(){return e.data().content}},{courseMetadataViewModel:function(z){return _.x(_.x5f,{data:z.data,
isOverlay:e.isOverlay})},
progressViewModel:function(z){return _.x(NvT,{data:z.data})}}))},"Xe");var $5f=_.f(function(e){var z=e.data;e=e.className;var C=function(){var K;return _.dE((K=z())==null?void 0:K.rendererContext)},w={};
w=(w.dynamicTextViewModelHost=!0,w.dynamicTextViewModelHostTappable=function(){return C()},w);
return _.x("yt-dynamic-text-view-model",{el:_.ej(_.Dh(function(){var K;return(K=z())==null?void 0:K.rendererContext})),
role:function(){return C()?"link":void 0},
tabindex:function(){return C()?0:void 0},
class:_.qT(e,w)},_.x("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var K,G,X;return(X=(G=_.r((K=z())==null?void 0:K.rendererContext,_.Re))==null?void 0:G.label)!=null?X:""}},_.x(_.U2,{text:function(){return z().text},
userInput:!0})))},"Ye");
$5f.idomCompat=!0;_.L5=_.f(function(e){var z=e.data;var C=e.isPositionRelative;var w=_.MML("(max-width: 527.9px)"),K=function(){var G,X;return(X=(G=z())==null?void 0:G.style)!=null?X:"IMAGE_BANNER_STYLE_FULL_BLEED"};
e={};return _.x("yt-image-banner-view-model",{el:_.ej(_.Dh(function(){var G;return(G=z())==null?void 0:G.rendererContext})),
class:_.qT((e.ytImageBannerViewModelHost=!0,e.ytImageBannerViewModelInset=function(){return r74(K())},e.ytImageBannerViewModelPositionAbsolute=function(){return _.gp(!0)&&!(C==null?0:C())},e.ytImageBannerViewModelSmallInset=function(){return r74(K())&&w()},e.ytImageBannerViewModelTappable=function(){var G;
return _.dE((G=z())==null?void 0:G.rendererContext)},e))},_.x(_.l,{cond:function(){var G;
return(G=z())==null?void 0:G.image},
then:function(){return _.x(_.Zf,{data:function(){return z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.x(_.PF,{data:function(){var G;
return(G=z())==null?void 0:G.overlays}},{thumbnailHoverOverlayViewModel:$v}))},"Ze");
_.L5.idomCompat=!0;var l8v;l8v=_.f(function(e){var z=e.condition;var C=e.content;return _.x(_.l,{cond:z,then:function(){return _.x("div",{class:"yt-page-header-view-model__scroll-container"},C())},
else:function(){return C()}})},"$e");
_.QmW=_.f(function(e){var z=e.data;var C=e.noPadding;var w=e.enableBanner;var K=e.cinematicContainerTopbarOffset;var G=e.allowCinematicContainerOverflow;var X=e.displayAsSidebar;var J=e.displayAsPanel;var q=e.alwaysUseMediumTextDescription;var T=Hyh(),Q=function(){return!!z().image||!!z().animatedImage},m=function(){return!!z().background},a=function(){return(X==null?0:X())||(J==null?0:J())?1:T()},n=function(){return a()===1},H=function(){return n()||a()===2},I=function(){return a()===4},L=function(){var M5=
z();
var fo=!!z().heroImage;var ug=a(),sE=Uzg(z()),w6=X==null?void 0:X(),qY=!M5.metadata,y1;if(y1=fo?_.r(M5.heroImage,r5o):_.r(M5.animatedImage||M5.image,r5o)){M5=y1.style;var Qa=y1.layoutMode;if(Qa!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(y1=Ay1(cy1(y1)),fo)fo=ng4(ug,M5,Qa,y1,w6);else b:if(qY)fo=ug===1?{size:48}:{size:72};else switch(ug){case 1:fo={size:72};break b;case 2:fo={size:120};break b;default:fo=sE<4?{size:120}:{size:160}}else fo=void 0}else fo={size:0};return fo};
e={};e=_.qT((e["yt-page-header-view-model"]=!0,e["yt-page-header-view-model--no-padding"]=function(){return!(C==null||!C())},e["yt-page-header-view-model--small-top-padding"]=function(){return n()&&!z().actions&&!(J==null?0:J())||a()===2&&!(Q()||z().heroImage)},e["yt-page-header-view-model--small-bottom-padding"]=function(){return H()&&!z().actions&&!(J==null?0:J())},e["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(G==null?0:G())},e["yt-page-header-view-model--display-as-sidebar"]=
X,e));
var h={},E=_.qT((h["yt-page-header-view-model__page-header-headline"]=!0,h["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var M5;return(M5=L())==null?void 0:M5.allowFullWidth},h)),N=function(){var M5;
return H()&&!((M5=L())==null?0:M5.allowFullWidth)},D=function(){return n()&&(!!z().heroImage||Q())&&Uzg(z())>0},g=function(){return D()&&(J==null?void 0:J())};
h={};var y=_.qT((h["yt-page-header-view-model__page-header-title"]=!0,h["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!D()},h["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return D()&&!g()},h["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=g,h["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=m,h));
h={};var Z=_.qT((h["yt-page-header-view-model__page-header-headline-image"]=!0,h["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!z().heroImage&&H()},h));
h={};var YN=_.qT((h["yt-page-header-view-model__page-header-banner-container"]=w,h["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var M5;return(w==null?void 0:w())&&((M5=_.r(z().banner,_.UCg))==null?void 0:M5.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},h));
h={};var Jk=_.qT((h["yt-page-header-view-model__page-header-content-metadata"]=!0,h["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=m,h));h={};var v1=_.qT((h["yt-page-header-view-model__page-header-flexible-actions"]=!0,h["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!z().metadata||H()},h["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!H()},h));
h={};var lg=_.qT((h["yt-page-header-view-model__page-header-attribution"]=!0,h["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=m,h));return _.x("yt-page-header-view-model",{class:e},_.x(_.l,{cond:m,then:function(){return _.x("div",{class:"yt-page-header-view-model__page-header-background"},_.x(_.PF,{data:function(){return z().background}},{cinematicContainerViewModel:function(M5){return _.x(_.X1a,{data:M5.data,
topbarOffset:K})}}))}}),_.x(l8v,{condition:function(){return!(X==null||!X())},
content:function(){return _.x("div",{class:"yt-page-header-view-model__page-header-content"},_.x(_.l,{cond:function(){return(w==null?void 0:w())&&z().banner},
then:function(){return _.x("div",{class:YN},_.x(_.PF,{data:function(){return z().banner}},{imageBannerViewModel:_.L5}))}}),_.x("div",{class:E},_.x(_.l,{cond:Q,
then:function(){return _.x(_.PF,{data:function(){var M5;if(!(M5=z().animatedImage)){M5=z();if(Q()){var fo=M5=Object.assign({},M5),ug=a(),sE=Uzg(z()),w6=fo.image,qY=_.r(w6,HBU),y1=qY==null?void 0:qY.avatar,Qa=_.r(y1,_.NK);if(w6&&y1&&Qa){switch(ug){case 1:Qa.avatarImageSize="AVATAR_SIZE_XL";break;case 2:Qa.avatarImageSize="AVATAR_SIZE_XXL";break;default:sE<4?Qa.avatarImageSize="AVATAR_SIZE_XXL":Qa.avatarImageSize="AVATAR_SIZE_XXXL"}_.Om(y1,_.NK,Object.assign({},Qa));qY.avatar=Object.assign({},y1);_.Om(w6,
HBU,Object.assign({},qY));fo.image=Object.assign({},w6)}}M5=M5.image}return M5}},{contentPreviewImageViewModel:function(M5){return _.x(_.gH,{data:M5.data,
className:Z,imageSizeConfig:L})},
decoratedAvatarViewModel:function(M5){return _.x(_.Qh,{data:M5.data,className:Z})}})}}),_.x(_.l,{cond:function(){return!!z().heroImage&&!N()},
then:function(){return _.x(_.PF,{data:function(){return z().heroImage}},{contentPreviewImageViewModel:function(M5){return _.x(_.gH,{data:M5.data,
className:Z,imageSizeConfig:L})}})}}),_.x("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.x(_.l,{cond:function(){return!!z().heroImage&&N()},
then:function(){return _.x("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.x(_.PF,{data:function(){return z().heroImage}},{contentPreviewImageViewModel:function(M5){return _.x(_.gH,{data:M5.data,
className:Z,imageSizeConfig:L})}}))}}),_.x(_.PF,{data:function(){return z().title}},{dynamicTextViewModel:function(M5){return _.x($5f,{data:M5.data,
className:y})}}),_.x(_.PF,{data:function(){return z().metadata}},{contentMetadataViewModel:function(M5){return _.x(_.yh,{data:M5.data,
layout:function(){return n()?1:0},
className:Jk,isOverlay:m,useMediumText:I})}}),_.x(_.l,{cond:function(){return z().description&&!n()},
then:function(){return _.x(_.PF,{data:function(){return z().description}},{descriptionPreviewViewModel:function(M5){return _.x(_.zY,{data:M5.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:m,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(q==null?void 0:q())||I()}})}})}}),_.x(_.l,{cond:function(){return z().attribution&&!H()},
then:function(){return _.x(_.PF,{data:function(){return z().attribution}},{attributionViewModel:function(M5){return _.x(je,{data:M5.data,
className:lg,useMediumText:I})}})}}),_.x(_.l,{cond:function(){return z().actions&&!H()},
then:function(){return _.x(_.PF,{data:function(){return z().actions}},{flexibleActionsViewModel:function(M5){return _.x(_.ml,{data:M5.data,
layout:function(){return vgE(a())},
className:v1})}})}}))),_.x("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.x(_.l,{cond:function(){return z().description&&n()},
then:function(){return _.x(_.PF,{data:function(){return z().description}},{descriptionPreviewViewModel:function(M5){return _.x(_.zY,{data:M5.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:m,maxLinesOverride:function(){return n()?void 0:1},
useMediumText:function(){return(q==null?void 0:q())||I()}})}})}}),_.x(_.l,{cond:function(){return z().attribution&&H()},
then:function(){return _.x(_.PF,{data:function(){return z().attribution}},{attributionViewModel:function(M5){return _.x(je,{data:M5.data,
className:lg,useMediumText:I})}})}}),_.x(_.l,{cond:function(){return z().actions&&H()},
then:function(){return _.x(_.PF,{data:function(){return z().actions}},{flexibleActionsViewModel:function(M5){return _.x(_.ml,{data:M5.data,
layout:function(){return vgE(a())},
className:v1})}})}})),_.x("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.x(_.PF,{data:function(){return z().bottomMetadataFlexibleContainer}},{flexibleContainer:function(M5){return _.x(TLq,{data:M5.data,
isOverlay:m})}})))}}))},"af");
_.QmW.idomCompat=!0;_.KU(_.f(function(e){var z=_.b(_.II(!1,void 0,"qvRy4d")),C=z.next().value,w=z.next().value;return _.x("yt-official-card-view-model",{class:_.qT("ytOfficialCardViewModelHost",e.className),style:_.QC({"background-color":function(){var K,G=UA((K=e.data())==null?void 0:K.backgroundColor);return G?_.FN(G):void 0}})},_.x(_.PF,{data:function(){return e.data().header}},{pageHeaderViewModel:function(K){return _.x(_.QmW,{data:K.data,
noPadding:!0})}}),_.x(_.PF,{data:function(){return e.data().contents}},{horizontalShelfViewModel:function(K){return _.x(_.Rj,{data:K.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.x(_.l,{cond:C,
then:function(){return _.x("div",{class:"ytOfficialCardViewModelExpandedContent"},_.x(_.PF,{data:function(){return e.data().expandedContents}},{horizontalShelfViewModel:function(K){return _.x(_.Rj,{data:K.data,
sizing:"MINI"})}}),_.x("div",{class:"ytOfficialCardViewModelCollapseButton"},_.x(_.PF,{data:function(){return e.data().collapseButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
onClick:function(){w(!C())}})}})))},
else:function(){return _.x("div",{class:"ytOfficialCardViewModelExpandButton"},_.x(_.PF,{data:function(){return e.data().expandButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
onClick:function(){w(!C())}})}}))}}))},"bf"),"yt-official-card-view-model",{props:{data:_.vh,
className:_.vh}});var m5o=_.f(function(e){var z,C=(z=_.lh().resolve(_.$B(_.jQ)))==null?void 0:z();return _.x("ytw-search-friction-view-model",{class:_.qT("ytwSearchFrictionViewModelHost",e.className)},_.x("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.x("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.x(_.l,{cond:function(){return C&&e.data().darkThemeImage?e.data().darkThemeImage:e.data().image},
then:function(w){return _.x(_.Zf,{data:w,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.x(_.PF,{data:function(){return e.data().overflowMenuButton}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.x(_.U2,{text:function(){return e.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.x(_.ui,{each:function(){return e.data().bodyText||[]}},function(w){return _.x(_.U2,{text:w,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.x(_.PF,{data:function(){return e.data().actions}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.x(_.U2,{text:function(){return e.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.x(_.U2,{text:function(){return e.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"cf");
m5o.idomCompat=!0;_.KU(m5o,"ytw-search-friction-view-model",{props:{data:_.vh,className:_.vh}});_.he=_.f(function(e){var z=_.kI("markdown-div"),C,w=(C=_.lh().resolve(_.$B(_.jQ)))==null?void 0:C();_.sH(function(){var K=z.value;var G=new kma,X=new Map(G.JSC$9467_sanitizerTable.globalAttributePolicies);X.set("style",{policyAction:4});G.JSC$9467_sanitizerTable=new Dg(G.JSC$9467_sanitizerTable.allowedElements,G.JSC$9467_sanitizerTable.elementPolicies,G.JSC$9467_sanitizerTable.allowedGlobalAttributes,X,G.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes);var J=["data-time"];if(J===void 0)X=
new Set(G.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes),X.add("data-"),G.JSC$9467_sanitizerTable=new Dg(G.JSC$9467_sanitizerTable.allowedElements,G.JSC$9467_sanitizerTable.elementPolicies,G.JSC$9467_sanitizerTable.allowedGlobalAttributes,G.JSC$9467_sanitizerTable.globalAttributePolicies,X);else{X=new Set(G.JSC$9467_sanitizerTable.allowedGlobalAttributes);J=_.b(J);for(var q=J.next();!q.done;q=J.next()){q=q.value;if(q.indexOf("data-")!==0)throw Error("ka`"+q);X.add(q)}G.JSC$9467_sanitizerTable=
new Dg(G.JSC$9467_sanitizerTable.allowedElements,G.JSC$9467_sanitizerTable.elementPolicies,X,G.JSC$9467_sanitizerTable.globalAttributePolicies,G.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes)}X=new Set(G.JSC$9467_sanitizerTable.allowedGlobalAttributes);X.add("class");G.JSC$9467_sanitizerTable=new Dg(G.JSC$9467_sanitizerTable.allowedElements,G.JSC$9467_sanitizerTable.elementPolicies,X,G.JSC$9467_sanitizerTable.globalAttributePolicies,G.JSC$9467_sanitizerTable.globallyAllowedAttributePrefixes);
_.ko(K,_.Gma(G.build(),W_m(e.text())));Pym(z.value)},"OZ439c");
C={};return _.x("div",null,_.x("markdown-div",{class:_.qT("ytwMarkdownDivHost",(C.ytwMarkdownDivDark=w,C.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var K;return((K=e.isSmallText)==null?void 0:K.call(e))||!1},C.ytwMarkdownDivHostWrapCodeBlocks=function(){var K;
return((K=e.wrapCodeBlocks)==null?void 0:K.call(e))||!1},C.ytwMarkdownDivHostEnableDefaultStyling=function(){var K;
return!((K=e.disableDefaultStyling)==null?0:K.call(e))},C)),
el:z}))},"ef");
_.he.idomCompat=!0;var a8Z=_.f(function(e){var z=e.imageData;var C=_.pP(e.isInList,!1),w=function(){return C()?{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 _.x("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.x(_.l,{cond:function(){return z().image},
then:function(K){return _.x(_.Zf,{data:K,alt:function(){return w().alt},
contentMode:function(){return w().contentMode},
targetWidth:function(){return w().targetWidth},
targetHeight:function(){return w().targetHeight},
className:function(){return w().className}})}}),_.x("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.x("div",{class:_.qT("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.x(_.U2,{text:function(){return z().title}})),_.x(_.ui,{each:function(){var K;
return(K=z().description)!=null?K:[]}},function(K){return _.x("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.x(Ob,{content:K}))})))},"ff"),nNZ=_.f(function(e){var z=e.list;
var C=function(){var w;return(w=z().items)!=null?w:[]};
return _.x("div",{class:"ytwGenAiRichTextViewModelListContent"},_.x(_.l,{cond:function(){return z().title},
then:function(w){return _.x("div",{class:_.qT("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.x(_.U2,{text:w}))}}),_.x(_.l,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.x("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.x(_.ui,{each:C},function(w){return _.x("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.x(Ob,{content:w,isInList:!0}))}))}}),_.x(_.l,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.x("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.x(_.ui,{each:C},function(w){return _.x("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.x(Ob,{content:w,isInList:!0}))}))}}),_.x(_.l,{cond:function(){return z().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.x("div",{class:"ytwGenAiRichTextViewModelImageList"},_.x(_.ui,{each:C},function(w){return _.x("div",{class:"ytwGenAiRichTextViewModelListItem"},_.x(Ob,{content:w,isInList:!0}))}))}}))},"gf"),Mhb=_.f(function(e){var z=e.table;
return _.x("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.x("thead",null,_.x("tr",null,_.x(_.ui,{each:function(){var C,w;return(w=(C=z().header)==null?void 0:C.cells)!=null?w:[]}},function(C){return _.x("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.x(_.ui,{each:function(){return C.contents}},function(w){return _.x(Ob,{content:w})}))}))),_.x("tbody",null,_.x(_.ui,{each:function(){var C;
return(C=z().rows)!=null?C:[]}},function(C){return _.x("tr",null,_.x(_.ui,{each:function(){return C.cells}},function(w){return _.x("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.x(_.ui,{each:function(){return w.contents}},function(K){return _.x(Ob,{content:K})}))}))})))},"hf"),Ob=_.f(function(e){var z=e.content;
var C=_.pP(e.isInList,!1),w=function(){var K,G;return(G=(K=z().contentBlock)==null?void 0:K.contents)!=null?G:[]};
return _.x("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.x(_.l,{cond:function(){return z().text},
then:function(K){return _.x(_.U2,{className:"ytwGenAiRichTextViewModelText",text:K})}}),_.x(_.l,{cond:function(){return z().image},
then:function(K){return _.x(a8Z,{imageData:K,isInList:C})}}),_.x(_.l,{cond:function(){return z().list},
then:function(K){return _.x(nNZ,{list:K})}}),_.x(_.l,{cond:function(){return z().contentBlock},
then:function(){return _.x("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.x(_.ui,{each:w},function(K){return _.x(Ob,{content:K,isInList:!1})}))}}),_.x(_.l,{cond:function(){return z().table},
then:function(K){return _.x(Mhb,{table:K})}}))},"jf"),rko=_.f(function(e){var z={};
z=_.VA("ytwGenAiRichTextViewModelHost",(z.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Mv("search_overview_link_style")),z));return _.x("gen-ai-rich-text-view-model",{class:z},_.x(Ob,{content:function(){return e.data().content}}))},"kf");_.Ho5=_.f(function(e){var z=e.data;var C=function(){var I;return((I=z().loadingUi)!=null?I:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},w=function(){return z().isLoading&&(C()==="UNSPECIFIED"||C()==="GHOST_CARD")},K=function(){return!z().isLoading},G=function(){return!!z().content&&!z().contents},X=function(){return!!z().contents},J=function(){return!!z().nextQueryButtons},q=function(){return z().isLoading&&C()==="INVISIBLE"},T=function(){var I,L;
return(L=(I=z().headerIcon)==null?void 0:I.iconType)!=null?L:""},Q=function(){var I;
return(I=z().content)!=null?I:""},m=function(){return!!z().sourcesSection},a,n=!((a=_.lh().resolve(_.$B(_.jQ)))==null||!a()),H=_.hG(function(){var I=[],L=z().contents;
if(L)for(var h=0;h<L.length;h++){var E=_.r(L&&L[h],EVX);E&&I.push(E)}return I},void 0,"gcCsZb");
_.sg(function(){z().isLoading||_.hg("so_re",void 0,"search_overview_answer")});
return _.x("ytd-overview-answer-view-model",{class:function(){var I={};I=(I.ytdOverviewAnswerViewModelHost=!0,I.ytdOverviewAnswerViewModelDarkBackground=n&&!q(),I.ytdOverviewAnswerViewModelLightBackground=!n&&!q(),I);return _.VA(I)}},_.x(_.l,{cond:function(){return!q()},
then:function(){return _.x(_.Qw,null,_.x("h2",null,_.x("div",{class:"ytdOverviewAnswerViewModelHeader"},_.x(_.l,{cond:T,then:function(I){return _.x("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.x(_.mB,{icon:I}))}}),_.x("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.x("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return z().headerText}),_.x("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.x(_.U2,{text:function(){return z().headerSubtext}}))))),_.x(_.l,{cond:w,
then:function(){return _.x(Rw5,null)}}),_.x(_.l,{cond:K,
then:function(){return _.x(_.Qw,null,_.x(_.l,{cond:G,then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelText"},_.x(_.he,{text:Q,isSmallText:!0}))}}),_.x(_.l,{cond:X,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelRichText"},_.x(_.ui,{each:H},function(I){return _.x(rko,{data:I})}))}}),_.x(_.l,{cond:J,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.x(_.PF,{data:function(){return z().nextQueryButtons}},{buttonViewModel:function(I){return _.x(_.iz,{data:I.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Rj}))}}),_.x("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.x("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.x(_.l,{cond:function(){return!!_.r(z().likeButtonViewModel,_.jo)&&!!_.r(z().dislikeButtonViewModel,_.yg)},
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.x(_.nT,{data:function(){return _.r(z().likeButtonViewModel,_.jo)},
disableIconAnimation:!0}),_.x(_.aw,{data:function(){return _.r(z().dislikeButtonViewModel,_.yg)}}))}})),_.x(_.l,{cond:function(){var I;
return(I=z().sourcesSection)==null?void 0:I.headerText},
then:function(I){return _.x("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.x(_.U2,{text:I}))}})),_.x(_.l,{cond:m,
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelSources"},_.x(_.PF,{data:function(){var I;return(I=z().sourcesSection)==null?void 0:I.sourcesShelf}},{buttonViewModel:_.iz,
horizontalShelfViewModel:function(I){return _.x(_.Rj,{data:I.data,includeMargin:!0,hasPeek:!0})}}))}}),_.x(_.l,{cond:function(){return z().disclaimerText},
then:function(){return _.x("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.x(_.U2,{text:function(){return z().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"lf");var U5l=_.f(function(e){var z=_.eQ(e,{}).data;return _.x("yt-shopping-content-line-item-view-model",{class:_.qT("ytShoppingContentLineItemViewModelHost")},_.x(_.U2,{text:function(){var C;return(C=z().text)==null?void 0:C.attributedString}}))},"mf");_.Eb=_.f(function(e){e=_.eQ(e,{});var z=e.data,C={};return _.x("yt-shopping-content-line-view-model",{class:_.qT("ytShoppingContentLineViewModelHost",e.className,(C.ytShoppingContentLineViewModelTruncateText=function(){return!z().wrapContent},C)),
style:_.QC({"--shopping-content-line-gap":function(){return z().itemGap?z().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return z().lineHeight?z().lineHeight+"px":void 0}})},_.x(_.ui,{each:function(){return(z().items||[]).map(function(w){return _.r(w,NtC)}).filter(function(w){return!!w})}},function(w){return _.x(U5l,{data:w})}))},"nf");var vNv=_.f(function(e){var z=e.data;var C=function(){var G;return((G=z().image)==null?void 0:G.height)||48},w=function(){var G;
return((G=z().image)==null?void 0:G.width)||48},K=function(){return"width: "+w()+"px; height: "+C()+"px;"};
return _.x("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var G,X,J,q=((G=_.lh().resolve(_.$B(_.jQ)))==null?0:G())?(X=z())==null?void 0:X.darkThemeBackgroundColor:(J=z())==null?void 0:J.lightThemeBackgroundColor;return"background-color: "+(q?_.FN(q):"")+";"},
el:_.ej(_.Dh(function(){var G;return(G=z())==null?void 0:G.rendererContext}))},_.x(_.l,{cond:function(){var G,X;
return(X=(G=z().image)==null?void 0:G.image)!=null?X:z().thumbnail},
then:function(G){return _.x("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var X;return"background-color: "+(((X=z().image)==null?0:X.backgroundColor)?_.FN(z().image.backgroundColor):"")+";"+K()}},_.x(_.Zf,{data:G,
height:C,width:w,style:K,alt:""}))}}),_.x("div",{class:"ytShoppingDescriptionItemViewModelText"},_.x(_.PF,{data:function(){return z().line1}},{shoppingContentLineViewModel:function(G){return _.x(_.Eb,{data:G.data})}}),_.x(_.PF,{data:function(){return z().line2}},{shoppingContentLineViewModel:function(G){return _.x(_.Eb,{data:G.data})}}),_.x(_.PF,{data:function(){return z().line3}},{shoppingContentLineViewModel:function(G){return _.x(_.Eb,{data:G.data})}})))},"of");var I8o=_.f(function(e){var z=e.data;var C=e.active;var w=_.kI("transcript-segment-view-model");_.sH(function(){var K,G,X,J=((K=_.lh().resolve(_.$B(_.jQ)))==null?0:K())?(G=z())==null?void 0:G.darkThemeColorPalette:(X=z())==null?void 0:X.lightThemeColorPalette;J&&(J.additiveBackground&&w.value.style.setProperty("--timestamp-active-background-color",_.FN(J.additiveBackground)),J.textSecondary&&w.value.style.setProperty("--timestamp-active-color",_.EG(J.textSecondary)))},"TnVCnb");
e={};return _.x("transcript-segment-view-model",{class:_.qT("ytwTranscriptSegmentViewModelHost",(e.ytwTranscriptSegmentViewModelHostActive=C,e.ytwTranscriptSegmentViewModelHostModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),e)),el:w},_.x(_.l,{cond:function(){var K;return(K=z())==null?void 0:K.timestamp},
then:function(K){var G={};return _.x(_.Qw,null,_.x("div",{class:_.qT("ytwTranscriptSegmentViewModelTimestamp",(G.ytwTranscriptSegmentViewModelTimestampActive=C,G)),"aria-hidden":!0},K),_.x("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var X=K().split(":").map(Number),J=_.b(X.reverse());X=J.next().value;var q=J.next().value;J=J.next().value;return _.kB4({hours:J,minutes:q,seconds:X})}))}}),_.x(_.U2,{text:function(){var K,G,X;
return(X=(K=z())==null?void 0:K.attributedText)!=null?X:{content:(G=z())==null?void 0:G.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"qf");var W7E=_.f(function(e){var z=e.data;return _.x("div",{class:"videoAttributesSectionViewModelHeader"},_.x("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.x("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return z().headerTitle}),_.x(_.l,{cond:function(){return z().headerInfoButton},
then:function(){return _.x(_.PF,{data:function(){return z().headerInfoButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.x(_.l,{cond:function(){return z().headerSubtitle},
then:function(){return _.x("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return z().headerSubtitle})}}))},"rf"),Pg$=_.f(function(e){function z(I){return Math.max(Math.min(I,0),T()-J())}
var C=e.data;var w;e=_.kI("div",function(I){var L=function(){Q(I.clientWidth)};
L();window.ResizeObserver&&(w=new ResizeObserver(L),w.observe(I))});
var K=_.kI("div",function(I){q(I.scrollWidth)}),G=_.b(_.II(0,void 0,"C3XQAe")),X=G.next().value;
G=G.next().value;var J=X,q=G;G=_.b(_.II(0,void 0,"db7y3"));X=G.next().value;G=G.next().value;var T=X,Q=G;X=_.b(_.II(0,void 0,"RchC7"));var m=X.next().value,a=X.next().value;_.BC(function(){var I;(I=w)==null||I.disconnect()});
var n=function(){a(z(m()+T()))},H=function(){a(z(m()-T()))};
return _.x("yt-video-attributes-section-view-model",null,_.x("div",{class:"videoAttributesSectionViewModelHost"},_.x(_.l,{cond:function(){return C().headerTitle},
then:function(){return _.x(W7E,{data:C})}}),_.x("div",{class:_.qT("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:e},_.x("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.QC({transform:function(){var I=m();_.j5("HTML_DIR")==="rtl"&&(I*=-1);return"translateX("+I+"px)"}}),
el:K},_.x(_.PF,{data:function(){return C().videoAttributeViewModels}},{videoAttributeViewModel:kZa}))),_.x(_.PF,{data:function(){return C().footerButton}},{buttonViewModel:function(I){return _.x(_.iz,{data:I.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.x(_.l,{cond:function(){return m()<0&&C().previousButton},
then:function(){return _.x("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.x(_.PF,{data:function(){return C().previousButton}},{buttonViewModel:function(I){return _.x(_.iz,{data:I.data,
onClick:n})}}))}}),_.x(_.l,{cond:function(){return m()>T()-J()&&C().nextButton},
then:function(){return _.x("div",{class:"videoAttributesSectionViewModelRightArrow"},_.x(_.PF,{data:function(){return C().nextButton}},{buttonViewModel:function(I){return _.x(_.iz,{data:I.data,
onClick:H})}}))}})))},"sf");
Pg$.idomCompat=!0;var Rs$=_.f(function(e){var z=e.data;var C=e.active;var w={},K={};return _.x("timeline-item-view-model",{class:_.qT("ytwTimelineItemViewModelHost",(w.ytwTimelineItemViewModelHostChapterChild=e.chapterChild,w.ytwTimelineItemViewModelModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),w))},_.x("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.x("div",{class:_.qT("ytwTimelineItemViewModelTimestamp",(K.ytwTimelineItemViewModelTimestampActive=
C,K))},function(){return z().timestamp})),_.x("div",{class:"ytwTimelineItemViewModelContentItems"},_.x(_.PF,{data:function(){return z().contentItems}},{transcriptSegmentViewModel:function(G){return _.x(I8o,{data:G.data,
active:C})},
videoAttributesSectionViewModel:Pg$})))},"tf");var L7C=_.f(function(e){var z=e.data;e={};return _.x("timeline-chapter-view-model",{class:_.qT("ytwTimelineChapterViewModelHost")},_.x("div",{class:_.qT("ytwTimelineChapterViewModelTitle",(e.ytwTimelineChapterViewModelModern=_.M("enable_timeline_view_modern_transcript")||_.M("enable_timeline_view_modern_transcript_fe"),e))},function(){return z().title}),_.x(_.PF,{data:function(){return z().contents}},{timelineItemViewModel:function(C){return _.x(Rs$,{data:C.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(C){return _.x(Pg$,{data:C.data})}}))},"uf");var hsq=_.f(function(e){var z=e.data;var C=_.kI("macro-markers-panel-item-view-model"),w=_.vF(_.nME,function(){var G;return(G=z().markersEngagementPanelSyncEntityKey)!=null?G:""}),K=function(){var G;
return((G=w())==null?void 0:G.activeItemIndex)===z().index};
e=_.T9(function(G){var X,J,q,T,Q;return _.k(function(m){if(m.nextAddress==1)return G.stopPropagation(),_.S3(_.f7(G),C.value,["A".toString(),"BUTTON".toString()])?m.return():(X=_.SQ(z().onTap))?m.yield(_.ax(),2):m.return();J=m.yieldResult;T=(q=_.r(X,_.N$))==null?void 0:q.startTimeSeconds;T===void 0||(Q=J)!=null&&Q.seekTo(T,!0);_.E_(m)})});
return _.x("macro-markers-panel-item-view-model",{class:_.qT("ytwMacroMarkersPanelItemViewModelHost",{"is-active":K}),el:C,"on:click":e,tabindex:0,role:"button"},_.x(_.PF,{data:function(){var G;return(G=z())==null?void 0:G.item}},{timelineChapterViewModel:function(G){return _.x(L7C,{data:G.data,
active:K})},
timelineItemViewModel:function(G){return _.x(Rs$,{data:G.data,active:K})},
videoAttributeViewModel:kZa,shoppingDescriptionItemViewModel:vNv}))},"vf");
hsq.idomCompat=!0;_.KU(hsq,"macro-markers-panel-item-view-model",{props:{data:_.vh}});_.KU(Pg$,"yt-video-attributes-section-view-model",{props:{data:_.vh}});var Oob=_.f(function(e){var z=function(){var C,w,K;return(K=(C=e.data().leadingLogoAccessibility)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label)!=null?K:""};
return _.x("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.x(_.l,{cond:function(){return e.data().leadingLogo},
then:function(C){return _.x(_.Zf,{className:"ytwFantasySectionHeaderViewModelLogo",data:C,alt:z})}}),_.x("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.x(_.U2,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return e.data().title}}),_.x(_.U2,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return e.data().subtitle}})),_.x(_.PF,{data:function(){return e.data().trailingButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"wf");var EN$=_.f(function(e){var z={};z=_.qT("ytwFantasyTeamViewModelHost",(z.ytwFantasyTeamViewModelCompact=function(){var K;return!((K=e.compact)==null||!K.call(e))},z.ytwFantasyTeamViewModelUser=function(){return e.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},z.ytwFantasyTeamViewModelOpponent=function(){return e.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},z));
var C=function(){var K,G,X;return(X=(K=e.data().teamLogoAccessibility)==null?void 0:(G=K.accessibilityData)==null?void 0:G.label)!=null?X:""},w=_.vF(rb5,function(){return e.data().teamEntityKey});
return _.x("ytw-fantasy-team-view-model",{class:z},_.x(_.l,{cond:function(){return e.data().teamLogo},
then:function(K){return _.x(_.Zf,{className:"ytwFantasyTeamViewModelLogo",data:K,alt:C})}}),_.x("div",{class:"ytwFantasyTeamViewModelMetadata"},_.x("div",{class:"ytwFantasyTeamViewModelHeader"},_.x(_.U2,{className:"ytwFantasyTeamViewModelScore",
text:function(){var K;return(K=w())==null?void 0:K.score}}),_.x(_.mB,{icon:function(){var K;
return(K=w())==null?void 0:K.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.x(_.U2,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var K;return(K=w())==null?void 0:K.projectedScore}})),_.x(_.U2,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return e.data().primaryText}}),_.x(_.U2,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return e.data().secondaryText}}),_.x(_.U2,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return e.data().tertiaryText}})),_.x(_.U2,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var K;return(K=w())==null?void 0:K.score}}))},"xf");_.KU(_.f(function(e){return _.x("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.x("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.x(_.PF,{data:function(){return e.data().summaryHeader}},{fantasySectionHeaderViewModel:Oob})),_.x(_.PF,{data:function(){return e.data().userTeam}},{fantasyTeamViewModel:EN$}),_.x(_.PF,{data:function(){return e.data().opponentTeam}},{fantasyTeamViewModel:EN$}))},"yf"),"fantasy-league-summary-view-model",{props:{data:_.vh}});var F7a=_.f(function(e){var z=_.eQ(e,{shape:{},useCustomTabRenderable:!1}),C=z.shape;z=z.useCustomTabRenderable;var w=e.customTabRenderable,K=function(){return C().disabled},G=function(){return C().selected},X=function(){return C().title},J=function(){return C().icon},q=_.kI("yt-tab-shape");
e=_.T9(function(m){var a;if(!K()&&((a=C().aTagConfig)==null?0:a.onclick))C().aTagConfig.onclick(m);return!1});
var T=_.T9(function(m){if(m.key==="Enter"||m.key==="ArrowUp"||m.key==="ArrowDown")m.preventDefault(),q.value.click();return!1}),Q={};
return _.x("yt-tab-shape",{class:_.qT("yt-tab-shape",function(){return C().className},(Q["yt-tab-shape__tab--last-tab"]=function(){return C().isLastTab},Q["yt-tab-shape--host-disabled"]=K,Q["yt-tab-shape--host-clickable"]=!w,Q)),
role:w?void 0:"tab","aria-selected":G!=null?G:!1,"aria-disabled":K,tabindex:w?void 0:0,"on:click":e,"on:keydown":T,el:q,"tab-identifier":function(){return C().identifier},
"tab-title":X},_.x(_.l,{cond:z,then:function(){return w()},
else:function(){var m={},a={};return _.x(_.Qw,null,_.x("div",{class:_.qT("yt-tab-shape__tab",(m["yt-tab-shape__tab--tab-selected"]=G,m))},_.x(_.l,{cond:J,then:function(n){return _.x(_.mB,{className:"yt-tab-shape__tab-icon",icon:function(){return n().iconType}})}}),X),_.x("div",{class:_.qT("yt-tab-shape__tab-bar",(a["yt-tab-shape__tab-bar--tab-bar-selected"]=G,a))}))}}))},"zf");
F7a.idomCompat={callbacks:{customTabRenderable:!0}};_.f8b=_.f(function(e){var z=e.shape;e=_.b(_.II(48,void 0,"nDAx4"));var C=e.next().value,w=e.next().value;e=_.b(_.II(0,void 0,"GCgjqb"));var K=e.next().value,G=e.next().value,X=function(){return z().tabs},J=_.kI("yt-tab-group-shape"),q=function(){var a,n;
return(n=(a=X())==null?void 0:a.findIndex(function(H){return H.selected}))!=null?n:-1};
e=_.b(_.II(!1,void 0,"SU01tf"));var T=e.next().value,Q=e.next().value,m=function(){T()||_.c5.addJob(function(){Q(!0)},0)};
_.sH(function(){var a=q(),n=_.c5.addJob(function(){var H,I=((H=J.value)==null?void 0:H.querySelectorAll("yt-tab-shape"))||[],L;w(((L=a>-1?I[a]:void 0)==null?void 0:L.getBoundingClientRect().width)||0);for(L=H=0;L<a;L++)H+=I[L].offsetWidth+24;_.j5("HTML_DIR")==="rtl"&&(H=-H);G(H);m()},8,0);
_.BC(function(){_.c5.cancelJob(n)})},"PMwgb");
e={};return _.x("yt-tab-group-shape",{class:_.qT("tabGroupShapeHost",(e.tabGroupShapeOverflowHidden=function(){return z().isOverflowHidden},e)),
el:J},_.x(_.l,{cond:X,then:function(a){return _.x(_.Qw,null,_.x("div",{class:"tabGroupShapeTabs",role:"tablist"},_.x(_.ui,{each:a},function(n,H){return _.x(F7a,{shape:function(){return Object.assign({},n,{isLastTab:H()===a().length-1})},
customTabRenderable:n.customTabRenderable,useCustomTabRenderable:!!n.customTabRenderable})})),_.x(VhE,{width:C,
sliderOffset:K,enableTransition:T}))}}))},"Bf");
_.f8b.idomCompat=!0;var VhE=_.f(function(e){var z=_.pP(e.sliderOffset,0),C=e.width,w=e.enableTransition;e={};return _.x("div",{class:_.qT("tabGroupShapeSlider",(e.tabGroupShapeSliderTransition=function(){return w()},e)),
style:_.QC({width:function(){return C()+"px"},
transform:function(){return"translateX("+z()+"px)"}})})},"Cf");var SEq=_.f(function(e){var z=function(){var G,X,J;return(J=(G=e.data().playerLogoAccessibility)==null?void 0:(X=G.accessibilityData)==null?void 0:X.label)!=null?J:""},C=_.vF(HnL,function(){return e.data().playerEntityKey}),w={};
w=_.qT("ytwFantasyPlayerViewModelHost",(w.ytwFantasyPlayerViewModelPlaying=function(){var G;return!((G=C())==null||!G.isPlayerPlaying)},w.ytwFantasyPlayerViewModelOnField=function(){var G;
return((G=C())==null?void 0:G.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},w.ytwFantasyPlayerViewModelRedZone=function(){var G;
return((G=C())==null?void 0:G.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},w));
var K=function(){var G,X,J,q=((G=_.lh().resolve(_.$B(_.jQ)))==null?0:G())?(X=e.data().playerLogoBackgroundColor)==null?void 0:X.darkTheme:(J=e.data().playerLogoBackgroundColor)==null?void 0:J.lightTheme;return q===void 0?"":_.FN(q)};
return _.x("ytw-fantasy-player-view-model",{class:w},_.x(_.l,{cond:function(){return e.data().playerLogo},
then:function(G){return _.x("div",{class:"ytwFantasyPlayerViewModelLogo"},_.x("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.x(_.Zf,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.QC({"background-color":K}),data:G,alt:z})),_.x("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.x(_.mB,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.x("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.x("div",{class:"ytwFantasyPlayerViewModelHeader"},_.x(_.U2,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var G;return(G=e.data())==null?void 0:G.playerNameText}}),_.x(_.U2,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var G;return(G=e.data())==null?void 0:G.playerDescriptionText}})),_.x("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.x(_.U2,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var G;return(G=C())==null?void 0:G.gamePeriodText}}),_.x(_.U2,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var G;return(G=e.data())==null?void 0:G.opponentTeamText}}),_.x(_.U2,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var G;return(G=C())==null?void 0:G.gameStatusText}}),_.x(_.U2,{className:_.qT("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var G;return(G=C())==null?void 0:G.playerStatusText}})),_.x("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.x(_.U2,{text:function(){var G;
return(G=C())==null?void 0:G.playerStatsText}}))),_.x(_.U2,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var G;return(G=C())==null?void 0:G.fantasyScore}}))},"Df");var u4L=_.f(function(e){return _.x("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.x(_.l,{cond:function(){return e.data().players},
then:function(z){return _.x(_.PF,{data:z},{fantasyPlayerViewModel:SEq})}}))},"Ef");var d5q=_.f(function(e){var z=_.b(_.zx(function(){var K;return(K=e.data().selectedTabIdentifierKey)!=null?K:""})),C=z.next().value,w=z.next().value;
_.Nm(function(){var K;(K=e.setSelectedTabSignal)==null||K.call(e,C)});
return _.x("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.x("div",{class:"ytTabbedViewModelTabGroup"},_.x(_.f8b,{shape:function(){var K=e.data(),G=[],X={tabs:G};if(!K.tabs)return X;K=_.b(K.tabs);for(var J=K.next(),q={};!J.done;q={tabViewModel:void 0},J=K.next())if(q.tabViewModel=_.r(J.value,tNa),q.tabViewModel){var T=J=void 0;G.push({aTagConfig:{onclick:function(Q){return function(){var m;w((m=Q.tabViewModel.tabIdentifier)!=null?m:"")}}(q)},
identifier:q.tabViewModel.tabIdentifier,selected:C()===q.tabViewModel.tabIdentifier,title:(T=(J=q.tabViewModel.title)==null?void 0:J.content)!=null?T:""})}return X}})),_.x(_.PF,{data:function(){var K,G=_.b((K=e.data().tabs)!=null?K:[]);
for(K=G.next();!K.done;K=G.next())if((K=_.r(K.value,tNa))&&K.tabIdentifier===C())return K.content}},{fantasyRosterViewModel:u4L}))},"Gf");_.KU(_.f(function(e){var z=_.b(L_5()),C=z.next().value,w=z.next().value;return _.x("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.x(_.U2,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return e.data().title}}),_.x(_.l,{cond:function(){return e.data().tabbedViewModel},
then:function(K){return _.x(_.PF,{data:K},{tabbedViewModel:function(G){return _.x(d5q,{data:G.data,setSelectedTabSignal:w})}})}}),_.x(_.l,{cond:function(){var K,G=(K=_.r(e.data().tabbedViewModel,gEU))==null?void 0:K.tabs;
K=_.r(G==null?void 0:G[0],tNa);G=_.r(G==null?void 0:G[1],tNa);var X=K==null?void 0:K.tabIdentifier;if(C()===X){var J,q;if(!((J=_.r(K==null?void 0:K.content,GKg))==null?0:(q=J.players)==null?0:q.length))return e.data().noUserTeamPlayersText}else{var T,Q;if(!((T=_.r(G==null?void 0:G.content,GKg))==null?0:(Q=T.players)==null?0:Q.length))return e.data().noOpponentTeamPlayersText}},
then:function(K){return _.x(_.U2,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:K})}}))},"Hf"),"ytw-fantasy-matchup-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){return _.x("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.x(_.U2,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return e.data().title}}),_.x(_.l,{cond:function(){return e.data().matchupTeamPairs},
then:function(z){return _.x(_.ui,{each:z,keyBy:"INDEX"},function(C){return _.x("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.x(_.PF,{data:function(){return[C().firstTeam,C().secondTeam]}},{fantasyTeamViewModel:function(w){return _.x(EN$,{data:w.data,
compact:!0})}}))})}}))},"If"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=function(){var K,G,X;return(X=(K=e.data().userLogoAccessibility)==null?void 0:(G=K.accessibilityData)==null?void 0:G.label)!=null?X:""},C=function(){var K,G,X;
return(X=(K=e.data().opponentLogoAccessibility)==null?void 0:(G=K.accessibilityData)==null?void 0:G.label)!=null?X:""},w=_.vF(Mi5,function(){return e.data().entityKey});
return _.x("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.x("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.x(_.l,{cond:function(){return e.data().userLogo},
then:function(K){return _.x(_.Zf,{className:"ytwFantasyWinProbabilityViewModelLogo",data:K,alt:z})}}),_.x("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.x(_.U2,{text:function(){return e.data().title}})),_.x(_.l,{cond:function(){return e.data().opponentLogo},
then:function(K){return _.x(_.Zf,{className:"ytwFantasyWinProbabilityViewModelLogo",data:K,alt:C})}})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.x("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.x(_.U2,{text:function(){var K;
return(K=w())==null?void 0:K.userWinNumberLabel}})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.x("div",{class:_.qT("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.QC({flex:function(){var K,G;return(G=(K=w())==null?void 0:K.userWinNumber)!=null?G:50}})}),_.x("div",{class:_.qT("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.QC({flex:function(){var K,G;return(G=(K=w())==null?void 0:K.opponentWinNumber)!=null?G:50}})})),_.x("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.x(_.U2,{text:function(){var K;
return(K=w())==null?void 0:K.opponentWinNumberLabel}}))))},"Jf"),"fantasy-win-probability-view-model",{props:{data:_.vh}});var D5E={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},ioW=_.f(function(e){return _.x(_.PF,{data:e.button},{buttonViewModel:function(z){return _.x(_.iz,{data:z.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Kf"),NLv=_.f(function(e){return _.x("ytd-backstage-locked-post-view-model",{class:_.qT("ytdBackstageLockedPostViewModelHost",e.className)},_.x("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.x("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.x(_.PF,
{data:function(){return e.data().authorAvatar}},{decoratedAvatarViewModel:_.Qh})),_.x("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.x("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.x(_.U2,{text:function(){return e.data().authorText}})),_.x("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.x(_.U2,{text:function(){return e.data().publishedTimeText}}),_.x(_.PF,{data:function(){return e.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(z){return _.x(NRT,
{data:z.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.x("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.x(_.U2,{text:function(){return e.data().contentText}})),_.x(_.d1,null,_.x(_.fd,{when:function(){return e.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.x("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.x(_.Zf,{data:D5E,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.x(_.U2,{text:function(){return e.data().lockedText}}))}),_.x(_.fd,{when:function(){return e.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.x("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.x("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.x(_.Zf,{data:D5E,
alt:""})),_.x(_.U2,{text:function(){return e.data().lockedText}}))})),_.x("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.x(ioW,{button:function(){return e.data().likeButton}}),_.x("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return e.data().voteCountA11y}},_.x(_.U2,{text:function(){return e.data().voteCount}})),_.x(ioW,{button:function(){return e.data().dislikeButton}}),_.x(ioW,{button:function(){return e.data().commentButton}}),_.x("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return e.data().commentCountA11y}},_.x(_.U2,{text:function(){return e.data().commentCount}}))))},"Lf");
NLv.idomCompat=!0;_.KU(NLv,"ytd-backstage-locked-post-view-model",{props:{data:_.vh,className:_.vh}});_.hq("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Fc=function(){var e=_.V.apply(this,arguments)||this;e.darkerPanels=_.M("web_watch_darker_panels");e.commentsHidePanelButton=!1;e.isWatchGrid=!1;e.continuationShowButton=!1;e.isSearch=!1;e.isConstrainedList=!1;e.isWatch=!1;e.eligibleToSwitchToGrid=!1;e.useBigThumbs=!1;e.epRestyle=!1;e.isCarouselInFeed=!0;e.topSpacingZero=!1;e.continuationIsInitialLoad=!0;e.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");e.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");e.notSticky=
!0;e.mastheadHeight=0;e.isStickyChipBarSetup=!1;e.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};e.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return e};
_.U(Fc,_.V);_.Y=Fc.prototype;_.Y.updateLockupContainerTypes=function(e){if(this.eligibleToSwitchToGrid){var z;(z=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||z.forEach(function(C){C.containerType=e})}};
_.Y.getItemsPath=function(){return"data.contents"};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.M("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.M("kevlar_low_priority_continuation")}}};
_.Y.created=function(){};
_.Y.updateStickySetup=function(){_.M("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.Y.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(Q_T(!this.notSticky))};
_.Y.setupStickyChipBar=function(){var e=this;if(!this.isStickyChipBarSetup&&_.M("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.lE(this,this.updateHeaderState));var z;this.mastheadHeight=((z=document.querySelector("ytd-masthead"))==null?void 0:z.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(C){e.handleIntersect(C)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){e.updateHeaderState();e.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.Y.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.lE(this,this.updateHeaderState));var e;(e=this.intersectionObserver)==null||e.disconnect();var z;(z=this.resizeObserver)==null||z.disconnect()}};
_.Y.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.Y.handleIntersect=function(e){this.notSticky=e[0].intersectionRatio===1};
_.Y.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.Y.detached=function(){this.teardownStickyChipBar()};
_.Y.updated=function(e){e.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.Y.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var e=_.XC(this.hostElement).querySelector("ytd-comments-header-renderer");e&&(e.hidePanelButton=this.commentsHidePanelButton)}};
_.Y.onRetrieveLocation=function(e,z){this.containsComments()&&(this.firstCommentsLoaded=z.hasComments=!0)};
_.Y.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.Y.onLoadReloadContinuation=function(e,z){var C=this;e.stopPropagation();this.isReloading=!0;_.pi(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(w){var K=_.lh().resolve(_.UG);w=z(w);K.postData(w).then(function(G){C.onReloadContinuationData(G)})}})};
_.Y.onReloadContinuationData=function(e){if(e=this.get("response.continuationContents.itemSectionContinuation",e)||this.get("response.contents.itemSectionRenderer",e)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",e)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",e))this.set("data.contents",e.contents||e.results),e.header&&this.set("data.header",e.header),this.set("data.continuations",
e.continuations||[]);this.isReloading=!1};
_.Y.computeContentsClass=function(e){return e?"reloading":""};
_.Y.computeSectionIdentifier=function(e){return e==null?void 0:e.sectionIdentifier};
_.Y.computeFitContainer=function(e){return(e==null?void 0:e.sectionIdentifier)==="youchat-item-section"};
_.Y.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.M("kevlar_disable_comments_auto_load")};
_.Y.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.Y.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.Y.computeHasDestinationShelfRenderer=function(e){var z,C;return!!(e==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:C.destinationShelfRenderer)};
_.Y.computeHasSectionGroupViewModel=function(e){var z,C;return!!(e==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:C.sectionGroupViewModel)};
_.Y.computeHasQrCodeRenderer=function(e){var z,C;return!!(e==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:C.qrCodeRenderer)};
_.Y.computeStaticCommentsHeader=function(e){return e&&this.containsComments()};
_.Y.computeEpRestyle=function(e){return _.M("web_ep_restyling")&&e&&this.containsComments()};
_.Y.computeIsContinuationCommentSection=function(e){return(e==null?void 0:e.targetId)==="shorts-engagement-panel-comments-section"||(e==null?void 0:e.targetId)==="comments-section"||(e==null?void 0:e.targetId)==="engagement-panel-comments-section"};
_.Y.computeSuppressPaddingDisclaimer=function(){var e,z,C,w;return!!((e=this.data)==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:(w=C.productListHeaderRenderer)==null?0:w.suppressPaddingDisclaimer)};
_.Y.computeHeaderStyle=function(e){switch(e==null?void 0:e.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.Y.dataChanged=function(){this.firstCommentsLoaded=!1};
_.Y.observeDataContentsLength=function(){var e,z;((e=this.data)==null?0:(z=e.contents)==null?0:z.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.Y.onYtDismissibleItemDismissedChange=function(e){this._setItemDismissed(e.type==="yt-dismissible-item-dismissed")};
_.Y.triggerContinuations=function(){for(var e=_.XC(this.hostElement).querySelector("#continuations").children,z=0;z<e.length;z++)e[z].trigger()};
_.Y.triggerInitialContinuations=function(){for(var e=_.XC(this.hostElement).querySelector("#continuations").children,z=0;z<e.length;z++)e[z].triggerIfNotPreviouslyTriggered()};
_.Y.handleYtItemSectionContinuation=function(e,z){var C;z&&((C=this.data)==null?void 0:C.sectionIdentifier)!==z||(this.set("data.continuations",[e]),this.triggerContinuations())};
_.Y.handleYtItemSectionReplace=function(e,z){var C;z&&((C=this.data)==null?void 0:C.sectionIdentifier)!==z||(this.set("data.contents",e),this.set("data.continuations",[]))};
_.Y.computeUseHeightHack=function(e){return e&&!_.M("kevlar_disable_height_hack")};
_.Y.computeTopSpacingZero=function(e){return e};
_.Y.continuationShowButtonChanged=function(){var e=_.XC(this.hostElement).querySelector("ytd-continuation-item-renderer");e&&(e.showButton=this.continuationShowButton)};
_.Y.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("data-changed",this.data))};
_.lB.Object.defineProperties(Fc.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.M("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!((e=this.data)==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:C.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w,K,G,X;return!!((e=this.data)==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:(w=C.shelfRenderer)==null?0:(K=w.content)==null?0:(G=K.gridRenderer)==null?0:(X=G.targetId)==null?0:X.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!((e=this.data)==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:C.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!((e=this.data)==null?0:(z=e.contents)==null?0:(C=z[0])==null?0:C.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Mv("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.M("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.M("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs&&_.M("web_watch_next_big_thumbs_expanded_layout")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.M("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!((e=this.data)==null?0:(z=e.header)==null?0:z.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.M("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.M("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Fc.prototype.dataChangedForBinding=Fc.prototype.dataChangedForBinding;Fc.prototype.continuationShowButtonChanged=Fc.prototype.continuationShowButtonChanged;Fc.prototype.onYtDismissibleItemDismissedChange=Fc.prototype.onYtDismissibleItemDismissedChange;Fc.prototype.observeDataContentsLength=Fc.prototype.observeDataContentsLength;Fc.prototype.dataChanged=Fc.prototype.dataChanged;Fc.prototype.onServiceRequestCompleted=Fc.prototype.onServiceRequestCompleted;Fc.prototype.onLoadReloadContinuation=Fc.prototype.onLoadReloadContinuation;
Fc.prototype.onRetrieveLocation=Fc.prototype.onRetrieveLocation;Fc.prototype.commentsHidePanelButtonChanged=Fc.prototype.commentsHidePanelButtonChanged;Fc.prototype.dispatchChipBarIsSticky=Fc.prototype.dispatchChipBarIsSticky;Fc.prototype.updateStickySetup=Fc.prototype.updateStickySetup;Fc.prototype.updateLockupContainerTypes=Fc.prototype.updateLockupContainerTypes;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Fc.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Fc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],Fc.prototype,"ytLazyListBehavior",void 0);_.d([_.W(_.FO.YtNextContinuationBehavior),_.B("design:type",Object)],Fc.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.W(_.Ea),_.B("design:type",Object)],Fc.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Fc.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Fc.prototype,"ytdReduxBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Fc.prototype,"darkerPanels",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Boolean)],Fc.prototype,"engagementPanel",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"commentsHidePanelButton",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"isWatchGrid",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"continuationShowButton",void 0);_.d([_.F({computed:"computeIsContinuationCommentSection(data)"}),_.B("design:type",Boolean)],Fc.prototype,"continuationIsCommentsSection",void 0);
_.d([_.F({value:!0}),_.B("design:type",Boolean)],Fc.prototype,"autoFill",void 0);_.d([_.F(),_.B("design:type",Boolean)],Fc.prototype,"continuationDisablePrescanVisibility",void 0);_.d([_.F(),_.B("design:type",Boolean)],Fc.prototype,"isReloading",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"isSearch",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"isConstrainedList",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"isWatch",void 0);
_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"eligibleToSwitchToGrid",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"useBigThumbs",void 0);_.d([_.F({selector:_.Sj,reflectToAttribute:!0}),_.B("design:type",Object)],Fc.prototype,"isGridViewEnabled",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Object)],Fc.prototype,"epRestyle",void 0);
_.d([_.P("isWatch"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"hideShortsShelfHeader",null);_.d([_.P("isSearch","isWatch"),_.B("design:type",String),_.B("design:paramtypes",[])],Fc.prototype,"thumbnailWidth",null);_.d([_.P("isSearch","containerWidth"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fc.prototype,"thumbnailTargetWidth",null);
_.d([_.P("isSearch","isWatch","useBigThumbs"),_.B("design:type",String),_.B("design:paramtypes",[])],Fc.prototype,"sizing",null);_.d([_.P("isWatch","isGridViewEnabled","useBigThumbs","data"),_.F({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],Fc.prototype,"lockupContainerType",null);_.d([_.mi("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],Fc.prototype,"updateLockupContainerTypes",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Fc.prototype,"pageSubtype",void 0);_.d([_.F(),_.B("design:type",Number)],Fc.prototype,"containerWidth",void 0);_.d([_.F(),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"isPlaylist",null);_.d([_.F(),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"isClipList",null);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"isCarouselInFeed",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"isPlaylistVideoContainer",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"isSearchFrictionPage",null);_.d([_.F({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.B("design:type",Boolean)],Fc.prototype,"useHeightHack",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.B("design:type",Object)],Fc.prototype,"topSpacingZero",void 0);_.d([_.F({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.B("design:type",Boolean)],Fc.prototype,"showButton",void 0);_.d([_.F(),_.B("design:type",Boolean)],Fc.prototype,"firstCommentsLoaded",void 0);_.d([_.F(),_.B("design:type",Object)],Fc.prototype,"continuationIsInitialLoad",void 0);
_.d([_.F({reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],Fc.prototype,"itemDismissed",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.B("design:type",String)],Fc.prototype,"sectionIdentifier",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.B("design:type",String)],Fc.prototype,"fitContainer",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.B("design:type",Boolean)],Fc.prototype,"hasDestinationShelfRenderer",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.B("design:type",Boolean)],Fc.prototype,"staticCommentsHeader",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Fc.prototype,"enableSqueezebackPanels",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Fc.prototype,"enableAnchoredPanel",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.B("design:type",Boolean)],Fc.prototype,"hasSectionGroupViewModel",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.B("design:type",Boolean)],Fc.prototype,"hasQrCodeRenderer",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.B("design:type",Boolean)],Fc.prototype,"suppressDisclaimerSeparator",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.B("design:type",String)],Fc.prototype,"headerStyle",void 0);_.d([_.P("isSearch","isWatch","useBigThumbs"),_.B("design:type",Object),_.B("design:paramtypes",[])],Fc.prototype,"lockupExperiments",null);
_.d([_.P("isSearch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"typographyBump",null);_.d([_.nP("#header"),_.B("design:type",HTMLElement)],Fc.prototype,"header",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Fc.prototype,"notSticky",void 0);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],Fc.prototype,"useChipBarViewModelHeader",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"expFixPlaylistHeader",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Fc.prototype,"expFixPlaylistHeaderV2",null);_.d([_.mi("pageSubtype"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"updateStickySetup",null);
_.d([_.mi("notSticky"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"dispatchChipBarIsSticky",null);_.d([_.mi("commentsHidePanelButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"commentsHidePanelButtonChanged",null);_.d([_.Qi("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Fc.prototype,"onRetrieveLocation",null);
_.d([_.Qi("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Function]),_.B("design:returntype")],Fc.prototype,"onLoadReloadContinuation",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"onServiceRequestCompleted",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"dataChanged",null);
_.d([_.Ux("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"observeDataContentsLength",null);_.d([_.Qi("yt-dismissible-item-dismissed"),_.Qi("yt-dismissible-item-undismissed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Fc.prototype,"onYtDismissibleItemDismissedChange",null);
_.d([_.mi("continuationShowButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"continuationShowButtonChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fc.prototype,"dataChangedForBinding",null);_.d([_.SL({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Fc);
_.u(Fc,"ytd-item-section-renderer",function(){if(AMo!==void 0)return AMo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return AMo=e},{mode:1});var sm$;var Egg=_.AO(_.kk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var BLl={},Oy1=(BLl[0]={title:_.K4(_.kk("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K4(_.kk("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.C4("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},BLl[1]={title:_.K4(_.kk("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.C4("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},BLl);_.hq("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var VW=function(){var e=_.V.apply(this,arguments)||this;e.allVideosCount=0;e.allPlaylistCount=0;e.isOnline=!1;e.shouldRenderDownloadsBanner=!1;e.shouldRenderDownloadsBannerUpsell=!1;e.hasOptedIntoSmartDownloads=!1;e.areAllSmartDownloadsDeleted=!1;e.smartDownloadsCompleted=!1;return e};
_.U(VW,_.V);VW.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
VW.prototype.attached=function(){this.downloadsToRenderChanged()};
VW.prototype.detached=function(){this.set("renderableData",{})};
VW.prototype.downloadsToRenderChanged=function(){var e=_.eB().getState().entities,z=_.L4(e),C=_.M("kevlar_playlist_dl_page_killswitch")?OEL(e):_.hO(e),w=_.vqo(e),K=_.RO8(e),G=_.Uk(z);e=_.Ok(e);this.set("renderableData",VMg(C,z,w,K,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,G,e))};
VW.prototype.downloadsToRenderChanged=VW.prototype.downloadsToRenderChanged;_.d([_.W(_.QX),_.B("design:type",Object)],VW.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],VW.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],VW.prototype,"renderableData",void 0);_.d([_.F({selector:_.tf5}),_.B("design:type",Object)],VW.prototype,"allVideosCount",void 0);_.d([_.F({selector:aXm}),_.B("design:type",Object)],VW.prototype,"allPlaylistCount",void 0);_.d([_.F({selector:_.SJ}),_.B("design:type",Object)],VW.prototype,"isOnline",void 0);_.d([_.F({selector:_.pho}),_.B("design:type",Object)],VW.prototype,"shouldRenderDownloadsBanner",void 0);
_.d([_.F({selector:_.wko}),_.B("design:type",Object)],VW.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.d([_.F({selector:_.eJ4}),_.B("design:type",Object)],VW.prototype,"hasOptedIntoSmartDownloads",void 0);_.d([_.F({selector:_.zJg}),_.B("design:type",Object)],VW.prototype,"areAllSmartDownloadsDeleted",void 0);_.d([_.F({selector:C9g}),_.B("design:type",Object)],VW.prototype,"smartDownloadsCompleted",void 0);
_.d([_.Ux("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VW.prototype,"downloadsToRenderChanged",null);_.d([_.SL({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],VW);
_.u(VW,"ytd-offline-item-section-renderer",function(){if(sm$!==void 0)return sm$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return sm$=e},
{mode:1});var thW;var gNf;var f5=function(){return _.V.apply(this,arguments)||this};
_.U(f5,_.V);
f5.prototype.onDataChanged=function(){if(this.JSC$17025_lastData){var e=this.getFilterClass(this.JSC$17025_lastData.status);e&&this.hostElement.classList.remove(e)}var z;(e=this.getFilterClass((z=this.data)==null?void 0:z.status))&&this.hostElement.classList.add(e);e==="selected"?_.XC(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.XC(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");e==="disabled"?_.XC(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.XC(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17025_lastData=this.data};
f5.prototype.getFilterClass=function(e){switch(e){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
f5.prototype.onDataChanged=f5.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],f5.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],f5.prototype,"onDataChanged",null);_.d([_.SL({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],f5);
_.u(f5,"ytd-search-filter-renderer",function(){if(gNf!==void 0)return gNf;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return gNf=e},{mode:_.bA("kevlar_poly_si_batch_j075")?1:2});var Sz=function(){return _.V.apply(this,arguments)||this};
_.U(Sz,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Sz.prototype,"data",void 0);_.d([_.SL({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Sz);
_.u(Sz,"ytd-search-filter-group-renderer",function(){if(thW!==void 0)return thW;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return thW=e},{mode:_.bA("kevlar_poly_si_batch_j075")?1:2});var jmY;var uI=function(){return _.V.apply(this,arguments)||this};
_.U(uI,_.V);uI.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.S1());this.isCollapsed=!this.isCollapsed};
uI.prototype.navigateToAboutTheseResultsPage=function(){var e=_.Ng("https://www.youtube.com/howyoutubeworks/product-features/search/");e?_.Kq(window,e,"_blank"):_.AR(Error("Uh"))};
uI.prototype.dataChanged=function(){this.isCollapsed=!0};
uI.prototype.computeShowBottomBorder=function(){var e,z,C;return!!((e=this.data)==null?0:(z=e.button)==null?0:z.toggleButtonRenderer)||!((C=this.data)==null||!C.aboutTheseResultsButton)};
uI.prototype.dataChanged=uI.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uI.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.B("design:type",Boolean)],uI.prototype,"showBottomBorder",void 0);_.d([_.F(),_.B("design:type",Boolean)],uI.prototype,"renderCollapsibleMenu",void 0);
_.d([_.F(),_.B("design:type",Boolean)],uI.prototype,"isCollapsed",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uI.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],uI);
_.u(uI,"ytd-search-sub-menu-renderer",function(){if(jmY!==void 0)return jmY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jmY=e},{mode:1});var ykf;var cko=new _.Mt("SECTION_LIST_RENDERER_TOKEN");var AkW;var ds=function(){return _.V.apply(this,arguments)||this};
_.U(ds,_.V);ds.prototype.computeStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ds.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],ds.prototype,"headerStyle",void 0);_.d([_.SL({is:"ytd-text-header-renderer",disableElementRegistration:!0})],ds);
_.u(ds,"ytd-text-header-renderer",function(){if(AkW!==void 0)return AkW;var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return AkW=e},{mode:1});var ZoY;var DZ=function(){return _.V.apply(this,arguments)||this};
_.U(DZ,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],DZ.prototype,"data",void 0);_.d([_.SL({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],DZ);
_.u(DZ,"ytd-minor-moment-header-renderer",function(){if(ZoY!==void 0)return ZoY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ZoY=e},{mode:1});var p1a;var iI=function(){return _.V.apply(this,arguments)||this};
_.U(iI,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iI.prototype,"data",void 0);_.d([_.SL({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],iI);
_.u(iI,"ytd-minor-moment-setting-alert-renderer",function(){if(p1a!==void 0)return p1a;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return p1a=e},{mode:1});var eCE;var zCq;var N7=function(){var e=_.V.apply(this,arguments)||this;e.booleanSettingById=!1;e.smartDownloadsEnabledVE=_.mT(128287);e.smartDownloadsDisabledVE=_.mT(128286);e.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return e};
_.U(N7,_.V);_.Y=N7.prototype;_.Y.attachSmartDownloadsSettingVes=function(){var e;this.activeVeForLogging||((e=this.data)==null?void 0:e.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.yQ(_.nm(),this.smartDownloadsEnabledVE),_.yQ(_.nm(),this.smartDownloadsDisabledVE))};
_.Y.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.pi(this.hostElement,"yt-settings-switch-ready")};
_.Y.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.Y.onSwitchChange=function(e){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(e=_.AU(e).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.M("kevlar_settings_switch_resolve_command_killswitch")?_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(e)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.Y.handleUpdateSettingsSwitch=function(e){(e=_.r(e,vKX))&&this.data&&this.data.id===e.id&&this.set("data.enabled",!!e.enabled)};
_.Y.onToggleSettingsSwitch=function(e,z){this.data&&this.data.id===e&&this.set("data.enabled",z!=null?z:!this.data.enabled)};
_.Y.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.fH.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.Y.maybeLogSmartDownloadsSettingVisibility=function(){var e=_.Pr(),z;e&&((z=this.data)==null?void 0:z.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Bf(e,[this.smartDownloadsEnabledVE]),_.tg(e,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Bf(e,[this.smartDownloadsDisabledVE]),_.tg(e,[this.smartDownloadsEnabledVE])))};
_.Y.maybeLogSmartDownloadsSettingClick=function(){var e;((e=this.data)==null?void 0:e.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Ai(_.nm(),this.activeVeForLogging)};
_.Y.updateDataEnabledFromBinding=function(e){this.set("data.enabled",e.detail.value)};
_.lB.Object.defineProperties(N7.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var e=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!e&&(e=this.ytRendererBehavior.getSimpleString(this.data.title));return e}}});
N7.prototype.dataChanged=N7.prototype.dataChanged;_.d([_.W(_.QX),_.B("design:type",Object)],N7.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],N7.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],N7.prototype,"data",void 0);_.d([_.F({selector:function(e,z){if(Object.keys(e==null?void 0:e.entities).length)switch(z){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Eq4(e.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.B("design:type",Object)],N7.prototype,"booleanSettingById",void 0);_.d([_.F(),_.B("design:type",_.vr)],N7.prototype,"activeVeForLogging",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],N7.prototype,"toggleAriaLabel",null);_.d([_.Ux("data"),_.Ux("booleanSettingById"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],N7.prototype,"dataChanged",null);
_.d([_.SL({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],N7);
_.u(N7,"ytd-settings-switch-renderer",function(){if(zCq!==void 0)return zCq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zCq=e},{mode:1});var sb=function(){return _.V.apply(this,arguments)||this};
_.U(sb,_.V);sb.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}}}}};
_.lB.Object.defineProperties(sb.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var e=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(e+=" remove-left-margin");this.data.extraBottomSpace&&(e+=" extra-bottom-space");return e}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sb.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],sb.prototype,"contentsClassName",null);_.d([_.SL({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],sb);
_.u(sb,"ytd-minor-moment-setting-section-renderer",function(){if(eCE!==void 0)return eCE;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return eCE=e},{mode:1});var CoC;var BX=function(){return _.V.apply(this,arguments)||this};
_.U(BX,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],BX.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BX.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],BX);
_.u(BX,"ytd-empty-product-details-renderer",function(){if(CoC!==void 0)return CoC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return CoC=e},{mode:1});var wa5;var KcY;var te=function(){var e=_.V.apply(this,arguments)||this;e.expanded=!0;return e};
_.U(te,_.V);te.prototype.getBadgeRowClass=function(e,z,C){for(var w=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),K=w.next();!K.done;K=w.next())K.value.onShow();e=e.selected;return C?e!==-1?e===z?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(e!==void 0?e:0)===z?"badge-line":"badge-hidden"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],te.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],te.prototype,"expanded",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],te);
_.u(te,"ytd-sponsorships-loyalty-badges-renderer",function(){if(KcY!==void 0)return KcY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return KcY=e},{mode:1});var oLb;var gs=function(){var e=_.V.apply(this,arguments)||this;e.expanded=!0;return e};
_.U(gs,_.V);gs.prototype.getContainerClasses=function(e,z){e=e?"expanded":"collapsed";z&&(e+=" item");return e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gs.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],gs.prototype,"expanded",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],gs);
_.u(gs,"ytd-sponsorships-perk-renderer",function(){if(oLb!==void 0)return oLb;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return oLb=e},{mode:1});var GXE;var jz=function(){var e=_.V.apply(this,arguments)||this;e.expanded=!0;return e};
_.U(jz,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jz.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],jz.prototype,"expanded",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],jz);
_.u(jz,"ytd-sponsorships-perks-renderer",function(){if(GXE!==void 0)return GXE;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return GXE=e},{mode:1});var yW=function(){var e=_.V.apply(this,arguments)||this;e.isCollapsed=!1;return e};
_.U(yW,_.V);yW.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
yW.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
yW.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var e;this.expandCollapseButton=_.r((e=this.data)==null?void 0:e.expandButton,_.a2)}else{var z;this.expandCollapseButton=_.r((z=this.data)==null?void 0:z.collapseButton,_.a2)}};
yW.prototype.updateExpandCollapseButton=yW.prototype.updateExpandCollapseButton;yW.prototype.onDataChanged=yW.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yW.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yW.prototype,"isCollapsed",void 0);_.d([_.F(),_.B("design:type",Object)],yW.prototype,"expandCollapseButton",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yW.prototype,"onDataChanged",null);_.d([_.Ux("data","isCollapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yW.prototype,"updateExpandCollapseButton",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],yW);
_.u(yW,"ytd-sponsorships-expandable-perks-renderer",function(){if(wa5!==void 0)return wa5;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return wa5=e},{mode:1});var YUo;var cX=function(){return _.V.apply(this,arguments)||this};
_.U(cX,_.V);cX.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],cX.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cX.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],cX);
_.u(cX,"ytd-sponsorships-actionable-message-renderer",function(){if(YUo!==void 0)return YUo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return YUo=e},{mode:1});var bga;var Ae=function(){return _.V.apply(this,arguments)||this};
_.U(Ae,_.V);_.Y=Ae.prototype;_.Y.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.Y.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
_.Y.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Y.computeMessageContainerStyle=function(e){var z=e.expandableItems?" style-clickable":"";return e.messageContainerStyle?e.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+z:"style-unspecified"+z};
_.Y.isSinglePerk=function(e){return!!e.messageContainerStyle&&(e.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||e.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.Y.onExpandedChanged=function(){var e=this;if(this.expanded)for(var z=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),C=z.next();!C.done;C=z.next())C.value.onShow();_.T0(this,function(){_.pi(e.hostElement,"yt-refit")})};
_.Y.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Ae.prototype.onDataChanged=Ae.prototype.onDataChanged;Ae.prototype.onExpandedChanged=Ae.prototype.onExpandedChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ae.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ae.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Ae.prototype,"expanded",void 0);
_.d([_.mi("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ae.prototype,"onExpandedChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ae.prototype,"onDataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Ae);
_.u(Ae,"ytd-sponsorships-expandable-message-renderer",function(){if(bga!==void 0)return bga;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return bga=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var Xa5;var ZZ=function(){return _.V.apply(this,arguments)||this};
_.U(ZZ,_.V);ZZ.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"}}}}};
ZZ.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.r(this.data.endButton,_.a2).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
ZZ.prototype.onDataChanged=ZZ.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ZZ.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZZ.prototype,"onDataChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],ZZ);
_.u(ZZ,"ytd-sponsorships-heading-renderer",function(){if(Xa5!==void 0)return Xa5;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Xa5=e},{mode:1});var J4f;var p5=function(){return _.V.apply(this,arguments)||this};
_.U(p5,_.V);_.d([_.F(),_.B("design:type",Object)],p5.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],p5);
_.u(p5,"ytd-sponsorships-links-renderer",function(){if(J4f!==void 0)return J4f;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return J4f=e},{mode:1});var kXl;var eP=function(){return _.V.apply(this,arguments)||this};
_.U(eP,_.V);_.Y=eP.prototype;_.Y.onDataChanged=function(){if(this.data&&this.data.expandableItems){var e;(e=_.XC(this.hostElement).querySelector("tp-yt-paper-button"))==null||e.setAttribute("role","button")}else{var z;(z=_.XC(this.hostElement).querySelector("tp-yt-paper-button"))==null||z.removeAttribute("role")}};
_.Y.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.Y.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
_.Y.getTileClasses=function(e){return e?"tile expandable-tile":"tile"};
_.Y.getButtonDisabled=function(e){return e?void 0:""};
eP.prototype.onDataChanged=eP.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eP.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],eP.prototype,"expanded",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eP.prototype,"onDataChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],eP);
_.u(eP,"ytd-sponsorships-list-tile-renderer",function(){if(kXl!==void 0)return kXl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return kXl=e},{mode:1});var qU$;var xYL;var zc=function(){return _.V.apply(this,arguments)||this};
_.U(zc,_.V);zc.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],zc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zc.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],zc);
_.u(zc,"ytd-sponsorships-promotion-renderer",function(){if(xYL!==void 0)return xYL;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return xYL=e},{mode:1});var T63;var C8=function(){return _.V.apply(this,arguments)||this};
_.U(C8,_.V);C8.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],C8.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],C8);
_.u(C8,"ytd-sponsorships-purchase-option-renderer",function(){if(T63!==void 0)return T63;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return T63=e},{mode:1});var $Yo;var lTo;var Qhq=function(){return _.V.apply(this,arguments)||this};
_.U(Qhq,_.V);_.d([_.F(),_.B("design:type",Object)],Qhq.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Qhq);
_.u(Qhq,"ytd-ypc-offer-promo-renderer",function(){if(lTo!==void 0)return lTo;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return lTo=e},{mode:1});var wr=function(){return _.V.apply(this,arguments)||this};
_.U(wr,_.V);_.Y=wr.prototype;
_.Y.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"}}}}};
_.Y.expansionCTA=function(e,z){return e&&(z?e.collapseCallToAction:e.expansionCallToAction)};
_.Y.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
_.Y.expansionCallToActionTap=function(){var e=this;this.expanded=!this.expanded;_.T0(this,function(){_.pi(e.hostElement,"yt-refit")})};
_.Y.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var e,z=(e=this.data)==null?void 0:e.onVisible;z&&this.ytComponentBehavior.resolveCommand(z)};
_.Y.computeDisplayTitle=function(e){return!(!e||this.titledisplaystatus!=="show")};
_.Y.computeDisplaySeparator=function(){return!1};
_.Y.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
wr.prototype.onDataChanged=wr.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],wr.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wr.prototype,"data",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],wr.prototype,"expanded",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],wr.prototype,"purchaseButtonClicked",void 0);_.d([_.F({reflectToAttribute:!0,value:"show"}),_.B("design:type",String)],wr.prototype,"titledisplaystatus",void 0);_.d([_.F({computed:"computeDisplayTitle(data.title)"}),_.B("design:type",Boolean)],wr.prototype,"displayTitle",void 0);
_.d([_.F({computed:"computeDisplaySeparator(data)"}),_.B("design:type",Boolean)],wr.prototype,"displaySeparator",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wr.prototype,"onDataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],wr);
_.u(wr,"ytd-sponsorships-tier-renderer",function(){if($Yo!==void 0)return $Yo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return $Yo=e},{mode:2});var K8=function(){return _.V.apply(this,arguments)||this};
_.U(K8,_.V);
K8.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"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],K8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],K8.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],K8);
_.u(K8,"ytd-sponsorships-management-renderer",function(){if(qU$!==void 0)return qU$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return qU$=e},{mode:1});var mYq;var oR=function(){return _.V.apply(this,arguments)||this};
_.U(oR,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oR.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],oR);
_.u(oR,"ytd-open-in-native-app-view-model",function(){if(mYq!==void 0)return mYq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return mYq=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var aTZ;var nLC;var MSW=_.Kb(["top-"]),r4Z=_.Kb(["bottom-"]),Hgl=_.Kb(["left-"]),UYY=_.Kb(["right-"]),vL5={},ITv=function(e,z,C){e.removeAttribute("top-"+C);e.removeAttribute("bottom-"+C);e.removeAttribute("left-"+C);e.removeAttribute("right-"+C);z&&(z.top&&_.xo([_.Qb(MSW)],e,"top-"+C,z.top),z.bottom&&_.xo([_.Qb(r4Z)],e,"bottom-"+C,z.bottom),z.left&&_.xo([_.Qb(Hgl)],e,"left-"+C,z.left),z.right&&_.xo([_.Qb(UYY)],e,"right-"+C,z.right))};
vL5.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(e){var z,C=_.XC((z=this.hostElement)!=null?z:this),w;z=this.cardItemBoxBehaviorMarginTargetId&&C?C.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(w=this.hostElement)!=null?w:this;ITv(z,e,"margin")},
cardItemContainerPaddingChanged_:function(e){var z,C=_.XC((z=this.hostElement)!=null?z:this),w;z=this.cardItemBoxBehaviorPaddingTargetId&&C?C.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(w=this.hostElement)!=null?w:this;ITv(z,e,"padding")}}];var Gc={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 Wcf;var PoY;var Y6=function(){return _.V.apply(this,arguments)||this};
_.U(Y6,_.V);Y6.prototype.textColorChanged_=function(){this.hostElement.style.color=Gc[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Y6.prototype.textColorChanged_=Y6.prototype.textColorChanged_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.d([_.W(vL5.YtCardItemBoxBehavior),_.B("design:type",Object)],Y6.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Y6.prototype,"data",void 0);_.d([_.mi("data.textColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Y6.prototype,"textColorChanged_",null);
_.d([_.fP({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Y6);
_.u(Y6,"yt-card-item-text-renderer",function(){if(PoY===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Wcf===void 0&&(Wcf=document.createElement("template"));var w=Wcf;C.call(z,w.content.cloneNode(!0),e.content.firstChild);PoY=e}e=PoY;return e},{mode:2});var RCE;var Lcv;var bF=function(){return _.V.apply(this,arguments)||this};
_.U(bF,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bF.prototype,"data",void 0);_.d([_.fP({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],bF);
_.u(bF,"yt-card-item-badge-renderer",function(){if(Lcv===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;RCE===void 0&&(RCE=document.createElement("template"));var w=RCE;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Lcv=e}e=Lcv;return e},{mode:2});var hC$;var OgZ;var XJ=function(){return _.V.apply(this,arguments)||this};
_.U(XJ,_.V);XJ.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],XJ.prototype,"data",void 0);_.d([_.fP({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],XJ);
_.u(XJ,"yt-card-item-text-collection-renderer",function(){if(OgZ===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;hC$===void 0&&(hC$=document.createElement("template"));var w=hC$;C.call(z,w.content.cloneNode(!0),e.content.firstChild);OgZ=e}e=OgZ;return e},{mode:2});var ELY;var FcL;var J6=function(){return _.V.apply(this,arguments)||this};
_.U(J6,_.V);J6.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]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],J6.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Number)],J6.prototype,"iconSize",void 0);_.d([_.fP({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],J6);
_.u(J6,"yt-card-item-text-with-button-renderer",function(){if(FcL===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ELY===void 0&&(ELY=document.createElement("template"));var w=ELY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);FcL=e}e=FcL;return e},{mode:2});var k6=function(){return _.V.apply(this,arguments)||this};
_.U(k6,_.V);k6.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],k6.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],k6.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],k6);
_.u(k6,"ytd-commerce-cart-summary-line-item-renderer",function(){if(nLC!==void 0)return nLC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return nLC=e},{mode:1});_.hq("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var qf=function(){var e=_.V.apply(this,arguments)||this;e.hidden=!1;return e};
_.U(qf,_.V);_.Y=qf.prototype;_.Y.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"}}}}};
_.Y.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.Y.updateSummary=function(){var e=this.commerceCartCheckoutButtonEntity,z;if(((z=this.data)==null?0:z.cartButton)&&e.checkoutSummaryText){var C,w=S4((C=this.data)==null?void 0:C.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",un(e.checkoutSummaryText));if(e.checkoutDetailText){var K;C=S4((K=this.data)==null?void 0:K.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+C+".cardItemTextRenderer.text",un(e.checkoutDetailText))}if(e.checkoutAdditionalMetadataText){var G;
K=S4((G=this.data)==null?void 0:G.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",un(e.checkoutAdditionalMetadataText))}}else e.estimatedTotalPrice&&(G=S4((w=this.data)==null?void 0:w.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",un(e.estimatedTotalPrice)))};
_.Y.updateIsHidden=function(){var e,z=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.isHidden;z!==void 0&&(this.hidden=z)};
_.Y.updateCheckoutButton=function(){var e,z=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.isDisabled;z!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",z);var C;e=(C=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:C.innertubeCommand;e!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",e);var w;C=(w=this.commerceCartCheckoutButtonEntity)==null?void 0:w.checkoutButtonText;C!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:C})};
qf.prototype.entityChanged=qf.prototype.entityChanged;_.d([_.W(_.QX),_.B("design:type",Object)],qf.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],qf.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],qf.prototype,"fullWidth",void 0);_.d([_.F(),_.B("design:type",Object)],qf.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],qf.prototype,"compact",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],qf.prototype,"hidden",void 0);
_.d([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qBk}),_.B("design:type",Object)],qf.prototype,"commerceCartCheckoutButtonEntity",void 0);_.d([_.mi("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qf.prototype,"entityChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],qf);
_.u(qf,"ytd-commerce-cart-checkout-button-renderer",function(){if(aTZ!==void 0)return aTZ;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return aTZ=e},{mode:2});var VSY;_.fTv={};
_.fTv.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",_.lE(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.lE(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(e){!this.tappableItemBehaviorTapEnabled||e.keyCode!==13&&e.keyCode!==32||e.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var e=this.data.onTap;e.ypcGetCartEndpoint?(_.wQ(this.hostElement,[e]),this.tappableItemBehaviorTapEnabled=!1):e.ypcOffersEndpoint?_.wQ(this.hostElement,[e]):_.KK(this.hostElement,[e],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(e){this.tappableItemBehaviorTapEnabled=!!e},
tappableItemBehaviorOnTapEnabledChanged_:function(){var e=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(e.setAttribute("tabIndex",0),e.setAttribute("role","button")):(e.removeAttribute("tabIndex"),e.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(e){e.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var SUb;var us5;var x6=function(){return _.V.apply(this,arguments)||this};
_.U(x6,_.V);x6.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.OT("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.OT("sharingToggleButtonAndDefaultButton")}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],x6.prototype,"data",void 0);_.d([_.fP({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],x6);
_.u(x6,"yt-card-item-actions-renderer",function(){if(us5===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;SUb===void 0&&(SUb=document.createElement("template"));var w=SUb;C.call(z,w.content.cloneNode(!0),e.content.firstChild);us5=e}e=us5;return e},{mode:2});var dYW;var DYf;var igv;var N6q;var shl;var B6Y;var Tc=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return e};
_.U(Tc,_.V);Tc.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Tc.prototype.handleDarkModeToggledAction_=function(e){this.isDarkTheme_=e};
Tc.prototype.computeThemeImage_=function(e,z){if(!e||!e.imageLight)return!1;this.isCircular_=e.isCircular;e.imageWidth&&(this.hostElement.style.width=e.imageWidth+"px");e.imageHeight&&(this.hostElement.style.height=e.imageHeight+"px");e.borderWidth&&(this.image.style.borderWidth=e.borderWidth+"px",this.image.style.borderStyle="solid");e.borderColor&&(this.image.style.borderColor=_.FN(e.borderColor));return z&&e.imageDark?e.imageDark:e.imageLight};
Tc.prototype.computeThemeIcon_=function(e){var z,C;if(!(e==null?0:(z=e.themedIcon)==null?0:(C=z.icon)==null?0:C.iconType))return!1;this.icon.style.color=Gc[e.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(e.imageWidth||18)+"px";this.icon.style.height=(e.imageHeight||18)+"px";return _.qF(e.themedIcon.icon.iconType)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Tc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Tc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(vL5.YtCardItemBoxBehavior),_.B("design:type",Object)],Tc.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Tc.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Tc.prototype,"data",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],Tc.prototype,"fit",void 0);_.d([_.F(),_.B("design:type",Boolean)],Tc.prototype,"isDarkTheme_",void 0);_.d([_.F({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.B("design:type",Object)],Tc.prototype,"themeImage_",void 0);_.d([_.F({computed:"computeThemeIcon_(data)"}),_.B("design:type",Object)],Tc.prototype,"themeIcon_",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Object)],Tc.prototype,"isCircular_",void 0);
_.d([_.nP("#image"),_.B("design:type",Object)],Tc.prototype,"image",void 0);_.d([_.nP("#icon"),_.B("design:type",Object)],Tc.prototype,"icon",void 0);_.d([_.fP({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Tc);
_.u(Tc,"yt-themed-image-renderer",function(){if(B6Y===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;shl===void 0&&(shl=document.createElement("template"));var w=shl;C.call(z,w.content.cloneNode(!0),e.content.firstChild);B6Y=e}e=B6Y;return e},{mode:2});var $6=function(){return _.V.apply(this,arguments)||this};
_.U($6,_.V);$6.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"}}}}};
$6.prototype.computeImagePlacement_=function(e){return e||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$6.prototype,"data",void 0);_.d([_.F({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.B("design:type",String)],$6.prototype,"imagePlacement",void 0);
_.d([_.fP({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],$6);
_.u($6,"yt-card-item-text-with-image-renderer",function(){if(N6q===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;igv===void 0&&(igv=document.createElement("template"));var w=igv;C.call(z,w.content.cloneNode(!0),e.content.firstChild);N6q=e}e=N6q;return e},{mode:2});var lF=function(){return _.V.apply(this,arguments)||this};
_.U(lF,_.V);lF.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"}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lF.prototype,"data",void 0);_.d([_.fP({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],lF);
_.u(lF,"yt-card-item-error-renderer",function(){if(DYf===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;dYW===void 0&&(dYW=document.createElement("template"));var w=dYW;C.call(z,w.content.cloneNode(!0),e.content.firstChild);DYf=e}e=DYf;return e},{mode:2});var tSZ;var gLl;_.hq("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Ql=function(){return _.V.apply(this,arguments)||this};
_.U(Ql,_.V);_.Y=Ql.prototype;
_.Y.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"}}}}};
_.Y.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.Y.backgroundColorChanged_=function(){var e,z=(e=this.data)==null?void 0:e.backgroundColor;e=Gc[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.XC(this.hostElement).querySelector("#main-content").style.backgroundColor=e};
_.Y.headerPromoBackgroundColorChanged_=function(){var e,z=(e=this.data)==null?void 0:e.headerPromoBackgroundColor;e=Gc[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.XC(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=e};
_.Y.errorRendererVisibilityChanged_=function(){var e=this.isExpanded_,z;this.isErrorRendererVisible_=!((z=this.data)==null||!z.errorRenderer)&&!e};
_.Y.onYtToggleButton_=function(e,z){this.isExpanded_=z.toggled};
Ql.prototype.onYtToggleButton_=Ql.prototype.onYtToggleButton_;Ql.prototype.errorRendererVisibilityChanged_=Ql.prototype.errorRendererVisibilityChanged_;Ql.prototype.headerPromoBackgroundColorChanged_=Ql.prototype.headerPromoBackgroundColorChanged_;Ql.prototype.backgroundColorChanged_=Ql.prototype.backgroundColorChanged_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(vL5.YtCardItemBoxBehavior),_.B("design:type",Object)],Ql.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.W(_.fTv.YtTappableItemBehavior),_.B("design:type",Object)],Ql.prototype,"ytTappableItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ql.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Ql.prototype,"isExpanded_",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],Ql.prototype,"isErrorRendererVisible_",void 0);_.d([_.mi("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ql.prototype,"backgroundColorChanged_",null);_.d([_.mi("data.headerPromoBackgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ql.prototype,"headerPromoBackgroundColorChanged_",null);
_.d([_.mi("data.errorRenderer","isExpanded_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ql.prototype,"errorRendererVisibilityChanged_",null);_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],Ql.prototype,"onYtToggleButton_",null);_.d([_.fP({is:"yt-card-item-renderer",disableElementRegistration:!0})],Ql);
_.u(Ql,"yt-card-item-renderer",function(){if(gLl===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;tSZ===void 0&&(tSZ=document.createElement("template"));var w=tSZ;C.call(z,w.content.cloneNode(!0),e.content.firstChild);gLl=e}e=gLl;return e},{mode:2});_.hq("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var mQ=function(){var e=_.V.apply(this,arguments)||this;e.hidden=!1;return e};
_.U(mQ,_.V);_.Y=mQ.prototype;_.Y.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.Y.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.Y.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var e,z=(e=this.commerceCartHeaderEntity)==null?void 0:e.isHidden;z!==void 0&&(this.hidden=z)}};
_.Y.updateTitle=function(){var e=this.commerceCartHeaderEntity.isDisabled,z,C,w=(C=_.r((z=this.data)==null?void 0:z.item,rB6))==null?void 0:C.headingRenderer;w&&(z=S4(w,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+z+".0.cardItemTextRenderer.textColor",e?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.Y.updateSummaryText=function(){var e=this.commerceCartHeaderEntity;if(this.compact){var z,C,w=(C=_.r((z=this.data)==null?void 0:z.item,rB6))==null?void 0:C.headingRenderer;w&&(z=S4(w,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+z+".1.cardItemTextRenderer.text",e.shortHeaderSummaryText?un(e.shortHeaderSummaryText):e.headerSummaryText?un(e.headerSummaryText):""))}else{var K;if(z=(K=_.r((w=this.data)==null?void 0:w.item,rB6))==null?void 0:K.additionalInfoRenderer)z=S4(z,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".text",e.headerSummaryText?un(e.headerSummaryText):"")}};
_.Y.updateCheckoutButton=function(){var e=this.commerceCartHeaderEntity,z,C,w=(C=_.r((z=this.data)==null?void 0:z.item,rB6))==null?void 0:C.additionalInfoRenderer;z=S4(w,"buttonRenderer");var K;C=(K=this.commerceCartHeaderEntity)==null?void 0:K.isButtonDisabled;var G;K=(G=this.commerceCartHeaderEntity)==null?void 0:G.isButtonHidden;C!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".buttonRenderer.isDisabled",C);K!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
K);var X;e=(X=e.checkoutButtonCommand)==null?void 0:X.innertubeCommand;e!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+z+".buttonRenderer.command",e)};
mQ.prototype.entityChanged=mQ.prototype.entityChanged;_.d([_.W(_.QX),_.B("design:type",Object)],mQ.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mQ.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],mQ.prototype,"compact",void 0);_.d([_.F({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(e,z){return _.xz(e.entities,"commerceCartHeaderEntity",z)}}),
_.B("design:type",Object)],mQ.prototype,"commerceCartHeaderEntity",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mQ.prototype,"hidden",void 0);_.d([_.mi("commerceCartHeaderEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mQ.prototype,"entityChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],mQ);
_.u(mQ,"ytd-commerce-cart-header-renderer",function(){if(VSY!==void 0)return VSY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return VSY=e},{mode:1});var jhW;var y4Z=_.dJ(function(e,z){var C;return(C=e.onChangeCallback)==null?void 0:C.call(e,z)},1E3),c4E=_.f(function(e){var z=e.data;
var C=e.iconMinus;e=e.iconPlus;var w=function(){return!!z().disabled},K=_.b(_.II(0,void 0,"mKh0af")),G=K.next().value,X=K.next().value;
K=_.T9(function(){if(G()===1){var m,a;(a=(m=z()).onRemoveCommand)==null||a.call(m)}m=G()>z().maxValue?z().maxValue:G()-1;X(m);y4Z(z(),m);return!1});
var J=_.T9(function(){if(G()===z().maxValue)return!1;var m=G()+1;X(m);y4Z(z(),m);return!1});
_.Nm(function(){X(z().value)});
var q={},T={},Q={};return _.x("quantity-incrementer-shape",null,_.x("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.x("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return G()===(z().onRemoveCommand?0:1)||w()},
"aria-label":function(){return G()!==1?z().minusLabel:z().minimumReachedLabel},
"on:click":K},_.x(_.Sf,{model:{circular:!0}}),_.x("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.x("div",{class:_.qT("ytSpecQuantityIncrementerShapeIcon",(q.ytSpecQuantityIncrementerShapeIconDisabled=function(){return w()||G()===(z().onRemoveCommand?0:1)},q))},C()))),_.x("div",{class:_.qT("ytSpecQuantityIncrementerShapeText",(T.ytSpecQuantityIncrementerShapeTextInvalid=function(){return G()>z().maxValue},T.ytSpecQuantityIncrementerShapeTextDisabled=w,T))},G),_.x("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return G()>=z().maxValue||w()},
"aria-label":function(){return G()!==z().maxValue?z().plusLabel:z().maximumReachedLabel},
"on:click":J},_.x(_.Sf,{model:{circular:!0}}),_.x("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.x("div",{class:_.qT("ytSpecQuantityIncrementerShapeIcon",(Q.ytSpecQuantityIncrementerShapeIconDisabled=function(){return G()>=z().maxValue||w()},Q))},e())))))},"Nf");_.KU(_.f(function(e){function z(){C().onRemoveCommand&&_.NF(C().onRemoveCommand)}
var C=e.data;var w=_.vF(Ium,function(){return C().quantityIncrementerEntityKey});
return _.x("yt-quantity-incrementer-view-model",null,_.x(c4E,{data:function(){var K=C(),G;var X=w()?!((G=w())==null||!G.disabled):!1;var J;G=w()?(J=w())==null?void 0:J.quantity:C().quantity;return ulm(K,X,z,G)},
iconMinus:function(){return _.x(_.mB,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.x(_.mB,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Of"),"yt-quantity-incrementer-view-model",{props:{data:_.vh}});var aR=function(){var e=_.V.apply(this,arguments)||this;e.compact=!1;e.hasQuantityIncrementer=!1;return e};
_.U(aR,_.V);aR.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"}}}};
aR.prototype.computeHasQuantityIncrementer=function(){var e;return!!_.r((e=this.data)==null?void 0:e.picker,POg)};
aR.prototype.onLabelClick=function(){var e;(e=this.dropdownEl)==null||e.open()};
_.d([_.nP("ytd-dropdown-renderer"),_.B("design:type",Object)],aR.prototype,"dropdownEl",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],aR.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],aR.prototype,"quantityColor",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],aR.prototype,"compact",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.B("design:type",Object)],aR.prototype,"hasQuantityIncrementer",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],aR);
_.u(aR,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(jhW!==void 0)return jhW;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jhW=e},{mode:1});var A4$;var ZgW;var n8=function(){return _.V.apply(this,arguments)||this};
_.U(n8,_.V);n8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
n8.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
n8.prototype.updateTitle=function(){var e=this.disabledCartItemEntity;e.disableActionName&&this.set("data.title",un(e.disableActionName))};
n8.prototype.updateButton=function(){var e,z=(e=this.disabledCartItemEntity.undoCommand)==null?void 0:e.innertubeCommand;z!==void 0&&(this.set("data.actionButton.buttonRenderer.command",z),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
n8.prototype.entityChanged=n8.prototype.entityChanged;_.d([_.W(_.QX),_.B("design:type",Object)],n8.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(e,z){return _.xz(e.entities,"disabledCartItemEntity",z)}}),
_.B("design:type",Object)],n8.prototype,"disabledCartItemEntity",void 0);_.d([_.F(),_.B("design:type",Object)],n8.prototype,"data",void 0);_.d([_.mi("disabledCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],n8.prototype,"entityChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],n8);
_.u(n8,"ytd-disabled-cart-item-renderer",function(){if(ZgW!==void 0)return ZgW;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ZgW=e},{mode:1});_.hq("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Mf=function(){var e=_.V.apply(this,arguments)||this;e.compact=!1;e.hidden=!1;e.errorHidden=!1;e.noOnTap=!1;return e};
_.U(Mf,_.V);_.Y=Mf.prototype;
_.Y.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"}}}};
_.Y.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.Y.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var e=this.firstButtonElement;e.alignByText=!0;e.iconAlignByText=!0}};
_.Y.computeNoOnTap=function(e){return!e};
_.Y.updateQuantityColor=function(){if(this.pickerElement){var e,z=(e=this.commerceCartItemEntity)==null?void 0:e.quantityColor;this.pickerElement.quantityColor=z}};
_.Y.updateTotalPriceColor=function(){var e,z=(e=this.commerceCartItemEntity)==null?void 0:e.totalPriceColor;if(z){var C;e=_.r((C=this.data)==null?void 0:C.quantityPicker,Udh);if(C=_.r(e==null?void 0:e.price,HTa))C.textColor=z}};
_.Y.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var e,z=(e=this.commerceCartItemEntity)==null?void 0:e.isHidden;z!==void 0&&(this.hidden=z)}};
_.Y.updateHideErrorMessage=function(){var e,z=(e=this.commerceCartItemEntity)==null?void 0:e.hideErrorMessage;z!==void 0&&(this.errorHidden=z)};
_.Y.updateQuantity=function(){var e=this,z,C=(z=this.commerceCartItemEntity)==null?void 0:z.quantity,w;z=(w=this.commerceCartItemEntity)==null?void 0:w.totalPrice;if(C){this.updateTotalPriceColor();this.updateQuantityColor();var K;w=_.r((K=this.data)==null?void 0:K.quantityPicker,Udh);if(K=_.r(w==null?void 0:w.price,HTa))K.text=z?{simpleText:z.content}:void 0;if(z=_.r(w==null?void 0:w.picker,POg))z.quantity=C;var G;if(K=(G=_.r(w==null?void 0:w.picker,vVL))==null?void 0:G.entries){G=!1;z=void 0;K=
_.b(K);for(w=K.next();!w.done;w=K.next())w=w.value,w.dropdownItemRenderer&&(z||(z=w.dropdownItemRenderer),w.dropdownItemRenderer.isSelected=!1,C===w.dropdownItemRenderer.int32Value&&(G=!0,w.dropdownItemRenderer.isSelected=!0));!G&&z&&(z.isSelected=!0)}_.T0(this,function(){var X;e.set("data.quantityPicker",_.de.unsafeClone((X=e.data)==null?void 0:X.quantityPicker))})}};
Mf.prototype.onYtRendererstamperFinished=Mf.prototype.onYtRendererstamperFinished;Mf.prototype.entityChanged=Mf.prototype.entityChanged;_.d([_.F(),_.B("design:type",Object)],Mf.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Mf.prototype,"compact",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Mf.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Mf.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(e,z){return _.xz(e.entities,"commerceCartItemEntity",z)}}),
_.B("design:type",Object)],Mf.prototype,"commerceCartItemEntity",void 0);_.d([_.F(),_.B("design:type",Object)],Mf.prototype,"quantityPicker",void 0);_.d([_.F(),_.B("design:type",Object)],Mf.prototype,"compactQuantityPicker",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Mf.prototype,"hidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Mf.prototype,"errorHidden",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.B("design:type",Object)],Mf.prototype,"noOnTap",void 0);_.d([_.nP("ytd-commerce-cart-item-quantity-picker-renderer"),_.B("design:type",Object)],Mf.prototype,"pickerElement",void 0);_.d([_.nP("yt-button-renderer"),_.B("design:type",Element)],Mf.prototype,"firstButtonElement",void 0);
_.d([_.mi("commerceCartItemEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mf.prototype,"entityChanged",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mf.prototype,"onYtRendererstamperFinished",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Mf);
_.u(Mf,"ytd-commerce-cart-item-renderer",function(){if(A4$!==void 0)return A4$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return A4$=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var paW;var eWq;var rr=function(){return _.V.apply(this,arguments)||this};
_.U(rr,_.V);rr.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}}}}}};
rr.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
rr.prototype.updateCheckoutLineItems=function(){var e,z=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.checkoutLineItems;z&&(e=z.map(function(C){a:{var w=C.price,K=C.description;switch(C.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":C={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:un(K),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:un(w),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:C={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:un(K),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:un(w),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return C}),this.set("data.summaryLineItems",e))};
rr.prototype.updateIsHidden=function(){var e,z=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.isHidden;z!==void 0&&(this.hostElement.hidden=z)};
rr.prototype.entityChanged=rr.prototype.entityChanged;_.d([_.W(_.QX),_.B("design:type",Object)],rr.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],rr.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],rr.prototype,"data",void 0);_.d([_.F({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:qBk}),_.B("design:type",Object)],rr.prototype,"commerceCartCheckoutButtonEntity",void 0);_.d([_.mi("commerceCartCheckoutButtonEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rr.prototype,"entityChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],rr);
_.u(rr,"ytd-commerce-cart-summary-renderer",function(){if(eWq!==void 0)return eWq;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return eWq=e},{mode:1});var zW3={};zW3.InjectBehavior=[CJk.InjectBehavior];var C$q;var wlW;var HY=function(){return _.V.apply(this,arguments)||this};
_.U(HY,_.V);
HY.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:_.OT("menuRenderer")}}};
HY.prototype.onMenuTap=function(e){e.stopPropagation()};
_.lB.Object.defineProperties(HY.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 e,z;return!(((e=this.data)==null||!e.sectionHeading)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var e,z;return!(((e=this.data)==null||!e.image)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var e,z;return!(((e=this.data)==null||!e.menu)&&((z=this.data)==null?void 0:z.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.fTv.YtTappableItemBehavior),_.B("design:type",Object)],HY.prototype,"ytTappableItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],HY.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data.accessibilityData"),_.B("design:type",String),_.B("design:paramtypes",[])],HY.prototype,"ariaLabel",null);_.d([_.P("data.sectionHeading","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HY.prototype,"sectionHeadingVisible",null);_.d([_.P("data.image","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HY.prototype,"imageVisible",null);
_.d([_.P("data.menu","data.layout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],HY.prototype,"menuVisible",null);_.d([_.fP({is:"yt-activity-item-renderer",disableElementRegistration:!0})],HY);
_.u(HY,"yt-activity-item-renderer",function(){if(wlW===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;C$q===void 0&&(C$q=document.createElement("template"));var w=C$q;C.call(z,w.content.cloneNode(!0),e.content.firstChild);wlW=e}e=wlW;return e},{mode:2});var K5E;var oZY;var GLv;var Yqo;var UK=function(){return _.V.apply(this,arguments)||this};
_.U(UK,_.V);
UK.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"}}}}};
UK.prototype.backgroundColorChanged_=function(){var e,z=(e=this.data)==null?void 0:e.backgroundColor;this.hostElement.style.backgroundColor=Gc[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
UK.prototype.backgroundColorChanged_=UK.prototype.backgroundColorChanged_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],UK.prototype,"data",void 0);
_.d([_.mi("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UK.prototype,"backgroundColorChanged_",null);_.d([_.fP({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],UK);
_.u(UK,"yt-offer-item-upsell-renderer",function(){if(Yqo===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;GLv===void 0&&(GLv=document.createElement("template"));var w=GLv;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Yqo=e}e=Yqo;return e},{mode:2});_.hq("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var vY=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};e.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return e};
_.U(vY,_.V);_.Y=vY.prototype;
_.Y.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:_.OT("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.Y.computeContainerStyle_=function(e){return e};
_.Y.computeContainerIsHidden_=function(e){return e&&!!e.isHidden};
_.Y.computeShowSpinner_=function(e,z){return e&&z==="in-progress"};
_.Y.computeShowMoreContentsButton_=function(e,z,C,w,K){return!(!(w&&w.length||K&&K.length&&C)||!e||z)};
_.Y.onToggleButton_=function(e){var z=this;e.stopPropagation();this.isExpanded_=e.detail&&e.detail.toggled;var C,w;this.isExpanded_&&!this.data.continuationSection.length&&((C=this.data)==null?0:(w=C.continuation)==null?0:w.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.pi(this.hostElement,"yt-load-next-continuation",function(K){return z.getContinuationUrl_(z.data.continuation.onClickContinuationData,K)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.wQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.Y.onShowMoreContentsButtonClicked_=function(e){var z=this;e.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.pi(this.hostElement,"yt-load-next-continuation",function(C){return z.getContinuationUrl_(z.data.continuations[0].nextContinuationData,C)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.wQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.Y.getContinuationUrl_=function(e,z){var C=e.continuation;e=e.clickTrackingParams;var w=_.Pr();e&&w&&_.gQ(w,_.v9(e));return _.XF(z,{continuation:C})};
_.Y.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var e=_.XC(this.hostElement).querySelector("#continuation-section");e&&(e=e.querySelectorAll("ytmusic-item-section-renderer"))&&e.forEach(function(z){return z.classList.add("memberships-and-purchases")})};
_.Y.dataChanged_=function(){var e;this.isExpanded_=!((e=this.data)==null||!e.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.Y.updateCardOnClickCommand_=function(e){e=_.r(e,TiL);var z,C;this.data&&((z=this.data)==null?0:z.targetId)&&e&&e.targetId===((C=this.data)==null?void 0:C.targetId)&&e.onClickCommand&&(this.data.onClickCommand=e.onClickCommand,this.isOnClickCommand_=!0)};
_.Y.backgroundColorChanged_=function(){var e,z=(e=this.data)==null?void 0:e.backgroundColor;this.hostElement.style.backgroundColor=Gc[z||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
vY.prototype.backgroundColorChanged_=vY.prototype.backgroundColorChanged_;vY.prototype.dataChanged_=vY.prototype.dataChanged_;vY.prototype.nextContinuationDataUpdated_=vY.prototype.nextContinuationDataUpdated_;vY.prototype.onToggleButton_=vY.prototype.onToggleButton_;_.d([_.W(_.Ea),_.B("design:type",Object)],vY.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],vY.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.FO.YtNextContinuationBehavior),_.B("design:type",Object)],vY.prototype,"ytNextContinuationBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.d([_.W(zW3.InjectBehavior),_.B("design:type",Object)],vY.prototype,"injectBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vY.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],vY.prototype,"compact",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],vY.prototype,"isExpanded_",void 0);_.d([_.F({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.B("design:type",String)],vY.prototype,"containerStyle_",void 0);_.d([_.F({value:"not-started"}),_.B("design:type",String)],vY.prototype,"continuationStatus_",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.B("design:type",Boolean)],vY.prototype,"showSpinner_",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],vY.prototype,"isOnClickCommand_",void 0);_.d([_.F({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.B("design:type",Boolean)],vY.prototype,"showMoreContentsButton_",void 0);
_.d([_.F({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(e,z){return!z||e.entities?null:_.xz(e.entities,"cardItemContainerEntity",z)}}),
_.B("design:type",Object)],vY.prototype,"cardItemContainerEntity_",void 0);_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vY.prototype,"onToggleButton_",null);_.d([_.Qi("yt-next-continuation-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vY.prototype,"nextContinuationDataUpdated_",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vY.prototype,"dataChanged_",null);_.d([_.mi("data.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vY.prototype,"backgroundColorChanged_",null);_.d([_.fP({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],vY);
_.u(vY,"yt-card-item-container-renderer",function(){if(oZY===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;K5E===void 0&&(K5E=document.createElement("template"));var w=K5E;C.call(z,w.content.cloneNode(!0),e.content.firstChild);oZY=e}e=oZY;return e},{mode:2});var IR=function(){return _.V.apply(this,arguments)||this};
_.U(IR,_.V);IR.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"}}}};
IR.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
IR.prototype.computeLoadingHidden=function(){var e;return!((e=this.commerceCartPageStateEntity)==null?0:e.cartActionInProgress)};
IR.prototype.updateNotification=function(){var e,z=(e=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:e.summaryText;z&&this.set("data.cartNotification",un(z))};
IR.prototype.notificationEntityChanged=IR.prototype.notificationEntityChanged;_.d([_.W(_.QX),_.B("design:type",Object)],IR.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],IR.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],IR.prototype,"data",void 0);_.d([_.F({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(e,z){return _.xz(e.entities,"commerceCartExpandableNotificationEntity",z)}}),
_.B("design:type",Object)],IR.prototype,"commerceCartExpandableNotificationEntity",void 0);_.d([_.F({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(e,z){return _.xz(e.entities,"commerceCartPageStateEntity",z)}}),
_.B("design:type",Object)],IR.prototype,"commerceCartPageStateEntity",void 0);_.d([_.nP("#spinner"),_.B("design:type",HTMLElement)],IR.prototype,"spinner",void 0);_.d([_.mi("commerceCartExpandableNotificationEntity","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IR.prototype,"notificationEntityChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],IR);
_.u(IR,"ytd-commerce-cart-renderer",function(){if(paW!==void 0)return paW;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return paW=e},{mode:1});var bvo;var WY=function(){var e=_.V.apply(this,arguments)||this;e.bigImage=!1;return e};
_.U(WY,_.V);_.lB.Object.defineProperties(WY.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.placeholderImageUrl}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],WY.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],WY.prototype,"bigImage",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],WY.prototype,"placeholderImageUrl",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],WY);
_.u(WY,"ytd-empty-product-shelf-renderer",function(){if(bvo!==void 0)return bvo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return bvo=e},{mode:1});var Xlq;var PY=function(){var e=_.V.apply(this,arguments)||this;e.itemStyle="link-item";e.watchMetadataRefresh=!1;e.skinnyMode=!1;e.metaPanel=!1;e.inStructuredDescription=!1;e.detailedDescriptionOverride=!1;e.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};e.updateOnResizeDebouncer=null;return e};
_.U(PY,_.V);_.Y=PY.prototype;_.Y.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.Y.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"}}}}};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.Y.attachVEs=function(e){e.trackingParams&&_.nm().graftServerVe(e.trackingParams)};
_.Y.handleUpdateMerchShelfAction=function(e){var z=this,C=_.r(e.updateMerchandiseShelfAction.merchandiseShelf,_.i3a);C&&(C.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){z.attachVEs(C);z.data=C},Number(C.renderDelayMs))):(this.attachVEs(C),this.data=C))};
_.Y.updateOnResize=function(){if(this.JSC$17193_scrollContainer!==void 0&&this.JSC$17193_scrollContainer.clientWidth!==0&&this.items!==void 0){var e=this.JSC$17193_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-e));this.ytdHorizontalListBehavior.reposition_();var z;switch((z=this.data)==null?void 0:z.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var C,
w;((C=this.data)==null?void 0:(w=C.items)==null?void 0:w.length)===1?this.itemStyle="cta-item":this.itemStyle=e>=740?"large-item":"small-item"}}};
_.Y.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.OJ(this.updateOnResizeDebouncer,_.aJ.after(100),this.updateOnResize)};
PY.prototype.debouncedUpdateOnResize=PY.prototype.debouncedUpdateOnResize;PY.prototype.dataChanged=PY.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.u2.YtdHorizontalListBehavior),_.B("design:type",Object)],PY.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],PY.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],PY.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],PY.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PY.prototype,"itemStyle",void 0);_.d([_.F({value:6}),_.B("design:type",Number)],PY.prototype,"initialCount",void 0);
_.d([_.F({value:"data.items"}),_.B("design:type",String)],PY.prototype,"itemsPath",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PY.prototype,"watchMetadataRefresh",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PY.prototype,"skinnyMode",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PY.prototype,"metaPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PY.prototype,"inStructuredDescription",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],PY.prototype,"detailedDescriptionOverride",void 0);_.d([_.nP("#items"),_.B("design:type",HTMLDivElement)],PY.prototype,"items",void 0);_.d([_.nP("#scroll-container"),_.B("design:type",HTMLDivElement)],PY.prototype,"JSC$17193_scrollContainer",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PY.prototype,"dataChanged",null);
_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PY.prototype,"debouncedUpdateOnResize",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],PY);
_.u(PY,"ytd-merch-shelf-renderer",function(){if(Xlq!==void 0)return Xlq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Xlq=e},{mode:2});var JCY;var RR=function(){var e=_.V.apply(this,arguments)||this;e.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 e};
_.U(RR,_.V);_.Y=RR.prototype;
_.Y.addBackstagePostAction=function(e){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(e=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",e))&&(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:e}):this.set("data.contents",[{backstagePostThreadRenderer:e}]))};
_.Y.addBackstageCommentAction=function(e){var z=this.get("addBackstageCommentAction.parentId",e);e=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",e);if(z&&e){z=this.postIdToIndices(z);for(var C=0;C<z.length;C++){var w=z[C];if(w<0)break;w="data.contents."+w+".backstagePostThreadRenderer.comments";this.get(w)&&(this.get(w+".backstageCommentsRenderer.contents")&&this.push(w+".backstageCommentsRenderer.contents",{commentThreadRenderer:e}),this.get(w+".backstageCommentsRenderer.teaserContents")?
this.push(w+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:e}):this.set(w+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:e}]))}}};
_.Y.addBackstageReplyAction=function(e){var z=this.get("addBackstageReplyAction.parentId",e);e=this.get("addBackstageReplyAction.renderer.commentRenderer",e);z&&e&&this.setCreatorReply(z,e)};
_.Y.banAuthorAction=function(e){var z=this.get("banAuthorAction.commentId",e);z&&(e=this.get("banAuthorAction.parentCommentId",e)||this.getParentPostId(z),this.removeFromStream(z,e))};
_.Y.hideReportedCommentAction=function(e){var z=this.get("hideReportedCommentAction.commentId",e);z&&((e=this.get("hideReportedCommentAction.parentCommentId",e))||(e=this.getParentPostId(z)),this.removeFromStream(z,e))};
_.Y.replaceBackstageCommentAction=function(e){var z=this.get("replaceBackstageCommentAction.commentId",e),C=this.get("replaceBackstageCommentAction.parentId",e);e=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",e);if(z&&C&&e){C=this.postIdToIndices(C);for(var w=0;w<C.length;w++){var K=C[w];if(K<0)break;var G=this.commentIdToIndex(z,K,!1);if(G>=0){var X=this.get("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+G+".commentThreadRenderer.replies.commentRepliesRenderer");
X&&(e.replies={commentRepliesRenderer:X});this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",G,1,{commentThreadRenderer:e})}G=this.commentIdToIndex(z,K,!0);if(G>=0){if(X=this.get("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(G+".commentThreadRenderer.replies.commentRepliesRenderer")))e.replies={commentRepliesRenderer:X};this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
G,1,{commentThreadRenderer:e})}}}};
_.Y.replaceBackstagePostAction=function(e){var z=this.get("replaceBackstagePostAction.itemId",e);if(z){z=this.postIdToIndices(z);for(var C=0;C<z.length;C++){var w=z[C];if(w<0)break;var K=this.getPostRendererType(w),G=this.get("replaceBackstagePostAction.renderer."+K,e);if(!G&&K!=="sharedPostRenderer")break;var X=!1;G||(X=!0,G=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",e));if(!G)break;var J={};X?(_.Om(J,oPa,G),this.set("data.contents."+w+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
J)):(_.Om(J,new _.nN(K),G),this.set("data.contents."+w+".backstagePostThreadRenderer.post",J))}}};
_.Y.replaceBackstageReplyAction=function(e){var z=this.get("replaceBackstageReplyAction.replyId",e),C=this.get("replaceBackstageReplyAction.parentId",e);e=this.get("replaceBackstageReplyAction.renderer.commentRenderer",e);z&&e&&C&&this.setCreatorReply(C,e)};
_.Y.removeCommentAction=function(e){var z=this.get("removeCommentAction.commentId",e);if(z){var C=this.get("removeCommentAction.parentCommentId",e);C&&this.get("removeCommentAction.isCreatorReply",e)?this.setCreatorReply(C,void 0):(C||(C=this.getParentPostId(z)),this.removeFromStream(z,C))}};
_.Y.setCreatorReply=function(e,z){var C=this.getParentPostId(e);if(C){C=this.postIdToIndices(C);for(var w=0;w<C.length;w++){var K=C[w];if(K<0)break;var G=this.commentIdToIndex(e,K,!1);if(G>=0){var X="data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+G;G=X+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";X+=".commentThreadRenderer.replies";z==void 0?(this.set(X,{}),this.set(G,!1)):(this.set(X,{commentRepliesRenderer:{teaserContents:[{commentRenderer:z}]}}),
this.set(X+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(G,!0))}G=this.commentIdToIndex(e,K,!0);G>=0&&(G="data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+G,K=G+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",G+=".commentThreadRenderer.replies",z==void 0?(this.set(G,{}),this.set(K,!1)):(this.set(G,{commentRepliesRenderer:{teaserContents:[{commentRenderer:z}]}}),this.set(K,!0)))}}};
_.Y.removeFromStream=function(e,z){if(z){z=this.postIdToIndices(z);for(var C=0;C<z.length;C++){var w=z[C];if(w<0)break;var K=this.commentIdToIndex(e,w,!1);K>=0&&this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",K,1);K=this.commentIdToIndex(e,w,!0);K>=0&&this.splice("data.contents."+w+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",K,1);w="data.contents."+w+".backstagePostThreadRenderer.post.backstagePostRenderer";
K=w+".backstageAttachment.pollRenderer.votedCommentId";this.get(K)===e&&(this.set(K,null),this.set(w+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(z=this.postIdToIndices(e).reverse(),C=0;C<z.length;C++){w=z[C];if(w<0)break;K=this.getPostRendererType(w);var G=this.get("backstagePostThreadRenderer.post."+K,this.data.contents[w]);G.postId===e?this.splice("data.contents",w,1):K==="sharedPostRenderer"&&this.set("data.contents."+w+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);G.scheduledPublishTimeSec&&_.eA(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.Y.postIdToIndices=function(e){for(var z=[],C=0;C<this.data.contents.length;C++){var w=this.getPostRendererType(C);this.get("backstagePostThreadRenderer.post."+w+".postId",this.data.contents[C])===e&&z.push(C);if(w==="sharedPostRenderer"){var K=this.get("backstagePostThreadRenderer.post."+w+".originalPost.backstagePostRenderer.postId",this.data.contents[C]);w=this.get("backstagePostThreadRenderer.post."+w+".originalPost.postRenderer.postId",this.data.contents[C]);K!==e&&w!==e||z.push(C)}}return z};
_.Y.commentIdToIndex=function(e,z,C){if(z<0)return-1;var w,K,G,X,J=_.r((w=this.data)==null?void 0:(K=w.contents)==null?void 0:(G=K[z])==null?void 0:(X=G.backstagePostThreadRenderer)==null?void 0:X.comments,wm6);return(z=C?J==null?void 0:J.teaserContents:J==null?void 0:J.contents)&&z.length?z.findIndex(function(q){return _.r(q,SJa).comment.commentRenderer.commentId===e}):-1};
_.Y.getParentPostId=function(e){e=e.split(".");if(e[1])return e[0]};
_.Y.getPostRendererType=function(e){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[e])?"sharedPostRenderer":"backstagePostRenderer"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],RR.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],RR.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:_.M("enable_community_page_on_desktop")}),_.B("design:type",Boolean)],RR.prototype,"useSmallerPostContainer",void 0);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-backstage-items"})],RR);
_.u(RR,"ytd-backstage-items",function(){if(JCY!==void 0)return JCY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return JCY=
e},{mode:1});var kLb;var qql={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},L8=function(){var e=_.V.apply(this,arguments)||this;e.disablePrescanVisibility=!0;e.canScheduleJobs=!0;e.engagementPanel=!1;e.hidePanelButton=!1;e.isWatchGrid=
!1;e.hasShownSubscribersOnlyDisclaimer=!1;e.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};e.TEST_ONLY=void 0;return e};
_.U(L8,_.V);_.Y=L8.prototype;_.Y.created=function(){this.initCommentsCsi_();_.M("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.M("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.Y.contentsChanged_=function(){var e;(e=this.data)!=null&&e.contents&&this.tickForCommentsTimer_("cml")};
_.Y.headerChanged_=function(){var e;(e=this.data)!=null&&e.header&&this.tickForCommentsTimer_("cmhl")};
_.Y.initCommentsCsi_=function(){_.LK("wn_comments");var e=_.Pr();e&&_.Pf({clientScreenNonce:e},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.Y.createCommentAction_=function(e){e=_.de.unsafeClone(e);var z,C;if(e=(z=_.r(e,PsC))==null?void 0:(C=z.contents)==null?void 0:C.commentThreadRenderer){var w,K,G,X,J,q;!this.isBackstage&&((w=this.data)==null?0:(K=w.header)==null?0:(G=K.commentsHeaderRenderer)==null?0:(X=G.createRenderer)==null?0:(J=X.commentSimpleboxRenderer)==null?0:(q=J.zeroStep)==null?0:q.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var T,
Q,m;this.isBackstage&&_.r((T=this.data)==null?void 0:(Q=T.header)==null?void 0:(m=Q.commentsHeaderRenderer)==null?void 0:m.zeroStateMessage,GaS)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(e)}};
_.Y.doReplyInsert_=function(e,z,C,w){w?this.splice(e,w,0,z):this.push(e,z)};
_.Y.getRepliesPath_=function(e){return"data.contents."+e+".commentThreadRenderer.replies"};
_.Y.getRepliesContentsPath_=function(e,z){e=this.getRepliesPath_(e);return z?e+".commentRepliesRenderer.teaserContents":e+".commentRepliesRenderer.contents"};
_.Y.showSubscribersOnlyDisclaimer_=function(e){(e=e.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(e=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(e))&&(_.eA(this.hostElement,"yt-open-popup-action",[e,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.Y.createCommentReplyAction_=function(e){e=_.de.unsafeClone(e);var z=_.r(e,RTs);if(e=z==null?void 0:z.contents){var C=this.commentIdToIndex_(z==null?void 0:z.parentCommentId);if(!(C<0)){var w=this.getRepliesPath_(C);if(this.get(w)){z=z.replyToCommentId;w=this.getRepliesContentsPath_(C,!1);if(this.get(w)){var K=this.get(w).length,G=w+"."+(K-1)+".continuationItemRenderer";this.get(G+".button")?(G=this.replyIdToIndex_(z,C,!1),this.doReplyInsert_(w,e,G,K-1)):this.get(G)||(K=this.replyIdToIndex_(z,C,
!1),this.doReplyInsert_(w,e,K,null))}w=this.getRepliesContentsPath_(C,!0);this.get(w)?(C=this.replyIdToIndex_(z,C,!0),(!z||C>=0)&&this.doReplyInsert_(w,e,C,null)):this.set(w,[e])}else this.set(w,{commentRepliesRenderer:{teaserContents:[e]}})}}};
_.Y.hideReportedCommentAction_=function(e){var z=_.r(e,c1h);if(e=z==null?void 0:z.commentId)(z=this.get("parentCommentId",z))||(z=this.getParentCommentId_(e)),this.remove_(e,z)};
_.Y.getParentCommentId_=function(e){e=e.split(".");if(e[1])return e[0]};
_.Y.removeCommentAction_=function(e){var z=_.r(e,FXL);if(e=z==null?void 0:z.commentId)z=(z==null?void 0:z.parentCommentId)||this.getParentCommentId_(e),this.remove_(e,z)};
_.Y.pinCommentAction_=function(e){e=_.de.unsafeClone(e);var z=_.r(e,EPh);z!=null&&z.commentId&&(e=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",e))&&(this.remove_(z.commentId),this.insert_(e,!0))};
_.Y.unpinCommentAction_=function(e){e=_.de.unsafeClone(e);e=_.r(e,V1S);if(e!=null&&e.commentId){var z,C,w=(z=e.actionResult)==null?void 0:(C=z.update)==null?void 0:C.commentThreadRenderer;w&&(this.remove_(e.commentId),this.insert_(w))}};
_.Y.banAuthorAction_=function(e){var z=_.r(e,WXs);z!=null&&z.commentId&&(e=z.commentId,z=z.parentCommentId||this.getParentCommentId_(e),this.remove_(e,z))};
_.Y.handleScrollToCommentElement_=function(e){this.hostElement.contains(e)&&(this.nearestScrollParent||(this.nearestScrollParent=dzk(e)),this.isCommentVisibleInScrollParent(e)||e.scrollIntoView({behavior:"smooth",block:"start"}))};
_.Y.isCommentVisibleInScrollParent=function(e){if(!this.nearestScrollParent)return!1;e=e.getBoundingClientRect();var z=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return e.top>=z.top&&e.bottom<=z.bottom};
_.Y.commentIdToIndex_=function(e){var z;return e&&(z=this.data)!=null&&z.contents?this.data.contents.findIndex(function(C){C=C.commentThreadRenderer;var w;return e===((C==null?void 0:C.commentViewModel)&&((w=_.r(C.commentViewModel,sJs))==null?void 0:w.commentId))}):-1};
_.Y.insert_=function(e,z){z=z===void 0?!1:z;var C,w;if((C=this.data)==null?0:(w=C.contents)==null?0:w.some(function(G){return!!G.commentThreadRenderer}))for(C=0,w=this.data.contents.length;C<w;C++){var K=this.data.contents[C].commentThreadRenderer;
if(qql[e.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=qql[K.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){z&&qql[e.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===qql[K.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",C,1,{commentThreadRenderer:e}):this.splice("data.contents",C,0,{commentThreadRenderer:e});break}}else this.set("data.contents",[{commentThreadRenderer:e}])};
_.Y.doReplyRemove_=function(e,z,C){e=this.replyIdToIndex_(e,z,C);e<0||(z=this.getRepliesContentsPath_(z,C),this.splice(z,e,1))};
_.Y.remove_=function(e,z){z=this.commentIdToIndex_(z);z<0?(z=this.commentIdToIndex_(e),z<0||this.splice("data.contents",z,1)):_.M("web_delhi_comment_threads")||(this.doReplyRemove_(e,z,!1),this.doReplyRemove_(e,z,!0))};
_.Y.replyIdToIndex_=function(e,z,C){if(z<0)return-1;z=this.getRepliesContentsPath_(z,C);z=this.get(z);if(!z||!z.length)return-1;C=0;for(var w=z.length;C<w;C++){var K=void 0,G=void 0;if(((K=z[C])==null?void 0:(G=K.commentViewModel)==null?void 0:G.commentId)===e)return C}return-1};
_.Y.tickForCommentsTimer_=function(e){_.FV(e,void 0,"wn_comments")};
_.Y.reloadComments_=function(e){e=_.r(e,ic6);_.r(e==null?void 0:e.command,_.dG)&&_.wQ(this.hostElement,[e==null?void 0:e.command])};
_.lB.Object.defineProperties(L8.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!((e=this.data)==null?0:(z=e.header)==null?0:(C=z.commentsHeaderRenderer)==null?0:C.isBackstageContent)}}});
_.lB.Object.defineProperties(L8,{template:{configurable:!0,enumerable:!0,get:function(){if(kLb===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);kLb=e}e=kLb;return e}}});
L8.prototype.showSubscribersOnlyDisclaimer_=L8.prototype.showSubscribersOnlyDisclaimer_;L8.prototype.headerChanged_=L8.prototype.headerChanged_;L8.prototype.contentsChanged_=L8.prototype.contentsChanged_;_.d([_.W(_.VP),_.B("design:type",Object)],L8.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",Function)],L8.prototype,"ytPlayerListenerBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],L8.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],L8.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.header.commentsHeaderRenderer.isBackstageContent"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],L8.prototype,"isBackstage",null);
_.d([_.F(),_.B("design:type",Object)],L8.prototype,"disablePrescanVisibility",void 0);_.d([_.F(),_.B("design:type",Object)],L8.prototype,"canScheduleJobs",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],L8.prototype,"engagementPanel",void 0);_.d([_.F(),_.B("design:type",Object)],L8.prototype,"hidePanelButton",void 0);_.d([_.F(),_.B("design:type",Object)],L8.prototype,"isWatchGrid",void 0);_.d([_.F(),_.B("design:type",Object)],L8.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.d([_.mi("data.contents"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L8.prototype,"contentsChanged_",null);_.d([_.mi("data.header"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L8.prototype,"headerChanged_",null);_.d([_.Qi("yt-show-subscribers-only-disclaimer"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],L8.prototype,"showSubscribersOnlyDisclaimer_",null);
_.d([_.SL({is:"ytd-comments"})],L8);var h6=function(){return _.rO.apply(this,arguments)||this};
_.U(h6,_.rO);_.Y=h6.prototype;_.Y.bindIf=function(e,z,C){return e?z:C};
_.Y.bindIfDefined=function(e,z){return e!==void 0?e:z};
_.Y.booleanString=function(e){return(!!e).toString()};
_.Y.equals=function(){for(var e=_.yL.apply(0,arguments),z=e[0],C=1;C<e.length;C++)if(z!=e[C])return!1;return!0};
_.Y.isGreaterThan=function(e,z){return e>z};
_.Y.isLessThan=function(e,z){return e<z};
_.Y.logicalAND=function(){for(var e=_.yL.apply(0,arguments),z=!!e[0],C=1;C<e.length;C++)z=z&&!!e[C];return z};
_.Y.logicalOR=function(){for(var e=_.yL.apply(0,arguments),z=!!e[0],C=1;C<e.length;C++)z=z||!!e[C];return z};
_.Y.toBool=function(e){return!!e};
h6.prototype.toBool=h6.prototype.toBool;h6.prototype.logicalOR=h6.prototype.logicalOR;h6.prototype.logicalAND=h6.prototype.logicalAND;h6.prototype.isLessThan=h6.prototype.isLessThan;h6.prototype.isGreaterThan=h6.prototype.isGreaterThan;h6.prototype.equals=h6.prototype.equals;h6.prototype.booleanString=h6.prototype.booleanString;h6.prototype.bindIfDefined=h6.prototype.bindIfDefined;h6.prototype.bindIf=h6.prototype.bindIf;_.d([_.HI()],h6);_.xaC=[h6.prototype];var Tfb;var $af;var OK=function(){return _.V.apply(this,arguments)||this};
_.U(OK,_.V);OK.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
OK.prototype.onBackIconTap_=function(){window.history.back()};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],OK.prototype,"data",void 0);_.d([_.fP({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],OK);
_.u(OK,"yt-header-with-back-renderer",function(){if($af===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Tfb===void 0&&(Tfb=document.createElement("template"));var w=Tfb;C.call(z,w.content.cloneNode(!0),e.content.firstChild);$af=e}e=$af;return e},{mode:2});var l3Z;var Qbq;var EK=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(EK,_.V);_.Y=EK.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Y.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e,this.setUrl())};
_.Y.dataChanged=function(){var e=this;if(this.data){var z=this.setUrl();z&&_.a8({destination:window,iframe:this.iframe,origin:_.T9U(z.toString()),channelName:"yt-iframe",onMessage:function(C){(C=e.getCommunicationCommand(C.data))&&e.ytComponentBehavior.resolveCommand(C)},
onEstablished:function(){}})}};
_.Y.setUrl=function(){if(this.data&&this.data.iframeUrl){var e=_.Af(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(e)return _.Cq(this.iframe,e),e}};
_.Y.getCommunicationCommand=function(e){var z;if((z=this.data)!=null&&z.onCommunicationCommandsMap){z=this.data.onCommunicationCommandsMap.find(function(K){return K.key===e});
if(z==null?0:z.value)return z==null?void 0:z.value;try{var C=oXs(_.po(e)),w=this.data.onCommunicationCommandsMap.find(function(K){return K.key===(C==null?void 0:C.getMethodName())});
if(w==null?0:w.value)return w==null?void 0:w.value}catch(K){}}};
EK.prototype.dataChanged=EK.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],EK.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],EK.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],EK.prototype,"data",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],EK.prototype,"isDarkTheme",void 0);_.d([_.nP("#iframe"),_.B("design:type",HTMLIFrameElement)],EK.prototype,"iframe",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EK.prototype,"dataChanged",null);_.d([_.fP({is:"yt-iframe-renderer",disableElementRegistration:!0})],EK);
_.u(EK,"yt-iframe-renderer",function(){if(Qbq===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;l3Z===void 0&&(l3Z=document.createElement("template"));var w=l3Z;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Qbq=e}e=Qbq;return e},{mode:2});_.FJ=function(e){_.Sn.call(this);this.callback=e;this.bezier=new $la(0,0,.4,0,.2,1,1,1);this.delay=new _.ak(this.next,window,this);this.JSC$17233_animating=!1;_.I4(this,this.delay)};
_.U(_.FJ,_.Sn);_.FJ.prototype.isAnimating=function(){return this.JSC$17233_animating};
_.FJ.prototype.start=function(e,z,C){this.config={from:e,to:z,duration:C,startTime:(0,_.as)()};this.JSC$17233_animating=!0;this.next()};
_.FJ.prototype.stop=function(){this.delay.stop();this.JSC$17233_animating=!1;this.config=void 0};
_.FJ.prototype.next=function(){if(this.config){var e=this.config,z=e.from,C=e.to,w=e.duration;e=e.startTime;var K=(0,_.as)()-e;e=this.bezier;w=QeY(e,K/w);if(w==0)e=e.y0;else if(w==1)e=e.y3;else{K=iS(e.y0,e.y1,w);var G=iS(e.y1,e.y2,w);e=iS(e.y2,e.y3,w);K=iS(K,G,w);G=iS(G,e,w);e=iS(K,G,w)}e=_.NZ(e,0,1);this.callback(z+(C-z)*e);e<1?this.delay.start():this.JSC$17233_animating=!1}};_.Vl=new _.Mt("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var maE={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},nZY=function(e,z,C,w){_.Sn.call(this);this.JSC$17244_miniAppId=e;this.localReleaseId=z;this.derivedDeviceInterface=C;this.isForeground=w;this.JSC$17244_playNonceResolver=new _.x5;this.playPingTimerId=NaN;this.playPingIntervalMs=_.n0("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.n0("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.M("enable_displaying_ppn");this.JSC$17244_miniAppClientDataProvider=_.lh().resolve(_.Vl);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;a3q(this);var K=setTimeout(function(){_.AX(new _.uh("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17244_playNonceResolver.promise.then(function(){clearTimeout(K)})};
_.U(nZY,_.Sn);var rC5=function(e,z){e.JSC$17244_playNonceResolver.resolve(z!=null?z:UX(8));e.enableDisplayingPpn&&MEq(e).then(function(C){e.JSC$17244_miniAppClientDataProvider.clientData.set("post_play_nonce",C)})},MEq=function(e){return _.k(function(z){return z.nextAddress==1?z.yield(e.JSC$17244_playNonceResolver.promise,2):z.return(z.yieldResult)})},a3q=function(e){var z,C;
_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$17244_playNonceResolver.promise,2);z=w.yieldResult;C={miniAppInfo:{externalPostId:e.JSC$17244_miniAppId,localReleaseId:e.localReleaseId,postPlayNonce:z,derivedDeviceInterface:e.derivedDeviceInterface}};_.Pf(C);_.E_(w)})},UaY=function(e){e.state!==0?_.AX(new _.uh("[MiniAppPlayLogger] recordPlayStart failed with state "+maE[e.state])):(e.state=1,f8(e,"ma_cl"),SP(e,"PLAY_EVENT_TYPE_PLAY_START"),Hv3(e))},vZW=function(e){e.isForeground=!1;
SP(e,"PLAY_EVENT_TYPE_PLAY_PAUSE")},I3f=function(e){e.state!==1&&e.state!==2?_.AX(new _.uh("[MiniAppPlayLogger] recordPlayEnd failed with state "+maE[e.state])):(e.state=3,window.clearInterval(e.playPingTimerId),e.playPingTimerId=NaN,efk(),SP(e,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},W53=function(e,z){e.state===2&&e.gameReady&&(e.firstClickRecorded?Date.now()-e.clickRecordedMs<e.playClickIntervalMs||(e.clickRecordedMs=Date.now(),SP(e,"PLAY_EVENT_TYPE_PLAY_CLICK")):z&&(f8(e,"ma_fua"),SP(e,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),e.firstClickRecorded=!0,e.clickRecordedMs=Date.now()))};
nZY.prototype.logError=function(e){var z=this,C;_.k(function(w){if(w.nextAddress==1)return e.metadata.externalPostId=z.JSC$17244_miniAppId,C=e.metadata,w.yield(Promise.race([z.JSC$17244_playNonceResolver.promise,new Promise(function(K){setTimeout(function(){K("")},3E4)})]),2);
C.postPlayNonce=w.yieldResult;e.metadata.localReleaseId=z.localReleaseId;e.loggingError.level="WARNING";_.yG(e.loggingError,e.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:e.metadata});_.E_(w)})};
var P$b=function(e,z,C,w){var K,G,X,J,q,T;_.k(function(Q){if(Q.nextAddress==1)return Q.yield(e.JSC$17244_playNonceResolver.promise,2);K=Q.yieldResult;G={externalPostId:e.JSC$17244_miniAppId,localReleaseId:e.localReleaseId,postPlayNonce:K,sdkVersion:C,api:z};w!==void 0&&(G.networkRequestsMeasurement={networkRequests:_.$2(w,1),cachedRequests:_.$2(w,2),transferredBytes:_.$2(w,3)},(X=w)==null?0:_.Lb(X,Wt,6))&&(G.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((J=_.ra(w,
Wt,6))==null?void 0:NI(J,1))||"0",cacheHits:((q=_.ra(w,Wt,6))==null?void 0:NI(q,2))||"0",cachedBytes:((T=_.ra(w,Wt,6))==null?void 0:NI(T,3))||"0"});_.gm("miniAppSdkUsage",G);_.E_(Q)})},L55=function(e,z,C){var w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E;
_.k(function(N){if(N.nextAddress==1)return N.yield(e.JSC$17244_playNonceResolver.promise,2);w=N.yieldResult;K={externalPostId:e.JSC$17244_miniAppId,localReleaseId:e.localReleaseId,postPlayNonce:w,sdkVersion:C,measurementWindow:{startTimestampMs:String(u5(z,1)),endTimestampMs:String(u5(z,2))},frameRate:{averageFrameTimeDeltaMs:d4(z,3),averageFrameIdleTimeMs:d4(z,4)}};_.Lb(z,Pt,5)&&(K.networkRequests={networkRequests:(G=VS(z))==null?void 0:_.$2(G,1),cachedRequests:(X=VS(z))==null?void 0:_.$2(X,2),transferredBytes:(J=
VS(z))==null?void 0:_.$2(J,3),sameOriginStatusCodeToCounts:RWf((q=VS(z))==null?void 0:_.f3E(q,4,void 0,B64,B64)),crossOriginStatusCodeToCounts:RWf((T=VS(z))==null?void 0:_.f3E(T,5,void 0,B64,B64))},(Q=VS(z))==null?0:_.Lb(Q,Wt,6))&&(K.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((m=VS(z))==null?void 0:(a=_.ra(m,Wt,6))==null?void 0:NI(a,1))||"0",cacheHits:((n=VS(z))==null?void 0:(H=_.ra(n,Wt,6))==null?void 0:NI(H,2))||"0",cachedBytes:((I=VS(z))==null?void 0:(L=_.ra(I,Wt,6))==
null?void 0:NI(L,3))||"0"});_.Lb(z,AQ4,7)&&(K.gameCapture={averageFrameTimeDeltaMs:(h=_.ra(z,AQ4,7))==null?void 0:d4(h,1),averageFrameIdleTimeMs:(E=_.ra(z,AQ4,7))==null?void 0:d4(E,2)});_.gm("miniAppPerformanceMetrics",K);_.E_(N)})},hWL=function(e,z){var C,w;
return _.k(function(K){if(K.nextAddress==1)return K.yield(e.JSC$17244_playNonceResolver.promise,2);C=K.yieldResult;w={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:e.JSC$17244_miniAppId,postPlayNonce:C,miniAppReleaseId:e.localReleaseId},derivedDeviceInterface:e.derivedDeviceInterface,adTriggerType:z,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.gm("miniAppAdEvent",w);_.E_(K)})};
nZY.prototype.disposeInternal=function(){_.Sn.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var SP=function(e,z,C,w){C=C===void 0?{}:C;w=w===void 0?!1:w;var K,G,X,J;_.k(function(q){if(q.nextAddress==1)return K=e.isForeground,G=e.beforeReady,q.yield(e.JSC$17244_playNonceResolver.promise,2);X=q.yieldResult;J={externalPostId:e.JSC$17244_miniAppId,localReleaseId:e.localReleaseId,derivedDeviceInterface:e.derivedDeviceInterface,postPlayNonce:X,type:z};C.sequenceGroup=X;J.playState=G?"PLAY_STATE_NOT_READY":K?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.gm("miniAppPlayEvent",J,
C);w&&_.ju();_.E_(q)})},f8=function(e,z){var C;
_.k(function(w){if(w.nextAddress==1)return C=(0,_.as)(),w.yield(e.JSC$17244_playNonceResolver.promise,2);_.hg(z,C);_.E_(w)})},Hv3=function(e){isNaN(e.playPingTimerId)&&(e.playPingTimerId=_.vi(function(){e.state!==1&&e.state!==2?_.AX(new _.uh("[MiniAppPlayLogger] reportPlayPing failed with state "+maE[e.state])):SP(e,"PLAY_EVENT_TYPE_PLAY_PING")},e.playPingIntervalMs))},RWf=function(e){return Array.from(e.entries()).map(function(z){var C=_.b(z);
z=C.next().value;C=C.next().value;return{key:z,value:C}})};var Ovo=function(){},EZo=function(e,z){e.showMiniAppAdCommand=z.showMiniAppAdCommand;
e.isEmbeddedInWebview=z.isEmbeddedInWebview;e.playLogger=z.playLogger},VEZ=function(e,z){var C;
return _.k(function(w){if(w.nextAddress==1){if(!e.showMiniAppAdCommand||!e.isEmbeddedInWebview)return w.return(F5C(e,z));e.adResolver=new _.x5;var K=new YR;C=_.H5(K,3,z);sA(e.showMiniAppAdCommand,FWa(C));return w.yield(e.adResolver.promise,2)}return w.return(w.yieldResult)})};
Ovo.prototype.onAdFinished=function(e){e=PGo(e);var z;(z=this.adResolver)==null||z.resolve(e)};
var F5C=function(e,z){var C;return _.k(function(w){if(w.nextAddress==1)w=w.yield((C=e.playLogger)==null?void 0:hWL(C,jdg(z)),2);else{var K=w.return;var G=new Wxs;G=_.H5(G,1,2);w=K.call(w,G)}return w})};var f3q=new _.Mt("INNERTUBE_MANAGER_TOKEN");var SqW=function(){this.callbacks={}};
SqW.prototype.initialize=function(e){var z=this;this.callbacks=e;window.youtubewebview?window.youtubewebview.onmessage=function(C){uY$(z,C)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(C){uY$(z,C)})};
var uY$=function(e,z){if(z.data)try{var C=oXs(z.data);if(_.Hl(_.RP(C,1))!=null){var w=PKL(_.Ds(C,2));switch(C.getMethodName()){case "yt-mini-app-load-audio-state":var K,G;(G=(K=e.callbacks).onAudioStateLoaded)==null||G.call(K,_.Sv(w,fC(w,GC,1)));break;case "yt-mute-mini-app":var X,J;(J=(X=e.callbacks).onMuteMiniApp)==null||J.call(X);break;case "yt-unmute-mini-app":var q,T;(T=(q=e.callbacks).onUnmuteMiniApp)==null||T.call(q);break;case "yt-playable-exit":var Q,m;(m=(Q=e.callbacks).onExit)==null||m.call(Q);
break;case "yt-post-play-nonce":var a,n;(n=(a=e.callbacks).onPostPlayNonceReceived)==null||n.call(a,s7(w,2,GC));break;case "yt-confirm-exit-mini-app":var H,I;(I=(H=e.callbacks).confirmExitMiniApp)==null||I.call(H);break;case "yt-confirm-exit-mini-app-edu":var L,h;(h=(L=e.callbacks).confirmExitMiniAppEdu)==null||h.call(L);break;case "yt-benchmarking-response":var E,N;(N=(E=e.callbacks).onNativeBenchmarkingMessageReceived)==null||N.call(E,s7(w,2,GC));break;case "yt-mini-app-load-3p-consent-state":var D,
g;(g=(D=e.callbacks).multiplayer3pAckStateLoaded)==null||g.call(D,_.Sv(w,fC(w,GC,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,Z;(Z=(y=e.callbacks).exitMiniAppSeenStateLoaded)==null||Z.call(y,_.Sv(w,fC(w,GC,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var YN,Jk;(Jk=(YN=e.callbacks).onNavigateToNewMiniApp)==null||Jk.call(YN);break;case "yt-game-data-available":var v1,lg;(lg=(v1=e.callbacks).onGameDataAvailable)==null||lg.call(v1,s7(w,2,GC));break;case "yt-pause-mini-app":var M5,
fo;(fo=(M5=e.callbacks).onPauseMiniApp)==null||fo.call(M5);break;case "yt-resume-mini-app":var ug,sE;(sE=(ug=e.callbacks).onResumeMiniApp)==null||sE.call(ug);break;case "yt-playable-ad-finished":var w6,qY;(qY=(w6=e.callbacks).onAdFinished)==null||qY.call(w6,s7(w,2,GC))}}else _.AX(Error("Vh"))}catch(y1){_.yG(Error("Wh"))}else _.AX(Error("Xh"))};var c7L=function(e){this.rpcErrorCode=e};var uF=function(e,z,C){this.intervalMs=e;this.apiFunc=z;this.type=C;this.schedulerReady=!0};
uF.prototype.call=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1){if(z.type!==1&&e===z.cachedValue)return w.return();z.pendingApiRequestResolver||(z.pendingApiRequestResolver=new _.x5);C=z.pendingApiRequestResolver.promise;z.cachedValue=e;return w.yield(dav(z),2)}return w.return(C)})};
uF.prototype.flush=function(e){e=e===void 0?!1:e;var z=this;return _.k(function(C){return z.cachedValue===void 0?C.return():C.yield(z.apiFunc(z.cachedValue,e),0)})};
var dav=function(e){var z,C,w;return _.k(function(K){switch(K.nextAddress){case 1:if(!e.schedulerReady||!e.pendingApiRequestResolver)return K.return();e.schedulerReady=!1;z=e.pendingApiRequestResolver;e.pendingApiRequestResolver=void 0;_.Iv(K,2);if(e.cachedValue===void 0){K.jumpTo(4);break}return K.yield(e.apiFunc(e.cachedValue),5);case 5:C=K.yieldResult,z.resolve(C);case 4:_.Yj(K,3);break;case 2:w=_.O_(K),z.reject(w);case 3:setTimeout(function(){return _.k(function(G){e.schedulerReady=!0;return G.yield(dav(e),
0)})},e.intervalMs),_.E_(K)}})};var psL=window.location.origin+"/miniapp_cloudsaves",A7g=[400,401],Daf=_.n0("cloud_save_game_data_rate_limit_ms",3E3),NfC=function(e){var z=this;this.JSC$17288_miniAppId=e;this.loadAttempts=0;this.cloudSaveIntervalMs=Daf;this.initialDownloadDataSucceeded=!1;this.JSC$17288_playNonceResolver=new _.x5;this.scottyUploadRateLimiter=new uF(this.cloudSaveIntervalMs,function(C,w){return z.uploadData(C,w)},2);
this.downloadDataPromise=iv3(this);this.downloadDataPromise.then(function(){z.initialDownloadDataSucceeded=!0}).catch(function(){})},sbf=function(e,z){z.then(function(C){return e.JSC$17288_playNonceResolver.resolve(C)})},BfZ=function(e){return _.k(function(z){return e.cachedData===void 0?z.return(e.downloadDataPromise):z.return(e.cachedData)})},tE$=function(e,z){return _.k(function(C){e.cachedData=z;
if(!e.initialDownloadDataSucceeded)throw Error("Yh");return C.yield(e.scottyUploadRateLimiter.call(z),0)})},gZf=function(){return new Promise(function(e){setTimeout(e,1E3,"")})},jbZ=function(e,z){var C,w;
return _.k(function(K){if(K.nextAddress==1)return C=e.JSC$17288_miniAppId,K.yield(Promise.race([e.JSC$17288_playNonceResolver.promise,gZf()]),2);w={"X-YouTube-MiniAppId":C,"X-YouTube-PostPlayNonce":K.yieldResult};"DELEGATED_SESSION_ID"in _.tR&&aEE(z,w);return K.return(w)})};
NfC.prototype.uploadData=function(e,z){z=z===void 0?!1:z;var C=this;return _.k(function(w){return y7k()?_.M("enable_cloud_save_error_popup_after_retry")?w.return(new Promise(function(K,G){var X,J,q,T,Q;return _.k(function(m){switch(m.nextAddress){case 1:X=0,J=!0,T=q=null;case 2:if(!(J&&X++<2)){m.jumpTo(4);break}_.Iv(m,5);return m.yield(yCY(C,e,z),7);case 7:q=m.yieldResult;J=q.ok?!1:!A7g.includes(q.status);_.Yj(m,2);break;case 5:T=Q=_.O_(m);J=Zy7(T);m.jumpTo(2);break;case 4:q?q.ok?(dr(C,Daf),K()):
(dr(C,C.cloudSaveIntervalMs*2),G(Error("Zh`"+String(q.status),{cause:{rpcErrorCode:q.status}}))):(dr(C,C.cloudSaveIntervalMs*2),G(T||Error("$h"))),_.E_(m)}})})):w.return(new Promise(function(K,G){var X,J;
return _.k(function(q){if(q.nextAddress==1){if(C.JSC$17288_miniAppId==="")return G(Error("ai")),q.return();_.Iv(q,2);return q.yield(yCY(C,e,z),4)}if(q.nextAddress!=2)return X=q.yieldResult,X.ok?(dr(C,Daf),K()):(dr(C,C.cloudSaveIntervalMs*2),G(Error("Zh`"+String(X.status),{cause:{rpcErrorCode:X.status}}))),_.Yj(q,0);J=_.O_(q);dr(C,C.cloudSaveIntervalMs*2);G(J);_.E_(q)})})):w.return()})};
var yCY=function(e,z,C){C=C===void 0?!1:C;var w,K,G;return _.k(function(X){if(X.nextAddress==1)return w=_.FY((new TextEncoder).encode(z)),K=eah(),X.yield(jbZ(e,K),2);G=X.yieldResult;return X.return(fetch(K,{method:"POST",body:new Blob([w]),headers:G,keepalive:C}))})},iv3=function(e){var z,C;
return _.k(function(w){if(w.nextAddress==1){if(!y7k())return w.return("");if(e.JSC$17288_miniAppId==="")throw Error("ai");if(e.loadAttempts>2)return w.return(e.downloadDataPromise);_.Iv(w,2);return w.yield(cC5(e),4)}if(w.nextAddress!=2)return z=w.yieldResult,w.return(z);C=_.O_(w);if(Zy7(C)&&++e.loadAttempts<2)return w.return(iv3(e));throw C;})},cC5=function(e){var z,C,w,K,G;
return _.k(function(X){switch(X.nextAddress){case 1:return _.Iv(X,2),z=eah(),X.yield(jbZ(e,z),4);case 4:return C=X.yieldResult,X.yield(fetch(z,{method:"GET",headers:C}),5);case 5:return w=X.yieldResult,w.ok?X.yield(w.text(),6):X.return(Promise.reject(Error("bi`"+String(w.status),{cause:new c7L(w.status)})));case 6:return K=X.yieldResult,X.return((new TextDecoder).decode(_.po(K)));case 2:return G=_.O_(X),X.return(Promise.reject(G))}})},dr=function(e,z){e.cloudSaveIntervalMs=z;
e.scottyUploadRateLimiter.intervalMs=e.cloudSaveIntervalMs};
NfC.prototype.flush=function(){var e=this;return _.k(function(z){return e.initialDownloadDataSucceeded?z.yield(e.scottyUploadRateLimiter.flush(!0),0):z.return()})};var ACE=E4(O4(1),LA(1)),ZvY=E4(O4(1),LA(3)),DJ=function(e){this.callbacks=e};
_.Y=DJ.prototype;_.Y.onAudioToggled=function(e,z){(z===void 0||z)&&_.WJ("yt-mini-app-is-audio-enabled",e,2592E3)};
_.Y.onPause=function(){this.onAudioToggled(!1,!1)};
_.Y.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.Y.returnNativeBenchmarkingMessage=function(){};
_.Y.sendGameData=function(){};
_.Y.sendStartGameFrameCapture=function(){};
var zak=function(e,z,C){this.callbacks=e;var w=this;this.sdkVersion=new _.x5;this.channel=new naa(_.a8({destination:window,iframe:z,origin:(new URL(C.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var K=iF;var G=O4(5);var X=new SVT;X=_.td(X,1,1E4);G=_.RT(G,4,tqg,X);K(w,G);w.onAudioToggled(w.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){w.sdkVersion.resolve("")},1E4)};
_.U(zak,DJ);_.Y=zak.prototype;_.Y.onAudioToggled=function(e,z){DJ.prototype.onAudioToggled.call(this,e,z===void 0?!0:z);z=iF;var C=O4(2),w=new VqC;e=_.a4(w,1,e);e=_.RT(C,3,tqg,e);z(this,e)};
_.Y.onPause=function(){DJ.prototype.onPause.call(this);iF(this,O4(3))};
_.Y.onResume=function(){DJ.prototype.onResume.call(this);iF(this,O4(4))};
_.Y.returnNativeBenchmarkingMessage=function(e){var z=iF,C=O4(6);var w=LA(_.Lb(e,kQ,1)?1:2);e=_.Lb(e,kQ,1)?e:null;w=_.RT(w,5,hh,e);z(this,E4(C,w))};
_.Y.sendGameData=function(e){var z=iF,C=O4(7);e=_.RT(C,5,tqg,e);z(this,e)};
_.Y.sendStartGameFrameCapture=function(){iF(this,O4(9))};
var Nf=function(e,z,C){var w,K,G;return _.k(function(X){if(X.nextAddress==1)return w=e.callbacks,K=w.onSdkCalled,G=z,X.yield(e.sdkVersion.promise,2);K.call(w,G,X.yieldResult,C);_.E_(X)})};
zak.prototype.onMessage=function(){var e=this;return HYo(fA,function(z){var C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z,YN,Jk,v1,lg,M5,fo,ug,sE,w6,qY,y1,Qa,Ha,OU,ab,Pa,$N,N5,$L,Ba,r6,eE,q1,g6;return _.k(function(lo){switch(lo.nextAddress){case 1:if(!zSL(z.data))return _.AX(Error("ci")),lo.return();C=_.i5(z.data,1);_.M("enable_iframe_message_get_type_via_fields")&&(w=z.data,C=K=_.i5(w,1));switch(C){case 8:if(z.data.hasMetadata()){var mc=e.sdkVersion,ob=mc.resolve;var Ak=z.data.getMetadata();Ak=_.Ds(Ak,
1);ob.call(mc,Ak);clearTimeout(e.sdkVersionTimeoutId)}break;case 6:return lo.jumpTo(2);case 16:if(!_.hd(z.data,yQT,14,SO))return lo.return();G=_.BW(z.data,yQT,14,SO);(J=(X=e.callbacks).onGameFrameReceived)==null||J.call(X,G);return lo.return();case 17:if(!_.hd(z.data,jKT,15,SO))return lo.return();(T=(q=e.callbacks).onGameAudioReceived)==null||T.call(q,_.BW(z.data,jKT,15,SO));return lo.return();case 1:if(mc=_.BW(z.data,D_U,2,SO))switch(_.i5(mc,1)){case 1:e.callbacks.onFirstFrameReady();if(_.M("enable_network_request_logging_on_game_events")&&
_.Lb(mc,Pt,4)){Nf(e,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.ra(mc,Pt,4));break}Nf(e,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Ak=(ob=e.callbacks).onGameReady)==null||Ak.call(ob);if(_.M("enable_network_request_logging_on_game_events")&&_.Lb(mc,Pt,4)){Nf(e,"MINI_APP_SDK_API_GAME_READY",_.ra(mc,Pt,4));break}Nf(e,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.hd(mc,RY,3,iRa))e.callbacks.onResourceLoaded(_.BW(mc,RY,3,iRa))}return lo.return();case 3:return lo.jumpTo(3);case 4:return lo.jumpTo(4);
case 2:return lo.jumpTo(5);case 9:return lo.jumpTo(6);case 10:return e.callbacks.onClick(),lo.return();case 5:return lo.jumpTo(7);case 11:if(!_.hd(z.data,vt,9,SO))return lo.return();Q=_.BW(z.data,vt,9,SO);(a=(m=e.callbacks).onBenchmarkingMessageReceived)==null||a.call(m,Q);mc=z.reply;ob=O4(1);Ak=LA(1);var wf=new vt;var $a=new Uint8Array(fTg(Q,fC(Q,LxY,6))|0);wf=hX(wf,5,LxY,_.EU($a,!1));Ak=_.RT(Ak,5,hh,wf);mc.call(z,E4(ob,Ak));return lo.return();case 12:return lo.jumpTo(8);case 13:return lo.jumpTo(9);
case 15:if(!_.M("enable_open_yt_content"))return z.reply(ZvY),lo.return();if(!_.hd(z.data,guh,12,SO))return z.reply(E4(O4(1),LA(2))),lo.return();mc=_.BW(z.data,guh,12,SO);n=_.Ds(mc,1);e.callbacks.onOpenYTContent(n);z.reply(ACE);return lo.return();case 14:return lo.jumpTo(10);default:return lo.return()}lo.jumpTo(0);break;case 2:if(!_.hd(z.data,FS,5,SO))return lo.return();ob=z.data;mc=fC(ob,SO,5);ob=ob.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=DaL(ob,ob[_.GX]|0,FS,mc)||FS[igo]||(FS[igo]=
N6E(FS));mc=_.x2(H,IY,1,_.T5());I=_.b(mc);L=I.next();case 12:if(L.done){lo.jumpTo(14);break}h=L.value;E=new _.uh;E.level=_.i5(h,2)===1?"WARNING":"ERROR";N=wNN(h.getSource());return lo.yield(e.sdkVersion.promise,15);case 15:D={source:N,sdkVersion:lo.yieldResult};_.YZ(_.RP(h,6))!=null?(E.message=h.getMessage(),E.stack=_.Ds(h,5),D.sdkErrorType=KRm(_.i5(h,6)),_.YZ(_.RP(h,7))!=null&&(D.sdkApi=ow1(_.i5(h,7)))):E.stack=void 0;y=g=void 0;(y=(g=e.callbacks).onError)==null||y.call(g,{loggingError:E,metadata:D});
L=I.next();lo.jumpTo(12);break;case 14:return lo.return();case 3:return _.Iv(lo,16),mc=lo.yield,ob=e.callbacks,Ak=ob.onSave,wf=_.BW(z.data,f7o,4,SO),wf=_.Ds(wf,1),mc.call(lo,Ak.call(ob,wf),18);case 18:z.reply(ACE);_.Yj(lo,17);break;case 16:return Z=_.O_(lo),YN=B0,Jk=Z,v1=e.callbacks,lg="MINI_APP_SDK_API_SAVE_DATA",lo.yield(e.sdkVersion.promise,19);case 19:YN(Jk,v1,lg,lo.yieldResult),z.reply(ZvY);case 17:return lo.yield(Nf(e,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return lo.return();case 4:return _.Iv(lo,
21),lo.yield(e.callbacks.onLoad(),23);case 23:M5=lo.yieldResult;mc=z.reply;ob=O4(1);Ak=LA(1);wf=new f7o;wf=_.Et(wf,1,M5);Ak=_.RT(Ak,3,hh,wf);mc.call(z,E4(ob,Ak));_.Yj(lo,22);break;case 21:return fo=_.O_(lo),ug=B0,sE=fo,w6=e.callbacks,qY="MINI_APP_SDK_API_LOAD_DATA",lo.yield(e.sdkVersion.promise,24);case 24:ug(sE,w6,qY,lo.yieldResult),z.reply(ZvY);case 22:return lo.yield(Nf(e,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return lo.return();case 5:_.Iv(lo,26);e.callbacks.onSendHighScore(jn(_.BW(z.data,
pqg,3,SO).getValue()));z.reply(E4(O4(1),LA(1)));_.Yj(lo,27);break;case 26:return y1=_.O_(lo),Qa=B0,Ha=y1,OU=e.callbacks,ab="MINI_APP_SDK_API_SEND_SCORE",lo.yield(e.sdkVersion.promise,28);case 28:Qa(Ha,OU,ab,lo.yieldResult),z.reply(ZvY);case 27:return lo.yield(Nf(e,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return lo.return();case 6:if(!_.hd(z.data,eSa,8,SO)){lo.jumpTo(30);break}mc=lo.yield;ob=_.BW(z.data,eSa,8,SO);ob=_.i5(ob,1);return mc.call(lo,Nf(e,ow1(ob)),30);case 30:return lo.return();case 7:return mc=
z.reply,ob=O4(1),Ak=LA(1),wf=e.callbacks.getLanguage(),Ak=hX(Ak,4,hh,Ma(wf)),mc.call(z,E4(ob,Ak)),lo.yield(Nf(e,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return lo.return();case 8:if(!_.hd(z.data,ZRo,10,SO))return lo.return();Pa=_.BW(z.data,ZRo,10,SO);$N=e.callbacks;N5=$N.onSdkPerformanceUpdate;return lo.yield(e.sdkVersion.promise,33);case 33:return N5.call($N,Pa,lo.yieldResult),lo.return();case 9:mc=z.data;ob=fC(mc,SO,11);if(_.Hl(_.RP(mc,ob))==null)return z.reply(E4(O4(1),LA(2))),lo.return();
$L=s7(z.data,11,SO);e.callbacks.onShareInviteCode($L);z.reply(ACE);return lo.yield(Nf(e,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return lo.return();case 10:if(_.hd(z.data,FxT,13,SO)){lo.jumpTo(35);break}return lo.yield(e.callbacks.onShowMiniAppAd(2),36);case 36:return Ba=lo.yieldResult,z.reply(E4(O4(1),sK4(Ba))),lo.yield(Nf(e,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return lo.return();case 35:mc=_.BW(z.data,FxT,13,SO);a:switch(_.i5(mc,1)){case 1:mc={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:mc={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:mc={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}r6=mc;eE=r6.adType;q1=r6.sdkApi;mc=lo.yield;ob=e.callbacks;Ak=ob.onShowMiniAppAd;wf=_.BW(z.data,FxT,13,SO);wf=_.Ds(wf,2);return mc.call(lo,Ak.call(ob,eE,wf||void 0),38);case 38:return g6=lo.yieldResult,z.reply(E4(O4(1),sK4(g6))),lo.yield(Nf(e,q1),39);case 39:return lo.return()}})})};
var iF=function(e,z){_.k(function(C){e.channel.send(z);_.E_(C)})},tS=function(e,z,C){this.callbacks=e;
var w=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;e=G6N(z,(new URL(C.toString())).origin);this.gameSnacks=new fyS(e);this.gameSnacks.page.onReady(function(){w.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){w.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var K,G;(G=(K=w.callbacks).onGameReady)==null||G.call(K)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(K,G){try{w.callbacks.onSendHighScore(G)}catch(X){B0(X,w.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(K,G){var X;return _.k(function(J){if(J.nextAddress==1)return _.Iv(J,2),J.yield(w.callbacks.onSave(w.decoder.decode(G)),4);if(J.nextAddress!=2)return _.Yj(J,0);X=_.O_(J);B0(X,w.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return J.return()})});
this.gameSnacks.storage.onLoad(function(){var K,G;return _.k(function(X){if(X.nextAddress==1)return _.Iv(X,2),X.yield(w.callbacks.onLoad(),4);if(X.nextAddress!=2)return K=X.yieldResult,X.return(w.encoder.encode(K));G=_.O_(X);B0(G,w.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return X.return(w.encoder.encode(""))})});
this.gameSnacks.init()};
_.U(tS,DJ);tS.prototype.onAudioToggled=function(e,z){DJ.prototype.onAudioToggled.call(this,e,z===void 0?!0:z);var C;(C=this.gameSnacks)==null||C.audio.update(e)};
tS.prototype.onPause=function(){DJ.prototype.onPause.call(this);var e;(e=this.gameSnacks)==null||e.game.pause()};
tS.prototype.onResume=function(){DJ.prototype.onResume.call(this);var e;(e=this.gameSnacks)==null||e.game.resume()};var pla=Gwh,ejq=_.f(function(e){var z=e.data;var C=e.loadingProgress;var w=e.forPaused;e=_.b(_.II("",void 0,"LYYTdd"));var K=e.next().value,G=e.next().value;e=_.b(_.II(!1,void 0,"K0waae"));var X=e.next().value,J=e.next().value,q=[],T=function(){return"transform: scaleX("+(_.gp(C)||0)+")"},Q=null,m=function(){return z()&&Q!==null&&Q!==void 0?Q:Q=z().showAnniversaryAnimation?6:pla()};
_.sH(function(){var I;if(z().timeOutMessages&&((I=z().timeOutMessages)==null?0:I.length)){Q=null;I=_.b(q);for(var L=I.next();!L.done;L=I.next())clearTimeout(L.value);q.length=0;YMg(z().timeOutMessages,q,G,J)}},"BNu9j");
var a=function(){return!!z().persistentErrorMessageTitle},n=function(){return C!==void 0},H=function(){return z().title};
return _.x("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.x("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.x("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.x("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var I,L=(I=z().backgroundImage)==null?void 0:I.sources,h;return(L==null?0:L.length)?"background-image: url("+((h=L[0])==null?void 0:h.url)+")":""}}),_.x("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.x(_.l,{cond:function(){return!a()&&!(w==null?0:w())},
then:function(){var I={};return _.x("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.x("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.x(_.AY,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+m()},
data:function(){var L="loading_animation_"+m();return{animationConfig:{name:L,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+L+".json",loop:!0,autoplay:!0}}}})),_.x("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.x(_.l,{cond:H,
then:function(){return _.x("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},H)}}),_.x("p",{class:_.qT("miniAppSplashScreenViewModelTimeoutMessage",(I.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return X()},I)),
"aria-live":"polite"},K),_.x(_.l,{cond:n,then:function(){return _.x("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.x("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:T}))}})))}}),_.x(_.l,{cond:a,
then:function(){return _.x("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.x("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return z().persistentErrorMessageTitle}),_.x(_.l,{cond:function(){return!!z().persistentErrorMessageDescription},
then:function(){return _.x("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return z().persistentErrorMessageDescription})}}))}}),_.x(_.l,{cond:w,
then:function(){return _.x("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.x("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.x("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},H))}})))},"Qf");var zj3=new _.Mt("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Cl3=ki;ki=function(e){function z(C){if(C){var w,K;(w=C.__spec)==null||(K=w.didUnmount)==null||K.call(w);for(w=0;w<C.childNodes.length;w++)z(C.childNodes[w])}}
Cl3==null||Cl3(e);Lm(function(){for(var C=0;C<e.length;C++)z(e[C])})};var wLE=_.f(function(e){var z=e.data;var C=e.score;var w=e.formattedScore;var K=e.onScoreChanged;var G=e.isEmbeddedInWebview;var X=_.qD("yt-mini-app-score-button-view-model"),J=function(){var n;return _.r(z==null?void 0:(n=z())==null?void 0:n.buttonViewModel,_.H7)},q=function(){var n;
return(C==null?void 0:C())||Number(z==null?void 0:(n=z())==null?void 0:n.lastScore)||0},T=function(){var n;
return(w==null?void 0:w())||((n=J())==null?void 0:n.title)||""},Q,m=1;
if(e=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))e=Number(e),m=isNaN(e)?1:e/100;_.sH(function(){K==null||K(q());var n;var H=_.SQ((n=J())==null?void 0:n.onTap);if(H){n=_.r(H,Q0c);var I,L,h;n=_.r(n==null?void 0:(I=n.panelLoadingStrategy)==null?void 0:(L=I.inlineContent)==null?void 0:(h=L.dialogViewModel)==null?void 0:h.customContent,VO6)}else n=void 0;if(I=n)I.score=T()},"Aekez");
e=_.T9(function(){var n,H,I=z==null?void 0:(n=z())==null?void 0:(H=n.loggingDirectives)==null?void 0:H.trackingParams;I&&_.Zw(_.lh().resolve(_.YV),I);return!1});
_.sg(function(){if(X.value){var n=X.value.querySelector("button"),H=J();n&&H&&bwm(n,H);_.Qr("yt-share-playable-with-high-score",function(){var I=q().toString(),L=z==null?void 0:z().onShareHighScoreCommand,h=z==null?void 0:z().highScoreShareClientParamIdentifier,E=G==null?void 0:G();L&&(E?(h=new Ky6,I=_.Et(h,2,I),sA(L,I.JSC$12695_serializeBinary())):h&&(_.lh().resolve(zj3).clientParams.set(h,{miniAppClientParams:{highScore:I}}),NYN(L,!1)))})}});
var a=function(){var n=J();n&&(C==null?0:C())&&n.accessibilityText&&(n.accessibilityText=n.accessibilityText.replace(Q,T()));Q=T();return{numberValue:q(),numberText:T(),heightPx:36,fontSizeMultiplier:m,shouldAnimate:!(C==null||!C())&&!0}};
return _.x("yt-mini-app-score-button-view-model",{class:function(){var n={};return _.VA("miniAppScoreButtonViewModelHost",(n.miniAppScoreButtonViewModelIsVisible=q()!==0,n))},
el:X,"on:click":e},rfg(!1,function(){return _.x("span",{style:"display:none;"},q)}),_.x(_.PF,{data:function(){var n;
return z==null?void 0:(n=z())==null?void 0:n.buttonViewModel}},{buttonViewModel:function(n){return _.x(_.iz,{data:n.data,
animatedTextProps:a})}}))},"Sf");var bYf=_.f(function(e){var z,C=(z=_.PJ("yt-mini-app-is-theater-mode-enabled"))!=null?z:!1,w=_.M("enable_playable_container_save_button"),K=_.M("enable_play_next_destination_page_in_toolbar");z={};return _.x("ytm-mini-app-top-bar-view-model",null,_.x("div",{class:_.qT("yt-mini-app-top-bar-view-model",(z["yt-mini-app-top-bar-view-model--mobile"]=!1,z["yt-mini-app-top-bar-view-model--desktop"]=!0,z))},_.x("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.x(_.l,{cond:function(){var G;return!!e.data().backButtonEdu&&
!((G=e.isExitMiniAppSeen)==null?0:G.call(e))},
then:function(){return _.x(_.PF,{data:function(){return e.data().backButtonEdu}},{buttonViewModel:_.iz})},
else:function(){return _.x(_.PF,{data:function(){return e.data().backButton}},{buttonViewModel:_.iz})}}),_.x(_.l,{cond:function(){return e.data().viewAllButton&&!0},
then:function(){return _.x(_.PF,{data:function(){return e.data().viewAllButton}},{buttonViewModel:_.iz})}}),_.x(_.l,{cond:function(){return e.data().title&&!0},
then:function(){return _.x("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return e.data().title})}})),_.x("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.x(_.l,{cond:function(){var G;
return(G=e.isDesktopPlayPage)==null?void 0:G.call(e)},
then:function(){return _.x(_.Qw,null,_.x(K2E,{highScoreButton:function(){return e.data().highScoreButton},
score:e.score,formattedScore:e.formattedScore,onScoreChanged:e.onScoreChanged,isEmbeddedInWebview:e.isEmbeddedInWebview}),_.x(oav,{enableSaveButton:function(){return _.gp(w)},
saveButton:function(){return e.data().saveButton},
isSaved:e.isSaved,onSaveToggled:function(){return e.onSaveToggled}}),_.x(Gyv,{menuButton:function(){return e.data().menuButton}}))},
else:function(){return _.x(_.l,{cond:function(){return!1},
then:function(){return _.x(_.PF,{data:function(){return e.data().playPageButton}},{buttonViewModel:function(G){return _.x(_.iz,{data:G.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.x(K2E,{highScoreButton:function(){return e.data().highScoreButton},
score:e.score,formattedScore:e.formattedScore,onScoreChanged:e.onScoreChanged,isEmbeddedInWebview:e.isEmbeddedInWebview})}})}})),_.x("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.x(_.PF,{data:function(){return e.data().muteButton}},{toggleButtonViewModel:function(G){var X=G.data;
return _.x(_.XG,{data:function(){var J,q;return Object.assign({},X(),{isToggled:(q=(J=e.isAudioEnabled)==null?void 0:J.call(e))!=null?q:!0})},
onToggle:e.onAudioToggled,useOutlinedIcon:!0})}}),_.x(_.PF,{data:function(){return e.data().theatreModeButton}},{toggleButtonViewModel:function(G){var X=G.data;
return _.x("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.x(_.XG,{data:function(){return Object.assign({},X(),{isToggled:C})},
useOutlinedIcon:!0}))}}),_.x(YCq,{fullscreenButton:function(){return e.data().fullscreenButton}}),_.x(_.l,{cond:function(){return _.gp(K)&&e.data().viewAllButton&&!1},
then:function(){return _.x(_.PF,{data:function(){return e.data().viewAllButton}},{buttonViewModel:_.iz})}}),_.x(_.l,{cond:function(){var G;
return!((G=e.isDesktopPlayPage)==null?0:G.call(e))},
then:function(){return _.x(_.Qw,null,_.x(oav,{enableSaveButton:function(){return _.gp(w)},
saveButton:function(){return e.data().saveButton},
isSaved:e.isSaved,onSaveToggled:function(){return e.onSaveToggled}}),_.x(Gyv,{menuButton:function(){return e.data().menuButton}}))}}))))},"Tf");
bYf.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Gyv=_.f(function(e){return _.x(_.PF,{data:e.menuButton},{buttonViewModel:_.iz})},"Uf"),oav=_.f(function(e){var z=e.enableSaveButton;
var C=e.saveButton;var w=e.isSaved;var K=e.onSaveToggled;return _.x(_.l,{cond:function(){return z()&&!(C==null||!C())},
then:function(){return _.x(_.PF,{data:function(){var G=_.r(C==null?void 0:C(),_.v7),X;return{toggleButtonViewModel:Object.assign({},G,{isToggled:(X=w==null?void 0:w())!=null?X:!(G==null||!G.isToggled)})}}},{toggleButtonViewModel:function(G){return _.x(_.XG,{data:G.data,
onToggle:K})}})}})},"Vf"),K2E=_.f(function(e){var z=e.highScoreButton;
var C=e.score;var w=e.formattedScore;var K=e.onScoreChanged;var G=e.isEmbeddedInWebview;return _.x(_.PF,{data:z},{miniAppScoreButtonViewModel:function(X){return _.x(wLE,{data:X.data,score:C,formattedScore:w,onScoreChanged:K,isEmbeddedInWebview:G})}})},"Wf"),YCq=_.f(function(e){e=e.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.x(_.Qw,null):_.x(_.PF,{data:e},{buttonViewModel:_.iz})},"Xf");_.XL5=_.f(function(e){var z=e.data;var C=e.extractOverlay;e={};return _.x("player-disclosure-view-model",{class:_.qT("ytwPlayerDisclosureViewModelHost",(e.ytwPlayerDisclosureViewModelExtractOverlay=function(){return C==null?void 0:C()},e))},_.x(_.fE,{command:function(){return z().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.x(_.l,{cond:function(){return z().iconName},
then:function(w){return _.x(_.mB,{icon:w})}}),_.x(_.l,{cond:function(){return z().iconName?void 0:z().image},
then:function(w){return _.x(_.Zf,{data:w,alt:function(){return z().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.x(_.l,{cond:function(){return z().title||z().secondaryText},
then:function(){return _.x("div",null,_.x("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return z().title}),_.x("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return z().text}),_.x(_.l,{cond:function(){return z().secondaryText},
then:function(w){return _.x(_.Qw,null,_.x("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.x("div",{class:"ytwPlayerDisclosureViewModelText"},w))}}))},
else:function(){return _.x("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return z().text})}}),_.x(_.l,{cond:function(){return z().showEndChevron},
then:function(){return _.x(_.mB,{icon:"CHEVRON_RIGHT"})}})))},"Yf");_.Jto=new _.Mt("DESKTOP_CURRENT_PAGE");var lyZ=_.f(function(e){var z=e.data;var C=_.M("force_active_time_logging_webview"),w=!1,K=new SqW,G=void 0,X=void 0,J=_.lh().resolve(f3q),q=new Ovo,T=void 0,Q=void 0,m=[],a=void 0,n=void 0,H=!1,I=!1,L=!1,h=!1,E=new _.x5,N=_.lh().resolve(zj3),D=_.lh().resolve(_.Vl),g=_.lh().resolve(_.$B(wi)),y,Z=(y=_.lh().resolve(_.$B(_.Jto)))==null?void 0:y.getCurrentPage(),YN=!1,Jk=0,v1=function(zX){zX.preventDefault();return zX.returnValue=""},lg,M5=_.b(_.II(!((lg=_.PJ("yt-mini-app-is-audio-enabled"))!=null&&!lg),
void 0,"wBOrKf")),fo=M5.next().value,ug=M5.next().value,sE,w6=_.b(_.II(!((sE=_.PJ("exit-mini-app-seen-state"))==null||!sE),void 0,"a2xYg")),qY=w6.next().value,y1=w6.next().value,Qa=_.b(_.II(!1,void 0,"i8BH4")),Ha=Qa.next().value,OU=Qa.next().value,ab=_.b(_.II(void 0,void 0,"UGqFqe")),Pa=ab.next().value,$N=ab.next().value,N5=_.b(_.II(void 0,void 0,"jrV5Ob")),$L=N5.next().value,Ba=N5.next().value,r6=_.b(_.II(!0,void 0,"u5JS3d")),eE=r6.next().value,q1=r6.next().value,g6=_.b(_.II(!1,void 0,"MjPdB")),
lo=g6.next().value,mc=g6.next().value,ob=_.b(_.II(!1,void 0,"nT6Yxf")),Ak=ob.next().value,wf=ob.next().value,$a=_.b(_.II(void 0,void 0,"nkG6")),CY=$a.next().value,nv=$a.next().value,sq=_.b(_.II(0,void 0,"KH4u0b")),k2=sq.next().value,aM=sq.next().value,jS=_.kI("mini-app-container-view-model"),Wl=_.b(_.II(!1,void 0,"NsE4qb")),b$=Wl.next().value,wp=Wl.next().value,MG=function(){return z().isEmbeddedInWebview},D0=function(){return z().hasPlayNextShelf};
_.Nm(function(){var zX,rf=(zX=_.r(z().contentDisclosure,ZET))==null?void 0:zX.animationParams;if((rf==null?0:rf.shouldHide)&&(rf==null?0:rf.hideDelaySecs)){var Lv=setTimeout(function(){wp(!0)},rf.hideDelaySecs*1E3);
_.BC(function(){clearTimeout(Lv)})}});
_.Qr("yt-page-type-changed",function(zX){if(_.M("enable_is_mini_app_page_active_bugfix"))zX.detail.newPageSubtype==="mini_app"&&zX.detail.newPageType==="ytd-browse"||!eE()||ML();else if(zX=_.Cs()==="mini_app",zX!==eE())if(q1(zX),zX){var rf;zX=(rf=z().playableId)==null?void 0:rf.toString();zX!==void 0&&window.location.href.includes(zX)&&!I&&(h=!0,r9(),d5.value&&Sl(d5.value))}else zX||ML()});
_.Qr("yt-action",function(zX){zX.detail.actionName==="yt-engagement-panel-visible-changed"&&zX.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&zX.detail.args[2]==="PAmini_app_panel"&&ML();_.M("enable_is_mini_app_page_active_bugfix")?zX.detail.actionName==="yt-history-load"&&!eE()&&(Z==null?0:Z.active)?(q1(!0),r9(),d5.value&&Sl(d5.value)):zX.detail.actionName==="yt-history-load"&&eE()&&!z().isEmbeddedInWebview&&UU():eE()&&zX.detail.actionName==="yt-history-load"&&(h?h=!1:z().isEmbeddedInWebview||
UU())});
_.BC(function(){Fg()});
_.sH(function(){r9()},"bzUf2c");
var r9=function(){var zX=z().playableId,rf=z().localReleaseId,Lv=z().derivedDeviceInterface;if(I)_.AX(new _.uh("[MiniAppContainerViewModel] onEnter was called more than once"));else{I=!0;G=new nZY(zX,rf,Lv,document.visibilityState==="visible");UaY(G);X=new NfC(zX);kyE(J,zX);EZo(q,{showMiniAppAdCommand:z().showMiniAppAdCommand,isEmbeddedInWebview:z().isEmbeddedInWebview,playLogger:G});K64()&&(n=document.body.style.backgroundColor,_.z1(document.body,"background-color","black"));ED();n4();E=new _.x5;
if(z().isEmbeddedInWebview){if(zX=(new URLSearchParams(window.location.search)).get("postPlayNonce"))rC5(G,zX),YN=!0;K.initialize({onAudioStateLoaded:function(ww){jh(ww)},
onMuteMiniApp:function(){jh(!1)},
onUnmuteMiniApp:function(){jh(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(ww){YN||(rC5(G,ww),YN=!0)},
confirmExitMiniApp:function(){var ww,NX,DH;return _.k(function(zN){if(zN.nextAddress==1)return z().confirmExitMiniAppCommand?zN.yield(Promise.race([E.promise,Promise.resolve(!1)]),2):zN.return();(ww=zN.yieldResult)?!z().confirmExitMiniAppCommandEdu||(DH=(NX=qY)==null?void 0:NX())!=null&&DH?Hf(z().confirmExitMiniAppCommand):(Hf(z().confirmExitMiniAppCommandEdu),_.WJ("exit-mini-app-seen-state","true",2592E6)):Hf(z().closeMiniAppCommand);_.E_(zN)})},
onNativeBenchmarkingMessageReceived:function(ww){ww=ORS(_.u8g(ww));if(_.hd(ww,_.DW,3,Rl4)){var NX=_.BW(ww,_.DW,3,Rl4),DH=sdk();var zN=jn(DH.getSeconds())-jn(NX.getSeconds());NX=_.$2(DH,2)-_.$2(NX,2);zN<0&&NX>0?(zN+=1,NX-=1E9):zN>0&&NX<0&&(--zN,NX+=1E9);zN=(new kQ).setSeconds(zN);zN=_.eg(zN,2,_.XY(NX),0);_.PL(ww,1,zN)}var Ti;(Ti=Q)==null||Ti.returnNativeBenchmarkingMessage(ww)},
multiplayer3pAckStateLoaded:function(ww){UU(ww)},
exitMiniAppSeenStateLoaded:function(ww){z().confirmExitMiniAppCommandEdu&&y1(ww)},
onNavigateToNewMiniApp:function(){Hf(z().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(ww){ww=new URLSearchParams(ww);var NX=void 0;ww.has("invite_code")&&(NX=new d_C,ww=ww.get("invite_code"),NX=_.Et(NX,1,ww));if(ww=NX){var DH;(DH=Q)==null||DH.sendGameData(ww)}},
onPauseMiniApp:function(){w=!0;P1()},
onResumeMiniApp:function(){w=!0;dL()},
onAdFinished:function(ww){q.onAdFinished(ww)}});
z().showMultiplayer3pConsentDialogCommand||E.resolve(!0);Hf(z().onContainerReadyCommand)}else rC5(G),E.resolve(!0);sbf(X,MEq(G));MEq(G).then(function(ww){ww={miniAppPlayData:{postPlayNonce:ww}};var NX,DH=(NX=z().loggingDirectives)==null?void 0:NX.trackingParams;DH&&_.nm().stateChanged(DH,ww)});
zX=z().showSignInDialogCommand;!y7k()&&zX&&(_.WJ("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Hf(zX));z().confirmExitMiniAppCommand&&g&&(zX=Dz8(z().confirmExitMiniAppCommand))&&(g.customConfirmationCommand=zX)}},Fg=function(){n&&_.z1(document.body,"background-color",n);
H=!1;a&&a.release();X.flush().catch(function(zX){_.AX(zX)});
J.flush().catch(function(zX){_.AX(zX)});
I3f(G);Ft();Q=void 0;qCf(N)},ML=function(){q1(!1);
Fg();OU(!1);nv(void 0);$N(void 0);Ba(void 0);Jk=0;aM(0);I=!1},P1=function(){var zX;
(zX=Q)==null||zX.onPause();a&&a.release();X.flush().catch(function(rf){_.AX(rf)});
J.flush().catch(function(rf){_.AX(rf)});
vZW(G);mc(!0)},dL=function(){var zX;
(zX=Q)==null||zX.onResume();n4();zX=G;zX.isForeground=!0;SP(zX,"PLAY_EVENT_TYPE_PLAY_RESUME");mc(!1)},jh=function(zX){var rf;
(rf=Q)==null||rf.onAudioToggled(zX);ug(zX)},UU=function(zX){z().showMultiplayer3pConsentDialogCommand&&(z().isEmbeddedInWebview&&zX!==void 0&&E.resolve(zX),!zX&&_.Cs()==="mini_app"&&Hf(z().showMultiplayer3pConsentDialogCommand))},Uq=function(){var zX,rf,Lv,ww;
return _.k(function(NX){if(NX.nextAddress==1){!z().isLivestream||z().disableVideoCapture||(zX=Q)!=null&&zX.sendStartGameFrameCapture();rf=(new URL(window.location.href)).searchParams;if(rf.has("invite_code")){var DH=new d_C,zN=rf.get("invite_code");Lv=_.Et(DH,1,zN);(ww=Q)==null||ww.sendGameData(Lv)}Ha()||(OU(!0),DH=G,DH.state!==1?_.AX(new _.uh("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+maE[DH.state])):(_.r3("mini_app_ids_without_game_ready").includes(DH.JSC$17244_miniAppId)&&(DH.gameReady=
!0),DH.state=2,DH.beforeReady=!1,f8(DH,"ma_ffr"),SP(DH,"PLAY_EVENT_TYPE_PLAY_READY")));return NX.yield(E.promise,2)}Hf(z().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();z().isEmbeddedInWebview||UU();_.E_(NX)})},fY=function(){var zX=G;
zX.gameReady=!0;f8(zX,"ma_gr")},Oq=function(zX){var rf;
return _.k(function(Lv){if(Lv.nextAddress==1)return _.Iv(Lv,2),Lv.yield(tE$(X,zX),4);if(Lv.nextAddress!=2)return _.Yj(Lv,0);rf=_.O_(Lv);Hf(z().showSavingErrorPopupCommand);throw rf;})},Lg=function(){var zX,rf;
return _.k(function(Lv){if(Lv.nextAddress==1)return _.Iv(Lv,2),Lv.yield(BfZ(X),4);if(Lv.nextAddress!=2)return zX=Lv.yieldResult,Lv.return(zX);rf=_.O_(Lv);Hf(z().showLoadingErrorDialogCommand);throw rf;})},Ih=function(zX){G.logError(zX)},gf=function(zX,rf,Lv){P$b(G,zX,rf,Lv)},BL=function(zX,rf){L55(G,zX,rf)},ng=function(){!C&&z().isEmbeddedInWebview||_.m1();
W53(G,!0);H||(window.addEventListener("beforeunload",v1,{capture:!0}),H=!0)},A0=function(zX){var rf,Lv,ww,NX,DH,zN,Ti;
return _.k(function(Ne){if(Ne.nextAddress==1)return J&&(!T||T<zX)&&zX>0?Ne.yield(xgl(J,zX),3):Ne.jumpTo(0);rf=Ne.yieldResult;Lv=_.b(rf);ww=Lv.next().value;NX=Lv.next().value;DH=ww;zN=NX;((Ti=DH)==null?0:Ti.displayString)&&zN&&($N(zN),Ba(DH.displayString));_.E_(Ne)})},yw=function(zX){var rf=z().onBenchmarkingMessageReceivedCommand;
if(rf){var Lv=sdk();_.RT(zX,3,Rl4,Lv);sA(rf,Eug(zX))}},tt=function(){var zX=z().iapPurchaseCommand;
zX&&sA(zX)},cC=function(zX){var rf=z().onGameFrameReceivedCommand;
if(rf){var Lv=new YR;var ww=new LWL;var NX=u5(zX,1);ww=_.uk(ww,1,NX);zX=_.Ds(zX,2);zX=_.Et(ww,2,zX);Lv=_.PL(Lv,2,zX);sA(rf,FWa(Lv))}},bp=function(zX){var rf=z().onGameAudioDataReceivedCommand;
if(rf){var Lv=new YR;var ww=new OAa;zX=_.Ds(zX,1);ww=_.Et(ww,1,zX);Lv=_.PL(Lv,4,ww);sA(rf,FWa(Lv))}},rQ=function(){var zX=new URLSearchParams(window.location.search);
if(z().isEmbeddedInWebview&&zX&&zX.get("override_hl")==="true"&&zX.get("hl"))return zX.get("hl");zX=document.documentElement.lang;return zX!==""?zX:sk},fh=function(zX){var rf=z().onShareInviteCodeCommand;
if(rf)if(z().isEmbeddedInWebview){var Lv=new Ky6;zX=_.Et(Lv,1,zX);sA(rf,GAc(zX))}else Lv=z().inviteCodeShareClientParamIdentifier,N.clientParams.set(Lv,{miniAppClientParams:{inviteCode:zX}}),Hf(rf)},gG=function(zX){var rf,Lv,ww;
return _.k(function(NX){if(NX.nextAddress==1)return rf=z().onMiniAppOpenYtContentRequested,J&&_.M("enable_open_yt_content")&&rf?NX.yield(Twa(J,zX),3):NX.jumpTo(0);Lv=NX.yieldResult;if(Lv==="OK")if(z().isEmbeddedInWebview){var DH=new Ila;ww=hX(DH,2,GC,Ma(zX));sA(rf,RgS(ww))}else D.clientData.set("video_id",zX),Hf(rf);_.E_(NX)})},UL=function(zX){Jk+=_.$2(zX,3);
zX=Math.min(Math.log(1+Jk/15E6*9)/Math.log(10),.99);aM(zX);To(zX)},To=_.dJ(function(zX){var rf=z().updateLoadingProgressCommand;
if(rf){var Lv=new Ila;zX=hX(Lv,3,GC,_.ZT(zX));sA(rf,RgS(zX))}},100),h_=function(zX){return VEZ(q,zX)},n4=function(){var zX,rf;
((zX=_.UP1())==null?void 0:(rf=zX.wakeLock)==null?void 0:rf.request)!=null&&_.UP1().wakeLock.request("screen").then(function(Lv){a=Lv}).catch(function(){})},d5=_.qD("iframe");
_.sH(function(){z().isSupportedCountry&&(y7k()||_.M("enable_sign_in_promo")||!z().showSignInDialogCommand?d5.value&&Sl(d5.value):Hf(z().onMiniAppReadyCommand))},"wJQWDc");
var OD=function(){return _.x("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Ha()?0:-1},
title:function(){return z().title},
el:d5})},Sl=function(zX,rf){rf=rf===void 0?!1:rf;
var Lv=j1();if(Lv&&(rf||Lv.toString()!==zX.getAttribute("src"))){Q=Cf8(z().source,{isAudioEnabled:fo,onFirstFrameReady:Uq,onGameReady:fY,onSave:Oq,onLoad:Lg,onError:Ih,onSdkCalled:gf,onSdkPerformanceUpdate:BL,onClick:ng,onSendHighScore:A0,onBenchmarkingMessageReceived:yw,getLanguage:rQ,onShareInviteCode:fh,onResourceLoaded:UL,onOpenYTContent:gG,onShowMiniAppAd:h_,onGameFrameReceived:cC,onGameAudioReceived:bp,onMakeIapPurchase:tt},zX,Lv);H9(zX,"load",function(){f8(G,"ma_il");H9(zX,"load",function(){Sl(zX,
!0)})});
var ww=_.n0("mini_app_container_iframe_src_update_delay_ms");z().isEmbeddedInWebview&&!rf&&ww>0?gg8(zX,Lv,ww):_.Cq(zX,Lv)}},j1=function(){var zX=z().url;
if(zX&&(zX=_.Af(zX),zX!==null)){if(z().source&&z().source==="MINI_APP_SOURCE_GAMESNACKS")zX=_.MX(zX,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.M("enable_origin_query_parameter_bugfix")){var rf=_.fM(_.mcL(zX.toString()));rf=new URLSearchParams(rf||"");rf.set("origin",window.location.origin);rf=rf.toString();zX=_.F2(zX).toString();zX=_.EC(qtX.exec(zX)[0]+(rf.trim()?"#"+rf:""))}return zX}},d2=function(){var zX={};
zX=_.qT("yt-mini-app-container-view-model__loading-screen",(zX["yt-mini-app-container-view-model__loading-screen--fade-out"]=Ha,zX));var rf=function(){return Ha()?1:k2()};
return _.x("div",{class:zX},_.x(_.PF,{data:function(){return z().splashScreen}},{miniAppSplashScreenViewModel:function(Lv){return _.x(ejq,{data:Lv.data,
loadingProgress:rf})}}))},yK=function(){var zX={};
return _.x("div",{class:_.qT("yt-mini-app-container-view-model__pause-interstitial",(zX["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!lo()},zX["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=lo,zX))},_.x(_.PF,{data:function(){return z().splashScreen}},{miniAppSplashScreenViewModel:function(rf){return _.x(ejq,{data:rf.data,
forPaused:!0})}}))},ED=function(){m=[];
m.push(_.W9(window,"visibilitychange",function(){L||w&&MG()||(document.visibilityState==="visible"?dL():P1())}));
m.push(_.W9(window,"pagehide",function(){Fg()}));
m.push(_.W9(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&jS.value.dispatchEvent(new Event("tap"))},0)}));
m.push(_.W9(jS.value,"pointerdown",function(){W53(G,!1)},!0));
m.push(_.W9(jS.value,"pause",function(){L=!0;P1()}));
m.push(_.W9(jS.value,"play",function(){L=!1;dL()}));
m.push(_.W9(jS.value,"exit",function(){Fg()}));
var zX=navigator.keyboard,rf=zX&&zX.lock;m.push(_.W9(window,Pwo,function(){wf(LBS());LBS()?(z().hasPlayNextShelf&&FE("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),N2("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),rf&&zX.lock(["Escape"])):(z().hasPlayNextShelf&&N2("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),FE("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),rf&&zX.unlock())}));
z().showMultiplayer3pConsentDialogCommand&&m.push(_.W9(window,"yt-playables-ack-3p-data-usage",function(){$gb(J)}));
z().confirmExitMiniAppCommandEdu&&m.push(_.W9(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.WJ("exit-mini-app-seen-state","true",2592E6)}));
z().onGameAudioDataReceivedCommand&&m.push(_.W9(window,"message",function(Lv){Lv=Lv.event_;var ww,NX=(ww=d5.value)==null?void 0:ww.src;if(NX&&Lv.origin===(new URL(NX)).origin&&Lv.data&&Lv.data.type==="GAME_AUDIO"&&Lv.data.audio&&Lv.data.audio.length>0)if(_.M("enable_sending_unwrapped_game_audio_as_serialized_metadata"))tM4(z().onGameAudioDataReceivedCommand,Lv.data.audio);else{var DH=new FileReader;DH.onload=function(){var zN=new YR;var Ti=new OAa;Ti=_.Et(Ti,1,DH.result);zN=_.PL(zN,4,Ti);sA(z().onGameAudioDataReceivedCommand,
FWa(zN))};
DH.readAsDataURL(new Blob([Lv.data.audio]))}}))},Ft=function(){m.forEach(function(zX){Um(zX)});
window.removeEventListener("beforeunload",v1,{capture:!0})},Hf=function(zX){zX&&NYN(zX,z().isEmbeddedInWebview||!1)},N2=function(zX,rf){zX=_.b(jS.value.getElementsByClassName(zX));
for(var Lv=zX.next();!Lv.done;Lv=zX.next())Lv.value.classList.add(rf)},FE=function(zX,rf){zX=_.b(jS.value.getElementsByClassName(zX));
for(var Lv=zX.next();!Lv.done;Lv=zX.next())Lv.value.classList.remove(rf)};
return function(){var zX={};zX=_.qT("yt-mini-app-container-view-model",(zX["yt-mini-app-container-view-model--desktop"]=!0,zX["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},zX["yt-mini-app-container-view-model--ios-web-view"]=K64(),zX["yt-mini-app-container-view-model--no-top-bar"]=function(){return!z().topBar},zX["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return z().hasPlayNextShelf},zX["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return z().hasPlayNextShelf},zX["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Ak()&&z().hasPlayNextShelf},zX));
var rf={};rf=_.qT("yt-mini-app-container-view-model__content",(rf["yt-mini-app-container-view-model__content--desktop-content"]=!0,rf["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return z().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},rf["yt-mini-app-container-view-model--desktop-play-page"]=function(){return z().hasPlayNextShelf},rf));
return _.x("mini-app-container-view-model",{el:jS},_.x("div",{class:zX},_.x(_.l,{cond:function(){return z().topBar&&!Ak()},
then:function(){return _.x(_.PF,{data:function(){return z().topBar}},{miniAppTopBarViewModel:function(Lv){return _.x(bYf,{data:Lv.data,
isAudioEnabled:fo,onAudioToggled:function(ww){jh(ww)},
score:Pa,formattedScore:$L,onScoreChanged:function(ww){T=ww},
isEmbeddedInWebview:MG,isSaved:CY,onSaveToggled:function(ww){nv(ww)},
isExitMiniAppSeen:qY,isDesktopPlayPage:D0})}})}}),_.x("div",{class:rf},_.x(_.l,{cond:eE,
then:function(){return OD()}}),_.x(_.l,{cond:function(){return z().isLivestream},
then:function(){return yK()}}),_.x(_.l,{cond:function(){return!z().isEmbeddedInWebview},
then:function(){return d2()}}),_.x(_.PF,{data:function(){return z().contentDisclosure}},{playerDisclosureViewModel:function(Lv){Lv=Lv.data;
var ww={};return _.x("div",{class:_.qT("yt-mini-app-container-view-model__content-disclosure-overlay",(ww["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=b$,ww))},_.x(_.XL5,{data:Lv}))}}))))}()},"bg");
lyZ.idomCompat=!0;_.KU(lyZ,"mini-app-container-view-model",{props:{data:_.vh}});var QTY=_.f(function(e){var z=e.data;return _.x("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.x("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.T9(function(){var C=z().onTap;C&&_.NF(C)})},_.x(_.l,{cond:function(){return z().icon},
then:function(C){return _.x(_.mB,{icon:function(){return C().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.x("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return z().title})))},"cg");
QTY.idomCompat=!0;var mgY=_.f(function(e){var z=_.kI("div"),C=_.b(_.II(void 0,void 0,"dg3xff")),w=C.next().value,K=C.next().value;C=_.b(_.II(void 0,void 0,"AgHNfc"));var G=C.next().value,X=C.next().value;C=_.b(_.II(void 0,void 0,"fuTKCc"));var J=C.next().value,q=C.next().value,T=function(){var h=w();return h!==void 0?Math.abs(h):void 0},Q=function(){var h=T();
return h===void 0||h<=3},m=function(){var h=T();
var E=G(),N=J();h=h!==void 0&&E!==void 0&&N!==void 0?E-N-h:void 0;return h===void 0||h<=3},a=function(h){z.value&&z.value.scrollBy({top:0,
left:(_.j5("HTML_DIR")==="rtl"?-1:1)*h*z.value.clientWidth,behavior:"smooth"})},n=function(){var h;
K((h=z.value)==null?void 0:h.scrollLeft);var E;X((E=z.value)==null?void 0:E.scrollWidth);var N;q((N=z.value)==null?void 0:N.clientWidth)},H=function(){a(-.5)},I=function(){a(.5)};
C=_.T9(function(){n()});
_.Nm(function(){n();if(z.value&&window.ResizeObserver){var h=new ResizeObserver(n);h.observe(z.value);_.BC(function(){h.disconnect()})}});
var L={};return _.x("yt-sponsorships-scrollable-shelf",{class:_.qT("ytdSponsorshipsScrollableShelfHost",e.className)},_.x("div",{class:_.qT("ytdSponsorshipsScrollableShelfContent",(L.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return e.data().previousButton&&e.data().nextButton&&!Q()&&!m()},L.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return e.data().previousButton&&!Q()&&m()},L.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return e.data().nextButton&&
Q()&&!m()},L)),
el:z,"on:scroll":C},e.children),_.x(_.l,{cond:function(){return!Q()},
then:function(){return _.x(_.PF,{data:function(){return e.data().previousButton}},{buttonViewModel:function(h){return _.x(_.iz,{data:h.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:H})}})}}),_.x(_.l,{cond:function(){return!m()},
then:function(){return _.x(_.PF,{data:function(){return e.data().nextButton}},{buttonViewModel:function(h){return _.x(_.iz,{data:h.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:I})}})}}))},"eg");
mgY.idomCompat=!0;var nao=_.f(function(e){var z=e.data;e={};return _.x("yt-sponsorships-hub",{class:_.qT("ytdSponsorshipsHubHost",(e.ytdSponsorshipsHubHostIndented=function(){return z().indented},e))},_.x("div",{class:"ytdSponsorshipsHubHeader"},_.x("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.x("div",{class:"ytdSponsorshipsHubAvatar"},_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO})),_.x(_.l,{cond:function(){return z().badgeImage},
then:function(C){return _.x("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.x("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.x("div",{class:"ytdSponsorshipsHubBadge"},_.x(_.Zf,{data:C,targetWidth:24,targetHeight:24,alt:""}))))}})),_.x("div",{class:"ytdSponsorshipsHubDetails"},_.x("div",{class:"ytdSponsorshipsHubTierName"},function(){return z().tierName}),_.x("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return z().membershipType}),_.x("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return z().membershipDurationOrExpiry})),_.x("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.x(_.PF,{data:function(){return z().manageButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.x(_.PF,{data:function(){return z().actionMenuButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.x("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return z().perksTitle}),_.x(mgY,{data:function(){return{previousButton:z().previousPerkButton,
nextButton:z().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.x("div",{class:"ytdSponsorshipsHubPerkCards"},_.x(_.PF,{data:function(){return z().perkCards}},{sponsorshipsHubPerkCardViewModel:QTY}),_.x(_.l,{cond:function(){return z().viewAllPerksButton},
then:function(C){return _.x(ayl,{data:C})}}))))},"fg");
nao.idomCompat=!0;var ayl=_.f(function(e){var z=e.data;return _.x("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.x(_.PF,{data:function(){return z().button}},{buttonViewModel:_.iz}),_.x("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.x("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return z().title}),_.x("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return z().subtitle})))},"gg");
ayl.idomCompat=!0;_.KU(nao,"yt-sponsorships-hub",{props:{data:_.vh}});_.MgW=_.f(function(e){var z=e.data;return _.x("yt-dual-avatar-view-model",{class:_.qT("ytDualAvatarViewModelHost",e.className),style:_.QC({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var C;return((C=z().badgeCutoutRadius)!=null?C:14)+"px"}})},_.x("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.x(_.PF,{data:function(){return z().startAvatar}},{avatarViewModel:_.lO}),_.x(_.PF,{data:function(){return z().endAvatar}},{avatarViewModel:_.lO})),_.x(_.PF,{data:function(){return z().badge}},
{contentPreviewImageViewModel:function(C){return _.x("div",{class:"ytDualAvatarViewModelBadge"},_.x(_.gH,{data:C.data}))}}))},"hg");
_.MgW.idomCompat=!0;var HY$=_.f(function(e){var z=e.data;var C,w=!((C=_.lh().resolve(_.$B(_.jQ)))==null||!C());e=_.hG(function(){var Q,m,a=w?(Q=z().header)==null?void 0:Q.backgroundColorDarkMode:(m=z().header)==null?void 0:m.backgroundColorLightMode;if(a!==void 0)return _.FN(a)},void 0,"TDdh7d");
C=_.hG(function(){var Q,m;return w?(Q=z().header)==null?void 0:Q.backgroundImagePart1Dark:(m=z().header)==null?void 0:m.backgroundImagePart1Light},void 0,"X0peMe");
var K=_.hG(function(){var Q,m;return w?(Q=z().header)==null?void 0:Q.backgroundImagePart2Dark:(m=z().header)==null?void 0:m.backgroundImagePart2Light},void 0,"an0Hzd"),G=_.hG(function(){return _.j5("HTML_DIR")==="rtl"},void 0,"BltEgb"),X=_.kI("yt-sponsorships-perks-list"),J=!1,q=function(){var Q=X.value;
if(Q&&!J){var m,a=(m=Q.parentElement)==null?void 0:m.parentElement;if(a)for(Q=Q.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),m=0;m<Q.length;++m){var n=Q[m];if(n instanceof HTMLElement){a.scrollTo({top:n.offsetTop+n.clientHeight/2-a.clientHeight/2,behavior:"smooth"});J=!0;break}}}};
_.sg(function(){var Q=X.value;if(Q&&window.ResizeObserver){var m=new ResizeObserver(q);m.observe(Q);_.BC(function(){m.disconnect()})}});
var T={};return _.x("yt-sponsorships-perks-list",{el:X,class:_.qT("ytdSponsorshipsPerksListHost",(T.ytdSponsorshipsPerksListHorizontalPadding=function(){return z().horizontalPaddingEnabled},T))},_.x("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.x("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.QC({"background-color":e})},_.x("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.x(_.l,{cond:C,then:function(Q){var m={};return _.x("div",{class:_.qT((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=w,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!w,m.ytdSponsorshipsPerksListFlipped=G,m))},_.x(_.Zf,{data:Q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.x("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.x(_.l,{cond:K,
then:function(Q){var m={};return _.x("div",{class:_.qT((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=w,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!w,m.ytdSponsorshipsPerksListFlipped=G,m))},_.x(_.Zf,{data:Q,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.x("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.x(_.PF,{data:function(){var Q;
return(Q=z().header)==null?void 0:Q.dualAvatar}},{dualAvatarViewModel:_.MgW})))),_.x("div",{class:"ytdSponsorshipsPerksListBody"},_.x("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return z().title}),_.x(_.l,{cond:function(){return z().perks},
then:function(Q){return _.x(_.ui,{each:Q},function(m,a){var n={};return _.x("div",{class:_.qT("ytdSponsorshipsPerksListPerkContainer",(n.ytdSponsorshipsPerksListSelectedPerk=function(){var H=a(),I=z().selectedPerkIndex;return H===I},n))},_.x(_.l,{cond:function(){return a()>0},
then:function(){return _.x("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.x("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.x(_.l,{cond:function(){return m.icon},
then:function(H){return _.x(_.mB,{icon:function(){return H().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.x("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.x("div",{class:"ytdSponsorshipsPerksListPerkTitle"},m.title),_.x("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.x(_.U2,{text:m.description})),_.x(_.l,{cond:function(){return m.instructions},
then:function(){var H,I;return _.x("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.x("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(H=m.instructions)==null?void 0:H.title),_.x("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.x(_.U2,{text:(I=m.instructions)==null?void 0:I.text})))}}))),_.x(_.l,{cond:function(){return m.emoji},
then:function(H){return _.x("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.x(_.ui,{each:function(){return H()}},function(I){return _.x(_.Zf,{data:I,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.x(rtE,{data:m}))})}})))},"ig");
HY$.idomCompat=!0;var rtE=_.f(function(e){var z=e.data;var C=function(X,J){return X===J},w=function(){var X=z();
X=_.r(X==null?void 0:X.badgesShelf,J5X);return X!==void 0&&X!==null?X:{previousButton:{},nextButton:{}}},K=_.qD("div"),G=function(){var X=K.value;
if(X){var J=X.parentElement;if(J){X=X.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var q=0;q<X.length;++q){var T=X[q];if(T instanceof HTMLElement){J.scrollTo({left:T.offsetLeft+T.clientWidth/2-J.clientWidth/2,behavior:"instant"});break}}}}};
_.sg(function(){var X=K.value;if(X){var J=new ResizeObserver(G);J.observe(X);_.BC(function(){J.disconnect()})}});
return _.x("div",null,_.x(_.l,{cond:function(){return z().badges},
then:function(X){return _.x(mgY,{data:w},_.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:K},_.x(_.ui,{each:function(){return X()}},function(J,q){var T={},Q={},m={};
return _.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.x(_.l,{cond:function(){return q()>0},
then:function(){return _.x("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.x("div",{class:_.qT("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(T.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return C(q(),z().currentBadgeIndex)},T.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!C(q(),z().currentBadgeIndex)},T))},_.x("div",{class:_.qT("ytdSponsorshipsPerksListLoyaltyBadge",(Q.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return C(q(),
z().currentBadgeIndex)},Q.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!C(q(),z().currentBadgeIndex)},Q))},_.x(_.l,{cond:function(){return J.image},
then:function(a){var n={};return _.x("div",{class:_.qT((n.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return C(q(),z().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!C(q(),z().currentBadgeIndex)},n))},_.x(_.Zf,{data:a,
alt:""}))}})),_.x("div",{class:_.qT("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(m.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return C(q(),z().currentBadgeIndex)},m))},J.title)))})))}}))},"jg");
rtE.idomCompat=!0;_.KU(HY$,"yt-sponsorships-perks-list",{props:{data:_.vh}});_.KU(_.f(function(e){return _.x("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.x(_.l,{cond:function(){return e.data().image},
then:function(z){return _.x(_.Zf,{className:"ytwFantasyEmptyStateViewModelImage",data:z,ariaHidden:!0,alt:""})}}),_.x(_.U2,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return e.data().title}}),_.x(_.U2,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return e.data().subtitle}}),_.x(_.PF,{data:function(){return e.data().primaryButton}},{buttonViewModel:function(z){return _.x(_.iz,{data:z.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"kg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.vh}});var UgZ;var vaZ=_.f(function(e){var z=e.data;var C=e.uniqueId;var w=e.overrides;e=_.hG(function(){var K,G=((K=z().timedAnimationData)==null?void 0:K.animationTiming)||[];return{uniqueId:C(),timings:G,experimentEnabled:G.length>0,enabled:G.length>0}},void 0,"hiuXI");
return _.x("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.x(GIh,{settings:e},_.x(_.PF,{data:function(){return z().buttonRenderer}},{buttonRenderer:function(K){return _.x(_.f9,{data:K.data,
buttonOverrides:w})}})))},"lg");
vaZ.idomCompat=!0;_.KU(vaZ,"timed-animation-button-renderer",{props:{data:_.vh,uniqueId:_.vh,overrides:_.vh}});var sK=function(){var e=_.V.apply(this,arguments)||this;e.hideJoinButtonBeforeSubscribed=_.M("hide_join_button_before_subscribed");e.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return e};
_.U(sK,_.V);_.Y=sK.prototype;_.Y.hasShowDialogCommand=function(e){return!!_.r(e,Q0c)};
_.Y.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"}}}};
_.Y.updateJoinButtonOverrides=function(){var e,z;(e=_.XC(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(z=e.polymerController)==null||z.set("overrides",this.joinButtonOverrides);if(e=_.XC(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))e.overrides=this.joinButtonOverrides};
_.Y.handleButtonRefreshAction=function(e){if(e=_.r(e,Dth))this.set("data.membershipButton",e.membershipButton),this.notifyPath("data.membershipButton")};
_.Y.onYtServiceRequestError=function(e){_.Zh(this.hostElement,e.detail.error.message)};
_.Y.onKeydown=function(e){if(e.key==="Enter"){var z;(z=this.data)!=null&&z.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.Y.handleUnsubscribeAction=function(){var e,z,C;((e=this.data)==null?void 0:(z=e.membershipButton)==null?void 0:(C=z.buttonRenderer)==null?void 0:C.style)==="STYLE_PRIMARY"&&_.XC(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.lB.Object.defineProperties(sK.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.subscriptionStateEntity)==null||!e.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var e,z=(e=this.data)==null?void 0:e.membershipButton,C;e=(z==null?void 0:z.buttonRenderer)||_.r(z==null?void 0:(C=z.timedAnimationButtonRenderer)==null?void 0:C.buttonRenderer,_.a2);return(e==null?void 0:e.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(e==null?void 0:e.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(e==null?void 0:e.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var e;if(this.hasShowDialogCommand((e=this.data)==null?void 0:e.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var e;if(this.hasShowDialogCommand((e=this.data)==null?void 0:e.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.attributedTitle)}}});
sK.prototype.onYtServiceRequestError=sK.prototype.onYtServiceRequestError;sK.prototype.updateJoinButtonOverrides=sK.prototype.updateJoinButtonOverrides;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],sK.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],sK.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],sK.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Ym),_.B("design:type",Object)],sK.prototype,"ironButtonState",void 0);_.d([_.F(),_.B("design:type",Object)],sK.prototype,"data",void 0);_.d([_.P("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.B("design:type",Object),_.B("design:paramtypes",[])],sK.prototype,"hideJoin",null);
_.d([_.F(),_.B("design:type",String)],sK.prototype,"subscribeKey",void 0);_.d([_.F({selectorArgs:["subscribeKey"],selector:GFm}),_.B("design:type",Object)],sK.prototype,"subscriptionStateEntity",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sK.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.d([_.P("subscriptionStateEntity"),_.F({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],sK.prototype,"subscribed",null);
_.d([_.P("subscribed","data.membershipButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],sK.prototype,"joinButtonOverrides",null);_.d([_.P("data.navigationEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],sK.prototype,"channelNameTabIndex",null);_.d([_.P("data.navigationEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],sK.prototype,"channelNameRole",null);
_.d([_.P("data.attributedTitle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],sK.prototype,"hasAttributedTitle",null);_.d([_.mi("joinButtonOverrides"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sK.prototype,"updateJoinButtonOverrides",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],sK.prototype,"onYtServiceRequestError",null);
_.d([_.SL({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],sK);
var Iyq=_.Yp()(sK,"ytd-video-owner-renderer",function(){if(UgZ===void 0){var e=document.createElement("template");_.v(e,'\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"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><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></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);UgZ=e}e=UgZ;return e},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.KU(_.f(function(e){var z=e.data;var C;e=_.b(_.II(!((C=_.PJ("yt-mini-app-is-theater-mode-enabled"))==null||!C),void 0,"i2pjVd"));var w=e.next().value,K=e.next().value;C=_.b(_.II(!1,void 0,"ga7V5c"));var G=C.next().value,X=C.next().value;_.sg(function(){var T=_.W9(window,Pwo,function(){X(LBS())});
_.BC(function(){Um(T)})});
var J;C=(J=_.lh().resolve(_.$B(cko)))!=null?J:function(){return _.x("div",null)};
_.JH("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){K(!0);_.WJ("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.JH("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){K(!1);_.WJ("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
J={};e={};var q={};return _.x("mini-app-play-page-renderer",{class:_.qT("miniAppPlayPageRendererHost",(J.miniAppPlayPageRendererHostDetailsView=function(){return!w()},J))},_.x("div",{class:_.qT("miniAppPlayPageRendererGameContainer",(e.miniAppPlayPageRendererGameContainerDetailsView=function(){return!w()},e))},_.x(_.PF,{data:function(){return z().containerViewModel}},{miniAppContainerViewModel:lyZ}),_.x(_.l,{cond:function(){return z().channel&&z().subscribeButton},
then:function(){var T={};return _.x("div",{class:_.qT("miniAppPlayPageRendererChannelContainer",(T.miniAppPlayPageRendererHideVisibility=function(){return G()},T))},_.x(_.PF,{data:function(){return z().channel}},{videoOwnerRenderer:function(Q){return _.x(Iyq,{data:Q.data})}}),_.x(_.PF,{data:function(){return z().subscribeButton}},{subscribeButtonViewModel:function(Q){return _.x(_.lT,{data:Q.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.x(_.l,{cond:function(){return!w()&&z().description},
then:function(){var T={};return _.x("div",{class:_.qT("miniAppPlayPageRendererMiniAppDescriptionWrapper",(T.miniAppPlayPageRendererHideVisibility=function(){return G()},T))},_.x("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return z().description}))}})),_.x("div",{class:_.qT("miniAppPlayPageRendererPlayNextContainer",(q.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!w()},q.miniAppPlayPageRendererHideVisibility=function(){return G()},q))},_.x(_.PF,{data:function(){return z().sectionList}},
{sectionListRenderer:C})))},"mg"),"mini-app-play-page-renderer",{props:{data:_.vh}});var BY=function(){var e=_.V.apply(this,arguments)||this;e.isSearch=!1;e.isConstrainedList=!1;e.hasChipsBar=!1;e.inReplyPanel=!1;e.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"}};e.monitorScroll=!0;e.SCROLL_ANIMATION_DURATION_MS=300;e.nextContinuation={continuationType:"sectionListContinuation"};return e};
_.U(BY,_.V);_.Y=BY.prototype;
_.Y.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(e){switch(e.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.M("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.M("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.Y.created=function(){var e=this;this.JSC$17384_scrollAnimation=new _.FJ(function(z){e.hostElement.scrollTop=z})};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.Y.getItemsPath=function(){return"data.contents"};
_.Y.replacePrimaryContent=function(e){this.set("data.contents",e)};
_.Y.computeHasSortFilter=function(e){return!!e&&!!e.sortFilterSubMenuRenderer};
_.Y.computeShouldScrollInPanel=function(e){var z;return!!(e==null?0:(z=e.scrollPaneStyle)==null?0:z.scrollable)};
_.Y.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.k$(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.Y.scrollToTop=function(){this.hostElement.scrollTop=0};
_.Y.scrollToItemSection=function(e){if(e=this.getItemByIdentifier(e))e=this.getScrollPositionForItem(e),this.hostElement.scrollTop!==e&&this.JSC$17384_scrollAnimation.start(this.hostElement.scrollTop,e,this.SCROLL_ANIMATION_DURATION_MS)};
_.Y.getItemByIdentifier=function(e){var z=this.contents.querySelectorAll("ytd-item-section-renderer");if(z&&z.length!==0){var C=Array.from(z).findIndex(function(w){return w.sectionIdentifier===e});
return z[C===-1?0:C]}};
_.Y.getScrollPositionForItem=function(e){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===e)return 0;e=_.ge(e).y+this.hostElement.scrollTop-_.ge(this.hostElement).y;return Math.min(e,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.lB.Object.defineProperties(BY.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.targetId)==="browse-feedFEclips"}}});
BY.prototype.onScroll=BY.prototype.onScroll;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],BY.prototype,"ytLazyListBehavior",void 0);_.d([_.W(_.FO.YtNextContinuationBehavior),_.B("design:type",Object)],BY.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.W(_.xaC),_.B("design:type",Object)],BY.prototype,"ytBooleanLogicBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],BY.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BY.prototype,"data",void 0);_.d([_.F({value:2}),_.B("design:type",Number)],BY.prototype,"initialCount",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],BY.prototype,"autoFill",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.B("design:type",Boolean)],BY.prototype,"hasSortFilter",void 0);_.d([_.F({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.B("design:type",Boolean)],BY.prototype,"hideBottomSeparator",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.B("design:type",Boolean)],BY.prototype,"shouldScrollInPanel",void 0);
_.d([_.F(),_.B("design:type",Object)],BY.prototype,"isSearch",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],BY.prototype,"isConstrainedList",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],BY.prototype,"responsiveSizing",void 0);_.d([_.F(),_.B("design:type",Object)],BY.prototype,"hasChipsBar",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],BY.prototype,"pageSubtype",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BY.prototype,"engagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BY.prototype,"liveChatEngagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],BY.prototype,"inReplyPanel",void 0);_.d([_.nP("#action-button"),_.B("design:type",HTMLElement)],BY.prototype,"actionButton",void 0);_.d([_.F(),_.B("design:type",Object)],BY.prototype,"scrollUpButtonData",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BY.prototype,"engagementPanelDropdown",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BY.prototype,"engagementPanelDialog",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],BY.prototype,"isClipList",null);_.d([_.nP("#contents"),_.B("design:type",HTMLElement)],BY.prototype,"monitorScrollElement",void 0);_.d([_.nP("#contents"),_.B("design:type",HTMLElement)],BY.prototype,"contents",void 0);
_.d([_.Qi("scroll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],BY.prototype,"onScroll",null);_.d([_.SL({is:"ytd-section-list-renderer",disableElementRegistration:!0})],BY);
var W2q=_.Yp()(BY,"ytd-section-list-renderer",function(){if(ykf===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);ykf=e}e=ykf;return e},{mode:1});var PlL;var RjE;var L2W;var hjv;var t6=function(){return _.V.apply(this,arguments)||this};
_.U(t6,_.V);t6.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
t6.prototype.onLikeButtonClick=function(e){e.stopPropagation();e.preventDefault()};
_.lB.Object.defineProperties(t6.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)!=null&&e.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)})}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],t6.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],t6.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],t6.prototype,"ytRendererStamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],t6.prototype,"data",void 0);
_.d([_.F({selectorArgs:["data.likeStatusEntityKey"],selector:_.uw}),_.B("design:type",Object)],t6.prototype,"likeStatusEntity",void 0);_.d([_.P("data","likeStatusEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],t6.prototype,"likeButtonRenderer",null);_.d([_.SL({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],t6);
_.u(t6,"ytd-slim-metadata-toggle-button-renderer",function(){if(hjv!==void 0)return hjv;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return hjv=e},{mode:1});var gr=function(){var e=_.V.apply(this,arguments)||this;e.showEqualizer=_.M("web_enable_playlist_video_lockup_equalizer");e.watchColorUpdate=_.M("kevlar_watch_color_update");e.actionMap={};return e};
_.U(gr,_.V);_.Y=gr.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.Y.computeEditableClass=function(e){return e&&e.menu?"editable":""};
_.Y.computeSelected=function(e){return!(e==null||!e.selected)};
_.Y.computeUseColorPalette=function(e){return!!((e==null?0:e.lightColorPalette)&&(e==null?0:e.darkColorPalette))};
_.Y.computeLargerPlaylistThumbs=function(e,z){return _.M("web_enable_playlist_bigger_thumbnails")&&!z};
_.Y.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.Y.onYtServiceRequestSent=function(e,z){z.endpoint&&this.isHideEnclosingAction(z.endpoint)&&!this.selected&&j_S(_.Rl(),this.data.videoId)};
_.Y.isHideEnclosingAction=function(e){var z=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",e);e=this.get("likeEndpoint.status",e)==="INDIFFERENT";return z||e};
_.Y.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.Y.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.lB.Object.defineProperties(gr.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.M("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var e;return!!(this.withinMiniplayer&&((e=this.data)==null?0:e.actionButtons))}}});
gr.prototype.onYtServiceRequestSent=gr.prototype.onYtServiceRequestSent;gr.prototype.canReorderChanged=gr.prototype.canReorderChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],gr.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.I0),_.B("design:type",Object)],gr.prototype,"ytdLockupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gr.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],gr.prototype,"withinMiniplayer",void 0);_.d([_.F({computed:"computeSelected(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gr.prototype,"selected",void 0);
_.d([_.F({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gr.prototype,"useColorPalette",void 0);_.d([_.F({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.B("design:type",Boolean)],gr.prototype,"largerPlaylistThumbs",void 0);_.d([_.F(),_.B("design:type",Object)],gr.prototype,"showEqualizer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],gr.prototype,"canReorder",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],gr.prototype,"touchPersistentDragHandle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],gr.prototype,"handleIsHovered",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],gr.prototype,"watchColorUpdate",void 0);_.d([_.F(),_.B("design:type",String),_.B("design:paramtypes",[])],gr.prototype,"reorderIcon",null);
_.d([_.F(),_.B("design:type",String),_.B("design:paramtypes",[])],gr.prototype,"playIcon",null);_.d([_.F({reflectToAttribute:!0}),_.P("withinMiniplayer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gr.prototype,"minimizePipBreakages",null);_.d([_.P("largerPlaylistThumbs"),_.B("design:type",Number),_.B("design:paramtypes",[])],gr.prototype,"thumbnailWidth",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],gr.prototype,"showActionButtons",null);_.d([_.Ux("canReorder"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gr.prototype,"canReorderChanged",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],gr.prototype,"onYtServiceRequestSent",null);
_.d([_.SL({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],gr);
_.u(gr,"ytd-playlist-panel-video-renderer",function(){if(L2W!==void 0)return L2W;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" 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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return L2W=e},{mode:2});var jP=function(){return _.V.apply(this,arguments)||this};
_.U(jP,_.V);jP.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jP.prototype,"data",void 0);_.d([_.SL({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],jP);
_.u(jP,"ytd-playlist-panel-supported-items",function(){if(RjE!==void 0)return RjE;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return RjE=
e},{mode:1});O7T=!0;Q8o("\\P{N}");var JDh;var OYo=_.kk("END_OF_PLAYLIST",void 0,"End of playlist"),Eav=_.kk("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),yl=function(){var e=_.V.apply(this,arguments)||this;e.minimizePipBreakages=_.M("web_pip_minimize_breakages");e.hideHeaderText=!1;e.useColorPalette=!1;e.collapsed=!1;e.collapsedPreServerOverride="not_tracked";e.isHovered=!1;e.expandLabel=_.kk("MINIPLAYER_EXPAND_LABEL");e.collapseLabel=_.kk("MINIPLAYER_COLLAPSE_LABEL");e.isFloating=!1;e.metaPanel=
!1;e.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};e.currentIndex=void 0;return e};
_.U(yl,_.V);_.Y=yl.prototype;
_.Y.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"}}}};
_.Y.created=function(){var e=this;this.scrollThrottle=new _.lw(this.onThrottledScroll,1E3,this);this.JSC$17406_ytReorderableController=new _.mR6(56,function(z){e.handleDrop(z)})};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
_.Y.computeOverflowMenuData=function(e){return e&&e.menu?e.menu:null};
_.Y.computeCollapsible=function(e){return!e};
_.Y.computeHasPlaylistButtons=function(e){return!(!e||!e.playlistButtons)};
_.Y.computeHasSeparateSaveButton=function(e){return!(!e||!e.saveButton)};
_.Y.computeHasToolbarButton=function(e,z){return!(!e||!(z||e.saveButton||e.menu))};
_.Y.computePlaylistType=function(e){if(e&&e.playlistId)return e.playlistId.substring(0,4)};
_.Y.computeCanReorder=function(e){return e?e.playlistId&&e.playlistId.startsWith("TLPQ")?!0:!!e.isEditable&&!e.isInfinite:!1};
_.Y.attached=function(){var e=this;try{_.lh().resolve(_.Us).setPlaylistComponent(this.hostElement)}catch(z){if(_.M("kevlar_park_on_playlist_token_killswitch"))throw z;_.Il().parkOrScheduleJob(function(){_.lh().resolve(_.Us).setPlaylistComponent(e.hostElement)},2,"ci")}_.Aw(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.Y.detached=function(){_.ZP(this.hostElement);_.z$(this.JSC$17406_ytReorderableController)};
_.Y.computeTrailingIcon=function(e,z,C){return C?z?"yt-icons:collapse":"yt-icons:close":z?"yt-icons:expand":_.M("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.Y.computeIndexMessage=function(e,z){return xko(e+1)+" / "+xko(z)};
_.Y.onRenderStamperFinished=function(){if(this.scrollForStampDom){var e=!0;this.isHovered&&(e=!1);if(this.collapsed||this.hidden)e=!1;e&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.Y.collapseChanged=function(){var e=this;this.collapsed||(_.UQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){e.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.Y.hiddenChanged=function(){var e=this;this.hidden||_.UQ(this.ytTaskEmitterBehavior.getTaskManager(),function(){e.scrollToCurrentVideo()})};
_.Y.setupReordering=function(){var e=_.XC(this.hostElement).querySelector("#items");ye4?_.auS(this.JSC$17406_ytReorderableController,e,e,"playlist-drag-handle"):_.auS(this.JSC$17406_ytReorderableController,e,e)};
_.Y.scrollToCurrentVideo=function(){var e=this;_.c5.addJob(function(){var z=_.XC(e.hostElement).querySelector("#items");if(z){z.style.setProperty("padding-bottom","");var C=_.XC(e.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(C){z=C.parentElement||_.BT(document);var w=z||_.BT(document);var K=_.ge(C),G=_.ge(w),X=_.zvL(w);if(w==_.BT(document)){var J=K.x-w.scrollLeft;K=K.y-w.scrollTop}else J=K.x-G.x-X.left,K=K.y-G.y-X.top;C=A0a(C);G=w.clientHeight-
C.height;X=w.scrollLeft;var q=w.scrollTop;X+=J-(w.clientWidth-C.width)/2;w=new _.st(X,q+(K-G/2));z.scrollLeft=w.x;z.scrollTop=w.y}}},8)};
_.Y.dataChanged=function(){var e=this;_.z$(this.JSC$17406_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.T0(this,function(){_.Dz(e.ytTaskEmitterBehavior.getTaskManager(),function(){e.ytRendererBehavior.markDirty();e.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.Y.onFullBleedPlayerChanged=function(){_.M("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.Y.onFullscreenChanged=function(){_.M("web_watch_imax_theater_mode")||_.M("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.Y.updateNowPlayingOverlay=function(){_.M("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.Y.onPlaylistLockupNowPlaying=function(e,z){z&&(this.activeNowPlayingRenderer=z);this.updateNowPlayingOverlay()};
_.Y.onScroll=function(){this.scrollThrottle.fire()};
_.Y.onThrottledScroll=function(){var e=this;_.Dz(this.ytTaskEmitterBehavior.getTaskManager(),function(){e.ytRendererBehavior.markDirty()})};
_.Y.onToggleExpanded=function(e){!this.collapsible||e&&(_.AU(e).tagName==="A"||_.zi(_.cJ(e),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.Y.setCollapsed=function(e){this.collapsible&&(this.collapsed=e,_.zj(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.Y.handleCollapsedFromData=function(e){if(e){var z=e.playlistPanelCollapseState;z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||z==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),z=z==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==z&&this.setCollapsed(z)):this.currentPlaylistId!==e.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(z=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==z&&this.setCollapsed(z),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=e.playlistId}};
_.Y.handleDrop=function(e){var z=e.currDragItem;e=z.data.playlistSetVideoId;var C=_.V1(z.parentNode.childNodes,z),w=void 0;C>0&&(w=z.parentNode.childNodes[C-1].data.playlistSetVideoId);z=_.Rl();if(z.responsePlaylistData&&z.responsePlaylistData.contents){var K=Wy1(e,z.responsePlaylistData);z.responsePlaylistData=(0,_.de.unsafeClone)(z.responsePlaylistData);u4g(z.responsePlaylistData.contents,K,C);z.queueProxy?Hao(z.queueProxy,K,C,e,w):z.playlistProxy&&Hao(z.playlistProxy,K,C,e,w);_.L3(z,_.hl(z,z.response?
z.response.autoplayRenderer:void 0))}};
_.Y.handleDarkModeChange=function(e){e!==this.isDarkTheme&&(this.isDarkTheme=e)};
_.Y.colorPaletteChanged=function(){var e,z=((e=this.data)==null?void 0:e.contents)||[],C;e=_.b(z);for(z=e.next();!z.done;z=e.next()){z=z.value;var w=void 0;if((w=z.playlistPanelVideoRenderer)==null?0:w.selected){e=z.playlistPanelVideoRenderer;w=z=void 0;(C=this.isDarkTheme?(z=e)==null?void 0:z.darkColorPalette:(w=e)==null?void 0:w.lightColorPalette)&&_.Ro(this.hostElement,C);break}}this.useColorPalette=!!C};
_.lB.Object.defineProperties(yl.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.moveThreeDotsMenuToMainHeader)&&_.M("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var e=_.lh().resolve(_.$B(_.Us)),z;if(((z=this.data)==null?0:z.contents)&&(e==null?0:e.hasAutoplayData())){var C;if(((C=this.playlistLoopStateEntity)==null?void 0:C.state)==="PLAYLIST_LOOP_STATE_ONE"){if(e=this.data.currentIndex,e!==void 0){var w,K;var G=(w=this.data.contents[e])==null?void 0:(K=w.playlistPanelVideoRenderer)==null?void 0:K.title}}else{var X,J=(X=_.r(e.getAutoplayEndpoint(),_.N$))==null?void 0:X.videoId,q,T;G=(q=this.data.contents.find(function(Q){var m;
return((m=Q.playlistPanelVideoRenderer)==null?void 0:m.videoId)===J}))==null?void 0:(T=q.playlistPanelVideoRenderer)==null?void 0:T.title}return G}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)!=null&&e.nextVideoLabel?this.nextVideoTitle?_.Zd(this.data.nextVideoLabel)+":":OYo:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.data)==null?0:e.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.M("web_mix_long_byline_from_data"))return _.AO(Eav);var z;return(z=this.data)==null?void 0:z.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.playlistButtons)==null?void 0:(C=z.menuRenderer)==null?void 0:C.topLevelButtons;if(w)for(e=_.b(w),z=e.next();!z.done;z=e.next())if(z=z.value,z.playlistLoopButtonRenderer)return z.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var e;return!!(this.collapsed&&((e=this.data)==null?0:e.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.M("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
yl.prototype.colorPaletteChanged=yl.prototype.colorPaletteChanged;yl.prototype.onPlaylistLockupNowPlaying=yl.prototype.onPlaylistLockupNowPlaying;yl.prototype.updateNowPlayingOverlay=yl.prototype.updateNowPlayingOverlay;yl.prototype.onFullscreenChanged=yl.prototype.onFullscreenChanged;yl.prototype.onFullBleedPlayerChanged=yl.prototype.onFullBleedPlayerChanged;yl.prototype.dataChanged=yl.prototype.dataChanged;yl.prototype.hiddenChanged=yl.prototype.hiddenChanged;yl.prototype.collapseChanged=yl.prototype.collapseChanged;
yl.prototype.onRenderStamperFinished=yl.prototype.onRenderStamperFinished;yl.prototype.onMouseLeave=yl.prototype.onMouseLeave;yl.prototype.onMouseEnter=yl.prototype.onMouseEnter;_.d([_.W(_.oY),_.B("design:type",Object)],yl.prototype,"ironResizableBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(BZs.YtPlaylistPanelBehavior),_.B("design:type",Object)],yl.prototype,"ytPlaylistPanelBehavior",void 0);_.d([_.W(_.LE.YtTaskEmitterBehavior),_.B("design:type",Object)],yl.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],yl.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],yl.prototype,"ytdReduxBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],yl.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yl.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],yl.prototype,"autoplayData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],yl.prototype,"withinMiniplayer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"minimizePipBreakages",void 0);
_.d([_.F({computed:"setMenuData_(data)"}),_.B("design:type",Object)],yl.prototype,"menuRendererData",void 0);_.d([_.F({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],yl.prototype,"overflowMenuDataTopRow",void 0);_.d([_.F({computed:"computeOverflowMenuData(data)"}),_.B("design:type",Object)],yl.prototype,"overflowMenuData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"hideHeaderText",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"useColorPalette",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.B("design:type",Boolean)],yl.prototype,"collapsible",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"collapsed",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],yl.prototype,"hidden",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.B("design:type",Boolean)],yl.prototype,"hasPlaylistButtons",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.B("design:type",Boolean)],yl.prototype,"hasSeparateSaveButton",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.B("design:type",Boolean)],yl.prototype,"hasToolbar",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.B("design:type",String)],yl.prototype,"playlistType",void 0);_.d([_.F(),_.B("design:type",Object)],yl.prototype,"isHovered",void 0);_.d([_.F({selectorArgs:["playlistLoopStateEntityKey"],selector:_.b9.playlistLoopStateEntitySelector}),_.B("design:type",Object)],yl.prototype,"playlistLoopStateEntity",void 0);_.d([_.F({computed:"computeCanReorder(data)"}),_.B("design:type",Boolean)],yl.prototype,"canReorder",void 0);
_.d([_.F(),_.B("design:type",Object)],yl.prototype,"expandLabel",void 0);_.d([_.F(),_.B("design:type",Object)],yl.prototype,"collapseLabel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"isFloating",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yl.prototype,"metaPanel",void 0);_.d([_.F({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.B("design:type",String)],yl.prototype,"trailingIcon",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],yl.prototype,"isDarkTheme",void 0);_.d([_.F({selector:_.V2}),_.B("design:type",Boolean)],yl.prototype,"miniplayerIsActive",void 0);_.d([_.F({selector:function(e){return e.watch.playerState}}),
_.B("design:type",Number)],yl.prototype,"playerState",void 0);_.d([_.F({selector:_.fU}),_.B("design:type",Boolean)],yl.prototype,"isFullscreen",void 0);_.d([_.F({selector:_.VC}),_.B("design:type",Boolean)],yl.prototype,"isTheaterMode",void 0);_.d([_.F(),_.B("design:type",Object)],yl.prototype,"activeNowPlayingRenderer",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yl.prototype,"moveThreeDotMenuToTopRow",null);
_.d([_.P("data","autoplayData","playlistLoopStateEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],yl.prototype,"nextVideoTitle",null);_.d([_.P("data","nextVideoTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],yl.prototype,"nextVideoLabel",null);_.d([_.P("collapsed"),_.B("design:type",String),_.B("design:paramtypes",[])],yl.prototype,"buttonAriaLabel",null);
_.d([_.P("data","playlistId","longBylineText"),_.B("design:type",Object),_.B("design:paramtypes",[])],yl.prototype,"mixLongByLine",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yl.prototype,"playlistLoopStateEntityKey",null);_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"onMouseEnter",null);
_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"onMouseLeave",null);_.d([_.F({reflectToAttribute:!0}),_.P("data","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yl.prototype,"showNextVideoHeader",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"onRenderStamperFinished",null);
_.d([_.mi("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"collapseChanged",null);_.d([_.mi("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"hiddenChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"dataChanged",null);
_.d([_.P("isTheaterMode","isFullscreen"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yl.prototype,"isFullBleedPlayer",null);_.d([_.mi("isTheaterMode","isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"onFullBleedPlayerChanged",null);_.d([_.mi("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"onFullscreenChanged",null);
_.d([_.mi("playerState","miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"updateNowPlayingOverlay",null);_.d([_.Qi("yt-playlist-lockup-now-playing-active"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],yl.prototype,"onPlaylistLockupNowPlaying",null);
_.d([_.mi("data","isDarkTheme"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yl.prototype,"colorPaletteChanged",null);_.d([_.SL({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],yl);
_.F2l=_.Yp()(yl,"ytd-playlist-panel-renderer",function(){if(PlL===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);PlL=e}e=PlL;return e},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.Vga={};
_.Vga.YtConditionalRendererBehavior=[_.c.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(e,z){var C=this,w,K;return _.k(function(G){switch(G.nextAddress){case 1:if(!z)return C.hidden=!0,C.showSpinner=!1,G.return();if((w=e)==null?0:(K=w.visibilityCondition)==null?0:K.mode)switch(e.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return G.jumpTo(5);default:return G.jumpTo(6)}C.showSpinner=
!1;C.hidden=!0;return G.yield(C.shouldShow_(e),4);case 4:C.hidden=!G.yieldResult;G.jumpTo(0);break;case 5:return G.yield(C.shouldShow_(e),8);case 8:C.showSpinner=G.yieldResult;C.hidden=!1;G.jumpTo(0);break;case 6:return C.showSpinner=!1,G.yield(C.shouldShow_(e),9);case 9:C.hidden=!G.yieldResult,_.E_(G)}})},
shouldShow_:function(e){return e&&e.supportedDatas&&e.supportedDatas.rendererVisibilityConditionData&&e.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(e.supportedDatas.rendererVisibilityConditionData.showIf):e&&e.visibilityCondition&&e.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(e.visibilityCondition.showIf):e&&e.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(e.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(e){switch(e){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(e){switch(e){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var e=_.eA(this.hostElement,"yt-get-mdx-status");return e.length==1&&e[0].connected},
isLocationPermissionGranted_:function(){var e;return _.k(function(z){return z.nextAddress==1?navigator.permissions?z.yield(navigator.permissions.query({name:"geolocation"}),3):z.jumpTo(2):z.nextAddress!=2?(e=z.yieldResult,z.return(Promise.resolve(e.state==="granted"))):z.return(Promise.resolve(!1))})}}];var fyE=g7g("yt-icon",{callbackProps:["onKeydown"]}),SCE=_.M("kevlar_use_wil_icons")?_.f(function(e){var z=e.icon;var C=e.active;var w=e.className;var K=e.style;var G=e.title;var X=e.size;var J=e.dataSelected;var q=e.dataDisabled;var T=e.role;var Q=e.themeOverride;var m=e.animateIcon;var a=e.ariaHidden;var n=e.ariaExpanded;var H=e.ariaLabel;var I=e.tabindex;var L=e.id;var h=e.iconFilter;var E=e.gradientColor;var N=e.onKeydown;var D=function(){var Z=z==null?void 0:z(),YN=null,Jk=void 0;Z&&(Z=nMU(Z),
Z=r6E(Z),Z.length&&(YN=Z[1],Jk=Z[0]));return{iconName:YN,iconSetName:Jk}},g=function(){return MiY(D().iconName,C==null?void 0:C(),void 0,X==null?void 0:X(),D().iconSetName,_.lh().resolve(_.xp))},y=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:h==null?void 0:h(),iconColor:E==null?void 0:E()}};
return _.x(_.l,{cond:m,then:function(){return _.x(fyE,{icon:z,active:C,className:w,style:K,title:G,dataSelected:J,dataDisabled:q,role:T,themeOverride:Q,ariaHidden:a,ariaExpanded:n,ariaLabel:H,tabindex:I,id:L,iconFilter:h,gradientColor:E,onKeydown:N})},
else:function(){return _.x(_.l,{cond:g,then:function(Z){return _.x("span",{class:_.qT("ytIconWrapperHost",w),role:T,"aria-label":H,"aria-hidden":a,tabindex:function(){return isNaN(Number(I==null?void 0:I()))?void 0:Number(I==null?void 0:I())},
id:L,style:K,title:G,"on:keydown":_.T9(function(YN){return void(N==null?void 0:N(YN))})},_.x(_.Pj,{data:Z,
options:y}))}})}})},"ng"):fyE;var u2l=function(e){var z=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Ifh();_.lM("ytglobal.ytUtilActivityCallback_",function(){_.zj(e,"yt-user-activity")});
new QG(function(){return z.JSC$17423_onMouseMove});
document.addEventListener("scroll",function(){return z.onScroll});
window.addEventListener("resize",function(){return z.onResize})},dgq=function(e,z,C){z in e.eventJobIds||(C=_.So().addLowPriorityJob(function(){_.m1();
delete e.eventJobIds[z]},C),e.eventJobIds[z]=C)};
u2l.prototype.onScroll=function(e){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):e.target===document&&dgq(this,"scroll",200)};
u2l.prototype.onResize=function(){dgq(this,"resize",200)};
u2l.prototype.JSC$17423_onMouseMove=function(){dgq(this,"mousemove",100)};
_.VX=function(e){e.scrollEventsToIgnore+=1;e.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){e.scrollEventsToIgnore--},500))};var Dgb=function(e){this.element=e;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Dgb.prototype.showFeedbackDialog=function(e,z,C,w){var K=iYl();if(!K)return!1;var G=UkL();G.productId=K;z&&(G.flow="submit",G.report={description:z});C&&(iYl()==="59"?G.callback=_.Z_(function(){_.gm("userFeedbackEvent",{});C()}):G.callback=_.Z_(C));
G.bucket=w||_.j5("GOOGLE_FEEDBACK_BUCKET","Other");Nwo(G);e=sTL(this,"GFEEDBACK",e);try{_.P1o(G,e)}catch(X){return _.AR(X),!1}return!0};
Dgb.prototype.showHelpDialog=function(e,z,C){var w=this,K=iYl();if(!K)return!1;var G={helpCenterPath:"/youtube",productData:sTL(this,"GUIDED_HELP",C)};Nwo(G);var X=UkL();X.context=e||G.productData.context||"default";X.defaultHelpArticleId=z;X.enableSendFeedback=!0;(_.pd("gapi.load")||function(J,q){return q()})("client",function(){try{var J=h_o(K,G);
if(_.M("web_always_load_chat_support")&&!w.chatSupportLoaded)try{J.JSC$10144_loadChatSupport(X),w.chatSupportLoaded=!0}catch(q){}J.startHelp(X)}catch(q){_.AR(q)}})};
var iYl=function(){var e=_.j5("GOOGLE_FEEDBACK_PRODUCT_ID");e||_.AR(Error("gi"));return e},Nwo=function(e){e&&(e.locale=_.M("kevlar_help_use_locale")?_.j5("INNERTUBE_CONTEXT_HL","en"):_.j5("HTML_LANG","en"))},sTL=function(e,z,C){var w=e.productData;
delete w.origin;w.device=_.Q1();var K;a:{if(K=document.createElement("canvas")){var G=K.getContext("experimental-webgl",{stencil:!0});if(G){var X=G.getExtension("WEBGL_debug_renderer_info");if(X){K=G.getParameter(X.UNMASKED_RENDERER_WEBGL);break a}}if(G=K.getContext("webgl")){K=G.getParameter(G.RENDERER);break a}}K=null}w.gpu=K;w.isSDC=!!_.j5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(K=_.j5("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.de.extend(w,K);_.rD1(z,w);_.Hwg(w);(e=_.zj(e.element,"yt-get-autonav-pause-debug-state"))&&
e.length&&(w.autonav_pause_state=e[0]);e=_.LJ();w.browser_resolution=e.width+"\u00d7"+e.height+"@"+(window.devicePixelRatio||1)+"x";C&&_.de.extend(w,C);return w};
Dgb.prototype.resetProductData=function(){this.productData={}};var Bwb=function(e){this.feedbackManager=new Dgb(e)};
Bwb.prototype.showFeedbackDialog=function(e,z,C,w){return this.feedbackManager.showFeedbackDialog(e,z,C,w)};
Bwb.prototype.showHelpDialog=function(e,z,C){return this.feedbackManager.showHelpDialog(e,z,C)};var tgY=function(){this.baseUrl="";this.aTag=document.createElement("a")},p6C=function(e,z,C){C=C===void 0?{}:C;
C.pbj||(C.pbj=1);C=_.XFo(z,C);e.baseUrl&&C&&!_.JJ(C)[1]&&!_.kB(C)&&(z=e.baseUrl,Gg(z,"/")&&(z=z.slice(0,-1)),_.om(C,"/")&&(C=C.slice(1)),C=z+"/"+C);At(e.aTag,_.Ng(C||""));return e.aTag.href};
tgY.prototype.fetchData=function(e){return _.lno(e)};
tgY.prototype.postData=function(e,z){var C={method:"POST"};if(z){for(var w=_.b(Object.keys(z)),K=w.next();!K.done;K=w.next()){K=K.value;var G=z[K];_.gL(G)&&(z[K]=JSON.stringify(G))}C.postParams=z}return _.lno(e,C)};
_.eIg=function(e,z,C,w,K){e=p6C(e,z,C);if(!e)throw w=Error("hi"),Object.assign(w,{params:z}),w;return _.lno(e,K,w)};
tgY.prototype.requestDataForServiceEndpoint=function(e,z){if(_.r(e,_.Pq4))return this.fetchData("/getAccountSwitcherEndpoint");z=z||{};var C=_.r(e,uGX);C?z.se=C.base64EncodedServiceEndpoint:z.sej=JSON.stringify(e);(C=_.Pr())&&_.M("enable_service_ajax_csn")&&(z.csn=C);z.theme=_.i6();_.r(e,IUE)&&_.j5("DELEGATION_CONTEXT")&&(z.delegation_context=JSON.stringify(_.j5("DELEGATION_CONTEXT")));C=null;for(var w in e)if(Gg(w,"Endpoint")||Gg(w,"Command")){C=w;break}if(!C){var K=Error("ii");Object.assign(K,{params:e});
_.Gis(K,"WARNING");return new _.RC(function(X,J){J(K)})}w={name:C};
var G;(C=(G=_.r(e,_.bd))==null?void 0:G.signal)&&(w.signal=C);(G=_.YB(window.location.href))&&G.internalcountrycode&&(w.internalcountrycode=G.internalcountrycode);G="/service_ajax";_.M("debug_forward_web_query_parameters")&&(G=_.HKk(G,window.location.search));G=_.XF(G,w);e.clickTrackingParams&&_.gN(G,{itct:e.clickTrackingParams});return this.postData(G,z)};_.gaZ=new _.Mt("GFEEDBACK_TOKEN");var jT5;var ytY;var ctl;var AtW;var cY=function(){var e=_.V.apply(this,arguments)||this;e.compact=!1;e.dismissButtonDisabled=!1;e.shouldRenderReasonAsFormattedString=!_.M("web_player_error_message_reason_as_formatted_string_killswitch");return e};
_.U(cY,_.V);cY.prototype.computeHasIcon_=function(e){return!!e};
cY.prototype.isSignInIcon_=function(e){return e=="yt-icons:prompted_sign_in"};
cY.prototype.onDismissButtonClick=function(){var e=this,z=this.data.disableOnClick,C,w=(C=this.data.dismissButton)==null?void 0:C.buttonRenderer;z&&!this.dismissButtonDisabled&&w&&setTimeout(function(){e.dismissButtonDisabled=!0},0)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Vga.YtConditionalRendererBehavior),_.B("design:type",Object)],cY.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cY.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],cY.prototype,"icon_",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.B("design:type",Boolean)],cY.prototype,"hasIcon_",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.B("design:type",Boolean)],cY.prototype,"signInIcon_",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cY.prototype,"compact",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cY.prototype,"dismissButtonDisabled",void 0);
_.d([_.F({type:Boolean}),_.B("design:type",Object)],cY.prototype,"shouldRenderReasonAsFormattedString",void 0);_.d([_.fP({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],cY);
_.u(cY,"yt-player-error-message-renderer",function(){if(AtW===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" 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    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;ctl===void 0&&(ctl=document.createElement("template"));var w=ctl;C.call(z,w.content.cloneNode(!0),e.content.firstChild);AtW=e}e=AtW;return e},{mode:2});var ZYb;var pLo;var A6=function(){return _.V.apply(this,arguments)||this};
_.U(A6,_.V);A6.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
A6.prototype.computeIcon_=function(e){return e?"yt-icons:"+e.iconType.toLowerCase():"error_outline"};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],A6.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],A6.prototype,"icon_",void 0);_.d([_.fP({is:"yt-player-kav-renderer",disableElementRegistration:!0})],A6);
_.u(A6,"yt-player-kav-renderer",function(){if(pLo===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ZYb===void 0&&(ZYb=document.createElement("template"));var w=ZYb;C.call(z,w.content.cloneNode(!0),e.content.firstChild);pLo=e}e=pLo;return e},{mode:2});var WRg=_.Kb(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.KU(_.f(function(e){var z=_.kI("div"),C=_.b(_.II(0,void 0,"jxh75d")),w=C.next().value,K=C.next().value;C=_.b(_.II(null,void 0,"F5Zm8"));var G=C.next().value,X=C.next().value;_.sg(function(){PfN(z.value,K,X);z.value.scrollIntoView()});
C=Ra7.bind(null,e.data,w);_.Qr("resize",function(){var J=G();if(w()===1&&J!==null){var q;(q=window.grecaptcha)==null||q.reset(J)}});
return _.x("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.x("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.x("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var J,q;return(J=e.data().accessibility)==null?void 0:(q=J.accessibilityData)==null?void 0:q.label}),_.x(_.U2,{text:C,
className:_.qT("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.x("div",{el:z,class:"ytwPlayerCaptchaViewModelGridItem"})))},"og"),"yt-player-captcha-view-model",{props:{data:_.z9}});var LRN=!1;_.eXl=_.f(function(e){var z=e.data;return _.x("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.x(_.l,{cond:function(){return z().icon},
then:function(C){return _.x("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.x(_.Zf,{data:C,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.x(_.l,{cond:function(){return z().title},
then:function(C){return _.x("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.x(_.U2,{text:C}))}}),_.x(_.l,{cond:function(){return z().description},
then:function(C){return _.x("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.x(_.U2,{text:C}))}}),_.x(_.PF,{data:function(){return z().primaryButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"interstitialViewModelFlexItem"})}}),_.x(_.PF,{data:function(){return z().secondaryButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"interstitialViewModelFlexItem"})}}))},"pg");
_.eXl.idomCompat=!0;var zXY=_.f(function(e){var z=e.data;_.c0();return _.x("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.x("div",{class:"playerInterstitialRendererScrim"},_.x(_.PF,{data:function(){return z().content}},{interstitialViewModel:_.eXl})))},"qg");
zXY.idomCompat=!0;_.KU(zXY,"yt-player-interstitial-renderer",{props:{data:_.vh}});var ZJ=function(){var e=_.V.apply(this,arguments)||this;e.noBackground=!1;e.compact=!1;e.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return e};
_.U(ZJ,_.V);ZJ.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"}}}};
ZJ.prototype.onUpdatePlayerErrorMessageCommand_=function(e){if(_.r(e,AYo)){var z;if(e=(z=_.r(e,AYo))==null?void 0:z.newPlayerErrorMessageRenderer)this.data=e}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ZJ.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],ZJ.prototype,"status",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ZJ.prototype,"noBackground",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ZJ.prototype,"compact",void 0);_.d([_.fP({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],ZJ);
var CCW=_.Yp()(ZJ,"yt-playability-error-supported-renderers",function(){if(ytY===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;jT5===void 0&&(jT5=document.createElement("template"));var w=jT5;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ytY=e}e=ytY;return e},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var wZb=g7g("ytd-button-renderer");var haE=void 0,Ewg=void 0;var fn1=new lIX;var $3=new _.Mt("ENTITY_STATE_TOKEN"),p8=new _.Mt("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Kg$=function(e){this.store=e;this.ih7=new _.aIa},Erk=function(e,z,C){var w,K;
if(!(K=((w=z.playabilityStatus)==null?void 0:w.status)!=="OK")){e=e.store;var G;K=z.offlineState&&((G=z.videoDetails)==null?0:G.videoId)?_.M("enable_pl_r_c_cd")?cl1(e.getState().entities,z.videoDetails.videoId):!!HE1(e.getState().entities,z.videoDetails.videoId):!1}if(K)return!0;K=iw7(z);if(K===1){if(_.M("ab_v_vid_sig")){var X,J=(X=z.videoDetails)==null?void 0:X.videoId;if(!J||!C||J!==C){var q;z=new _.uh("282054944_vid",{jdr:C,x58:(q=z.videoDetails)==null?void 0:q.videoId});_.yG(z)}}return!0}Sjh=
0;var T,Q;q=(J=z.auxiliaryUi)==null?void 0:(T=J.messageRenderers)==null?void 0:(Q=T.bkaEnforcementMessageViewModel)==null?void 0:Q.displayType;if(K!==3&&(q==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||q==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;q={reason:_.K4(_.kk("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.M("ks_something_wrong_learn_more")?e1m("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.K4(_.kk("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:_.K4("282054944")};oo$(z,{playerErrorMessageRenderer:q});return!1},FVh=function(e,z){if(zRN(z)){_.l6(1,!0);
var C=(C=zRN(z))&&_.OwL()?C:void 0;C?(oo$(z,{enforcementMessageViewModel:C}),e.ih7.increment("IN_PLAYER"),_.l6(5)):(e.ih7.increment("SKIP_DISPLAY"),_.l6(2))}},oo$=function(e,z){e.playabilityStatus=Object.assign({},e.playabilityStatus,{status:"ERROR",
errorScreen:z});e.videoDetails=void 0};
Kg$.prototype.handleResponse=function(e,z){if(e.playabilityStatus){var C,w,K,G=(z==null?void 0:(C=z.innerTubeRequest)==null?void 0:C.videoId)||(z==null?void 0:(w=z.innerTubeRequest)==null?void 0:(K=w.playerRequest)==null?void 0:K.videoId);Erk(this,e,G)&&FVh(this,e)}};
Kg$[Qj]=[$3];var hb1=new _.Mt("ADBLOCK_DETECTION_SERVICE_TOKEN");var zO=function(e){this.v1Q=e};
zO.prototype.bindInnertubeChallengeFetcher=function(e){this.v1Q.bicf(e)};
zO.prototype.registerChallengeFetchedCallback=function(e){this.v1Q.bcr(e)};
zO.prototype.getLatestChallengeResponse=function(){return this.v1Q.blc()};var G6Z;G6Z=_.Kb(["https://static.doubleclick.net/instream/ad_status.js"]);_.Y_f=_.nJ(G6Z);var k6q;_.e$=function(e,z,C){var w=this;this.network=e;this.options=z;this.networkStatusManager=C;this.gN=null;if(z.useBotguardEverywhere){var K=new _.x5;this.gN=K.promise;_.wL.ytAtRC&&_.Oz(_.c5,function(){var G,X;return _.k(function(J){if(J.nextAddress==1){if(!_.wL.ytAtRC)return J.return();G=bqE(null);return J.yield(w.bU(G),2)}X=J.yieldResult;_.wL.ytAtRC&&_.wL.ytAtRC(JSON.stringify(X));_.E_(J)})});
j9m().then(function(G){var X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1)return G.bindInnertubeChallengeFetcher(function(m){return w.bU(bqE(m))}),Q.yield(ARs(),2);
X=Q.yieldResult;J=G.getLatestChallengeResponse();q=J.challenge;if(!q)throw Error("ki");T={challenge:q,y4:ps(q),vm:X,bgChallenge:new AS};K.resolve(T);G.registerChallengeFetchedCallback(function(m){m=m.challenge;if(!m)throw Error("li");m={challenge:m,y4:ps(m),vm:X,bgChallenge:new AS};w.gN=Promise.resolve(m)});
_.E_(Q)})})}else z.preload&&XZ$(this,new Promise(function(G){_.Dz(_.c5,function(){G(Jn5(w))},0)}))};
k6q=function(e){var z={preload:!0,useBotguardEverywhere:!0},C=!1;if(typeof z==="boolean")var w={preload:z};else typeof z==="undefined"?w={preload:!0}:(w=z,C=!!z.thN);z=C?void 0:new _.bk;_.e$.instance=new _.e$(e,w,z);return _.e$.instance};
_.e$.prototype.elZ=function(){var e=this;return _.k(function(z){return z.nextAddress==1?z.yield(Promise.race([e.gN,null]),2):z.return(!!z.yieldResult)})};
_.e$.prototype.e70=function(e,z,C){var w=this,K,G,X;return _.k(function(J){w.gN===null&&XZ$(w,Jn5(w));K=!1;G={};X=function(){var q,T,Q,m,a;return _.k(function(n){switch(n.nextAddress){case 1:if(!w.options.qz0||!w.options.useBotguardEverywhere){n.jumpTo(2);break}return n.yield(gwh(),3);case 3:return q=n.yieldResult,n.yield((T=q)==null?void 0:T.checkForRefresh(),2);case 2:return n.yield(w.gN,5);case 5:Q=n.yieldResult;G.challenge=Q.challenge;if(!Q.vm){"c1a"in Q.y4&&(G.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
n.jumpTo(6);break}m=Object.assign({},{c:Q.challenge,e:e},z);_.Iv(n,7);K=!0;return n.yield(Q.vm.snapshot({tZ:m}),9);case 9:(a=n.yieldResult)?G.webResponse=a:G.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Yj(n,6);break;case 7:_.O_(n),G.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(e==="ENGAGEMENT_TYPE_PLAYBACK"){var H=Q.y4,I={};if(H.c6a){var L=Number(_.j5("DCLKSTAT",0));I.reportingStatus=String(Number(H.c)^(isNaN(L)?0:L))}H.c6b&&(I.broadSpectrumDetectionResult=String(Number(H.c)^Number(_.j5("CATSTAT",
0))));G.adblockReporting=I}return n.return(G)}})};
return J.return(Promise.race([X(),q_Z(C,function(){var q=Object.assign({},G);K&&(q.error="ATTESTATION_ERROR_VM_TIMEOUT");return q})]))})};
var bqE=function(e){var z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};e&&(z.interpreterHash=e);return z},Jn5=function(e,z){z=z===void 0?0:z;
var C,w,K,G,X,J,q,T,Q,m,a,n;return _.k(function(H){switch(H.nextAddress){case 1:C=bqE(mva().vmS);if(_.M("att_fet_ks"))return _.Iv(H,7),H.yield(e.bU(C),9);_.Iv(H,4);return H.yield(x1E(e,C),6);case 6:X=H.yieldResult;K=X.kpD;G=X.xiN;w=X;_.Yj(H,3);break;case 4:return _.O_(H),_.AX(Error("mi`"+z)),T5o(e,864E5),H.return({challenge:"",y4:{},vm:void 0,bgChallenge:void 0});case 9:w=H.yieldResult;if(!w)throw Error("ni");if(!w.challenge)throw Error("oi");K=w.challenge;G=ps(K);if("c1a"in G&&(!w.bgChallenge||!w.bgChallenge.program))throw Error("pi");
_.Yj(H,3);break;case 7:J=_.O_(H);_.AX(J);z++;if(z>=5)return _.AX(Error("mi`"+z)),T5o(e,864E5),H.return({challenge:"",y4:{},vm:void 0,bgChallenge:void 0});q=1E3*Math.pow(2,z-1)+Math.random()*1E3;return H.return(new Promise(function(I){_.Dz(_.c5,function(){I(Jn5(e,z))},q)}));
case 3:T=tms(G);T5o(e,T*1E3);Q=void 0;if(!("c1a"in G&&w.bgChallenge)){H.jumpTo(10);break}m=BW1(w.bgChallenge);_.Iv(H,11);return H.yield(nBh(mva(),m),13);case 13:_.Yj(H,12);break;case 11:return a=_.O_(H),_.AX(a),H.return({challenge:K,y4:G,vm:Q,bgChallenge:m});case 12:return _.Iv(H,14),Q=new _.zD({challenge:m,wgG:{sC:"aGIf"}}),H.yield(Q.bMn,16);case 16:_.Yj(H,10);break;case 14:n=_.O_(H),_.AX(n),Q=void 0;case 10:return H.return({challenge:K,y4:G,vm:Q,bgChallenge:m})}})},$1b=function(e,z){var C;
return _.k(function(w){if(w.nextAddress==1)return eo(2),_.Iv(w,2),w.yield(e.network.bU(z),4);if(w.nextAddress!=2)return(C=w.yieldResult)?C.challenge&&!C.bgChallenge?eo(1):eo(4):eo(3),w.return(C);_.O_(w);eo(3);return w.return(void 0)})};
_.e$.prototype.bU=function(e){var z=this,C;return _.k(function(w){C=z.networkStatusManager;if(!C||C.isNetworkAvailable())return w.return($1b(z,e));_.Vu("att_pna",void 0,"attestation_challenge_fetch");return w.return(new Promise(function(K){C.listenOnce("publicytnetworkstatus-online",function(){$1b(z,e).then(K)})}))})};
var lGq=function(e){if(!e)throw Error("ni");if(!e.challenge)throw Error("oi");var z=e.challenge,C=ps(z);if("c1a"in C&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("pi");return Object.assign({},e,{kpD:z,xiN:C})},x1E=function(e,z){var C,w,K,G,X;
return _.k(function(J){switch(J.nextAddress){case 1:C=void 0,w=0,K={};case 2:if(!(w<5)){J.jumpTo(4);break}if(!(w>0)){J.jumpTo(5);break}K.tmu=1E3*Math.pow(2,w-1)+Math.random()*1E3;return J.yield(new Promise(function(q){return function(T){_.Dz(_.c5,function(){T(void 0)},q.tmu)}}(K)),5);
case 5:return _.Iv(J,7),J.yield(e.bU(z),9);case 9:return G=J.yieldResult,J.return(lGq(G));case 7:C=X=_.O_(J),X instanceof Error&&_.AX(X);case 8:w++;K={tmu:void 0};J.jumpTo(2);break;case 4:throw C;}})},XZ$=function(e,z){e.gN=z},QvC=function(e){var z,C,w;
return _.k(function(K){if(K.nextAddress==1)return K.yield(Promise.race([e.gN,null]),2);z=K.yieldResult;var G=Jn5(e);e.gN=G;(C=z)==null||(w=C.vm)==null||w.dispose();_.E_(K)})},T5o=function(e,z){var C=Date.now()+z,w=function(){var K;
return _.k(function(G){K=C-Date.now();return K<1E3?G.yield(QvC(e),0):(_.Dz(_.c5,w,Math.min(K,6E4)),G.jumpTo(0))})};
w()},q_Z=function(e,z){return new Promise(function(C){_.Dz(_.c5,function(){C(z())},e)})};var m1E=function(){};
m1E.prototype.processContext=function(e){var z=_.e$.instance;if(!z)return _.LH();var C=e2g(e);return C?new R2(z.e70(C,ADm(e),500).then(function(w){var K;(e==null?0:(K=e.innerTubeRequest)==null?0:K.context)||(e.innerTubeRequest.context={});K=e.innerTubeRequest.context;K.request||(K.request={});K.request.attestationResponseData=w})):_.LH()};var aG3=function(e){this.innertubeTransportService=e};
aG3.prototype.bU=function(e){_.Vu("att_fsr",void 0,"attestation_challenge_fetch");return _.Hc(this.innertubeTransportService,e,_.zU(_.wKa)).then(function(z){_.Vu("att_frr",void 0,"attestation_challenge_fetch");return z})};_.nof=function(e){this.innertubeTransportService=e};var Mcb=new _.Mt("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var rnq=function(){},U1a=function(e,z,C,w,K){var G=_.j5("YPC_MB_URL");
_.uEE(G).then(function(){HqY(G,e,z,C,w,K)})},HqY=function(e,z,C,w,K,G){try{var X=_.Y3.payments.business.integration,J=_.Y3.payments.business.integration.Style.create().withMaterialDesignStyle(),q=X.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.M("enable_window_constrained_buy_flow_dialog")&&(q=q.usingPopupStyle("windowConstrained"));G&&(q=q.usingCloseCallback(G));var T=C?C:_.j5("YPC_GB_LANGUAGE"),Q=_.j5("SESSION_INDEX");X.bootstrap.fromPaymentsUrl(e);X.bootstrap.asMashupMode(q).usingGaiaIndex(Q).usingLocale(T).usingStyle(J).usingDefaultActivityStatusChangeHandler().inStandaloneContext(X.standaloneContextAuthId.forGaia()).purchaseManager(z,function(m){w&&w(m)}).load(void 0,K)}catch(m){throw K&&K(m),_.yG(m),m;
}};var voo=new _.Mt("PURCHASE_MANAGER_TOKEN");var IGq=function(){var e=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return e.videos},
getContinuationsPresent:function(){return e.continuationsPresent},
setVideos:function(z){e.videos=z},
getRecommendedVideos:function(){return e.recommendedVideos},
setRecommendedVideos:function(z){e.recommendedVideos=z}}};
IGq.prototype.addVideos=function(e){e&&(this.videos=e.filter(function(z){return!!_.CUN(z)}).map(function(z){var C=_.CUN(z);
a:{var w;if(z.playlistVideoRenderer&&((w=z.playlistVideoRenderer)==null?0:w.voteSortTiebreaker))var K=z.playlistVideoRenderer.voteSortTiebreaker;else{if(_.r(z,wh)){var G;if(w=(K=_.r(z,wh))==null?void 0:(G=K.playlistItemData)==null?void 0:G.voteSortTiebreaker){K=w;break a}}K=""}}return{itemId:C,videoId:_.och(z),voteCount:_.Gbk(z),voteSortTiebreaker:K}}),this.continuationsPresent=!!_.r(e[e.length-1],_.GO))};
var WgZ=function(e,z){return e.videos.findIndex(function(C){return C.itemId===z})},PCZ=function(e,z){return e.recommendedVideos.findIndex(function(C){return C.itemId===z})},RXf=function(e){e={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:e}}}}};_.lh().resolve(_.ms).resolveCommand(e)};var Lgq=function(){IGq.apply(this,arguments)};
_.U(Lgq,IGq);
var z8L=function(e,z,C,w){if(!e.parentElem)throw Error("ui");var K=WgZ(e,z);K===-1&&(K=PCZ(e,z),K=K!==-1?K+e.videos.length:-1);if(K===-1)throw Error("vi");var G=K>=e.videos.length?e.recommendedVideos[K-e.videos.length]:e.videos[K];G.voteCount=C;G.voteSortTiebreaker=Date.now().toString();K>=e.videos.length?e.recommendedVideos.splice(K-e.videos.length,1):e.videos.splice(K,1);var X=e.videos;for(var J=0,q=X.length-1;J<=q;){var T=Math.floor((J+q)/2);if(X[T].voteCount<G.voteCount)q=T-1;else if(X[T].voteCount>G.voteCount)J=
T+1;else{a:{var Q=G.voteSortTiebreaker;var m=X[T].voteSortTiebreaker;if(Q.length!==m.length)Q=Q.length>m.length;else{for(var a=0;a<Q.length;a++){var n=Q.charCodeAt(a),H=m.charCodeAt(a);if(n>H){Q=!0;break a}if(n<H)break}Q=!1}}Q?q=T-1:J=T+1}}X=J;if(X===-1)throw Error("wi");e.videos.splice(X,0,G);K!==X&&hXq(e,K,X,z,C,w)},hXq=function(e,z,C,w,K,G){var X,J=(X=e.parentElem)==null?void 0:X.children,q=Math.min(z,C),T=Math.max(z,C);
if(J)for(X=q;X<=T;X++)J[X].style.viewTransitionName="item-"+String(X);document.startViewTransition(function(){if(e.parentElem){var Q=e.parentElem.children;if(!(!Q||z<0||z>=Q.length||C<0||C>=Q.length)){var m=Q[z];if(m){m.remove();e.showRefreshPill=C>=e.videos.length-1&&e.continuationsPresent;if(!e.showRefreshPill){Q=Q[C]||null;var a;(a=e.parentElem)==null||a.insertBefore(m,Q)}_.pi(e.parentElem,"yt-update-video-data-voting-animation",{toIdx:C,itemId:w,newVoteCount:K,voteStatus:G,hideItem:e.showRefreshPill})}}}}).finished.then(function(){if(J)for(var Q=
q;Q<=T;Q++)J[Q].style.viewTransitionName="";
if(e.showRefreshPill)RXf(_.kk("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var m;if(m=Q=(m=e.parentElem)==null?void 0:m.children[C])m=Q.getBoundingClientRect(),Q=m.bottom,m=!(m.top>=0&&Q<=e.clientHeight);m&&(m=_.qL(z>C?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(z-C)),RXf(m))}})};var FgL=function(e,z){var C=this;e?this.innertubeTransportServicePromise=Promise.resolve(e):z&&(this.innertubeTransportServicePromise=z(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new uF(3E3,function(w){return Oq$(C,w)},0);
this.validateMiniAppVideoIdRateLimiter=new uF(3E3,function(w){return Eoa(C,w)},1)},kyE=function(e,z){e.JSC$17540_miniAppId=z;
e.reportMiniAppValueRateLimiter=new uF(3E3,function(C){return Oq$(e,C)},0);
e.validateMiniAppVideoIdRateLimiter=new uF(3E3,function(C){return Eoa(e,C)},1)},xgl=function(e,z){var C;
return _.k(function(w){if(w.nextAddress==1)return w.yield(e.reportMiniAppValueRateLimiter.call(z),2);C=w.yieldResult;return w.return([C,z])})},Oq$=function(e,z){var C,w,K,G,X,J,q;
return _.k(function(T){switch(T.nextAddress){case 1:return T.yield(e.innertubeTransportServicePromise,2);case 2:return C=T.yieldResult,w=_.zU(XOX),K=Date.now(),G={externalPostId:e.JSC$17540_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(K/1E3),nanos:Math.round(K%1E3*1E6)},intValue:""+z}},_.Iv(T,3),T.yield(_.Hc(C,G,w),5);case 5:X=T.yieldResult;_.Yj(T,4);break;case 3:throw J=_.O_(T),J;case 4:if(X){if("error"in X&&X.error)throw X.error;if(X.errorMetadata)throw Error("xi`"+
X.errorMetadata.status);if(q=X.userStatResult)return T.return(q);throw Error("yi");}throw Error("zi");}})},$gb=function(e){var z,C,w,K,G;
_.k(function(X){switch(X.nextAddress){case 1:return X.yield(e.innertubeTransportServicePromise,2);case 2:return z=X.yieldResult,C=_.zU(XOX),w={externalPostId:e.JSC$17540_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Iv(X,3),X.yield(_.Hc(z,w,C),5);case 5:K=X.yieldResult;_.Yj(X,4);break;case 3:throw G=_.O_(X),G;case 4:if(K==null)throw Error("zi");if("error"in K&&K.error)throw K.error;if(K.errorMetadata)throw Error("xi`"+K.errorMetadata.status);_.E_(X)}})};
FgL.prototype.flush=function(){var e=this;return _.k(function(z){return z.nextAddress==1?z.yield(e.reportMiniAppValueRateLimiter.flush(),2):z.yield(e.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Twa=function(e,z){return _.k(function(C){return C.nextAddress==1?C.yield(e.validateMiniAppVideoIdRateLimiter.call(z),2):C.return(C.yieldResult)})},Eoa=function(e,z){var C,w,K,G,X,J;
return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(e.innertubeTransportServicePromise,2);case 2:return C=q.yieldResult,w=_.zU(zEX),K={videoId:z},_.Iv(q,3),q.yield(_.Hc(C,K,w),5);case 5:G=q.yieldResult;_.Yj(q,4);break;case 3:throw X=_.O_(q),X;case 4:if(G){if("error"in G&&G.error)throw G.error;if(G.errorMetadata)throw Error("xi`"+G.errorMetadata.status);if(J=G.playabilityStatus)return q.return(J.status);throw Error("Ai");}throw Error("zi");}})};
FgL[Qj]=[_.$B(_.vJ),_.$B(uQs)];var Vc3=function(){this.clientData=new Map};
Vc3.prototype.getData=function(e){return this.clientData.get(e)};var fG5=function(e){this.store=e};
fG5.prototype.handleResponse=function(e){(e=_.r(e.frameworkUpdates,Ze))&&_.m6(e,this.store)};
fG5[Qj]=[_.Tr];var S_l=new _.Mt("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var ugW,d1Z,D1v;_.z7=new _.Mt("FLOW_STATE_MANAGER_TOKEN");ugW=function(){this.flowStates=new Map};
d1Z=function(e,z){e=_.b(e.flowStates.values());for(var C=e.next();!C.done;C=e.next())if(C=C.value,C.flowRenderer.targetId===z)return C};
D1v=function(e,z){var C,w=((C=e.flowRenderer.steps)!=null?C:[]).filter(function(K){return!z.includes(_.r(K,_.o2).stepId)});
e.flowRenderer.steps=w};var iqv=function(e){this.JSC$17564_flowStateManager=e};
_.U(iqv,R7);iqv.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J;return _.k(function(q){C=_.r(e,TUS);K=(w=C)==null?void 0:w.stepIds;X=(G=C)==null?void 0:G.targetId;if(!K||!X)return q.return();J=d1Z(z.JSC$17564_flowStateManager,X);if(!J)return q.return();D1v(J,K);_.E_(q)})};
var Cu=function(){iqv.apply(this,arguments)};
_.U(Cu,iqv);Cu[Qj]=[_.z7];var N5b=function(e,z){this.JSC$17570_reduxStore=e;this.JSC$17570_flowStateManager=z};
_.U(N5b,R7);
N5b.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n,H;return _.k(function(I){C=_.r(e,_.$B4);w=C.stepId;K=C.targetId;G=d1Z(z.JSC$17570_flowStateManager,K);J=(X=G)==null?void 0:X.flowRenderer;q=J.flowStateEntityKey;T=_.KM(z.JSC$17570_reduxStore.getState(),q);if(!T)return I.return();Q=T.currentStepId;n=(a=(m=T)==null?void 0:m.stepIdStack)!=null?a:[];H=Q===n[n.length-1]?w:Q;z.JSC$17570_reduxStore.dispatch(_.d$("flowStateEntity",q,{currentStepId:w,stepIdStack:[H]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.E_(I)})};
var w2=function(){N5b.apply(this,arguments)};
_.U(w2,N5b);w2[Qj]=[_.Tr,_.z7];var svZ=function(e,z,C){this.JSC$17577_reduxStore=e;this.JSC$17577_flowStateManager=z;this.JSC$17577_commandHandler=C};
_.U(svZ,R7);
svZ.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H,I;return _.k(function(L){w=_.r(e,_.ll6);K=w.targetId;G=d1Z(C.JSC$17577_flowStateManager,K);J=(X=G)==null?void 0:X.flowRenderer;q=J.flowStateEntityKey;T=_.KM(C.JSC$17577_reduxStore.getState(),q);a=[].concat(_.s_((m=(Q=T)==null?void 0:Q.stepIdStack)!=null?m:[]));n=a.pop();((H=T)==null?void 0:H.currentStepId)===n&&(n=a[a.length-1]);if(!n)return(I=w.onFirstStepCommand)&&C.JSC$17577_commandHandler.resolveCommand(I,z),L.return();
C.JSC$17577_reduxStore.dispatch(_.d$("flowStateEntity",q,{currentStepId:n,stepIdStack:a}));_.E_(L)})};
var Ku=function(){svZ.apply(this,arguments)};
_.U(Ku,svZ);Ku[Qj]=[_.Tr,_.z7,_.ms];var B55=function(e,z){this.innertubeTransportService=e;this.JSC$17582_commandHandler=z};
_.U(B55,R7);B55.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1){w=_.r(e,QYC);if(!w)return q.return();_.Iv(q,2);return q.yield(_.yC(C.innertubeTransportService,e),4)}if(q.nextAddress!=2){K=q.yieldResult;if(!K)return q.return();(G=K.updateFlowCommand)&&C.JSC$17582_commandHandler.resolveCommand(G,z);return _.Yj(q,0)}_.O_(q);(J=(X=w)==null?void 0:X.onFailureCommand)&&C.JSC$17582_commandHandler.resolveCommand(J,z);_.E_(q)})};
var oG=function(){B55.apply(this,arguments)};
_.U(oG,B55);oG[Qj]=[_.vJ,_.ms];var tcC=function(e,z){this.JSC$17588_flowStateManager=e;this.JSC$17588_commandHandler=z};
_.U(tcC,R7);
tcC.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X;return _.k(function(J){w=_.r(e,_.alo);K=w.targetId;G=d1Z(C.JSC$17588_flowStateManager,K);if(!G)return J.return(Promise.resolve());var q=G,T=(X=w.steps)!=null?X:[],Q,m=(Q=q.flowRenderer.steps)!=null?Q:[];T=[].concat(_.s_(m),_.s_(T));q.flowRenderer.steps=T;w.flowContinuationCommand&&(G.flowRenderer.flowContinuationCommand=w.flowContinuationCommand);w.entityUpdateCommand&&C.JSC$17588_commandHandler.resolveCommand(w.entityUpdateCommand,z);
return J.return(Promise.resolve())})};
var G7=function(){tcC.apply(this,arguments)};
_.U(G7,tcC);G7[Qj]=[_.z7,_.ms];var goY={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]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var jvW=new _.Mt("ICON_SET_TOKEN"),ynf=new _.Mt("ICON_URL_PROVIDER_TOKEN"),cnZ=new _.Mt("PREFETCH_ICONS_TOKEN"),Ano=new _.Mt("ICON_MAP_FN_TOKEN");var Yh={},Zq5=(Yh.ACCESS_TIME="clock",Yh.ACCOUNT_BOX=_.j5("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",Yh.ACCOUNT_BOX_CAIRO="person_account_cairo",Yh.ACCOUNT_CIRCLE="person_circle",Yh.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",Yh.ACCOUNT_LINKED="account_link_success",Yh.ACCOUNT_UNLINKED="account_link",Yh.ADD_FRIEND="people",Yh.ADD_MODERATOR="shield_add",Yh.ADD_TO_LIBRARY="bookmark",Yh.ADD_TO_PLAYLIST="add",Yh.ADD_TO_QUEUE_TAIL="list_queue",Yh.ADD_TO_REMOTE_QUEUE="list_music",
Yh.ADD_TO_WATCH_LATER="clock",Yh.ADD_VIDEO_LINK="film_strip_add",Yh.ALERT_WARN_RED="alert_triangle",Yh.ARROW_BACK="arrow_left",Yh.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",Yh.ARROW_DROP_DOWN="chevron_down",Yh.ARROW_DROP_UP="chevron_up",Yh.ARROW_FORWARD="arrow_right",Yh.ARTIST="person_music",Yh.AUDIOTRACK="audio",Yh.AUTO_AWESOME="sparkle",Yh.AVATAR_ANONYMOUS="person_circle",Yh.AVATAR_LOGGED_OUT="person_circle",Yh.BACK="arrow_left",Yh.BAR_CHART="bar_graph",Yh.BLOCK="slash_circle_left",
Yh.BLOCK_USER="slash_circle_left",Yh.BOOKMARK_BORDER="bookmark",Yh.BREAKING_NEWS_ALT_1="article_alert",Yh.BROADCAST_CAIRO="podcast_cairo",Yh.BUG_REPORT="bug",Yh.CAMERA_ALT="camera",Yh.CAMPAIGN="megaphone",Yh.CANCEL="x_circle",Yh.CAPTIONS="closed_caption",Yh.CAST_OUTLINE="chromecast",Yh.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Yh.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",Yh.CHAT="message_bubble_left",Yh.CHAT_BUBBLE="message_bubble_empty",Yh.CHAT_SPARK="spark_message_bubble_left",Yh.CHECK_BOX_OUTLINE_BLANK=
"box_empty",Yh.CHECK_CIRCLE_OUTLINE="check_circle",Yh.CHECK_CIRCLE_THICK="check_circle",Yh.CLARIFY="article_clarify",Yh.CLOSED_CAPTION_SELECTED="closed_caption",Yh.CLOSE="x_mark",Yh.CLOUD_UPLOAD="cloud_arrow_up",Yh.COLLAPSE="chevron_up",Yh.COLLAPSE_CAIRO="chevron_up_cairo",Yh.COLLECTION="layers",Yh.COLOR_LENS="palette",Yh.COMMENT="message_bubble_right",Yh.CONSENT_SHIELD="person_shield",Yh.CONTENT_CUT="scissors",Yh.CONTENT_CUT_CAIRO="scissors_cairo",Yh.COURSE=_.M("web_enable_course_icon_update")?"creator_academy":
"lightbulb",Yh.COURSE_CAIRO=_.M("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",Yh.CREATION_LIVE="radar_live",Yh.CREATION_POST="box_pencil",Yh.CREATION_UPLOAD="my_videos",Yh.CREATION_UPLOAD_RED="upload",Yh.CREATOR_METADATA_MONETIZATION="dollar_sign",Yh.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",Yh.CREATOR_STUDIO="youtube_studio",Yh.DASHBOARD="grid_asymmetrical",Yh.DELETE="trash_can",Yh.DELETE_SWEEP="trash_can",Yh.DESKTOP="laptop",Yh.DISLIKE="thumb_down",Yh.DISLIKE_SELECTED=
"thumb_down",Yh.DISMISSAL="x_mark",Yh.DISMISS_QUEUE="list_remove",Yh.DONE_ALL="check_double",Yh.DOWN_ARROW="arrow_down",Yh.DO_NOT_DISTURB="slash_circle_left",Yh.DRAFT="paper_corner_folded",Yh.DRAG_HANDLE="bars_2",Yh.EDIT="pencil",Yh.EMOJI="face_very_happy",Yh.EMOJI_FLAGS="flag",Yh.EMOJI_OBJECTS="lightbulb",Yh.EMOJI_PEOPLE="face_very_happy",Yh.EMOJI_RECENT="clock",Yh.EMPTY_HEART="heart",Yh.EMPTY_LIKE="thumb_up",Yh.ERROR_BLACK="alert_circle",Yh.ERROR_OUTLINE="alert_circle",Yh.EXIT_APP="arrow_in",Yh.EXIT_TO_APP=
"arrow_in",Yh.EXPAND="chevron_down",Yh.EXPAND_ALL="chevron_expand",Yh.EXPAND_CAIRO="chevron_down_cairo",Yh.EXPAND_LESS="chevron_up",Yh.EXPAND_MORE="chevron_down",Yh.EXPLORE="compass",Yh.EXPLORE_DESTINATION="compass",Yh.EXTERNAL_LINK="open_new",Yh.FAB_UPLOAD="upload",Yh.FACE_HAPPY_OUTLINE="face_happy",Yh.FACT_CHECK="article_check",Yh.FASHION_LOGO="fashion",Yh.FASHION_LOGO_CAIRO="fashion_cairo",Yh.FAVORITE="heart",Yh.FEEDBACK="message_bubble_alert",Yh.FEEDBACK_CAIRO="message_bubble_alert_cairo",Yh.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Yh.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Yh.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Yh.FILTER="menu_filter",Yh.FIRST_PAGE="chevron_first",Yh.FLAG="flag",Yh.FULL_HEART="heart",Yh.GAME_CONSOLE_DPAD="game_console_dpad",Yh.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",Yh.GAMING_LOGO="gaming",Yh.GAMING_LOGO_CAIRO="gaming_cairo",Yh.GO_TO_PAGE="arrow_right",Yh.GROUPS="people_group",Yh.HAPPY="face_happy",Yh.HEALTH_AND_SAFETY="shield_plus",Yh.HELP="question_circle",Yh.HELP_CAIRO=
"question_circle_cairo",Yh.HELP_OUTLINE="question_circle",Yh.HIDE="slash_circle_left",Yh.IMAGE="image",Yh.INFINITY_ICON="infinity",Yh.INFO="info_circle",Yh.INFO_OUTLINE="info_circle",Yh.INSERT_CHART="bar_graph_box_vertical",Yh.INSERT_CHART_OUTLINED="bar_graph_box_vertical",Yh.INSERT_PHOTO="image",Yh.KEEP="pin",Yh.KEEP_OFF="pin_off",Yh.KEYBOARD="keyboard",Yh.KEYBOARD_ARROW_DOWN="chevron_down",Yh.KEYBOARD_ARROW_UP="chevron_up",Yh.KIDS_BLOCK="slash_circle_left",Yh.LANGUAGE="globe",Yh.LAST_PAGE="chevron_last",
Yh.LAUNCH="open_new",Yh.LEARNING="lightbulb",Yh.LEARNING_CAIRO="lightbulb_cairo",Yh.LIBRARY_ADD=Jo8("library_add"),Yh.LIBRARY_OUTLINE="library",Yh.LIBRARY_REMOVE=Jo8(),Yh.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",Yh.LIKES_PLAYLIST="thumb_up",Yh.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",Yh.LIKE="thumb_up",Yh.LIKE_SELECTED="thumb_up",Yh.LIVE="radar_live",Yh.LIVE_CAIRO="radar_live_cairo",Yh.LIVE_UNLISTED="link",Yh.LOCATION_ON="location_point",Yh.LOCATION_PIN="location_point",Yh.LOOP="arrow_repeat",Yh.LOOP_ACTIVE=
"arrow_repeat",Yh.LOOP_ONE="arrow_repeat_1",Yh.LOOP_ONE_ACTIVE="arrow_repeat_1",Yh.MEH="face_meh",Yh.MEMBERS_ONLY_MODE_OFF="message_bubble_left",Yh.MESSAGE="message_bubble_left",Yh.MICROPHONE_ON="mic",Yh.MIX="youtube_mix",Yh.MONETIZATION_ON="dollar_sign_circle",Yh.MONEY_FILL="dollar_sign_container",Yh.MONEY_FILL_JPY="yen_sign_container",Yh.MONEY_HEART="dollar_sign_heart",Yh.MORE_HORIZ="overflow_horizontal",Yh.MORE_VERT="overflow_vertical",Yh.MUSIC="audio",Yh.MUSIC_CAIRO="audio_cairo",Yh.MUSIC_NOTE_SYMBOL=
"music",Yh.MUSIC_SHUFFLE="arrow_shuffle",Yh.MY_CHANNEL="person_circle",Yh.MY_LOCATION="location_point",Yh.NEWS_STORY="news",Yh.NEXT="chevron_right",Yh.NOTIFICATIONS="bell",Yh.NOTIFICATIONS_ACTIVE="bell_on",Yh.NOTIFICATIONS_CAIRO="bell_cairo",Yh.NOTIFICATIONS_DONE_CHECKMARK="check",Yh.NOTIFICATIONS_INBOX="bell",Yh.NOTIFICATIONS_NONE="bell",Yh.NOTIFICATIONS_OFF="bell_off",Yh.NOT_INTERESTED="slash_circle_left",Yh.OFFICIAL_ARTIST_BADGE="audio",Yh.OFFLINE_CLOUD="cloud_off",Yh.OFFLINE_DOWNLOAD="download",
Yh.OFFLINE_DOWNLOAD_CAIRO="download_cairo",Yh.OFFLINE_PAUSE="pause",Yh.OPEN_IN_NEW="open_new",Yh.OUTLINE_ADJUST="adjust",Yh.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Yh.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Yh.OUTLINE_BAG="bag",Yh.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",Yh.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Yh.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Yh.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",Yh.PAID="dollar_sign",Yh.PAUSE_OUTLINED="pause",Yh.PAYMENT=
"credit_card",Yh.PERSON_RADAR_FILLED="person_radar",Yh.PHONE_DOWNLOAD="mobile_download",Yh.PLAYABLES_LOGO="tic_tac_toe",Yh.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",Yh.PLAYLISTS="list_play_arrow",Yh.PLAYLISTS_CAIRO="list_play_arrow_cairo",Yh.PLAYLIST_ADD=Jo8("list_add"),Yh.PLAYLIST_ADD_CHECK=Jo8("list_check"),Yh.PLAYLIST_PLAY="list_play_arrow",Yh.PLAY_ALL="play_arrow",Yh.PLAY_CIRCLE="play_arrow_circle",Yh.PLAY_OUTLINED="play_arrow_circle",Yh.PRIVACY_INFO="shield",Yh.PRIVACY_PRIVATE="lock",Yh.PRIVACY_PUBLIC=
"earth",Yh.PRIVACY_UNLISTED="link",Yh.PROMOTE="megaphone",Yh.PURCHASES="price_tag",Yh.PURCHASE_SUPER_CHAT="super_chat",Yh.PURCHASE_SUPER_STICKER="super_sticker",Yh.QUESTION_ANSWER="message_bubble_question",Yh.QUEUE_PLAY_LAST="list_queue_last",Yh.QUEUE_PLAY_NEXT="list_play_arrow",Yh.REMIX_FILLED="youtube_shorts_remix",Yh.REMOVE="bar_circle",Yh.REMOVE_CIRCLE="bar_circle",Yh.REMOVE_CIRCLE_OUTLINE="bar_circle",Yh.REMOVE_DONE="check_double_off",Yh.REMOVE_FROM_HISTORY="bar_circle",Yh.REMOVE_FROM_PLAYLIST=
"bar_circle",Yh.REMOVE_MODERATOR="shield_off",Yh.REPLAY="arrow_circle",Yh.REPLAY_10="skip_back_10",Yh.REPORT_PROBLEM="alert_triangle",Yh.SAD="face_sad",Yh.SAVE_PLAYLIST="bookmark",Yh.SCHEDULE="clock",Yh.SCHOOL="creator_academy",Yh.SCREEN_FULLSCREEN="screen_full",Yh.SEARCH_HISTORY="arrow_time",Yh.SELL="price_tag",Yh.SETTINGS="gear",Yh.SETTINGS_CAIRO="gear_cairo",Yh.SETTINGS_LIGHT="gear",Yh.SETTINGS_MATERIAL="gear",Yh.SHARE_ARROW="share",Yh.SHIELD_WITH_AVATAR="person_shield",Yh.SHOPPING_BAG="bag",Yh.SHOPPING_BAG_CAIRO=
"bag_cairo",Yh.SHOPPING_CART="cart",Yh.SHORTS_COMMENT="youtube_shorts_message_bubble_right",Yh.SHORTS_DISLIKE="youtube_shorts_thumb_down",Yh.SHORTS_LIKE="youtube_shorts_thumb_up",Yh.SHORTS_SHARE="youtube_shorts_share",Yh.SHUFFLE="arrow_shuffle",Yh.SLOW_MODE_OFF="message_bubble_left",Yh.SOCIAL="people",Yh.SORT="menu_sort",Yh.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Yh.SPEED_1X="1x",Yh.SPEED_1_POINT_2X="1_point_2x",Yh.SPEED_1_POINT_5X="1_point_5x",Yh.SPEED_1_POINT_8X="1_point_8x",Yh.SPEED_2X="2x",
Yh.SPEED_POINT_2X="point_2x",Yh.SPEED_POINT_8X="point_8x",Yh.SPONSORSHIP_STAR="star_circle",Yh.STAFF_PICK="spotlight",Yh.START_DVR="add",Yh.STAR_BORDER="star",Yh.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",Yh.STICKER_EMOTICON="face_happy",Yh.STOP_DVR="stop",Yh.SUBSCRIBE="youtube_logo_icon",Yh.SUBSCRIBE_PLUS="add_cairo",Yh.SUBSCRIPTION_MANAGER="gear",Yh.SUPERVISOR_ACCOUNT="people",Yh.SUPER_CHAT_FOR_GOOD="hands_heart",Yh.SWAP_HORIZ="arrow_swap_horizontal",Yh.SWITCH_ACCOUNTS="person_account",Yh.TAB_ACCOUNT=
"person",Yh.TAB_ACTIVITY="bell",Yh.TAB_BOOKMARK="bookmark",Yh.TAB_EXPLORE="compass",Yh.TAB_HOME="home",Yh.TAB_HOME_CAIRO="home_cairo",Yh.TAB_INBOX="mail",Yh.TAB_LIKED="thumb_up",Yh.TAB_MUSIC_PREMIUM="youtube_music",Yh.TAB_SHORTS="youtube_shorts",Yh.TAB_SHORTS_CAIRO="youtube_shorts_cairo",Yh.TAB_SUBSCRIPTIONS="subscriptions",Yh.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",Yh.TAB_TRENDING="fire",Yh.TIMER="stopwatch",Yh.TRAILER="youtube_originals",Yh.TRENDING="fire",Yh.TRENDING_CAIRO="fire_cairo",Yh.TRENDING_DOWN=
"rating_down",Yh.TRENDING_UP="rating_up",Yh.TROPHY="trophy",Yh.TROPHY_CELEBRATIONS="fireworks",Yh.TUNE="adjust",Yh.UNBLOCK_USER="bar_circle",Yh.UNLIMITED="youtube_logo_icon",Yh.UNPLUGGED_LIVE_GUIDE="radar_live",Yh.UNPLUGGED_SPORTS="eye_off",Yh.UPLOADS="library",Yh.UP_ARROW="arrow_up",Yh.VERTICAL_ALIGN_BOTTOM="download",Yh.VERY_HAPPY="face_very_happy",Yh.VERY_SAD="face_very_sad",Yh.VIDEOGAME_ASSET="gaming",Yh.VIDEOS="play_arrow_circle",Yh.VIDEO_CALL="video_camera_add",Yh.VIDEO_LIBRARY_WHITE="library",
Yh.VIDEO_YOUTUBE="youtube_logo_icon",Yh.VIEW_LIST="list_view",Yh.VIEW_LIST_CAIRO="list_view_cairo",Yh.VISIBILITY="eye",Yh.VISIBILITY_OFF="eye_off",Yh.VOLUME_MUTE="volume_off",Yh.VOLUME_UP="volume_on",Yh.WALLPAPER="image",Yh.WARNING="alert_triangle",Yh.WATCH_HISTORY="arrow_time",Yh.WATCH_HISTORY_CAIRO="arrow_time_cairo",Yh.WATCH_LATER="clock",Yh.WATCH_LATER_CAIRO="clock_cairo",Yh.WATCH_RELATED_MIX="youtube_mix",Yh.WHAT_TO_WATCH="home",Yh.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Yh.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",Yh.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",Yh.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",Yh.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",Yh.YT_OUTLINE_MUSIC_24="music",Yh);var ba={},pZq=(ba.ACCESS_TIME="clock",ba.ACCOUNT_BOX="person_square",ba.ACCOUNT_BOX_CAIRO="person_square",ba.ACCOUNT_CIRCLE="person_circle",ba.ACCOUNT_CIRCLE_CAIRO="person_circle",ba.ACCOUNT_LINKED="account_link",ba.ACCOUNT_UNLINKED="account_link",ba.ADD_CIRCLE="add_circle",ba.ADD_CIRCLE_OUTLINE="add_circle",ba.ADD_FRIEND="person_child",ba.ADD_MODERATOR="shield_add",ba.ADD_TO_LIBRARY="bookmark",ba.ADD_TO_PLAYLIST="add",ba.ADD_TO_QUEUE_TAIL="queue",ba.ADD_TO_REMOTE_QUEUE="playlist_audio",ba.ADD_TO_WATCH_LATER=
"clock",ba.ADD_VIDEO_LINK="film_strip_add",ba.ADMIN_PANEL_SETTINGS="person_gear",ba.ALERT_WARN_RED="alert_triangle",ba.ALIGN_LEFT="text_align_left",ba.ARROWS_ALERT="arrow_split_alert",ba.ARROW_BACK="arrow_left",ba.ARROW_CIRCLE="arrow_counterclockwise",ba.ARROW_CIRCLE_PLAY="replay",ba.ARROW_CIRCLE_RIGHT="arrow_clockwise",ba.ARROW_DIAGONAL="arrow_up_left",ba.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",ba.ARROW_DROP_DOWN="triangle_down",ba.ARROW_DROP_UP="triangle_up",ba.ARROW_FORWARD="arrow_right",ba.ARROW_PAUSE=
"pause_history",ba.ARROW_UNDO="undo",ba.ARTICLE="text_page",ba.ARTICLE_ALERT="text_page_alert",ba.ARTICLE_CHECK="text_page_check",ba.ARTICLE_CLARIFY="text_page_info",ba.ARTIST="person_audio",ba.AUDIOTRACK="audio",ba.AUDIO_BADGE="audio_badge",ba.AUDIO_SURROUND="surround_sound",ba.AUTO_AWESOME="sparkles",ba.AVATAR_ANONYMOUS="person_circle",ba.AVATAR_LOGGED_OUT="person_circle",ba.BACK="arrow_left",ba.BAR_CHART="chart_bar",ba.BAR_CIRCLE="minus_circle",ba.BAR_HORIZONTAL="minus",ba.BLOCK="circle_slash",
ba.BLOCK_USER="circle_slash",ba.BOOKMARK_BORDER="bookmark",ba.BOX_OPEN_CHECK="quiz",ba.BOX_PENCIL="square_pencil",ba.BOX_STACK_3="square3_stack",ba.BREAKING_NEWS_ALT_1="text_page_alert",ba.BROADCAST="podcast",ba.BROADCAST_CAIRO="podcast",ba.BUG_REPORT="bug",ba.CAMERA_ALT="camera",ba.CAMPAIGN="megaphone",ba.CANCEL="x_circle",ba.CAPTIONS="closed_captions",ba.CAST_ICON="chromecast",ba.CAST_OUTLINE="chromecast",ba.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",ba.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
ba.CHAT="text_bubble",ba.CHAT_BUBBLE="bubble",ba.CHECK_BOX="check_square",ba.CHECK_BOX_OUTLINE_BLANK="square",ba.CHECK_CIRCLE_FILLED="check_circle",ba.CHECK_CIRCLE_OUTLINE="check_circle",ba.CHECK_CIRCLE_THICK="check_circle",ba.CHECK_DOUBLE="check_done",ba.CHECK_DOUBLE_OFF="check_done_slash",ba.CHEVRON_LEFT="chevron_left",ba.CHEVRON_RIGHT="chevron_right",ba.CHEVRON_RIGHT_CAIRO="chevron_right",ba.CIRCLES_OVERLAP="account_link",ba.CLAPPERBOARD_CAIRO="clapperboard",ba.CLARIFY="text_page_info",ba.CLOCK_ARROWS=
"clock_split",ba.CLOCK_ARROWS_ALERT="clock_split_alert",ba.CLOSED_CAPTION="closed_captions",ba.CLOSED_CAPTION_SELECTED="closed_captions",ba.CLOSE="x",ba.CLOUD_UPLOAD="cloud_arrow_up",ba.COLLAPSE="chevron_up",ba.COLLAPSE_CAIRO="chevron_up",ba.COLLECTION="square3d_stack",ba.COLOR_LENS="paint_palette",ba.COMMENT="text_bubble",ba.CONSENT_SHIELD="person_shield",ba.CONTENT_CUT="scissors",ba.CONTENT_CUT_CAIRO="scissors",ba.COURSE="graduation_cap",ba.COURSE_CAIRO="graduation_cap",ba.CREATION_LIVE="live",
ba.CREATION_POST="square_pencil",ba.CREATION_UPLOAD="video",ba.CREATION_UPLOAD_RED="upload",ba.CREATOR_ACADEMY="graduation_cap",ba.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",ba.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",ba.CREATOR_STUDIO="youtube_studio",ba.DARK_THEME="theme",ba.DELETE="trash_can",ba.DELETE_SWEEP="trash_can",ba.DESKTOP="laptop",ba.DISLIKE="thumb_down",ba.DISLIKE_SELECTED="thumb_down",ba.DISMISSAL="x",ba.DISMISS_QUEUE="playlist_x",ba.DOGFOOD="pawprint",ba.DOLLAR_SIGN=
"dollar_sign_circle",ba.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",ba.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",ba.DOWN_ARROW="arrow_down",ba.DO_NOT_DISTURB="circle_slash",ba.DRAFT="document",ba.DRAG_HANDLE="equal",ba.EARTH="globe",ba.EDIT="pencil",ba.EMOJI="face_very_happy",ba.EMOJI_FLAGS="flag",ba.EMOJI_OBJECTS="lightbulb",ba.EMOJI_PEOPLE="face_very_happy",ba.EMOJI_RECENT="clock",ba.EMPTY_HEART="heart",ba.EMPTY_LIKE="thumb_up",ba.ERROR_BLACK="alert_circle",ba.ERROR_OUTLINE="alert_circle",ba.ERROR_WHITE=
"alert_circle",ba.EXIT_APP="arrow_in",ba.EXIT_TO_APP="arrow_in",ba.EXPAND="chevron_down",ba.EXPAND_ALL="chevron_expand",ba.EXPAND_CAIRO="chevron_down",ba.EXPAND_LESS="chevron_up",ba.EXPAND_MORE="chevron_down",ba.EXPLORE="compass",ba.EXPLORE_DESTINATION="compass",ba.EXTERNAL_LINK="arrow_up_right",ba.EYE_OFF="eye_slash",ba.FAB_UPLOAD="upload",ba.FACE_HAPPY_OUTLINE="face_happy",ba.FACE_MEH="face_neutral",ba.FACT_CHECK="text_page_check",ba.FASHION_LOGO="fashion",ba.FASHION_LOGO_CAIRO="fashion",ba.FAVORITE=
"thumb_up",ba.FEEDBACK="alert_bubble",ba.FEEDBACK_CAIRO="alert_bubble",ba.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",ba.FILL_ARROW_SOLID_UP_16="arrow_solid_up",ba.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",ba.FIRST_PAGE="chevron_left_end",ba.FLAG_CAIRO="flag",ba.FLASH_OFF="flash_slash",ba.FLASH_ON="flash",ba.FULL_HEART="heart",ba.GAMING_LOGO="gaming",ba.GAMING_LOGO_CAIRO="gaming",ba.GO_TO_PAGE="arrow_right",ba.GRID_ASYMMETRICAL="dashboard",ba.GROUPS="person3",ba.HAND_SWIPE_LEFT="gesture_swipe_left",
ba.HAND_SWIPE_RIGHT="gesture_swipe_right",ba.HAPPY="face_happy",ba.HEALTH_AND_SAFETY="shield_health",ba.HEART_BOX="heart_cube",ba.HELP="help_circle",ba.HELP_CAIRO="help_circle",ba.HELP_OUTLINE="help_circle",ba.HIDE="circle_slash",ba.INCOGNITO_CAIRO="incognito",ba.INFINITY_ICON="infinity",ba.INFO="info_circle",ba.INFO_OUTLINE="info_circle",ba.INSERT_CHART="chart_bar_square",ba.INSERT_CHART_OUTLINED="chart_bar_square",ba.INSERT_PHOTO="image",ba.KEEP="pin",ba.KEEP_OFF="pin_slash",ba.KEYBOARD="keyboard",
ba.KEYBOARD_ARROW_DOWN="chevron_down",ba.KEYBOARD_ARROW_UP="chevron_up",ba.KIDS_BLOCK="circle_slash",ba.LANGUAGE="globe",ba.LAST_PAGE="chevron_right_end",ba.LAUNCH="arrow_up_right",ba.LEARNING="lightbulb",ba.LEARNING_CAIRO="lightbulb",ba.LIBRARY_ADD="bookmark",ba.LIBRARY_IMAGE="image_stack",ba.LIBRARY_MUSIC="audio_square_stack",ba.LIBRARY_OUTLINE="play_square_stack",ba.LIBRARY_REMOVE="bookmark",ba.LIBRARY_SAVED="check_square_stack",ba.LIKES_PLAYLIST="thumb_up",ba.LIKES_PLAYLIST_CAIRO="thumb_up",ba.LIKE=
"thumb_up",ba.LIKE_SELECTED="thumb_up",ba.LIST_QUEUE="queue",ba.LIVE_CAIRO="live",ba.LIVE_UNLISTED="link",ba.LOCATION_ON="location_pin",ba.LOCATION_PIN="location_pin",ba.LOCATION_POINT="location_pin",ba.LOOP="repeat",ba.LOOP_ACTIVE="repeat",ba.LOOP_ONE="repeat1",ba.LOOP_ONE_ACTIVE="repeat1",ba.MEET="google_meet",ba.MEH="face_neutral",ba.MEMBERSHIPS="memberships",ba.MEMBERS_ONLY_MODE_OFF="text_bubble",ba.MENU_FILTER="filter",ba.MESSAGE="text_bubble",ba.MESSAGE_BUBBLE_GEAR="bubble_gear",ba.MESSAGE_BUBBLE_LEFT=
"text_bubble",ba.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",ba.MESSAGE_BUBBLE_OVERLAP="bubble_stack",ba.MESSAGE_BUBBLE_QUESTION="help_bubble",ba.MICROPHONE_ON="mic",ba.MONETIZATION_ON="dollar_sign_circle",ba.MONEY_FILL="dollar_sign_rectangle",ba.MONEY_FILL_JPY="yen_sign_rectangle",ba.MONEY_HAND="dollar_sign_circle_hand",ba.MONEY_HEART="dollar_sign_heart",ba.MOON_Z="sleep_timer",ba.MORE_HORIZ="overflow_horizontal",ba.MORE_VERT="overflow_vertical",ba.MUSIC="audio",ba.MUSIC_CAIRO="audio",ba.MUSIC_EXPLICIT_BADGE=
"explicit",ba.MUSIC_NEW_RELEASE="audio_badge",ba.MUSIC_NOTE_SYMBOL="audio",ba.MUSIC_SCISSORS="audio_scissors",ba.MUSIC_SHUFFLE="shuffle",ba.MY_CHANNEL="person_circle",ba.MY_LOCATION="location_pin",ba.MY_VIDEOS="video",ba.MY_VIDEOS_CAIRO="video",ba.NEWS_CAIRO="news",ba.NEWS_STORY="news",ba.NEXT="chevron_right",ba.NOTE_ADD="bubble_pencil",ba.NOTIFICATIONS="bell",ba.NOTIFICATIONS_ACTIVE="bell_waves",ba.NOTIFICATIONS_CAIRO="bell",ba.NOTIFICATIONS_DONE_CHECKMARK="check",ba.NOTIFICATIONS_INBOX="bell",ba.NOTIFICATIONS_NONE=
"bell",ba.NOTIFICATIONS_OFF="bell_slash",ba.NOT_INTERESTED="circle_slash",ba.OFFICIAL_ARTIST_BADGE="audio",ba.OFFLINE_CLOUD="cloud_slash",ba.OFFLINE_DOWNLOAD="download",ba.OFFLINE_DOWNLOAD_CAIRO="download",ba.OFFLINE_PAUSE="pause",ba.OPEN_IN_NEW="arrow_up_right",ba.OUTLINE_ADJUST="adjust",ba.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",ba.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",ba.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",ba.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",ba.OUTLINE_BAG="bag",ba.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",ba.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",ba.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",ba.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",ba.PAID="dollar_sign_circle",ba.PAUSE_OUTLINED="pause",ba.PAYMENT="credit_card",ba.PEOPLE="person_child",ba.PEOPLE_2="person2_rectangle",ba.PEOPLE_GROUP="person3",ba.PEOPLE_NOTE="bubble_asterisk",ba.PERSON_2="person2",ba.PERSON_ACCOUNT="person_square_stack",ba.PERSON_MINUS="person_x",ba.PERSON_MUSIC="person_audio",ba.PERSON_RADAR="person_waves",
ba.PERSON_RADAR_FILLED="person_waves",ba.PERSON_SETTING="person_gear",ba.PHONE="phone",ba.PHONE_DOWNLOAD="mobile_arrow_down",ba.PICTURE_IN_PICTURE="picture_in_picture",ba.PLAYABLES_LOGO="playables",ba.PLAYABLES_LOGO_CAIRO="playables",ba.PLAYLISTS="playlist",ba.PLAYLISTS_CAIRO="playlist",ba.PLAYLIST_ADD_CHECK="bookmark",ba.PLAY_ALL="play",ba.PLAY_ARROW="play",ba.PLAY_ARROW_CIRCLE="play_circle",ba.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",ba.PLAY_CIRCLE="play_circle",ba.PLAY_OUTLINED="play_circle",
ba.PODCAST_ADD="podcast_add",ba.PODCAST_CHECK="podcast_check",ba.PRIVACY_INFO="shield_x",ba.PRIVACY_PRIVATE="lock",ba.PRIVACY_PUBLIC="globe",ba.PRIVACY_UNLISTED="link",ba.PROMOTE="megaphone",ba.PURCHASES="price_tag",ba.PURCHASE_SUPER_CHAT="super_chat",ba.PURCHASE_SUPER_STICKER="super_sticker",ba.QUESTION_ANSWER="help_bubble",ba.QUESTION_CIRCLE="help_circle",ba.QUEUE_PLAY_LAST="queue_last",ba.QUEUE_PLAY_NEXT="queue_next",ba.QUOTATION_MARK="quote",ba.RADAR_LIVE="live",ba.REMOVE="minus_circle",ba.REMOVE_CIRCLE=
"minus_circle",ba.REMOVE_CIRCLE_OUTLINE="minus_circle",ba.REMOVE_FROM_HISTORY="minus_circle",ba.REMOVE_FROM_PLAYLIST="minus_circle",ba.REMOVE_MODERATOR="shield_slash",ba.REPLAY="arrow_counterclockwise",ba.REPLAY_10="skip10_back",ba.REPLAY_ARROW="replay",ba.REPORT_PROBLEM="alert_triangle",ba.RSS_OFF="rss_slash",ba.SAD="face_sad",ba.SAVE_PLAYLIST="bookmark",ba.SCHEDULE="clock",ba.SCHOOL="graduation_cap",ba.SCREEN_DEFAULT="player_default",ba.SCREEN_FULLSCREEN="player_full_enter",ba.SCREEN_LIGHT="ambient_mode",
ba.SCREEN_ROTATION="rotate_portrait",ba.SCREEN_SWITCH="player_switch",ba.SCREEN_THEATRE="player_theater",ba.SEARCH_CAIRO="search",ba.SEARCH_HISTORY="history",ba.SELL="price_tag",ba.SETTINGS="gear",ba.SETTINGS_CAIRO="gear",ba.SETTINGS_LIGHT="gear",ba.SETTINGS_MATERIAL="gear",ba.SETTINGS_REMOTE="remote_waves",ba.SHARE="share",ba.SHARE_ARROW="share",ba.SHARE_CAIRO="share",ba.SHIELD="shield_x",ba.SHIELD_EMPTY="shield",ba.SHIELD_OFF="shield_slash",ba.SHIELD_WITH_AVATAR="person_shield",ba.SHOPPING_BAG=
"bag",ba.SHOPPING_BAG_CAIRO="bag",ba.SHOPPING_CART="cart",ba.SHORTS_COMMENT="text_bubble",ba.SHORTS_DISLIKE="thumb_down",ba.SHORTS_LIKE="thumb_up",ba.SHORTS_SHARE="share",ba.SKIP_FORWARD_30="skip30_forward",ba.SLASH_CIRCLE_LEFT="circle_slash",ba.SLASH_CIRCLE_RIGHT="circle_slash",ba.SLOW_MODE="bubble_slow",ba.SLOW_MODE_OFF="text_bubble",ba.SOCIAL="person_child",ba.SPARKLE="sparkles",ba.SPARK_IMAGE="image_spark",ba.SPARK_PENCIL="pencil_spark",ba.SPARK_RADAR="spark_waves",ba.SPARK_VIDEO="video_spark",
ba.SPEAKER_GROUP="speaker_stack",ba.SPEAKER_OFF="speaker_slash",ba.SPEED_1X="n1x",ba.SPEED_1_POINT_2X="n1point2x",ba.SPEED_1_POINT_5X="n1point5x",ba.SPEED_1_POINT_8X="n1point8x",ba.SPEED_2X="n2x",ba.SPONSORSHIP_STAR="star_circle",ba.SPORTS="basketball",ba.SPOTLIGHT="spotlight",ba.STAFF_PICK="spotlight",ba.START_DVR="add",ba.STAR_BORDER="star",ba.STAR_CIRCLE_RIBBON="memberships_gift",ba.STAR_HALF="star_full_half",ba.STAR_SHOOTING="hype",ba.STICKER="sticker",ba.STICKER_EMOTICON="face_happy",ba.STOP_DVR=
"stop",ba.SUBSCRIBE="youtube",ba.SUBSCRIBE_PLUS="add",ba.SUBSCRIPTION_MANAGER="gear",ba.SUPERSTAR="super_star",ba.SUPERVISOR_ACCOUNT="person_child",ba.SUPER_CHAT_FOR_GOOD="hands_heart",ba.SWAP_HORIZ="arrow_swap_horizontal",ba.SWITCH_ACCOUNTS="person_square_stack",ba.TAB_ACCOUNT="person",ba.TAB_ACTIVITY="bell",ba.TAB_BOOKMARK="bookmark",ba.TAB_EXPLORE="compass",ba.TAB_HOME="home",ba.TAB_HOME_CAIRO="home",ba.TAB_INBOX="mail",ba.TAB_LIKED="thumb_up",ba.TAB_MUSIC_PREMIUM="youtube_music",ba.TAB_SHORTS=
"shorts",ba.TAB_SHORTS_CAIRO="shorts",ba.TAB_SUBSCRIPTIONS="subscriptions",ba.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",ba.TAB_TRENDING="trending",ba.TARGET="target",ba.TARGET_ADD="target_add",ba.TEMPLATE_ADD="template_add",ba.TEXT="font",ba.TICKET_STAR="star_ticket",ba.TIMER="stopwatch",ba.TRENDING_CAIRO="trending",ba.TRENDING_DOWN="arrow_trend_down",ba.TRENDING_UP="arrow_trend_up",ba.TROPHY_CAIRO="trophy",ba.TROPHY_CELEBRATIONS="fireworks",ba.TROPHY_STAR="star_trophy",ba.TUNE="adjust",ba.TV_OFF="tv_slash",
ba.UNBLOCK_USER="minus_circle",ba.UNFAVORITE="thumb_down",ba.UNLIMITED="youtube",ba.UNPLUGGED_LIVE_GUIDE="live",ba.UNPLUGGED_SPORTS="eye_slash",ba.UPLOADS="play_square_stack",ba.UP_ARROW="arrow_up",ba.VERTICAL_ALIGN_BOTTOM="chevron_down_end",ba.VERTICAL_ALIGN_TOP="chevron_up_end",ba.VERY_HAPPY="face_very_happy",ba.VERY_SAD="face_very_sad",ba.VIDEOS="play_circle",ba.VIDEO_CALL="video_camera_add",ba.VIDEO_LIBRARY_WHITE="play_square_stack",ba.VIDEO_QUALITY_4K="n4k",ba.VIDEO_QUALITY_8K="n8k",ba.VIDEO_YOUTUBE=
"youtube",ba.VIEW_LIST_CAIRO="view_list",ba.VIEW_MODULE="view_column3_row2",ba.VISIBILITY="eye",ba.VISIBILITY_OFF="eye_slash",ba.VOLUME_DOWN="volume_min",ba.VOLUME_MUTE="volume_mute",ba.VOLUME_OFF="volume_mute",ba.VOLUME_STABLE="stable_volume",ba.VOLUME_UP="volume_max",ba.WALLPAPER="image",ba.WARNING="alert_triangle",ba.WATCH_HISTORY="history",ba.WATCH_HISTORY_CAIRO="history",ba.WATCH_LATER="clock",ba.WATCH_LATER_CAIRO="clock",ba.WATCH_RELATED_MIX="mix",ba.WHAT_TO_WATCH="home",ba.YOUTUBE_LINKED_TV=
"tv_mobile",ba.YOUTUBE_MUSIC_MONOCHROME="youtube_music",ba.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",ba.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",ba.YOUTUBE_SHORTS_ARROW_UP="arrow_up",ba.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",ba.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",ba.YOUTUBE_SHORTS_OUTLINE_24="shorts",ba.YT_OUTLINE_MUSIC_24="audio",ba);var enC={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,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,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var znv={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],
clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,
1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,
2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],
equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,
9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,
24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,
24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,
24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],
help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,
1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,
2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,
2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],
mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,
2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,
24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],
[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,
2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,
1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,
24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,
2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,
1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,5,24,!0],[1,5,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,
3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,
5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],
spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,
1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,
1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,
18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],
triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,
2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,
2,24]]};var C4q={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},X3=function(e){this.iconUrlProvider=e};
X3.prototype.resolveIcon=function(e,z){var C=C4q[e.iconName.toUpperCase()];C&&(e.iconName=C);var w=e.iconName;w=w.replace(/-/g,"_");e=Object.assign({},e,{iconName:this.mapIconTypeToStandardName(w,!!C)||w.toLowerCase()});if(_.M("enable_web_delhi_icons")||C){var K;return bL7(znv,e,((K=this.iconUrlProvider)==null?void 0:K.getYtStandardUrl)||qP5,z)}var G;return bL7(enC,e,((G=this.iconUrlProvider)==null?void 0:G.getYtStandardUrl)||kbo,z)};
X3.prototype.mapIconTypeToStandardName=function(e,z){return _.M("enable_web_delhi_icons")||z?pZq[e.toUpperCase()]:Zq5[e.toUpperCase()]};
X3[Qj]=[_.$B(ynf)];var wVl=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),KI3=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),oyY=function(e){this.urlProvider=this.iconUrlProvider=e};
_.U(oyY,X3);
oyY.prototype.resolveIcon=function(e,z){e.iconName==="youtube_logo"&&(e.iconName="yt-logo-updated");if(e.iconName==="youtube_premium_logo"||e.iconName==="youtube_red_logo")e.iconName="yt-logo-red-updated";var C=Object.assign({},e);e.iconName==="menu"&&(_.M("enable_web_delhi_icons")||(C.iconName="bars_3"),C.iconStyle="youtube_outline");e.iconSetName==="socialNetworksRound"&&(e.iconName==="mail"&&(C.iconName="email"),e.iconName==="embed"&&(C.iconSize=60));e.iconName==="more"&&(C.iconName="overflow_horizontal");
e.iconName==="fullscreen"&&(C.iconName="screen_full");e.iconName==="premium_standalone"&&(C.iconName="premium_standalone_cairo");_.M("enable_connect_icon_update_web")&&e.iconName==="account_linked"&&(C.iconName="circles_overlap_check",C.iconStyle="youtube_fill");_.M("enable_connect_icon_update_web")&&e.iconName==="account_unlinked"&&(C.iconName="circles_overlap",C.iconStyle="youtube_outline");wVl.has(e.iconName)&&(C.iconStyle="youtube_fill");if(_.M("enable_web_delhi_icons")){e.iconName==="playlist_add"&&
(C.iconName="bookmark");e.iconName==="offline_pin"&&(C.iconName="arrow_down_circle",C.iconStyle="youtube_fill");if(e.iconName==="circles_overlap_check"||C.iconName==="circles_overlap_check")C.iconName="account_link",C.iconStyle="youtube_fill";KI3.has(e.iconName)&&(C.iconName+="_updated")}e=Object.assign({},C,{iconName:(X3.prototype.mapIconTypeToStandardName.call(this,C.iconName)||C.iconName).toLowerCase()});var w;return(e=bL7(goY,e,((w=this.urlProvider)==null?void 0:w.getUrl)||xu5,z))?e:X3.prototype.resolveIcon.call(this,
C,z)};
oyY[Qj]=[_.$B(ynf)];_.Gmo=1;var J3=function(e,z){this.JSC$17609_commandHandler=e;this.innertubeTransportService=z};
_.U(J3,R7);J3.prototype.resolveCommand=function(e,z){var C=this,w,K,G;return _.k(function(X){return(w=_.r(e,ONS))?X.return(Ytf(C,w,(K=z)==null?void 0:(G=K.form)==null?void 0:G.element)):X.return()})};
var Ytf=function(e,z,C){z={profileCardContext:z.profileCardContext,profileOwnerExternalChannelId:z.profileOwnerExternalChannelId};var w=_.zU(uOL);return _.Hc(e.innertubeTransportService,z,w).then(function(K){if(!K)throw new _.uh("GetProfileCard failed");if(K=K.popupCommand){e.JSC$17609_commandHandler.resolveCommand(K,{form:{element:C}});_.jk(_.nm(),66557);K=K==null?void 0:K.clickTrackingParams;var G=_.Ip();K&&G&&_.nm().graftServerVe(K,G)}})};
J3[Qj]=[_.ms,_.vJ];var kh=function(){};
_.U(kh,R7);kh.prototype.resolveCommand=function(e){var z,C;return _.k(function(w){z=_.r(e,iNo);if(!z)return w.return();C=Number(z.enableDelayedPacfLoggingTvMs);if(isNaN(C)){var K=CD();y74(K,z,0)}else y74(CD(),z,C);_.E_(w)})};_.qA=function(){};
_.U(_.qA,R7);
_.qA.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T;return _.k(function(Q){w=_.r(e,NSC);G=(K=z.form)==null?void 0:K.element;J=(X=G)==null?void 0:X.closest("ytd-enforcement-message-view-model");if(!w||!J)return Q.return();C.allowAdsAction||(q=w.fundingChoiceInstructionPageUrl,C.allowAdsAction=new VuX(window,_.Af(q)));var m=C.allowAdsAction;m.wallElement=J;m.allowAdsPopup.style.setProperty("display","flex","important");var a=m.scrollManager;a.isScrollingEnabled&&(a.originalBodyOverflow=a.JSC$10169_domHelper.JSC$9495_document_.body.style.overflow,
a.JSC$10169_domHelper.JSC$9495_document_.body.style.overflow="hidden",a.isScrollingEnabled=!1);m.wallElement.style.setProperty("display","none","important");gjT(m.accessibilityManager,m.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((T=C.allowAdsAction.allowAdsPopup)&&T instanceof HTMLElement)for(m=_.b(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),a=m.next();!a.done;a=m.next()){var n=_.b(a.value);a=n.next().value;n=n.next().value;
T.style.setProperty(a,n)}_.E_(Q)})};
_.qA.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var xh=function(){};
_.U(xh,R7);xh.prototype.resolveCommand=function(e){var z;return _.k(function(C){z=_.r(e,j6o);if(!z)return C.return();It5(e);_.E_(C)})};_.T7=new _.Mt("AI_CHAT_CONTROLLER_TOKEN");var $h=function(e,z,C,w){this.JSC$17624_commandHandler=e;this.store=z;this.getPlayerCb=C;this.aiChatController=w};
_.U($h,R7);$h.prototype.pageContext=function(){var e=_.cF.currentPageSubTypeSelector(this.store.getState()),z;return(z=this.aiChatController)==null?void 0:_.bJo(z,e)};
$h.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X;return _.k(function(J){C=_.r(e,eTs);K=(w=C)==null?void 0:w.command;if(!K)return J.return();switch((X=C)==null?void 0:X.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var q="youchat-"+Date.now(),T;var Q=String(Math.floor(((T=z.getPlayerCb())==null?void 0:T.getCurrentTime())||0)*1E3);G={inputComposerFormData:{clientMessageId:q,playerOffsetMs:Q,pageContext:z.pageContext()}}}if(!G)return J.return();z.JSC$17624_commandHandler.resolveCommand(K,
{form:{formData:G}});_.E_(J)})};
$h[Qj]=[_.ms,_.Tr,dco,_.$B(_.T7)];var XV3=new _.Mt("SESSION_STORAGE");var la=function(e){this.sessionStorage=e("conversations")};
_.U(la,R7);la.prototype.resolveCommand=function(e){var z=this,C;return _.k(function(w){C=_.r(e,zTa);if(!C)return w.return();C.conversationId?z.sessionStorage.set("conversation_id",C.conversationId):z.sessionStorage.remove("conversation_id");_.E_(w)})};
la[Qj]=[XV3];var Qe=function(e){this.JSC$17636_commandHandler=e};
_.U(Qe,R7);
Qe.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1){C=_.r(e,MfY);if((w=C)==null||!w.text||!navigator.clipboard)return Q.return();_.Iv(Q,2);return Q.yield(navigator.clipboard.writeText(C.text),4)}if(Q.nextAddress!=2){if(!C.successActions||C.successActions.length===0)return Q.return();K=_.b(C.successActions);for(G=K.next();!G.done;G=K.next())X=G.value,z.JSC$17636_commandHandler.resolveCommand(X);return _.Yj(Q,0)}_.O_(Q);if(!C.failureActions||C.failureActions.length===
0)return Q.return();J=_.b(C.failureActions);for(q=J.next();!q.done;q=J.next())T=q.value,z.JSC$17636_commandHandler.resolveCommand(T);_.E_(Q)})};
Qe[Qj]=[_.ms];var m3=function(e){this.JSC$17640_commandHandler=e};
_.U(m3,R7);
m3.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a;return _.k(function(n){switch(n.nextAddress){case 1:w=_.r(e,zVY);if(!w)return n.return();_.Iv(n,2);if(!w.imageBytes&&!w.imageUrl)throw Error("Bi");if(!w.imageUrl){if(w.imageBytes){G=w.imageBytes;X=G.replace(/-/g,"+").replace(/_/g,"/");var H=la7(X);K=_.jg(H)}n.jumpTo(4);break}return n.yield(fetch(w.imageUrl),5);case 5:return J=n.yieldResult,n.yield(J.blob(),6);case 6:q=n.yieldResult,K=_.jg(q);case 4:m=(T=z)==null?void 0:(Q=T.form)==
null?void 0:Q.element;a=document.createElement("a");At(a,K);m.appendChild(a);a.download="";a.click();m.removeChild(a);URL.revokeObjectURL(_.Dy(K));w.successCommand&&C.JSC$17640_commandHandler.resolveCommand(w.successCommand);_.Yj(n,0);break;case 2:_.O_(n),w.errorCommand&&C.JSC$17640_commandHandler.resolveCommand(w.errorCommand),_.E_(n)}})};
m3[Qj]=[_.ms];var aG=function(e){this.store=e};
_.U(aG,R7);aG.prototype.resolveCommand=function(e){var z=this,C,w,K;return _.k(function(G){w=(C=_.r(e,_.pvY))==null?void 0:C.entityBatchUpdate;if(!w)return G.jumpTo(0);K=Object.assign({},w,{mutations:[].concat(_.s_(w.mutations||[]))});return G.yield(_.m6(K,z.store),0)})};
aG[Qj]=[$3];var J0b=function(e){this.JSC$17647_commandHandler=e;this.feedbackDialogMap=new Map};
J0b.prototype.openDialog=function(e,z){(e=this.feedbackDialogMap.get(e))&&this.JSC$17647_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:e}},z)};
J0b[Qj]=[_.ms];var nu=new _.Mt("FEEDBACK_CONTROLLER_TOKEN");var MA=new _.Mt("APP_STORE_TOKEN");var r2=function(e,z,C){this.store=e;this.controller=z;this.JSC$17650_commandHandler=C};
_.U(r2,R7);r2.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y;return _.k(function(Z){if(Z.nextAddress==1){w=_.r(e,_.iH);if(G=(K=w)==null?void 0:K.contentId)for(J=_.b(((X=w)==null?void 0:X.actions)||[]),q=J.next();!q.done;q=J.next())T=q.value,kmo(C,T,G);a=(Q=z)==null?void 0:(m=Q.form)==null?void 0:m.element;return Z.yield(_.wQ(a,[e,{impression:(n=z)==null?void 0:n.disableClickTracking}]).catch(function(){}),2)}H=Z.yieldResult;
if((I=H)==null?0:(L=I.data)==null?0:(h=L.feedbackResponses)==null?0:h.length)(N=(E=H.data.feedbackResponses[0])==null?void 0:E.followUpDialog)&&G&&(D=C.controller)!=null&&D.feedbackDialogMap.set(G,N),(y=(g=H.data.feedbackResponses[0])==null?void 0:g.isThumbnailReporting)&&C.JSC$17650_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.E_(Z)})};
var kmo=function(e,z,C){var w=_.r(z,_.Gj);if(w){w=_.b(w.commands||[]);for(var K=w.next();!K.done;K=w.next())kmo(e,K.value,C)}_.r(z,_.Zl)&&e.store.dispatch(_.Rx("commandEntity",z4E(C),{key:C,command:z}));_.r(z,dtT)&&e.store.dispatch(_.Rx("commandEntity",z4E(C),{key:C,command:z}))};
r2[Qj]=[MA,nu,_.ms];var HB=function(e){this.controller=e};
_.U(HB,R7);HB.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X;return _.k(function(J){w=_.r(e,_.wK);G=(K=w)==null?void 0:K.targetId;if(((X=w)==null?void 0:X.signal)!=="TELL_US_WHY"||!G)return J.return();C.controller.openDialog(G,z);_.E_(J)})};
HB[Qj]=[nu];var Up=function(e){this.store=e};
_.U(Up,R7);Up.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T;return _.k(function(Q){w=_.r(e,QU1);G=(K=w)==null?void 0:K.contentId;q=(X=z)==null?void 0:(J=X.form)==null?void 0:J.element;T=_.wQ(q,[e]);G&&C.undo(G);return Q.yield(T,0)})};
Up.prototype.undo=function(e){this.store.dispatch(_.Rx("commandEntity",z4E(e),{key:e,command:void 0}))};
Up[Qj]=[MA];var vB=function(e){this.JSC$17662_commandHandler=e};
_.U(vB,R7);vB.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T;return _.k(function(Q){C=_.r(e,mBX);w=C.flowStateKey;K=C.validationFailureCommand;G=C.submitValidFormCommand;X=o74(_.KM,[w||""]);J=_.r(X,MOY);((q=J)==null?0:q.isValid)&&G&&z.JSC$17662_commandHandler.resolveCommand(G);((T=J)==null?0:T.isValid)||!K||z.JSC$17662_commandHandler.resolveCommand(K);_.E_(Q)})};
vB[Qj]=[_.ms];var IG=function(e){this.innertubeTransportService=e};
_.U(IG,R7);IG.prototype.resolveCommand=function(e,z){var C=this,w;return _.k(function(K){return K.yield(_.yC(C.innertubeTransportService,e,(w=z)==null?void 0:w.form).then(function(G){var X,J;z==null||(X=z.commandController)==null||(J=X.onSuccess)==null||J.call(X,e,G)},function(G){var X,J;
z==null||(X=z.commandController)==null||(J=X.onServerError)==null||J.call(X,e,G)}),0)})};
IG[Qj]=[_.vJ];var WB=function(){};
_.U(WB,R7);WB.prototype.resolveCommand=function(e){var z,C,w,K;return _.k(function(G){if(z=_.r(e,_.xds)){if(C=z.gtmId)w=_.j5("GL",""),_.oQ(C,w);(K=z.gtmData)&&_.Gr(K)}_.E_(G)})};var PB=function(e,z,C){this.innertubeTransportService=e;this.JSC$17673_actionRouter=z;this.JSC$17673_screenManager=C};
_.U(PB,R7);PB.prototype.resolveCommand=function(e){var z=this,C,w;return _.k(function(K){C=_.r(e,xna);if(!C)return K.return();w=C.command;if(!w)return K.return();z.JSC$17673_actionRouter.triggerAction("yt-insert-rich-section-action",C);return K.yield(_.yC(z.innertubeTransportService,w,{disableCache:!0}).then(function(G){e.clickTrackingParams&&(G==null?0:G.trackingParams)&&z.JSC$17673_screenManager.graftServerVe(G.trackingParams,_.v9(e.clickTrackingParams))}),0)})};
PB[Qj]=[_.vJ,VQ,_.YV];mum.bind(null,L$);var qtL=mum.bind(null,kJY);nc1.bind(null,L$);var xXb=nc1.bind(null,kJY);roL.bind(null,L$);var TeL=roL.bind(null,kJY);var RG=function(){};
_.U(RG,R7);
RG.prototype.resolveCommand=function(e){var z,C,w,K,G,X,J,q,T,Q;return _.k(function(m){z=_.r(e,A1T);if(!z)return m.return();w=((C=z.operations)==null?void 0:C.operations)||[];K=_.b(w);for(G=K.next();!G.done;G=K.next())if(X=G.value,X.insertItemSectionContent){var a=X.insertItemSectionContent,n=a.contents||[];a.insertByPositionInSection?qtL(a.insertByPositionInSection.sectionTargetId,n,a.insertByPositionInSection.position):a.insertByRelativePositionInSection&&a.insertByRelativePositionInSection.sectionTargetId&&a.insertByRelativePositionInSection.itemTargetId&&
xXb(a.insertByRelativePositionInSection.sectionTargetId,a.insertByRelativePositionInSection.itemTargetId,n,a.insertByRelativePositionInSection.relativePosition)}else X.replaceSection?(a=X.replaceSection,n={},a.replaceByTargetId?n=a.replaceByTargetId:a.replaceByGroupId&&(n={targetId:a.replaceByGroupId.groupId,newContent:a.replaceByGroupId.newContent,undoKey:""}),n.newContent&&TY4(n.targetId,{continuationItems:[n.newContent]})):X.removeItem?(a=X.removeItem,a.removeByTargetId&&a.sectionTargetId&&TeL(a.sectionTargetId,
a.removeByTargetId.targetIds||[])):X.removeSection&&(X.removeSection.removeByTargetId?(J=void 0,$X3(((J=X.removeSection)==null?void 0:J.removeByTargetId.targetIds)||[])):X.removeSection.removeByGroupId&&(q=void 0,$X3(((q=X.removeSection)==null?void 0:q.removeByGroupId.groupIds)||[])));Q=((T=z.operations)==null?void 0:T.scrollConfig)||{};l0Y(Q);_.E_(m)})};
var $X3=function(e){e=_.b(e);for(var z=e.next();!z.done;z=e.next())TY4(z.value,{continuationItems:[]})},l0Y=function(e){if(e.scrollToItem){var z=e.scrollToItem.item||{},C=z.itemTargetId;
z=z.sectionTargetId;if(C&&z){var w=document.querySelector("[data-target-id="+z+"]"),K=w==null?void 0:w.querySelector("[data-target-id="+C+"]");w&&K&&setTimeout(function(){var G=K.offsetTop-w.offsetTop,X;if(((X=e.scrollToItem)==null?void 0:X.scrollPosition)==="SCROLL_POSITION_CENTER")G-=w.offsetHeight/2,G+=K.offsetHeight/2;else{var J;((J=e.scrollToItem)==null?void 0:J.scrollPosition)==="SCROLL_POSITION_END"&&(G-=w.offsetHeight,G+=K.offsetHeight)}w.scroll({top:G,behavior:"smooth"})},100)}}};var Lu=new _.Mt("CLIENT_NAME_TOKEN");var QME=new _.Mt("DEFAULT_STORE_EXPIRATION_TOKEN");var Oe5=new _.Mt("CLIENT_LOCATION_SERVICE_TOKEN");var h3=function(e,z,C){this.clientName=e||_.j5("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=z||_.BJ.getInstance();this.JSC$17701_commandHandler=C||_.Tx.instance};
_.U(h3,R7);h3.prototype.resolveCommand=function(e){var z=this,C,w;return _.k(function(K){w=(C=_.r(e,ERc))==null?void 0:C.onComplete;z.clientLocationService.clearLocationPlayabilityToken(z.clientName);w&&z.JSC$17701_commandHandler.resolveCommand(w);_.E_(K)})};
h3[Qj]=[Lu,Oe5,_.ms];var Op=function(e){this.innertubeTransportService=e};
_.U(Op,R7);Op.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X;return _.k(function(J){G=(w=z)==null?void 0:(K=w.form)==null?void 0:K.element;return J.yield(_.yC(C.innertubeTransportService,e,(X=z)==null?void 0:X.form).then(function(q){HI7(G,new CustomEvent("yt-service-request-completed"),{data:q},_.j5("openPopupConfig"))}),0)})};
Op[Qj]=[_.vJ];var Ep=function(){};
_.U(Ep,R7);Ep.prototype.resolveCommand=function(e){var z,C;return _.k(function(w){z=_.r(e,vm4);C=document.querySelector("mini-app-container-view-model");if(!z||!C)return w.return();z.isPlaying?C.dispatchEvent(new Event("play")):C.dispatchEvent(new Event("pause"));_.E_(w)})};var F3=function(){};
_.U(F3,R7);F3.prototype.resolveCommand=function(e){var z,C,w,K,G,X,J;return _.k(function(q){z=_.r(e,Yja);if((C=z)==null||!C.paramKeys)return q.return();w=z.paramKeys;K=_.Cj(window.location.href);G=_.b(w);for(X=G.next();!X.done;X=G.next())J=X.value,K.JSC$10201_queryData_.remove(J);window.history.replaceState(window.history.state,document.title,K.toString());_.E_(q)})};var mXL=function(){this.dropdownMap=new Map};_.a0q=new _.Mt("DROPDOWN_CONTROLLER_TOKEN");var Ve=function(e){this.controller=e};
_.U(Ve,R7);Ve.prototype.resolveCommand=function(e){var z=this,C,w,K,G;return _.k(function(X){C=_.r(e,fkU);if(!C)return X.return();w=C;K=w.dropdownId;G=w.selectedOptionIndex;if(K===void 0||G===void 0)return X.return();var J=z.controller.dropdownMap.get(K);J&&J(G);_.E_(X)})};
Ve[Qj]=[_.a0q];var fu=function(e){this.controller=e};
_.U(fu,R7);fu.prototype.resolveCommand=function(e){var z=this,C;return _.k(function(w){return(C=_.r(e,j2a))?w.yield(z.controller.closeDialog(),0):w.return()})};
fu[Qj]=[_.xX];var S$=function(e){this.controller=e};
_.U(S$,R7);S$.prototype.resolveCommand=function(e){var z=this,C,w;return _.k(function(K){C=_.r(e,LST);if(!C)return K.return();var G,X=C.panelIdentifier||((G=C.identifier)==null?void 0:G.tag);if(!X)throw Error("Ci");return(w=X)?K.yield(z.controller.hidePanel({identifier:w}),0):K.jumpTo(0)})};
S$[Qj]=[_.kX];var ua=function(e){this.controller=e};
_.U(ua,R7);ua.prototype.resolveCommand=function(e){var z=this,C;return _.k(function(w){return(C=_.r(e,$C4))?w.yield(z.controller.closeSheet(),0):w.return()})};
ua[Qj]=[_.qd];var Dt=function(e,z){this.innertubeTransportService=e;this.controller=z};
_.U(Dt,R7);Dt.prototype.resolveCommand=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return C=_.r(e,hK6),(w=C)!=null&&w.panelId?X.yield(z.controller.getReloadContinuation(C.panelId),2):X.return();if(X.nextAddress!=3)return(K=X.yieldResult)?X.yield(_.yC(z.innertubeTransportService,e,{continuation:K}),3):X.return();G=X.yieldResult;return X.yield(z.controller.updatePanel({identifier:C.panelId,panelContents:G.content,shouldFocus:!1}),0)})};
Dt[Qj]=[_.vJ,_.kX];var ia=function(e,z,C){this.innertubeTransportService=e;this.JSC$17742_screenManager=z;this.JSC$17742_commandHandler=C};
_.U(ia,R7);
ia.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1){C=_.r(e,_.Uea);if(!C)return q.return();if(C.commands)for(w=_.b(C.commands),K=w.next();!K.done;K=w.next())G=K.value,z.JSC$17742_commandHandler.resolveCommand(G,{disableClickTracking:!0});X=_.v9(e.clickTrackingParams);_.jk(z.JSC$17742_screenManager,21760,X,{layer:7,parentLayer:0});return q.yield(_.yC(z.innertubeTransportService,e),2)}J=q.yieldResult;if(!J)return q.return();z.JSC$17742_screenManager.graftServerVe(J.trackingParams,X,
7);_.E_(q)})};
ia[Qj]=[_.vJ,_.YV,_.ms];var NA=new _.Mt("PANEL_LOADING_STRATEGY_TOKEN");var sp=function(e,z){this.controller=e;this.panelLoadingStrategy=z};
_.U(sp,R7);
sp.prototype.resolveCommand=function(e,z){var C=this,w,K,G;return _.k(function(X){w=_.r(e,Q0c);if((K=w)==null||!K.panelLoadingStrategy)return X.return();G=function(J){var q,T,Q,m,a,n,H,I,L,h;return _.k(function(E){T=_.r((q=J.dialogViewModel)==null?void 0:q.header,SZU);Q={viewModel:J.dialogViewModel};m={};if(H=_.M("web_enable_dialog_header_label")?(a=T)==null?void 0:(n=a.headline)==null?void 0:n.content:void 0)m.ariaLabel=H;w.dismissOnBackgroundTap===!1&&(m.isModal=!0);return J.dialogViewModel?E.yield(C.controller.openDialog(Q,
(h=(I=z)==null?void 0:(L=I.form)==null?void 0:L.element)!=null?h:document.body,m),0):E.return()})};
return X.yield(C.panelLoadingStrategy.execute({command:e,data:w.panelLoadingStrategy,renderFn:G,createScreenConfig:{layer:4}}),0)})};
sp[Qj]=[_.xX,NA];var BB=function(e,z,C){this.innertubeTransportService=e;this.controller=z;this.JSC$17762_screenManager=C};
_.U(BB,R7);
BB.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h;return _.k(function(E){switch(E.nextAddress){case 1:w=_.r(e,_.Dr);if(!w)return E.return();var N,D=w.panelIdentifier||((N=w.identifier)==null?void 0:N.tag);if(!D)throw Error("Ci");K=D;return E.yield(C.controller.isVisible(K,!0),2);case 2:if((G=E.yieldResult)&&w.blockIfPanelOpen)return E.return();q=(J=(X=C.controller).getPanelContent)==null?void 0:J.call(X,K);if(!(N=q))if(w){var g;N=((g=w.globalConfiguration)==null?void 0:
g.initialState)||w.engagementPanel;if(g=!N)g=!!(w==null?0:(D=w.engagementPanelPresentationConfigs)==null?0:D.engagementPanelPopupPresentationConfig);g&&(N=_.HLE(w.panelIdentifier,w.identifier))}else N=void 0;T=N;Q=w.engagementPanelPresentationConfigs;m=w.engagementPanelExtras;return E.yield(C.controller.showPanel({identifier:K,panelContents:T,config:Q,extras:m,target:(a=z)==null?void 0:(n=a.form)==null?void 0:n.element}),3);case 3:if(!w.globalConfiguration){E.jumpTo(0);break}if(w.globalConfiguration.reuseModelAndState&&
_.M("enable_ai_companion")&&(L=(I=(H=C.controller).getPanelContent)==null?void 0:I.call(H,K)))return E.return();_.jk(C.JSC$17762_screenManager,32633);return E.yield(_.yC(C.innertubeTransportService,e),5);case 5:return h=E.yieldResult,C.JSC$17762_screenManager.graftServerVe(h.trackingParams),E.yield(C.controller.updatePanel({identifier:K,panelContents:h.content,shouldFocus:!0,extras:m,updatePanelContinuationData:h.updatePanelContinuationData}),0)}})};
BB[Qj]=[_.vJ,_.kX,_.YV];var t3=function(e,z){this.controller=e;this.panelLoadingStrategy=z};
_.U(t3,R7);
t3.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H;return _.k(function(I){w=_.r(e,_.L7);if((K=w)==null||!K.panelLoadingStrategy)return I.return();J=nyq(C.controller,(G=z)==null?void 0:(X=G.form)==null?void 0:X.element);T=(q=w.contextualSheetPresentationConfig)==null?void 0:q.position;m=(Q=w.contextualSheetPresentationConfig)==null?void 0:Q.hoverConfig;n=(a=w.contextualSheetPresentationConfig)==null?void 0:a.expandToFullWidth;H=function(L){var h,E;return _.k(function(N){if(!L.sheetViewModel)return N.return();if(m){var D=
C.controller;D.shouldPreventClosingWhileHovered=!!m.preventCloseWhileHovered;var g;D.hideDelayMs=(g=m.hideDelayMs)!=null?g:0}return N.yield(C.controller.openSheet({viewModel:L.sheetViewModel,sheetPosition:T,expandToFullWidth:n},J,(h=z)==null?void 0:(E=h.form)==null?void 0:E.element),0)})};
return I.yield(C.panelLoadingStrategy.execute({command:e,data:w.panelLoadingStrategy,renderFn:H,createScreenConfig:{layer:0}}),0)})};
t3[Qj]=[_.qd,NA];var g2=function(e,z){this.controller=e;this.JSC$17773_commandHandler=z};
_.U(g2,R7);g2.prototype.resolveCommand=function(e,z){var C=this,w,K,G;return _.k(function(X){if(X.nextAddress==1){w=_.r(e,V0S);var J=_.r(w.showCommand,_.Dr),q,T,Q=(T=J==null?void 0:J.panelIdentifier)!=null?T:J==null?void 0:(q=J.identifier)==null?void 0:q.tag;if(!Q)throw Error("Di");K=Q;return X.yield(C.controller.isVisible(K),2)}return(G=X.yieldResult)?X.yield(C.controller.hidePanel({identifier:K}),0):X.yield(C.JSC$17773_commandHandler.resolveCommand(w.showCommand,z),0)})};
g2[Qj]=[_.kX,_.ms];var j$=function(e,z,C){this.innertubeTransportService=e;this.controller=z;this.JSC$17776_screenManager=C};
_.U(j$,R7);
j$.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z;return _.k(function(YN){switch(YN.nextAddress){case 1:return w=C=_.r(e,deo),K=w.targetPanelIdentifier,G=w.contentSourcePanelIdentifier,X=w.globalConfiguration,((J=K)==null?0:J.tag)&&((q=G)==null?0:q.tag)?X?YN.yield(z.controller.showPanel({identifier:K.tag,panelContents:_.HLE(K.tag,K)}),5):YN.yield((a=(m=z.controller).getPanel)==null?void 0:a.call(m,G.tag),4):YN.return();case 4:n=YN.yieldResult;T=(H=n)==
null?void 0:(L=(I=H).getPanelContent)==null?void 0:L.call(I);YN.jumpTo(3);break;case 5:return YN.yield(_.yC(z.innertubeTransportService,e),6);case 6:h=YN.yieldResult,((E=h)==null?0:E.trackingParams)&&z.JSC$17776_screenManager.graftServerVe(h.trackingParams),T=(N=h)==null?void 0:N.content,Q=(D=h)==null?void 0:D.updatePanelContinuationData;case 3:if(y=(g=T)==null?void 0:g.engagementPanelSectionListRenderer)return YN.yield(z.controller.showPanel({identifier:K.tag,panelUpdatableFields:{content:y.content,
secondaryHeaderContent:(Z=y.header)!=null?Z:{},targetId:y.targetId,loggingDirectives:y.loggingDirectives},updatePanelContinuationData:Q}),0);YN.jumpTo(0)}})};
j$[Qj]=[_.vJ,_.kX,_.YV];var ye=function(){};
_.U(ye,R7);ye.prototype.resolveCommand=function(e){var z,C,w;return _.k(function(K){if(K.nextAddress==1)return(z=_.r(e,s2U))?K.yield(_.ax(),2):K.return();C=K.yieldResult;if(!C)return K.return();var G=C,X=(w=z)==null?void 0:w.languageCode,J;(G==null?0:(J=G.isReady)==null?0:J.call(G))&&(X=Uu4(G,X))&&G.setAudioTrack(X);_.E_(K)})};var cB=function(){};
_.U(cB,a6);_.Y=cB.prototype;_.Y.getApiPaths=function(){return ODo};
_.Y.getExtension=function(e){return _.r(e,_.N$)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14347_getStoreKey=function(e){if((e=this.getExtension(e))&&e.videoId){var z={videoId:e.videoId};e.playlistId&&(z.playlistId=e.playlistId);e.index&&(z.index=e.index);e.params&&(z.params=e.params);return _.iY("next",z)}};
_.Y.JSC$14340_getClientScreen=function(e){var z;return((z=e.contentPlaybackContext)==null?void 0:z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Y.JSC$14340_buildRequest=function(e,z,C){z.videoId&&(e.videoId=z.videoId);z.playlistId&&(e.playlistId=z.playlistId);z.params&&(e.params=z.params);z.index!==void 0&&(e.playlistIndex=z.index);e.racyCheckOk=!(!C.racyCheckOk&&!z.racyCheckOk);e.contentCheckOk=!!z.contentCheckOk;C.contentPlaybackContext&&(e.autonavState=C.contentPlaybackContext.autonavState,e.playbackContext={vis:C.contentPlaybackContext.vis,lactMilliseconds:C.contentPlaybackContext.lactMilliseconds});C.prefetchPlaybackContext&&(e.context.request||
(e.context.request={}),e.context.request.isPrefetch=!0);_.M("captions_hats_killswitch")||(z=_.Tj().getFlag(65),z=z!=null?!z:!1,C=!!_.PJ("yt-player-sticky-caption"),e.captionsRequested=z&&C)};
_.Y.getRequestConfig=function(e){e=this.JSC$14347_getStoreKey(e);var z;e&&(z={storeStrategy:{storeKey:e}});_.M("web_log_player_watch_next_ticks")&&(z=z||{},z.requestTick="wn_s",z.responseTick="wn_r");return z};
var A3=function(){};
_.U(A3,a6);A3.prototype.getApiPaths=function(){return ODo};
A3.prototype.getExtension=function(e){return _.r(e,_.dG)};
A3.prototype.JSC$14340_buildRequest=function(e,z){z.token&&(e.continuation=z.token)};var Zt=function(){this.innerTubeTransport=_.lh().resolve(_.vJ);this.miniplayerService=_.lh().resolve(_.gh)};
_.U(Zt,R7);var M8q=function(e){var z;return _.k(function(C){z=_.j5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;e.JSC$17801_mainAppPlayer=new LB(z);document.addEventListener("yt-page-data-updated",e.JSC$17801_pauseOnNavigation.bind(e));_.E_(C)})},r0Z=function(e,z){var C,w,K,G;
return _.k(function(X){if(X.nextAddress==1){C=new cB;w=C.JSC$14340_getRequest(z);if(!w)return X.return(void 0);K=w.innerTubeRequest;return X.yield(_.Hc(e.innerTubeTransport,K,"/youtubei/v1/next"),2)}G=X.yieldResult;var J;var q,T,Q=(J=G.contents)==null?void 0:(q=J.twoColumnWatchNextResults)==null?void 0:(T=q.playlist)==null?void 0:T.playlist,m;J=(Q==null?0:(m=Q.contents)==null?0:m.length)?Q:void 0;return X.return(J)})},HJl=function(e,z){var C,w,K,G,X;
return _.k(function(J){if(J.nextAddress==1)return C=e.JSC$17801_mainAppPlayer,J.yield(C.api,2);if(J.nextAddress!=3)return w=J.yieldResult,z.watchCommand?J.yield(r0Z(e,z.watchCommand),3):J.return();K=J.yieldResult;if((G=K)==null||!G.contents)return J.return();X=K.contents.map(function(q){var T;return(T=q.playlistPanelVideoRenderer)==null?void 0:T.videoId}).filter(function(q){return!!q}).map(function(q){return{encrypted_id:q}});
w.updatePlaylist({video:X});_.E_(J)})},UXl=function(e,z){var C,w,K;
return _.k(function(G){return G.nextAddress==1?(C=e.JSC$17801_mainAppPlayer,K=(w=z.playerParams)!=null?w:"",z.externalVideoId?G.yield(C.loadVideoWithPlayerVars({videoId:z.externalVideoId,audio_only:"1",player_params:K}),2):G.jumpTo(2)):z.watchCommand?G.yield(HJl(e,z),0):G.jumpTo(0)})};
Zt.prototype.JSC$17801_pauseOnNavigation=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1)return z=e.JSC$17801_mainAppPlayer,w.yield(z.api,2);C=w.yieldResult;C.pauseVideo();_.E_(w)})};
Zt.prototype.pauseVideo=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1)return z=e.JSC$17801_mainAppPlayer,w.yield(z.api,2);C=w.yieldResult;C.pauseVideo();_.E_(w)})};
Zt.prototype.playVideo=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1)return z=e.JSC$17801_mainAppPlayer,w.yield(z.api,2);C=w.yieldResult;C.playVideo();_.E_(w)})};
var vyW=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1)return z=e.JSC$17801_mainAppPlayer,w.yield(z.api,2);C=w.yieldResult;C.mute();_.E_(w)})},I0E=function(e){var z,C;
return _.k(function(w){if(w.nextAddress==1)return z=e.JSC$17801_mainAppPlayer,w.yield(z.api,2);C=w.yieldResult;C.unMute();_.E_(w)})};
Zt.prototype.stopVideo=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1)return z=e.JSC$17801_mainAppPlayer,w.yield(z.api,2);C=w.yieldResult;C.stopVideo();_.E_(w)})};
var WIW=function(e,z){return _.k(function(C){switch(C.nextAddress){case 1:switch(z){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return C.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return C.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return C.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return C.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return C.jumpTo(6)}C.jumpTo(0);break;case 2:return C.yield(e.playVideo(),8);case 8:C.jumpTo(0);break;case 3:return C.yield(e.pauseVideo(),
9);case 9:C.jumpTo(0);break;case 4:return C.yield(e.stopVideo(),10);case 10:C.jumpTo(0);break;case 5:return C.yield(vyW(e),11);case 11:C.jumpTo(0);break;case 6:return C.yield(I0E(e),12);case 12:C.jumpTo(0)}})};
Zt.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J;return _.k(function(q){return q.nextAddress==1?(C=_.r(e,$VC),((w=C)==null?0:w.newPlaybackParams)||((K=C)==null?0:K.controlAction)?z.JSC$17801_mainAppPlayer?q.jumpTo(2):q.yield(M8q(z),2):q.return()):((G=C)==null?0:G.newPlaybackParams)?(z.miniplayerService.isMiniplayerActive()&&((X=z.miniplayerService.getPlayerElement())==null||X.pause()),J=C.newPlaybackParams,J.externalVideoId||J.externalPlaylistId?q.yield(UXl(z,J),0):q.return()):q.yield(WIW(z,
C.controlAction),0)})};var pu=function(e){this.JSC$17807_commandHandler=e};
_.U(pu,R7);
pu.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1)return(C=_.r(e,BAS))?q.yield(_.ax(),2):q.return();w=q.yieldResult;if(!w)return q.return();var T=w,Q=(K=C)==null?void 0:K.languageCode,m=(G=C)==null?void 0:G.isAutoTranslated;T.getVideoData&&_.IaN(T).length&&((Q=PUk(T,Q,m))?T.setOption("captions","track",Q):(T.setOption("captions","stickyLoading",{}),T.setOption("captions","track",{})));X=w.isSubtitlesOn()?_.kk("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.kk("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");J=_.wP(X,5E3);z.JSC$17807_commandHandler.resolveCommand(J);_.E_(q)})};
pu[Qj]=[_.ms];var eW=function(e,z){this.shortsPlayerPromise=e;this.JSC$17811_commandHandler=z};
_.U(eW,R7);
eW.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1)return(C=_.r(e,q2h))?Q.yield(z.shortsPlayerPromise,2):Q.return();w=Q.yieldResult;var m=R2E(w);m!=null&&m.length||(w.loadModule("captions"),m=R2E(w));K=m;if((G=K)==null||!G.length)return X=_.kk("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),J=_.wP(X),z.JSC$17811_commandHandler.resolveCommand(J),Q.return();w.toggleSubtitles();q=w.isSubtitlesOn()?_.kk("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.kk("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");T=_.wP(q);z.JSC$17811_commandHandler.resolveCommand(T);_.E_(Q)})};
eW[Qj]=[_.bac,_.ms];var zu=function(e){this.JSC$17814_actionRouter=e;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(z,C){z.triggerAction("yt-dismiss-shopping-timely-shelf-action",C);(z=_.lh().resolve(_.$B(_.QfT)))&&z.dismissFeaturedProductOverlay()}]])};
_.U(zu,R7);zu.prototype.resolveCommand=function(e){var z=this,C,w,K;return _.k(function(G){C=_.r(e,yig);if((w=C)==null||!w.overlayId)return G.return();K=z.dismissPlayerOverlayActions.get(C.overlayId);if(!K)throw Error("Ei`"+C.overlayId);K(z.JSC$17814_actionRouter,C);_.E_(G)})};
zu[Qj]=[VQ];var C2=function(e){this.JSC$17818_playerPromise=e};
_.U(C2,R7);C2.prototype.resolveCommand=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return(C=_.r(e,EbL))?X.yield(z.JSC$17818_playerPromise,2):X.return();w=X.yieldResult;K=w.getVideoData().video_id;C.videoId===K&&(G=Number(C.offsetFromVideoStartMilliseconds),G>=0&&w.seekTo(G/1E3));_.E_(X)})};
C2[Qj]=[_.qK];var P4W=_.qq("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),wz=function(e){this.store=e};
_.U(wz,R7);
var RnC=function(e){var z,C,w,K;return _.k(function(G){if(G.nextAddress==1)return z=_.j5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,C=_.j5("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,w=z||C,e.JSC$17822_mainAppPlayer=new LB(w),G.yield(e.JSC$17822_mainAppPlayer.api,2);K=G.yieldResult;K.addEventListener("onStateChange",e.JSC$17822_playerStateChangeListener.bind(e));document.addEventListener("yt-page-data-updated",e.JSC$17822_pauseOnNavigation.bind(e));window.addEventListener("state-navigatestart",
e.JSC$17822_pauseOnNavigation.bind(e));_.E_(G)})};
wz.prototype.JSC$17822_playerStateChangeListener=function(e){switch(e){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"}LIb(this)};
var LIb=function(e){e.store.dispatch(_.Rx("sfvAudioItemCurrentlyPlayingEntity",P4W,{key:P4W,externalVideoId:e.externalVideoId,sfvAudioItemPlaybackState:e.playbackState,nowPlayingEntityValue:e.nowPlayingEntityValue}))};
wz.prototype.JSC$17822_pauseOnNavigation=function(){var e=this,z,C,w,K;return _.k(function(G){if(G.nextAddress==1){if(!e.JSC$17822_mainAppPlayer){var X=new _.uh("Error: mainAppPlayer is unavailable",e.JSC$17822_mainAppPlayer);_.yG(X);return G.return()}return G.yield(e.JSC$17822_mainAppPlayer.api,2)}z=G.yieldResult;w=(C=z)==null?void 0:C.getPlayerState();w!==1||(K=z)!=null&&K.pauseVideo();_.E_(G)})};
wz.prototype.playVideo=function(e,z,C){var w=this,K,G;return _.k(function(X){if(X.nextAddress==1)return X.yield((K=w.JSC$17822_mainAppPlayer)==null?void 0:K.api,2);G=X.yieldResult;if(!w.JSC$17822_mainAppPlayer||!G){var J=new _.uh("Error: mainAppPlayer is unavailable",w.JSC$17822_mainAppPlayer);_.yG(J);return X.return()}return X.yield(w.JSC$17822_mainAppPlayer.loadVideoWithPlayerVars({videoId:w.externalVideoId,audio_only:"1",start:e/1E3,end:e/1E3+z,player_params:C}),0)})};
wz.prototype.pauseVideo=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1){if(!e.JSC$17822_mainAppPlayer){var K=new _.uh("Error: mainAppPlayer is unavailable",e.JSC$17822_mainAppPlayer);_.yG(K);return w.return()}return w.yield(e.JSC$17822_mainAppPlayer.api,2)}z=w.yieldResult;(C=z)==null||C.pauseVideo();_.E_(w)})};
wz.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D;return _.k(function(g){if(g.nextAddress==1)return C=_.r(e,XkX),K=(w=C)==null?void 0:w.nowPlayingEntityValue,X=(G=C)==null?void 0:G.externalVideoId,m=Number((Q=(J=C)==null?void 0:(q=J.defaultStartPoints)==null?void 0:(T=q[0])==null?void 0:T.offsetMs)!=null?Q:"0"),h=Number((L=(a=C)==null?void 0:(n=a.defaultStartPoints)==null?void 0:(H=n[0])==null?void 0:(I=H.duration)==null?void 0:I.seconds)!=null?L:"15"),D=(N=
(E=C)==null?void 0:E.playerParams)!=null?N:"",K&&X?z.JSC$17822_mainAppPlayer?g.jumpTo(2):g.yield(RnC(z),2):g.return();if(g.nextAddress!=6){if(z.nowPlayingEntityValue&&K===z.nowPlayingEntityValue)return z.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?g.yield(z.pauseVideo(),0):g.yield(z.playVideo(m,h,D),0);z.externalVideoId=X;z.nowPlayingEntityValue=K;z.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return g.yield(z.playVideo(m,h,D),6)}LIb(z);return g.jumpTo(0)})};
wz[Qj]=[$3];var K2=function(e){this.JSC$17840_commandHandler=e};
_.U(K2,R7);K2.prototype.resolveCommand=function(e,z){var C=this,w,K,G;return _.k(function(X){if(X.nextAddress==1)return(w=_.r(e,tkT))?X.yield(_.ax(),2):X.return();K=X.yieldResult;if(!K)return X.return();(G=LtE(K))&&C.JSC$17840_commandHandler.resolveCommand(G,z);_.E_(X)})};
K2[Qj]=[_.ms];var oD=function(e){this.JSC$17846_commandHandler=e};
_.U(oD,R7);oD.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1)return(w=_.r(e,gRX))?q.yield(_.ax(),2):q.return();K=q.yieldResult;if(!K)return q.return();(G=VHg(K))?C.JSC$17846_commandHandler.resolveCommand(G,z):(X=_.kk("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),J=_.wP(X),C.JSC$17846_commandHandler.resolveCommand(J));_.E_(q)})};
oD[Qj]=[_.ms];var Gu=function(e){this.JSC$17849_playerPromise=e};
_.U(Gu,R7);Gu.prototype.resolveCommand=function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1)return(C=_.r(e,A5o))?K.yield(z.JSC$17849_playerPromise,2):K.return();w=K.yieldResult;w.isFullscreen()&&w.wakeUpControls();_.E_(K)})};
Gu[Qj]=[_.qK];var Y_=function(e){this.JSC$17852_playerPromise=e};
_.U(Y_,R7);Y_.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X;return _.k(function(J){if(J.nextAddress==1){C=_.r(e,FSL);if(!C)return J.return();w=C.overlayRenderer;return w?(K=_.r(w,CTU))?J.yield(z.JSC$17852_playerPromise,3):J.jumpTo(0):J.return()}G=J.yieldResult;G.renderChapterSeekingAnimation(1,_.Zd(K.text),(X=K.icon)==null?void 0:X.iconType);_.E_(J)})};
Y_[Qj]=[_.qK];var bQ=function(e){this.store=e};
_.U(bQ,R7);
bQ.prototype.resolveCommand=function(e){var z=this,C,w,K;return _.k(function(G){if(G.nextAddress==1){C=_.r(e,l2a);if(!C)return G.return();w="";(K=z.store.getState().collabInviteLink)&&C.id===K.playlistId?w=K.inviteLinkURL:C.shortUrl&&(w=C.shortUrl);return w?G.yield(navigator.clipboard.writeText(w),3):G.jumpTo(0)}var X={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.kk("COPY_LINK_SUCCESS_TOAST")}}}}};_.lh().resolve(_.ms).resolveCommand(X);_.E_(G)})};
bQ[Qj]=[MA];var Xd=function(e,z){this.innertubeTransportService=e;this.JSC$17862_commandHandler=z};
_.U(Xd,R7);Xd.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a;return _.k(function(n){if(n.nextAddress==1)return(w=_.r(e,_.rA))?n.yield(_.yC(C.innertubeTransportService,e,(K=z)==null?void 0:K.form),2):n.return();(G=n.yieldResult)&&G.errorMetadata&&(X=G,J=_.wP(X.error.message),C.JSC$17862_commandHandler.resolveCommand(J));q=G;if((T=q)==null?0:T.actions)for(Q=_.b(q.actions),m=Q.next();!m.done;m=Q.next())a=m.value,C.JSC$17862_commandHandler.resolveCommand(a);_.E_(n)})};
Xd[Qj]=[_.vJ,_.ms];var JN=function(){};
_.U(JN,R7);JN.prototype.resolveCommand=function(e){var z;return _.k(function(C){z=_.r(e,GsS);if(!z)return C.return();(new FCY(z)).show();_.E_(C)})};_.k_=new _.Mt("PLAYLIST_EDIT_CONTROLLER_TOKEN");var qi=function(e,z,C,w){this.store=e;this.innertubeTransportService=z;this.controller=C;this.JSC$17870_commandHandler=w};
_.U(qi,R7);
qi.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z,YN,Jk,v1,lg,M5;return _.k(function(fo){if(fo.nextAddress==1){w=_.r(e,_.$R);if(!w)return fo.return();if(w.clientActions){K=_.b(w.clientActions);for(G=K.next();!G.done;G=K.next())X=G.value,C.JSC$17870_commandHandler.resolveCommand(X,z);var ug,sE=z==null?void 0:(ug=z.form)==null?void 0:ug.element;sE&&_.pi(sE,"yt-dismissible-item-action",w.clientActions)}return fo.yield(_.yC(C.innertubeTransportService,e,(J=
z)==null?void 0:J.form),2)}if(q=fo.yieldResult)q.errorMetadata?(T=q,Q=_.wP(T.error.message),C.JSC$17870_commandHandler.resolveCommand(Q),"error"in q&&((m=z)==null?0:(a=m.commandController)==null?0:a.onServerError)&&((n=z)==null||(H=n.commandController)==null||H.onServerError(e,q))):(I=z)==null||(L=I.commandController)==null||(E=(h=L).onSuccess)==null||E.call(h,e,q);N=q;((D=N)==null?0:D.collaborationInviteLink)&&w.playlistId&&(_.M("web_enable_invite_collaborators_link")||_.M("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
C.store.dispatch(_.Yz({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:w.playlistId,inviteLinkUrl:N.collaborationInviteLink}}));((g=N)==null?0:g.redirectEndpoint)&&C.JSC$17870_commandHandler.resolveCommand(N.redirectEndpoint);((y=N)==null?0:(Z=y.newHeader)==null?0:Z.playlistHeaderRenderer)?hnE(C.controller,N.newHeader.playlistHeaderRenderer):((YN=N)==null?0:(Jk=YN.newHeader)==null?0:Jk.musicEditablePlaylistDetailHeaderRenderer)&&hnE(C.controller,N.newHeader.musicEditablePlaylistDetailHeaderRenderer);
C.controller.playlistVideoListElement&&((v1=N)==null?0:(lg=v1.playlistEditResults)==null?0:(M5=lg[0])==null?0:M5.playlistEditVideoAddedResultData)&&((sE=C.controller.playlistVideoListElement)==null||sE.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:N.playlistEditResults[0].playlistEditVideoAddedResultData})));_.E_(fo)})};
qi[Qj]=[_.Tr,_.vJ,_.k_,_.ms];var x_=function(e,z){this.controller=e;this.JSC$17880_commandHandler=z};
_.U(x_,R7);x_.prototype.resolveCommand=function(e,z){var C=this,w,K,G;return _.k(function(X){w=_.r(e,Qrs);C.controller.showRefreshPill&&((K=w)==null?0:K.command)&&(C.JSC$17880_commandHandler.resolveCommand((G=w)==null?void 0:G.command,z),C.controller.showRefreshPill=!1);_.E_(X)})};
x_[Qj]=[_.AF,_.ms];var Tu=function(e,z){this.store=e;this.JSC$17884_commandHandler=z||_.Tx.instance};
_.U(Tu,R7);Tu.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a;return _.k(function(n){w=_.r(e,hLa);K=C.store.getState().radioButtonGroup;if((G=w)==null?0:G.command)C.JSC$17884_commandHandler.resolveCommand((X=w)==null?void 0:X.command,z);else if(K&&((J=w)==null?void 0:J.formId)===K.currentFormId)for(q=Object.values(K.commandsMap),T=_.b(q),Q=T.next();!Q.done;Q=T.next())m=Q.value,(a=_.SQ(m))&&C.JSC$17884_commandHandler.resolveCommand(a,z);_.E_(n)})};
Tu[Qj]=[_.Tr];var $_=new _.Mt("USER_PREFS");var lQ=function(e){this.JSC$17889_prefCookie=e};
_.U(lQ,R7);lQ.prototype.resolveCommand=function(e){var z=this,C;return _.k(function(w){(C=_.r(e,Zc6))&&typeof C.useListView==="boolean"&&(_.$k(0,155,C.useListView),z.JSC$17889_prefCookie.save());_.E_(w)})};
lQ[Qj]=[$_];var QF=function(e){this.JSC$17893_prefCookie=e};
_.U(QF,R7);QF.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X;return _.k(function(J){C=_.r(e,brC);if((w=C)==null||!w.gl)return J.return();K=C.gl;G={persist_gl:"1",gl:K};z.JSC$17893_prefCookie.set("gl",K);z.JSC$17893_prefCookie.save();X=Mns(G);_.dP(X);_.E_(J)})};
QF[Qj]=[$_];var mP=function(e){this.JSC$17897_prefCookie=e};
_.U(mP,R7);mP.prototype.resolveCommand=function(e){var z=this,C,w;return _.k(function(K){C=_.r(e,a2L);if(!C)return K.return();w=!1;C.flagNum&&typeof C.value==="boolean"?(_.$k(0,C.flagNum,C.value),w=!0):C.key&&typeof C.stringValue==="string"&&(z.JSC$17897_prefCookie.set(C.key,C.stringValue),w=!0);w&&z.JSC$17897_prefCookie.save();_.E_(K)})};
mP[Qj]=[$_];var aD=new _.Mt("PREF_STORAGE_PROMISE_TOKEN");var n2=function(e){this.JSC$17901_prefStoragePromise=e};
_.U(n2,R7);n2.prototype.resolveCommand=function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1)return(C=_.r(e,M6S))?K.yield(z.JSC$17901_prefStoragePromise,2):K.return();w=K.yieldResult;return w===void 0||C.key===void 0||C.value===void 0?K.return():K.yield(w.set(C.key,C.value),0)})};
n2[Qj]=[aD];var Mi=function(e){this.innertubeTransportService=e};
_.U(Mi,R7);Mi.prototype.resolveCommand=function(e,z){var C=this,w,K;return _.k(function(G){(w=_.r(e,_.OxX))&&w&&w.isFirstRequest&&(_.LK("search_overview_answer"),_.hg("so_rq",void 0,"search_overview_answer"));return G.yield(_.yC(C.innertubeTransportService,e,(K=z)==null?void 0:K.form),0)})};
Mi[Qj]=[_.vJ];var OJZ=function(){};
_.U(OJZ,R7);
OJZ.prototype.resolveCommand=function(e){var z,C,w,K,G,X,J,q,T;return _.k(function(Q){z=_.r(e,O3C);if((C=z)==null?0:C.sectionIdentifier){if(z.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(K=(w=document.getElementsByTagName(z.sectionIdentifier))==null?void 0:w.item(0))K.scrollIntoView({behavior:"smooth"}),(G=Q5L(K))&&G.focus({preventScroll:!0});return Q.return()}X=document.querySelector("[section-identifier="+z.sectionIdentifier+"]");J=document.querySelector("[section-identifier="+z.referenceSectionIdentifier+
"]");if(!X)return Q.return();q=z.verticalScrollOffsetDp?z.verticalScrollOffsetDp:0;J&&(q-=J.offsetTop);window.scrollTo({top:X.offsetTop+q,behavior:"smooth"});(T=Q5L(X))&&T.focus({preventScroll:!0})}_.E_(Q)})};var rz=function(e){this.JSC$17913_commandHandler=e};
_.U(rz,R7);
rz.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q;return _.k(function(T){if(T.nextAddress==1){C=_.r(e,C2T);if(!C||!C.imageBytes||!navigator.clipboard)return T.return();if(C.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.yG(Error("Gi")),T.return();_.Iv(T,2);K=(w=C)==null?void 0:w.imageBytes;G=K.replace(/-/g,"+").replace(/_/g,"/");X=la7(G);J={};q=[new ClipboardItem((J[X.type]=X,J))];return T.yield(navigator.clipboard.write(q),4)}if(T.nextAddress!=2)return C.successCommand&&
z.JSC$17913_commandHandler.resolveCommand(C.successCommand),_.Yj(T,0);_.O_(T);C.errorCommand&&z.JSC$17913_commandHandler.resolveCommand(C.errorCommand);_.E_(T)})};
rz[Qj]=[_.ms];var He=function(e,z){this.innertubeTransportService=e;this.JSC$17917_commandHandler=z};
_.U(He,R7);He.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1)return(w=_.r(e,w$X))?q.yield(_.yC(C.innertubeTransportService,e,(K=z)==null?void 0:K.form),2):q.return();(G=q.yieldResult)&&G.errorMetadata&&w.onFailureCommand&&C.JSC$17917_commandHandler.resolveCommand(w.onFailureCommand);X=G;((J=X)==null?0:J.shareCommand)&&C.JSC$17917_commandHandler.resolveCommand(X.shareCommand,z);_.E_(q)})};
He[Qj]=[_.vJ,_.ms];var UY=function(){};
_.U(UY,R7);UY.prototype.resolveCommand=function(e){var z,C;return _.k(function(w){z=_.r(e,TDT);if(!z||!navigator.share)return w.return();C={url:z.url};try{return w.return(navigator.share(C))}catch(K){}_.E_(w)})};var ve=function(){};
_.U(ve,R7);ve.prototype.resolveCommand=function(){return _.k(function(e){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.E_(e)})};var ID=function(e){this.JSC$17927_navigationConfirmationService=e};
_.U(ID,R7);ID.prototype.resolveCommand=function(){var e=this;return _.k(function(z){e.JSC$17927_navigationConfirmationService.cancelPendingNavigation();_.E_(z)})};
ID[Qj]=[wi];var We=function(e){this.JSC$17930_screenManager=e};
_.U(We,R7);We.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T;return _.k(function(Q){K=(w=z.form)==null?void 0:w.event;X=(G=z.form)==null?void 0:G.element;if(!K)throw new _.uh("Event not passed in when resolving command");J=_.b(K.composedPath());for(q=J.next();!q.done;q=J.next())if(T=q.value,T.tagName==="YT-COPY-LINK-RENDERER")return T.copyUrlToClipboard(),X&&_.Bj(C.JSC$17930_screenManager,X),Q.return();_.E_(Q)})};
We[Qj]=[_.YV];var Pe=function(){this.JSC$17934_miniAppClientDataProvider=_.lh().resolve(_.Vl)};
_.U(Pe,R7);Pe.prototype.resolveCommand=function(){var e=this,z,C;return _.k(function(w){if(e.JSC$17934_miniAppClientDataProvider.clientData.has("video_id")){var K=e.JSC$17934_miniAppClientDataProvider,G=K.clientData.get("video_id");G&&K.clientData.delete("video_id");z="https://youtube.com/watch?v="+G;C=_.Ng(z);if(C===void 0)throw Error("Hi`"+z);_.Kq(window,C)}_.E_(w)})};var RD=function(){};
_.U(RD,R7);RD.prototype.resolveCommand=function(){return _.k(function(e){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.E_(e)})};var L2=function(){};
_.U(L2,R7);L2.prototype.resolveCommand=function(){var e;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.Y4m(window.document.documentElement),2);(e=document.querySelector("mini-app-container-view-model iframe"))&&e.focus();_.E_(z)})};var hN=function(e){this.JSC$17941_navigationConfirmationService=e};
_.U(hN,R7);
hN.prototype.resolveCommand=function(){var e=this;return _.k(function(z){var C=e.JSC$17941_navigationConfirmationService,w=_.lh().resolve(_.cc),K;if(((K=C.navigateParams)==null?void 0:K.data)!==void 0){var G;_.il4(w,C.navigateParams.endpoint,C.navigateParams.data,(G=C.navigateParams.navigationType)!=null?G:1,C.navigateParams.tempData,C.navigateParams.isMiniplayer,void 0,!0);C.navigateParams=void 0;C.customConfirmationCommand=void 0}else C.navigateParams&&(w.navigate(C.navigateParams.endpoint,C.navigateParams.reload,
C.navigateParams.params,C.navigateParams.tempData,C.navigateParams.requestType,C.navigateParams.createScreenConfig,!0),C.navigateParams=void 0,C.customConfirmationCommand=void 0);_.E_(z)})};
hN[Qj]=[wi];var OY=function(){};
_.U(OY,R7);OY.prototype.resolveCommand=function(){return _.k(function(e){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.E_(e)})};var EY=function(e){this.JSC$17946_prefStorage=e};
_.U(EY,R7);EY.prototype.resolveCommand=function(){var e=this,z,C;return _.k(function(w){switch(w.nextAddress){case 1:return w.yield(e.JSC$17946_prefStorage,2);case 2:return(z=w.yieldResult)?w.yield(z.set("sfvle",!1),3):w.return();case 3:return w.yield(z.set("sfvles",!0),4);case 4:C=_.Tj(),_.$k(0,203,!1),_.$k(0,204,!0),C.save(),_.E_(w)}})};
EY[Qj]=[aD];var Fd=function(e){this.JSC$17949_prefStorage=e};
_.U(Fd,R7);Fd.prototype.resolveCommand=function(){var e=this,z,C;return _.k(function(w){switch(w.nextAddress){case 1:return w.yield(e.JSC$17949_prefStorage,2);case 2:return(z=w.yieldResult)?w.yield(z.set("sfvle",!0),3):w.return();case 3:return w.yield(z.set("sfvles",!0),4);case 4:C=_.Tj(),_.$k(0,203,!0),_.$k(0,204,!0),C.save(),_.E_(w)}})};
Fd[Qj]=[aD];_.EyZ=new _.Mt("SNACKBAR_CONTROLLER_TOKEN");_.FI3=new _.Mt("SHOULD_SHOW_PIVOT_BAR_TOKEN");var VF=function(e){this.controller=e};
_.U(VF,R7);VF.prototype.resolveCommand=function(e){var z=this,C;return _.k(function(w){C=_.r(e,lkL);if(!C)return w.return();var K=z.controller;K.closeSnackbarFn&&K.closeSnackbarFn();_.E_(w)})};
VF[Qj]=[_.EyZ];var f2=function(e,z){this.controller=e;this.JSC$17956_sheetController=z};
_.U(f2,R7);f2.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q;return _.k(function(T){w=_.r(e,mCY);if(!w)return T.return();X=nyq(C.JSC$17956_sheetController,(K=z)==null?void 0:(G=K.form)==null?void 0:G.element);J=_.r(w.content,OBC);if(!J)return T.return();var Q=C.controller,m=J,a=(q=w.animationStyle)!=null?q:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(Q.showSnackbarFn)Q.showSnackbarFn({snackbarViewModel:m,animationStyle:a,durationMs:w.durationSeconds*1E3,target:X});else throw Error("Aj");_.E_(T)})};
f2[Qj]=[_.EyZ,_.qd];var SW=function(){};
_.U(SW,R7);SW.prototype.resolveCommand=function(e){var z;return _.k(function(C){z=_.r(e,nKY);if(!z||typeof z.key!=="string"||typeof z.value!=="string")return C.return();window.localStorage.setItem(z.key,z.value);_.E_(C)})};var uQ=function(e){this.store=e};
_.U(uQ,R7);uQ.prototype.resolveCommand=function(e){var z=this,C;return _.k(function(w){C=_.r(e,lj4);if(!C||!C.stepId||!C.token)return w.return();z.store.dispatch(kSa({stepId:C.stepId,token:C.token,isSelected:!1}));_.E_(w)})};
uQ[Qj]=[MA];var dz=function(e,z,C){this.innertubeTransportService=e;this.store=z;this.JSC$17968_screenManager=C};
_.U(dz,R7);
dz.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z,YN,Jk,v1,lg,M5,fo;return _.k(function(ug){C=_.r(e,TuT);if(!C||(w=C.stepIds)==null||!w.length)return ug.return();K=z.store.getState().talkToRecs;G=[];X=[];J=_.b(C.stepIds);for(q=J.next();!q.done;q=J.next())for(T=q.value,Q=void 0,(m=(Q=K.stepStates[T])==null?void 0:Q.userQuery)&&X.push({userQuery:C.submitEmptyUserQuery?"":m.userQuery,userQueryToken:m.token}),n=a=void 0,H=(n=(a=K.stepStates[T])==null?void 0:
a.selectionStates)!=null?n:{},I=_.b(Object.entries(H)),L=I.next();!L.done;L=I.next())h=L.value,E=_.b(h),N=E.next().value,D=E.next().value,g=N,y=D,y.isSelected&&G.push(g);Z={selectedChipTokens:G,userQueries:X,submittedStepIds:C.stepIds};YN={browseTalk2recsFormData:Z};C.browseEndpoint?(Jk=e,_.Om(Jk,_.mJ,C.browseEndpoint)):C.command&&(Jk=C.command);if(!Jk)return ug.return();v1=_.r(Jk,_.dG);if((lg=v1)==null?0:lg.command)if(M5=_.r(v1.command,XvC))fo=_.Tx.instance,fo.resolveCommand(v1.command);return ug.yield(_.yC(z.innertubeTransportService,
Jk,{formData:YN,disableCache:!0}).then(function(sE){(sE==null?0:sE.trackingParams)&&z.JSC$17968_screenManager.graftServerVe(sE==null?void 0:sE.trackingParams)}),0)})};
dz[Qj]=[_.vJ,MA,_.YV];var DD=function(e){this.store=e};
_.U(DD,R7);
DD.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T;return _.k(function(Q){C=_.r(e,$b1);if(!C||!C.stepId)return Q.return();if(C.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")X=(G=(w=z.store.getState().talkToRecs.stepStates[C.stepId])==null?void 0:(K=w.userQuery)==null?void 0:K.userQuery)!=null?G:"",J=X.length>0?". ":"",q=X+J+C.selectedText,z.store.dispatch(q$L({stepId:C.stepId,userQueryToken:"",userQuery:q}));else if(C.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")z.store.dispatch(q$L({stepId:C.stepId,userQueryToken:"",
userQuery:(T=C.selectedText)!=null?T:""}));else{if(!C.token)return Q.return();z.store.dispatch(kSa({stepId:C.stepId,token:C.token,isSelected:!0}))}_.E_(Q)})};
DD[Qj]=[MA];var iQ=function(e){this.store=e};
_.U(iQ,R7);iQ.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q;return _.k(function(T){w=_.r(e,yP1);if(!w||!w.stepId)return T.return();J=(X=(K=z)==null?void 0:(G=K.form)==null?void 0:G.userQuery)!=null?X:"";C.store.dispatch(q$L({stepId:w.stepId,userQuery:J,userQueryToken:(q=w.userQueryToken)!=null?q:""}));_.E_(T)})};
iQ[Qj]=[MA];_.V85=new _.Mt("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Ni=function(e){this.controller=e};
_.U(Ni,R7);Ni.prototype.resolveCommand=function(e){var z=this,C,w,K,G;return _.k(function(X){C=_.r(e,RKU);if(!C)return X.return();w=C;K=w.id;G=w.isVisible;if(K===void 0||G===void 0)return X.return();var J;(J=z.controller.timelyActionsMap.get(K))==null||J(K,G);_.E_(X)})};
Ni[Qj]=[_.V85];var f0W=function(){this.timelyActionsMap=new Map};var sY=function(e){this.JSC$17994_commandHandler=e};
_.U(sY,R7);sY.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X;return _.k(function(J){C=_.r(e,_.u5g);if(!C)return J.return();G=(w=C.item)==null?void 0:(K=w.notificationTextRenderer)==null?void 0:K.successResponseText;if(!G)return J.return();X=_.CW(G);z.JSC$17994_commandHandler.resolveCommand(X);_.E_(J)})};
sY[Qj]=[_.ms];var Be=function(e,z){this.innertubeTransportService=e;this.JSC$17999_playerApiPromise=z};
_.U(Be,R7);
Be.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q;return _.k(function(m){if(m.nextAddress==1)return m.yield(z.JSC$17999_playerApiPromise,2);C=m.yieldResult;w=C.getOption("captions","track");K=Object.assign({},_.r(e,_.NDc));(X=(G=C.getVideoData())==null?void 0:G.video_id)?K.externalVideoId=X:_.es(Error("Ii"));if((J=w)==null?0:J.languageCode)K.languageCode=w.languageCode;if((q=w)==null?0:q.kind)K.kind=w.kind;if((T=w)==null?0:T.name)K.name=w.name;Q=Object.assign({},e,{getTranscriptEndpoint:K});return m.yield(_.yC(z.innertubeTransportService,
Q),0)})};
Be[Qj]=[_.vJ,_.qK];var tN=function(){};
_.U(tN,R7);tN.prototype.resolveCommand=function(e){var z,C,w,K,G,X,J,q;return _.k(function(T){z=_.r(e,Lhg);if((C=z)==null||!C.paramKeyValuePairs)return T.return();w=window.location.href;K=_.b(z.paramKeyValuePairs);for(G=K.next();!G.done;G=K.next())X=G.value,X.key&&X.value&&(J={},w=_.bh(w,(J[X.key]=X.value,J)));q=_.lh().resolve(_.pB);_.Zk(q,w);_.E_(T)})};_.gz=new _.Mt("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var jW=function(e,z,C,w){this.controller=e;this.JSC$18006_playerApiPromise=z;this.innertubeTransportService=C;this.JSC$18006_commandHandler=w};
_.U(jW,R7);
jW.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N;return _.k(function(D){if(D.nextAddress==1){C=_.r(e,ZBa);if((w=C)==null||!w.watchEndpoint)return D.return();K=new cB;G=K.JSC$14340_getRequest(C.watchEndpoint);if(!G)return D.return();X=C.watchEndpoint.clickTrackingParams;return D.yield(_.Hc(z.innertubeTransportService,G.innerTubeRequest,G.input,X,G.config),2)}if(D.nextAddress!=3)return J=D.yieldResult,D.yield(z.JSC$18006_playerApiPromise,3);q=D.yieldResult;q.updateVideoData({raw_watch_next_response:J});
if(H=(T=J)==null?void 0:(Q=T.contents)==null?void 0:(m=Q.twoColumnWatchNextResults)==null?void 0:(a=m.results)==null?void 0:(n=a.results)==null?void 0:n.contents)L=(I=H.find(function(g){return g.videoPrimaryInfoRenderer}))==null?void 0:I.videoPrimaryInfoRenderer,((h=L)==null?0:h.subtitle)&&StW(z.controller,L.subtitle);
(N=(E=J)==null?void 0:E.onUiReady)&&z.JSC$18006_commandHandler.resolveCommand(N);_.E_(D)})};
jW[Qj]=[_.gz,_.qK,_.vJ,_.ms];var uKC=function(){this.subtitleChangeCallbackMap=new Map},StW=function(e,z){e=_.b(e.subtitleChangeCallbackMap.values());
for(var C=e.next();!C.done;C=e.next())C=C.value,C(z)};var yF=function(e,z){this.JSC$18016_commandHandler=e;this.innertubeTransportService=z};
_.U(yF,R7);
yF.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N;return _.k(function(D){switch(D.nextAddress){case 1:return(G=(w=z)==null?void 0:(K=w.form)==null?void 0:K.element)&&_.j4(G),X=_.Tj().get("hl"),J="",_.Iv(D,2),D.yield(dug(X),4);case 4:J=D.yieldResult;_.Yj(D,3);break;case 2:return _.O_(D),G&&_.yz(G),_.yG(Error("Ki"),"ERROR"),D.return();case 3:q=_.r(e,JBg);if(!q)return G&&_.yz(G),D.return();(m=(T=q.commerceActionConfig)==null?void 0:(Q=T.commandLifeCycleConfig)==null?
void 0:Q.onStartCommand)&&C.JSC$18016_commandHandler.resolveCommand(m);return D.yield(_.yC(C.innertubeTransportService,e,{client_data:{paymentsClientToken:{token:J}}}),5);case 5:(a=D.yieldResult)?(G&&_.yz(G),((L=a)==null?0:L.command)&&C.JSC$18016_commandHandler.resolveCommand(a.command),(N=(h=q.commerceActionConfig)==null?void 0:(E=h.commandLifeCycleConfig)==null?void 0:E.onSuccessCommand)&&C.JSC$18016_commandHandler.resolveCommand(N)):(G&&_.yz(G),_.yG(Error("Li")),(I=(n=q.commerceActionConfig)==
null?void 0:(H=n.commandLifeCycleConfig)==null?void 0:H.onFailureCommand)&&C.JSC$18016_commandHandler.resolveCommand(I)),_.E_(D)}})};
yF[Qj]=[_.ms,_.vJ];var ce=function(e,z,C){this.store=e;this.JSC$18032_commandHandler=z;this.innertubeTransportService=C};
_.U(ce,R7);
ce.prototype.resolveCommand=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m;return _.k(function(a){w=_.r(e,k$X);K=w.googlePaymentPayload;w.onStartCommand&&C.JSC$18032_commandHandler.resolveCommand(w.onStartCommand);G=K.encryptedPurchaseParams;X=K.ypcLogWalletAnalyticDataEndpoint;J=w.serializedTransactionFlowLoggingParams;q=K.serializedPaymentsClientParams;T=w.ypcCujContext;m=Nl4(C.innertubeTransportService,(Q=z)==null?void 0:Q.form,G,X,J,q,T);return a.return(m.then(function(n){Du4(z==null?void 0:z.form,
!1);var H=C.store,I=C.JSC$18032_commandHandler,L=n.integratorData;L==null||L===""||n.error!=null?(String(n.error)==="-1"&&w.onDismissCommand?I.resolveCommand(w.onDismissCommand):String(n.error)!=="-1"&&w.onFailureCommand&&I.resolveCommand(w.onFailureCommand),String(n.error)!=="-1"&&String(n.error)!=="132"&&_.yG(Error("Mi"),"ERROR")):(w.googlePaymentEntityKey&&H.dispatch(_.Rx("commerceAcquisitionClientPayloadEntity",w.googlePaymentEntityKey,{key:w.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:L,
fundsGuaranteeCallbackClientData:n.integratorClientCallbackData}}})),w.onSuccessCommand&&I.resolveCommand(w.onSuccessCommand));_.oS()},function(n){Du4(z==null?void 0:z.form,!1);
_.yG(n,"ERROR");w.onFailureCommand&&C.JSC$18032_commandHandler.resolveCommand(w.onFailureCommand)}))})};
ce[Qj]=[$3,_.ms,_.vJ];var AN=function(e,z){this.JSC$18036_commandHandler=e;this.purchaseManager=z};
_.U(AN,R7);
AN.prototype.resolveCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q;return _.k(function(m){C=_.r(e,qjs);((w=C)==null?0:(K=w.commandLifeCycleConfig)==null?0:K.onStartCommand)&&z.JSC$18036_commandHandler.resolveCommand(C.commandLifeCycleConfig.onStartCommand);if(!((G=C)==null?0:(X=G.googlePaymentPurchaseManagerPayload)==null?0:X.securePayloadBytes))return _.yG(Error("Ni"),"ERROR"),m.return();J=zto(_.po(C.googlePaymentPurchaseManagerPayload.securePayloadBytes));q=_.Tj().get("hl");T=_.cj();U1a(J.serialize(),
q,function(a){T.resolve(a)},function(a){T.reject(a)},T.resolve);
Q=T.promise;return m.return(Q.then(function(a){if(a)if(a==null?0:a.errorCode){_.yG(Error("Oi`"+a.errorCode),"ERROR");var n,H;((n=C)==null?0:(H=n.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&z.JSC$18036_commandHandler.resolveCommand(C.commandLifeCycleConfig.onFailureCommand)}else if(a==null?0:a.isCancelled){var I,L;((I=C)==null?0:(L=I.commandLifeCycleConfig)==null?0:L.onCancelCommand)&&z.JSC$18036_commandHandler.resolveCommand(C.commandLifeCycleConfig.onCancelCommand)}else{var h,E;((h=C)==
null?0:(E=h.commandLifeCycleConfig)==null?0:E.onSuccessCommand)&&z.JSC$18036_commandHandler.resolveCommand(C.commandLifeCycleConfig.onSuccessCommand)}},function(a){_.yG(a,"ERROR");
var n,H;((n=C)==null?0:(H=n.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&z.JSC$18036_commandHandler.resolveCommand(C.commandLifeCycleConfig.onFailureCommand)}))})};
AN[Qj]=[_.ms,voo];var dXW=function(e,z){this.JSC$18044_commandHandler=e;this.commandAllowlistOverride=z;var C;this.commandAllowlist=(C=this.commandAllowlistOverride)!=null?C:Aq};
dXW.prototype.handleResponse=function(e,z,C){var w,K=z==null?void 0:(w=z.config)==null?void 0:w.command;if(!K||this.commandAllowlist.some(function(G){return!!_.r(K,G)})){z=void 0;
C!==void 0&&(z={form:{element:C}});e.onResponseReceivedCommand&&this.JSC$18044_commandHandler.resolveCommand(e.onResponseReceivedCommand,z);e.onResponseReceivedAction&&this.JSC$18044_commandHandler.resolveCommand(e.onResponseReceivedAction,z);e.onResponseReceivedEndpoint&&this.JSC$18044_commandHandler.resolveCommand(e.onResponseReceivedEndpoint,z);e.command&&this.JSC$18044_commandHandler.resolveCommand(e.command,z);if(e.onResponseReceivedCommands)for(C=_.b(e.onResponseReceivedCommands),w=C.next();!w.done;w=
C.next())this.JSC$18044_commandHandler.resolveCommand(w.value,z);if(e.onResponseReceivedActions)for(C=_.b(e.onResponseReceivedActions),w=C.next();!w.done;w=C.next())this.JSC$18044_commandHandler.resolveCommand(w.value,z);if(e.onResponseReceivedEndpoints)for(C=_.b(e.onResponseReceivedEndpoints),w=C.next();!w.done;w=C.next())this.JSC$18044_commandHandler.resolveCommand(w.value,z);if(e.actions)for(e=_.b(e.actions),C=e.next();!C.done;C=e.next())this.JSC$18044_commandHandler.resolveCommand(C.value,z)}};
dXW[Qj]=[_.ms,_.$B(O_L)];var DXZ=new _.Mt("INNERTUBE_TOKEN_SERVICE");var iJb=new _.Mt("SCHEDULER_TOKEN");var NeZ=function(e){this.scheduler=e;e={};this.tokenMap=(e.app={},e.user={},e)};
NeZ.prototype.handleResponse=function(e,z){if(!z)throw Error("Pi");var C;if(e=(C=e.responseContext)==null?void 0:C.innertubeTokenJar){if(e.appTokens){var w,K,G;C=(w=z.innerTubeRequest.context)==null?void 0:(K=w.request)==null?void 0:(G=K.innertubeTokenJar)==null?void 0:G.appTokens;sMZ(this,e.appTokens,this.tokenMap.app,C)}if(e.userTokens){var X,J,q;z=(X=z.innerTubeRequest.context)==null?void 0:(J=X.request)==null?void 0:(q=J.innertubeTokenJar)==null?void 0:q.userTokens;sMZ(this,e.userTokens,this.tokenMap.user,
z)}}};
NeZ.prototype.processContext=function(e){e.request||(e.request={});var z=Object.keys(this.tokenMap.app).length,C=Object.keys(this.tokenMap.user).length;if(z||C)e.request.innertubeTokenJar={},z&&(e.request.innertubeTokenJar.appTokens=[].concat(_.s_(Object.values(this.tokenMap.app).flat()))),C&&(e.request.innertubeTokenJar.userTokens=[].concat(_.s_(Object.values(this.tokenMap.user).flat())))};
var sMZ=function(e,z,C,w){z=_.b(z);for(var K=z.next(),G={};!K.done;G={token$jscomp$139:void 0},K=z.next()){G.token$jscomp$139=K.value;if(G.token$jscomp$139.type===void 0)throw new _.uh("InnerTube token has no type",G.token$jscomp$139);if(G.token$jscomp$139.clearTokens)C[G.token$jscomp$139.type]=[];else if(G.token$jscomp$139.value!==void 0){C[G.token$jscomp$139.type]||(C[G.token$jscomp$139.type]=[]);if(w!==void 0&&w.length){K=_.b(w);for(var X=K.next(),J={};!X.done;J={requestToken:void 0},X=K.next())J.requestToken=
X.value,X=C[G.token$jscomp$139.type].findIndex(function(q){return function(T){return T===q.requestToken||(0,_.de.equals)(T,q.requestToken)}}(J)),X>-1&&C[G.token$jscomp$139.type].splice(X,1)}C[G.token$jscomp$139.type].push(G.token$jscomp$139);
G.token$jscomp$139.maxAgeSeconds&&Number(G.token$jscomp$139.maxAgeSeconds)>0&&e.scheduler.addLowPriorityJob(function(q){return function(){var T=C[q.token$jscomp$139.type].indexOf(q.token$jscomp$139);T>-1&&C[q.token$jscomp$139.type].splice(T,1)}}(G),Number(G.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.uh("InnerTube token has no value",G.token$jscomp$139);
}};
NeZ[Qj]=[iJb];var Be5=new _.Mt("LOCAL_INNERTUBE_ROUTER_TOKEN"),t8Y=new _.Mt("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var ZD=function(e){this.serviceMap=e};
ZD.prototype.shouldPreferLocalResponse=function(e,z){return(e=gy3(this,e))?e.shouldPreferLocalResponse(z):!1};
ZD.prototype.localInnertubeResponse=function(e,z){var C=this,w;return _.k(function(K){return(w=gy3(C,e))?K.return(w.localInnertubeResponse(z)):K.return(Promise.reject(Error("Qi")))})};
ZD.prototype.canProvideFallbackResponse=function(e,z){return(e=gy3(this,e))?e.canProvideFallbackResponse(z):!1};
ZD.prototype.localFallbackInnertubeResponse=function(e,z){var C=this,w;return _.k(function(K){return(w=gy3(C,e))?K.return(w.localFallbackInnertubeResponse(z)):K.return(Promise.reject(Error("Qi")))})};
var gy3=function(e,z){z=_.Pi(z);return z?(e=e.serviceMap[z])?e:null:null};
ZD[Qj]=[t8Y];var OQ=function(){};
OQ.prototype.shouldPreferLocalResponse=function(){return!1};
OQ.prototype.localInnertubeResponse=function(){return _.k(function(e){return e.return(Promise.reject(Error("Ri")))})};
OQ.prototype.canProvideFallbackResponse=function(){return!0};
OQ.prototype.localFallbackInnertubeResponse=function(){var e,z,C;return _.k(function(w){e=r$("CLOSE_POPUP");z={openPopupAction:Bl8()};C={actions:[e,z]};return w.return(C)})};var GeN=function(e,z){this.JSC$18093_upliftPromise=e;this.store=z};
_.Y=GeN.prototype;_.Y.shouldPreferLocalResponse=function(e){var z=e.videoId,C;if(C=z)C=cl1(this.store.getState().entities,e.videoId);return C&&Al1(this.store.getState().entities,z)?gco(this.store.getState().entities,e.playlistId):!1};
_.Y.localInnertubeResponse=function(e){var z=this,C;return _.k(function(w){return(C=z.getPlayerResponse(e))?w.return(Promise.resolve(C)):w.return(Promise.reject(Error("Si")))})};
_.Y.canProvideFallbackResponse=function(e){return!!e.videoId};
_.Y.localFallbackInnertubeResponse=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.JSC$18093_upliftPromise,2);C=z.getPlayerResponse(e);var K;C?K=w.return(Promise.resolve(C)):K=Iu(z.store.getState().entities,e.videoId)?w.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.K4(_.kk("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:z1o()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
w.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.K4(_.kk("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:e1m()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return K})};
_.Y.getPlayerResponse=function(e){return HE1(this.store.getState().entities,e.videoId)};var h8=function(e,z){this.localPlayerService=e;this.localWatchNextService=z};
h8.prototype.shouldPreferLocalResponse=function(e){var z=e.playerRequest;e=e.watchNextRequest;return!!(z&&this.localPlayerService.shouldPreferLocalResponse(z)&&e&&this.localWatchNextService.shouldPreferLocalResponse(e))};
h8.prototype.localInnertubeResponse=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1){C=e.playerRequest;w=e.watchNextRequest;if(!C||!w)throw new _.uh("Missing streaming request",e);return X.yield(z.localPlayerService.localInnertubeResponse(C),2)}if(X.nextAddress!=3)return K=X.yieldResult,X.yield(z.localWatchNextService.localInnertubeResponse(w),3);G=X.yieldResult;return X.return({playerResponse:K,watchNextResponse:G})})};
h8.prototype.canProvideFallbackResponse=function(e){var z=e.playerRequest;e=e.watchNextRequest;return!!(z&&this.localPlayerService.canProvideFallbackResponse(z)&&e&&this.localWatchNextService.canProvideFallbackResponse(e))};
h8.prototype.localFallbackInnertubeResponse=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return C=e.playerRequest,w=e.watchNextRequest,C&&w?X.yield(z.localPlayerService.localFallbackInnertubeResponse(C),2):X.return(Promise.reject(new _.uh("Missing streaming request",e)));if(X.nextAddress!=3)return K=X.yieldResult,X.yield(z.localWatchNextService.localFallbackInnertubeResponse(w),3);G=X.yieldResult;return X.return({playerResponse:K,watchNextResponse:G})})};var PM=function(e){this.JSC$18103_persistentStorePromiseAccessor=e};
PM.prototype.shouldPreferLocalResponse=function(){return!1};
PM.prototype.localInnertubeResponse=function(){return _.k(function(e){return e.return(Promise.reject(Error("Ti")))})};
PM.prototype.canProvideFallbackResponse=function(){return!0};
PM.prototype.localFallbackInnertubeResponse=function(){var e=this,z,C;return _.k(function(w){return w.nextAddress==1?w.yield(e.JSC$18103_persistentStorePromiseAccessor(),2):w.nextAddress!=3?(z=w.yieldResult)?w.yield(z.get("service:guide:fallback"),3):w.return(Promise.reject(Error("Ui"))):(C=w.yieldResult)&&_.J8(C)?w.return(jck(_.J8(C))):w.return(Promise.reject(Error("Vi")))})};var EQ=function(){};
EQ.prototype.shouldPreferLocalResponse=function(){return!1};
EQ.prototype.localInnertubeResponse=function(){return _.k(function(e){return e.return(Promise.reject(Error("Wi")))})};
EQ.prototype.canProvideFallbackResponse=function(){return!0};
EQ.prototype.localFallbackInnertubeResponse=function(){var e,z,C;return _.k(function(w){e=r$("CLOSE_POPUP");z={openPopupAction:Bl8()};C={actions:[e,z]};return w.return(C)})};var WM=function(){this.urlMap=jMY;this.fallbackCommand=_.wt};
WM.prototype.shouldPreferLocalResponse=function(e){return(e=e.url)?!!y0Y(this,e):!1};
WM.prototype.localInnertubeResponse=function(e){var z=this,C;return _.k(function(w){return(C=e.url)?w.return(c0L(e,y0Y(z,C))):w.return(Promise.reject(Error("Xi")))})};
WM.prototype.canProvideFallbackResponse=function(){return!0};
WM.prototype.localFallbackInnertubeResponse=function(e){var z=this,C,w,K,G,X,J,q;return _.k(function(T){C=e.url;if(!C)return T.return(c0L(e,z.fallbackCommand));if(w=y0Y(z,C))return T.return(c0L(e,w));K=void 0;G=_.Pi(C);G==="/watch"&&(X=_.ea(C,"v"))&&(q=(J=_.ea(C,"list"))!=null?J:void 0,K=_.wk(X,q));K||(K=z.fallbackCommand);return T.return(c0L(e,K))})};
var y0Y=function(e,z){if(z)return e.urlMap[_.Sy(z)]},c0L=function(e,z){z&&e.parentTrackingParams&&(z.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:e.parentTrackingParams}},z.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:z})};var Rn=function(e,z,C){this.JSC$18114_upliftPromise=e;this.store=z;this.JSC$18114_persistentStorePromiseAccessor=C};
Rn.prototype.shouldPreferLocalResponse=function(){return!1};
Rn.prototype.localInnertubeResponse=function(){return _.k(function(e){return e.return(Promise.reject(Error("Yi")))})};
Rn.prototype.canProvideFallbackResponse=function(){return!0};
Rn.prototype.localFallbackInnertubeResponse=function(){var e=this;return _.k(function(z){return z.return(A0o(e))})};
var A0o=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(X9(e.JSC$18114_upliftPromise,e.store),2);z=w.yieldResult;C={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[tH4(z)]}}}};return w.return(ZJa(e,C))})},ZJa=function(e,z){var C,w;
return _.k(function(K){if(K.nextAddress==1)return K.yield(e.JSC$18114_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3)return C=K.yieldResult,K.yield(TO(C),3);w=K.yieldResult;return K.return({responseContext:{},contents:z,topbar:w})})};var vM=function(e,z,C){this.JSC$18121_upliftPromise=e;this.store=z;this.JSC$18121_persistentStorePromiseAccessor=C};
vM.prototype.shouldPreferLocalResponse=function(e){var z=e.videoId;return z&&cl1(this.store.getState().entities,z)&&Al1(this.store.getState().entities,z)?gco(this.store.getState().entities,e.playlistId):!1};
vM.prototype.localInnertubeResponse=function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1)return(C=e.videoId)?K.yield(z.JSC$18121_upliftPromise,2):K.return(Promise.reject(Error("Zi")));if(K.nextAddress!=3)return K.yield(pVW(z,e,C),3);w=K.yieldResult;return K.return(evv(z,w,C))})};
vM.prototype.canProvideFallbackResponse=function(e){return e.videoId?!0:!1};
vM.prototype.localFallbackInnertubeResponse=function(e){var z=this,C,w,K,G;return _.k(function(X){switch(X.nextAddress){case 1:return(C=e.videoId)?X.yield(z.JSC$18121_upliftPromise,2):X.return(Promise.reject(Error("Zi")));case 2:return X.yield(pVW(z,e,C),3);case 3:w=X.yieldResult;if(Iu(z.store.getState().entities,C)){X.jumpTo(4);break}return X.yield(X9(z.JSC$18121_upliftPromise,z.store),5);case 5:return K=X.yieldResult,X.return(zvZ(w,K));case 4:return cl1(z.store.getState().entities,C)&&Al1(z.store.getState().entities,
C)?X.return(evv(z,w,C)):(G={title:_.K4(_.kk("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:z1o()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},X.return(zvZ(w,G)))}})};
var pVW=function(e,z,C){var w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1)return w=z.playlistId,K=_.wk(C,w),q.yield(e.JSC$18121_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return G=q.yieldResult,q.yield(TO(G),3);X=q.yieldResult;J={responseContext:{},currentVideoEndpoint:K,topbar:X};return q.return(J)})},evv=function(e,z,C){if(e=Iu(e.store.getState().entities,C)){var w;
C=e.videoEntity;var K,G={title:ou(C.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Gq((w=C.localizedStrings)==null?void 0:w.viewCount),viewCount:_.Gq((K=C.localizedStrings)==null?void 0:K.viewCount)}}};C.publishedTimestampMillis&&(G.dateText=_.Gq(Q67(new Date(Number(C.publishedTimestampMillis)))));w={videoPrimaryInfoRenderer:G};K=e.videoEntity;e=e.channelEntity;e={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:ou(_.kk("SHOW_MORE",void 0,"Show more")),
showLessText:ou(_.kk("SHOW_LESS",void 0,"Show less")),description:K.formattedDescription,owner:{videoOwnerRenderer:{title:ou(e.title),thumbnail:e.avatar}}}};z.contents={twoColumnWatchNextResults:{results:{results:{contents:[w,e]}}}}}return z},zvZ=function(e,z){e.contents={singleColumnWatchNextResults:{results:{results:{contents:[tH4(z)]}}}};
return e};var LM=function(e,z,C){this.JSC$18126_upliftPromise=e;this.store=z;this.JSC$18126_persistentStorePromiseAccessor=C};
LM.prototype.shouldPreferLocalResponse=function(){return!1};
LM.prototype.localInnertubeResponse=function(){return _.k(function(e){return e.return(Promise.reject(Error("$i")))})};
LM.prototype.canProvideFallbackResponse=function(){return!0};
LM.prototype.localFallbackInnertubeResponse=function(){var e=this,z,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:return G.yield(e.JSC$18126_persistentStorePromiseAccessor(),2);case 2:return z=G.yieldResult,G.yield(TO(z),3);case 3:return C=G.yieldResult,w={responseContext:{},topbar:C},G.yield(e.JSC$18126_upliftPromise,4);case 4:return G.yield(X9(e.JSC$18126_upliftPromise,e.store),5);case 5:return K=G.yieldResult,w.watchStatus={backgroundPromoRenderer:K},G.return(w)}})};var CZY,wof;_.p2=new _.Mt("ENDPOINT_MAP");CZY=new _.Mt("WATCH_ENDPOINT_MAP");wof=new _.Mt("REEL_ENDPOINT_MAP");var e7g=/^[a-zA-Z0-9_\-]{11}$/;var z7h=_.uS(function(){var e,z;return(z=(e=window).matchMedia)==null?void 0:z.call(e,"(prefers-reduced-motion: reduce)").matches});var KaZ=_.uS(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 e=_.pd("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");e||(e=_.Lh("VIDEO"),_.lM("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
e));return!!(e&&e.canPlayType&&e.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var o2o=XMLHttpRequest.prototype.fetch,G5Y=o2o&&o2o.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!xj?!0:!1;var ei=function(e){this.JSC$18137_storeWithEntities=e};
_.U(ei,a6);_.Y=ei.prototype;_.Y.getApiPaths=function(){return zEX};
_.Y.getExtension=function(e){return _.r(e,_.N$)||_.r(e,_.rP)||_.r(e,cYY)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14347_getStoreKey=function(e){if((_.M("kevlar_cache_on_ttl_player")||_.M("mweb_enable_shorts_innertube_player_prefetch")||_.M("mweb_use_new_history_manager")||_.M("web_shorts_prefetch_service_enabled"))&&(e=this.getExtension(e))&&e.videoId){var z={videoId:e.videoId};e.playlistId&&(z.playlistId=e.playlistId);e.playerParams&&(z.params=e.playerParams);return _.iY("player",z)}};
_.Y.JSC$14340_getClientScreen=function(e){var z;return((z=e.contentPlaybackContext)==null?void 0:z.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.Y.JSC$14340_buildRequest=function(e,z,C){if(_.M("enable_interstitial_entity_check")){var w=this.JSC$18137_storeWithEntities;if(z.videoId)for(var K=_.b(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),G=K.next();!G.done;G=K.next()){G=G.value;var X;var J=void 0,q=void 0,T=z.videoId,Q=G;(X=w)?(T=_.qq(T+Q,"interstitialInteractionStateEntity"),X=(J=(q=_.xz(X.getState().entities,"interstitialInteractionStateEntity",T))==null?void 0:q.primaryButtonClicked)!=null?J:!1):X=!1;if(X)switch(G){case "CONTENT_CHECK_REQUIRED":z.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":z.racyCheckOk=!0}}}z.videoId&&(e.videoId=z.videoId);z.playlistId&&(e.playlistId=z.playlistId);z.index!==void 0&&(e.playlistIndex=z.index+1);z.playerParams&&(e.params=z.playerParams);"startTimeSeconds"in z&&z.startTimeSeconds&&(_.M("enable_player_request_builder_start_time_floor")?e.startTimeSecs=Math.floor(z.startTimeSeconds):e.startTimeSecs=z.startTimeSeconds);C.contentPlaybackContext&&(e.playbackContext={contentPlaybackContext:C.contentPlaybackContext});C.prefetchPlaybackContext&&
(e.playbackContext=Object.assign({},e.playbackContext,{prefetchPlaybackContext:C.prefetchPlaybackContext}),e.context.request||(e.context.request={}),e.context.request.isPrefetch=!0);e.playbackContext||(e.playbackContext={});w=KaZ();e.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!w,supportXhr:G5Y};C.overrideMutedAtStart&&(e.overrideMutedAtStart=C.overrideMutedAtStart);e.racyCheckOk=!!z.racyCheckOk;e.contentCheckOk=!!z.contentCheckOk;!_.M("captions_prefs_killswitch")&&(C=(C=_.PJ("yt-player-caption-language-preferences"))?
C:[],C==null?0:C.length)&&(e.captionParams={viewerSelectedCaptionLangs:C})};
_.Y.getRequestConfig=function(e){e=this.JSC$14347_getStoreKey(e);var z;e&&(z={storeStrategy:{storeKey:e}});_.M("web_log_player_watch_next_ticks")&&(z=z||{},z.requestTick="ps_s",z.responseTick="ps_r");return z};
ei[Qj]=[$3];var z2=function(e,z){this.playerRequestBuilder=e;this.watchNextRequestBuilder=z};
_.U(z2,a6);z2.prototype.getApiPaths=function(){return s76};
z2.prototype.getExtension=function(e){return _.r(e,_.N$)};
z2.prototype.isNavigationCommand=function(){return!0};
z2.prototype.JSC$14340_buildRequest=function(e,z,C){e.playerRequest={};this.playerRequestBuilder.JSC$14340_buildRequest(e.playerRequest,z,C);if(_.M("web_streaming_watch")||_.M("mweb_streaming_watch"))e.watchNextRequest={},this.watchNextRequestBuilder.JSC$14340_buildRequest(e.watchNextRequest,z,C)};
z2[Qj]=[ei,cB];var Yvv;_.Cn=new _.Mt("SHORTS_CONTROLLER_TOKEN");Yvv=new _.Mt("SHORTS_STATE_STORE_TOKEN");var wg=function(e,z){var C=_.yL.apply(2,arguments);e=e===void 0?0:e;_.uh.call(this,z,C);this.errorType=e;Object.setPrototypeOf(this,this.constructor.prototype)};
_.U(wg,_.uh);var bh3,XoL,JAq,bt7,Zr,Rbg,xGo,qvb,mGl,lHY,$G3;bh3=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(e){return e+"="}).join("|"));
XoL=RegExp(".*\\?.*playnext=1.*");JAq=function(e,z,C,w,K,G){this.watchEndpointMap=e;this.reelWatchEndpointMap=z;this.innerTubeTransportService=C;this.fetchPbj=w;this.ephemeralStore=K;this.reloadOnPlayerFailure=G===void 0?!0:G};
_.k5l=function(e,z){var C=_.n0("web_pbj_log_warning_rate",0);C=C>0&&Math.random()<C;var w;if((w=_.r(z.commandMetadata,_.XV))==null||!w.rootVe)return C&&_.AX(Error("ej")),!1;var K;w=(K=_.r(z.commandMetadata,_.XV))==null?void 0:K.url;if(!w)return C&&_.AX(Error("fj")),!1;if(XoL.test(w))return!0;if(bh3.test(w))return C&&_.AX(Error("gj`"+w)),!1;if(_.r(z,_.N$)){if(!(e.watchEndpointMap.watchNext&&e.watchEndpointMap.player||_.M("kevlar_fetch_initial_data_op_watch_client")))return C&&_.AX(Error("aj")),!1;
e=_.n0("web_pbj_log_warning_rate",0);e=e>0&&Math.random()<e;_.r(z,_.N$)?ZLL(z)?z=!0:(e&&_.AX(Error("bj")),z=!1):(e&&_.AX(Error("aj")),z=!1);return z}if(_.r(z,_.rP))return px5(z);if(_.r(z,_.lt))return!0;e=_.jj(e.innerTubeTransportService,z);!e&&C&&_.yG(Error("hj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(z)});return e};
bt7=function(e,z,C,w,K,G){z={url:z};if(C==null?0:C.itct)z.parentTrackingParams=C.itct;var X=_.zU(Jzh);return _.Hc(e.innerTubeTransportService,z,X).then(function(J){(J=J.endpoint)||(J=_.wt);(C==null?0:C.itct)&&J&&!J.trackingParams&&(J.trackingParams=C.itct);var q=nW(J);return Zr(e,J,C,w,q,K,G)})};
Zr=function(e,z,C,w,K,G,X,J){J=J===void 0?{}:J;if(e.fetchPbj&&!_.k5l(e,z)&&!_.M("force_one_platform")){var q=e.fetchPbj(z),T=_.oS(q.then(function(y){if(!y)throw Error("ij");X(T)||G(z,y);return y}));
return T}var Q,m,a={rootVe:(Q=_.r(z.commandMetadata,_.XV))==null?void 0:Q.rootVe,url:(m=_.r(z.commandMetadata,_.XV))==null?void 0:m.url,endpoint:z,page:K};if(_.r(z,_.N$)){var n,H={contentPlaybackContext:_.lH(C,(n=_.r(z.commandMetadata,_.XV))==null?void 0:n.url,w)},I=_.cj(),L,h=(L=e.watchEndpointMap.player)==null?void 0:L().JSC$14347_getStoreKey(z);L=h!==void 0&&((q=e.ephemeralStore)==null?void 0:q.has(h));(_.M("web_streaming_watch")||_.M("mweb_streaming_watch"))&&window.TextDecoderStream&&!L?(q=SlC(e.innerTubeTransportService,
z,H,function(y){!a.response&&y.content&&(a.response=y.content);!a.playerResponse&&y.player&&(a.playerResponse=y.player);G(z,a)}),h=Ap1(z),h.length&&(a.preconnect=h,G(z,a)),qvb(q,I,a).catch(function(y){y instanceof wg&&y.errorType===2&&_.M("web_streaming_watch_fallback")&&xGo(e,z,H,a,G,X,I)})):xGo(e,z,H,a,G,X,I);
return I.promise}if(_.r(z,_.rP)){var E;if(((E=_.r(z,_.rP))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var N=_.cj();_.T9q(_.lh().resolve(_.Cn),z).then(function(y){$G3(e,C,w,K,G,N,y)});
return N.promise}q=_.oS();L={contentPlaybackContext:_.lH(C,(h=_.r(z.commandMetadata,_.XV))==null?void 0:h.url,w)};(h=e.reelWatchEndpointMap.player)&&(h=h().JSC$14340_getRequest(z,L))&&(q=_.Hc(e.innerTubeTransportService,h.innerTubeRequest,h.input,z.clickTrackingParams,h.config));h=_.oS();(J=e.reelWatchEndpointMap.reelItemWatch)&&(J=J().JSC$14340_getRequest(z))&&(h=_.Hc(e.innerTubeTransportService,J.innerTubeRequest,J.input,z.clickTrackingParams,J.config));J=_.oS();(Q=e.reelWatchEndpointMap.reelWatchSequence)&&
_.r(z,_.rP).sequenceParams&&(L=Q().JSC$14340_getRequest(z,L))&&(_.M("web_enable_delay_shorts_sequence_call_forget")?_.Hc(e.innerTubeTransportService,L.innerTubeRequest,L.input,z.clickTrackingParams,L.config):J=_.Hc(e.innerTubeTransportService,L.innerTubeRequest,L.input,z.clickTrackingParams,L.config));L=_.oS(a);Q=_.cj();lHY(z,L,q,h,J,G,X,Q);return Q.promise}var D;if(_.r(z,J_N)&&((D=_.r(z.commandMetadata,_.XV))==null?0:D.url))return q=lRm(_.Cj(BV().location.href),_.Cj(_.r(z.commandMetadata,_.XV).url)).toString(),
bt7(e,q,C,w,G,function(){return!1});
if(_.r(z,_.lt))return G(z,a),_.oS(a);if(_.jj(e.innerTubeTransportService,z)){q=Object.assign({},{tempData:C,disableCache:C.disableCache},J);var g=_.yC(e.innerTubeTransportService,z,q).then(function(y){a.response=y;X(g)||G(z,a);return a});
return g}return _.oS(a)};
_.Q4f=function(e,z,C,w){if(_.r(z,_.N$)||_.r(z,_.rP)&&(_.M("mweb_enable_shorts_innertube_player_prefetch")||_.M("kevlar_enable_shorts_prefetch_in_sequence"))||_.r(z,cYY)&&_.M("web_enable_prefetching_videos_on_home")){var K,G={contentPlaybackContext:_.lH(C,(K=_.r(z.commandMetadata,_.XV))==null?void 0:K.url,w),prefetchPlaybackContext:w4L(C)},X,J,q;if(((X=_.r(z,_.N$))==null?void 0:(J=X.watchEndpointSupportedPrefetchConfig)==null?void 0:(q=J.prefetchHintConfig)==null?void 0:q.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(C=
e.watchEndpointMap.watchNext)if(G=C().JSC$14340_getRequest(z,G))return Promise.resolve(_.Hc(e.innerTubeTransportService,G.innerTubeRequest,G.input,void 0,G.config).then(function(m){return m}))}else if(C=e.watchEndpointMap.player)if(G=C().JSC$14340_getRequest(z,G))return Promise.resolve(_.Hc(e.innerTubeTransportService,G.innerTubeRequest,G.input,void 0,G.config).then(function(m){return m}))}else if(_.jj(e.innerTubeTransportService,z)){var T={tempData:C},Q=OIa(e.innerTubeTransportService,z);
return Q?new Promise(function(m,a){var n,H;return _.k(function(I){if(I.nextAddress==1)return I.yield(Q,2);if(I.nextAddress!=4)return n=I.yieldResult,n.JSC$14347_getStoreKey(z,T)?I.yield(_.yC(e.innerTubeTransportService,z,T),4):(a(new _.uh("Prefetching request builder with no store key.",z)),I.jumpTo(0));H=I.yieldResult;m(H);_.E_(I)})}):Promise.reject(new _.uh("Prefetching unregistered request builder.",z))}return Promise.reject(new _.uh("No request builder available to prefetch endpoint.",z))};
Rbg=function(e,z){var C,w,K;if(_.r(z,_.N$)){var G=e.watchEndpointMap.watchNext;G&&(C=G());(e=e.watchEndpointMap.player)&&(w=e())}else if(_.r(z,_.rP))(G=e.reelWatchEndpointMap.reelItemWatch)&&(C=G()),(G=e.reelWatchEndpointMap.player)&&(w=G()),(e=e.reelWatchEndpointMap.reelWatchSequence)&&(K=e());else{a:{e=$8g(z,e.innerTubeTransportService.endpointMap);if(e!==void 0)if(typeof e.then==="function")_.yG(new _.uh("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",z));else break a;
e=void 0}e&&(C=e)}var X,J,q;return{content:(X=C)==null?void 0:X.JSC$14347_getStoreKey(z),player:(J=w)==null?void 0:J.JSC$14347_getStoreKey(z),reelSequence:(q=K)==null?void 0:q.JSC$14347_getStoreKey(z)}};
xGo=function(e,z,C,w,K,G,X){var J=_.oS(),q=e.watchEndpointMap.player;_.M("web_streaming_player")&&(q=iw(z2));q&&(q=q().JSC$14340_getRequest(z,C))&&(J=_.Hc(e.innerTubeTransportService,q.innerTubeRequest,q.input,z.clickTrackingParams,q.config));q=_.oS();var T=e.watchEndpointMap.watchNext;T&&(C=T().JSC$14340_getRequest(z,C))&&(q=_.Hc(e.innerTubeTransportService,C.innerTubeRequest,C.input,z.clickTrackingParams,C.config));w=_.oS(w);mGl(e,z,w,J,q,K,G,X)};
qvb=function(e,z,C){var w;return _.k(function(K){if(K.nextAddress==1)return K.yield(e,2);_.M("web_streaming_watch_delay_200")||_.M("web_streaming_watch_delay_400")?(w=_.M("web_streaming_watch_delay_200")?200:400,setTimeout(function(){z.resolve(C)},w)):z.resolve(C);
_.E_(K)})};
mGl=function(e,z,C,w,K,G,X,J){var q,T,Q,m,a;_.k(function(n){switch(n.nextAddress){case 1:return n.yield(C,2);case 2:q=n.yieldResult;if(X(J.promise))return J.resolve(q),n.return();G(z,q);T=Ap1(z);if(!T.length){n.jumpTo(3);break}return n.yield(C,4);case 4:q.preconnect=T,G(z,q);case 3:return _.Iv(n,5),n.yield(w,7);case 7:Q=n.yieldResult;_.Yj(n,6);break;case 5:return m=_.O_(n),J.reject(m),n.return();case 6:if(Q===void 0&&e.reloadOnPlayerFailure)return q.reload=!0,G(z,q),J.resolve(q),n.return();if(X(J.promise))return J.resolve(q),
n.return();q.playerResponse=Q;G(z,q);(_.M("web_watch_stop_scheduler_on_player_response")||_.M("mweb_watch_stop_scheduler_on_player_response"))&&uV6();_.Iv(n,8);return n.yield(K,10);case 10:a=n.yieldResult;_.Yj(n,9);break;case 8:_.O_(n);case 9:if(a===void 0)return q.response={responseContext:{}},J.resolve(q),n.return();if(X(J.promise))return J.resolve(q),n.return();q.response=a;G(z,q);J.resolve(q);_.E_(n)}})};
lHY=function(e,z,C,w,K,G,X,J){var q,T,Q,m,a,n;_.k(function(H){switch(H.nextAddress){case 1:return H.yield(z,2);case 2:q=H.yieldResult;if(X(J.promise))return J.resolve(q),H.return();G(e,q);T=Ap1(e);if(!T.length){H.jumpTo(3);break}return H.yield(z,4);case 4:q.preconnect=T,G(e,q);case 3:return _.Iv(H,5),H.yield(C,7);case 7:Q=H.yieldResult;_.Yj(H,6);break;case 5:return m=_.O_(H),J.reject(m),H.return();case 6:if(Q===void 0)return q.reload=!0,G(e,q),J.resolve(q),H.return();if(X(J.promise))return J.resolve(q),
H.return();q.playerResponse=Q;G(e,q);(_.M("web_shorts_stop_scheduler_on_player_response")||_.M("mweb_shorts_stop_scheduler_on_player_response"))&&uV6();_.Iv(H,8);return H.yield(w,10);case 10:a=H.yieldResult;_.Yj(H,9);break;case 8:_.O_(H);case 9:if(a===void 0)return q.response={responseContext:{}},J.resolve(q),H.return();if(X(J.promise))return J.resolve(q),H.return();q.response=a;G(e,q);_.Iv(H,11);return H.yield(K,13);case 13:n=H.yieldResult;_.Yj(H,12);break;case 11:_.O_(H);case 12:if(X(J.promise))return J.resolve(q),
H.return();n&&(q.reelWatchSequenceResponse=n);G(e,q);J.resolve(q);_.E_(H)}})};
$G3=function(e,z,C,w,K,G,X){var J,q,T,Q,m,a;_.k(function(n){if((J=X)==null||!J.replacementEndpoint)return G.reject(),n.return();q=X.replacementEndpoint;(T=_.r(q,_.rP))?(X.sequenceContinuation&&(T.sequenceParams=X.sequenceContinuation),Q=_.lh().resolve(_.Cn),m=T.sequenceParams,aHE(Q,q)&&delete T.sequenceParams,a=Zr(e,q,z,C,w,K,function(){return!1}),a.then(function(H){return _.k(function(I){if(I.nextAddress==1)return n2q(Q,{reelWatchEndpoint:{sequenceParams:m}},H),I.yield(0,2);
G.resolve(H);_.E_(I)})})):G.reject();
_.E_(n)})};
JAq[Qj]=[CZY,wof,_.vJ,_.$B(hqs),_.$B(_.jN)];var MnY=function(){var e=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return e.sequenceMap}}},uT4=function(e,z,C){var w,K=(w=z.config)==null?void 0:w.sequenceStrategy;
if(!K)return C();e.sequenceMap.has(K.sequenceKey)||e.sequenceMap.set(K.sequenceKey,[]);e=e.sequenceMap.get(K.sequenceKey);switch(K.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return rAL(e,z,C);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Hhq(e,z,C);default:throw new _.uh("Request could not be sequenced",z);}},rAL=function(e,z,C){var w,K,G;
return _.k(function(X){e.length>0?(K=e[e.length-1],w=K.responsePromise.then(function(){return C()})):w=C();
G={request:z,responsePromise:w};e.push(G);UGb(e,G);return X.return(G.responsePromise)})},Hhq=function(e,z,C){C=C();
if(e.length>0)for(var w=_.b(e),K=w.next();!K.done;K=w.next())K.value.responsePromise=C;var G={request:z,responsePromise:C};e.push(G);UGb(e,G);return Promise.resolve().then(function(){return e.indexOf(G)>0?G.responsePromise.then(function(X){return Object.assign({},X,{sequenceMetaData:{skipProcessing:!0}})}):G.responsePromise})},UGb=function(e,z){z.responsePromise.then(function(){var C=e.indexOf(z);
C>-1&&e.splice(C,1)})};var v2b=new _.Mt("REQUEST_SEQUENCING");var Kn=function(){};
_.U(Kn,a6);Kn.prototype.getApiPaths=function(){return[]};
Kn.prototype.getExtension=function(e){return _.r(e,LzY)};
Kn.prototype.JSC$14340_buildRequest=function(e,z){e.recaptchaToken=z.recaptchaToken};
Kn.prototype.getApiUrl=function(){return"/das_captcha"};var oy=function(){};
_.U(oy,a6);oy.prototype.getApiPaths=function(){return JrU};
oy.prototype.getExtension=function(e){return _.r(e,Xmg)};
oy.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.createBackstagePostParams&&(e.createBackstagePostParams=z.createBackstagePostParams);C.comment_text&&(e.commentText=C.comment_text);if(C.attached_video_id)e.videoAttachment={videoId:C.attached_video_id};else if(C.image_poll_options)e.pollAttachmentData={options:C.image_poll_options};else if(C.poll_options)e.pollAttachment={choices:C.poll_options};else if(C.quiz_options)e.quizAttachmentData={options:C.quiz_options};else if(C.image_blob_id)e.imageAttachment=
{encryptedBlobId:C.image_blob_id},C.source_video_id&&(e.imageAttachment.sourceExternalVideoId=C.source_video_id),C.image_preview_coordinates&&(e.imageAttachment.previewCoordinates=JSON.parse(C.image_preview_coordinates));else if(C.images_data)e.imagesAttachment={imagesData:C.images_data};else if(C.clip_external_video_id!==void 0||C.clip_offset_ms!==void 0||C.clip_duration_ms!==void 0){var w,K,G,X,J;e.clipAttachment={externalVideoId:(G=C.clip_external_video_id)!=null?G:"",offsetMs:(X=(w=C.clip_offset_ms)==
null?void 0:w.toString())!=null?X:"",durationMs:(J=(K=C.clip_duration_ms)==null?void 0:K.toString())!=null?J:""}}else C.shared_post_id&&(e.sharedPostAttachment={postId:C.shared_post_id});C.tagged_video_id&&(e.postCreationData={taggedVideoId:C.tagged_video_id});C.access_restrictions&&(typeof C.access_restrictions==="number"&&(z=C.access_restrictions,e.accessRestrictions={restriction:z!==1&&z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof C.access_restrictions==="string"&&
(e.accessRestrictionsParams=C.access_restrictions));C.scheduled_publish_time_sec&&(e.scheduledPublishTimeSec=C.scheduled_publish_time_sec.toString())};var G2=function(){};
_.U(G2,a6);G2.prototype.getApiPaths=function(){return Q7L};
G2.prototype.getExtension=function(e){return _.r(e,YWh)};
G2.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.decorateMessageParams&&(e.params=z.decorateMessageParams);C.text&&(e.text=C.text)};var YM=function(){};
_.U(YM,a6);YM.prototype.getApiPaths=function(){return SaC};
YM.prototype.getExtension=function(e){return _.r(e,J1a)};
YM.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;C.video_id&&(e.videoId=C.video_id)};var bv=function(){};
_.U(bv,a6);bv.prototype.getApiPaths=function(){return NbX};
bv.prototype.getExtension=function(e){return _.r(e,_.bd)};
bv.prototype.JSC$14340_buildRequest=function(e,z,C){C.suggestions_query&&(e.input=C.suggestions_query)};var XI=function(){};
_.U(XI,a6);XI.prototype.getApiPaths=function(){return rzU};
XI.prototype.getExtension=function(e){return _.r(e,ka4)};
XI.prototype.JSC$14340_buildRequest=function(e,z,C){C.comment_text!==void 0&&(e.commentText=C.comment_text);C.scheduled_publish_time_sec&&(e.scheduledPublishTimeSec=C.scheduled_publish_time_sec.toString());e.updateBackstagePostParams=z.updateBackstagePostParams};var Jb=function(){};
_.U(Jb,a6);Jb.prototype.getApiPaths=function(){return CM};
Jb.prototype.getExtension=function(e){return _.r(e,_.dG)};
Jb.prototype.JSC$14340_buildRequest=function(e,z,C){C.formData&&(e.formData=C.formData);z.token?e.continuation=z.token:z.continuationTokenKey&&(C=_.eB().getState(),z=_.xz(C.entities,"continuationTokenEntity",z.continuationTokenKey))&&(e.continuation=String(z.continuationToken))};
var IHC=function(){};
_.U(IHC,a6);_.Y=IHC.prototype;_.Y.getApiPaths=function(){return CM};
_.Y.getExtension=function(e){return _.r(e,_.mJ)};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14347_getStoreKey=function(e){if((e=this.getExtension(e))&&e.browseId){var z={browseId:e.browseId};e.browseEndpointContextSupportedConfigs&&(z.browseEndpointContextSupportedConfigs=JSON.stringify(e.browseEndpointContextSupportedConfigs));e.params&&(z.params=e.params);e.query&&(z.query=e.query);return _.iY("browse",z)}};
_.Y.JSC$14340_buildRequest=function(e,z,C){z.browseId&&(e.browseId=z.browseId);z.params&&(e.params=z.params);z.query&&(e.query=z.query);C.formData?e.formData=C.formData:z.formData&&(e.formData=z.formData);z.browseId==="FEsubscriptions"&&_.Tj().getFlag(155)&&(e.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");z.browseId==="SPaccount_playback"&&(C=_.Tj(),e.formData||(e.formData={}),e.formData.accountSettingsFormData={flagCaptionsDefaultOff:C.getFlag(65),flagAutoCaptionsDefaultOn:C.getFlag(66),
flagDisableInlinePreview:C.getFlag(186),flagAudioDescriptionDefaultOn:C.getFlag(198)});if(z.browseId==="FEwhat_to_watch"){C=_.Tj();var w=C.getFlag(196);C.getFlag(197)&&(e.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:w}}})}z.browseId==="FEwhat_to_watch"&&(z=_.Tj().getFlag(186),e.inlineSettingStatus=z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.Y.getRequestConfig=function(e,z){z=z===void 0?{}:z;var C={};if(e=this.JSC$14347_getStoreKey(e,z))C.storeStrategy={storeKey:e,disableCache:z.disableCache};_.M("web_log_browse_ticks_ks")||(C.requestTick="br_s",C.responseTick="br_r");return C};var kM=function(){};
_.U(kM,a6);kM.prototype.getApiPaths=function(){return Kvo};
kM.prototype.getExtension=function(e){return _.r(e,dVc)};
kM.prototype.JSC$14340_buildRequest=function(e,z,C){e.legacyYoutubeChannelUsername=C.legacyYouTubeChannelUsername||"";e.legacyYoutubeChannelPassword=C.legacyYouTubeChannelPassword||""};var qS=function(){};
_.U(qS,a6);qS.prototype.getApiPaths=function(){return kMC};
qS.prototype.getExtension=function(e){return _.r(e,mns)};
qS.prototype.JSC$14340_buildRequest=function(e,z,C){C.recaptcha_response_token&&(e.recaptchaResponseToken=C.recaptcha_response_token);C.channel_id&&(e.channelId=C.channel_id)};var xM=function(){};
_.U(xM,a6);xM.prototype.getApiPaths=function(){return HDs};
xM.prototype.getExtension=function(e){return _.r(e,Uns)};
xM.prototype.JSC$14340_buildRequest=function(e,z,C){z.externalChannelId&&(e.externalChannelId=z.externalChannelId);C.handle&&(e.handleUpdate={handle:C.handle},z.handleEditSource&&(e.handleUpdate.handleEditSource=z.handleEditSource))};var T2=function(){};
_.U(T2,a6);T2.prototype.getApiPaths=function(){return Wqo};
T2.prototype.getExtension=function(e){return _.r(e,gPo)};
T2.prototype.JSC$14340_buildRequest=function(e,z,C){z.request&&(e.channelId=z.request.channelId);var w;if(C==null?0:(w=C.uploadDefaults)==null?0:w.emojiReactionSet)e.uploadDefaultsRequest||(e.uploadDefaultsRequest={}),e.uploadDefaultsRequest.emojiReactionSet=C.uploadDefaults.emojiReactionSet};var $M=function(){};
_.U($M,a6);$M.prototype.getApiPaths=function(){return Lqh};
$M.prototype.getExtension=function(e){return _.r(e,aoS)};
$M.prototype.JSC$14340_buildRequest=function(e,z,C){z.externalChannelId&&(e.externalChannelId=z.externalChannelId);z.channelHandleEntityKey&&(e.channelHandleEntityKey=z.channelHandleEntityKey);z.handleEditSource&&(e.handleEditSource=z.handleEditSource);C.handle?e.handle=C.handle:C.name&&(e.name=C.name)};var lv=function(){};
_.U(lv,a6);lv.prototype.getApiPaths=function(){return YaS};
lv.prototype.getExtension=function(e){return _.r(e,ix6)};
lv.prototype.JSC$14340_buildRequest=function(e,z){z.actions?e.actions=z.actions:z.action&&(e.actions=[z.action])};var Qm=function(){};
_.U(Qm,a6);Qm.prototype.getApiPaths=function(){return b$h};
Qm.prototype.getExtension=function(e){return _.r(e,_.dG)};
Qm.prototype.JSC$14340_buildRequest=function(e,z){z.token&&(e.continuation=z.token)};var mr=function(){};
_.U(mr,a6);mr.prototype.getApiPaths=function(){return VIa};
mr.prototype.getExtension=function(e){return _.r(e,_.dG)};
mr.prototype.JSC$14340_buildRequest=function(e,z){e.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";z.token&&(e.fetchCommentsParams={continuation:z.token})};var ay=function(){};
_.U(ay,a6);ay.prototype.getApiPaths=function(){return xQU};
ay.prototype.getExtension=function(e){return _.r(e,DwS)};
ay.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.createReplyParams&&(e.createReplyParams=z.createReplyParams);z.commentText&&(e.commentText=_.Zd(z.commentText));C.comment_text&&(e.commentText=C.comment_text);C.image_blob_id&&(e.imageAttachment={encryptedBlobId:C.image_blob_id});C.botguard_response&&(e.botguardResponse=C.botguard_response)};
_.lB.Object.defineProperties(ay.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nn=function(){};
_.U(nn,a6);nn.prototype.getApiPaths=function(){return TbY};
nn.prototype.getExtension=function(e){return _.r(e,_.dwg)};
nn.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.createCommentParams&&(e.createCommentParams=z.createCommentParams);z.commentText&&(e.commentText=_.Zd(z.commentText));z.videoPositionMention&&(e.videoPositionMention=z.videoPositionMention);z.sources&&(e.sources=z.sources);C.comment_text&&(e.commentText=C.comment_text);C.attached_video_id?e.videoAttachment={videoId:C.attached_video_id}:C.poll_options?e.pollAttachment={choices:C.poll_options}:C.image_blob_id?e.imageAttachment=
{encryptedBlobId:C.image_blob_id}:C.shared_post_id&&(e.sharedPostAttachment={postId:C.shared_post_id});C.access_restrictions&&typeof C.access_restrictions==="number"&&(z=C.access_restrictions,e.accessRestrictions={restriction:z!==1&&z===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});C.botguard_response&&(e.botguardResponse=C.botguard_response)};
_.lB.Object.defineProperties(nn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var MS=function(){};
_.U(MS,a6);MS.prototype.getApiPaths=function(){return UMU};
MS.prototype.getExtension=function(e){return _.r(e,s6L)};
MS.prototype.JSC$14340_buildRequest=function(e,z,C){z.commentText&&(e.replyText=_.Zd(z.commentText));C.comment_text&&(e.replyText=C.comment_text);e.updateReplyParams=z.updateReplyParams};
_.lB.Object.defineProperties(MS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rg=function(){};
_.U(rg,a6);rg.prototype.getApiPaths=function(){return v0T};
rg.prototype.getExtension=function(e){return _.r(e,NyT)};
rg.prototype.JSC$14340_buildRequest=function(e,z,C){z.commentText&&(e.commentText=_.Zd(z.commentText));C.comment_text&&(e.commentText=C.comment_text);e.updateCommentParams=z.updateCommentParams};
_.lB.Object.defineProperties(rg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var H_=function(){};
_.U(H_,a6);H_.prototype.getApiPaths=function(){return IQT};
H_.prototype.getExtension=function(e){return _.r(e,Nuh)};
H_.prototype.JSC$14340_buildRequest=function(e,z){z.settings&&(e.settings=z.settings)};var Ue=function(){};
_.U(Ue,a6);Ue.prototype.getApiPaths=function(){return Pc6};
Ue.prototype.getExtension=function(e){return _.r(e,nPS)};
Ue.prototype.JSC$14340_buildRequest=function(e,z){z.channelCreationToken&&(e.channelCreationToken=z.channelCreationToken);z.source&&(e.source=z.source)};var v_=function(){};
_.U(v_,a6);v_.prototype.getApiPaths=function(){return qaS};
v_.prototype.getExtension=function(e){return _.r(e,Hcg)};
v_.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;if(C.name&&(C.given_name||C.family_name))e=new _.uh("channel creation cannot set both GAIA and YouTube names",z),_.yG(e);else{if(z.zeroStepChannelCreationParams){if(!C.comment_text){e=new _.uh("zero_step_create_comment_params but no zero_step_texts",z);_.yG(e);return}e.zeroStepChannelCreationParams=z.zeroStepChannelCreationParams;e.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(e.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
C.comment_text,C.botguard_response&&(e.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=C.botguard_response))}e.channelCreationToken=z.channelCreationToken;C.given_name&&(e.givenName=C.given_name);C.family_name&&(e.familyName=C.family_name);z.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(e.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(C.name||C.handle||C.avatar_url||C.encryptedBlobId||C.isNameChanged!==void 0||C.isHandleChanged!==void 0||C.isDefaultProfilePhoto!==
void 0||C.obakeImageSource)e.overrideChannelCreationParams={},C.name&&(e.overrideChannelCreationParams.name=C.name),C.handle&&(e.overrideChannelCreationParams.handle=C.handle),C.avatar_url&&(e.overrideChannelCreationParams.avatarUrl=C.avatar_url),C.encryptedBlobId&&(e.overrideChannelCreationParams.blobEncryptionId=C.encryptedBlobId),C.enableIdentityForAllChannelCreationDialog&&(C.encryptedBlobId?e.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
C.isDefaultProfilePhoto!==void 0&&(e.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=C.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),C.isNameChanged!==void 0&&(e.overrideChannelCreationParams.identityForAllChannelCreationNameTag=C.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),C.isHandleChanged!==
void 0&&(e.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=C.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),C.obakeImageSource&&(e.overrideChannelCreationParams.obakeImageSourceType=C.obakeImageSource))}};var Iy=function(){};
_.U(Iy,a6);Iy.prototype.getApiPaths=function(e){return(e=this.getExtension(e))&&e.status==="DISLIKE"?MIo:e&&e.status==="INDIFFERENT"?GMg:j7a};
Iy.prototype.getExtension=function(e){return _.r(e,_.bt)};
Iy.prototype.JSC$14340_buildRequest=function(e,z){z.target&&(e.target=z.target);if(z=this.getParams(z))e.params=z};
Iy.prototype.getParams=function(e){switch(e==null?void 0:e.status){case "DISLIKE":return e.dislikeParams;case "INDIFFERENT":return e.removeLikeParams;default:return e==null?void 0:e.likeParams}};var W_=function(){};
_.U(W_,a6);W_.prototype.getApiPaths=function(){return lQs};
W_.prototype.getExtension=function(e){return _.r(e,cuo)};
W_.prototype.JSC$14340_buildRequest=function(e,z){z.settingItemId&&(e.settingItemId=z.settingItemId);z.stringValue!=null&&z.stringValue!==void 0?e.newValue={stringValue:z.stringValue}:z.intValue?e.newValue={intValue:z.intValue}:z.boolValue!==null&&z.boolValue!==void 0?e.newValue={boolValue:z.boolValue}:(e=new _.uh("Unknown value type for SetSettingEndpoint.",z),_.yG(e))};var P_=function(){};
_.U(P_,a6);P_.prototype.getApiPaths=function(){return aQc};
P_.prototype.getExtension=function(e){return _.r(e,xCo)||void 0};
P_.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.channelIds&&(e.channelIds=z.channelIds);z.siloName&&(e.siloName=z.siloName);z.params&&(e.params=z.params);C.botguardResponse&&(e.botguardResponse=C.botguardResponse);C.feature&&(e.clientFeature=C.feature)};
_.lB.Object.defineProperties(P_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ry=function(){};
_.U(Ry,a6);Ry.prototype.getApiPaths=function(){return MUY};
Ry.prototype.getExtension=function(e){return _.r(e,Auc)||void 0};
Ry.prototype.JSC$14340_buildRequest=function(e,z){z.channelIds&&(e.channelIds=z.channelIds);z.siloName&&(e.siloName=z.siloName);z.params&&(e.params=z.params)};
_.lB.Object.defineProperties(Ry.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ln=function(e){this.shareClientParamsProvider=e};
_.U(Ln,a6);Ln.prototype.getApiPaths=function(){return Zwg};
Ln.prototype.getExtension=function(e){return _.r(e,HEa)||_.r(e,_.Uea)||_.r(e,rY6)};
Ln.prototype.JSC$14340_buildRequest=function(e,z){z.serializedShareEntity&&(e.serializedSharedEntity=z.serializedShareEntity);if(z.clientParamIdentifier){var C;if((C=this.shareClientParamsProvider)==null?0:C.clientParams.has(z.clientParamIdentifier)){C=this.shareClientParamsProvider;z=z.clientParamIdentifier;var w=C.clientParams.get(z);w&&C.clientParams.delete(z);e.clientParams=w}}};
Ln[Qj]=[zj3];var hb=function(){};
_.U(hb,a6);hb.prototype.getApiPaths=function(){return zcC};
hb.prototype.getExtension=function(e){return _.r(e,cpg)};
hb.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var Oe=function(){};
_.U(Oe,a6);Oe.prototype.getApiPaths=function(){return rra};
Oe.prototype.getExtension=function(e){return _.r(e,gKg)};
Oe.prototype.JSC$14340_buildRequest=function(e,z){z.dismissal&&(e.items=[z.dismissal])};
_.lB.Object.defineProperties(Oe.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ee=function(){};
_.U(Ee,a6);Ee.prototype.getApiPaths=function(){return tIg};
Ee.prototype.getExtension=function(e){return _.r(e,_.iH)||void 0};
Ee.prototype.JSC$14340_buildRequest=function(e,z,C){e.feedbackTokens=[];z.feedbackToken&&e.feedbackTokens.push(z.feedbackToken);if(z=z.cpn||C.cpn)e.feedbackContext={cpn:z};e.isFeedbackTokenUnencrypted=!!C.is_feedback_token_unencrypted;e.shouldMerge=!1;C.extra_feedback_tokens&&(e.shouldMerge=!0,e.feedbackTokens=e.feedbackTokens.concat(C.extra_feedback_tokens))};
_.lB.Object.defineProperties(Ee.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FI=function(){};
_.U(FI,a6);FI.prototype.getApiPaths=function(){return tIg};
FI.prototype.getExtension=function(e){return _.r(e,_.bd)};
FI.prototype.JSC$14340_buildRequest=function(e,z,C){C.feedback_tokens&&(e.feedbackTokens=C.feedback_tokens,e.shouldMerge=!0)};
_.lB.Object.defineProperties(FI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Vm=function(){};
_.U(Vm,a6);Vm.prototype.getApiPaths=function(){return tIg};
Vm.prototype.getExtension=function(e){return _.r(e,QU1)};
Vm.prototype.JSC$14340_buildRequest=function(e,z){z.undoToken&&(e.feedbackTokens=[z.undoToken]);z.isUndoTokenUnencrypted&&(e.isFeedbackTokenUnencrypted=z.isUndoTokenUnencrypted)};
_.lB.Object.defineProperties(Vm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fn=function(){};
_.U(fn,a6);fn.prototype.getApiPaths=function(){return hEc};
fn.prototype.getExtension=function(e){return _.r(e,srL)};
fn.prototype.JSC$14340_buildRequest=function(e,z){z.nextEndpoint&&_.r(z.nextEndpoint,_.oO)?e.nextEndpoint={urlEndpoint:_.r(z.nextEndpoint,_.oO)}:z.nextEndpoint&&_.r(z.nextEndpoint,_.N$)&&(e.nextEndpoint={watchEndpoint:_.r(z.nextEndpoint,_.N$)});z.setRacy&&(e.setRacy=z.setRacy);z.setControvercy&&(e.setControvercy=z.setControvercy)};var B_=function(e){this.JSC$18339_storeWithEntities=e};
_.U(B_,a6);B_.prototype.getApiPaths=function(){return UQY};
B_.prototype.getExtension=function(e){return _.r(e,QYC)};
B_.prototype.JSC$14340_buildRequest=function(e,z){z.flowId&&(e.flowId=z.flowId);z.targetId&&(e.targetId=z.targetId);z.continuation&&(e.continuation=z.continuation);var C=z.flowStateEntityKey;if(z.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&C&&this.JSC$18339_storeWithEntities){var w;if(z=(w=this.JSC$18339_storeWithEntities.getState())==null?void 0:w.entities)if(w=_.Xn(C).entityType,w=_.xz(z,w,C))e.flowState=w,e.flowStateEntityKey=C}};
_.lB.Object.defineProperties(B_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
B_[Qj]=[$3];var Waq=function(){};
_.U(Waq,a6);_.Y=Waq.prototype;_.Y.getApiPaths=function(){return Bbs};
_.Y.JSC$14347_getStoreKey=function(){return _.iY("guide")};
_.Y.getRequestConfig=function(){var e=this.JSC$14347_getStoreKey(),z;e&&(z={storeStrategy:{storeKey:e}});return z};
_.Y.isNavigationCommand=function(){return!0};
_.Y.getExtension=function(e){return _.r(e,_.bd)};
_.Y.JSC$14340_buildRequest=function(e){e.fetchLiveState=!0};var tb=function(){};
_.U(tb,a6);tb.prototype.getApiPaths=function(){return oUa};
tb.prototype.getExtension=function(e){return _.r(e,fCU)};
tb.prototype.JSC$14340_buildRequest=function(){};var gg=function(){};
_.U(gg,a6);gg.prototype.getApiPaths=function(){return G_6};
gg.prototype.getExtension=function(e){return _.r(e,SWs)};
gg.prototype.JSC$14340_buildRequest=function(){};var ji=function(){};
_.U(ji,a6);ji.prototype.getApiPaths=function(){return eca};
ji.prototype.getExtension=function(e){return _.r(e,_.dG)};
ji.prototype.JSC$14340_buildRequest=function(e,z){z.token&&(e.continuation=z.token);var C,w;e==null||(C=e.context)==null||(w=C.user)==null||delete w.onBehalfOfUser};
ji.prototype.getRequestConfig=function(e){var z={},C;if(((C=this.getExtension(e))==null?void 0:C.sessionIndex)!==void 0){var w;z={authStrategy:{sessionIndex:(w=this.getExtension(e))==null?void 0:w.sessionIndex}}}return z};var ym=function(){};
_.U(ym,a6);ym.prototype.JSC$14340_getRequest=function(e){var z=this.getExtension(e),C=e="";if(z==null?0:z.popup)e="true";if(z==null?0:z.disableSignout)C="true";z={};return{input:"/getAccountSwitcherEndpoint",requestShell:DP("/getAccountSwitcherEndpoint","GET",(z["X-YouTube-Delegation-Context"]=_.j5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),z["X-YouTube-Account-Switcher-Popup"]=e,z["X-YouTube-Account-Switcher-Disable-Signout"]=C,z)),innerTubeRequest:{}}};
ym.prototype.getApiPaths=function(){return[]};
ym.prototype.getExtension=function(e){return _.r(e,_.Pq4)};
ym.prototype.JSC$14340_buildRequest=function(){};var c_=function(){};
_.U(c_,a6);c_.prototype.JSC$14340_getRequest=function(e){var z="/cross_account_channel_transfer";(e=this.getExtension(e))&&(z=prh(z,{target_session:e.targetSessionIndex,source_rapt:e.sourceRapt,rapt:e.targetRapt}));return{input:z,requestShell:DP(z,"GET"),innerTubeRequest:{}}};
c_.prototype.getApiPaths=function(){return[]};
c_.prototype.getExtension=function(e){return _.r(e,fv4)};
c_.prototype.JSC$14340_buildRequest=function(){};var Ab=function(){};
_.U(Ab,a6);Ab.prototype.getApiPaths=function(){return vUT};
Ab.prototype.isNavigationCommand=function(){return!0};
Ab.prototype.getExtension=function(e){return _.r(e,_.bd)};
Ab.prototype.JSC$14340_buildRequest=function(e){var z=_.Tj().get("gsml","");z&&(e.safetyModeLockerObfuscatedGaiaId=z);e.userInterfaceTheme=_.i6(!0);_.Np()?e.deviceTheme="DEVICE_THEME_SELECTED":_.xQE()?e.deviceTheme="DEVICE_THEME_SUPPORTED":e.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Zp=function(){};
_.U(Zp,a6);Zp.prototype.getApiPaths=function(){return eca};
Zp.prototype.getExtension=function(e){return _.r(e,Sna)};
Zp.prototype.JSC$14340_buildRequest=function(e,z){if(z&&z.requestType&&(e.requestType=z.requestType,z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var C=z.nextUrl;C&&(_.zNg(C)||xB(C))&&(e.nextNavendpoint={urlEndpoint:{url:C}})}z&&z.channelSwitcherQuery&&(e.channelSwitcherQuery=z.channelSwitcherQuery);z&&z.triggerChannelCreation&&(e.triggerChannelCreation=z.triggerChannelCreation);var w;if(z==null?0:(w=z.contentOwnerConfig)==
null?0:w.externalContentOwnerId)e.contentOwnerConfig=z.contentOwnerConfig;e.callCircumstance=z&&z.requestType&&z.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var K,G;z=e==null?void 0:(K=e.context)==null?void 0:(G=K.user)==null?void 0:G.onBehalfOfUser;if(z!==void 0){e.obfuscatedSelectedGaiaId=z;var X,J;e==null||(X=e.context)==null||(J=X.user)==null||delete J.onBehalfOfUser}var q,T;if(K=e==null?void 0:(q=e.context)==null?void 0:(T=q.user)==null?
void 0:T.serializedDelegationContext)e.selectedSerializedDelegationContext=K};var pn=function(){};
_.U(pn,a6);pn.prototype.getApiPaths=function(){return Ccs};
pn.prototype.getExtension=function(e){return _.r(e,vqg)};
pn.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var eX=function(){};
_.U(eX,a6);eX.prototype.getApiPaths=function(){return k_4};
eX.prototype.getExtension=function(e){return _.r(e,_.fMT)};
eX.prototype.JSC$14340_buildRequest=function(e,z){if(z=z.createBroadcastRequest)e.useMasks=z.useMasks,e.broadcastType=z.broadcastType,e.broadcastSource=z.broadcastSource,e.broadcastMetadata=z.broadcastMetadata,e.broadcastMetadataMask=z.broadcastMetadataMask,e.videoMetadata=z.videoMetadata,e.videoMetadataMask=z.videoMetadataMask,e.liveChatSettingsUpdate=z.liveChatSettingsUpdate,e.liveChatSettingsUpdateMask=z.liveChatSettingsUpdateMask,e.cloneVideoId=z.cloneVideoId,e.cloneWithOverrides=z.cloneWithOverrides,
e.targetEntity=z.targetEntity,e.scheduledRedirectMetadata=z.scheduledRedirectMetadata};var zf=function(){};
_.U(zf,a6);zf.prototype.getApiPaths=function(){return $Qo};
zf.prototype.getExtension=function(e){return _.r(e,Ptc)};
zf.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.params&&(e.params=z.params);C.questionText&&(e.questionText=C.questionText);C.optionText&&C.optionText.length>0&&(e.optionText=C.optionText)};var CI=function(){};
_.U(CI,a6);CI.prototype.getApiPaths=function(){return mQc};
CI.prototype.getExtension=function(e){return _.r(e,Iwo)};
CI.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var w8=function(){};
_.U(w8,a6);w8.prototype.getApiPaths=function(){return LvC};
w8.prototype.getExtension=function(e){return _.r(e,riX)};
w8.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var KI=function(){};
_.U(KI,a6);KI.prototype.getApiPaths=function(){return O$Y};
KI.prototype.getExtension=function(e){return _.r(e,HHX)};
KI.prototype.JSC$14340_buildRequest=function(e,z,C){z.params&&(e.params=z.params);z.continuation&&(e.continuation=z.continuation);C.currentPlayerState&&C.currentPlayerState.playerOffsetMs&&(e.currentPlayerState={playerOffsetMs:C.currentPlayerState.playerOffsetMs.toString()})};var oL=function(){};
_.U(oL,a6);oL.prototype.getApiPaths=function(){return EUc};
oL.prototype.getExtension=function(e){return _.r(e,MkC)};
oL.prototype.JSC$14340_buildRequest=function(e,z,C){z.params&&(e.params=z.params);C.continuation&&(e.continuation=C.continuation);"hidden"in C&&(e.webClientInfo={isDocumentHidden:C.hidden});C.isInvalidationTimeoutRequest&&(e.isInvalidationTimeoutRequest=C.isInvalidationTimeoutRequest);C.invalidationPayload&&(z=nRg(_.po(TN(C.invalidationPayload))),e.invalidationPayloadLastPublishAtUsec=NI(z,2));C.reloadActionPanel&&(e.reloadActionPanel=C.reloadActionPanel);C.fullReload&&(e.fullReload=C.fullReload);
C.currentPlayerState&&(e.currentPlayerState=C.currentPlayerState)};var Gf=function(){};
_.U(Gf,a6);Gf.prototype.getApiPaths=function(){return yrs};
Gf.prototype.getExtension=function(e){return _.r(e,Wua)};
Gf.prototype.JSC$14340_buildRequest=function(e,z){e.params=z.params};var YS=function(){};
_.U(YS,a6);YS.prototype.getApiPaths=function(){return hcX};
YS.prototype.getExtension=function(e){return _.r(e,iEh)};
YS.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var br=function(){};
_.U(br,a6);br.prototype.getApiPaths=function(){return Fvo};
br.prototype.getExtension=function(e){return _.r(e,NXs)};
br.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var XT=function(){};
_.U(XT,a6);XT.prototype.getApiPaths=function(){return crs};
XT.prototype.getExtension=function(e){return _.r(e,Rfh)};
XT.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var Jj=function(){};
_.U(Jj,a6);Jj.prototype.getApiPaths=function(){return Z$4};
Jj.prototype.getExtension=function(e){return _.r(e,LuT)};
Jj.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var kS=function(){};
_.U(kS,a6);kS.prototype.getApiPaths=function(){return YdU};
kS.prototype.getExtension=function(e){return _.r(e,Pzc)};
kS.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var qy=function(){};
_.U(qy,a6);qy.prototype.getApiPaths=function(){return TF6};
qy.prototype.getExtension=function(e){return _.r(e,_.hfh)};
qy.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.params&&(e.params=z.params);C.client_message_id&&(e.clientMessageId=C.client_message_id);C.recaptcha_token&&(e.recaptchaToken=C.recaptcha_token);C.rich_message&&C.rich_message.text_segments?(z=C.rich_message.text_segments.map(function(w){var K={};w.text&&(K.text=w.text);w.emoji_id&&(K.emojiId=w.emoji_id);return K}),e.richMessage={textSegments:z}):C.message&&(e.message=C.message);
C.currentPlayerState&&(e.currentPlayerState=C.currentPlayerState)};var xS=function(){};
_.U(xS,a6);xS.prototype.getApiPaths=function(){return $MX};
xS.prototype.getExtension=function(e){return _.r(e,OHU)};
xS.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var Tf=function(){};
_.U(Tf,a6);Tf.prototype.getApiPaths=function(){return n0o};
Tf.prototype.getExtension=function(e){return _.r(e,FuC)};
Tf.prototype.JSC$14340_buildRequest=function(e,z,C){z.isUserInitiated&&(e.isUserInitiated=z.isUserInitiated);z.initiationSource&&(e.initiationSource=z.initiationSource);C.locationInfo&&(e.context.client.locationInfo=C.locationInfo)};var $S=function(){};
_.U($S,a6);$S.prototype.getApiPaths=function(){return ArX};
$S.prototype.getExtension=function(e){return _.r(e,Ssa)};
$S.prototype.JSC$14340_buildRequest=function(e,z,C){z.metadataUpdateRequest&&(z=z.metadataUpdateRequest,e.encryptedVideoId=z.encryptedVideoId,z.liveChat&&(z=z.liveChat,e.liveChat||(e.liveChat={}),z.performAsExternalChannelId&&(e.liveChat.performAsExternalChannelId=z.performAsExternalChannelId),z.source&&(e.liveChat.source=z.source)));var w;if(C==null?0:(w=C.liveChat)==null?0:w.liveChatSettings)e.liveChat||(e.liveChat={}),C=C.liveChat.liveChatSettings,e.liveChat.newLiveChatSettings=C,e.liveChat.newLiveChatSettingsMask||
(e.liveChat.newLiveChatSettingsMask={}),C.emojiReactionSet&&(e.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var lr=function(){};
_.U(lr,a6);lr.prototype.getApiPaths=function(){return RE4};
lr.prototype.getExtension=function(e){return _.r(e,_.Zxa)};
lr.prototype.JSC$14340_buildRequest=function(e,z,C){C.continuation?e.continuation=C.continuation:z.videoId&&(e.videoId=z.videoId);C.clientParams&&(e.clientParams=C.clientParams)};var Qv=function(){};
_.U(Qv,a6);Qv.prototype.getApiPaths=function(){return VIa};
Qv.prototype.getExtension=function(e){return _.r(e,_.TC)};
Qv.prototype.JSC$14340_buildRequest=function(e,z){e.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";e.fetchCommentsParams={};z.videoId&&(e.fetchCommentsParams.encryptedVideoId=z.videoId);z.postId&&(e.fetchCommentsParams.postId=z.postId);z.externalChannelId&&(e.fetchCommentsParams.externalChannelId=z.externalChannelId);z.linkedCommentId&&(e.fetchCommentsParams.linkedCommentId=z.linkedCommentId);(0,_.de.isEmpty)(e.fetchCommentsParams)&&delete e.fetchCommentsParams};var mH=function(){};
_.U(mH,a6);mH.prototype.getApiPaths=function(){return CM};
mH.prototype.JSC$14340_buildRequest=function(e){e.browseId="FEnotifications_inbox"};
mH.prototype.getExtension=function(e){return _.r(e,_.bd)};var aL=function(){};
_.U(aL,a6);aL.prototype.getApiPaths=function(){return VIa};
aL.prototype.JSC$14340_buildRequest=function(e,z){z.signal==="GET_NOTIFICATIONS_MENU"&&(e.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");z.ctoken&&(e.ctoken=z.ctoken)};
var PZY=function(){};
_.U(PZY,aL);PZY.prototype.getExtension=function(e){return _.r(e,_.bd)};
var Rvl=function(){};
_.U(Rvl,aL);Rvl.prototype.getExtension=function(e){return _.r(e,DVY)};var nI=function(){};
_.U(nI,a6);nI.prototype.getApiPaths=function(){return i$c};
nI.prototype.getExtension=function(e){return _.r(e,_.bd)};
nI.prototype.JSC$14340_buildRequest=function(){};var My=function(){};
_.U(My,a6);My.prototype.getApiPaths=function(){return pK6};
My.prototype.getExtension=function(e){return _.r(e,gVs)||void 0};
My.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params);z.secondaryParams&&(e.secondaryParams=z.secondaryParams)};var r8=function(){};
_.U(r8,a6);r8.prototype.getApiPaths=function(){return eEY};
r8.prototype.getExtension=function(e){return _.r(e,ISL)};
r8.prototype.JSC$14340_buildRequest=function(e,z){z.undo&&(e.undo=z.undo);z.serializedOptOut&&(e.serializedOptOut=z.serializedOptOut);z.serializedRecordInteractionsRequest&&(e.serializedRecordInteractionsRequest=z.serializedRecordInteractionsRequest)};var H6=function(){};
_.U(H6,a6);H6.prototype.getApiPaths=function(){return wOa};
H6.prototype.getExtension=function(e){return _.r(e,WFc)};
H6.prototype.JSC$14340_buildRequest=function(e,z){z.serializedInteractionsRequest&&(e.serializedRecordNotificationInteractionsRequest=z.serializedInteractionsRequest)};var Ul=function(){};
_.U(Ul,a6);Ul.prototype.getApiPaths=function(){return pNo};
Ul.prototype.getExtension=function(e){return _.r(e,_.e3)};
Ul.prototype.JSC$14340_buildRequest=function(e,z,C){z=z===void 0?{}:z;C=C===void 0?{}:C;z.videoId?e.videoId=z.videoId:z.playlistId&&(e.playlistId=z.playlistId);var w;e.crossDeviceDownloadData={isCrossDeviceDownload:(w=z.isCrossDeviceDownload)!=null?w:!1};!C.downloadToMobileEduShown&&z.isCrossDeviceDownload&&(e.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var K;if(w=(K=z.offlineWebClientEligibility)!=null?K:C.offlineWebClientEligibility)e.offlineWebClientEligibility=w;var G;if(K=(G=z.preferredFormatType)!=
null?G:C.preferredFormatType)e.preferredFormatType=K;var X;if(G=(X=z.lastOfflineQualitySettingsSavedMs)!=null?X:C.lastOfflineQualitySettingsSavedMs)e.lastOfflineQualitySettingsSavedMs=G;z.params&&(e.params=z.params)};var v6=function(){};
_.U(v6,a6);v6.prototype.getApiPaths=function(){return FD};
v6.prototype.getExtension=function(e){return _.r(e,_.dG)};
v6.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.token&&(e.continuation=z.token);C.formData&&(e.formData=C.formData)};var IL=function(){};
_.U(IL,a6);IL.prototype.getApiPaths=function(){return FD};
IL.prototype.getExtension=function(e){return _.r(e,hK6)};
IL.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;e.continuation=C.continuation};var W6=function(){};
_.U(W6,a6);W6.prototype.getApiPaths=function(){return FD};
W6.prototype.getExtension=function(e){return _.r(e,_.Dr)};
W6.prototype.JSC$14340_buildRequest=function(e,z){var C,w=z.panelIdentifier||((C=z.identifier)==null?void 0:C.tag);w&&(e.panelId=w);var K;if((K=z.globalConfiguration)==null?0:K.params){var G;e.params=(G=z.globalConfiguration)==null?void 0:G.params}if(_.M("enable_ai_companion")){var X;z=z.engagementPanelExtras;if(z==null?0:(X=z.aiCompanionPanelExtras)==null?0:X.includeClientConversationId){var J,q;X=(q=(J=_.lh().resolve(_.$B(XV3)))==null?void 0:J("conversations"))==null?void 0:q.get("conversation_id")}else X=
void 0;if(J=X)e.formData=Object.assign({},e.formData,{inputComposerFormData:{conversationId:J}})}};
_.lB.Object.defineProperties(W6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var P6=function(){};
_.U(P6,a6);P6.prototype.getApiPaths=function(){return FD};
P6.prototype.getExtension=function(e){return _.r(e,Q0c)};
P6.prototype.JSC$14340_buildRequest=function(e,z){z.panelLoadingStrategy&&K4k(e,z.panelLoadingStrategy)};var RL=function(){};
_.U(RL,a6);RL.prototype.getApiPaths=function(){return FD};
RL.prototype.getExtension=function(e){return _.r(e,ura)};
RL.prototype.JSC$14340_buildRequest=function(e,z){z.loadingStrategy&&K4k(e,z.loadingStrategy)};var LI=function(){};
_.U(LI,a6);LI.prototype.getApiPaths=function(){return FD};
LI.prototype.getExtension=function(e){return _.r(e,_.L7)};
LI.prototype.JSC$14340_buildRequest=function(e,z){z.panelLoadingStrategy&&K4k(e,z.panelLoadingStrategy)};var hj=function(){};
_.U(hj,a6);hj.prototype.getApiPaths=function(){return FD};
hj.prototype.getExtension=function(e){return _.r(e,deo)};
hj.prototype.JSC$14340_buildRequest=function(e,z){var C,w=(C=z.contentSourcePanelIdentifier)==null?void 0:C.tag;w&&(e.panelId=w);var K;if((K=z.globalConfiguration)==null?0:K.params){var G;e.params=(G=z.globalConfiguration)==null?void 0:G.params}};var Ol=function(){};
_.U(Ol,a6);Ol.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Ol.prototype.getExtension=function(e){return _.r(e,DeX)};
Ol.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var El=function(){};
_.U(El,a6);El.prototype.getApiPaths=function(){return PWT};
El.prototype.getExtension=function(e){return _.r(e,sQC)};
El.prototype.JSC$14340_buildRequest=function(e,z){z.externalChannelId&&(e.externalChannelId=z.externalChannelId);z.superChatAction&&(e.superChatAction=z.superChatAction);z.superStickersAction&&(e.superStickersAction=z.superStickersAction)};var FT=function(){};
_.U(FT,a6);FT.prototype.getApiPaths=function(){return IRT};
FT.prototype.getExtension=function(e){return _.r(e,VwC)||_.r(e,SI1)};
FT.prototype.JSC$14340_buildRequest=function(e,z){z.videoIds?e.videoIds=z.videoIds:z.videoId&&(e.videoIds=[z.videoId]);z.playlistId&&(e.playlistId=z.playlistId);z.params&&(e.params=z.params);e.excludeWatchLater=!1};var Vv=function(){};
_.U(Vv,a6);Vv.prototype.getApiPaths=function(){return lRh};
Vv.prototype.getExtension=function(e){return _.r(e,_.rA)};
Vv.prototype.JSC$14340_buildRequest=function(e,z,C){C.create_playlist_title?e.title=C.create_playlist_title:z.title&&(e.title=z.title);if(C.create_playlist_privacy_status&&typeof C.create_playlist_privacy_status==="number"){a:{var w=C.create_playlist_privacy_status;if(w!==0){if(w===1){w="PUBLIC";break a}if(w===2){w="UNLISTED";break a}}w="PRIVATE"}e.privacyStatus=w}else z.privacyStatus&&(e.privacyStatus=z.privacyStatus);C.create_playlist_description&&(e.description=C.create_playlist_description);z.videoIds&&
(e.videoIds=z.videoIds);z.params&&(e.params=z.params);z.sourcePlaylistId&&(e.sourcePlaylistId=z.sourcePlaylistId)};var fI=function(){};
_.U(fI,a6);fI.prototype.getApiPaths=function(){return aRc};
fI.prototype.getExtension=function(e){return _.r(e,By4)};
fI.prototype.JSC$14340_buildRequest=function(e,z){e.playlistId=z.playlistId};var SX=function(){};
_.U(SX,a6);SX.prototype.getApiPaths=function(){return fRL};
SX.prototype.getExtension=function(e){return _.r(e,nqC)};
SX.prototype.JSC$14340_buildRequest=function(e,z){z.playlistId&&(e.playlistId=z.playlistId);z.params&&(e.params=z.params)};var ur=function(){};
_.U(ur,a6);ur.prototype.getApiPaths=function(){return CW4};
ur.prototype.getExtension=function(e){return _.r(e,_.$R)||void 0};
ur.prototype.JSC$14340_buildRequest=function(e,z){z.actions&&(e.actions=z.actions);z.params&&(e.params=z.params);z.playlistId&&(e.playlistId=z.playlistId)};var d8=function(){};
_.U(d8,a6);_.Y=d8.prototype;_.Y.getApiPaths=function(){return Kq6};
_.Y.getExtension=function(e){return _.r(e,_.rP)};
_.Y.JSC$14340_buildRequest=function(e,z){z.videoId&&(e.playerRequest={videoId:z.videoId},z.playerParams&&(e.playerRequest.params=z.playerParams),z.racyCheckOk&&(e.playerRequest.racyCheckOk=!!z.racyCheckOk),z.contentCheckOk&&(e.playerRequest.contentCheckOk=!!z.contentCheckOk));z.params&&(e.params=z.params);z.inputType&&(e.inputType=z.inputType);e.disablePlayerResponse=!0};
_.Y.getRequestConfig=function(e){var z;(e=this.JSC$14347_getStoreKey(e))&&(z={storeStrategy:{storeKey:e}});_.M("web_log_reels_ticks")&&(z=z||{},z.requestTick="r_wrs",z.responseTick="r_wrr");return z};
_.Y.JSC$14347_getStoreKey=function(e){e=this.getExtension(e);if(e!=null&&e.videoId){var z={videoId:e.videoId};e.params&&(z.params=e.params);return _.iY("reel_item_watch",z)}};var DY=function(){};
_.U(DY,a6);_.Y=DY.prototype;_.Y.getApiPaths=function(){return o04};
_.Y.getExtension=function(e){return _.r(e,_.rP)};
_.Y.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;e.sequenceParams=z.sequenceParams;var w;((w=C)==null?0:w.contentPlaybackContext)&&_.M("web_shorts_prefetch_service_enabled")&&(e.playbackContext={contentPlaybackContext:C.contentPlaybackContext})};
_.Y.JSC$14347_getStoreKey=function(e){if(_.M("shorts_controller_retrieve_seedless_sequence_v2")&&(e=this.getExtension(e),e==null?0:e.sequenceParams))return _.iY("reel_watch_sequence",{sequenceParams:e.sequenceParams})};
_.Y.getRequestConfig=function(e){e=this.JSC$14347_getStoreKey(e);var z;e&&(z={storeStrategy:{storeKey:e}});z=z||{};z.requestTick="r_wsrs";z.responseTick="r_wsrr";z.processorTick="r_wsrp";return z};
var ir=function(){};
_.U(ir,a6);ir.prototype.getApiPaths=function(){return o04};
ir.prototype.getExtension=function(e){return _.r(e,_.dG)};
ir.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.token&&(e.continuation=z.token);var w;((w=C)==null?0:w.contentPlaybackContext)&&_.M("web_shorts_prefetch_service_enabled")&&(e.playbackContext={contentPlaybackContext:C.contentPlaybackContext})};
ir.prototype.getRequestConfig=function(e){e=this.JSC$14347_getStoreKey(e);var z;e&&(z={storeStrategy:{storeKey:e}});z=z||{};z.requestTick="r_wsrs";z.responseTick="r_wsrr";z.processorTick="r_wsrp";return z};var Ny=function(){};
_.U(Ny,a6);Ny.prototype.getApiPaths=function(){return H$s};
Ny.prototype.getExtension=function(e){return _.r(e,_.xBs)};
Ny.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.flagAction&&(e.action=z.flagAction);z.flagRequestType&&(e.flagRequestType=z.flagRequestType);z.additionalDetailCheckboxChecked&&(e.additionalDetailCheckboxChecked=z.additionalDetailCheckboxChecked);z.legalCheckboxChecked&&(e.legalCheckboxChecked=z.legalCheckboxChecked);z={};C.flag_issue_type!==void 0&&(z.issue=C.flag_issue_type);C.flag_affiliation!==void 0&&(z.affiliation=C.flag_affiliation);C.flag_full_name&&(z.fullName=C.flag_full_name);
Object.keys(z).length&&(e.legalReportDetails=z);if(C.flag_description||C.text)e.userComments=C.flag_description||C.text;z={};C.minutes!==void 0&&C.seconds!==void 0&&(z.minutes=C.minutes,z.seconds=C.seconds);C.vss_id&&(z.vssId=C.vss_id);Object.keys(z).length&&(e.videoReportDetails=z);z={};C.video_ids&&(z.videoIds=C.video_ids);C.impersonated_channel_url&&(z.impersonatedChannelUrl=C.impersonated_channel_url);Object.keys(z).length&&(e.channelAbuseReportDetails=z)};
_.lB.Object.defineProperties(Ny.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sl=function(){};
_.U(sl,a6);sl.prototype.getApiPaths=function(){return Rc4};
sl.prototype.getExtension=function(e){return _.r(e,NUS)};
sl.prototype.JSC$14340_buildRequest=function(e,z){z.blockedForKidsContent&&(e.blockedForKidsContent=z.blockedForKidsContent)};var B6=function(){};
_.U(B6,a6);B6.prototype.getApiPaths=function(){return bDh};
B6.prototype.getExtension=function(e){return _.r(e,fUg)};
B6.prototype.JSC$14340_buildRequest=function(e,z,C){e.params=z.params;C.impersonated_channel_url&&(e.impersonatedChannelUrl=C.impersonated_channel_url)};var tj=function(){};
_.U(tj,a6);tj.prototype.getApiPaths=function(){return gU6};
tj.prototype.getExtension=function(e){return _.r(e,_.sYS)};
tj.prototype.JSC$14340_buildRequest=function(e,z){z.items&&(e.items=z.items);z.kidGaiaId&&(e.kidGaiaId=z.kidGaiaId)};var g8=function(){};
_.U(g8,a6);g8.prototype.getApiPaths=function(){return Wv6};
g8.prototype.getExtension=function(e){return _.r(e,_.OxX)};
g8.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params);z.targetId&&(e.targetId=z.targetId)};var jX=function(){};
_.U(jX,a6);jX.prototype.getApiPaths=function(){return qdh};
jX.prototype.getExtension=function(e){return _.r(e,irS)};
jX.prototype.JSC$14340_buildRequest=function(e,z){z.externalVideoId&&(e.externalVideoId=z.externalVideoId);z.query&&(e.query=z.query);z.sourceTimelines&&(e.sourceTimelines=z.sourceTimelines)};var yv=function(){};
_.U(yv,a6);yv.prototype.getApiPaths=function(){return xMS};
yv.prototype.getExtension=function(e){return _.r(e,_.dG)||void 0};
yv.prototype.JSC$14340_buildRequest=function(e,z){z.token&&(e.continuation=z.token)};
_.La$=function(){};
_.U(_.La$,a6);_.Y=_.La$.prototype;_.Y.getApiPaths=function(){return xMS};
_.Y.getExtension=function(e){return _.r(e,_.ag)||void 0};
_.Y.isNavigationCommand=function(){return!0};
_.Y.JSC$14347_getStoreKey=function(e,z){z=z===void 0?{}:z;if(!z.disableCache&&(e=this.getExtension(e))&&e.query)return z={query:e.query},e.params&&(z.params=e.params),_.iY("search",z)};
_.Y.JSC$14340_buildRequest=function(e,z,C){z.query&&(e.query=z.query);z.params&&(e.params=z.params);if(!_.M("web_forward_suggest_stats_killswitch")){var w=_.r(z,xe6);w&&(e.suggestStats=w)}var K;!_.M("kevlar_searchbox_stats_killswitch")&&((K=C.tempData)==null?0:K.gs_l)&&!_.r(z,xe6)&&(e.webSearchboxStatsUrl="/search?oq="+(C.tempData.oq||"")+"&gs_l="+C.tempData.gs_l);var G;if((G=C.tempData)==null?0:G.entityMid)z=e.suggestionSearchParams||{},z.entityMid=C.tempData.entityMid,e.suggestionSearchParams=z;
if(_.M("enable_desktop_vdcbg_components")||_.M("enable_inline_muted_playback_on_web_search"))z=_.Tj().getFlag(186),e.inlineSettingStatus=z?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";C.isFromShorts&&(e.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.Y.getRequestConfig=function(e,z){z=z===void 0?{}:z;e=this.JSC$14347_getStoreKey(e,z);var C;e&&(C={storeStrategy:{storeKey:e}});_.M("web_log_search_ticks_ks")||(C=C||{},C.requestTick="sr_s",C.responseTick="sr_r");return C};var c6=function(){};
_.U(c6,a6);c6.prototype.getApiPaths=function(){return dQa};
c6.prototype.getExtension=function(e){return _.r(e,w$X)};
c6.prototype.JSC$14340_buildRequest=function(e,z){z.serializedGetSharingProviderDataParams&&(e.serializedGetSharingProviderDataParams=z.serializedGetSharingProviderDataParams)};var Aj=function(){};
_.U(Aj,a6);Aj.prototype.getApiPaths=function(){return DQC};
Aj.prototype.getExtension=function(e){return _.r(e,bAh)};
Aj.prototype.JSC$14340_buildRequest=function(e,z){z.endpoint&&(e.endpoint=z.endpoint);z.action&&(e.action=z.action)};var ZY=function(){};
_.U(ZY,a6);ZY.prototype.getApiPaths=function(){return nUU};
ZY.prototype.getExtension=function(e){return _.r(e,twC)};
ZY.prototype.JSC$14340_buildRequest=function(e,z){e.videoId=z.videoId;z.scheduledRedirectMetadataSourceVideoId&&(e.scheduledRedirectMetadata={sourceVideoId:z.scheduledRedirectMetadataSourceVideoId})};var pI=function(){};
_.U(pI,a6);pI.prototype.getApiPaths=function(){return QzT};
pI.prototype.getExtension=function(e){return _.r(e,_.s06)};
pI.prototype.JSC$14340_buildRequest=function(e,z){e.params=z.params;e.correctionText=z.correctionText};var eb=function(){};
_.U(eb,a6);eb.prototype.getApiPaths=function(){return cDE};
eb.prototype.getExtension=function(e){return _.r(e,_.NDc)};
eb.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params);e.searchQuery=z.searchQuery;e.languageCode=z.languageCode;e.kind=z.kind;e.name=z.name;e.externalVideoId=z.externalVideoId};var zG=function(){};
_.U(zG,a6);zG.prototype.getApiPaths=function(){return E0s};
zG.prototype.getExtension=function(e){return _.r(e,G$a)};
zG.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.params=z.params)};var C_=function(e){this.JSC$18615_storeWithEntities=e};
_.U(C_,a6);C_.prototype.getApiPaths=function(){return XKL};
C_.prototype.getExtension=function(e){return _.r(e,bTU)||_.r(e,JBg)};
C_.prototype.JSC$14340_buildRequest=function(e,z,C){C.client_data&&(e.clientData=C.client_data);if(z.commerceActionConfig){var w=z.commerceActionConfig;z=w.actionId;w=w.commerceActionParams;z&&(e.actionId=z);w&&(e.commerceActionParams=w)}else{var K=z.actionId,G=z.commerceActionParams;C=z.entityKeys;K&&(e.actionId=K);G&&(e.commerceActionParams=G);var X;z=(w=this.JSC$18615_storeWithEntities)==null?void 0:(X=w.getState())==null?void 0:X.entities;if(C&&z){w=[];X=_.b(C);for(C=X.next();!C.done;C=X.next())if(K=
C.value,C=_.Xn(K).entityType,K=_.xz(z,C,K))G={},w.push((G[C]=K,G));e.entityMutationPayloads=w}}};
C_.prototype.getRequestConfig=function(e){var z,C=(z=_.r(e,bTU))==null?void 0:z.requestSequenceType;if(C&&e.clickTrackingParams&&C!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:e.clickTrackingParams,sequenceType:C}}};
C_[Qj]=[$3];var w7=function(){};
_.U(w7,a6);w7.prototype.getApiPaths=function(){return FqC};
w7.prototype.getExtension=function(e){return _.r(e,_.L9o)};
w7.prototype.JSC$14340_buildRequest=function(e,z){z.feedbackData&&(e.feedbackData=z.feedbackData);z.params&&(e.itemParams=z.params)};
_.lB.Object.defineProperties(w7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var K_=function(){};
_.U(K_,a6);K_.prototype.getApiPaths=function(){return VUc};
K_.prototype.getExtension=function(e){return _.r(e,hRa)};
K_.prototype.JSC$14340_buildRequest=function(e,z,C){C.payments_payload&&(e.paymentsPayload=C.payments_payload);C.offer_params&&(e.offerParams=C.offer_params);z.transactionParams&&(e.transactionParams=z.transactionParams)};var oH=function(){};
_.U(oH,a6);oH.prototype.getApiPaths=function(){return fQs};
oH.prototype.getExtension=function(e){return _.r(e,_.O9a)};
oH.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.buybucketParams&&(e.buybucketData={params:z.buybucketParams},z.stickerParams?e.buybucketData.stickerParams=z.stickerParams:(C.rich_chat_message?e.buybucketData.richChatMessage=C.rich_chat_message:C.chat_message_text&&(e.buybucketData.chatMessageText=C.chat_message_text),C.purchase_price_micros&&(e.buybucketData.purchasePriceMicros=C.purchase_price_micros.toString())));z.donationAmountMicros&&(e.tipAmountMicros=z.donationAmountMicros,
z.tipParams&&(e.tipParams=z.tipParams));z.offerParams&&(e.offerParams=z.offerParams);z.productData&&(e.productData=z.productData);z.transactionParams&&(e.transactionParams=z.transactionParams)};var GG=function(){};
_.U(GG,a6);GG.prototype.getApiPaths=function(){return Sd6};
GG.prototype.getExtension=function(e){return _.r(e,VeU)};
GG.prototype.JSC$14340_buildRequest=function(e,z){z.updateFopParams&&(e.updateFopParams=z.updateFopParams)};var YH=function(){};
_.U(YH,a6);YH.prototype.getApiPaths=function(){return u$6};
YH.prototype.getExtension=function(e){return _.r(e,_.zV)};
YH.prototype.JSC$14340_buildRequest=function(e,z){z.couponCode&&(e.couponCode=z.couponCode);z.params&&(e.itemParams=z.params)};var bq=function(){};
_.U(bq,a6);bq.prototype.getApiPaths=function(){return dMg};
bq.prototype.getExtension=function(e){return _.r(e,_.XUc)};
bq.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;z.params&&(e.params=z.params);C.ctk&&(e.clientToken=C.ctk)};var Xf=function(e){this.JSC$18650_storeWithEntities=e};
_.U(Xf,a6);Xf.prototype.getApiPaths=function(){return DM6};
Xf.prototype.getExtension=function(e){return _.r(e,_.I2)};
Xf.prototype.JSC$14340_buildRequest=function(e,z,C){C.purchase_price_micros&&(e.productData={pdgData:{purchasePriceMicros:C.purchase_price_micros.toString()}},C.rich_chat_message&&(e.productData.pdgData.richChatMessage=C.rich_chat_message),C.currency_code&&(e.productData.pdgData.currencyCode=C.currency_code));z.transactionParams&&(e.transactionParams=z.transactionParams);z.clientLocationContext&&(e.clientLocationContext=z.clientLocationContext);C.payments_payload&&(e.paymentsPayload=C.payments_payload);
C.funds_guarantee_callback_client_data&&(e.fundsGuaranteeCallbackClientData=C.funds_guarantee_callback_client_data);var w,K;C=(w=this.JSC$18650_storeWithEntities)==null?void 0:(K=w.getState())==null?void 0:K.entities;if(z.entityKeys&&C){w=[];z=_.b(z.entityKeys);for(K=z.next();!K.done;K=z.next()){var G=K.value;K=_.Xn(G).entityType;if(G=_.xz(C,K,G)){var X={};w.push((X[K]=G,X))}}e.entityMutationPayloads=w}};
Xf[Qj]=[$3];var J$=function(){};
_.U(J$,a6);J$.prototype.getApiPaths=function(){return iDc};
J$.prototype.getExtension=function(e){return _.r(e,Evh)};
J$.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;C.backend_analytics&&(e.serializedBackendAnalyticsEvent=C.backend_analytics);z.offerParams&&(e.offerParams=z.offerParams)};var kH=function(){};
_.U(kH,a6);kH.prototype.getApiPaths=function(){return u$6};
kH.prototype.getExtension=function(e){return _.r(e,rVE)};
kH.prototype.JSC$14340_buildRequest=function(e,z){z.params&&(e.itemParams=z.params)};var q8=function(){};
_.U(q8,a6);q8.prototype.getApiPaths=function(){return NFS};
q8.prototype.getExtension=function(e){return _.r(e,_.$dL)};
q8.prototype.JSC$14340_buildRequest=function(e,z,C){C.resume_time_ms&&(e.resumeTimeMs=C.resume_time_ms);z.pauseParams&&(e.pauseParams=z.pauseParams)};var xH=function(){};
_.U(xH,a6);xH.prototype.getApiPaths=function(){return szc};
xH.prototype.getExtension=function(e){return _.r(e,_.F9S)};
xH.prototype.JSC$14340_buildRequest=function(e,z,C){C=C===void 0?{}:C;C.c&&(e.redeemCode=C.c);C.rd&&(e.riskData=C.rd);C.ctk&&(e.clientToken=C.ctk)};var TG=function(){};
_.U(TG,a6);TG.prototype.getApiPaths=function(){return BFg};
TG.prototype.getExtension=function(e){return _.r(e,_.l5S)};
TG.prototype.JSC$14340_buildRequest=function(e,z){z.resumeParams&&(e.resumeParams=z.resumeParams)};var $H=function(e,z){this.clientName=e;this.defaultExpirationDelayMs=z};
$H.prototype.put=function(e,z){var C=this,w;return _.k(function(K){w=Object.assign({},z.data);w.key=e;w.clientName=C.clientName;w.expireTimestampMs===void 0&&(w.expireTimestampMs=(Math.round((0,_.as)())+C.defaultExpirationDelayMs).toString());return K.return(C.putInternal(e,w))})};
$H[Qj]=[Lu,QME];var hvf=function(){$H.apply(this,arguments);this.JSC$18680_responseStore=new Map};
_.U(hvf,$H);_.Y=hvf.prototype;_.Y.get=function(e){var z=this;return _.k(function(C){return C.return(c$(z,e))})};
_.Y.putInternal=function(e,z){var C=this,w,K,G;return _.k(function(X){w=C.defaultExpirationDelayMs;z.expireTimestampMs&&(w=Number(z.expireTimestampMs)-Math.round((0,_.as)()),K=_.n0("mweb_override_response_store_expiration_ms"),K>0&&K<w&&(w=K));G=setTimeout(function(){C.remove(e)},w);
C.JSC$18680_responseStore.set(e,{entryData:z,timer:G});_.E_(X)})};
_.Y.remove=function(e){var z=this;return _.k(function(C){Ohf(z,e);_.E_(C)})};
_.Y.removeAll=function(){var e=this;return _.k(function(z){e.JSC$18680_responseStore.forEach(function(C){clearTimeout(C.timer)});
e.JSC$18680_responseStore.clear();_.E_(z)})};
_.Y.has=function(e){return!!this.JSC$18680_responseStore.get(e)};
_.Y.getKeys=function(){return this.JSC$18680_responseStore.keys()};
var c$=function(e,z){if(e=e.JSC$18680_responseStore.get(z))return new _.yX(e.entryData)},Ohf=function(e,z){var C=e.JSC$18680_responseStore.get(z);
C&&(clearTimeout(C.timer),e.JSC$18680_responseStore.delete(z))};var ox4;var bF1=function(e,z,C){$H.call(this,e,z);this.token=C};
_.U(bF1,$H);_.Y=bF1.prototype;_.Y.get=function(e){var z=this,C,w;return _.k(function(K){return K.nextAddress==1?K.yield(YFh(z.token),2):K.nextAddress!=3?(C=K.yieldResult,K.yield(C.get("ResponseStore",[e,z.clientName]),3)):(w=K.yieldResult)?K.return(new _.yX(w)):K.return(void 0)})};
_.Y.putInternal=function(e,z){var C=this,w;return _.k(function(K){if(K.nextAddress==1)return K.yield(YFh(C.token),2);w=K.yieldResult;return K.yield(w.put("ResponseStore",z),0)})};
_.Y.remove=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(YFh(z.token),2);C=w.yieldResult;return w.return(C.delete("ResponseStore",[e,z.clientName]))})};
_.Y.removeAll=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return C.yield(YFh(e.token),2);z=C.yieldResult;return C.yield(pfh(z,IDBKeyRange.only(e.clientName)),0)})};
_.Y.has=function(){throw Error("jj");};_.lq=new _.Mt("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var E2E=function(e){var z;this.stateTagsData=(z=e.responseContext)==null?void 0:z.stateTags},FaW=function(e){var z;
return((z=e.stateTagsData)==null?void 0:z.stateTagsModified)||[]};var Vna;Vna=function(e){this.JSC$18693_responseStore=e};
_.pM=function(e,z,C){if(!_.M("state_tags_killswitch")){var w=new E2E(z);if(FaW(w).length>0){var K=e.JSC$18693_responseStore.getKeys();K=_.b(K);for(var G=K.next();!G.done;G=K.next()){G=G.value;var X=c$(e.JSC$18693_responseStore,G);if(X){var J=_.J8(X);a:{var q=void 0;X=FaW(w);J=((q=(new E2E(J)).stateTagsData)==null?void 0:q.relevantStateTags)||[];q=_.b(J);for(J=q.next();!J.done;J=q.next())if(J=J.value,J.stateTag!=null&&X.includes(J.stateTag)&&J.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){X=
!0;break a}X=!1}X&&Ohf(e.JSC$18693_responseStore,G)}}}}var T;w=(T=z.responseContext)==null?void 0:T.maxAgeSeconds;C&&w&&Number(w)>0&&(z=l3(z,w),e.JSC$18693_responseStore.put(C,new _.yX(z)))};
Vna.prototype.handleResponse=function(e,z){if(!z)throw Error("kj");var C,w;z=(C=z.config)==null?void 0:(w=C.storeStrategy)==null?void 0:w.storeKey;_.pM(this,e,z)};
Vna[Qj]=[_.jN];_.PNh=new _.Mt("STORE_RESPONSE_PROCESSOR_TOKEN");var fHL=function(e){this.JSC$18696_responseStore=e};
fHL.prototype.handleResponse=function(e,z){if(z.input.match(_.zU(o04))){var C;if(e==null?0:(C=e.entries)==null?0:C.length)for(e=_.b(e.entries),z=e.next();!z.done;z=e.next()){C=z.value.command;var w=void 0;z=(w=_.r(C,_.rP))==null?void 0:w.unserializedPrefetchData;if(!C||!z)break;w=(new d8).JSC$14347_getStoreKey(C);var K=_.r(z,lCS),G=void 0,X=void 0,J=void 0,q=void 0,T=void 0,Q=void 0,m=((G=K)==null?0:(X=G.responseContext)==null?0:X.maxAgeSeconds)&&Number((J=K)==null?void 0:(q=J.responseContext)==null?
void 0:q.maxAgeSeconds)>0?Number((T=K)==null?void 0:(Q=T.responseContext)==null?void 0:Q.maxAgeSeconds):600;w&&m>0&&(K=l3(K,m),this.JSC$18696_responseStore.put(w,new _.yX(K)));C=(new ei).JSC$14347_getStoreKey(C);z=_.r(z,eJs);q=J=X=G=K=w=void 0;T=((w=z)==null?0:(K=w.responseContext)==null?0:K.maxAgeSeconds)&&Number((G=z)==null?void 0:(X=G.responseContext)==null?void 0:X.maxAgeSeconds)>0?Number((J=z)==null?void 0:(q=J.responseContext)==null?void 0:q.maxAgeSeconds):600;C&&T>0&&(z=l3(z,T),this.JSC$18696_responseStore.put(C,
new _.yX(z)))}}};
fHL[Qj]=[_.jN];var Svl=function(e,z){this.innertubeTransportService=e;this.JSC$18699_commandHandler=z};
Svl.prototype.submitForm=function(e,z,C,w,K){var G=this,X,J,q,T,Q,m;return _.k(function(a){if(a.nextAddress==1)return X={submitId:e,formData:z,submitBehavior:C,params:w},J=_.zU(mM4),a.yield(_.Hc(G.innertubeTransportService,X,J,K),2);q=a.yieldResult;if(!q)return a.return(Promise.reject(new _.uh("Submit API returned an undefined response. Submit ID: "+e)));T=q;(m=(Q=T)==null?void 0:Q.onResponseReceived)&&G.JSC$18699_commandHandler.resolveCommand(m);return a.return(T)})};
Svl[Qj]=[_.vJ,_.ms];var Qc=function(){this.scheduler=_.So()},uUa;
Qc.prototype.pause=function(){throw Error("lj");};
Qc.prototype.resume=function(){throw Error("lj");};
Qc.prototype.queue=function(e){var z=this,C=_.cj(),w=_.Dz(this.scheduler,function(){try{var K;if(_.Tx.instance)var G=_.Tx.instance;else{var X=new _.uh("Error: Unexpected uninitialized CommandHandler.");_.yG(X);G=void 0}(K=G)==null||K.resolveCommand(e.command);C.resolve()}catch(J){C.reject(J)}});
C.promise.thenCatch(function(K){K instanceof _.g$&&z.scheduler.cancelJob(w)});
return C.promise};
Qc.prototype.queueAll=function(e){var z=new Map;e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=C.value,z.set(C.id,this.queue(C));return z};var DG5=function(e,z){var C=this;this.taskModel=e;this.onTaskCancelledCallback=z;this.resolver=_.cj();e=e.proto.prefetchConfig;if(!e)throw Error("mj");if(!e.prefetchAction)throw Error("nj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(w){w instanceof _.g$&&(dGv(C,C.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),C.onTaskCancelledCallback(C.taskModel.id,C.jobId),C.tick("pcc"));
throw w;});
this.timerName=this.taskModel.id;_.LK(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
DG5.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var dGv=function(e,z){_.Pf({prefetchInfo:{cancellationReason:z}},e.timerName)};
DG5.prototype.tick=function(e){_.hg(e,void 0,this.timerName)};var aH=function(){var e=this;this.scheduler=_.So();this.maxInflightTasks=_.n0("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.n0("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new hPa;this.onTaskCancelled=function(z,C){C&&e.scheduler.cancelJob(C);ihb(e,z);mG(e,3)}},N9b=function(){aH.instance||(aH.instance=new aH);
return aH.instance};
aH.prototype.pause=function(){this.prefetchCoordinatorState=0};
aH.prototype.resume=function(){mG(this,0)};
aH.prototype.queue=function(e){e=s4v(this,e);mG(this,1);return e};
aH.prototype.queueAll=function(e){var z=new Map;e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=C.value,z.set(C.id,s4v(this,C));mG(this,1);return z};
var s4v=function(e,z){var C=e.allPrefetchTasks.get(z.id);if(C)return C.cancellablePromise;try{var w=new DG5(z,e.onTaskCancelled)}catch(G){return _.R5(G)}C=w;C.tick("pcq");var K={prefetchInfo:{taskId:C.taskModel.id,isPrefetch:!0,fetchAction:C.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:C.taskModel.command.clickTrackingParams}};C.taskModel.csn&&(K.clientScreenNonce=C.taskModel.csn);_.Pf(K,C.timerName);e.allPrefetchTasks.set(z.id,w);e.drainingHeap.insert(-w.getPriority(),w);return w.cancellablePromise},
mG=function(e,z){e.prefetchCoordinatorState===z&&(e.prefetchCoordinatorState=2,B9L(e))},B9L=function(e){for(var z={};e.prefetchCoordinatorState!==0;z={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(e.inflightPrefetchTasks.size>=e.maxInflightTasks){e.prefetchCoordinatorState=3;break}z.prefetchTask$jscomp$1=e.drainingHeap.remove();if(!z.prefetchTask$jscomp$1){e.prefetchCoordinatorState=1;break}z.taskId$jscomp$3=z.prefetchTask$jscomp$1.taskModel.id;if(e.allPrefetchTasks.has(z.taskId$jscomp$3)){var C=-1;e.coordinatorTimeoutMs>0&&(C=_.Dz(e.scheduler,function(w){return function(){n_(e,w.taskId$jscomp$3,Error("oj"))}}(z),e.coordinatorTimeoutMs));
e.inflightPrefetchTasks.set(z.taskId$jscomp$3,C);if(!e.JSC$18716_commandHandler){if(!_.Tx.instance){n_(e,z.taskId$jscomp$3,Error("pj"));continue}e.JSC$18716_commandHandler=_.Tx.instance}a:switch(z.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":C=1;break a;default:C=0}z.prefetchTask$jscomp$1.jobId=e.scheduler.addJob(function(w){return function(){w.prefetchTask$jscomp$1.tick("pcr");try{e.JSC$18716_commandHandler.resolveCommand(w.prefetchTask$jscomp$1.taskModel.command)||
n_(e,w.taskId$jscomp$3,Error("qj"))}catch(K){n_(e,w.taskId$jscomp$3,K)}}}(z),C,0)}}},tnf=function(e,z){(z=ihb(e,z))!=null&&(z.resolver.resolve(),z.tick("pce"));
mG(e,3)},n_=function(e,z,C){(z=ihb(e,z,C))!=null&&(z.resolver.reject(C),z.tick("pcc"),dGv(z,"CANCELLATION_REASON_ERROR"),Math.random()<=_.n0("prefetch_coordinator_error_logging_sampling_rate")&&(C=new _.uh("Prefetch Command failed.",z.taskModel.id,C.message),_.yG(C)));
mG(e,3)},ihb=function(e,z,C){var w=e.allPrefetchTasks.get(z);
w?((C=e.inflightPrefetchTasks.get(z))&&C!==-1&&e.scheduler.cancelJob(C),e.inflightPrefetchTasks.delete(z),e.allPrefetchTasks.delete(z)):_.AX(new _.uh("Unexpected missing prefetch task when deleting task.",z,C==null?void 0:C.message));return w};var g2o=function(e,z,C,w,K){this.id=e;this.triggerOn=z;this.cancelOn=C;this.command=w;this.proto=K};
_.lB.Object.defineProperties(g2o.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var j4l=function(){this.JSC$18721_prefetchCoordinator=N9b();uUa||(uUa=new Qc);this.defaultCoordinator=uUa},yA3;
j4l.getInstance=function(){yA3||(yA3=new j4l);return yA3};
j4l.prototype.get=function(e){switch(e){case 0:return this.JSC$18721_prefetchCoordinator;default:return this.defaultCoordinator}};var M8=function(){this.coordinatorSupplier=j4l.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},Zhv=function(e){var z=_.Pr()||void 0,C=Object.keys(cAE)[0];
if(C){var w=e.taskIdByTriggerId.get(C);if(w!=null){e.taskIdByTriggerId.delete(C);C=[];w=_.b(w);for(var K=w.next();!K.done;K=w.next())if(K=e.tasks.get(K.value))z!=="UNDEFINED_CSN"&&(K.csn=z),C.push(K);C=kzk(C);z=[];C=_.b(C);for(w=C.next();!w.done;w=C.next()){K=_.b(w.value);w=K.next().value;K=K.next().value;w=e.coordinatorSupplier.get(w).queueAll(K);w=_.b(w);var G=w.next();for(K={};!G.done;K={taskId$jscomp$9:void 0},G=w.next()){var X=_.b(G.value);G=X.next().value;X=X.next().value;K.taskId$jscomp$9=
G;G=X;z.push(K.taskId$jscomp$9);e.queuedPromisesByTask.set(K.taskId$jscomp$9,_.gB(G,function(J){return function(){AA5(e,J.taskId$jscomp$9)}}(K)))}}}}else _.AX(new _.uh("Unexpected malformed TriggerEvent."))};
M8.prototype.trigger=function(e,z){var C=this,w=this.tasks.get(e);if(!w||this.queuedPromisesByTask.has(e))return!1;poa(this,e,w.triggerOn);z!=="UNDEFINED_CSN"&&(w.csn=z);z=this.coordinatorSupplier.get(w.taskType).queue(w);this.queuedPromisesByTask.set(e,_.gB(z,function(){AA5(C,e)}));
return!0};
M8.prototype.cancel=function(e){var z=this.queuedPromisesByTask.get(e);if(z)z.cancel();else return AA5(this,e)};
var AA5=function(e,z){e.queuedPromisesByTask.delete(z);var C=e.tasks.get(z);if(!C)return!1;e.tasks.delete(z);poa(e,z,C.triggerOn);(C=JZL(C.cancelOn))&&(e=e.taskIdByCancelId.get(C))&&e.delete(z);return!0},poa=function(e,z,C){(C=Object.keys(C)[0])&&(e=e.taskIdByTriggerId.get(C))&&e.delete(z)};var cAE={taskRegistered:{}},r7=function(){M8.instance||(M8.instance=new M8);this.JSC$18730_taskManager=M8.instance};
_.U(r7,R7);
r7.prototype.resolveCommand=function(e){var z=this,C,w;return _.k(function(K){C=_.r(e,TnY);if((w=C)==null||!w.tasks){var G=new _.uh("RegisterTasksCommand is missing tasks.");_.yG(G);return K.return()}G=z.JSC$18730_taskManager;for(var X=_.b(C.tasks),J=X.next();!J.done;J=X.next())if(J=J.value,J=J.id&&J.triggerOn&&J.cancelOn&&J.command?new g2o(J.id,J.triggerOn,J.cancelOn,J.command,J):void 0,J){var q=Object.keys(J.triggerOn)[0];if(q){var T=JZL(J.cancelOn);T?(G.tasks.set(J.id,J),G.taskIdByTriggerId.has(q)||G.taskIdByTriggerId.set(q,
new Set),G.taskIdByTriggerId.get(q).add(J.id),G.taskIdByCancelId.has(T)||G.taskIdByCancelId.set(T,new Set),G.taskIdByCancelId.get(T).add(J.id)):_.AX(new _.uh("Unexpected malformed cancelOn field."))}else _.AX(new _.uh("Unexpected malformed triggerOn field."))}else _.AX(new _.uh("Unexpected malformed Task proto."));Zhv(z.JSC$18730_taskManager);_.E_(K)})};var eo3={},zoE=(eo3.rendered={priority:_.M("web_adaptive_early_init")?8:0,callback:function(){var e={};e.numCpu=navigator.hardwareConcurrency;var z={};z.ramGb=_.wL.navigator.deviceMemory;var C={staticContext:{}};z.ramGb&&MK1(z.ramGb)&&(C.staticContext.memoryTotalKbytes=(z.ramGb*1048576).toString());e.numCpu&&MK1(e.numCpu)&&(C.staticContext.cpuCores=e.numCpu);if(_.M("web_enable_adaptive_appl_signal")){e={};z=WWL();z=z.length>0?z[0]:void 0;var w,K=(w=_.fK("rses_dpj"))!=null?w:z==null?void 0:z.tick.rses_dpj,
G;w=(G=_.fK("rsef_dpj"))!=null?G:z==null?void 0:z.tick.rsef_dpj;K&&Number(K)>0&&w&&Number(w)>0&&(G=Math.ceil(Number(w)-Number(K)),G>0&&(e.loadLatency=G));e.loadLatency&&MK1(e.loadLatency)&&(C.appL=e.loadLatency.toString())}_.gm("applicationStarted",C);rxN=C;_.M("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",HXN)}},eo3);var C0$=new _.Mt("WINDOW_ON_ERROR"),wCC=new _.Mt("ERROR_WEIGHT_MAPS"),KpC=new _.Mt("INIT_ERROR");var oJE={},Gta=(oJE.initialized={priority:10,callback:function(e){e.injector.resolve(KpC)()}},oJE);var YHa=function(){},bjf=function(){var e=_.pd("meta_logger_impl");
e||(e=new YHa,_.lM("meta_logger_impl",e));return e},XC5=function(){bjf().csiSubscriptionKey=jg4("meta_logging_csi_event",function(e){var z=e.timerName;
if(e=e.timelineData){_.LK(z,{startTime:e.startTime},z);e.infos&&_.Pf(e.infos,z);for(var C=_.b(Object.keys(e.ticks)),w=C.next();!w.done;w=C.next())w=w.value,_.hg(w,e.ticks[w],z)}})};
YHa.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&AUN(this.csiSubscriptionKey)};var JG$={},ktE=(JG$.initialized={priority:10,callback:function(){XC5()}},JG$);var qH3=function(e,z){this.innertubeClientName=e;this.JSC$18741_prefCookie=z};
qH3.prototype.record=function(){if(_.M("web_li_record_binary_eval_tick")){var e=_.fK("rsef_dpj");var z=_.fK("rses_dpj");e=e!==void 0&&z!==void 0?Math.round(e-z):void 0;if(e!==void 0&&e>0){z=_.PJ(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var C=this.poolSize;if(!(z.valuesSeen>=1E9)){if(z.valuesSample.length<C)z.valuesSample.push(e);else{var w=Math.floor(Math.random()*(z.valuesSeen+1));w<C&&(z.valuesSample[w]=e)}z.valuesSeen+=1}_.WJ(this.storagePrefix+"-"+this.innertubeClientName,
z,2592E3);e=z.valuesSample;z=qF5(e);e=e.length<this.poolSize?void 0:z<400?1:z<1700?2:3;e!==void 0&&(this.JSC$18741_prefCookie.set(this.cookiePrefix+this.innertubeClientName,e),this.JSC$18741_prefCookie.save())}}else _.Rg(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18741_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18741_prefCookie.save()};
qH3[Qj]=[Lu,$_];var x6q=function(){qH3.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.U(x6q,qH3);var TpL=new _.Mt("PAGE_LOAD_TIME_TOKEN");var $6Y=function(e){this.signal=e;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;e.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Dz(_.c5,this.disableLoggingAndSendPayload,1E4)};
$6Y.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.c5.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),lKf(this))};
var lKf=function(e){var z=_.Ip();if(z){var C={webClientComponentsData:{components:Array.from(e.ids,function(w){return{id:w}})}};
e.ids.clear();_.nm().visualElementStateChanged(z,C)}};var QI5=ET({a11y:ZQg});_.m6q=FW(QI5)(QI5.a11y,{ephemeralActionSelector:function(e){return e.ephemeralAction||null}});var aKE=ET({continuation:wSS});var nJC=FW(aKE)(aKE.continuation,{continuationCommandSelector:function(e){return e.continuationCommand}});var Maq=new _.Mt("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var Hy=function(e,z){this.JSC$18770_storeWithEntities=e;this.JSC$18770_commandHandler=z;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
Hy.prototype.start=function(){this.JSC$18770_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
Hy.prototype.observeDownloadingEntities=function(){var e=_.Bt5(this.JSC$18770_storeWithEntities.getState().entities).map(function(w){return t07(w)});
if(e.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var z={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:CjN()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.K4(_.kk("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18770_commandHandler.resolveCommand(z)}this.downloadingEntities=e}else if(this.downloadingEntities.length){var C=slN(this.JSC$18770_storeWithEntities.getState().entities).map(function(w){return t07(w)});
this.downloadingEntities.filter(function(w){return C.includes(w)}).length&&(e={openPopupAction:sc1()},this.JSC$18770_commandHandler.resolveCommand(e));
this.downloadingEntities=[]}};
Hy[Qj]=[$3,_.ms];var rGZ;_.UI=function(e,z,C,w,K,G,X,J){this.JSC$18773_playerApiPromise=e;this.JSC$18773_commandHandler=z;this.JSC$18773_screenManager=C;this.offlineWebClientEligibility=w;this.JSC$18773_prefStorage=K;this.JSC$18773_actionRouter=G;this.entityTypeMap=X;this.JSC$18773_persistentStorePromiseAccessor=J;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
rGZ=function(){var e=_.lh().resolve(_.UI),z;_.k(function(C){if(C.nextAddress==1)return e.downloadFailureListenerBound?C.return():C.yield(e.JSC$18773_playerApiPromise,2);z=C.yieldResult;z.addEventListener("onOfflineOperationFailure",function(w){if(w.failureReason&&w.entityKey&&w.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(w.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var K=_.Xn(w.entityKey).entityId;K&&e.JSC$18773_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
K)}else if(_.M("kevlar_woffle")){K=e.JSC$18773_commandHandler;var G=K.resolveCommand;w=w.failureReason;var X=_.kk("TRANSFER_FAILED",void 0,"Download failed");w==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(X=_.kk("STORAGE_FULL",void 0,"Storage full"));G.call(K,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.K4(X),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
e.downloadFailureListenerBound=!0;_.E_(C)})};
_.UI.prototype.deleteVideo=function(e,z){var C=this,w,K,G;return _.k(function(X){if(X.nextAddress==1)return X.yield(C.JSC$18773_playerApiPromise,2);w=X.yieldResult;G={offlineLoggingData:{offlineDeleteReason:(K=z)!=null?K:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return X.yield(w.queueOfflineAction(e,C.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",G),0)})};
_.UI.prototype.pauseVideoDownload=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.JSC$18773_playerApiPromise,2);C=w.yieldResult;C.pauseVideoDownload(e);_.E_(w)})};
_.UI.prototype.resumeVideoDownload=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.JSC$18773_playerApiPromise,2);C=w.yieldResult;return w.yield(C.resumeVideoDownload(e),0)})};
_.UI[Qj]=[_.qK,_.ms,_.YV,Maq,aD,VQ,yaa,p8];var HjC=new _.Mt("DOWNLOAD_STATE_STORE_TOKEN");var U6b=function(e,z){this.JSC$18794_persistentStorePromiseAccessor=e;this.store=z;this.upliftCompletionResolver=new _.x5},Wp$=function(){var e=_.lh().resolve(vJb),z;
_.k(function(C){switch(C.nextAddress){case 1:if(e.upliftImplPromise)return C.return(e.upliftImplPromise);_.Iv(C,2);e.upliftImplPromise=IKZ(e);return C.yield(e.upliftImplPromise,4);case 4:e.upliftCompletionResolver.resolve();_.Yj(C,3);break;case 2:throw z=_.O_(C),e.upliftCompletionResolver.reject(z),z;case 3:return C.return(e.upliftImplPromise)}})},IKZ=function(e){var z,C,w;
return _.k(function(K){switch(K.nextAddress){case 1:return _.cR("LOGGED_IN")?K.yield(e.JSC$18794_persistentStorePromiseAccessor(),2):K.return();case 2:z=K.yieldResult;if(!z)return _.hg("vdeur"),K.return();_.hg("vdeus");_.Iv(K,3);return K.yield(P0v(z),5);case 5:C=K.yieldResult;e.store.dispatch(RKE(C));z.observe(function(G){LS8(e.store,G)});
_.Yj(K,4);break;case 3:throw w=_.O_(K),_.hg("vdeur"),w;case 4:_.hg("vdeuc"),_.E_(K)}})},P0v=function(e){var z;
return _.k(function(C){if(C.nextAddress==1)return C.yield(mPN(e),2);z=C.yieldResult;return C.return(z.reduce(function(w,K){if(!K.data||!K.key||!K.entityType)return w;w[K.entityType]||(w[K.entityType]={});w[K.entityType][K.key]=K.data;return w},{}))})};
U6b[Qj]=[p8,_.Tr];var vJb;vJb=new _.Mt("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.vy=new _.Mt("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var IH=function(e,z){this.JSC$18797_persistentStorePromiseAccessor=e;this.transportService=z};
IH.prototype.refresh=function(){var e=this,z,C,w,K;return _.k(function(G){if(G.nextAddress==1)return _.cR("LOGGED_IN")?G.yield(e.JSC$18797_persistentStorePromiseAccessor(),2):G.return();if(G.nextAddress!=3)return(z=G.yieldResult)?G.yield(co1(z),3):G.return();if((C=G.yieldResult)&&!(Number(C.data.refreshTimestampMs||0)<(0,_.as)()))return G.return();w={browseId:"SPaccount_downloads"};K=_.zU(CM);_.Hc(e.transportService,w,K).then(function(X){var J;if(z&&(X==null?void 0:(J=X.responseContext)==null?void 0:
J.maxAgeSeconds)!==0){var q;J=(X==null?void 0:(q=X.responseContext)==null?void 0:q.maxAgeSeconds)||604800;q=String(Math.floor((0,_.as)())+J*1E3);z.put("service:downloads_settings:fallback",new _.yX({innertubeResponse:X,refreshTimestampMs:q}))}});
_.E_(G)})};
IH[Qj]=[_.lq,_.vJ];var Wy=function(e,z){this.JSC$18801_playerPromise=e;this.store=z;this.started=!1};
Wy.prototype.start=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return e.started?C.return():C.yield(e.JSC$18801_playerPromise,2);z=C.yieldResult;z.addEventListener("onOrchestrationBecameLeader",e.updateIsLeader.bind(e,!0));z.addEventListener("onOrchestrationLostLeader",e.updateIsLeader.bind(e,!1));if(z.isOrchestrationLeader)e.updateIsLeader(z.isOrchestrationLeader());else{var w=new _.uh("Function isOrchestrationLeader is undefined",{"player.isReady":z.isReady(),"player.playVideo":z.playVideo?
"defined":"undefined"});_.yG(w);e.updateIsLeader(!1)}e.started=!0;_.E_(C)})};
Wy.prototype.updateIsLeader=function(e){this.store.dispatch(_.Yz({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:e}}))};
Wy[Qj]=[_.qK,_.Tr];var Ro5=function(e,z){this.networkStatusManager=e;this.JSC$18804_prefStoragePromise=z;this.redirectsToPreload=["https://youtube.com"]},Lpo=function(){var e=_.lh().resolve(Ro5),z,C,w,K,G,X;
_.k(function(J){switch(J.nextAddress){case 1:return J.yield(e.JSC$18804_prefStoragePromise,2);case 2:z=J.yieldResult;if(!(C=z)){J.jumpTo(3);break}return J.yield(z.get("yt-redirect-prefetch-id"),4);case 4:C=J.yieldResult;case 3:if(C||!e.networkStatusManager.isNetworkAvailable())return J.return();w={cache:"reload",redirect:"manual"};K=_.b(e.redirectsToPreload);G=K.next();case 5:if(G.done){if(!z){J.jumpTo(0);break}return J.yield(z.set("yt-redirect-prefetch-id",!0,86400),0)}X=G.value;_.Iv(J,8);return J.yield(_.wL.fetch(X,
w),10);case 10:_.Yj(J,6);break;case 8:_.O_(J);case 6:G=K.next(),J.jumpTo(5)}})};var hoL=function(e){this.JSC$18810_pageManager=e},OjC=function(e){var z=[];
rZ4(["videoId","contentId"],e.JSC$18810_pageManager.data,new Set,z);return z},EJW=function(e){return OjC(e).filter(function(z){return z.contentType==="video"}).map(function(z){return z.contentId}).filter(function(z){return z!==void 0})};
hoL[Qj]=[_.wE];var FpY=new _.Mt("PAGE_CONTENT_EXTRACTOR_TOKEN");var Va$=function(e){e?(this.container=e,this.containerWasInjected=!0):this.containerWasInjected=!1};
Va$.prototype.openDialog=function(e,z,C){var w=this,K;return _.k(function(G){(K=w.container)==null||K.openDialog(e,z,C);_.E_(G)})};
Va$.prototype.closeDialog=function(){var e=this,z;return _.k(function(C){(z=e.container)==null||z.closeDialog();_.E_(C)})};
Va$.prototype.isDialogOpen=function(){var e=this,z,C;return _.k(function(w){return w.return((C=(z=e.container)==null?void 0:z.isDialogOpen())!=null?C:!1)})};
Va$[Qj]=[_.$B(kIg)];_.fKa=new _.Mt("POPUP_CONTROLLER_TOKEN");var SHa=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
SHa.prototype.registerPanel=function(e,z){if(e){this.panelMap.set(e,z);var C=this.pendingPanelResolvers.get(e);C&&(C.resolve(z),this.pendingPanelResolvers.delete(e))}};
SHa.prototype.getPanel=function(e){var z=this,C;return _.k(function(w){return(C=z.panelMap.get(e))?w.return(C):w.return(uya(z,e))})};
var uya=function(e,z){var C,w;return _.k(function(K){if(C=e.pendingPanelResolvers.get(z))return K.return(C.promise);w=new _.x5;e.pendingPanelResolvers.set(z,w);return K.return(w.promise)})},d6f=function(e,z){SHa.call(this);
var C=this;this.popupController=e;this.persistentPanelController=z;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return C.panelMap.size}}};
_.U(d6f,SHa);_.Y=d6f.prototype;_.Y.getReloadContinuation=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.getPanel(e),2);C=w.yieldResult;return w.return(C.getReloadContinuation())})};
_.Y.showPanel=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n;return _.k(function(H){if(H.nextAddress==1){C=e;w=C.identifier;K=C.panelContents;G=C.config;X=C.extras;J=C.panelUpdatableFields;q=C.updatePanelContinuationData;T=e.target;q&&z.updatePanelContinuationDatas.set(w,q);if((Q=G)==null?0:(m=Q.engagementPanelPopupPresentationConfig)==null?0:m.popupType)if(a=G.engagementPanelPopupPresentationConfig.popupType,T===void 0&&(T=document.body),a==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!z.persistentPanelController)return _.AX(new _.uh("Persistent panel controller is not available.")),
H.return();var I=z.persistentPanelController;I.persistentPanelIdentifiers.has(w)||(I.persistentPanelWrapper.appendChild(I.engagementPanelElement({panelIdentifier:w},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),I.persistentPanelIdentifiers.add(w));a:switch(_.cF.currentPageSubTypeSelector(I.store.getState())){case "watch":var L="WATCH";break a;default:L="APP"}_.D6$(I,L);I.store.dispatch(e5h(!0))}else{if(a==="PANEL_POPUP_TYPE_DIALOG"||a==="PANEL_POPUP_TYPE_DROPDOWN"){I=H.return;L=z.popupController;
var h=L.openPopup;a:switch(a){case "PANEL_POPUP_TYPE_DIALOG":var E="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":E="DROPDOWN";break a;default:throw Error("sj`"+a);}return I.call(H,h.call(L,w,K,E,T))}_.AX(new _.uh("Popup type "+a+" not supported in PanelController."))}return H.yield(z.getPanel(w),2)}n=H.yieldResult;(K||J)&&n.updatePanel(K,!1,X,J);n.showPanel(X);_.E_(H)})};
_.Y.hidePanel=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return C=e,w=C.identifier,X.yield(z.getPanel(w),2);K=X.yieldResult;K.hidePanel();z.popupController.closePopup(w);(G=z.persistentPanelController)!=null&&G.persistentPanelIdentifiers.has(w)&&G.store.dispatch(e5h(!1));_.E_(X)})};
_.Y.isVisible=function(e,z){var C=this,w;return _.k(function(K){if(K.nextAddress==1)return z&&!C.panelMap.has(e)?K.return(!1):K.yield(C.getPanel(e),2);w=K.yieldResult;return K.return(w.isVisible())})};
_.Y.updatePanel=function(e){var z=this,C,w,K,G,X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1){C=e;w=C.identifier;K=C.panelContents;G=C.shouldFocus===void 0?!1:C.shouldFocus;X=C.extras;J=C.panelUpdatableFields;q=C.updatePanelContinuationData;if(!K&&!J)return Q.return();q&&z.updatePanelContinuationDatas.set(w,q);_.M("enable_ai_companion")&&w==="PAai_companion"&&_.WF.remove("youchat_messages_section");return Q.yield(z.getPanel(w),2)}T=Q.yieldResult;T.updatePanel(K,G,X,J);K&&_.M("enable_ai_companion")&&
z.registerPanelContent(w,K);_.E_(Q)})};
_.Y.registerPanelContent=function(e,z){e&&this.panelContentMap.set(e,z)};
_.Y.unregisterPanelContent=function(e){this.panelContentMap.delete(e)};
_.Y.getPanelContent=function(e){return this.panelContentMap.get(e)};
_.Y.getUpdatePanelContinuationData=function(e){return this.updatePanelContinuationDatas.get(e)};
d6f[Qj]=[_.fKa,_.$B(_.T$)];var ijb=function(e,z){this.innertubeTransportService=e;this.JSC$18829_screenManager=z},Npo=function(e){var z;
return!((z=e.panelLoadingStrategy)==null||!z.requestTemplate)};
ijb.prototype.makeRequest=function(e){var z=this,C,w;return _.k(function(K){switch(K.nextAddress){case 1:if(!Npo(z)){K.jumpTo(2);break}_.Iv(K,3);return K.yield(_.yC(z.innertubeTransportService,e),5);case 5:return C=K.yieldResult,C?K.return(C.content):(_.yG(Error("tj")),K.return(void 0));case 3:w=_.O_(K),_.yG(w);case 2:return K.return(void 0)}})};
ijb.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
ijb.prototype.execute=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m;return _.k(function(a){if(a.nextAddress==1){C=e;w=C.data;K=C.fallbackVe;G=C.parentVe;X=C.createScreenConfig;J=C.renderFn;q=C.command;z.panelLoadingStrategy=w;var n,H,I=((n=z.panelLoadingStrategy)==null?0:n.screenVe)?(H=z.panelLoadingStrategy)==null?void 0:H.screenVe:K;I&&_.jk(z.JSC$18829_screenManager,I,G,X);return(T=z.getContent())?a.yield(J(T),2):a.jumpTo(2)}return a.nextAddress!=4?Npo(z)?a.yield(z.makeRequest(q),4):a.return():(m=
Q=a.yieldResult)?a.yield(J(m),0):a.return()})};
ijb[Qj]=[_.vJ,_.YV];var sIW;sIW=function(e,z){this.engagementPanelElement=e;this.store=z;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.D6$=function(e,z){var C=e.persistentPanelContainerMap.get(z);C?C.contains(e.persistentPanelWrapper)||(e=e.persistentPanelWrapper,_.CU=!0,_.wG.set(e,!0),C.insertBefore(e,null),_.wG.delete(e),_.CU=!1):_.AX(new _.uh("Persistent panel container not found for surface "+z+"."))};
sIW[Qj]=[qhc,_.Tr];var Py=function(){var e=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){e.isHovered=!0};
this.onTargetHoverLeft=function(){e.isHovered=!1};
this.onSheetHoverEntered=function(){e.isHovered=!0;var z;(z=e.hoverEnterCallback)==null||z.call(e)};
this.onSheetHoverLeft=function(){e.isHovered=!1;var z;(z=e.hoverLeaveCallback)==null||z.call(e)}};
Py.prototype.getContainer=function(){return _.yq()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Py.prototype.openSheet=function(e,z,C){C=C===void 0?z:C;var w=this,K,G,X,J,q,T,Q;return _.k(function(m){switch(m.nextAddress){case 1:return K={stack:[],error:void 0,hasError:!1},_.Iv(m,2,3),G=JG,m.yield(w.isSheetOpen(),5);case 5:X=m.yieldResult;nNL(K,PM1(G));if(!X){m.jumpTo(6);break}if(!w.shouldPreventClosingWhileHovered){if(!_.M("delay_sheet_open_killswitch")){if(_.M("web_close_sheet_if_same_target_killswitch")&&z&&w.currentTarget===z)return(J=w.getContainer())==null||J.closeSheet(),m.return();w.pendingData=
{data:e,target:nyq(w,z)};return m.return()}m.jumpTo(6);break}if(w.currentTarget===z)return m.return();Bpv(w);tab(w);return m.yield((q=w.getContainer())==null?void 0:q.closeSheet(),6);case 6:if(e.viewModel&&(e={viewModel:e.viewModel,sheetPosition:e.sheetPosition,expandToFullWidth:e.expandToFullWidth}),(T=w.getContainer())==null||T.openSheet(e,z,C),w.currentTarget=z,w.shouldPreventClosingWhileHovered){w.onTargetHoverEntered();var a;(a=w.currentTarget)==null||a.addEventListener("mouseenter",w.onTargetHoverEntered);
var n;(n=w.currentTarget)==null||n.addEventListener("mouseleave",w.onTargetHoverLeft);gJ3(w)}else w.hasRegisteredHoverCallbacks&&gJ3(w);case 3:_.PZ(m);Mhh(K);_.hn(m,0);break;case 2:Q=_.O_(m),K.error=Q,K.hasError=!0,m.jumpTo(3)}})};
Py.prototype.closeSheet=function(){var e=this;return _.k(function(z){return e.hideDelayMs?(setTimeout(function(){return _.k(function(C){return C.yield(jIo(e),0)})},e.hideDelayMs),z.return()):z.yield(jIo(e),0)})};
var jIo=function(e){var z;return _.k(function(C){if(C.nextAddress==1){if(e.shouldPreventClosingWhileHovered){if(e.isHovered)return C.return();Bpv(e);tab(e)}else e.hasRegisteredHoverCallbacks&&(tab(e),e.onSheetHoverLeft());return C.yield((z=e.getContainer())==null?void 0:z.closeSheet(),2)}if(C.nextAddress!=4)return e.resetState(),!e.pendingData||_.M("delay_sheet_open_killswitch")?C.jumpTo(0):C.yield(e.openSheet(e.pendingData.data,e.pendingData.target),4);e.pendingData=void 0;_.E_(C)})};
Py.prototype.isSheetOpen=function(){var e=this,z,C;return _.k(function(w){return w.return((C=(z=e.getContainer())==null?void 0:z.isSheetOpen())!=null?C:!1)})};
Py.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var Bpv=function(e){var z;(z=e.currentTarget)==null||z.removeEventListener("mouseenter",e.onTargetHoverEntered);var C;(C=e.currentTarget)==null||C.removeEventListener("mouseleave",e.onTargetHoverLeft)},gJ3=function(e){var z,C=(z=e.getContainer())==null?void 0:z.getSheetContainerElement();
C==null||C.addEventListener("mouseenter",e.onSheetHoverEntered);C==null||C.addEventListener("mouseleave",e.onSheetHoverLeft)},tab=function(e){var z,C=(z=e.getContainer())==null?void 0:z.getSheetContainerElement();
C==null||C.removeEventListener("mouseenter",e.onSheetHoverEntered);C==null||C.removeEventListener("mouseleave",e.onSheetHoverLeft)},nyq=function(e,z){if(!_.M("web_parent_target_for_sheets"))return z;
var C,w;return(w=(C=e.getContainer())==null?void 0:C.getParentTarget(z))!=null?w:z};var Qg=window.documentPictureInPicture;var h7N=_.Kb(["dark"]),OFm=_.Kb(["system-icons"]),Exk=_.Kb(["typography"]),F4g=_.Kb(["lang"]),Vdo=_.Kb(["style"]),W4h=_.Kb(["dir"]),Pes=_.Kb(["rounded-container"]),R7h=_.Kb(["style"]),SF8=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],RH=function(e){this.JSC$18847_clientRoot=e;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
RH.prototype.openWindow=function(e){var z=this,C,w;return _.k(function(K){switch(K.nextAddress){case 1:if(!window.documentPictureInPicture||!_.W1()||z.currentPipWindow)return K.return(!1);_.Iv(K,2);return K.yield((w=Qg?Qg:null)==null?void 0:w.requestWindow(e),4);case 4:C=K.yieldResult;_.Yj(K,3);break;case 2:return _.O_(K),K.return(!1);case 3:if(!C)return K.return(!1);C.addEventListener("pagehide",function(){yGb(z)});
C.addEventListener("resize",z.handlePipWindowResize);f4N(C);dPg(C);UF4(C);return K.yield(I47(C),5);case 5:if(!HF1())return K.return(!1);z.currentPipWindow=C;z.JSC$18847_eventForwarder=uws(C,z.JSC$18847_clientRoot);z.pipWindowResizeDelay=new _.ak(function(){z.currentPipWindow&&_.eA(z.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.RM(z.currentPipWindow.innerWidth,z.currentPipWindow.innerHeight)])},C);
z.pipWindowResizeDelay.start();return K.return(!0)}})};
RH.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var yGb=function(e){if(e.currentPipWindow){var z,C;(z=Qg?Qg:null)==null||(C=z.window)==null||C.close();e.currentPipWindow.removeEventListener("resize",e.handlePipWindowResize);var w;(w=e.pipWindowResizeDelay)==null||w.dispose();e.pipWindowResizeDelay=void 0;var K;(K=e.JSC$18847_eventForwarder)==null||K.stop();e.JSC$18847_eventForwarder=void 0;z=_.b(e.onCloseCallbacks);for(C=z.next();!C.done;C=z.next())C=C.value,C();e.onCloseCallbacks=[];e.currentPipWindow=null}};
RH.prototype.getWindow=function(){return this.currentPipWindow};
var cGW=function(e,z){var C;(C=e.onCloseCallbacks)==null||C.push(z)};
RH.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.W1()};
_.lB.Object.defineProperties(RH.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
RH[Qj]=[PXU];var AGY=new _.Mt("PICTURE_IN_PICTURE_CONTROLLER");var DP8=function(e,z){this.lengthY=this.lengthX=0;this.lengthX=z.x-e.x;this.lengthY=z.y-e.y};var ZjY=function(){},hnE=function(e,z){var C;
(C=e.headerElement)==null||C.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:z}))};var pCL=function(){};
pCL.prototype.openPopup=function(e,z,C,w){var K=this,G;return _.k(function(X){if(!K.container)return X.return();G={openPopupAction:{popup:z,popupType:C,uniqueId:e}};return X.return(K.container.handleOpenPopupAction(G,w))})};
pCL.prototype.closePopup=function(e){this.container&&this.container.closePopup(e)};var eG$=function(){this.openTunnels=new Map},WnE=function(e,z,C){if(gxo(C)){var w=_.ea(C,"gclid");
C={handleEvent:function(J){z&&!z.closed&&typeof z.postMessage==="function"&&J&&J.origin&&J.source===z&&J.data&&J.data.action==="gcl_setup"&&z.postMessage(Object.assign({},{action:"gcl_transfer"},w&&{gclid:w},{gadSource:2}),J.origin)}};
for(var K=_.b(e.openTunnels),G=K.next();!G.done;G=K.next()){var X=_.b(G.value);G=X.next().value;X=X.next().value;if(G.closed)try{window.removeEventListener("message",X),e.openTunnels.delete(G)}catch(J){_.yG(J)}}z&&e.openTunnels.size<15&&(e.openTunnels.set(z,C),window.addEventListener("message",C))}};var zGl=function(){this.clientParams=new Map},qCf=function(e){for(var z=_.b(e.clientParams.keys()),C=z.next();!C.done;C=z.next())C=C.value,C.startsWith("yt-mini-app-share")&&e.clientParams.delete(C)};var CiL=function(e,z){_.Sn.call(this);var C=this;this.shortsController=e;this.storeWithShorts=z;e=_.K3(this.storeWithShorts,_.jt5,function(w){if(w){var K,G=(K=C.shortsController.getRoot())==null?void 0:K.getPlayer(),X;(K=(X=C.shortsController.alternativePlayerContainerElement)==null?void 0:X.getPlayerContainer())&&(G==null||G.appendTo(K))}else{var J;X=(J=C.shortsController.alternativePlayerContainerElement)==null?void 0:J.getPlayerContainer().querySelector("#player");K=C.shortsController.activeIndex;
(J=(G=C.shortsController.getRoot())==null?void 0:G.querySelector('ytd-reel-video-renderer[id="'+K+'"] #player-container'))&&(X==null||X.appendTo(J,void 0,!0))}});
this.addOnDisposeCallback(e)};
_.U(CiL,_.Sn);var L_=function(e,z,C,w){var K=this;this.storeWithShorts=e;this.ephemeralResponseStore=z;this.innertubeTransportService=C;this.innertubeTransportLoader=w;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.rG(_.ks);this.isShortsPipActive=_.rG(_.ql);this.nextReelVe=_.mT(56921);this.prevReelVe=_.mT(56922);this.backButtonVe=_.mT(22156);this.TEST_ONLY={getActiveModules:function(){return K.activeModules}}},wRW=function(e){e.unsubscribeFromStore=
_.K3(e.storeWithShorts,_.gY1,function(z){e.initOrDisposeActiveModules(z);
!z&&e.storeWithShorts.getState().shorts.isFullscreen&&(_.cr(document.documentElement),e.storeWithShorts.dispatch(_.KoS(!1)))});
e.initOrDisposeActiveModules(_.gY1(e.storeWithShorts.getState()))},aHE,n2q,KMq;
L_.prototype.initOrDisposeActiveModules=function(e){e?this.activeModules.push(new CiL(this,this.storeWithShorts)):(_.JA(this.activeModules),this.activeModules.length=0)};
L_.prototype.registerRootElement=function(e){this.rootElement=e;wRW(this)};
L_.prototype.getRoot=function(){return this.rootElement};
L_.prototype.setActiveIndex=function(e){this.activeIndex=e};
_.T9q=function(e,z){var C,w,K,G,X,J,q;return _.k(function(T){switch(T.nextAddress){case 1:return C=new d8,(w=C.JSC$14347_getStoreKey(z))&&e.ephemeralResponseStore.has(w)?T.yield(e.ephemeralResponseStore.get(w),7):T.yield(KMq(e,z),4);case 4:K=T.yieldResult;if(!w){T.jumpTo(3);break}G=l3(K,3600);return T.yield(e.ephemeralResponseStore.put(w,new _.yX(G)),3);case 7:K=(X=T.yieldResult)==null?void 0:_.J8(X);case 3:return((J=K)==null?0:J.replacementEndpoint)&&(q=_.r(K.replacementEndpoint,_.rP))&&K.sequenceContinuation&&
(q.sequenceParams=K.sequenceContinuation),T.return(K)}})};
aHE=function(e,z){z=(new DY).JSC$14347_getStoreKey(z);return!!z&&e.ephemeralResponseStore.has(z)};
n2q=function(e,z,C){var w,K,G,X,J;_.k(function(q){if(q.nextAddress==1){w=new DY;K=w.JSC$14347_getStoreKey(z);if(!K)return q.return();if(C.reelWatchSequenceResponse)return G=l3(C.reelWatchSequenceResponse,3600),e.ephemeralResponseStore.put(K,new _.yX(G)),q.jumpTo(0);if(!e.ephemeralResponseStore.has(K))return q.jumpTo(0);J=C;return q.yield(e.ephemeralResponseStore.get(K),4)}J.reelWatchSequenceResponse=(X=q.yieldResult)==null?void 0:_.J8(X);_.E_(q)})};
KMq=function(e,z){var C=C===void 0?{}:C;var w,K,G;return _.k(function(X){switch(X.nextAddress){case 1:if(e.innertubeTransportService){w=e.innertubeTransportService;X.jumpTo(2);break}if(!e.innertubeTransportLoader){_.AR(Error("vj"));X.jumpTo(2);break}return X.yield(e.innertubeTransportLoader(),4);case 4:w=X.yieldResult;case 2:return X.yield((K=w)==null?void 0:_.yC(K,z,C),5);case 5:return G=X.yieldResult,X.return(G)}})};
_.lB.Object.defineProperties(L_.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
L_[Qj]=[Yvv,_.jN,_.$B(_.vJ),_.$B(uQs)];_.oi$=new _.Mt("STORAGE_MANAGER_TOKEN");var lF1=["touchmove","scroll"];var GRb=!1;var p4k=!1;var $rs={onSpanEnd:function(e){e.parentId==null&&(GRb||(AZ1(),setInterval(AZ1,6E5),GRb=!0),zYk(e,"web_tracing_action"))}};var G3m=URL.createObjectURL;var xro,Ygo={traceAllComponents:_.M("web_tracing_all_components"),exportToCsi:_.M("web_tracing_export_to_csi"),enabledSpansArray:_.r3("web_tracing_enabled_spans"),exportToDevTools:_.M("web_tracing_export_to_devtools"),maxBreadcrumbs:_.n0("tel_max_breadcrumbs",0)};xro=new o47(Ygo);var Txo=_.M("web_shorts_enable_tracing");var bdo=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},XR5;
bdo.prototype.enqueue=function(e,z){z===1?this.currentPersistentToast=e:this.queue.push(e);this.openToast()};
bdo.prototype.openToast=function(){var e;(e=this.currentToast)!=null&&e.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.h$=new _.Mt("TOAST_MANAGER_TOKEN");var JR3=new _.Mt("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var kR5=new _.Mt("VIEW_TRANSITION_COORDINATOR_TOKEN");var qgq=function(e){this.config=e;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;e=_.b(e.transitionConfigs);for(var z=e.next();!z.done;z=e.next())z=_.b(z.value).next().value,this.transitionTasksMap.set(z,[])};
qgq.prototype.registerElement=function(e,z,C){C=C===void 0?!1:C;for(var w=_.b(Object.keys(z)),K=w.next(),G={};!K.done;G={viewTransitionName:void 0},K=w.next()){K=K.value;G.viewTransitionName=z[K];var X=this.elementTasksMap.get(e),J=void 0;if((J=X)==null?0:J.has(K)){_.cn(new _.uh("Element already registered for transition",e.tagName,K));break}X=X||new Map;X.set(K,{beforeTransition:function(q){return function(){e.style.viewTransitionName=q.viewTransitionName}}(G),
afterTransition:function(){e.style.viewTransitionName&&(e.style.viewTransitionName="")},
runOnce:C});this.elementTasksMap.set(e,X)}};
_.BF=function(e,z){var C=e.elementTasksMap.get(z);C&&(C.clear(),C.size===0&&e.elementTasksMap.delete(z))};
qgq[Qj]=[JR3];var T1l=_.f(function(e){var z=_.kI("yt-expandable-metadata-header-view-model"),C=_.T9(function(w){_.Bj(_.nm(),{data:e.data()});if(!_.S3(_.f7(w),z.value,["A".toString(),"BUTTON".toString()])){var K;(K=e.expandedCallback)==null||K.call(e,!1)}});
return _.x("yt-expandable-metadata-header-view-model",{el:z,class:"ytExpandableMetadataHeaderViewModelHost"},_.x(_.l,{cond:function(){return e.expanded()},
then:function(){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":C},_.x("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.x(_.l,{cond:function(){return e.data().expandedTitleImage},
then:function(w){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.x(_.Zf,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:w}))}}),_.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.x("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.x(_.U2,{text:function(){return e.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.x(_.U2,{text:function(){return e.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.x(_.U2,{text:function(){return e.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.x("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.x(_.PF,{data:function(){return e.data().infoButton}},{buttonViewModel:_.iz}),_.x(_.PF,{data:function(){return e.data().collapseButton}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
onClick:function(){var K;(K=e.expandedCallback)==null||K.call(e,!1)}})}})))},
else:function(){return _.x(xmZ,Object.assign({},e))}}))},"sg"),$m3=_.f(function(e){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.x(_.l,{cond:function(){return e.data().collapsedLabelImage},
then:function(z){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.x(_.Zf,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:z,alt:""}))}}),_.x(_.U2,{text:function(){return e.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"tg"),xmZ=_.f(function(e){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.T9(function(){_.Bj(_.nm(),{data:e.data()});var z;(z=e.expandedCallback)==null||z.call(e,!0)})},_.x("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.x(_.l,{cond:function(){return e.data().collapsedImage},
then:function(z){return _.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.x(_.Zf,{height:20,preserveHeight:!0,preserveWidth:!0,data:z,alt:""}))}}),_.x(_.l,{cond:function(){return e.data().showLeadingCollapsedLabel},
then:function(){return _.x($m3,Object.assign({},e))}}),_.x("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.x(_.U2,{text:function(){return e.data().collapsedTitle}}))),_.x("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.x(_.l,{cond:function(){return!e.data().showLeadingCollapsedLabel},
then:function(){return _.x($m3,Object.assign({},e))}}),_.x(_.PF,{data:function(){return e.data().infoButton}},{buttonViewModel:_.iz}),_.x(_.PF,{data:function(){return e.data().expandButton}},{buttonViewModel:function(z){var C=z.data;
return _.x(_.iz,{data:C,onClick:function(){_.Bj(_.nm(),{data:C});var w;(w=e.expandedCallback)==null||w.call(e,!0)}})}})))},"ug");_.l_l=_.f(function(e){var z=_.b(_.zx(function(){return e.data().initiallyExpanded})),C=z.next().value,w=z.next().value,K,G=(K=_.lh().resolve(_.$B(_.jQ)))==null?void 0:K(),X=function(){var J=e.data().colorData;
if(J)return G?J==null?void 0:J.darkColorPalette:J==null?void 0:J.lightColorPalette};
return _.x("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.QC({"background-color":function(){var J=X();return(J==null?0:J.section2Color)?_.FN(J.section2Color):""}})},_.x(_.PF,{data:function(){return e.data().header}},{expandableMetadataHeaderViewModel:function(J){return _.x(T1l,{data:J.data,
expanded:function(){return!!C()},
expandedCallback:function(q){w(q)}})}}),_.x(_.l,{cond:function(){return C()},
then:function(){return _.x("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.x(_.PF,{data:function(){return e.data().expandedContent}},{horizontalShelfViewModel:function(J){return _.x(_.Rj,{data:J.data,
includeMargin:!0,forceNarrowLayout:!0,palette:X})},
videoSummaryContentViewModel:function(J){return _.x(qLU,{data:J.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(J){return _.x(_.eI,{data:J.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(J){return _.x(_.Ub,{data:J.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.x(_.PF,{data:function(){return e.data().expandedBottomButtons}},{buttonViewModel:function(J){return _.x("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.x(_.iz,{data:J.data}))}}))}}))},"vg");var QVY=_.f(function(e){var z=e.text;var C=e.marqueeSpacing;var w=e.scrollDelay;var K=e.scrollDuration;var G=e.enableMarqueeScroll;e=e.large;var X=_.b(_.II(!1,void 0,"WyNYFf")),J=X.next().value,q=X.next().value,T=_.b(_.II(0,void 0,"OoTdhe"));X=T.next().value;var Q=T.next().value,m=_.kI("marquee-scroll");T=_.kI("div");var a=_.kI("span"),n=_.lh().resolve(_.c9);_.sH(function(){if(G()){var L=a.value.getBoundingClientRect().width,h=m.value.getBoundingClientRect().width;if(L>h){var E=(n==="ltr"?-1:1)*(L+
(C?C():16));Promise.resolve().then(function(){q(!0);Q(E)})}}},"dv0Anf");
var H={},I={};return _.x("marquee-scroll",{class:_.qT("ytMarqueeScrollHost",(H.ytMarqueeScrollHostLarge=e,H)),el:m},_.x("div",{id:"marquee-scroll-inner-container",class:_.qT("ytMarqueeScrollInnerContainer",(I.ytMarqueeScrollAnimationEnabled=function(){return J()},I)),
el:T,style:_.QC({gap:C?(0,_.rs)(C):"16px","animation-duration":K?Q1U(K):"16s","animation-delay":w?Q1U(w):"3s","--marquee-translate":(0,_.rs)(X)})},_.x("span",{el:a,dir:"auto"},_.x(_.U2,{text:z,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.x(_.l,{cond:J,then:function(){return _.x("span",{"aria-hidden":"true",dir:"auto"},_.x(_.U2,{text:z,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"xg");_.mmE=_.f(function(e){var z=e.data;var C=e.overlayDensity;e=_.T9(function(){z().onTapCommand&&_.NF(z().onTapCommand);return!1});
var w=_.BTo(),K=function(){return(C==null?void 0:C())===1?22:16},G={};
return _.x("reel-sound-metadata-view-model",{class:_.qT("ytReelSoundMetadataViewModelHost",(G.ytReelSoundMetadataViewModelHostLarge=function(){return(C==null?void 0:C())===1},G)),
"on:click":e,tabindex:0,role:"button","on:keydown":w},_.x("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.x(_.l,{cond:function(){return z().musicIcon},
then:function(X){return _.x(_.Zf,{data:X,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:K})}}),_.x("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.x(QVY,{text:function(){return z().soundMetadata},
enableMarqueeScroll:function(){return!!z().enableMarqueeScroll},
large:function(){return(C==null?void 0:C())===1}}))))},"yg");var a_o,niv,Hd$,vif,WMl,Um$,LMq,RGE;a_o=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];niv=_.n0("wil_icon_max_concurrent_fetches",Infinity);
Hd$=function(e,z,C){var w=this;this.iconSet=e;this.appDirection=z;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.wL.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.M("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.M("wil_icon_network_first");this.renderWhenIdle=_.M("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.M("wil_icon_load_immediately");this.isPurging=!1;e=function(){w.cacheStorageAvailable&&(w.cacheStorageAsync=_.wL.caches.open("yt-icons").then(function(G){return w.cacheStorageSync=G}).catch(function(){w.cacheStorageAvailable=!1}))};
C=(C==null?void 0:C())||{};C=_.b(Object.entries(C));for(z=C.next();!z.done;z=C.next()){var K=_.b(z.value);z=K.next().value;K=K.next().value;K=Ld(K);M5a(K);this.iconCache[z]=K.cloneNode(!0)}this.isPurging=rRC(this);this.isPurging instanceof Promise?this.isPurging.then(e):e()};
_.sLg=function(e,z){var C=e.resolveIcon(z);return C?e.renderingMode===1?Um$(e,C,e.renderingMode):(z=e.iconCache[C.url])?(z=z.cloneNode(!0),vif(e,z),Um$(e,C,e.renderingMode,z)):_.I_q(e,C).then(function(w){var K=w?0:1;vif(e,w);return Um$(e,C,K,w)}):(_.cn(new _.uh("Icon not found",{iconShape:z})),function(){})};
vif=function(e,z){if(z){e.counter+=1;e="_yt"+e.counter;z=[z].concat(_.s_(z.getElementsByTagName("*")));z=_.b(z);for(var C=z.next();!C.done;C=z.next())if(C=C.value,C.tagName==="style"&&C.textContent)C.textContent=WMl(C.textContent,e,!0);else for(var w=_.b(C.attributes),K=w.next();!K.done;K=w.next()){K=K.value;K.name==="id"&&(K.value+=e);["mask","fill","clip-path"].includes(K.name)&&(K.value=WMl(K.value,e));if(K.name==="style"){var G=C.style;try{G.cssText=WMl(G.cssText,e,!0)}catch(Q){var X=void 0,J=
void 0,q=void 0,T=void 0;OI({error:((X=Q)==null?void 0:(q=(J=X).toString)==null?void 0:q.call(J))||"",el:C.outerHTML,style:!!G,cssText:(T=G)==null?void 0:T.cssText})}}K.name==="xlink:href"&&(K.value=K.value.replace(/#(.*)/,"#$1"+e))}}};
WMl=function(e,z,C){var w=/url\(["']?#(.*?)["']?\)/;(C===void 0?0:C)&&(w=/url\(["']?#(.*?)["']?\)/g);return e.replace(w,"url(#$1"+z+")")};
Um$=function(e,z,C,w){return function(K,G){var X;var J=Object.assign({},{iconWidth:z.size+"px",iconHeight:z.size+"px",iconDisplay:"block"},G,{iconColor:(X=G==null?void 0:G.iconColor)!=null?X:"currentcolor"});X=_.Lh("DIV");G=J.iconColor;var q=J.iconFilter;J="width: "+J.iconWidth+"; height: "+J.iconHeight+"; display: "+J.iconDisplay+";";q&&(J+=" filter: "+q+";");C===0&&(J+=" fill: "+G+";");C===1&&(q=z.url,J+=" -webkit-mask: url("+q+") no-repeat center / cover; mask: url("+(q+") no-repeat center / cover; background-color: ")+
G);z.allowMirroring&&e.appDirection==="rtl"&&(J+=" transform: scale(-1, 1); transform-origin: center center;");X.setAttribute("style",J);C===0&&w&&X.appendChild(w);K.appendChild(X)}};
_.I_q=function(e,z){var C,w,K;return _.k(function(G){C=function(X){return ec(X)};
w=z.url;if(!Pi3(w))throw Error("yj");K=RGE(e,w);return G.return(K.then(function(X){return X.clone().text()}).then(function(X){var J=C(X);
X=z.size;var q=_.Lh("DIV");_.ko(q,J);J=_.hA(q.firstElementChild!==void 0?q.firstElementChild:_.LIh(q.firstChild,!0));X=M5a(J,X);e.iconCache[w]=X.cloneNode(!0);delete e.responsePromises[w];return X}).catch(function(){}))})};
LMq=function(e){var z,C=(z=e.requestAninmationFrameResolver)==null?void 0:z.promise;C||(e.requestAninmationFrameResolver=new _.x5,C=e.requestAninmationFrameResolver.promise,_.wL.requestAnimationFrame(function(){var w;(w=e.requestAninmationFrameResolver)==null||w.resolve();e.requestAninmationFrameResolver=null}));
return C};
RGE=function(e,z){var C,w;return _.k(function(K){if(K.nextAddress==1)return e.waitForAnimationFrame?K.yield(LMq(e),2):K.jumpTo(2);C=e.responsePromises[z];C||(w=function(){var G,X,J;return _.k(function(q){switch(q.nextAddress){case 1:if(!e.cacheStorageAvailable){G=void 0;q.jumpTo(2);break}if(X=e.cacheStorageSync){q.jumpTo(3);break}return q.yield(e.cacheStorageAsync,4);case 4:X=q.yieldResult;case 3:G=X;case 2:return J=G,e.isNetworkFirstStrategy?q.return(e.fetchAndUpdateCache(z,J).catch(e.getCacheStorageResponse.bind(e,
z,J))):q.return(e.getCacheStorageResponse(z,J).catch(e.fetchAndUpdateCache.bind(e,z,J)))}})},C=e.renderWhenIdle?new Promise(function(G,X){_.Dz(_.c5,function(){w().then(G).catch(X)},10)}):w(),e.responsePromises[z]=C);
return K.return(C.catch(function(G){delete e.responsePromises[z];OI({error:(G==null?0:G.toString)?G.toString():"",url:z});throw G;}))})};
Hd$.prototype.fetchAndUpdateCache=function(e,z){var C=this;return _.k(function(w){return w.return(hGq(C,e).then(function(K){Od3(C,e,K,z);return K}))})};
var hGq=function(e,z){var C;return _.k(function(w){if(e.numFetches<niv)return e.numFetches+=1,w.return(Eil(e,z).finally(function(){--e.numFetches;if(Object.keys(e.queuedResponseResolvers).length){var K=Object.keys(e.queuedResponseResolvers)[0],G=e.queuedResponseResolvers[K];delete e.queuedResponseResolvers[K];G.resolve(hGq(e,K))}}));
C=new _.x5;e.queuedResponseResolvers[z]=C;return w.return(C.promise)})},Eil=function(e,z,C){C=C===void 0?2:C;
var w;return _.k(function(K){w={credentials:"same-origin",priority:"low"};return K.return(_.wL.fetch(z,w).then(function(G){return G.ok?G:Promise.reject(Error("zj`"+G.status+"`"+G.statusText))}).catch(function(G){if(C>0)return Eil(e,z,C-1);
throw G;}))})},Od3=function(e,z,C,w){_.k(function(K){return w?K.return(new Promise(function(G){_.Dz(_.c5,function(){var X,J;
return _.k(function(q){switch(q.nextAddress){case 1:if(!e.isNetworkFirstStrategy){X=void 0;q.jumpTo(2);break}return q.yield(w.match(z).catch(function(){}),3);
case 3:X=q.yieldResult;case 2:if(J=X){q.jumpTo(4);break}return q.yield(w.put(z,C.clone()).catch(function(T){OI({error:(T==null?0:T.toString)?T.toString():"",url:z})}),4);
case 4:G(),_.E_(q)}})},50)})):K.return()})};
Hd$.prototype.getCacheStorageResponse=function(e,z){return _.k(function(C){return z?C.return(z.match(e).then(function(w){return w&&w.ok?w:Promise.reject()})):C.return(Promise.reject())})};
var M5a=function(e,z){z===void 0||e.getAttribute("viewBox")||e.setAttribute("viewBox","0 0 "+z+" "+z);e.setAttribute("focusable","false");e.setAttribute("aria-hidden","true");z=_.M("killswitch_remove_icon_fill_color");e.getAttribute("fill")!=="currentcolor"&&e.getAttribute("fill")!=="currentColor"||z||e.removeAttribute("fill");try{e.style.pointerEvents="none",e.style.display="inherit",e.style.width="100%",e.style.height="100%"}catch(K){var C;OI({error:((C=K)==null?0:C.toString)?K.toString():""});
try{e.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(G){var w;OI({error:((w=G)==null?0:w.toString)?G.toString():""})}}return e},Pi3=function(e){for(var z=_.b(a_o),C=z.next();!C.done;C=z.next())if(e.startsWith(C.value)&&e.endsWith(".svg"))return!0;
return!1};
Hd$.prototype.resolveIcon=function(e){return this.iconSet.resolveIcon(e)};
var OI=function(e){_.AX(new _.uh("Error in IconManager",e))},rRC=function(e){if(_.M("wil_icons_cache_purge_killswitch"))return!1;
try{var z=_.wL.localStorage}catch(G){return!1}if(!z||!e.cacheStorageAvailable)return!1;var C=function(G){try{var X;(X=z)==null||X.setItem("yt-icons-last-purged",G.toString())}catch(q){var J;OI({error:((J=q)==null?0:J.toString)?q.toString():""})}},w=Number(z.getItem("yt-icons-last-purged"));
if(!w)return w=new Date,w=w.setDate(w.getDate()-Math.floor(Math.random()*90+1)),C(w),!1;if(function(G,X){G=new Date(G);X=new Date(X);return X.getMonth()-G.getMonth()+12*(X.getFullYear()-G.getFullYear())}(w,Date.now())<3)return!1;
try{return _.wL.caches.delete("yt-icons").then(function(G){G&&C(Date.now());return G}).catch(function(){return!1}).finally(function(){e.isPurging=!1})}catch(G){var K;
OI({error:((K=G)==null?0:K.toString)?G.toString():""});return!1}};
Hd$[Qj]=[jvW,_.c9,_.$B(Ano)];_.FMq=function(e,z){this.iconManager=e;this.iconsToFetch=z};
_.FMq[Qj]=[_.xp,_.$B(cnZ)];var V5Y=function(){};var f_$=function(e,z,C){this.requestKey=e;this.mq2=z;this.svG=C;this.kFe=function(){return new XMLHttpRequest};
this.aGh=void 0;this.cl2=[]};
f_$.prototype.getLatestChallengeResponse=function(){return this.svG};
var Fss=function(e,z,C){var w,K,G,X;return _.k(function(J){if(J.nextAddress==1){_.LK("attestation_challenge_fetch");_.hg("att_fs",void 0,"attestation_challenge_fetch");if(!e.aGh)throw new _.yE(9,"Missing fetcher");return J.yield(e.aGh(z,C),2)}w=J.yieldResult;G=(K=w)==null?void 0:K.bgChallenge;if(!G)throw new _.yE(15,"Missing field");e.svG=w;e.cl2.forEach(function(q){q(w)});
X=BW1(G);_.hg("att_fc",void 0,"attestation_challenge_fetch");RS("attestation_challenge_fetch");return J.return(X)})},K06=function(e,z){var C,w,K,G,X;
return _.k(function(J){switch(J.nextAddress){case 1:C=new nh(100,3E5,.25,2),w=void 0;case 2:if(!(C.currBackoffCount_<10)){J.jumpTo(4);break}_.Iv(J,5);if(!(C.currBackoffCount_>0)){J.jumpTo(7);break}return J.yield(mr1(C.getValue()),7);case 7:return J.yield(SgZ(e,z),9);case 9:return K=J.yieldResult,J.return(K);case 5:G=_.O_(J);G instanceof _.yE?w=G:(X=G instanceof Error?G.message:"Unknown",w=new _.yE(9,X));sIC(C);J.jumpTo(2);break;case 4:if(w)throw w;throw new _.yE(9,"Unknown error");}})},SgZ=function(e,
z){z=rJX(H04(new Msh,z),e.requestKey);
var C=new _.x5,w=e.kFe();w.open("POST",e.mq2);w.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");w.setRequestHeader("Content-Type","application/json+protobuf");w.onload=function(){if(_.$Lm(w)){var K=Eja(w.responseText);C.resolve(K)}else C.reject(new _.yE(_.QX7(_.Hi(w)),w.statusText))};
w.onerror=function(){C.reject(new _.yE(_.QX7(_.Hi(w)),w.statusText))};
w.send(z.serialize());return C.promise};var dmY=function(e){this.networkStatusManager=e;this.isDownloaded=Aoo===void 0?function(){return!1}:Aoo;
this.isReady=!1;this.fHu=u1f(this)},u1f=function(e){var z;
return _.k(function(C){if(C.nextAddress==1)return C.yield(ARs(),2);if(C.nextAddress!=3)return z=C.yieldResult,C.yield(g2a(z),3);e.xs=C.yieldResult;n4o(e.xs).then(function(){e.isReady=!0});
return C.return(e.xs)})},Dmb=function(e,z,C){e.xs?(e=e.xs.ywQ({tZ:C,
ss7:!0,fuG:!0}),z.serviceIntegrityDimensions={poToken:e}):_.yG(Error("Bj"))};
dmY.prototype.processContext=function(e){var z=this;if(!e.input.match(_.zU(zEX)))return _.LH();var C=e.innerTubeRequest,w=C.videoId;return!w||this.isDownloaded(C)||this.networkStatusManager&&!this.xs&&!this.networkStatusManager.isNetworkAvailable()||_.M("webpo_exit_on_net_err")&&!this.xs&&(window.bgens===1||window.bgens===3)?_.LH():this.xs?this.isReady?(Dmb(this,C,w),_.LH()):new R2(n4o(this.xs).then(function(){Dmb(z,C,w)})):new R2(this.fHu.then(function(K){return _.k(function(G){if(G.nextAddress==
1)return G.yield(n4o(K),2);
Dmb(z,C,w);_.E_(G)})}))};var idv=new _.Mt("WEB_PO_CONTEXT_PROCESSOR");var N1L=function(e,z){var C=this;this.pf7=0;var w;this.fMg=(w=z==null?void 0:z.fMg)!=null?w:window;this.networkStatusManagerPromise=z==null?void 0:z.networkStatusManagerPromise;var K;this.requestKey=(K=z==null?void 0:z.requestKey)!=null?K:_.Mv("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var G;this.t2n=(G=z==null?void 0:z.t2n)!=null?G:function(q){return new CR(q)};
var X;w=(X=z==null?void 0:z.yoJ)!=null?X:function(q,T,Q){return new f_$(q,T,Q)};
this.bgChallenge=BW1(e.bgChallenge);this.ttlSeconds=tms(ps(e.challenge||""));this.jf=w(this.requestKey,_.M("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.wL.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",e);this.zzw=z==null?void 0:z.zzw;aFg(this.jf);var J;this.lGm=(J=z==null?void 0:z.lGm)!=null?J:function(q){_.W9(C.fMg.document,"visibilitychange",
function(){C.fMg.document.visibilityState==="visible"&&q()})}},B1Z=function(e){if(!e.vm){var z={maxAttempts:5,
sI0:e.ttlSeconds*1E3};MFg(e.fMg);e.vm=e.t2n({jf:e.jf,wgG:{disable:_.M("html5_web_po_disable_remote_logging"),sC:"aGIf",r02:JgE("html5_web_po_experiment_ids"),hNJ:_.M("wpo_dis_lfdms")?0:1E3,khQ:function(w){var K=o7s.get(w);K||(K=new KCT(w),K=new Wo(K),o7s.set(w,K));return K}},
fnk:z,qPI:e.bgChallenge,eiJ:rM8});e.pf7=Date.now();Lss(e.vm,function(){e.pf7=Date.now()});
e.fMg.bgevmc={p:function(){var w;(w=e.vm)==null||w.pause()},
r:function(){var w;(w=e.vm)==null||w.resume()},
cr:function(){var w,K;return(K=(w=e.vm)==null?void 0:w.checkForRefresh())!=null?K:Promise.resolve()}};
zy8(e.vm,function(){return _.k(function(w){return w.return(sVl(e))})});
var C=e.dIY.bind(e);e.networkStatusManagerPromise&&e.ttlSeconds>0&&e.networkStatusManagerPromise.then(function(w){w.listen("publicytnetworkstatus-online",C)});
e.lGm(C)}};
N1L.prototype.dIY=function(){if(Date.now()>this.pf7+this.ttlSeconds*1E3){var e;(e=this.vm)==null||Ry4(e)}};
var sVl=function(e){if(e.nF2)return e.nF2;if(!e.vm)throw Error("Cj");e.nF2=new Yu({vm:e.vm,jf:e.jf,oFa:!0,onError:rM8,fnk:e.zzw});return e.nF2},UrE=function(e,z){e=new N1L(e,z);
B1Z(e);(z==null?0:z.r18)||sVl(e)};var t5a=_.m6q.ephemeralActionSelector,giv=function(e,z){this.store=e;this.queue=[];z==null||z.addEventListener("yt-navigate-start",this.reset.bind(this))};
giv.prototype.enqueue=function(e){var z=e.command,C=e.durationMs,w=e.elementToFocus;var K=e.label;var G=e.elementToFocus;e.command?K=_.kk("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:K,shortcut:_.kk("SHIFT_PLUS_ENTER")}):G&&(e=K+". "+_.kk("SHIFT_PLUS_ENTER")+" for more information.",K=_.kk("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:K,shortcut:_.kk("SHIFT_PLUS_ENTER")},e));C={announcement:K,durationMs:C!=null?C:8E3};z?C.command=z:w&&(w.classList.add("ephemeral-action-focusable-element"),C.selector=w.tagName+
".ephemeral-action-focusable-element");this.queue.push(C);jV3(this)};
giv.prototype.activate=function(e){var z=t5a(this.store.getState());if(z){if(z==null?0:z.command)_.uA(z.command),this.store.dispatch(AaL(null));if(z==null?0:z.selector)z=document.querySelector(z.selector),_.pi1(z);e.preventDefault()}};
var jV3=function(e){if(!t5a(e.store.getState())&&e.queue.length){var z=e.queue.shift();z&&(e.previousAnnouncement===z.announcement&&(z.announcement+="\u00a0"),e.store.dispatch(AaL(z)),e.previousAnnouncement=z.announcement,e.JSC$18969_timeoutId=setTimeout(function(){if(z.selector){var C;(C=document.querySelector(z.selector))==null||C.classList.remove("ephemeral-action-focusable-element")}e.store.dispatch(AaL(null));jV3(e)},z.durationMs))}};
giv.prototype.reset=function(){this.JSC$18969_timeoutId&&clearTimeout(this.JSC$18969_timeoutId);this.store.dispatch(AaL(null));this.queue.length=0;this.JSC$18969_timeoutId=void 0};
giv[Qj]=[_.Tr,_.$B(_.cc)];_.EI=new _.Mt("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var yR3=new _.Mt("AUTH_SERVICE_TOKEN");var Wdk=_.Kb(["about:blank"]),IFE;var cRL=new _.Mt("API_IFRAME_TOKEN");var fIg;fIg=new _.Mt("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.ARW=new _.Mt("MISC_UI_SHARED_FLAGS_TOKEN");var Zdf=function(){};
Zdf.prototype.getFlag=function(e){if(e.configType!==2)throw Error("Dj");return pRv(e)};
var pRv=function(e){switch(e.flagType){case "bool":return _.M(e.flagName);case "int":return _.SS(_.n0(e.flagName));case "double":return _.n0(e.flagName);case "string":return _.Mv(e.flagName);case "int32_list":return JgE(e.flagName);case "int64_list":return JgE(e.flagName).map(function(z){return _.SS(z)});
case "string_list":return _.r3(e.flagName);default:throw Error("Ej");}};var Ff=function(e,z,C){z=z===void 0?{}:z;za.call(this,C===void 0?"uninitialized":C);this.env=e;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}];z.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=z.shouldWaitOnAsyncImmediate)};
_.U(Ff,za);Ff.prototype.init=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(e(z.env),2):(e(z.env),w.jumpTo(2));if(w.nextAddress!=4)return z.jobSet?w.yield(z.jobSet.completedResolver.promise,4):w.jumpTo(4);C=_.Il();C.parkOrScheduleJob(function(){z.transition("rendering")},10,"ci");
_.E_(w)})};
Ff.prototype.initialRender=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(e(z.env),2):(e(z.env),w.jumpTo(2));if(w.nextAddress!=4)return z.jobSet?w.yield(z.jobSet.completedResolver.promise,4):w.jumpTo(4);C=_.Il();C.parkOrScheduleJob(function(){z.transition("rendered")},10,"cr");
_.E_(w)})};
Ff.prototype.afterRenderImmediate=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return z.processPluginOptions.shouldWaitOnAsyncImmediate?w.yield(e(z.env),2):(e(z.env),w.jumpTo(2));if(w.nextAddress!=4)return z.jobSet?w.yield(z.jobSet.completedResolver.promise,4):w.jumpTo(4);C=_.Il();C.parkOrScheduleJob(function(){z.transition("after-render-deferred")},10,"carml");
_.E_(w)})};
Ff.prototype.afterRenderDeferred=function(e){var z=this;return _.k(function(C){e(z.env);_.E_(C)})};_.g1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var eyo={},zy3=(eyo.rendered={priority:0,callback:function(e){adT(e.injector.resolve(ik))}},eyo);var U97=new _.Mt("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),Ch3=new _.Mt("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var wiZ=function(e){this.callbackFnMap=e;this.configMap={}};
wiZ.prototype.handleResponse=function(e){var z;if(e=(z=e.responseContext)==null?void 0:z.serviceTrackingParams)for(z=_.b(e),e=z.next();!e.done;e=z.next()){e=e.value;var C=e.params,w=e.service;if(C&&w){this.configMap[w]||(this.configMap[w]=new UyX);e=this.configMap[w];var K=void 0,G=(K=this.callbackFnMap)==null?void 0:K[w];C=_.b(C);for(w=C.next();!w.done;w=C.next())K=w.value,w=K.key,K=K.value,w&&K&&(e.set(w,K),G&&G(w,K))}}};
wiZ.prototype.getConfig=function(e){return this.configMap[e]||void 0};
wiZ[Qj]=[_.$B(Ch3)];var KsL=!1,VF7=0,hY1=null,Fd1=null;var oBf=new _.Mt("NETWORK_SLI_TOKEN");var GNY=function(e){this.networkSli=e};
GNY.prototype.fetch=function(e,z,C){var w=this,K;return _.k(function(G){K=Y3b(w,e,z);return G.return(fetch(K).then(function(X){return w.handleResponse(X,C)}).catch(function(X){_.AX(X);
if((C==null?0:C.expectJsonStrict)&&X instanceof wg&&X.errorType===1)return Promise.reject(X)}))})};
var fYs=function(e,z,C,w){var K,G,X,J,q,T,Q;return _.k(function(m){switch(m.nextAddress){case 1:return K=Y3b(e,z,C),_.Iv(m,2),m.yield(fetch(K),4);case 4:G=m.yieldResult;_.Yj(m,3);break;case 2:throw _.O_(m),new wg(2,"Failed to parse streaming response",K.url);case 3:if(!G.redirected&&!G.ok)throw(X=e.networkSli)==null||X.failure(),new _.uh("Streaming fetch request not ok",K.url);if(!G.body)throw new _.uh("No response body in streaming response",K.url);J={};if(_.M("web_streaming_fast"))return q=G.body.getReader(),
m.return(b0$(e,q,J,w));T=G.body.pipeThrough(new TextDecoderStream).getReader();Q=new _.Er;return m.return(XiC(e,T,Q,QH4,J,w))}})},Y3b=function(e,z,C){if(e.networkSli){var w=_.Pi(_.jy(z,"key"))||"/UNKNOWN_PATH";
e.networkSli.start(w)}e=C;_.M("wug_networking_gzip_request")&&(e=MLg(C));return new window.Request(z,e)},b0$=function(e,z,C,w){var K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y,Z,YN,Jk,v1,lg,M5,fo,ug,sE,w6,qY,y1;
return _.k(function(Qa){switch(Qa.nextAddress){case 1:K=new TextDecoder("utf-8"),G=[],J=X=0,_.Iv(Qa,2,3);case 5:return Qa.yield(z.read(),8);case 8:q=Qa.yieldResult;T=q.value;if(Q=q.done){m=0;if(G.length>X)for(m=G[X].length-J,a=X+1;a<G.length;a++)m+=G[a].length;m>0&&(n=fF5(G,m,X,J),H=n.indexOf(123),I=n.lastIndexOf(125),H!==-1&&I!==-1&&I>H&&(L=n.subarray(H,I+1),h=JSON.parse(K.decode(L)),QH4(C,h),E=void 0,(E=w)==null||E(C,h)));N=void 0;(N=e.networkSli)==null||N.success();return Qa.return(C)}G.push(T);
D=X;for(g=J;D<G.length;)if(y=G[D],Z=y.indexOf(10,g),Z===-1){if(D===G.length-1)break;D++;g=0}else{YN=D;Jk=Z+1;v1=0;if(X===YN)v1=Jk-J;else{v1=G[X].length-J;for(lg=X+1;lg<YN;lg++)v1+=G[lg].length;v1+=Jk}M5=fF5(G,v1,X,J,YN,Jk);fo=M5.indexOf(123);ug=M5.lastIndexOf(125);if(fo!==-1&&ug!==-1&&ug>fo){sE=M5.subarray(fo,ug+1);try{w6=JSON.parse(K.decode(sE)),QH4(C,w6),qY=void 0,(qY=w)==null||qY(C,w6)}catch(Ha){throw new wg(1,"Failed to parse streaming response object",K.decode(sE));}}X=D;g=J=Z+1;J===y.length&&
(X++,J=0,D=X,g=0)}Qa.jumpTo(5);break;case 3:_.PZ(Qa);z.releaseLock();_.hn(Qa,0);break;case 2:y1=_.O_(Qa);if(y1 instanceof wg)throw y1;throw new wg(1,"Failed to process streaming response");}})},XiC=function(e,z,C,w,K,G){var X,J,q,T,Q,m,a,n,H;
return _.k(function(I){if(I.nextAddress==1)return I.yield(z.read(),2);X=I.yieldResult;J=X.value;if(q=X.done)return(T=e.networkSli)==null||T.success(),I.return(K);try{Q=C.parse(J)}catch(L){throw new wg(1,"Failed to parse streaming response",J);}if(Q!=null)for(m=_.b(Q),a=m.next();!a.done;a=m.next())n=a.value,w(K,n),H=void 0,(H=G)==null||H(K,n);return I.return(XiC(e,z,C,w,K,G))})};
GNY.prototype.handleResponse=function(e,z){var C=e.text().then(function(w){if((z==null?0:z.jspbResponseCtor)&&e.ok)return CCs(z.jspbResponseCtor,w);w=w.replace(")]}'","");if((z==null?0:z.expectJsonStrict)&&w)try{var K=JSON.parse(w)}catch(X){throw new wg(1,"JSON parsing failed after fetch");}var G;return(G=K)!=null?G:JSON.parse(w)});
e.redirected||e.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),C=C.then(function(w){_.AX(new _.uh("Error: API fetch failed",e.status,e.url,w));return Object.assign({},w,{errorMetadata:{status:e.status}})}));
return C};
GNY[Qj]=[_.$B(oBf)];var JJ3=new _.Mt("NETWORK_MANAGER_TOKEN");var kNo=[1,2,4,8,16,30],xvE=function(e){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=e.maxTimeMs;this.maxFrameCount=e.maxFrameCount===void 0?Math.ceil(60*e.maxTimeMs/1E3):e.maxFrameCount;e=_.b(kNo);for(var z=e.next();!z.done;z=e.next())this.brokenFrameSummarizers.push(new q3l(z.value/60*1E3))},T3Y=function(e){var z=e.frameCountInternal>=e.maxFrameCount;
return e.elapsedTimeMs>=e.maxTimeMs||z};
xvE.prototype.summarize=function(){for(var e=[],z=_.b(this.brokenFrameSummarizers),C=z.next();!C.done;C=z.next())C=C.value,C=C.brokenFrameCount!==0?{severityMs:Math.round(C.targetFrameTimeMs),eventCount:C.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(C.averageDurationBetweenEventsMs)}:void 0,C&&e.push(C);return{summaries:e,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.lB.Object.defineProperties(xvE.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 q3l=function(e){this.targetFrameTimeMs=e;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.lB.Object.defineProperties(q3l.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var $v3=function(){};
$v3.prototype.start=function(e,z){var C=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var w=new xvE({maxTimeMs:e});this.monitor=w;this.lastSummaryInternal=void 0;this.metadataToLog=z;return new Promise(function(K){var G=function(X){if(X===void 0)C.stop(),K(void 0);else if(C.monitor!==w)X=Object.assign({},w.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),K(X);else{var J=C.monitor;if(!T3Y(J)){J.frameCountInternal++;if(J.prevTime===
void 0)J.startTime=X;else for(var q=X-J.prevTime,T=_.b(J.brokenFrameSummarizers),Q=T.next();!Q.done;Q=T.next()){Q=Q.value;var m=Q.currTimeMs;Q.currTimeMs+=q;q>Q.targetFrameTimeMs+2&&(Q.brokenFrameCount++,Q.timeOfFirstBrokenFrameMs===void 0&&(Q.timeOfFirstBrokenFrameMs=m),Q.timeOfLastBrokenFrameMs=m)}J.prevTime=X}T3Y(C.monitor)?K(C.stop()):_.c5.addJob(G,5,0)}};
_.c5.addJob(G,5,0)})};
$v3.prototype.stop=function(e){if(!this.monitor)return this.lastSummaryInternal;var z=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(z.monitoringDurationMs){e=e!=null?e:this.metadataToLog;var C={droppedFramesSummary:z,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};e&&(C[e.type]=e.data);_.gm("manualSmoothnessMeasurement",C)}this.monitor=void 0;this.lastSummaryInternal=z;this.metadataToLog=void 0;return z};_.l6b=new _.Mt("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var QX5;QX5=function(e){this.JSC$19011_expiringStorage=new D6(e)};
_.mvo=function(e){if(_.S1s()&&(e=_.ZK1(_.f0()+"::"+e)))return new QX5(e)};
QX5.prototype.set=function(e,z,C){C=C!==void 0?Date.now()+C:void 0;this.JSC$19011_expiringStorage.set(e,z,C)};
QX5.prototype.get=function(e){return this.JSC$19011_expiringStorage.get(e)};
QX5.prototype.remove=function(e){this.JSC$19011_expiringStorage.remove(e)};_.Vc=function(){};
_.Vc.getInstance=function(){var e=_.pd("ytglobal.storage_");e||(e=new _.Vc,_.lM("ytglobal.storage_",e));return e};
_.Vc.prototype.estimate=function(){var e,z,C;return _.k(function(w){e=navigator;return((z=e.storage)==null?0:z.estimate)?w.return(e.storage.estimate()):((C=e.webkitTemporaryStorage)==null?0:C.queryUsageAndQuota)?w.return(ui1()):w.return()})};
_.lM("ytglobal.storageClass_",_.Vc);var tFg=0;var pgm=!1;var a6q=_.Kb(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),nBb=_.Kb(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var jMY={"/":_.wt,"/?feature=ytca":_.wt,"/feed/downloads":_.Zz5};var Msb=nJC.continuationCommandSelector,In=function(e,z,C){this.JSC$19026_upliftPromise=e;this.store=z;this.JSC$19026_persistentStorePromiseAccessor=C};
In.prototype.shouldPreferLocalResponse=function(e){return e.browseId==="FEdownloads"||e.browseId==="FEsmart_downloads"&&_.M("kevlar_modern_downloads_page")?!0:!1};
In.prototype.localInnertubeResponse=function(e){var z=this;return _.k(function(C){return e.browseId==="FEdownloads"?_.M("kevlar_modern_downloads_page")?C.return(rJL(z)):C.return(H0C(z)):e.browseId==="FEsmart_downloads"&&_.M("kevlar_modern_downloads_page")?C.return(UvZ(z)):C.return(Promise.reject(Error("Gj")))})};
In.prototype.canProvideFallbackResponse=function(){return!0};
In.prototype.localFallbackInnertubeResponse=function(e){var z=this,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:return G.yield(z.JSC$19026_persistentStorePromiseAccessor(),2);case 2:C=G.yieldResult;if(e.browseId!=="SPaccount_downloads"||!C){G.jumpTo(3);break}return G.yield(co1(C),4);case 4:if(w=G.yieldResult)return G.return(_.J8(w));case 3:return e.browseId==="FEwhat_to_watch"?G.return(vBZ(z)):(K=_.M("web_offline_continuation_automatic_retry")||_.M("web_offline_continuation_retry_button"))&&
e.continuation?G.return(I6l(z)):G.return(Ws5(z))}})};
var vBZ=function(e){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$19026_upliftPromise,2);z=_.rYL(e.store.getState().entities);return z.length?C.return(Pho(e,z)):C.return(Ws5(e))})},H0C=function(e){var z,C;
return _.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$19026_upliftPromise,2);if(w.nextAddress!=3)return z=RyC([{offlineItemSectionRenderer:{}}]),w.yield(LsY(e,z),3);C=w.yieldResult;C.onResponseReceivedActions=[r$("REFRESH_DOWNLOADS")];return w.return(C)})},rJL=function(e){var z,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L;
return _.k(function(h){if(h.nextAddress==1)return h.yield(e.JSC$19026_upliftPromise,2);if(h.nextAddress!=3)return z=e.store.getState(),C=z.entities,w=_.L4(C),K=_.hO(C),G=_.eJ4(z),X=_.pho(z),J=_.zJg(z),q=_.vqo(C),T=_.Uk(w),Q=_.Ok(C),m=_.RO8(C),a=_.wko(z),n=_.SJ(z),H={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.xo7(w,K,q,m,G,X,T,Q,J,a,n),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},I="",_.M("kevlar_modern_downloads_skip_downloads_title")||
(I=_.kk("DOWNLOADS",void 0,"Downloads")),h.yield(hyC(e,H,I),3);L=h.yieldResult;L.onResponseReceivedActions=[r$("REFRESH_DOWNLOADS")];return h.return(L)})},UvZ=function(e){var z,C,w,K,G,X,J,q,T;
return _.k(function(Q){if(Q.nextAddress==1)return Q.yield(e.JSC$19026_upliftPromise,2);if(Q.nextAddress!=3)return z=e.store.getState(),C=z.entities,w=_.L4(C),K=_.Uk(w),G=_.Ok(C),X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.$oo(w),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},J=_.kk("SMART_DOWNLOADS",void 0,"Smart downloads"),q=kZ1(K,G),Q.yield(hyC(e,X,J,q),3);T=Q.yieldResult;T.onResponseReceivedActions=
[r$("REFRESH_DOWNLOADS")];return Q.return(T)})},Ws5=function(e){var z,C;
return _.k(function(w){if(w.nextAddress==1)return w.yield(X9(e.JSC$19026_upliftPromise,e.store),2);z=w.yieldResult;C=RyC([tH4(z)]);return w.return(LsY(e,C))})},I6l=function(e){var z,C,w,K;
return _.k(function(G){if(G.nextAddress==1)return z={},C=Msb(e.store.getState()),_.Om(z,_.dG,C),G.yield(X9(e.JSC$19026_upliftPromise,e.store,z,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);w=G.yieldResult;K={};_.Om(K,_.jJa,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:w}}}],targetId:"browse-feedFEwhat_to_watch"});return G.return({responseContext:{},onResponseReceivedActions:[K]})})},RyC=function(e){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:e}}}}]}}},Pho=function(e,z){var C,w;
return _.k(function(K){var G={contents:H0(z)};C=G&&G.contents?G:{};_.M("kevlar_modern_downloads_page")&&(C=Object.assign({},_.lXL(z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:C}}}]}};return K.return(LsY(e,w))})},LsY=function(e,z){var C,w;
return _.k(function(K){if(K.nextAddress==1)return K.yield(e.JSC$19026_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3)return C=K.yieldResult,K.yield(TO(C),3);w=K.yieldResult;return K.return({responseContext:{},contents:z,topbar:w})})},hyC=function(e,z,C,w){var K,G;
return _.k(function(X){if(X.nextAddress==1)return X.yield(e.JSC$19026_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return K=X.yieldResult,X.yield(TO(K),3);G=X.yieldResult;var J=X.return;var q=C;var T=w;q=q===void 0?"":q;T=T===void 0?"":T;q={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:q}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.kk("SETTINGS",void 0,"Settings"),accessibilityText:_.kk("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:_.C4("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:T}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:q};
return J.call(X,{responseContext:{},contents:z,topbar:G,header:{pageHeaderRenderer:q}})})};var O0C=function(){this.moduleRegistry={};this.fetchCount=0};
O0C.prototype.isFetching=function(){return this.fetchCount>0};
var cM=function(e,z){e.moduleRegistry[z.toString()]={asyncId:z,isFetching:!1};return e};
O0C.prototype.JSC$19037_loadModules=function(){for(var e=this,z=new Map,C=[],w=_.b(_.yL.apply(0,arguments)),K=w.next();!K.done;K=w.next()){K=K.value;var G=this.moduleRegistry[K];G?G.resolver?z.set(K,G.resolver):(G.resolver=new _.x5,z.set(K,G.resolver),C.push(G.asyncId),G.isFetching=!0):(G=new _.x5,z.set(K,G),G.resolve(void 0))}C.length&&(this.fetchCount+=1,_.gB(_.mj.getMultipleAsync.apply(_.mj,_.s_(C)).then(function(X){for(var J=0;J<C.length;J++){var q=X[J],T=e.moduleRegistry[C[J].toString()];T.isFetching=
!1;T.resolver.resolve(q)}}).catch(function(X){for(var J=_.b(C),q=J.next();!q.done;q=J.next()){q=q.value;
var T=e.moduleRegistry[q.toString()];T.resolver=void 0;T.isFetching=!1;z.get(q.toString()).reject(X)}}),function(){--e.fetchCount}));
return Promise.all([].concat(_.s_(z.values())).map(function(X){return X.promise}))};_.A8=new _.Mt("MODULE_REGISTRY_TOKEN");var EBb={},FsY=(EBb.rendered={priority:0,callback:function(e){a:{var z=void 0;try{var C;b:{if(_.y_L()){var w=_.s3(_.f0()+"::pom");if(w){var K=new zr(w);break b}}K=void 0}var G=(C=K)==null?void 0:C.get("role_text");if(!G)break a;z={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:G}]}}}}}}catch(q){}z&&e.injector.resolve(_.ms).resolveCommand(z)}try{var X=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(X){var J=JSON.parse(X);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
J&&e.injector.resolve(_.ms).resolveCommand(J)}}catch(q){}}},EBb);var Vsb,f6Y={},S33=(f6Y.initialized={priority:10,callback:function(){Vsb=Vg()}},f6Y.rendering={callback:function(e){var z;
return _.k(function(C){if(C.nextAddress==1)return C.yield(Vsb,2);z=C.yieldResult;if(!z.endpoint)throw Error("Ij`"+_.wL.location.href);dh(e,z);_.E_(C)})}},f6Y);var uFZ={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.s_(_.M("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(e){var z=e.stack;if(z.includes("chrome://")||z.includes("chrome-extension://")||e.message.includes("chrome-extension://")||z.includes("moz-extension://")||
z.includes("local.adguard.org")||z.includes("auctioneer3.50million.club")||z.includes("youtubedownloader")||z.includes("youtube_home_page")||z.includes("is_youtube_video_no_longer_available")||z.includes("switchScreenSizeHack")||z.includes("yt_main_big_banner.js")||z.includes("YouTubeCenter.js")||z.includes("/mytube.js")||z.includes("JSON.parseWrapper")||z.includes("/inj_js/common.js")||z.includes("firebug-lite")||z.includes(".repl.co/")||z.includes("linkfix")||z.includes("playAfterAd")||e.message.includes("Access is denied for this document")&&
z.includes("<anonymous>")||e.fileName==="user-script"||e.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&z.includes("<anonymous>"))return!0;if(z.includes("https://www.youtube.com"))return!1;e=z.split("\n");if(!e.length)return!1;if(e.length<=3&&z.includes("s.onloadeddata"))return!0;z=0;for(var C=_.b(e),w=C.next();!w.done;w=C.next())w=w.value,(w.includes("https://")||w.includes("http://"))&&z++;return z/e.length>.95},
weight:0},{callback:function(e){return e.message==="Unknown Error"&&e.name.indexOf("NS_")===0},
weight:100},{callback:function(e){if(!_.aP)return!1;var z=e.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||e.message.includes("available to complete this operation"),C=e.stack.includes("webcomponents")&&e.message==="Object doesn't support this action";e=e.message.includes("object that does not implement interface Element");return z||C||e},
weight:0},{callback:function(e){return e.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(e){return e.message==="Operation is not supported"&&(e.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(e){return e.stack.includes("eval code (eval (code:1:1)")||e.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(e){return e.message.includes("Permission denied")&&e.stack.includes("this.domHandler")?!0:e.name.includes("TypeError")&&e.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(e){if(!e.stack)return!1;var z=e.stack.trim().split("\n");z.length&&z[0].endsWith("Error: "+e.message)&&z.shift();z.length&&z[z.length-1].includes("at window.onerror (")&&z.pop();if(!z.length)return!0;if(e.message==="Script error.")return z[0].includes("www.youtube.com")||z.length>=2&&z[0].startsWith("at new")&&z[1].startsWith("at window.onerror");if(e.message==="Unexpected token")return!0;e=_.b(z);for(z=e.next();!z.done;z=e.next())if(z=z.value,!(z.includes("<anonymous>")||
z.startsWith("load@")||z.startsWith("global code@")||z.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(e){return e.message==="Cannot read property 'experiments'"&&e.stack.includes("/s/player/")},
weight:500},{callback:function(e){return e.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(e){return e.stack.includes("/embed.js")?(e.params&&e.params&&(e.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.M("use_error_suppression"))var e=_.j5("SUPPRESS_CLIENT_ERRORS",!1);else{if(e=_.U7)e=/Chrome\/(\d+)/.exec(_.Q1()),e=(e?parseFloat(e[1]):NaN)>=66;e=!(e||_.HW&&_.r4(65)||_.p0&&_.r4(12.1)||xj&&_.r4(79))}return e},
weight:500}]};var dva={},DvC=(dva.initialized={priority:10,callback:function(e){e.injector.addProvider({provide:PXU,useValue:e.root});e.injector.addProvider({provide:C0$,useValue:gf1});e.injector.addProvider({provide:wCC,useValue:uFZ});var z={};e.injector.addProvider((z.provide=KpC,z.useFactory=function(C,w){return function(){$PL(C,w)}},z[Qj]=[C0$,
wCC],z));e.injector.addProvider({provide:eG,useClass:eG})}},dva);var i0L={},N3b=(i0L.initialized={priority:3,callback:function(){var e;if(e=BQE()){e=e.replace("/",".");var z=_.Tj();z.set("tz",e);z.save();e=!0}else e=!1;e||(e=_.Tj(),e.set("utco",-Math.floor((new Date).getTimezoneOffset())),e.save())}},i0L);var sXq={},B3$=(sXq.initialized={priority:10,callback:function(e){e.injector.resolve(eG).start();e=_.tU();var z=_.cR("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.cR("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.cR("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.cR("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.MZ(_.EKm(),{mainAppWeb:Object.assign({},e,{pageType:z})});_.MZ(V6L(),{mainAppWeb:Object.assign({},e,{pageType:z})});
_.MZ(f21(),{mainAppWeb:e});_.MZ(Sr7(),{mainAppWeb:e});LmC(function(){_.rh(f21(),"FAILURE");_.rh(Sr7(),"FAILURE")});
xb1();TI4();utN()}},sXq);var tsW={},gBf=(tsW.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.hg("dl"),_.Il().processSignal("pcl");else{var e=function(){_.hg("dl");_.Il().processSignal("pcl");window.removeEventListener("load",e)};
window.addEventListener("load",e)}}},tsW);var jXb={},yJ5=(jXb.rendering={priority:0,callback:function(){var e=_.Il();e.parkOrScheduleJob(function(){e.processSignal("eocs")},10,"eor",5E3)}},jXb);var cJl=function(){};
_.U(cJl,R7);
cJl.prototype.resolveCommand=function(e,z){var C,w,K,G,X,J,q,T;return _.k(function(Q){K=(C=_.r(e,_.lS4))==null?void 0:(w=C.dialog)==null?void 0:w.commentReplyDialogRenderer;if(!K)throw new _.uh("No dialog in createCommentReplyDialogEndpoint");X=(G=z.form)==null?void 0:G.event;if(!X)throw new _.uh("Event not passed in when resolving command");J=_.b(X.composedPath());for(q=J.next();!q.done;q=J.next())if(T=q.value,T.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||T.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return T.showReplyDialog(K),Q.return();
_.E_(Q)})};var AJC=function(){};
_.U(AJC,R7);AJC.prototype.resolveCommand=function(e){var z,C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return z=_.r(e,Wha),(C=z)!=null&&C.externalChannelId?X.yield((0,_.kV4)("NSzT5"),2):X.return();w=_.Z0q;G=(K=z.forceInstall)!=null?K:!1;return X.yield(w(z.externalChannelId,G),0)})};var f_=function(e){this.JSC$19055_pageRequestService=e;this.JSC$19055_prefetchCoordinator=N9b()};
_.U(f_,R7);f_.prototype.resolveCommand=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1){C=_.r(e,cYY);if((w=C)==null||!w.taskId)throw Error("Jj");K=C.taskId;_.Iv(X,2);return X.yield(_.Q4f(z.JSC$19055_pageRequestService,e,{},"").then(function(J){if(!J)throw Error("Kj");},function(J){throw Error("Lj`"+J);
}),4)}if(X.nextAddress!=2)return tnf(z.JSC$19055_prefetchCoordinator,K),_.Yj(X,0);
G=_.O_(X);n_(z.JSC$19055_prefetchCoordinator,K,G);_.E_(X)})};
f_[Qj]=[_.F9];var Sb=function(e,z){this.innertubeTransportService=e;this.JSC$19059_commandHandler=z};
_.U(Sb,R7);Sb.prototype.resolveCommand=function(e){var z=this,C,w,K;return _.k(function(G){if(G.nextAddress==1){C=_.r(e,cuo);if(C.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||C.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")w=C.boolValue?2:1,_.fH.getInstance().setState(w,!0,!0);return G.yield(_.yC(z.innertubeTransportService,e),2)}K=G.yieldResult;pil(z,K);_.E_(G)})};
var pil=function(e,z){z.actions&&z.actions.forEach(function(C){e.JSC$19059_commandHandler.resolveCommand(C)})};
Sb[Qj]=[_.vJ,_.ms];var uq={},d7=(uq.addToPlaylistEndpoint=zq(Op),uq.addToToastAction=zq(sY),uq.adsControlFlowOpportunityReceivedCommand=zq(kh),uq.audioTrackSelectActionCommand=zq(ye),uq.backgroundAudioPlaybackCommand=zq(Zt),uq.captionLanguageSelectActionCommand=zq(pu),uq.captionPickerEndpoint=zq(eW),uq.changeMiniAppPlayStateCommand=zq(Ep),uq.changeTimelyActionVisibilityCommand=zq(Ni),uq.channelCreationFormEndpoint=zq(IG),uq.clearLocationCommand=zq(h3),uq.clearUrlParamCommand=zq(F3),uq.copyLinkCommand=zq(bQ),uq.copyTextEndpoint=
zq(Qe),uq.createCommentReplyDialogEndpoint=Sf1(cJl),uq.createPlaylistServiceEndpoint=zq(Xd),uq.dismissDialogEndpoint=zq(fu),uq.dismissPlayerOverlayCommand=zq(zu),uq.entityUpdateCommand=zq(aG),uq.feedbackEndpoint=zq(r2),uq.getAnswerCommand=zq(Mi),uq.getPaymentsClientTokenCommand=zq(yF),uq.getTranscriptEndpoint=zq(Be),uq.googlePaymentBillingCommand=zq(ce),uq.googlePaymentPurchaseManagerCommand=zq(AN),uq.hideEngagementPanelEndpoint=zq(S$),uq.hideSheetCommand=zq(ua),uq.hideSnackbarCommand=zq(VF),uq.insertRichSectionCommand=
zq(PB),uq.listMutationCommand=zq(RG),uq.logGtmCommand=zq(WB),uq.notifyDropdownOptionSelectedCommand=zq(Ve),uq.openAdAllowlistInstructionCommand=zq(_.qA),uq.openOnePickAddVideoModalCommand=zq(JN),uq.persistSubscriptionsDisplayPreferencesCommand=zq(lQ),uq.pingingEndpoint=zq(xh),uq.playlistEditEndpoint=zq(qi),uq.playlistVotingRefreshPopupCommand=zq(x_),uq.profileCardCommand=zq(J3),uq.refreshPanelEndpoint=zq(Dt),uq.saveImageToDeviceEndpoint=zq(m3),uq.scrollToSectionEndpoint=Sf1(OJZ),uq.seekToVideoTimestampCommand=
zq(C2),uq.selectCountryCommand=zq(QF),uq.setCookieCommand=zq(mP),uq.setLocalStorageCommand=zq(SW),uq.setPrefStorageEntryCommand=zq(n2),uq.setSettingEndpoint=zq(Sb),uq.sfvAudioItemPlaybackCommand=zq(wz),uq.shareImageCommand=zq(rz),uq.sharingProviderDataCommand=zq(He),uq.showAudioTrackPickerActionCommand=zq(K2),uq.showCaptionLanguageSelectActionCommand=zq(oD),uq.showCreatorChatbotEngagementPanelCommand=zq(AJC),uq.showDialogCommand=zq(sp),uq.showEngagementPanelEndpoint=zq(BB),uq.showFullscreenPlayerControlsCommand=
zq(Gu),uq.showSheetCommand=zq(t3),uq.showSnackbarCommand=zq(f2),uq.showTransientPlayerScrimOverlayCommand=zq(Y_),uq.submitFormWithValidationFlowCommand=zq(vB),uq.talkToRecsDeselectCommand=zq(uQ),uq.talkToRecsNextCommand=zq(dz),uq.talkToRecsSelectCommand=zq(DD),uq.talkToRecsUpdateTextCommand=zq(iQ),uq.toggleEngagementPanelCommand=zq(g2),uq.undoFeedbackEndpoint=zq(Up),uq.updateEngagementPanelContentCommand=zq(j$),uq.updateUrlParamCommand=zq(tN),uq.updateVideoMetadataCommand=zq(jW),uq.verifyCommand=
zq(IG),uq.webNativeShareCommand=zq(UY),uq.webSubmitFormCommand=zq(Tu),uq.ACK_PLAYABLES_3P_DATA_CONSENT=zq(ve),uq.CANCEL_NAVIGATION=zq(ID),uq.COPY_SHARE_URL=zq(We),uq.MINI_APP_EXIT_DIALOG_SEEN=zq(RD),uq.MINI_APP_OPEN_URL=zq(Pe),uq.REQUEST_MINI_APP_FULLSCREEN=zq(L2),uq.RESUME_NAVIGATION=zq(hN),uq.SHARE_PLAYABLE_WITH_HIGH_SCORE=zq(OY),uq.TELL_US_WHY=zq(HB),uq);_.M("web_enable_prefetching_videos_on_home")&&(d7.prefetchWatchCommand=zq(f_),d7.registerTasksCommand=zq(r7));
_.M("enable_share_panel_navigation_logging_fix_on_web")&&(d7.shareEntityServiceEndpoint=zq(ia));_.M("web_use_flow_state_manager")&&(d7.deleteFlowStepsCommand=zq(Cu),d7.flowNextStepCommand=zq(w2),d7.flowPrevStepCommand=zq(Ku),d7.getFlowCommand=zq(oG),d7.updateFlowCommand=zq(G7));_.M("enable_ai_companion")&&(d7.updateConversationIdCommand=zq(la),d7.formDataDecoratorCommand=zq($h));var Y5a=Object.assign({},d7);var e_q={},z_v=(e_q.initialized={priority:10,callback:ajs},e_q);var CM$={},w55=(CM$.initialized={callback:function(e){var z={},C={};Yom().install((z.document_disposed={callback:function(){_.M("finalize_all_timelines")?efk():Wf();Ofo("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Uck();var w=e.injector.resolve(eG);w.intervalId!==void 0&&(w.intervalId&&_.c5.cancelJob(w.intervalId),w.intervalId=void 0,--w.currentPartitionIndex,w=TT6(w),w>0&&tea({mainAppWeb:_.tU(),survivalSli:{partitionMinute:w,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));SDc(W7);P7!=null&&
P7.flush();b6&&b6.snapshotAndFlush();w=_.b(o7s.values());for(var K=w.next();!K.done;K=w.next())K.value.snapshotAndFlush()}},z),(C.flush_logs={callback:function(){_.ju()}},C))}},CM$);var K0f={},ojq=(K0f.rendered={priority:0,callback:function(){var e=new Tao;e.increment("STARTED");if(_.j5("LOGGED_IN")&&!_.j5("IS_DBSC",!1)&&_.j5("SERVER_VERSION")!=="test"&&_.j5("SERVER_VERSION")!=="dev"&&!cnL()&&!yn6()){e.increment("EXECUTING");var z=document.createElement("iframe");z.style.display="none";_.w5(z,2,_.gw("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.j5("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(z);e.increment("DONE")}}},
K0f);var GT5={},YRq=(GT5.rendered={callback:function(){N9b().resume()}},GT5);var bpW={acknowledgeChannelTouStrikeCommand:De(hb),addToPlaylistServiceEndpoint:De(FT),addToPlaylistEndpoint:De(FT),addUpcomingEventReminderEndpoint:De(pn),browseEndpoint:De(IHC),channelCreationFormEndpoint:De(Ue),channelCreationServiceEndpoint:De(v_),claimLegacyYoutubeChannelEndpoint:De(kM),clearSearchHistoryEndpoint:De(tb),clearWatchHistoryEndpoint:De(gg),commerceActionCommand:iw(C_),createBackstagePostEndpoint:De(oy),createBroadcastCommand:De(eX),createCommentEndpoint:De(nn),createCommentReplyEndpoint:De(ay),
createLiveChatPollEndpoint:De(zf),createPlaylistServiceEndpoint:De(Vv),crossAccountChannelTransferEndpoint:De(c_),deleteLiveChatMessageCommand:De(CI),deletePlaylistEndpoint:De(fI),deleteVideoEndpoint:De(ZY),dismissalEndpoint:De(Oe),feedbackEndpoint:De(Ee),flagEndpoint:De(Ny),getAccountSwitcherEndpoint:De(ym),verifyCommand:De(Kn),getAccountsListInnertubeEndpoint:De(Zp),getCommentsFromInboxCommand:De(Qv),getDownloadActionCommand:De(Ul),getFlowCommand:iw(B_),getKidsBlocklistPickerCommand:De(sl),getNotificationMenuEndpoint:De(Rvl),
getPaymentInstrumentsParamsCommand:De(bq),getPaymentsClientTokenCommand:iw(C_),getPdgBuyFlowCommand:De(Ol),getReportFormEndpoint:De(B6),getSearchInVideoCommand:De(jX),getAnswerCommand:De(g8),getSurveyCommand:De(Aj),getTranscriptEndpoint:De(eb),getPostVideoPreviewEndpoint:De(YM),decorateMessageEndpoint:De(G2),likeEndpoint:De(Iy),liveChatActionEndpoint:De(Gf),liveChatEndpoint:De(oL),liveChatItemContextMenuEndpoint:De(w8),liveChatPurchaseMessageEndpoint:De(YS),liveChatReplayEndpoint:De(KI),manageLiveChatUserEndpoint:De(XT),
metadataUpdateCommand:De($S),moderateLiveChatEndpoint:De(Jj),modifyChannelNotificationPreferenceEndpoint:De(My),notificationOptOutEndpoint:De(r8),openSuperStickerBuyFlowCommand:De(br),performCommentActionEndpoint:De(lv),playlistEditEndpoint:De(ur),playlistEditorEndpoint:De(SX),recordNotificationInteractionsEndpoint:De(H6),reelWatchEndpoint:De(d8),refreshPanelEndpoint:De(IL),removeUpcomingEventReminderEndpoint:De(kS),resolveLocationCommand:De(Tf),revealBusinessEmailCommand:De(qS),searchEndpoint:De(_.La$),
sendLiveChatMessageEndpoint:De(qy),sendLiveChatVoteEndpoint:De(xS),setSettingEndpoint:De(W_),shareEntityServiceEndpoint:iw(Ln),sharingProviderDataCommand:De(c6),showEngagementPanelEndpoint:De(W6),showMoreDrawerCommand:De(RL),showSheetCommand:De(LI),showDialogCommand:De(P6),subscribeEndpoint:De(P_),transcriptSubmitCaptionCorrectionCommand:De(pI),undoFeedbackEndpoint:De(Vm),unsubscribeEndpoint:De(Ry),updateBackstagePostEndpoint:De(XI),updateCommentEndpoint:De(rg),updateCommentReplyEndpoint:De(MS),updateCommentsSettingsEndpoint:De(H_),
updateCreatorChannelInnertubeCommand:De(T2),updateKidsBlacklistEndpoint:De(tj),updateEngagementPanelContentCommand:De(hj),updatePdgFeatureEnablementCommand:De(El),updatedMetadataEndpoint:De(lr),validateChannelHandleCommand:De($M),updateChannelPageSettingsEndpoint:De(xM),verifyAgeEndpoint:De(fn),watchEndpoint:iw(ei),whitelistEditEndpoint:De(zG),ypcCancelRecurrenceEndpoint:De(w7),ypcCompleteTransactionEndpoint:De(K_),ypcFixInstrumentEndpoint:De(GG),ypcGetCartEndpoint:De(oH),ypcGetOffersEndpoint:De(YH),
ypcHandleTransactionEndpoint:iw(Xf),ypcLogWalletAnalyticDataEndpoint:De(J$),ypcOffersEndpoint:De(kH),ypcPauseSubscriptionCommand:De(q8),ypcRedeemCodeEndpoint:De(xH),ypcResumeSubscriptionCommand:De(TG),ypcUpdateFopEndpoint:De(GG)},DU={},X5Y=(DU.GET_ACCOUNT_MENU=De(Ab),DU.GET_NOTIFICATIONS_MENU=De(PZY),DU.GET_NOTIFICATIONS_INBOX=De(mH),DU.GET_UNSEEN_NOTIFICATION_COUNT=De(nI),DU.GET_USER_MENTION_SUGGESTIONS=De(bv),DU.LOAD_GUIDE=De(Waq),DU.SUBMIT_FEEDBACK=De(FI),DU),iq={},JfL=(iq.CONTINUATION_REQUEST_TYPE_BROWSE=
De(Jb),iq.CONTINUATION_REQUEST_TYPE_SEARCH=De(yv),iq.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=De(A3),iq.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=De(ji),iq.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=De(mr),iq.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=De(Qm),iq.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=De(ir),iq.CONTINUATION_REQUEST_TYPE_GET_PANEL=De(v6),iq),kTL={player:iw(ei),watchNext:De(cB)},qRf={player:iw(ei),reelItemWatch:De(d8),reelWatchSequence:De(DY)},xEq={watchEndpoint:iw(z2)},Ta$=
{commandEndpointMap:bpW,signalEndpointMap:X5Y,continuationEndpointMap:JfL,watchEndpointMap:kTL,reelWatchEndpointMap:qRf,streamingEndpointMap:xEq};var $Ev,lIL,Qs5;_.mEq=((lIL=($Ev=window).matchMedia)==null?void 0:(Qs5=lIL.call($Ev,"(prefers-reduced-motion: reduce)"))==null?void 0:Qs5.matches)||!document.startViewTransition;var aIl={},nj3={disableAllTransitions:_.mEq,ignoredErrors:(aIl.DOCUMENT_HIDDEN=!0,aIl.WINDOW_SIZE_CHANGED=!0,aIl.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,aIl),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var Mx5=_.Kb("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),HpC=function(e){var z=this;this.viewTransitionCoordinator=
e;this.disableTransitionsForUltraHigh=_.M("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=rf$();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.Mv("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.M("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.M("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.M("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.Mv("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.M("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.c5.addJob(function(){z.registerRootElement();if(z.isAnyTransitionEnabled){var C=
_.n0("web_page_transition_exit_ms"),w=_.n0("web_page_transition_wait_ms"),K=_.n0("web_page_transition_enter_fast_ms"),G=_.n0("web_page_transition_watch_exit_ms"),X=_.n0("web_page_transition_watch_wait_ms"),J=_.n0("web_page_transition_watch_enter_ms"),q=_.n0("web_page_transition_watch_next_exit_ms"),T=_.n0("web_page_transition_watch_next_wait_ms"),Q=_.n0("web_page_transition_watch_next_enter_fast_ms"),m=_.n0("web_page_transition_enter_ms"),a=_.n0("web_page_transition_watch_next_enter_ms");z.enableFasterTransitions&&
z.isUltraHighBucketDevice&&(m=K,a=Q);isNaN(C)&&isNaN(w)&&isNaN(m)&&isNaN(G)&&isNaN(X)&&isNaN(J)&&isNaN(q)&&isNaN(T)&&isNaN(a)||!(C=Be7(Mx5,C,w,m,G,X,J,q,T,a))||(w=document.createElement("style"),w.textContent=U15(C),document.head.appendChild(w))}},8)},rf$=function(){var e=_.wL.navigator.deviceMemory;
return e>=8||e===void 0?!0:!1};
HpC.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var e={};this.viewTransitionCoordinator.registerElement(document.documentElement,(e.slide="root-slide",e["lockup-to-watch"]="root-lockup-to-watch",e["learning-journey"]="root-learning-journey",e))}};
_.zY4=function(e,z){e.isLockupToWatchTransitionEnabled&&e.isLockupThumbnailRegistrationEnabled&&(e.registeredLockupThumbnail?e.lockupThumbnailRegisteredFromWatchEndpoint?_.AX(new _.uh("Lockup thumbnail registration order is incorrect.")):_.AX(new _.uh("Lockup thumbnail already registered.")):(e.registeredLockupThumbnail=z,_.UEq(e,z)))};
_.UEq=function(e,z){var C={};e.viewTransitionCoordinator.registerElement(z,(C["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",C),!0)};
HpC[Qj]=[kR5];var ntN={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var rcN=["videoPrimaryInfoRenderer","title"],Hth=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var vjq;vjq=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.IIL=_.f(function(e){e=_.eQ(e,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var z=e.data,C=e.playlistData,w=e.expanded,K=e.onExpandClick,G=e.isReadyToResume,X=function(){var Q;return!((Q=C())==null||!Q.contents)},J=function(){var Q=C();
return Q&&Q.totalVideos&&Q.currentIndex!==void 0?Q.currentIndex+1+" / "+Q.totalVideos:""};
e=_.T9(function(){_.N8(_.lh().resolve(_.gh));return!1});
var q=_.T9(function(){X()&&K&&K()}),T={};
return _.x("ytd-miniplayer-info-bar",{class:_.qT("ytdMiniplayerInfoBarHost",(T.ytdMiniplayerInfoBarHasPlaylistData=X,T)),"on:click":q},_.x("div",{class:"ytdMiniplayerInfoBarContent"},_.x("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":e},_.x(_.U2,{text:function(){var Q=z();var m=C();if(m==null?0:m.contents){var a;Q=(a=_.Lyk(m))==null?void 0:a.title}else Q=Q==null?void 0:Q.miniplayerTitle;return vtm(Q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.x("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.x(_.l,{cond:G,then:function(){return _.x(Lwa,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:vjq})}}),_.x("h1",null,_.x(_.U2,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var Q=z();var m=C();Q=G()?{simpleText:_.kk("CONTINUE_WATCHING",void 0,"Continue watching")}:(m==null?0:m.contents)?m.titleText:Q==null?void 0:Q.miniplayerSubtitle;return vtm(Q)},
noEndpoints:!0,ellipsisTruncate:!0})),_.x(_.l,{cond:function(){return!!J()&&!G()},
then:function(){return _.x("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.x("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.x("span",null,J))}}))),_.x(_.l,{cond:X,
then:function(){return _.x("div",{class:"ytdMiniplayerInfoBarExpand"},_.x(_.DS,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(Q){K&&(K(),Q.stopPropagation())}}},
iconName:function(){return w()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ag");var W03;W03=_.f(function(e){return _.x("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.x(_.DS,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:e.onTap}},
iconName:"yt-icons:close"}))},"Bg");
_.PMo=_.f(function(e){e=_.eQ(e,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var z=e.size,C=e.playabilityStatus,w=e.isDisabled,K=e.isPictureInPicture,G=_.kI("div");e=_.b(_.II(void 0,void 0,"w4RAU"));var X=e.next().value,J=e.next().value;e=_.rG(_.ql);var q=!1,T=function(){return z().height<=0};
_.sH(function(){var n=z(),H=T(),I=X();I&&!H&&I.setInternalSize(n.width,n.height)},"BHFc2b");
_.Nm(function(){var n,H,I;return _.k(function(L){if(L.nextAddress==1){n=_.lh().resolve(_.gh);H=n.getPlayerElement();if(!n.isMiniplayerActive()||!H||!G.value)return L.return();H.appendTo(G.value);return L.yield(H.getPlayerPromise(),2)}I=L.yieldResult;K()||I.setSizeStyle(!1,!0);J(I);_.E_(L)})});
_.BC(function(){Q()});
_.sH(function(){var n=X();if(n)if(w()){var H=n.getPlayerState();(q=H===-1||H===1||H===3)&&n.pauseVideo()}else Q()},"Invykd");
var Q=function(){if(q){q=!1;var n;(n=X())==null||n.playVideo()}},m=_.T9(function(){_.N8(_.lh().resolve(_.gh))}),a={};
return _.x("ytd-miniplayer-player-container",{class:_.qT("ytdMiniplayerPlayerContainerHost",(a.ytdMiniplayerPlayerContainerHidden=T,a.ytdMiniplayerPlayerContainerHostShortsPip=e,a)),style:_.QC({width:function(){return z().width+"px"},
height:function(){return z().height+"px"}})},_.x("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:G}),_.x(_.l,{cond:function(){return!!C()&&!_.sA8(C())},
then:function(){return _.x(CCW,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var n;return((n=C())==null?void 0:n.errorScreen)||null},
status:function(){var n;return((n=C())==null?void 0:n.status)||null}})}}),_.x(_.l,{cond:w,
then:function(){return _.x("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":m},_.x(W03,{onTap:function(){_.lh().resolve(_.gh).close()}}))}}))},"Fg");_.R_W=_.f(function(e){var z=e.toastData;var C=_.kI("ytd-miniplayer-toast");e=_.b(_.zx(function(){return!!z()}));
var w=e.next().value,K=e.next().value;e=_.b(_.II(!1,void 0,"BvfNQe"));var G=e.next().value,X=e.next().value,J=function(){var Q;return _.Zd((Q=z())==null?void 0:Q.data.title)};
_.sg(function(){_.lK.requestAvailability();z()&&K(!1)});
var q,T;_.sH(function(){w()&&(_.pi(C.value,"iron-announce",{text:z().label+" "+J()}),q&&_.c5.cancelJob(q),q=_.c5.addLowPriorityJob(function(){X(!0)},2500))},"no1dZb");
_.sH(function(){G()&&(T&&_.c5.cancelJob(T),T=_.c5.addLowPriorityJob(function(){K(!1);X(!1)},300))},"G3yPNe");
e={};return _.x("ytd-miniplayer-toast",{el:C,class:_.qT("ytdMiniplayerToastHost",(e.ytdMiniplayerToastOpening=function(){return w()},e.ytdMiniplayerToastClosing=function(){return G()},e))},_.x(_.l,{cond:function(){var Q;
return(Q=z())==null?void 0:Q.data},
then:function(Q){return _.x(dha,{className:"ytdMiniplayerToastThumbnail",data:Q,width:78})}}),_.x("div",{class:"ytdMiniplayerToastInfo"},_.x("div",{class:"ytdMiniplayerToastLabel"},function(){var Q;
return(Q=z())==null?void 0:Q.label}),_.x("div",{class:"ytdMiniplayerToastTitle"},J)))},"Ig");var VV4;var u7o=null;var h_$=_.f(function(e){var z=e.progressState;var C=e.multiMarkersPlayerBarRenderer;var w=e.progressBarWidth;var K=function(){return NI1(C())},G=function(){return tVs(z())},X=function(){return w()*(z().playedTime/z().videoDuration)};
return _.x("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.x(_.ui,{each:K},function(J,q){return _.x(L0C,{modifiedProps:G,chapters:K,index:q,playedProgressWidth:X,backgroundGradientPosition:function(){var T=G(),Q=K(),m=q(),a=X();return(T.playedTime-BM(_.r(Q[m],sQ)))/T.playedTime*a}})}))},"Jg"),L0C=_.f(function(e){var z=e.modifiedProps;
var C=e.chapters;var w=e.index;var K=e.playedProgressWidth;var G=e.backgroundGradientPosition;e={};e=_.qT("ytChapteredProgressBarChapteredPlayerBarChapter",(e.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return X().isScrubbing},e.ytChapteredProgressBarHoveredMacroMarker=function(){return X().scrubberHovering},e.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return X().videoPosition==="seen"},e));
var X=function(){return gt1(z(),C(),w())},J=function(){var q=z();
var T=C(),Q=w();if(gt1(q,T,Q).videoPosition!=="active")q=0;else{var m=BM(_.r(T[Q],sQ));q=(q.playedTime-m)/((BM(_.r(T[Q+1],sQ))||q.videoDuration)-m)}return q};
return _.x("div",{class:e,style:_.QC({width:function(){var q=z(),T=C(),Q=w(),m=_.r(T[Q],sQ);T=_.r(T[Q+1],sQ);return(T?BM(T)-BM(m):q.videoDuration-BM(m))/q.videoDuration*100+"%"},
"background-color":function(){a:{var q=X();switch(q.videoPosition){case "pending":q=q.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":q=q.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:q=""}}return q},
"background-size":function(){return(jUh(X())?K():"")+"px"},
"background-position-x":function(){return(jUh(X())?G():"")+"px"}})},_.x("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var q=z(),T=C(),Q=w();if(gt1(q,T,Q).videoPosition==="seen")var m=0;else m=BM(_.r(T[Q],sQ)),T=BM(_.r(T[Q+1],sQ))||q.videoDuration,q=q.videoDuration*q.percentLoaded,m=T<=q?1:m>=q?0:(q-m)/(T-m);return"width: "+m*100+"%"}}),_.x("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.QC({width:function(){return J()*100+"%"},
"background-size":function(){return(jUh(X(),J())?K():"")+"px"},
"background-position-x":function(){return(jUh(X(),J())?G():"")+"px"}})}))},"Kg");var Opa=function(e,z){z=z===void 0?c8c:z;var C,w=[],K,G=!1;return function(){var X=_.yL.apply(0,arguments);if(G&&C===this&&z(X,w))return K;K=e.apply(this,X);G=!0;C=this;w=X;return K}}(function(e){var z=e.heatMarkers,C=e.minHeightDp===void 0?0:e.minHeightDp,w=e.maxHeightDp===void 0?60:e.maxHeightDp;
var K=K===void 0?!1:K;var G=1E3/z.length;e=[];e.push({x:0,y:100});for(var X=0;X<z.length;X++){var J=void 0,q=((J=_.r(z[X],zBg))==null?void 0:J.heatMarkerIntensityScoreNormalized)||0;J=(X+.5)*G;q=100-_.NZ(q*100,C/321*100,w/321*100);X!==0||K||e.push({x:0,y:q});e.push({x:J,y:q});X===z.length-1&&e.push({x:1E3,y:q})}e.push({x:1E3,y:100});z="";for(C=0;C<e.length;C++)K=e[C],C===0?K="M "+K.x.toFixed(1)+","+K.y.toFixed(1):(w=iFh(e[C-1],e[C-2],K),G=iFh(K,e[C-1],e[C+1],!0),K=" C "+(w.x.toFixed(1)+","+w.y.toFixed(1)+
" "+G.x.toFixed(1)+","+G.y.toFixed(1)+" "+K.x.toFixed(1)+","+K.y.toFixed(1))),z+=K;return z});var Ejl=_.f(function(e){var z=e.progressBarProps;var C=e.config;var w={};e=_.qT("ytHeatSeekerHost",(w.ytHeatSeekerHighContrast=e.highContrast,w));var K=function(){return LNm(C().chapterData)};
return _.x("yt-progress-bar-heatseeker",{class:e,style:function(){var G;return"height: 320px; display: "+(z().isDragging&&((G=K())==null?0:G.heatMarkers)?"block":"none")}},_.x(_.l,{cond:K,
then:function(G){return _.x(_.l,{cond:function(){return G().heatMarkers},
then:function(){return _.x("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.x("path",{d:function(){return Opa(G())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Lg");var F0W=_.f(function(e){var z=e.progressBarProps;var C=e.config;e={};e=_.qT("ytProgressBarLineProgressBarLine",(e.ytProgressBarLineProgressBarLineRounded=function(){return C().rounded},e.ytProgressBarLineProgressBarLineBottomInset=function(){return C().position===2},e));
return _.x("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.x("div",{class:e},_.x("div",{class:"ytProgressBarLineProgressBarBackground"}),_.x("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+z().percentLoaded*100+"%"}}),_.x("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var w=z();return"width: "+(w.videoDuration?_.NZ(w.hoveredTime/w.videoDuration,0,1):0)*100+"%"}}),_.x("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+WNh(z())*100+"%"}})))},"Mg");
F0W.idomCompat=!0;var VxL=_.f(function(e){var z=e.progressBarProps;var C=e.playheadData;var w=e.interpolateDotPosition;var K=e.hidePlayhead;e={};var G=_.qT("ytProgressBarPlayheadProgressBarPlayheadDot",(e.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return z().isDragging},e.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!z().isDragging&&K()},e));
return _.x("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.QC({"margin-left":function(){return PVE(z())*100+"%"},
transform:function(){return"translateX(-"+(w()?PVE(z())*12:6)+"px)"}})},_.x(_.l,{cond:function(){var X;
return(X=_.pP(C)())==null?void 0:X.playheadImage},
then:function(X){var J={};return _.x("div",{class:_.qT("ytProgressBarPlayheadProgressBarPlayheadCustom",(J.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return z().isDragging},J.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!z().isDragging&&K()},J)),
style:_.QC({"transform-origin":function(){return(w()?PVE(z())*20:10)+"px center"}})},_.x(_.Zf,{data:X,
alt:"","aria-hidden":"true"}))},
else:function(){return _.x("div",{class:G,style:_.QC({"transform-origin":function(){return(w()?PVE(z())*12:6)+"px center"}})})}}))},"Ng");
VxL.idomCompat=!0;var sI=function(e,z,C,w,K,G){this.getProgressBarRect=e;this.updateProgressBarRect=z;this.getFilmstripYPosition=C;this.setFineScrubbingDraggedTime=w;this.updateFilmStripDraggedYDistance=K;this.resetFilmStripYOffset=G;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.lw(this.onThrottledSeek,100,this)},fIv=function(e,z,C){return function(w){e.handleClick(w,z(),C())}},dEZ=function(e,z){return function(C){SRv(e,
C,u0v(C),z())}},DE$=function(e,z){return function(C){SRv(e,C,{x:C.clientX,
y:C.clientY},z())}},NaL=function(e,z,C){return function(w){var K=z(),G=C();
ipf(e,w,u0v(w),K,G,!0);if(G.onTouchMove)G.onTouchMove(K)}},Baa=function(e,z,C){return function(w){ssb(e,w,z(),C())}},txo=function(e,z){return function(){e.handleMouseLeave(z())}},jsl=function(e,z,C){return function(){var w=z(),K=C();
gj3(e,w,K);if(K.onTouchEnd)K.onTouchEnd(w)}},yfv=function(e,z,C){return function(){var w=z(),K=C();
gj3(e,w,K);if(K.onTouchEnd)K.onTouchEnd(w)}},cfb=function(e,z,C){return function(){gj3(e,z(),C())}},Af5=function(e){return function(z){if(z.keyCode===39||z.keyCode===38){var C,w;
(C=e())==null||(w=C.playerApi)==null||w.seekBy(5,void 0,void 0,72)}else if(z.keyCode===37||z.keyCode===40){var K,G;(K=e())==null||(G=K.playerApi)==null||G.seekBy(-5,void 0,void 0,71)}}},Zpv=function(e,z,C){return function(w){!C().disableScrubbing&&e.startPosition&&ssb(e,w,z(),C())}},p5q=function(e,z,C){return function(){if(!C().disableScrubbing)if(e.startPosition){var w=z(),K=C();
gj3(e,z(),C());if(K.onTouchEnd)K.onTouchEnd(w)}else z().setState({isDragging:!1})}},u0v=function(e){e=e.touches[0];
return{x:e.clientX,y:e.clientY}},ssb=function(e,z,C,w){if(z.buttons!==1){if(z.movementX||z.movementY)z.preventDefault(),z.stopPropagation(),e=eUE(e,C,z.clientX),C.setState({isHovering:!0,
hoveredTime:e*C.videoDuration})}else zUY(C),ipf(e,z,{x:z.clientX,y:z.clientY},C,w,!1)};
sI.prototype.handleMouseLeave=function(e){zUY(e)};
var zUY=function(e){e.isHovering&&e.setState({isHovering:!1,hoveredTime:0})},SRv=function(e,z,C,w){e.startPosition||(e.startPosition=C,e.updateProgressBarRect(),e.controlsWereVisibleBeforeDragging=w.controlsVisible,z.stopPropagation(),_.M("medium_progress_bar_modification")||z.preventDefault())},ipf=function(e,z,C,w,K,G){if(e.startPosition)if(G&&K.isInlinePlayback&&e.startPosition&&!e.hasDraggedTheMinimumDistance&&Math.abs(C.y-e.startPosition.y)>Math.abs(C.x-e.startPosition.x))gj3(e,w,K);
else if(z.preventDefault(),z.stopPropagation(),w.videoDuration&&(e.startPosition&&!e.hasDraggedTheMinimumDistance&&(e.hasDraggedTheMinimumDistance=Math.abs(C.x-e.startPosition.x)>=1),K.enableFineScrubbing&&(e.startPosition&&(e.isDraggedForFineScrubbing=-(C.y-e.startPosition.y)>=60),!e.startPosition||C.y>=e.startPosition.y||(w.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:ycN(w.draggedTime,w,K.chapterData)}),e.setFineScrubbingDraggedTime(w.draggedTime),e.updateFilmStripDraggedYDistance(e.startPosition.y,
C.y,w))),e.hasDraggedTheMinimumDistance)){z=eUE(e,w,C.x);if(e.isDraggedForFineScrubbing){var X;(X=w.playerApi)==null||X.pauseVideo();w.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:w.draggedTime,filmStripXDistance:ycN(z*w.videoDuration,w,K.chapterData)})}K.enableFineScrubbing&&(!K.enableFineScrubbing||e.getFilmstripYPosition(w)<68)||w.setState({draggedTime:z*w.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:e.controlsWereVisibleBeforeDragging});var J;(J=
K.cancelAutohideControlsFn)==null||J.call(K)}},gj3=function(e,z,C){var w=C.enableFineScrubbing&&z.fineScrubbingActiveState!=="off";
if(z.isDragging||w){w={isDragging:!1,playedTime:z.draggedTime,controlsVisible:e.controlsWereVisibleBeforeDragging};C.enableFineScrubbing&&z.fineScrubbingActiveState!=="on"&&(e.resetFilmStripYOffset(),w.fineScrubbingActiveState="off");var K=K===void 0?u7o:K;var G=_.Pr(0);if(G&&K){var X=Math.round(z.playedTime*1E3),J=Math.round(z.draggedTime*1E3);X>2147483647||J>2147483647||_.jA(G,K,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(X),endMediaTimeMs:String(J),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}z.setState(w);
e.seekThrottle.fire(z.draggedTime,z,7);_.M("mweb_new_progress_bar_play_on_seek")&&e.resumeVideo(z);C.unmuteOnSeek&&(C=z.playerApi,z.volumeMuted&&(C==null||C.unMute()))}else z.setState({controlsVisible:!z.controlsVisible}),(G=C.triggerAutohideControlsAfterDelayFn)==null||G.call(C);e.startPosition=null;e.hasDraggedTheMinimumDistance=!1;e.isDraggedForFineScrubbing=!1;e.controlsWereVisibleBeforeDragging=!1};
sI.prototype.handleClick=function(e,z,C){this.updateProgressBarRect();e.stopPropagation();e=eUE(this,z,e.clientX)*z.videoDuration;z.setState({playedTime:e});if(z.playerState!==2){var w;(w=C.triggerAutohideControlsAfterDelayFn)==null||w.call(C)}this.seekThrottle.fire(e,z,7)};
var eUE=function(e,z,C){e=e.getProgressBarRect(z);return _.NZ(0,(C-e.left)/e.width,1)};
sI.prototype.resumeVideo=function(e){if(e.draggedTime<e.videoDuration){var z;(z=e.playerApi)==null||z.playVideo()}};
sI.prototype.onThrottledSeek=function(e,z,C){if(z=z.playerApi){var w;if((w=z.getVideoData())==null?0:w.isLive)w=this.getProgressState(z),e+=(w==null?void 0:w.seekableStart)||0;z.seekTo(e,void 0,void 0,void 0,C)}};
sI.prototype.getProgressState=function(e){var z=e==null?void 0:e.getPresentingPlayerType();return e==null?void 0:e.getProgressState(z)};var K1E,wnZ,oO$,YO$,Ck$,bCa,Xnb,JX5,kEC;K1E=_.f(function(e){var z=e.progressBarProps;var C=e.config;var w=e.progressBarWidthPx;var K=e.chapterData;var G=ebL(z,function(){return C().isShortsPage}),X=function(){return!z().isHovering&&!C().isShortsPage};
e={};var J=_.qT("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(e.ytPlayerStoryboardHostMwebShorts=function(){return C().isShortsPage&&!1},e));
return _.x("yt-player-storyboard",null,_.x(_.l,{cond:function(){return z().isDragging||z().isHovering},
then:function(){return _.x(_.l,{cond:G,then:function(q){return _.x(_.l,{cond:X,then:function(){return _.x("div",{class:J,"aria-hidden":"true"},_.x(Ck$,{props:z,config:C,isBigboard:!0,chapterData:K}))},
else:function(){return _.x(wnZ,{props:z,frame:q,config:C,progressBarWidthPx:w,chapterData:K})}})}})}}))},"Og");
_.GEZ=_.f(function(e){var z=e.progressBarProps;var C=ebL(z,e.isShortsPage);return _.x("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.x(_.l,{cond:function(){return z().isDragging||z().isHovering},
then:function(){return _.x(_.l,{cond:C,then:function(w){return _.x(oO$,{frame:w,props:z,isBigboard:!0})}})}}))},"Pg");
wnZ=_.f(function(e){var z=e.props;var C=e.frame;var w=e.config;var K=e.progressBarWidthPx;e=e.chapterData;var G={};G=_.qT("ytPlayerStoryboardHost",(G.ytPlayerStoryboardHostMwebShorts=function(){return w().isShortsPage&&!1},G.ytPlayerStoryboardHostInlinePlayer=function(){return w().isInlinePlayer},G.ytPlayerStoryboardHostFadeIn=function(){return w().useFadeInAnimation},G));
return _.x("div",{class:G,"aria-hidden":"true",style:function(){var X=z(),J=cc1(C()),q=K();X=Ac1(X)/X.videoDuration;var T=q*X,Q=J/2+6;J=q-(J/2+6);return"left: "+(T<=Q?Q/q*100:T>=J?J/q*100:X*100)+"%"}},_.x(_.l,{cond:function(){var X=z();
return!(w().isShortsPage&&X.videoDuration<15)},
then:function(){return _.x(oO$,{frame:C,props:z,isBigboard:!1})}}),_.x(Ck$,{props:z,
config:w,isBigboard:!1,chapterData:e}))},"Qg");
oO$=_.f(function(e){var z=e.frame;var C=e.props;var w=e.isBigboard;var K=function(){var J,q;return(q=(J=C().playerApi)==null?void 0:J.getVideoContentRect())!=null?q:{width:0,height:0}},G=function(){return cc1(z())},X=function(){var J=z();
return J?J.height/J.rows:0};
e={};e=_.qT((e.ytPlayerStoryboardBigboardImageWrapper=w,e.ytPlayerStoryboardStoryboardImageWrapper=function(){return!w()},e));
return _.x("div",{class:e,style:function(){return"width: "+(w()?K().width:G())+"px; height: "+(w()?K().height:X())+"px;"}},_.x(YO$,{frame:z,
storyboardWidth:G,storyboardHeight:X,storyboardScale:function(){return(w()?K().width:G())/G()}}))},"Rg");
YO$=_.f(function(e){var z=e.frame;var C=e.storyboardWidth;var w=e.storyboardHeight;var K=e.storyboardScale;var G=function(){var X=z().row,J=z().column,q=C(),T=w(),Q=K();return{left:-J*q*Q,top:-X*T*Q}};
return _.x("img",{src:function(){return z().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+G().left+"px; top: "+G().top+"px; width: "+z().width*K()+"px; height: "+z().height*K()+"px;"}})},"Sg");
Ck$=_.f(function(e){var z=e.props;var C=e.config;var w=e.isBigboard;var K=e.chapterData;e={};e=_.qT("ytPlayerStoryboardMetadata",(e.ytPlayerStoryboardMetadataBigboard=w,e));return _.x("div",{class:e},_.x(_.l,{cond:w,then:function(){return _.x(_.Qw,null,_.x(bCa,{props:z,config:C}),_.x(_.l,{cond:function(){a:{var G=z();var X=C(),J=K(),q;if((X==null?0:X.activeChapter)&&((q=_.r(X==null?void 0:X.activeChapter,sQ))==null?0:q.title))G=!0;else{X=_.b(h8s(J));for(X=X.next();!X.done;X=X.next()){G=(X=_.r(X.value,
wUC))&&Zt1(G,X);break a}G=!1}}return G},
then:function(){return _.x(Xnb,{props:z,config:C,isBigboard:!0,chapterData:K})}}))},
else:function(){return _.x(_.Qw,null,_.x(Xnb,{props:z,config:C,isBigboard:!0,chapterData:K}),_.x(bCa,{props:z,config:C}))}}))},"Tg");
bCa=_.f(function(e){var z=e.props;var C=e.config;e={};e=_.qT("ytPlayerStoryboardTimestamp",(e.ytPlayerStoryboardTimestampShorts=function(){return C().isShortsPage},e.ytPlayerStoryboardTimestampIsHovering=function(){return z().isHovering||C().isShortsPage&&!0},e));
return _.x("div",{class:e},_.x(_.Qw,null,function(){return _.pD1(Ac1(z()))}))},"Ug");
Xnb=_.f(function(e){var z=e.props;var C=e.config;var w=e.isBigboard;var K=e.chapterData;e={};w=_.qT("ytPlayerStoryboardTitle",(e.ytPlayerStoryboardTitleBigboard=w,e));return _.x("div",{class:w},_.x(_.l,{cond:function(){return!C().isShortsPage},
then:function(){return _.x(JX5,{props:z,activeChapter:function(){return C().activeChapter},
chapterData:K})}}))},"Vg");
JX5=_.f(function(e){var z=e.props;var C=e.activeChapter;var w=e.chapterData;return _.x(_.Qw,null,_.x(_.ui,{each:function(){return h8s(w())},
keyBy:"INDEX"},function(K){return _.x(_.Qw,null,_.x(_.l,{cond:function(){return _.r(K(),wUC)&&Zt1(z(),_.r(K(),wUC))},
then:function(){return _.x(kEC,{timedMarker:function(){return _.r(K(),wUC)}})}}))}),_.x(_.l,{cond:function(){var K;
return C()&&((K=_.r(C(),sQ))==null?void 0:K.title)},
then:function(K){return _.x(_.U2,{text:K,noPreWrap:!0})}}))},"Wg");
kEC=_.f(function(e){var z=e.timedMarker;return _.x(_.Qw,null,_.x("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.x(_.mB,{icon:function(){return z().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.x(_.U2,{text:function(){return z().label},
noPreWrap:!0}))},"Xg");_.qOa=_.f(function(e){var z=e.progressBarProps;var C=e.playheadData;var w=e.config;e=_.kI("yt-progress-bar");var K=_.kI("div"),G=_.kI("div"),X=_.b(_.II({width:0,left:0},void 0,"XjZjde")),J=X.next().value,q=X.next().value,T=function(){G.value&&q(G.value.getBoundingClientRect())},Q=function(){J().width<=0&&T();
return J()};
_.Qr("resize",T);var m=new sI(Q,function(){},function(){return 0},function(){},function(){},function(){}),a=function(){return z()};
X=_.b(_.II(!1,void 0,"uZlOJc"));var n=X.next().value,H=X.next().value;X=_.T9(function(){H(!0);w().position===2?setTimeout(function(){T()},100):T()});
var I=_.T9(function(){H(!1);txo(m,a)()}),L=_.T9(function(ug){(w().doSeekOnClick||_.M("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&ug instanceof PointerEvent&&ug.pointerType==="mouse")&&fIv(m,a,w)(ug);
return!1}),h=_.T9(function(ug){dEZ(m,a)(ug);
return!1}),E=_.T9(function(ug){DE$(m,a)(ug);
return!1}),N=_.T9(function(ug){NaL(m,a,w)(ug);
return!1}),D=_.T9(function(ug){Baa(m,a,w)(ug);
return!1}),g=_.T9(function(){jsl(m,a,w)();
return!1}),y=_.T9(function(){yfv(m,a,w)();
return!1}),Z=_.T9(function(){cfb(m,a,w)();
return!1}),YN=_.T9(function(ug){Af5(a)(ug);
return!1});
_.Qr("mousemove",Zpv(m,a,w));_.Qr("mouseup",p5q(m,a,w));_.sg(function(){db7(K.value);H(!1);T();p5q(m,a,w)()});
var Jk={};Jk=_.qT("ytPlayerProgressBarHost",function(){return w().className},(Jk.ytPlayerProgressBarHostReadOnly=function(){return w().disableScrubbing},Jk.ytPlayerProgressBarHostHidden=function(){return w().hideProgressBar&&!n()},Jk.ytPlayerProgressBarHostLowerPlayer=function(){return w().position===0},Jk.ytPlayerProgressBarHostBottomEdge=function(){return w().position===1},Jk.ytPlayerProgressBarHostBottomInset=function(){return w().position===2},Jk.ytPlayerProgressBarHostCustom=function(){return w().position===
3},Jk));
var v1={},lg=_.qT("ytPlayerProgressBarBackground",(v1.ytPlayerProgressBarBackgroundHide=function(){return w().position===2&&!n()&&!z().isDragging},v1));
v1={};v1=_.qT("ytPlayerProgressBarDragContainer",(v1.ytPlayerProgressBarDragContainerBottomEdge=function(){return w().position===1},v1));
var M5={};M5=_.qT("ytPlayerProgressBarProgressBar",(M5.ytPlayerProgressBarProgressBarInset=function(){return w().position===2},M5.ytPlayerProgressBarProgressBarInsetMinimized=function(){return w().position===2&&!n()&&!z().isDragging},M5));
var fo=function(){return Math.floor(WNh(z())*100)};
return _.x("yt-progress-bar",{el:e,class:Jk},_.x(_.l,{cond:function(){return w().position===2},
then:function(){return _.x("div",{class:lg})}}),_.x("div",{el:K,
"on:click":L,"on:touchstart":h,"on:touchmove":N,"on:mouseenter":X,"on:mousedown":E,"on:mouseleave":I,"on:mousemove":D,"on:mouseup":y,"on:touchend":g,"on:touchcancel":Z,"on:keydown":YN,class:v1,role:"slider","aria-valuenow":fo,"aria-valuetext":function(){return fo()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return z().videoDuration},
draggable:_.M("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.kk("SEEK_SLIDER")},_.x("div",{el:G,class:M5},_.x(Ejl,{progressBarProps:z,config:w,highContrast:function(){return!!w().isInlinePlayback}}),_.x(_.l,{cond:function(){return w().chapterData&&Ot5(w().chapterData)},
then:function(){return _.x(h_$,{progressState:z,multiMarkersPlayerBarRenderer:function(){return w().chapterData},
progressBarWidth:function(){return J().width}})},
else:function(){return _.x(F0W,{progressBarProps:z,config:w})}}),_.x(VxL,{progressBarProps:z,
playheadData:C,interpolateDotPosition:function(){return w().position!==2},
hidePlayhead:function(){return w().playheadDotBehavior===1&&!n()}}))),_.x(K1E,{progressBarProps:z,
config:function(){return{activeChapter:BI1(z(),w().chapterData),getProgressBarWidthPx:function(){return Q().width},
isShortsPage:!!w().isShortsPage,isInlinePlayer:!!w().isInlinePlayback,useFadeInAnimation:!!w().isInlinePlayback}},
progressBarWidthPx:function(){return J().width},
chapterData:function(){return w().chapterData}}))},"Yg");
_.qOa.idomCompat=!0;Object.assign({},_.Et1(),{setState:function(){},
domMeasurements:{},appApi:_.Ijk(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var xUo;
_.Tmf=_.f(function(){var e,z=(e=_.t8(zbL().playerApi))!=null?e:void 0;e=_.b(_.II(!1,void 0,"Z9NQ1b"));var C=e.next().value,w=e.next().value;e=_.b(_.II(!1,void 0,"HoVJXe"));var K=e.next().value,G=e.next().value;e=_.b(_.II(!1,void 0,"DWCY3"));var X=e.next().value,J=e.next().value;e=_.b(_.II(!1,void 0,"g4C2Zd"));var q=e.next().value,T=e.next().value;e=_.b(_.II(0,void 0,"lmVfFb"));var Q=e.next().value,m=e.next().value;e=_.b(_.II(0,void 0,"mFLbzb"));var a=e.next().value,n=e.next().value;e=_.b(_.II(!1,void 0,
"hQN4Wb"));var H=e.next().value,I=e.next().value;e=_.b(_.II(0,void 0,"WWU0fb"));var L=e.next().value,h=e.next().value;e=_.b(_.II(0,void 0,"MJ7LMd"));var E=e.next().value,N=e.next().value;e=_.b(_.II("",void 0,"hnomOe"));var D=e.next().value,g=e.next().value;e=_.b(_.II(-1,void 0,"ARe3pf"));var y=e.next().value,Z=e.next().value,YN=_.hG(function(){var Jk={controlsVisible:C(),isOverlayHidden:K(),shouldWaitToHideControls:X(),isDragging:q(),isHovering:H(),videoDuration:L(),playedTime:E(),videoId:D(),draggedTime:a(),
hoveredTime:Q(),playerState:y()};return Object.assign({},_.Et1(),Jk,{domMeasurements:{},setState:function(v1){v1.controlsVisible!==void 0&&w(v1.controlsVisible);v1.isOverlayHidden!==void 0&&G(v1.isOverlayHidden);v1.shouldWaitToHideControls!==void 0&&J(v1.shouldWaitToHideControls);v1.isDragging!==void 0&&T(v1.isDragging);v1.isHovering!==void 0&&I(v1.isHovering);v1.draggedTime!==void 0&&n(v1.draggedTime);v1.hoveredTime!==void 0&&m(v1.hoveredTime);v1.videoDuration!==void 0&&h(v1.videoDuration);v1.playedTime!==
void 0&&N(v1.playedTime);v1.videoId!==void 0&&g(v1.videoId);v1.playerState!==void 0&&Z(v1.playerState)},
appApi:_.Ijk(),playerApi:z})},void 0,"Au4PIf");
_.Nm(function(){z==null||z.addEventListener("onVideoProgress",Si4(YN));z==null||z.addEventListener("onVideoDataChange",fj4(YN));z==null||z.addEventListener("onStateChange",FNg(YN))});
_.BC(function(){if(z==null?0:z.isReady())z==null||z.removeEventListener("onVideoProgress",Si4(YN)),z==null||z.removeEventListener("onVideoDataChange",fj4(YN)),z==null||z.removeEventListener("onStateChange",FNg(YN))});
return _.x("desktop-shorts-player-controls",null,_.x(xUo,{playerControlsProps:YN}))},"$g");
xUo=_.f(function(e){var z=e.playerControlsProps;return _.x("div",{class:"desktopShortsPlayerControlsHost"},_.x(_.qOa,{progressBarProps:z,config:function(){return{isShortsPage:!0,hideProgressBar:z().videoDuration<30&&z().playerState!==2&&!z().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ah");_.$UW=_.f(function(e){function z(Jk){Jk!==0||m()?Jk>50&&(m()||!n())?(a(!1),H(!0)):Jk<=50&&(m()||n())&&(a(!1),H(!1)):a(!0)}
function C(Jk,v1){var lg;return _.k(function(M5){if(M5.nextAddress==1)return M5.yield(_.ax(),2);lg=M5.yieldResult;v1&&lg?(lg.unMute(!0),Jk&&(ww7(Jk,lg.getVolume()),L(lg.getVolume()))):lg&&(lg.mute(!0),Jk&&ww7(Jk,0));_.E_(M5)})}
function w(Jk){var v1,lg;return _.k(function(M5){if(M5.nextAddress==1)return M5.yield(_.ax(),2);v1=M5.yieldResult;lg=50;v1&&(lg=v1.getVolume(),v1.isMuted()?ww7(Jk,0):ww7(Jk,lg));L(lg);_.E_(M5)})}
var K=e.orientation;e=_.kI("desktop-shorts-volume-controls");var G=_.kI("button"),X=_.qD("input"),J=_.b(_.II(!1,void 0,"RuD0I")),q=J.next().value,T=J.next().value,Q=_.b(_.II(!1,void 0,"YbWwwb"));J=Q.next().value;Q=Q.next().value;var m=J,a=Q;Q=_.b(_.II(!0,void 0,"F7Esub"));J=Q.next().value;Q=Q.next().value;var n=J,H=Q;J=_.b(_.II(50,void 0,"QFGbod"));var I=J.next().value,L=J.next().value;J=_.hG(function(){var Jk=m();return _.M("web_shorts_keyboard_enable_mute_shortcut")?Jk?_.kk("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.kk("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Jk?_.kk("UNMUTE_VOLUME",void 0,"Unmute"):_.kk("MUTE_VOLUME",void 0,"Mute")},void 0,"rhQxrf");
Q=_.hG(function(){var Jk=m(),v1=n();return{sources:[{clientResource:{imageName:Jk?_.M("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":v1?_.M("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.M("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"mluxjf");
var h=_.hG(function(){var Jk=I();return m()?Jk+"% volume muted":Jk+"% volume"},void 0,"QaT2u"),E=_.hG(function(){return K()==="vertical_down"},void 0,"LkJ9ac");
_.sg(function(){function Jk(){T(!0)}
function v1(){T(!1)}
X&&X.value&&(X.value.addEventListener("focus",Jk),X.value.addEventListener("focusout",v1),w(X.value).then(function(){z(Number(KV1(X.value)))}));
G&&G.value&&(G.value.addEventListener("focus",Jk),G.value.addEventListener("focusout",v1));_.BC(function(){var lg;X==null||(lg=X.value)==null||lg.removeEventListener("focus",Jk);var M5;X==null||(M5=X.value)==null||M5.removeEventListener("focusout",v1);var fo;G==null||(fo=G.value)==null||fo.removeEventListener("focus",Jk);var ug;G==null||(ug=G.value)==null||ug.removeEventListener("focusout",v1)})});
var N=_.T9(function(){if(X&&X.value){var Jk=Number(KV1(X.value));CNg(Jk);L(Jk);X.value.style.setProperty("--gradient-percent",Jk+"%");z(Jk)}return!1}),D=_.T9(function(){X&&X.value&&(C(X.value,m()),a(!m()));
return!1}),g={},y={},Z={},YN={};
return _.x("desktop-shorts-volume-controls",{"on:pointerleave":_.T9(function(){T(!1)}),
"on:pointerenter":_.T9(function(){T(!0)}),
class:_.qT("ytdDesktopShortsVolumeControlsHost",(g.ytdDesktopShortsVolumeControlsHostVertical=E,g.ytdDesktopShortsVolumeControlsHostModern=_.M("web_shorts_modern_controls"),g.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.M("web_shorts_modern_controls")&&q()},g)),
el:e},_.x(_.l,{cond:function(){return!E()},
then:function(){var Jk={};return _.x("div",{class:_.qT("ytdDesktopShortsVolumeControlsBackgroundScrim",(Jk.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=q,Jk.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.M("web_shorts_modern_controls")&&q()},Jk))})}}),_.x("div",{class:_.qT((y.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=E,y))},_.x("button",{"aria-label":J,
title:J,el:G,"on:click":D,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},Q?_.x(_.Zf,{data:Q,alt:J,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.x("div",{class:_.qT("ytdDesktopShortsVolumeControlsSliderContainer",(Z.ytdDesktopShortsVolumeControlsSliderContainerExpanded=q,Z.ytdDesktopShortsVolumeControlsSliderContainerVertical=E,Z.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=E,Z.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return q()&&
E()},Z))},_.x("input",{"aria-label":_.kk("VOLUME"),
title:_.kk("VOLUME"),el:X,"on:input":N,type:"range",class:_.qT("ytdDesktopShortsVolumeControlsNativeSlider",(YN.ytdDesktopShortsVolumeControlsNativeSliderModern=_.M("web_shorts_modern_controls"),YN)),id:"volume-input",role:"slider","aria-valuenow":I,"aria-valuetext":h,"aria-valuemin":0,"aria-valuemax":100})))},"bh");var lzL=_.f(function(e){var z=e.data;var C=e.overlayDensity;e={};return _.x("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.x(_.PF,{data:function(){return z().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(w){var K=w.data;
return _.x(_.Qh,{data:function(){return(C==null?void 0:C())===1?Object.assign({},K(),{avatar:{avatarViewModel:Object.assign({},_.r(K().avatar,_.NK),{avatarImageSize:"AVATAR_SIZE_M"})}}):K()}})}}),_.x(_.PF,{data:function(){return z().avatarStackViewModel}},{avatarStackViewModel:function(w){return _.x(_.m9,{data:w.data})}}),_.x(_.U2,{className:_.qT("ytReelChannelBarViewModelChannelName",(e.ytReelChannelBarViewModelChannelNameLarge=function(){return(C==null?void 0:C())===1},e)),
text:function(){return z().channelName},
linkInheritColor:!0,userInput:!0}),_.x("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.x(_.PF,{data:function(){return z().subscribeButtonViewModel}},{subscribeButtonViewModel:function(w){var K=w.data;
return _.x(_.lT,{data:function(){return(C==null?void 0:C())===1?Object.assign({},K(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},K().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):K()},
isOverlay:!1})},
buttonViewModel:_.iz})),_.x("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.x(_.PF,{data:function(){var w,K;return(K=_.r((w=z())==null?void 0:w.sponsorButtonViewModel,$wa))==null?void 0:K.sponsorButton}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ch");var QCa=_.f(function(e){var z=function(){var K;return((K=e.overlayDensity)==null?void 0:K.call(e))===1},C=function(){return z()?22:16},w={};
return _.x("yt-reel-multi-format-link-view-model",{class:_.qT("ytReelMultiFormatLinkViewModelHost",(w.ytReelMultiFormatLinkViewModelHostTall=!0,w.ytReelMultiFormatLinkViewModelHostLarge=function(){return z()},w))},_.x(_.fE,{ariaLabel:function(){return e.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return e.data().command}},_.x("h3",{class:function(){return z()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.x(_.l,{cond:function(){return e.data().icon},
then:function(K){return _.x(_.Zf,{data:K,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:C})}}),_.x(_.U2,{text:function(){return e.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"dh");
QCa.idomCompat=!0;var mUq=_.f(function(e){var z=e.data;var C=e.overlayDensity;var w=e.extractOverlay;var K=_.kI("yt-shorts-suggested-action-view-model");e=_.b(_.II(!1,void 0,"S60Hzc"));var G=e.next().value,X=e.next().value;e=_.b(_.II(!1,void 0,"O76chf"));var J=e.next().value,q=e.next().value,T=function(){return z().isMultiLineSa},Q=_.vF(US4,function(){var Z,YN;
return(YN=(Z=z().toggleableContent)==null?void 0:Z.entityKey)!=null?YN:""}),m=function(){var Z,YN,Jk;
return(Jk=z().toggleableContent)!=null&&Jk.entityKey?(YN=(Z=Q())==null?void 0:Z.value)!=null?YN:!1:!1},a=function(){var Z,YN,Jk,v1,lg,M5,fo,ug,sE,w6,qY;
return z().toggleableContent?m()?(Z=z().toggleableContent)==null?void 0:Z.toggledData:(YN=z().toggleableContent)==null?void 0:YN.untoggledData:{primaryText:(ug=(Jk=z().defaultContent)==null?void 0:Jk.primaryText)!=null?ug:z().text,secondaryText:(v1=z().defaultContent)==null?void 0:v1.secondaryText,onTapCommand:(sE=(lg=z().defaultContent)==null?void 0:lg.onTapCommand)!=null?sE:z().onTapCommand,icon:(w6=(M5=z().defaultContent)==null?void 0:M5.icon)!=null?w6:z().icon,image:(qY=(fo=z().defaultContent)==
null?void 0:fo.image)!=null?qY:z().image}},n=function(){return T()?z().trailingTapTarget:void 0},H=function(Z,YN){return function(){return G()?YN:Z}},I=function(){return{leadingSection:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(C==null?void 0:C())===1?H("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):H("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:H("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:H("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
e={};e=_.qT((e.ytShortsSuggestedActionViewModelStaticHost=function(){return!T()},e.ytShortsSuggestedActionViewModelDynamicHost=T,e.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return T()&&J()},e.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return T()&&!J()},e.ytShortsSuggestedActionViewModelExtractOverlay=function(){return w==null?void 0:w()},e));
_.sg(function(){if(T()){var Z=0,YN;if((YN=z().animationParams)==null?0:YN.shouldExpand){var Jk,v1;Z=((v1=(Jk=z().animationParams)==null?void 0:Jk.expansionDelaySecs)!=null?v1:0)*1E3}var lg,M5=((lg=z().animationParams)==null?0:lg.shouldExpand)?setTimeout(function(){X(!0)},Z):void 0,fo,ug;
Z=((fo=z().animationParams)==null?0:fo.visibilityDelaySecs)?((ug=z().animationParams)==null?NaN:ug.visibilityDelaySecs)*1E3:0;var sE=setTimeout(function(){q(!0)},Z);
_.BC(function(){M5&&clearTimeout(M5);clearTimeout(sE)})}});
var L=function(Z){_.NF(Z,Object.assign({},{form:{element:K.value}}))},h=_.T9(function(){var Z,YN=(Z=a())==null?void 0:Z.onTapCommand;
YN&&L(YN)}),E=_.T9(function(){var Z,YN;
if(Z=(YN=n())==null?void 0:YN.onTapCommand)return L(Z),!1}),N=_.QC({"vertical-align":"bottom",
"border-radius":function(){var Z;return T()?((Z=z().defaultContent)==null?0:Z.isCircleImage)?"50%":"4px":"0px"},
width:function(){var Z,YN,Jk;return T()&&((Z=z().defaultContent)==null?0:Z.imageSize)?((Jk=(YN=z().defaultContent)==null?void 0:YN.imageSize)!=null?Jk:24)+"px":null},
height:function(){var Z,YN,Jk;return T()&&((Z=z().defaultContent)==null?0:Z.imageSize)?((Jk=(YN=z().defaultContent)==null?void 0:YN.imageSize)!=null?Jk:24)+"px":null}}),D=function(){return T()?I().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},g=function(){return T()?I().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},y={};
return _.x("yt-shorts-suggested-action-view-model",{class:e,el:K},_.x("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.x("button",{class:_.qT(function(){return T()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var Z;
return(Z=z().useFullRoundedBorder)!=null&&Z?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!n()&&T()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":T()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var Z;
return(Z=z().disableFixedHeight)!=null&&Z?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(y.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(C==null?void 0:C())===1},y.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return w==null?void 0:w()},y)),
"on:click":h},_.x(_.Sf,{model:{color:4}}),_.x("div",{class:_.qT(function(){return T()?I().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.x(_.l,{cond:function(){var Z;
return(Z=a())==null?void 0:Z.image},
then:function(Z){return _.x(_.Zf,{data:Z,alt:"",className:g,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:N})}}),_.x(_.l,{cond:function(){var Z,YN;
return(Z=a())==null?void 0:(YN=Z.icon)==null?void 0:YN.iconType},
then:function(Z){return _.x(_.mB,{icon:Z,active:m,className:D})}})),_.x("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.x(_.l,{cond:function(){var Z;
return(Z=a())==null?void 0:Z.primaryText},
then:function(Z){var YN={};return _.x("div",{class:_.qT("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(YN.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(C==null?void 0:C())===1},YN))},_.x(_.U2,{text:Z}))}}),_.x(_.l,{cond:function(){var Z;
return(Z=a())==null?void 0:Z.secondaryText},
then:function(Z){return _.x("div",{class:function(){return I().secondaryText()}},_.x(_.U2,{text:Z}))}}))),_.x(_.l,{cond:n,
then:function(Z){return _.x("div",{class:_.qT(function(){return I().trailingSection()},function(){var YN,Jk;
return(w==null?void 0:w())&&((Jk=(YN=I()).trailingSectionExtractOverlay)==null?void 0:Jk.call(YN))||""}),
"aria-label":function(){var YN;return(YN=Z().a11yLabel)!=null?YN:""},
"on:click":E,role:"button",tabindex:0},_.x(_.Sf,{model:{color:4}}),_.x(_.mB,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"eh");var azb=_.f(function(e){var z=e.data;var C=e.overlayDensity;var w=_.kI("yt-shorts-video-title-view-model");e=_.T9(function(X){if(_.S3(_.f7(X),w.value,["A".toString()]))return!1;(X=z().truncatedTextOnTapCommand)&&_.NF(X);return!1});
var K={},G={};return _.x("yt-shorts-video-title-view-model",{el:w,class:_.qT("ytShortsVideoTitleViewModelHost",(K.ytShortsVideoTitleViewModelHostClickable=function(){return!!z().truncatedTextOnTapCommand},K)),
"on:click":e},_.x("h2",{class:_.qT("ytShortsVideoTitleViewModelShortsVideoTitle",(G.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(C==null?void 0:C())===1},G.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.M("enable_shorts_declutter_ui")},G))},_.x(_.U2,{text:function(){return z().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(C==null?void 0:C())===1}})))},"fh");_.nOW=_.f(function(e){var z=e.data;var C=e.overlayDensity;var w=e.extractOverlay;var K=function(){return(C==null?void 0:C())===1};
return _.x("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.x(_.PF,{data:function(){return z().metadataItems}},{badgeViewModel:function(G){G=G.data;
return _.x("div",{class:_.qT(function(){return K()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.x(_.Se,{data:G}))},
playerDisclosureViewModel:function(G){G=G.data;return _.x("div",{class:_.qT(function(){return K()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.x(_.XL5,{data:G,
extractOverlay:w}))},
shortsSuggestedActionViewModel:function(G){G=G.data;return _.x("div",{class:_.qT(function(){return K()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.x(mUq,{data:G,
overlayDensity:C,extractOverlay:w}))},
reelChannelBarViewModel:function(G){G=G.data;var X={};return _.x("div",{class:_.qT("ytReelMetapanelViewModelMetapanelItem",(X.ytReelMetapanelViewModelExpansive=function(){return K()},X))},_.x(lzL,{data:G,
overlayDensity:C}))},
reelMultiFormatLinkViewModel:function(G){G=G.data;var X={};return _.x("div",{class:_.qT("ytReelMetapanelViewModelMetapanelItem",(X.ytReelMetapanelViewModelExpansive=function(){return K()},X))},_.x(QCa,{data:G,
overlayDensity:C}))},
shortsVideoTitleViewModel:function(G){G=G.data;var X={};return _.x("div",{class:_.qT("ytReelMetapanelViewModelMetapanelItem",(X.ytReelMetapanelViewModelExpansive=function(){return K()},X))},_.x(azb,{data:G,
overlayDensity:C}))},
reelSoundMetadataViewModel:function(G){G=G.data;var X={};return _.x("div",{class:_.qT("ytReelMetapanelViewModelMetapanelItem",(X.ytReelMetapanelViewModelExpansive=function(){return K()},X))},_.x(_.mmE,{data:G,
overlayDensity:C}))},
toggleButtonViewModel:function(G){G=G.data;var X={};return _.x("div",{class:_.qT("ytReelMetapanelViewModelMetapanelItem",(X.ytReelMetapanelViewModelExpansive=function(){return K()},X))},_.x(_.XG,{data:G}))}}))},"gh");var Mub=_.f(function(e){var z=_.eQ(e,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),C=z.size,w=z.onTap,K=z.disabled,G=z.tooltipText;return _.x("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.x(_.DS,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:C(),disabled:K(),tooltipText:G(),onTap:w}},
iconName:e.iconType}))},"hh"),rXb=_.f(function(e){function z(Q){Q.stopPropagation();
Q.code==="ArrowUp"?(Q.preventDefault(),beL(J.value)):Q.code==="ArrowDown"?(Q.preventDefault(),Xwh(J.value)):Q.code==="KeyM"?orL():(Q.code==="KeyK"||Q.code==="Space")&&GPs(q())}
var C=_.eQ(e,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});e=C.previousButtonDisabled;var w=C.nextButtonDisabled,K=C.data,G=C.playabilityStatus,X=C.previewThumbnail,J=_.kI("ytd-shorts-miniplayer-overlay"),q=_.rG(_.iEm),T;_.Nm(function(){(T=_.t0(J.value))&&T.addEventListener("keydown",z)});
_.BC(function(){var Q;(Q=T)==null||Q.removeEventListener("keydown",z)});
C=function(){var Q,m;var a=_.r((Q=K())==null?void 0:(m=Q.reelPlayerOverlayRenderer)==null?void 0:m.buttonBar,kBs);if(a){var n;Q=Object.assign({},a,{buttonViewModels:(n=a.buttonViewModels)==null?void 0:n.filter(Yw5)})}else Q=void 0;return Q};
return _.x("ytd-shorts-miniplayer-overlay",{el:J,class:"ytdShortsMiniplayerOverlayHost"},_.x("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.QC({"background-image":function(){var Q=X();return Q?'url("'+_.G9(Q.thumbnails)+'")':""}})}),_.x("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.x("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.x(Mub,{iconType:function(){var Q=q();
return Q===2||Q===-1||Q===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){GPs(q())},
tooltipText:function(){var Q=q();return Q===1||Q===3?_.kk("PLAYER_LABEL_PAUSE"):_.kk("PLAYER_LABEL_PLAY")}}),_.x(_.$UW,{orientation:"horizontal_right"})),_.x("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.x(Mub,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:e,onTap:function(){beL(J.value)},
tooltipText:_.kk("PREVIOUS_VIDEO_LABEL")}),_.x(Mub,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:w,onTap:function(){Xwh(J.value)},
tooltipText:_.kk("NEXT_VIDEO_LABEL")}),_.M("web_shorts_pip_like_button")?_.x(_.l,{cond:C,then:function(Q){return _.x("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.x(_.XN4,{data:Q,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.x("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.x(_.l,{cond:function(){var Q,m;
return _.r((Q=K())==null?void 0:(m=Q.reelPlayerOverlayRenderer)==null?void 0:m.metapanel,qWS)},
then:function(Q){return _.x("div",{class:_.qT("ytdShortsMiniplayerOverlayInteractive")},_.x(_.nOW,{data:Q}))}})),_.x("div",{class:_.qT("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var Q;return!((Q=K())==null||!Q.adsOverlay)||G()&&!Ncs(G())}},_.x("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.x(_.Tmf,null)))),_.x(_.l,{cond:function(){var Q=K(),m,a;
Q=_.r(Q==null?void 0:(m=Q.adsOverlay)==null?void 0:(a=m.fulfillmentContent)==null?void 0:a.fulfilledLayout,gG6);return _.r(Q==null?void 0:Q.renderingContent,pEh)},
then:function(Q){return _.x("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.x(TWL,{data:Q}))}}))},"jh");var Js1=_.f(function(){var e=_.b(_.II(new _.RM(NaN,NaN),void 0,"hq9Bjf")),z=e.next().value,C=e.next().value;e=_.b(_.II(!1,void 0,"Mu3aZc"));var w=e.next().value,K=e.next().value,G=_.b(_.II(!1,void 0,"LGtoFb"));e=G.next().value;var X=G.next().value,J=_.lh().resolve(_.gh).miniplayerPropSignalMap[0],q=J.data,T=J.shortsData,Q=J.nextButtonDisabled,m=J.shortsPreviewThumbnail,a=J.previousButtonDisabled,n=J.externalPlaylistData;G=J.toastData;var H=J.playabilityStatus,I=J.isDisabled,L=J.playerVe,h=J.closeVe;
J=_.rG(_.ql);_.JH("yt-pip-window-resized",function(g){C(g)});
_.JH("yt-activate-pip-miniplayer",function(){return _.k(function(g){X(!0);_.E_(g)})});
var E=function(){var g;return!((g=n())==null||!g.contents)&&w()},N=function(){var g=z(),y=!!q(),Z=E();
g=g.clone();y&&(g.height-=76);Z&&(g.height-=285);return g},D=function(){K(!w())};
_.sH(function(){var g=L(),y=_.Pr(11),Z=_.Ip(11);y&&Z&&g&&(_.id(y,Z,g),Z=h())&&(_.NL(y,g,[Z]),_.Bf(y,[Z]))},"fHkmfb");
return _.x("ytd-pip-container",{class:"ytdPipContainerHost"},_.x(_.l,{cond:e,then:function(){return _.x(_.PMo,{isDisabled:I,playabilityStatus:H,size:N,isPictureInPicture:!0})}}),_.x(_.l,{cond:q,
then:function(){return _.x(_.IIL,{data:q,expanded:w,onExpandClick:D,playlistData:n})}}),_.x(_.l,{cond:E,
then:function(){return _.x("div",{class:"ytdPipContainerPlaylistPanel"},_.x(_.F2l,{data:n,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.x(_.l,{cond:J,
then:function(){return _.x(rXb,{data:T,nextButtonDisabled:Q,previousButtonDisabled:a,playabilityStatus:H,previewThumbnail:m})}}),_.x("div",{class:"ytdPipContainerToast"},_.x(_.R_W,{toastData:G})))},"lh");var By=function(e,z,C){var w=this;this.pipController=e;this.JSC$19193_clientRoot=z;this.JSC$19193_pageRequestService=C;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=MV4();this.JSC$19193_watchPipEnabled=_.M("web_watch_pip");this.shortsPipEnabled=_.M("web_shorts_pip");this.JSC$19193_watchWhileEnabled=_.M("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;_.K3(_.eB(),fS8,function(K){w.isSingleOptionSurveyActive=K});
this.JSC$19193_onPlayerPlayVideo=this.JSC$19193_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);_.YI(_.G4.getInstance(),this.miniplayerServiceActionMap,this.JSC$19193_clientRoot);e.pictureInPictureSupported()&&_.gm("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},Ee4,W1C,F1q,RUC,VuL,fzb,wDY;
By.prototype.handleMediaSessionPipActivation=function(){var e=this,z;return _.k(function(C){_.C3().mediaSessionPipActivation=!0;z=_.lh().resolve(_.wE);return z.isOnWatch()&&e.JSC$19193_watchPipEnabled?(_.C3().watchPipActivation=!0,_.HCZ(e,z.data),C.jumpTo(0)):z.isOnShorts()&&e.shortsPipEnabled?(_.C3().shortsPipActivation=!0,_.UUL(e),C.jumpTo(0)):e.isMiniplayerActive()&&e.JSC$19193_watchPipEnabled&&!e.watchWhileMode?C.yield(vOZ(e),0):C.jumpTo(0)})};
var vOZ=function(e){var z,C,w,K;return _.k(function(G){if(G.nextAddress==1)return z=!e.miniplayerToPipMode,C=e.playerElement,w=e.miniplayerData,K=e.watchResponse,G.yield(e.deactivate(),2);if(G.nextAddress!=3)return z?(_.C3().mediaSessionPipActivation=!0,_.C3().watchPipActivation=!0):_.C3().miniplayerButtonActivation=!0,G.yield(e.activate(C,w,K),3);e.miniplayerToPipMode=z;_.E_(G)})};
By.prototype.onDownloadedVideoDeleted=function(e){var z,C=_.r((z=this.miniplayerData)==null?void 0:z.watchEndpoint,_.N$),w,K;C&&((w=this.watchResponse)==null?void 0:(K=w.playerResponse)==null?void 0:K.offlineState)!==void 0&&(z=C.videoId)&&e&&z===e&&this.close()};
By.prototype.onShowMiniplayerCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a;return _.k(function(n){switch(n.nextAddress){case 1:return C=_.r(e,Ai6),K=(w=C)==null?void 0:w.miniplayerCommand,G=_.r(K,_.N$),K&&G&&!z.active?n.yield(_.kb.getInstance(),2):n.return();case 2:return X=n.yieldResult,n.yield((J=X)==null?void 0:J.get("yt-miniplayer-shown-video-id"),3);case 3:q=n.yieldResult;T=G.videoId;if(!T||q===T)return n.return();Q=_.lh().resolve(_.wE);if(Q.isOnWatch())return _.AX(Error("Uj")),n.return();
m={channelItem:{externalId:btoa(T)}};z.readyToResumeVe=_.mT(121253,void 0,void 0,m);_.C3().showMiniplayerCommandActivation=!0;return n.yield(_.KNg(z,K,!0),4);case 4:return z.active&&(_.t$(z,{readyToResumeVe:z.readyToResumeVe,isReadyToResume:!0}),z.isReadyToResume=!0),n.yield((a=X)==null?void 0:a.set("yt-miniplayer-shown-video-id",G.videoId),5);case 5:z.readyToResumeVe=void 0,_.E_(n)}})};
By.prototype.init=function(e){this.miniplayerEl?_.AX(new _.uh("MiniplayerService already initialized.")):this.miniplayerEl=e};
By.prototype.isInitialized=function(){var e=!!this.miniplayerEl;e||_.AX(new _.uh("MiniplayerService used before initialized."));return e};
_.HCZ=function(e,z){if(e.isInitialized()){var C=_.Ub7(z.response,z.playerResponse),w=_.lh().resolve(_.wE).getPlayerFromWatch();_.C3().currentEndpoint=C.watchEndpoint||null;e.activate(w,C,z)}};
_.UUL=function(e){if(e.isInitialized()){var z=_.lh().resolve(_.wE).getPlayerFromShorts();e.activate(z)}};
Ee4=function(e,z){var C;(C=!e.isInitialized())||(C=_.lh().resolve(_.wE).isOnWatch()&&e.watchPipMode,C=!(e.isMiniplayerActive()&&(_.C3().userActivation||_.C3().lockupActivation||C)));if(C)return!1;IzL(e,z)?_.N8(e):wDY(e,z);return e.watchPipMode?!_.lh().resolve(_.wE).isOnWatch():!0};
By.prototype.isMiniplayerActive=function(){return this.active};
var IzL=function(e,z){var C;z=(C=_.r(z,_.N$))==null?void 0:C.videoId;var w,K;e=(K=_.r((w=e.miniplayerData)==null?void 0:w.watchEndpoint,_.N$))==null?void 0:K.videoId;return z!=null&&z===e};
By.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.pi(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.eA(this.miniplayerEl,"yt-navigate-home-action"))};
_.KNg=function(e,z,C,w){C=C===void 0?!1:C;var K,G,X;return _.k(function(J){switch(J.nextAddress){case 1:if(e.active){J.jumpTo(2);break}K=_.lh().resolve(_.wE);if(X=(G=e.playerElement)!=null?G:K.getPlayerFromWatch()){J.jumpTo(3);break}return J.yield(_.lh().resolve(_.qK),4);case 4:X=K.getPlayerFromWatch();case 3:if(!X){_.AX(Error("Wj"));J.jumpTo(2);break}return J.yield(e.activate(X,w),2);case 2:return e.active?J.yield(wDY(e,z,C),7):J.return();case 7:setTimeout(function(){var q;(q=e.getPlayerElement())==
null||q.focusOnPlayer()},100),_.E_(J)}})};
By.prototype.activate=function(e,z,C){var w=this,K,G,X,J,q,T,Q,m;return _.k(function(a){switch(a.nextAddress){case 1:if(!w.isInitialized())return a.return();if(!e)return _.AX(Error("Wj")),a.return();if(W1C(w))return l9Y(),a.return();K=_.C3().mediaSessionPipActivation;G=_.C3().shortsPipActivation;X=_.C3().watchPipActivation;q=(J=_.C3().watchWhileActivation)||X;T=X||G;if(!w.pictureInPictureEnabled()||!T){a.jumpTo(2);break}return a.yield(Pkb(w,K),3);case 3:if(!a.yieldResult)return _.AX(Error("Vj")),
l9Y(),a.return();case 2:return w.setActive(!0),w.watchResponse=C,w.playerElement=e,w.updateMiniplayerData(z),a.yield(RUC(w,e),4);case 4:if(!w.active)return _.AX(new _.uh("miniplayer deactivated during activation")),w.removePlayerListeners(),a.return();L1L(w);l9Y();w.JSC$19193_watchWhileEnabled&&_.hUa(w,J);w.pictureInPictureEnabled()&&w.shortsPipEnabled&&(w.shortsPipMode=G,_.eB().dispatch(oDX(w.shortsPipMode)));w.pictureInPictureEnabled()&&w.JSC$19193_watchPipEnabled&&(w.watchPipMode=X,_.vxg(w.handleMediaSessionPipActivation));
w.player&&(Q=w.player.getPlayerState(),m=Q===1,_.eB().dispatch($ja(Q)),_.zj(w.miniplayerEl,"yt-miniplayer-play-state-changed",[m]),_.C3().isVideoPlaying=m);_.zj(w.miniplayerEl,"yt-miniplayer-endpoint-changed");OCW(w);_.EOY(w);return w.shortsPipMode||w.watchPipMode?a.yield(_.CK(w.miniplayerEl,"yt-activate-pip-miniplayer"),6):a.yield(_.CK(w.miniplayerEl,"yt-activate-miniplayer",[q]),6);case 6:w.watchResponse&&UVm(w.getScreenLayer()),F1q(w),VuL(w,!0),setTimeout(function(){var n;(n=w.getPlayerElement())==
null||n.focusOnPlayer()},100),_.E_(a)}})};
By.prototype.updateMiniplayerData=function(e){this.miniplayerData=e;_.t$(this,{data:e})};
_.EOY=function(e){var z,C,w=((z=e.miniplayerData)==null?void 0:(C=z.miniplayerRenderer)==null?void 0:C.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";z=e.watchWhileMode||e.watchPipMode?w&&!_.lh().resolve(_.wE).isOnWatch():w;_.t$(e,{isDisabled:z});var K,G;C=_.r((K=e.miniplayerData)==null?void 0:(G=K.miniplayerRenderer)==null?void 0:G.minimizedEndpoint,_.CH);z&&C&&_.lh().resolve(_.qd).openSheet({openPopupActionCommand:{openPopupAction:C}},e.miniplayerEl)};
W1C=function(e){if(_.QB6()||e.isMiniplayerActive())return!0;var z=_.C3().watchPipActivation||_.C3().watchWhileActivation;return _.lh().resolve(_.wE).isOnWatch()&&!z?(_.AX(new _.uh("miniplayer activated on watch page")),!0):_.C3().watchWhileActivation?e.userDeactivatedWatchWhile||!!document.pictureInPictureElement||HF1():!1};
F1q=function(e){if(e.watchResponse&&!fzb(e)){var z,C=(z=e.watchResponse.playerResponse)==null?void 0:z.trackingParams;C&&(_.t$(e,{expandVe:_.mT(35989),closeVe:_.mT(34699),readyToResumeCloseVe:_.mT(131070),repositionVe:_.mT(226204),resizeVe:_.mT(226205)}),_.t$(e,{playerVe:_.v9(C)}))}};
RUC=function(e,z){return _.k(function(C){if(C.nextAddress==1)return z.preparePlayer(),C.yield(z.getPlayerPromise(),2);e.player=C.yieldResult;e.player&&(e.player.addEventListener("onPlayVideo",e.JSC$19193_onPlayerPlayVideo),e.player.addEventListener("onCloseMiniplayer",e.onPlayerCloseMiniplayer),e.player.addEventListener("onExpandMiniplayer",e.onPlayerExpandMiniplayer),e.player.addEventListener("onStateChange",e.onPlayerStateChange));_.E_(C)})};
By.prototype.JSC$19193_onPlayerPlayVideo=function(e){var z=e.sessionData&&"autonav"in e.sessionData,C;e.sessionData&&e.sessionData.itct&&(C=e.sessionData.itct);var w=e.watchEndpoint;z=w&&z?_.B7g(w,C):_.wk(e.videoId,e.listId||void 0,C);e.sessionData&&_.gN(_.r(z.commandMetadata,_.XV).url,e.sessionData);wDY(this,z)};
By.prototype.onPlayerExpandMiniplayer=function(){_.N8(this)};
By.prototype.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
By.prototype.onPlayerStateChange=function(){if(this.player){var e=this.player.getPlayerState(),z=e===1;_.eB().dispatch($ja(e));_.eB().dispatch(_.mjg(e));_.zj(this.miniplayerEl,"yt-miniplayer-play-state-changed",[z]);_.C3().isVideoPlaying=z;if(e===0){z=!_.fH.getInstance().isAutoplaySetExplicitly();var C,w,K,G,X,J,q=(C=this.watchResponse.response)==null?void 0:(w=C.contents)==null?void 0:(K=w.twoColumnWatchNextResults)==null?void 0:(G=K.autoplay)==null?void 0:(X=G.autoplay)==null?void 0:(J=X.autoplayExplicitChoiceDialogRenderer)==
null?void 0:J.confirmDialogRenderer;z&&q&&this.player.setAutonavState(1)}e===0&&this.watchWhileMode&&this.deactivate()}};
var L1L=function(e){var z=_.lh().resolve(_.Us);z.addEventListener("yt-navigate",_.lE(e,e.onPlaylistNavigate));z.addEventListener("yt-playlist-data-updated",_.lE(e,e.JSC$19193_onPlaylistDataUpdated));e.JSC$19193_onPlaylistDataUpdated()};
By.prototype.onPlaylistNavigate=function(e,z){var C=this,w,K,G,X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1){if(!_.r(z.endpoint,_.N$))return Q.return();_.C3().currentEndpoint=z.endpoint;_.zj(C.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.lh().resolve(_.wE).isOnWatch()&&(C.watchWhileMode||C.watchPipMode))return Q.return();e.stopPropagation();(G=(K=_.r((w=z.endpoint)==null?void 0:w.commandMetadata,_.XV))==null?void 0:K.url)&&z.tempData&&!_.de.isEmpty(z.tempData)&&_.gN(G,z.tempData);X={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};J=new m7h(function(){return C.getPlayerElement()},X,{layer:C.getScreenLayer()});
q=function(m){J.processChunk({endpoint:z.endpoint,data:m})};
SOZ(C);C.miniplayerFetchRequest=ueb(C,z.endpoint,q);_.Iv(Q,2);return Q.yield(C.miniplayerFetchRequest,4)}if(Q.nextAddress!=2)return T=Q.yieldResult,dUf(C,T),_.Yj(Q,0);_.O_(Q);_.E_(Q)})};
By.prototype.JSC$19193_onPlaylistDataUpdated=function(){var e=_.lh().resolve(_.Us).getPlaylistData();this.hasPlaylistData=!!e;_.t$(this,{externalPlaylistData:e||{}})};
By.prototype.close=function(e){if(this.isInitialized())if(e){if(!((this.watchWhileMode||this.watchPipMode)&&_.lh().resolve(_.wE).isOnWatch()||this.shortsPipMode)){var z;(z=this.getPlayerElement())==null||z.stop()}this.deactivate()}else _.Rl().closeMiniplayer(this.miniplayerEl)};
By.prototype.deactivate=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1){if(!z.isInitialized()||!z.active)return X.return();z.setActive(!1);SOZ(z);(C=!!e&&IzL(z,e))&&z.isSingleOptionSurveyActive&&_.eA(z.miniplayerEl,"yt-show-watch-page-survey",[z.isSingleOptionSurveyActive]);return X.yield(DUC(z),2)}if(X.nextAddress!=3){VuL(z,!1);z.isReadyToResume=!1;z.watchResponse=void 0;z.updateMiniplayerData(void 0);z.shortsPipMode&&(z.shortsPipMode=!1,_.eB().dispatch(oDX(z.shortsPipMode)),
yGb(z.pipController),(w=z.player)==null||w.setInternalSize(NaN,NaN));z.watchPipMode&&(z.watchPipMode=!1,yGb(z.pipController));(K=z.watchWhileMode)&&_.hUa(z,!1);z.removePlayerListeners();var J=_.lh().resolve(_.Us);J.removeEventListener("yt-navigate",_.lE(z,z.onPlaylistNavigate));J.removeEventListener("yt-playlist-data-updated",_.lE(z,z.JSC$19193_onPlaylistDataUpdated));_.C3().currentEndpoint=null;_.zj(z.miniplayerEl,"yt-miniplayer-endpoint-changed");z.playerElement=null;l9Y();return z.shortsPipMode||
z.watchPipMode?X.jumpTo(3):X.yield(_.CK(z.miniplayerEl,"yt-deactivate-miniplayer",[C,K]),3)}(G=z.player)==null||G.setInternalSize(NaN,NaN);z.player=null;_.E_(X)})};
var DUC=function(e){var z;return _.k(function(C){z=_.lh().resolve(_.wE);return e.shortsPipMode?C.yield(z.movePlayerToShorts(e.playerElement),0):C.yield(z.movePlayerToWatch(e.playerElement),0)})};
By.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19193_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
By.prototype.setActive=function(e){this.active=e;this.isSingleOptionSurveyActive?_.eA(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.eA(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.eB().dispatch(_.Yz({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.hUa=function(e,z){e.watchWhileMode=z;_.t$(e,{watchWhile:z})};
VuL=function(e,z){if(!fzb(e))if(e.shortsPipMode||e.watchPipMode){var C;(C=e.player)==null||C.setDocumentPictureInPicture(z)}else{var w;(w=e.player)==null||w.setMinimized(z)}};
fzb=function(e){return e.watchWhileMode&&_.M("kevlar_watch_while_counterfactual")};
_.N8=function(e){var z;return _.k(function(C){switch(C.nextAddress){case 1:if(!e.isInitialized())return C.return();_.Iv(C,2);return C.yield(e.miniplayerFetchRequest,4);case 4:_.Yj(C,3);break;case 2:_.O_(C);case 3:e.watchResponse&&e.miniplayerData&&e.miniplayerData.watchEndpoint?(z={url:e.watchResponse.url,endpoint:e.miniplayerData.watchEndpoint,data:e.watchResponse,miniplayer:!0},_.pi(e.miniplayerEl,"yt-navigate-cache",z)):e.miniplayerData&&e.miniplayerData.watchEndpoint&&_.pi(e.miniplayerEl,"yt-navigate",
{endpoint:e.miniplayerData.watchEndpoint}),_.E_(C)}})};
wDY=function(e,z,C){var w,K,G,X;return _.k(function(J){if(J.nextAddress==1){if(IzL(e,z))return J.return();_.C3().currentEndpoint=z;_.zj(e.miniplayerEl,"yt-miniplayer-endpoint-changed");_.zj(e.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.C3().isVideoPlaying=!1;w={clientParams:{miniplayer:!0,autoSaveToQueue:!C}};K=new m7h(function(){return e.getPlayerElement()},w,{layer:e.getScreenLayer(),
parentLayer:0},void 0,e.readyToResumeVe);G=function(q){var T,Q,m=Object.assign({},(T=q.playerResponse)==null?void 0:(Q=T.playerConfig)==null?void 0:Q.playbackStartConfig,{startPaused:!0}),a;C&&((a=q.playerResponse)==null?0:a.playerConfig)&&(q.playerResponse.playerConfig.playbackStartConfig=m);K.processChunk({endpoint:z,data:q})};
SOZ(e);e.miniplayerFetchRequest=ueb(e,z,G);_.Iv(J,2);return J.yield(e.miniplayerFetchRequest,4)}if(J.nextAddress!=2)return X=J.yieldResult,dUf(e,X),_.Yj(J,0);_.O_(J);_.E_(J)})};
By.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var SOZ=function(e){e.miniplayerFetchRequest&&(e.miniplayerFetchRequest.cancel&&e.miniplayerFetchRequest.cancel("Active request obsolete"),e.miniplayerFetchRequest=null)},ueb=function(e,z,C){var w,K=(w=_.r(z.commandMetadata,_.XV))==null?void 0:w.url,G;
w=!K||_.o3("disable_miniplayer_tempdata")?{}:(G=oms(K))!=null?G:{};return Zr(e.JSC$19193_pageRequestService,z,w,window.location.href,"watch",function(X,J){C(J)},function(X){return X!==e.miniplayerFetchRequest})},dUf=function(e,z){var C;
_.k(function(w){if(!z)return w.return();e.watchResponse=z;F1q(e);OCW(e);C=_.Ub7(z.response,z.playerResponse);if(e.isMiniplayerActive()){z.response&&(e.playerElement.watchNextData=z.response);var K=_.de.getValueByKeys.apply(_.de,[z].concat(_.s_(P_4)));_.de.getValueByKeys.apply(_.de,[z].concat(_.s_(EDa)))&&K&&_.lh().resolve(_.Us).setAutoplayRenderer(K);if(K)if(_.M("kevlar_is_pupi_enabled")){var G,X,J,q,T,Q=((G=z.response)==null?0:(X=G.playerOverlays)==null?0:(J=X.playerOverlayRenderer)==null?0:(q=J.autonavToggle)==
null?0:(T=q.autoplaySwitchButtonRenderer)==null?0:T.enabled)?2:1;_.fH.getInstance().setState(Q,!1,!1)}else G=mBg()?2:1,(Q=e.player)==null||Q.setAutonavState(G);e.updateMiniplayerData(C);_.EOY(e)}_.E_(w)})},OCW=function(e){var z,C,w=(z=e.watchResponse)==null?void 0:(C=z.playerResponse)==null?void 0:C.playabilityStatus,K;
z=w==null?void 0:(K=w.miniplayer)==null?void 0:K.miniplayerRenderer;(z==null?void 0:z.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&z.minimizedEndpoint&&_.wQ(e.miniplayerEl,[z.minimizedEndpoint]);_.t$(e,{playabilityStatus:w})};
By.prototype.openToast=function(e,z){_.t$(this,{toastData:{data:e,label:z}})};
_.t$=function(e,z){(0,e.miniplayerPropSignalMap[1])(z)};
By.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var e;return this.playerElement?this.playerElement:(e=_.XC(this.miniplayerEl).querySelector("#player-container"))==null?void 0:e.firstElementChild};
By.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Pkb=function(e,z){z=z===void 0?!1:z;var C,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1){if(!e.pictureInPictureSupported()||!qwo()&&!z)return q.return(!1);C=iCf(e);w=C.width;K=C.height;return q.yield(e.pipController.openWindow({width:w,height:K}),2)}G=q.yieldResult;X=e.pipController.getWindow();if(!X||!G)return q.return(!1);X.document.body.style.overflow="hidden";J=kPL(X);cGW(e.pipController,function(){Nmv(e);J()});
return q.return(!0)})},iCf=function(e){var z=_.C3().shortsPipActivation,C,w;
e=z?.5625:(w=(C=e.player)==null?void 0:C.getVideoAspectRatio())!=null?w:16/9;C=Math.min(window.innerWidth,window.innerHeight)/2;z=z?0:76;return e>1?new _.RM(C,z+C/e):new _.RM(C*e,z+C)},Nmv=function(e){var z;
_.k(function(C){z=_.lh().resolve(_.wE);return z.isOnWatch()&&e.watchPipMode||z.isOnShorts()&&e.shortsPipMode?C.yield(e.deactivate(),0):e.miniplayerToPipMode?C.yield(vOZ(e),0):e.watchPipMode?C.yield(_.N8(e),0):C.jumpTo(0)})};
By.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19193_watchPipEnabled||this.shortsPipEnabled)};
_.lB.Object.defineProperties(By.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
By[Qj]=[AGY,PXU,_.F9];var sCY="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(" "),
Bmo="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),tu3="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
gOb="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var jCY=function(e,z,C){_.Sn.call(this);this.store=e;this.panelController=z;this.pageContentExtractor=C;this.isInitialized=!1};
_.U(jCY,_.Sn);
jCY.prototype.init=function(e){var z=this;this.isInitialized||(this.isInitialized=!0,this.environment=e!=null?e:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.cF.currentPageSubTypeSelector(this.store.getState()),e=_.K3(this.store,_.cF.currentPageSubTypeSelector,function(C){a:if(_.yXW(z))switch(C){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var w=!0;break a;default:w=!1}else w=!1;w&&z.panelController.hidePanel({identifier:"PAai_companion"});
z.pageSubtype!==C&&(z.pageSubtype=C)}),this.addOnDisposeCallback(e))};
_.bJo=function(e,z){if(_.yXW(e))switch(z){case "watch":var C,w;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(C=_.n7())==null?void 0:(w=C.getVideoData())==null?void 0:w.video_id};case "search":var K,G,X;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(G=(K=e.pageContentExtractor)==null?void 0:EJW(K))!=null?G:[],entityId:(X=(new URLSearchParams(window.location.search)).get("search_query"))!=null?X:void 0};case "companion-canvas":var J,q;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(q=(J=
e.pageContentExtractor)==null?void 0:EJW(J))!=null?q:[]};default:var T,Q;e={videoIds:(Q=(T=e.pageContentExtractor)==null?void 0:EJW(T))!=null?Q:[]};return _.M("enable_ai_companion_default_page_context")?e:void 0}};
_.yXW=function(e){return e.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
jCY[Qj]=[_.Tr,_.kX,_.$B(FpY)];var cXb=_.f(function(e){return _.x("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.x(_.he,{text:function(){return e.data().text||""},
wrapCodeBlocks:e.shouldWrapCodeBlock}))},"nh");_.AX$=_.f(function(e){return _.x("yt-ai-companion-attachment-view-model",{el:_.ej(_.Dh(function(){return e.data().rendererContext})),
class:_.qT("ytAiCompanionAttachmentViewModelHost",e.className)},_.x("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.x(_.l,{cond:function(){return e.data().title},
then:function(z){return _.x("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return z().content}},_.x(_.U2,{text:z}))}}),_.x(_.l,{cond:function(){return _.yA(e.data().trailingTitleIcon)},
then:function(z){return _.x("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.x(_.Zf,{data:z,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.x(_.l,{cond:function(){return e.data().description},
then:function(z){return _.x("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.x(_.U2,{text:z}))}}),_.x(_.l,{cond:function(){return e.data().bottomItem},
then:function(z){return _.x("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.x(_.PF,{data:z},{tableViewModel:B0a}))}}))},"oh");_.ZCq=_.f(function(e){return _.x("yt-channel-attribution-view-model",{class:_.qT("ytChannelAttributionViewModelHost",e.className)},_.x("div",{class:"ytChannelAttributionViewModelUpper"},_.x(_.PF,{data:function(){return e.data().avatar}},{decoratedAvatarViewModel:_.Qh}),_.x("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.x(_.U2,{text:function(){return e.data().title}}))),_.x("div",{class:"ytChannelAttributionViewModelBottom"},_.x(_.U2,{text:function(){return e.data().subtitle}})))},"ph");var pn$=_.f(function(e){var z=_.b(_.II(!1,void 0,"MFRKRb")),C=z.next().value,w=z.next().value,K=function(){return e.data().activeRenderer},G=function(){return e.data().inactiveRenderer};
return _.x("yt-channel-disclosure-view-model",{"on:mouseleave":_.T9(function(){w(!1)}),
"on:mouseover":_.T9(function(){w(!0)}),
class:_.qT("ytChannelDisclosureViewModelHost",e.className)},_.x(_.l,{cond:function(){return C()},
then:function(){return _.x(_.PF,{data:K},{channelAttributionViewModel:_.ZCq})},
else:function(){return _.x(_.PF,{data:G},{decoratedAvatarViewModel:_.Qh})}}))},"qh");var e6a=null;var z6q={},CpW=(z6q.initialized={priority:10,callback:function(e){var z=_.lh();z.addProvider({provide:fIg,useClass:Zdf});z.addProvider({provide:_.ARW,useFactory:function(){return new SRg}});
z.addProvider({provide:Lu,useValue:_.j5("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});z.addProvider({provide:QME,useValue:5184E6});z.addProvider({provide:iJb,useValue:_.So()});z.addProvider({provide:TpL,useClass:PQ6});z.addProvider({provide:hr,useClass:hr});z.addProvider({provide:_.qK,useFactory:function(){return GSU.promise}});
z.addProvider({provide:_.bac,useFactory:function(){return _.Y$h.promise}});
z.addProvider({provide:dco,useValue:function(){var q;return((q=_.ox())==null?void 0:q.getPlayer())||null}});
var C={};z.addProvider((C.provide=_.lq,C.useFactory=function(q,T){return function(){return X41(q,T)}},C[Qj]=[Lu,
QME],C));C={};z.addProvider((C.provide=_.jN,C.useClass=hvf,C[Qj]=[Lu,QME],C));C={};z.addProvider((C.provide=_.PNh,C.useClass=Vna,C[Qj]=[_.jN],C));z.addProvider({provide:MA,useFactory:_.eB});z.addProvider({provide:$3,useFactory:_.eB});z.addProvider({provide:HjC,useFactory:_.eB});z.addProvider({provide:_.QfT,useFactory:function(){var q;return((q=_.ox())==null?void 0:q.getPlayer())||null}});
z.addProvider({provide:Yvv,useFactory:_.eB});z.addProvider({provide:_.Tr,useFactory:_.eB});z.addProvider({provide:p8,useValue:_.l7});z.addProvider({provide:yR3,useClass:zkh});z.addProvider({provide:S_l,useClass:fG5});z.addProvider({provide:C_,useClass:C_});z.addProvider({provide:ei,useClass:ei});z.addProvider({provide:cB,useClass:cB});z.addProvider({provide:z2,useClass:z2});z.addProvider({provide:Xf,useClass:Xf});z.addProvider({provide:B_,useClass:B_});z.addProvider({provide:Ln,useClass:Ln});z.addProvider({provide:_.p2,
useValue:Ta$});C={};z.addProvider((C.provide=CZY,C.useFactory=function(q){return q.watchEndpointMap||{}},C[Qj]=[_.p2],C));
C={};z.addProvider((C.provide=wof,C.useFactory=function(q){return q.reelWatchEndpointMap||{}},C[Qj]=[_.p2],C));
z.addProvider({provide:_.YV,useFactory:_.nm});z.addProvider({provide:$_,useFactory:_.Tj});C={};z.addProvider((C.provide=Jcg,C.useFactory=function(q){return function(T){var Q={automatedLogEventSource:5};Q=Q===void 0?{}:Q;var m,a,n=(a=_.r((m=T.endpoint)==null?void 0:m.commandMetadata,_.XV))==null?void 0:a.rootVe;if(n){var H,I;if(m=T.previousCsn||((I=_.r((H=T.endpoint)==null?void 0:H.commandMetadata,LjS))==null?void 0:I.parentCsn)){var L=L===void 0?{}:L;if(m!==_.Pr(L.layer)||n!==mV7(L.layer))Hr1(m,L.cttAuthInfo,
L.layer||0),l21(m,L.layer||0),H=L.layer||0,_.g1(Qr4(H===void 0?0:H),n);Q.parentCsn=m}T.endpoint&&m?eFS(q,T.endpoint,Q):_.jk(q,n,void 0,Q);var h;((h=T.response)==null?0:h.trackingParams)&&q.graftServerVe(T.response.trackingParams);var E;((E=T.playerResponse)==null?0:E.trackingParams)&&q.graftServerVe(T.playerResponse.trackingParams);var N;((N=T.reelWatchSequenceResponse)==null?0:N.trackingParams)&&q.graftServerVe(T.reelWatchSequenceResponse.trackingParams)}}},C[Qj]=[_.YV],C));
C={};z.addProvider((C.provide=vJb,C.useClass=U6b,C[Qj]=[p8,_.Tr],C));C={};z.addProvider((C.provide=Wy,C.useClass=Wy,C[Qj]=[_.qK,_.Tr],C));C={};z.addProvider((C.provide=Hy,C.useClass=Hy,C[Qj]=[$3,_.ms],C));z.addProvider({provide:_.fKa,useClass:pCL});C={};z.addProvider((C.provide=_.kX,C.useClass=d6f,C[Qj]=[_.fKa,_.$B(_.T$)],C));z.addProvider({provide:_.gz,useClass:uKC});C={};z.addProvider((C.provide=jW,C.useClass=jW,C[Qj]=[_.gz,_.qK,_.vJ,_.ms],C));z.addProvider({provide:_.qd,useClass:Py});z.addProvider({provide:_.EyZ,
useClass:V5Y});z.addProvider({provide:_.xX,useClass:Va$});_.M("enable_ai_companion")&&(z.addProvider({provide:_.T$,useClass:sIW}),z.addProvider({provide:_.Iuh,useClass:gna}),z.addProvider({provide:FpY,useClass:hoL}),z.addProvider({provide:la,useClass:la}),z.addProvider({provide:$h,useClass:$h}),z.addProvider({provide:PRX,useValue:pn$}),z.addProvider({provide:_.Res,useValue:_.AX$}),z.addProvider({provide:LeS,useValue:cXb}));_.M("enable_ai_chat_controller")&&z.addProvider({provide:_.T7,useClass:jCY});
C={};z.addProvider((C.provide=_.k_,C.useClass=ZjY,C[Qj]=[_.k_],C));z.addProvider({provide:_.AF,useClass:Lgq});z.addProvider({provide:IG,useClass:IG});z.addProvider({provide:Zt,useClass:Zt});z.addProvider({provide:Op,useClass:Op});C={};z.addProvider((C.provide=J3,C.useClass=J3,C[Qj]=[_.ms,_.vJ],C));z.addProvider({provide:NA,useClass:ijb});C={};z.addProvider((C.provide=t3,C.useClass=t3,C[Qj]=[_.qd,NA],C));C={};z.addProvider((C.provide=ua,C.useClass=ua,C[Qj]=[_.qd],C));C={};z.addProvider((C.provide=
r2,C.useClass=r2,C[Qj]=[MA,nu,_.ms],C));z.addProvider({provide:nu,useClass:J0b});_.M("web_enable_feedback_endpoint_resolver_batch_2")&&(C={},z.addProvider((C.provide=Up,C.useClass=Up,C[Qj]=[MA],C)),C={},z.addProvider((C.provide=HB,C.useClass=HB,C[Qj]=[nu],C)));C={};z.addProvider((C.provide=sp,C.useClass=sp,C[Qj]=[_.xX,NA],C));C={};z.addProvider((C.provide=fu,C.useClass=fu,C[Qj]=[_.xX],C));C={};z.addProvider((C.provide=BB,C.useClass=BB,C[Qj]=[_.vJ,_.kX],C));C={};z.addProvider((C.provide=ia,C.useClass=
ia,C[Qj]=[_.vJ,_.YV],C));z.addProvider({provide:rz,useClass:rz});C={};z.addProvider((C.provide=Tu,C.useClass=Tu,C[Qj]=[MA],C));z.addProvider({provide:f2,useClass:f2});z.addProvider({provide:VF,useClass:VF});C={};z.addProvider((C.provide=uQ,C.useClass=uQ,C[Qj]=[MA],C));C={};z.addProvider((C.provide=dz,C.useClass=dz,C[Qj]=[_.vJ,MA],C));C={};z.addProvider((C.provide=DD,C.useClass=DD,C[Qj]=[MA],C));C={};z.addProvider((C.provide=iQ,C.useClass=iQ,C[Qj]=[MA],C));C={};z.addProvider((C.provide=S$,C.useClass=
S$,C[Qj]=[_.kX],C));C={};z.addProvider((C.provide=We,C.useClass=We,C[Qj]=[_.YV],C));C={};z.addProvider((C.provide=EY,C.useClass=EY,C[Qj]=[aD],C));C={};z.addProvider((C.provide=Fd,C.useClass=Fd,C[Qj]=[aD],C));z.addProvider({provide:L2,useClass:L2});z.addProvider({provide:hN,useClass:hN});z.addProvider({provide:ID,useClass:ID});C={};z.addProvider((C.provide=g2,C.useClass=g2,C[Qj]=[_.kX,_.ms],C));z.addProvider({provide:RG,useClass:RG});C={};z.addProvider((C.provide=Dt,C.useClass=Dt,C[Qj]=[_.vJ,_.kX],
C));z.addProvider({provide:Ep,useClass:Ep});C={};z.addProvider((C.provide=qi,C.useClass=qi,C[Qj]=[MA,_.vJ,_.k_],C));C={};z.addProvider((C.provide=Xd,C.useClass=Xd,C[Qj]=[_.vJ,_.ms],C));z.addProvider({provide:rPs,useValue:$u4});z.addProvider({provide:heh,useValue:Cvg});z.addProvider({provide:JN,useClass:JN});C={};z.addProvider((C.provide=bQ,C.useClass=bQ,C[Qj]=[MA],C));C={};z.addProvider((C.provide=x_,C.useClass=x_,C[Qj]=[_.AF,_.ms],C));C={};z.addProvider((C.provide=vB,C.useClass=vB,C[Qj]=[_.ms],C));
C={};z.addProvider((C.provide=aG,C.useClass=aG,C[Qj]=[$3],C));z.addProvider({provide:Oe5,useFactory:_.BJ.getInstance});C={};z.addProvider((C.provide=h3,C.useClass=h3,C[Qj]=[Lu,Oe5,_.ms],C));z.addProvider({provide:WB,useClass:WB});z.addProvider({provide:kh,useClass:kh});z.addProvider({provide:xh,useClass:xh});z.addProvider({provide:_.qA,useClass:_.qA});z.addProvider({provide:Be,useClass:Be});C={};z.addProvider((C.provide=wz,C.useClass=wz,C[Qj]=[$3],C));C={};z.addProvider((C.provide=ye,C.useClass=ye,
C[Qj]=[_.ms],C));C={};z.addProvider((C.provide=K2,C.useClass=K2,C[Qj]=[_.ms],C));C={};z.addProvider((C.provide=oD,C.useClass=oD,C[Qj]=[_.ms],C));_.M("web_enable_prefetching_videos_on_home")&&(z.addProvider({provide:r7,useClass:r7}),z.addProvider({provide:f_,useClass:f_}));C={};z.addProvider((C.provide=sY,C.useClass=sY,C[Qj]=[_.ms],C));z.addProvider({provide:Qe,useClass:Qe});C={};z.addProvider((C.provide=He,C.useClass=He,C[Qj]=[_.vJ,_.ms],C));C={};z.addProvider((C.provide=m3,C.useClass=m3,C[Qj]=[_.ms],
C));C={};z.addProvider((C.provide=Sb,C.useClass=Sb,C[Qj]=[_.vJ,_.ms],C));z.addProvider({provide:AJC,useClass:AJC});z.addProvider({provide:eW,useClass:eW});C={};z.addProvider((C.provide=pu,C.useClass=pu,C[Qj]=[$3,_.ms],C));z.addProvider({provide:zu,useClass:zu});C={};z.addProvider((C.provide=ce,C.useClass=ce,C[Qj]=[$3,_.ms,_.vJ],C));C={};z.addProvider((C.provide=AN,C.useClass=AN,C[Qj]=[_.ms],C));C={};z.addProvider((C.provide=yF,C.useClass=yF,C[Qj]=[_.ms,_.vJ],C));C={};z.addProvider((C.provide=Mi,C.useClass=
Mi,C[Qj]=[_.ms,_.vJ],C));C={};z.addProvider((C.provide=Y_,C.useClass=Y_,C[Qj]=[_.qK],C));C={};z.addProvider((C.provide=Gu,C.useClass=Gu,C[Qj]=[_.qK],C));C={};z.addProvider((C.provide=C2,C.useClass=C2,C[Qj]=[_.qK],C));z.addProvider({provide:mP,useClass:mP});z.addProvider({provide:n2,useClass:n2});z.addProvider({provide:SW,useClass:SW});z.addProvider({provide:UY,useClass:UY});z.addProvider({provide:QF,useClass:QF});z.addProvider({provide:F3,useClass:F3});z.addProvider({provide:lQ,useClass:lQ});_.M("kevlar_enable_mss_lazy_load")&&
z.addProvider({provide:_.A8,useClass:O0C});z.addProvider({provide:_.Cn,useClass:L_});z.addProvider({provide:VQ,useFactory:function(){return _.G4.getInstance()}});
z.addProvider({provide:Maq,useFactory:Md1});z.addProvider({provide:aD,useFactory:function(){return _.kb.getInstance()}});
z.addProvider({provide:yaa,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});C={};z.addProvider((C.provide=_.UI,C.useClass=_.UI,C[Qj]=[_.qK,_.ms,_.YV,Maq,aD,VQ,yaa,p8],C));z.addProvider({provide:_.pB,useClass:JWY});z.addProvider({provide:_.a0q,useClass:mXL});C={};z.addProvider((C.provide=Ve,C.useClass=Ve,C[Qj]=[_.a0q],C));C={};z.addProvider((C.provide=_.vy,C.useFactory=function(q){return q.upliftCompletionResolver.promise},C[Qj]=[vJb],C));
C=_.cR("IS_SHELL_LOAD")?"aa":"eocs";var w=_.cR("IS_SHELL_LOAD")?3:2;_.Il().parkOrScheduleJob(function(){Wp$()},w,C);
_.Il().parkOrScheduleJob(function(){_.lh().resolve(Wy).start()},2,"eocs");
_.Il().parkOrScheduleJob(function(){rGZ()},2,"eocs");
_.Il().parkOrScheduleJob(function(){_.lh().resolve(Hy).start()},2,"eocs");
_.M("kevlar_debug_data_app_registration_ks")||xcg();z.addProvider({provide:_.UT,useValue:new u2l(e.root)});z.addProvider({provide:KZ,useValue:new mKs});z.addProvider({provide:_.gaZ,useValue:new Bwb(e.root)});z.addProvider({provide:_.UG,useValue:new tgY});z.addProvider({provide:_.cc,useClass:KT});z.addProvider({provide:AGY,useClass:RH});_.M("kevlar_network_sli_killswitch")||z.addProvider({provide:oBf,useValue:$f4});z.addProvider({provide:cRL,useFactory:PP8});C={};z.addProvider((C.provide=t8Y,C.useFactory=
Yi1,C[Qj]=[_.vy,MA,_.lq],C));C={};z.addProvider((C.provide=Be5,C.useClass=ZD,C[Qj]=[t8Y],C));z.addProvider({provide:v2b,useClass:MnY});z.addProvider({provide:DXZ,useClass:NeZ});C=[].concat(_.s_(Aq));C.push(_.dG);C.push(bTU);_.M("enable_share_panel_navigation_logging_fix_on_web")&&C.push(_.Uea);z.addProvider({provide:O_L,useValue:C});z.addProvider({provide:Vpm,useClass:dXW});z.addProvider({provide:JJ3,useClass:GNY});C={};z.addProvider((C.provide=hb1,C.useClass=Kg$,C[Qj]=[$3],C));_.c5.addLowPriorityJob(function(){Vmo()});
C={};z.addProvider((C.provide=hqs,C.useFactory=function(q){return function(T){var Q,m=(Q=_.r(T.commandMetadata,_.XV))==null?void 0:Q.url;if(!m)throw new _.uh("No URL for PBJ Command",T);m=prh(m,{pbj:"1"});Q=aEE(m,{})||{};Q=Object.assign({},Q,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.j5("STS").toString()});T=_.L0({command:JSON.stringify(T),session_token:_.j5("XSRF_TOKEN")});return q.fetch(m,{method:"POST",headers:Q,body:T})}},C[Qj]=[JJ3],C));
z.addProvider({provide:Ch3,useFactory:function(){var q={};return q.CSI=Ldg(),q.ECATCHER=RYE(),q}});
z.addProvider({provide:U97,useClass:wiZ});C=[];C.push(z.resolve(DXZ));w={};w=(w.client_location=_.BJ.getInstance(),w.consistency=_.Q7N(),w.entities=z.resolve(S_l),w.response_received_commands=z.resolve(Vpm),w.store=z.resolve(_.PNh),w.tokens=z.resolve(DXZ),w.service_params=z.resolve(U97),w);if(_.M("web_shorts_prefetch_service_enabled")){var K=new fHL(z.resolve(_.jN));w.shorts_prefetch=K}w.adblock_detection=z.resolve(hb1);z.addProvider({provide:_.bk,useClass:_.bk});K=z.resolve(_.p2);var G=[];_.M("PremiumClientSharedConfig__enable_att_context_processor")&&
(z.addProvider({provide:Mcb,useClass:m1E}),G.push(z.resolve(Mcb)));if(_.M("owl_pl_await")){var X={};z.addProvider((X.provide=idv,X.useFactory=function(q){return new dmY(q)},X[Qj]=[_.bk],X));
G.push(z.resolve(idv))}hza(K,z.resolve(JJ3),z.resolve(yR3),w,z.resolve(_.jN),C,G,z.resolve(Be5),z.resolve(v2b));z.addProvider({provide:_.vJ,useValue:_.tq.instance});_.M("start_client_gcf")&&z.addProvider({provide:ik,useValue:ldX()});z.addProvider({provide:Ro5,useFactory:function(){return new Ro5(_.lh().resolve(_.bk),_.kb.getInstance())}});
_.Il().parkOrScheduleJob(function(){Lpo()},1,"eocs");
C={};z.addProvider((C.provide=IH,C.useClass=IH,C[Qj]=[_.lq,_.vJ],C));z.addProvider({provide:_.oi$,useFactory:_.Vc.getInstance});_.Il().parkOrScheduleJob(function(){_.lh().resolve(IH).refresh()},0,"eocs");
z.addProvider({provide:_.F9,useClass:JAq});_.M("kevlar_signal_collection_killswitch")||(C={},z.addProvider((C.provide=x6q,C.useClass=x6q,C[Qj]=[Lu,$_],C)),_.Il().parkOrScheduleJob(function(){_.lh().resolve(x6q).record()},1,"eocs"));
_.M("web_debug_handler_registration_killswitch")||_.Il().parkOrScheduleJob(function(){kW8("DOWNLOAD_PES",nx5);_.M("offline_client_state_export_ks")||kW8("OFFLINE_CLIENT_STATE",QAh)},0,"eocs");
_.M("kevlar_prevent_polymer_dynamic_font_load")&&_.Il().parkOrScheduleJob(function(){var q=[_.nJ(a6q),_.nJ(nBb)];q=_.b(q);for(var T=q.next();!T.done;T=q.next()){T=T.value;var Q=document.createElement("link");_.T6(Q,T,"stylesheet");document.head.appendChild(Q)}},1,"eocs");
C=e.injector.resolve(_.vJ);_.nof.instance=new _.nof(C);yDo(k6q(new aG3(C)));C={};e.injector.addProvider((C.provide=m$,C.useFactory=function(q){(q=q==null?void 0:q.getCurrentPage())?q=q.visibilityObserver:(e6a||(e6a=mNL()),q=e6a);return q},C[Qj]=[_.$B(_.wE)],C.skipCache=!0,C));
z.addProvider({provide:_.gh,useClass:By});z.addProvider({provide:wi,useClass:nec});e.injector.addProvider({provide:$io,useValue:SCE});z.addProvider({provide:o8o,useValue:wZb});z.addProvider({provide:qhc,useValue:XNk});z.addProvider({provide:_.jQ,useValue:Mmm});e=z.addProvider;XR5||(XR5=new bdo);e.call(z,{provide:_.h$,useValue:XR5});z.addProvider({provide:_.c9,useValue:_.j5("HTML_DIR")==="rtl"?"rtl":"ltr"});z.addProvider({provide:jvW,useClass:oyY});z.addProvider({provide:_.xp,useClass:Hd$});_.lh().addProvider({provide:cnZ,
useValue:_.M("enable_web_delhi_icons")?Bmo.concat(gOb):sCY.concat(tu3)});z.addProvider({provide:_.FMq,useClass:_.FMq});z.addProvider({provide:_.l6b,useValue:new $v3});z.addProvider({provide:f3q,useClass:FgL});z.addProvider({provide:ve,useClass:ve});z.addProvider({provide:Pe,useClass:Pe});e={};z.addProvider((e.provide=j$,e.useClass=j$,e[Qj]=[_.vJ,_.kX],e));z.addProvider({provide:tN,useClass:tN});z.addProvider({provide:zj3,useClass:zGl});z.addProvider({provide:OY,useClass:OY});z.addProvider({provide:QqC,
useValue:CPU});z.addProvider({provide:_.Vl,useClass:Vc3});_.M("enable_payments_purchase_manager")&&z.addProvider({provide:voo,useClass:rnq});z.addProvider({provide:XV3,useFactory:function(){return function(q){return _.mvo(q)}}});
z.addProvider({provide:_.V85,useClass:f0W});e={};z.addProvider((e.provide=Ni,e.useClass=Ni,e[Qj]=[_.V85],e));z.addProvider({provide:RD,useClass:RD});z.addProvider({provide:cko,useValue:W2q});z.addProvider({provide:Dsa,useValue:_.l_l});z.addProvider({provide:P8E,useClass:eG$});z.addProvider({provide:JR3,useValue:nj3});e={};z.addProvider((e.provide=kR5,e.useClass=qgq,e[Qj]=[JR3],e));e={};z.addProvider((e.provide=_.b_,e.useClass=HpC,e[Qj]=[kR5],e));e={};z.addProvider((e.provide=_.EI,e.useClass=giv,e[Qj]=
[_.Tr,_.cc],e));if(_.M("web_explore_hub_on_hover")||_.M("web_client_explore_hub_on_hover"))e={},z.addProvider((e.provide=PB,e.useClass=PB,e[Qj]=[_.vJ,VQ],e));if(_.M("web_enable_renderer_logger")){var J=new Z7h;JhL(function(){J.abort()});
z.addProvider({provide:u_o,useValue:new $6Y(J.signal)})}z.addProvider({provide:lpL,useValue:VXN});z.addProvider({provide:a1h,useClass:Svl});_.M("web_use_flow_state_manager")&&(z.addProvider({provide:_.z7,useClass:ugW}),e={},z.addProvider((e.provide=Cu,e.useClass=Cu,e[Qj]=[_.z7],e)),e={},z.addProvider((e.provide=w2,e.useClass=w2,e[Qj]=[_.Tr,_.z7],e)),e={},z.addProvider((e.provide=Ku,e.useClass=Ku,e[Qj]=[_.Tr,_.z7,_.ms],e)),e={},z.addProvider((e.provide=oG,e.useClass=oG,e[Qj]=[_.vJ,_.ms],e)),e={},z.addProvider((e.provide=
G7,e.useClass=G7,e[Qj]=[_.z7,_.ms],e)))}},z6q);var wQf={},K$o=(wQf.initialized={priority:10,callback:function(){if(!KsL){Ifh();Ofo("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.vi(_.xk(Ofo,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.M("log_heartbeat_with_lifecycles")){var e={};EZ.instance||(EZ.instance=new EZ);EZ.instance.install((e.document_visible={callback:E4g,priority:10},e.document_hidden={callback:E4g,priority:10},e))}else _.lk(document,"visibilitychange",E4g);KsL=!0}(e=_.Pr())&&e!=="UNDEFINED_CSN"&&TD8(e)}},wQf);var oI$={},G45=(oI$.initialized={callback:function(e){var z=_.mT(232091),C=e.injector.resolve(_.YV);_.yQ(C,z);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?x91()&&_.Ai(C,z):(e=e.injector.resolve(XV3)("refresh_detector"))&&(e.get("first_tab_load")?_.Ai(C,z):e.set("first_tab_load","1"))}},oI$);var Yc3={},bZq=(Yc3.initialized={priority:10,callback:Mpm},Yc3);var XQ$={},JHf=(XQ$.initialized={priority:0,callback:function(){var e=new xEU,z="other";_.U7?z="chrome":_.HW?z="firefox":_.p0?z="safari":xj&&(z="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(C){e.increment(_.Vj(),C,z)}).catch(function(){e.increment(_.Vj(),!1,z)}):e.increment(_.Vj(),!1,z)}},XQ$);var k4Z={},qcE=(k4Z.rendering={priority:8,callback:rsE},k4Z);var xDl={},TKq=(xDl.rendering={priority:10,callback:Sw4},xDl.rendered={callback:fx4},xDl),$D3={},lVq=($D3.rendering={callback:Sw4},$D3.rendered={callback:fx4},$D3);var QO$=!1,mDY={},aVW=(mDY.initialized={priority:10,callback:function(){QO$||(ZG1({didPatch:function(e){e.el&&Bxh(e.el,e.props)},
didUnmount:function(e){Nxg(e.el)}}),QO$=!0)}},mDY);var nIE=/^\/shorts\/?$/;_.g1("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:{}}}}}}});_.M("kevlar_use_common_module_manager_ks")?(_.CMg(new ujg),qAo()):d9o();
(function(){var e=document.querySelector("ytd-app");if(!e)throw Error("Yj");e=new Ff({root:e,injector:_.lh()});e.install(K$o);var z={};e.install((z.initialized={priority:10,callback:XKN},z));_.M("wp_lat_b")&&(z={},e.install((z.initialized={priority:10,callback:function(){v4g()}},z)));
z={};e.install((z.rendered={priority:0,callback:G_L},z));z={};e.install((z.rendered={priority:0,callback:function(){_.c5.addLowPriorityJob(function(){_.Gmo>1&&(pp7(),Kvg())},4E4)}},z));
e.install(gBf);e.install(G45);e.install(aVW);CV1();e.install(w55);e.install(DvC);e.install(B3$);e.install(Gta);e.install(ktE);e.install(z_v);e.install(CpW);_.M("kevlar_enable_mss_lazy_load")&&e.install(bZq);e.install(N3b);e.install(JHf);if(!_.cR("IS_SHELL_LOAD")||_.M("kevlar_fetch_initial_data_promise_client")||_.M("sw_nav_preload_pbj")){var C=_.Pi(window.location.href);z=C&&C==="/watch";C=C&&C.match(nIE);z?e.install(lVq):C?e.install(qcE):e.install(TKq)}else e.install(S33);e.install(yJ5);_.M("web_enable_prefetching_videos_on_home")&&
e.install(YRq);_.M("start_client_gcf")&&e.install(zy3);e.install(zoE);(new Tao).increment("INSTALLED");e.install(ojq);e.install(FsY);e.transition("initialized");Qqs();Y1h()})();
_.qp=[[["bXI2eTZ3bTM5a2luZCNxd2Y=","a2I2Y3ZhbHVlI2gzcGlrY3R1"],"SU5EX1NUQVJUIzRiZTg1ZjZsNWMxNUFEX1BMQUNFTUVOVF9L"]];_.k5=["b2hudXVxZm4waWdsb2JhbENhbGxiYWNrcyM3cg==","YWxpdHlEZXRlY3RlZCN2ZjF0aDRiMjlxNjZvbkFibm9ybQ==","eTJnY3NsbmdjZm9uQWRTa2lwIzZ2","d19wbGF5ZXJfcmVzcG9uc2UjMzY4YXpkN21jb3B0cmE=","cyM5aHQyenFyMnlhb2NhZFNsb3Q="];_.Os="b2hudXVxZm4waWdsb2JhbENhbGxiYWNrcyM3cg== YWxpdHlEZXRlY3RlZCN2ZjF0aDRiMjlxNjZvbkFibm9ybQ== eTJnY3NsbmdjZm9uQWRTa2lwIzZ2 d19wbGF5ZXJfcmVzcG9uc2UjMzY4YXpkN21jb3B0cmE= cGxheWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3MjbDcxcmQ0bnl2bXg5d2ViXw== ZnN1cXI4aTltOWFiX3NhX2VmI2t3 cyM5aHQyenFyMnlhb2NhZFNsb3Q=".split(" ");
_._ModuleManager_initialize=function(e,z){if(!_.NG){if(!_.sv)return;_.CMg(_.sv())}_.NG.setAllModuleInfoString(e,z)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/sya:3/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/syd:1/sye:a,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/NSzT5:b/iuT5Oc',['sy4','sy3','sy1','sy8','syd','sya','syk','syj','syg','sye','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syb','syf','syo','sy9','sy5','iuT5Oc','NSzT5','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var fVW,Scv;_.F$$=function(e){return!!e.getOptions("captions")};
_.VY$=function(e){return(e=e.getOption("captions","track"))?!!e.displayName:!1};
_.A$=function(e,z){_.FZ(z,e,function(){return fVW[z]},function(C){fVW[z]=C;
if(!_.M("mweb_player_ve_show_ks")){var w=_.Pr(0);w&&C&&_.s6(w,C)}})};
_.ZU=function(e){(e=fVW[e])&&_.Ai(_.nm(),e)};
fVW={};var uLZ;/*

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
*/
_.hK({_template:function(){if(uLZ!==void 0)return uLZ;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Scv===void 0&&(Scv=document.createElement("template"));var w=Scv;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return uLZ=e},
is:"tp-yt-paper-checkbox",behaviors:[_.QiL],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.T0(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),z="px",C=e.match(/[A-Za-z]+$/);C!==null&&(z=C[0]);e=parseFloat(e);C=8/3*e;z==="px"&&(C=Math.floor(C),C%2!==e%2&&C++);this.updateStyles({"--paper-checkbox-ink-size":C+
z})}})},
_computeCheckboxClass:function(e,z){var C="";e&&(C+="checked ");z&&(C+="invalid");return C},
_computeCheckmarkClass:function(e){return e?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.$3o._createRipple.call(this)}});var dDL=new _.nN("radioButtonSurveyOptionRenderer"),DDl=new _.nN("checkboxSurveyOptionRenderer");var iZ$;var NK$;var sOW=0,p_=function(){var e=_.V.call(this)||this;e.selected=!1;e.isOverlay=!1;e.inputId="toggle-option-"+sOW;sOW++;return e};
_.U(p_,_.V);p_.prototype.onTap=function(){_.pi(this.hostElement,"ytd-toggle-option-clicked")};
_.d([_.F(),_.B("design:type",String)],p_.prototype,"label",void 0);_.d([_.F(),_.B("design:type",String)],p_.prototype,"inputId",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],p_.prototype,"selected",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],p_.prototype,"isOverlay",void 0);_.d([_.SL({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.B("design:paramtypes",[])],p_);
_.u(p_,"ytd-toggle-option-renderer",function(){if(NK$!==void 0)return NK$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return NK$=e},{mode:1});var eK=function(){var e=_.V.apply(this,arguments)||this;e.isToggleOption=!1;e.isOverlay=!1;return e};
_.U(eK,_.V);eK.prototype.onTap=function(e){e.preventDefault();this.data&&(e=!this.data.checked,this.set("data.checked",e),_.pi(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:e,value:this.data.value}))};
_.lB.Object.defineProperties(eK.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
eK.prototype.onTap=eK.prototype.onTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eK.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],eK.prototype,"isToggleOption",void 0);_.d([_.F(),_.B("design:type",Object)],eK.prototype,"isOverlay",void 0);_.d([_.P("data.responseText"),_.B("design:type",String),_.B("design:paramtypes",[])],eK.prototype,"label",null);
_.d([_.Qi("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],eK.prototype,"onTap",null);_.d([_.SL({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],eK);
_.u(eK,"ytd-checkbox-survey-option-renderer",function(){if(iZ$!==void 0)return iZ$;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return iZ$=e},{mode:1});var BKb;var tYC;var zW=function(){var e=_.V.apply(this,arguments)||this;e.checked=!1;e.isToggleOption=!1;return e};
_.U(zW,_.V);zW.prototype.onTap=function(){this.data&&(this.checked?_.eA(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.eA(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
zW.prototype.onTap=zW.prototype.onTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zW.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],zW.prototype,"checked",void 0);_.d([_.F(),_.B("design:type",Object)],zW.prototype,"isToggleOption",void 0);_.d([_.Qi("ytd-toggle-option-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],zW.prototype,"onTap",null);
_.d([_.SL({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],zW);
_.u(zW,"ytd-radio-button-survey-option-renderer",function(){if(tYC!==void 0)return tYC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return tYC=e},{mode:1});var CX=function(){var e=_.V.apply(this,arguments)||this;e.disableAnimation=!1;e.isToggleOption=!0;e.followUpSurveyCommand=null;e.selectedRatingEndpoint=null;e.isSlimlineSurveyFollowUp=!1;e.isShortsStyle=!1;e.styleOverrideAttribute=!0;e.isDarkMode=!1;e.isSubmitted=!1;e.roundedContainer=!0;e.improveShortsResponseRate=_.M("web_improve_shorts_response_rate");e.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 e};
_.U(CX,_.V);_.Y=CX.prototype;
_.Y.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"}}}}};
_.Y.attached=function(){var e=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(C){var w;if((w=C[0])!=null&&w.isIntersecting){_.mO().reportShown(e.hostElement);var K;(K=e.intersectionObserver)==null||K.unobserve(e.hostElement)}},{rootMargin:"0px",
threshold:.6});var z;(z=this.intersectionObserver)==null||z.observe(this.hostElement)};
_.Y.onDarkModeToggledAction=function(e){this.isDarkMode=e};
_.Y.dataChanged=function(){var e;if(((e=this.data)==null?void 0:e.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var z;((z=this.data)==null?void 0:z.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var C,w,K,G;this.darkColorPalette=(C=this.data)==null?void 0:(w=C.inlineContent)==null?void 0:(K=w.compactVideoRenderer)==null?void 0:(G=K.thumbnail)==null?
void 0:G.darkColorPalette;var X,J,q,T;this.lightColorPalette=(X=this.data)==null?void 0:(J=X.inlineContent)==null?void 0:(q=J.compactVideoRenderer)==null?void 0:(T=q.thumbnail)==null?void 0:T.lightColorPalette;var Q,m;if(((Q=this.data)==null?0:(m=Q.inlineContent)==null?0:m.compactVideoRenderer)&&this.isShortsStyle){var a,n,H,I;e=_.G9((a=this.data)==null?void 0:(n=a.inlineContent)==null?void 0:(H=n.compactVideoRenderer)==null?void 0:(I=H.thumbnail)==null?void 0:I.thumbnails);_.T8(this.hostElement,
{"--yt-background-url":"url("+e+")"})}};
_.Y.handleRequestCompletion=function(){this.hostElement.hidden&&_.pi(this.hostElement,"yt-dismissible-item-dismissed")};
_.Y.onPopupClosed=function(e){var z;((z=e.detail)==null?void 0:z.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.eA(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.Y.handleInlineSurveyRatingSelect=function(e,z){var C=this;this.selectedRatingEndpoint=e;this.followUpSurveyCommand=z;this.expanded=!!e;this.getOptionRenderers().forEach(function(w,K){C.notifyPath("followUpSurveyCommand.followUpOptions."+K+".checkboxSurveyOptionRenderer.checked");C.set("followUpSurveyCommand.followUpOptions."+K+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),e=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.eA(this.hostElement,"yt-reel-non-video-content-dismissal-command",[e]))};
_.Y.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.eA(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var e,z=(e=this.data)==null?void 0:e.dismissalEndpoint;z&&this.ytComponentBehavior.resolveCommand(z)}};
_.Y.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.eA(this.hostElement,"yt-close-popup-action"))};
_.Y.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var e=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{e=this.getOptionRenderers().filter(function(w){return w.checked});
if(e.length===0)return;e=e.map(function(w){return w.responseEndpoint})}var z=[];
e.forEach(function(w,K){K!==0&&(w=_.r(w,_.iH))&&w.feedbackToken&&z.push(w.feedbackToken)});
if(e=e[0]){var C={};z.length>0&&(C.extra_feedback_tokens=z);this.ytComponentBehavior.resolveCommand(e,{form:C})}}};
_.Y.getOptionRenderers=function(){var e=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(z){e.isSingleSelect=!!_.r(z,dDL);return e.isSingleSelect?_.r(z,dDL):_.r(z,DDl)}):[]};
_.Y.handleInlineSurveyOptionSelect=function(e){e=this.optionSelector.indexOf(e);e!==-1&&this.optionSelector.selectIndex(e)};
_.Y.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.Y.maybeGetBackgroundColor=function(e){return this.isDarkMode?e.section2Color:e.section3Color};
_.Y.colorPaletteChanged=function(){var e=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;e=e&&this.maybeGetBackgroundColor(e);this.dismissibleEl.style.backgroundColor=!e||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.EG(e)};
_.lB.Object.defineProperties(CX.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
CX.prototype.colorPaletteChanged=CX.prototype.colorPaletteChanged;CX.prototype.onPopupClosed=CX.prototype.onPopupClosed;CX.prototype.handleRequestCompletion=CX.prototype.handleRequestCompletion;CX.prototype.dataChanged=CX.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],CX.prototype,"actionHandlerBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],CX.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],CX.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.nP("#follow-up-survey-options"),_.B("design:type",Object)],CX.prototype,"optionSelector",void 0);_.d([_.F(),_.B("design:type",Object)],CX.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],CX.prototype,"disableAnimation",void 0);_.d([_.F(),_.B("design:type",Object)],CX.prototype,"isToggleOption",void 0);_.d([_.F(),_.B("design:type",Object)],CX.prototype,"followUpSurveyCommand",void 0);_.d([_.F(),_.B("design:type",Object)],CX.prototype,"selectedRatingEndpoint",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],CX.prototype,"expanded",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CX.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CX.prototype,"isShortsStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CX.prototype,"styleOverrideAttribute",void 0);_.d([_.F(),_.B("design:type",Boolean)],CX.prototype,"isSingleSelect",void 0);_.d([_.F(),_.B("design:type",Object)],CX.prototype,"isDarkMode",void 0);
_.d([_.F(),_.B("design:type",Object)],CX.prototype,"lightColorPalette",void 0);_.d([_.F(),_.B("design:type",Object)],CX.prototype,"darkColorPalette",void 0);_.d([_.P("selectedRatingEndpoint","isShortsStyle"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],CX.prototype,"isOptionSelected",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CX.prototype,"roundedContainer",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CX.prototype,"improveShortsResponseRate",void 0);_.d([_.nP("#dismissible"),_.B("design:type",HTMLElement)],CX.prototype,"dismissibleEl",void 0);_.d([_.nP("#dismiss-button yt-icon-button"),_.B("design:type",HTMLElement)],CX.prototype,"dismissButtonEl",void 0);_.d([_.nP("#inline-survey-header yt-icon-button"),_.B("design:type",HTMLElement)],CX.prototype,"inlineHeaderDismissButtonEl",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CX.prototype,"dataChanged",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CX.prototype,"handleRequestCompletion",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],CX.prototype,"onPopupClosed",null);
_.d([_.mi("darkColorPalette","lightColorPalette","isDarkMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CX.prototype,"colorPaletteChanged",null);_.d([_.SL({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],CX);
_.u(CX,"ytd-inline-survey-renderer",function(){if(BKb!==void 0)return BKb;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return BKb=e},{mode:1});var gIZ=["en-CA","en","es-MX","fr-CA"];_.jOC=_.f(function(e){var z=_.eQ(e,{isOverlay:!1,isModern:!1}),C=z.captionIconType,w=z.onClick;e=z.ariaLabel;var K=z.ariaPressed,G=z.isOverlay,X=z.isModern;z=_.kI("button",function(T){_.A$(T,127299)});
var J=_.T9(function(T){_.ZU(127299);w==null||w(T);return!1}),q={};
return _.x("ytm-closed-captioning-button",{class:_.qT("ytmClosedCaptioningButtonHost",(q.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return C()===-1&&G()},q.ytmClosedCaptioningButtonIconDisabled=function(){return C()===-1&&!G()},q))},_.x("button",{el:z,
class:"ytmClosedCaptioningButtonButton",title:e,"aria-label":e,"aria-pressed":K,"on:click":J},_.x(_.mB,{icon:function(){var T="",Q=X();var m=Q?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";Q=Q?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var a=_.Tj().get("hl");m=!a||gIZ.includes(a)?m:Q;Q=C();switch(Q){case -1:case 0:T=m;break;case 1:T=m+"_FILLED";break;default:_.ca(Q)}return T}})))},"rh");
_.jOC.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.g7=function(e,z,C,w,K){var G={};z&&(G[z]=C);w?G.errorType=w:K&&(G.errorReason=K);_.gm(e,G);_.ju()};
_.jb=function(e){var z=_.Il();return _.DjL(z,e,1)};
_.hK({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 e=this.query;e&&(this.full||e[0]==="("||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},
queryHandler:function(e){this._setQueryMatches(e.matches)}});var W$o;var Pp3;var R6$=function(){};
_.Y=R6$.prototype;_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._focusedChanged=function(){};
_.Y._createRipple=function(){};
_.Y.registered=function(){};
_.Y._invalidChanged=function(){};
_.Y.hasValidator=function(){};
_.Y.validate=function(){};
_.Y._getValidity=function(){};
_.Y._requiredChanged=function(){};
_.Y._valueChanged=function(){};
_.Y._checkedChanged=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
R6$=_.hK({is:"tp-yt-paper-radio-button",_template:function(){if(Pp3!==void 0)return Pp3;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;W$o===void 0&&(W$o=document.createElement("template"));var w=W$o;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return Pp3=e},
behaviors:[_.QiL],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(){_.T0(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var e=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),z=Math.floor(3*e);z%2!==e%2&&z++;this.updateStyles({"--paper-radio-button-ink-size":z+"px"})}})}});var L$Z;var h6$;_.hK({_template:function(){if(h6$!==void 0)return h6$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;L$Z===void 0&&(L$Z=document.createElement("template"));var w=L$Z;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return h6$=e},
is:"tp-yt-paper-radio-group",behaviors:[_.JdX],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(e){var z=this._valueToItem(e);if(!z||!z.hasAttribute("disabled")){if(this.selected){z=this._valueToItem(this.selected);if(this.selected==e)if(this.allowEmptySelection)e="";else{z&&(z.checked=!0);return}z&&
(z.checked=!1)}_.jL.select.apply(this,[e]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(e){this._focusPrevious();e.preventDefault();this._activateFocusedItem()},
_onDownKey:function(e){this._focusNext();e.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(e){_.XWa._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(e){_.XWa._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.jL._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.KA._resetTabindices.apply(this,arguments);this.items.forEach(function(e){e.removeAttribute("aria-selected")},this)}});var OZo;_.hq("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var yc=function(){return _.V.apply(this,arguments)||this};
_.U(yc,_.V);_.Y=yc.prototype;_.Y.computeHasPrimaryIcon=function(e){return!(!e.icon&&!e.thumbnail)};
_.Y.computeHasSecondary=function(e){return!(!e.secondaryIcon&&!e.secondaryNotificationText)};
_.Y.computeHideSecondaryString=function(e){return!_.M("disable_hide_empty_secondary_string")&&!e.secondaryNotificationText};
_.Y.computeCompactLinkStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeHasFitHeight=function(e){return e==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.Y.isActiveEndpoint=function(e){return(e=this.get("commandMetadata.webCommandMetadata.url",e))?_.Pi(window.location.href)!=="/account_transfer_channel"&&_.Pi(window.location.href)!=="/gaia_link"&&_.Pi(window.location.href)!=="/channel_switcher"||e!=="/account"?_.Pi(window.location.href)===e:!0:!1};
_.Y.onTap=function(){var e;((e=this.data)==null?0:e.serviceEndpoint)&&_.wQ(this.hostElement,[this.data.serviceEndpoint])};
yc.prototype.onTap=yc.prototype.onTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yc.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.B("design:type",Boolean)],yc.prototype,"active",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.B("design:type",String)],yc.prototype,"compactLinkStyle",void 0);
_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",Object)],yc.prototype,"icon",void 0);_.d([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",Object)],yc.prototype,"secondaryIcon",void 0);_.d([_.F({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],yc.prototype,"hasSecondary",void 0);_.d([_.F({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],yc.prototype,"hideSecondaryString",void 0);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yc.prototype,"onTap",null);_.d([_.SL({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],yc);
_.u(yc,"ytd-compact-link-renderer",function(){if(OZo!==void 0)return OZo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return OZo=e},{mode:1});var EIq;_.hq("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var cy=function(){var e=_.V.apply(this,arguments)||this;e.role="link";e.tabindex="0";e.actionMap=_.M("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 e};
_.U(cy,_.V);_.Y=cy.prototype;_.Y.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.i6()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.Y.getCurrentTheme=function(){return _.Np()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.i6()};
_.Y.onThemeSelected=function(e,z){var C=e||z?e:_.Dc(),w=(C&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!C&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Tb5(_.Pi(window.location.href));_.$k(0,165,e);_.$k(0,174,z);this.prefs.save();w&&_.eA(this.hostElement,"yt-dark-mode-toggled-action",[C]);_.eA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.onTap=function(){this.data.serviceEndpoint&&_.wQ(this.hostElement,[this.data.serviceEndpoint])};
_.Y.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Y.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Y.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
cy.prototype.onTap=cy.prototype.onTap;cy.prototype.dataChanged=cy.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],cy.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.U4),_.B("design:type",Object)],cy.prototype,"paperItemBehaviors",void 0);_.d([_.F(),_.B("design:type",Object)],cy.prototype,"data",void 0);_.d([_.F({value:function(){return _.Tj()}}),
_.B("design:type",_.HE)],cy.prototype,"prefs",void 0);_.d([_.F(),_.B("design:type",Object)],cy.prototype,"label",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cy.prototype,"role",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cy.prototype,"tabindex",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cy.prototype,"dataChanged",null);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cy.prototype,"onTap",null);_.d([_.SL({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],cy);
_.Yp()(cy,"ytd-toggle-theme-compact-link-renderer",function(){if(EIq===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);EIq=e}e=EIq;return e},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var yHf,cHo,pQo,e$$,z$5,CB5,wAa,KAa,oWZ,q8b,oa,k0o,Y8Z,J2q,XAW,bGb,G0o,xxo,TMb,$xY,lOW,GW,QkL,mxo,r2$,b8,nWZ,Jx,YC,Xv,MCL,aO3,HGv,Uxo,vW3,IOq,WAL,PB5,LAl,h$5,OG$,EWl,FAq,VCZ,fOZ,S8a,uhY,dxa,iGo,NME,skq,tCY,jkY,c2E,A2f,ZGl,pAv,zDl,CYC,wr5,Kbq,o1o,GoW,YXW,Xrb,x$l,qX5,Jwa,TNb,kof,$$Z,n1l,aPC,QpE,m$5,kC,My$,Hiq,U$E,v15,Lbq,hD3,Oi$,E1o,FbL,VyE,fPW,SXq,uuL,D$f,ii$,NNq,spE,BNL,tyZ,g13,jpC,AwE,IPZ;
_.wV=function(e){var z=new _.uh("Error accessing DB");return _.H9m().then(function(C){return new Promise(function(w,K){try{var G=C.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(e);G.onsuccess=function(){var X=G.result;w(X?X.value:null)};
G.onerror=function(){z.params={key:e,source:"onerror"};K(z)}}catch(X){z.params={key:e,
thrownError:String(X)},K(z)}})},function(){return null})};
yHf=function(e,z){return _.xz(e.entities,"inlineExpansionEntity",z)};
cHo=function(e,z){return _.xz(e.entities,"flowStateEntity",z)};
_.AH5=function(e,z){if(e&&z){var C=_.Ix();C().set(e,z);_.m0s(C())}};
_.ZZf=function(e,z){if(e&&z){var C=_.Ix();C().set(e,z);_.m0s(C())}};
pQo=function(e,z){return _.xz(e.entities,"contextNoteUserRatingEntityPayload",z)};
e$$=function(e){return _.OE(e,function(z){return z.languageCode==="en"})};
z$5=function(e){var z=KX;if(_.VY$(e))e.setOption("captions","stickyLoading",{}),e.setOption("captions","track",{});else{var C=_.OE(_.IaN(e),function(w){return w.displayName===z});
e.setOption("captions","track",C)}};
CB5=function(e){if(!e)return 0;var z=e.getPresentingPlayerType(),C=e.getVideoData();return C&&C.isLive?(e=e.getProgressState(z),e.seekableEnd-e.seekableStart):e.getDuration(z)};
wAa=function(e,z){for(var C=_.b(Object.keys(e)),w=C.next();!w.done;w=C.next())if(w=w.value,e[w]!==z[w])return!1;return!0};
KAa=function(){return document.getElementById("player-control-overlay")};
oWZ=function(e){e!==-1&&!_.M("player_controls_log_creation_killswitch")&&KAa()&&(_.hg("pcu_cs",e),_.hg("pcu_ce"))};
q8b=function(e,z){var C=_.pP(e,{}),w=G0o("top",z),K=G0o("bottom",z),G=G0o("left",z),X=G0o("right",z);return _.QC({top:function(){return oa(C().position,w)},
bottom:function(){return oa(C().position,K)},
left:function(){return oa(C().position,G)},
right:function(){return oa(C().position,X)},
position:function(){return oa(C().positionType,Y8Z)},
height:function(){return oa(C().height,GW)},
width:function(){return oa(C().width,GW)},
"min-width":function(){return oa(C().minWidth,GW)},
"min-height":function(){return oa(C().minHeight,GW)},
"max-width":function(){return oa(C().maxWidth,GW)},
"max-height":function(){return oa(C().maxHeight,GW)},
"aspect-ratio":function(){return oa(C().aspectRatio,String)},
"margin-top":function(){return oa(C().margin,w)},
"margin-bottom":function(){return oa(C().margin,K)},
"margin-left":function(){return oa(C().margin,G)},
"margin-right":function(){return oa(C().margin,X)},
"padding-top":function(){return oa(C().padding,w)},
"padding-bottom":function(){return oa(C().padding,K)},
"padding-left":function(){return oa(C().padding,G)},
"padding-right":function(){return oa(C().padding,X)},
"flex-direction":function(){return oa(C().flexDirection,bGb)},
"justify-content":function(){return oa(C().justifyContent,XAW)},
"align-items":function(){return oa(C().alignItems,J2q)},
"flex-grow":function(){return oa(C().flexGrow,String)},
"flex-shrink":function(){return oa(C().flexShrink,String)},
"flex-basis":function(){return oa(C().flexBasis,GW)},
"align-self":function(){return oa(C().alignSelf,J2q)},
"flex-wrap":function(){return oa(C().flexWrap,k0o)},
"align-content":function(){return oa(C().alignContent,J2q)}})};
oa=function(e,z){return e!==void 0?z(e):void 0};
k0o=function(e){switch(e){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Y8Z=function(e){switch(e){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
J2q=function(e){switch(e){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"}};
XAW=function(e){switch(e){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"}};
bGb=function(e){switch(e){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"}};
G0o=function(e,z){var C=z==="rtl";switch(e){case "top":var w=xxo;break;case "bottom":w=TMb;break;case "left":w=$xY;break;default:w=lOW}return function(K){return oa(w(K,C),GW)}};
xxo=function(e){var z=e.top;var C=e.vertical;e=e.all;var w;return(w=z!=null?z:C)!=null?w:e};
TMb=function(e){var z=e.bottom;var C=e.vertical;e=e.all;var w;return(w=z!=null?z:C)!=null?w:e};
$xY=function(e,z){var C=e.left;var w=e.end;var K=e.start;var G=e.horizontal;e=e.all;var X,J;return(J=(X=C!=null?C:z?w:K)!=null?X:G)!=null?J:e};
lOW=function(e,z){var C=e.right;var w=e.end;var K=e.start;var G=e.horizontal;e=e.all;var X,J;return(J=(X=C!=null?C:z?K:w)!=null?X:G)!=null?J:e};
GW=function(e){var z=e.value;switch(e.unit){case "YPC_DIMENSION_UNIT_POINT":return z+"px";case "YPC_DIMENSION_UNIT_FRACTION":return z+"%";default:return""+z}};
QkL=function(e){switch(e){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"}};
mxo=function(e){var z=e!=null?e:{};e=z.fontRole;var C=z.fontSize;z=z.fontWeight;if(e!==null&&C!==null)switch(e){case "YPC_FONT_ROLE_DISPLAY":switch(C){case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(C){case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return z===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(C){case "YPC_FONT_SIZE_XL":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return z==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
r2$=function(e,z,C){function w(m){return Object.values(m).map(function(a){var n=a.productId;a=a.pricingOptionIndex;return YC(K(n).pricingOptions,a).pricingOptionId})}
function K(m){return q().get(m)}
function G(m){m=w(m);C(m)}
function X(m,a){return Array.from(b8(m.pricingOptions)).filter(function(n){n=_.b(n);n.next();n=n.next().value;return Xv(n.pricingGroupAttributes,a)}).map(function(n){return _.b(n).next().value})}
var J=aO3([e,z],function(m,a){var n=m==null?void 0:m.selectedPricingOptions;m={};var H=!0;if(n&&a.length)for(var I=_.b(a),L=I.next();!L.done;L=I.next()){L=L.value;var h=nWZ(L.pricingOptions,function(D){a:{D=D.pricingOptionId;for(var g=_.b(n),y=g.next();!y.done;y=g.next())if(y.value===D){D=!0;break a}D=!1}return D});
if(h>=0){H=!1;var E=YC(L.pricingOptions,h),N=void 0;m[L.groupId]={productId:L.productId,pricingOptionIndex:h,pricingGroupAttributes:(N=E)==null?void 0:N.pricingGroupAttributes}}}H&&a.length&&(H=YC(a[0].pricingOptions,0),m[a[0].groupId]={productId:a[0].productId,pricingOptionIndex:0,pricingGroupAttributes:H==null?void 0:H.pricingGroupAttributes});return m}),q=aO3([z],function(m){return new Map(m.map(function(a){return[a.productId,
a]}))}),T=aO3([z],function(m){var a=new Map;
m=_.b(m);for(var n=m.next();!n.done;n=m.next()){var H=n.value;n=H.groupId;var I=H.productId;H=_.b(b8(H.pricingOptions));for(var L=H.next();!L.done;L=H.next()){var h=_.b(L.value);L=h.next().value;h=h.next().value;a.set(h.pricingOptionId,{groupId:n,productId:I,index:L,pricingOption:h,pricingGroupAttributes:h.pricingGroupAttributes})}}return a}),Q=aO3([z],function(m){var a=new Map;
m=_.b(m);for(var n=m.next();!n.done;n=m.next()){var H=n.value;n=H.groupId;var I=H.productId,L=void 0;H=_.b(b8((L=H.pricingGroups)!=null?L:[]));for(L=H.next();!L.done;L=H.next()){var h=_.b(L.value);L=h.next().value;h=h.next().value;a.set(h.pricingGroupId,{groupId:n,productId:I,index:L,pricingGroup:h,pricingGroupAttributes:h.pricingGroupAttributes})}}return a});
return{getProductById:K,isProductSelected:function(m){var a=K(m);if(!a)return!1;var n;return((n=J()[a.groupId])==null?void 0:n.productId)===m},
getSelectedPricingOptions:function(){return Object.values(J()).map(function(m){var a=m.productId;m=m.pricingOptionIndex;return YC(K(a).pricingOptions,m)})},
getSelectedPricingGroupAttributesByGroupId:function(m){var a;return(m=(a=J()[m])==null?void 0:a.pricingGroupAttributes)?Array.from(m):void 0},
getSelectedProductByGroupId:function(m){var a;return(m=(a=J()[m])==null?void 0:a.productId)?K(m):void 0},
onProductSelected:function(m){var a=K(m);if(a){var n=J(),H;if(((H=n[a.groupId])==null?void 0:H.productId)!==m){var I=(H=(I=n[a.groupId])==null?void 0:I.productId)?K(H):void 0;var L;H=(L=n[a.groupId])==null?void 0:L.pricingGroupAttributes;var h;L=(h=n[a.groupId])==null?void 0:h.pricingOptionIndex;if(I&&L!==void 0)if(H){h=X(I,H).indexOf(L);if(h===-1)throw Error("Zj`"+L+"`"+I.productId);L=X(a,H);h=h<L.length?L[h]:L.length>0?L[0]:0}else h=L<Jx(a.pricingOptions)?L:0;else h=0;Jx(a.pricingOptions)<=h&&(h=
0);L=YC(a.pricingOptions,h);var E;I={};G(Object.assign({},n,(I[a.groupId]={productId:m,pricingOptionIndex:h,pricingGroupAttributes:(E=L==null?void 0:L.pricingGroupAttributes)!=null?E:[]},I)))}}},
onPricingOptionSelected:function(m){var a=T().get(m);if(a){m=a.groupId;var n=a.productId;a=a.index;var H=J(),I,L;if(((I=H[m])==null?void 0:I.productId)!==n||((L=H[m])==null?void 0:L.pricingOptionIndex)!==a){var h,E;I={};G(Object.assign({},H,(I[m]={productId:n,pricingOptionIndex:a,pricingGroupAttributes:(E=(h=H[m])==null?void 0:h.pricingGroupAttributes)!=null?E:[]},I)))}}},
onPricingGroupSelected:function(m){var a=Q().get(m);if(a){m=a.groupId;var n=a.productId,H=a.pricingGroup.pricingGroupAttributes,I=K(n);if(I){a=J();var L=a[m].pricingGroupAttributes,h;if(((h=a[m])==null?void 0:h.productId)!==n||!Xv(MCL(L,Jx(H)),H)){h=Array.from(H);for(H=Jx(H);H<Jx(L);H++){var E="",N=!1,D=Array.from(h);D.push(YC(L,H));for(var g=_.b(I.pricingGroups),y=g.next();!y.done;y=g.next())if(y=y.value,Xv(y.pricingGroupAttributes,D)){h.push(YC(L,H));N=!0;break}else E===""&&Jx(y.pricingGroupAttributes)===
D.length&&Xv(MCL(y.pricingGroupAttributes,h.length),h)&&(E=YC(y.pricingGroupAttributes,H));N||h.push(E)}E=a[m].pricingOptionIndex;H=[];N=new Map;D=0;I=_.b(b8(I.pricingOptions));for(g=I.next();!g.done;g=I.next())y=_.b(g.value),g=y.next().value,y=y.next().value,Xv(y.pricingGroupAttributes,h)&&H.push(g),Xv(y.pricingGroupAttributes,L)&&N.set(g,D++);H.length===0?L=0:(L=N.get(E),L=L!==void 0&&L<H.length?H[L]:H[0]);I={};G(Object.assign({},a,(I[m]={productId:n,pricingOptionIndex:L,pricingGroupAttributes:h},
I)))}}}},
onClearGroupSelected:function(m){var a=J();a[m]&&(a=Object.fromEntries(Object.entries(a).filter(function(n){return _.b(n).next().value!==m})),G(a))}}};
b8=function(e){return function C(){var w,K,G,X,J;return _.an(C,function(q){switch(q.nextAddress){case 1:_.Rv(q,2),w=0,K=_.b(e),G=K.next();case 4:if(G.done){q.jumpTo(2);break}X=G.value;J=_.nM;return q.yield([w++,X],7);case 7:J(q.yieldResult);G=K.next();q.jumpTo(4);break;case 2:_.PZ(q),_.hn(q,0)}})}()};
nWZ=function(e,z){e=_.b(b8(e));for(var C=e.next();!C.done;C=e.next()){var w=_.b(C.value);C=w.next().value;w=w.next().value;if(z(w))return C}return-1};
Jx=function(e){var z=0;for(e=e[Symbol.iterator]();!e.next().done;)++z;return z};
YC=function(e,z){e=_.b(b8(e));for(var C=e.next();!C.done;C=e.next()){var w=_.b(C.value);C=w.next().value;w=w.next().value;if(C===z)return w}};
Xv=function(e,z){if(!e&&!z)return!0;if(!e||!z)return!1;e=Array.from(e);z=Array.from(z);if(e.length!==z.length)return!1;for(var C=0;C<e.length;C++)if(e[C]!==z[C])return!1;return!0};
MCL=function(e,z){z=z===void 0?Infinity:z;var C=[];e=_.b(b8(e));for(var w=e.next();!w.done;w=e.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;if(w>=z)break;w>=0&&C.push(K)}return C};
aO3=function(e,z){var C,w;return function(){for(var K=e.map(function(X){return X()}),G=0;G<K.length;G++)if(!C||K[G]!==C[G]){C=K;
w=z.apply(null,_.s_(K));break}return w}};
HGv=function(e,z,C){var w=[];e=_.b(e);for(var K=e.next();!K.done;K=e.next()){K=K.value;var G=void 0;((G=z)==null?0:G.length)&&!Xv(K.pricingGroupAttributes,z)||w.push({pricingOption:K,isSelected:C.includes(K.pricingOptionId)})}return w};
Uxo=function(e,z){return _.xz(e.entities,"pdpStateEntity",z)};
vW3=function(e){var z,C;return!!(e.productId&&e.groupId&&((z=e.pricingOptions)==null?0:z.length)&&e.pricingOptions.every(function(w){return w.pricingOptionId})&&((C=e.pricingGroups)==null||!C.length||Array.isArray(e.pricingGroups)&&e.pricingGroups.every(function(w){return w.pricingGroupId&&w.pricingGroupAttributes&&w.pricingGroupAttributes.length>0})))};
IOq=function(e,z,C){return r2$(e,aO3([z],function(w){return w.filter(vW3)}),C)};
WAL=function(e,z){return z.length===0?[e]:[e.slice(0,z[0]),e.slice(z[0])].filter(function(C){return C.length>0})};
PB5=function(e){switch(e){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""}};
LAl=function(e,z,C,w){w=Object.assign({},w);_.Om(w,R$b,{selectedOptionId:e,primaryButtonOverride:C});_.AK().dispatch(_.Rx("flowStateEntity",z,w))};
h$5=function(e,z,C){!_.r(C,R$b)&&e.noPreselect&&z!==""&&e.defaultButtonOverride&&LAl("default",z,e.defaultButtonOverride,C)};
OG$=function(e){switch(e){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
EWl=function(e){switch(e){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
FAq=function(e,z){if(z)return"ytCardViewModelCardSelected";switch(e){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
VCZ=function(e,z){z.includes(e)?z=z.filter(function(C){return C!==e}):z.push(e);
return[].concat(_.s_(z))};
fOZ=function(e,z){return _.xz(e.entities,"contextNoteFeedEntityPayload",z)};
S8a=function(e,z){switch(e){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return z==null?void 0:z.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return z==null?void 0:z.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return z==null?void 0:z.ratingNotHelpfulText}};
uhY=function(e,z,C){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:C||e.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:e.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:e.deleteDialogTitle}]},dialogMessages:[{runs:[{text:e.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:e.deleteActionText}]},command:{performCommentActionEndpoint:{action:z}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:e.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
dxa=function(e,z,C){var w;if(e&&((w=z())==null?0:w.includes(e))){var K;C((K=z())==null?void 0:K.filter(function(G){return G!==e}))}else C([].concat(_.s_(z()||[]),[e]))};
iGo=function(e,z){if(e){var C=[];z=_.b((z==null?void 0:z.checkboxes)||[]);for(var w=z.next();!w.done;w=z.next()){w=_.r(w.value,Dx5);var K=void 0;((K=w)==null?0:K.value)&&e.includes(w.key||"")&&C.push(w.value)}return C}};
NME=function(e){e.style.height="auto";e.style.height=e.scrollHeight+"px"};
skq=function(e){return[e.syncStep,e.asyncStep].filter(function(z){return z!==void 0})};
tCY=function(e){var z,C,w;if(e=(z=e.structuredContextNoteFormSchema)==null?void 0:(C=z.fieldSchemas)==null?void 0:(w=C.noteBody)==null?void 0:w.validationSchema)for(z=_.b(skq(e)),C=z.next();!C.done;C=z.next()){C=C.value.rules;if(!C)break;C=_.b(C);for(C=C.next();!C.done;C=C.next())return _.r(C.value,_.BMl)}};
jkY=function(e){if(e){e=_.b(skq(e));for(var z=e.next();!z.done;z=e.next()){z=z.value.rules;if(!z)break;z=_.b(z);for(z=z.next();!z.done;z=z.next())return _.r(z.value,gWv)}}};
c2E=function(e){if(e){e=_.b(skq(e));for(var z=e.next();!z.done;z=e.next()){z=z.value.rules;if(!z)break;z=_.b(z);for(z=z.next();!z.done;z=z.next())return _.r(z.value,y2L)}}};
A2f=function(e){e=/^https?:\/\//.test(e)?e:"http://"+e;try{var z=_.Cj(e)}catch(C){return!1}if(z.toString()!==e)return!1;e=z.JSC$10201_domain_.split(".");return e.length>1&&e.every(function(C){return!!C})};
ZGl=function(e,z,C,w){var K;w=(K=w.structuredContextNoteData)==null?void 0:K.createCommentEndpoint;if(K=_.r(w,_.dwg))return K.commentText=_.AO(e),K.videoPositionMention=z,K.sources=C,w};
pAv=function(e){return e==null?void 0:e.stringValue};
zDl=function(e,z,C){e=e.map(function(w,K){return{listItemViewModel:{title:w.title,subtitle:w.subtitle,leadingImage:w.leadingImage,trailingImage:K===z?eDL:void 0,rendererContext:{commandContext:{onTap:w.onTap}}}}});
return Object.assign({},C&&{header:{panelHeaderViewModel:{title:C}}},{content:{listViewModel:{listItems:e}}})};
CYC=function(e,z){if(e&&z)switch(z){case "SELECTION_TYPE_BOOL":return e.boolValue;case "SELECTION_TYPE_INT":return e.intValue;case "SELECTION_TYPE_STRING":return e.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return e.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return e.timePickerFormatValue}};
wr5=function(e){var z;e=(z=e.options)==null?void 0:z.findIndex(function(C){return C.isSelected});
return e===void 0?-1:e};
Kbq=function(e,z,C){var w=function(){return e().label},K={},G=_.qT("ytDropdownViewModelLabel",(K.ytDropdownViewModelLabelError=z,K));
return _.x(_.l,{cond:function(){return e().label&&!(C()===-1&&e().label&&!e().placeholderText)},
then:function(){return _.x("div",{class:G},_.x(_.U2,{text:w}))}})};
o1o=function(e,z){var C={};C=_.qT("ytDropdownViewModelTitle",(C.ytDropdownViewModelTitlePlaceholder=function(){return z()===-1},C));
return _.x("div",{class:C},_.x(_.U2,{text:function(){var w=e();var K=z();if(K===-1)w=w.placeholderText?w.placeholderText:w.label;else{var G,X;w=(G=w.options)==null?void 0:(X=G[K])==null?void 0:X.title}return w}}))};
GoW=function(e,z){var C=function(){return e().hint};
return _.x(_.Qw,null,_.x(_.l,{cond:function(){return C()&&!z()},
then:function(){return _.x("div",{class:_.qT("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.x(_.U2,{text:C,className:"ytDropdownViewModelSupportText"}))}}),_.x(_.l,{cond:z,
then:function(){return _.x("div",{id:"dropdown-view-model-error",role:"alert",class:_.qT("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.x(_.mB,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.x(_.U2,{text:z,className:"ytDropdownViewModelSupportText"}))}}))};
YXW=function(e,z){var C=_.lh().resolve(_.a0q);_.sg(function(){var w=e().id;w&&C!=null&&C.dropdownMap.set(w,z)})};
Xrb=function(e){e=_.r(e.scheduleButton,biE);e=_.r(e==null?void 0:e.primaryButton,_.H7);e=_.r(e==null?void 0:e.onTap,_.fm);var z,C,w=((C=_.r(e,_.Gj))==null?void 0:C.commands)||[e];C=_.b(w);for(e=C.next();!e.done&&!(z=_.r(e.value,_.fMT));e=C.next());var K;z=(K=z)==null?void 0:K.createBroadcastRequest;if(!z)throw Error("fk");return z};
x$l=function(e,z,C){C=C===void 0?{}:C;var w,K;return _.k(function(G){if(w=Jwa(z))return G.return(w);(K=kof(e,z,C))&&qX5(z,K);return G.return(K)})};
qX5=function(e,z){var C=TNb(e);C&&z.then(function(w){_.lh().resolve(_.jN).put(C,new _.yX({innertubeResponse:w}))})};
Jwa=function(e){if(e=TNb(e)){var z=_.lh().resolve(_.jN);if(z.has(e))return z.get(e).then(function(C){return C==null?void 0:_.J8(C)})}return null};
TNb=function(e){var z=_.r(e.endpoint,_.N$);if(z!=null&&z.videoId)return z={videoId:z.videoId},_.M("web_imp_player_mute_params")&&(z.mutedAtStart=e.startPlaybackInMutedState),_.iY("inline_playback",z)};
kof=function(e,z,C){e=_.yC(e,z.endpoint,$$Z(z,C)).then(function(w){return w});
return Promise.resolve(e)};
$$Z=function(e,z){z=_.M("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!e.startPlaybackInMutedState},z):Object.assign({},{vis:5,autonav:"1"},z);var C;z={contentPlaybackContext:_.lH(z,(C=_.r(e.endpoint.commandMetadata,_.XV))==null?void 0:C.url,window.location.href)};_.M("web_imp_player_mute_params")&&(z.overrideMutedAtStart=!e.startPlaybackInMutedState);return z};
n1l=function(e,z){var C=window.MutationObserver;C&&(lPb=new C(function(w,K){w=_.b(w);for(var G=w.next();!G.done;G=w.next()){G=G.value;var X;if(X=G.type==="childList"&&G.target)a:{X=e;G=QpE(G.target);X=QpE(X);for(var J=null,q=0;q<G.length;q++)if(X.includes(G[q])){if(q===0){X=!1;break a}J=G[q];break}J?(G=m$5(G,J),X=m$5(X,J),X=G<X):X=!1}if(X){z();K.disconnect();break}}}),(C=aPC())&&lPb.observe(C,{childList:!0,
subtree:!0}))};
aPC=function(){var e=document.getElementsByTagName("ytd-rich-grid-renderer");if(e.length>0)return e[0];e=document.getElementsByTagName("ytd-section-list-renderer");return e.length>0?e[0]:null};
QpE=function(e){for(var z=[];e;)z.push(e),e=e.parentElement;return z};
m$5=function(e,z){var C=Array.from(z.children);z=e.indexOf(z);return z>0?C.indexOf(e[z-1]):-1};
kC=function(e,z,C){C=C===void 0?{}:C;return _.kk(e,C,z)};
My$=function(e){switch(e){case "MUSIC":return!0;default:return!1}};
Hiq=function(e){if(e=e==null?void 0:e.find(function(w){var K,G;return((K=_.r(w,rwb))==null?void 0:(G=K.inlinePlaybackBadgeData)==null?void 0:G.replicateAsTimestamp)===!0}))if(e=_.r(e,rwb),e==null?0:e.icon){var z,C;
if((e=(z=_.b2k(e.icon))==null?void 0:(C=z.clientResource)==null?void 0:C.imageName)&&My$(e))return e}};
U$E=function(e){return e==null?void 0:e.filter(function(z){return z.premiereTrailerBadgeRenderer})};
v15=function(e){var z,C=e==null?void 0:(z=e.find(function(q){return q.thumbnailOverlayTimeStatusRenderer}))==null?void 0:z.thumbnailOverlayTimeStatusRenderer,w,K;
if((C==null?0:(w=C.icon)==null?0:w.iconType)&&My$(C==null?void 0:(K=C.icon)==null?void 0:K.iconType)){var G;return{icon:C==null?void 0:(G=C.icon)==null?void 0:G.iconType}}var X;if(z=e==null?void 0:(X=e.find(function(q){return q.thumbnailOverlayBadgeViewModel}))==null?void 0:X.thumbnailOverlayBadgeViewModel)if(X=Hiq(z.thumbnailBadges))return{icon:X};
var J;if(e=e==null?void 0:(J=e.find(function(q){return q.thumbnailBottomOverlayViewModel}))==null?void 0:J.thumbnailBottomOverlayViewModel)if(J=Hiq(e.badges))return{icon:J};
return{}};
Lbq=function(e,z){var C=new IPZ(function(G){K(G)},z);
z=_.b(_.II(WbW(C),void 0,"D2uee"));var w=z.next().value,K=z.next().value;_.sH(function(){Promise.resolve().then(function(){var G,X=(G=e())!=null?G:{};C.playerControlsData=X;C.lastSeenPlayerApi=_.t8(X.playerApi);PYE(C)});
_.BC(function(){RDo(C)})},"xfRk8b");
return w};
hD3=function(e){return function(z){var C=e(),w={playerState:z};if(z===1){var K;(K=C.playerApi)==null||K.loadModule("captions")}if(z===0){var G;(G=C.playerApi)==null||G.unloadModule("captions")}z!==-1&&C.setState(w)}};
Oi$=function(e){return function(z){e().setState({playbackRate:z})}};
E1o=function(e){return function(z){var C=e(),w=C.playerApi,K=w==null?void 0:w.getVideoData(),G=(K==null?void 0:K.isLive)||!1;K=K==null?void 0:K.video_id;G={videoDuration:CB5(w||void 0),isLive:G,videoId:K};G.videoId!==C.videoId&&(G=Object.assign({},_.Et1(w),G));if(z==null?0:z.playertype)G.playerType=z.playertype;if(w){G.captionsAvailable=_.F$$(w);z=G;var X;K=(X=w.getStoryboardLevel(w.getNumberOfStoryboardLevels()-1))==null?void 0:X.intervalMs;z.storyboardInterval=K?K/1E3:void 0;G.captionsAvailable&&
(G.captionsEnabled=_.VY$(w))}G.volumeMuted=!(w==null||!w.isMuted());C.setState(G)}};
FbL=function(e){return function(z){var C=e(),w=C.playerApi;if(w){var K=w.getPresentingPlayerType();z={playedTime:z||0,percentLoaded:w.getVideoLoadedFraction(),playerType:K};C.playerState===0&&(z.playedTime=C.videoDuration);C.isLive&&(K=w.getProgressState(K),z.playedTime-=K.seekableStart,z.videoDuration=CB5(w));if(C.playerType===1)w=!1;else{var G;if((G=C.uxConfig)==null?0:G.showCuedOverlay){var X;w=!((X=C.playerApi)==null?0:X.getPlayerStateObject(C.playerType).isDomPaused)}else w=!0}w&&delete z.playedTime;
C.setState(z)}}};
VyE=function(e){return function(){var z=e(),C,w,K,G={volume:(K=(C=z.playerApi)==null?void 0:C.getVolume())!=null?K:0,volumeMuted:!((w=z.playerApi)==null||!w.isMuted())};z.setState(G)}};
fPW=function(e){return function(){var z=e(),C=z.playerApi;if(C){var w={captionsAvailable:_.F$$(C)};w.captionsAvailable&&(w.captionsEnabled=_.VY$(C));z.setState(w)}}};
SXq=function(e){return{appApi:Object.assign({},_.Ijk(),{showCaptionsToggleToast:function(z){var C,w;(w=(C=e()).showCaptionsToggleToast)==null||w.call(C,z)},
openInMiniplayer:function(){var z,C;(C=(z=e()).openInMiniplayer)==null||C.call(z)}})}};
uuL=function(e,z){var C,w,K;return!!(e==null?0:(C=e.playerResponse)==null?0:(w=C.playerConfig)==null?0:(K=w.inlinePlaybackConfig)==null?0:K.showScrubbingControls)&&!(z==null?0:z.hideScrubbingControls)};
_.d$5=function(e){var z=!e.miniplayerIsActive;return[5,2,0].includes(e.miniplayerPlaybackState)||z};
D$f={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};ii$=function(e){this.onStepChangeCallback=function(){};
this.flowRenderer=e};
ii$.prototype.getCurrentStep=function(){var e=this,z;return((z=this.flowRenderer.steps)!=null?z:[]).map(function(C){return _.r(C,_.o2)}).find(function(C){return C&&C.stepId===e.currentStepId})};
NNq=function(e,z){var C=z.flowStateEntityKey,w=e.flowStates.get(C);if(w)return w;z=new ii$(z);e.flowStates.set(C,z);return z};
spE=function(e,z){for(var C=_.b(e.flowStates.entries()),w=C.next();!w.done;w=C.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;if(K.flowRenderer.targetId===z){e.flowStates.delete(w);break}}};
BNL=function(e,z){e.onStepChangeCallback=z;e.onStepChangeCallback(e.getCurrentStep())};
tyZ=function(e,z){var C=e.getCurrentStep();if(C&&C.stepId===z)return!0;var w;return((w=e.flowRenderer.steps)!=null?w:[]).map(function(K){return _.r(K,_.o2)}).find(function(K){return K&&K.stepId===z})?(e.currentStepId=z,e.onStepChangeCallback(e.getCurrentStep()),!0):!1};
g13=function(e,z){var C,w,K,G,X;_.k(function(J){if(!z.length)return J.return([]);C=[];w=_.b(z);for(K=w.next();!K.done;K=w.next())G=K.value,(X=e.resolveIcon(G))&&!e.iconCache[X.url]&&C.push(_.I_q(e,X).then(function(){}).catch(function(){}));
return J.return(Promise.all(C))})};
jpC=function(e,z){var C=[];z=(new Set(z)).values();z=_.b(z);for(var w=z.next();!w.done;w=z.next()){w=w.value;for(var K=_.b(Object.values(D$f)),G=K.next();!G.done;G=K.next())C.push({iconName:w,iconStyle:G.value})}g13(e.iconManager,C)};
_.yw5=function(e,z,C){var w=C!=null?C:e.iconsToFetch;w!=null&&w.length?z!==void 0&&z>=0?_.Dz(_.c5,function(){jpC(e,w)},z):jpC(e,w):Promise.resolve()};
_.cwl=_.qg(function(e,z,C){if(e.nextWireType_!==5)return!1;_.xa(z,C,_.cW(e.decoder_));return!0},function(e,z,C){z=_.Hg1(z);
z!=null&&(_.Ty(e,C,5),_.ll(e.encoder_,z))},_.kLh);
AwE=[0,_.zv,_.cwl,-1];_.Zi$=function(){return _.Yz({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
IPZ=function(e,z){var C=prE,w=this;this.renderFn=e;this.listeners=C;this.context=z;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var K;this.lastSeenPlayerApi=_.t8((K=this.playerControlsData)==null?void 0:K.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Et1(),void 0);_.M("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){WbW(w).setState({playerState:-1});w.resetRecentlyNavigatedJobId&&
_.c5.cancelJob(w.resetRecentlyNavigatedJobId);w.recentlyNavigated=!0;w.resetRecentlyNavigatedJobId=_.c5.addJob(function(){w.recentlyNavigated=!1},8,1E4)})};
IPZ.prototype.setState=function(e){if(!_.M("mweb_player_skip_no_op_state_changes")||!wAa(e,this.state))if(this.state=Object.assign({},this.state,e),!_.M("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)e=-1,_.M("player_controls_log_creation_killswitch")||KAa()||(e=(0,_.as)()),_.hg("pcu_s"),_.hg("pcu_se"),_.hg("pcu_rs"),this.renderFn(WbW(this)),_.hg("pcu_re"),oWZ(e),_.c5.addJob(function(){_.hg("pcu_ap")},8)};
var WbW=function(e){if(e.getPlayerApi)var z=_.t8(e.getPlayerApi());else{var C;z=_.t8((C=e.playerControlsData)==null?void 0:C.playerApi)}return Object.assign({},e.state,{setState:e.boundSetState,domMeasurements:{progressBarLineRect:e.progressBarLineRect},playerApi:z,appApi:e.context.appApi,playerContainer:e.context.playerContainer,playerControlContainer:e.context.playerControlContainer,uxConfig:e.context.uxConfig})},PYE=function(e){e.listeners.forEach(function(z){e.eventListenerCleanupFunctions.push(z.register(function(){return WbW(e)},
function(){return e.getData()}))})},RDo=function(e){e.eventListenerCleanupFunctions.forEach(function(z){z()});
e.eventListenerCleanupFunctions.length=0};
IPZ.prototype.getData=function(){return this.playerControlsData};var eNv=[0,_.$l,_.o8,_.$l,-1,_.o8,[0,_.Gv,_.bS,-1],_.$l,-1];var zNL=[0,[1,2,3],_.JL,-2];var Cdo=[0,_.$l];var wfZ=new _.nN("crowdsourcedContextUserRatingFormFlowState");var Km3=new _.nN("noteViewModel");var qc=new _.nN("abuseReportFlowState");var okZ=new _.nN("feedbackFormFlowState");var Gj3=new _.nN("inputBoxViewModel");_.BMl=new _.nN("lengthValidationRule");var gWv=new _.nN("regexValidationRule");var y2L=new _.nN("selectedValidationRule");var Y6Z=[0,_.bS,_.$l,_.ai];var bKl=[0,_.o8,-2,AwE];var Xf5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Xf5,_.X2);Xf5.prototype.getFeature=function(){return _.Ds(this,6)};
Xf5.prototype.hasFeature=function(){return _.Hl(_.RP(this,6))!=null};var Jgq=[0,_.bS];var kjW=_.UC(Xf5,[0,_.o8,-2,AwE,_.o8,_.bS,-1,_.wJ,-1,_.bS,-3,_.hWX,_.Gv,bKl,_.bS,-1,eNv,_.wJ,_.bS,Y6Z,[0,[0,_.bS,-2,2,_.bS,-1,[0,_.bS],[0,_.$l,_.bS],[0,_.$l],[0,_.bS],2,[0,_.$l,2,[0,_.$l,-1],[0,_.kl,zNL],1,[0,Cdo],1,[0,_.bS]],[0,_.Gv],[0,[1,2],_.qJ,[0,_.bS],_.qJ,[0,_.bS,_.Tv,-1]],[0,_.$l],[0,_.bS,[0,[1,2,3,4],_.qJ,[0,[0,_.bS],Jgq],_.qJ,[0,[0,_.bS],Jgq],_.qJ,[0,Jgq],_.qJ,[0,[0,_.bS],Jgq]]],[0,_.bS],1,[0,_.bS,_.$l],1,[0,_.bS],[0,_.Gv],[0,_.bS,_.$l,-1,[0,_.bS,-4]],[0,_.bS],[0,_.bS,-2],1,[0,_.bS],[0,
_.Gv],[0,_.Gv,_.bS],1,[0,_.Gv],[0],[0]],_.bS,_.$l,_.zv,1,_.xl,_.bS,_.$l],_.o8,_.xl,_.$l,-1,_.o8]);var q6$=new _.nN("talkToRecsViewModel");var xLv=new _.nN("creatorGoalSetUpFlowDropdownItemViewModel");var TQW=new _.nN("creatorGoalSetUpFlowDropdownViewModel");var rwb=new _.nN("thumbnailBadgeViewModel");_.$Lb=new _.nN("checkboxGroupViewModel");var Dx5=new _.nN("checkboxItemViewModel");_.lEL=new _.nN("radioButtonGroupViewModel");var QS$=new _.nN("radioButtonItemViewModel");var biE=new _.nN("panelFooterViewModel");var mLZ=new _.nN("ypcCancelRecurrenceCommand");var aEq=new _.nN("cancellationFlowState");var R$b=new _.nN("premiumPurchaseFlowState");var nkf=new _.nN("surveyAnswerCardRenderer");var MAW=new _.nN("showMoreButtonRenderer");var rgE;var HKC,ULZ=function(){if(HKC!==void 0)return HKC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;rgE===void 0&&(rgE=document.createElement("template"));var w=rgE;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return HKC=e};var xC=function(){var e=_.V.apply(this,arguments)||this;e.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";e.goalDescription="";e.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";e.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";e.startButtonId="start-button";e.exampleButtonId="example-button";return e};
_.U(xC,_.V);_.Y=xC.prototype;_.Y.getGoalDropdownItems=function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.purchaseTargetDropdown,TQW))==null?void 0:z.dropdownItems};
_.Y.getTimerDropdownItems=function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.timerDropdown,TQW))==null?void 0:z.dropdownItems};
_.Y.getColorDropdownItems=function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.colorDropdown,TQW))==null?void 0:z.dropdownItems};
_.Y.getDropdownItemText=function(e){var z;return(z=_.r(e,xLv))==null?void 0:z.itemLabel};
_.Y.getDropdownItemValue=function(e){e=_.r(e,xLv);return(e==null?void 0:e.timeLimit)||(e==null?void 0:e.purchaseTarget)||(e==null?void 0:e.eligiblePurchaseType)};
_.Y.updateFlowState=function(e){_.eA(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:e}])};
_.Y.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.Y.updateGoalValue=function(e){this.goal=e.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.Y.onTextValueChanged=function(e){this.goalDescription=e.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.Y.updateTimerValue=function(e){this.timer=e.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.Y.updateTierValue=function(e){this.tier=e.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.Y.getButtonViewModel=function(e){e=(e==null?void 0:e.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var z,C=_.r((z=this.data)==null?void 0:z.startGoalButton,_.H7);return Object.assign({},C,{state:e})};
_.lB.Object.defineProperties(xC,{template:{configurable:!0,enumerable:!0,get:function(){return ULZ()}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xC.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],xC.prototype,"goal",void 0);_.d([_.F(),_.B("design:type",Object)],xC.prototype,"goalDescription",void 0);_.d([_.F(),_.B("design:type",Object)],xC.prototype,"timer",void 0);_.d([_.F(),_.B("design:type",Object)],xC.prototype,"tier",void 0);
_.d([_.F(),_.B("design:type",Object)],xC.prototype,"startButtonId",void 0);_.d([_.F(),_.B("design:type",Object)],xC.prototype,"exampleButtonId",void 0);_.d([_.fP({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],xC);_.u(xC,"yt-creator-goal-set-up-flow-view-model",function(){return ULZ()},{mode:0});var vkq;var IEW;var Wm5;var Pdl=function(){return _.V.apply(this,arguments)||this};
_.U(Pdl,_.V);_.d([_.F(),_.B("design:type",Object)],Pdl.prototype,"data",void 0);_.d([_.fP({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Pdl);
_.u(Pdl,"yt-survey-answer-card-renderer",function(){if(Wm5===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;IEW===void 0&&(IEW=document.createElement("template"));var w=IEW;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Wm5=e}e=Wm5;return e},{mode:2});var RNL;var LmW;var TW=function(){return _.V.apply(this,arguments)||this};
_.U(TW,_.V);_.Y=TW.prototype;_.Y.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.Y.selectedItemChanged=function(e){_.eA(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[e.feedbackToken||""]}])};
_.Y.surveyAnswerCardRendererClicked=function(e){if(e.target&&_.r(e.model.item,nkf)){var z=e.target;e=_.r(e.model.item,nkf);e.onTapCommand?_.KK(z,[e.onTapCommand],z):this.data.onTapCommand&&_.KK(z,[this.data.onTapCommand],z);this.selectedItemChanged(e)}};
_.Y.checkIsCancellationStyle=function(e){return e==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.Y.updateSelectedItemFromBinding=function(e){this.selectedItem=e.detail.value};
TW.prototype.onSelectedItemChanged=TW.prototype.onSelectedItemChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TW.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],TW.prototype,"selectedItem",void 0);_.d([_.F({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],TW.prototype,"isCancellationStyle",void 0);
_.d([_.mi("selectedItem"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],TW.prototype,"onSelectedItemChanged",null);_.d([_.fP({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],TW);
_.u(TW,"yt-survey-flow-step-renderer",function(){if(LmW===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;RNL===void 0&&(RNL=document.createElement("template"));var w=RNL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);LmW=e}e=LmW;return e},{mode:2});var $C=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return e};
_.U($C,_.V);$C.prototype.handleSurveyFlowStepOptionChanged=function(e){this.ytdReduxBehavior.dispatch(_.Yz({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:e}));_.eA(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:e}}])};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],$C.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],$C.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$C.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],$C);
_.u($C,"ytd-survey-flow-step-renderer",function(){if(vkq!==void 0)return vkq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vkq=e},{mode:1});_.Fm5=_.f(function(e){var z=e.data;var C=e.hideDivider;var w=e.isChannelInfoCard;e={};return _.x("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.x("div",{class:_.qT("yt-profile-identity-info-view-model__frame",(e["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!z().channelBanner},e))},_.x(hNv,{profileIdentityInfoData:z}),_.x("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.x("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO})),_.x(OKv,{profileIdentityInfoData:z})),_.x(_.l,{cond:function(){return z().channelDescription},
then:function(K){var G={};return _.x("div",{class:_.qT((G["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(w==null||!w())},G["yt-profile-identity-info-view-model__channel-description"]=function(){return!(w==null?0:w())},G))},K)}}),_.x(Ekv,{profileIdentityInfoData:z}),_.x(_.l,{cond:function(){return!(C==null?0:C())},
then:function(){return _.x("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"sh");
_.Fm5.idomCompat=!0;var Ekv=_.f(function(e){var z=e.profileIdentityInfoData;return _.x("div",{class:"yt-profile-identity-info-view-model__buttons"},_.x(_.ui,{each:function(){return z().subscribeButton?[z().subscribeButton,z().channelAccess]:[z().channelAccess]}},function(C){return _.x("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.x("div",{class:"yt-profile-identity-info-view-model--button"},_.x(_.PF,{data:function(){return C}},{buttonViewModel:_.iz,
subscribeButtonViewModel:_.lT})))}))},"th"),OKv=_.f(function(e){var z=e.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__trio"},_.x("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.x(VA5,{profileIdentityInfoData:z}),_.x(_.PF,{data:function(){return z().threeDotMenu}},{buttonViewModel:_.iz})),_.x(fE5,{profileIdentityInfoData:z}))},"uh"),VA5=_.f(function(e){var z=e.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.x("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return z().channelDisplayName}),_.x(_.l,{cond:function(){return z().verifiedOrOacBadge},
then:function(C){return _.x("div",{class:"yt-profile-identity-info-view-model__badge"},_.x(_.Zf,{data:function(){return{thumbnails:[{url:C().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"vh"),hNv=_.f(function(e){var z=e.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.x(_.PF,{data:function(){var C=z().channelBanner;if(C)return{imageBannerViewModel:{image:C.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(C){return _.x("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.x(_.L5,{data:C.data,
isPositionRelative:!0}))}}))},"wh"),fE5=_.f(function(e){var z=e.profileIdentityInfoData;
return _.x("div",{class:"yt-profile-identity-info-view-model__metadata"},_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.x("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return z().channelHandle}),_.x(_.l,{cond:function(){return z().channelPronouns&&z().channelHandle},
then:function(){return _.x("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.x("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return z().channelPronouns})),_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return z().leftOfBulletInfo}),_.x(_.l,{cond:function(){return z().leftOfBulletInfo&&z().rightOfBulletInfo},
then:function(){return _.x("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.x("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return z().rightOfBulletInfo})))},"xh");var S6E;var uVf=function(){return _.V.apply(this,arguments)||this};
_.U(uVf,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],uVf.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uVf.prototype,"data",void 0);_.d([_.SL({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],uVf);
_.u(uVf,"ytd-channel-history-renderer",function(){if(S6E!==void 0)return S6E;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return S6E=e},{mode:1});var dLC;var DLL=function(){return _.V.apply(this,arguments)||this};
_.U(DLL,_.V);_.d([_.F(),_.B("design:type",Object)],DLL.prototype,"data",void 0);_.d([_.SL({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],DLL);
_.u(DLL,"ytd-feature-enablement-info-renderer",function(){if(dLC!==void 0)return dLC;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return dLC=e},{mode:1});var iKE;var NQC;var l8=function(){var e=_.V.apply(this,arguments)||this;e.textBoxMaxLength=_.M("enable_tvod_campaign_code_integration")?15:12;return e};
_.U(l8,_.V);_.Y=l8.prototype;_.Y.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.Y.onSubmit=function(){var e=this.data.serviceEndpoint,z=_.r(e,_.zV);z&&e&&(z.couponCode=this.userInput,_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}}))};
_.Y.validate=function(){var e=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=e&&!this.data.errorMessage;this.showErrorMessage=e&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.M("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.Y.computeStyle=function(e){return e};
_.Y.computeShowValidationBelowInput=function(e){return e!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.Y.updateUserInputFromBinding=function(e){this.userInput=e.currentTarget.value};
_.Y.updateShowErrorMessageFromBinding=function(e){this.showErrorMessage=e.detail.value};
_.lB.Object.defineProperties(l8.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
l8.prototype.dataChanged=l8.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],l8.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],l8.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],l8.prototype,"userInput",void 0);_.d([_.F(),_.B("design:type",Boolean)],l8.prototype,"disableApplyButton",void 0);_.d([_.F(),_.B("design:type",Boolean)],l8.prototype,"hideApplyButton",void 0);
_.d([_.F(),_.B("design:type",Boolean)],l8.prototype,"hideErrorMessage",void 0);_.d([_.F(),_.B("design:type",Boolean)],l8.prototype,"showTick",void 0);_.d([_.F(),_.B("design:type",Boolean)],l8.prototype,"showErrorMessage",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],l8.prototype,"couponStyle",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.B("design:type",Boolean)],l8.prototype,"showValidationBelowInput",void 0);_.d([_.F(),_.B("design:type",Object)],l8.prototype,"textBoxMaxLength",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],l8.prototype,"dataChanged",null);
_.d([_.P("showTick","showErrorMessage","userInput"),_.B("design:type",String),_.B("design:paramtypes",[])],l8.prototype,"validationState",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],l8);
_.u(l8,"ytd-ypc-coupon-renderer",function(){if(NQC!==void 0)return NQC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return NQC=e},{mode:1});var QR=function(){return _.V.apply(this,arguments)||this};
_.U(QR,_.V);QR.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"}}}};
QR.prototype.computeStyle=function(e){return e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],QR.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],QR.prototype,"buttonStyle",void 0);_.d([_.SL({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],QR);
_.u(QR,"ytd-flow-bottom-bar-renderer",function(){if(iKE!==void 0)return iKE;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return iKE=e},{mode:1});var sSq;var BQq;var tAb;var mn=function(){return _.V.apply(this,arguments)||this};
_.U(mn,_.V);mn.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mn.prototype.focus=function(e){this.title&&_.kO(this.title,e)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mn.prototype,"data",void 0);_.d([_.nP("#title"),_.B("design:type",HTMLElement)],mn.prototype,"title",void 0);_.d([_.SL({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],mn);
_.u(mn,"ytd-flow-top-bar-renderer",function(){if(tAb!==void 0)return tAb;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return tAb=e},{mode:1});var gkW;var jSl;var ygq;var aa=function(){return _.V.apply(this,arguments)||this};
_.U(aa,_.V);aa.prototype.freeTextValueChanged=function(){_.eA(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
aa.prototype.updateFreeTextValueFromBinding=function(e){this.freeTextValue=e.detail.value};
_.lB.Object.defineProperties(aa.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(z=(e=this.data)==null?void 0:e.responseMaxLength)!=null?z:500,w;return((w=this.freeTextValue)!=null?w:"").length>=C?"maxed-out":""}}});
aa.prototype.freeTextValueChanged=aa.prototype.freeTextValueChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],aa.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],aa.prototype,"freeTextValue",void 0);_.d([_.nP("#user-input"),_.B("design:type",HTMLTextAreaElement)],aa.prototype,"input",void 0);
_.d([_.P("freeTextValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],aa.prototype,"characterLimitClass",null);_.d([_.mi("freeTextValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],aa.prototype,"freeTextValueChanged",null);_.d([_.fP({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],aa);
_.u(aa,"yt-free-text-input-flow-step-renderer",function(){if(ygq===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;jSl===void 0&&(jSl=document.createElement("template"));var w=jSl;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ygq=e}e=ygq;return e},{mode:2});var nX=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return e};
_.U(nX,_.V);nX.prototype.handleFreeTextFlowStepInputChanged=function(e){_.eA(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:e}}])};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],nX.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],nX.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],nX.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],nX);
_.u(nX,"ytd-free-text-input-flow-step-renderer",function(){if(gkW!==void 0)return gkW;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return gkW=e},{mode:1});var cgY;var Agb;var ZKl=function(){return _.V.apply(this,arguments)||this};
_.U(ZKl,_.V);_.d([_.F(),_.B("design:type",Object)],ZKl.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],ZKl);
_.u(ZKl,"ytd-metadata-line-renderer",function(){if(Agb!==void 0)return Agb;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Agb=e},{mode:1});var Mc=function(){return _.V.apply(this,arguments)||this};
_.U(Mc,_.V);Mc.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Mc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Mc.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Mc.prototype,"isMasthead",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Mc);
_.u(Mc,"ytd-media-product-renderer",function(){if(cgY!==void 0)return cgY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return cgY=e},{mode:1});var pfb;var rV=function(){return _.V.apply(this,arguments)||this};
_.U(rV,_.V);rV.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
rV.prototype.onBillboardImageLoaded=function(){_.pi(this.hostElement,"yt-refit")};
rV.prototype.onBillboardImageLoaded=rV.prototype.onBillboardImageLoaded;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rV.prototype,"data",void 0);_.d([_.nP("#billboardImage"),_.B("design:type",Object)],rV.prototype,"billboardImage",void 0);_.d([_.Qi("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rV.prototype,"onBillboardImageLoaded",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],rV);
_.u(rV,"ytd-billboard-masthead-renderer",function(){if(pfb!==void 0)return pfb;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pfb=e},{mode:1});var eAl;var Hz=function(){var e=_.V.apply(this,arguments)||this;e.smallSize=!1;return e};
_.U(Hz,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Hz.prototype,"ytComponentBehaviorType",void 0);_.d([_.F(),_.B("design:type",Object)],Hz.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hz.prototype,"smallSize",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Hz);
_.u(Hz,"ytd-bullet-formatted-string",function(){if(eAl!==void 0)return eAl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return eAl=e},{mode:1});var zAZ;var Uo=function(){return _.V.apply(this,arguments)||this};
_.U(Uo,_.V);Uo.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Uo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Uo.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Uo);
_.u(Uo,"ytd-offer-detail-renderer",function(){if(zAZ!==void 0)return zAZ;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zAZ=e},{mode:1});var C7W;var vz=function(){return _.V.apply(this,arguments)||this};
_.U(vz,_.V);vz.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vz.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],vz);
_.u(vz,"ytd-offer-detail-step-renderer",function(){if(C7W!==void 0)return C7W;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return C7W=e},{mode:1});var wHb;var Ia=function(){var e=_.V.apply(this,arguments)||this;e.isInOfferModule=!1;return e};
_.U(Ia,_.V);_.Y=Ia.prototype;_.Y.computeHasEndpoint=function(){var e;return!((e=this.data)==null||!e.onClickCommand)};
_.Y.dataChanged=function(){var e;if((e=this.data)==null?0:e.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")};
_.Y.detached=function(){var e;if((e=this.data)==null?0:e.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.Y.handleClickEvent=function(){var e;if((e=this.data)==null?0:e.onClickCommand){var z;this.componentBehavior.resolveCommand((z=this.data)==null?void 0:z.onClickCommand)}};
_.Y.onContentKeyDown=function(e){e.key==="Enter"?this.handleClickEvent(e):e.key===" "&&e.preventDefault()};
_.Y.onContentKeyUp=function(e){e.key===" "&&this.handleClickEvent(e)};
Ia.prototype.dataChanged=Ia.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Ia.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ia.prototype,"data",void 0);_.d([_.F({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Ia.prototype,"hasEndpoint",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ia.prototype,"isInOfferModule",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ia.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Ia);
_.u(Ia,"ytd-channel-masthead-renderer",function(){if(wHb!==void 0)return wHb;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return wHb=e},{mode:1});var K6Y;var Wz=function(){var e=_.V.apply(this,arguments)||this;e.thumbnailObjectFit="CONTAIN";e.thumbnailObjectPosition="LEFT";e.isExpanded=!1;return e};
_.U(Wz,_.V);_.Y=Wz.prototype;_.Y.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.Y.dataChanged=function(){this.resetStates()};
_.Y.computeisTapOnOfferInfoContainerEnabled=function(){var e;return((e=this.data)==null?void 0:e.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.Y.onExpandBtnClick=function(){var e,z=_.r((e=this.data)==null?void 0:e.showMoreButtonRenderer,MAW);z&&_.Zw(_.nm(),z.trackingParams);this.isExpanded=!this.isExpanded};
_.Y.onOfferInfoClick=function(e){this.isTapOnOfferInfoContainerEnabled&&(_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.C7(_.cJ(e)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.Y.onBottomBarClick=function(){this.executeTapCommand()};
_.Y.executeTapCommand=function(){var e,z=(e=this.data)==null?void 0:e.tapCommand;z&&this.ytComponentBehavior.resolveCommand(z)};
_.Y.resetStates=function(){this.isExpanded=!1};
_.lB.Object.defineProperties(Wz.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var e=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),z,C,w;return((z=this.data)==null?void 0:z.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&e&&!!((C=this.data)==null?0:(w=C.benefits)==null?0:w.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((z=_.r((e=this.data)==null?void 0:e.showMoreButtonRenderer,MAW))==null?void 0:z.showMoreButtonTitle)||((C=this.data)==null?void 0:C.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((z=_.r((e=this.data)==null?void 0:e.showMoreButtonRenderer,MAW))==null?void 0:z.showLessButtonTitle)||((C=this.data)==null?void 0:C.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var e;return(e=this.showLessButtonTitle)!=null?e:""}var z;return(z=this.showMoreButtonTitle)!=null?z:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?void 0:e.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((z=this.data)==null?0:z.footerTitle)||((C=this.data)==null?0:C.footerSubtitle))}}});
Wz.prototype.dataChanged=Wz.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Wz.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",String)],Wz.prototype,"thumbnailObjectFit",void 0);
_.d([_.F(),_.B("design:type",String)],Wz.prototype,"thumbnailObjectPosition",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.B("design:type",Boolean)],Wz.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.d([_.F(),_.B("design:type",Object)],Wz.prototype,"isExpanded",void 0);_.d([_.F(),_.B("design:type",Object)],Wz.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.footerIcon)"}),_.B("design:type",String)],Wz.prototype,"icon",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wz.prototype,"dataChanged",null);_.d([_.P("data.thumbnail"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wz.prototype,"hasThumbnail",null);_.d([_.P("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wz.prototype,"enableExpandButton",null);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wz.prototype,"enableOfferContentIcon",null);_.d([_.P("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wz.prototype,"showMoreButtonTitle",null);_.d([_.P("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wz.prototype,"showLessButtonTitle",null);
_.d([_.P("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.B("design:type",String),_.B("design:paramtypes",[])],Wz.prototype,"expandedBtnText",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wz.prototype,"enableBottomBar",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Wz);
_.u(Wz,"ytd-offer-card-renderer",function(){if(K6Y!==void 0)return K6Y;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return K6Y=e},{mode:1});var ozW;var Pz=function(){return _.V.apply(this,arguments)||this};
_.U(Pz,_.V);Pz.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"}}}};
Pz.prototype.onClick=function(e){if(!_.zi(e.composedPath()||[],this.hostElement,["A".toString()])){var z,C;if((e=(C=_.r((z=this.data)==null?void 0:z.actionButton,_.a2))==null?void 0:C.command)&&!this.ytComponentBehavior.resolveCommand(e)){var w;(w=_.nm())==null||w.clickCommand(e);_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})}}};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Pz.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Pz.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Pz);
_.u(Pz,"ytd-offer-content-renderer",function(){if(ozW!==void 0)return ozW;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ozW=e},{mode:1});var GqW;var Ra=function(){return _.V.apply(this,arguments)||this};
_.U(Ra,_.V);Ra.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.lB.Object.defineProperties(Ra.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.title)||!((z=this.data)==null||!z.description)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ra.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ra.prototype,"hasHeaderData",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Ra);
_.u(Ra,"ytd-offer-section-renderer",function(){if(GqW!==void 0)return GqW;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return GqW=e},{mode:1});var Yk5;var LX=function(){return _.V.apply(this,arguments)||this};
_.U(LX,_.V);
LX.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"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],LX.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],LX);
_.u(LX,"ytd-offer-selection-step-renderer",function(){if(Yk5!==void 0)return Yk5;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Yk5=e},{mode:1});var b4v;var hx=function(){return _.V.apply(this,arguments)||this};
_.U(hx,_.V);hx.prototype.computeStyle=function(e){return e};
hx.prototype.computeImageWidth=function(e){return e==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.d([_.F({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],hx.prototype,"containerStyle",void 0);_.d([_.F({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.B("design:type",String)],hx.prototype,"imageWidth",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hx.prototype,"data",void 0);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],hx);
_.u(hx,"ytd-confirmation-masthead-renderer",function(){if(b4v!==void 0)return b4v;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return b4v=e},{mode:1});var XHq;var Oo=function(){return _.V.apply(this,arguments)||this};
_.U(Oo,_.V);Oo.prototype.computeStyle=function(e){return e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Oo.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.B("design:type",String)],Oo.prototype,"containerStyle",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Oo);
_.u(Oo,"ytd-purchase-complete-detail-renderer",function(){if(XHq!==void 0)return XHq;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return XHq=e},{mode:1});var JOq;var Eo=function(){var e=_.V.apply(this,arguments)||this;e.scriptsAppended=!1;return e};
_.U(Eo,_.V);Eo.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"}}}};
Eo.prototype.onDataChanged=function(){var e=this.get("data.gtmId");e&&(_.oQ(e,_.j5("GL","")),this.setupConversionTracking())};
Eo.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var e=document.createElement("noscript");e.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(e);this.scriptsAppended=!0}};
Eo.prototype.onDataChanged=Eo.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Eo.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Eo.prototype,"scriptsAppended",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eo.prototype,"onDataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Eo);
_.u(Eo,"ytd-purchase-complete-step-renderer",function(){if(JOq!==void 0)return JOq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return JOq=e},{mode:1});var kqW;var Fv=function(){return _.V.apply(this,arguments)||this};
_.U(Fv,_.V);Fv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Fv.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Fv);
_.u(Fv,"ytd-ypc-transaction-error-message-renderer",function(){if(kqW!==void 0)return kqW;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return kqW=e},{mode:1});var qkf;var xqC;var VR=function(){var e=_.V.apply(this,arguments)||this;e.handlePhoneVerificationSuccess=function(z){if(e.isValidPhoneVerificationCompletionMessageEvent(z)){var C;((C=e.data)==null?0:C.nextStepCommand)&&e.ytComponentBehavior.resolveCommand(e.data.nextStepCommand)}};
return e};
_.U(VR,_.V);VR.prototype.isValidPhoneVerificationCompletionMessageEvent=function(e){if(e.data!=="yt-phone-verification-complete")return!1;e=_.kB(e.origin);return e!==null&&e.includes("youtube.com")};
VR.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
VR.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],VR.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],VR.prototype,"data",void 0);_.d([_.fP({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],VR);
_.u(VR,"yt-feature-enablement-soft-entry-renderer",function(){if(xqC===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;qkf===void 0&&(qkf=document.createElement("template"));var w=qkf;C.call(z,w.content.cloneNode(!0),e.content.firstChild);xqC=e}e=xqC;return e},{mode:1});var Tkq;var $qE;var ldL;var Quo;var mqZ=function(){return _.V.apply(this,arguments)||this};
_.U(mqZ,_.V);_.d([_.F(),_.B("design:type",Object)],mqZ.prototype,"data",void 0);_.d([_.fP({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],mqZ);
_.u(mqZ,"yt-benefits-item-renderer",function(){if(Quo===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;ldL===void 0&&(ldL=document.createElement("template"));var w=ldL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Quo=e}e=Quo;return e},{mode:2});var ad3;var nzL;var fX=function(){return _.V.apply(this,arguments)||this};
_.U(fX,_.V);fX.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
fX.prototype.computeisWithoutPadding=function(){var e;return((e=this.data)==null?void 0:e.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],fX.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.B("design:type",Boolean)],fX.prototype,"isWithoutPadding",void 0);_.d([_.fP({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],fX);
_.u(fX,"yt-benefits-section-renderer",function(){if(nzL===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ad3===void 0&&(ad3=document.createElement("template"));var w=ad3;C.call(z,w.content.cloneNode(!0),e.content.firstChild);nzL=e}e=nzL;return e},{mode:2});var SK=function(){return _.V.apply(this,arguments)||this};
_.U(SK,_.V);SK.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
SK.prototype.computeisUsingLargeWidth=function(){var e;return((e=this.data)==null?void 0:e.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],SK.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.B("design:type",Boolean)],SK.prototype,"isUsingLargeWidth",void 0);_.d([_.fP({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],SK);
_.u(SK,"yt-benefits-flow-step-renderer",function(){if($qE===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Tkq===void 0&&(Tkq=document.createElement("template"));var w=Tkq;C.call(z,w.content.cloneNode(!0),e.content.firstChild);$qE=e}e=$qE;return e},{mode:2});var MJa;var rOY;var u8=function(){return _.V.apply(this,arguments)||this};
_.U(u8,_.V);u8.prototype.checkIsUsingLargeWidth=function(){var e;return((e=this.data)==null?void 0:e.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.d([_.F(),_.B("design:type",Object)],u8.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);_.d([_.F({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.B("design:type",Boolean)],u8.prototype,"isUsingLargeWidth",void 0);_.d([_.fP({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],u8);
_.u(u8,"yt-confirmation-flow-step-renderer",function(){if(rOY===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;MJa===void 0&&(MJa=document.createElement("template"));var w=MJa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);rOY=e}e=rOY;return e},{mode:2});var H4v;var UqC;var vz$=function(){return _.V.apply(this,arguments)||this};
_.U(vz$,_.V);_.d([_.F(),_.B("design:type",Object)],vz$.prototype,"data",void 0);_.d([_.fP({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],vz$);
_.u(vz$,"yt-info-flow-step-renderer",function(){if(UqC===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;H4v===void 0&&(H4v=document.createElement("template"));var w=H4v;C.call(z,w.content.cloneNode(!0),e.content.firstChild);UqC=e}e=UqC;return e},{mode:2});var IdZ;var W6v;var P7q=function(){return _.V.apply(this,arguments)||this};
_.U(P7q,_.V);_.d([_.F(),_.B("design:type",Object)],P7q.prototype,"data",void 0);_.d([_.fP({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],P7q);
_.u(P7q,"yt-info-list-flow-step-renderer",function(){if(W6v===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;IdZ===void 0&&(IdZ=document.createElement("template"));var w=IdZ;C.call(z,w.content.cloneNode(!0),e.content.firstChild);W6v=e}e=W6v;return e},{mode:2});var RA5=_.f(function(e){var z=e.data;return _.x("styled-text-view-model",{class:_.qT("ytStyledTextViewModelHost",function(){return mxo(z().fontAttributes)},function(){return QkL(z().color)})},_.x(_.U2,{text:function(){return z().text},
ariaLabel:function(){var C,w,K;return(K=(C=z().accessibility)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label)!=null?K:""}}))},"yh");
RA5.idomCompat=!0;var L6W=_.f(function(e){var z=function(){var K,G,X,J;return(J=(X=(K=e.alt)==null?void 0:K.call(e))!=null?X:(G=e.data().accessibilityData)==null?void 0:G.label)!=null?J:""},C=function(){return e.data().imageWidth},w=function(){return e.data().imageHeight};
return _.x("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.x(_.l,{cond:function(){var K=e.data();if(K){var G,X,J;var q=((G=_.lh().resolve(_.$B(_.jQ)))==null?0:G())?(X=K.imageDark)!=null?X:K.imageLight:(J=K.imageLight)!=null?J:K.imageDark}else q=void 0;return q},
then:function(K){return _.x(_.Zf,Object.assign({},e,{data:K,alt:z,targetWidth:C,targetHeight:w,preserveHeight:!0,preserveWidth:!0}))}}))},"zh");
L6W.idomCompat=!0;var dV=_.f(function(e){var z=e.data;e=_.pP(function(){return z().slots},[]);
var C=_.pP(function(){return z().layoutProperties},{}),w=_.lh().resolve(_.c9);
return _.x("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:q8b(C,w)},_.x(_.ui,{each:e,keyBy:"INDEX"},function(K){return _.x("div",{class:"ytContainerLayoutViewModelSlot",style:q8b(function(){return K().layoutProperties},w)},_.x(_.PF,{data:function(){return K().contents}},{containerLayoutViewModel:dV,
badgeViewModel:_.Se,buttonViewModel:_.iz,styledTextViewModel:RA5,contentPreviewImageViewModel:function(G){return _.x(_.gH,{data:G.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(G){return _.x(L6W,{data:G.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ah");
dV.idomCompat=!0;var hAa=_.f(function(e){var z=e.data;var C=e.stateFns;var w=function(){var T=z(),Q=T.productId;return!(!T.clearGroupId&&!Q)},K=function(){var T=z(),Q=T.clearGroupId;
return(T=T.productId)?C().isProductSelected(T):Q?C().getSelectedProductByGroupId(Q)==null:!1},G=function(T){var Q=z(),m=Q.clearGroupId;
if(Q=Q.productId)C().onProductSelected(Q),T==null||T.forEach(function(a){_.NF(a)});
else if(m)C().onClearGroupSelected(m)},X=function(){var T=z(),Q=T.clearGroupId;
if(T=T.productId){var m;return"group:"+(((m=C().getProductById(T))==null?void 0:m.groupId)||"")}return Q?"group:"+Q:""},J=_.pP(function(){return z().header},[]),q=_.pP(function(){return z().body},[]);
return _.x("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.x(_.l,{cond:function(){return J().length>0||w()},
then:function(){return _.x("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.x("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.x(_.PF,{data:J},{containerLayoutViewModel:function(T){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(dV,{data:T.data}))},
styledTextViewModel:function(T){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(RA5,{data:T.data}))}})),_.x(_.l,{cond:w,
then:function(){return _.x("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.x(_.vX,{checked:K,name:X,onChange:function(){G(z().onSelect)}}))}}))}}),_.x(_.l,{cond:function(){return q().length>0},
then:function(){return _.x("div",null,_.x(_.PF,{data:q},{containerLayoutViewModel:function(T){return _.x("div",{class:"ytPdpCardSectionViewModelContentItem"},_.x(dV,{data:T.data}))}}))}}))},"Bh");
hAa.idomCompat=!0;var O4b=_.f(function(e){var z=e.data;var C=e.stateFns;return _.x("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.x(_.l,{cond:function(){return z().banner},
then:function(w){return _.x("div",{class:"ytPdpCardViewModelBanner"},_.x(_.U2,{text:w}))}}),_.x(_.PF,{data:function(){return z().sections}},{pdpCardSectionViewModel:function(w){w=w.data;
var K={};return _.x("div",{class:_.qT("ytPdpCardViewModelSectionContainer",(K.ytPdpCardViewModelShowDividers=function(){return z().showDividers},K))},_.x(hAa,{data:w,
stateFns:C}))}}))},"Ch");
O4b.idomCompat=!0;var EzC=_.f(function(e){var z=e.data;var C=e.isOverlay;e={};return _.x("pdp-masthead-view-model",{class:_.qT("ytPdpMastheadViewModelHost",(e.ytPdpMastheadViewModelIsOverlay=C,e))},_.x(_.PF,{data:function(){return z().image}},{contentPreviewImageViewModel:_.gH,
themedImageViewModel:function(w){return _.x(L6W,{data:w.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.x(_.l,{cond:function(){return z().title},
then:function(w){return _.x("h1",{class:"ytPdpMastheadViewModelHeading"},_.x(_.U2,{text:w,isOverlay:C}))}}),_.x(_.ui,{each:function(){var w;
return(w=z().finePrint)!=null?w:[]}},function(w){return _.x("div",{class:"ytPdpMastheadViewModelFinePrint"},_.x(_.U2,{text:w,
isOverlay:C}))}))},"Dh");
EzC.idomCompat=!0;var F6Y=_.f(function(e){var z=e.data;var C=e.stateFns;var w=function(){return"pdp-pricing-group-selector-"+z().pricingGroupAttributeIds},K=_.pP(function(){return z().pricingGroupSelectorSectionHeader});
return _.x("pdp-pricing-group-selector-view-model",null,_.x(_.l,{cond:function(){return!!K()},
then:function(){return _.x(_.PF,{data:K},{sectionHeaderViewModel:function(G){G=G.data;var X={};return _.x("div",{class:_.qT("ytPdpPricingGroupSelectorViewModelSectionHeader",(X.ytPdpPricingGroupSelectorViewModelFullBleed=!0,X.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,X))},_.x(_.C5,{data:G}))}})}}),_.x("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.x(_.ui,{each:function(){var G=C().getSelectedProductByGroupId(z().groupId);
if(!G)return _.cn(Error("$j`"+z().groupId)),[];var X,J=(X=z().pricingGroupAttributeIds)!=null?X:[],q;if((q=G.pricingGroups)==null||!q.length||!J.length)return[];X=G.pricingGroups.filter(function(a){return J.length?a.pricingGroupAttributes.every(function(n){return J.includes(n)}):!1});
G=[];if(J.length>0){X=[].concat(_.s_(X));q=_.b(J);for(var T=q.next(),Q={};!T.done;Q={targetAttrId:void 0},T=q.next())Q.targetAttrId=T.value,T=X.findIndex(function(a){return function(n){return n.pricingGroupAttributes.includes(a.targetAttrId)}}(Q)),T!==-1&&(G.push(X[T]),X.splice(T,1))}var m=C().getSelectedPricingGroupAttributesByGroupId(z().groupId);
return G.map(function(a){var n=!1;m&&a.pricingGroupAttributes&&(n=Xv(a.pricingGroupAttributes,m));return{pricingGroup:a,isSelected:n}})},
keyBy:function(G){return G.pricingGroup.pricingGroupId}},function(G){return _.x("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.x("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.x(_.PF,{data:function(){return G().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:dV})),_.x("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.x(_.vX,{checked:function(){return G().isSelected},
name:w,onClick:function(){var X=G().pricingGroup;C().onPricingGroupSelected(X.pricingGroupId);if(X=_.SQ(X.onSelectPricingGroup)){var J;(J=_.lh().resolve(_.ms))==null||J.resolveCommand(X)}}})))})))},"Eh");
F6Y.idomCompat=!0;var VJa=_.f(function(e){var z=e.data;var C=e.stateFns;var w=function(){var X=C().getSelectedPricingOptions().map(function(T){return T.pricingOptionId}),J=C().getSelectedProductByGroupId(z().groupId);
if(!J)return _.cn(Error("ak`"+z().groupId)),[];var q=C().getSelectedPricingGroupAttributesByGroupId(z().groupId);return HGv(J.pricingOptions,q,X)},K=_.pP(function(){return z().pricingOptionSelectorSectionHeader}),G=function(){return w().length>1};
return _.x("pdp-pricing-option-selector-view-model",null,_.x(_.l,{cond:function(){return!!K()&&G()},
then:function(){return _.x(_.PF,{data:K},{sectionHeaderViewModel:function(X){X=X.data;var J={};return _.x("div",{class:_.qT("ytPdpPricingOptionSelectorViewModelSectionHeader",(J.ytPdpPricingOptionSelectorViewModelFullBleed=!0,J.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,J))},_.x(_.C5,{data:X}))}})}}),_.x(_.l,{cond:G,
then:function(){return _.x("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.x(_.ui,{each:w,keyBy:"INDEX"},function(X){return _.x("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.x("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.x(_.PF,{data:function(){return X().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:dV})),_.x("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.x(_.vX,{checked:function(){return X().isSelected},
onClick:function(){C().onPricingOptionSelected(X().pricingOption.pricingOptionId);var J=X().pricingOption.onSelectPricingOption;if(J=_.SQ(J)){var q;(q=_.lh().resolve(_.ms))==null||q.resolveCommand(J)}}})))}))}}))},"Fh");
VJa.idomCompat=!0;var fdL=_.f(function(e){var z=e.data;var C=e.stateFns;return _.x("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.x(_.PF,{data:function(){var w,K;return(K=(w=C().getSelectedPricingOptions()[0])==null?void 0:w.primaryButton)!=null?K:z().emptyStateButton}},{buttonViewModel:_.iz}))},"Gh");
fdL.idomCompat=!0;var Skv=_.f(function(e){var z=e.stateFns;return _.x("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.x(_.PF,{data:function(){return z().getSelectedPricingOptions().flatMap(function(C){return C.summaryLines}).filter(function(C){return!!C})}},{containerLayoutViewModel:function(C){return _.x("div",{class:"ytPdpSummaryViewModelLineItem"},_.x(dV,{data:C.data}))}}))},"Hh");
Skv.idomCompat=!0;var unE=_.f(function(e){function z(H){var I=X();_.ZL(_.d$("pdpStateEntity",I,{key:I,selectedPricingOptions:H}))}
var C=e.data;var w=e.internalScrolling;var K=e.stateFnsForTesting;var G=_.pP(function(){return C().allProducts},[]),X=_.pP(function(){return C().pdpStateEntityKey},""),J=_.vF(Uxo,X),q=_.hG(function(){_.gp(!0);
var H;return(H=K==null?void 0:K())!=null?H:IOq(J,G,z)},void 0,"Pzdsic"),T=_.pP(function(){return C().body},[]),Q=_.pP(function(){return C().columnBreakHints},[]),m=function(){return C().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},a=function(){return m()||C().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},n=_.hG(function(){var H=_.yA(C().background),I;
if(H==null?0:(I=H.sources)==null?0:I.length){var L=L===void 0?!0:L;H=_.xis(void 0,H.sources,void 0,L,L?1E3:void 0,L?void 0:1E3)}else H=null;return H},void 0,"RDPOae");
_.sg(function(){var H=C().onStartCommand;if(H&&(H=_.SQ(H))){var I;(I=_.lh().resolve(_.ms))==null||I.resolveCommand(H)}});
e={};return _.x("pdp-view-model",{class:_.qT("ytPdpViewModelHost",(e.ytPdpViewModelHasBackground=function(){return a()||!!n()},e.ytPdpViewModelHasDarkBackground=a,e.ytPdpViewModelHasScrim=m,e.ytPdpViewModelInternalScrolling=w,e.ytPdpViewModelForceSingleColumn=function(){return Q().length===0},e)),
style:_.QC({"--pdp-view-model-background":function(){return n()?"url("+n()+")":void 0}})},_.x("div",{class:"ytPdpViewModelColumnContainer"},_.x(_.ui,{each:function(){return WAL(T(),Q())},
keyBy:"INDEX"},function(H){return _.x("div",{class:"ytPdpViewModelColumn"},_.x(_.PF,{data:H},{containerLayoutViewModel:function(I){return _.x(DB,null,_.x(dV,{data:I.data}))},
dividerViewModel:function(I){return _.x(DB,{fullBleed:!0},_.x(_.$9a,{data:I.data}))},
pdpCardViewModel:function(I){return _.x(DB,null,_.x(O4b,{data:I.data,stateFns:q}))},
pdpMastheadViewModel:function(I){return _.x(DB,null,_.x(EzC,{data:I.data,isOverlay:a}))},
pdpPricingGroupSelectorViewModel:function(I){return _.x(DB,null,_.x(F6Y,{data:I.data,stateFns:q}))},
pdpPricingOptionSelectorViewModel:function(I){return _.x(DB,null,_.x(VJa,{data:I.data,stateFns:q}))},
pdpPrimaryButtonViewModel:function(I){return _.x(DB,null,_.x(fdL,{data:I.data,stateFns:q}))},
pdpSummaryViewModel:function(I){return _.x(DB,null,_.x(Skv,{data:I.data,stateFns:q}))},
sectionHeaderViewModel:function(I){return _.x(DB,{fullBleed:!0,noVerticalPadding:!0},_.x(_.C5,{data:I.data}))}}))})))},"Ih");
unE.idomCompat=!0;var DB=_.f(function(e){var z={};return _.x("div",{class:_.qT("ytPdpViewModelItem",(z.ytPdpViewModelFullBleed=e.fullBleed,z.ytPdpViewModelNoVerticalPadding=e.noVerticalPadding,z))},e.children)},"Jh");_.KU(unE,"pdp-view-model",{props:{data:_.vh,stateFnsForTesting:_.z9,internalScrolling:_.z9}});var dqv=_.f(function(e){var z=e.data;var C=e.className;var w=_.vF(_.KM,function(){return z().flowStateEntityKey});
return _.x("ytm-premium-purchase-button-renderer",{class:_.qT("ytPremiumPurchaseButtonRendererHost",C)},_.x(_.PF,{data:function(){var K;return(K=_.r(w(),R$b))==null?void 0:K.primaryButtonOverride}},{buttonRenderer:function(K){return _.x(_.f9,{data:K.data,
className:C})},
buttonViewModel:function(K){return _.x(_.iz,{data:K.data,className:C})}}))},"Kh");
dqv.idomCompat=!0;var Dqb=_.f(function(e){var z=e.data;e=e.className;var C=function(){return PB5(z().style)},w=_.qT("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",C),K=_.qT("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",C);
return _.x("yt-flow-bottom-bar-renderer",{class:_.qT("yt-flow-bottom-bar-renderer",e,C)},_.x(_.PF,{data:function(){return z().secondaryButton}},{buttonRenderer:function(G){return _.x(_.f9,{data:G.data,
className:K})},
buttonViewModel:function(G){return _.x(_.iz,{data:G.data,className:K})},
premiumPurchaseButtonRenderer:function(G){return _.x(dqv,{data:G.data,className:K})}}),_.x(_.PF,{data:function(){return z().primaryButton}},{buttonRenderer:function(G){return _.x(_.f9,{data:G.data,
className:w})},
buttonViewModel:function(G){return _.x(_.iz,{data:G.data,className:w})},
premiumPurchaseButtonRenderer:function(G){return _.x(dqv,{data:G.data,className:w})}}))},"Lh");
Dqb.idomCompat=!0;_.KU(Dqb,"yt-flow-bottom-bar-renderer",{props:{data:_.vh,className:_.vh}});var i4E=_.f(function(e){var z=_.qT(e.className,"ytOfferSummaryRendererHost");return _.x("yt-offer-summary-renderer",{class:z},_.x("div",{class:"ytOfferSummaryRendererTextContainer"},_.x("div",{class:"ytOfferSummaryRendererEyebrowText"},_.x(_.U2,{text:function(){return e.data().eyebrowText}})),_.x("div",{class:"ytOfferSummaryRendererTitle"},_.x(_.U2,{text:function(){return e.data().title}})),_.x("div",{class:"ytOfferSummaryRendererSubtitle"},_.x(_.U2,{text:function(){return e.data().subtitle}})),_.x("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.x(_.ui,{each:function(){var C;
return(C=e.data().featureListData)!=null?C:[]}},function(C){var w;
return _.x("div",{class:"ytOfferSummaryRendererFeatureList"},_.x(_.mB,{icon:(w=C.icon)==null?void 0:w.iconType,active:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(C.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.x("div",{class:"ytOfferSummaryRendererFeatureListText"},_.x(_.U2,{text:C.text,
className:function(){return C.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.x("div",{class:"ytOfferSummaryRendererDescription"},_.x(_.U2,{text:function(){return e.data().description}}))))},"Mh");_.KU(_.f(function(e){var z={};z=_.qT("ytOfferSummaryFlowStepRendererHost",(z.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=e.shouldDisableHeaderTopMargin,z));return _.x("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:z},_.x("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.x("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.x(_.U2,{text:function(){return e.data().header}})),_.x("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.x(_.U2,{text:function(){return e.data().subtitle}}))),_.x("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.x(_.PF,{data:function(){return e.data().offerSummary}},{offerSummaryRenderer:function(C){return _.x(i4E,{data:C.data,
className:e.flowClassName})}})))},"Nh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.z9,
flowClassName:_.z9,flowStateEntityKey:_.z9,shouldDisableHeaderTopMargin:_.z9}});var Nk5=_.f(function(e){var z=e.data;var C=e.className;var w=e.flowStateEntityKey;var K=e.selectionStepStyle;e=_.T9(function(q){var T=z(),Q=w==null?void 0:w();q.target&&(q.stopPropagation(),q=Q||"",Q=_.KM(_.AK().getState(),q),T=Object.assign({},Q,{premiumPurchaseFlowState:{selectedOptionId:T.optionId,primaryButtonOverride:T.primaryButtonOverride}}),_.AK().dispatch(_.Rx("flowStateEntity",q,T)));return!1});
var G=function(){return(w==null?void 0:w())||""},X=_.vF(_.KM,G);
_.sg(function(){var q=z(),T=G(),Q=X();q.defaultSelected&&T!==""&&q.primaryButtonOverride&&LAl(q.optionId||"",T,q.primaryButtonOverride,Q)});
var J={};return _.x("ytm-option-item-renderer",{"on:click":e,class:_.qT(C,"ytm-option-item-renderer",(J["ytm-option-item-renderer--lp2-style"]=function(){return(K==null?void 0:K())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},J))},_.x("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.x("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var q=z(),T=G(),Q=X();Q=_.r(Q,R$b);return(Q?(Q==null?void 0:Q.selectedOptionId)||"":q.defaultSelected&&T!==""?(q==null?void 0:q.optionId)||"":"")===z().optionId},
name:("input"+_.e_(_.M7)).toString()})),_.x("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.x(_.PF,{data:function(){return z().titleBadge}},{badgeViewModel:function(q){return _.x(_.Se,{data:q.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.x(_.l,{cond:function(){return z().eyebrowText},
then:function(){return _.x("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.x(_.U2,{text:function(){return z().eyebrowText}}))}}),_.x("div",{class:"ytm-option-item-renderer__option-item-title"},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.x(_.U2,{text:function(){return z().subtitle}})),_.x(_.l,{cond:function(){return z().featureListData},
then:function(){return _.x("div",{class:"ytm-option-item-renderer__feature-list-data"},_.x(_.ui,{each:function(){return z().featureListData||[]}},function(q){var T,Q=(T=q.icon)==null?void 0:T.iconType;
a:switch(q.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":T="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":T="ytm-option-item-renderer__feature-list-icon-small";break a;default:T="ytm-option-item-renderer__feature-list-icon-default"}return _.x("div",{class:"ytm-option-item-renderer__feature-list"},_.x(_.mB,{icon:Q,className:T,active:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.x("div",{class:"ytm-option-item-renderer__feature-list-text"},_.x(_.U2,{text:q.text,
className:function(){return q.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.x("div",{class:"ytm-option-item-renderer__option-item-description"},_.x(_.U2,{text:function(){return z().description}}))))},"Oh");var sub=_.f(function(e){var z=e.data;var C=e.flowClassName;var w=e.flowStateEntityKey;var K=e.selectionStepStyle;return _.x("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.x("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.x("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.x(_.U2,{text:function(){return z().title}}),_.x(_.PF,{data:function(){return z().titleBadge}},{badgeViewModel:function(G){return _.x(_.Se,{data:G.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.x(_.l,{cond:function(){return z().subtitle},
then:function(){return _.x("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.x(_.U2,{text:function(){return z().subtitle}}))}}),_.x(_.l,{cond:function(){return z().featureListData},
then:function(G){return _.x("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.x(_.ui,{each:G},function(X){var J;return _.x("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.x(_.mB,{icon:(J=X.icon)==null?void 0:J.iconType,active:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(X.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.x("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.x(_.U2,{text:X.text,
className:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.x(_.l,{cond:function(){return z().secondaryTitle},
then:function(){return _.x("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.x(_.U2,{text:function(){return z().secondaryTitle}}))}}),_.x(_.ui,{each:function(){return z().sectionDisclaimers||[]}},function(G){return _.x("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.x(_.U2,{text:G}))})),_.x(_.PF,{data:function(){return z().optionItems}},{optionItemRenderer:function(G){return _.x("div",{class:"ytOptionSectionRendererOptionItem"},_.x(Nk5,{data:G.data,
className:C,flowStateEntityKey:w,selectionStepStyle:K}))}}),_.x(_.l,{cond:function(){return z().offerText},
then:function(){return _.x("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.x(_.U2,{text:function(){return z().offerText}}))}}))},"Ph");
sub.idomCompat=!0;var Bkq=_.f(function(e){var z=e.data;var C=e.flowClassName;var w=e.flowStateEntityKey;e=e.isDesktop;var K=_.kI("div"),G=function(){var Q;return(Q=z().flowStateEntityKey)!=null?Q:w==null?void 0:w()},X=function(){return(G==null?void 0:G())||""},J=function(){return z().style},q=_.vF(_.KM,X);
_.sg(function(){h$5(z(),X(),q());setTimeout(function(){var Q;(Q=K.value)==null||Q.focus()})});
var T={};return _.x("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.qT("ytm-option-selection-flow-step-renderer",(T["ytm-option-selection-flow-step-renderer--desktop"]=e,T["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return z().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},T))},_.x("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"},
_.x("div",{el:K,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.x(_.U2,{text:function(){return z().header}})),_.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.x(_.U2,{text:function(){return z().subtitle}}))),_.x(_.PF,{data:function(){return z().optionItems||[]}},{optionItemRenderer:function(Q){return _.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.x(Nk5,{data:Q.data,
className:C,flowStateEntityKey:G,selectionStepStyle:J}))},
optionSectionRenderer:function(Q){return _.x("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.x(sub,{data:Q.data,flowClassName:C,flowStateEntityKey:G,selectionStepStyle:J}))}}))},"Qh");
Bkq.idomCompat=!0;_.KU(Bkq,"yt-option-selection-flow-step-renderer",{props:{data:_.vh,flowClassName:_.vh,flowStateEntityKey:_.vh,isDesktop:_.vh}});_.i8=_.f(function(e){var z=_.eQ(e,{type:1,disablePadding:!1,disablePrimaryButton:!1}),C=z.data,w=z.type;e=z.disablePadding;var K=z.disablePrimaryButton,G=z.onClickPrimaryButton,X=function(){return C().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},J=function(){return{disabled:K(),
state:K()?"disabled":"active"}},q=function(){return C().leadingLabel||C().trailingLabel};
z={};return _.x("yt-panel-footer-view-model",{class:_.qT("yt-panel-footer-view-model",(z["yt-panel-footer-view-model--hide-divider"]=function(){return C().shouldHideDivider},z["yt-panel-footer-view-model--disable-padding"]=e,z))},_.x(_.l,{cond:q,
then:function(){var T={},Q={};return _.x("div",{class:_.qT("yt-panel-footer-view-model__text-row",(T["yt-panel-footer-view-model--row-bottom-padding"]=function(){var m=C();return!(!m.leadingLabel&&!m.trailingLabel||!m.primaryButton&&!m.secondaryButton)},T))},_.x(_.U2,{text:function(){return C().leadingLabel},
className:_.qT((Q["yt-panel-footer-view-model--text-padding"]=q,Q))}),_.x(_.U2,{text:function(){return C().trailingLabel}}))}}),_.x(_.l,{cond:X,
then:function(){var T={};return _.x("div",{class:"yt-panel-footer-view-model__button-stack"},_.x("div",{class:_.qT("yt-panel-footer-view-model__primary-button",(T["yt-panel-footer-view-model__button-stack--top-button"]=function(){return C().secondaryButton},T))},_.x(_.PF,{data:function(){return C().primaryButton}},{buttonViewModel:function(Q){return _.x(_.iz,{data:Q.data,
buttonOverrides:J,onClick:G})}})),_.x(_.PF,{data:function(){return C().secondaryButton}},{buttonViewModel:_.iz}))}}),_.x(_.l,{cond:function(){return!X()},
then:function(){var T={},Q={},m={};return _.x("div",{class:_.qT("yt-panel-footer-view-model__button-row",(T["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===w()},T))},_.x("div",{class:_.qT("yt-panel-footer-view-model__button-row--left-button",(Q["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===w()},Q["yt-panel-footer-view-model__button-row--hidden"]=function(){return!C().secondaryButton||0===w()},Q["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===w()},Q))},_.x(_.PF,{data:function(){return C().secondaryButton}},{buttonViewModel:_.iz})),_.x("div",{class:_.qT("yt-panel-footer-view-model__primary-button",(m["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===w()||1===w()},m["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===w()},m))},_.x(_.PF,{data:function(){return C().primaryButton}},{buttonViewModel:function(a){return _.x(_.iz,{data:a.data,
buttonOverrides:J,onClick:G})}})))}}))},"Rh");
_.i8.idomCompat=!0;_.tJ5=_.f(function(e){e=_.eQ(e,{disablePadding:!1});var z=e.data,C=e.disablePadding;e=_.$0g(function(){return z().formId},void 0,function(){return z().onSubmitSuccess});
var w=e.submitForm,K=e.isValid,G=e.isSubmitting;return _.x("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.x(_.PF,{data:function(){return z().panelFooter}},{panelFooterViewModel:function(X){return _.x(_.i8,{data:X.data,
onClickPrimaryButton:function(){w()},
disablePrimaryButton:function(){return!K()||G()},
disablePadding:C})}}))},"Sh");_.KU(_.tJ5,"yt-form-footer-view-model",{props:{data:_.vh,disablePadding:_.vh}});var gzW=_.f(function(e){var z=_.M("enable_user_rating_web");return _.x("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.x(_.l,{cond:function(){var C;return(C=e.data())==null?void 0:C.image},
then:function(C){return _.x(_.Zf,{data:C,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.x(_.U2,{text:function(){var C;
return(C=e.data())==null?void 0:C.title}})),_.x("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.x(_.U2,{text:function(){var C;
return(C=e.data())==null?void 0:C.subtitle}})),_.x(_.l,{cond:function(){return!z},
then:function(){return _.x(_.PF,{data:function(){var C;return(C=e.data())==null?void 0:C.viewTipsButton}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Th");_.KU(gzW,"yt-contributor-zero-state-view-model",{props:{data:_.vh}});var ju5=_.f(function(e){var z=function(){var C;return(C=e.data())==null?void 0:C.image};
return _.x("yt-featured-content-item-view-model",{class:_.qT("ytFeaturedContentItemViewModelHost")},_.x("div",{class:_.qT(function(){return z()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.x("div",{class:function(){return z()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.x(_.l,{cond:z,
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelImage"},_.x(_.PF,{data:function(){return e.data().image}},{themedImageViewModel:function(C){return _.x(L6W,{data:C.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.x(_.l,{cond:function(){var C;
return!z()&&((C=e.data())==null?void 0:C.iconName)},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelIcon"},_.x(_.mB,{icon:function(){return e.data().iconName}}))}}),_.x("div",{class:"ytFeaturedContentItemViewModelContent"},_.x(_.l,{cond:function(){var C;
return(C=e.data())==null?void 0:C.title},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.x(_.U2,{text:function(){return e.data().title}}))}}),_.x(_.l,{cond:function(){var C;
return(C=e.data())==null?void 0:C.body},
then:function(){return _.x("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.x(_.U2,{text:function(){return e.data().body}}))}})))))},"Uh");var yOl=_.f(function(e){var z=function(){var K;return OG$((K=e.data())==null?void 0:K.titleFontSize)},C=function(){var K;
return EWl((K=e.data())==null?void 0:K.descriptionFontSize)},w=function(){var K;
return((K=e.data())==null?void 0:K.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.x("yt-landing-page-view-model",{class:_.qT("ytLandingPageViewModelHost",e.className)},_.x("div",{class:"ytLandingPageViewModelHeader"},_.x(_.l,{cond:function(){var K;return(K=e.data())==null?void 0:K.bannerImage},
then:function(K){return _.x("div",{class:"ytLandingPageViewModelHeaderImage"},_.x(_.PF,{data:function(){return K()}},{imageBannerViewModel:function(G){return _.x(_.L5,{data:G.data,
isPositionRelative:!0})}}))}}),_.x(_.l,{cond:function(){var K;
return(K=e.data())==null?void 0:K.bannerAnimation},
then:function(K){return _.x(_.AY,{data:function(){var G=K();if(G==null?0:G.url){var X;G={path:(X=G==null?void 0:G.url)!=null?X:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(G==null?0:G.payload){var J;G={animationData:JSON.parse((J=G==null?void 0:G.payload)!=null?J:""),autoplay:!0,loop:!0,renderer:"svg"}}else G=void 0;return{animationConfig:G}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.x("div",{class:"ytLandingPageViewModelHeaderTitle"},_.x(_.l,{cond:function(){var K;
return(K=e.data())==null?void 0:K.title},
then:function(K){return _.x("div",{class:_.qT("ytLandingPageViewModelHeaderTitleContent",z)},_.x(_.U2,{text:function(){return K()}}))}}),_.x(_.l,{cond:function(){var K;
return(K=e.data())==null?void 0:K.description},
then:function(K){var G={};return _.x(_.U2,{className:_.qT("ytLandingPageViewModelHeaderTitleDescription",C,(G.ytLandingPageViewModelHeaderTitleDescriptionMargin=w,G)),text:function(){return K()}})}}))),_.x(_.l,{cond:function(){var K,G;
return(K=e.data())==null?void 0:(G=K.featuredContentList)==null?void 0:G.length},
then:function(){return _.x("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.x(_.PF,{data:function(){return e.data().featuredContentList}},{featuredContentItemViewModel:function(K){return _.x(ju5,{data:K.data})}}))}}),_.x(_.l,{cond:function(){var K,G;
return(K=e.data())==null?void 0:(G=K.expandableContentList)==null?void 0:G.length},
then:function(){return _.x("div",{class:"ytLandingPageViewModelFaqSection"},_.x(_.PF,{data:function(){return e.data().expandableContentList}},{faqEntryViewModel:function(K){return _.x("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.x(_.Zta,{data:K.data}))}}))}}),_.x("div",{class:"ytLandingPageViewModelFooter"},_.x(_.l,{cond:function(){var K;
return(K=e.data())==null?void 0:K.legalCopy},
then:function(K){return _.x("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.x(_.U2,{text:function(){return K()}}))}}),_.x(_.l,{cond:function(){var K;
return(K=e.data())==null?void 0:K.actions},
then:function(K){return _.x("div",null,_.x(_.PF,{data:function(){return K()}},{flexibleActionsViewModel:function(G){return _.x(_.ml,{data:G.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Vh");_.KU(_.f(function(e){return _.x("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.x("div",{class:"ytLpSectionGroupViewModelContainer"},_.x(_.PF,{data:function(){return e.data().sections}},{landingPageViewModel:function(z){return _.x(yOl,{data:z.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Wh"),"yt-lp-section-group-view-model",{props:{data:_.vh}});var cOq=_.f(function(e){var z=e.data;var C=e.selectedKey;var w=e.onSelected;var K=e.groupName;var G=function(){return z().text},X=function(){return z().attributedText},J=function(){return z().subtext},q=function(){return z().attributedSubtext},T=_.x("div",{class:"ytRadioButtonItemViewModelLabel"},_.x(_.l,{cond:G,
then:function(){return _.x("div",null,G)}}),_.x(_.l,{cond:X,
then:function(){return _.x(_.U2,{text:X})}}),_.x(_.l,{cond:J,
then:function(){return _.x("div",{class:"ytRadioButtonItemViewModelSubText"},J)}}),_.x(_.l,{cond:q,
then:function(){return _.x("div",{class:"ytRadioButtonItemViewModelSubText"},_.x(_.U2,{text:q}))}})),Q=function(){if(X()){var a;
return(a=X())==null?void 0:a.content}return G()},m=function(){if(q()){var a;
return(a=q())==null?void 0:a.content}return J()};
e={};return _.x("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.x(_.vX,{name:K,checked:function(){return!(C==null||!C()||z().key!==(C==null?void 0:C()))},
onChange:function(a){w==null||w(a.target,z(),K==null?void 0:K())},
labelRenderable:function(){return T},
ariaLabel:function(){return m()?Q()+", "+m():Q()},
className:_.qT((e.ytRadioButtonItemViewModelSubTitle=function(){return!!z().subtext},e))}))},"Xh");_.AOW=_.f(function(e){var z=e.data;var C=function(){var w;return _.dE((w=z())==null?void 0:w.rendererContext)};
e={};return _.x("content-list-item-view-model",{el:_.ej(_.Dh(function(){return z().rendererContext})),
class:_.qT("ytContentListItemViewModelHost",(e.ytContentListItemViewModelTappable=C,e)),role:function(){return C()?"listitem":void 0},
tabindex:function(){return C()?0:void 0}},_.x("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.x("div",{class:"ytContentListItemViewModelImageContainer"},_.x(_.l,{cond:function(){return z().image},
then:function(w){return _.x(_.Zf,{data:w,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.x(_.PF,{data:function(){var w;
return(w=z())==null?void 0:w.avatar}},{avatarViewModel:_.lO})),_.x("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.x("div",{class:_.qT("ytContentListItemViewModelTitle",function(){a:{switch(z().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var w="ytContentListItemViewModelProminentTitle";
break a}w=void 0}return w})},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:"ytContentListItemViewModelMetadata"},_.x(_.PF,{data:function(){return z().metadata}},{contentMetadataViewModel:function(w){return _.x(_.yh,{data:w.data,
layout:1})}})))),_.x("div",{class:"ytContentListItemViewModelActionButton"},_.x(_.PF,{data:function(){var w;
return(w=z())==null?void 0:w.actionButton}},{buttonViewModel:_.iz,
toggleButtonViewModel:_.XG})))},"Yh");var Z4$=_.f(function(e){var z=e.data,C=function(){var K;return(K=z())==null?void 0:K.description},w=function(){var K;
return(K=z())==null?void 0:K.title};
return _.x("ytfc-youth-basic-section-header-view-model",{class:_.qT("ytfcYouthBasicSectionHeaderViewModelHost",e.className)},_.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.x(_.PF,{data:function(){var K;return(K=z())==null?void 0:K.avatar}},{avatarViewModel:_.lO}),_.x(_.l,{cond:function(){var K;
return _.yA((K=z())==null?void 0:K.themedImage)},
then:function(K){return _.x(_.Zf,{data:K,alt:function(){var G,X;return(X=(G=w())==null?void 0:G.content)!=null?X:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.x(_.l,{cond:w,
then:function(){return _.x(_.U2,{text:w,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.x(_.PF,{data:function(){var K;
return(K=z())==null?void 0:K.bottomBadge}},{badgeViewModel:function(K){return _.x("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.x(_.Se,{data:K.data}))}}),_.x(_.l,{cond:C,
then:function(){return _.x(_.U2,{text:C,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Zh");var pHf=_.f(function(e){var z=e.data;return _.x("ytfc-youth-section-body-view-model",{class:_.qT("ytfcYouthSectionBodyViewModelHost",e.className)},_.x(_.PF,{data:function(){var C;return(C=z())==null?void 0:C.topContent}},{avatarStackViewModel:function(C){return _.x(_.m9,{data:C.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.x(_.U2,{text:function(){var C;
return(C=z())==null?void 0:C.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"$h");var ekv=_.f(function(e){var z=_.b(_.II(!1,void 0,"SrK51e")),C=z.next().value,w=z.next().value,K=function(){return e.data().inlineExpansionEntityKey},G=_.vF(yHf,K),X=function(){if(e.isSelected!==void 0)return e.isSelected();
if(K()){var q;return(q=G())==null?void 0:q.expanded}return C()};
z={};var J={};return _.x("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.T9(function(){e.isSelected!==void 0||K()||w(!C())})},_.x("div",{class:"ytInlineExpanderViewModelHeader"},_.x(_.PF,{data:function(){return e.data().headerContent}},{youthBasicSectionHeaderViewModel:Z4$}),_.x("div",{class:_.qT("ytInlineExpanderViewModelButton",(z.ytInlineExpanderViewModelButtonExpanded=X,z))},_.x(_.DS,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:X(),accessibilityLabel:X()?_.kk("SHOW_LESS",void 0,"Show Less"):_.kk("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.x("div",{class:_.qT("ytInlineExpanderViewModelBody",(J.ytInlineExpanderViewModelBodyExpanded=X,J)),"aria-hidden":function(){return!X()}},_.x("div",{class:"ytInlineExpanderViewModelBodyContent"},_.x(_.PF,{data:function(){return e.data().bodyContent}},{youthSectionBodyViewModel:pHf}))))},"ai");var zkE=new _.Mt("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.C6E=_.f(function(e){var z=function(){return e.data().background},C=function(){return e.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},w=function(){return e.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},K=_.lh().resolve(_.$B(zkE)),G={};
return _.x("yt-card-view-model",{el:_.ej(_.Dh(function(){return e.data().rendererContext})),
class:_.qT("ytCardViewModelHost",e.className,(G.ytCardViewModelClickable=function(){return _.u3(e.data().rendererContext)},G))},_.x(_.cp,{contentId:function(){return e.data().contentId}},function(){var X={};
return _.x("div",{class:_.qT("ytCardViewModelCardViewModelInner",function(){var J;return FAq(e.data().cardStyle,(J=e.isSelected)==null?void 0:J.call(e))},function(){if(e.isSelected===void 0){var J;
a:{switch((J=e.data().cardState)==null?void 0:J.selectionState){case "CARD_SELECTION_STATE_SELECTED":J="ytCardViewModelSelected";break a}J=void 0}return J}})},_.x(_.PF,{data:z},{cinematicContainerViewModel:function(J){return _.x(_.X1a,{data:J.data})}}),_.x("div",{class:"ytCardViewModelContentWrapper"},_.x(_.l,{cond:function(){return!C()},
then:function(){var J={},q={};return _.x("div",{class:"ytCardViewModelTopContentContainer"},_.x("div",{class:_.qT("ytCardViewModelTopContent",(J.ytCardViewModelInnerPadding=function(){return!e.data().disableTopContentPadding&&e.data().topContent},J))},_.x(_.PF,{data:function(){return e.data().topContent}},{contentListItemViewModel:function(T){return _.x(_.AOW,{data:T.data})},
basicContentViewModel:_.Ub,linearLayoutViewModel:_.WX})),_.x("div",{class:_.qT("ytCardViewModelInlineTrailingAction",(q.ytCardViewModelInlineCenterTrailingAction=w,q.ytCardViewModelInlineTrailingActionMargin=function(){return e.data().trailingAction},q))},_.x(_.PF,{data:function(){return e.data().trailingAction}},{buttonViewModel:function(T){return _.x(_.iz,{data:T.data})}})))}}),_.x("div",{class:_.qT((X.ytCardViewModelInnerPadding=function(){return!e.data().disableBodyContentPadding&&e.data().bodyContent},
X))},_.x(_.PF,{data:function(){return e.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.ZCq,
contentListItemViewModel:_.AOW,descriptionPreviewViewModel:_.zY,inlineExpanderViewModel:function(J){return _.x(ekv,{data:J.data,isSelected:e.isSelected})},
linearLayoutViewModel:_.WX,listItemViewModel:_.Ij},K&&{contentSectionViewModel:K})))),_.x(_.l,{cond:function(){return C()},
then:function(){return _.x("div",{class:"ytCardViewModelOverlayTrailingAction"},_.x(_.PF,{data:function(){return e.data().trailingAction}},{buttonViewModel:function(J){return _.x(_.iz,{data:J.data})}}))}}))}))},"bi");var wJ$=_.f(function(e){var z=e.data,C=e.onSelected,w=e.selectedKey,K=e.groupName;e=e.className;var G=_.b(_.II(!1,void 0,"mDtSad")),X=G.next().value,J=G.next().value,q=function(){if(w!==void 0){var T=w();return!(!T||z().key!==T)}return X()};
G=_.T9(function(T){C?C(T.currentTarget,z(),K==null?void 0:K()):J(!X())});
return _.x("yt-selectable-item-view-model",{class:_.qT("ytSelectableItemViewModelHost",e,"ytSelectableItemViewModelContainer"),"on:click":G,"prop:checked":q},_.x(_.PF,{data:function(){return z().content}},{cardViewModel:function(T){return _.x(_.C6E,{data:T.data,
isSelected:q})}}))},"ci");_.KJ$=_.f(function(e){var z=e.data;var C=e.onSelected;var w=e.selectedKey;var K=e.groupName;var G=function(){return(K==null?void 0:K())||z().key};
return _.x("yt-radio-button-group-view-model",{class:_.qT("ytRadioButtonGroupViewModelHost",e.className)},_.x("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.x(_.PF,{data:function(){return z().radioButtons}},{radioButtonItemViewModel:function(X){return _.x(cOq,{data:X.data,
onSelected:C,selectedKey:w,groupName:G})},
selectableItemViewModel:function(X){return _.x(wJ$,{data:X.data,onSelected:C,selectedKey:w,groupName:G})}})))},"di");var o5q=_.f(function(e){_.sg(function(){if(e.controlledMode()&&e.data().defaultSelected)_.yG(Error("bk"));else{var G;!e.controlledMode()&&((G=e.selected)==null?0:G.call(e))&&_.yG(Error("ck"))}});
var z=_.b(_.zx(function(){if(!e.controlledMode())return e.data().defaultSelected})),C=z.next().value,w=z.next().value,K=function(){if(!e.controlledMode())return C();
var G;return(G=e.selected)==null?void 0:G.call(e)};
return _.x("yt-checkbox-item-view-model",{class:_.qT("ytCheckboxItemViewModelHost",e.className)},_.x(_.Ij,{data:function(){var G=e.data(),X=K();return{title:G.text,subtitle:G.subtext,superlabel:G.superlabel,isSelected:!!X,isDisabled:G.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!e.controlledMode()&&w(!C());var G,X;(X=e.onTap)==null||X.call(e,!!K(),e.data(),(G=e.groupName)==null?void 0:G.call(e))},
isCompact:e.isCompact}))},"ei");_.GU3=_.f(function(e){var z=e.data;var C=e.controlledMode;var w=e.selectedKeys;var K=e.onItemTap;var G=e.groupName;var X=function(){return(G==null?void 0:G())||z().key};
_.sg(function(){C()&&z().defaultSelectedKeys?_.yG(Error("dk")):!C()&&(w==null?0:w())&&_.yG(Error("ek"))});
e=_.b(_.zx(function(){if(!C())return z().defaultSelectedKeys}));
var J=e.next().value,q=e.next().value,T=function(Q,m,a){Q=[];!C()&&m.key&&(Q=VCZ(m.key,J()||[]),q(Q));K==null||K(m,Q,a)};
return _.x("yt-checkbox-group-view-model",{class:_.qT("ytCheckboxGroupViewModelHost")},_.x("fieldset",{class:_.qT("ytCheckboxGroupViewModelFieldset")},_.x("div",{role:"list"},_.x(_.PF,{data:function(){return z().checkboxes}},{checkboxItemViewModel:function(Q){var m=Q.data;
return _.x(o5q,{data:m,controlledMode:!0,selected:function(){var a=C()?(w==null?void 0:w())||[]:J()||[],n=m().key;return n?a.includes(n):!1},
onTap:T,groupName:X})}}))))},"fi");var Nc=_.f(function(e){var z=_.vF(fOZ,_.pP(function(){var J;return(J=e.data())==null?void 0:J.noteFeedEntityKey},"")),C=_.vF(pQo,_.pP(function(){var J;
return(J=e.data())==null?void 0:J.userRatingEntityKey},"")),w=_.M("enable_user_rating_web"),K=function(){var J,q,T;
return((J=z())==null?0:J.contributorNote)?(q=z())==null?void 0:q.contributorNote:(T=e.data())==null?void 0:T.existingNote},G=function(){var J,q;
return!!C()&&!!S8a((J=C())==null?void 0:J.helpfulnessValue,(q=e.data())==null?void 0:q.noteData)};
if(w){var X={};return _.x("yt-note-view-model",{class:_.qT("ytNoteViewModelHostUserRating",(X.ytNoteViewModelHostUserRatingPublishedNote=function(){var J,q,T,Q;return((J=e.data())==null?void 0:(q=J.noteData)==null?void 0:q.isPublished)&&!((T=e.data())==null?0:(Q=T.noteData)==null?0:Q.isUserRatingForm)},X))},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.x(_.l,{cond:function(){var J,q;
return(J=e.data())==null?void 0:(q=J.noteData)==null?void 0:q.isPinned},
then:function(){return _.x(_.mB,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.x(_.l,{cond:function(){var J,q;return(J=e.data())==null?void 0:(q=J.noteData)==null?void 0:q.isPublished},
then:function(){return _.x(_.mB,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.x(_.PF,{data:function(){var J;
return(J=e.data())==null?void 0:J.metadata}},{contentMetadataViewModel:_.yh}),_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var J,q;
return(q=_.r((J=e.data())==null?void 0:J.metadata,_.RVc))==null?void 0:q.delimiter}),_.x(_.U2,{text:function(){var J;
return(J=K())==null?void 0:J.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.x(_.l,{cond:function(){var J,q;return!((J=e.data())==null?0:(q=J.noteData)==null?0:q.isUserRatingForm)},
then:function(){return _.x(_.PF,{data:function(){var J,q,T,Q,m,a,n,H=!!((J=e.data())==null?0:(q=J.noteData)==null?0:q.isPinned);J=G();q=(T=e.data())==null?void 0:T.noteData;T=(Q=z())==null?void 0:(m=Q.contributorNote)==null?void 0:m.deleteAction;Q=(a=e.data())==null?void 0:a.overflowButtonNoteWithRatingOnTapOverride;a=(n=e.data())==null?void 0:n.overflowButton;var I;n=(I=_.r(a,_.H7))==null?void 0:I.accessibilityText;return H?uhY(q,T,n):J?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:Q,accessibilityText:n}}:a}},{buttonViewModel:function(J){return _.x(_.iz,{data:J.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.x("div",{class:"ytNoteViewModelNoteContent"},_.x(_.U2,{text:function(){var J;
return(J=K())==null?void 0:J.text}})),_.x(_.l,{cond:function(){var J,q,T,Q;
return!((J=e.data())==null?0:(q=J.noteData)==null?0:q.isPinned)&&!((T=e.data())==null?0:(Q=T.noteData)==null?0:Q.isUserRatingForm)},
then:function(){return _.x(_.l,{cond:G,then:function(){return _.x("div",{class:"ytNoteViewModelUserRatingContainer"},_.x(_.U2,{text:function(){var J,q;return S8a((J=C())==null?void 0:J.helpfulnessValue,(q=e.data())==null?void 0:q.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.x(_.PF,{data:function(){var J;return(J=e.data())==null?void 0:J.userRatingButton}},{buttonViewModel:function(J){return _.x(_.iz,{data:J.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.x(_.l,{cond:function(){var J,q,T,Q;
return!((J=e.data())==null?0:(q=J.noteData)==null?0:q.ignoreDivider)&&!((T=e.data())==null?0:(Q=T.noteData)==null?0:Q.isUserRatingForm)},
then:function(){return _.x("div",{class:"ytNoteViewModelDivider"},_.x(_.PF,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(J){return _.x(_.$9a,{data:J.data})}}))}}))}return _.x("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.x(_.l,{cond:function(){var J,q;return(J=e.data())==null?void 0:(q=J.noteData)==null?void 0:q.isPinned},
then:function(){return _.x(_.mB,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.x(_.l,{cond:function(){var J,q;return(J=e.data())==null?void 0:(q=J.noteData)==null?void 0:q.isPublished},
then:function(){return _.x(_.mB,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.x(_.l,{cond:function(){return w},
then:function(){return _.x(_.PF,{data:function(){var J;return(J=e.data())==null?void 0:J.metadata}},{contentMetadataViewModel:function(J){return _.x(_.yh,{data:J.data})}})}}),_.x(_.U2,{text:function(){var J,q;
return(J=e.data())==null?void 0:(q=J.noteData)==null?void 0:q.headerText}}),_.x("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.x(_.U2,{text:function(){var J,q;
return(J=e.data())==null?void 0:(q=J.noteData)==null?void 0:q.delimiter}})),_.x(_.U2,{text:function(){var J,q;
return(J=z())==null?void 0:(q=J.contributorNote)==null?void 0:q.publishedTimeText}})),_.x(_.PF,{data:function(){var J,q,T;
return uhY((J=e.data())==null?void 0:J.noteData,(q=z())==null?void 0:(T=q.contributorNote)==null?void 0:T.deleteAction)}},{buttonViewModel:function(J){return _.x(_.iz,{data:J.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.x("div",{class:"ytNoteViewModelNoteContent"},_.x(_.U2,{text:function(){var J,q;
return(J=z())==null?void 0:(q=J.contributorNote)==null?void 0:q.text}})))},"gi");
Nc.idomCompat=!0;_.KU(_.f(function(e){var z=_.pP(function(){var E;return(E=e.data())==null?void 0:E.flowStateEntityKey},""),C=_.vF(_.KM,z),w=_.vF(fOZ,_.pP(function(){var E;
return(E=e.data())==null?void 0:E.noteFeedEntityKey},"")),K=_.b(_.zx(function(){var E;
return(E=_.r(e.data().helpfulnessValue,_.lEL))==null?void 0:E.defaultSelectedKey})),G=K.next().value,X=K.next().value;
K=_.b(_.zx(function(){var E,N,D;return(D=_.r((E=_.r(e.data().helpfulnessValue,_.lEL))==null?void 0:(N=E.radioButtons)==null?void 0:N.find(function(g){var y;return((y=_.r(g,QS$))==null?void 0:y.key)===G()}),QS$))==null?void 0:D.value}));
var J=K.next().value,q=K.next().value;K=_.b(_.zx(function(){var E;return(E=_.r(e.data().helpfulReasons,_.$Lb))==null?void 0:E.defaultSelectedKeys}));
var T=K.next().value,Q=K.next().value;K=_.b(_.zx(function(){var E;return(E=_.r(e.data().notHelpfulReasons,_.$Lb))==null?void 0:E.defaultSelectedKeys}));
var m=K.next().value,a=K.next().value,n=function(E,N){X(N.key);q(N.value);Q([]);a([])},H=function(){var E,N;
return((E=J())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((N=J())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},I=function(){var E,N;
return((E=J())==null?void 0:E.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((N=J())==null?void 0:N.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},L=function(E){dxa(E.key,T,Q)},h=function(E){dxa(E.key,m,a)};
_.sg(function(){var E,N,D;_.AH5((E=e.data())==null?void 0:(N=E.userRatingFormSchema)==null?void 0:N.id,{isValid:function(){return!!G()},
formData:function(){var g=J(),y=iGo(T(),_.r(e.data().helpfulReasons,_.$Lb)),Z=iGo(m(),_.r(e.data().notHelpfulReasons,_.$Lb));g={helpfulnessValue:g==null?void 0:g.noteHelpfulnessValue};if(y){g.helpfulReasons=[];y=_.b(y);for(var YN=y.next();!YN.done;YN=y.next()){YN=YN.value;var Jk=void 0;if((Jk=YN)==null?0:Jk.noteHelpfulReason)Jk=void 0,g.helpfulReasons.push((Jk=YN)==null?void 0:Jk.noteHelpfulReason)}}if(Z)for(g.notHelpfulReasons=[],Z=_.b(Z),y=Z.next();!y.done;y=Z.next())if(y=y.value,YN=void 0,(YN=
y)==null?0:YN.noteNotHelpfulReason)YN=void 0,g.notHelpfulReasons.push((YN=y)==null?void 0:YN.noteNotHelpfulReason);return{userRatingFormData:g}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(D=_.r(C(),wfZ))==null?void 0:D.submitFormParams},onSubmitResult:function(){var g,y=(g=_.r(C(),wfZ))==null?void 0:g.userRatingEntityKey,Z;g={key:y,helpfulnessValue:(Z=J())==null?void 0:Z.noteHelpfulnessValue};y&&_.ZL(_.Rx("contextNoteUserRatingEntityPayload",y,g));var YN;y=(YN=e.data())==null?void 0:YN.viewNoteFlowStepId;var Jk;if((Jk=w())==null||!Jk.contributorNote){var v1;y=(v1=e.data())==null?void 0:v1.zeroStateFlowStepId}(YN=
Object.assign({},C()))&&y&&(YN.currentStepId=y,YN.stepIdStack=[y],_.ZL(_.Rx("flowStateEntity",z(),YN)));var lg;(YN=(lg=e.data())==null?void 0:lg.ratingSubmittedSnackbarCommand)&&_.NF(YN)},
disableDuringSubmission:!0})});
return _.x("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.x(_.PF,{data:function(){var E=_.r(C(),wfZ);if(E){var N;var D={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:E==null?void 0:(N=E.note)==null?void 0:N.headerText}]}],delimiter:"\u2022"}},existingNote:E.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else D=void 0;return D}},{noteViewModel:function(E){return _.x("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.x(Nc,{data:E.data}))}}),_.x(_.PF,{data:function(){var E;
return(E=e.data())==null?void 0:E.helpfulnessValue}},{radioButtonGroupViewModel:function(E){return _.x("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.x(_.KJ$,{data:E.data,
onSelected:n,selectedKey:G}))}}),_.x(_.l,{cond:H,
then:function(){return _.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.x(_.U2,{text:function(){var E;return(E=e.data())==null?void 0:E.helpfulReasonQuestion}})),_.x(_.PF,{data:function(){var E;
return(E=e.data())==null?void 0:E.helpfulReasons}},{checkboxGroupViewModel:function(E){return _.x(_.GU3,{data:E.data,
onItemTap:L,selectedKeys:T,controlledMode:!0})}}))}}),_.x(_.l,{cond:I,
then:function(){return _.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.x("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.x(_.U2,{text:function(){var E;return(E=e.data())==null?void 0:E.notHelpfulReasonQuestion}})),_.x(_.PF,{data:function(){var E;
return(E=e.data())==null?void 0:E.notHelpfulReasons}},{checkboxGroupViewModel:function(E){return _.x(_.GU3,{data:E.data,
onItemTap:h,selectedKeys:m,controlledMode:!0})}}))}}),_.x(_.l,{cond:function(){return!H()&&!I()},
then:function(){return _.x(_.PF,{data:function(){var E;return(E=e.data())==null?void 0:E.helpfulNoteFeatures}},{alertBannerViewModel:function(E){return _.x("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.x(_.Mph,{data:E.data}))}})}}))},"hi"),"yt-note-user-rating-view-model",{props:{data:_.vh}});_.KU(Nc,"yt-note-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=_.vF(fOZ,_.pP(function(){var C;return(C=e.data())==null?void 0:C.noteFeedEntityKey},""));
return _.x("yt-notes-wrapper-view-model",{class:_.qT("ytNotesWrapperViewModelHost")},_.x(_.l,{cond:function(){var C,w,K;return!((C=e.data())==null||!C.existingNotes)||!((w=e.data())==null||!w.currentNote)&&!((K=z())==null||!K.contributorNote)},
then:function(){return _.x(_.Qw,null,_.x(_.PF,{data:function(){var C,w,K,G;return((w=_.r((C=e.data())==null?void 0:C.currentNote,Km3))==null?0:(K=w.noteData)==null?0:K.isPublished)?(G=e.data())==null?void 0:G.currentNote:void 0}},{noteViewModel:function(C){return _.x(Nc,{data:C.data})}}),_.x(_.PF,{data:function(){var C;
return(C=e.data())==null?void 0:C.existingNotes}},{noteViewModel:function(C){var w=C.data;
return _.x(_.l,{cond:function(){var K,G;return(K=w())==null?void 0:(G=K.noteData)==null?void 0:G.isPublished},
then:function(){return _.x(Nc,{data:w})}})}}),_.x(_.PF,{data:function(){var C,w,K,G,X;
return((w=_.r((C=e.data())==null?void 0:C.currentNote,Km3))==null?0:(K=w.noteData)==null?0:K.isPublished)||(G=z())==null||!G.contributorNote?void 0:(X=e.data())==null?void 0:X.currentNote}},{noteViewModel:function(C){return _.x(Nc,{data:C.data})}}),_.x(_.PF,{data:function(){var C;
return(C=e.data())==null?void 0:C.existingNotes}},{noteViewModel:function(C){var w=C.data;
return _.x(_.l,{cond:function(){var K,G;return!((K=w())==null?0:(G=K.noteData)==null?0:G.isPublished)},
then:function(){return _.x(Nc,{data:w})}})}}))},
else:function(){return _.x(_.PF,{data:function(){var C;return(C=e.data())==null?void 0:C.zeroStateData}},{contributorZeroStateViewModel:gzW})}}))},"ii"),"yt-notes-wrapper-view-model",{props:{data:_.vh}});var bWl=_.f(function(e){var z=_.eQ(e,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0,timePickerData:void 0,hasError:!1}),C=z.label,w=z.text,K=z.placeholder,G=z.hint;e=z.rows;var X=z.overflowStyle,J=z.outline,q=z.disabled,T=z.disableNewLines,Q=z.characterLimit,m=z.validation,a=z.onInput,n=z.timePickerData,H=z.hasError,I=_.kI("textarea");z=_.b(_.zx(function(){return w()}));
var L=z.next().value,h=z.next().value;z=_.b(_.II(!1,void 0,"mpbND"));var E=z.next().value,N=z.next().value,D=function(){N(!0)},g=function(){N(!1)};
_.sg(function(){var w6=I.value,qY=X(),y1=L();qY==="expand-vertically"&&y1&&NME(w6);I.value.addEventListener("focusin",D);I.value.addEventListener("focusout",g)});
_.BC(function(){I.value.removeEventListener("focusin",D);I.value.removeEventListener("focusout",g)});
var y=function(){var w6;return(w6=m())==null?void 0:w6.validate(L())},Z=function(){return Q()&&!y()&&L().length>Q().maxChars},YN=function(){return!!y()||Z()||H()};
z=_.T9(function(w6){if(!w6.currentTarget)return!1;w6=w6.currentTarget;h(w6.value);X()==="expand-vertically"&&NME(w6);a==null||a(w6.value);return!0});
var Jk=_.T9(function(w6){T()&&w6.key==="Enter"&&w6.preventDefault();return!1}),v1=_.T9(function(){I.value.focus()}),lg=function(){return K()||C()},M5={},fo={},ug={},sE={};
return _.x("textarea-shape",{class:_.qT("ytStandardsTextareaShapeHost",(M5.ytStandardsTextareaShapeTimePicker=function(){var w6;return(w6=n())==null?void 0:w6.useTimePickerStyles},M5))},_.x("div",{class:_.qT("ytStandardsTextareaShapeTextareaContainer",(fo.ytStandardsTextareaShapeTextareaContainerOutline=J,fo.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=q,fo.ytStandardsTextareaShapeTextareaContainerOutlineError=YN,fo)),
"on:click":v1},_.x("label",{class:_.qT("ytStandardsTextareaShapeLabel",(ug.ytStandardsTextareaShapeLabelFocused=E,ug.ytStandardsTextareaShapeLabelDisabled=q,ug.ytStandardsTextareaShapeLabelError=function(){return YN()&&!q()},ug.ytStandardsTextareaShapeLabelHidden=function(){return!E()&&!L()&&!!lg()},ug))},C),_.x("div",{class:_.qT("ytStandardsTextareaShapePlaceholder",(sE.ytStandardsTextareaShapePlaceholderVisible=function(){return!E()&&!L()},sE)),
"aria-hidden":"true"},lg),_.x("textarea",{el:I,class:"ytStandardsTextareaShapeTextarea",rows:e,disabled:q,placeholder:lg,"prop:value":L,"on:input":z,"on:keydown":Jk})),_.x(_.l,{cond:function(){return G()&&!YN()},
then:function(){var w6={};return _.x("div",{class:_.qT("ytStandardsTextareaShapeHint",(w6.ytStandardsTextareaShapeHintDisabled=q,w6))},_.x("div",{class:"ytStandardsTextareaShapeHintHintMessage"},G))}}),_.x(_.l,{cond:y,
then:function(){return _.x(YGZ,{disabled:q},_.x("div",{class:"ytStandardsTextareaShapeErrorMessage"},y))}}),_.x(_.l,{cond:Q,
then:function(w6){return _.x(_.l,{cond:Z,then:function(){return _.x(YGZ,{disabled:q},_.x("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return w6().errorMessage}),_.x("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return L().length+"/"+w6().maxChars}))}})}}))},"ji");
bWl.idomCompat={callbacks:{onInput:!0}};var YGZ=_.f(function(e){var z={};return _.x("div",{class:_.qT("ytStandardsTextareaShapeError",(z.ytStandardsTextareaShapeErrorDisabled=e.disabled,z)),role:"alert"},_.x(_.mB,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),e.children)},"ki");_.XJC=_.f(function(e){var z=e.data;return _.x("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.x(bWl,{text:e.text,label:function(){var C;return(C=z().contentProperties)==null?void 0:C.labelText},
placeholder:function(){var C;return(C=z().contentProperties)==null?void 0:C.placeholderText},
hint:function(){var C;return(C=z().contentProperties)==null?void 0:C.hintText},
outline:function(){var C;return!((C=z().displayProperties)==null?0:C.hideBorder)},
overflowStyle:function(){var C;return((C=z().displayProperties)==null?0:C.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:e.disabled,disableNewLines:function(){var C;return(C=z().displayProperties)==null?void 0:C.disableNewLines},
onInput:e.onInput,characterLimit:e.characterLimit,validation:e.validation,rows:function(){var C;return(C=z().displayProperties)==null?void 0:C.rows}}))},"li");_.JUW=_.f(function(e){var z=e.data;return _.x("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.x(bWl,{text:e.text,label:function(){var C;return(C=z().contentProperties)==null?void 0:C.labelText},
placeholder:function(){var C;return(C=z().contentProperties)==null?void 0:C.placeholderText},
hint:function(){var C;return(C=z().contentProperties)==null?void 0:C.hintText},
outline:function(){var C;return!((C=z().displayProperties)==null?0:C.hideBorder)},
overflowStyle:function(){var C;return((C=z().displayProperties)==null?0:C.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var C;return(C=z().displayProperties)==null?void 0:C.disableNewLines},
onInput:e.onInput,characterLimit:e.characterLimit,validation:e.validation,rows:function(){var C;return(C=z().displayProperties)==null?void 0:C.rows}}))},"mi");var kUC=_.f(function(e){var z=_.b(_.zx(function(){var Jk,v1;return((Jk=e.data().structuredContextNoteFormSchema)==null?0:(v1=Jk.initialValues)==null?0:v1.noteBody)?e.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),C=z.next().value,w=z.next().value;
z=_.b(_.zx(function(){e.data();return!1}));
var K=z.next().value,G=z.next().value;z=_.b(_.zx(function(){e.data();return!1}));
var X=z.next().value,J=z.next().value;z=_.b(_.zx(function(){var Jk,v1;return((Jk=e.data().structuredContextNoteFormSchema)==null?0:(v1=Jk.initialValues)==null?0:v1.timestamp)?e.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var q=z.next().value,T=z.next().value;z=_.b(_.zx(function(){e.data();return!1}));
var Q=z.next().value,m=z.next().value;z=_.b(_.zx(function(){var Jk,v1;return((Jk=e.data().structuredContextNoteFormSchema)==null?0:(v1=Jk.initialValues)==null?0:v1.sources)?[e.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var a=z.next().value,n=z.next().value;z=_.b(_.zx(function(){e.data();return!1}));
var H=z.next().value,I=z.next().value;z=_.b(_.zx(function(){return!1}));
var L=z.next().value,h=z.next().value;_.sg(function(){var Jk;_.ZZf((Jk=e.data().structuredContextNoteFormSchema)==null?void 0:Jk.id,{isSubmitting:L,onSubmit:function(){h(!0);var v1=ZGl(C(),q(),a(),e.data()),lg=_.lh().resolve(_.ms);v1&&lg&&lg.resolveCommand(v1,{commandController:{onSuccess:function(){h(!1)}}})},
isValid:function(){return K()&&!X()&&!Q()&&!H()}})});
var E=function(Jk){if(Jk!==void 0&&(w(Jk),!K()&&Jk.length>0&&G(!0),K())){var v1=tCY(e.data());if(v1){var lg=v1.minLength;v1=v1.maxLength;lg&&Jk.length<lg?J(!0):v1&&Jk.length>v1?J(!0):J(!1)}}},N=function(Jk){if(Jk!==void 0){T(Jk);
if(Jk.length>0){var v1,lg,M5,fo,ug=jkY((v1=e.data())==null?void 0:(lg=v1.structuredContextNoteFormSchema)==null?void 0:(M5=lg.fieldSchemas)==null?void 0:(fo=M5.timestamp)==null?void 0:fo.validationSchema);if(ug&&(v1=ug.regex)&&!(new RegExp(v1)).test(Jk)){m(!0);return}}m(!1)}},D=function(Jk){if(Jk!==void 0){var v1=Jk.split(/[ \n]/).map(function(lg){return lg.trim()});
n(v1);if(Jk.length>0)for(Jk=_.b(v1),v1=Jk.next();!v1.done;v1=Jk.next())if(!A2f(v1.value)){I(!0);return}I(!1)}},g=function(){return{validate:function(Jk){if(K()){var v1=tCY(e.data());
if(v1){var lg=v1.minLength;v1=v1.translations;if(lg&&Jk.length<lg)return v1==null?void 0:v1.minLengthErrorMessage}}}}},y=function(){var Jk=tCY(e.data()),v1=Jk==null?void 0:Jk.maxLength,lg;
Jk=Jk==null?void 0:(lg=Jk.translations)==null?void 0:lg.maxLengthErrorMessage;if(v1&&Jk)return{maxChars:v1,errorMessage:Jk}},Z=function(){return{validate:function(Jk){if(Jk){var v1,lg,M5,fo,ug=jkY((v1=e.data())==null?void 0:(lg=v1.structuredContextNoteFormSchema)==null?void 0:(M5=lg.fieldSchemas)==null?void 0:(fo=M5.timestamp)==null?void 0:fo.validationSchema);
if(ug&&(v1=ug.regex,ug=ug.translations,v1&&!(new RegExp(v1)).test(Jk)))return ug==null?void 0:ug.regexErrorMessage}}}},YN=function(){return{validate:function(Jk){if(Jk){var v1,lg,M5,fo,ug=c2E((v1=e.data())==null?void 0:(lg=v1.structuredContextNoteFormSchema)==null?void 0:(M5=lg.fieldSchemas)==null?void 0:(fo=M5.sources)==null?void 0:fo.validationSchema);
if(ug&&(v1=ug.translations,v1==null?0:v1.selectedErrorMessage))for(Jk=Jk.split(/[ \n]/).map(function(sE){return sE.trim()}),Jk=_.b(Jk),lg=Jk.next();!lg.done;lg=Jk.next())if(!A2f(lg.value))return Jk=void 0,(Jk=v1)==null?void 0:Jk.selectedErrorMessage}}}};
return _.x("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.PF,{data:function(){var Jk;return(Jk=e.data())==null?void 0:Jk.noteContents}},{textFormFieldViewModel:function(Jk){return _.x(_.JUW,{data:Jk.data,
onInput:E,validation:g,characterLimit:y})},
textFieldViewModel:function(Jk){return _.x(_.XJC,{data:Jk.data,onInput:E,validation:g,characterLimit:y})}})),_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.PF,{data:function(){var Jk;
return(Jk=e.data())==null?void 0:Jk.noteTimestamp}},{textFormFieldViewModel:function(Jk){return _.x(_.JUW,{data:Jk.data,
onInput:N,validation:Z})},
textFieldViewModel:function(Jk){return _.x(_.XJC,{data:Jk.data,onInput:N,validation:Z})}})),_.x("div",{class:"ytStructuredContextNoteViewModelTextField"},_.x(_.PF,{data:function(){var Jk;
return(Jk=e.data())==null?void 0:Jk.noteSources}},{textFormFieldViewModel:function(Jk){return _.x(_.JUW,{data:Jk.data,
onInput:D,validation:YN})},
textFieldViewModel:function(Jk){return _.x(_.XJC,{data:Jk.data,onInput:D,validation:YN})}})))},"ni");
kUC.idomCompat=!0;_.KU(kUC,"yt-structured-context-note-view-model",{props:{data:_.vh}});var qGE=_.f(function(e){var z=_.b(_.zx(function(){var G;if((G=e.controlled)==null?0:G.call(e))return[];var X;return(((X=e.data())==null?void 0:X.chips)||[]).map(function(J){J=_.r(J,_.Uf);if(J==null?0:J.selected)return pAv(J.chipValue)}).filter(function(J){return J!==void 0})})),C=z.next().value,w=z.next().value,K=function(G){var X=pAv(G.chipValue);
if(X!==void 0){var J;if((J=e.controlled)==null?0:J.call(e))return void e.controlled().onTap(X);G=C().includes(X)?[].concat(_.s_(C().filter(function(T){return T!==X}))):[].concat(_.s_(C()),[X]);
w(G);var q;if((q=e.uncontrolled)==null?0:q.call(e))e.uncontrolled().onUpdate(G)}};
return _.x("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.x(_.ui,{each:function(){return e.data().chips||[]}},function(G){return _.x("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.x(_.DPT,{data:function(){return _.r(G,_.Uf)},
selected:function(){var X;if(X=_.r(G,_.Uf)){var J=pAv(X.chipValue);if(J!==void 0){var q;X=((q=e.controlled)==null?0:q.call(e))?e.controlled().selectedValues.includes(J):C().includes(J)}else X=void 0}else X=!1;return X},
callback:K}))}))},"oi");var xpq=_.f(function(e){var z=e.data;var C=function(){var J;return((J=z())==null?void 0:J.flowStateKey)||""},w=_.vF(_.KM,C),K=function(){var J;
return(J=_.r(w(),okZ))==null?void 0:J.chips},G=function(J){if(J!==void 0){var q=K()||[];
q=q.find(function(T){return T===J})?q.filter(function(T){return T!==J}):[].concat(_.s_(q),[J]);
q=Object.assign({},w(),{feedbackFormFlowState:Object.assign({},_.r(w(),okZ),{chips:q})});_.ZL(_.Rx("flowStateEntity",C(),q))}},X=function(){var J;
return _.r((J=z())==null?void 0:J.inputBox,Gj3)};
e=_.dJ(function(J){var q=X();q=!(q==null?0:q.maxChars)||J.length<=q.maxChars;J=Object.assign({},w(),{feedbackFormFlowState:Object.assign({},_.r(w(),okZ),{detail:J}),abuseReportFlowState:Object.assign({},_.r(w(),qc),{navigationEnabled:q})});_.ZL(_.Rx("flowStateEntity",C(),J))},150);
return _.x("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.x("div",{class:"ytFeedbackFormViewModelChips"},_.x(_.PF,{data:function(){var J;return(J=z())==null?void 0:J.chipSelection}},{chipSelectionFormFieldViewModel:function(J){return _.x(qGE,{data:J.data,
controlled:function(){return{selectedValues:K()||[],onTap:G}}})}})),_.x("div",{class:"ytFeedbackFormViewModelInputBox"},_.x(bWl,{text:function(){var J;
return(J=_.r(w(),okZ))==null?void 0:J.detail},
placeholder:function(){var J;return((J=X())==null?void 0:J.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var J=X();if(J&&J.maxChars)return{maxChars:J.maxChars,errorMessage:J.maxCharsExceededErrorMessage||""}},
onInput:e})),_.x("div",{class:"ytFeedbackFormViewModelFooterText"},_.x(_.U2,{text:function(){return z().footerText}})))},"pi");
xpq.idomCompat=!0;_.KU(xpq,"yt-feedback-form-view-model",{props:{data:_.vh}});var TPE=_.f(function(e){var z=e.data;var C=_.vF(cHo,function(){return z().flowStateKey||""}),w=function(){var K;
_.NF((K=_.r(C(),qc))==null?void 0:K.navigationCommand)};
return _.x("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.x("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.x(_.PF,{data:function(){return z().cancelButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:w})}}),_.x(_.PF,{data:function(){var K;
if(z().navButton){var G=Object;var X=G.assign,J=_.r(z().navButton,_.H7),q=((K=_.r(C(),qc))==null?0:K.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",T,Q;K=_.r((T=_.r(C(),qc))==null?void 0:T.navigationCommand,_.fm);T=(Q=_.r(K,_.oO))==null?void 0:Q.url;G={buttonViewModel:X.call(G,{},J,{state:q,iconName:T?"OPEN_IN_NEW":""})}}else G=void 0;return G}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:w})}})))},"qi");
TPE.idomCompat=!0;_.KU(TPE,"yt-report-form-bottom-bar-view-model",{props:{data:_.vh}});var $p$=_.f(function(e){var z=e.nextStep;return _.x("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.x("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.x(_.mB,{icon:function(){return z().iconName||""}})),_.x("div",null,_.x(_.U2,{text:function(){return z().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ri"),lcf=_.f(function(e){var z=e.data;
var C,w=(C=_.lh().resolve(_.$B(_.jQ)))==null?void 0:C(),K=_.vF(_.KM,function(){return z().flowStateKey||""});
return _.x("yt-report-form-confirmation-page-view-model",{class:function(){var G;return((G=_.r(K(),qc))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.x("div",{class:function(){var G;
return((G=_.r(K(),qc))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.x(_.Zf,{data:function(){return w&&z().imageDark?z().imageDark:z().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.x("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return z().confirmationHeader}),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.x(_.U2,{text:function(){return z().confirmationText}})),_.x("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.x(_.U2,{text:function(){return z().lawEnforcementText}})),
_.x("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return z().whatToExpectHeader}),_.x(_.l,{cond:function(){return z().nextSteps},
then:function(G){return _.x("div",null,_.x(_.ui,{each:G},function(X){return _.x($p$,{nextStep:X})}))}}),_.x(_.l,{cond:function(){return z().legalReportText},
then:function(G){return _.x("div",null,_.x(_.U2,{text:G,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"si");
lcf.idomCompat=!0;_.KU(lcf,"yt-report-form-confirmation-page-view-model",{props:{data:_.vh}});var Qga=_.f(function(e){var z=e.data;var C=function(){var G;return((G=_.r(z().inputBox,Gj3))==null?void 0:G.maxChars)||500},w=function(){return z().flowStateKey||""},K=_.vF(_.KM,w);
e=_.dJ(function(G){G=Object.assign({},K(),{flowFormState:{isValid:G.length<=C()},abuseReportFlowState:{userComments:G,navigationEnabled:!(G.length>C()),isReportFormDirty:!0}});_.AK().dispatch(_.d$("flowStateEntity",w(),G))},150);
_.sg(function(){var G=Object.assign({},K(),{flowFormState:{isValid:!0}});_.AK().dispatch(_.d$("flowStateEntity",w(),G))});
return _.x("yt-report-form-details-page-view-model",{class:function(){var G;return((G=_.r(K(),qc))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.x("h1",{class:function(){var G;
return((G=_.r(K(),qc))==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return z().detailsPageHeader}),_.x("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.x(_.U2,{text:function(){return z().bodyText}})),_.x("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.x(bWl,{label:function(){var G;
return((G=_.r(z().inputBox,Gj3))==null?void 0:G.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var G;return{errorMessage:((G=_.r(z().inputBox,Gj3))==null?void 0:G.maxCharsExceededErrorMessage)||"",maxChars:C()}},
onInput:e})))},"ti");
Qga.idomCompat=!0;_.KU(Qga,"yt-report-form-details-page-view-model",{props:{data:_.vh}});var mpo=_.f(function(e){var z=e.data;var C=function(){return z().flowStateKey||""},w=_.vF(_.KM,C),K=function(){return _.r(w(),qc)};
return _.x("yt-report-form-reason-select-page-view-model",{class:function(){var G;return((G=K())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.x("h1",{class:function(){var G;
return((G=K())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return z().pageHeader}),_.x("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.x(_.U2,{text:function(){return z().bodyText}})),_.x("div",{class:function(){var G;
return((G=K())==null?void 0:G.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.x(_.KJ$,{data:function(){return _.r(z().radioButtonGroup,_.lEL)},
onSelected:function(G,X){G=Object.assign({},w(),{abuseReportFlowState:Object.assign({},K(),{reasonKey:X.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:X.command})});_.ZL(_.Rx("flowStateEntity",C(),G))},
selectedKey:function(){var G;return(G=K())==null?void 0:G.reasonKey},
groupName:"report-form-reason-select-page"})))},"ui");
mpo.idomCompat=!0;_.KU(mpo,"yt-report-form-reason-select-page-view-model",{props:{data:_.vh}});var acb=_.f(function(e){var z=e.data;var C,w=(C=_.lh().resolve(_.$B(_.jQ)))==null?void 0:C();return _.x("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.x("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.x(_.Zf,{data:function(){return w&&z().imageDark?z().imageDark:z().image},
alt:""})),_.x("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.x("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return z().header}),_.x(_.U2,{text:function(){return z().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"vi");
acb.idomCompat=!0;_.KU(acb,"yt-report-form-sign-in-page-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=_.rG(_.tda.talkToRecsStateSelector),w=function(){return z().titleSuperscript},K=function(){return z().answersShelf},G=function(){return z().videoShelf},X=function(){var Z;
return(Z=z().textInputPlaceholder)==null?void 0:Z.content},J=function(){return z().showOpenTextInput},q=function(){var Z;
return(Z=z().textInputValue)==null?void 0:Z.content},T=function(){return z().isMultiTurnFlow?z().resetButtonViewModel:void 0},Q="",m=function(){return z().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
e=_.b(_.II("",void 0,"GjDBze"));var a=e.next().value,n=e.next().value;e=_.b(_.II(!1,void 0,"cHfsvd"));var H=e.next().value,I=e.next().value,L=function(){return{state:H()||a()?"active":"disabled",disabled:!(H()||a())}};
_.Nm(function(){if(J()){q()&&n(q());var Z;if(!T()&&((Z=C())==null?0:Z.stepStates)){var YN;Z=Object.keys((YN=C())==null?void 0:YN.stepStates);YN=Z[Z.length-1];var Jk,v1;YN=(Jk=C().stepStates[YN])==null?void 0:(v1=Jk.userQuery)==null?void 0:v1.userQuery;_.ZL(_.Zi$());YN&&h(YN)}}});
var h=function(Z){var YN=z().onUpdateText;YN&&_.NF(YN,{form:{userQuery:Z}});n(Z)},E=_.dJ(function(Z){h(Z.target.value.trim())},150),N=_.T9(function(Z){var YN;
Q=(YN=Z.target.value)==null?void 0:YN.trim();E(Z);return!1}),D=_.T9(function(Z){Z.key==="Enter"&&(H()||a())&&(h(Z.target.value.trim()),y());
return!1}),g=function(Z,YN){I(YN);
if(YN){if(z().isMultiTurnFlow&&!Q){var Jk;h((Jk=Z==null?void 0:Z.text)!=null?Jk:"")}z().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&y()}else n(Q)},y=function(){var Z=_.r(z().nextButtonViewModel,_.H7);
if(Z==null?0:Z.trackingParams){Z=_.v9(Z.trackingParams);var YN=_.Pr();YN&&Z&&_.jA(YN,Z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(Z=z().onNextStepCommand)&&_.NF(Z)};
e={};return _.x("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.x("div",{class:"ytwTalkToRecsTopCornerButton"},_.x(_.PF,{data:function(){return z().topCornerButton}},{buttonViewModel:_.iz})),_.x("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.x("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.x(_.U2,{text:function(){return z().title}}),_.x(_.l,{cond:w,
then:function(){return _.x("sup",{class:"ytwTalkToRecsSuperScript"},_.x(_.U2,{text:w}))}})),_.x("div",{class:"ytwTalkToRecsSubtitle"},_.x(_.U2,{text:function(){return z().subtitle}})),_.x("div",{class:"ytwTalkToRecsResultsShelf"},_.x(_.l,{cond:K,
then:function(){return _.x(_.PF,{data:K},{chipsShelfViewModel:function(Z){return _.x("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.x(_.w_,{data:Z.data,callback:g,selectionBehavior:m}))}})}}),_.x(_.l,{cond:G,
then:function(){return _.x(_.PF,{data:G},{horizontalShelfViewModel:function(Z){return _.x("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.x(_.Rj,{data:Z.data,thumbnailAspectRatio:0}))}})}})),_.x("div",{class:_.qT("ytwTalkToRecsRefinementContainer",(e.ytwTalkToRecsBottomMargin=function(){return z().isMultiTurnFlow},e))},_.x(_.l,{cond:J,
then:function(){return _.x("div",{class:"ytwTalkToRecsUserInputBox"},_.x("input",{type:"text",class:"ytwTalkToRecsTextInput",title:X,placeholder:X,value:a,"on:input":N,"on:keyup":D,maxlength:200}))}}),_.x(_.PF,{data:function(){return z().isMultiTurnFlow?z().nextButtonViewModel:void 0}},{buttonViewModel:function(Z){return _.x("div",{class:"ytwTalkToRecsFlowControlButtons"},_.x(_.iz,{data:Z.data,
buttonOverrides:L}))}}),_.x(_.PF,{data:T},{buttonViewModel:function(Z){return _.x("div",{class:"ytwTalkToRecsFlowControlButtons"},_.x(_.iz,{data:Z.data,
onClick:function(){var YN=_.r(z().resetButtonViewModel,_.H7);h(a());(YN=YN==null?void 0:YN.onTap)&&_.NF(YN)}}))}}))))},"xi"),"yt-talk-to-recs-view-model",{props:{data:_.vh}});var eDL={sources:[{clientResource:{imageName:"CHECK"}}]};_.n5o=_.f(function(e){var z=_.kI("div");e=_.eQ(e,{error:void 0});var C=e.data,w=e.error,K=e.onSelected;e=e.className;var G=_.b(_.zx(function(){return wr5(C())})),X=G.next().value,J=G.next().value;
YXW(C,function(n){J(n);var H,I,L=CYC((H=C().options)==null?void 0:(I=H[n])==null?void 0:I.value,C().type);K==null||K(L);z.value.focus()});
G=_.T9(function(){if(!C().disabled){var n=C(),H=X(),I=z.value;n.options&&(n=zDl(n.options,H,n.label),_.lh().resolve(_.qd).openSheet({viewModel:n},I))}});
var q=_.t77(),T=function(){return!!w()},Q=function(){return!!C().disabled},m={},a={};
return _.x("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.x("div",{class:_.qT("ytDropdownViewModelDropdownContainer",e,(m.ytDropdownViewModelDropdownContainerErrorBorder=T,m.ytDropdownViewModelDropdownContainerDisabled=Q,m)),"on:click":G,el:z,role:"combobox",tabindex:0,"on:keydown":q,"aria-invalid":T,"aria-disabled":Q,"aria-describedby":function(){return T()?"dropdown-view-model-error":void 0}},_.x("div",{class:"ytDropdownViewModelText"},Kbq(C,T,X),o1o(C,X)),_.x("div",{class:_.qT("ytDropdownViewModelChevronDown",
(a.ytDropdownViewModelChevronDownDisabled=Q,a))},_.x(_.mB,{icon:"CHEVRON_DOWN"}))),GoW(C,w))},"yi");_.KU(_.f(function(e){var z=e.data;var C=function(K){var G=Xrb(z());G.videoMetadata||(G.videoMetadata={});G.videoMetadata.sponsorshipsMetadata||(G.videoMetadata.sponsorshipsMetadata={});G.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(K)},w=function(K){var G=Xrb(z());
G.scheduledRedirectMetadata||(G.scheduledRedirectMetadata={});G.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(K)};
return _.x("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.x("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.x("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.x(_.U2,{text:function(){return z().title}}),_.x(_.mB,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.x(_.U2,{text:function(){return z().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.x(_.PF,{data:function(){return z().tierChoices}},{dropdownViewModel:function(K){return _.x("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.x(_.n5o,{data:K.data,
onSelected:C}))}}),_.x(_.PF,{data:function(){return z().startTimeChoices}},{dropdownViewModel:function(K){return _.x("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.x(_.n5o,{data:K.data,
onSelected:w}))}}),_.x(_.U2,{text:function(){return z().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.x("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.x(_.PF,{data:function(){return z().scheduleButton}},{panelFooterViewModel:_.i8})))},"zi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;e=e.className===void 0?"":e.className;var C=_.vF(cHo,function(){return z().flowStateEntityKey||""}),w={};
w=_.qT("ytFlowBottomBarViewModelFlowBottomBarButtons",(w.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},w));
var K={},G=_.qT("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",w,(K.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},K.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},K));
K={};var X=_.qT("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",w,(K.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},K.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},K));
w={};w=_.qT("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},w.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return z().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
w));
e=_.qT("ytFlowBottomBarViewModelHost",e);return _.x("yt-flow-bottom-bar-view-model",{class:e},_.x(_.l,{cond:function(){var J;return(J=z())==null?void 0:J.textSection},
then:function(J){return _.x("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.x(_.U2,{text:J}))}}),_.x("div",{class:w},_.x(_.PF,{data:function(){return z().secondaryButton}},{buttonViewModel:function(J){return _.x(_.iz,{data:J.data,
className:X})}}),_.x(_.PF,{data:function(){return z().primaryButton}},{buttonViewModel:function(J){return _.x(_.iz,{data:J.data,
className:G,buttonOverrides:function(){var q;return{disabled:!((q=C())==null||!q.primaryButtonDisabled)}}})}})))},"Ai"),"yt-flow-bottom-bar-view-model",{props:{data:_.vh,
className:_.z9}});var MBq="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),so=function(){var e=_.V.apply(this,arguments)||this;e.enableScrollingFix=!0;e.bottomBar=!1;e.fitContent=!1;return e};
_.U(so,_.V);_.Y=so.prototype;_.Y.ready=function(){_.M("enable_pdp_icon_prefetch")&&_.yw5(_.lh().resolve(_.FMq),0,MBq)};
_.Y.focus=function(e){this.topBar?_.kO(this.topBar,e):this.paperDialog.focus(e)};
_.Y.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19563_scroller&&(this.JSC$19563_scroller.dialogElement=this.paperDialog,this.JSC$19563_scroller.attached&&typeof this.JSC$19563_scroller.attached==="function"&&this.JSC$19563_scroller.attached())};
_.Y.onDataChanged=function(){var e;this.fitContent=!((e=this.data)==null||!e.fitContent);var z;this.bottomBar=!((z=this.data)==null||!z.bottomBar)};
_.Y.onProgressChanged=function(){var e,z,C=((z=(e=this.data)==null?void 0:e.progress)!=null?z:0)*100;this.progressElement.style.width=C+"%"};
_.Y.isProgressHidden=function(){var e;return!((e=this.data)==null?0:e.progress)};
_.Y.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(e){return e&&!e.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
so.prototype.onProgressChanged=so.prototype.onProgressChanged;so.prototype.onDataChanged=so.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],so.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],so.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],so.prototype,"enableScrollingFix",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],so.prototype,"bottomBar",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],so.prototype,"fitContent",void 0);_.d([_.nP("#progress"),_.B("design:type",HTMLElement)],so.prototype,"progressElement",void 0);_.d([_.nP("#scroller"),_.B("design:type",Object)],so.prototype,"JSC$19563_scroller",void 0);_.d([_.nP("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],so.prototype,"topBar",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],so.prototype,"onDataChanged",null);_.d([_.mi("data.progress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],so.prototype,"onProgressChanged",null);_.d([_.SL({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],so);
_.u(so,"ytd-flow-step-renderer",function(){if(BQq!==void 0)return BQq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return BQq=e},{mode:1});var Bz=function(e){this.resolveCommand=e;this.steps={}},rU$=function(e,z){z=_.b(z||[]);
for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=Object.values(C)[0],K=void 0;if((K=w)==null?0:K.stepId)e.steps[w.stepId]=C}},Upl=function(e,z){var C,w,K,G,X;
return _.k(function(J){if((C=e.state)==null||!C.currentStepId)return J.return(void 0);w=e.getCurrentStep();if(!w)return J.return(HWv(e));if(K=_.r(w,_.o2))e.logVEScreen(K),((G=K)==null?0:G.onStepStartCommand)&&e.resolveCommand((X=K)==null?void 0:X.onStepStartCommand,{});K&&z&&(e.logFlowEvent(K,z),z.steps&&!z.steps.includes(w)&&z.steps.push(w));return J.return(w)})};
Bz.prototype.back=function(){var e;(e=this.state)!=null&&e.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Bz.prototype.handleUpdateFlowCommand=function(e){e.steps&&rU$(this,e.steps);e.entityUpdateCommand&&this.resolveCommand(e.entityUpdateCommand,{});e.flowContinuationCommand&&(e=e.flowContinuationCommand)&&(this.getFlowContinuationCommand=e);this.awaitFlowContinuation&&(e=this.getCurrentStep(),this.awaitFlowContinuation(e),this.awaitFlowContinuation=void 0)};
Bz.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var HWv=function(e){return _.k(function(z){return e.getFlowContinuationCommand?z.return(new Promise(function(C){e.awaitFlowContinuation=C;e.getFlowContinuationCommand&&e.resolveCommand(e.getFlowContinuationCommand,{flow_state:e.state})})):z.return(Promise.resolve(void 0))})};
Bz.prototype.getCurrentStep=function(){var e;if((e=this.state)!=null&&e.currentStepId)return this.steps[this.state.currentStepId]};
Bz.prototype.logVEScreen=function(e){var z;((z=e.screenLoggingData)==null?0:z.screenVeType)&&_.jk(_.nm(),e.screenLoggingData.screenVeType)};
Bz.prototype.logFlowEvent=function(e,z){var C,w,K,G;((C=z.flowLoggingData)==null?0:C.eventNamespace)&&((w=e.flowEventData)==null?0:w.eventType)&&((K=e.flowEventData)==null?0:K.eventMetadata)&&((G=z.flowLoggingData)==null?0:G.flowType)&&(e=_.TU(z.flowLoggingData.eventNamespace,e.flowEventData.eventType,e.flowEventData.eventMetadata),_.$5().logFlowEvent(e,z.flowLoggingData.flowType))};
_.lB.Object.defineProperties(Bz.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.state)==null?void 0:e.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.state)!=null&&e.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(z,C){C.key&&C.value&&(z[C.key]=C.value);return z},{})}}});var tx=function(){var e=_.V.apply(this,arguments)||this;e.flowState=_.M("web_use_flow_state_manager")?void 0:new Bz(function(z,C){C=C===void 0?{}:C;_.Tx.instance.resolveCommand(z,{form:{form:C,element:e.hostElement}})});
e.JSC$19574_flowStateManager=_.M("web_use_flow_state_manager")?_.lh().resolve(_.z7):void 0;e.currentTargetId="";e.initialState=!0;e.isLoading=!1;e.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"};e.containsTalkToRecs=!1;return e};
_.U(tx,_.V);_.Y=tx.prototype;_.Y.onPopupClosed=function(e){if(!e||this.hostElement===e.detail.popupRenderer){if(this.JSC$19574_flowStateManager){var z;((z=this.data)==null?0:z.flowStateEntityKey)&&this.JSC$19574_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.Y.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.Y.focus=function(e){var z=this;_.BI(function(){var C=_.XC(z.hostElement).querySelector("ytd-flow-step-renderer");(C==null?0:C.topBar)?C.focus(e):z.topBar&&_.kO(z.topBar,e)},1)};
_.Y.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.Y.computeTopBarHidden=function(e){var z;return!((z=_.r(e,_.o2))==null||!z.topBarOverride)};
_.Y.onCurrentFlowChange=function(){if(this.JSC$19574_flowStateManager&&this.data&&this.flow){var e=NNq(this.JSC$19574_flowStateManager,this.data),z;if(e&&((z=this.flow)==null?0:z.currentStepId)){e=tyZ(e,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var C;!e&&((C=this.data)==null?0:C.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.Y.observeData=function(){var e=this;if(this.JSC$19574_flowStateManager){var z=this.currentTargetId,C,w,K=(w=(C=this.data)==null?void 0:C.targetId)!=null?w:"";z!==K&&z&&spE(this.JSC$19574_flowStateManager,z);this.currentTargetId=K;this.data&&BNL(NNq(this.JSC$19574_flowStateManager,this.data),function(G){G&&(e.initialState=!1,e.currentFlowStep={flowStepRenderer:G},e.isLoading=!e.currentFlowStep,e.autofocusAndRefit(),e.updateContainsTalkToRecs(),e.logVEScreen(),e.logFlowEvent())})}};
_.Y.dataChanged=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1){if(!e.flowState)return w.return();((z=e.data)==null?0:z.steps)&&rU$(e.flowState,e.data.steps);if((C=e.data)==null?0:C.flowContinuationCommand){var K=e.flowState,G=e.data.flowContinuationCommand;G&&(K.getFlowContinuationCommand=G)}return w.yield(Upl(e.flowState,e.data),2)}e.currentFlowStep=w.yieldResult;_.E_(w)})};
_.Y.flowChanged=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1){if(!e.flowState||!e.flow)return C.return();e.flowState.state=e.flow;e.isLoading=!0;return C.yield(Upl(e.flowState,e.data),2)}z=C.yieldResult;if(!z||e.flow.isLoading)return C.return();e.currentFlowStep=z;e.initialState=!1;e.isLoading=!1;e.autofocusAndRefit();e.updateContainsTalkToRecs();_.E_(C)})};
_.Y.logVEScreen=function(){var e,z,C=(e=_.r(this.currentFlowStep,_.o2))==null?void 0:(z=e.screenLoggingData)==null?void 0:z.screenVeType;C&&_.jk(_.lh().resolve(_.YV),C)};
_.Y.logFlowEvent=function(){var e=_.r(this.currentFlowStep,_.o2),z,C,w,K,G,X;(this==null?0:(z=this.data)==null?0:(C=z.flowLoggingData)==null?0:C.eventNamespace)&&(this==null?0:(w=this.data)==null?0:(K=w.flowLoggingData)==null?0:K.flowType)&&(e==null?0:(G=e.flowEventData)==null?0:G.eventType)&&(e==null?0:(X=e.flowEventData)==null?0:X.eventMetadata)&&(e=_.TU(this.data.flowLoggingData.eventNamespace,e.flowEventData.eventType,e.flowEventData.eventMetadata),_.$5().logFlowEvent(e,this.data.flowLoggingData.flowType))};
_.Y.updateContainsTalkToRecs=function(){var e,z=(e=_.r(this.currentFlowStep,_.o2))==null?void 0:e.content;this.containsTalkToRecs=!!z&&!!_.r(z,q6$)};
_.Y.autofocusAndRefit=function(){var e=this,z=_.lh().resolve(_.$B(_.V5)),C=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),w=document.querySelector("yt-report-form-confirmation-page-view-model"),K=document.querySelector("yt-report-form-details-page-view-model"),G=document.querySelector("yt-report-form-reason-select-page-view-model"),X=document.querySelector("yt-contributor-zero-state-view-model"),
J=document.querySelector("yt-structured-context-note-view-model"),q=document.querySelector("yt-note-view-model");(!C&&z&&z.isKeyBoardInUse()||w||!C&&K||!C&&G||!C&&(X||J||q))&&_.qU(this.hostElement);_.T0(this,function(){_.pi(e.hostElement,"yt-refit")})};
_.Y.handleUpdateFlowCommand=function(e){this.flowState?this.data&&(e=_.r(e,_.alo),e.targetId===this.data.targetId&&(e.flowContinuationCommand&&(this.data.flowContinuationCommand=e.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(e),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(e)};
_.Y.handleFlowNextStepCommand=function(e){this.JSC$19574_flowStateManager?this.ytComponentBehavior.resolveCommand(e):this.data&&this.flow&&this.flow.key&&(e=_.r(e,_.$B4),e.targetId===this.data.targetId&&(e=e.stepId||"",this.ytdReduxBehavior.dispatch(_.d$("flowStateEntity",this.flow.key,{currentStepId:e,stepIdStack:(this.flow.stepIdStack||[]).concat(e)}))))};
_.Y.handleFlowPrevStepCommand=function(e){if(this.JSC$19574_flowStateManager)this.ytComponentBehavior.resolveCommand(e);else if(this.data&&this.flow&&this.flow.key&&(e=_.r(e,_.ll6),e.targetId===this.data.targetId)){var z=[].concat(_.s_(this.flow.stepIdStack||[]));z.length>1?(z.pop(),this.ytdReduxBehavior.dispatch(_.d$("flowStateEntity",this.flow.key,{currentStepId:z[z.length-1],stepIdStack:z}))):e.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(e.onFirstStepCommand)}};
_.Y.handleYpcCancelRecurrenceCommand=function(e){if(this.data&&this.flow&&this.flow.key&&(e=_.r(e,mLZ),e.targetId===this.data.targetId&&e.endpointCommand)){var z=_.r(this.flow,aEq);z&&_.r(e.endpointCommand,_.L9o)&&(_.r(e.endpointCommand,_.L9o).feedbackData=z.surveyFeedback);this.ytComponentBehavior.resolveCommand(e.endpointCommand)}};
_.Y.handlePartialUpdateFlowStateEntity=function(e){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.d$("flowStateEntity",this.flow.key,e,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
tx.prototype.flowChanged=tx.prototype.flowChanged;tx.prototype.dataChanged=tx.prototype.dataChanged;tx.prototype.observeData=tx.prototype.observeData;tx.prototype.onCurrentFlowChange=tx.prototype.onCurrentFlowChange;tx.prototype.onPopupClosed=tx.prototype.onPopupClosed;_.d([_.W(_.QX),_.B("design:type",Object)],tx.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],tx.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],tx.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],tx.prototype,"initialState",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],tx.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Object)],tx.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],tx.prototype,"currentFlowStep",void 0);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],tx.prototype,"onPopupClosed",null);
_.d([_.F({selectorArgs:["data.flowStateEntityKey"],selector:cHo}),_.B("design:type",Object)],tx.prototype,"flow",void 0);_.d([_.nP("ytd-flow-top-bar-renderer"),_.B("design:type",HTMLElement)],tx.prototype,"topBar",void 0);_.d([_.mi("data","flow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tx.prototype,"onCurrentFlowChange",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tx.prototype,"observeData",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],tx.prototype,"dataChanged",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],tx.prototype,"containsTalkToRecs",void 0);_.d([_.Ux("flow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],tx.prototype,"flowChanged",null);_.d([_.SL({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],tx);
_.v5a=_.Yp()(tx,"ytd-flow-root-renderer",function(){if(sSq!==void 0)return sSq;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return sSq=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var IcC;var lPb=null;_.KU(_.f(function(e){return _.x("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.x("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.x(_.U2,{text:function(){return e.data().text}}),_.x("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Bi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.vh}});var WJ5=_.f(function(e){var z=e.playerControlsProps;var C=e.isShortsPage;return _.x("yt-bigboard",null,_.x(_.l,{cond:function(){return z().isDragging},
then:function(){return _.x("div",{class:"ytBigboardStoryboardHost"},_.x(_.GEZ,{progressBarProps:z,isShortsPage:C}))}}))},"Ci");
WJ5.idomCompat=!0;_.gV={ACCOUNT_LABEL:kC("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:kC("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:kC("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:kC("AD_BADGE_HINT"),AD_BADGE_TEXT:kC("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:kC("ALL_CHANNELS_LABEL"),AMBIENT_MODE:kC("AMBIENT_MODE"),AMBIENT_MODE_OFF:kC("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:kC("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:kC("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:kC("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:kC("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:kC("APP_UPSELL_TITLE"),AUDIO_TRACK:kC("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:kC("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:kC("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:kC("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:kC("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:kC("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:kC("AUTO_ZOOM","Auto zoom"),BACK:kC("BACK"),CANCEL:kC("CANCEL"),CHANNEL_SWITCHER_LABEL:kC("CHANNEL_SWITCHER_LABEL"),CLOSE:kC("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:kC("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:kC("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:kC("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:kC("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:kC("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:kC("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:kC("COMMENT_MODAL_CONTENT"),CONFIRM_OK:kC("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:kC("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:kC("COPIED_TO_CLIPBOARD"),COPY:kC("COPY"),COPY_DEBUG_INFO:kC("COPY_DEBUG_INFO"),COPY_EMBED_CODE:kC("COPY_EMBED_CODE"),
COPY_LINK_LABEL:kC("COPY_LINK_LABEL"),COPY_VIDEO_URL:kC("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:kC("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:kC("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:kC("DELETE_FROM_DOWNLOADS"),DIALOG:kC("DIALOG"),DONE:kC("DONE"),DOWNLOAD:kC("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:kC("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:kC("FLAG_CONFIRM"),FLAG_CONTENT:kC("FLAG_CONTENT"),FLAG_LABEL:kC("FLAG_LABEL"),FLAG_TITLE:kC("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:kC("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:kC("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:kC("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:kC("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:kC("HIDE_SEARCH_FILTERS_LABEL"),HOME:kC("HOME","Home"),INVALID_RESPONSE_RECEIVED:kC("INVALID_RESPONSE_RECEIVED"),LIBRARY:kC("LIBRARY","Library"),LISTENING:kC("LISTENING"),LOADING:kC("LOADING"),LONG_PRESS_MIC_TO_SPEAK:kC("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:kC("LOOP"),MENU_DESKTOP:kC("MENU_DESKTOP"),
MENU_EXIT:kC("MENU_EXIT"),MENU_FEEDBACK:kC("MENU_FEEDBACK"),MENU_HELP:kC("MENU_HELP"),MENU_IMPRESSUM:kC("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:kC("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:kC("MENU_SETTINGS"),MENU_SIGN_IN:kC("MENU_SIGN_IN"),MENU_TITLE:kC("MENU_TITLE"),MENU_YOUR_DATA:kC("MENU_YOUR_DATA"),MORE_INFO:kC("MORE_INFO"),MORE_OPTIONS:kC("MORE_OPTIONS"),MUTE_VOLUME:kC("MUTE_VOLUME"),NEW_PLAYLIST:kC("NEW_PLAYLIST"),NEXT_VIDEO:kC("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:kC("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:kC("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:kC("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:kC("NOT_FOUND_TITLE"),NO_DOWNLOADS:kC("NO_DOWNLOADS"),NO_MIC_INPUT:kC("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:kC("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:kC("OOPS_MESSAGE"),OPEN_APP:kC("OPEN_APP"),OPEN_YOUTUBE:kC("OPEN_YOUTUBE"),PAUSE:kC("PAUSE"),PLAY:kC("PLAY"),PLAYER_CAPTION:kC("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:kC("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:kC("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:kC("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:kC("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:kC("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:kC("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:kC("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:kC("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:kC("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:kC("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:kC("PLAYER_MINIMIZE"),PLAYER_NEXT:kC("PLAYER_NEXT"),PLAYER_PAUSE:kC("PLAYER_PAUSE"),PLAYER_PLAY:kC("PLAYER_PLAY"),
PLAYER_PREVIOUS:kC("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:kC("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:kC("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:kC("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:kC("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:kC("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:kC("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:kC("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:kC("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:kC("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:kC("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:kC("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:kC("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:kC("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:kC("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:kC("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:kC("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:kC("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:kC("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:kC("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:kC("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:kC("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:kC("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:kC("PLAY_ALL"),PLEASE_FIX_ERRORS:kC("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:kC("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:kC("PREVIOUS_VIDEO"),PRIVACY_POLICY:kC("PRIVACY_POLICY"),RELOAD:kC("RELOAD"),REQUIRED_LABEL:kC("REQUIRED_LABEL"),SAVE_PLAYLIST:kC("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:kC("SCRUB_SLIDE_USER_EDU"),SEARCH:kC("SEARCH","Search"),
SEARCH_APPEND_LABEL:kC("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:kC("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:kC("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:kC("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:kC("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:kC("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:kC("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:kC("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:kC("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:kC("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:kC("SEEK_SLIDER"),SETTINGS_LABEL:kC("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:kC("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:kC("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:kC("SHOW_LESS"),SHOW_MORE:kC("SHOW_MORE"),SHOW_PLAYER_CONTROLS:kC("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:kC("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:kC("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:kC("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:kC("SIGN_IN_ON_WEB"),STABLE_VOLUME:kC("STABLE_VOLUME"),STABLE_VOLUME_OFF:kC("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:kC("STABLE_VOLUME_ON"),STATS_FOR_NERDS:kC("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:kC("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:kC("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:kC("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:kC("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:kC("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:kC("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:kC("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:kC("TIMESTAMP_SECONDS"),TOGGLE_OFF:kC("TOGGLE_OFF"),TOGGLE_ON:kC("TOGGLE_ON"),TRENDING:kC("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:kC("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:kC("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:kC("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:kC("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:kC("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:kC("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:kC("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:kC("VIDEO_LINK_LABEL")};var P65=_.f(function(e){var z=e.playerApi;e=_.kI("button",function(w){_.A$(w,36843)});
var C=kC("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.x("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.x("button",{el:e,class:"ytPlayerControlsJumpForwardButtonButton",title:C,"aria-label":C,"on:click":_.T9(function(){_.ZU(36843);z&&z().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.x("span",null,_.x(_.mB,{icon:"FAST_FORWARD"}))))},"Di");var Rkl=_.f(function(e){var z=e.appApi;e=_.kI("button",function(w){_.A$(w,62946)});
var C=kC("OPEN_IN_MINIPLAYER");return _.x("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.x("button",{el:e,class:"ytMiniplayerButtonButton",title:C,"aria-label":C,"on:click":_.T9(function(){_.ZU(62946);var w,K;(K=(w=z()).openInMiniplayer)==null||K.call(w);return!1})},_.x(_.mB,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ei");var LJW=_.f(function(e){var z=e.playerApi;e=_.kI("button",function(G){_.A$(G,142812)});
var C=_.b(_.II(!1,void 0,"eOMRAb")),w=C.next().value,K=C.next().value;C=function(){return kC("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(w()?1:2)})};
return _.x("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.x("button",{el:e,class:"ytPlaybackSpeedButtonButton",title:C,"aria-label":C,"on:click":_.T9(function(){_.ZU(142812);if(z){var G=z(),X=w();G.setPlaybackRate(X?1:2);K(!w())}return!1})},_.x("span",null,_.x(_.mB,{icon:function(){return w()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Fi");var hkZ=_.f(function(e){var z=e.title;var C=e.ariaLabel;var w=e.icon;var K=e.command;var G=e.visualElementId;e=_.kI("button",function(X){G&&_.A$(X,G())});
return _.x("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.x("button",{el:e,class:"ytdThumbnailOverlayButtonButton",title:z,"aria-label":C,"on:click":_.T9(function(){G&&_.ZU(G());K&&_.lh().resolve(_.ms).resolveCommand(K())})},_.x(_.mB,{icon:w})))},"Gi");var KX="";var OWv=_.f(function(e){var z=e.playerControlsProps,C=e.onClickFn;e=_.hG(function(){var G=z(),X=-1;G.captionsAvailable&&(X=G.captionsEnabled?1:0);return X},void 0,"MZ0Wqe");
var w=_.hG(function(){var G=z();return G.captionsAvailable?_.kk(G.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.kk("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),K=_.hG(function(){var G=z();
G=G.captionsAvailable?G.captionsEnabled:void 0;return G},void 0,"fhuQRe");
return _.x("yt-closed-captions-toggle-button",null,_.x(_.jOC,{captionIconType:e,ariaLabel:w,ariaPressed:K,onClick:function(G){var X=z();if(X.captionsAvailable){var J=X.playerApi;if(J){var q=X.playerApi;if(q){var T=KX;if(T){q=q.getOption("captions","track");var Q;KX=(Q=q?q.displayName:null)!=null?Q:T}else _.F$$(q)?(T=_.IaN(q),KX=T.length?(Q=e$$(T))?Q.displayName:T[0].displayName:""):KX=""}z$5(J);_.M("mweb_disable_set_state_captions_killswitch")&&X.setState({captionsEnabled:!X.captionsEnabled})}}var m,
a;(a=(m=X.appApi).showCaptionsToggleToast)==null||a.call(m,X);C==null||C(G)},
isOverlay:!0}))},"Hi");var E5E=_.f(function(e){var z=e.data;return _.x("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.x(_.ri,{data:function(){return{type:17,text:_.S9g(z().label)}}}))},"Ii");var FJq=_.f(function(e){var z=_.qT("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return e.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return e.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return e.size()==="small"?e.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
e.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.x("animated-seek-arrows",{class:_.qT("ytPlayerControlsAnimatedSeekArrowsHost")},_.x("span",{class:z}),_.x("span",{class:z}),_.x("span",{class:z}))},"Ji");
FJq.idomCompat=!0;var VBo=_.f(function(){var e=_.kk("PLAYER_SECONDS",{seconds_placeholder:"30"}),z=_.b(_.II(!1,void 0,"iRJu8c")),C=z.next().value,w=z.next().value,K=_.b(_.II(!1,void 0,"MPnizf"));z=K.next().value;var G=K.next().value;K={};var X=_.qT("jumpForwardOverlayOverlay",(K.jumpForwardOverlayOverlayHidden=z,K));_.sg(function(){var J=null,q=null,T=function(){J!==null&&_.So().cancelJob(J);q!==null&&_.So().cancelJob(q);G(!0);w(!0);_.XW(_.So(),function(){G(!1)});
J=_.XW(_.So(),function(){G(!0);q=_.XW(_.So(),function(){w(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",T);_.BC(function(){window.removeEventListener("jump-forward-clicked",T)})});
return _.x("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.x(_.l,{cond:C,then:function(){return _.x("div",{class:X},_.x(FJq,{direction:1,size:"large"}),_.x("div",null,e))}}))},"Ki");var fcv=_.gV.MUTE_VOLUME,SG3=_.gV.UNMUTE_VOLUME,uNL=_.f(function(e){var z=e.muteIconType;var C=e.onClick;var w=e.useOutlineIcon;var K=e.useDelhiIcons;e=_.kI("button",function(J){_.A$(J,28662)});
var G=function(){var J=z(),q=w==null?void 0:w(),T=K==null?void 0:K(),Q="",m="";switch(J){case -1:case 0:Q=q?"VOLUME_OFF":T?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";m=SG3;break;case 1:Q=q?"VOLUME_UP_OUTLINE":T?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";m=fcv;break;case 2:Q=q?"VOLUME_DOWN_OUTLINE":T?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";m=fcv;break;default:_.ca(J)}return{iconName:Q,ariaLabel:m}},X=function(){return G().ariaLabel};
return _.x("ytm-mute-button",{class:"ytmMuteButtonHost"},_.x("button",{el:e,class:"ytmMuteButtonButton",title:X,"aria-label":X,"on:click":_.T9(function(J){_.ZU(28662);C==null||C(J);return!1})},_.x("span",null,_.x(_.mB,{icon:function(){return G().iconName}}))))},"Li");var dpo=_.f(function(e){var z=e.volumeProps;var C=e.onClickFn;var w=e.useOutlineIcon;var K=e.useDelhiIcons;return _.x("yt-mute-toggle-button",null,_.x(uNL,{muteIconType:function(){var G=z();return G.volumeMuted||G.volume===0?0:G.volume>50?1:2},
onClick:function(G){var X=z().playerApi;X&&(X.isMuted()?X.unMute():X.mute(!1));C==null||C(G)},
useOutlineIcon:function(){return!(w==null||!w())},
useDelhiIcons:function(){return!(K==null||!K())}}))},"Mi");
dpo.idomCompat=!0;var DpL=_.f(function(e){var z=e.data;var C=_.kI("ytm-paid-content-overlay-renderer");return _.x("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:C,"on:animationend":_.T9(function(){C.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.x(_.fE,{command:function(){return z().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.x(_.l,{cond:function(){var w;return(w=z().icon)==null?void 0:w.iconType},
then:function(){return _.x("span",null,_.x(_.mB,{icon:function(){var w;return(w=z().icon)==null?void 0:w.iconType}}))}}),_.x("div",{class:"ytmPaidContentOverlayText"},_.x(_.U2,{text:function(){return z().text}})),_.x(_.l,{cond:function(){return z().navigationEndpoint},
then:function(){return _.x(_.mB,{icon:"CHEVRON_RIGHT"})}})))},"Ni");
DpL.idomCompat=!0;var prE=[].concat(_.s_([{register:function(e){var z=VyE(e),C;(C=e().playerApi)==null||C.addEventListener("onVolumeChange",z);return function(){}}},
{register:function(e){var z=fPW(e);e=e().playerApi;e==null||e.addEventListener("captionschanged",z);e==null||e.addEventListener("captionssettingschanged",z);e==null||e.addEventListener("onCaptionsTrackListChanged",z);return function(){}}}]),[{register:function(e){var z=hD3(e),C;
(C=e().playerApi)==null||C.addEventListener("onStateChange",z);return function(){}}},
{register:function(e){var z=Oi$(e),C;(C=e().playerApi)==null||C.addEventListener("onPlaybackRateChange",z);return function(){}}},
{register:function(e){var z=E1o(e),C;(C=e().playerApi)==null||C.addEventListener("onVideoDataChange",z);return function(){}}},
{register:function(e){var z=FbL(e),C,w;(C=e())==null||(w=C.playerApi)==null||w.addEventListener("onVideoProgress",z);return function(){}}}]);var iW5=_.f(function(e){var z=e.data;var C=function(){return _.kk("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+z().playbackRate})};
return _.x(_.l,{cond:function(){return z().playbackRate&&z().playbackRate!==1},
then:function(){return _.x("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.x("div",{class:"ytPlaybackRateOverlayOverlay"},_.x(FJq,{direction:1,size:"small"}),_.x("div",{class:"ytPlaybackRateOverlayLabel"},C)))}})},"Pi");var NPZ=_.f(function(e){var z=e.data;return _.x("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.x(_.l,{cond:function(){var C,w=(C=z())==null?void 0:C.playerResponse,K;return w==null?void 0:(K=w.paidContentOverlay)==null?void 0:K.paidContentOverlayRenderer},
then:function(C){return _.x(DpL,{data:C})}}))},"Ri"),sgq=_.f(function(e){var z=e.props;
var C=e.data;var w=e.options;var K=function(){var T,Q,m,a;return(T=C())==null?void 0:(Q=T.playerResponse)==null?void 0:(m=Q.playerConfig)==null?void 0:(a=m.inlinePlaybackConfig)==null?void 0:a.showAudioControls},G=function(){var T,Q;
if(K()&&((T=w())==null?void 0:(Q=T.additionalButton)==null?void 0:Q.button)!==void 0){var m,a,n;T=(m=C())==null?void 0:(a=m.playerApi)==null?void 0:(n=a.getSize())==null?void 0:n.height;if(!(T===void 0||T<180)){var H,I;return(H=w())==null?void 0:(I=H.additionalButton)==null?void 0:I.button}}},X=function(){var T,Q;
return(T=w())==null?void 0:(Q=T.additionalButton)==null?void 0:Q.thumbnailOverlayButtonRenderers},J=function(){var T,Q;
return(T=w())==null?void 0:(Q=T.additionalButton)==null?void 0:Q.thumbnailOverlayButtonViewModels},q=function(){var T=[_.x(dpo,{volumeProps:z})],Q;
((Q=w())==null?0:Q.hideCaptionsToggleButton)||T.push(_.x(OWv,{playerControlsProps:z}));G()===1&&T.push(_.x(P65,{playerApi:function(){return z().playerApi}}));
G()===2&&T.push(_.x(Rkl,{appApi:function(){return z().appApi}}));
G()===3&&T.push(_.x(LJW,{playerApi:function(){return z().playerApi}}));
Q=X();if(G()===4&&Q){Q=_.b(Q);for(var m=Q.next(),a={};!m.done;a={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$49:void 0,command$jscomp$606:void 0},m=Q.next()){m=m.value;a.tooltip$jscomp$2=m.tooltip;var n=void 0,H=void 0;a.ariaLabel$jscomp$19=((n=m.accessibility)==null?void 0:(H=n.accessibilityData)==null?void 0:H.label)||a.tooltip$jscomp$2;n=void 0;a.icon$jscomp$49=(n=m.icon)==null?void 0:n.iconType;a.command$jscomp$606=m.command;a.tooltip$jscomp$2&&a.ariaLabel$jscomp$19&&a.icon$jscomp$49&&
T.push(_.x(hkZ,{title:function(I){return function(){return I.tooltip$jscomp$2}}(a),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$19}}(a),
icon:function(I){return function(){return I.icon$jscomp$49}}(a),
command:function(I){return function(){return I.command$jscomp$606}}(a)}))}}Q=J();
if(G()===4&&Q)for(Q=_.b(Q),m=Q.next(),a={};!m.done;a={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$607:void 0,trackingParamsVeType:void 0},m=Q.next())m=m.value,a.tooltip$jscomp$3=m.title,a.ariaLabel$jscomp$20=m.accessibilityText||a.tooltip$jscomp$3,a.icon$jscomp$50=m.iconName,a.command$jscomp$607=_.SQ(m.onTap),H=n=void 0,a.trackingParamsVeType=((n=m.loggingDirectives)==null?0:n.trackingParams)?(H=kjW(_.po(m.loggingDirectives.trackingParams)))==null?void 0:
_.$2(H,2):void 0,a.tooltip$jscomp$3&&a.ariaLabel$jscomp$20&&a.icon$jscomp$50&&T.push(_.x(hkZ,{title:function(I){return function(){return I.tooltip$jscomp$3}}(a),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$20}}(a),
icon:function(I){return function(){return I.icon$jscomp$50}}(a),
command:function(I){return function(){return I.command$jscomp$607}}(a),
visualElementId:function(I){return function(){return I.trackingParamsVeType}}(a)}));
return T};
return _.x(_.l,{cond:K,then:function(){return _.x("div",{class:"ytInlinePlayerControlsTopRightControls"},_.x(_.ui,{each:q},function(T){return _.x("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.x("div",{class:"ytInlinePlayerControlsButtonIcon"},T))}))}})},"Si"),g5Y=_.f(function(e){var z=e.props;
var C=e.data;var w=e.options;e={};e=_.qT("ytInlinePlayerControlsBottomRightControls",(e.ytInlinePlayerControlsBottomRightControlsHidden=function(){var K;return uuL(C(),w())&&((K=w())==null?void 0:K.insetProgressBar)&&(z().isHovering||z().isDragging)},e));
return _.x("div",{class:e},_.x(BP5,{data:C}),_.x(_.l,{cond:function(){var K;return!((K=w())==null?0:K.hideTimeDisplay)},
then:function(){return _.x(tBf,{props:z,data:C})}}))},"Ti"),BP5=_.f(function(e){var z=e.data;
return _.x(_.PF,{data:function(){var C;return U$E((C=z())==null?void 0:C.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:E5E})},"Ui"),tBf=_.f(function(e){var z=e.props;
var C=e.data;return _.x(_.l,{cond:function(){return z().isLive},
then:function(){return _.x(jgY,{props:z,data:C})},
else:function(){return _.x(yUL,{props:z,data:C})}})},"Vi"),yUL=_.f(function(e){var z=e.props;
var C=e.data;var w=_.hG(function(){var K;return v15((K=C())==null?void 0:K.thumbnailOverlays)},void 0,"Pf9uIe");
return _.x("div",{class:_.qT("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.gV.PLAYER_TIME_ELAPSED+" "+_.pD1(z().playedTime)}},_.x(_.ri,{data:function(){var K=_.pD1(z().videoDuration-z().playedTime);
return Object.assign({},{type:17,text:K},w())}}))},"Wi"),cUL=_.f(function(e){e=e.badgeShapeData;
return _.x("div",{class:_.qT("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.x(_.ri,{data:e}))},"Xi"),jgY=_.f(function(e){var z=e.data;
e=_.hG(function(){if(_.M("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var w,K=_.b(((w=z())==null?void 0:w.thumbnailOverlays)||[]);for(w=K.next();!w.done;w=K.next()){w=w.value;if(w.thumbnailOverlayTimeStatusRenderer||w.thumbnailOverlayBadgeViewModel)return w;var G=void 0;if((G=w.thumbnailBottomOverlayViewModel)==null?0:G.badges)if(w=w.thumbnailBottomOverlayViewModel.badges.find(function(X){return _.r(X,rwb)}))return w}}},void 0,"GPGpgc");
var C=_.hG(function(){var w,K,G,X,J,q;return _.syL((w=z())==null?void 0:(K=w.playerApi)==null?void 0:(G=K.getSize())==null?void 0:G.width,(X=z())==null?void 0:(J=X.playerApi)==null?void 0:(q=J.getSize())==null?void 0:q.height)},void 0,"OeIVKe");
return _.x(_.l,{cond:e,then:function(w){return _.x(_.PF,{data:w},{thumbnailOverlayTimeStatusRenderer:function(K){var G=K.data;K=_.hG(function(){return _.Ols(G(),0)},void 0,"skoDC");
return _.x(cUL,{badgeShapeData:K})},
thumbnailBadgeViewModel:function(K){return _.x(_.h4a,{data:K.data,class:_.qT("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(K){return _.x(_.Suo,{data:K.data,thumbnailSize:C})}})},
else:function(){var w={type:18,text:_.gV.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.x(cUL,{badgeShapeData:function(){return w}})}})},"Yi"),AUZ=_.f(function(e){var z=e.props;
var C=e.data;var w=e.options;return _.x(_.qOa,{progressBarProps:z,config:function(){var K,G=_.r((K=C())==null?void 0:K.multiMarkersPlayerBar,_.eBg),X;K=((X=w())==null?0:X.insetProgressBar)?2:1;var J;X=(J=w())==null?void 0:J.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:K,chapterData:G,isInlinePlayback:!0,doSeekOnClick:X,playheadDotBehavior:X?1:0}}})},"Zi");_.KU(_.f(function(e){var z=e.data;var C=e.appApi;var w=e.options;var K=Lbq(z,SXq(C));e={};C={};return _.x("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.x("div",{class:_.qT("ytInlinePlayerControlsDarkenedOverlay",(e.ytInlinePlayerControlsDarkenedOverlayShow=function(){return K().isHovering},e))}),_.x(VBo,null),_.x(iW5,{data:K}),_.x(NPZ,{data:z}),_.x(WJ5,{playerControlsProps:K,
isShortsPage:!1}),_.x("div",{class:_.qT((C.ytInlinePlayerControlsControlsHidden=function(){return K().isDragging},C))},_.x(sgq,{props:K,
data:z,options:w}),_.x(g5Y,{props:K,data:z,options:w})),_.x(_.l,{cond:function(){return uuL(z(),w())},
then:function(){return _.x(AUZ,{props:K,data:z,options:w})}}))},"Qi"),"yt-inline-player-controls",{props:{data:_.vh,
appApi:_.z9,options:_.vh}});var jK=function(){var e=_.V.apply(this,arguments)||this;e.opts=null;e.playerControlsData=null;e.playerControlsAppApi={openInMiniplayer:function(){e.openInMiniplayer()}};
e.playerControlsOptions={};e.noAnimation=!1;e.playbackIntentTriggered=!1;e.positionData=null;e.hidden=!0;e.active=!1;e.playing=!1;e.persistentPanelVisible=!1;e.videoPreviewDataIndex=0;e.JSC$19617_playerPromise=null;e.player=null;e.enableAudioControls=!1;e.hasBeenUnmuted=!1;e.captionsHaveBeenTurnedOff=!1;e.JSC$19617_playerEvents=new Map;e.videoPreviewFetchRequest=null;e.scheduledPreviewEndJobId=null;e.JSC$19617_preventProgressSaveTimer=null;e.watchEndpointStartTimeUpdaterInterval=null;e.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};e.windowOnBlurFn=function(){e.deactivate()};
return e};
_.U(jK,_.V);_.Y=jK.prototype;
_.Y.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.Y.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19617_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19617_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19617_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19617_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.lE(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.lE(this,this.onScroll))};
_.Y.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.lE(this,this.onScroll))};
_.Y.onPageTypeChange=function(){this.deactivate()};
_.Y.onWindowResized=function(){this.deactivate()};
_.Y.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.Y.onCaptionsChanged=function(e){e=!!e.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!e);this.setCaptionSize()};
_.Y.setCaptionSize=function(){var e;if(this.active&&!this.captionsHaveBeenTurnedOff&&((e=this.player)==null?0:e.getCaptionWindowContainerId())){var z;(z=this.player)==null||z.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.Y.currentPageAllowed=function(){return!this.isWatchPage};
_.Y.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.M("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var e=this.positionData,z=e.initialTopPosition,C=e.initialHorizontalPosition;_.T8(this.hostElement,{"--ytd-video-preview-translate-left":e.finalHorizontalPosition-C+"px","--ytd-video-preview-translate-top":e.finalTopPosition-z+"px","--ytd-video-preview-original-top-position":z+
"px","--ytd-video-preview-original-horizontal-position":C+"px","--ytd-video-preview-initial-scale":"scale("+e.initialScale+")","--ytd-video-preview-width":e.videoPreviewWidth+"px","--ytd-video-preview-height":e.videoPreviewHeight+"px"});return!0};
_.Y.isOutOfBounds=function(e){var z=e.initialHorizontalPosition+12;e=z+e.videoPreviewWidth>window.innerWidth;return z<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&z<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&z<72||e};
_.Y.handleOpenVideoPreviewAction=function(e){var z=this,C;return _.k(function(w){if(!z.currentPageAllowed())return w.return(0);z.opts=e;return(C=z.alignVideoPreviewForAnimation(e.thumbnail))?w.return(z.activate()):w.return(0)})};
_.Y.onMouseLeave=function(e){var z,C;(z=this.opts)==null||(C=z.mouseleaveCallback)==null||C.call(z);this.shouldDeactivateOnMouseLeave(e)&&this.deactivate()};
_.Y.onScroll=function(){var e,z;((e=this.opts)==null?0:e.isAutoplay)&&((z=this.opts)==null?0:z.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.Y.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.c5.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.Y.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.Y.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",jK.JSC$19616_DEFAULT_CLICK_LOCATION_BEHAVIOR,jK.JSC$19616_CLICK_LOCATION_ID_MAP)};
_.Y.shouldDeactivateOnMouseLeave=function(e){e=e.relatedTarget;if(!e)return!0;var z;return(z=this.opts)!=null&&z.mediaRenderer?!_.JK(this.opts.mediaRenderer).contains(e):!0};
_.Y.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.Y.onPlaybackStart=function(){var e=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$19617_preventProgressSaveTimer=
_.XW(_.c5,function(){e.resetPreventProgressSaveTimer()},1E4);
var z;if((z=this.opts)==null?0:z.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.XW(_.c5,function(){e.hasMultipleVideoPreviews()?e.startPlaybackForNextVideo():e.deactivate()},this.opts.videoPreviewDurationMs);
var C;this.player.setGlobalCrop(((C=this.opts)==null?0:C.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.Y.getRoundedCornersSize=function(){var e;if((e=this.opts)==null?0:e.roundedCornersSize){var z;return(z=this.opts)==null?void 0:z.roundedCornersSize}var C;if((C=this.opts)==null?0:C.enableRounding){var w;if(((w=this.opts)==null?void 0:w.thumbnailSize)==="small")return 1;var K;if(((K=this.opts)==null?void 0:K.thumbnailSize)==="medium")return 2;var G;if(((G=this.opts)==null?void 0:G.thumbnailSize)==="large")return 3}return _.M("web_imp_inset_progress_bar")?3:0};
_.Y.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.Y.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.Y.onMediaContainerClick=function(e){this.isShortcutClick(e)||(this.navigateToWatch(e),e.preventDefault(),e.stopPropagation())};
_.Y.activate=function(){var e=this,z,C,w,K,G,X,J,q,T;return _.k(function(Q){switch(Q.nextAddress){case 1:if(!e.currentPageAllowed())return Q.return(0);C=(z=e.videoPreviewData)==null?void 0:z.inlinePlaybackEndpoint;w=_.tq.instance;if(!C||!w)return Q.return(0);e.playbackIntentTriggered=!0;((K=e.opts)==null?0:K.mediaRenderer)&&((G=e.opts)==null||!G.isAutoplay)&&n1l(e.opts.mediaRenderer,function(){e.deactivate()});
_.T0(e,function(){e.revealPreviewUi()});
X={};_.M("enable_unknown_lact_fix_on_html5")&&(_.lh().resolve(_.UT),X.lact=_.aC());e.videoPreviewFetchRequest=x$l(w,e.getInlinePlaybackRequestData(e.videoPreviewData),X);_.Iv(Q,2);return Q.yield(e.videoPreviewFetchRequest,4);case 4:J=Q.yieldResult;if(((q=J)==null?void 0:(T=q.playabilityStatus)==null?void 0:T.status)==="OK")return Q.return(e.handlePlayerResponse(J));throw Error("gk");case 2:_.O_(Q),e.deactivate();case 3:return Q.return(1)}})};
_.Y.getInlinePlaybackRequestData=function(e){var z,C=_.M("web_imp_player_mute_params")?((z=this.opts)==null?void 0:z.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:e.inlinePlaybackEndpoint,startPlaybackInMutedState:C}};
_.Y.handlePlayerResponse=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m,a,n,H,I;return _.k(function(L){if(L.nextAddress==1){C=z.getInlinePlaybackVideoId();if(!(((w=e)==null?0:(K=w.videoDetails)==null?0:K.videoId)&&z.currentPageAllowed()&&z.playbackIntentTriggered&&z.opts&&C))return z.deactivate(),L.return(0);if(e.videoDetails.videoId!==C)return L.return(0);z.enableAudioControls=!!((G=e.playerConfig)==null?0:(X=G.inlinePlaybackConfig)==null?0:X.showAudioControls);e.trackingParams=z.getInlinePlaybackTrackingParams();
if(!z.inlinePlayer)return L.return(0);J={};if(T=_.r((q=z.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint,_.N$))J.watch_endpoint=T;if(z.videoPreviewData){var h,E=(h=_.r(z.videoPreviewData.inlinePlaybackEndpoint,_.N$))==null?void 0:h.startTimeSeconds;E!==void 0&&(e.playerConfig||(e.playerConfig={}),e.playerConfig.playbackStartConfig||(e.playerConfig.playbackStartConfig={}),e.playerConfig.playbackStartConfig.startPosition||(e.playerConfig.playbackStartConfig.startPosition={}),e.playerConfig.playbackStartConfig.startSeconds=
E,e.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(E*1E3))}z.inlinePlayer.loadVideoWithPlayerResponse(e,J);if(z.JSC$19617_playerPromise)return L.jumpTo(2);z.JSC$19617_playerPromise=z.inlinePlayer.getPlayerPromise();return L.yield(z.JSC$19617_playerPromise,3)}L.nextAddress!=2&&(Q=L.yieldResult,Q.setInlinePreview(!0),m=!_.M("web_imp_theater_bugfix"),Q.setSizeStyle(!1,m),z.ytPlayerListenerBehavior.listenToPlayerEvents(Q,z.JSC$19617_playerEvents),z.player=Q,_.pi(z.hostElement,
"player-api-ready"));((a=z.opts)==null?0:a.showPlayerControls)&&z.videoPreviewData&&z.player&&(z.playerControlsData={playerResponse:e,isInlinePlayback:!0,thumbnailOverlays:z.videoPreviewData.thumbnailOverlays,playerApi:z.player},z.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!z.unroundCornersForPlayback,additionalButton:z.getAdditionalButtonType(z.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(n=z.opts)==null?void 0:n.hideTimeDisplay,hideScrubbingControls:(H=z.opts)==
null?void 0:H.hideScrubber,hideCaptionsToggleButton:(I=z.opts)==null?void 0:I.hideCaptionsToggleButton});return L.return(2)})};
_.Y.revealPreviewUi=function(){var e=this;this.playbackIntentTriggered&&_.UI1(this,function(){e.hasThumbnailPositionChangedSinceTriggered()||(e.updateActiveState(!0),e.noAnimation=!1)})};
_.Y.hasThumbnailPositionChangedSinceTriggered=function(){var e=this.positionData,z=this.getThumbnailPositionData();return(e==null?void 0:e.initialTopPosition)!==(z==null?void 0:z.initialTopPosition)||(e==null?void 0:e.initialHorizontalPosition)!==(z==null?void 0:z.initialHorizontalPosition)};
_.Y.getThumbnailPositionData=function(){var e,z;if((z=this.opts)==null||!z.thumbnail)return null;z=this.opts.thumbnail;var C=((e=this.opts)==null?0:e.cropPlayerToFillThumbnailHorizontally)?!1:!0;var w=z.getBoundingClientRect();e=w.width;z=w.height;var K=w.top+window.scrollY;w=w.left+window.scrollX;var G=C?Math.ceil(e):e;C=C?Math.ceil(z):z;var X=e/G;e={initialScale:X,initialTopPosition:K-12*X,finalTopPosition:K-12-(C-z)/2,initialHorizontalPosition:w-(12+(G-e)/2),finalHorizontalPosition:w-12-(G-e)/
2,videoPreviewWidth:G,videoPreviewHeight:C};return e};
_.Y.updateActiveState=function(e){this.active=e;this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:e}))};
_.Y.stopPlayer=function(e){e=e.resetWatchEndpointStartTime===void 0?!1:e.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(e)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.c5.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.Y.deactivate=function(e){e=e===void 0?{}:e;e=e.resetWatchEndpointStartTime===void 0?!1:e.resetWatchEndpointStartTime;lPb&&(lPb.disconnect(),lPb=null);this.stopPlayer({resetWatchEndpointStartTime:e});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.Y.isValidThumbnailOverlayButton=function(e,z){e=e.thumbnailOverlayButtonRenderer;var C;return!!e&&!!e.tooltip&&!((C=e.icon)==null||!C.iconType)&&z.includes(e.icon.iconType)};
_.Y.isValidThumbnailOverlayButtonViewModel=function(e,z){var C;e=_.r((C=e.thumbnailOverlayButtonViewModel)==null?void 0:C.overlayButton,_.H7);return!!e&&!!e.title&&!!e.iconName&&z.includes(e.iconName)};
_.Y.getAdditionalButtonType=function(e){var z=this;if(_.M("web_imp_fastforward_button"))return{button:1};if(_.M("web_imp_miniplayer_button"))return{button:2};if(_.M("web_imp_playback_speed_button"))return{button:3};var C=["BOX_STACK_3"],w=(e||[]).filter(function(G){return z.isValidThumbnailOverlayButton(G,C)}).map(function(G){return G.thumbnailOverlayButtonRenderer});
if(w.length)return{button:4,thumbnailOverlayButtonRenderers:w};var K=["BOX_STACK_3"];e=(e||[]).filter(function(G){return z.isValidThumbnailOverlayButtonViewModel(G,K)}).map(function(G){return _.r(G.thumbnailOverlayButtonViewModel.overlayButton,_.H7)});
if(e.length)return{button:4,thumbnailOverlayButtonViewModels:e}};
_.Y.allowCaptions=function(){var e;return!((e=this.opts)==null?0:e.forceCaptionsOff)};
_.Y.allowUnmuting=function(){var e;return this.enableAudioControls&&!((e=this.opts)==null?0:e.forceMutedVolume)};
_.Y.beginStartTimeUpdater=function(){var e=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.vi(function(){e.updateWatchEndpointStartTime()},1E3)};
_.Y.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.Y.resetPreventProgressSaveTimer=function(){this.JSC$19617_preventProgressSaveTimer!==null&&(_.c5.cancelJob(this.JSC$19617_preventProgressSaveTimer),this.JSC$19617_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.Y.updateWatchEndpointStartTime=function(e){var z=this.videoPreviewData;if(this.player&&z!=null&&z.inlinePlaybackEndpoint&&!this.JSC$19617_preventProgressSaveTimer){e=e?0:Math.floor(this.player.getCurrentTime());var C=_.r(z.navigationEndpoint,_.N$);C&&(C.startTimeSeconds=e);if(z=_.r(z.inlinePlaybackEndpoint,_.N$))z.startTimeSeconds=e}};
_.Y.isShortcutClick=function(e){return!!e&&(e.ctrlKey||e.shiftKey||e.metaKey)};
_.Y.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.Y.openInMiniplayer=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1){C=(z=e.videoPreviewData)==null?void 0:z.navigationEndpoint;if(!C)return w.return();_.C3().lockupActivation=!0;return w.yield(_.KNg(_.lh().resolve(_.gh),C),2)}_.C3().userActivation=!0;_.E_(w)})};
_.Y.navigateToWatch=function(e){var z,C=(z=this.videoPreviewData)==null?void 0:z.navigationEndpoint;if(C){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(C,e,!0);else{var w;_.M("web_thumbnail_to_watch_transition")&&((w=this.opts)==null?0:w.thumbnail)&&_.zY4(_.lh().resolve(_.b_),this.opts.thumbnail);_.pi(this.hostElement,"yt-navigate",{endpoint:C})}this.deactivate()}};
_.Y.getInlinePlaybackVideoId=function(){var e,z;return(z=_.r((e=this.videoPreviewData)==null?void 0:e.inlinePlaybackEndpoint,_.N$))==null?void 0:z.videoId};
_.Y.getInlinePlaybackTrackingParams=function(){var e,z;return(e=this.videoPreviewData)==null?void 0:(z=e.inlinePlaybackEndpoint)==null?void 0:z.clickTrackingParams};
_.Y.hasMultipleVideoPreviews=function(){var e;return!!(((e=this.opts)==null?0:e.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.Y.startPlaybackForNextVideo=function(){var e;(e=this.opts)!=null&&e.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())};
_.lB.Object.defineProperties(jK.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.opts)==null?0:e.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.opts)==null||!e.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 e;if(Array.isArray((e=this.opts)==null?void 0:e.videoPreviewData)){var z;return(z=this.opts)==null?void 0:z.videoPreviewData[this.videoPreviewDataIndex]}var C;return(C=this.opts)==null?void 0:C.videoPreviewData}}});
jK.prototype.onIsAdsVideoChange=jK.prototype.onIsAdsVideoChange;jK.prototype.onInlinePreviewIsEnabledChange=jK.prototype.onInlinePreviewIsEnabledChange;jK.prototype.optsChanged=jK.prototype.optsChanged;jK.prototype.onMouseLeave=jK.prototype.onMouseLeave;jK.prototype.onPersistentPanelVisibleChange=jK.prototype.onPersistentPanelVisibleChange;jK.JSC$19616_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
jK.JSC$19616_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"}];_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],jK.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],jK.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],jK.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],jK.prototype,"componentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],jK.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.fB.YtSparklesClickLocationBehavior),_.B("design:type",Object)],jK.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jK.prototype,"opts",void 0);_.d([_.F(),_.B("design:type",Object)],jK.prototype,"playerControlsData",void 0);_.d([_.F(),_.B("design:type",Object)],jK.prototype,"playerControlsAppApi",void 0);
_.d([_.F(),_.B("design:type",Object)],jK.prototype,"playerControlsOptions",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jK.prototype,"noAnimation",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jK.prototype,"hidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jK.prototype,"active",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jK.prototype,"playing",void 0);
_.d([_.F({selector:_.Deg}),_.B("design:type",Boolean)],jK.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.F(),_.B("design:type",String)],jK.prototype,"pagePath",void 0);_.d([_.F({selector:_.S2g}),_.B("design:type",Boolean)],jK.prototype,"isWatchPage",void 0);_.d([_.F({selector:_.cF.persistentPanelVisibleSelector}),_.B("design:type",Object)],jK.prototype,"persistentPanelVisible",void 0);
_.d([_.P("videoPreviewData"),_.B("design:type",Object),_.B("design:paramtypes",[])],jK.prototype,"thumbnailData",null);_.d([_.P("opts","active"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jK.prototype,"hidePlayerControls",null);_.d([_.P("opts"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jK.prototype,"isAdsVideo",null);
_.d([_.P("opts"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jK.prototype,"roundedCornersSmall",null);_.d([_.P("opts"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jK.prototype,"roundedCornersMedium",null);_.d([_.P("opts"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jK.prototype,"roundedCornersLarge",null);
_.d([_.P("opts"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jK.prototype,"unroundCornersForPlayback",null);_.d([_.P("opts","videoPreviewDataIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],jK.prototype,"videoPreviewData",null);_.d([_.F(),_.B("design:type",Object)],jK.prototype,"videoPreviewDataIndex",void 0);_.d([_.nP("#inline-player"),_.B("design:type",Object)],jK.prototype,"inlinePlayer",void 0);
_.d([_.mi("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jK.prototype,"onPersistentPanelVisibleChange",null);_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],jK.prototype,"onMouseLeave",null);_.d([_.Ux("opts"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jK.prototype,"optsChanged",null);
_.d([_.Ux("inlinePreviewIsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jK.prototype,"onInlinePreviewIsEnabledChange",null);_.d([_.mi("isAdsVideo"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jK.prototype,"onIsAdsVideoChange",null);_.d([_.SL({is:"ytd-video-preview",disableElementRegistration:!0})],jK);
_.u(jK,"ytd-video-preview",function(){if(IcC!==void 0)return IcC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return IcC=e},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.bx=function(e){return function(z,C){var w=e||C.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(z,C,{get:function(){var K;return this.$?this.$[w]:(K=_.a3(this))==null?void 0:K.querySelector("#"+w)},
enumerable:!0,configurable:!0})}};_.X_=function(e){e=e===void 0?!1:e;_.Sn.call(this);this.pubSub_=new _.hJ(e);_.I4(this,this.pubSub_)};
_.Tk(_.X_,_.Sn);_.X_.prototype.subscribe=function(e,z,C){return this.isDisposed()?0:this.pubSub_.subscribe(e,z,C)};
_.X_.prototype.unsubscribe=function(e,z,C){return this.isDisposed()?!1:this.pubSub_.unsubscribe(e,z,C)};
_.X_.prototype.unsubscribeByKey=function(e){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(e)};
_.X_.prototype.publish=function(e,z){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var gaa=function(){_.g7("ypcRedeemFlowStarted")},jT2=function(e){_.g7("ypcRedeemFlowFailed",void 0,void 0,void 0,e)},yt2=function(e,z,C){z&&C&&(e.videos.forEach(function(w){w.videoId===z&&(w.itemId=C)}),e.recommendedVideos.forEach(function(w){w.videoId===z&&(w.itemId=C)}))};var ctL;var Atj;/*

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
*/
_.hK({_template:function(){if(Atj!==void 0)return Atj;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ctL===void 0&&(ctL=document.createElement("template"));var w=ctL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return Atj=e},
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(e,z){var C=this._resolveSrc(e);C!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",e===""||z?this._setLoading(!1):(this._resolvedSrc=C,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 e=this.$.sizedImgDiv.style,z=this.$.placeholder.style;e.backgroundSize=z.backgroundSize=this.sizing;e.backgroundPosition=z.backgroundPosition=this.sizing?this.position:"";e.backgroundRepeat=z.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(e){e=_.Uc(e,this.$.baseURIAnchor.href);e.length>=2&&e[0]==="/"&&e[1]!=="/"&&(e=(location.origin||location.protocol+"//"+location.host)+e);return e}});var ZYT;var pLL;_.hK({_template:function(){if(pLL!==void 0)return pLL;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;ZYT===void 0&&(ZYT=document.createElement("template"));var w=ZYT;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return pLL=e},
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(e){return e?"false":"true"},
_headingChanged:function(e){var z=this.getAttribute("heading"),C=this.getAttribute("aria-label");typeof C==="string"&&C!==z||this.setAttribute("aria-label",e)},
_computeHeadingClass:function(e){return e?" over-image":""},
_computeAnimated:function(e){return e}});var eXL=new _.nN("addRendererToItemSectionAction");var zX2;var OM=function(){return _.V.apply(this,arguments)||this};
_.U(OM,_.V);OM.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],OM.prototype,"rendererBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],OM.prototype,"dismissibleItemBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],OM.prototype,"rendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],OM.prototype,"data",void 0);_.d([_.SL({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],OM);
_.u(OM,"ytd-comment-history-entry-renderer",function(){if(zX2!==void 0)return zX2;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return zX2=e},{mode:1});var CCj;_.hq("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.hq("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var EM=function(){return _.V.apply(this,arguments)||this};
_.U(EM,_.V);_.Y=EM.prototype;_.Y.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.onKeyUp=function(e){if(e.keyCode===13)this.onTap()};
_.Y.onTap=function(){this.data.recordClickEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var e=this.data.navigationEndpoint;e&&_.r(e,_.TC)&&_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})};
_.Y.readChanged=function(){var e;_.k$(this.hostElement,"unread",!((e=this.data)==null?0:e.read))};
_.Y.dataChanged=function(){this.data&&_.k$(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.Y.computeThumbnailSize=function(){var e;return((e=this.data)==null?0:e.highPriorityNotification)?32:48};
_.Y.getEndpointURL=function(e){return e&&!_.r(e,_.TC)?this.componentBehavior.computeHref_(e):null};
_.Y.getEndpointData=function(e){return e&&!_.r(e,_.TC)?e:null};
EM.prototype.computeThumbnailSize=EM.prototype.computeThumbnailSize;EM.prototype.dataChanged=EM.prototype.dataChanged;EM.prototype.readChanged=EM.prototype.readChanged;EM.prototype.onKeyUp=EM.prototype.onKeyUp;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],EM.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],EM.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],EM.prototype,"data",void 0);_.d([_.F({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.B("design:type",Number)],EM.prototype,"thumbnailSize",void 0);_.d([_.Qi("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],EM.prototype,"onKeyUp",null);
_.d([_.mi("data.read"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EM.prototype,"readChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EM.prototype,"dataChanged",null);_.d([_.mi("data.highPriorityNotification"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EM.prototype,"computeThumbnailSize",null);
_.d([_.SL({is:"ytd-notification-renderer",disableElementRegistration:!0})],EM);
_.u(EM,"ytd-notification-renderer",function(){if(CCj!==void 0)return CCj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return CCj=e},{mode:1});var wZT;var F8=function(){return _.V.apply(this,arguments)||this};
_.U(F8,_.V);F8.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"}}}};
F8.prototype.computeActionButtonClass=function(e){return!e.actionButtons||e.actionButtons.length<=1?"single-button":e.description?"vertical-buttons":"horizontal-buttons"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],F8.prototype,"data",void 0);_.d([_.SL({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],F8);
_.u(F8,"ytd-playlist-show-metadata-renderer",function(){if(wZT!==void 0)return wZT;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return wZT=e},{mode:1});var Kgl;_.hq("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var VY=function(){return _.V.apply(this,arguments)||this};
_.U(VY,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],VY.prototype,"data",void 0);_.d([_.SL({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],VY);
_.u(VY,"ytd-purchase-item-renderer",function(){if(Kgl!==void 0)return Kgl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Kgl=e},{mode:1});var ool;var G6a={};G6a.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(e){if(e)return e.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(e){if(e==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.hq("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var fw=function(){return _.V.apply(this,arguments)||this};
_.U(fw,_.V);fw.prototype.onYtNavigate=function(e){var z=this.openPopupBehavior.getNavigationEndpointPopupAction(e.detail.endpoint);z&&(e.stopPropagation(),this.openPopupBehavior.openPopup(z))};
fw.prototype.onYtNavigate=fw.prototype.onYtNavigate;_.d([_.W(G6a.YtSimpleTextSectionBehavior),_.B("design:type",Object)],fw.prototype,"ytSimpleTextSectionBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],fw.prototype,"openPopupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],fw.prototype,"data",void 0);
_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fw.prototype,"onYtNavigate",null);_.d([_.SL({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],fw);
_.u(fw,"ytd-simple-text-section-renderer",function(){if(ool!==void 0)return ool;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ool=e},{mode:1});var Y_w;_.hq("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var bqg=function(){return _.V.apply(this,arguments)||this};
_.U(bqg,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bqg.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bqg.prototype,"data",void 0);_.d([_.SL({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],bqg);
_.u(bqg,"ytd-unlimited-page-feature-info-renderer",function(){if(Y_w!==void 0)return Y_w;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Y_w=e},{mode:1});var XZl;var Jn2;var Sm=function(){return _.V.apply(this,arguments)||this};
_.U(Sm,_.V);Sm.prototype.dataChanged=function(){if(this.data){var e=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);e&&(e=_.oo(e,screen.width),this.hostElement.style.backgroundImage="url("+e+")")}};
Sm.prototype.dataChanged=Sm.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Sm.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Sm.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Sm);
_.u(Sm,"ytd-post-redemption-section-renderer",function(){if(Jn2!==void 0)return Jn2;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Jn2=e},{mode:1});var k6C;var uf=function(){return _.V.apply(this,arguments)||this};
_.U(uf,_.V);uf.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uf.prototype,"data",void 0);_.d([_.SL({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],uf);
_.u(uf,"ytd-ypc-post-redemption-renderer",function(){if(k6C!==void 0)return k6C;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return k6C=e},{mode:1});_.hq("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var dW=function(){var e=_.V.apply(this,arguments)||this;e.MIN_CODE_LENGTH=12;e.MAX_CODE_LENGTH=24;return e};
_.U(dW,_.V);_.Y=dW.prototype;_.Y.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.Y.created=function(){this.riskService=new _.fak;this.loadPaymentThenable=_.uEE(_.j5("YPC_MB_URL"))};
_.Y.ready=function(){var e=this;this.code.addEventListener("keypress",function(z){e.onCodeInputKeypress(z)})};
_.Y.dataChanged=function(){var e=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(z){z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,C.type==="attributes"&&C.attributeName==="dark"&&e.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.Y.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var e=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+e+")")}};
_.Y.computeRedeemButton=function(e){(e=this.get("redeemButton.buttonRenderer",e))&&(e=Object.assign({},e,{serviceEndpoint:void 0}));return e};
_.Y.onRedeemButtonTap=function(e){e.stopPropagation();gaa();this.redeemCode()};
_.Y.redeemCode=function(){var e=this;this.isLoading=!0;var z=this.riskService.init();_.tT([z,this.loadPaymentThenable]).then(function(){var C=e.data.redeemButton.buttonRenderer.serviceEndpoint,w=_.SPs(),K=_.Y3.payments.business.integration.ClientTokenFactory.createClientToken(_.r(C,_.F9S).countryCode,w);w={c:e.code.value.trim(),rd:window.btoa(w),ctk:K};C&&_.lh().resolve(_.ms).resolveCommand(C,{form:Object.assign({},w,{element:e.hostElement})})},function(){e.showGenericError();
jT2("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.AR(Error("Vo"))})};
_.Y.onYtServiceRequestCompleted=function(e){e.stopPropagation();this.isLoading=!1;var z,C;this.errorMessage=(z=e.detail)==null?void 0:(C=z.data)==null?void 0:C.errorMessage;var w,K;this.postRedemptionRenderer=(w=e.detail)==null?void 0:(K=w.data)==null?void 0:K.renderer;var G,X;if(e=(G=e.detail)==null?void 0:(X=G.data)==null?void 0:X.redirectEndpoint)this.isLoading=!0,_.pi(this.hostElement,"yt-navigate",{endpoint:e});this.errorMessage?jT2("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
e)&&_.g7("ypcRedeemFlowSucceeded")};
_.Y.onYtServiceRequestError=function(e){e.stopPropagation();this.isLoading=!1;if(e=this.get("detail.error.message",e))this.errorMessage=_.AO(e);jT2("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.Y.onInvokeInstrumentManagerActionCompleted=function(e){e.stopPropagation();this.redeemCode()};
_.Y.onInvokeInstrumentManagerActionError=function(e){e.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",e)){case "instrumentManagerLoadError":this.showGenericError();jT2("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();jT2("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.g7("ypcRedeemFlowCancelled")}};
_.Y.onInput=function(){var e=this;_.tK(this,"onInput",function(){var z=e.code.value.trim();e.redeemButtonDisabled=z.length<e.MIN_CODE_LENGTH||z.length>e.MAX_CODE_LENGTH},200)};
_.Y.onCodeInputKeypress=function(e){e.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(gaa(),this.redeemCode())};
_.Y.computeImageUrl=function(e){return e?_.oo(e.thumbnails,600):null};
_.Y.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
dW.prototype.onInvokeInstrumentManagerActionError=dW.prototype.onInvokeInstrumentManagerActionError;dW.prototype.onInvokeInstrumentManagerActionCompleted=dW.prototype.onInvokeInstrumentManagerActionCompleted;dW.prototype.onYtServiceRequestError=dW.prototype.onYtServiceRequestError;dW.prototype.onYtServiceRequestCompleted=dW.prototype.onYtServiceRequestCompleted;dW.prototype.dataChanged=dW.prototype.dataChanged;
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],dW.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],dW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],dW.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],dW.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Boolean)],dW.prototype,"redeemButtonDisabled",void 0);
_.d([_.F(),_.B("design:type",Object)],dW.prototype,"errorMessage",void 0);_.d([_.F(),_.B("design:type",Object)],dW.prototype,"postRedemptionRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],dW.prototype,"observer",void 0);_.d([_.nP("#code"),_.B("design:type",HTMLInputElement)],dW.prototype,"code",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dW.prototype,"dataChanged",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],dW.prototype,"onYtServiceRequestCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],dW.prototype,"onYtServiceRequestError",null);
_.d([_.Qi("yt-invoke-instrument-manager-action-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],dW.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.d([_.Qi("yt-invoke-instrument-manager-action-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],dW.prototype,"onInvokeInstrumentManagerActionError",null);_.d([_.SL({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],dW);
_.u(dW,"ytd-redeem-code-renderer",function(){if(XZl!==void 0)return XZl;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return XZl=e},{mode:1});var q_a;_.hq("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Dn=function(){var e=_.V.apply(this,arguments)||this;e.businessEmailDisplayState="HIDE_SECTION";return e};
_.U(Dn,_.V);_.Y=Dn.prototype;_.Y.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}}}}}};
_.Y.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"};
_.Y.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.Y.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Vq(_.v4o),this.businessEmailDisplayState="CAPTCHA"))};
_.Y.onYtServiceRequestCompleted=function(e){var z;if((z=e.detail.data)==null?0:z.businessEmail)this.businessEmail=e.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var C;if((C=e.detail.data)==null?0:C.errorMessage)this.businessEmailErrorMessage=e.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.Y.computeEmailHref=function(e){return"mailto:"+e};
_.Y.computeSafeUrl=function(e){if(e)return _.gw(e)};
_.Y.onBusinessEmailCaptchaSubmit=function(){var e;(e=this.data)!=null&&e.onBusinessEmailRevealClickCommand&&(e=this.JSC$22420_captchaTextarea.value)&&(e={recaptcha_response_token:e,channel_id:this.data.channelId},_.lh().resolve(_.ms).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},e,{element:this.hostElement})}))};
_.Y.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.lB.Object.defineProperties(Dn.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 e,z;return!((e=this.data)==null||!e.primaryLinks)&&!((z=this.data)==null?0:z.links)&&this.data.primaryLinks.every(function(C){return C.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.primaryLinks)&&!((z=this.data)==null?0:z.links)&&!this.shouldShowNewLinks}}});
Dn.prototype.onYtServiceRequestCompleted=Dn.prototype.onYtServiceRequestCompleted;Dn.prototype.dataChanged=Dn.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Dn.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.nP("#g-recaptcha-response"),_.B("design:type",HTMLTextAreaElement)],Dn.prototype,"JSC$22420_captchaTextarea",void 0);_.d([_.F(),_.B("design:type",Object)],Dn.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],Dn.prototype,"businessEmailDisplayState",void 0);_.d([_.F(),_.B("design:type",String)],Dn.prototype,"businessEmail",void 0);_.d([_.F(),_.B("design:type",String)],Dn.prototype,"businessEmailErrorMessage",void 0);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Dn.prototype,"hideDetailsSection",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dn.prototype,"dataChanged",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Dn.prototype,"shouldShowNewLinks",null);_.d([_.P("data","shouldShowLinks"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Dn.prototype,"shouldShowLegacyLinks",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Dn.prototype,"onYtServiceRequestCompleted",null);_.d([_.SL({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Dn);
_.u(Dn,"ytd-channel-about-metadata-renderer",function(){if(q_a!==void 0)return q_a;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return q_a=e},{mode:1});var x1g;_.hq("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Nk=function(){return _.V.apply(this,arguments)||this};
_.U(Nk,_.V);Nk.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Nk.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],Nk.prototype,"lockupContainerType",void 0);_.d([_.F(),_.B("design:type",String)],Nk.prototype,"thumbnailFixedWidth",void 0);
_.d([_.SL({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Nk);
_.u(Nk,"ytd-channel-featured-content-renderer",function(){if(x1g!==void 0)return x1g;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return x1g=e},{mode:1});var T5L;_.hq("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var sM=function(){var e=_.V.apply(this,arguments)||this;e.roundContainer=!0;e.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return e};
_.U(sM,_.V);_.Y=sM.prototype;_.Y.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y.dataChanged=function(){this.imageWidth=this.imageHeight=24;var e=this.data;e.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!e.style&&e.image&&e.image.thumbnails.length&&(e=e.image.thumbnails[0],this.imageWidth=e.width||0,this.imageHeight=e.height||0)};
_.Y.computeSource=function(e){return e.secondarySource?_.Zd(e.secondarySource):_.Zd(e.source)};
_.Y.computeClarifyStyle=function(e){return e?e.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.Y.isLargeStyle=function(e){return e==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.Y.computeBackgroundStyle=function(e){return e?e.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.Y.computeHasActionButton=function(e){return!!e.actionButton};
_.Y.computeHasBottomSection=function(e){return!!e.ctaHasBottomSection};
_.Y.computeIsSourceMissing=function(e){return e.ctaHasBottomSection===!1?!0:e&&this.computeSource(e)?!1:!0};
_.Y.computeSecondaryEndpoint=function(e){return e.secondaryEndpoint||e.endpoint};
sM.prototype.dataChanged=sM.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],sM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sM.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],sM.prototype,"imageWidth",void 0);_.d([_.F(),_.B("design:type",Number)],sM.prototype,"imageHeight",void 0);
_.d([_.F({computed:"computeSecondaryEndpoint(data)"}),_.B("design:type",Object)],sM.prototype,"secondaryEndpoint",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.B("design:type",Boolean)],sM.prototype,"hasActionButton",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.B("design:type",Boolean)],sM.prototype,"hasBottomSection",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.B("design:type",Boolean)],sM.prototype,"missingSource",void 0);_.d([_.F({computed:"computeIcon_(data.icon)"}),_.B("design:type",String)],sM.prototype,"icon",void 0);_.d([_.F({computed:"computeIcon_(data.secondaryIcon)"}),_.B("design:type",String)],sM.prototype,"secondaryIcon",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.B("design:type",String)],sM.prototype,"clarifyStyle",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.B("design:type",String)],sM.prototype,"backgroundStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sM.prototype,"roundContainer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],sM.prototype,"amsterdamEnabled",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sM.prototype,"dataChanged",null);
_.d([_.SL({is:"ytd-clarification-renderer",disableElementRegistration:!0})],sM);
_.u(sM,"ytd-clarification-renderer",function(){if(T5L!==void 0)return T5L;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return T5L=e},{mode:1});var $1T;var lGC;var BN=function(){var e=_.V.apply(this,arguments)||this;e.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return e};
_.U(BN,_.V);_.Y=BN.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Y.computeIcon=function(e){return e?"yt-icons:"+e.toLowerCase():null};
_.Y.computeUseContacts=function(e){return!!e.contacts&&e.contacts.length>0};
_.Y.computePhoneContact=function(e){var z,C;return(z=e.contacts)==null?void 0:(C=z.find(function(w){var K;return(w==null?void 0:(K=w.icon)==null?void 0:K.iconType)==="PHONE"}))==null?void 0:C.actionText};
_.Y.computeSmsContact=function(e){var z,C;return(z=e.contacts)==null?void 0:(C=z.find(function(w){var K;return(w==null?void 0:(K=w.icon)==null?void 0:K.iconType)==="SMS"}))==null?void 0:C.actionText};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BN.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],BN.prototype,"amsterdamEnabled",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.B("design:type",Boolean)],BN.prototype,"useContacts",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.B("design:type",String)],BN.prototype,"phoneContact",void 0);_.d([_.SL({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],BN);
_.u(BN,"ytd-single-action-emergency-support-renderer",function(){if(lGC!==void 0)return lGC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return lGC=e},{mode:1});_.hq("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var tD=function(){var e=_.V.apply(this,arguments)||this;e.roundedContainer=!0;e.amsterdamEnabled=_.M("enable_desktop_amsterdam_info_panels");return e};
_.U(tD,_.V);tD.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"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],tD.prototype,"roundedContainer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],tD.prototype,"amsterdamEnabled",void 0);
_.d([_.SL({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],tD);
_.u(tD,"ytd-emergency-onebox-renderer",function(){if($1T!==void 0)return $1T;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return $1T=e},{mode:1});var Qvt;_.hq("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var gW=function(){return _.V.apply(this,arguments)||this};
_.U(gW,_.V);gW.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gW.prototype,"data",void 0);_.d([_.SL({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],gW);
_.u(gW,"ytd-exploratory-results-renderer",function(){if(Qvt!==void 0)return Qvt;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Qvt=e},{mode:1});var m1g;_.hq("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var jm=function(){var e=_.V.apply(this,arguments)||this;e.messageData=null;return e};
_.U(jm,_.V);_.Y=jm.prototype;_.Y.onServiceRequestCompleted=function(e,z){e=z.actions||[];z=0;for(var C=e.length;z<C;z++){var w=e[z],K=void 0,G=void 0;if((K=_.r(w,_.Zl))==null?0:(G=K.item)==null?0:G.messageRenderer)this.messageData=_.r(w,_.Zl).item.messageRenderer}};
_.Y.dataChanged=function(){var e=this.data;this.hostElement.hidden=!1;_.k$(this.hostElement,"is-channel",e&&!e.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.Y.computeThumbnailWidth=function(e){return e?126:56};
_.Y.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.Y.onSubmitTap=function(){var e=this.data,z=this.selectedResponseIndex;e!==void 0&&z!==void 0&&(e=e.responses[z],e.responseData&&_.lh().resolve(_.ms).resolveCommand(e.responseData,{form:{element:this.hostElement}}))};
_.Y.onDismissTap=function(){this.hostElement.hidden=!0;var e=this.data;e!==void 0&&e.dismissalEndpoint&&_.lh().resolve(_.ms).resolveCommand(e.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.updateSelectedResponseIndexFromBinding=function(e){this.selectedResponseIndex=e.detail.value};
jm.prototype.onSelectedResponseIndexChange=jm.prototype.onSelectedResponseIndexChange;jm.prototype.dataChanged=jm.prototype.dataChanged;jm.prototype.onServiceRequestCompleted=jm.prototype.onServiceRequestCompleted;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jm.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],jm.prototype,"messageData",void 0);
_.d([_.F(),_.B("design:type",Number)],jm.prototype,"selectedResponseIndex",void 0);_.d([_.nP("#submit-button"),_.B("design:type",HTMLButtonElement)],jm.prototype,"submitButton",void 0);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],jm.prototype,"onServiceRequestCompleted",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jm.prototype,"dataChanged",null);
_.d([_.mi("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jm.prototype,"onSelectedResponseIndexChange",null);_.d([_.SL({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],jm);
_.u(jm,"ytd-feedback-elicitation-single-question-renderer",function(){if(m1g!==void 0)return m1g;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return m1g=e},{mode:1});var aGy;var yY=function(){return _.V.apply(this,arguments)||this};
_.U(yY,_.V);yY.prototype.computeThumbnailWidth=function(e){return e?602:428};
yY.prototype.updateWideFromBinding=function(e){this.wide=e.detail.value};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yY.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],yY.prototype,"wide",void 0);_.d([_.SL({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],yY);
_.u(yY,"ytd-newspaper-hero-video-renderer",function(){if(aGy!==void 0)return aGy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return aGy=e},{mode:1});var now;var McT=function(){return _.V.apply(this,arguments)||this};
_.U(McT,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],McT.prototype,"rendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],McT.prototype,"data",void 0);_.d([_.SL({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],McT);
_.u(McT,"ytd-newspaper-mini-video-renderer",function(){if(now!==void 0)return now;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return now=e},{mode:1});var rnC;_.hq("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var cN=function(){return _.V.apply(this,arguments)||this};
_.U(cN,_.V);cN.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"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cN.prototype,"data",void 0);_.d([_.SL({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],cN);
_.u(cN,"ytd-newspaper-renderer",function(){if(rnC!==void 0)return rnC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return rnC=e},{mode:1});var Hq2;_.hq("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var AD=function(){var e=_.V.apply(this,arguments)||this;e.isSegment=!1;e.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};e.nextContinuation={continuationType:"playlistVideoListContinuation"};return e};
_.U(AD,_.V);_.Y=AD.prototype;_.Y.created=function(){var e=this;this.JSC$22453_ytReorderableController=new _.mR6(101,function(z){e.handleDrop(z)})};
_.Y.attached=function(){_.lh();var e;(e=_.lh().resolve(_.$B(_.k_)))!=null&&(e.playlistVideoListElement=this.hostElement)};
_.Y.detached=function(){var e;(e=_.lh().resolve(_.$B(_.k_)))!=null&&(e.playlistVideoListElement=void 0);e=_.lh().resolve(_.$B(_.AF));_.M("web_enable_voting_animation")&&e&&(e.parentElem=void 0,e.videos=[],e.continuationsPresent=!1,e.showRefreshPill=!1);_.z$(this.JSC$22453_ytReorderableController)};
_.Y.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"}}}}}};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y.dataChanged=function(){var e=_.lh().resolve(_.$B(_.AF));if(_.M("web_enable_voting_animation")&&this.data&&e){var z=_.XC(this.hostElement).querySelector("#contents");z&&(e.parentElem=z);e.addVideos(this.data.contents)}_.z$(this.JSC$22453_ytReorderableController)};
_.Y.onRendererstamperFinished=function(){this.canReorder&&_.auS(this.JSC$22453_ytReorderableController,_.XC(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.Y.onPlaylistReloading=function(){this.isReloading=!0};
_.Y.onUpdateSetVideoId=function(e){if(e.detail&&this.data&&this.data.contents){var z=e.detail;e=this.data.contents.findIndex(function(K){var G;return((G=K.playlistVideoRenderer)==null?void 0:G.videoId)===z.videoId});
if(!(e<0)&&z.setVideoId&&(this.set("data.contents."+e+".playlistVideoRenderer.setVideoId",z.setVideoId),_.M("web_enable_voting_animation"))){var C;if(e=_.r((C=this.data.contents[e].playlistVideoRenderer)==null?void 0:C.engagementBar,_.wx1)){var w;(w=e.actions)==null||w.forEach(function(K){if(K=_.r(K,_.Ktg))K.itemId=z.setVideoId})}(C=_.lh().resolve(_.$B(_.AF)))&&yt2(C,z.videoId,z.setVideoId)}}};
_.Y.computeContentsClass=function(e){return e?"reloading":""};
_.Y.computeIsSortable=function(e,z){return e&&z>0&&!this.isSegment&&!_.M("shorts_in_playlists_web")};
_.Y.computeIsEditable=function(e){return e};
_.Y.computeCanReorder=function(e){return e};
_.Y.handlePlaylistRemoveVideosAction=function(e){if(this.get("playlistRemoveVideosAction.setVideoIds",e)&&this.data&&this.data.contents){e=_.r(e,_.pms).setVideoIds;for(var z=this.data.contents.length-1;z>=0;){var C=this.data.contents[z].playlistVideoRenderer;C&&C.setVideoId&&e.includes(C.setVideoId)&&this.splice("data.contents",z,1);z--}_.eA(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.Y.updateIndices=function(){if(this.data&&this.data.contents)for(var e=0;e<this.data.contents.length;e++)this.set("data.contents."+e+".playlistVideoRenderer.index",_.AO(String(e+1)))};
_.Y.handleDrop=function(e){e=e.currDragItem;var z=_.V1(e.parentNode.childNodes,e),C=this.data.contents.splice(Number(_.Zd(e.data.index))-1,1)[0];this.data.contents.splice(z,0,C);z=z?this.get("contents."+(z-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();e=this.buildReorderServiceEndpoint(e.data.setVideoId,z);this.ytComponentBehavior.resolveCommand(e)};
_.Y.buildReorderServiceEndpoint=function(e,z){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",e),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",z),this.data.onReorderEndpoint):null};
_.Y.handleUpdatePlaylistAction=function(e){var z;(e=_.r((z=_.r(e,_.eLs))==null?void 0:z.updatedRenderer,_.C9o))&&this.canReorder!==e.canReorder&&this.set("data.canReorder",e.canReorder);e&&e.contents&&(this.set("data.contents",e.contents),this.isReloading=!1);e&&e.continuations&&this.set("data.continuations",e.continuations)};
_.Y.handleAddRendererToItemSectionAction=function(e){var z,C=(z=_.r(e,eXL))==null?void 0:z.renderer,w;C&&((w=_.r(e,eXL))==null?void 0:w.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,C),e=_.lh().resolve(_.$B(_.AF)),_.M("web_enable_voting_animation")&&e&&(C&&(z=_.CUN(C))&&e.recommendedVideos.push({itemId:z,videoId:_.och(C),voteCount:_.Gbk(C),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.Y.isVotingEnabledOnPlaylist=function(e){if(!e)return!1;e=_.b(e);for(e=e.next();!e.done;e=e.next()){var z=void 0;return!!_.r((z=e.value.playlistVideoRenderer)==null?void 0:z.engagementBar,_.wx1)}return!1};
_.Y.onAppendContinuationItemsActionFinished=function(){var e;this.isVotingEnabledOnPlaylist((e=this.data)==null?void 0:e.contents)&&(this.updateIndices(),e=_.lh().resolve(_.$B(_.AF)),_.M("web_enable_voting_animation")&&e&&this.data&&e.addVideos(this.data.contents))};
_.Y.updateVideoData=function(e){if(e.detail&&this.data&&this.data.contents){var z=e.detail;e=z.toIdx;var C=z.itemId,w=z.newVoteCount,K=z.voteStatus;z=z.hideItem;var G,X,J=(G=this.data)==null?void 0:(X=G.contents)==null?void 0:X.findIndex(function(m){return _.CUN(m)===C});
if(!(J<0)){G=this.data.contents[J];var q;if((q=G.playlistVideoRenderer)==null?0:q.voteCount)G.playlistVideoRenderer.voteCount=w;var T;if(q=_.r((T=G.playlistVideoRenderer)==null?void 0:T.engagementBar,_.wx1)){var Q;(Q=q.actions)==null||Q.forEach(function(m){(m=_.r(m,_.Ktg))&&m.initialState&&(m.initialState.votes=w,m.initialState.status=K)})}this.data.contents.splice(J,1);
z||this.data.contents.splice(e,0,G);this.updateIndices()}}};
AD.prototype.updateVideoData=AD.prototype.updateVideoData;AD.prototype.onAppendContinuationItemsActionFinished=AD.prototype.onAppendContinuationItemsActionFinished;AD.prototype.onUpdateSetVideoId=AD.prototype.onUpdateSetVideoId;AD.prototype.onPlaylistReloading=AD.prototype.onPlaylistReloading;AD.prototype.onRendererstamperFinished=AD.prototype.onRendererstamperFinished;AD.prototype.dataChanged=AD.prototype.dataChanged;
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],AD.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.FO.YtNextContinuationBehavior),_.B("design:type",Object)],AD.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.W(_.Ea),_.B("design:type",Object)],AD.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],AD.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],AD.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],AD.prototype,"isReloading",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],AD.prototype,"isSegment",void 0);
_.d([_.F({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.B("design:type",Boolean)],AD.prototype,"isSortable",void 0);_.d([_.F({computed:"computeIsEditable(data.isEditable)"}),_.B("design:type",Boolean)],AD.prototype,"isEditable",void 0);_.d([_.F({computed:"computeCanReorder(data.canReorder)"}),_.B("design:type",Boolean)],AD.prototype,"canReorder",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AD.prototype,"dataChanged",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AD.prototype,"onRendererstamperFinished",null);_.d([_.Qi("yt-playlist-reloading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AD.prototype,"onPlaylistReloading",null);
_.d([_.Qi("yt-update-set-video-id"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],AD.prototype,"onUpdateSetVideoId",null);_.d([_.Qi("yt-append-continuation-items-action-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AD.prototype,"onAppendContinuationItemsActionFinished",null);
_.d([_.Qi("yt-update-video-data-voting-animation"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],AD.prototype,"updateVideoData",null);_.d([_.SL({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],AD);
_.u(AD,"ytd-playlist-video-list-renderer",function(){if(Hq2!==void 0)return Hq2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Hq2=e},{mode:_.bA("kevlar_poly_si_batch_j047")?1:2});var U1g;var Zn=function(){return _.V.apply(this,arguments)||this};
_.U(Zn,_.V);Zn.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"}}}}};
Zn.prototype.onTextWrapperTap=function(e){var z=this.data&&this.data.navigationEndpoint;z&&!_.zi(_.cJ(e),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.pi(this.hostElement,"yt-navigate",{endpoint:z})};
Zn.prototype.dataChanged=function(){var e=this.get("data.offerButton.buttonRenderer.serviceEndpoint");e&&e.commandMetadata&&_.r(e.commandMetadata,_.wA)&&_.r(e.commandMetadata,_.wA).fireAutomatically&&_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})};
Zn.prototype.dataChanged=Zn.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.I0),_.B("design:type",Object)],Zn.prototype,"ytdLockupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Zn.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],Zn.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],Zn.prototype,"biggerThumbsStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Zn.prototype,"leftAligned",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zn.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Zn);
_.u(Zn,"ytd-movie-renderer",function(){if(U1g!==void 0)return U1g;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return U1g=e},{mode:1});var voL;var pw=function(){var e=_.V.apply(this,arguments)||this;e.rounded=!0;e.pageAttachedTo=void 0;e.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return e};
_.U(pw,_.V);pw.prototype.attached=function(){this.pageAttachedTo=_.lh().resolve(_.wE).getCurrentPage();_.pi(this.hostElement,"yt-player-attached",this.player)};
pw.prototype.detached=function(){var e;if((e=this.pageAttachedTo)==null?0:e.hostElement)_.pi(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
pw.prototype.dataChanged=function(){var e;if((e=this.data)==null?0:e.videoId)e={video_id:this.data.videoId,autoplay:!0},!_.M("miniplayer_stop_channel_video_autoplay_killswitch")&&_.lh().resolve(_.gh).isMiniplayerActive()&&(e.pause_at_start=!0,e.autoplay=!1),this.player.loadVideoWithPlayerVars(e)};
pw.prototype.handleSignalActionPausePlayer=function(){_.Gi().pause()};
pw.prototype.dataChanged=pw.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],pw.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pw.prototype,"rounded",void 0);_.d([_.nP("#player"),_.B("design:type",Object)],pw.prototype,"player",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pw.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],pw);
_.u(pw,"ytd-channel-video-player-renderer",function(){if(voL!==void 0)return voL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return voL=e},{mode:1});var IGC;var Wga;var PCa;var eH=function(){var e=_.V.apply(this,arguments)||this;e.playing=!1;e.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.c1(e);e.active=!1;return e};
_.U(eH,_.V);_.Y=eH.prototype;_.Y.detached=function(){this.stop()};
_.Y.play=function(){var e=this,z,C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return e.active=!0,z=e.get("data.inlinePlaybackEndpoint.watchEndpoint"),C=z.videoId||e.data.videoId,w=z.startTimeSeconds||0,K=z.playerParams||null,_.M("kevlar_player_update_killswitch")?X.yield(e.playerEl.update({args:{video_id:C,startSeconds:w,player_params:K}}),2):(e.playerEl.loadVideoWithPlayerVars({video_id:C,startSeconds:w,player_params:K,autoplay:!0}),X.jumpTo(2));if(X.nextAddress!=4)return X.yield(e.playerEl.getPlayerPromise(),
4);G=X.yieldResult;G.unloadModule("annotations_module");G.addEventListener("onStateChange",function(J){e.onPlayerStateChange(J)});
_.E_(X)})};
_.Y.onPlayerStateChange=function(e){if(this.active)switch(this.playing=e===1,e){case 1:_.pi(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.pi(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.Y.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.Y.resize=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return C.yield(e.playerEl.getPlayerPromise(),2);z=C.yieldResult;z.setSize(NaN,NaN);_.E_(C)})};
_.d([_.F(),_.B("design:type",Object)],eH.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],eH.prototype,"playing",void 0);_.d([_.F(),_.B("design:type",Object)],eH.prototype,"playerId",void 0);_.d([_.nP("#player"),_.B("design:type",Object)],eH.prototype,"playerEl",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],eH);
_.u(eH,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(PCa!==void 0)return PCa;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return PCa=e},{mode:1});var RXw;var LgC;var zb=function(){var e=_.V.apply(this,arguments)||this;e.width=0;return e};
_.U(zb,_.V);_.Y=zb.prototype;_.Y.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.lE(this,this.onEnded));this.mp4El.addEventListener("error",_.lE(this,this.onError))};
_.Y.detached=function(){this.videoEl.removeEventListener("ended",_.lE(this,this.onEnded));this.mp4El.removeEventListener("error",_.lE(this,this.onError))};
_.Y.play=function(){var e=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var z=this.videoEl.play();z?z.then(function(){e.handleVideoStartPlaying()}).catch(function(){_.pi(e.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.pi(this.hostElement,"yt-video-thumbnail-not-playing")};
_.Y.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.Y.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.Y.dataChanged=function(){var e;if((e=this.data)==null?0:e.thumbnailPlaceholder)e=_.oo(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+e+")";this.stop();this.autoplay&&this.play()};
_.Y.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.Y.onEnded=function(){this.stop();_.pi(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.Y.onError=function(){_.pi(this.hostElement,"yt-video-thumbnail-error")};
_.Y.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.Y.getVideoThumbnail=function(e){if(e&&e.length)return e[0]};
zb.prototype.dataChanged=zb.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],zb.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],zb.prototype,"animatePlaceholderOnEntrance",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],zb.prototype,"autoplay",void 0);_.d([_.F({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.B("design:type",Object)],zb.prototype,"videoThumbnail",void 0);
_.d([_.F(),_.B("design:type",Boolean)],zb.prototype,"loop",void 0);_.d([_.F(),_.B("design:type",Boolean)],zb.prototype,"isVideoPlaying",void 0);_.d([_.F(),_.B("design:type",Object)],zb.prototype,"width",void 0);_.d([_.nP("#mp4"),_.B("design:type",HTMLElement)],zb.prototype,"mp4El",void 0);_.d([_.nP("#placeholder"),_.B("design:type",HTMLElement)],zb.prototype,"placeholderEl",void 0);_.d([_.nP("#video"),_.B("design:type",HTMLVideoElement)],zb.prototype,"videoEl",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zb.prototype,"dataChanged",null);_.d([_.fP({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],zb);
_.u(zb,"yt-video-as-thumbnail-details",function(){if(LgC===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;RXw===void 0&&(RXw=document.createElement("template"));var w=RXw;C.call(z,w.content.cloneNode(!0),e.content.firstChild);LgC=e}e=LgC;return e},{mode:2});var CL=function(){var e=_.V.apply(this,arguments)||this;e.disableGridStateAware=!1;e.animationEnabled=_.M("enable_web_ketchup_hero_animation");e.transitioningOut=!1;e.narrow=!1;e.narrower=!1;e.isCarouselInFeed=!1;e.videoTimeoutJobId=0;e.panelTimeoutJobId=0;e.panelTimeoutJobStartMs=0;e.actionMap={"yt-window-resized":"onWindowResized"};return e};
_.U(CL,_.V);_.Y=CL.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.Y.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var e;this.player&&((e=this.data)==null?0:e.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.Y.attached=function(){this.onWindowResized()};
_.Y.detached=function(){this.clearTimeouts()};
_.Y.onWindowResized=function(){this.updateSize()};
_.Y.computePanelLayout=function(e){return e&&e.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Y.playVideo=function(){var e;this.video&&((e=this.data)==null?0:e.videoThumbnail)&&this.video.play();var z;this.player&&((z=this.data)==null?0:z.inlinePlaybackRenderer)&&this.player.play()};
_.Y.stopVideo=function(){var e;this.video&&((e=this.data)==null?0:e.videoThumbnail)&&this.video.stop();var z;this.player&&((z=this.data)==null?0:z.inlinePlaybackRenderer)&&this.player.stop()};
_.Y.transitionOut=function(){var e=this;this.transitioningOut=!0;return new Promise(function(z){e.player&&(e.player.playing=!1);var C=_.XC(e.hostElement).querySelector("#action-button");if(C){var w=function(){C.removeEventListener("animationend",w);_.c5.cancelJob(K);z();e.transitioningOut=!1};
var K=_.Dz(_.c5,w,1E3);C.addEventListener("animationend",w)}else z(),e.transitioningOut=!1})};
_.Y.computeMetadataOrder=function(e){return e&&e.metadataOrder&&e.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?e.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.Y.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.Y.computeAvatarSize=function(e){return e&&e.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.Y.onContentClick=function(e){if(!_.zi(_.cJ(e),this.hostElement,["A".toString(),"BUTTON".toString()])){var z;if((z=this.data)==null?0:z.navigationEndpoint){var C;this.componentBehavior.resolveCommand((C=this.data)==null?void 0:C.navigationEndpoint)}}};
_.Y.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.Y.setBackgroundImage=function(e){if(e=this.getBackgroundImageUrl(e))_.XC(this.hostElement).querySelector("#hero").style.backgroundImage="url("+e+")"};
_.Y.setScrimLayer=function(e){var z=this.getScrimLayerColorStops(e);e=((e==null?void 0:e.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(e=180);_.j5("HTML_DIR")==="rtl"&&(e=-e);z&&(_.XC(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+e+"deg, "+z+")")};
_.Y.isNarrower=function(){return this.hostElement.clientWidth<CL.NARROW_VERSION_SIZE};
_.Y.getScrimLayerColorStops=function(){var e,z=(e=this.data)==null?void 0:e.scrimColorValues;if(!z)return null;if(z.length===1)return e=_.FN(z[0]),e+" 0%, "+e+" 100%";if(z.length===3){var C=[0,72,98];return z.map(function(w,K){return _.FN(w)+" "+C[K]+"%"}).join(",")}return null};
_.Y.getBackgroundImageUrl=function(e){return e&&e.largeFormFactorBackgroundThumbnail?_.oo((e.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||e.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.Y.onPlaying=function(){this.startVideoTimeout()};
_.Y.onEnded=function(){this.rotate()};
_.Y.startPanelTimeout=function(){var e=this;if(!this.panelTimeoutJobId){var z=this.get("data.minPanelDisplayDurationMs");z&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Dz(_.c5,function(){e.rotate()},z))}};
_.Y.startVideoTimeout=function(){var e=this;if(!this.videoTimeoutJobId){_.c5.cancelJob(this.panelTimeoutJobId);var z=Date.now()-this.panelTimeoutJobStartMs;z=Math.max(0,this.get("data.minPanelDisplayDurationMs")-z);z=Math.max(this.get("data.minVideoPlayDurationMs")||0,z);this.videoTimeoutJobId=_.Dz(_.c5,function(){e.rotate()},z)}};
_.Y.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.c5.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.c5.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.Y.rotate=function(){this.clearTimeouts();_.pi(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.lB.Object.defineProperties(CL.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.XC(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.XC(this.hostElement).querySelector("#video")}}});
_.lB.Object.defineProperties(CL,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
CL.prototype.onEnded=CL.prototype.onEnded;CL.prototype.onPlaying=CL.prototype.onPlaying;CL.prototype.dataChanged=CL.prototype.dataChanged;_.d([_.W(_.MC),_.B("design:type",Object)],CL.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],CL.prototype,"componentBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],CL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.W(_.xaC),_.B("design:type",Object)],CL.prototype,"ytBooleanLogicBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],CL.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],CL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CL.prototype,"disableGridStateAware",void 0);_.d([_.F(),_.B("design:type",Object)],CL.prototype,"data",void 0);_.d([_.F({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.B("design:type",String)],CL.prototype,"panelLayout",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CL.prototype,"animationEnabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CL.prototype,"transitioningOut",void 0);
_.d([_.F({computed:"computeMetadataOrder(data)"}),_.B("design:type",Boolean)],CL.prototype,"metadataOrder",void 0);_.d([_.F({computed:"computeByline(data)"}),_.B("design:type",Object)],CL.prototype,"byline",void 0);_.d([_.F({computed:"computeAvatarSize(data)"}),_.B("design:type",Number)],CL.prototype,"avatarSize",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CL.prototype,"narrow",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CL.prototype,"narrower",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CL.prototype,"layoutStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],CL.prototype,"isCarouselInFeed",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CL.prototype,"dataChanged",null);_.d([_.Qi("yt-default-promo-panel-renderer-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CL.prototype,"onPlaying",null);
_.d([_.Qi("yt-default-promo-panel-renderer-ended"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],CL.prototype,"onEnded",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],CL);
_.u(CL,"ytd-default-promo-panel-renderer",function(){if(Wga!==void 0)return Wga;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Wga=e},{mode:1});_.hq("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var wl=function(){var e=_.V.apply(this,arguments)||this;e.narrower=!1;e.dotMenuVisible=!1;e.paginationThumbnailsVisible=!1;e.active=!0;e.disableGridStateAware=!1;e.actionMap={"yt-window-resized":"onWindowResized"};return e};
_.U(wl,_.V);_.Y=wl.prototype;_.Y.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]]"}}}}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.lE(this,this.onPageTypeChange));this.currentPageSubtype=_.b9N(location.pathname);this.onWindowResized()};
_.Y.detached=function(){this.jobId&&_.c5.cancelJob(this.jobId);this.updateSizeJobId&&_.c5.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.lE(this,this.onPageTypeChange))};
_.Y.onPageTypeChange=function(e){this.active=e.detail.newPageSubtype===this.currentPageSubtype};
_.Y.onWindowResized=function(){this.updateSize()};
_.Y.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.Y.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.Y.setCarouselItem=function(e){e>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.c5.cancelJob(this.jobId);var z=this.getCurrentPanelElement();z&&z.stopVideo();this.currentItemIndex=e%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(z||(z=this.getCurrentPanelElement()),z.playVideo()):this.startRotationJob()};
_.Y.scrollThumbnails=function(e){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var z=this.getCurrentPaginationElement();if(z){var C=_.XC(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?C.style.transform="translateX(0)":(z=z.offsetWidth+8,C.style.transform="translateX(-"+z*(e-Math.ceil(Math.floor(this.overlay.offsetWidth/z)/2)+1)+"px)")}}};
_.Y.onDataChanged=function(){var e=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.UQ(_.c5,function(){var z;(z=e.getCurrentPanelElement())==null||z.updateSize();e.updateSize()}))};
_.Y.getCurrentPanelElement=function(){return _.XC(_.XC(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.Y.getCurrentPaginationElement=function(){return _.XC(_.XC(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.Y.getNavigationClass=function(e,z){return e===z?"selected":""};
_.Y.getNavigationDurationStyle=function(e){return"animation-duration:"+(this.get("data.carouselItems."+e+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.Y.onNavigationTap=function(e){var z=this,C=e.model.index;C!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){z.setCarouselItem(C)}),this.autorotateActive=!1)};
_.Y.onVideoThumbnailEnded=function(){var e=this;if(this.shouldRotate()){var z=this.getCurrentPaginationElement();z&&(z.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){z.classList.remove("finished");e.setNextCarouselItem()}))}};
_.Y.onVideoThumbnailError=function(){this.startRotationJob()};
_.Y.onVideoNotPlaying=function(){this.startRotationJob()};
_.Y.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.Y.startRotationJob=function(){var e=this;_.c5.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.c5.addLowPriorityJob(function(){e.getCurrentPanelElement().transitionOut().then(function(){e.setNextCarouselItem()})},this.rotationTimeout))};
_.Y.computeDotMenuVisible=function(e,z){return!!e&&!!e.carouselItems&&e.carouselItems.length>1&&!e.paginationThumbnails||!!z};
_.Y.computePaginationThumbnailsVisible=function(e,z){var C,w;return((w=e==null?void 0:(C=e.paginationThumbnails)==null?void 0:C.length)!=null?w:0)>1&&!z};
_.Y.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.Y.computePaginatorAlignment=function(e){return(e==null?void 0:e.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.Y.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.Y.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.Y.isNarrower=function(e){return(e!=null?e:0)<CL.NARROW_VERSION_SIZE};
wl.prototype.activeChanged=wl.prototype.activeChanged;wl.prototype.onVideoNotPlaying=wl.prototype.onVideoNotPlaying;wl.prototype.onVideoThumbnailError=wl.prototype.onVideoThumbnailError;wl.prototype.onVideoThumbnailEnded=wl.prototype.onVideoThumbnailEnded;wl.prototype.onDataChanged=wl.prototype.onDataChanged;_.d([_.W(_.MC),_.B("design:type",Object)],wl.prototype,"ytdGridStateAwareBehavior",void 0);
_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],wl.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wl.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],wl.prototype,"currentItem",void 0);
_.d([_.F(),_.B("design:type",Number)],wl.prototype,"currentItemIndex",void 0);_.d([_.F(),_.B("design:type",Number)],wl.prototype,"rotationTimeout",void 0);_.d([_.F(),_.B("design:type",Number)],wl.prototype,"loopCount",void 0);_.d([_.F({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.B("design:type",String)],wl.prototype,"paginatorAlignment",void 0);_.d([_.F(),_.B("design:type",Number)],wl.prototype,"jobId",void 0);
_.d([_.F(),_.B("design:type",Number)],wl.prototype,"updateSizeJobId",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],wl.prototype,"isCarouselInFeed",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],wl.prototype,"narrower",void 0);_.d([_.F({computed:"computeDotMenuVisible(data, narrower)"}),_.B("design:type",Object)],wl.prototype,"dotMenuVisible",void 0);
_.d([_.F({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.B("design:type",Object)],wl.prototype,"paginationThumbnailsVisible",void 0);_.d([_.F({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.B("design:type",String)],wl.prototype,"layoutType",void 0);_.d([_.F({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],wl.prototype,"autorotateActive",void 0);_.d([_.F(),_.B("design:type",Object)],wl.prototype,"active",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],wl.prototype,"disableGridStateAware",void 0);_.d([_.nP("#overlay"),_.B("design:type",HTMLElement)],wl.prototype,"overlay",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wl.prototype,"onDataChanged",null);
_.d([_.Qi("yt-video-thumbnail-ended"),_.Qi("yt-default-promo-panel-renderer-rotate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wl.prototype,"onVideoThumbnailEnded",null);_.d([_.Qi("yt-video-thumbnail-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wl.prototype,"onVideoThumbnailError",null);
_.d([_.Qi("yt-video-thumbnail-not-playing"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wl.prototype,"onVideoNotPlaying",null);_.d([_.Ux("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wl.prototype,"activeChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],wl);
_.u(wl,"ytd-carousel-item-renderer",function(){if(IGC!==void 0)return IGC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return IGC=e},{mode:2});var hXC;var Oql;var Eog;var Fgy;var KL=function(){var e=_.V.apply(this,arguments)||this;e.originalQuery=null;e.originalEndpoint=null;return e};
_.U(KL,_.V);KL.prototype.computeShowOriginalQueryWithoutEndpoint_=function(e,z){return!(!e||z)};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],KL.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],KL.prototype,"correctedText",void 0);_.d([_.F(),_.B("design:type",Object)],KL.prototype,"correctedQuery",void 0);_.d([_.F(),_.B("design:type",Object)],KL.prototype,"correctedEndpoint",void 0);_.d([_.F(),_.B("design:type",Object)],KL.prototype,"originalText",void 0);_.d([_.F(),_.B("design:type",Object)],KL.prototype,"originalQuery",void 0);
_.d([_.F(),_.B("design:type",Object)],KL.prototype,"originalEndpoint",void 0);_.d([_.F({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.B("design:type",Boolean)],KL.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.d([_.fP({is:"yt-search-query-correction",disableElementRegistration:!0})],KL);
_.u(KL,"yt-search-query-correction",function(){if(Fgy===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Eog===void 0&&(Eog=document.createElement("template"));var w=Eog;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Fgy=e}e=Fgy;return e},{mode:2});_.hq("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Vcy=function(){return _.V.apply(this,arguments)||this};
_.U(Vcy,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Vcy.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Vcy.prototype,"data",void 0);_.d([_.fP({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Vcy);
_.u(Vcy,"yt-did-you-mean-renderer",function(){if(Oql===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;hXC===void 0&&(hXC=document.createElement("template"));var w=hXC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Oql=e}e=Oql;return e},{mode:2});var fG2;var S_L;_.hq("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var ugj=function(){return _.V.apply(this,arguments)||this};
_.U(ugj,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ugj.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ugj.prototype,"data",void 0);_.d([_.fP({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],ugj);
_.u(ugj,"yt-including-results-for-renderer",function(){if(S_L===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;fG2===void 0&&(fG2=document.createElement("template"));var w=fG2;C.call(z,w.content.cloneNode(!0),e.content.firstChild);S_L=e}e=S_L;return e},{mode:2});var d1a;var D1Y;_.hq("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var oc=function(){return _.V.apply(this,arguments)||this};
_.U(oc,_.V);oc.prototype.computeExtraClasses_=function(e,z){var C="";e&&(C+=" "+e.toLowerCase().replace(/_/g,"-"));z&&(C+=" "+z.toLowerCase().replace(/_/g,"-"));return C};
oc.prototype.computeUrlImg_=function(){var e=this.data;e.image&&(_.XC(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.oo(e.image.thumbnails,Number.MAX_VALUE)+")")};
oc.prototype.computeUrlImg_=oc.prototype.computeUrlImg_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oc.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oc.prototype,"computeUrlImg_",null);_.d([_.fP({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],oc);
_.u(oc,"yt-music-pass-feature-info-renderer",function(){if(D1Y===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;d1a===void 0&&(d1a=document.createElement("template"));var w=d1a;C.call(z,w.content.cloneNode(!0),e.content.firstChild);D1Y=e}e=D1Y;return e},{mode:2});var iqY;var N5T;_.hq("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var sva=function(){return _.V.apply(this,arguments)||this};
_.U(sva,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sva.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sva.prototype,"data",void 0);_.d([_.fP({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],sva);
_.u(sva,"yt-no-results-found-showing-results-for-renderer",function(){if(N5T===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;iqY===void 0&&(iqY=document.createElement("template"));var w=iqY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);N5T=e}e=N5T;return e},{mode:2});var B52;var tct;_.hq("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var go2=function(){return _.V.apply(this,arguments)||this};
_.U(go2,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],go2.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],go2.prototype,"data",void 0);_.d([_.fP({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],go2);
_.u(go2,"yt-results-without-quotes-renderer",function(){if(tct===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;B52===void 0&&(B52=document.createElement("template"));var w=B52;C.call(z,w.content.cloneNode(!0),e.content.firstChild);tct=e}e=tct;return e},{mode:2});var jvj;var ynw;_.hq("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var cna=function(){return _.V.apply(this,arguments)||this};
_.U(cna,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cna.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cna.prototype,"data",void 0);_.d([_.fP({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],cna);
_.u(cna,"yt-search-no-results-renderer",function(){if(ynw===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;jvj===void 0&&(jvj=document.createElement("template"));var w=jvj;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ynw=e}e=ynw;return e},{mode:2});var AnL;var Zq2;_.hq("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var pZC=function(){return _.V.apply(this,arguments)||this};
_.U(pZC,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pZC.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],pZC.prototype,"data",void 0);_.d([_.fP({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],pZC);
_.u(pZC,"yt-showing-results-for-renderer",function(){if(Zq2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;AnL===void 0&&(AnL=document.createElement("template"));var w=AnL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Zq2=e}e=Zq2;return e},{mode:2});var ent;var znY;var C4C;var wVL;var Gb=function(){var e=_.V.apply(this,arguments)||this;e.answerExpanded=!1;return e};
_.U(Gb,_.V);Gb.prototype.toggleAnswer_=function(e){var z=_.AU(e);z&&z.classList.contains("yt-simple-endpoint")||(e.preventDefault(),e.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Gb.prototype.toggleAnswer_=Gb.prototype.toggleAnswer_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Gb.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Gb.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Gb.prototype,"answerExpanded",void 0);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Gb.prototype,"toggleAnswer_",null);
_.d([_.fP({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Gb);
_.u(Gb,"yt-generic-faq-question-renderer",function(){if(wVL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;C4C===void 0&&(C4C=document.createElement("template"));var w=C4C;C.call(z,w.content.cloneNode(!0),e.content.firstChild);wVL=e}e=wVL;return e},{mode:2});_.hq("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Yc=function(){return _.V.apply(this,arguments)||this};
_.U(Yc,_.V);Yc.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Yc.prototype,"data",void 0);_.d([_.fP({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Yc);
_.u(Yc,"yt-faq-section-renderer",function(){if(znY===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;ent===void 0&&(ent=document.createElement("template"));var w=ent;C.call(z,w.content.cloneNode(!0),e.content.firstChild);znY=e}e=znY;return e},{mode:2});var KIy;var oy2;_.hq("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var bU=function(){return _.V.apply(this,arguments)||this};
_.U(bU,_.V);
bU.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"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bU.prototype,"data",void 0);_.d([_.fP({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],bU);
_.u(bU,"yt-offer-item-expanded-renderer",function(){if(oy2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;KIy===void 0&&(KIy=document.createElement("template"));var w=KIy;C.call(z,w.content.cloneNode(!0),e.content.firstChild);oy2=e}e=oy2;return e},{mode:2});var GmL;var Ytw;_.hq("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var XE=function(){return _.V.apply(this,arguments)||this};
_.U(XE,_.V);
XE.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"}}}}};
XE.prototype.computeFullWidthMode=function(e){return!(!e||!e.fullWidthMode)};
XE.prototype.computeBorderlessMode=function(e){return!(!e||!e.borderlessMode)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],XE.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.B("design:type",Boolean)],XE.prototype,"fullWidthMode",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.B("design:type",Boolean)],XE.prototype,"borderlessMode",void 0);_.d([_.fP({is:"yt-offer-item-renderer",disableElementRegistration:!0})],XE);
_.u(XE,"yt-offer-item-renderer",function(){if(Ytw===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;GmL===void 0&&(GmL=document.createElement("template"));var w=GmL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Ytw=e}e=Ytw;return e},{mode:2});var bJL;var XVy;_.hq("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Jo=function(){return _.V.apply(this,arguments)||this};
_.U(Jo,_.V);Jo.prototype.computeAriaLevel_=function(e){return this.getLevelID_(e)};
Jo.prototype.getLevelID_=function(e){return(e=e.match(/[0-9]+$/))&&e.length==1?e[0]:"1"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Jo.prototype,"data",void 0);_.d([_.F({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.B("design:type",String)],Jo.prototype,"ariaLevel",void 0);_.d([_.F({value:"heading",reflectToAttribute:!0}),_.B("design:type",String)],Jo.prototype,"role",void 0);
_.d([_.F({value:-1,reflectToAttribute:!0}),_.B("design:type",Number)],Jo.prototype,"tabindex",void 0);_.d([_.fP({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Jo);
_.u(Jo,"yt-subscription-product-header-renderer",function(){if(XVy===void 0){var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;bJL===void 0&&(bJL=document.createElement("template"));var w=bJL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);XVy=e}e=XVy;return e},{mode:2});var J0T;var kmL;_.hq("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var kc=function(){return _.V.apply(this,arguments)||this};
_.U(kc,_.V);kc.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:_.OT("menuRenderer"),events:!0}}};
kc.prototype.onStampFinished_=function(){_.XC(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
kc.prototype.onStampFinished_=kc.prototype.onStampFinished_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kc.prototype,"data",void 0);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kc.prototype,"onStampFinished_",null);
_.d([_.fP({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],kc);
_.u(kc,"yt-subscription-product-renderer",function(){if(kmL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;J0T===void 0&&(J0T=document.createElement("template"));var w=J0T;C.call(z,w.content.cloneNode(!0),e.content.firstChild);kmL=e}e=kmL;return e},{mode:2});var qty;var xXT;_.hq("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var qu=function(){return _.V.apply(this,arguments)||this};
_.U(qu,_.V);qu.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
qu.prototype.imageScrimColorValuesChanged_=function(){var e,z=(e=this.data)==null?void 0:e.imageScrimColorValues;_.XC(this.hostElement).querySelector("#scrim").style.backgroundColor=z?_.FN(z[0]):"transparent"};
qu.prototype.imageScrimColorValuesChanged_=qu.prototype.imageScrimColorValuesChanged_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qu.prototype,"data",void 0);
_.d([_.mi("data.imageScrimColorValues"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qu.prototype,"imageScrimColorValuesChanged_",null);_.d([_.fP({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],qu);
_.u(qu,"yt-subscription-product-upsell-offer-renderer",function(){if(xXT===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;qty===void 0&&(qty=document.createElement("template"));var w=qty;C.call(z,w.content.cloneNode(!0),e.content.firstChild);xXT=e}e=xXT;return e},{mode:2});var Tey;var $Xy;var l02;var QMg;var mXy;var a0C;var xc=function(){return _.V.apply(this,arguments)||this};
_.U(xc,_.V);xc.prototype.onYtServiceRequestError_=function(e){_.Zh(this.hostElement,e.detail.error.message)};
xc.prototype.onYtServiceRequestError_=xc.prototype.onYtServiceRequestError_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xc.prototype,"data",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],xc.prototype,"collapsible",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],xc.prototype,"isManageRed",void 0);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xc.prototype,"onYtServiceRequestError_",null);_.d([_.fP({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],xc);
_.u(xc,"yt-single-ypc-offer-renderer",function(){if(a0C===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;mXy===void 0&&(mXy=document.createElement("template"));var w=mXy;C.call(z,w.content.cloneNode(!0),e.content.firstChild);a0C=e}e=a0C;return e},{mode:2});var Tb=function(){return _.V.apply(this,arguments)||this};
_.U(Tb,_.V);Tb.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Tb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Tb.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Tb.prototype,"isManageRed",void 0);_.d([_.fP({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Tb);
_.u(Tb,"yt-single-ypc-offer-list-renderer",function(){if(QMg===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;l02===void 0&&(l02=document.createElement("template"));var w=l02;C.call(z,w.content.cloneNode(!0),e.content.firstChild);QMg=e}e=QMg;return e},{mode:2});var nyC;var M8C;_.hq("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var $c=function(){return _.V.apply(this,arguments)||this};
_.U($c,_.V);$c.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$c.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],$c.prototype,"isManageRed",void 0);_.d([_.fP({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],$c);
_.u($c,"yt-ypc-offers-list-renderer",function(){if(M8C===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;nyC===void 0&&(nyC=document.createElement("template"));var w=nyC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);M8C=e}e=M8C;return e},{mode:2});_.hq("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var lU=function(){return _.V.apply(this,arguments)||this};
_.U(lU,_.V);
lU.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}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lU.prototype,"data",void 0);_.d([_.fP({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],lU);
_.u(lU,"yt-unlimited-manage-subscription-page-renderer",function(){if($Xy===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Tey===void 0&&(Tey=document.createElement("template"));var w=Tey;C.call(z,w.content.cloneNode(!0),e.content.firstChild);$Xy=e}e=$Xy;return e},{mode:2});var r0a;var HJL;var Q6=function(){return _.V.apply(this,arguments)||this};
_.U(Q6,_.V);_.Y=Q6.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.Y.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.onKeypress_=function(e){e.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.Y.handleHeaderTap_=function(e){e.preventDefault();e.stopPropagation();this.expandOffers_()};
_.Y.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.Y.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Q6.prototype.dataChanged_=Q6.prototype.dataChanged_;_.d([_.W(_.cv),_.B("design:type",Object)],Q6.prototype,"ironA11yKeysBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Q6.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Q6.prototype,"offersVisible_",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q6.prototype,"dataChanged_",null);_.d([_.fP({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Q6);
_.u(Q6,"yt-collapsible-ypc-offer-renderer",function(){if(HJL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;r0a===void 0&&(r0a=document.createElement("template"));var w=r0a;C.call(z,w.content.cloneNode(!0),e.content.firstChild);HJL=e}e=HJL;return e},{mode:2});var UXL;var vyj;_.hq("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var mt=function(){return _.V.apply(this,arguments)||this};
_.U(mt,_.V);_.Y=mt.prototype;_.Y.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.Y.dataChanged_=function(){if(this.data.backgroundImage){var e=_.oo(this.data.backgroundImage.thumbnails,screen.width),z=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=z?"linear-gradient(180deg, "+z+"), url("+e+")":"url("+e+")";this.data.gtmId&&_.oQ(this.data.gtmId,_.j5("GL",""))}};
_.Y.onYtServiceRequestError_=function(e){_.Zh(this.hostElement,e.detail.error.message)};
_.Y.getScrimLayerColorStops_=function(){var e,z,C=(e=this.data.unlimitedHeaderV2Data)==null?void 0:(z=e.unlimitedHeaderV2Data)==null?void 0:z.scrimLayerColors;if(!C)return null;var w=100/C.length;return C.map(function(K,G){G*=w;return _.FN(K)+" "+G+"%"}).join(",")};
_.Y.computeLogoWithPadding=function(e){var z,C,w;return(e=(z=e.unlimitedLogoImage)==null?void 0:(C=z.thumbnails)==null?void 0:(w=C[0])==null?void 0:w.height)&&e%31===0?!0:!1};
mt.prototype.onYtServiceRequestError_=mt.prototype.onYtServiceRequestError_;mt.prototype.dataChanged_=mt.prototype.dataChanged_;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.d([_.F({computed:"computeLogoWithPadding(data)"}),_.B("design:type",Boolean)],mt.prototype,"logoWithPadding",void 0);
_.d([_.F(),_.B("design:type",Object)],mt.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mt.prototype,"dataChanged_",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],mt.prototype,"onYtServiceRequestError_",null);_.d([_.fP({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],mt);
_.u(mt,"yt-unlimited-page-header-renderer",function(){if(vyj===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;UXL===void 0&&(UXL=document.createElement("template"));var w=UXL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);vyj=e}e=vyj;return e},{mode:2});var I0g;var WIj;_.hq("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var ac=function(){return _.V.apply(this,arguments)||this};
_.U(ac,_.V);ac.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ac.prototype,"data",void 0);_.d([_.fP({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],ac);
_.u(ac,"yt-unlimited-user-notification-renderer",function(){if(WIj===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;I0g===void 0&&(I0g=document.createElement("template"));var w=I0g;C.call(z,w.content.cloneNode(!0),e.content.firstChild);WIj=e}e=WIj;return e},{mode:2});
}catch(e){_._DumpException(e)}
try{
var CAL,KOl,Gxv,bmY,X9E,qmo;_.q0=function(e){var z=e.clientMessageId;var C=e.playerOffsetMs;var w=e.pageContext;e=e.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:z},!!C&&{playerOffsetMs:C},!!w&&{pageContext:w},!!e&&{userInputText:e})}};
_.z9Y=function(e,z,C){z=z===void 0?5:z;if(z!==0){var w=typeof e==="function"?e():document.querySelector(e);w?(C==null?0:C.enableSmartFocus)?_.pi1(w):w.focus():setTimeout(function(){_.z9Y(e,z-1,C)},500)}};
CAL=function(e){return String.raw.apply(String,[{raw:e}].concat(_.s_(_.yL.apply(1,arguments).map(function(z){return z instanceof Array?z.join(""):z}))))};
KOl=function(e){var z=_.yL.apply(1,arguments),C=z.length;if(!Array.isArray(e)||!Array.isArray(e.raw)||e.length!==e.raw.length||!_.AtC&&e===e.raw||!(_.AtC&&!_.ZYh||_.VL(e))||C+1!==e.length)throw new TypeError("$");return new w9o(Object.freeze({strings:Object.freeze(e),args:Object.freeze(z)}))};
_.opE=function(e){return{continuationCommand:{token:e,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
Gxv=function(){return _.yL.apply(0,arguments).flat().filter(function(e){return e}).join(";")};
bmY=function(){return KOl(Ymb,Gxv.apply(null,_.s_(_.yL.apply(0,arguments))))};
X9E=function(e,z){if(_.M("web_enable_chat_autoscroll_to_user_turn")&&e&&z)return e-4+"px"};
_.JEL=function(e,z){return _.xz(e.entities,"youchatPendingResponseEntity",z)};
_.kxY=function(e){return function(z){_.ZL(_.Rx("youchatPendingResponseEntity",e,{entityKey:e,isPendingResponse:z}))}};
qmo=function(e){e==null||e.addEventListener("DOMLoaded",function(){e.goToAndPlay(e.totalFrames-48,!0)})};
_.TR=function(e){this.__isSoyCss=!0;this.css=CAL.apply(null,[e.strings].concat(_.s_(e.args)))};
_.TR.prototype.toString=function(){return this.css};
var w9o=function(){_.TR.apply(this,arguments)};
_.U(w9o,_.TR);var Ymb=_.Kb(["",""]);_.xF$=_.f(function(e){var z=_.eQ(e,{numberOfChips:5}).numberOfChips;return _.x("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.x(_.ui,{each:function(){return Array(z==null?void 0:z())}},function(){return _.x("div",{class:"ytGhostChipShelfChip"})}))},"$i");var ToC=_.f(function(e){var z=void 0,C=function(){return e.data()},w=function(){return!!_.EA(_.hS(C())).optionColor},K=_.b(_.II(-1,void 0,"m6Iyqc")),G=K.next().value,X=K.next().value,J=function(a){return G()===a},q=function(a){return C().correctAnswerIndex===a},T=function(){return G()!==-1};
K=_.b(_.II("",void 0,"jvMkLd"));var Q=K.next().value,m=K.next().value;return _.x("yoututor-quiz-view-model",{class:_.qT("learningQuizComponentHost","learningYoututorQuizHost",e.className),style:_.QC({background:function(){return _.EA(_.hS(C())).backgroundColor}})},_.x("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},Q),_.x("div",{class:"learningQuizComponentQuizContainer"},_.x("div",{class:"learningQuizComponentQuiz"},_.x("div",{class:"learningQuizComponentQuizContent"},_.x(_.l,{cond:function(){return!!C().aiGeneratedQuizLabel},
then:function(){return _.x("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.x(_.U2,{text:function(){return C().aiGeneratedQuizLabel}}))}}),_.x("div",{class:"learningQuizComponentQuizHeader"},_.x("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.x("div",{class:"learningYoututorQuizText",
style:_.QC({color:function(){return _.EA(_.hS(C())).primaryTextColor}})},_.x(_.U2,{text:function(){return C().questionHeaderText}}))))),_.x("div",{role:"group",
class:_.qT("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.x(_.ui,{each:function(){return C().optionsData||[]}},function(a,n){var H={};
return _.x("button",{class:_.qT("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(H.learningQuizComponentQuizHover=function(){return!T()},H.learningQuizComponentQuizOptionWithCustomColor=w,H.learningYoututorQuizOptionSelectedCorrectOutline=function(){return T()&&q(n())},H.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return G()!==C().correctAnswerIndex&&J(n())},H.learningQuizComponentQuizIncorrectShake=function(){return G()!==
C().correctAnswerIndex&&J(n())},H)),
"on:click":_.T9(function(){_.Bj(_.nm(),{data:a});if(T())return!1;X(n());m(q(n())?C().correctAnswerAriaLabel||"":C().incorrectAnswerAriaLabel||"");return!1}),
style:_.QC({background:"transparent"}),"aria-description":function(){return T()?q(n())?C().correctAnswerAriaLabel:C().incorrectAnswerAriaLabel:""},
"aria-disabled":T,el:_.ej(function(I){_.FZ(271905,I,z,function(L){z=L})}),
"client-ve-type":271905},_.x("div",{class:"learningQuizComponentQuizOptionContainer"},_.x(_.U2,{text:a.optionText}),_.x(_.l,{cond:function(){var I=n();return T()&&(J(I)||q(I))},
then:function(){var I={};return _.x(_.mB,{className:_.qT("learningYoututorQuizOptionIcon",(I.learningQuizComponentQuizPulse=function(){return G()===C().correctAnswerIndex&&q(n())},I)),
size:24,icon:function(){return q(n())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.x(_.l,{cond:T,
then:function(){return _.x("div",{class:"learningYoututorQuizExplanationContainer"},_.x("div",{class:"learningYoututorQuizExplanationText"},_.x(_.U2,{text:function(){return C().explanationHeaderText}})),_.x(_.U2,{text:function(){return C().optionsData[G()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"aj");
ToC.idomCompat=!0;var $FZ=_.f(function(e){var z=e.thumbsUp,C=e.thumbsDown,w=e.rightAlignThumbs;e=_.b(_.II(!1,void 0,"OxPsH"));var K=e.next().value,G=e.next().value;e=_.b(_.II(!1,void 0,"V5vWne"));var X=e.next().value,J=e.next().value;e={};return _.x("div",{class:_.qT("ytwThumbsUpDownThumbs",(e.ytwThumbsUpDownRightAlign=function(){return w==null?void 0:w()},e))},_.x(_.XG,{data:z,
onToggle:function(q){G(q);X()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:K()}}}),_.x(_.XG,{data:C,
onToggle:function(q){J(q);K()&&G(!1)},
buttonShapeOverrides:function(){return{toggled:X()}}}))},"bj");
$FZ.idomCompat=!0;var Q5f=_.f(function(e){var z=function(){return e.data().pendingStateEntityKey||""},C=_.vF(_.JEL,z),w=function(){var J;
if(!(J=e.disabled())){var q;J=!((q=C())==null||!q.isPendingResponse)}return J},K=_.b(_.II(bmY(""),void 0,"Q6q6y")),G=K.next().value,X=K.next().value;
_.Nm(function(){requestAnimationFrame(function(){var J=e.data().onShowAnimationMs||0;J=J>0?bmY("--chip-animation-duration: "+J+"ms;"):bmY("");X(J)})});
return _.x("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:G},_.x(_.ui,{each:function(){return e.data().chipData||[]},
keyBy:"REFERENCE"},function(J){return _.x(lfZ,{data:J,disabled:w,pendingStateKey:z,onError:e.onError})}))},"dj"),lfZ=_.f(function(e){var z=_.qD("button"),C=_.b(_.II(!0,void 0,"baSFEf")),w=C.next().value,K=C.next().value,G=function(){return e.data().text.content},X=function(){return e.data().transparentWhenLoading},J=_.rG(_.cF.currentPageSubTypeSelector),q=function(){var Q;
return(Q=_.lh().resolve(_.$B(_.T7)))==null?void 0:_.bJo(Q,J())},T=_.T9(function(Q){var m,a,n,H,I,L,h,E;
return _.k(function(N){switch(N.nextAddress){case 1:Q.stopPropagation();if(e.disabled())return N.return();a=String(Math.floor(((m=_.n7())==null?void 0:m.getCurrentTime())||0)*1E3);n="youchat-"+Date.now();H=function(){_.uA(e.data().onClick||{});var D=_.opE(e.data().continuation),g=_.q0({clientMessageId:n,playerOffsetMs:a,pageContext:q()});return new Promise(function(y,Z){_.uA(D,{form:{formData:g},commandController:{onSuccess:function(YN,Jk){y(Jk)},
onServerError:function(YN,Jk){Z(Jk.error)}}})})};
I=_.kxY(e.pendingStateKey());I(!0);_.z9Y("#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");K(!1);_.Iv(N,2);return N.yield(H(),4);case 4:_.Yj(N,3);break;case 2:L=_.O_(N),(E=(h=e).onError)==null||E.call(h,L);case 3:I(!1),_.E_(N)}})});
return _.x(_.l,{cond:w,then:function(){return _.x("div",{class:"ytwYouChatChipsDataChipWrapper"},_.x("button",{el:z,class:"ytwYouChatChipsDataChip","data-disabled":e.disabled,"data-transparent-loading":X,"on:click":T,tabindex:0},G))}})},"ej");var mFf=_.f(function(e){var z=e.data;var C=e.initiallyExpanded;var w=function(){var T;return(T=z().conversationResourceData)==null?void 0:T.learningGuideData};
e=_.b(_.zx(function(){var T;return(T=C==null?void 0:C())!=null?T:!1}));
var K=e.next().value,G=e.next().value,X=function(){var T,Q=_.r((T=w())==null?void 0:T.expandButton,_.H7);Q&&_.Bj(_.nm(),{data:Q});G(!0)},J=_.hG(function(){var T,Q;
return(Q=(T=w())==null?void 0:T.sections)!=null?Q:[]},void 0,"V7sYqc"),q=_.hG(function(){return J().length>4},void 0,"GFFPnd");
e=_.hG(function(){var T;return!K()&&q()&&(T=w())!=null&&T.expandButton?J().slice(0,4):J()},void 0,"Rbi7Ke");
return _.x("yt-conversation-resource-view-model",{class:_.qT("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.x(_.PF,{data:e},{expandableMetadataViewModel:_.l_l}),_.x(_.l,{cond:function(){return q()&&!K()},
then:function(){return _.x("div",{id:"showMoreButton"},_.x(_.PF,{data:function(){var T;return(T=w())==null?void 0:T.expandButton}},{buttonViewModel:function(T){return _.x(_.iz,{data:T.data,
onClick:X})}}))}}))},"fj");_.afv=_.f(function(e){var z=function(){var E;return(E=e.data().text)==null?void 0:E.content},C=function(){var E,N;
return(E=e.data().webData)==null?void 0:(N=E.textResult)==null?void 0:N.content},w=_.lh().resolve(_.c9),K=_.MK(),G=function(){return e.data().chatResponseStyle},X=function(){return!e.data().transparentBackground},J=function(){return e.data().rightAlignThumbs},q=function(){return e.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||e.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},T=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:q()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:e.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},Q=function(){var E;
return e.data().webData||((E=e.data().text)==null?void 0:E.content)||e.data().videoResultsData||e.data().conversationResourceViewModel||e.data().quiz||e.data().yoututorQuiz||e.data().richContent},m=function(){return!!e.data().sectionHeader||Q()},a=function(){var E;
return(E=e.data().videoResultsData)==null?void 0:E.videoShelf},n=function(){var E;
return(E=e.data().webData)==null?void 0:E.sourcesShelf},H=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||G()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:e.data().thumbsDownViewModel&&e.data().thumbsUpViewModel},I=function(){return _.r(e.data().thumbsUpViewModel,_.v7)},L=function(){return _.r(e.data().thumbsDownViewModel,_.v7)};
_.Nm(function(){requestAnimationFrame(function(){var E;(E=e.shouldAnimateIcon)!=null&&E.call(e)&&qmo(K.lottieEl)})});
var h={};return _.x("you-chat-item-view-model",{class:_.qT("ytwYouChatItemViewModelYouChatItemViewModel",(h.ytwYouChatItemViewModelColumnLayout=function(){return q()},h)),
style:_.QC({"min-height":function(){var E,N;return X9E((E=e.containerHeight)==null?void 0:E.call(e),(N=e.isLastItem)==null?void 0:N.call(e))}}),
"data-target-id":function(){return e.data().id||""}},_.x(_.l,{cond:function(){return e.data().removeIcon?!1:m()},
then:function(){var E={};return _.x("div",{"aria-hidden":"true"},_.x(_.AY,{className:_.qT("ytwYouChatItemViewModelIcon",(E.ytwYouChatItemViewModelRtl=w==="rtl",E.ytwYouChatItemViewModelHidden=function(){return!(e.data().hideIcon||G()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||G()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:m())},E)),
animationName:"YOUCHAT_ICON",data:T,animationRef:K}))}}),_.x(_.l,{cond:m,
then:function(){var E={};return _.x("div",{class:_.qT("ytwYouChatItemViewModelHost",(E.ytwYouChatItemViewModelHostNoPadding=function(){return!!e.data().sectionHeader&&!Q()},E.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},E.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},E.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return G()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
E.ytwYouChatItemViewModelGradientBackground=X,E.ytwYouChatItemViewModelHostAlignStart=function(){return!q()},E.ytwYouChatItemViewModelHostDefaultFlex=function(){return!q()},E)),
role:"alert"},_.x(_.l,{cond:z,then:function(N){return _.x(_.he,{text:N,wrapCodeBlocks:!0})}}),_.x(_.PF,{data:function(){return e.data().sectionHeader}},{sectionHeaderViewModel:function(N){var D={};
return _.x(_.C5,{data:N.data,className:_.qT("ytwYouChatItemViewModelSectionHeader",(D.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!e.data().sectionHeader&&!Q()},D)),
forceSmallLayout:!0})}}),_.x(_.l,{cond:C,
then:function(N){return _.x(_.he,{text:N,wrapCodeBlocks:!0})}}),_.x(_.l,{cond:a,
then:function(){return _.x("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.x(_.PF,{data:function(){var N;return(N=e.data().videoResultsData)==null?void 0:N.videoShelf}},{horizontalShelfViewModel:function(N){return _.x(_.Rj,{data:N.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.x(_.l,{cond:n,
then:function(){return _.x("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.x(_.PF,{data:function(){var N;return(N=e.data().webData)==null?void 0:N.sourcesShelf}},{horizontalShelfViewModel:function(N){return _.x(_.Rj,{data:N.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.x(_.PF,{data:function(){return e.data().conversationResourceViewModel}},{conversationResourceViewModel:mFf}),_.x(_.PF,{data:function(){return e.data().quiz}},{learningJourneyQuizViewModel:_.yso}),_.x(_.PF,{data:function(){return e.data().yoututorQuiz}},{yoututorQuizViewModel:ToC}),_.x(_.PF,{data:function(){return e.data().richContent}},{cardViewModel:_.C6E,
linearLayoutViewModel:_.WX}),_.x(_.l,{cond:H,then:function(){return _.x($FZ,{thumbsUp:I,thumbsDown:L,rightAlignThumbs:J})}}))}}),_.x(_.l,{cond:function(){return e.data().chipsData},
then:function(E){return _.x(Q5f,{data:E,disabled:e.pending,onError:e.onError})}}))},"hj");
_.afv.idomCompat={callbacks:{onError:!0,onSend:!0}};_.npZ=_.f(function(e){var z=function(){return e.data().choiceSelectedText},C=function(){return e.data().hasGradientBackground},w={};
return _.x("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost",style:_.QC({"min-height":function(){var K,G;return X9E((K=e.containerHeight)==null?void 0:K.call(e),(G=e.isLastItem)==null?void 0:G.call(e))}}),
"data-target-id":function(){var K;return(K=e.data().itemTargetId)!=null?K:""}},_.x(_.l,{cond:z,
then:function(){return _.x("div",{class:"ytYouChatUserTurnChoiceSelected"},_.x(_.U2,{text:z}))}}),_.x("div",{class:_.qT("ytYouChatUserTurnUserMessage",(w.ytYouChatUserTurnGradientContainer=C,w.ytYouChatUserTurnDefaultContainer=function(){return!C()},w))},function(){return e.data().text}))},"ij");_.MQq=_.f(function(e){var z=function(){var X;return((X=e.data)==null?void 0:X.call(e).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},C=_.MK(),w=_.lh().resolve(_.c9);
_.Nm(function(){requestAnimationFrame(function(){var X;(X=C.lottieEl)==null||X.addEventListener("DOMLoaded",function(){var J;(J=e.onLottieLoaded)==null||J.call(e)})})});
var K=function(){var X;return(X=e.data)==null?void 0:X.call(e).loadingAnimationA11yLabel},G={};
return _.x("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var X;return((X=e.data)==null?void 0:X.call(e).targetId)||""},
"aria-label":function(){return K()||""},
role:function(){return K()?"progressbar":void 0},
style:_.QC({"min-height":function(){var X,J;return X9E((X=e.containerHeight)==null?void 0:X.call(e),(J=e.isLastItem)==null?void 0:J.call(e))}})},_.x(_.AY,{"aria-hidden":"true",
className:_.qT((G.ytChatLoadingViewModelRtl=w==="rtl",G)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:z()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||z()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:z()}}},
animationRef:C}))},"kj");
}catch(e){_._DumpException(e)}
try{
var GN2,Y3T,b0l;GN2=function(e){return _.M("kevlar_watch_cinematics_invisible")||e.fullscreen&&_.M("kevlar_watch_cinematics_invisible_in_fullscreen")||e.theater&&!e.fullscreen&&_.M("kevlar_watch_cinematics_invisible_in_theater")};
Y3T=function(){var e=document.createElement("canvas"),z=e.getContext("2d");if(!z)throw Error("Zo");_.z1(e,{position:"absolute",width:"100%",height:"100%"});return{element:e,context:z}};
b0l=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.M("kevlar_watch_cinematics_css_blur")};
_.Xit=function(e,z,C){return Math.abs(e-z)<=(C||1E-6)};
_.JJy=function(e,z){return e==z?!0:e&&z?e.width==z.width&&e.height==z.height:!1};_.kNL=new _.nN("notificationActionRenderer");var q3L=function(e){var z=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.x5;this.element.addEventListener("load",function(){z.loaded=!0;z.resolver.resolve(z.element)});
this.element.addEventListener("error",function(){z.failed=!0});
this.element.src=e};var xvg=function(e,z){this.image=e;this.frame=z};
xvg.prototype.drawToCanvas=function(e,z){var C=this.frame.width/this.frame.columns,w=this.frame.height/this.frame.rows,K=z.offsetX,G=z.offsetY;GN2(z)?(e.fillStyle=z.fullscreen?"#000":"#0f0f0f",e.fillRect(K,G,(z==null?void 0:z.width)||C,(z==null?void 0:z.height)||w)):e.drawImage(this.image,this.frame.column*C,this.frame.row*w,C,w,K,G,(z==null?void 0:z.width)||C,(z==null?void 0:z.height)||w)};
var T32=function(e){this.color=e};
T32.prototype.drawToCanvas=function(e,z){var C=z.offsetX,w=z.offsetY,K=z.width,G=z.height;e.fillStyle=GN2(z)?z.fullscreen?"#000":"#0f0f0f":this.color;e.fillRect(C,w,K,G)};var $4=function(e,z){_.X_.call(this);this.playerApi=z;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.RM(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();$vy(this,e);l6T(this);this.update()};
_.U($4,_.X_);$4.prototype.addEventListeners=function(){var e=this,z=function(){e.update()},C=function(K){e.paused||(K.type==="newdata"&&(e.mosaics.clear(),QX2(e),lP(e)),l6T(e),e.update())},w=function(){e.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",z);this.playerApi.addEventListener("onVideoDataChange",C);this.playerApi.addEventListener("onStateChange",w);this.addOnDisposeCallback(function(){e.playerApi.removeEventListener("onVideoProgress",z);e.playerApi.removeEventListener("onVideoDataChange",C);e.playerApi.removeEventListener("onStateChange",w)})};
var $vy=function(e,z){e.cinematicContainerRenderer!==z&&(e.cinematicContainerRenderer=z,QX2(e),lP(e),e.colorStoreUpdateJobId=_.c5.addLowPriorityJob(function(){var C;if((C=e.cinematicContainerRenderer.colorStore)!=null&&C.sampledColors){C=Infinity;for(var w=_.b(e.cinematicContainerRenderer.colorStore.sampledColors),K=w.next();!K.done;K=w.next()){K=K.value;var G=Number(K.key);G!==0&&G<C&&(C=G);G=_.FN(K.value);e.colorStore.set(K.key,G)}e.colorStoreTimeInterval=C}}))},QX2=function(e){e.colorStoreUpdateJobId&&
(_.c5.cancelJob(e.colorStoreUpdateJobId),e.colorStoreUpdateJobId=void 0);
e.colorStore.clear();e.currentStoryboardColor=void 0},mvL=function(e,z){var C;
return(C=e.getStoryboardFrame(z))==null?void 0:C.url};
$4.prototype.onPlayerStateChange=function(){this.update()};
$4.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var l6T=function(e){var z=e.getStoryboardFrame(0);z&&(z=new _.RM(z.width/z.columns,z.height/z.rows),_.JJy(e.currentStoryboardSize,z)||(e.currentStoryboardSize=z,e.publish("STORYBOARD_SIZE_CHANGED",e.currentStoryboardSize)))},a6C=function(e,z){e.currentStoryboardIndex=z;
e.pendingStoryboardIndex=NaN;z=e.getStoryboardFrame(e.currentStoryboardIndex);e.currentStoryboard=new xvg(e.mosaics.get(z.url).element,z);e.publish("STORYBOARD_CHANGED",e.currentStoryboard);e.lastUpdateTime=(0,_.as)()};
$4.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var lP=function(e){e.currentStoryboardIndex=NaN;e.pendingStoryboardIndex=NaN;e.currentStoryboard&&(e.currentStoryboard=void 0,e.publish("STORYBOARD_CHANGED",void 0));e.lastUpdateTime=NaN};
$4.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)lP(this);else{var e=this.playerApi.getPlayerState(1);if(e===-1||e===5||e===0)lP(this);else if(isNaN(this.lastUpdateTime)||!((0,_.as)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(e=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){e=""+Math.round(e*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var z=this.colorStore.get(e);z?z!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=z,this.currentStoryboard=new T32(z),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.as)()):(_.AX(new _.uh("Could not find color for timestamp: "+e,this.cinematicContainerRenderer)),lP(this))}else lP(this);else nBT(this,e)}};
var nBT=function(e,z){var C=e.getStoryboardFrameIndex(z);if(C!==e.currentStoryboardIndex&&C!==e.pendingStoryboardIndex){z=mvL(e,C);var w=e.mosaics.get(z);w?w.loaded&&a6C(e,C):(e.pendingStoryboardIndex=C,C=new q3L(z),e.mosaics.set(z,C),C.resolver.promise.then(function(){if(!e.isDisposed()&&!e.paused&&!isNaN(e.pendingStoryboardIndex)){var K=mvL(e,e.pendingStoryboardIndex);if(K){var G;(G=e.mosaics.get(K))!=null&&G.loaded&&a6C(e,e.pendingStoryboardIndex)}else lP(e)}}))}};
$4.prototype.getStoryboardFrameIndex=function(e){var z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(e,z)};
$4.prototype.getStoryboardFrame=function(e){var z=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,C,w;return((w=(C=this.playerApi).getStoryboardFrame)==null?void 0:w.call(C,e,z))||null};
$4.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var md=function(e,z,C,w){w=w===void 0?!1:w;_.Sn.call(this);this.cinematicContainerRenderer=z;this.playerApi=C;this.theater=this.fullscreen=!1;var K;this.ambientLightThemeEnabled=!w&&!!(z==null?0:(K=z.config)==null?0:K.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=w)&&!0;this.container=document.createElement("div");e.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);MsT(this);this.backCanvas=
Y3T();this.frontCanvas=Y3T();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new $4(z,this.playerApi);_.I4(this,this.storyboardManager);this.addEventListeners();rJy(this)?H0t(this,100+QU(this)*3*2,100+QU(this)*3*2):Uva(this);vBa(this,this.storyboardManager.currentStoryboard)};
_.U(md,_.Sn);
var MsT=function(e){var z=e.playerApi.getVideoAspectRatio();_.z1(e.container,{"aspect-ratio":""+z,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var C;var w;if((e.fullscreen||e.theater)&&((C=e.cinematicContainerRenderer.config)==null?0:(w=C.watchFullscreenConfig)==null?0:w.colorSourceWidthMultiplier))C=e.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var K;C=(K=
e.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?K:e.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var G,X;if((e.fullscreen||e.theater)&&((G=e.cinematicContainerRenderer.config)==null?0:(X=G.watchFullscreenConfig)==null?0:X.colorSourceHeightMultiplier))K=e.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var J;K=(J=e.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?J:e.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.z1(e.innerContainer,
{"aspect-ratio":""+z,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+C+", "+K+")"});b0l()&&_.z1(e.innerContainer,"filter","blur("+_.n0("cinematic_watch_css_filter_blur_strength",40)+"px)")};
md.prototype.setFullscreen=function(e,z){this.fullscreen=e;this.theater=!!z;MsT(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),e=this.storyboardManager.currentStoryboard,I6L(this),e&&Ws2(this,e)};
md.prototype.addEventListeners=function(){var e=this,z=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(K){vBa(e,K)}),C=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Uva(e)});
this.addOnDisposeCallback(function(){e.storyboardManager.unsubscribeByKey(z);e.storyboardManager.unsubscribeByKey(C)});
var w=function(){MsT(e)};
this.playerApi.addEventListener("onVideoDataChange",w);this.addOnDisposeCallback(function(){e.playerApi.removeEventListener("onVideoDataChange",w)})};
var Uva=function(e){if(!rJy(e)){var z=e.storyboardManager.currentStoryboardSize;isNaN(z.width)||isNaN(z.height)||H0t(e,Number(z.width)+QU(e)*3*2,Number(z.height)+QU(e)*3*2)}},H0t=function(e,z,C){e.backCanvas.element.width=z;
e.backCanvas.element.height=C;e.frontCanvas.element.width=z;e.frontCanvas.element.height=C},rJy=function(e){return e.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},vBa=function(e,z,C){C=C===void 0?!1:C;
var w=e.frontCanvas.element.getAnimations()[0];w?(w.pause(),e.backCanvas.context.globalAlpha=Number(getComputedStyle(e.frontCanvas.element).opacity),e.frontCanvas.element.style.opacity="0",w.finish()):e.backCanvas.context.globalAlpha=1;e.backCanvas.context.drawImage(e.frontCanvas.element,0,0,e.backCanvas.element.width,e.backCanvas.element.height);I6L(e);z&&Ws2(e,z);z=z?e.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.n0("cinematic_watch_fade_out_duration",500);w=_.n0("cinematic_watch_transition_frame_rate")/
1E3;var K={};w&&(K={easing:"steps("+Math.round(z*w)+")"});(C===void 0?0:C)||e.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:z,iterations:1},K));e.frontCanvas.element.style.opacity="1"},I6L=function(e){var z=e.ambientLightThemeEnabled||e.ambientTheaterModeEnabled,C=e.ambientLightThemeEnabled||e.ambientFullscreenEnabled;
e.frontCanvas.context.fillStyle=e.theater&&z||e.fullscreen&&C?"#000":"#0f0f0f";b0l()||(e.frontCanvas.context.filter="blur(0)");e.frontCanvas.context.fillRect(0,0,e.frontCanvas.element.width,e.frontCanvas.element.height)},Ws2=function(e,z){b0l()||(e.frontCanvas.context.filter="blur("+QU(e)+"px)");
e.frontCanvas.context.globalAlpha=e.fullscreen&&e.ambientFullscreenEnabled||e.theater&&e.ambientTheaterModeEnabled?_.n0("cinematic_watch_effect_letterbox_opacity",.4):_.n0("cinematic_watch_effect_opacity",.4);var C={offsetX:QU(e)*3,offsetY:QU(e)*3,theater:e.theater,fullscreen:e.fullscreen};rJy(e)&&(C.width=100,C.height=100);z.drawToCanvas(e.frontCanvas.context,C);e.frontCanvas.context.globalAlpha=1},QU=function(e){var z;
return(z=e.cinematicContainerRenderer.config.blurStrength)!=null?z:5};
md.prototype.disposeInternal=function(){_.Sn.prototype.disposeInternal.call(this);this.container.remove()};
md.prototype.clear=function(){vBa(this,void 0,!0)};
md.prototype.pause=function(){this.storyboardManager.pause()};var PhL;PhL=_.uS(function(){var e,z,C=!((z=(e=document.createElement("canvas")).getContext)==null||!z.call(e,"2d")),w;e=!((w=CSS)==null||!w.supports("filter: blur(0)"));w=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var K;return C&&e&&w&&!((K=CSS)==null||!K.supports("aspect-ratio: 1 / 1"))});
_.aq=function(e,z){_.X_.call(this);this.container=e;this.playerApi=z;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Ryt(this);this.update()};
_.U(_.aq,_.X_);_.Ls2=function(e){var z=document.documentElement.hasAttribute("dark");e.isDarkModeEnabled=z;e.update()};
_.hyt=function(e,z){e.settingEnabled=z;e.update()};
_.aq.prototype.setFullscreen=function(e,z){this.fullscreen=e;this.theater=!!z;this.update()};
_.O0t=function(e,z){e.cinematicContainerRenderer=z;e.cinematicContainerRenderer&&(e.cinematicsVe=_.mT(e.isShorts()?227858:159022),_.yQ(_.nm(),e.cinematicsVe),e.loggingClientData={watchCinematicContainerData:{presentationStyle:e.cinematicContainerRenderer.presentationStyle}});e.update()};
_.aq.prototype.isShorts=function(){var e,z;return((e=this.cinematicContainerRenderer)==null?void 0:(z=e.config)==null?void 0:z.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.aq.prototype.isAllowed=function(){var e;if(e=PhL()){var z,C,w;e=((C=this.cinematicContainerRenderer)==null?void 0:C.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((w=this.cinematicContainerRenderer)==null||!w.colorStore)||((z=this.cinematicContainerRenderer)==null?void 0:z.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(e)if(_.M("web_cinematics_pausing")){var K,G;e=this.isDarkModeEnabled||!!((K=this.cinematicContainerRenderer)==
null?0:(G=K.config)==null?0:G.enableInLightTheme)}else{var X,J;K=!!((X=this.cinematicContainerRenderer)==null?0:(J=X.config)==null?0:J.enableInLightTheme)&&(_.j5("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);e=this.isDarkModeEnabled||K}if(X=e){var q,T;X=!((T=(q=this.prefersReducedMotionQuery)==null?void 0:q.matches)!=null&&T)}return X};
_.EBT=function(e){(e=e.currentCinematicEffect)!=null&&(e=e.storyboardManager,e.paused=!1,l6T(e),e.update())};
_.aq.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Ryt=function(e){if(!_.M("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var z=window.matchMedia("(prefers-reduced-motion: reduce)"),C=function(){e.update()};
z.addListener(C);e.addOnDisposeCallback(function(){z.removeListener(C)});
return z}};
_.aq.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var e=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new md(this.container,e,this.playerApi,this.isDarkModeEnabled),_.I4(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var z=this.currentCinematicEffect;z.cinematicContainerRenderer!==
e&&(z.cinematicContainerRenderer=e,$vy(z.storyboardManager,e),MsT(z));e=_.Tj();_.$k(0,194,!0);e.save();e=_.Pr();this.cinematicsVe&&e&&_.Bf(e,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(e=_.Pr(),this.cinematicsVe&&e&&_.tg(e,[this.cinematicsVe],!1,this.loggingClientData),_.XU(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.lB.Object.defineProperties(_.aq.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Ody;var EiL;_.hK({_template:function(){if(EiL!==void 0)return EiL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=
e.content,C=z.insertBefore;Ody===void 0&&(Ody=document.createElement("template"));var w=Ody;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return EiL=e},
is:"tp-yt-iron-pages",behaviors:[_.oY,_.jL],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var RvL;_.Lal=function(){if(_.M("kevlar_home_skeleton")&&!RvL){var e=document.querySelector("#home-page-skeleton");e&&(_.hg("hgcr"),_.hA(e),RvL=!0)}};
RvL=!1;_.pL=new _.nN("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var P4j=function(e){return _.j$g(_.gvE(e&16777215))<.5},Rnt=function(e,z,C){var w=C.minimumRowsOfVideosBetweenSections===void 0?1:C.minimumRowsOfVideosBetweenSections;
return e<(C.minimumRowsOfVideosAtStart===void 0?2:C.minimumRowsOfVideosAtStart)||z!==null&&e-z<=w?!1:!0},LIT=function(e,z){var C=0,w=0;
e=_.b(e);for(var K=e.next();!K.done;K=e.next()){var G=K.value;if(G.richItemRenderer)G.richItemRenderer.rowIndex=w,G.richItemRenderer.colIndex=C++,C===z&&(C=0,w++);else if(G.richGroupRenderer&&G.richGroupRenderer.numColumns!==void 0)G.richGroupRenderer.rowIndex=w,G.richGroupRenderer.colIndex=C,C+=G.richGroupRenderer.numColumns,C===z&&(C=0,w++);else if(G.richSectionRenderer){var X=K=void 0;if(G=_.r((K=G)==null?void 0:(X=K.richSectionRenderer)==null?void 0:X.content,_.V66))G.rowIndex=w++}}},hng=function(e,
z){var C=z.contentElement;
z=z.rendererToTagNameMap;if(C&&z&&z.size!==0){for(var w=new Map,K=_.b(C.children),G=K.next();!G.done;G=K.next()){G=G.value;var X=G.tagName.toLowerCase(),J=w.get(X);J||(J=[],w.set(X,J));J.push(G)}if(w.size!==0)for(K=Math.min(e.length,C.children.length),G=new Map,X=0;X<K;X++){J=Object.keys(e[X])[0];J=z.get(J);if(!J)break;var q=G.get(J);q===void 0&&(q=0,G.set(J,q));var T=w.get(J);if(!T||q>=T.length)break;G.set(J,q+1);J=T[q];q=C.children[X];q!==J&&(_.CU=!0,_.wG.set(J,!0),C.insertBefore(J,q),_.wG.delete(J),
_.CU=!1)}}},OJa=function(e,z,C,w,K,G,X){w=w===void 0?{}:w;
if(!e||!e.length)return{orderedContent:[]};e=e.slice();var J=[],q=[];K=null;for(var T=0,Q=function(N){q.sort(function(y,Z){return Z.skippedOnRow-y.skippedOnRow});
for(var D,g=(D=q.shift())==null?void 0:D.content;g;)!g.richSectionRenderer&&N||J.push(g),D=void 0,g=(D=q.shift())==null?void 0:D.content},m=void 0,a=void 0,n=new Set;e.length>0||q.length>0;){for(var H=[],I=z;I>0;){var L=void 0,h=void 0,E=(h=q[0]&&q[0].skippedOnRow<T?(L=q.shift())==null?void 0:L.content:void 0)!=null?h:e.shift();
if(!E)break;if(E.richItemRenderer)L=E.richItemRenderer.targetId,h=void 0,L&&((h=X)==null?0:h.has(L))&&(h=X.get(L),!m||h&&h.timestamp>m.timestamp)&&(m=h,a&&n.add(a),a=L),H.push(E),I--;else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.numColumns<=I?(H.push(E),I-=E.richGroupRenderer.numColumns):I===z&&E.richGroupRenderer.numColumns>z?(H.push({richGroupRenderer:Object.assign({},E.richGroupRenderer,{numColumns:z})}),I=0):q.push({content:E,skippedOnRow:T});else if(E.richSectionRenderer)if(Rnt(T,
K,w)&&I===z){J.push(E);K=T;T++;continue}else q.push({content:E,skippedOnRow:T});else if(E.continuationItemRenderer){Q(!0);J.push(E);I=0;break}if(I===0)J.push.apply(J,_.s_(H));else if(!C&&e.length===0){Q(!1);J.push.apply(J,_.s_(H));I=0;break}}T++;m&&(J.push(m.content),T++);a=m=void 0}LIT(J,z);G&&hng(J,G);return{orderedContent:J,pinnedContentNotShownTargetIds:n}},V82=function(e,z){if(z){var C=_.eB().getState().entities.flowStateEntity,w=Eya(e),K=[z];
w&&w!==z&&K.push(w);var G=!0,X;if(C&&e.flowStateEntityKey&&((X=C[e.flowStateEntityKey])==null?void 0:X.primaryButtonDisabled)!==void 0){var J;G=!((J=C[e.flowStateEntityKey])==null||!J.primaryButtonDisabled)}FIy(e,w!=null?w:z,K,G)}},Stj=function(e){return _.K3(_.eB(),function(z){return z.entities.flowStateEntity},function(z,C){if(e.flowStateEntityKey){var w,K=z==null?void 0:(w=z[e.flowStateEntityKey])==null?void 0:w.currentStepId,G;
C=C==null?void 0:(G=C[e.flowStateEntityKey])==null?void 0:G.currentStepId;G=_.eB().getState().talkToRecs;if(K&&K!==C){var X;z=(z==null?void 0:(X=z[e.flowStateEntityKey])==null?void 0:X.stepIdStack)||Object.keys(G.stepStates);X=!f0j(G==null?void 0:G.stepStates[K]);FIy(e,K,z,X)}}})},dXj=function(e){return _.K3(_.eB(),uKt,function(z){var C=Eya(e);
if(C){var w=Object.keys(z.stepStates);z=!f0j(z==null?void 0:z.stepStates[C]);FIy(e,C,w,z)}})},f0j=function(e){var z=Object.keys((e==null?void 0:e.selectionStates)||{}).reduce(function(G,X){return G||(e==null?void 0:e.selectionStates[X].isSelected)},!1),C,w,K=!!(e==null?0:(C=e.userQuery)==null?0:(w=C.userQuery)==null?0:w.trim());
return z||K},Eya=function(e){if(e.flowStateEntityKey){var z,C,w=(z=_.eB().getState().entities.flowStateEntity)==null?void 0:(C=z[e.flowStateEntityKey])==null?void 0:C.currentStepId;
if(w)return w}},FIy=function(e,z,C,w){_.eB().dispatch(_.Rx("flowStateEntity",e.flowStateEntityKey,{currentStepId:z,
stepIdStack:C,key:e.flowStateEntityKey,primaryButtonDisabled:w}))},DXa;var iJT;_.hK({_template:function(){if(iJT!==void 0)return iJT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
var z=e.content,C=z.insertBefore;DXa===void 0&&(DXa=document.createElement("template"));var w=DXa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return iJT=e},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var Nea=new _.nN("flowRootRenderer");var sMa=new _.nN("chipsShelfViewModel");var Be2=new _.nN("responsiveContainerConfiguration");_.t82=new _.nN("engagementPanelSectionListRenderer");var gyy=function(){this.horizontal=!1},jM2=function(e,z){e.horizontal=z};
gyy.prototype.position=function(e,z,C,w){w=w===void 0?1:w;e=this.delta(e)*w+z;w=Math.max(z,C);return e>=Math.min(z,C)&&e<=w?e:C};
gyy.prototype.axis=function(e){e=this.direction(e);return e==="up"||e==="down"?"Y":"X"};var nL=function(e,z,C){z=z===void 0?_.ef():z;this.target=e;this.manager=z;this.touchAction=C;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
nL.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(_.s_(this.events)));for(var e=_.b(this.events),z=e.next();!z.done;z=e.next())this.listen(z.value)}};
nL.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.s_(this.events)));for(var e=_.b(this.events),z=e.next();!z.done;z=e.next())this.unlisten(z.value)}};
nL.prototype.listen=function(e){this.eventMap[e]&&this.target.addEventListener(e,this.eventMap[e])};
nL.prototype.unlisten=function(e){this.eventMap[e]&&this.target.removeEventListener(e,this.eventMap[e])};var Mu=function(){gyy.apply(this,arguments)};
_.U(Mu,gyy);Mu.prototype.direction=function(e){var z=e.detail;e=z.deltaY;z=z.deltaX;return e&&!this.horizontal?e>0?"down":"up":z&&this.horizontal?z>0?"right":"left":"none"};
Mu.prototype.distance=function(e){return Math.abs(this.delta(e))};
Mu.prototype.delta=function(e){var z=this.direction(e),C=e.detail;e=C.deltaX;C=C.deltaY;return z==="up"||z==="down"?C||0:e||0};
Mu.prototype.velocity=function(e){var z=this.direction(e),C=e.detail;e=C.velocityX;C=C.velocityY;return Math.abs(z==="up"||z==="down"?C||0:e||0)};_.rl=function(e,z,C,w,K,G){K=K===void 0?new Mu:K;G=G===void 0?_.ef():G;nL.call(this,z,G,w);var X=this;this.element=e;this.target=z;this.config=C;this.input=K;this.manager=G;this.events=["panstart","panmove","panend"];this.onPanStart=function(){X.config.draggingClass&&X.element.classList.add(X.config.draggingClass);X.config.startAction&&X.config.startAction()};
this.onPanMove=function(J){var q=y02(X,J);if(q){X.move(J,q);q.fade&&X.fade(J,q);var T=X.input.direction(J);q.moveAction&&q.moveAction(c0y(X,J,q),T)}};
this.onPanEnd=function(J){var q,T,Q,m,a,n;return _.k(function(H){if(H.nextAddress==1){X.animationRequestId&&cancelAnimationFrame(X.animationRequestId);X.animationRequestId=void 0;q=y02(X,J);if(!q)return H.return();T=q;Q=T.triggerAction;m=T.fade;a=T.disableFinish;n=T.translateBack;var I=X.input.velocity(J),L=X.input.distance(J),h=X.threshold(q);return I>.3&&L>10||L>h?a?H.jumpTo(6):m?H.yield(A0L(X,J),6):H.yield(ZJg(X,J,q),6):n?H.yield(X.translateBack(J),3):H.jumpTo(3)}H.nextAddress!=3&&Q&&Q();X.config.draggingClass&&
X.element.classList.remove(X.config.draggingClass);X.reset();_.E_(H)})};
e=Object.keys(C.triggers);this.directions=new Set(e);jM2(this.input,this.directions.has("right")||this.directions.has("left"))};
_.U(_.rl,nL);_.rl.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var y02=function(e,z){z=e.input.direction(z);return e.config.triggers[z]};
_.rl.prototype.move=function(e,z){var C=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var w=C.input.axis(e),K=C.input.position(e,C.config.startPosition,z.endPosition,z.moveRatio||1);C.element.style.transform="translate"+w+"("+K+"px)";C.animationRequestId=void 0}))};
var c0y=function(e,z,C){var w=C.moveRatio||1;C=Math.abs(e.config.startPosition-C.endPosition);return Math.min(e.input.distance(z)*w,C)/C};
_.rl.prototype.fade=function(e,z){var C=z.endOpacity;e=c0y(this,e,z);e>0&&(this.element.style.opacity=""+(((C||0)-1)*e+1))};
_.rl.prototype.threshold=function(e){return e.threshold?e.threshold:Math.abs(e.endPosition-this.config.startPosition)/3};
var ZJg=function(e,z,C){var w,K,G,X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1)return w=e.input.delta(z)+e.config.startPosition,K=e.input.axis(z),G=C,X=G.endPosition,J=G.transitionEndPosition,T=(q=J)!=null?q:X,Q.yield(e.element.animate([{transform:"translate"+K+"("+w+"px)"},{transform:"translate"+K+"("+T+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);e.element.style.transform="translate"+K+"("+T+"px)";_.E_(Q)})};
_.rl.prototype.translateBack=function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1){if(!z.element.style.transform)return K.return();C=z.input.axis(e);w=z.config.startPosition;return K.yield(z.element.animate([{transform:z.element.style.transform},{transform:"translate"+C+"("+w+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}z.element.style.transform="translate"+C+"("+w+"px)";_.E_(K)})};
var A0L=function(e,z){var C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return C=e.input.delta(z)+e.config.startPosition,w=e.input.axis(z),K=C+70,G=e.element.style.opacity===""?1:e.element.style.opacity,X.yield(e.element.animate([{transform:"translate"+w+"("+C+"px)",opacity:G},{transform:"translate"+w+"("+K+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);e.element.style.transform="translate"+w+"("+K+"px)";e.element.style.opacity="0";_.E_(X)})};var Hx=function(){var e=_.rO.apply(this,arguments)||this;e._noAccessors=!0;e.scrollRate=3;e.autoScrollAnimationStart=0;e.autoScrollPaused=!1;e.autoScrollRafId=0;return e};
_.U(Hx,_.rO);_.Y=Hx.prototype;_.Y.created=function(){var e=this;this.boundAutoScrollHandler=function(z){e.autoScroll(z)}};
_.Y.detached=function(){this.hostElement.removeEventListener("mouseout",_.lE(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.lE(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.lE(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.Y.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.lE(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.lE(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.lE(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.lE(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.lE(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.lE(this,this.endAutoScroll)),this.endAutoScroll())};
_.Y.autoScroll=function(e){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=e);var z;if(z=!this.autoScrollPaused&&this.scrollTarget)z=this.scrollTarget,z=z.scrollHeight-z.scrollTop!==z.clientHeight;z&&(z=1E3/this.scrollRate,e-=this.autoScrollAnimationStart,e>z&&(this.scrollTarget.scrollTop+=Math.ceil(e/z),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.Y.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.Y.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Hx.prototype.autoScrollEnabledChanged=Hx.prototype.autoScrollEnabledChanged;_.d([_.F(),_.B("design:type",Object)],Hx.prototype,"scrollRate",void 0);_.d([_.F(),_.B("design:type",Object)],Hx.prototype,"scrollTarget",void 0);_.d([_.F(),_.B("design:type",Boolean)],Hx.prototype,"autoScrollEnabled",void 0);_.d([_.mi("autoScrollEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hx.prototype,"autoScrollEnabledChanged",null);_.d([_.HI()],Hx);_.pVj=[Hx.prototype];var evY;var UP=function(){var e=_.V.apply(this,arguments)||this;e.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};e.forceDarkTheme=!1;e.forceLightTheme=!1;e.dynamicTextHeight=94;e.hasOverflowButton=!1;e.isInfeedModernization=!1;return e};
_.U(UP,_.V);_.Y=UP.prototype;_.Y.computeUrlImg=function(e){if(e)return _.G9(e.thumbnails)};
_.Y.getLogoHeight=function(e){return this.logoWithPadding(e)?"31":"24"};
_.Y.getLogoClassName=function(e){return this.logoWithPadding(e)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.Y.logoWithPadding=function(e){var z,C;return(e=(z=e.thumbnails)==null?void 0:(C=z[0])==null?void 0:C.height)&&e%31===0?!0:!1};
_.Y.sendImpressionEndpoints=function(e){e.impressionEndpoints&&_.wQ(this.hostElement,e.impressionEndpoints)};
_.Y.observeBasicPalette=function(){var e,z,C=(e=this.data)==null?void 0:(z=e.colorData)==null?void 0:z.basicColorPaletteData;C?_.Ro(this.hostElement,C):_.Ro(this.hostElement,{})};
_.Y.observeDataChanged=function(){var e;this.dynamicTextHeight=((e=this.data)==null?0:e.supplementalText)?74:94;var z;this.hasSupplementalText=!((z=this.data)==null||!z.supplementalText);var C,w,K,G;e=(C=this.data)==null?void 0:(w=C.actionButton)==null?void 0:(K=w.buttonRenderer)==null?void 0:(G=K.colorData)==null?void 0:G.basicColorPaletteData;var X,J,q;if(!((X=this.data)==null?0:(J=X.actionButton)==null?0:(q=J.buttonRenderer)==null?0:q.style)&&e){this.computeIsInfeedModernization(this.data)||(e.borderColor=
e.foregroundTitleColor);var T,Q;this.set("data.actionButton.buttonRenderer",_.de.unsafeClone((T=this.data)==null?void 0:(Q=T.actionButton)==null?void 0:Q.buttonRenderer))}};
_.Y.observeDataForCounterfactual=function(){if(_.M("kevlar_banner_cf_extra_logging")){var e;((e=this.data)==null?0:e.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.Y.computeSupplementalStyle=function(){var e;if((e=this.data)!=null&&e.supplementalText){var z,C,w;if((z=this.data)==null?0:(C=z.colorData)==null?0:(w=C.basicColorPaletteData)==null?0:w.foregroundActivatedColor)return e=_.EG(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+e+"; --yt-endpoint-hover-color:"+e+"; --yt-endpoint-visited-color:"+e+"; --yt-formatted-string-bold-font-weight:700;"}};
_.Y.computeForcedDarkTheme=function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.actionButton)==null?void 0:(C=z.buttonRenderer)==null?void 0:C.style,K,G,X;e=P4j(((K=this.data)==null?void 0:(G=K.colorData)==null?void 0:(X=G.basicColorPaletteData)==null?void 0:X.backgroundColor)||0);return w&&e};
_.Y.computeForcedLightTheme=function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.actionButton)==null?void 0:(C=z.buttonRenderer)==null?void 0:C.style,K,G,X;e=!P4j(((K=this.data)==null?void 0:(G=K.colorData)==null?void 0:(X=G.basicColorPaletteData)==null?void 0:X.backgroundColor)||0);return w&&e};
_.Y.computeHasOverflowButton=function(e){return!!e.overflowButton};
_.Y.computeHasTitle=function(e){return!!e.title};
_.Y.computeTitleMaxFontSize=function(e){return this.computeHasOverflowButton(e)?28:64};
_.Y.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.Y.computeIsInfeedModernization=function(){var e,z,C,w,K=(e=this.data)==null?void 0:(z=e.actionButton)==null?void 0:(C=z.buttonRenderer)==null?void 0:(w=C.colorData)==null?void 0:w.basicColorPaletteData;return(K==null?void 0:K.backgroundColor)===452984831||(K==null?void 0:K.backgroundColor)===218103808};
UP.prototype.observeDataForCounterfactual=UP.prototype.observeDataForCounterfactual;UP.prototype.observeDataChanged=UP.prototype.observeDataChanged;UP.prototype.observeBasicPalette=UP.prototype.observeBasicPalette;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],UP.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],UP.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],UP.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],UP.prototype,"hasSupplementalText",void 0);_.d([_.F(),_.B("design:type",Object)],UP.prototype,"dismissButtonOverrides",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.B("design:type",Boolean)],UP.prototype,"hasTitle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.B("design:type",Object)],UP.prototype,"forceDarkTheme",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.B("design:type",Object)],UP.prototype,"forceLightTheme",void 0);_.d([_.F(),_.B("design:type",Object)],UP.prototype,"dynamicTextHeight",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Object)],UP.prototype,"hasOverflowButton",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.B("design:type",Object)],UP.prototype,"isInfeedModernization",void 0);_.d([_.mi("data.colorData.basicColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UP.prototype,"observeBasicPalette",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UP.prototype,"observeDataChanged",null);_.d([_.mi("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],UP.prototype,"observeDataForCounterfactual",null);_.d([_.SL({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],UP);
_.u(UP,"ytd-banner-promo-renderer",function(){if(evY!==void 0)return evY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return evY=e},{mode:1});var zva;var CZ2;var wow;var Kaa=function(){return _.V.apply(this,arguments)||this};
_.U(Kaa,_.V);_.d([_.F(),_.B("design:type",Object)],Kaa.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Kaa.prototype,"ytRendererBehavior",void 0);_.d([_.SL({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Kaa);
_.u(Kaa,"ytd-hashtag-grid-tile-renderer",function(){if(wow!==void 0)return wow;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return wow=e},{mode:1});var vx=function(){return _.V.apply(this,arguments)||this};
_.U(vx,_.V);vx.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
vx.prototype.updateRichGridTrendingHashtagsVisibility=function(){var e,z;if(((e=this.data)==null||!e.isExpanded)&&(z=this.data)!=null&&z.tiles){e=this.data.tiles.length;z=e>this.richGridItemsPerRow?this.richGridItemsPerRow+1:e;var C=Math.ceil(e/z);this.fullyVisibleRows=e%z===1&&C===2?1:Math.min(C,2);this.isShowMoreVisible=this.fullyVisibleRows<C}};
vx.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
vx.prototype.updateRichGridTrendingHashtagsVisibility=vx.prototype.updateRichGridTrendingHashtagsVisibility;_.d([_.F(),_.B("design:type",Object)],vx.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Number)],vx.prototype,"fullyVisibleRows",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],vx.prototype,"isShowMoreVisible",void 0);_.d([_.F({selector:_.Fn,value:0}),_.B("design:type",Number)],vx.prototype,"richGridItemsPerRow",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],vx.prototype,"ytdReduxBehavior",void 0);_.d([_.mi("data","richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vx.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.d([_.SL({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],vx);
_.u(vx,"ytd-hashtag-grid-shelf-renderer",function(){if(CZ2!==void 0)return CZ2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return CZ2=e},{mode:1});var o2L;var G52;var Ic=function(){var e=_.V.apply(this,arguments)||this;e.visibleVideos=[];e.hiddenVideos=[];e.modern=_.M("web_modern_buttons");e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(Ic,_.V);_.Y=Ic.prototype;_.Y.attached=function(){var e=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",e);this.onDarkModeToggledAction(e)};
_.Y.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"}}}};
_.Y.dataChanged=function(){var e=this;this.requestElementsPerRow();var z,C;this.currentColorPalette=this.isDarkTheme?(z=this.data)==null?void 0:z.darkColorData:(C=this.data)==null?void 0:C.lightColorData;var w;if((w=this.currentColorPalette)==null?0:w.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.T0(this,function(){e.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.Y.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Y.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.Y.computeIsFirstFeedItem=function(e){return e};
_.Y.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e);this.data&&(this.currentColorPalette=e?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.Y.getCurrentLogo=function(e,z){if(e)return z?e.darkLogoImage:e.lightLogoImage};
_.Y.computeTitleStyle=function(e){var z;if((z=this.data)!=null&&z.title&&e&&e.textPrimary!==void 0)return"color:"+_.EG(e.textPrimary)+";"};
_.Y.computeSubtitleStyle=function(e){var z;if((z=this.data)!=null&&z.subtitle&&e&&e.textSecondary!==void 0)return"color:"+_.EG(e.textSecondary)+";"};
_.Y.computeDismissIconStyle=function(e){if(this.data&&this.data.dismissButton&&e&&e.textPrimary!==void 0)return"--yt-button-color:"+_.EG(e.textPrimary)+";"};
_.Y.computeOverflowButtonStyle=function(e){if(this.data&&this.data.overflowButton&&e&&e.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.EG(e.textPrimary)+";--yt-spec-icon-active-other:"+_.EG(e.textPrimary)+";"};
_.Y.computeBackgroundStyle=function(e){if(e&&this.data){var z="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var C=_.G9((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);C&&(z+='background-image:url("'+C+'");')}e.backgroundColor!==void 0&&(z+="background-color:"+_.FN(e.backgroundColor)+";");return z}};
_.Y.computeButton=function(){var e,z=Object.assign({},_.r((e=this.data)==null?void 0:e.showMoreButton,_.a2));if(this.modern&&z){z.style="STYLE_MONO_OUTLINE";var C;if(e=(C=this.currentColorPalette)==null?void 0:C.textPrimary)z.colorData={basicColorPaletteData:{foregroundTitleColor:e,borderColor:e}}}return z};
_.Y.shouldShowBottomButton=function(e,z){return!(e==null?0:e.header)&&!(e==null||!e.primaryButton)&&z<3};
_.Y.checkExpanded=function(e){this.isExpanded=e&&e.content?this.hiddenVideos.length===0:!0};
_.Y.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.Y.getLogoHeight=function(e){return this.logoWithPadding(e)?"26":"20"};
_.Y.getLogoImageId=function(e){return this.logoWithPadding(e)?"logo-image-with-padding":"logo-image"};
_.Y.computeHasSectionHeader=function(e){return!!e.header};
_.Y.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var e;if((e=this.data.primaryButton)==null?0:e.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 z;((z=this.data.dismissButton)==null?0:z.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var C,w;((C=this.data)==null?0:(w=C.primaryButton)==null?0:w.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.Y.setVisibleVideos=function(e){if(this.data&&this.data.content)if(this.data.content.length){var z=this.data.content.length;this.data.header?e?(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.slimItemsPerRow),z)):(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow),z)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(z,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow),z)):(this.visibleVideos=this.data.content.slice(0,Math.min(z,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(z,this.elementsPerRow-1),z))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.Y.setHasMovieRenderer=function(){var e;if((e=this.data)!=null&&e.content){var z;this.hasMovieRenderer=!!_.r((z=this.data)==null?void 0:z.content[0],_.BtY)}else this.hasMovieRenderer=!1};
_.Y.requestElementsPerRow=function(){_.pi(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var e=_.b(this.hiddenMediaRenderers),z=e.next();!z.done;z=e.next())z.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(e=_.XC(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&e.focus()}};
_.Y.updateTitleSpec=function(){var e;(e=this.data)!=null&&e.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.Y.logoWithPadding=function(e){var z,C,w;return(e=(z=this.getCurrentLogo(e,this.isDarkTheme))==null?void 0:(C=z.thumbnails)==null?void 0:(w=C[0])==null?void 0:w.height)&&e%31===0?!0:!1};
_.Y.onUpdateElementsPerRowAction=function(e,z,C){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e);C&&this.slimItemsPerRow!==C&&(this.slimItemsPerRow=C)};
Ic.prototype.slimItemsPerRowChanged=Ic.prototype.slimItemsPerRowChanged;Ic.prototype.elementsPerRowChanged=Ic.prototype.elementsPerRowChanged;Ic.prototype.dataChanged=Ic.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],Ic.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ic.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Ic.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ic.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Ic.prototype,"currentColorPalette",void 0);_.d([_.F(),_.B("design:type",Array)],Ic.prototype,"visibleVideos",void 0);_.d([_.F(),_.B("design:type",Array)],Ic.prototype,"hiddenVideos",void 0);
_.d([_.F(),_.B("design:type",Object)],Ic.prototype,"primaryButton",void 0);_.d([_.F({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],Ic.prototype,"elementsPerRow",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ic.prototype,"isDarkTheme",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ic.prototype,"isExpanded",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ic.prototype,"largeTitle",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ic.prototype,"hasMovieRenderer",void 0);_.d([_.F(),_.B("design:type",Number)],Ic.prototype,"slimItemsPerRow",void 0);_.d([_.F(),_.B("design:type",Boolean)],Ic.prototype,"showLightVideoMetadata",void 0);_.d([_.F(),_.B("design:type",Boolean)],Ic.prototype,"showDarkVideoMetadata",void 0);_.d([_.F(),_.B("design:type",Number)],Ic.prototype,"videoMetadataColor",void 0);
_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],Ic.prototype,"miniMode",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],Ic.prototype,"isFirstFeedItem",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.B("design:type",Boolean)],Ic.prototype,"hasSectionHeader",void 0);
_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Ic.prototype,"roundedContainer",void 0);_.d([_.MH("#visible-video-container ytd-rich-grid-media"),_.B("design:type",Array)],Ic.prototype,"visibleMediaRenderers",void 0);_.d([_.MH("#hidden-video-container ytd-rich-grid-media"),_.B("design:type",Array)],Ic.prototype,"hiddenMediaRenderers",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ic.prototype,"modern",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ic.prototype,"dataChanged",null);_.d([_.mi("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ic.prototype,"elementsPerRowChanged",null);_.d([_.mi("slimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ic.prototype,"slimItemsPerRowChanged",null);
_.d([_.SL({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Ic);
_.u(Ic,"ytd-brand-video-shelf-renderer",function(){if(G52!==void 0)return G52;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return G52=e},{mode:1});var YvY;var Wx=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(Wx,_.V);_.Y=Wx.prototype;_.Y.attached=function(){var e=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",e);this.onDarkModeToggledAction(e)};
_.Y.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.Y.dataChanged=function(){this.requestElementsPerRow();var e,z;this.currentColorPalette=this.isDarkTheme?(e=this.data)==null?void 0:e.darkColorData:(z=this.data)==null?void 0:z.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.Y.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.Y.computeIsFirstFeedItem=function(e){return e};
_.Y.onDarkModeToggledAction=function(e){e!==this.isDarkTheme&&this.set("isDarkTheme",e);this.data&&(this.currentColorPalette=e?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(e),this.updateButtonPalette())};
_.Y.shouldShowThumbnailInMetadata=function(e){return e<=1};
_.Y.computeVideoMetadataColor=function(){if(this.data){var e;if((e=this.currentColorPalette)==null?0:e.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.Y.computeTitleStyle=function(e){var z;if((z=this.data)!=null&&z.title&&e&&e.textPrimary!==void 0)return"color:"+_.EG(e.textPrimary)+";"};
_.Y.computeSubtitleStyle=function(e){var z;if((z=this.data)!=null&&z.subtitle&&e&&e.textSecondary!==void 0)return"color:"+_.EG(e.textSecondary)+";"};
_.Y.computeOverflowButtonStyle=function(e){if(this.data&&this.data.overflowButton&&e.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.EG(e.textPrimary)+";--yt-spec-icon-active-other:"+_.EG(e.textPrimary)+";"};
_.Y.computeBackgroundStyle=function(e){if(e&&this.data){var z="";e.backgroundColor!==void 0&&(z+="background-color:"+_.FN(e.backgroundColor)+";");return z}};
_.Y.computeHasOverflowButton=function(e){return!!e.overflowButton};
_.Y.updateButtonPalette=function(){if(this.data){var e;if((e=this.data.primaryButton)==null?0:e.buttonRenderer){var z;if((z=this.currentColorPalette)==null?0:z.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var C;((C=this.currentColorPalette)==null?0:C.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.Y.requestElementsPerRow=function(){_.pi(this.hostElement,"yt-request-elements-per-row")};
_.Y.updateTitleSpec=function(){var e;(e=this.data)!=null&&e.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")};
_.Y.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e)};
Wx.prototype.elementsPerRowChanged=Wx.prototype.elementsPerRowChanged;Wx.prototype.dataChanged=Wx.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],Wx.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Wx.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Wx.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Wx.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Wx.prototype,"currentColorPalette",void 0);_.d([_.F(),_.B("design:type",Object)],Wx.prototype,"primaryButton",void 0);
_.d([_.F({reflectToAttribute:!0,value:3}),_.B("design:type",Number)],Wx.prototype,"elementsPerRow",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Wx.prototype,"isDarkTheme",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Wx.prototype,"titleSize",void 0);_.d([_.F(),_.B("design:type",Number)],Wx.prototype,"videoMetadataColor",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],Wx.prototype,"miniMode",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.B("design:type",Boolean)],Wx.prototype,"isFirstFeedItem",void 0);_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Wx.prototype,"roundedContainer",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.B("design:type",Boolean)],Wx.prototype,"hasOverflowButton",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wx.prototype,"dataChanged",null);_.d([_.mi("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wx.prototype,"elementsPerRowChanged",null);_.d([_.SL({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],Wx);
_.u(Wx,"ytd-brand-video-singleton-renderer",function(){if(YvY!==void 0)return YvY;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return YvY=e},{mode:_.bA("kevlar_poly_si_batch_j070")?1:2});var bhy;var Xoy=_.f(function(e){var z=e.data;return _.x(_.Zf,{data:function(){return z().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(z().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var C=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":C=88;break a;default:C=88}return C},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return z().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"sn"),k5L=_.f(function(e){var z=e.metadataRow;
var C=e.delimiter;return _.x(_.ui,{each:function(){return z().textParts||[]},
keyBy:"INDEX"},function(w,K){return _.x(_.Qw,null,_.x(_.U2,{text:w,noWrap:!0,userInput:!0}),_.x(JAC,{delimiter:C,max:function(){return z().textParts.length},
index:K}))})},"tn"),JAC=_.f(function(e){var z=e.delimiter;
var C=e.max;var w=e.index;return _.x(_.l,{cond:function(){return(z==null?void 0:z())&&C()-1>w()},
then:function(){return _.x("span",null,z)}})},"un"),qvT=_.f(function(e){var z=e.data;
e={};return _.x("yt-profile-page-header-information-view-model",{class:_.qT("profilePageHeaderInformationViewModelHost",(e.profilePageHeaderInformationViewModelMobile=!1,e))},_.x(_.l,{cond:function(){return z().onTap},
then:function(){return _.x(_.fE,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.SQ(z().onTap)}},_.x(_.PF,{data:function(){return z().thumbnail}},{profilePageHeaderThumbnailViewModel:Xoy}))},
else:function(){return _.x("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.x(_.PF,{data:function(){return z().thumbnail}},{profilePageHeaderThumbnailViewModel:Xoy}))}}),_.x("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.x(_.l,{cond:function(){return z().onTap},
then:function(){return _.x(_.PF,{data:function(){return z().title}},{profilePageHeaderTitleViewModel:function(C){var w=C.data;
return _.x(_.fE,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.SQ(w().onTap)}},_.x(_.U2,{text:function(){return w().title}}))}})},
else:function(){return _.x(_.PF,{data:function(){return z().title}},{profilePageHeaderTitleViewModel:function(C){var w=C.data;
return _.x(_.U2,{text:function(){return w().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.x(_.PF,{data:function(){return z().metadata}},{profilePageHeaderMetadataViewModel:function(C){var w=C.data;
return _.x(_.l,{cond:function(){return w().metadataRows},
then:function(K){return _.x("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.x(_.ui,{each:K,keyBy:"INDEX"},function(G,X){return _.x(_.Qw,null,_.x(k5L,{metadataRow:G,delimiter:" \u2022 "}),_.x(JAC,{delimiter:" \u2022 ",max:function(){return K().length},
index:X}))}))}})}})))},"vn");
qvT.idomCompat=!0;_.KU(qvT,"yt-profile-page-header-information-view-model",{props:{data:_.vh}});var Px=function(){return _.V.apply(this,arguments)||this};
_.U(Px,_.V);Px.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Px.prototype,"data",void 0);_.d([_.SL({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Px);
_.u(Px,"ytd-effect-pivot-header-view-model",function(){if(bhy!==void 0)return bhy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return bhy=
e},{mode:1});var xGL;var Rc=function(){return _.V.apply(this,arguments)||this};
_.U(Rc,_.V);Rc.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Rc.prototype,"data",void 0);_.d([_.SL({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Rc);
_.u(Rc,"ytd-source-pivot-header-renderer",function(){if(xGL!==void 0)return xGL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return xGL=e},{mode:1});_.KU(_.C6E,"yt-card-view-model",{props:{data:_.vh,className:_.vh,isSelected:_.vh}});var uKt=_.tda.talkToRecsStateSelector;_.KU(_.f(function(e){var z=function(){return _.r(e.data().flowRoot,Nea)};
_.sg(function(){var C=z(),w=function(){},K=function(){};
if(C){var G,X,J,q=((J=_.r((G=z())==null?void 0:(X=G.steps)==null?void 0:X[0],_.o2))==null?void 0:J.stepId)||"";V82(C,q);w=Stj(C);K=dXj(C)}_.BC(function(){var T=z();T&&_.eB().dispatch(_.Rx("flowStateEntity",T.flowStateEntityKey));w();w=function(){};
K();K=function(){};
_.ZL(_.Zi$())})});
return _.x("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.x(_.cp,{contentId:function(){return e.data().contentId}},function(){return _.x("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.x(_.l,{cond:z,
then:function(C){return _.x(_.v5a,{data:C})}}))}))},"wn"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.vh}});_.KU(_.f(function(){return _.x("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.x("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.x("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.x(_.xF$,null)),_.x(_.ogL,{data:{rows:1},isExploreHub:!0}))},"xn"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.KU(_.f(function(e){var z=e.data;var C=e.standardUnitMinWidth;e=_.b((0,_.XsY)(z));var w=e.next().value,K=e.next().value,G=function(){var J,q=(J=w())==null?void 0:J.contents;return q==null||q.length===0},X=function(){K(Object.assign({},w(),{contents:[]}))};
return _.x("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.ej(_.aO({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var J=_.r(z().chipsShelf,sMa);if(J!=null&&J!=null&&J.autoselectChipOnVisible){var q,T,Q=_.r(J==null?void 0:(q=J.contents)==null?void 0:q[(T=J.autoselectedChipIndex)!=null?T:0],_.Uf);Q&&Q.tapCommand&&_.NF(Q.tapCommand)}}}))},_.x(_.cp,{contentId:function(){return z().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.x("div",null,_.x("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.x(_.PF,{data:function(){return z().header}},{sectionHeaderViewModel:function(J){return _.x(_.C5,{data:J.data,
disableHorizontalPadding:!0})}})),_.x("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.x(_.PF,{data:function(){return z().chipsShelf}},{chipsShelfViewModel:function(J){return _.x(_.w_,{data:J.data,
callback:X,selectionBehavior:1})}})),_.x("div",null,_.x(_.l,{cond:G,
then:function(){return _.x("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.x(_.ogL,{data:{rows:1},isExploreHub:!0}))}}),_.x(_.PF,{data:function(){var J;
return(J=w())==null?void 0:J.contents}},{richShelfRenderer:function(J){return _.x(_.n4g,{data:J.data,
isInnerShelf:!0,standardUnitMinWidth:C})}})))}))},"yn"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.vh,
standardUnitMinWidth:_.vh}});var Bx=function(){return _.V.apply(this,arguments)||this};
_.U(Bx,_.V);
Bx.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Bx.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.d([_.W(_.QX),_.B("design:type",Object)],Bx.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],Bx.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Bx.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Number)],Bx.prototype,"standardUnitMinWidth",void 0);_.d([_.SL({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Bx);
_.u(Bx,"ytd-rich-section-renderer",function(){if(o2L!==void 0)return o2L;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return o2L=e},{mode:_.bA("kevlar_poly_si_batch_j029")?
1:2});_.KU(_.Fm5,"yt-profile-identity-info-view-model",{props:{data:_.vh,hideDivider:_.vh,isChannelInfoCard:_.vh}});_.KU(_.QmW,"yt-page-header-view-model",{props:{data:_.vh,noPadding:_.vh,enableBanner:_.vh,cinematicContainerTopbarOffset:_.vh,allowCinematicContainerOverflow:_.vh,displayAsSidebar:_.vh,displayAsPanel:_.vh,alwaysUseMediumTextDescription:_.vh}});var T9C=_.f(function(){return _.x("div",{class:_.qT("ytdGhostGridViewModelGhostCard")},_.x("div",{class:_.qT("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.x("div",{class:_.qT("ytdGhostGridViewModelDetails")},_.x("div",{class:_.qT("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.x("div",{class:_.qT("ytdGhostGridViewModelDetailsTextShell")},_.x("div",{class:_.qT("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.x("div",{class:_.qT("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"An");_.KU(_.f(function(e){var z=e.data;var C=_.rG(_.Fn);return _.x("ytd-ghost-grid-view-model",{class:_.qT("ytdGhostGridViewModelHost")},_.x(_.ui,{each:function(){var w=Array,K;var G=((K=z().numRows)!=null?K:0)*C();return w(G)},
keyBy:"INDEX"},function(){return _.x(T9C,null)}))},"zn"),"ytd-ghost-grid-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=function(){var K;return(K=z().numColumns)!=null?K:2},w=function(){return C()>1?3:2};
e={};return _.x("ytd-rich-grid-group",{class:_.qT("ytdRichGridGroupHost",(e.ytdRichGridGroupHostFirstColumn=function(){return z().colIndex===0},e)),
style:_.QC({"--ytd-rich-grid-group-num-columns":C,"--ytd-rich-grid-items-per-group":w})},_.x("div",{class:"ytdRichGridGroupContents"},_.x(_.PF,{data:function(){var K;return(K=z().contents)==null?void 0:K.slice(0,w())}},{richItemRenderer:function(K){return _.x(_.mra,{data:K.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Bn"),"ytd-rich-grid-group",{props:{data:_.vh}});var to=function(){var e=_.V.apply(this,arguments)||this;e.resizeOnObserverInit=!1;e.isInlinePreviewDisabled=_.M("web_disable_inline_preview");e.disableStickyFilterBar=!1;e.transparentBackgroundChipsBar=!1;e.hideChipsBar=!1;e.isWatchDefaultLayout=!0;e.continuationShowButton=!1;e.rowReducedHorizontalMargin=!1;e.useCompactList=!1;e.manualDownloadsPresent=!1;e.smartDownloadsPresent=!1;e.isOnline=!1;e.shouldRenderDownloadsBanner=!1;e.shouldRenderDownloadsBannerUpsell=!1;e.hasOptedIntoSmartDownloads=!1;
e.elementsPerRow=4;e.typographyBump=!1;e.slimItemsPerRow=1;e.pageLoadingFromNavigation=!1;e.resizeObserver=null;e.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"};e.rendererToTagNameMap=new Map(Object.entries(e.contentMapping()).map(function(z){var C=
_.b(z);z=C.next().value;C=C.next().value;return[z,C.component]}));
e.insertedContent=new Map;return e};
_.U(to,_.V);_.Y=to.prototype;_.Y.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var e=_.b(_.XC(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),z=e.next();!z.done;z=e.next())z.value.useCompactList=this.useCompactList};
_.Y.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var e=_.b(_.XC(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),z=e.next();!z.done;z=e.next())z=z.value,z.sizing=this.sizing,z.typographyBump=this.typographyBump};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.Y.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},reloadUiContent:{id:"reload-content",mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.Y.attached=function(){document.addEventListener("yt-page-type-changed",_.lE(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.lE(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$22610_throttledOnResize=new _.lw(this.resizeObserved,_.n0("rich_grid_resize_delay_ms",50),this)};
_.Y.detached=function(){var e;(e=this.resizeObserver)==null||e.disconnect();document.removeEventListener("yt-page-type-changed",_.lE(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.lE(this,this.onFeedCustomizationScrollUp))};
_.Y.insertRichSection=function(e){var z=e.richItemTargetId;e=e.richSectionRendererToInsert;z&&e&&(this.insertedContent.set(z,{content:e,timestamp:Date.now()}),this.reflowContent())};
_.Y.computeHasReloadUiContent=function(){return!!this.reloadUiContent};
_.Y.computeIsInlinePreviewEnabled=function(e,z,C){return _.M("web_disable_inline_preview")?!1:!C&&_.d$5({miniplayerIsActive:e,miniplayerPlaybackState:z})};
_.Y.computeSizing=function(){var e=_.dWs(this.data);if(e||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return e?this.useCompactList?"COMPACT":e:this.miniMode?"COMPACT":"STANDARD"};
_.Y.updateItemMinAndMaxWidth=function(){var e=_.n0("rich_grid_max_item_width",500);e>0&&_.T8(this.hostElement,{"--ytd-rich-grid-item-max-width":e+"px"});var z;e=this.getRichItemMinWidth((z=this.hostElement)==null?void 0:z.clientWidth);e>0&&_.T8(this.hostElement,{"--ytd-rich-grid-item-min-width":e+"px"})};
_.Y.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.Y.resizeObserved=function(){_.zj(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.Y.onPageChange=function(){var e=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.zj(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.c5.addJob(function(){e.pageLoadingFromNavigation=!1;e.setMasthead();e.maybeSetBigYoodle();e.forceRefreshAndLog();e.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.Y.dataChanged=function(){var e=this;_.zj(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.T0(this,function(){e.updateRichItemGridPositions();e.contentsElement&&_.T8(e.hostElement,{"--ytd-rich-grid-content-offset-top":e.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.Y.initResizeObserver=function(){var e=this;if(window.ResizeObserver){var z;(z=this.resizeObserver)==null||z.disconnect();var C=!1;this.resizeObserver=new ResizeObserver(function(){if(C){var w;(w=e.resizeObserver)==null||w.disconnect();var K;(K=e.JSC$22610_throttledOnResize)==null||K.fire();requestAnimationFrame(function(){var X;(X=e.JSC$22610_throttledOnResize)==null||X.fire();e.initResizeObserver()})}else if(C=!0,e.resizeOnObserverInit){var G;
(G=e.JSC$22610_throttledOnResize)==null||G.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.Y.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.zj(this.hostElement,"ytd-rich-item-index-update-action")};
_.Y.updateElementsPerRow=function(){_.zj(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.Y.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.Y.onRichShelfRendererCollapse=function(e){if(this.shownItems){var z=e.detail;e=this.shownItems.findIndex(function(w){var K,G;return((G=_.r(w==null?void 0:(K=w.richSectionRenderer)==null?void 0:K.content,_.V66))==null?void 0:G.trackingParams)===z});
var C=e+1;e<0||C>=this.contentsElement.children.length||!this.shownItems[C].richItemRenderer||this.contentsElement.children[C].scrollIntoView({behavior:"smooth",block:"start"})}};
_.Y.onSoftReloadPage=function(){this.scrollUpToTop()};
_.Y.handleRerenderDownloadsData=function(){_.M("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.Y.handlePlaylistRemoveVideosAction=function(e){var z;if(((z=_.r(e,_.pms))==null?0:z.setVideoIds)&&this.data&&this.data.contents){e=_.r(e,_.pms).setVideoIds;for(z=this.data.contents.length-1;z>=0;){var C=_.r(this.data.contents[z],_.KH);(C=C&&_.r(C.content,_.QQ))&&C.setVideoId&&e.includes(C.setVideoId)&&this.splice("data.contents",z,1);z--}this.updateIndices()}};
_.Y.updateIndices=function(){if(this.data&&this.data.contents)for(var e=0;e<this.data.contents.length;e++)this.set("data.contents."+e+".richItemRenderer.index",_.AO(String(e+1)))};
_.Y.hasTopRowInlinePlayableVideoWithEndorsement=function(e){var z;return!((z=e.slice(0,this.getItemsPerRow()))==null||!z.some(function(C){var w;C=_.r(C==null?void 0:(w=C.richItemRenderer)==null?void 0:w.content,_.M4);var K;return(C==null?void 0:C.inlinePlaybackEndpoint)&&(C==null?void 0:(K=C.thumbnailOverlays)==null?void 0:K.some(function(G){return G.thumbnailOverlayEndorsementRenderer}))}))};
_.Y.refreshGridLayoutNew=function(e,z,C,w){var K=w.postsPerRow;var G=w.slimItemsPerRow;var X=w.gameCardsPerRow;w=w.miniGameCardsPerRow;var J;if((J=this.data)==null||!J.contents||!this.containerWidth)return!1;var q;if((q=this.data.responsiveContainerConfiguration)==null?0:q.responsiveSize){var T=_.nn8(this.data.responsiveContainerConfiguration,this.containerWidth,2),Q;J=_.gE(Object.assign({},T,{standardUnitMinWidth:(Q=this.data)==null?void 0:Q.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&T.isCompactList)}else J=_.gE({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(T=this.data)==null?void 0:T.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=J.typographyBump;Q=!1;if(e||this.elementsPerRow!==J.numItems||this.postsPerRow!==K||this.slimItemsPerRow!==G||this.gameCardsPerRow!==
X||this.miniGameCardsPerRow!==w||this.gutter!==J.gutter)Q=this.elementsPerRow!==J.numItems,this.elementsPerRow=J.numItems,this.postsPerRow=K,this.slimItemsPerRow=G,this.gameCardsPerRow=X,this.miniGameCardsPerRow=w,this.gutter=J.gutter,this.itemWidth=J.itemWidth,this.reflowContent(z),_.T8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":J.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(C);this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:J.maxContainerWidth}));return Q};
_.Y.refreshGridLayout=function(e,z){var C,w=(C=this.hostElement)==null?void 0:C.clientWidth;this.containerWidth=this.adjustRichGridWidth(w,!0);var K;if((K=this.data)==null||!K.contents||!this.containerWidth)return e&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(e=!0,this.pendingForceReflow=!1);C=this.getRichItemMinWidth(w);var G=this.isShortsPanel?146:194,X=this.getMiniGameCardMinWidth(),J=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.n0("rich_grid_default_max_items_per_row",
6);w=C=this.calcElementsPerRow(C,J);(K=C<=3&&this.miniModeAllowed())&&(C=this.calcElementsPerRow(240,4));var q=this.calcMaxSlimElementsPerRow(C,J,this.isDefaultGrid);J=this.calcElementsPerRow(G,q);var T=this.calcElementsPerRow(this.isCompactGrid?G:154,q);G=this.calcElementsPerRow(this.isCompactGrid?G:X,q);X=!1;if(this.sizing)return this.refreshGridLayoutNew(e,z,K,{postsPerRow:w,slimItemsPerRow:J,gameCardsPerRow:T,miniGameCardsPerRow:G});if(e||this.elementsPerRow!==C||this.postsPerRow!==w||this.slimItemsPerRow!==
J||this.gameCardsPerRow!==T||this.miniGameCardsPerRow!==G)X=this.elementsPerRow!==C,this.elementsPerRow=C,this.postsPerRow=w,this.slimItemsPerRow=J,this.gameCardsPerRow=T,this.miniGameCardsPerRow=G,this.reflowContent(z),this.updateElementsPerRow(),_.T8(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)&&_.T8(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(K);_.zj(this.hostElement,"yt-rich-grid-layout-refreshed");return X};
_.Y.getRichItemMinWidth=function(e){var z=_.n0("rich_grid_min_item_width",310);if(!_.M("kevlar_disable_min_width_override")){var C,w;z=(w=(C=this.data)==null?void 0:C.minItemWidth)!=null?w:z}return z+_.EFg(e)};
_.Y.calcMaxSlimElementsPerRow=function(e,z,C){return(C===void 0?0:C)?e===1?2:e%2===0?e/2*3:e+2:z*2};
_.Y.adjustRichGridWidth=function(e,z){var C=_.M("disable_rich_grid_guide_compensation");if(!this.isWatch&&!C){C=_.lh().resolve(_.$B(_.rn));var w=C==null?void 0:C.guideElement;if(!(!C||C.getData()||w!=null&&w.opened||C.getMiniGuideVisible()))if(C.canFitPersistentGuide(e)&&C.getGuideExpandsAutomatically()){var K,G,X=Number((K=window.getComputedStyle(this.hostElement))==null?void 0:(G=K.getPropertyValue("--app-drawer-width"))==null?void 0:G.replace("px",""));e-=X||0}else if(C.canFitMiniGuide(e)){var J;
K=Number((X=window.getComputedStyle(this.hostElement))==null?void 0:(J=X.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:J.replace("px",""));e-=K||0}}e>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(e-=z?32:48));return e};
_.Y.calcElementsPerRow=function(e,z){var C=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),w=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((C+w)/(e+w))||1,z)};
_.Y.reflowContent=function(e){var z=this;if(!this.isReflowing){this.isReflowing=!0;var C,w,K=!!((C=this.data)==null?0:(w=C.contents)==null?0:w.some(function(J){return _.r(J,_.GO)}));
C=this.getItemsPerRow();var G;w=(G=this.data)==null?void 0:G.reflowOptions;e&&(_.hg("rgr_s"),_.T0(this,function(){_.hg("rgr_nrf")}));
e={};(G=_.XC(this.hostElement).querySelector("#contents"))&&(e={contentElement:G,rendererToTagNameMap:this.rendererToTagNameMap});G=(G=this.data.contents)?G.slice():[];K=OJa(G,C,K,w,this.getRichGridStyle(),e,this.insertedContent);var X=K.orderedContent;if(K=K.pinnedContentNotShownTargetIds)for(K=_.b(K),C=K.next();!C.done;C=K.next())this.insertedContent.delete(C.value);K=function(){z.shownItems=X;z.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(X),_.T0(this,K)):K()}};
_.Y.getFirstRowItems=function(e){for(var z=[],C=0;C<e.length;C++){var w=void 0,K=void 0,G=void 0,X=void 0,J=void 0,q=void 0;if(((w=e[C])==null?void 0:(K=w.richItemRenderer)==null?void 0:K.rowIndex)===0||((G=e[C])==null?void 0:(X=G.richGroupRenderer)==null?void 0:X.rowIndex)===0||((J=e[C])==null?void 0:(q=J.richSectionRenderer)==null?void 0:q.rowIndex)===0)z.push(e[C]);else break}return z};
_.Y.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.Y.resetInsertedContentIfNeeded=function(){(_.M("web_explore_hub_on_hover")||_.M("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.Y.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.Y.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.Y.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.Y.terminateVideoPreview=function(){_.zj(this.hostElement,"yt-terminate-video-preview-action")};
_.Y.updateRichItemGridPositions=function(){var e={gridData:{gridColumnCount:this.elementsPerRow}},z;((z=this.data)==null?0:z.trackingParams)&&(z=_.Pr())&&_.yu(z,_.v9(this.data.trackingParams),e);_.zj(this.hostElement,"ytd-rich-item-index-update-action")};
_.Y.miniModeAllowed=function(){return this.isChannelPage};
_.Y.getMiniGameCardMinWidth=function(){return 154};
_.Y.updateMiniMode=function(e){this.miniMode=this.miniModeAllowed()&&e;this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_RICH_GRID_MINI_MODE",payload:e}))};
_.Y.isCurrentPage=function(){return location.pathname===this.pagePath};
_.Y.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var e=_.lh().resolve(_.wE).getCurrentPage();e&&e.setScrollTop(0)}};
_.Y.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.Y.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.Y.maybeSetBigYoodle=function(){var e,z=(e=this.data)==null?void 0:e.bigYoodle;this.bigYoodleData!==z&&(this.bigYoodleData=z)};
_.Y.setMasthead=function(){var e;((e=this.data)==null?0:e.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.Y.getRichGridStyle=function(){var e,z;return(z=(e=this.data)==null?void 0:e.style)!=null?z:"RICH_GRID_STYLE_UNKNOWN"};
_.Y.onIsShortsGridChange=function(){var e=this.ytdReduxBehavior,z=e.dispatch,C=this.getRichGridStyle();z.call(e,_.Yz({type:"SET_RICH_GRID_STYLE",payload:C}))};
_.Y.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.lB.Object.defineProperties(to.prototype,{reloadUiContent:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.ytContinuationHandlerBehavior)==null?void 0:e.reloadUiContent}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var e=_.lh().resolve(_.wE).getCurrentPage(),z,C,w;return(((z=this.data)==null?void 0:z.targetId)==="browse-feedFEsfv_audio_pivot"||_.M("web_enable_channel_pivot_panel")&&((C=this.data)==null?void 0:C.targetId)==="browse-feedFEsfv_channel_pivot"||_.M("web_enable_effect_pivot_panel")&&((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_effect_pivot")&&(e==null?void 0:e.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.M("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 e;return!((e=this.data)==null?0:e.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var e;return((e=_.lh().resolve(_.wE).getCurrentPage())==null?void 0:e.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var e;return((e=_.lh().resolve(_.wE).getCurrentPage())==null?void 0:e.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?0:e.enableContentSpecificAspectRatio)||((z=this.data)==null?0:(C=z.responsiveContainerConfiguration)==null?0:C.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.n0("web_continuation_handler_margin",0):0}}});
to.prototype.onIsShortsGridChange=to.prototype.onIsShortsGridChange;to.prototype.onReloadContinuationFinish=to.prototype.onReloadContinuationFinish;to.prototype.reflowContent=to.prototype.reflowContent;to.prototype.handleRerenderDownloadsData=to.prototype.handleRerenderDownloadsData;to.prototype.onRichShelfRendererCollapse=to.prototype.onRichShelfRendererCollapse;to.prototype.onRequestElementsPerRow=to.prototype.onRequestElementsPerRow;to.prototype.contentLengthChanged=to.prototype.contentLengthChanged;
to.prototype.dataChanged=to.prototype.dataChanged;to.prototype.onSizingChange=to.prototype.onSizingChange;to.prototype.onUseCompactListChange=to.prototype.onUseCompactListChange;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.oY),_.B("design:type",Object)],to.prototype,"ironResizableBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],to.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],to.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],to.prototype,"componentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],to.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],to.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],to.prototype,"miniMode",void 0);_.d([_.F({value:[]}),_.B("design:type",Array)],to.prototype,"shownItems",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],to.prototype,"isReflowing",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],to.prototype,"isFilteredFeed",void 0);_.d([_.F({selector:_.Vfk}),_.B("design:type",Boolean)],to.prototype,"guideIsExpanded",void 0);
_.d([_.F({selectorArgs:["entitySelectorType"],selector:function(e,z){if(_.M("kevlar_modern_downloads_page")&&z&&z!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(z){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":z=e.entities;var C=_.L4(z),w=_.hO(z),K=_.eJ4(e),G=_.pho(e),X=_.zJg(e),J=_.vqo(z),q=_.Uk(C),T=_.Ok(z);return _.xo7(C,w,J,_.RO8(z),K,G,q,T,X,_.wko(e),_.SJ(e));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return e=_.L4(e.entities),_.$oo(e);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return e=
_.rYL(e.entities),_.lXL(e);default:_.AX(new _.uh("Error: entitySelectorType defined but not matched in selector.",e,z))}}}),
_.B("design:type",Object)],to.prototype,"entityDrivenRichGridData",void 0);_.d([_.F(),_.B("design:type",Object)],to.prototype,"resizeOnObserverInit",void 0);_.d([_.F(),_.B("design:type",Object)],to.prototype,"bigYoodleData",void 0);_.d([_.F(),_.B("design:type",Object)],to.prototype,"mastheadData",void 0);_.d([_.F(),_.B("design:type",Boolean)],to.prototype,"isInlinePreviewDisabled",void 0);_.d([_.F(),_.B("design:type",Object)],to.prototype,"disableStickyFilterBar",void 0);
_.d([_.F(),_.B("design:type",Object)],to.prototype,"transparentBackgroundChipsBar",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],to.prototype,"hideChipsBar",void 0);_.d([_.F(),_.B("design:type",Object)],to.prototype,"isWatchDefaultLayout",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],to.prototype,"continuationShowButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],to.prototype,"rowReducedHorizontalMargin",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],to.prototype,"useCompactList",void 0);_.d([_.F({selector:function(e){return _.hO(e.entities).length>0}}),
_.B("design:type",Object)],to.prototype,"manualDownloadsPresent",void 0);_.d([_.F({selector:function(e){return _.L4(e.entities).length>0}}),
_.B("design:type",Object)],to.prototype,"smartDownloadsPresent",void 0);_.d([_.F({selector:_.SJ}),_.B("design:type",Object)],to.prototype,"isOnline",void 0);_.d([_.F({selector:_.pho}),_.B("design:type",Object)],to.prototype,"shouldRenderDownloadsBanner",void 0);_.d([_.F({selector:_.wko}),_.B("design:type",Object)],to.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.d([_.F({selector:_.eJ4}),_.B("design:type",Object)],to.prototype,"hasOptedIntoSmartDownloads",void 0);
_.d([_.mi("useCompactList"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"onUseCompactListChange",null);_.d([_.mi("sizing","typographyBump"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"onSizingChange",null);_.d([_.F({selector:_.iEm}),_.B("design:type",Number)],to.prototype,"miniplayerPlaybackState",void 0);_.d([_.F({selector:_.V2}),_.B("design:type",Boolean)],to.prototype,"miniplayerIsActive",void 0);
_.d([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],to.prototype,"isInlinePreviewEnabled",void 0);_.d([_.F({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.B("design:type",String)],to.prototype,"sizing",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],to.prototype,"elementsPerRow",void 0);
_.d([_.F(),_.B("design:type",Object)],to.prototype,"typographyBump",void 0);_.d([_.F(),_.B("design:type",Number)],to.prototype,"itemWidth",void 0);_.d([_.nP("#header"),_.B("design:type",HTMLElement)],to.prototype,"headerElement",void 0);_.d([_.nP("#contents"),_.B("design:type",HTMLElement)],to.prototype,"contentsElement",void 0);_.d([_.P("reloadUiContent"),_.B("design:type",Object),_.B("design:paramtypes",[])],to.prototype,"reloadUiContent",null);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"dataChanged",null);_.d([_.Ux("data.contents.length"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"contentLengthChanged",null);_.d([_.Qi("yt-request-elements-per-row"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"onRequestElementsPerRow",null);
_.d([_.Qi("yt-rich-shelf-renderer-collapse"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],to.prototype,"onRichShelfRendererCollapse",null);_.d([_.Ux("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"handleRerenderDownloadsData",null);
_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],to.prototype,"entitySelectorType",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isSub",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isWatch",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data.targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isShortsPanel",null);_.d([_.F({reflectToAttribute:!0}),_.P("isWatch"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"reducedTopMargin",null);_.d([_.F({reflectToAttribute:!0}),_.P("data","isWatch","isWatchDefaultLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"noTopMargin",null);
_.d([_.F({reflectToAttribute:!0}),_.P("isInlinePreviewEnabled","shownItems"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"topRowEndorsement",null);_.d([_.P("data.header"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"hideHeader",null);_.d([_.Qi("yt-rich-grid-reflow"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],to.prototype,"reflowContent",null);
_.d([_.Qi("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"onReloadContinuationFinish",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isSlimGrid",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isShortsGrid",null);
_.d([_.P("data","isSlimGrid","isShortsGrid"),_.F(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"noRichItemGutterMargins",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isShortsGridSlim",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isCompactGrid",null);
_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"isDefaultGrid",null);_.d([_.P("data.targetId"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"hideChipsBarOnWatch",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],to.prototype,"onIsShortsGridChange",null);
_.d([_.P("data.enableContentSpecificAspectRatio"),_.F(),_.B("design:type",Boolean),_.B("design:paramtypes",[])],to.prototype,"force16By9ThumbnailAspectRatio",null);_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],to.prototype,"continuationTriggerOffset",null);_.d([_.SL({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],to);
_.u(to,"ytd-rich-grid-renderer",function(){if(zva!==void 0)return zva;var e=document.createElement("template");_.v(e,'\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="contents" hidden="[[computeHasReloadUiContent(reloadUiContent)]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zva=e},{mode:2});var $Gy=_.f(function(e){return _.x("yt-feedback-prompt-view-model",{class:_.qT("ytFeedbackPromptViewModelHost",e.className)},_.x(_.l,{cond:function(){return e.data().text},
then:function(z){return _.x(_.U2,{text:z,className:"ytFeedbackPromptViewModelPrompt"})}}),_.x(_.PF,{data:function(){return e.data().likeButton}},{likeButtonViewModel:function(z){return _.x(_.nT,{data:z.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.x(_.PF,{data:function(){return e.data().dislikeButton}},{dislikeButtonViewModel:_.aw}))},"Cn");var lH2=_.f(function(e){var z=_.b((0,_.qNa)(e.data)).next().value,C=function(){var w,K;return(K=(w=z().contents)==null?void 0:w.length)!=null?K:0};
return _.x("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return e.data().targetId||""},
"aria-busy":function(){var w,K;return(K=(w=z().contents)==null?void 0:w.some(function(G){return!!G.chatLoadingViewModel}))!=null?K:!1}},_.x(_.PF,{data:function(){return e.data().header}},{chipBarViewModel:_.Tvo,
sectionHeaderViewModel:_.C5}),_.x(_.PF,{data:function(){return z().contents}},{accordionViewModel:_.pwh,
alertBannerViewModel:_.Mph,chatLoadingViewModel:function(w,K){return _.x(_.MQq,{data:w.data,containerHeight:e.containerHeight,isLastItem:function(){return K()===C()-1}})},
chatUserTurnViewModel:function(w,K){return _.x(_.npZ,{data:w.data,containerHeight:e.containerHeight,isLastItem:function(){return K()===C()-1}})},
feedbackPromptViewModel:$Gy,gridShelfViewModel:function(w){return _.x(_.HX,{data:w.data,shouldUseOwnContainerSize:!0,marginSettings:e.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.tpX,linearLayoutViewModel:_.WX,lockupViewModel:function(w){return _.x(_.eI,{data:w.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:e.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.C5,videoOverviewViewModel:_.boY,youChatItemViewModel:function(w,K){return _.x(_.afv,{data:w.data,pending:!1,containerHeight:e.containerHeight,isLastItem:function(){return K()===C()-1}})}}))},"Dn");_.KU(_.f(function(e){var z=_.b((0,_.qNa)(e.data)).next().value,C=_.b(_.P0()),w=C.next().value;C=C.next().value;var K=_.ej(C);C=_.b(_.II(void 0,void 0,"fqbUqd"));var G=C.next().value,X=C.next().value,J=function(){var q;return _.r((q=e.data().sectionListLayoutConfiguration)==null?void 0:q.layoutConfiguration,Be2)};
_.sg(function(){var q,T=(q=K.value)==null?void 0:q.clientWidth;q=J()?_.Cy1(T,J()):void 0;X(q)});
C={};return _.x("yt-section-list-renderer",{class:_.qT("ytSectionListRendererHost",e.className,(C.ytSectionListRendererHostOverscrollContain=function(){var q;return(q=e.overscrollContain)==null?void 0:q.call(e)},C)),
el:K,"data-target-id":function(){return e.data().targetId||""}},_.x(_.PF,{data:function(){return z().contents}},{itemSectionRenderer:function(q){return _.x(lH2,{data:q.data,
containerLayoutConfig:G,marginSettings:e.marginSettings,containerHeight:function(){return w.height()}})}}))},"En"),"yt-section-list-renderer",{props:{data:_.vh,
className:_.z9,marginSettings:_.vh,overscrollContain:_.vh}});var Q4w;var mGL;var aHg=function(){return _.V.apply(this,arguments)||this};
_.U(aHg,_.V);_.d([_.F(),_.B("design:type",Object)],aHg.prototype,"data",void 0);_.d([_.fP({is:"yt-alert-renderer",disableElementRegistration:!0})],aHg);
_.u(aHg,"yt-alert-renderer",function(){if(mGL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Q4w===void 0&&(Q4w=document.createElement("template"));var w=Q4w;C.call(z,w.content.cloneNode(!0),e.content.firstChild);mGL=e}e=mGL;return e},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ZW5;ZW5=function(e,z,C,w){C||(e?w&&(w.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||w.WINDOW_SIZE_CHANGED&&(z.width!==window.innerWidth||z.height!==window.innerHeight)||w.SAFARI_ABORTED_BY_NEW_TRANSITION&&e instanceof DOMException&&e.name==="AbortError"&&e.message.includes("Old view transition aborted by new view transition"))||_.yG(e):_.yG(Error("xj")))};
_.pJL=function(e,z){z=z===void 0?{}:z;var C,w,K,G,X,J,q,T,Q,m,a,n,H;return _.k(function(I){switch(I.nextAddress){case 1:C=z;w=C.shouldWrap===void 0?!0:C.shouldWrap;K=C.skipTransitionTimeoutMs===void 0?300:C.skipTransitionTimeoutMs;G=C.beforeTransition;X=C.afterTransition;if(!w||!document.startViewTransition||document.visibilityState==="hidden")return I.return(e());J={width:window.innerWidth,height:window.innerHeight};q=!1;(T=G)==null||T();_.Iv(I,2);Q=document.startViewTransition(e);m=setTimeout(function(){Q.skipTransition();
q=!0},K);
return I.yield(Q.ready,4);case 4:return clearTimeout(m),I.yield(Q.finished,5);case 5:clearTimeout(m);(a=X)==null||a();_.Yj(I,0);break;case 2:n=_.O_(I),(H=X)==null||H(),ZW5(n,J,q,z.ignoredErrors),_.E_(I)}})};
_.ed5=function(e,z){var C=_.Qvk(z);C!=="javascript:"&&C!=="data:"&&e.setAttribute("href",z)};
_.yR=function(){for(var e=Array(36),z=0,C,w=0;w<36;w++)w==8||w==13||w==18||w==23?e[w]="-":w==14?e[w]="4":(z<=2&&(z=33554432+Math.random()*16777216|0),C=z&15,z>>=4,e[w]=_.ZVk[w==19?C&3|8:C]);return e.join("")};
_.zdE=function(e,z,C){e.persistentPanelContainerMap.set(C,z)};/*

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 CEW=_.Kb(['<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>']),
wI3=_.pIL(CEW);wI3.setAttribute("style","display: none;");document.head.appendChild(wI3.content);_.cz=_.Mx7(function(e){var z=_.Lh("DIV");e&&(z.className=e);z.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";e=_.Lh("DIV");_.jMs(e,"200px","200px");z.appendChild(e);document.body.appendChild(z);e=z.offsetWidth-z.clientWidth;_.hA(z);return e});var Kio;var o$E;var Ax=function(){var e=_.V.apply(this,arguments)||this;e.icon=null;return e};
_.U(Ax,_.V);Ax.prototype.dismiss=function(){_.pi(this.hostElement,"yt-live-chat-error-message-dismiss")};
Ax.prototype.computeIcon=function(e){return e&&e.iconType?"yt-icons:"+e.iconType.toLowerCase():"yt-icons:close"};
_.d([_.F(),_.B("design:type",Object)],Ax.prototype,"data",void 0);_.d([_.F({computed:"computeIcon(data.icon)"}),_.B("design:type",Object)],Ax.prototype,"icon",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Ax);
_.u(Ax,"yt-live-chat-error-message-renderer",function(){if(o$E===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Kio===void 0&&(Kio=document.createElement("template"));var w=Kio;C.call(z,w.content.cloneNode(!0),e.content.firstChild);o$E=e}e=o$E;return e},{mode:0});
}catch(e){_._DumpException(e)}
try{
var SRY,u0Y,dEa,DEl,ssT,gjy,jsL,yfY,cfT,Af2,ZpY,p5C,eUg,hM,zU2,Ckl,wna,K1g,oOl,GEa,YOl,bCg,XnT,kEt,qOg,xUL,Tmw,$Uj,lzy,QCg,mUC,azT,nOj,MuT,rXT,HCa,UUy,vOa,PkT,L1y,OCj,EO2,F1C,Vuy,Izy,W1t,ueT,dUw,DUt,iCw,NmY,sC2,BmL,tuy,fzT;SRY=function(e,z){return _.xz(e.entities,"timedMarkersListSyncEntity",z)};
u0Y=function(e,z){return _.xz(e.entities,"liveReactionsDataEntity",z)};
dEa=function(e,z){e=_.xz(e.entities,"booleanEntity",z);return!(!e||!e.value)};
DEl=function(e,z){var C=_.Pr();C&&e&&_.id(C,_.v9(e),z)};
_.ipw=function(e){return e.watch.isWatchActive};
_.Nay=function(e){return!_.b_m(e)};
_.Lf=function(e){return e.watch.watchScrollTop};
ssT=function(e){return e.watch.isLiveChatCollapsed};
_.Bag=function(){_.M("web_watch_log_theater_mode")&&_.hp7("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.txL=function(e,z,C){if(!e.includes("START_TIME_PLACEHOLDER")||!e.includes("END_TIME_PLACEHOLDER"))return e;var w=new Date(0),K=new Date(0);w.setUTCMilliseconds(z);K.setUTCMilliseconds(C);return e.replace("START_TIME_PLACEHOLDER",_.jJ(w,7)).replace("END_TIME_PLACEHOLDER",_.jJ(K,7))};
gjy=function(e){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:e}}]}}}};
jsL=function(e,z,C){var w=_.M("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;z=Object.assign({},{text:z,hasGradientBackground:C},w&&{itemTargetId:w});w=_.M("web_enable_chat_autoscroll_to_user_turn")&&w?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:w,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:z}],insertByPositionInSection:{sectionTargetId:e,
position:"INSERTION_POSITION_LAST"}}}]},w?{scrollConfig:w}:{})}}};
yfY=function(e,z){return _.xz(e.entities,"booleanEntity",z)};
cfT=function(){return function(e){_.ZL(_.Rx("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:e}))}};
Af2=function(e){switch(e){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}};
ZpY=function(e,z,C){var w=_.SQ(C);e&&z&&w&&e.getPlayerPromise().then(function(K){_.VKL(w)&&_.ju();(new _.lc(K)).executeCommand(w,z);_.M("continue_playback_on_desktop_companion_click")||K.pauseVideo()})};
p5C=function(e){var z=_.ox(),C;if(C=_.pd("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;C=(w=C())==null?void 0:w.layoutId}else C=null;ZpY(z,C,e)};
eUg=function(e){var z=_.ox(),C;if(C=_.pd("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;C=(w=C())==null?void 0:w.layoutId}else C=null;ZpY(z,C,e)};
hM=function(e,z){var C=e<0?"-":"";e=Math.abs(e);var w=Math.floor(e/3600),K=Math.floor(e)%3600,G=Math.floor(K/60);K=Math.floor(K)%60;var X="";(z===void 0?0:z)&&(X="."+Math.round((e-Math.floor(e))*10));return w>0?C+w+":"+(G<10?"0"+G:""+G)+":"+(K<10?"0"+K:""+K)+X:C+G+":"+(K<10?"0"+K:""+K)+X};
zU2=function(e){var z=e.match(/[^0-9:\.]/g);if(z&&z.length>0)return null;e=e.split(":");if(e.length===0||e.length>3)return null;z=1;for(var C=0;e.length>0;){var w=e.pop();if(w===void 0)break;var K=Number(w);if(w===""||isNaN(K))return null;C+=K*z;z*=60}return C};
Ckl=function(e,z,C,w){e=Math.max(C,e);z=Math.min(z,w-C);e+z>w?(C=w,e=C-z):C=e+z;return{start:e,end:C}};
wna=function(e,z,C,w,K,G){e<C?e=C:e+K>w&&(e=w-K);z>w&&(z=w);z=Math.min(e+G,Math.max(e+K,z));return{start:e,end:z}};
K1g=function(e,z,C,w,K,G){z>w?z=w:z-K<C&&(z=C+K);e<C&&(e=C);e=Math.min(z-K,Math.max(z-G,e));return{start:e,end:z}};
oOl=function(e){return _.M("web_transcript_cue_id_killswitch")?String(e):"ytd-transcript-renderer_"+e};
GEa=function(e){return _.M("web_transcript_cue_id_killswitch")?!0:e.startsWith("ytd-transcript-renderer")};
YOl=function(e){var z=_.ox(),C;if(C=_.pd("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;C=(w=C())==null?void 0:w.layoutId}else C=null;ZpY(z,C,e)};
bCg=function(e){e.style.height="auto";e.style.height=Math.min(e.scrollHeight||20,80)+"px"};
XnT=function(){var e;return String(Math.floor(((e=_.n7())==null?void 0:e.getCurrentTime())||0)*1E3)};
kEt=function(e){if(e.onWelcomeCommand)return _.SQ(e.onWelcomeCommand);e=_.r(e.inputComposerViewModel,JX2);if(e==null?0:e.welcomeFeatureContinuation)return _.opE(e.welcomeFeatureContinuation)};
qOg=function(e){var z=_.ox(),C;C=(C=_.pd("yt.www.ads.eventcache.getLastCompanionData"))?(C=C())&&C.layoutId:null;ZpY(z,C,e)};
xUL=function(e){var z=_.ox(),C;C=(C=_.pd("yt.www.ads.eventcache.getLastCompanionData"))?(C=C())&&C.layoutId:null;ZpY(z,C,e)};
Tmw=function(e){if(e.simpleText)return[{text:e.simpleText}];var z;return(z=e.runs)!=null?z:[]};
$Uj=function(e){var z=e.startEndTimeTemplate,C=e.startTimeUtcMillis;e=e.endTimeUtcMillis;if(z&&C&&e)return _.AO(_.txL(_.Zd(z),Number(C),Number(e)))};
lzy=function(e,z){var C,w,K=e==null?void 0:(C=e.viewCount)==null?void 0:(w=C.videoViewCountRenderer)==null?void 0:w.shortViewCount;if(!z&&K)return K;var G,X;return e==null?void 0:(G=e.viewCount)==null?void 0:(X=G.videoViewCountRenderer)==null?void 0:X.viewCount};
QCg=function(e,z){var C=e==null?void 0:e.relativeDateText;return!z&&C?[C,!0]:[e==null?void 0:e.dateText,!1]};
mUC=function(e,z,C,w,K){w=w===void 0?"":w;K=K===void 0?!1:K;var G=lzy(e,z),X=_.b(QCg(e,z)),J=X.next().value;X=X.next().value;z=z?e==null?void 0:e.sponsorsOnlyFirstTimeLongText:e==null?void 0:e.sponsorsOnlyFirstTimeShortText;var q=[];C&&G&&q.push(G);!C&&X||!J||q.push(J);e=[K?e==null?void 0:e.subtitle:void 0].concat(_.s_(q),[z,e==null?void 0:e.stationName,e==null?void 0:e.rating,e?$Uj(e):void 0,e==null?void 0:e.upNextProgramText,e==null?void 0:e.superTitleLink]).filter(function(T){return!!T});
C={runs:[]};for(K=0;K<e.length;K++)C.runs.push.apply(C.runs,_.s_(Tmw(e[K]))),K<e.length-1&&C.runs.push({text:" "+w+" "});return C};
azT=function(e){return e.filter(function(z){return!_.r(z,_.yg)})};
nOj=function(e){var z,C,w,K;if(e=e==null?void 0:(z=e.contents)==null?void 0:(C=z.twoColumnWatchNextResults)==null?void 0:(w=C.results)==null?void 0:(K=w.results)==null?void 0:K.contents){var G,X;return(X=(G=e.find(function(J){return!!J.videoPrimaryInfoRenderer}))==null?void 0:G.videoPrimaryInfoRenderer)==null?void 0:X.updatedMetadataEndpoint}};
MuT=function(e,z){var C;return(C=e.sourceConfigs)==null?void 0:C.find(function(w){return w.videoId===z})};
rXT=function(e){return e==="End of video"||e==="End of playlist"};
HCa=function(e){var z,C,w,K;return(z=e.getWatchNextResponse())==null?void 0:(C=z.contents)==null?void 0:(w=C.twoColumnWatchNextResults)==null?void 0:(K=w.playlist)==null?void 0:K.playlist};
UUy=function(e){var z,C,w,K,G,X;return(z=HCa(e))==null?void 0:(C=z.playlistButtons)==null?void 0:(w=C.menuRenderer)==null?void 0:(K=w.topLevelButtons)==null?void 0:(G=K[0])==null?void 0:(X=G.playlistLoopButtonRenderer)==null?void 0:X.playlistLoopStateEntityKey};
vOa=function(e){var z=_.lh().resolve(_.Us),C;return(z=(C=_.r(z.getAutoplayEndpoint(),_.N$))==null?void 0:C.playlistId)&&z===e};
PkT=function(e,z,C,w,K){function G(){_.c5.cancelJob(O1);var X=Izy(z,C/e.getPlaybackRate()),J=X.hours,q=X.minutes;X=(X.seconds*1E3||6E4)/e.getPlaybackRate();e.setVideoTimeLeft(W1t(J,q));w&&e.getPlayerState()!==0&&e.setSleepTimerTimeLeft(W1t(J,q,!0));(J>0||q>0)&&!K&&(O1=_.Oz(_.c5,G,X))}
_.c5.cancelJob(O1);O1=_.Oz(_.c5,G)};
L1y=function(e,z,C){function w(){_.c5.cancelJob(RUt);var K=Izy(z,C),G=K.hours;K=K.minutes;var X=6E4/e.getPlaybackRate();if(G>0||K>0)e.setSleepTimerTimeLeft(W1t(G,K,!0)),RUt=_.Oz(_.c5,w,X)}
_.c5.cancelJob(RUt);RUt=_.Oz(_.c5,w)};
OCj=function(e,z){var C=e.getVolume()/(z/500),w=function(K){_.c5.cancelJob(hUg);var G=Math.floor(K-C);e.setVolume(G,!1);G>0&&(hUg=_.Oz(_.c5,function(){w(G)},500))};
_.c5.cancelJob(hUg);hUg=_.Oz(_.c5,function(){w(e.getVolume())})};
EO2=function(e,z){_.c5.cancelJob(hUg);z&&e.syncVolume()};
F1C=function(){var e={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.kk("SLEEP_TIMER_DISRUPTED")}}}}};_.lh().resolve(_.ms).resolveCommand(e)};
Vuy=function(e){return(e.getDuration()-e.getProgressState().current)*1E3};
Izy=function(e,z){e=e+z-(0,_.as)();if(e<=0)return{hours:0,minutes:0,seconds:0};var C=new fzT(0,0,0,0,0,0,e);e=C.getHours();z=C.getMinutes();C=C.getSeconds();C!==0&&z++;z!==0&&z%60===0&&(e++,z=0);return{hours:e,minutes:z,seconds:C}};
W1t=function(e,z,C){return e>0&&z>0?C?_.kk("TIME_LEFT_HOURS_MINUTES",{hours:e.toString(),minutes:z.toString()}):_.kk("TIME_HOURS_MINUTES",{hours:e.toString(),minutes:z.toString()}):e>0?C?_.qL("TIME_LEFT_HOURS",e):_.qL("TIME_HOURS",e):C?_.kk("TIME_LEFT_MINUTES",{minutes:z.toString()}):_.kk("TIME_MINUTES",{minutes:z.toString()})};
ueT=function(e,z){if(e.timelyActions)return e.timelyActions.find(function(C){var w;return((w=_.r(C,SOa))==null?void 0:w.cueRangeId)===z})};
dUw=function(e){var z=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.LR(e);e.keyMap_.forEach(function(C,w){_.Sh(z,w)||this.remove(w)},e)};
DUt=function(e,z){e.reloadContinuationItemsCommandMatcher=z};
iCw=function(e,z){var C;return _.k(function(w){return w.nextAddress==1?z&&e.lastWelcomeContinuationSent!==z?_.yXW(e)?w.yield(e.panelController.isVisible("PAai_companion"),3):w.jumpTo(2):w.return(!1):w.nextAddress==2||(C=w.yieldResult,C)?w.return(!0):w.return(!1)})};
NmY=function(e){var z,C,w,K,G;return _.k(function(X){if(X.nextAddress==1){if(!e.welcomeOptions)return X.return();z=e.welcomeOptions;C=z.command;w=z.setPending;if(C){var J;var q=(J=_.r(C,_.dG))==null?void 0:J.token}else q=void 0;K=q;return X.yield(iCw(e,K),2)}if(!X.yieldResult)return X.return();e.lastWelcomeContinuationSent=K;(G=w)==null||G(!0);q="youchat-"+Date.now();J=(J=_.n7())?String(Math.floor(J.getCurrentTime())*1E3):void 0;_.uA(C,{form:{formData:_.q0({clientMessageId:q,playerOffsetMs:J,pageContext:_.bJo(e,
e.pageSubtype)})}});_.E_(X)})};
sC2=function(e,z){_.k(function(C){e.welcomeOptions=z;return C.yield(NmY(e),0)})};
_.E1=function(e,z){e.insertBefore(z,e.childNodes[0]||null)};
BmL=function(e){if(e>=48&&e<=57||e>=96&&e<=106||e>=65&&e<=90||_.MI&&e==0)return!0;switch(e){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 _.nb;default:return!1}};
tuy=function(e){if(e.altKey&&!e.ctrlKey||e.metaKey||e.keyCode>=112&&e.keyCode<=123)return!1;if(BmL(e.keyCode))return!0;switch(e.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!_.nb;default:return e.keyCode<166||e.keyCode>183}};
fzT=function(e,z,C,w,K,G,X){this.date=typeof e==="number"?new Date(e,z||0,C||1,w||0,K||0,G||0,X||0):new Date(e&&e.getTime?e.getTime():_.xd())};
_.Tk(fzT,_.A1);_.Y=fzT.prototype;_.Y.getHours=function(){return this.date.getHours()};
_.Y.getMinutes=function(){return this.date.getMinutes()};
_.Y.getSeconds=function(){return this.date.getSeconds()};
_.Y.getMilliseconds=function(){return this.date.getMilliseconds()};
_.Y.getUTCDay=function(){return this.date.getUTCDay()};
_.Y.getUTCHours=function(){return this.date.getUTCHours()};
_.Y.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.Y.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.Y.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.Y.setHours=function(e){this.date.setHours(e)};
_.Y.setMinutes=function(e){this.date.setMinutes(e)};
_.Y.setSeconds=function(e){this.date.setSeconds(e)};
_.Y.setMilliseconds=function(e){this.date.setMilliseconds(e)};
_.Y.setUTCHours=function(e){this.date.setUTCHours(e)};
_.Y.setUTCMinutes=function(e){this.date.setUTCMinutes(e)};
_.Y.setUTCSeconds=function(e){this.date.setUTCSeconds(e)};
_.Y.setUTCMilliseconds=function(e){this.date.setUTCMilliseconds(e)};
_.Y.add=function(e){_.A1.prototype.add.call(this,e);e.hours&&this.setUTCHours(this.date.getUTCHours()+e.hours);e.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+e.minutes);e.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+e.seconds)};
_.Y.JSC$11496_toIsoString=function(e){var z=_.A1.prototype.JSC$11496_toIsoString.call(this,e);return e?z+"T"+_.rJ(this.getHours(),2)+":"+_.rJ(this.getMinutes(),2)+":"+_.rJ(this.getSeconds(),2):z+"T"+_.rJ(this.getHours(),2)+_.rJ(this.getMinutes(),2)+_.rJ(this.getSeconds(),2)};
_.Y.equals=function(e){return this.getTime()==e.getTime()};
_.Y.toString=function(){return this.JSC$11496_toIsoString()};
_.Y.clone=function(){var e=new fzT(this.date);e.firstDayOfWeek_=this.firstDayOfWeek_;e.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return e};
_.gOT=function(e){return _.Yz({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:e}})};var jC2=new _.nN("imageTileRenderer");var yXj=new _.nN("promotedSparklesWebRenderer");var cXT=new _.nN("adGridCardCollectionViewModel");var AXl=new _.nN("carouselTitleViewModel");var ZCC=new _.nN("ctaCarouselItemViewModel");var pnl=new _.nN("textFieldViewModel");_.e6g=new _.nN("engagementPanelHeaderShowNavigationButtonCommand");var z6C=new _.nN("hideEngagementPanelScrimAction");var Cpj=new _.nN("setActivePanelItemAction");var wQw=new _.nN("showEngagementPanelScrimAction");var K$L=new _.nN("updateEngagementPanelAction");var oIl=new _.nN("updateSearchInVideoResultsAction");var G42=new _.nN("transcriptCueGroupRenderer");var Ycy=new _.nN("transcriptCueRenderer");var bZC=new _.nN("transcriptFooterRenderer");var XQl=new _.nN("engagementPanelAdSubtitleRenderer");var JHw=new _.nN("videoDescriptionFantasySectionViewModel");var k4a=new _.nN("deleteClipEngagementPanelCommand");var qcg=new _.nN("loopCommand");var xDL=new _.nN("changeCreatorEndscreenVisibilityCommand");var TKC=new _.nN("liveChatCallForQuestionsRenderer");var $Dy=new _.nN("updateTimedMarkersSyncObserverCommand");var SOa=new _.nN("timelyActionViewModel");var lVC=new _.nN("timelyActionsOverlayViewModel");var QOl=new _.nN("repeatChapterCommand");var mD2=new _.nN("watchPlayerOverflowMenuCommand");var aVj=new _.nN("compositeVideoOverlayRenderer");var nIg=new _.nN("sortFilterSubMenuRenderer");var MYj=new _.nN("switchListItemViewModel");var JX2=new _.nN("inputComposerViewModel");var rHt=new _.nN("transcriptEditSegmentCommand");var HZ2=new _.nN("transcriptUpdateSegmentTextCommand");var UDa=new _.nN("transcriptSearchBoxRenderer");var vIy=new _.nN("transcriptSegmentListRenderer");var IVC=new _.nN("transcriptSegmentRenderer");_.W$L=new _.nN("updateDateTextAction");var Ppy=new _.nN("updateTitleAction");var R6l=new _.nN("updateViewershipAction");var L$a=new _.nN("relatedChipCommand");var h6l=new _.nN("carouselLockupRenderer");var Fi=new _.nN("expandableVideoDescriptionBodyRenderer");var OZL=new _.nN("videoDescriptionHeaderRenderer");var EIC=new _.nN("videoDescriptionYouchatSectionViewModel");_.VU=_.n0("kevlar_watch_page_horizontal_margin",24);_.F$l=_.n0("kevlar_watch_page_columns_top_padding",24);_.VYl=426+_.VU*2;_.ff=_.n0("kevlar_watch_two_column_width_threshold",1E3);_.fVj=_.VU*2;_.ScY=_.n0("kevlar_watch_secondary_width",402);_.uLa=_.n0("kevlar_watch_max_player_width",1280);_.dDy=_.n0("kevlar_watch_flexy_metadata_height",136);_.DDL=_.fVj+310+_.VU;_.iZl=_.fVj+360+_.VU;var NKl={PAUSE_CHAT:18};var sOj;var BKT;var SF=function(){return _.V.apply(this,arguments)||this};
_.U(SF,_.V);SF.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
SF.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var e=_.r(this.data.button,_.H7);e&&(e.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.lB.Object.defineProperties(SF,{template:{configurable:!0,enumerable:!0,get:function(){if(BKT===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;sOj===void 0&&(sOj=document.createElement("template"));var w=sOj;C.call(z,w.content.cloneNode(!0),e.content.firstChild);BKT=e}e=BKT;return e}}});
_.d([_.W(_.$q),_.B("design:type",Object)],SF.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],SF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({selectorArgs:["data.enabledEntityKey"],selector:dEa,observer:"onEnabledChange"}),_.B("design:type",Boolean)],SF.prototype,"enabled",void 0);_.d([_.F(),_.B("design:type",Object)],SF.prototype,"data",void 0);_.d([_.fP({is:"yt-disableable-button-view-model",noInjection:!0})],SF);var tYt;var gIa;var jOt=["transVert01","transVert02","transVert03"],yHw="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),uP=function(){var e=_.V.apply(this,arguments)||this;e.emojiManager=_.vk;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};e.reactionBuckets=[];e.noEmojiIdentifier="NO_EMOJI";return e};
_.U(uP,_.V);_.Y=uP.prototype;_.Y.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.Y.desktopFountainEmojiSizePxChanged=function(){_.T8(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.Y.createUserReactionAnimation=function(e){this.createEmojiAnimation(e,!0)};
_.Y.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var e;((e=this.data)==null?0:e.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Rx("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.s_(this.emojiContainer.children)).forEach(function(z){z.remove()})};
_.Y.detached=function(){this.cleanupFountain()};
_.Y.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var e;this.reactionBuckets=_.de.unsafeClone((e=this.emojiFountainData)==null?void 0:e.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.Y.processEmojiBucket=function(e){var z=this;if(this.reactionBuckets&&!(e>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var C=this.reactionBuckets[e];this.generateEmojiAnimations(C);if(e<this.reactionBuckets.length-1){var w;if(C==null?0:(w=C.duration)==null?0:w.seconds)this.emojiBucketTimerId=setTimeout(function(){z.processEmojiBucket(e+1)},Number(C.duration.seconds)*1E3)}}};
_.Y.generateEmojiAnimations=function(e){var z=this,C=this.getRandomEmojiIdFromBucketWithOverride(e);if(C&&C!==this.noEmojiIdentifier){var w=0;e.targetEps?(w=this.linearInterpolateBounded(1,20,100,12,e.emojiSizeIndex||0),this.createEmojiAnimation(C,!1,e.emojiAnimationMs,w),w=this.getEmojiDelayMsFromTargetEps(e.targetEps)):(this.createEmojiAnimation(C),w=this.getEmojiDelayMsFromDistribution(e.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){z.generateEmojiAnimations(e)},w)}};
_.Y.getRandomEmojiIdFromBucketWithOverride=function(e){if(!(e&&e.reactionsData&&e.reactionsData.length&&e.totalReactions))return this.noEmojiIdentifier;for(var z=e.totalReactions,C=1,w=_.b(e.reactionsData),K=w.next();!K.done;K=w.next())K=K.value,(K.reactionWeightOverride||K.reactionWeightOverride===0)&&K.reactionCount&&(z-=K.reactionCount,C-=K.reactionWeightOverride);w=!0;C<0&&(w=!1,z=e.totalReactions,C=1);if(w&&C>0&&z===0)if(C===1){K=0;for(var G=_.b(e.reactionsData),X=G.next();!X.done;X=G.next())X=
X.value,X.reactionCount&&X.reactionCount>0&&K++;K=1/K;G=_.b(e.reactionsData);for(X=G.next();!X.done;X=G.next())X.value.reactionWeightOverride=K}else for(K=1/(1-C),G=_.b(e.reactionsData),X=G.next();!X.done;X=G.next())X=X.value,X.reactionWeightOverride&&(X.reactionWeightOverride*=K);K=Math.random();G=0;X=_.b(e.reactionsData);for(var J=X.next();!J.done;J=X.next())if(J=J.value,J.reactionCount&&(G=(J.reactionWeightOverride||J.reactionWeightOverride===0)&&w?G+J.reactionWeightOverride:G+C*J.reactionCount/
z,G>K&&(J.reactionCount--,e.totalReactions--,J=this.reactionItemToEmojiString(J),J!==this.noEmojiIdentifier)))return J;return this.noEmojiIdentifier};
_.Y.reactionItemToEmojiString=function(e){if(e.unicodeEmojiId)return e.unicodeEmojiId;if(e.emoteId)return e.emoteId;if(e.videoReactionType)switch(e.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.Y.createEmojiAnimation=function(e,z,C,w){z=z===void 0?!1:z;this.lastEmojiRequestedForTesting=e;var K=e.startsWith("yt-icons:"),G=_.Hk(this.emojiManager,e);if(G||K){var X=document.createElement("emoji");X.classList.add("yt-emoji-fountain-view-model");X.classList.add(jOt[Math.floor(Math.random()*jOt.length)]);var J=document.createElement("div");J.classList.add("yt-emoji-fountain-view-model");J.classList.add("horizontal-container");J.classList.add(yHw[Math.floor(Math.random()*yHw.length)]);z?(C=document.createElement("div"),
C.classList.add("user-reaction-bubble"),C.classList.add("yt-emoji-fountain-view-model"),J.appendChild(C)):(C&&(X.style.animationDuration=C+"ms",J.style.animationDuration=C+"ms"),w&&(X.style.width=w+"px",X.style.height=w+"px"));K?(K=document.createElement("yt-icon"),K.polymerController.icon=e,w&&(K.style.width=w+"px",K.style.height=w+"px"),e=K):e=this.emojiManager.createEmoji(G,!1);e.classList.add("yt-emoji-fountain-view-model");J.appendChild(e);X.appendChild(J);this.emojiContainer.appendChild(X);
X.addEventListener("animationend",function(){X.remove()});
var q,T;if((q=this.data)==null?0:(T=q.loggingDirectives)==null?0:T.trackingParams)z=z?_.mT(183501):_.mT(183500),DEl(this.data.loggingDirectives.trackingParams,z),_.aYg(z);setTimeout(function(){X&&X.remove()},2E3)}};
_.Y.getEmojiDelayMsFromDistribution=function(e){return Math.random()*(e||1)*1E3};
_.Y.getEmojiDelayMsFromTargetEps=function(e){return Math.random()*2*(1/e)*1E3};
_.Y.linearInterpolateBounded=function(e,z,C,w,K){K=Math.min(Math.max(K,e),C);return(z*(C-K)+w*(K-e))/(C-e)};
uP.prototype.onEmojiFountainDataEntityUpdate=uP.prototype.onEmojiFountainDataEntityUpdate;uP.prototype.desktopFountainEmojiSizePxChanged=uP.prototype.desktopFountainEmojiSizePxChanged;uP.prototype.isActiveChanged=uP.prototype.isActiveChanged;_.d([_.F(),_.B("design:type",_.ry)],uP.prototype,"emojiManager",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],uP.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],uP.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uP.prototype,"data",void 0);_.d([_.F({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(e,z){return _.xz(e.entities,"emojiFountainDataEntity",z)}}),
_.B("design:type",Object)],uP.prototype,"emojiFountainData",void 0);_.d([_.F(),_.B("design:type",Boolean)],uP.prototype,"isActive",void 0);_.d([_.mi("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uP.prototype,"isActiveChanged",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],uP.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",String)],uP.prototype,"lastEmojiRequestedForTesting",void 0);
_.d([_.F({value:function(){return _.n0("desktop_fountain_emoji_size_px",20)}}),
_.B("design:type",Number)],uP.prototype,"desktopFountainEmojiSizePx",void 0);_.d([_.mi("desktopFountainEmojiSizePx"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uP.prototype,"desktopFountainEmojiSizePxChanged",null);_.d([_.nP("#emoji-container"),_.B("design:type",HTMLElement)],uP.prototype,"emojiContainer",void 0);
_.d([_.mi("emojiFountainData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uP.prototype,"onEmojiFountainDataEntityUpdate",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],uP);
_.u(uP,"yt-emoji-fountain-view-model",function(){if(gIa===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;tYt===void 0&&(tYt=document.createElement("template"));var w=tYt;C.call(z,w.content.cloneNode(!0),e.content.firstChild);gIa=e}e=gIa;return e},{mode:0});var cHL;var AH2;var dx=function(){return _.V.apply(this,arguments)||this};
_.U(dx,_.V);dx.prototype.onChoiceChanged=function(){this.data&&_.T8(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
dx.prototype.onChoiceChanged=dx.prototype.onChoiceChanged;_.d([_.F(),_.B("design:type",Object)],dx.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dx.prototype,"onChoiceChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],dx);
_.u(dx,"yt-live-chat-banner-poll-choice",function(){if(AH2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;cHL===void 0&&(cHL=document.createElement("template"));var w=cHL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);AH2=e}e=AH2;return e},{mode:0});var ZZw;var pQL;var DF=function(){var e=_.V.apply(this,arguments)||this;e.modern=_.M("web_button_rework_with_live");e.small=!1;return e};
_.U(DF,_.V);DF.prototype.computeIsSmall=function(){var e;return((e=this.buttonOverrides)==null?void 0:e.size)==="S"};
DF.prototype.computeId=function(){return this.data&&this.data.targetId};
_.d([_.W(_.lz.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],DF.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",String)],DF.prototype,"id",void 0);_.d([_.F(),_.B("design:type",Object)],DF.prototype,"buttonOverrides",void 0);_.d([_.F(),_.B("design:type",Object)],DF.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],DF.prototype,"modern",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.B("design:type",Object)],DF.prototype,"small",void 0);_.d([_.SL({disableElementRegistration:!0,is:"yt-live-chat-button"})],DF);
_.u(DF,"yt-live-chat-button",function(){if(pQL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;ZZw===void 0&&(ZZw=document.createElement("template"));var w=ZZw;C.call(z,w.content.cloneNode(!0),e.content.firstChild);pQL=e}e=pQL;return e},{mode:0});var e$l;var z$2;var iP=function(){var e=_.V.apply(this,arguments)||this;e.inCollapsedBanner=!1;e.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};e.questionButtonOverrides={style:"mono",type:"filled"};return e};
_.U(iP,_.V);_.Y=iP.prototype;_.Y.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]]"}}}}}};
_.Y.onContextMenuButtonClick=function(e){this.ytLiveChatItemBehavior.showContextMenu(e)};
_.Y.onYtRendererstamperFinished=function(){this.menuButton=_.XC(this.hostElement).querySelector("#menu-button")};
_.Y.dataChanged=function(){var e,z;if((z=_.r((e=this.data)==null?void 0:e.overflowMenuButton,_.a2))==null?0:z.command)this.data.contextMenuEndpoint=_.r(this.data.overflowMenuButton,_.a2).command};
_.Y.onButtonClick=function(){var e,z=_.r((e=this.data)==null?void 0:e.askQuestionButton,_.a2);if(z){if(z.trackingParams&&(e=_.v9(z.trackingParams))){var C=_.Pr();C&&_.gQ(C,e)}_.pi(this.hostElement,"innertube-command",z.command)}};
iP.prototype.onYtRendererstamperFinished=iP.prototype.onYtRendererstamperFinished;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],iP.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],iP.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.F({observer:"dataChanged"}),_.B("design:type",Object)],iP.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],iP.prototype,"inCollapsedBanner",void 0);_.d([_.F(),_.B("design:type",Object)],iP.prototype,"buttonOverrides",void 0);_.d([_.F(),_.B("design:type",Object)],iP.prototype,"questionButtonOverrides",void 0);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iP.prototype,"onYtRendererstamperFinished",null);
_.d([_.SL({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],iP);
_.u(iP,"yt-live-chat-call-for-questions-renderer",function(){if(z$2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;e$l===void 0&&(e$l=document.createElement("template"));var w=e$l;C.call(z,w.content.cloneNode(!0),e.content.firstChild);z$2=e}e=z$2;return e},{mode:0});var CB2={};CB2.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 e=this;window.requestAnimationFrame(function(){e.restoreFocusNode_||(e.restoreFocusNode_=document.activeElement);var z=_.cLY(e.hostElement);z.length&&z[z.length-1].focus()})},
isAttachedChanged_:function(e,z){e?this.focusChild_():z&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(e){this.hidden||_.cJ(e).indexOf(this.hostElement)!==-1||(e.stopPropagation(),this.focusChild_())}};var wAg;var KAg;var Nr=function(){return _.V.apply(this,arguments)||this};
_.U(Nr,_.V);Nr.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Nr.prototype.onClick=function(e){e.target!==this.confirmButton&&e.target!==this.cancelButton&&(this.hidden=!0)};
_.d([_.nP("#confirm_button"),_.B("design:type",Object)],Nr.prototype,"confirmButton",void 0);_.d([_.nP("#cancel_button"),_.B("design:type",Object)],Nr.prototype,"cancelButton",void 0);_.d([_.F(),_.B("design:type",oWa)],Nr.prototype,"data",void 0);_.d([_.F({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Nr.prototype,"hidden",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(CB2.YtLiveChatDialogBehavior),_.B("design:type",Object)],Nr.prototype,"ytLiveChatDialogBehavior",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Nr);
var oWa=_.u(Nr,"yt-live-chat-dialog-renderer",function(){if(KAg===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;wAg===void 0&&(wAg=document.createElement("template"));var w=wAg;C.call(z,w.content.cloneNode(!0),e.content.firstChild);KAg=e}e=KAg;return e},{mode:0});var G0L;var Y8a,bGT=function(){if(Y8a!==void 0)return Y8a;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;G0L===void 0&&(G0L=document.createElement("template"));var w=G0L;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return Y8a=e};var XAj;var J2C;var s1=function(){var e=_.V.apply(this,arguments)||this;e.tooltip=null;e.data=null;e.id="";e.active=!1;e.icon="";e.disabled=!1;e.showTooltip=!1;e.useToggledActiveState=!0;e.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return e};
_.U(s1,_.V);_.Y=s1.prototype;
_.Y.dataChanged=function(){var e;((e=this.data)==null?0:e.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,_.x$)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var z;if((z=this.data)==null?0:z.disabled)this.disabled=!0};
_.Y.computeId=function(e){return e};
_.Y.computeIcon=function(e,z){if(!e)return"";if(this.useToggledActiveState)return"yt-icons:"+e.toLowerCase();var C,w;return z&&((C=this.data)==null?0:(w=C.toggledIcon)==null?0:w.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+e.toLowerCase()};
_.Y.logPDGEntryPoint=function(){_.K9L(_.TU("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")};
_.Y.immediatelyShowTooltip=function(){var e=_.XC(this.hostElement).querySelector("#tooltip");e.animationDelay=0;e.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};e.show()};
_.Y.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.Y.onClick=function(e){var z;((z=this.data)==null?0:z.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(),e.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.pi(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.Y.computeShowTooltip=function(e,z){return!!(e&&e.tooltip&&z)};
_.Y.maybeUpdateTooltipText=function(){var e=this,z;if((z=this.data)==null?0:z.tooltip){var C=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.x$)(e.tooltip).textContent=C},250)}};
_.Y.handleLiveChatActions=function(e){var z=this;e.length&&(this.id!=="creator"&&this.id!=="product-picker"||e.forEach(function(C){(C=z.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",C))&&C.durationSec===C.fullDurationSec&&z.startBubble(z.colorFromDecimal(C.startBackgroundColor))}))};
_.Y.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.Y.startBubble=function(e){_.T8(this.hostElement,{"--yt-live-chat-monetization-button-glow":e});this.hostElement.setAttribute("bubble","")};
_.Y.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.Y.colorFromDecimal=function(e){typeof e==="string"&&(e=Number(e));return"rgba("+[e>>16&255,e>>8&255,e&255,(e>>24&255)/255].join()+")"};
s1.prototype.onAnimationEnd=s1.prototype.onAnimationEnd;s1.prototype.disabledChanged=s1.prototype.disabledChanged;s1.prototype.dataChanged=s1.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],s1.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.lz.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],s1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],s1.prototype,"data",void 0);_.d([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],s1.prototype,"id",void 0);_.d([_.F({notify:!0,reflectToAttribute:!0}),_.B("design:type",Object)],s1.prototype,"active",void 0);
_.d([_.F({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.B("design:type",Object)],s1.prototype,"icon",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],s1.prototype,"disabled",void 0);_.d([_.F({computed:"computeShowTooltip(data, disabled)"}),_.B("design:type",Object)],s1.prototype,"showTooltip",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],s1.prototype,"useToggledActiveState",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s1.prototype,"dataChanged",null);_.d([_.mi("disabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s1.prototype,"disabledChanged",null);_.d([_.Qi("animationend"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],s1.prototype,"onAnimationEnd",null);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],s1);
_.u(s1,"yt-live-chat-icon-toggle-button-renderer",function(){if(J2C===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;XAj===void 0&&(XAj=document.createElement("template"));var w=XAj;C.call(z,w.content.cloneNode(!0),e.content.firstChild);J2C=e}e=J2C;return e},{mode:0});var k0L;var q8T;var Bg=function(){return _.V.apply(this,arguments)||this};
_.U(Bg,_.V);Bg.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d([_.F(),_.B("design:type",Object)],Bg.prototype,"data",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.SL({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Bg);
_.u(Bg,"yt-live-chat-message-input-prompt-header-renderer",function(){if(q8T===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;k0L===void 0&&(k0L=document.createElement("template"));var w=k0L;C.call(z,w.content.cloneNode(!0),e.content.firstChild);q8T=e}e=q8T;return e},{mode:0});var xxL;var TMT;var $x2;var lOj;var Qky;var mxL;var aOy=function(){return _.V.apply(this,arguments)||this};
_.U(aOy,_.V);_.d([_.F(),_.B("design:type",Object)],aOy.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],aOy);
_.u(aOy,"yt-live-chat-message-subtext-renderer",function(){if(mxL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Qky===void 0&&(Qky=document.createElement("template"));var w=Qky;C.call(z,w.content.cloneNode(!0),e.content.firstChild);mxL=e}e=mxL;return e},{mode:0});var tM=function(){var e=_.V.apply(this,arguments)||this;e.subtextOnBottom=!1;e.buttonOverrides={style:"mono",type:"tonal"};return e};
_.U(tM,_.V);tM.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tM.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],tM.prototype,"subtextOnBottom",void 0);_.d([_.F(),_.B("design:type",Object)],tM.prototype,"buttonOverrides",void 0);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],tM);
_.u(tM,"yt-live-chat-message-renderer",function(){if(lOj===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;$x2===void 0&&($x2=document.createElement("template"));var w=$x2;C.call(z,w.content.cloneNode(!0),e.content.firstChild);lOj=e}e=lOj;return e},{mode:0});var nWa;var MCy;var gx=function(){var e=_.V.apply(this,arguments)||this;e.isRemovable=!1;e.hasPrefilledText=!1;e.isInputDirty=!1;e.overCharacterLimit=!1;e.underCharacterLimit=!1;e.showErrorMessage=!1;return e};
_.U(gx,_.V);_.Y=gx.prototype;_.Y.computeId=function(){return this.data.id};
_.Y.computeInputData=function(){return this.data.inputData};
_.Y.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.Y.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.Y.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.Y.getLiveChatRichMessageInput=function(){return _.XC(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.Y.clearInput=function(){_.XC(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.Y.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.Y.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.Y.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.Y.handleTextInputCharCountChanged=function(e){e=e.detail&&e.detail.characterCount;e!==void 0&&(this.characterCount=e,e!==0&&(this.isInputDirty=!0))};
_.Y.onInputFocusOut=function(){this.isInputDirty=!0};
_.Y.onClickCloseButton=function(){_.pi(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
gx.prototype.handleTextInputCharCountChanged=gx.prototype.handleTextInputCharCountChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gx.prototype,"data",void 0);_.d([_.F({computed:"computeId(data.id)"}),_.B("design:type",String)],gx.prototype,"id",void 0);_.d([_.F({computed:"computeInputData(data.inputData)"}),_.B("design:type",Object)],gx.prototype,"inputData",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.B("design:type",Object)],gx.prototype,"isRemovable",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.B("design:type",Object)],gx.prototype,"hasPrefilledText",void 0);_.d([_.F({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.B("design:type",Number)],gx.prototype,"charactersRemaining",void 0);
_.d([_.F(),_.B("design:type",Number)],gx.prototype,"characterCount",void 0);_.d([_.F(),_.B("design:type",Object)],gx.prototype,"isInputDirty",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.B("design:type",Object)],gx.prototype,"overCharacterLimit",void 0);_.d([_.F({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.B("design:type",Object)],gx.prototype,"underCharacterLimit",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.B("design:type",Object)],gx.prototype,"showErrorMessage",void 0);_.d([_.Qi("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gx.prototype,"handleTextInputCharCountChanged",null);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],gx);
_.u(gx,"yt-live-chat-poll-editor-input",function(){if(MCy===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;nWa===void 0&&(nWa=document.createElement("template"));var w=nWa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);MCy=e}e=MCy;return e},{mode:0});var r2l;var HGY;var UxL={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},jF=function(){var e=_.V.apply(this,arguments)||this;e.modern=_.M("web_button_rework_with_live");e.closeButtonOverrides={iconPosition:"icon-only"};e.startButtonOverrides={style:"mono",type:"filled"};e.addOptionButtonOverrides={style:"mono",type:"text"};return e};
_.U(jF,_.V);_.Y=jF.prototype;
_.Y.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"}}}}};
_.Y.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var e;_.r((e=this.data)==null?void 0:e.startButton,_.a2)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Y.computeId=function(){return this.data&&this.data.id||""};
_.Y.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.Y.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.Y.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.Y.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.Y.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var e=0;e<this.pollEditorInfoWithDefaults.minPollOptions;e++)this.addPollOptionData()};
_.Y.getIsValidPoll=function(){var e=this;if(!this.pollEditorInfoWithDefaults)return!1;var z=this.pollEditorInfoWithDefaults,C=z.minPollOptionChars,w=z.maxPollOptionChars,K=z.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>z.maxPollQuestionChars)return!1;z=_.XC(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(z).every(function(G,X){G=G.characterCount;!G&&K[X]&&(G=e.ytRendererBehavior.getSimpleString(K[X]).length);return G!==void 0&&G>=C&&G<=w})};
_.Y.isValidPollChanged=function(){var e;_.r((e=this.data)==null?void 0:e.startButton,_.a2)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.Y.addPollOptionData=function(){var e=this.pollEditorInfoWithDefaults,z=e.maxPollOptionChars,C=e.optionPlaceholderText,w=e.customOptionPlaceholderText,K=e.pollOptionData;this.currentNumPollOptions>=e.maxPollOptions||(e={liveChatPollOptionInput:{inputData:{placeholder:w[this.currentNumPollOptions]||C,maxCharacterLimit:z},maxCharacterLimit:z,minCharacterLimit:e.minPollOptionChars,hasPrefilledText:!!w[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=e.minPollOptions}},K.charCountErrorText&&
(e.liveChatPollOptionInput.charCountErrorText=K.charCountErrorText),K.charsRemainingAltLabel&&(e.liveChatPollOptionInput.charsRemainingAltLabel=K.charsRemainingAltLabel),K.removeOptionAltText&&(e.liveChatPollOptionInput.removeOptionAltText=K.removeOptionAltText),this.push("pollOptionsData",e),K=Array.from(_.XC(_.XC(this.hostElement).querySelector("#poll-options")).children),K.forEach(function(G,X){G.polymerController.set("data.id",X)}),_.XC(K[K.length-1]).querySelector("#input").focus())};
_.Y.getPollOptionInputValues=function(){var e=this,z=[],C=_.XC(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),w=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(C).forEach(function(K,G){var X=null;K=K.getLiveChatRichMessageInput();var J;(K==null?0:(J=K.textSegments)==null?0:J.length)?X=_.NT(K):w[G]&&(X=e.formattedStringToLiveChatRichMessageInput(w[G]));z.push(X)});
return z};
_.Y.requestCreateAndStartPoll=function(e){var z=this.getPollOptionInputValues();if(!z.some(function(w){return!w})){z={optionText:z};
var C=_.XC(_.XC(this.hostElement).querySelector("#poll-question")).firstChild;C&&C.liveChatRichMessageInput&&(z.questionText=_.NT(C.liveChatRichMessageInput));_.wQ(this.hostElement,[e,z])}};
_.Y.selectedChanged=function(){if(this.selected){var e=_.XC(_.XC(this.hostElement).querySelector("#start-button")).firstElementChild;if(e){var z;(z=_.XC(e).querySelector("#button")||_.JK(e).querySelector("button"))==null||z.focus()}}};
_.Y.handleTextInputChanged=function(e){var z;((z=e.target)==null?void 0:z.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=e.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.Y.handleStartButtonAction=function(e){e.detail.actionName==="yt-service-request"&&(e.stopPropagation(),(e=e.detail.args[1])&&this.requestCreateAndStartPoll(e))};
_.Y.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.Y.handleServiceRequestCompleted=function(e){this.createPollRequestInFlight=!1;(e=e.detail&&e.detail.data)&&e.success&&(_.pi(this.hostElement,"picker-cancelled"),_.eA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.Y.onCloseClick=function(){_.pi(this.hostElement,"picker-cancelled");_.eA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.Y.handlePollEditorInputClosed=function(e){var z=this.pollOptionsData.findIndex(function(C){return C.liveChatPollOptionInput.id===e.detail.id});
this.splice("pollOptionsData",z,1);this.isValidPoll=this.getIsValidPoll()};
_.Y.onPickerCancelled=function(){this.reset()};
_.Y.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var e=_.XC(_.XC(this.hostElement).querySelector("#poll-question")).firstChild;e&&e.setLiveChatRichMessageInput(null);if(e=_.XC(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){e=_.b(Array.from(e));for(var z=e.next();!z.done;z=e.next())z.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.Y.formattedStringToLiveChatRichMessageInput=function(e){return e.simpleText?{text_segments:[e.simpleText]}:{text_segments:e.runs}};
_.lB.Object.defineProperties(jF.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(UxL,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
jF.prototype.onPickerCancelled=jF.prototype.onPickerCancelled;jF.prototype.handlePollEditorInputClosed=jF.prototype.handlePollEditorInputClosed;jF.prototype.handleServiceRequestCompleted=jF.prototype.handleServiceRequestCompleted;jF.prototype.handleServiceRequestSent=jF.prototype.handleServiceRequestSent;jF.prototype.handleTextInputChanged=jF.prototype.handleTextInputChanged;jF.prototype.selectedChanged=jF.prototype.selectedChanged;jF.prototype.isValidPollChanged=jF.prototype.isValidPollChanged;
jF.prototype.shouldInitializePollChanged=jF.prototype.shouldInitializePollChanged;jF.prototype.dataChanged=jF.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jF.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jF.prototype,"modern",void 0);
_.d([_.F(),_.B("design:type",Object)],jF.prototype,"closeButtonOverrides",void 0);_.d([_.F(),_.B("design:type",Object)],jF.prototype,"startButtonOverrides",void 0);_.d([_.F(),_.B("design:type",Object)],jF.prototype,"addOptionButtonOverrides",void 0);_.d([_.F({computed:"computeId(data.id)",reflectToAttribute:!0}),_.B("design:type",String)],jF.prototype,"id",void 0);_.d([_.F({value:function(){return[]}}),
_.B("design:type",Array)],jF.prototype,"pollOptionsData",void 0);_.d([_.P("pollEditorInfoWithDefaults"),_.B("design:type",Object),_.B("design:paramtypes",[])],jF.prototype,"pollQuestionData",null);_.d([_.F({value:0}),_.B("design:type",Number)],jF.prototype,"pollQuestionCharacterCount",void 0);_.d([_.P("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],jF.prototype,"pollQuestionCharactersRemaining",null);
_.d([_.F({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.B("design:type",Boolean)],jF.prototype,"overQuestionCharacterLimit",void 0);_.d([_.P("data.pollEditorInfo"),_.B("design:type",Object),_.B("design:paramtypes",[])],jF.prototype,"pollEditorInfoWithDefaults",null);_.d([_.F({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.B("design:type",Number)],jF.prototype,"currentNumPollOptions",void 0);
_.d([_.F({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.B("design:type",Boolean)],jF.prototype,"hasMaxNumPollOptions",void 0);_.d([_.P("pollEditorInfoWithDefaults","pollOptionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jF.prototype,"shouldInitializePoll",null);_.d([_.F(),_.B("design:type",Object)],jF.prototype,"isValidPoll",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],jF.prototype,"createPollRequestInFlight",void 0);_.d([_.F(),_.B("design:type",Object)],jF.prototype,"selected",void 0);_.d([_.F({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.B("design:type",Boolean)],jF.prototype,"showQuestionErrorMessage",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"dataChanged",null);_.d([_.mi("shouldInitializePoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"shouldInitializePollChanged",null);_.d([_.mi("isValidPoll"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"isValidPollChanged",null);
_.d([_.mi("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"selectedChanged",null);_.d([_.Qi("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jF.prototype,"handleTextInputChanged",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"handleServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jF.prototype,"handleServiceRequestCompleted",null);
_.d([_.Qi("yt-live-chat-poll-editor-input-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],jF.prototype,"handlePollEditorInputClosed",null);_.d([_.Qi("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jF.prototype,"onPickerCancelled",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],jF);
_.u(jF,"yt-live-chat-poll-editor-panel-renderer",function(){if(HGY===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;r2l===void 0&&(r2l=document.createElement("template"));var w=r2l;C.call(z,w.content.cloneNode(!0),e.content.firstChild);HGY=e}e=HGY;return e},{mode:0});var vWy;var IOC;var yU=function(){return _.V.apply(this,arguments)||this};
_.U(yU,_.V);yU.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
yU.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.lB.Object.defineProperties(yU.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var e,z;return(e=this.data)==null?void 0:(z=e.title)==null?void 0:z.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var e;return _.SQ((e=this.data)==null?void 0:e.onTapCommand)}}});
_.d([_.W(_.y5.YtEndpointBehavior),_.B("design:type",Object)],yU.prototype,"ytEndpointBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yU.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yU.prototype,"itemId",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yU.prototype,"hasPromotion",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],yU.prototype,"innertubeCommand",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],yU);
_.u(yU,"yt-live-chat-product-picker-panel-item-view-model",function(){if(IOC===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;vWy===void 0&&(vWy=document.createElement("template"));var w=vWy;C.call(z,w.content.cloneNode(!0),e.content.firstChild);IOC=e}e=IOC;return e},{mode:0});var WAy;var PB2;var cg=function(){var e=_.V.apply(this,arguments)||this;e.id="product-picker";e.selected=!1;e.closeButtonId="close-button";e.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return e};
_.U(cg,_.V);_.Y=cg.prototype;_.Y.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.Y.observeSelected=function(){this.selected&&this.hostElement.focus();var e=_.XC(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");e.length&&e[0].focus()};
_.Y.onCloseBuyFlow=function(){_.pi(this.hostElement,"picker-cancelled")};
_.Y.onCloseClick=function(){_.pi(this.hostElement,"picker-cancelled");var e;((e=this.data)==null?0:e.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.r(this.data.closeButton,_.H7))};
_.Y.onCloseEngageWithAudienceEditorPanels=function(){_.pi(this.hostElement,"picker-cancelled")};
cg.prototype.observeSelected=cg.prototype.observeSelected;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],cg.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cg.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cg.prototype,"id",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cg.prototype,"selected",void 0);_.d([_.F(),_.B("design:type",Object)],cg.prototype,"closeButtonId",void 0);_.d([_.mi("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cg.prototype,"observeSelected",null);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],cg);
_.u(cg,"yt-live-chat-product-picker-panel-view-model",function(){if(PB2===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;WAy===void 0&&(WAy=document.createElement("template"));var w=WAy;C.call(z,w.content.cloneNode(!0),e.content.firstChild);PB2=e}e=PB2;return e},{mode:0});var R$T;var LAL;var AM=function(){var e=_.V.apply(this,arguments)||this;e.iconId="";e.icon="";e.disabled=!1;e.systemIcons=_.M("kevlar_system_icons");return e};
_.U(AM,_.V);_.Y=AM.prototype;_.Y.computeIconId=function(e){return e&&e.icon&&e.icon.iconType?e.icon.iconType.toLowerCase():""};
_.Y.computeIcon=function(e){return e&&e.icon&&e.icon.iconType?(e=e.icon.iconType.toLowerCase(),(e.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+e):""};
_.Y.computeDisabled=function(e){return!!e};
_.Y.computeCommand=function(e,z){return z?void 0:e};
_.Y.computeTooltip=function(e,z){return z&&e?e:""};
_.Y.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.lB.Object.defineProperties(AM.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var e="",z,C,w;if((z=this.data)==null?0:(C=z.text)==null?0:(w=C.runs)==null?0:w.length)e=this.data.text.runs[0].text||"";else{var K,G;if((K=this.data)==null?0:(G=K.text)==null?0:G.simpleText)e=this.data.text.simpleText}var X,J,q;if((X=this.data)==null?0:(J=X.subtext)==null?0:(q=J.runs)==null?0:q.length)e&&(e+=". "),e+=this.data.subtext.runs[0].text||"";else{var T,Q;if((T=this.data)==null?0:(Q=T.subtext)==
null?0:Q.simpleText)e&&(e+=". "),e+=this.data.subtext.simpleText}return e}}});
_.d([_.W(_.y5.YtEndpointBehavior),_.B("design:type",Object)],AM.prototype,"ytEndpointBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],AM.prototype,"data",void 0);_.d([_.F({computed:"computeIconId(data)",reflectToAttribute:!0}),_.B("design:type",Object)],AM.prototype,"iconId",void 0);
_.d([_.F({computed:"computeIcon(data)",reflectToAttribute:!0}),_.B("design:type",Object)],AM.prototype,"icon",void 0);_.d([_.F({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.B("design:type",Object)],AM.prototype,"disabled",void 0);_.d([_.F({computed:"computeCommand(data.command, disabled)"}),_.B("design:type",Object)],AM.prototype,"command",void 0);_.d([_.F({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.B("design:type",String)],AM.prototype,"tooltip",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],AM.prototype,"systemIcons",void 0);_.d([_.P("data.text","data.subtext"),_.F(),_.B("design:type",String),_.B("design:paramtypes",[])],AM.prototype,"ariaLabel",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],AM);
_.u(AM,"yt-live-chat-product-button-renderer",function(){if(LAL===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;R$T===void 0&&(R$T=document.createElement("template"));var w=R$T;C.call(z,w.content.cloneNode(!0),e.content.firstChild);LAL=e}e=LAL;return e},{mode:0});var h$2;var OGl;var ZF=function(){var e=_.V.apply(this,arguments)||this;e.selected=!1;e.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return e};
_.U(ZF,_.V);_.Y=ZF.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.computeId=function(e){return e.id||""};
_.Y.onCloseClick=function(){_.pi(this.hostElement,"picker-cancelled")};
_.Y.observeSelected=function(){this.selected&&this.hostElement.focus();var e=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");e.length&&e[0].focus()};
_.Y.onCloseBuyFlow=function(){_.pi(this.hostElement,"picker-cancelled")};
_.Y.onCloseEngageWithAudienceEditorPanels=function(){_.pi(this.hostElement,"picker-cancelled")};
ZF.prototype.observeSelected=ZF.prototype.observeSelected;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ZF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ZF.prototype,"data",void 0);
_.d([_.F({computed:"computeId(data)",reflectToAttribute:!0}),_.B("design:type",String)],ZF.prototype,"id",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ZF.prototype,"selected",void 0);_.d([_.mi("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ZF.prototype,"observeSelected",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],ZF);
_.u(ZF,"yt-live-chat-product-picker-renderer",function(){if(OGl===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;h$2===void 0&&(h$2=document.createElement("template"));var w=h$2;C.call(z,w.content.cloneNode(!0),e.content.firstChild);OGl=e}e=OGl;return e},{mode:0});var EWL;var FAC;var VCa;var fOa;var pf=function(){return _.V.apply(this,arguments)||this};
_.U(pf,_.V);pf.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()};
pf.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
pf.prototype.created=function(){this.ids={background:_.yR(),maskOne:_.yR(),maskTwo:_.yR(),gradient:_.yR(),largeBackground:_.yR(),largeGradientOne:_.yR(),largeGradientTwo:_.yR(),largeGradientPath:_.yR()}};
pf.prototype.maybeLoadAnimationBackground=pf.prototype.maybeLoadAnimationBackground;_.d([_.F({value:!1}),_.B("design:type",Boolean)],pf.prototype,"useLargeBackground",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],pf.prototype,"useAnimationBackground",void 0);_.d([_.F({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.B("design:type",Boolean)],pf.prototype,"useRegularBackground",void 0);
_.d([_.F(),_.B("design:type",Object)],pf.prototype,"ids",void 0);_.d([_.F(),_.B("design:type",Object)],pf.prototype,"lottieAnimation",void 0);_.d([_.nP("#animation-background"),_.B("design:type",HTMLDivElement)],pf.prototype,"animationBackground",void 0);_.d([_.mi("useAnimationBackground"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pf.prototype,"maybeLoadAnimationBackground",null);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],pf);
_.u(pf,"yt-live-interactivity-component-background",function(){if(fOa===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;VCa===void 0&&(VCa=document.createElement("template"));var w=VCa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);fOa=e}e=fOa;return e},{mode:0});var eV=function(){var e=_.V.apply(this,arguments)||this;e.characterCount=0;e.showInputErrorMessage=!1;e.startQnaRequestInFlight=!1;e.modern=_.M("web_button_rework_with_live");e.buttonOverrides={style:"mono",type:"filled"};e.closeButtonOverrides={iconPosition:"icon-only"};e.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return e};
_.U(eV,_.V);_.Y=eV.prototype;
_.Y.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]]"}}}}}};
_.Y.onCharacterCountChanged=function(e){var z,C,w,K,G=(C=_.r(this==null?void 0:(z=this.data)==null?void 0:z.creatorCallForQuestions,TKC))==null?void 0:(w=C.inputField)==null?void 0:(K=w.liveChatTextInputFieldRenderer)==null?void 0:K.maxCharacterLimit,X,J;G!=null&&(e==null?void 0:(X=e.detail)==null?void 0:X.characterCount)!=null&&_.r(this==null?void 0:(J=this.data)==null?void 0:J.startButton,_.a2)&&(z=e.detail.characterCount>G,this.set("data.startButton.buttonRenderer.isDisabled",e.detail.characterCount===
0||z),this.showInputErrorMessage=z)};
_.Y.onCloseClick=function(){_.pi(this.hostElement,"picker-cancelled");_.eA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.onPickerCancelled=function(){var e=_.XC(this.hostElement).querySelector("#qna-creator-text-input-field");e&&e.setLiveChatRichMessageInput(null)};
_.Y.handleOpenQnaStartPanel=function(){var e=_.XC(this.hostElement).querySelector("#qna-creator-text-input-field");e&&e.focus()};
_.Y.handleStartButtonAction=function(e){var z=this;if(e.detail.actionName==="yt-service-request"&&(e.stopPropagation(),e=e.detail.args[1])){var C=_.XC(this.hostElement).querySelector("#qna-creator-text-input-field"),w;(C==null?0:(w=C.liveChatRichMessageInput)==null?0:w.textSegments)&&C.liveChatRichMessageInput.textSegments.length!==0&&(w={rich_message:_.NT(C.liveChatRichMessageInput)},_.wQ(this.hostElement,[e,w]).then(function(){_.pi(z.hostElement,"picker-cancelled")}))}};
_.Y.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.Y.handleServiceRequestCompleted=function(e){var z;e=e==null?void 0:(z=e.detail)==null?void 0:z.data;(e==null?0:e.actions)&&e.actions.length>0?this.startQnaRequestInFlight=!1:_.eA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.Y.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
eV.prototype.handleServiceRequestError=eV.prototype.handleServiceRequestError;eV.prototype.handleServiceRequestCompleted=eV.prototype.handleServiceRequestCompleted;eV.prototype.handleServiceRequestSent=eV.prototype.handleServiceRequestSent;eV.prototype.onPickerCancelled=eV.prototype.onPickerCancelled;eV.prototype.onCharacterCountChanged=eV.prototype.onCharacterCountChanged;_.d([_.F(),_.B("design:type",Object)],eV.prototype,"characterCount",void 0);
_.d([_.F(),_.B("design:type",Object)],eV.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],eV.prototype,"showInputErrorMessage",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],eV.prototype,"startQnaRequestInFlight",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],eV.prototype,"modern",void 0);_.d([_.F(),_.B("design:type",Object)],eV.prototype,"buttonOverrides",void 0);
_.d([_.F(),_.B("design:type",Object)],eV.prototype,"closeButtonOverrides",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],eV.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.W(_.I6.YtLiveChatItemBehavior),_.B("design:type",_.Wk)],eV.prototype,"ytLiveChatItemBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],eV.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Qi("yt-live-chat-text-input-field-renderer-character-count-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],eV.prototype,"onCharacterCountChanged",null);_.d([_.Qi("picker-cancelled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eV.prototype,"onPickerCancelled",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eV.prototype,"handleServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],eV.prototype,"handleServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],eV.prototype,"handleServiceRequestError",null);_.d([_.SL({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],eV);
_.u(eV,"yt-live-chat-qna-start-panel-renderer",function(){if(FAC===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;EWL===void 0&&(EWL=document.createElement("template"));var w=EWL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);FAC=e}e=FAC;return e},{mode:0});var S8g;var uh2;var ze=function(){return _.V.apply(this,arguments)||this};
_.U(ze,_.V);ze.prototype.dismiss=function(){_.pi(this.hostElement,"yt-live-chat-error-message-dismiss")};
ze.prototype.edit=function(){_.pi(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.d([_.F(),_.B("design:type",Object)],ze.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],ze);
_.u(ze,"yt-live-chat-text-actions-error-message-renderer",function(){if(uh2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;S8g===void 0&&(S8g=document.createElement("template"));var w=S8g;C.call(z,w.content.cloneNode(!0),e.content.firstChild);uh2=e}e=uh2;return e},{mode:0});var dxg;var Dx2;var iGL;var NMg;var Ct=function(){var e=_.V.apply(this,arguments)||this;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.newnessDotEligible=!1;return e};
_.U(Ct,_.V);Ct.prototype.sendReaction=function(){var e,z,C=((e=this.data)==null?void 0:e.emojiId)||((z=this.data)==null?void 0:z.emoteId),w;C&&((w=this.data)==null?0:w.shouldTriggerAnimation)&&_.eA(this.hostElement,"yt-create-user-reaction-animation",[C]);var K;(e=_.SQ((K=this.data)==null?void 0:K.onTap))&&_.$p(e,this.hostElement);this.showNewnessDot&&_.eA(this.hostElement,"yt-hide-newness-dot")};
Ct.prototype.onClick=function(e){(!e||e.clientX||e.clientY)&&this.sendReaction()};
Ct.prototype.onKeyDown=function(e){e.key!=="Enter"&&e.key!==" "||e.repeat||this.sendReaction()};
_.lB.Object.defineProperties(Ct.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!(((e=this.data)==null?0:e.emojiId)||((z=this.data)==null?0:z.emoteId))}}});
_.d([_.F(),_.B("design:type",Object)],Ct.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ct.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",Object)],Ct.prototype,"newnessDotEligible",void 0);_.d([_.P("data.maybeShowNewnessDot"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ct.prototype,"showNewnessDot",null);_.d([_.P("data.emojiId","data.emoteId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ct.prototype,"useYtImage",null);
_.d([_.fP({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Ct);
_.u(Ct,"yt-reaction-control-panel-button-view-model",function(){if(NMg===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;iGL===void 0&&(iGL=document.createElement("template"));var w=iGL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);NMg=e}e=NMg;return e},{mode:0});var skC;var BML;var wI=function(){var e=_.V.apply(this,arguments)||this;e.reactionControlPanelExpanded=!1;e.isDarkTheme=document.documentElement.hasAttribute("dark");e.newnessDotEligible=!1;return e};
_.U(wI,_.V);_.Y=wI.prototype;_.Y.expandedButtonsChanged=function(){var e,z;_.T8(this.hostElement,{"--expanded-buttons-height":((z=(e=this.expandedButtonsData)==null?void 0:e.length)!=null?z:0)*36+"px"})};
_.Y.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}}};
_.Y.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.Y.onMouseLeave=function(){var e=this;this.collapseTimer=setTimeout(function(){e.reactionControlPanelExpanded=!1},500)};
_.Y.onFocusIn=function(){this.onMouseEnter()};
_.Y.onFocusOut=function(){this.onMouseLeave()};
_.Y.onCollapsedButtonFocusIn=function(){var e=this;setTimeout(function(){var z;(z=e.expandedButtons.querySelector("button"))==null||z.focus()},100)};
_.Y.onCollapsedButtonFocusOut=function(e){e.stopPropagation()};
_.lB.Object.defineProperties(wI.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var e,z;return _.de.unsafeClone((e=this.liveReactionsData)==null?void 0:e.emojiButtonData)||((z=this.data)==null?void 0:z.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var e;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((e=this.data)==null||!e.maybeShowNewnessDot)}}});
wI.prototype.expandedButtonsChanged=wI.prototype.expandedButtonsChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],wI.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wI.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],wI.prototype,"reactionControlPanelExpanded",void 0);_.d([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:u0Y}),_.B("design:type",Object)],wI.prototype,"liveReactionsData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],wI.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",Object)],wI.prototype,"newnessDotEligible",void 0);
_.d([_.P("liveReactionsData","data.expandedButtons"),_.B("design:type",Object),_.B("design:paramtypes",[])],wI.prototype,"expandedButtonsData",null);_.d([_.P("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.F({reflectToAttribute:!0}),_.B("design:type",Object),_.B("design:paramtypes",[])],wI.prototype,"showNewnessDot",null);_.d([_.nP("#expanded-buttons"),_.B("design:type",HTMLElement)],wI.prototype,"expandedButtons",void 0);
_.d([_.mi("expandedButtonsData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wI.prototype,"expandedButtonsChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],wI);
_.u(wI,"yt-reaction-control-panel-view-model",function(){if(BML===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;skC===void 0&&(skC=document.createElement("template"));var w=skC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);BML=e}e=BML;return e},{mode:0});var Kt=new _.zE("yt-live-chat"),tC2=Date.parse("2024-7-24"),oU=function(){var e=_.V.apply(this,arguments)||this;e.emojiManager=_.vk;e.newnessDotEligible=!1;e.newnessDotImpressionCounted=!1;e.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return e};
_.U(oU,_.V);_.Y=oU.prototype;_.Y.emojiCustomizationEnabledChanged=function(){var e;((e=this.data)==null?0:e.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((e=Kt.getCreationTime("emoji-customization-count"))&&e<tC2&&Kt.set("emoji-customization-count","0"),e=Number(Kt.get("emoji-customization-count"))||0,e<3&&(this.newnessDotEligible=!0,Kt.set("emoji-customization-count",(e+1).toString())),this.newnessDotImpressionCounted=!0)};
_.Y.hideNewnessDot=function(){this.newnessDotEligible=!1;Kt.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.Y.handleReactionsMute=function(e){var z=_.Pr(),C=_.mT(206221),w={checkboxData:{state:e?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};z&&_.gQ(z,C,w);this.reactionsMuted=e};
_.Y.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.Y.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}}};
_.lB.Object.defineProperties(oU.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var e;return(!((e=this.liveReactionsData)==null||!e.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
oU.prototype.liveReactionsSettingChanged=oU.prototype.liveReactionsSettingChanged;oU.prototype.emojiCustomizationEnabledChanged=oU.prototype.emojiCustomizationEnabledChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.$q),_.B("design:type",Object)],oU.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],oU.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oU.prototype,"data",void 0);_.d([_.F(),_.B("design:type",_.ry)],oU.prototype,"emojiManager",void 0);_.d([_.F(),_.B("design:type",Object)],oU.prototype,"newnessDotEligible",void 0);_.d([_.F(),_.B("design:type",Object)],oU.prototype,"newnessDotImpressionCounted",void 0);
_.d([_.F({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:dEa}),_.B("design:type",Boolean)],oU.prototype,"liveReactionsSetting",void 0);_.d([_.F({selectorArgs:["data.liveReactionsDataEntityKey"],selector:u0Y}),_.B("design:type",Object)],oU.prototype,"liveReactionsData",void 0);_.d([_.F({value:function(){var e=_.M("enable_lwe_web_mute"),z=Kt.get("allow-reactions");return z===void 0?!1:!z&&e}}),
_.B("design:type",Boolean)],oU.prototype,"reactionsMuted",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],oU.prototype,"liveReactionsEnabled",null);_.d([_.mi("data.emojiCustomizationEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oU.prototype,"emojiCustomizationEnabledChanged",null);
_.d([_.mi("liveReactionsEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oU.prototype,"liveReactionsSettingChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],oU);
_.u(oU,"yt-reaction-control-panel-overlay-view-model",function(){if(Dx2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;dxg===void 0&&(dxg=document.createElement("template"));var w=dxg;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Dx2=e}e=Dx2;return e},{mode:0});var gWY={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(e){var z=this.$.pickers.selected;if(z){_.XC(this.hostElement).removeAttribute(z+"-open");var C="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(C="#picker-buttons",z==="emoji"&&_.XC(this.hostElement).querySelector("#emoji-picker-button")&&(C="#emoji-picker-button"));if(C=_.XC(this.hostElement).querySelector(C).querySelector("#"+z))C.active=!1}C=e;z==e&&(C=null);z!=
e&&_.XC(this.hostElement).setAttribute(e+"-open","");this.$.pickers.selected=C;_.eA(this.hostElement,"yt-live-chat-picker-changed",[C])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Ge=function(){var e=_.V.apply(this,arguments)||this;e.numSentMessages=0;e.timeoutDurationMs=0;e.timeoutMs=0;e.lastTimeoutTimeMs=0;e.pendingMessageId="";e.hasFiredInitialFocusActions=!1;e.isBeforeFocusEnabled=!0;e.id="";e.characterCount=0;e.maxCharacterLimit=0;e.remainingCharacterCount=0;e.inputExpanded=!1;e.buttonOverrides={iconPosition:"icon-only"};e.inReplyPanel=!1;e.countdownRatio=0;e.isTooltipVisible=!1;e.tooltipTimeout=1E4;e.systemIcons=_.M("kevlar_system_icons");e.tallerEmojiPicker=_.M("live_chat_taller_emoji_picker");
e.sendReplyMessageInFlight=!1;e.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"};e.onResize=function(){e.maybeToggleCharacterCount()};
return e};
_.U(Ge,_.V);_.Y=Ge.prototype;
_.Y.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"}}}};
_.Y.attached=function(){window.addEventListener("resize",this.onResize)};
_.Y.detached=function(){window.removeEventListener("resize",this.onResize)};
_.Y.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.Y.sendMessage=function(){var e=this,z,C,w,K;return _.k(function(G){if(e.sendDisabled)return G.return();e.isTooltipVisible&&_.eA(e.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(e.data.sendButton&&e.data.sendButton.buttonRenderer){e.input.completeEmojis();z=e.data.sendButton.buttonRenderer.serviceEndpoint;if(!z)return G.return();w=((C=_.r(z,_.hfh))==null?void 0:C.clientIdPrefix)||"";K={client_message_id:w+String(e.numSentMessages++),rich_message:_.NT(e.input.liveChatRichMessageInput)};
e.pendingMessageId=K.client_message_id;e.inReplyPanel&&(e.sendReplyMessageInFlight=!0);_.wQ(e.hostElement,[z,K]);e.input.setLiveChatRichMessageInput(null)}_.E_(G)})};
_.Y.handleSendButtonAction=function(e){e.detail.actionName==="yt-service-request"&&(e.stopPropagation(),this.sendMessage())};
_.Y.onSendCompleted=function(e,z){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(e=this.get("timeoutDurationUsec",z.data))&&this.handleTimeout(Number(e)/1E3);this.errorMessage=this.get("errorMessage",z.data);this.pendingMessageId=""};
_.Y.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.eA(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.Y.handlePickerButtonToggle=function(e){e=e.detail.targetId;this.ytPickerBehavior.togglePicker_(e);if(e==="emoji")this.input.focus();else if(e==="qna-start-panel"){var z,C;(z=_.XC(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(C=z.querySelector("#qna-creator-text-input-field"))==null||C.focus()}};
_.Y.onComponentReplaced=function(e){var z,C;e.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((z=e.replacement.liveChatMessageInputRenderer)==null?0:(C=z.headerRenderer)==null?0:C.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.Y.onEmojiSelect=function(e){this.input.focus();this.input.insertEmoji(e.detail)};
_.Y.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.Y.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.eA(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.eA(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.Y.onOpenPopupAction=function(e,z){var C=this;z===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.eA(C.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.Y.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.Y.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.Y.focusChanged=function(){this.maybeToggleCharacterCount()};
_.Y.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var e=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",e>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.Y.computeId=function(){return this.data&&this.data.targetId||""};
_.Y.computeSendDisabled=function(e,z,C,w){e=!!(!e||z&&e>z||w);(z=_.XC(this.hostElement).querySelector("#send-button"))&&z.children.length&&(z.children[0].disabled=e);return e};
_.Y.handleTimeout=function(e){this.timeoutDurationMs=this.timeoutMs=e;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.Y.updateTimeout=function(e){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(e-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=e,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.Y.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.Y.onErrorMessageEdit=function(e){this.input.setLiveChatRichMessageInput(e.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.Y.errorMessageChanged=function(){var e=this;_.BI(function(){_.eA(e.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.Y.computeAuthorNameColor=function(e){var z;if(_.M("live_chat_author_name_color_usernames")&&(e==null?0:(z=e.authorName)==null?0:z.simpleText))return _.n64(_.MPE(e.authorName.simpleText));if(_.M("live_chat_seed_color_usernames")&&(e==null?0:e.authorSeedColorArgb))return _.n64(_.JE(e.authorSeedColorArgb));if(_.M("live_chat_colored_usernames"))return"#cc0000";var C;return _.M("live_chat_simple_color_usernames")&&(e==null?0:(C=e.authorName)==null?0:C.simpleText)&&(e==null?0:e.authorUsernameColorLight)&&
(e==null?0:e.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.JE(e.authorUsernameColorDark):_.JE(e.authorUsernameColorLight):""};
_.Y.onIsTooltipVisibleChanged=function(){var e=_.XC(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){e.hidden=!1;e.setAttribute("role","alert")},0):(e.hidden=!0,e.removeAttribute("role"))};
_.Y.onFocusedChanged=function(e){this.inputFocused=e.detail.value};
_.lB.Object.defineProperties(Ge.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 e;return!((e=this.data)==null||!e.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:(z=e.pickers)==null?void 0:z.find(function(C){return C.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return e?this.ytRendererBehavior.getSimpleString(e):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Ge.prototype.onIsTooltipVisibleChanged=Ge.prototype.onIsTooltipVisibleChanged;Ge.prototype.errorMessageChanged=Ge.prototype.errorMessageChanged;Ge.prototype.onErrorMessageEdit=Ge.prototype.onErrorMessageEdit;Ge.prototype.onErrorMessageDismiss=Ge.prototype.onErrorMessageDismiss;Ge.prototype.focusChanged=Ge.prototype.focusChanged;Ge.prototype.characterCountChanged=Ge.prototype.characterCountChanged;Ge.prototype.onEmojiSelect=Ge.prototype.onEmojiSelect;Ge.prototype.handlePickerButtonToggle=Ge.prototype.handlePickerButtonToggle;
Ge.prototype.onSendError=Ge.prototype.onSendError;Ge.prototype.onSendCompleted=Ge.prototype.onSendCompleted;Ge.prototype.sendMessage=Ge.prototype.sendMessage;Ge.prototype.dataChanged=Ge.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ge.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(gWY.YtPickerBehavior),_.B("design:type",Object)],Ge.prototype,"ytPickerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ge.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.lz.YtLiveChatTooltipTargetingBehavior),_.B("design:type",Object)],Ge.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"hasFiredInitialFocusActions",void 0);
_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"isBeforeFocusEnabled",void 0);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"data",void 0);_.d([_.F({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.B("design:type",Object)],Ge.prototype,"id",void 0);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"characterCount",void 0);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"maxCharacterLimit",void 0);
_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"remainingCharacterCount",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ge.prototype,"inputExpanded",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ge.prototype,"inputFocused",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Ge.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.d([_.F(),_.B("design:type",_.Lx)],Ge.prototype,"participantsManager",void 0);
_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"buttonOverrides",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ge.prototype,"inReplyPanel",void 0);_.d([_.P("characterCount, maxCharacterLimit, countdownActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ge.prototype,"sendDisabled",null);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"countdownRatio",void 0);
_.d([_.P("countdownRatio"),_.B("design:type",Number),_.B("design:paramtypes",[])],Ge.prototype,"countdownStrokeDashOffset",null);_.d([_.P("countdownRatio"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ge.prototype,"countdownActive",null);_.d([_.P("data.interactionMessage"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ge.prototype,"hasInteractionMessage",null);
_.d([_.P("data.emojiPickerButton"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ge.prototype,"hasEmojiPickerButton",null);_.d([_.P("data, characterCount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ge.prototype,"showAvatar",null);_.d([_.P("data.pickers"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ge.prototype,"hasProductPickerPanelViewModel",null);
_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"errorMessage",void 0);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"genericErrorMessage",void 0);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"isTooltipVisible",void 0);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"tooltipTimeout",void 0);_.d([_.P("data.onInitialFocusCommand"),_.B("design:type",String),_.B("design:paramtypes",[])],Ge.prototype,"tooltipMessage",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ge.prototype,"systemIcons",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ge.prototype,"tallerEmojiPicker",void 0);_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],Ge.prototype,"authorNameColor",null);_.d([_.F(),_.B("design:type",Object)],Ge.prototype,"sendReplyMessageInFlight",void 0);_.d([_.nP("#input"),_.B("design:type",_.XyS)],Ge.prototype,"input",void 0);
_.d([_.nP("#count"),_.B("design:type",HTMLElement)],Ge.prototype,"count",void 0);_.d([_.nP("#input-container"),_.B("design:type",HTMLElement)],Ge.prototype,"inputContainer",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ge.prototype,"dataChanged",null);_.d([_.Qi("yt-live-chat-send-message"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Ge.prototype,"sendMessage",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.pU]),_.B("design:returntype")],Ge.prototype,"onSendCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ge.prototype,"onSendError",null);
_.d([_.Qi("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ge.prototype,"handlePickerButtonToggle",null);_.d([_.Qi("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ge.prototype,"onEmojiSelect",null);
_.d([_.mi("characterCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ge.prototype,"characterCountChanged",null);_.d([_.mi("inputFocused"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ge.prototype,"focusChanged",null);_.d([_.Qi("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ge.prototype,"onErrorMessageDismiss",null);
_.d([_.Qi("yt-live-chat-error-message-edit"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Ge.prototype,"onErrorMessageEdit",null);_.d([_.mi("errorMessage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ge.prototype,"errorMessageChanged",null);_.d([_.mi("isTooltipVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ge.prototype,"onIsTooltipVisibleChanged",null);
_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Ge);
_.u(Ge,"yt-live-chat-message-input-renderer",function(){if(TMT===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;xxL===void 0&&(xxL=document.createElement("template"));var w=xxL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);TMT=e}e=TMT;return e},{mode:0});var jk2;var y2y;var Yt=function(){var e=_.V.apply(this,arguments)||this;e.systemIcons=_.M("kevlar_system_icons");e.firedOnClickCommand=!1;e.inReplyPanel=!1;return e};
_.U(Yt,_.V);
Yt.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"}}}};
Yt.prototype.onButtonToggle=function(e){e.target.disabled||this.ytPickerBehavior.togglePicker_(e.detail.targetId)};
Yt.prototype.onClick=function(){var e=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.eA(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return e.firedOnClickCommand=!1},5E3))};
_.lB.Object.defineProperties(Yt.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:(z=e.panels)==null?void 0:z.find(function(C){return C.liveChatProductPickerPanelViewModel}))!==void 0}}});
Yt.prototype.onButtonToggle=Yt.prototype.onButtonToggle;_.d([_.W(gWY.YtPickerBehavior),_.B("design:type",Object)],Yt.prototype,"ytPickerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Yt.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Yt.prototype,"systemIcons",void 0);_.d([_.F({reflectToAttribute:!1}),_.B("design:type",Object)],Yt.prototype,"firedOnClickCommand",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Yt.prototype,"inReplyPanel",void 0);_.d([_.P("data.pickers"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Yt.prototype,"hasProductPickerPanelViewModel",null);
_.d([_.Qi("yt-live-chat-icon-toggle-button-renderer-toggle"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Yt.prototype,"onButtonToggle",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Yt);
_.u(Yt,"yt-live-chat-restricted-participation-renderer",function(){if(y2y===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;jk2===void 0&&(jk2=document.createElement("template"));var w=jk2;C.call(z,w.content.cloneNode(!0),e.content.firstChild);y2y=e}e=y2y;return e},{mode:0});var bV=function(){var e=_.V.apply(this,arguments)||this;e.genericErrorMessage=_.AO("Error, try again.");e.inReplyPanel=!1;e.hideBorder=!1;return e};
_.U(bV,_.V);bV.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}}}}}};
_.lB.Object.defineProperties(bV,{template:{configurable:!0,enumerable:!0,get:function(){return bGT()}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bV.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],bV.prototype,"genericErrorMessage",void 0);_.d([_.F(),_.B("design:type",Object)],bV.prototype,"inReplyPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],bV.prototype,"hideBorder",void 0);
_.d([_.fP({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],bV);_.u(bV,"yt-live-chat-engagement-panel-input-renderer",function(){return bGT()},{mode:0});var c2g,A2w;c2g=_.mT(115994);A2w=_.mT(115993);_.X7=function(e,z,C){var w=this;var K=C.dragDownAction;this.layer=0;this.JSC$23215_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.JSC$23215_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.fullscreen=!1;var G=_.nm();_.c7(G,c2g,this.layer);_.c7(G,A2w,this.layer);this.dragDownAction=function(){K();_.Bj(G,{visualElement:w.fullscreen?c2g:A2w})};
this.gesture=new _.rl(e,z,this.getConfig(!1),"pandown");this.attach()};
_.X7.prototype.attach=function(){this.gesture.attach()};
_.X7.prototype.detach=function(){this.gesture.detach()};
_.X7.prototype.update=function(e){this.fullscreen=e;var z=this.gesture;e=this.getConfig(e);z.config=e};
_.X7.prototype.getConfig=function(e){return e?this.JSC$23215_watchFullScreenConfig:this.JSC$23215_watchConfig};var ZGL={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(e){if(e&&e.length==1&&Array.isArray(e[0].loggingUrls)){e=_.de.unsafeClone(e[0]);var z=this.macros||{},C=this.getAdModuleClient_();if(!C)return _.oS();e.loggingUrls.forEach(function(w){if(w.baseUrl){var K=w.baseUrl;var G=z;G=G===void 0?{}:G;K=C.getOptions().includes("replaceUrlMacros")?_.R1a(C,"replaceUrlMacros",{url:K,additionalMapping:G}):K;w.baseUrl=K}},this);
e=[e]}return _.wQ(this.hostElement,e)},
getAdModuleClient_:function(){var e=_.ox(this);return e?(e=e.getPlayer())?new _.lc(e):null:null}}]};var pAY;var eDy;var Jc=function(){return _.V.apply(this,arguments)||this};
_.U(Jc,_.V);Jc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Jc.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Jc);
_.u(Jc,"ytd-compact-tvfilm-entry-point-renderer",function(){if(eDy!==void 0)return eDy;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return eDy=e},{mode:1});var zDL;var CYt;var wr2;var kt=function(){return _.V.apply(this,arguments)||this};
_.U(kt,_.V);kt.prototype.ready=function(){this.initializeDefs()};
kt.prototype.initializeDefs=function(){var e=this.meta.byKey("yt-icons"),z=_.XC(e).querySelector("#star"),C=_.XC(e).querySelector("#star_half");e=_.XC(e).querySelector("#star_border");z&&this.defs.appendChild(z.cloneNode(!0));C&&this.defs.appendChild(C.cloneNode(!0));e&&this.defs.appendChild(e.cloneNode(!0))};
kt.prototype.percentChanged=function(){for(var e=this.rating;e.firstChild;)e.removeChild(e.firstChild);var z=Math.round(this.percent/10);e=Math.floor(z/2);z%=2;var C=5-e-z;this.appendStars("star",e,0);this.appendStars("star_half",z,e);this.appendStars("star_border",C,e+z)};
kt.prototype.appendStars=function(e,z,C){for(var w=0;w<z;w++){var K=(18+this.spacing)*(w+C),G=document.createElementNS("http://www.w3.org/2000/svg","use");_.ed5(G,"#"+e);G.setAttribute("x",""+K);G.setAttribute("y","0");this.rating.appendChild(G)}};
kt.prototype.percentChanged=kt.prototype.percentChanged;_.d([_.nP("#defs"),_.B("design:type",HTMLElement)],kt.prototype,"defs",void 0);_.d([_.nP("#rating"),_.B("design:type",HTMLElement)],kt.prototype,"rating",void 0);_.d([_.F(),_.B("design:type",Number)],kt.prototype,"percent",void 0);_.d([_.F({value:6}),_.B("design:type",Number)],kt.prototype,"spacing",void 0);_.d([_.F({value:_.cm.create("iron-meta",{type:"iconset"})}),_.B("design:type",_.zK)],kt.prototype,"meta",void 0);
_.d([_.mi("percent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kt.prototype,"percentChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-ratings"})],kt);
_.u(kt,"ytd-ratings",function(){if(wr2!==void 0)return wr2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return wr2=e},{mode:1});var KbC=function(){return _.V.apply(this,arguments)||this};
_.U(KbC,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],KbC.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],KbC.prototype,"data",void 0);_.d([_.SL({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],KbC);
_.u(KbC,"ytd-offer-review-renderer",function(){if(CYt!==void 0)return CYt;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return CYt=e},{mode:1});var qb=function(){var e=_.V.apply(this,arguments)||this;e.badges=[{textBadge:{label:_.AO("CC")}}];return e};
_.U(qb,_.V);_.Y=qb.prototype;_.Y.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.Y.dataChanged=function(){var e=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(e&&e.commandMetadata&&_.r(e.commandMetadata,_.wA)&&_.r(e.commandMetadata,_.wA).fireAutomatically)_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}});else{var z;e&&((z=_.r(e,_.wA))==null?0:z.fireAutomatically)&&_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})}};
_.Y.isEmptyContent=function(e){return this.isStorefrontEntryPointEmpty(e)&&this.shouldHideOfferModule(e)};
_.Y.isStorefrontEntryPointEmpty=function(e){return!e||!e.storefrontEntryPoint};
_.Y.shouldHideOfferModule=function(e){return!!e.hideVideoDetails};
_.Y.isOfferModuleNavigationInactive=function(e){return!e.navigationEndpoint&&!e.serviceEndpoint};
_.Y.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
qb.prototype.dataChanged=qb.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qb.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.B("design:type",Boolean)],qb.prototype,"hidden",void 0);
_.d([_.F(),_.B("design:type",Object)],qb.prototype,"badges",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qb.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],qb);
_.u(qb,"ytd-movie-offer-module-renderer",function(){if(zDL!==void 0)return zDL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zDL=e},{mode:1});var o1L;var Goj=function(){return _.V.apply(this,arguments)||this};
_.U(Goj,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Goj.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Goj.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Goj);
_.u(Goj,"ytd-media-masthead-renderer",function(){if(o1L!==void 0)return o1L;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return o1L=e},{mode:1});var YXj;_.KU(_.x5f,"course-metadata-view-model",{props:{data:_.z9,isOverlay:_.z9}});var xt=function(){var e=_.V.apply(this,arguments)||this;e.isMetadataVisible=!1;e.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return e};
_.U(xt,_.V);_.Y=xt.prototype;
_.Y.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"}}}}};
_.Y.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.Y.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.Y.expanderChanged=function(){var e;if((e=this.data)==null?0:e.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.Y.isExpandButtonToggled=function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.expandMetadataButton,_.v7))==null?void 0:z.isToggled};
_.Y.onVisibilityButtonClick=function(){var e;if((e=this.data)==null?0:e.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.Y.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
xt.prototype.expanderChanged=xt.prototype.expanderChanged;xt.prototype.dataChanged=xt.prototype.dataChanged;xt.prototype.descriptionChanged=xt.prototype.descriptionChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W([_.ch.YtActionHandlerBehavior]),_.B("design:type",Object)],xt.prototype,"actionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],xt.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],xt.prototype,"isMetadataVisible",void 0);_.d([_.nP("#expander"),_.B("design:type",Object)],xt.prototype,"expander",void 0);_.d([_.mi("data.description"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xt.prototype,"descriptionChanged",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xt.prototype,"dataChanged",null);_.d([_.mi("isMetadataVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xt.prototype,"expanderChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],xt);
_.u(xt,"ytd-tvfilm-offer-module-renderer",function(){if(YXj!==void 0)return YXj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return YXj=e},{mode:2});var big;var Te=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return e};
_.U(Te,_.V);Te.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Te.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Te.prototype.onThumbnailTap=function(e){this.data&&this.data.serviceEndpoint&&(_.lh().resolve(_.ms).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),e.stopPropagation())};
Te.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Te.prototype.dataChanged=Te.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Te.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Te.prototype,"rendererBehaviors",void 0);_.d([_.W([_.ch.YtActionHandlerBehavior]),_.B("design:type",Object)],Te.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Te.prototype,"data",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Te.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Te);
_.u(Te,"ytd-unlimited-offer-module-renderer",function(){if(big!==void 0)return big;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return big=e},{mode:1});var XrT;var Jwg;var $t=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return e};
_.U($t,_.V);$t.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
$t.prototype.handleRelatedChipCommand=function(e){e=_.r(e,L$a);var z=e.contents;z?_.zj(this.hostElement,"yt-item-section-replace-action",[z,e.targetSectionIdentifier]):_.zj(this.hostElement,"yt-item-section-continuation-action",[e.continuationData,e.targetSectionIdentifier])};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],$t.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$t.prototype,"data",void 0);_.d([_.fP({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],$t);
_.u($t,"yt-related-chip-cloud-renderer",function(){if(Jwg===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;XrT===void 0&&(XrT=document.createElement("template"));var w=XrT;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Jwg=e}e=Jwg;return e},{mode:2});var lV=function(){var e=_.V.apply(this,arguments)||this;e.isTwoColumns=!0;e.watchFeedBigThumbs=_.M("kevlar_watch_feed_big_thumbs");e.watchFeedBigThumbsOnLockup=_.M("web_watch_next_big_thumbs");e.watchFeedBigThumbsCompactLayout=_.M("web_watch_next_big_thumbs")&&_.M("web_watch_next_big_thumbs_compact_layout");e.watchFeedBigThumbsExpandedLayout=_.M("web_watch_next_big_thumbs")&&_.M("web_watch_next_big_thumbs_expanded_layout");e.watchNextGridHideChips=_.M("kevlar_watch_grid_hide_chips");e.eligibleToSwitchToGrid=
!0;e.disableShortsShelfHeightOverride=_.M("web_shorts_wn_shelf_ratio_tuning");e.isWatchNextGrid=!1;e.reuseComponents=!_.M("kevlar_watch_grid");e.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return e};
_.U(lV,_.V);_.Y=lV.prototype;
_.Y.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.M("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}}};
_.Y.getItemsPath=function(){return"data.results"};
_.Y.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.Y.created=function(){this.ytLazyListBehavior.initialCount=1};
_.Y.ready=function(){_.T8(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.Y.resultsChanged=function(){if(this.data&&this.data.results){for(var e=this.data.results,z=null,C=null,w=0;w<e.length;w++)e[w].relatedChipCloudRenderer?z=e[w].relatedChipCloudRenderer:e[w].itemSectionRenderer&&(C=e[w].itemSectionRenderer);if(z&&C)for(this.set("data.continuations",[]),e=_.r(z.content,_.Hx6).chips,z=0;z<e.length;z++)if(w=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",e[z]),w.loadCached||!w.contents){w.contents=C.contents;break}}};
_.Y.dataChanged=function(){var e=this,z;if((z=this.data)!=null&&z.results&&this.hasAllowedInstreamAd(this.playerData)){if(z=this.data.results.filter(function(J){return!!J.promotedSparklesWebRenderer})){for(var C=0;C<z.length;C++){var w=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",z[C]);
if(w)for(var K=0;K<w.length;K++)w[K]&&w[K].baseUrl&&_.GE(w[K].baseUrl)}this.set("data.results",this.data.results.filter(function(J){return!J.promotedSparklesWebRenderer}))}if(z=this.data.results.filter(function(J){return!!e.getSparklesAd(J)})){z=_.b(z);
for(K=z.next();!K.done;K=z.next())if(w=C=void 0,K=(C=this.getSparklesAd(K.value))==null?void 0:(w=C.errorCommand)==null?void 0:w.loggingUrls)for(C=_.b(K),w=C.next();!w.done;w=C.next())(w=w.value)&&w.baseUrl&&_.GE(w.baseUrl);var G,X;this.set("data.results",(G=this.data)==null?void 0:(X=G.results)==null?void 0:X.filter(function(J){return!J.adSlotRenderer}))}}};
_.Y.getSparklesAd=function(e){var z,C;e=_.r((z=e.adSlotRenderer)==null?void 0:(C=z.fulfillmentContent)==null?void 0:C.fulfilledLayout,_.t_s);return _.r(e==null?void 0:e.renderingContent,yXj)};
_.Y.hasAllowedInstreamAd=function(e){e=this.get("adPlacements",e)||[];for(var z=0;z<e.length;z++){var C=this.get("adPlacementRenderer.config.adPlacementConfig",e[z]);if(C&&C.suppressDisplayAd)return!0}return!1};
_.Y.computeHideUnlimitedOfferModule=function(e,z){return e&&e.offerModule&&z&&e.offerModule.unlimitedOfferModuleRenderer&&e.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(z)?!0:!1};
_.Y.hideUnlimitedOfferModuleChanged=function(){var e=_.XC(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");e&&(e.hidden=this.hideUnlimitedOfferModule)};
_.Y.updateLockupContainerTypes=function(e){if(this.eligibleToSwitchToGrid){var z;(z=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||z.forEach(function(C){C.containerType=e})}};
_.Y.computeHideTvfilmOfferModule=function(e,z){var C,w;return!!((e==null?0:(C=e.offerModule)==null?0:(w=C.tvfilmOfferModuleRenderer)==null?0:w.clientShouldSuppressIfCompanionAdDisplayed)&&z&&this.hasCompanionAds(z))};
_.Y.hideTvfilmOfferModuleChanged=function(){var e=_.XC(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");e&&(e.hidden=this.hideTvfilmOfferModule)};
_.Y.hasCompanionAds=function(e){e=this.get("adPlacements",e)||[];for(var z=0;z<e.length;z++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",e[z]))return!0;var C=void 0,w=void 0,K=void 0;if(!_.M("web_watch_top_banner_companion_check_killswitch")&&((C=e[z])==null?0:(w=C.adPlacementRenderer)==null?0:(K=w.renderer)==null?0:K.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.Y.hasSuppressedResults=function(e){return e==null?!0:e.filter(function(z){return!z.continuationItemRenderer&&!z.compactPromotedVideoRenderer&&!z.promotedSparklesWebRenderer}).length===0};
_.Y.computeShowButton=function(e,z){return this.isWatchNextGrid?e:e||this.hasSuppressedResults(z)};
_.Y.showButtonChanged=function(){if(this.isWatchNextGrid){var e=_.XC(this.hostElement).querySelector("ytd-rich-grid-renderer");e&&this.showButton!==null&&(e.continuationShowButton=this.showButton)}else{e=_.XC(this.hostElement).querySelector("yt-next-continuation");var z=_.XC(this.hostElement).querySelector("ytd-continuation-item-renderer"),C=_.XC(this.hostElement).querySelector("ytd-item-section-renderer");e&&(e.showButton=this.showButton);z&&(z.showButton=this.showButton);C&&(C.continuationShowButton=
this.showButton)}};
_.Y.continuationTap=function(e){var z;if(((z=this.data)==null?void 0:z.continuations)!=null&&e.target.tagName==="TP-YT-PAPER-BUTTON")for(e=this.data.continuations,z=0;z<e.length;z++)e[z].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(e[z].nextContinuationData||{})};
_.Y.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("shown-items-changed",this.shownItems))};
_.lB.Object.defineProperties(lV.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.shownItems)==null||!e.some(function(z){return!!z.lockupViewModel||z.compactVideoRenderer}))}}});
lV.prototype.shownItemsChangedForBinding=lV.prototype.shownItemsChangedForBinding;lV.prototype.showButtonChanged=lV.prototype.showButtonChanged;lV.prototype.hideTvfilmOfferModuleChanged=lV.prototype.hideTvfilmOfferModuleChanged;lV.prototype.updateLockupContainerTypes=lV.prototype.updateLockupContainerTypes;lV.prototype.hideUnlimitedOfferModuleChanged=lV.prototype.hideUnlimitedOfferModuleChanged;lV.prototype.dataChanged=lV.prototype.dataChanged;lV.prototype.resultsChanged=lV.prototype.resultsChanged;
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],lV.prototype,"ytLazyListBehavior",void 0);_.d([_.W(_.FO.YtNextContinuationBehavior),_.B("design:type",Object)],lV.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.W(_.Ea),_.B("design:type",Object)],lV.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],lV.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lV.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],lV.prototype,"playerData",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],lV.prototype,"autoFill",void 0);_.d([_.F({value:60}),_.B("design:type",Number)],lV.prototype,"targetFramerate",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"isTwoColumns",void 0);_.d([_.F(),_.B("design:type",Object)],lV.prototype,"shownItems",void 0);_.d([_.F({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.B("design:type",Boolean)],lV.prototype,"hideUnlimitedOfferModule",void 0);_.d([_.F({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.B("design:type",Boolean)],lV.prototype,"hideTvfilmOfferModule",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"watchFeedBigThumbs",void 0);_.d([_.F(),_.B("design:type",Object)],lV.prototype,"watchFeedBigThumbsOnLockup",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"watchFeedBigThumbsCompactLayout",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"watchFeedBigThumbsExpandedLayout",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"watchNextGridHideChips",void 0);_.d([_.F(),_.B("design:type",Object)],lV.prototype,"eligibleToSwitchToGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"disableShortsShelfHeightOverride",void 0);_.d([_.F({selector:_.Sj,reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"isGridViewEnabled",void 0);
_.d([_.F({selector:_.GGg,reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"isSwatcherooActive",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],lV.prototype,"showMoreButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],lV.prototype,"isWatchNextGrid",void 0);_.d([_.F({computed:"computeShowButton(showMoreButton, data.results)"}),_.B("design:type",Boolean)],lV.prototype,"showButton",void 0);
_.d([_.Ux("data.results.*"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lV.prototype,"resultsChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lV.prototype,"dataChanged",null);_.d([_.mi("hideUnlimitedOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lV.prototype,"hideUnlimitedOfferModuleChanged",null);
_.d([_.P("isGridViewEnabled","containsLockups","data"),_.F({reflectToAttribute:!0}),_.B("design:type",Number),_.B("design:paramtypes",[])],lV.prototype,"lockupContainerType",null);_.d([_.mi("lockupContainerType","data"),_.B("design:type",Function),_.B("design:paramtypes",[Number]),_.B("design:returntype")],lV.prototype,"updateLockupContainerTypes",null);
_.d([_.mi("hideTvfilmOfferModule"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lV.prototype,"hideTvfilmOfferModuleChanged",null);_.d([_.mi("showButton"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lV.prototype,"showButtonChanged",null);_.d([_.mi("shownItems"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lV.prototype,"shownItemsChangedForBinding",null);
_.d([_.P("shownItems"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],lV.prototype,"containsLockups",null);
_.u(lV,"ytd-watch-next-secondary-results-renderer",function(){if(pAY===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);pAY=e}e=pAY;return e},{mode:1});var kow;var QB=function(){var e=_.V.apply(this,arguments)||this;e.isCollapsed=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return e};
_.U(QB,_.V);_.Y=QB.prototype;_.Y.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.onDonateTap=function(){var e=this.get("data.donateButton.buttonRenderer.command");if(e){var z=_.Pr(),C=this.get("data.donateButton.buttonRenderer.trackingParams");z&&C&&_.gQ(z,_.v9(C));this.ytOpenPopupBehavior.openPopup(e)}};
_.Y.onShowMore=function(){this.isCollapsed=!1;var e=_.Pr(),z=this.get("data.expandButton.buttonRenderer.trackingParams");e&&z&&_.gQ(e,_.v9(z))};
_.Y.onShowLess=function(){this.isCollapsed=!0};
_.Y.dataChanged=function(){_.T8(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.Y.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.handleUpdate=function(e){if(e=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",e))this.set("data.startLabel",e.startLabel),this.set("data.endLabel",e.endLabel),this.set("data.progress",e.progress),this.set("data.amountRaisedLabel",e.amountRaisedLabel),this.dataChanged()};
_.Y.handleOpenPopupAction=function(e){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",e)&&_.eA(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.Y.computeHeaderBackgroundUrl=function(e,z){if(e)return z?e.headerBackgroundDarkUrl:e.headerBackgroundUrl};
_.Y.isProgressBarVisible=function(e){return!(!e||e.progress===void 0)};
_.Y.headerBackgroundClass=function(){return _.j5("HTML_DIR")==="rtl"?"flip":""};
QB.prototype.dataChanged=QB.prototype.dataChanged;_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],QB.prototype,"ytOpenPopupBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],QB.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],QB.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],QB.prototype,"isCollapsed",void 0);_.d([_.F({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.B("design:type",String)],QB.prototype,"headerBackgroundUrl",void 0);_.d([_.F(),_.B("design:type",Boolean)],QB.prototype,"isDarkTheme",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QB.prototype,"dataChanged",null);
_.d([_.SL({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],QB);
_.u(QB,"ytd-donation-shelf-renderer",function(){if(kow!==void 0)return kow;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return kow=e},{mode:1});var qX2;var x$L=function(){return _.V.apply(this,arguments)||this};
_.U(x$L,_.V);_.d([_.F(),_.B("design:type",Object)],x$L.prototype,"data",void 0);_.d([_.SL({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],x$L);
_.u(x$L,"ytd-donation-unavailable-renderer",function(){if(qX2!==void 0)return qX2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return qX2=e},{mode:1});var TNT;var mN=function(){return _.V.apply(this,arguments)||this};
_.U(mN,_.V);mN.prototype.computeIconType=function(e){return e?"yt-icons:"+e.toLowerCase():null};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mN.prototype,"data",void 0);_.d([_.SL({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],mN);
_.u(mN,"ytd-limited-state-message-renderer",function(){if(TNT!==void 0)return TNT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return TNT=e},{mode:1});var $$a;var aU=function(){return _.V.apply(this,arguments)||this};
_.U(aU,_.V);aU.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
aU.prototype.onTap=function(e){var z=this.data&&this.data.endpoint;z&&!_.zi(_.cJ(e),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.pi(this.hostElement,"yt-navigate",{endpoint:z})};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],aU.prototype,"data",void 0);_.d([_.SL({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],aU);
_.u(aU,"ytd-autotagging-metadata-renderer",function(){if($$a!==void 0)return $$a;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return $$a=e},{mode:1});var lPT;var nt=function(){return _.V.apply(this,arguments)||this};
_.U(nt,_.V);nt.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],nt.prototype,"data",void 0);_.d([_.SL({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],nt);
_.u(nt,"ytd-autotagging-metadata-row-renderer",function(){if(lPT!==void 0)return lPT;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return lPT=e},{mode:1});var Qpg;var m$2;var Mb=function(){var e=_.V.apply(this,arguments)||this;e.engagementPanelContent=!1;return e};
_.U(Mb,_.V);Mb.prototype.computeHasDividerLine=function(e,z){return e&&!z};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Mb.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.B("design:type",Boolean)],Mb.prototype,"hasDividerLine",void 0);_.d([_.F(),_.B("design:type",Object)],Mb.prototype,"engagementPanelContent",void 0);
_.d([_.SL({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Mb);
_.u(Mb,"ytd-metadata-row-header-renderer",function(){if(m$2!==void 0)return m$2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return m$2=e},{mode:1});var aPt;var rI=function(){return _.V.apply(this,arguments)||this};
_.U(rI,_.V);rI.prototype.computeHasDividerLine=function(e){return e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rI.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],rI.prototype,"hasDividerLine",void 0);_.d([_.SL({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],rI);
_.u(rI,"ytd-metadata-row-renderer",function(){if(aPt!==void 0)return aPt;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return aPt=e},{mode:1});var n1L;var Myl=function(){return _.V.apply(this,arguments)||this};
_.U(Myl,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Myl.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Myl.prototype,"data",void 0);_.d([_.SL({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Myl);
_.u(Myl,"ytd-metadata-with-image-row-renderer",function(){if(n1L!==void 0)return n1L;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return n1L=e},{mode:1});var rwT;var HD=function(){var e=_.V.apply(this,arguments)||this;e.rounded=!0;e.fixie=!1;e.fullWidth=!1;return e};
_.U(HD,_.V);_.Y=HD.prototype;_.Y.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.onDataChanged=function(){var e=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(z){e.onEndpointLinkKeyPress(z)}))};
_.Y.onEndpointLinkKeyPress=function(e){e.target===this.endpointLink&&e.keyCode===13&&_.pi(this.hostElement,"click")};
_.Y.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var e;if((e=this.data)==null?0:e.endpoint)_.KK(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.Y.onYtNavigate=function(e){this.endpointHref||(e.stopPropagation(),e.preventDefault())};
_.Y.onInformationButtonContainerClick=function(e){e.target.id!=="information-button-container"&&(e.stopPropagation(),e.preventDefault())};
_.Y.computeStyle=function(e){return e};
_.Y.computeIsThumbnailStyle=function(e){return e==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.Y.computeThumbnailWidth=function(e){switch(e){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}};
_.Y.computeThumbnailObjectFit=function(e){switch(e){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.lB.Object.defineProperties(HD.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?0:e.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
HD.prototype.onYtNavigate=HD.prototype.onYtNavigate;HD.prototype.onClick=HD.prototype.onClick;HD.prototype.onDataChanged=HD.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],HD.prototype,"componentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],HD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],HD.prototype,"componentStyle",void 0);_.d([_.F({computed:"computeIsThumbnailStyle(data.style)"}),_.B("design:type",Boolean)],HD.prototype,"isThumbnailStyle",void 0);_.d([_.F({computed:"computeThumbnailObjectFit(data.style)"}),_.B("design:type",String)],HD.prototype,"thumbnailObjectFit",void 0);
_.d([_.F({computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],HD.prototype,"thumbnailWidth",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HD.prototype,"rounded",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HD.prototype,"fixie",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],HD.prototype,"fullWidth",void 0);_.d([_.nP("#endpoint-link"),_.B("design:type",HTMLAnchorElement)],HD.prototype,"endpointLink",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],HD.prototype,"onDataChanged",null);_.d([_.P("data.endpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],HD.prototype,"endpointHref",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],HD.prototype,"onClick",null);
_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],HD.prototype,"onYtNavigate",null);_.d([_.SL({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],HD);
_.u(HD,"ytd-rich-metadata-renderer",function(){if(rwT!==void 0)return rwT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return rwT=e},{mode:_.bA("kevlar_poly_si_batch_j075")?1:2});var HiC;var Ui=function(){var e=_.V.apply(this,arguments)||this;e.fixie=!1;e.fullWidth=!1;return e};
_.U(Ui,_.V);Ui.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Ui.prototype.computeHasDividerLine=function(e){return e};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ui.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.B("design:type",Boolean)],Ui.prototype,"hasDividerLine",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ui.prototype,"fixie",void 0);_.d([_.F(),_.B("design:type",Object)],Ui.prototype,"fullWidth",void 0);
_.d([_.SL({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Ui);
_.u(Ui,"ytd-rich-metadata-row-renderer",function(){if(HiC!==void 0)return HiC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return HiC=e},{mode:1});var vD=function(){var e=_.V.apply(this,arguments)||this;e.engagementPanelContent=!1;e.fixie=!1;e.fullWidth=!1;return e};
_.U(vD,_.V);
vD.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"}}}};
vD.prototype.computeCollapsibleItems=function(e,z,C){return e===void 0||z===void 0||C===void 0||C?[]:e.slice(z)};
vD.prototype.computeAlwaysShownItems=function(e,z){return e&&e.length?e.slice(0,z):[]};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vD.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],vD.prototype,"collapsed",void 0);
_.d([_.F({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.B("design:type",Array)],vD.prototype,"alwaysShownItems",void 0);_.d([_.F({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.B("design:type",Array)],vD.prototype,"collapsibleItems",void 0);_.d([_.F(),_.B("design:type",Object)],vD.prototype,"engagementPanelContent",void 0);_.d([_.F(),_.B("design:type",Object)],vD.prototype,"fixie",void 0);
_.d([_.F(),_.B("design:type",Object)],vD.prototype,"fullWidth",void 0);_.d([_.SL({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],vD);
_.u(vD,"ytd-metadata-row-container-renderer",function(){if(Qpg!==void 0)return Qpg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Qpg=e},{mode:1});var U$g;var IU=function(){var e=_.V.apply(this,arguments)||this;e.currentPageUrl="";e.baseUrl="";e.isHiddenByUser=null;e.hidden=!1;e.showAboveScrim=!1;e.watchNextGrid=_.M("kevlar_watch_grid");e.modernButtons=_.M("web_modern_buttons");e.roundedContainer=!0;e.noBorder=!1;e.roundBackground=!_.M("live_chat_round_background_killswitch");e.overflowHideChat=_.M("live_chat_overflow_hide_chat");e.forceDarkTheme=!1;e.theaterWatchWhile=!1;e.isListeningForPlayerProgress=!1;e.JSC$23286_playerEvents=new Map;e.isFrameReady=
!1;e.player=null;e.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 e};
_.U(IU,_.V);_.Y=IU.prototype;_.Y.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.zj(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.Y.created=function(){var e=this;this.handleIframeEventListener=function(z){e.handleIframeEvent(z)};
this.handleKeyboardEventListener=function(z){e.handleKeyboardEvent(z)};
this.JSC$23286_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$23286_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23286_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$23286_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$23286_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.Y.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()};
_.Y.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};
_.Y.computeBaseUrl=function(e){var z="/live_chat";this.isChatReplay()&&(z="/live_chat_replay");return _.vq(_.UV(_.Hq(_.Cj(e),z),null),"").toString()};
_.Y.dataChanged=function(){_.M("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.Y.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var e=this.url;if(this.isChatReplay()&&this.player){var z=Math.floor(this.player.getProgressState().current*1E3);e=_.oI(_.Cj(e),"playerOffsetMs",z.toString()).toString()}z=this.chatframe;try{var C=e==="about:blank"?_.pLa:_.gw(e),w=z.contentDocument.location,K=_.cL(C);K!==void 0&&w.replace(K)}catch(G){z.src=e}}};
_.Y.collapsedChanged=function(){_.pi(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.Y.handleIframeEvent=function(e){if(e&&this.baseUrl.startsWith(e.origin)&&e.source===this.chatframe.contentWindow&&_.gL(e.data))if(e.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(e);else if(e.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(e.data["yt-show-feedback-dialog"]){var z=_.lh().resolve(_.$B(_.gaZ));if(z){var C=e.ports,w;C&&C.length&&(w=function(){C[0].postMessage({})});
e=e.data["yt-show-feedback-dialog"];z.showFeedbackDialog(e.customProductData,e.feedbackContent,w,e.bucket)}}else if(e.data["yt-show-survey"])_.pi(this.hostElement,"yt-show-survey",e.data["yt-show-survey"]);else if(e.data["yt-purchase-membership"])_.lh().resolve(_.ms).resolveCommand(e.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(e.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(e.data["yt-tunnel-out-live-service-request"]);else if(e.data["yt-user-activity"])_.m1();
else if(e.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(e.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(e.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(e.data["yt-open-popup"]);else if(e.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(e.data["yt-log-flow-logging-event-command"]);else if(e.data["yt-hide-live-chat"])this.onShowHideChat();else e.data["yt-report-moderation-state-log"]&&
this.player&&(z={cpn:this.player.getVideoData().cpn},_.gm("liveChatBeingModerated",z))};
_.Y.attachLiveChatResponseVeTrackingParams=function(e){e=_.v9(e);var z=_.Pr(),C=_.pd("liveChatRenderer.trackingParams",this.data);z&&C&&_.id(z,_.v9(C),e)};
_.Y.handleBuyflowMessages=function(e){var z=e.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,C=e.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,w=e.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.iLg(_.bH(_.y$),z.replace(/-/g,"+").replace(/_/g,"/"),function(K){e.ports[0].postMessage({success:!0,buyFlowResponse:K})},void 0,function(K){e.ports[0].postMessage({success:!1,
error:K&&K.message||"Buyflow rejected without error."})},_.Tj().get("hl"),void 0,function(){e.ports[0].postMessage({closed:!0})},C,w)};
_.Y.setupPlayerProgressRelay=function(){var e=this;if(!this.isListeningForPlayerProgress){var z=_.Gi();z!=null&&z.getPlayerPromise&&(z.getPlayerPromise().then(function(C){e.playerApiReady(C)}),this.isListeningForPlayerProgress=!0)}};
_.Y.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.Y.playerApiReady=function(e){this.setPlayer(e)};
_.Y.playerProgressHandler=function(){if(this.player){var e=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":e.current})}};
_.Y.playerAdStartHandler=function(e){this.postToContentWindow({"yt-player-ad-start":e})};
_.Y.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.Y.playerStateChangeHandler=function(e){this.postToContentWindow({"yt-player-state-change":e})};
_.Y.setPlayer=function(e){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23286_playerEvents);e&&(this.player=e,this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$23286_playerEvents),_.pi(this.hostElement,"player-api-ready"))};
_.Y.liveChatPageUrl=function(e,z,C,w){return!C||z?"about:blank":C.liveChatRenderer?(z=_.Cj(this.currentPageUrl).JSC$10201_queryData_,dUw(z),e=_.Cj(e),z.add("continuation",C.liveChatRenderer.continuations[0].reloadContinuationData.continuation),C=_.i6()==="USER_INTERFACE_THEME_DARK",(w||C)&&z.add("dark_theme","true"),_.UV(e,z),w=_.Cj(e.toString()),C=w.JSC$10201_queryData_,"SESSION_INDEX"in _.tR&&(C.add("authuser",_.j5("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.tR&&C.add("pageId",_.j5("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.tR&&C.add("sdc",_.j5("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),w.toString()):""};
_.Y.isCollapsed=function(e,z){return z!==null?z:this.isChatReplay()||e&&e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage?!0:e?e.liveChatRenderer?e.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.M("live_chat_hide_premiere_replay_message")||e.conversationBarRenderer&&e.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.Y.isHidden=function(e,z,C){var w=z&&z.conversationBarRenderer&&z.conversationBarRenderer.availabilityMessage,K=z&&z.liveChatRenderer&&z.liveChatRenderer.showHideButton,G=z&&z.liveChatRenderer&&z.liveChatRenderer.showButton;return C&&e&&!w&&!G||!C&&e&&!w&&!K?!0:z&&z.liveChatRenderer&&z.liveChatRenderer.initialDisplayState?z.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.Y.computeButtonOverride=function(e,z){if(e&&z)return{type:"outline"}};
_.Y.setCollapsedState=function(e){_.r(e,_.jYT)&&((this.isHiddenByUser=!!_.r(e,_.jYT).collapsed)||_.eA(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.Y.forwardReduxActionToIframe=function(e){this.postToContentWindow({"yt-live-chat-forward-redux-action":e})};
_.Y.onLoopRangeChange=function(e){this.showAboveScrim=!(e==null||!e.postId)};
_.Y.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.Y.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.Y.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.Y.sendDarkThemePostMessage=function(e){this.postToContentWindow({"yt-live-chat-set-dark-theme":e})};
_.Y.onLiveChatBuyFlowCallback=function(e){this.postToContentWindow({"yt-live-chat-buy-flow-callback":e})};
_.Y.handleKeyboardEvent=function(e){(0,_.de.containsValue)(NKl,e.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:e.type,keyCode:e.keyCode}})};
_.Y.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.Y.postToContentWindow=function(e){if(this.isFrameReady)try{var z=window.location.protocol+"//"+window.location.host,C;(C=this.chatframe)!=null&&C.contentWindow?this.chatframe.contentWindow.postMessage(e,z):_.AX(new _.uh("Tried posting a message to an iframe with no content window",e))}catch(w){_.yG(w)}};
_.Y.shouldHideChatFrame=function(e){return e&&_.M("hide_live_chat_button_when_collapsed")};
_.lB.Object.defineProperties(IU.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.M("live_chat_overflow_hide_chat")||_.M("web_watch_chat_hide_button_killswitch"))return _.M("live_chat_overflow_hide_chat");var e,z,C,w;return!!((e=this.data)==null?0:(z=e.liveChatRenderer)==null?0:(C=z.header)==null?0:(w=C.liveChatHeaderRenderer)==null?0:w.collapseButton)}}});
IU.prototype.collapsedChanged=IU.prototype.collapsedChanged;IU.prototype.urlChanged=IU.prototype.urlChanged;IU.prototype.dataChanged=IU.prototype.dataChanged;IU.prototype.onShowHideChat=IU.prototype.onShowHideChat;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],IU.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],IU.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],IU.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],IU.prototype,"ytOpenPopupBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],IU.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],IU.prototype,"currentPageUrl",void 0);
_.d([_.F({computed:"computeBaseUrl(currentPageUrl,data)"}),_.B("design:type",Object)],IU.prototype,"baseUrl",void 0);_.d([_.F({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.B("design:type",String)],IU.prototype,"url",void 0);_.d([_.F(),_.B("design:type",Object)],IU.prototype,"isHiddenByUser",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.B("design:type",Object)],IU.prototype,"hidden",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.B("design:type",Boolean)],IU.prototype,"collapsed",void 0);_.d([_.F({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.B("design:type",Boolean)],IU.prototype,"hideChatFrame",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IU.prototype,"showAboveScrim",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IU.prototype,"watchNextGrid",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],IU.prototype,"modernButtons",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IU.prototype,"roundedContainer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IU.prototype,"noBorder",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],IU.prototype,"roundBackground",void 0);
_.d([_.F({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.B("design:type",Object)],IU.prototype,"toggleButtonOverride",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],IU.prototype,"overflowHideChat",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IU.prototype,"forceDarkTheme",void 0);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],IU.prototype,"enableShowWithoutHideChatButton",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],IU.prototype,"theaterWatchWhile",void 0);_.d([_.nP("#chatframe"),_.B("design:type",HTMLIFrameElement)],IU.prototype,"chatframe",void 0);_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IU.prototype,"onShowHideChat",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IU.prototype,"dataChanged",null);
_.d([_.mi("url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IU.prototype,"urlChanged",null);_.d([_.mi("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IU.prototype,"collapsedChanged",null);_.d([_.SL({is:"ytd-live-chat-frame",disableElementRegistration:!0})],IU);
_.u(IU,"ytd-live-chat-frame",function(){if(U$g!==void 0)return U$g;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return U$g=e},{mode:1});var v12;var WD=function(){var e=_.V.apply(this,arguments)||this;e.modern=_.M("web_modern_buttons");e.buttonOverrides={style:"call-to-action",type:"filled"};return e};
_.U(WD,_.V);WD.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=_.EG(this.data.backgroundColor)))};
WD.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var e=this.getFormattedStringLoggingDirectives(this.data.headline);e&&this.rendererBehavior.logExplicitClick(e)}};
WD.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var e=this.getFormattedStringLoggingDirectives(this.data.description);e&&this.rendererBehavior.logExplicitClick(e)}};
WD.prototype.getFormattedStringLoggingDirectives=function(e){return e&&e.runs&&e.runs.length>0&&e.runs[0]&&e.runs[0].loggingDirectives?e.runs[0].loggingDirectives:null};
WD.prototype.dataChanged=WD.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],WD.prototype,"rendererBehavior",void 0);_.d([_.W(ZGL.YtMacroReplacementBehavior),_.B("design:type",Object)],WD.prototype,"macroReplacementBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],WD.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],WD.prototype,"navigationEndpoint",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],WD.prototype,"enableColors",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],WD.prototype,"modern",void 0);_.d([_.F(),_.B("design:type",Object)],WD.prototype,"buttonOverrides",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],WD.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],WD);
_.u(WD,"ytd-action-basic-immersive-content-renderer",function(){if(v12!==void 0)return v12;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return v12=e},{mode:1});var IPa;var Wbj;var PD=function(){return _.V.apply(this,arguments)||this};
_.U(PD,_.V);PD.prototype.dataChanged=function(){var e;((e=this.data)==null?void 0:e.backgroundColor)!==void 0&&_.T8(this.hostElement,{"--bgu-color":_.EG(this.data.backgroundColor)})};
PD.prototype.onImageTileClick=function(){var e;((e=this.data)==null?0:e.navigationEndpoint)&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var z;((z=this.data)==null?0:z.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.lB.Object.defineProperties(PD.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.data)==null?void 0:e.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 e;return((e=this.data)==null?void 0:e.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var e,z,C;if(((e=this.data)==null?void 0:(z=e.detailsLine)==null?void 0:z.texts)!=null&&((C=this.data)==null?void 0:C.detailsLine.texts.length)>0){var w;return(w=this.data)==null?void 0:w.detailsLine.texts.map(function(K){return K.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var e,z,C;if(((e=this.data)==null?void 0:(z=e.optionalDetailsLine)==null?void 0:z.texts)!=null&&((C=this.data)==null?void 0:C.optionalDetailsLine.texts.length)>0){var w;return(w=this.data)==null?void 0:w.optionalDetailsLine.texts.map(function(K){return K.text}).join("")}return null}}});
PD.prototype.dataChanged=PD.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],PD.prototype,"rendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],PD.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],PD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.backgroundColor"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PD.prototype,"hasBackgroundColor",null);
_.d([_.P("data.objectFit"),_.B("design:type",Object),_.B("design:paramtypes",[])],PD.prototype,"getObjectFit",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.tileRenderingStyle"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],PD.prototype,"hasTileMetadata",null);_.d([_.P("data.detailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],PD.prototype,"getSecondaryDetails",null);
_.d([_.P("data.optionalDetailsLine"),_.B("design:type",Object),_.B("design:paramtypes",[])],PD.prototype,"getOptionalDetails",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],PD.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],PD);
_.u(PD,"ytd-image-tile-renderer",function(){if(Wbj!==void 0)return Wbj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Wbj=e},{mode:1});var PYg;var RU=function(){return _.V.apply(this,arguments)||this};
_.U(RU,_.V);RU.prototype.getOpenLinkIcon=function(){return _.M("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
RU.prototype.onSitelinkTap=function(){_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.M("kevlar_command_handler_migration_killswitch"))_.KK(this.hostElement,this.data.clickCommands,this.hostElement);else for(var e=_.b(this.data.clickCommands),z=e.next();!z.done;z=e.next())this.ytComponentBehavior.resolveCommand(z.value)};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],RU.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],RU.prototype,"rendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],RU.prototype,"data",void 0);_.d([_.SL({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],RU);
_.u(RU,"ytd-sitelink-renderer",function(){if(PYg!==void 0)return PYg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return PYg=e},{mode:1});var Lt=function(){var e=_.V.apply(this,arguments)||this;e.paddingFix=_.M("enable_ads_web_ep_buenos_aires_and_padding_fix");return e};
_.U(Lt,_.V);Lt.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"}}}};
Lt.prototype.dataChanged=function(){var e=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;e.ytMacroReplacementBehavior.sendServiceRequestAction([z])})};
Lt.prototype.shouldHideFooter=function(e){return!(e&&_.M("use_ads_engagement_panel_desktop_footer_cta"))};
_.lB.Object.defineProperties(Lt.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:e.imageTileRenderers)===void 0||((z=this.data)==null?void 0:z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(C){var w;return(w=_.r(C,jC2))==null?void 0:w.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:e.imageTileRenderers)===void 0||((z=this.data)==null?void 0:z.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(C){var w;return((w=_.r(C,jC2))==null?void 0:w.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Lt.prototype.dataChanged=Lt.prototype.dataChanged;_.d([_.W(ZGL.YtMacroReplacementBehavior),_.B("design:type",Object)],Lt.prototype,"ytMacroReplacementBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Lt.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Lt.prototype,"paddingFix",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Lt.prototype,"removeBorderFromImageTiles",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.imageTileRenderers"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Lt.prototype,"useFooteredMetadataRenderingStyle",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Lt.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Lt);
_.u(Lt,"ytd-action-engagement-panel-content-renderer",function(){if(IPa!==void 0)return IPa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return IPa=e},{mode:1});var RDL;var LbC=_.f(function(e){var z=e.data;var C=e.customCommandResolver;return _.x("ad-grid-card-image-full-metadata-view-model",{class:function(){var w;return((w=z().interaction)==null?0:w.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(w){var K,G=(K=z().interaction)==null?void 0:K.onFirstVisible;w&&G&&_.NF(G)},
showOption:_.sD}),_.tm(function(){return z().interaction},C)),
"aria-label":function(){var w,K;return(w=z().interaction)==null?void 0:(K=w.accessibility)==null?void 0:K.label}},_.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.x(_.PF,{data:function(){return z().adImage}},{adImageViewModel:function(w){return _.x(_.oz,{data:w.data,
customCommandResolver:C})}})),_.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.x(_.l,{cond:function(){return z().headline},
then:function(w){return _.x(_.U2,{text:w,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.x(_.l,{cond:function(){return z().detailsLine},
then:function(w){return _.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.x(_.PF,{data:w},{adDetailsLineViewModel:function(K){return _.x(_.ZN,{data:K.data,customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.x(_.l,{cond:function(){return z().secondaryDetailsLine},
then:function(w){return _.x("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.x(_.PF,{data:w},{adDetailsLineViewModel:function(K){return _.x(_.ZN,{data:K.data,customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Xn");var hDy=_.f(function(e){var z=e.data;var C=e.customCommandResolver;return _.x("ad-grid-card-image-view-model",{class:function(){var w;return((w=z().interaction)==null?0:w.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(w){var K,G=(K=z().interaction)==null?void 0:K.onFirstVisible;w&&G&&_.NF(G)},
showOption:_.sD}),_.tm(function(){return z().interaction},C)),
"aria-label":function(){var w,K;return(w=z().interaction)==null?void 0:(K=w.accessibility)==null?void 0:K.label}},_.x(_.PF,{data:function(){return z().adImage}},{adImageViewModel:function(w){return _.x(_.oz,{data:w.data,
customCommandResolver:C})}}),_.x("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.x(_.PF,{data:function(){return z().adCardBadge}},{adCardBadgeViewModel:_.wNL})))},"Yn");var Oil=_.f(function(e){var z=e.data;var C=e.customCommandResolver;return _.x("ad-grid-card-text-view-model",{class:function(){var w;return((w=z().interaction)==null?0:w.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(w){var K,G=(K=z().interaction)==null?void 0:K.onFirstVisible;w&&G&&_.NF(G)},
showOption:_.sD}),_.tm(function(){return z().interaction},C)),
"aria-label":function(){var w,K;return(w=z().interaction)==null?void 0:(K=w.accessibility)==null?void 0:K.label}},_.x("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.x(_.l,{cond:function(){return z().title},
then:function(w){return _.x(_.U2,{text:w,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.x("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.x(_.ui,{each:function(){var w;
return((w=z())==null?void 0:w.descriptions)||[]},
keyBy:"INDEX"},function(w){return _.x(_.U2,{text:w,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.x("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.x(_.PF,{data:function(){return z().moreInfoButton}},{adButtonViewModel:function(w){return _.x(_.t_,{data:w.data,
customCommandResolver:C})}})))},"Zn");var E1L=_.f(function(e){var z=e.data;var C=e.customCommandResolver;var w=e.adGridCardCollectionStyle;return _.x("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(K){var G,X=(G=z().interaction)==null?void 0:G.onFirstVisible;K&&X&&_.NF(X)},
showOption:_.sD})),style:function(){return"grid-template-columns: repeat("+Af2(w?w():z().style)+", minmax(0, 1fr));"}},_.x(_.PF,{data:function(){var K;
return(K=z())==null?void 0:K.gridCards}},{adGridCardImageViewModel:function(K){return _.x(hDy,{data:K.data,
customCommandResolver:C})},
adGridCardImageFullMetadataViewModel:function(K){return _.x(LbC,{data:K.data,customCommandResolver:C})},
adGridCardTextViewModel:function(K){return _.x(Oil,{data:K.data,customCommandResolver:C})}}))},"$n");_.KU(_.f(function(e){var z=e.data;return _.x("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.ej(_.aO({visibilityCallback:function(C){var w,K=(w=z().interaction)==null?void 0:w.onFirstVisible;C&&K&&_.NF(K)},
showOption:_.sD}),_.tm(function(){return z().interaction},p5C))},_.x("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.x(_.l,{cond:_.MML("(min-width: "+((0,_.cz)()+_.ff)+"px)"),
then:function(){return _.x(_.PF,{data:function(){return z().adGridCardCollection}},{adGridCardCollectionViewModel:function(C){return _.x(E1L,{data:C.data,
customCommandResolver:p5C})}})},
else:function(){return _.x(_.PF,{data:function(){return z().adGridCardCollection}},{adGridCardCollectionViewModel:function(C){return _.x(E1L,{data:C.data,
customCommandResolver:p5C,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.x("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.x(_.PF,{data:function(){return z().adButton}},{adButtonViewModel:function(C){return _.x(_.t_,{data:C.data,
customCommandResolver:p5C})}})))},"ao"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;return _.x("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.ej(_.aO({visibilityCallback:function(C){var w,K=(w=z().interaction)==null?void 0:w.onFirstVisible;C&&K&&_.NF(K)},
showOption:_.sD}),_.tm(function(){return z().interaction},eUg))},_.x("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.x(_.PF,{data:function(){if(_.MML("(min-width: "+((0,_.cz)()+_.ff)+"px)")())var C=z().adGridCardCollection;
else{C=Object.assign({},_.r(z().adGridCardCollection,cXT));var w;C.gridCards!==void 0&&((w=C.gridCards)==null?void 0:w.length)>1?C.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":C.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";C={adGridCardCollectionViewModel:C}}return C}},{adGridCardCollectionViewModel:function(C){return _.x(E1L,{data:C.data,
customCommandResolver:eUg})}})),_.x("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.x(_.PF,{data:function(){return z().adButton}},{adButtonViewModel:function(C){return _.x(_.t_,{data:C.data,
customCommandResolver:eUg})}})))},"bo"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.vh}});var hc=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return e};
_.U(hc,_.V);_.Y=hc.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.getDataFromPlayerAndRender()};
_.Y.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.Y.getDataFromPlayerAndRender=function(){var e=this,z=_.ox(this.hostElement);z&&z.getPlayerPromise().then(function(C){e.getCachedDataAndListen(C)})};
_.Y.getCachedDataAndListen=function(e){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(e,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(e,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=e)};
_.Y.resolveCachedActions=function(){var e=_.pd("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(e=e&&e())&&!_.de.isEmpty(e)&&this.sendUpdateEngagementPanelAction(e);(e=(e=_.pd("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&e())&&!_.de.isEmpty(e)&&this.sendChangeEngagementPanelVisibilityAction(e);(e=(e=_.pd("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&e())&&!_.de.isEmpty(e)&&this.sendScrollToEngagementPanelCommand(e)};
_.Y.sendUpdateEngagementPanelAction=function(e){var z;_.eA(this.hostElement,"yt-update-engagement-panel-action",[(z=_.de.get(e,"action"))!=null?z:e])};
_.Y.sendChangeEngagementPanelVisibilityAction=function(e){_.eA(this.hostElement,"yt-change-engagement-panel-visibility-action",[e])};
_.Y.sendScrollToEngagementPanelCommand=function(e){_.eA(this.hostElement,"yt-scroll-to-engagement-panel-command",[e])};
_.Y.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.M("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.AX(Error("ip"))};
hc.prototype.dataChanged=hc.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],hc.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],hc.prototype,"componentBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],hc.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hc.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],hc.prototype,"player",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],hc.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],hc);
_.u(hc,"ytd-ads-engagement-panel-content-renderer",function(){if(RDL!==void 0)return RDL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return RDL=e},{mode:1});var Fby;var Oi=function(){var e=_.V.apply(this,arguments)||this;e.player=null;e.JSC$23323_playerEvents=new Map;e.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return e};
_.U(Oi,_.V);_.Y=Oi.prototype;_.Y.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]]"}}}}}};
_.Y.created=function(){this.player=null;this.JSC$23323_playerEvents=new Map;this.JSC$23323_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$23323_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23323_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23323_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Y.attached=function(){var e=this,z=_.ox();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));z&&z.getPlayerPromise().then(function(C){e.setPlayer(C);e.set("isPageLoad",!1)})};
_.Y.setPlayer=function(e){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23323_playerEvents);this.set("player",e);e&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$23323_playerEvents),e.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.Y.onLoopRangeChange=function(e){var z=_.lh().resolve(_.$B(_.wE));if((!z||z.isOnWatch())&&this.hostElement.clientHeight){var C;!e&&((C=this.data)==null?0:C.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.Y.onVideoProgress=function(e){var z,C,w=((z=this.player)==null?void 0:(C=z.getPresentingPlayerType)==null?void 0:C.call(z))===2;this.isAdPlaying!==w&&this.set("isAdPlaying",w);var K;if(!w&&(K=this.player)!=null&&K.getLoopRange()){C=this.player.getLoopRange();z=C.startTimeMs;C=C.endTimeMs;w=this.player.getProgressState(1).seekableStart;var G;z<w*1E3&&((G=this.data)==null?0:G.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
e=C<e*1E3;var X;((X=this.player)==null?0:X.getLoopRange())&&e&&this.player.seekTo(z/1E3)}};
_.Y.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Y.onYtDeleteClipEngagementPanelCommand=function(e){_.r(e,k4a).command&&this.ytComponentBehavior.resolveCommand(_.r(e,k4a).command)};
_.lB.Object.defineProperties(Oi.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.voteCount)||_.AO("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Oi.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Oi.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],Oi.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Oi.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Oi.prototype,"isAdPlaying",void 0);_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Oi.prototype,"isPageLoad",void 0);_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Oi.prototype,"isDarkTheme",void 0);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Oi.prototype,"voteCount",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Oi.prototype,"channelEndpoint",null);_.d([_.P("channelEndpoint"),_.B("design:type",Object),_.B("design:paramtypes",[])],Oi.prototype,"channelHref",null);_.d([_.SL({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Oi);
_.u(Oi,"ytd-clip-attribution-renderer",function(){if(Fby!==void 0)return Fby;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Fby=e},{mode:1});var Vyg;var Ei=function(){var e=_.V.apply(this,arguments)||this;e.player=null;e.JSC$23328_playerEvents=new Map;return e};
_.U(Ei,_.V);_.Y=Ei.prototype;_.Y.created=function(){this.player=null;this.JSC$23328_playerEvents=new Map;this.JSC$23328_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$23328_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$23328_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.Y.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Y.attached=function(){var e=this,z=_.ox();z&&z.getPlayerPromise().then(function(C){e.setPlayer(C);e.set("isPageLoad",!1)})};
_.Y.setPlayer=function(e){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23328_playerEvents);this.set("player",e);if(e){this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$23328_playerEvents);var z;(e==null?void 0:(z=e.getPresentingPlayerType)==null?void 0:z.call(e))===2&&this.playerAdStartHandler()}};
_.Y.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.Y.onVideoProgress=function(){var e,z,C=((e=this.player)==null?void 0:(z=e.getPresentingPlayerType)==null?void 0:z.call(e))===2;this.isAdPlaying!==C&&this.set("isAdPlaying",C)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],Ei.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ei.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Ei.prototype,"isAdPlaying",void 0);
_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Ei.prototype,"isPageLoad",void 0);_.d([_.SL({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Ei);
_.u(Ei,"ytd-clip-section-footer-renderer",function(){if(Vyg!==void 0)return Vyg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Vyg=e},{mode:1});var fPj;var SXC;var uuy=function(){return _.V.apply(this,arguments)||this};
_.U(uuy,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uuy.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uuy.prototype,"data",void 0);_.d([_.SL({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],uuy);
_.u(uuy,"ytd-clip-ad-state-renderer",function(){if(SXC!==void 0)return SXC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return SXC=e},{mode:1});var d$2;var F7=function(){var e=_.V.apply(this,arguments)||this;e.value="";e.valid=!1;e.userChangedValue=!1;e.disabled=!1;e.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return e};
_.U(F7,_.V);_.Y=F7.prototype;_.Y.detached=function(){this.userChangedValue=!1};
_.Y.handleKeyDown=function(e){if(_.nb)var z=13;else _.AkC&&_.MI?z=13:z=13;e.keyCode===z&&e.preventDefault()};
_.Y.handleInput=function(){var e=_.XC(this.hostElement).querySelector("#title");if(e){var z=(e.value||"").replace(/\r|\n/g," ");this.set("value",z);e.value=z;this.valid=e.validate();this.userChangedValue=!0}};
_.Y.handleBlur=function(){this.valid=_.XC(this.hostElement).querySelector("#title").validate()};
_.Y.onValueChanged=function(){_.pi(this.hostElement,"title-changed",{title:this.value})};
_.Y.onValidChanged=function(){_.pi(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.Y.setInput=function(e,z){var C=_.XC(this.hostElement).querySelector("#title");C&&(C.value=e,this.handleInput(),z&&(C.invalid=!1,this.valid=!0))};
_.Y.onClipCreationDisable=function(){this.set("disabled",!0)};
_.Y.onClipCreationEnable=function(){this.set("disabled",!1)};
_.Y.onClipCreationVisibilityChange=function(e){var z=this;e.visible?requestAnimationFrame(function(){var C;((C=_.XC(z.hostElement).querySelector("#title"))==null?void 0:C.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
F7.prototype.onValidChanged=F7.prototype.onValidChanged;F7.prototype.onValueChanged=F7.prototype.onValueChanged;F7.prototype.handleBlur=F7.prototype.handleBlur;F7.prototype.handleInput=F7.prototype.handleInput;F7.prototype.handleKeyDown=F7.prototype.handleKeyDown;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],F7.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],F7.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],F7.prototype,"value",void 0);_.d([_.F(),_.B("design:type",Object)],F7.prototype,"valid",void 0);_.d([_.F(),_.B("design:type",Object)],F7.prototype,"userChangedValue",void 0);_.d([_.F(),_.B("design:type",Object)],F7.prototype,"disabled",void 0);_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],F7.prototype,"handleKeyDown",null);
_.d([_.Qi("input"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F7.prototype,"handleInput",null);_.d([_.Qi("blur"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F7.prototype,"handleBlur",null);_.d([_.mi("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F7.prototype,"onValueChanged",null);
_.d([_.mi("valid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],F7.prototype,"onValidChanged",null);_.d([_.SL({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],F7);
_.u(F7,"ytd-clip-creation-text-input-renderer",function(){if(d$2!==void 0)return d$2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return d$2=e},{mode:1});var D$w;var iil;var NNC;var spg;var BNy;var VB=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};e.pendingStoryboardImages_={};e.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];e.tickLabelInterval=30;e.mediumTickInterval=5;e.largeTickInterval=15;e.aboveRulerHeight=32;e.rulerHeight=50;e.smallTickHeight=4;e.mediumTickHeight=8;e.largeTickHeight=16;e.mediaListeners_=
{};return e};
_.U(VB,_.V);_.Y=VB.prototype;_.Y.attached=function(){var e=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(z){z=_.b(["screen and (min-resolution: "+z+")","screen and (max-resolution: "+z+")"]);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=window.matchMedia(C);w&&(e.mediaListeners_[C]=e.updatePixelRatio_.bind(e),w.addEventListener?w.addEventListener("change",e.mediaListeners_[C]):w.addListener?w.addListener(e.mediaListeners_[C]):delete e.mediaListeners_[C])}})};
_.Y.detached=function(){this.setPlayer(null);for(var e=_.b(Object.keys(this.mediaListeners_)),z=e.next();!z.done;z=e.next()){var C=z.value;z=this.mediaListeners_[C];(C=window.matchMedia(C))&&(C.removeEventListener?C.removeEventListener("change",z):C.removeListener&&C.removeListener(z))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.Y.onVisibilityChangedAction_=function(e){var z=this;e.visible&&!this.player_&&(e=_.ox())&&e.getPlayerPromise().then(function(C){z.setPlayer(C)})};
_.Y.setPlayer=function(e){e&&this.set("player_",e)};
_.Y.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.Y.setUpCanvas_=function(){var e=this.rulerWidth,z=this.devicePixelRatio_,C=this.visible;this.set("canvasReady_",!1);if(C&&z!==0){C=this.aboveRulerHeight+this.rulerHeight;var w=_.XC(this.hostElement).querySelector("#ticks");w.width=e*z;w.height=C*z;w.style.width=e+"px";w.style.height=C+"px";w.getContext("2d").scale(z,z);this.set("canvasReady_",!0)}};
_.Y.drawRuler_=function(e,z,C,w,K,G,X,J,q,T,Q,m){e&&C&&z&&(e=_.XC(this.hostElement).querySelector("#ticks"),z=e.getContext("2d"),z.clearRect(0,0,e.width,e.height),z.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),z.lineWidth=2,z.beginPath(),z.moveTo(0,this.aboveRulerHeight),z.lineTo(e.width,this.aboveRulerHeight),z.moveTo(0,e.height),z.lineTo(e.width,e.height),z.stroke(),this.drawRulerTicks_(e,G,K,w),this.drawStoryboardImages_(e,C,G,K,w),z.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
z.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(X-G,w,!1),this.rulerHeight),C=this.timeToPixels_(J-G,w,!1),z.fillRect(C,this.aboveRulerHeight,e.width-C,this.rulerHeight),this.drawSpeedLines_(e,G,m))};
_.Y.drawRulerTicks_=function(e,z,C,w){var K=e.getContext("2d");K.save();K.lineWidth=1;for(var G=Math.floor(Math.max(0,z-this.tickLabelInterval));G<z+C;G++){K.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var X=(G-z)*w;K.beginPath();K.moveTo(X,e.height);var J=this.smallTickHeight;G%this.largeTickInterval===0?J=this.largeTickHeight:G%this.mediumTickInterval===0&&(J=this.mediumTickHeight);K.lineTo(X,e.height-J);K.stroke();G%this.tickLabelInterval===0&&(K.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),K.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),K.fillText(hM(G),X+4,12),K.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),K.moveTo(X,0),K.lineTo(X,this.aboveRulerHeight),K.stroke())}K.restore()};
_.Y.percentToHex_=function(e){e=Math.round(e*255).toString(16);e.length<2&&(e="0"+e);return e};
_.Y.drawSpeedLines_=function(e,z,C){var w=e.getContext("2d");w.save();var K=Math.min(25,Math.abs(C)-15)/25,G=e.width*.3*K,X=e.width*-.3,J=e.width*1.3,q=this.aboveRulerHeight;e=e.height;var T=Math.round(4*K),Q=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");Q.length<7&&(Q="#"+Q.substring(1,4).repeat(2));var m=this.percentToHex_(.5+K/2);m=Q+m;Q+="00";if(K>0)for(K=0;K<T;K++){var a=X+Math.random()*(J-X),n=q+Math.random()*(e-q),H=G+z%G,I=w.createLinearGradient(a,n,a+H,n);
C<0?(I.addColorStop(0,m),I.addColorStop(.4,m),I.addColorStop(.9,Q)):(I.addColorStop(.1,Q),I.addColorStop(.6,m),I.addColorStop(1,m));w.strokeStyle=I;w.lineWidth=1;w.beginPath();w.moveTo(a,n);w.lineTo(a+H,n);w.stroke()}w.restore()};
_.Y.getStoryboardForTime_=function(e,z,C){C===void 0&&(C=z.getNumberOfStoryboardLevels()-1);e=z.getStoryboardFrameIndex(e,C);return z.getStoryboardFrame(e,C)};
_.Y.drawStoryboardImages_=function(e,z,C,w,K){if(!this.disabled){e=e.getContext("2d");var G=this.getStoryboardForTime_(0,z);if(G){var X=G.width/G.columns;G=G.height/G.rows;var J=X/G,q=this.rulerHeight*J;q=this.tickLabelInterval*(J<this.tickLabelInterval*K/this.rulerHeight?1/Math.floor(this.tickLabelInterval*K/q):Math.round(q/(this.tickLabelInterval*K)));var T=q*K,Q=this.rulerHeight,m=T/this.rulerHeight,a=Math.floor(Math.max(0,C-q));for(a-=a%q;a<C+w;a+=q){var n=this.getStoryboardForTime_(a,z),H=this.getPreloadedStoryboard_(n.url);
if(H){var I=(a-C)*K,L=this.aboveRulerHeight,h=n.column*X,E=n.row*G;if(J<m){var N=Q/(T/J);n=X;N*=G;E+=(G-N)/2}else n=T/(Q*J)*X,N=G,h+=(X-n)/2;e.drawImage(H,h,E,n,N,I,L,T,Q)}else this.fetchStoryboardImage_(n)}}}};
_.Y.getPreloadedStoryboard_=function(e){return this.storyboardImages_.find(function(z){if(z.src==e)return!0;var C=z.src.indexOf(e);return C!=-1&&C==z.src.length-e.length})};
_.Y.fetchStoryboardImage_=function(e){var z=this,C=this.getPreloadedStoryboard_(e.url),w=this.pendingStoryboardImages_[e.url];C||w!==void 0||(C=new Promise(function(K){var G=new Image(e.width,e.height);G.src=e.url;G.onload=function(){K(G)};
G.onerror=function(){K(null)}}),this.pendingStoryboardImages_[e.url]=C,C.then(function(K){K&&z.push("storyboardImages_",K);
return K}).finally(function(){delete z.pendingStoryboardImages_[e.url]}))};
_.Y.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.Y.timeToPixels_=function(e,z,C){e*=z;return C===void 0||C?e+"px":e};
_.Y.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
VB.prototype.drawRuler_=VB.prototype.drawRuler_;VB.prototype.setUpCanvas_=VB.prototype.setUpCanvas_;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],VB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],VB.prototype,"start",void 0);_.d([_.F({value:30}),_.B("design:type",Number)],VB.prototype,"end",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],VB.prototype,"visible",void 0);_.d([_.F(),_.B("design:type",Object)],VB.prototype,"player_",void 0);_.d([_.F(),_.B("design:type",Number)],VB.prototype,"tickSpacing",void 0);_.d([_.F(),_.B("design:type",Number)],VB.prototype,"windowSizeSec",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],VB.prototype,"rulerWidth",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],VB.prototype,"rulerShift",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],VB.prototype,"canvasReady_",void 0);_.d([_.F({value:function(){return[]}}),
_.B("design:type",Array)],VB.prototype,"storyboardImages_",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],VB.prototype,"disabled",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],VB.prototype,"forceRender_",void 0);_.d([_.F({value:1}),_.B("design:type",Number)],VB.prototype,"devicePixelRatio_",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],VB.prototype,"windowSpeed",void 0);
_.d([_.mi("visible","devicePixelRatio_","rulerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VB.prototype,"setUpCanvas_",null);
_.d([_.mi("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.B("design:returntype")],VB.prototype,"drawRuler_",null);_.d([_.fP({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],VB);
_.u(VB,"yt-clip-creation-scrubber-canvas",function(){if(BNy===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);BNy=e}e=BNy;return e},
{mode:2});var tya;var g1y;var ft=function(){var e=_.V.apply(this,arguments)||this;e.start=0;e.end=30;e.visible=!1;e.draggingLeft_=!1;e.draggingRight_=!1;e.draggingRuler_=!1;e.draggingWindow_=!1;e.seekableStart=0;e.seekableEnd=0;e.rulerWidth_=0;e.rulerShift_=0;e.windowSlideSpeed=0;e.disabled=!1;e.initialized=!1;e.durationAccessibilityLabel="";e.activeLoopRange_=!1;e.rulerDragMouseStart_=0;e.rulerDragRulerStart_=0;e.rulerDragStartTime_=0;e.rulerDragEndTime_=0;e.dragMouseLastX_=0;e.scrollInterval_=null;e.scrubberVe_=null;e.boundHandlers_=
{};e.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return e};
_.U(ft,_.V);_.Y=ft.prototype;
_.Y.created=function(){var e=this;this.JSC$23341_playerEvents=new Map;this.JSC$23341_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$23341_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$23341_playerEvents.set("onStateChange",this.onStateChange_);var z={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(z).forEach(function(C){e.boundHandlers_[C]=z[C].bind(e)})};
_.Y.attached=function(){this.activeLoopRange_=!1;_.XC(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.XC(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.mT(156731)};
_.Y.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.XC(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.XC(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.Y.onVisibilityChangedAction_=function(e){var z=this;e.visible&&!this.player_&&(e=_.ox())&&e.getPlayerPromise().then(function(C){z.setPlayer(C)})};
_.Y.setPlayer=function(e){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23341_playerEvents);e&&(this.set("player_",e),this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$23341_playerEvents))};
_.Y.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Y.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.Y.beginHandleDrag_=function(e){this.disabled||(e.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=e.clientX,e.target===_.XC(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():e.target===_.XC(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.Y.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.Y.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.Y.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.Y.beginRulerDrag_=function(e){this.disabled||(e.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=e.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.Y.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.Y.beginWindowScroll_=function(){var e=this;this.scrollInterval_=setInterval(function(){var z=e.windowSlideSpeed;if(z=_.Xit(e.start,e.boundedRulerStartLimit_())?z-.1:_.Xit(e.end,e.boundedRulerEndLimit_())?z+.1:0){var C=e.capRulerOffset_(e.rulerShift_+z);C==e.rulerShift_?z=0:(e.set("rulerShift_",C),_.pi(e.hostElement,"set-fixed-length-range",{start:e.start+z,duration:e.end-e.start}))}e.set("windowSlideSpeed",z)},33)};
_.Y.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.Y.endDrag_=function(){this.logClick();var e=void 0;this.draggingRight_?e=this.end-1:this.draggingLeft_&&(e=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,e);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))};
_.Y.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.Y.updateRulerSize_=function(){this.set("rulerWidth_",_.XC(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.Y.handleMouseDrag_=function(e){e.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(e):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(e):this.draggingWindow_&&this.handleWindowDrag_(e))};
_.Y.handleRulerDrag_=function(e){e=this.pixelsToTime_(e.clientX-this.rulerDragMouseStart_);e=this.capRulerOffset_(this.rulerDragRulerStart_-e);this.set("rulerShift_",e);var z=this.rulerDragStartTime_-(this.rulerDragRulerStart_-e);_.pi(this.hostElement,"set-fixed-length-range",{start:z,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-e)-z})};
_.Y.handleWindowDrag_=function(e){var z=e.clientX-this.dragMouseLastX_;this.dragMouseLastX_=e.clientX;e=this.pixelsToTime_(z);_.pi(this.hostElement,"set-fixed-length-range",{start:this.start+e,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Y.capRulerOffset_=function(e){var z=this.seekableStart-this.pixelsToTime_(16),C=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(z,e),C)};
_.Y.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.Y.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.Y.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.Y.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.Y.handleWindowHandleDrag_=function(e){var z=e.clientX-this.dragMouseLastX_;this.dragMouseLastX_=e.clientX;e=this.pixelsToTime_(z);if(this.draggingLeft_){var C=this.start+e;var w=this.end}else this.draggingRight_&&(C=this.start,w=this.end+e);_.pi(this.hostElement,"set-range",{start:C,end:w,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.Y.onVideoProgress_=function(e){this.disabled||(e=this.timeToPixels_(e-this.rulerShift_,this.tickSpacing_),_.XC(this.hostElement).querySelector("#playhead").style.transform="translateX("+e+")")};
_.Y.onClipCreationDisable_=function(){this.endDrag_()};
_.Y.timeToPixels_=function(e,z,C){e*=z;return C===void 0||C?e+"px":e};
_.Y.pixelsToTime_=function(e){return e/this.tickSpacing_};
_.Y.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Y.centerRuler_=function(e,z,C){this.set("rulerShift_",this.capRulerOffset_(e+(z-e)/2-C/2))};
_.Y.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.Y.updateLoopRange_=function(e,z,C,w,K,G,X){e&&(z&&w&&!C?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(e.pauseVideo(),e.seekTo(K,!1,void 0,void 0,50)):this.draggingRight_?(e.pauseVideo(),e.seekTo(G-.1,!1,void 0,void 0,50)):(X!==void 0?e.seekTo(X,!0,void 0,void 0,50):(z=e.getCurrentTime(),z<K||z>G?e.seekTo(K,!0,void 0,void 0,50):e.seekTo(z,!0,void 0,void 0,50)),e.playVideo()),e.setLoopRange({startTimeMs:K*1E3,endTimeMs:G*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(e.getCurrentTime())):
this.activeLoopRange_&&(e.setLoopRange(null),this.activeLoopRange_=!1))};
_.Y.updateHandles_=function(){_.XC(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.XC(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.Y.updateRuler_=function(){var e=this.end,z=this.start,C=this.draggableStartLimit_(),w=this.draggableEndLimit_();(z<C-.001||e>w+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.Y.computeDurationLabel_=function(e,z){return e?e.replace("$clip_length",parseFloat(z).toFixed(1)):""};
_.Y.computeDuration_=function(e,z){return this.isValidTime_(e)&&this.isValidTime_(z)&&e<z?z-e:0};
_.Y.isValidTime_=function(e){return isNaN(parseFloat(e))||e<0?!1:this.player_?e>=this.seekableStart&&e<=this.seekableEnd:!0};
_.Y.computeWindowSizeSec_=function(e,z,C){return Math.min((e||12E4)/1E3,C-z)};
_.Y.computeTickSpacing_=function(e,z){return z?z/e:1};
_.Y.onDragStateChanged_=function(){_.pi(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.Y.centerRangeOnTime_=function(e){var z=this.duration;e=Ckl(e-z/2,z,this.seekableStart,this.seekableEnd);_.pi(this.hostElement,"set-fixed-length-range",{start:e.start,duration:e.end-e.start})};
_.Y.nearlyLessThan_=function(e,z,C){return e+(C===void 0?1E-6:C)<z};
_.Y.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var e=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(e,this.start)||this.nearlyLessThan_(this.end,e))&&this.centerRangeOnTime_(e)}};
_.Y.onStateChange_=function(e){this.visible&&!this.disabled&&e==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.Y.computeDragState_=function(e,z,C,w){return e?"left":z?"right":C?"ruler":w?"window":"none"};
_.Y.logClick=function(){var e=_.Pr(),z=_.Ip();e&&z&&this.scrubberVe_&&(_.M("combine_ve_grafts")?_.yQ(_.nm(),this.scrubberVe_,z):_.id(e,z,this.scrubberVe_),_.gQ(e,this.scrubberVe_))};
ft.prototype.onDragStateChanged_=ft.prototype.onDragStateChanged_;ft.prototype.updateRuler_=ft.prototype.updateRuler_;ft.prototype.updateHandles_=ft.prototype.updateHandles_;ft.prototype.onUpdateLoopRange=ft.prototype.onUpdateLoopRange;ft.prototype.onInitializedChanged_=ft.prototype.onInitializedChanged_;ft.prototype.onVisibleChanged_=ft.prototype.onVisibleChanged_;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ft.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",Object)],ft.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"start",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"end",void 0);_.d([_.F({computed:"computeDuration_(start, end)"}),_.B("design:type",Number)],ft.prototype,"duration",void 0);
_.d([_.F(),_.B("design:type",String)],ft.prototype,"lengthTemplate",void 0);_.d([_.F({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.B("design:type",String)],ft.prototype,"durationLabel",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"visible",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"player_",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"draggingLeft_",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"draggingRight_",void 0);
_.d([_.F(),_.B("design:type",Object)],ft.prototype,"draggingRuler_",void 0);_.d([_.F({value:!1}),_.B("design:type",Object)],ft.prototype,"draggingWindow_",void 0);_.d([_.F({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.B("design:type",Number)],ft.prototype,"tickSpacing_",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"seekableStart",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"seekableEnd",void 0);
_.d([_.F(),_.B("design:type",Number)],ft.prototype,"windowSizeMs",void 0);_.d([_.F({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.B("design:type",Number)],ft.prototype,"windowSizeSec_",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"rulerWidth_",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"rulerShift_",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"windowSlideSpeed",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ft.prototype,"disabled",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"initialized",void 0);_.d([_.F(),_.B("design:type",Object)],ft.prototype,"durationAccessibilityLabel",void 0);_.d([_.F({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.B("design:type",String)],ft.prototype,"dragState",void 0);
_.d([_.mi("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"onVisibleChanged_",null);_.d([_.mi("initialized"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"onInitializedChanged_",null);_.d([_.mi("player_","visible","disabled","initialized","start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"onUpdateLoopRange",null);
_.d([_.mi("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"updateHandles_",null);_.d([_.mi("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"updateRuler_",null);
_.d([_.mi("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ft.prototype,"onDragStateChanged_",null);_.d([_.fP({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],ft);
_.u(ft,"yt-clip-creation-scrubber-view",function(){if(g1y===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;tya===void 0&&(tya=document.createElement("template"));var w=tya;C.call(z,w.content.cloneNode(!0),e.content.firstChild);g1y=e}e=g1y;return e},{mode:2});var SV=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};e.startHighlightTimeout=0;e.endHighlightTimeout=0;return e};
_.U(SV,_.V);_.Y=SV.prototype;_.Y.attached=function(){var e=this;this.startInput.addEventListener("input",function(z){return e.handleStartInput_(z)});
this.endInput.addEventListener("input",function(z){return e.handleEndInput_(z)});
this.startInput.addEventListener("focusout",function(z){return e.handleStartBlur_(z)});
this.endInput.addEventListener("focusout",function(z){return e.handleEndBlur_(z)})};
_.Y.setPlayer=function(e){this.set("player_",e)};
_.Y.onSetFixedLengthRange_=function(e){var z=e.detail;e=z.start;var C=z.duration,w=z.startLimit;z=z.endLimit;w||(w=this.seekableStart_);z||(z=this.seekableEnd_);e=Ckl(e,C,w,z);this.start=e.start;this.end=e.end};
_.Y.onSetRange_=function(e){var z=e.detail;e=z.start;var C=z.end,w=z.startLimit;z=z.endLimit;w||(w=this.seekableStart_);z||(z=this.seekableEnd_);if(e=wna(e,C,w,z,this.minLengthSec,this.maxLengthSec))this.start=e.start,this.end=e.end};
_.Y.updateInputs_=function(){var e=this.end,z=this.start;this.startInput.focused||(this.startInput.value=hM(z,!0));this.endInput.focused||(this.endInput.value=hM(e,!0))};
_.Y.handleStartInput_=function(e){e=zU2(e.target.value);if(e===null)this.set("startValid",!1);else{var z=this.end,C=wna(e,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);C?(this.set("endWillUpdate",C.end!==z),this.set("startValid",C.start===e)):this.set("startValid",!1)}};
_.Y.handleEndInput_=function(e){e=zU2(e.target.value);if(e===null)this.set("endValid",!1);else{var z=this.start,C=K1g(this.start,e,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);C?(this.set("startWillUpdate",C.start!==z),this.set("endValid",C.end===e)):this.set("endValid",!1)}};
_.Y.handleStartBlur_=function(e){e=zU2(e.target.value);e===null?this.startInput.value=hM(this.start,!0):this.forceUpdateInputs_(wna(e,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Y.handleEndBlur_=function(e){e=zU2(e.target.value);e===null?this.endInput.value=hM(this.end,!0):this.forceUpdateInputs_(K1g(this.start,e,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.Y.forceUpdateInputs_=function(e){e&&(this.start=e.start,this.end=e.end);this.startInput.value=hM(this.start,!0);this.endInput.value=hM(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.Y.initializeClipRange_=function(){var e=this.seekableEnd_,z=this.seekableStart_,C=this.visible_,w=this.player_;if(!w||!C||z===null||!e)this.set("initialized",!1);else if(!this.initialized){var K=w.getCurrentTime(),G=this.getDefaultLengthSec_();C=w.getVideoData();var X=w.getPlayerState()==1,J=C.isLive;G=Math.min(G,e-z);K=Math.max(0,K);e=J?K1g(K-G,K,z,e,this.minLengthSec,this.maxLengthSec):X?Ckl(K-G/2,G,z,e):Ckl(K,G,z,e);this.start=e.start;this.end=e.end;this.set("initialized",!0);C.isLive&&w.seekTo(e.start);
this.startInput.value=hM(this.start,!0);this.endInput.value=hM(this.end,!0)}};
_.Y.onStartChanged_=function(){var e=this;_.pi(this.hostElement,"start-changed",{start:this.start});var z;isNaN((z=this.oldStart)!=null?z:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){e.set("highlightStart",!1);e.startHighlightTimeout=0;e.oldStart=e.start},3E3))};
_.Y.onEndChanged_=function(){var e=this;_.pi(this.hostElement,"end-changed",{end:this.end});var z;isNaN((z=this.oldEnd)!=null?z:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){e.set("highlightEnd",!1);e.endHighlightTimeout=0;e.oldEnd=e.end},3E3))};
_.Y.onVisibilityChangedAction_=function(e){var z=this;this.set("visible_",e.visible);this.visible_&&!this.player_&&(e=_.ox())&&e.getPlayerPromise().then(function(C){z.setPlayer(C)})};
_.Y.computeMinLengthSec_=function(e){return e/1E3||5};
_.Y.computeMaxLengthSec_=function(e){return e/1E3||60};
_.Y.computeDefaultLengthSec_=function(e){return e/1E3};
_.Y.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.Y.computeSeekableStart_=function(e,z){return e&&z?e.getProgressState(1).seekableStart:0};
_.Y.computeSeekableEnd_=function(e,z){return e&&z?e.getProgressState(1).seekableEnd:0};
_.Y.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.Y.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.Y.onDragState_=function(e){this.set("highlightStart",e.detail.startChanging);this.set("highlightEnd",e.detail.endChanging)};
SV.prototype.onDragState_=SV.prototype.onDragState_;SV.prototype.onEndChanged_=SV.prototype.onEndChanged_;SV.prototype.onStartChanged_=SV.prototype.onStartChanged_;SV.prototype.initializeClipRange_=SV.prototype.initializeClipRange_;SV.prototype.updateInputs_=SV.prototype.updateInputs_;SV.prototype.onSetRange_=SV.prototype.onSetRange_;SV.prototype.onSetFixedLengthRange_=SV.prototype.onSetFixedLengthRange_;
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],SV.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],SV.prototype,"data",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],SV.prototype,"start",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],SV.prototype,"startValid",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],SV.prototype,"startWillUpdate",void 0);_.d([_.F({value:30}),_.B("design:type",Number)],SV.prototype,"end",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],SV.prototype,"endValid",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],SV.prototype,"endWillUpdate",void 0);_.d([_.F({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.B("design:type",Number)],SV.prototype,"minLengthSec",void 0);
_.d([_.F({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.B("design:type",Number)],SV.prototype,"maxLengthSec",void 0);_.d([_.F({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.B("design:type",Number)],SV.prototype,"defaultLengthSec",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],SV.prototype,"visible_",void 0);_.d([_.F(),_.B("design:type",Object)],SV.prototype,"player_",void 0);
_.d([_.F({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.B("design:type",Number)],SV.prototype,"seekableStart_",void 0);_.d([_.F({computed:"computeSeekableEnd_(player_, visible_)"}),_.B("design:type",Number)],SV.prototype,"seekableEnd_",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],SV.prototype,"initialized",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],SV.prototype,"disabled",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],SV.prototype,"highlightStart",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],SV.prototype,"highlightEnd",void 0);_.d([_.nP("#start"),_.B("design:type",HTMLInputElement)],SV.prototype,"startInput",void 0);_.d([_.nP("#end"),_.B("design:type",HTMLInputElement)],SV.prototype,"endInput",void 0);
_.d([_.Qi("set-fixed-length-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],SV.prototype,"onSetFixedLengthRange_",null);_.d([_.Qi("set-range"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],SV.prototype,"onSetRange_",null);_.d([_.mi("start","end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SV.prototype,"updateInputs_",null);
_.d([_.mi("player_","visible_","seekableStart_","seekableEnd_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SV.prototype,"initializeClipRange_",null);_.d([_.mi("start"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SV.prototype,"onStartChanged_",null);_.d([_.mi("end"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],SV.prototype,"onEndChanged_",null);
_.d([_.Qi("clips-drag-state"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],SV.prototype,"onDragState_",null);_.d([_.fP({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],SV);
_.u(SV,"yt-clip-creation-scrubber-renderer",function(){if(spg===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;NNC===void 0&&(NNC=document.createElement("template"));var w=NNC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);spg=e}e=spg;return e},{mode:2});var uV=function(){var e=_.V.apply(this,arguments)||this;e.player_=null;e.JSC$23355_playerEvents=new Map;e.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return e};
_.U(uV,_.V);_.Y=uV.prototype;_.Y.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"}}}};
_.Y.created=function(){this.JSC$23355_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$23355_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$23355_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$23355_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.Y.detached=function(){this.setPlayer(null)};
_.Y.onVisibilityChangedAction_=function(e){var z=this,C;if((C=this.data)==null?0:C.externalVideoId){var w;this.videoId=(w=this.data)==null?void 0:w.externalVideoId}this.getPlayer().then(function(K){if(e.visible)z.returnTime=K.getCurrentTime(),z.isAtLiveHead=K.getProgressState().isAtLiveHead;else{var G=z.returnTime;z.isAtLiveHead&&(G=Number.POSITIVE_INFINITY);K.seekTo(G,void 0,void 0,void 0,51)}})};
_.Y.getPlayer=function(){var e=this;if(!this.player_){var z=_.ox();if(z)return z.getPlayerPromise().then(function(C){e.setPlayer(C);return C})}return Promise.resolve(this.player_)};
_.Y.setPlayer=function(e){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$23355_playerEvents);if(e){this.player_=e;var z;((z=this.data)==null?0:z.externalVideoId)||this.set("videoId",e.getVideoData().video_id||"");var C;(e==null?void 0:(C=e.getPresentingPlayerType)==null?void 0:C.call(e))===2&&(this.set("isAdPlaying",!0),_.eA(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(e,this.JSC$23355_playerEvents)}};
_.Y.ready=function(){_.XC(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.Y.onTitleChanged_=function(e){this.set("titleValue",e.detail.title)};
_.Y.onStartChanged_=function(e){this.set("start",e.detail.start)};
_.Y.onEndChanged_=function(e){this.set("end",e.detail.end)};
_.Y.onTitleValidChanged_=function(e){this.set("titleValid",e.detail.valid)};
_.Y.onStartValidChanged_=function(e){this.set("startValid",e.detail.valid)};
_.Y.onEndValidChanged_=function(e){this.set("endValid",e.detail.valid)};
_.Y.onVideoDataChange_=function(){var e;if((e=this.data)==null||!e.externalVideoId){var z;this.set("videoId",((z=this.player_)==null?void 0:z.getVideoData().video_id)||"")}};
_.Y.computeFormValid_=function(e,z,C,w){return!!(e&&z&&C&&w)};
_.Y.computeCancelButton_=function(e,z,C){return e&&_.r(e,_.a2)?{buttonRenderer:Object.assign({},_.r(e,_.a2),{isDisabled:z||C})}:null};
_.Y.computeSubmitButton_=function(e,z,C){return e&&_.r(e,_.a2)?{buttonRenderer:Object.assign({},_.r(e,_.a2),{command:void 0,isDisabled:!this.formValid||z||C})}:null};
_.Y.computeSubmitCommand_=function(e){return e||null};
_.Y.onSubmit_=function(e){var z=this;e.stopPropagation();e.preventDefault();this.submitCommand_&&(e={},e.comment_text=this.titleValue,e.clip_external_video_id=this.videoId,e.clip_offset_ms=parseInt(this.start*1E3,10),e.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.wQ(this.hostElement,[this.submitCommand_,e]).then(function(){z.set("isLoading_",!1)},function(){z.set("isLoading_",!1)}))};
_.Y.playerAdStartHandler_=function(){_.eA(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.Y.playerAdEndHandler_=function(){_.eA(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.Y.onVideoProgress_=function(){var e=this;this.getPlayer().then(function(z){var C,w=(z==null?void 0:(C=z.getPresentingPlayerType)==null?void 0:C.call(z))===2;e.isAdPlaying!==w&&(w?e.playerAdStartHandler_():e.playerAdEndHandler_())})};
uV.prototype.onEndValidChanged_=uV.prototype.onEndValidChanged_;uV.prototype.onStartValidChanged_=uV.prototype.onStartValidChanged_;uV.prototype.onTitleValidChanged_=uV.prototype.onTitleValidChanged_;uV.prototype.onEndChanged_=uV.prototype.onEndChanged_;uV.prototype.onStartChanged_=uV.prototype.onStartChanged_;uV.prototype.onTitleChanged_=uV.prototype.onTitleChanged_;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],uV.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",Object)],uV.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uV.prototype,"data",void 0);_.d([_.F({value:""}),_.B("design:type",String)],uV.prototype,"titleValue",void 0);
_.d([_.F({value:!1}),_.B("design:type",Boolean)],uV.prototype,"titleValid",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],uV.prototype,"start",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],uV.prototype,"startValid",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],uV.prototype,"end",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],uV.prototype,"endValid",void 0);_.d([_.F({value:""}),_.B("design:type",String)],uV.prototype,"videoId",void 0);
_.d([_.F({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.B("design:type",Boolean)],uV.prototype,"formValid",void 0);_.d([_.F({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.B("design:type",Object)],uV.prototype,"submitButton_",void 0);_.d([_.F({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.B("design:type",Object)],uV.prototype,"submitCommand_",void 0);
_.d([_.F({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.B("design:type",Object)],uV.prototype,"cancelButton_",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],uV.prototype,"isLoading_",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],uV.prototype,"isAdPlaying",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],uV.prototype,"returnTime",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],uV.prototype,"isAtLiveHead",void 0);
_.d([_.Qi("title-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uV.prototype,"onTitleChanged_",null);_.d([_.Qi("start-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uV.prototype,"onStartChanged_",null);_.d([_.Qi("end-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uV.prototype,"onEndChanged_",null);
_.d([_.Qi("title-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uV.prototype,"onTitleValidChanged_",null);_.d([_.Qi("start-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uV.prototype,"onStartValidChanged_",null);_.d([_.Qi("end-valid-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],uV.prototype,"onEndValidChanged_",null);
_.d([_.fP({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],uV);
_.u(uV,"yt-clip-creation-renderer",function(){if(iil===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;D$w===void 0&&(D$w=document.createElement("template"));var w=D$w;C.call(z,w.content.cloneNode(!0),e.content.firstChild);iil=e}e=iil;return e},{mode:2});var dI=function(){return _.V.apply(this,arguments)||this};
_.U(dI,_.V);dI.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"}}}};
dI.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(e){return e.hasOwnProperty("clipCreationRenderer")})&&_.eA(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
dI.prototype.onPanelContentVisibleChanged=dI.prototype.onPanelContentVisibleChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.nE.YtVisibilityBehavior),_.B("design:type",Object)],dI.prototype,"ytVisibilityBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],dI.prototype,"ytdReduxBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],dI.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],dI.prototype,"panelContentVisible",void 0);_.d([_.mi("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dI.prototype,"onPanelContentVisibleChanged",null);_.d([_.SL({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],dI);
_.u(dI,"ytd-clip-section-renderer",function(){if(fPj!==void 0)return fPj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return fPj=e},{mode:1});var jpt;var Dj=function(){return _.V.apply(this,arguments)||this};
_.U(Dj,_.V);_.Y=Dj.prototype;
_.Y.onKeyDown=function(e){if(this.snippetElements.length!==0&&(e=e.keyCode,e===38||e===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);e===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.NZ(this.highlightedIndex,-1,this.snippetElements.length);e=this.snippetElements.length;var z=this.highlightedIndex%e;this.highlightedIndex=z*e<0?z+e:z;e=this.snippetElements[this.highlightedIndex];this.highlightSnippet(e);this.ensureVisible(e)}};
_.Y.onKeyUp=function(e){var z=this;tuy(e)&&(e.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.c5.cancelJob(this.inputTimerId),this.inputTimerId=_.c5.addLowPriorityJob(function(){z.typedValue&&(z.fetchSnippets(z.typedValue),z.logInputGesture(z.data))},1E3))};
_.Y.onClick=function(e){(e=_.sML(e.target,null,"snippet-item"))&&this.selectSnippet(e)};
_.Y.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.Y.ready=function(){var e=this;this.inputElement.addEventListener("focus",function(){e.snippetsWrapper.style.removeProperty("display")})};
_.Y.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.Y.getSourceTimelines=function(){if(!this.data)return[];var e=[];if(this.data.searchInVideoSources)for(var z=_.b(this.data.searchInVideoSources),C=z.next();!C.done;C=z.next())C=C.value,C==="SEARCH_IN_VIDEO_SOURCE_ASR"?e.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):C==="SEARCH_IN_VIDEO_SOURCE_OCR"&&e.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return e};
_.Y.fetchSnippets=function(e){var z=_.eA(this.hostElement,"yt-get-current-video-id-action")[0],C=this.getSourceTimelines();e={getSearchInVideoCommand:{externalVideoId:z,query:e!=null?e:"",sourceTimelines:C},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})};
_.Y.filterSnippets=function(e,z){var C=this;if(z){this.filteredSnippets=(0,_.de.unsafeClone)(e);var w=RegExp(_.V_N(z),"i");this.filteredSnippets=this.filteredSnippets.filter(function(X){return w.test(C.ytRendererBehavior.getSimpleString(X.snippet))});
e=_.b(this.filteredSnippets);for(var K=e.next();!K.done;K=e.next()){K=K.value;var G=this.ytRendererBehavior.getSimpleString(K.snippet);K.snippet={runs:[{text:G.substring(0,G.toLowerCase().indexOf(z))},{text:G.substring(G.toLowerCase().indexOf(z),G.toLowerCase().indexOf(z)+z.length),bold:!0},{text:G.substring(G.toLowerCase().indexOf(z)+z.length,G.length)}]}}}else this.filteredSnippets=e};
_.Y.onUpdateSearchInVideoResults=function(e){if(!(this.snippets.length>0)){var z,C,w;if((w=(z=_.r(e,oIl))==null?void 0:(C=z.results)==null?void 0:C.length)!=null&&w){var K;this.filteredSnippets=this.snippets=((K=_.r(e,oIl))==null?void 0:K.results).map(function(G){var X,J,q;return{startMs:G==null?void 0:(X=G.searchInVideoResultRenderer)==null?void 0:X.startMs,startTimeText:G==null?void 0:(J=G.searchInVideoResultRenderer)==null?void 0:J.startTimeText,snippet:G==null?void 0:(q=G.searchInVideoResultRenderer)==
null?void 0:q.snippet}})}}};
_.Y.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};
_.Y.highlightSnippet=function(e){e.classList.add("highlighted")};
_.Y.removeSnippetHighlight=function(e){e.classList.remove("highlighted")};
_.Y.selectSnippet=function(e){this.typedValue=String(e.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(e);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Y.ensureVisible=function(e){var z=this.snippetsWrapper.scrollTop,C=z+this.snippetsWrapper.clientHeight,w=e.offsetTop-this.snippetsWrapper.offsetTop;e=w+e.clientHeight;w<z?this.snippetsWrapper.scrollTop-=z-w:e>C&&(this.snippetsWrapper.scrollTop+=e-C)};
_.Y.seekPlayer=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1){if(!e)return w.jumpTo(0);z=Number(e.dataset.startOffset);return w.yield(_.Gi().getPlayerPromise(),3)}C=w.yieldResult;C.seekTo(z/1E3,!0);C.wakeUpControls();_.E_(w)})};
_.Y.logInputGesture=function(e){var z=_.Pr();z&&(e==null?0:e.trackingParams)&&_.jA(z,_.v9(e.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.Y.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("typed-value-changed",this.typedValue))};
_.Y.updateTypedValueFromBinding=function(e){this.typedValue=e.currentTarget.value};
Dj.prototype.typedValueChangedForBinding=Dj.prototype.typedValueChangedForBinding;Dj.prototype.dataChanged=Dj.prototype.dataChanged;Dj.prototype.panelContentVisibleChanged=Dj.prototype.panelContentVisibleChanged;Dj.prototype.onClick=Dj.prototype.onClick;Dj.prototype.onKeyUp=Dj.prototype.onKeyUp;Dj.prototype.onKeyDown=Dj.prototype.onKeyDown;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Dj.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Dj.prototype,"data",void 0);_.d([_.F({value:[]}),_.B("design:type",Array)],Dj.prototype,"snippets",void 0);_.d([_.F({value:[]}),_.B("design:type",Array)],Dj.prototype,"filteredSnippets",void 0);_.d([_.F({value:[]}),_.B("design:type",Array)],Dj.prototype,"snippetElements",void 0);
_.d([_.nP("#siv-input"),_.B("design:type",HTMLElement)],Dj.prototype,"inputElement",void 0);_.d([_.nP("#siv-snippets-wrapper"),_.B("design:type",HTMLElement)],Dj.prototype,"snippetsWrapper",void 0);_.d([_.F(),_.B("design:type",String)],Dj.prototype,"typedValue",void 0);_.d([_.F({value:-1}),_.B("design:type",Number)],Dj.prototype,"highlightedIndex",void 0);_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[_.ub]),_.B("design:returntype")],Dj.prototype,"onKeyDown",null);
_.d([_.Qi("keyup"),_.B("design:type",Function),_.B("design:paramtypes",[_.ub]),_.B("design:returntype")],Dj.prototype,"onKeyUp",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Dj.prototype,"onClick",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Dj.prototype,"panelContentVisible",void 0);
_.d([_.mi("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dj.prototype,"panelContentVisibleChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dj.prototype,"dataChanged",null);_.d([_.mi("typedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Dj.prototype,"typedValueChangedForBinding",null);
_.d([_.SL({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Dj);
_.u(Dj,"ytd-search-in-video-renderer",function(){if(jpt!==void 0)return jpt;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jpt=e},{mode:1});var yw2;var iV=function(){return _.V.apply(this,arguments)||this};
_.U(iV,_.V);iV.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
iV.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]]"}}}}}};
iV.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var e,z,C,w,K=(z=_.r((e=this.data)==null?void 0:e.onClickCommand,_.u5g))==null?void 0:(C=z.item)==null?void 0:(w=C.notificationTextRenderer)==null?void 0:w.successResponseText;K&&_.l$h(this.hostElement,K)}};
_.lB.Object.defineProperties(iV.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w;return this.isProductPlaceholder&&((e=this.data)==null?void 0:(z=e.hiddenProductOptions)==null?void 0:z.showDropCountdown)&&!!((C=this.data)==null?0:(w=C.hiddenProductOptions)==null?0:w.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var e;return!this.isProductPlaceholder&&!((e=this.data)==null?0:e.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null?0:e.priceReplacementText)&&!((z=this.data)==null||!z.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],iV.prototype,"componentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iV.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],iV.prototype,"useCenterLayoutContainer",null);_.d([_.F({computed:"computeButtonOverride(data)"}),_.B("design:type",Object)],iV.prototype,"buttonOverride",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iV.prototype,"isProductPlaceholder",null);
_.d([_.P("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],iV.prototype,"showDropCountdown",null);_.d([_.P("isProductPlaceholder","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iV.prototype,"showBrandName",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iV.prototype,"showPriceReplacementText",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iV.prototype,"showPrice",null);
_.d([_.P("isProductPlaceholder"),_.B("design:type",Object),_.B("design:paramtypes",[])],iV.prototype,"showMetadata",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],iV);
_.u(iV,"ytd-product-list-item-renderer",function(){if(yw2!==void 0)return yw2;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return yw2=e},{mode:1});var cwL;var Nb=function(){return _.V.apply(this,arguments)||this};
_.U(Nb,_.V);Nb.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Nb.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Nb.prototype.panelContentVisibleChanged=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return e.playerApi?C.jumpTo(2):C.yield(_.Gi().getPlayerPromise(),3);C.nextAddress!=2&&(e.playerApi=C.yieldResult);(z=e.playerApi)==null||z.productsInVideoVisibilityUpdated(!!e.panelContentVisible);_.E_(C)})};
Nb.prototype.panelContentVisibleChanged=Nb.prototype.panelContentVisibleChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Nb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Nb.prototype,"panelContentVisible",void 0);_.d([_.F(),_.B("design:type",Object)],Nb.prototype,"data",void 0);
_.d([_.mi("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Nb.prototype,"panelContentVisibleChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Nb);
_.u(Nb,"ytd-product-list-renderer",function(){if(cwL!==void 0)return cwL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return cwL=e},{mode:1});var Awg;var si=function(){var e=_.V.apply(this,arguments)||this;e.hideTimestamps=!!_.PJ("hide-transcript-timestamps");e.currentCueIndex=-1;e.flatCues=[];e.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};e.TEST_ONLY={getFlatCues:function(){return e.flatCues}};
return e};
_.U(si,_.V);_.Y=si.prototype;_.Y.hideTimestampsChanged=function(){_.WJ("hide-transcript-timestamps",this.hideTimestamps)};
_.Y.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Y.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Y.dataChanged=function(){var e;if((e=this.data)!=null&&e.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;e=_.b(this.data.cueGroups);for(var z=e.next();!z.done;z=e.next()){z=_.b(_.r(z.value,G42).cues);for(var C=z.next();!C.done;C=z.next())this.flatCues.push(Number(_.r(C.value,Ycy).startOffsetMs))}}};
_.Y.onYtPlayerTimeChanged=function(e){if(!(e<0)){for(var z=this.currentCueIndex,C=z;;){var w=C>=0?this.flatCues[C]/1E3:-1;if(e+.5<w)--C;else if(w=C+1<this.flatCues.length?this.flatCues[C+1]/1E3:Infinity,e+.5>w)C+=1;else break}C!==z&&(z>=0&&((e=this.getCueElement(z))&&e.classList.remove("active"),(z=this.getCueGroupElement(z))&&z.classList.remove("active")),(z=this.getCueElement(C))&&z.classList.add("active"),(z=this.getCueGroupElement(C))&&z.classList.add("active"),this.currentCueIndex=C,this.isHovered||
this.scrollElementToTop(C))}};
_.Y.scrollElementToTop=function(e){e=this.getCueElement(e>=3?e-3:0);this.hostElement.scrollTop=Math.min(e.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Y.getCueElement=function(e){return _.XC(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[e]+'"]')};
_.Y.getCueGroupElement=function(e){return(e=this.getCueElement(e))&&e.parentElement?e.parentElement.parentElement:null};
_.Y.onTap=function(e){var z=_.AU(e);e.target.classList.contains("cue")&&this.seekCueElement(z)};
_.Y.onKeyPress=function(e){e.keyCode==13&&(e=_.sML(e.target,null,"cue"))&&this.seekCueElement(e)};
_.Y.seekCueElement=function(e){e=Number(e.getAttribute("start-offset"));_.eA(this.hostElement,"yt-transcript-player-seek",[e/1E3])};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
si.prototype.onMouseLeave=si.prototype.onMouseLeave;si.prototype.onMouseEnter=si.prototype.onMouseEnter;si.prototype.onKeyPress=si.prototype.onKeyPress;si.prototype.onTap=si.prototype.onTap;si.prototype.dataChanged=si.prototype.dataChanged;si.prototype.hideTimestampsChanged=si.prototype.hideTimestampsChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],si.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],si.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],si.prototype,"hideTimestamps",void 0);_.d([_.F(),_.B("design:type",Boolean)],si.prototype,"isHovered",void 0);_.d([_.mi("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],si.prototype,"hideTimestampsChanged",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],si.prototype,"dataChanged",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],si.prototype,"onTap",null);_.d([_.Qi("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],si.prototype,"onKeyPress",null);
_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],si.prototype,"onMouseEnter",null);_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],si.prototype,"onMouseLeave",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],si);
_.u(si,"ytd-transcript-body-renderer",function(){if(Awg!==void 0)return Awg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Awg=e},{mode:1});var Zil;var BD=function(){var e=_.V.apply(this,arguments)||this;e.darkerPanels=_.M("web_watch_darker_panels");return e};
_.U(BD,_.V);BD.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],BD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],BD.prototype,"darkerPanels",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],BD);
_.u(BD,"ytd-transcript-footer-renderer",function(){if(Zil!==void 0)return Zil;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Zil=e},{mode:1});var prg;var eNY;var tc=function(){var e=_.V.apply(this,arguments)||this;e.systemIcons=_.M("kevlar_system_icons");e.showClearButton=!1;return e};
_.U(tc,_.V);_.Y=tc.prototype;_.Y.handleInput=function(e){var z=this;e.target.value.length?_.tK(this,"ytdTranscriptSearchBoxSearch",function(){z.emitSearchEvent(e)},500):(_.Iq1(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=e.target.value.length>0};
_.Y.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.Y.handleClick=function(){var e,z=(e=this.data)==null?void 0:e.trackingParams;z&&_.Zw(_.nm(),z)};
_.Y.handleClear=function(){_.Iq1(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var e,z,C=(z=_.r((e=this.data)==null?void 0:e.clearButton,_.a2))==null?void 0:z.trackingParams;C&&_.Zw(_.nm(),C);this.clear()};
_.Y.emitSearchEvent=function(e){_.pi(this.hostElement,"yt-transcript-search-box-search",{query:e.target.value});var z,C;(e=(C=_.r((z=this.data)==null?void 0:z.searchButton,_.a2))==null?void 0:C.trackingParams)&&_.Zw(_.nm(),e)};
_.Y.emitClearEvent=function(){_.pi(this.hostElement,"yt-transcript-search-box-clear")};
_.lB.Object.defineProperties(tc.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.XC(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tc.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],tc.prototype,"systemIcons",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],tc);
_.u(tc,"ytd-transcript-search-box-renderer",function(){if(eNY!==void 0)return eNY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return eNY=e},{mode:1});var zNy;var CdL;var gI=function(){return _.V.apply(this,arguments)||this};
_.U(gI,_.V);gI.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var e,z;this.sectionHeaderAriaLabel=(e=this.data)==null?void 0:(z=e.accessibility)==null?void 0:z.accessibilityData.label}};
gI.prototype.fireSelectedEvent=function(e){_.pi(this.hostElement,"ytd-transcript-section-header",{startMs:e})};
gI.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
gI.prototype.handleKeyPress=function(e){this.data&&e.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.lB.Object.defineProperties(gI.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=(e=this.data)==null?void 0:e.enableTappableTranscriptHeader)!=null?z:!1}}});
gI.prototype.dataChanged=gI.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],gI.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],gI.prototype,"sectionHeaderAriaLabel",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],gI.prototype,"enableTappableTranscriptHeader",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gI.prototype,"dataChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],gI);
_.u(gI,"ytd-transcript-section-header-renderer",function(){if(CdL!==void 0)return CdL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return CdL=e},{mode:1});var wfa;var Kmy;var jV=function(){var e=_.V.apply(this,arguments)||this;e.isEditMode=!1;e.touchCaptionsEnabled=!1;e.deleteCaptionCorrectionPopupCommand=null;e.voteCaptionCorrectionPopupCommand=null;e.roundedContainer=!0;e.mouseOver=!1;e.textChanged=!1;e.messages={suggest_correction:_.kk("suggest_correction",void 0,"Edit caption"),suggested_caption:_.kk("suggested_caption",void 0,"Suggested caption"),submit_correction:_.kk("submit_correction",void 0,"Submit for review"),cancel_correction:_.kk("cancel_correction",
void 0,"Cancel"),replay_segment:_.kk("replay_segment",void 0,"Re-play segment"),delete_correction:_.kk("delete_correction",void 0,"Delete correction")};e.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return e};
_.U(jV,_.V);_.Y=jV.prototype;_.Y.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)};
_.Y.handleDelete=function(e){if(this.deleteCaptionCorrectionPopupCommand){var z=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);z&&this.ytdOpenPopupBehavior.openPopup(z);e.stopPropagation()}};
_.Y.handleSubmit=function(e){if(this.data&&this.data.submitCaptionCorrectionCommand&&(e.stopPropagation(),this.textChanged)){var z;e=(z=_.r(this.data.submitCaptionCorrectionCommand,_.s06))==null?void 0:z.params;z=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:e,correctionText:String(this.ironTextAreaElement.value),originalText:_.Zd(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(z);this.isEditMode=!1}};
_.Y.handleUpdateSegmentText=function(e){(e=_.r(e,HZ2))&&e.targetId&&this.data&&e.targetId===this.data.targetId&&(e.userCorrection&&(this.editedText=e.userCorrection),e.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Zd(this.data.snippet)),e.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=e.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=e.voteCaptionCorrectionPopupCommand?
e.voteCaptionCorrectionPopupCommand:null,e.accessibility&&(this.segmentAriaLabel=e.accessibility.accessibilityData.label))};
_.Y.handleCancel=function(e){this.isEditMode=!1;e.stopPropagation();this.logClientVe(159409)};
_.Y.handleEditSegmentCommand=function(e){(e=_.r(e,rHt))&&e.targetId&&this.data&&e.targetId===this.data.targetId&&this.handleEdit()};
_.Y.handleEditButtonClick=function(e){this.data&&(this.handleEdit(),e.stopPropagation())};
_.Y.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var e;(e=this.ironTextAreaElement.textarea)==null||e.focus();this.logClientVe(159407)}};
_.Y.handleMouseEnter=function(){this.mouseOver=!0};
_.Y.handleMouseLeave=function(){this.mouseOver=!1};
_.Y.handleReplay=function(e){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),e.stopPropagation(),this.logClientVe(159408))};
_.Y.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()))};
_.Y.handleKeypress=function(e){this.data&&(this.isEditMode?e.stopPropagation():this.isEnterPress(e)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(e)&&this.logClientVe(138758))};
_.Y.handleTextboxClick=function(e){e.stopPropagation()};
_.Y.handleTextboxKeydown=function(e){this.isControlEnterPress(e)?this.handleSubmit(e):e.key==="Escape"&&this.handleCancel(e)};
_.Y.handleTextboxKeyup=function(){this.textChanged=_.Zd(this.latestText)!==String(this.ironTextAreaElement.value)};
_.Y.fireSelectedEvent=function(e){_.pi(this.hostElement,"yt-transcript-segment-selected",{startMs:e})};
_.Y.fireReplayEvent=function(e,z){_.pi(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(e-100,0),endMs:z})};
_.Y.fireEditEvent=function(e,z){_.pi(this.hostElement,"yt-transcript-segment-edit",{startMs:e,endMs:z})};
_.Y.isEnterPress=function(e){return e.key==="Enter"||e.code==="Enter"||e.code==="NumpadEnter"||e.keyCode===13?!0:!1};
_.Y.isControlEnterPress=function(e){var z=e.key==="Enter"||e.code==="Enter"||e.code==="NumpadEnter"||e.keyCode===13;return(e.ctrlKey||e.metaKey)&&z};
_.Y.isCopyPress=function(e){var z=e.ctrlKey;return e.key==="c"&&z};
_.Y.logClick=function(){var e,z=(e=this.data)==null?void 0:e.trackingParams;z&&_.Zw(_.nm(),z)};
_.Y.logClientVe=function(e){_.Ai(_.nm(),_.mT(e))};
_.lB.Object.defineProperties(jV.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}}});
jV.prototype.handleMouseLeave=jV.prototype.handleMouseLeave;jV.prototype.handleMouseEnter=jV.prototype.handleMouseEnter;jV.prototype.dataChanged=jV.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],jV.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],jV.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],jV.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jV.prototype,"isEditMode",void 0);_.d([_.F(),_.B("design:type",Object)],jV.prototype,"touchCaptionsEnabled",void 0);_.d([_.F(),_.B("design:type",Object)],jV.prototype,"editedText",void 0);_.d([_.F(),_.B("design:type",Object)],jV.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.d([_.F(),_.B("design:type",Object)],jV.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.d([_.F(),_.B("design:type",String)],jV.prototype,"segmentAriaLabel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jV.prototype,"roundedContainer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jV.prototype,"mouseOver",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jV.prototype,"textChanged",void 0);_.d([_.F(),_.B("design:type",Object)],jV.prototype,"messages",void 0);
_.d([_.nP("#suggestion"),_.B("design:type",Object)],jV.prototype,"ironTextAreaElement",void 0);_.d([_.P("data","editedText"),_.B("design:type",Object),_.B("design:paramtypes",[])],jV.prototype,"latestText",null);_.d([_.P("touchCaptionsEnabled","isEditMode"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jV.prototype,"enableEditButton",null);
_.d([_.P("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jV.prototype,"enableUndoButton",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jV.prototype,"dataChanged",null);_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jV.prototype,"handleMouseEnter",null);
_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jV.prototype,"handleMouseLeave",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],jV);
_.u(jV,"ytd-transcript-segment-renderer",function(){if(Kmy!==void 0)return Kmy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Kmy=e},{mode:1});var yB=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};e.isError=!1;e.darkerPanels=_.M("web_watch_darker_panels");e.useParentMaxHeight=_.M("web_watch_transscript_use_parent_max_height");e.segmentOffsets=[];e.segmentIndex=-1;return e};
_.U(yB,_.V);_.Y=yB.prototype;_.Y.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"}}}}};
_.Y.segmentsChanged=function(){this.updateOffsets()};
_.Y.onYtPlayerTimeChanged=function(e){for(var z=this.segmentIndex,C=z;;){if(C>=0){var w=this.segmentOffsets[C].start;var K=this.segmentOffsets[C].isAutoScrollable}else w=-1,K=!0;var G=e+.5;if(!K){w=C+1<this.segmentOffsets.length?this.segmentOffsets[C+1].start:Infinity;if(G>=w){C+=1;continue}C=-1;break}if(G<w)w=C-1>=0&&this.segmentOffsets[C-1].isAutoScrollable,K=C===0||w?1:2,C-=K;else if(K=C+1<this.segmentOffsets.length&&this.segmentOffsets[C+1].isAutoScrollable?1:2,w=C+K<this.segmentOffsets.length?
this.segmentOffsets[C+K].start:Infinity,G>w)C+=K;else{if(C<0)break;C<this.segmentOffsets.length&&G>this.segmentOffsets[C].end&&(C=-1);break}}if(z!==C){if(z>=0){var X;(X=this.getSegmentElement(z))==null||X.classList.remove("active")}this.segmentIndex=C;if(!(C<0)){var J;(J=this.getSegmentElement(C))==null||J.classList.add("active");this.isHovered||this.scrollElementToTop(C)}}};
_.Y.handleSegmentEdit=function(e){e.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=e.target,_.eA(this.hostElement,"yt-transcript-player-edit",[e.detail.startMs/1E3,e.detail.endMs/1E3]))};
_.Y.handleSegmentSelected=function(e){_.eA(this.hostElement,"yt-transcript-player-seek",[e.detail.startMs/1E3])};
_.Y.handleSegmentReplay=function(e){_.eA(this.hostElement,"yt-transcript-player-replay",[e.detail.startMs/1E3,e.detail.endMs/1E3])};
_.Y.handleSectionHeaderSelected=function(e){_.eA(this.hostElement,"yt-transcript-player-seek",[e.detail.startMs/1E3])};
_.Y.onMouseEnter=function(){this.isHovered=!0};
_.Y.onMouseLeave=function(){this.isHovered=!1};
_.Y.onRetryButtonClick=function(){_.pi(this.hostElement,"transcript-retry-button-click")};
_.Y.getSegmentElement=function(e){return _.XC(this.hostElement).querySelector(":nth-child("+(e+1)+")")};
_.Y.scrollElementToTop=function(e){e=this.getSegmentElement(e>=2?e-2:0);this.hostElement.scrollTop=Math.min(e.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Y.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(e){var z,C=(z=e.transcriptSegmentRenderer)!=null?z:e.transcriptSectionHeaderRenderer;return{start:Number(C.startMs)/1E3,end:Number(C.endMs)/1E3,isAutoScrollable:e.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.Y.clearHighlightedSegments=function(){var e=_.XC(this.hostElement);e=_.b(e.querySelectorAll("ytd-transcript-segment-renderer"));for(var z=e.next();!z.done;z=e.next())z.value.classList.remove("active")};
_.lB.Object.defineProperties(yB.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:e.searchResultSegments)||((z=this.data)==null?void 0:z.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
yB.prototype.onMouseLeave=yB.prototype.onMouseLeave;yB.prototype.onMouseEnter=yB.prototype.onMouseEnter;yB.prototype.handleSectionHeaderSelected=yB.prototype.handleSectionHeaderSelected;yB.prototype.handleSegmentReplay=yB.prototype.handleSegmentReplay;yB.prototype.handleSegmentSelected=yB.prototype.handleSegmentSelected;yB.prototype.handleSegmentEdit=yB.prototype.handleSegmentEdit;yB.prototype.segmentsChanged=yB.prototype.segmentsChanged;
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],yB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yB.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],yB.prototype,"isError",void 0);
_.d([_.F(),_.B("design:type",Object)],yB.prototype,"noResultLabel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yB.prototype,"darkerPanels",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yB.prototype,"useParentMaxHeight",void 0);_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],yB.prototype,"segments",null);
_.d([_.P("segments","noResultLabel"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yB.prototype,"displayNoResults",null);_.d([_.mi("segments"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yB.prototype,"segmentsChanged",null);_.d([_.Qi("yt-transcript-segment-edit"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yB.prototype,"handleSegmentEdit",null);
_.d([_.Qi("yt-transcript-segment-selected"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yB.prototype,"handleSegmentSelected",null);_.d([_.Qi("yt-transcript-segment-replay"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yB.prototype,"handleSegmentReplay",null);
_.d([_.Qi("ytd-transcript-section-header"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],yB.prototype,"handleSectionHeaderSelected",null);_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yB.prototype,"onMouseEnter",null);_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yB.prototype,"onMouseLeave",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],yB);
_.u(yB,"ytd-transcript-segment-list-renderer",function(){if(wfa!==void 0)return wfa;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return wfa=e},{mode:1});var cD=function(){var e=_.V.apply(this,arguments)||this;e.hideTimestamps=!!_.PJ("hide-transcript-timestamps");e.isLoadingTranscripts=!1;e.darkerPanels=_.M("web_watch_darker_panels");e.isError=!1;e.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return e};
_.U(cD,_.V);_.Y=cD.prototype;_.Y.headerChanged=function(){var e,z;this.baseGetTranscriptsCommand=(z=_.r((e=this.data)==null?void 0:e.header,UDa))==null?void 0:z.onTextChangeCommand};
_.Y.bodyChanged=function(){var e=this.getBodyRenderer();e&&(e.initialSegments&&(this.initialTranscriptsRenderer=e),e.noResultLabel&&(this.noResultLabel=e.noResultLabel),e.retryLabel&&(this.retryLabel=e.retryLabel))};
_.Y.detached=function(){this.clearSearchBoxText()};
_.Y.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.Y.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"}}}};
_.Y.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.Y.fireSearch=function(e){var z=this;if(e){var C=e.detail.query;if(this.baseGetTranscriptsCommand){var w;e=(w=_.r(this.baseGetTranscriptsCommand,_.NDc))==null?void 0:w.params;var K;w=_.r((K=this.data)==null?void 0:K.footer,bZC);var G;if((K=(G=_.r(w==null?void 0:w.languageMenu,nIg))==null?void 0:G.subMenuItems)&&K.length>0&&(G=K.find(function(q){return q.selected}))){var X,J;
e=(X=G.continuation)==null?void 0:(J=X.reloadContinuationData)==null?void 0:J.continuation}X=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:e,searchQuery:C}});this.ytComponentBehavior.resolveCommand(X,{commandController:{onServerError:function(){z.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});DUt(this.ytContinuationHandlerBehavior,function(){return C===z.getCurrentSearchBoxText()})}}};
_.Y.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.Y.onRetryButtonClick=function(){this.isError=!1;var e={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:e}))};
_.Y.hideTimestampsChanged=function(){_.WJ("hide-transcript-timestamps",this.hideTimestamps)};
_.Y.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.Y.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.Y.handleSignalActionCopyTranscript=function(){var e=this,z=this.getBodyRenderer();z&&(z=((z==null?void 0:z.searchResultSegments)||(z==null?void 0:z.initialSegments)||[]).map(function(C){return _.r(C,IVC)}).filter(function(C){return!!C}).map(function(C){return{snippet:C.snippet||{runs:[{text:""}]},
startTimeText:C.startTimeText||{simpleText:""}}}).map(function(C){var w=(C.snippet.runs||[]).reduce(function(K,G){return K+G.text},"");
return e.hideTimestamps?w:C.startTimeText.simpleText+" "+w}).join("\n"),this.copyToClipboard(z))};
_.Y.copyToClipboard=function(e){navigator.clipboard&&navigator.clipboard.writeText(e)};
_.Y.getCurrentSearchBoxText=function(){var e;return(e=this.searchBox)==null?void 0:e.value};
_.Y.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.Y.getBodyRenderer=function(){var e;return _.r((e=this.data)==null?void 0:e.body,vIy)};
_.Y.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.lB.Object.defineProperties(cD.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.XC(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
cD.prototype.hideTimestampsChanged=cD.prototype.hideTimestampsChanged;cD.prototype.searchCleared=cD.prototype.searchCleared;cD.prototype.fireSearch=cD.prototype.fireSearch;cD.prototype.onReloadContinuationFinish=cD.prototype.onReloadContinuationFinish;cD.prototype.bodyChanged=cD.prototype.bodyChanged;cD.prototype.headerChanged=cD.prototype.headerChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],cD.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],cD.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cD.prototype,"hideTimestamps",void 0);
_.d([_.F(),_.B("design:type",Object)],cD.prototype,"isLoadingTranscripts",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],cD.prototype,"darkerPanels",void 0);_.d([_.F(),_.B("design:type",Object)],cD.prototype,"isError",void 0);_.d([_.mi("data.header"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cD.prototype,"headerChanged",null);
_.d([_.Ux("data.body"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cD.prototype,"bodyChanged",null);_.d([_.Qi("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cD.prototype,"onReloadContinuationFinish",null);_.d([_.Qi("yt-transcript-search-box-search"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],cD.prototype,"fireSearch",null);
_.d([_.Qi("yt-transcript-search-box-clear"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cD.prototype,"searchCleared",null);_.d([_.mi("hideTimestamps"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cD.prototype,"hideTimestampsChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],cD);
_.u(cD,"ytd-transcript-search-panel-renderer",function(){if(zNy!==void 0)return zNy;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return zNy=e},{mode:1});var Ac=function(){var e=_.V.apply(this,arguments)||this;e.player=null;e.playerPollJobId=0;return e};
_.U(Ac,_.V);_.Y=Ac.prototype;_.Y.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.Y.onLoadReloadContinuation=function(e){_.M("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:e.target.data.continuation}}):(e={clickTrackingParams:e.target.data.clickTrackingParams,getTranscriptEndpoint:{params:e.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}}))};
_.Y.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"}}}};
_.Y.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.Y.attached=function(){this.updatePlayerListening()};
_.Y.detached=function(){this.updatePlayerListening()};
_.Y.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.Y.startPlayerListening=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return(z=_.ox())?C.yield(z.getPlayerPromise(),2):C.return();e.player=C.yieldResult;e.playerPollJobId=_.c5.addLowPriorityJob(function(){e.getPlayerVideoProgress()},1E3);
e.player.addEventListener("onCueRangeEnter",function(w){e.onCueRangeEnter(w)});
e.player.addEventListener("onCueRangeExit",function(w){e.onCueRangeExit(w)});
e.player.addEventListener("onStateChange",function(w){e.onPlayerStateChange(w)});
e.player.addEventListener("SEEK_TO",function(w){e.onPlayerSeek(w)});
_.E_(C)})};
_.Y.getPlayerVideoProgress=function(){var e=this;_.c5.cancelJob(this.playerPollJobId);if(this.player){var z=this.player.getCurrentTime();_.eA(this.hostElement,"yt-player-time-changed",[z])}this.playerPollJobId=_.c5.addLowPriorityJob(function(){e.getPlayerVideoProgress()},1E3)};
_.Y.stopPlayerListening=function(){this.player=null;_.c5.cancelJob(this.playerPollJobId)};
_.Y.onPlayerStateChange=function(e){e===2&&this.removePendingCue()};
_.Y.onPlayerSeek=function(e){var z;if(z=this.pendingReplayCueId)z=this.pendingReplayCueId,z=e===(_.M("web_transcript_cue_id_killswitch")?Number(z):Number(z.split("_")[1]));z||this.removePendingCue()};
_.Y.onCueRangeEnter=function(e){GEa(e)&&(this.pendingReplayCueId=e)};
_.Y.onCueRangeExit=function(e){GEa(e)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.Y.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.Y.onYtTranscriptPlayerSeek=function(e){this.player&&this.player.seekTo(e,!0)};
_.Y.onYtTranscriptPlayerReplay=function(e,z){this.player&&(this.player.addCueRange(oOl(e),e,z),this.player.seekTo(e,!0),this.player.playVideo())};
_.Y.onYtTranscriptPlayerEdit=function(e,z){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(oOl(e),e,z),this.player.seekTo(e,!0))};
Ac.prototype.onLoadReloadContinuation=Ac.prototype.onLoadReloadContinuation;Ac.prototype.panelContentVisibleChanged=Ac.prototype.panelContentVisibleChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ac.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ac.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ac.prototype,"panelContentVisible",void 0);_.d([_.mi("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ac.prototype,"panelContentVisibleChanged",null);
_.d([_.Qi("yt-load-reload-continuation"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],Ac.prototype,"onLoadReloadContinuation",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Ac);
_.u(Ac,"ytd-transcript-renderer",function(){if(prg!==void 0)return prg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return prg=e},{mode:1});var oka;var Gjy;var Zj=function(){return _.V.apply(this,arguments)||this};
_.U(Zj,_.V);Zj.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.KK(this.hostElement,[this.data.clickCommand],this.hostElement))};
Zj.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.cz)()+_.ff)+"px)"};
Zj.prototype.updateShouldHideFromBinding=function(e){this.shouldHide=e.detail.value};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Zj.prototype,"rendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Zj.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],Zj.prototype,"shouldHide",void 0);_.d([_.SL({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Zj);
_.u(Zj,"ytd-ad-engagement-panel-banner-renderer",function(){if(Gjy!==void 0)return Gjy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Gjy=e},{mode:_.bA("kevlar_poly_si_batch_j070")?1:2});var Y6a;var pt=function(){var e=_.V.apply(this,arguments)||this;e.buttonUpdate=_.M("web_modern_buttons");e.adsSemanticText=_.M("enable_ads_web_ep_buenos_aires_and_padding_fix");return e};
_.U(pt,_.V);pt.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.d([_.F(),_.B("design:type",Object)],pt.prototype,"data",void 0);_.d([_.F({computed:"computeHideDefaultAdBadge(data)"}),_.B("design:type",Boolean)],pt.prototype,"hideDefaultAdBadge",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pt.prototype,"buttonUpdate",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pt.prototype,"adsSemanticText",void 0);_.d([_.SL({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],pt);
_.u(pt,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Y6a!==void 0)return Y6a;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Y6a=e},{mode:1});var bKL;var ep=function(){var e=_.V.apply(this,arguments)||this;e.darkerPanels=_.M("web_watch_darker_panels");e.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");e.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");e.headerClickListener=function(z){e.onHeaderClick(z)};
e.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return e};
_.U(ep,_.V);_.Y=ep.prototype;_.Y.computeAdsInfoButton=function(){if(_.M("web_modern_buttons")){var e,z;return(z=_.r((e=this.data)==null?void 0:e.subtitleComplex,XQl))==null?void 0:z.adInfoRenderer}};
_.Y.updateHeaderClickListener=function(){var e,z,C;((e=this.data)==null?0:e.navigationEndpoint)||((z=this.data)==null?0:z.onClickCommand)||_.r((C=this.data)==null?void 0:C.visibilityButton,_.nH)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.Y.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}}}}}};
_.Y.collapsedChanged=function(){var e;(e=this.data)!=null&&e.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.M("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.Y.focus=function(e){var z=this;this.titleElement&&_.c5.addJob(function(){_.kO(z.titleElement,e)},0,500)};
_.Y.computeTitleAriaLabel=function(e){var z=[];if(e.title){var C,w;z.push(this.ytRendererBehavior.getSimpleString(e.title)||((C=e.title.accessibility)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label))}e.contextualInfo&&z.push(this.ytRendererBehavior.getSimpleString(e.contextualInfo));return z.join(" ")};
_.Y.onHeaderClick=function(e){this.shouldTriggerHeaderClick(e)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.KK(this.hostElement,[this.data.onClickCommand],this.hostElement)):(e=this.getVisibilityToggleButton())&&e.click())};
_.Y.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var e=_.r(this.data.visibilityButton,_.a2)||_.r(this.data.visibilityButton,_.nH);e&&this.ytRendererBehavior.logExplicitClick(e)}};
_.Y.getVisibilityToggleButton=function(){var e=_.XC(this.hostElement).querySelector("#visibility-button").firstElementChild;return(e==null?void 0:e.is)==="ytd-toggle-button-renderer"?e:null};
_.Y.shouldTriggerHeaderClick=function(e){return!_.zi(_.cJ(e),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.Y.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(e){e=_.r(e,_.e6g);this.targetId&&(e==null?void 0:e.targetId)===this.targetId&&(e=e.navigationButton)&&this.set("data.navigationButton",e)};
_.lB.Object.defineProperties(ep.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var e;return!!(((e=this.entity)==null?0:e.isActionButtonHidden)||this.hideActionButton)}}});
ep.prototype.collapsedChanged=ep.prototype.collapsedChanged;ep.prototype.updateHeaderClickListener=ep.prototype.updateHeaderClickListener;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ep.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],ep.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ep.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],ep.prototype,"targetId",void 0);_.d([_.F(),_.B("design:type",Boolean)],ep.prototype,"collapsed",void 0);_.d([_.F(),_.B("design:type",Boolean)],ep.prototype,"hideActionButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ep.prototype,"shortsPanel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ep.prototype,"liveChatEngagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ep.prototype,"learningChatEngagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ep.prototype,"darkerPanels",void 0);_.d([_.nP("#title"),_.B("design:type",HTMLElement)],ep.prototype,"titleElement",void 0);_.d([_.nP("#header"),_.B("design:type",HTMLElement)],ep.prototype,"headerElement",void 0);
_.d([_.F({computed:"computeAdsInfoButton(data)"}),_.B("design:type",Object)],ep.prototype,"adsInfoButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ep.prototype,"enableSqueezebackPanels",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ep.prototype,"enableAnchoredPanel",void 0);_.d([_.F({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(e,z){return _.xz(e.entities,"engagementPanelTitleHeaderEntity",z)}}),
_.B("design:type",Object)],ep.prototype,"entity",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("targetId"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ep.prototype,"adsSemanticText",null);_.d([_.mi("data","data.navigationEndpoint","data.onClickCommand"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ep.prototype,"updateHeaderClickListener",null);
_.d([_.Ux("collapsed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ep.prototype,"collapsedChanged",null);_.d([_.P("entity","hideActionButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],ep.prototype,"isActionButtonHidden",null);_.d([_.SL({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ep);
_.u(ep,"ytd-engagement-panel-title-header-renderer",function(){if(bKL!==void 0)return bKL;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return bKL=e},{mode:1});var Xf2;var zP=function(){return _.V.apply(this,arguments)||this};
_.U(zP,_.V);zP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zP.prototype,"data",void 0);_.d([_.SL({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],zP);
_.u(zP,"ytd-macro-markers-info-item-renderer",function(){if(Xf2!==void 0)return Xf2;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Xf2=e},{mode:1});var JgC;var Ce=function(e,z,C,w,K,G){_.Sn.call(this);var X=this;this.JSC$23455_containerElement=e;this.hostElement=z;this.supportedSyncItems=C;this.syncEntityKey=w;this.options=K;this.renderLazyListItems=G;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;kjj(this);q6l(this);this.JSC$23455_scrollAnimation=new _.FJ(function(J){e.scrollTop=J});
_.I4(this,this.JSC$23455_scrollAnimation);this.addOnDisposeCallback(function(){xLY(X,!1);X.activeItem&&X.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.U(Ce,_.Sn);var kjj=function(e){var z=_.K3(_.lh().resolve(_.Tr),function(C){return C.entities.markersEngagementPanelSyncEntity||{}},function(C,w){var K;
if(C[e.syncEntityKey]!==w[e.syncEntityKey]&&((K=C[e.syncEntityKey])==null?void 0:K.activeItemIndex)!==void 0)if(w=C[e.syncEntityKey].activeItemIndex,C=e.getItemByIndex(w)){if(TQj(e,C),e.contentVisible)if(e.browsingMode){var G;((G=e.options)==null?void 0:G.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(G=$LT(e),C.offsetTop<e.JSC$23455_containerElement.clientHeight+e.JSC$23455_containerElement.scrollTop&&G&&!e.activeItemBelowSyncPosition&&xLY(e,!1));lEy(e)}else e.scrollToItem(C)}else _.AX(new _.uh("Could not find "+
e.supportedSyncItems+" sync child to set active.",w,e.JSC$23455_containerElement.querySelectorAll(e.supportedSyncItems).length))});
e.unsubscribeFromTimedMarkersListSyncEntity=z;e.addOnDisposeCallback(z);QSl(e)},QSl=function(e){var z=_.lh().resolve(_.Tr);
z=_.nME(z.getState(),e.syncEntityKey);(z==null?void 0:z.activeItemIndex)!==void 0&&(z=e.getItemByIndex(z.activeItemIndex))&&TQj(e,z)},q6l=function(e){var z=new _.lw(e.onScroll,50,e);
_.I4(e,z);var C=function(){z.fire()};
e.JSC$23455_containerElement.addEventListener("scroll",C);e.addOnDisposeCallback(function(){e.JSC$23455_containerElement.removeEventListener("scroll",C)})};
Ce.prototype.getItemByIndex=function(e){var z;(z=this.renderLazyListItems)==null||z.call(this,e);z=this.JSC$23455_containerElement.querySelectorAll(this.supportedSyncItems);if(z.length>e)return z[e]};
var TQj=function(e,z){e.activeItem&&e.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));z.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));e.activeItem=z};
Ce.prototype.scrollToItem=function(e){e=this.getScrollPositionForItem(e);this.JSC$23455_containerElement.scrollTop!==e&&this.JSC$23455_scrollAnimation.start(this.JSC$23455_containerElement.scrollTop,e,300)};
Ce.prototype.getScrollPositionForItem=function(e){if(this.JSC$23455_containerElement.querySelectorAll(this.supportedSyncItems)[0]===e)return 0;var z,C=((z=this.options)==null?0:z.percentOffset)?this.JSC$23455_containerElement.clientHeight*this.options.percentOffset:0;e=_.ge(e).y+this.JSC$23455_containerElement.scrollTop-(_.ge(this.JSC$23455_containerElement).y+C);return Math.max(0,Math.min(e,this.JSC$23455_containerElement.scrollHeight-this.JSC$23455_containerElement.offsetHeight))};
Ce.prototype.onScroll=function(){this.activeItemBelowSyncPosition=$LT(this);if(this.activeItem&&!this.JSC$23455_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23455_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var e;switch((e=this.options)==null?void 0:e.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":mLa(this,!aEC(this));lEy(this);break;default:mLa(this,!0)}}};
var mLa=function(e,z){var C,w;_.k(function(K){if(K.nextAddress==1){if(e.browsingMode)return K.return();e.browsingMode=!0;z&&e.hostElement.classList.add("browsing-mode");e.playerExitBrowsingModeListener=function(){xLY(e,!1)};
return K.yield(_.ax(),2)}C=K.yieldResult;(w=C)==null||w.addEventListener("SEEK_TO",e.playerExitBrowsingModeListener);_.E_(K)})},xLY=function(e,z){z=z===void 0?!0:z;
e.browsingMode&&(e.browsingMode=!1,e.hostElement.classList.remove("browsing-mode"),z&&e.scrollToItem(e.activeItem),nkw(e))},nkw=function(e){var z,C;
_.k(function(w){if(w.nextAddress==1)return e.playerExitBrowsingModeListener?w.yield(_.ax(),3):w.jumpTo(0);z=w.yieldResult;(C=z)==null||C.removeEventListener("SEEK_TO",e.playerExitBrowsingModeListener);e.playerExitBrowsingModeListener=void 0;_.E_(w)})},lEy=function(e){var z;
((z=e.options)==null?void 0:z.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(aEC(e)?e.hostElement.classList.remove("browsing-mode"):e.activeItem&&e.hostElement.classList.add("browsing-mode"))},$LT=function(e){if(!e.activeItem)return!1;
var z,C=((z=e.options)==null?0:z.percentOffset)?e.JSC$23455_containerElement.clientHeight*e.options.percentOffset:0;return e.activeItem.offsetTop>=e.JSC$23455_containerElement.scrollTop+C},aEC=function(e){if(!e.activeItem)return!1;
var z=e.activeItem.offsetTop+14<=e.JSC$23455_containerElement.scrollTop+e.JSC$23455_containerElement.clientHeight;return e.activeItem.offsetTop+e.activeItem.clientHeight-14>=e.JSC$23455_containerElement.scrollTop&&z};
Ce.prototype.panelContentVisibleChanged=function(e){(this.contentVisible=e)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var MAj=function(e,z){e.syncEntityKey=z;var C;(C=e.unsubscribeFromTimedMarkersListSyncEntity)==null||C.call(e);kjj(e)},rgg=function(e,z){e.options=z};var wv=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return e};
_.U(wv,_.V);_.Y=wv.prototype;_.Y.detached=function(){var e;(e=this.scrollController)==null||e.dispose();this.scrollController=void 0};
_.Y.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"}}}};
_.Y.dataChanged=function(){var e=this;_.T0(this,function(){if(e.scrollController){var z;(z=e.scrollController)==null||xLY(z,!1);var C,w,K;(w=e.scrollController)==null||MAj(w,(K=(C=e.data)==null?void 0:C.syncModelEntityKey)!=null?K:"default-macro-markers-list-renderer-entity-key");var G,X,J;(J=e.scrollController)==null||rgg(J,{percentOffset:(G=e.data)==null?void 0:G.selectedItemAlignmentPercentOffset,floatingPillType:(X=e.data)==null?void 0:X.floatingPillType})}else{var q,T,Q,m;e.scrollController=
new Ce(e.contents,e.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(m=(q=e.data)==null?void 0:q.syncModelEntityKey)!=null?m:"default-macro-markers-list-renderer-entity-key",{percentOffset:(T=e.data)==null?void 0:T.selectedItemAlignmentPercentOffset,floatingPillType:(Q=e.data)==null?void 0:Q.floatingPillType},function(a){e.renderLazyListItems(a)})}e.scrollController.panelContentVisibleChanged(!!e.panelContentVisible)})};
_.Y.computeButtonShape=function(){var e=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){e.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.Y.renderLazyListItems=function(e){for(var z=this.contents.children,C=0,w=0;w<z.length;w++){var K=void 0;(K=z[w].ytLazyListBehavior)==null||K.fillRemainingListItems();var G=void 0,X=void 0;K=_.r((G=this.data)==null?void 0:(X=G.contents)==null?void 0:X[w],_.Wja);X=G=void 0;if((G=K)==null?0:(X=G.contents)==null?0:X.length)C+=K.contents.length;if(C>=e)break}};
_.Y.handleSetActivePanelItemAction=function(e){if((e=_.r(e,Cpj))&&this.panelTargetId===e.panelTargetId){e=e.itemIndex;var z,C,w=(C=(z=this.data)==null?void 0:z.syncModelEntityKey)!=null?C:"default-macro-markers-list-renderer-entity-key",K;((K=this.syncEntity)==null?void 0:K.activeItemIndex)!==e&&this.ytdReduxBehavior.dispatch(_.Rx("markersEngagementPanelSyncEntity",w,{key:w,activeItemIndex:e}))}};
_.Y.onSyncClick=function(){var e;(e=this.scrollController)==null||xLY(e)};
_.Y.panelContentVisibleChanged=function(){var e;(e=this.scrollController)==null||e.panelContentVisibleChanged(!!this.panelContentVisible)};
wv.prototype.panelContentVisibleChanged=wv.prototype.panelContentVisibleChanged;wv.prototype.dataChanged=wv.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],wv.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],wv.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wv.prototype,"data",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],wv.prototype,"useCustomColors",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],wv.prototype,"panelTargetId",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],wv.prototype,"panelContentVisible",void 0);
_.d([_.nP("#contents"),_.B("design:type",HTMLElement)],wv.prototype,"contents",void 0);_.d([_.F({selectorArgs:["data.syncModelEntityKey"],selector:_.nME}),_.B("design:type",Object)],wv.prototype,"syncEntity",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wv.prototype,"dataChanged",null);
_.d([_.mi("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wv.prototype,"panelContentVisibleChanged",null);_.d([_.SL({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],wv);
_.u(wv,"ytd-macro-markers-list-renderer",function(){if(JgC!==void 0)return JgC;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return JgC=e},{mode:1});var HKt;var Ke=function(){return _.V.apply(this,arguments)||this};
_.U(Ke,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Ke.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ke.prototype,"data",void 0);_.d([_.SL({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Ke);
_.u(Ke,"ytd-error-corrections-section-item-renderer",function(){if(HKt!==void 0)return HKt;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return HKt=e},{mode:1});var ULa;var o1=function(){return _.V.apply(this,arguments)||this};
_.U(o1,_.V);o1.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],o1.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],o1.prototype,"data",void 0);_.d([_.SL({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],o1);
_.u(o1,"ytd-error-corrections-section-renderer",function(){if(ULa!==void 0)return ULa;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ULa=e},{mode:1});var vkC;var GP=function(){return _.V.apply(this,arguments)||this};
_.U(GP,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],GP.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GP.prototype,"data",void 0);_.d([_.SL({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],GP);
_.u(GP,"ytd-topic-link-renderer",function(){if(vkC!==void 0)return vkC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vkC=e},{mode:1});var IEj;var Yr=function(){var e=_.V.apply(this,arguments)||this;e.modernLockupV2=_.M("modernize_structured_description_playlist_lockups_v2");return e};
_.U(Yr,_.V);Yr.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Yr.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Yr.prototype,"modernLockupV2",void 0);_.d([_.SL({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Yr);
_.u(Yr,"ytd-video-description-course-section-renderer",function(){if(IEj!==void 0)return IEj;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return IEj=e},{mode:1});var Wm2;var bN=function(){return _.V.apply(this,arguments)||this};
_.U(bN,_.V);bN.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bN.prototype,"data",void 0);_.d([_.SL({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],bN);
_.u(bN,"ytd-video-description-files-section-renderer",function(){if(Wm2!==void 0)return Wm2;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Wm2=e},{mode:1});var PdL;var Xj=function(){return _.V.apply(this,arguments)||this};
_.U(Xj,_.V);Xj.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xj.prototype,"data",void 0);_.d([_.SL({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Xj);
_.u(Xj,"ytd-video-description-gaming-section-renderer",function(){if(PdL!==void 0)return PdL;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return PdL=e},{mode:1});var RNy;var Js=function(){var e=_.V.apply(this,arguments)||this;e.isExpanded=!1;return e};
_.U(Js,_.V);Js.prototype.computeHasDefaultMetadataEndpoint=function(e){var z;e=e==null?void 0:(z=e.defaultMetadata)==null?void 0:z.runs;return!(!e||e.length!==1||!e[0].navigationEndpoint)};
Js.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.lB.Object.defineProperties(Js.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Js.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Js.prototype,"isExpanded",void 0);_.d([_.F({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Js.prototype,"hasDefaultMetadataEndpoint",void 0);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Js.prototype,"isExpandable",null);_.d([_.P("data","isExpandable","isExpanded"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Js.prototype,"showExpandedMetadata",null);_.d([_.SL({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Js);
_.u(Js,"ytd-info-row-renderer",function(){if(RNy!==void 0)return RNy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return RNy=e},{mode:1});var Lmj;var kr=function(){var e=_.V.apply(this,arguments)||this;e.currentIndex=0;e.supportComponentResize=!0;e.JSC$23484_lastScrollContainerWidth=NaN;return e};
_.U(kr,_.V);_.Y=kr.prototype;
_.Y.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"}}}};
_.Y.getItemsPath=function(){return"videoLockups"};
_.Y.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.Y.onIronResize=function(){this.updateVideoLockupStyles()};
_.Y.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.Y.updateVideoLockupStyles=function(){var e;this.JSC$23484_scrollContainer!==void 0&&(e=this.videoLockups)!=null&&e.length&&(e=this.JSC$23484_scrollContainer.clientWidth,e!==this.JSC$23484_lastScrollContainerWidth&&(this.JSC$23484_lastScrollContainerWidth=e,_.T8(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(e*.8,415)+"px"}),_.pi(this.hostElement,"iron-resize")))};
_.lB.Object.defineProperties(kr.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var e=[],z;if((z=this.data)==null||!z.carouselLockups)return e;z=_.b(this.data.carouselLockups);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=void 0;((w=_.r(C,h6l))==null?0:w.videoLockup)&&e.push(_.r(C,h6l).videoLockup)}return e}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.videoLockups)==null||!e.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var e=[],z;if((z=this.data)==null||!z.carouselLockups)return e;var C;return(C=_.r(this.data.carouselLockups[this.scrollCount],h6l))==null?void 0:C.infoRows}}});
kr.prototype.dataChanged=kr.prototype.dataChanged;kr.prototype.onIronResize=kr.prototype.onIronResize;kr.prototype.hiddenChanged=kr.prototype.hiddenChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],kr.prototype,"componentBehavior",void 0);_.d([_.W(_.u2.YtdHorizontalListBehavior),_.B("design:type",Object)],kr.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kr.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],kr.prototype,"inlineStructuredDescription",void 0);_.d([_.F({value:2}),_.B("design:type",Number)],kr.prototype,"initialCount",void 0);_.d([_.F(),_.B("design:type",Object)],kr.prototype,"currentIndex",void 0);
_.d([_.F(),_.B("design:type",Number)],kr.prototype,"scrollCount",void 0);_.d([_.F(),_.B("design:type",Object)],kr.prototype,"supportComponentResize",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],kr.prototype,"contentHidden",void 0);_.d([_.nP("#scroll-container"),_.B("design:type",HTMLDivElement)],kr.prototype,"JSC$23484_scrollContainer",void 0);
_.d([_.mi("contentHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kr.prototype,"hiddenChanged",null);_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],kr.prototype,"videoLockups",null);_.d([_.P("videoLockups"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],kr.prototype,"hasVideoLockups",null);
_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kr.prototype,"onIronResize",null);_.d([_.P("data","scrollCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],kr.prototype,"infoRows",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kr.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],kr);
_.u(kr,"ytd-video-description-music-section-renderer",function(){if(Lmj!==void 0)return Lmj;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Lmj=e},{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var hNY;var q9=function(){return _.V.apply(this,arguments)||this};
_.U(q9,_.V);q9.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.d([_.F({}),_.B("design:type",Object)],q9.prototype,"data",void 0);_.d([_.SL({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],q9);
_.u(q9,"ytd-video-description-transcript-section-renderer",function(){if(hNY!==void 0)return hNY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return hNY=e},{mode:1});var OKY;_.KU(_.f(function(e){var z=_.vF(_.Hlm,function(){return e.data().firstProviderLinkStatusEntityKey}),C=_.vF(_.Hlm,function(){return e.data().secondProviderLinkStatusEntityKey}),w=function(){var K,G;
return((K=z())==null?void 0:K.linked)||((G=C())==null?void 0:G.linked)};
return _.x("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.x(_.U2,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return e.data().sectionTitle}}),_.x(_.U2,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return w()?e.data().connectedMessage:e.data().notConnectedMessage}}),_.x(_.l,{cond:w,
then:function(){return _.x(_.PF,{data:function(){return e.data().connectedButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.x(_.l,{cond:function(){return!w()},
then:function(){return _.x(_.PF,{data:function(){return e.data().notConnectedButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"co"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;return _.x("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.x("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.x(_.U2,{text:function(){return z().sectionTitle}})),_.x("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.x(_.U2,{text:function(){return z().bodyHeader}})),_.x("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.x(_.U2,{text:function(){return z().bodyText}})),_.x(_.l,{cond:function(){return z().attributionText},
then:function(){return _.x("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.x(_.U2,{text:function(){return z().attributionText}}))}}))},"eo"),"how-this-was-made-section-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){return _.x("yt-video-description-youchat-section-view-model",{class:_.qT("ytVideoDescriptionYouchatSectionViewModelHost")},_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.x(_.U2,{text:function(){return e.data().sectionTitle}})),_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.x(_.U2,{text:function(){return e.data().subHeaderText}})),_.x("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.x(_.iz,{data:function(){return _.r(e.data().primaryButton,
_.H7)}})))},"fo"),"yt-video-description-youchat-section-view-model",{props:{data:_.vh}});var xr=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return e};
_.U(xr,_.V);_.Y=xr.prototype;
_.Y.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}}}}}};
_.Y.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.Y.dataChanged=function(){var e,z;this.hasDescriptionOnly=!(((e=this.data)==null?void 0:(z=e.items)==null?void 0:z.length)!==1||!_.r(this.data.items[0],Fi))};
_.Y.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.Y.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.Y.autoFocusDescription=function(){var e;((e=_.lh().resolve(_.$B(_.V5)))==null?0:e.isKeyBoardInUse())&&this.description&&_.qU(this.description)};
_.Y.resize=function(){if(_.M("kevlar_disable_sd_resize"))this.JSC$23492_cardList&&_.pi(this.JSC$23492_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.pi(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.pi(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.Y.scrollToSection=function(e){if(e=this.getSectionElement(e))_.eA(this.hostElement,"yt-scroll-to-watch-element",[e]),e.focus()};
_.Y.getSectionElement=function(e){switch(e){case "infocards-item-section":var z;return(z=this.infocardsSection)!=null?z:null;case "transcript-item-section":var C;return(C=this.transcriptSection)!=null?C:null;case "how-this-was-made-section-item-section":var w;return(w=this.howThisWasMadeSection)!=null?w:null;case "files-item-section":var K;return(K=this.filesSection)!=null?K:null;default:return null}};
_.Y.handleSetActiveItemAction=function(e){var z=_.r(e,Cpj),C=z&&(z==null?void 0:z.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23492_cardList;if(z&&C){e=this.currentActiveChapter;var w=this.currentActiveProblem;z=C==null?void 0:C.getItemByIndex(z.itemIndex);var K=C=!0;z&&(z.active=!0,z.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(C=e!==z,K=!1,this.currentActiveChapter=z):(z==null?void 0:z.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(C=!1,K=w!==z,this.currentActiveProblem=z));e&&C&&(e.active=!1);w&&K&&(w.active=!1)}};
_.lB.Object.defineProperties(xr.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.o3("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
xr.prototype.onYtExpanderMoreTapped=xr.prototype.onYtExpanderMoreTapped;xr.prototype.onHiddenChanged=xr.prototype.onHiddenChanged;xr.prototype.dataChanged=xr.prototype.dataChanged;xr.prototype.panelContentVisibleChanged=xr.prototype.panelContentVisibleChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],xr.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.oY),_.B("design:type",Object)],xr.prototype,"ironResizableBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xr.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],xr.prototype,"panelContentVisible",void 0);_.d([_.F(),_.B("design:type",Boolean)],xr.prototype,"hasDescriptionOnly",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],xr.prototype,"inlineStructuredDescription",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],xr.prototype,"hidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],xr.prototype,"shortsPanel",void 0);_.d([_.F(),_.B("design:type",Object)],xr.prototype,"videoSummary",void 0);_.d([_.F(),_.B("design:type",Object)],xr.prototype,"merchShelf",void 0);
_.d([_.P("videoSummary"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],xr.prototype,"showVideoSummary",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],xr.prototype,"engagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],xr.prototype,"watchWhileSdp",void 0);_.d([_.nP("ytd-expandable-video-description-body-renderer"),_.B("design:type",Object)],xr.prototype,"description",void 0);
_.d([_.nP("ytd-horizontal-card-list-renderer"),_.B("design:type",Object)],xr.prototype,"JSC$23492_cardList",void 0);_.d([_.nP("ytd-horizontal-card-list-renderer[center-items]"),_.B("design:type",Object)],xr.prototype,"problemWalkthroughCardList",void 0);_.d([_.nP("ytd-shelf-renderer"),_.B("design:type",Object)],xr.prototype,"shelfSection",void 0);_.d([_.nP("ytd-video-description-music-section-renderer"),_.B("design:type",Object)],xr.prototype,"musicMetadataSection",void 0);
_.d([_.nP("ytd-video-description-infocards-section-renderer"),_.B("design:type",Object)],xr.prototype,"infocardsSection",void 0);_.d([_.nP("ytd-video-description-transcript-section-renderer"),_.B("design:type",Object)],xr.prototype,"transcriptSection",void 0);_.d([_.nP("how-this-was-made-section-view-model"),_.B("design:type",Object)],xr.prototype,"howThisWasMadeSection",void 0);_.d([_.nP("ytd-video-description-files-section-renderer"),_.B("design:type",Object)],xr.prototype,"filesSection",void 0);
_.d([_.mi("panelContentVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xr.prototype,"panelContentVisibleChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xr.prototype,"dataChanged",null);_.d([_.mi("hidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xr.prototype,"onHiddenChanged",null);
_.d([_.Qi("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xr.prototype,"onYtExpanderMoreTapped",null);_.d([_.SL({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],xr);
_.u(xr,"ytd-structured-description-content-renderer",function(){if(OKY!==void 0)return OKY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return OKY=e},{mode:2});var EkY;var Fm2;var TP=function(){return _.V.apply(this,arguments)||this};
_.U(TP,_.V);TP.prototype.computeAriaLabel=function(e){var z,C;return(e==null?void 0:(z=e.accessibility)==null?void 0:(C=z.accessibilityData)==null?void 0:C.label)||_.kk("LOADING",void 0,"Loading")};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TP.prototype,"data",void 0);_.d([_.F({computed:"computeAriaLabel(data)"}),_.B("design:type",String)],TP.prototype,"ariaLabel",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],TP);
_.u(TP,"yt-content-loading-renderer",function(){if(Fm2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;EkY===void 0&&(EkY=document.createElement("template"));var w=EkY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Fm2=e}e=Fm2;return e},{mode:1});_.KU(_.f(function(e){var z=_.b(_.II(!1,void 0,"OZMtVb")),C=z.next().value,w=z.next().value;z=_.b(_.II(!1,void 0,"qWERsf"));var K=z.next().value,G=z.next().value;_.sg(function(){var q=_.r(e.data().collaboratePlaylistCollaborationSetting,MYj);q&&w(q.switchedOnByDefault);var T=_.r(e.data().allowNewCollaboratorsPlaylistCollaborationSetting,MYj);T&&G(T.switchedOnByDefault);if(!q&&!T||!q&&e.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")w(!0),G(!0)});
var X=function(q){w(q);G(q);var T=e.data().playlistCollaborationEntityKey||"";var Q=_.AK().getState();(Q=_.xz(Q.entities,"playlistCollaborationEntity",T))&&(Q==null?void 0:Q.isCollaborative)===q||_.AK().dispatch(_.Rx("playlistCollaborationEntity",T,Object.assign({},Q,{isCollaborative:q})))},J=function(q){G(q)};
return _.x("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.x("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.x(_.PF,{data:function(){return e.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(q){return _.x(_.OeY,{data:q.data,
onSwitch:X})}})),_.x(_.l,{cond:C,
then:function(){return _.x(_.Qw,null,_.x("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.x(_.PF,{data:function(){return e.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(q){return _.x(_.OeY,{data:q.data,
onSwitch:J,overrideDisabled:!1})}})),_.x(_.l,{cond:K,
then:function(){return _.x("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.x(_.PF,{data:function(){return e.data().copyLinkButton}},{buttonViewModel:_.iz}))}}),_.x("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.x(_.PF,{data:function(){return e.data().playlistCollaborators}},{contentListItemViewModel:_.AOW})))}}))},"go"),"playlist-collaboration-view-model",{props:{data:_.vh}});var VA2=_.f(function(e){var z=e.data;var C=e.customCommandResolver;return _.x(_.Qw,null,_.x("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.x(_.PF,{data:function(){return z().adAvatar}},{adAvatarViewModel:function(w){return _.x(_.CjL,{data:w.data,
customCommandResolver:C})}})),_.x("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.x(_.l,{cond:function(){return z().headline},
then:function(w){return _.x(_.U2,{text:w,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.x("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.x(_.PF,{data:function(){return z().adBadge}},{adBadgeViewModel:function(w){return _.x(_.A_,{data:w.data,
hasDot:function(){return z().primaryDetailsLine!==void 0},
customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.x(_.PF,{data:function(){return z().primaryDetailsLine}},{adDetailsLineViewModel:function(w){return _.x(_.ZN,{data:w.data,
customCommandResolver:C,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"ho"),fE2=_.f(function(e){var z=e.data;
var C=e.customCommandResolver;return _.x("ad-avatar-lockup-view-model",{class:function(){var w;return((w=z().interaction)==null?0:w.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.ej(_.aO({visibilityCallback:function(w){var K,G=(K=z().interaction)==null?void 0:K.onFirstVisible;w&&G&&_.NF(G)},
showOption:_.sD}),_.tm(function(){return z().interaction},C)),
"aria-label":function(){var w,K;return(w=z().interaction)==null?void 0:(K=w.accessibility)==null?void 0:K.label}},_.x(_.d1,null,_.x(_.fd,{when:function(){return z().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.x(VA2,{data:z,
customCommandResolver:C})}),_.x(_.S5,null,function(){return null})))},"io");_.KU(_.f(function(e){var z=e.data;var C=e.panelContentVisibility;e=_.aO({visibilityCallback:function(G){var X,J=(X=z().interaction)==null?void 0:X.onFirstVisible;G&&J&&_.NF(J)},
showOption:_.sD});var w=_.tm(function(){return z().interaction},YOl);
_.N6(function(){var G,X;if(X=_.pd("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var J;X=(J=X())==null?void 0:J.onLayoutVisibleCallback}else X=null;(G=X)==null||G()},"jo");
var K=function(){return C()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.x("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.ej(e,w)},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.x(_.l,{cond:_.MML("(min-width: "+((0,_.cz)()+_.ff)+"px) or (max-width: 600px)"),then:function(){return _.x(_.PF,{data:function(){return z().adImage}},{adImageViewModel:function(G){return _.x(_.oz,{data:G.data,
targetHeight:80,customCommandResolver:YOl})}})}})),_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.x(_.PF,{data:function(){return z().adAvatarLockup}},{adAvatarLockupViewModel:function(G){return _.x(fE2,{data:G.data,
customCommandResolver:YOl})}})),_.x(_.l,{cond:K,
then:function(){return _.x(_.PF,{data:function(){return z().adButton}},{adButtonViewModel:function(G){return _.x(_.t_,{data:G.data,
customCommandResolver:YOl})}})},
else:function(){return _.x(_.PF,{data:function(){return z().menu}},{buttonViewModel:_.iz})}}),_.x("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.x(_.PF,{data:function(){var G=_.r(z().toggleButton,_.v7);
return{toggleButtonViewModel:Object.assign({},G,{isTogglingDisabled:!0,isToggled:K()})}}},{toggleButtonViewModel:_.XG})))))},"ko"),"panel-ad-header-image-lockup-view-model",{props:{data:_.vh,
panelContentVisibility:_.vh}});_.KU(_.f(function(e){var z=function(){return _.r(e.data().inputComposerViewModel,JX2)},C=_.rG(_.cF.currentPageSubTypeSelector),w=_.rG(_.cF.persistentPanelVisibleSelector),K=_.b(_.II(!1,void 0,"RXGzYc")),G=K.next().value,X=K.next().value;
K=_.b(_.II(!1,void 0,"oyonKd"));var J=K.next().value,q=K.next().value,T=function(){I(!0);var M5;_.NF(((M5=z())==null?void 0:M5.onSubmitCommand)||{})},Q=function(){if(w()&&!J()){var M5;
(M5=_.n7())==null||M5.removeCueRange("aic-proactive");X(!1);q(!0);T();_.uA(_.opE(z().endOfVideoContinuation),{form:{formData:_.q0({clientMessageId:"youchat-"+Date.now(),pageContext:v1()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.uA(gjy(N()));I(!1)}}})}},m=function(){var M5=_.n7();
if(M5&&!G()&&!J()){var fo=M5.getDuration();fo>60&&(M5.addCueRange("aic-proactive",fo-60,fo-20),X(!0))}},a=function(){var M5;
return((M5=z())==null?void 0:M5.youchatPendingResponseEntityKey)||""},n=_.vF(_.JEL,a),H=function(){var M5;
return!((M5=n())==null||!M5.isPendingResponse)},I=function(M5){_.kxY(a())(M5)};
K=_.b(_.II(!0,void 0,"umCoCf"));var L=K.next().value,h=K.next().value,E=function(){var M5,fo;var ug=_.r((fo=z())==null?void 0:fo.inputFormField,pnl);return ug==null?void 0:(M5=ug.contentProperties)==null?void 0:M5.placeholderText},N=function(){return z().sectionTargetId||"youchat_messages_section"};
K=_.qD("yt-chat-input-view-model");var D=_.kI("textarea"),g=_.vF(yfY,"chat_input_view_model_state"),y=cfT(),Z=function(){var M5;return!((M5=g())==null||!M5.value)},YN=function(){return e.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Jk=function(){var M5;
(M5=_.n7())==null||M5.removeCueRange("aic-proactive");X(!1);q(!1);var fo;_.M("enable_navigational_proactive_messages_on_ai_companion")&&((fo=z())==null?0:fo.navigationContinuation)&&w()&&(T(),_.uA(_.opE(z().navigationContinuation),{form:{formData:_.q0({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:XnT(),pageContext:v1()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.uA(gjy(N()));I(!1)}}}))},v1=function(){var M5;
return(M5=_.lh().resolve(_.$B(_.T7)))==null?void 0:_.bJo(M5,C())};
_.sg(function(){if(_.o3("enable_ai_chat_controller")){var M5;(M5=_.lh().resolve(_.$B(_.T7)))==null||M5.init(e.data().environment)}else if(M5=kEt(e.data()),!Z()&&M5){var fo;((fo=z())==null?0:fo.setPendingResponseOnWelcome)&&I(!0);_.uA(M5,{form:{formData:_.q0({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:XnT(),pageContext:v1()})}});y(!0)}var ug=N(),sE=_.lh().resolve(_.$B(_.cc)),w6=function(){_.WF.remove(ug);if(_.o3("enable_ai_chat_controller")){var y1;(y1=_.lh().resolve(_.$B(_.T7)))!=null&&
y1.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(y1.lastWelcomeContinuationSent=void 0)}else y(!1)},qY=function(){_.UH(function(){if(YN()&&(Jk(ug),C()==="watch")){var y1=_.n7();
y1&&(y1.addEventListener("onStateChange",m),y1.addEventListener("onCueRangeEnter",Q))}})};
fo=_.M("enable_ai_companion")?!YN():!0;sE==null||sE.addEventListener("yt-navigate-start",w6,{once:fo});sE==null||sE.addEventListener("yt-navigate-finish",qY,{once:fo});_.BC(function(){sE==null||sE.removeEventListener("yt-navigate-start",w6);sE==null||sE.removeEventListener("yt-navigate-finish",qY);var y1=_.n7();y1&&(y1.removeEventListener("onCueRangeEnter",Q),y1.removeEventListener("onStateChange",m),y1.removeCueRange("aic-proactive"))})});
_.sH(function(){if(_.o3("enable_ai_chat_controller")){var M5=kEt(e.data());if(M5){var fo,ug=((fo=z())==null?0:fo.setPendingResponseOnWelcome)?I:void 0,sE;(sE=_.lh().resolve(_.$B(_.T7)))==null||sC2(sE,{command:M5,setPending:ug})}}},"m4RVte");
var lg=function(){var M5=D.value.value;D.value.value="";bCg(D.value);var fo,ug=((fo=z())==null?void 0:fo.enableGradientColorBg)||!1;fo=jsL(N(),M5,ug);_.uA(fo);T();var sE,w6,qY;fo=(qY=_.SQ((sE=e.data())==null?void 0:sE.sendUserQueryCommand))!=null?qY:_.opE((w6=z())==null?void 0:w6.continuation);_.uA(fo,{form:{formData:_.q0({clientMessageId:"youchat-"+Date.now(),userInputText:M5,playerOffsetMs:XnT(),pageContext:v1()})},commandController:{onSuccess:function(){I(!1)},
onServerError:function(){_.uA(gjy(N()));I(!1)}}})};
return _.x("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:K},_.x("div",{class:"chatInputViewModelChatInputWrapper"},_.x("form",{class:"chatInputViewModelChatInputForm"},_.x("textarea",{class:"chatInputViewModelChatInput",el:D,"on:keydown":_.T9(function(M5){var fo=H()||!1;bCg(D.value);fo||M5.key!=="Enter"||M5.shiftKey||(M5.preventDefault(),lg());return!1}),
"on:keyup":_.T9(function(){h(D.value.value.length===0);return!1}),
"aria-label":function(){return H()?e.data().loadingAnimationA11yLabel||"":E()},
placeholder:E,rows:1}),_.x(_.iz,{data:function(){return _.r(e.data().sendButton,_.H7)},
onClick:function(M5){M5.preventDefault();lg();h(D.value.value.length===0)},
buttonOverrides:function(){return{disabled:L()||H()}}})),_.x(_.U2,{className:"chatInputViewModelChatDisclaimer",
text:function(){var M5;return(M5=_.r(e.data().disclaimer,_.P9S))==null?void 0:M5.text}})))},"mo"),"yt-chat-input-view-model",{props:{data:_.vh}});var S6g=["engagement-panel-clip-create","engagement-panel-clip-view"],uVw=0,$r=function(){var e=_.V.apply(this,arguments)||this;var z;e.headerData=(z=e.data)==null?void 0:z.header;e.darkerPanels=_.M("web_watch_darker_panels");e.matchContentTheme=_.M("web_watch_panel_content_match_theme");e.disableAutoFill=!1;e.isFullscreen=!1;e.isTheaterMode=!1;e.liveChatReplyPanel=!1;e.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");e.disableBackdropFilter=_.M("web_disable_backdrop_filter");e.isPersistentPanel=
!1;e.trackEngagementPanelVisibility=_.M("web_watch_track_engagement_panel_visibility");e.overscrollContain=!1;e.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 e};
_.U($r,_.V);_.Y=$r.prototype;
_.Y.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(e){var z;return(e==null?void 0:(z=e.webComponentHint)==null?void 0:z.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},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"}}}};
_.Y.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var e;if((e=this.hostElement.parentElement)==null?0:e.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.Y.detached=function(){this.updateTheaterDisablement()};
_.Y.showPanel=function(){var e=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.c5.addJob(function(){e.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.Y.maybeScrollToItemSection=function(e){var z=this,C,w=e==null?void 0:(C=e.sectionListEngagementPanelExtras)==null?void 0:C.scrollToItemSectionIdentifier;w&&_.c5.addJob(function(){var K;(K=z.sectionListRendererElement)==null||K.scrollToItemSection(w)},8)};
_.Y.hidePanel=function(){var e=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.c5.addJob(function(){e.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Y.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.Y.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.Y.updatePanel=function(e,z,C,w){var K=this;if((e=e==null?void 0:e.engagementPanelSectionListRenderer)||w){if(e){w=e.header;var G=e.content,X=e.footer;(e=e.targetId)&&this.set("data.targetId",e);w&&this.set("data.header",w);G&&this.set("data.content",G);X&&this.set("data.footer",X)}else w&&(e=w.content,G=w.secondaryHeaderContent,X=w.targetId,w=w.loggingDirectives,X&&this.set("data.targetId",X),e&&this.set("data.content",e),w&&_.M("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",
w),G&&(this.secondaryHeaderData=G));this.updateChildVisibilityProperties();if(z){var J;_.M("kevlar_update_panel_focus_scroll_killswitch")||(J={preventScroll:!0});this.focus(J)}_.T0(this,function(){_.pi(K.hostElement,"yt-refit");K.maybeScrollToItemSection(C)})}};
_.Y.computeHeaderData=function(){var e,z=(0,_.de.unsafeClone)((e=this.data)==null?void 0:e.header);if(z){e=new _.nN(Object.keys(z)[0]);var C=_.r(z,e),w=_.r(this.secondaryHeaderData,e);w&&_.Om(z,e,Object.assign({},w,C))}return z};
_.Y.getReloadContinuation=function(){var e,z,C,w=_.b(((e=this.data)==null?void 0:(z=e.content)==null?void 0:(C=z.sectionListRenderer)==null?void 0:C.continuations)||[]);for(e=w.next();!e.done;e=w.next())if(e=e.value,e.reloadContinuationData)return e.reloadContinuationData.continuation};
_.Y.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var e;((e=this.data)==null?0:e.targetId)&&(e=this.contentElement.firstElementChild)&&e.setAttribute("panel-target-id",this.data.targetId)};
_.Y.forwardPopupClosedToFlowRootRenderer=function(){var e=_.XC(this.hostElement).querySelector("ytd-flow-root-renderer");if(e&&this.hostElement.closest("ytd-popup-container"))e.onPopupClosed()};
_.Y.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var e;if(!S6g.includes((e=this.theaterDisablementPanelIdentifier)!=null?e:""))if(e=_.M("web_watch_imax_theater_mode")&&this.isTheaterMode,e=_.M("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||e,_.M("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||e){var z;this.visibility=(z=this.data)==null?void 0:z.visibility;var C;this.trackEngagementPanelVisibility&&((C=this.data)==null?void 0:C.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var w,K,G,X;this.contentEmpty=!!(((w=this.data)==null?0:(K=w.content)==null?0:K.structuredDescriptionContentRenderer)&&Object.keys((G=this.data)==null?void 0:(X=G.content)==null?void 0:
X.structuredDescriptionContentRenderer).length===0);(z=_.lh().resolve(_.kX))&&z.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.Y.isTheaterModeChanged=function(){_.M("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.Y.isFullscreenChanged=function(){_.M("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.Y.focus=function(e){if(this.header)this.header.focus(e);else{var z;(z=_.XC(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||z.focus(e)}};
_.Y.visibilityChanged=function(){if(!_.M("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var e=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K=w||!this.lastVisibility,G,X,J,q=((G=this.data)==null?void 0:(X=G.identifier)==null?void 0:
X.tag)||((J=this.data)==null?void 0:J.panelIdentifier);if(e&&K){var T;((T=this.data)==null?0:T.onShowCommands)&&_.KK(this.hostElement,this.data.onShowCommands,this.hostElement);q&&_.eB().dispatch(_.Yz({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:q}}))}else if(z&&C){var Q;((Q=this.data)==null?0:Q.onHideCommands)&&_.KK(this.hostElement,this.data.onHideCommands,this.hostElement);q&&_.eB().dispatch(_.Yz({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:q}}))}e&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*uVw++));_.M("kevlar_watch_focus_on_engagement_panels")&&e&&w&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.Y.notifyVisibilityChanged=function(e){var z;_.zj(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,e,(z=this.data)==null?void 0:z.targetId]);if(_.M("autonav_pause_for_comments_ep")){var C;_.pi(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:e==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(C=this.data)==null?void 0:C.targetId})}};
_.Y.updateTheaterDisablement=function(){if(!_.M("kevlar_watch_theater_disablement_killswitch")){var e=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&S6g.includes(e)&&!_.M("watch_next_grid_ignore_disallowed_panels")){var z=_.VC(_.eB().getState()),C=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";e!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():C?(this.originalTheaterState===void 0&&(this.originalTheaterState=z,this.theaterDisablementPanelIdentifier=
e),z&&_.eA(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.Y.clearTheaterDisablement=function(){_.eA(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.Y.updateChildVisibilityProperties=function(){this.hostElement||_.M("kevlar_panel_property_init_killswitch")||this._enableProperties();var e=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=e);var z,C=(z=this.headerElement)==null?void 0:z.firstElementChild;if(C&&!this.adHeaderImageLockupViewModel){z=e==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";C.collapsed=z;C=_.XC(C).querySelector("#visibility-button");if(!C)return;(C=C.firstElementChild)&&
C.polymerController.is==="ytd-toggle-button-renderer"&&C.polymerController.data.isToggled!==z&&C.polymerController.set("data.isToggled",z)}var w;if(z=(w=this.contentElement)==null?void 0:w.firstElementChild)if(e&&e!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")z.removeAttribute("panel-content-visible");else{z.setAttribute("panel-content-visible","");var K;(K=z.markDirty)==null||K.call(z)}};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(e){var z=this,C,w=(C=this.data)==null?void 0:C.targetId,K,G,X;C=((K=this.data)==null?void 0:(G=K.identifier)==null?void 0:G.tag)||((X=this.data)==null?void 0:X.panelIdentifier);var J=_.r(e,_.y1s),q;e=w&&(J==null?void 0:J.targetId)===w||C&&(J==null?void 0:(q=J.panelIdentifier)==null?void 0:q.tag)===C;this.dialog&&e&&(J==null?void 0:J.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(w==="engagement-panel-comments-section"?_.eA(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.eA(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",C]));!_.M("kevlar_use_engagement_panel_management_component")&&e&&(w=J.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!w?_.c5.addJob(function(){z.visibility=J.visibility},2,this.hideDelayMs):this.visibility=J.visibility,J.visibility&&this.notifyVisibilityChanged(J.visibility))};
_.Y.onYtScrollToEngagementPanelCommand=function(e){var z,C=(z=this.data)==null?void 0:z.targetId,w,K,G;z=((w=this.data)==null?void 0:(K=w.identifier)==null?void 0:K.tag)||((G=this.data)==null?void 0:G.panelIdentifier);e=_.r(e,_.Yr6);var X;(C&&(e==null?void 0:e.targetId)===C||z&&(e==null?void 0:(X=e.panelIdentifier)==null?void 0:X.tag)===z)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.eA(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.Y.attachVEs=function(e){var z,C;(e==null?0:(z=e.content)==null?0:(C=z.productListRenderer)==null?0:C.trackingParams)&&_.nm().graftServerVe(e.content.productListRenderer.trackingParams);var w,K;(e==null?0:(w=e.content)==null?0:(K=w.transcriptRenderer)==null?0:K.trackingParams)&&_.nm().graftServerVe(e.content.transcriptRenderer.trackingParams)};
_.Y.onYtUpdateEngagementPanelAction=function(e){var z,C=(z=this.data)==null?void 0:z.targetId;e=_.r(e,K$L);C&&(e==null?void 0:e.targetId)===C&&(this.updatePanel({engagementPanelSectionListRenderer:{header:e==null?void 0:e.header,content:e==null?void 0:e.content}},!1),this.attachVEs(e))};
_.Y.onYtShowEngagementPanelScrimAction=function(e){var z,C=(z=this.data)==null?void 0:z.targetId;e=_.r(e,wQw);C&&(e==null?void 0:e.engagementPanelTargetId)===C&&(this.scrimmed=!0)};
_.Y.onYtHideEngagementPanelScrimAction=function(e){var z,C=(z=this.data)==null?void 0:z.targetId;e=_.r(e,z6C);C&&(e==null?void 0:e.engagementPanelTargetId)===C&&(this.scrimmed=!1)};
_.Y.getIdentifier=function(){var e,z,C;return((e=this.data)==null?void 0:e.panelIdentifier)||((z=this.data)==null?void 0:(C=z.identifier)==null?void 0:C.tag)};
_.Y.getSurface=function(){var e,z;return(e=this.data)==null?void 0:(z=e.identifier)==null?void 0:z.surface};
_.lB.Object.defineProperties($r.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var e=this.getIdentifier();return e==="engagement-panel-youchat"||e==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
$r.prototype.visibilityChanged=$r.prototype.visibilityChanged;$r.prototype.isFullscreenChanged=$r.prototype.isFullscreenChanged;$r.prototype.isTheaterModeChanged=$r.prototype.isTheaterModeChanged;$r.prototype.dataChanged=$r.prototype.dataChanged;$r.prototype.forwardPopupClosedToFlowRootRenderer=$r.prototype.forwardPopupClosedToFlowRootRenderer;$r.prototype.onYtRendererstamperFinished=$r.prototype.onYtRendererstamperFinished;
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],$r.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$r.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],$r.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],$r.prototype,"ytEventForwardingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$r.prototype,"data",void 0);
_.d([_.F({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.B("design:type",Object)],$r.prototype,"headerData",void 0);_.d([_.F(),_.B("design:type",Object)],$r.prototype,"secondaryHeaderData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"visibility",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"contentEmpty",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"scrimmed",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"dialog",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"dropdown",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"darkerPanels",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"matchContentTheme",void 0);_.d([_.F(),_.B("design:type",Object)],$r.prototype,"disableAutoFill",void 0);
_.d([_.F({reflectToAttribute:!0,value:_.M("optimal_reading_width_comments_ep")}),_.B("design:type",Boolean)],$r.prototype,"optimalReadingWidthComments",void 0);_.d([_.F(),_.B("design:type",Number)],$r.prototype,"hideDelayMs",void 0);_.d([_.F({selector:_.fU,reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"isFullscreen",void 0);_.d([_.F({selector:_.VC,reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"isTheaterMode",void 0);
_.d([_.F(),_.B("design:type",Number)],$r.prototype,"showDelayMs",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.targetId"),_.B("design:type",Object),_.B("design:paramtypes",[])],$r.prototype,"targetId",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$r.prototype,"webSize",null);_.d([_.F(),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$r.prototype,"hideFooterBorder",null);
_.d([_.F(),_.B("design:type",Object)],$r.prototype,"isWatch",void 0);_.d([_.F(),_.B("design:type",Object)],$r.prototype,"originalTheaterState",void 0);_.d([_.F(),_.B("design:type",Object)],$r.prototype,"theaterDisablementPanelIdentifier",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"isWatchWhilePanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"shortsPanel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"liveChatEngagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],$r.prototype,"learningChatEngagementPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"liveChatReplyPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"enableAnchoredPanel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"disableBackdropFilter",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],$r.prototype,"isPersistentPanel",void 0);_.d([_.F(),_.B("design:type",Object)],$r.prototype,"trackEngagementPanelVisibility",void 0);_.d([_.F(),_.B("design:type",Object)],$r.prototype,"overscrollContain",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],$r.prototype,"isAiCompanionPanel",null);
_.d([_.nP("#header"),_.B("design:type",HTMLElement)],$r.prototype,"headerElement",void 0);_.d([_.nP("#header > *"),_.B("design:type",HTMLElement)],$r.prototype,"header",void 0);_.d([_.nP("ytd-section-list-renderer"),_.B("design:type",Object)],$r.prototype,"sectionListRendererElement",void 0);_.d([_.nP("panel-ad-header-image-lockup-view-model"),_.B("design:type",HTMLElement)],$r.prototype,"adHeaderImageLockupViewModel",void 0);
_.d([_.nP("#content"),_.B("design:type",HTMLElement)],$r.prototype,"contentElement",void 0);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$r.prototype,"onYtRendererstamperFinished",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$r.prototype,"forwardPopupClosedToFlowRootRenderer",null);
_.d([_.Ux("data","isFullscreen","isTheaterMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$r.prototype,"dataChanged",null);_.d([_.mi("isTheaterMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$r.prototype,"isTheaterModeChanged",null);_.d([_.mi("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$r.prototype,"isFullscreenChanged",null);
_.d([_.mi("visibility"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$r.prototype,"visibilityChanged",null);_.d([_.SL({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],$r);
_.u($r,"ytd-engagement-panel-section-list-renderer",function(){if(oka!==void 0)return oka;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return oka=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var dLt;var lN=function(){var e=_.V.apply(this,arguments)||this;e.lastRenderedPanelIds=new Set;e.visiblePanels=[];e.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return e};
_.U(lN,_.V);_.Y=lN.prototype;_.Y.dataChanged=function(){if(this.data){for(var e=[],z=_.b(this.data),C=z.next();!C.done;C=z.next()){C=C.value;var w=void 0,K=void 0,G=(w=C)==null?void 0:(K=w.engagementPanelSectionListRenderer)==null?void 0:K.visibility;K=w=void 0;((w=C)==null?0:(K=w.engagementPanelSectionListRenderer)==null?0:K.targetId)&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&e.push(C)}this.visiblePanels=e}else this.visiblePanels=[]};
_.Y.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}}};
_.Y.withoutVisiblePanelById=function(e){return this.visiblePanels.filter(function(z){var C;return((C=z.engagementPanelSectionListRenderer)==null?void 0:C.targetId)!==e})};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(e){var z=this,C=_.r(e,_.y1s);if(this.data&&(C==null?0:C.targetId)&&(C==null?0:C.visibility)){var w,K=(w=this.data.find(function(X){var J;return((J=X.engagementPanelSectionListRenderer)==null?void 0:J.targetId)===C.targetId}))==null?void 0:w.engagementPanelSectionListRenderer;
if(K){var G=this.withoutVisiblePanelById(C.targetId);C.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(e=this.data.find(function(X){var J;return((J=X.engagementPanelSectionListRenderer)==null?void 0:J.targetId)===C.targetId}))&&(G=[e].concat(_.s_(G)));
this.hideDelayMs&&C.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&G.length===0?_.c5.addJob(function(){K.visibility=C.visibility;z.visiblePanels=G},10,this.hideDelayMs):(K.visibility=C.visibility,this.visiblePanels=G);
_.zj(this.hostElement,"yt-engagement-panels-visible-changed",[G])}}};
_.Y.onRendererstamperFinished=function(){var e=new Set(this.visiblePanels.map(function(z){var C;return(C=z.engagementPanelSectionListRenderer)==null?void 0:C.targetId}));
this.handlePanelVisibilityChange(e,this.lastRenderedPanelIds);this.lastRenderedPanelIds=e};
_.Y.handlePanelVisibilityChange=function(e,z){e=e===void 0?new Set:e;z=z===void 0?new Set:z;if(this.data)for(var C=_.b(this.data),w=C.next();!w.done;w=C.next()){w=w.value;var K=void 0,G=void 0,X=(K=w)==null?void 0:(G=K.engagementPanelSectionListRenderer)==null?void 0:G.targetId;if(X&&(K=z.has(X),G=e.has(X),X=void 0,!K&&G?(G=K=void 0,X=(K=w)==null?void 0:(G=K.engagementPanelSectionListRenderer)==null?void 0:G.onShowCommands):K&&!G&&(G=K=void 0,X=(K=w)==null?void 0:(G=K.engagementPanelSectionListRenderer)==
null?void 0:G.onHideCommands),X))for(w=_.b(X),X=w.next();!X.done;X=w.next())this.ytComponentBehavior.resolveCommand(X.value)}};
lN.prototype.onRendererstamperFinished=lN.prototype.onRendererstamperFinished;lN.prototype.dataChanged=lN.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],lN.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],lN.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lN.prototype,"lastRenderedPanelIds",void 0);_.d([_.F(),_.B("design:type",Number)],lN.prototype,"hideDelayMs",void 0);_.d([_.F(),_.B("design:type",Array)],lN.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Array)],lN.prototype,"visiblePanels",void 0);_.d([_.F(),_.B("design:type",Boolean)],lN.prototype,"isWatchWhilePanel",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lN.prototype,"dataChanged",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lN.prototype,"onRendererstamperFinished",null);_.d([_.SL({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],lN);
_.u(lN,"ytd-watch-engagement-panels",function(){if(dLt!==void 0)return dLt;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return dLt=e},{mode:1});var DLy;var Qf=function(){return _.V.apply(this,arguments)||this};
_.U(Qf,_.V);Qf.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.ko(_.XC(this.hostElement).querySelector("#text"),_.Gma(_.XVT,this.data.companionLegalText))};
Qf.prototype.computeAutoScrollEnabled=function(e,z){return e&&!z};
Qf.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Qf.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Qf.prototype.expandedChanged=Qf.prototype.expandedChanged;Qf.prototype.dataChanged=Qf.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.pVj),_.B("design:type",Object)],Qf.prototype,"ytdAutoScrollBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Qf.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Qf.prototype,"expanded",void 0);
_.d([_.F({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.B("design:type",Boolean)],Qf.prototype,"autoScrollEnabled",void 0);_.d([_.F(),_.B("design:type",String)],Qf.prototype,"expanderIcon",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qf.prototype,"dataChanged",null);
_.d([_.mi("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qf.prototype,"expandedChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Qf);
_.u(Qf,"ytd-companion-legal-text-renderer",function(){if(DLy!==void 0)return DLy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return DLy=e},{mode:1});var iKg;var mV=function(){var e=_.V.apply(this,arguments)||this;e.buttonUpdate=_.M("web_modern_buttons");e.kevlarWatchGrid=_.M("kevlar_watch_grid");e.centerAlignDescription=_.M("action_companion_center_align_description");e.truncateDomain=_.M("action_companion_truncate_domain");e.enableMonoStyle=_.M("enable_default_mono_cta_migration_web_client");return e};
_.U(mV,_.V);_.Y=mV.prototype;_.Y.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.Y.getOnLayoutVisibleCallback=function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
_.Y.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",mV.JSC$23537_DEFAULT_AD_BADGE_RENDERER);var e=this.getOnLayoutVisibleCallback();e&&e()}};
_.Y.getButtonRenderer=function(e){return e.actionButton&&_.r(e.actionButton,_.a2)?(delete _.r(e.actionButton,_.a2).navigationEndpoint,_.r(e.actionButton,_.a2)):{}};
_.Y.onClick=function(e){var z=this;if((!_.M("web_modern_buttons")||!_.zi(_.cJ(e),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){e=_.ox();var C=this.getLayoutId();e&&C&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?e.getPlayerPromise().then(function(w){(new _.lc(w)).executeCommand(z.data.navigationEndpoint,C)}):_.M("kevlar_companion_resolve_command_killswitch")?_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.eA(this.hostElement,"yt-companion-ad-clicked",["action-companion",C])}};
_.lB.Object.defineProperties(mV.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?0:(z=e.detailsLine)==null?0:(C=z.adRating)==null?0:C.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 e,z,C,w;return((e=this.data)==null?0:(z=e.detailsLine)==null?0:(C=z.adRating)==null?0:(w=C.ratingIcon)==null?0:w.iconType)?_.qF(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w;return((e=this.data)==null?0:(z=e.detailsLine)==null?0:(C=z.texts)==null?0:(w=C[0])==null?0:w.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 e,z;return((e=this.data)==null?0:(z=e.description)==null?0:z.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var e=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return e?e.indexOf("/default_banner")!==-1:!0}}});
mV.prototype.onClick=mV.prototype.onClick;mV.prototype.dataChanged=mV.prototype.dataChanged;mV.JSC$23537_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],mV.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mV.prototype,"rendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mV.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mV.prototype,"buttonUpdate",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mV.prototype,"kevlarWatchGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mV.prototype,"centerAlignDescription",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mV.prototype,"truncateDomain",void 0);
_.d([_.F({computed:"computeButtonOverride(buttonUpdate)"}),_.B("design:type",Object)],mV.prototype,"buttonOverride",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],mV.prototype,"enableMonoStyle",void 0);_.d([_.P("data.detailsLine.adRating.ratingText"),_.B("design:type",Object),_.B("design:paramtypes",[])],mV.prototype,"getRating",null);_.d([_.P("getRating"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],mV.prototype,"computeRatingHidden",null);
_.d([_.P("data.detailsLine.adRating.ratingIcon.iconType"),_.B("design:type",Object),_.B("design:paramtypes",[])],mV.prototype,"iconType",null);_.d([_.P("data.detailsLine.texts.0.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],mV.prototype,"getDetailsLine",null);_.d([_.P("getDetailsLine"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],mV.prototype,"computeDetailsLineHidden",null);
_.d([_.P("data.description.text"),_.B("design:type",Object),_.B("design:paramtypes",[])],mV.prototype,"getDescriptionText",null);_.d([_.P("getDescriptionText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],mV.prototype,"computeDescriptionTextHidden",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],mV.prototype,"interactionLoggingClientData",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],mV.prototype,"hideBanner",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mV.prototype,"dataChanged",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],mV.prototype,"onClick",null);_.d([_.SL({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],mV);
_.u(mV,"ytd-action-companion-ad-renderer",function(){if(iKg!==void 0)return iKg;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return iKg=e},{mode:_.bA("kevlar_poly_si_batch_j067")?1:2});var NQt;var sSC;var a1=function(){var e=_.V.apply(this,arguments)||this;e.buttonUpdate=_.M("web_modern_buttons");e.hideLegacyBanner=_.M("enable_dsa_one_click_ata_translators_infeed_elements");e.adInfoButtonStyle="mono";e.adInfoButtonType="text";e.noDotAdBadge=!0;return e};
_.U(a1,_.V);_.Y=a1.prototype;_.Y.getOnLayoutVisibleCallback=function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
_.Y.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 e=this.data.image.thumbnail.thumbnails[0];this.imageSrc=e.url?_.gw(e.url):void 0;this.imageWidth=e.width||0;this.imageHeight=e.height||0}this.data.clickthroughEndpoint&&_.r(this.data.clickthroughEndpoint,_.oO)&&(e=_.r(this.data.clickthroughEndpoint,_.oO).url,_.M("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
e||"":e?(e=_.gw(e),this.clickThroughUrl=_.Dy(e)):this.clickThroughUrl=void 0);(e=this.getOnLayoutVisibleCallback())&&e()}};
_.Y.onClick=function(e){_.zi(_.cJ(e),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(e)};
_.Y.handleClick=function(){var e=this;this.data&&this.data.clickthroughEndpoint&&(_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(z){e.macroReplacementBehavior.sendServiceRequestAction([z])}),_.eA(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.Y.onLoad=function(){_.zj(this.hostElement,"yt-refit-popups-action")};
_.lB.Object.defineProperties(a1.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.interactionLoggingClientData:null}}});
a1.prototype.onLoad=a1.prototype.onLoad;a1.prototype.onClick=a1.prototype.onClick;a1.prototype.dataChanged=a1.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],a1.prototype,"rendererBehavior",void 0);_.d([_.W(ZGL.YtMacroReplacementBehavior),_.B("design:type",Object)],a1.prototype,"macroReplacementBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],a1.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],a1.prototype,"buttonUpdate",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],a1.prototype,"hideLegacyBanner",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],a1.prototype,"adInfoButtonStyle",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],a1.prototype,"adInfoButtonType",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],a1.prototype,"macros",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],a1.prototype,"interactionLoggingClientData",null);_.d([_.F(),_.B("design:type",String)],a1.prototype,"clickThroughUrl",void 0);_.d([_.F(),_.B("design:type",_.Sg)],a1.prototype,"imageSrc",void 0);_.d([_.F(),_.B("design:type",Number)],a1.prototype,"imageWidth",void 0);_.d([_.F(),_.B("design:type",Number)],a1.prototype,"imageHeight",void 0);_.d([_.F(),_.B("design:type",Object)],a1.prototype,"noDotAdBadge",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],a1.prototype,"dataChanged",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],a1.prototype,"onClick",null);_.d([_.Qi("load"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],a1.prototype,"onLoad",null);_.d([_.SL({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],a1);
_.u(a1,"ytd-image-companion-renderer",function(){if(sSC!==void 0)return sSC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return sSC=e},{mode:_.bA("kevlar_poly_si_batch_j067")?1:2});var BQC;var ne=function(){return _.V.apply(this,arguments)||this};
_.U(ne,_.V);_.Y=ne.prototype;_.Y.dataChanged=function(){this.set("data.adBadge",ne.JSC$23546_DEFAULT_AD_BADGE_RENDERER);if(this.data){var e=this.getOnLayoutVisibleCallback();e&&e()}};
_.Y.getOnLayoutVisibleCallback=function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.onLayoutVisibleCallback:null};
_.Y.getLayoutId=function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.layoutId:null};
_.Y.onCompanionClicked=function(e){this.data&&(e.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.eA(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.Y.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var e=_.ox(),z=this.getLayoutId(),C=this.data.clickToAdvSiteEndpoint;e&&z&&_.M("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?e.getPlayerPromise().then(function(w){(new _.lc(w)).executeCommand(C,z)}):_.pi(this.hostElement,"yt-navigate",{endpoint:C})}};
_.Y.sendTrackingPings=function(e){if(e&&e.length!==0&&e[0].loggingUrls&&(e=e[0].loggingUrls.map(this.getBaseUrl)))for(var z=0;z<e.length;z++)_.GE(e[z])};
_.Y.getBaseUrl=function(e){return e.baseUrl||""};
_.lB.Object.defineProperties(ne.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var e=_.pd("yt.www.ads.eventcache.getLastCompanionData");return e?(e=e())&&e.interactionLoggingClientData:null}}});
ne.prototype.onCompanionClicked=ne.prototype.onCompanionClicked;ne.prototype.dataChanged=ne.prototype.dataChanged;ne.JSC$23546_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.kk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ne.prototype,"data",void 0);_.d([_.nP("#title"),_.B("design:type",HTMLElement)],ne.prototype,"shopTitle",void 0);
_.d([_.Ux("data.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ne.prototype,"dataChanged",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ne.prototype,"interactionLoggingClientData",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],ne.prototype,"onCompanionClicked",null);
_.d([_.SL({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],ne);
_.u(ne,"ytd-shopping-companion-renderer",function(){if(BQC!==void 0)return BQC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return BQC=e},{mode:1});_.KU(_.f(function(e){var z=e.data;e=_.aO({visibilityCallback:function(w){var K,G=(K=z().interaction)==null?void 0:K.onFirstVisible;w&&G&&_.NF(G)},
showOption:_.sD});var C=_.tm(function(){return z().interaction},qOg);
_.N6(function(){var w,K;K=(K=_.pd("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.onLayoutVisibleCallback:null;(w=K)==null||w()},"no");
return _.x("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.T9(function(w){_.zj(w.currentTarget,"yt-refit-popups-action")}),
el:_.ej(e,C),"aria-label":function(){var w,K;return(w=z().interaction)==null?void 0:(K=w.accessibility)==null?void 0:K.label}},_.x("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.x(_.PF,{data:function(){return z().adImage}},{adImageViewModel:function(w){return _.x(_.oz,{data:w.data,
targetHeight:80,customCommandResolver:qOg})}})),_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.x(_.PF,{data:function(){return z().adBadge}},{adBadgeViewModel:function(w){return _.x(_.A_,{data:w.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.x("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.x(_.PF,{data:function(){return z().menu}},{buttonViewModel:_.iz}))))},"oo"),"banner-image-layout-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;e=_.aO({visibilityCallback:function(w){var K,G=(K=z().interaction)==null?void 0:K.onFirstVisible;w&&G&&_.NF(G)},
showOption:_.sD});var C=_.tm(function(){return z().interaction},xUL);
_.N6(function(){var w,K;K=(K=_.pd("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.onLayoutVisibleCallback:null;(w=K)==null||w()},"po");
return _.x("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.ej(e,C)},_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.x(_.PF,{data:function(){return z().adImage}},{adImageViewModel:function(w){return _.x(_.oz,{data:w.data,
targetHeight:80,customCommandResolver:xUL})}})),_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.x(_.PF,{data:function(){return z().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.x(fE2,{data:w.data,
customCommandResolver:xUL})}})),_.x(_.PF,{data:function(){return z().adButton}},{adButtonViewModel:function(w){return _.x(_.t_,{data:w.data,
customCommandResolver:xUL})}}),_.x("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.x(_.PF,{data:function(){return z().menu}},{buttonViewModel:_.iz}))))},"qo"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.vh}});var tAT={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"},M9=function(){var e=_.V.apply(this,arguments)||this;e.updateCompanionDataJobId=0;e.contentVideoId=null;e.player=null;e.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return e};
_.U(M9,_.V);_.Y=M9.prototype;_.Y.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:tAT}}};
_.Y.attached=function(){var e=this,z=_.ox();z&&z.getPlayerPromise().then(function(C){e.getCachedDataAndListen(C)})};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.Y.updateRendererStamper=function(){var e={};if(this.data)for(var z in tAT)if(this.data[z]){e[z]=this.data[z];break}if(this.oneofRenderer!=void 0||Object.keys(e).length)this.oneofRenderer=e};
_.Y.getCachedDataAndListen=function(e){var z=this.retrieveCachedCompanionData();z&&Object.keys(z).length&&this.receiveCompanionData(z);this.ytPlayerListenerBehavior.listenToPlayerEvent(e,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=e};
_.Y.retrieveCachedCompanionData=function(){return _.wL.yt&&_.wL.yt.www&&_.wL.yt.www.ads&&_.wL.yt.www.ads.eventcache&&_.wL.yt.www.ads.eventcache.getLastCompanionData?_.wL.yt.www.ads.eventcache.getLastCompanionData():null};
_.Y.receiveCompanionData=function(e){e&&Object.keys(e).length?(this.contentVideoId=e.contentVideoId,this.setCompanionData(e)):this.setCompanionData(e)};
_.Y.setCompanionData=function(e){this.cancelPendingCompanionAdJobs();if(e){this.updateCompanionDataJobId=0;for(var z in tAT)tAT.hasOwnProperty(z)&&(this.data[z]=void 0);e.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",e.shoppingCompanionCarouselRenderer):e.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",e.imageCompanionAdRenderer):e.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",e.actionCompanionAdRenderer),_.zj(this.hostElement,
"yt-hide-unlimited-offer-module"),_.zj(this.hostElement,"yt-hide-tvfilm-offer-module")):e.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",e.bannerImageLayoutViewModel):e.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",e.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.Y.dataChanged=function(){var e=this,z=_.ox();z?z.getPlayerPromise().then(function(C){e.contentVideoId&&C.getVideoUrl().includes("v="+e.contentVideoId)||(e.cancelPendingCompanionAdJobs(),e.updateRendererStamper())}):_.es(Error("jp"))};
_.Y.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.c5.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.Y.handleCompanionAdClicked=function(e,z){this.player.onAdUxClicked(e,z);this.player.pauseVideo()};
M9.prototype.dataChanged=M9.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],M9.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],M9.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],M9.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],M9.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],M9.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],M9.prototype,"oneofRenderer",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],M9.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],M9);
_.u(M9,"ytd-companion-slot-renderer",function(){if(NQt!==void 0)return NQt;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return NQt=e},{mode:_.bA("kevlar_poly_si_batch_j067")?
1:2});var gkj;var rv=function(){return _.V.apply(this,arguments)||this};
_.U(rv,_.V);rv.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
rv.prototype.dataChanged=rv.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rv.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],rv.prototype,"companionSlotData",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rv.prototype,"dataChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],rv);
_.u(rv,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(gkj!==void 0)return gkj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return gkj=e},{mode:1});var jSL;var Hw=function(){var e=_.V.apply(this,arguments)||this;e.skinnyMode=!1;e.COMPACT_EVENT_COUNT=4;e.onShelfToggleButtonTap=function(){e.logTap(e.data);e.showingMore=!e.showingMore};
e.onShelfToggleButtonFocus=function(){e.showingMore||(e.logTap(e.data),e.showingMore=!0,_.T0(e,function(){var z=e.COMPACT_EVENT_COUNT-1,C;(C=_.XC(e.hostElement).querySelector("#event-"+z))==null||C.focus()}))};
return e};
_.U(Hw,_.V);_.Y=Hw.prototype;_.Y.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.Y.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.Y.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.lE(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.lE(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.lE(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.lE(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.lE(this.infoTooltip,this.infoTooltip.hide))};
_.Y.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.lE(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.lE(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.lE(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.lE(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.lE(this.infoTooltip,this.infoTooltip.hide))};
_.Y.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)};
_.Y.onShowingMoreChanged=function(){var e;this.showingMoreChanged((e=this.showingMore)!=null?e:!1)};
_.Y.showingMoreChanged=function(e){var z=this.get("data.events")||[];this.set("restEvents",z.slice(1,e?z.length:this.COMPACT_EVENT_COUNT).map(function(C){return C.ticketEventRenderer}));
z.slice(0,e?z.length:this.COMPACT_EVENT_COUNT).forEach(function(C){var w=_.Pr();C=C.ticketEventRenderer.trackingParams;_.Ip()&&w&&C&&(C=_.v9(C),w&&_.s6(w,C))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.Y.computeAriaLabel=function(e){return e.subtitle1+", "+e.subtitle2};
_.Y.logTap=function(e){_.Ip()&&this.ytRendererBehavior.logExplicitClick(e)};
_.Y.isKeyboardAction=function(e){return this.get("detail.x",e)===0&&this.get("detail.y",e)===0};
_.Y.onFirstEventTap=function(e){e.target&&this.handleTap(e.target,this.firstEvent,this.isKeyboardAction(e))};
_.Y.onTicketLinkTap=function(e){e.target&&this.handleTap(e.target,e.model.item,this.isKeyboardAction(e))};
_.Y.handleTap=function(e,z,C){if(z.buttonCommand)if(z.hasMultipleOffers)Object.assign(_.r(z.buttonCommand,_.CH),{properties:{source:C?"keyboard":"tap"}}),this.logTap(z),this.popupPositionTarget=e,_.KK(this.hostElement,[z.buttonCommand],this.hostElement);else{var w;if((w=_.r(z.buttonCommand,_.oO))==null?0:w.url)this.logTap(z),_.Kq(window,_.r(z.buttonCommand,_.oO).url)}};
Hw.prototype.onShowingMoreChanged=Hw.prototype.onShowingMoreChanged;Hw.prototype.dataChanged=Hw.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Hw.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Hw.prototype,"firstEvent",void 0);_.d([_.F(),_.B("design:type",Object)],Hw.prototype,"restEvents",void 0);_.d([_.F(),_.B("design:type",String)],Hw.prototype,"imageUrl",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hw.prototype,"showingMore",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hw.prototype,"canShowMore",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hw.prototype,"skinnyMode",void 0);_.d([_.F(),_.B("design:type",HTMLElement)],Hw.prototype,"popupPositionTarget",void 0);_.d([_.nP("#banner-info-tooltip"),_.B("design:type",Object)],Hw.prototype,"infoTooltip",void 0);
_.d([_.nP("#info-container"),_.B("design:type",HTMLElement)],Hw.prototype,"infoContainer",void 0);_.d([_.nP("#shelf-toggler"),_.B("design:type",HTMLElement)],Hw.prototype,"shelfToggleButton",void 0);_.d([_.nP("#separator"),_.B("design:type",HTMLDivElement)],Hw.prototype,"separator",void 0);_.d([_.F(),_.B("design:type",String)],Hw.prototype,"shelfTogglerLabelText",void 0);_.d([_.F(),_.B("design:type",String)],Hw.prototype,"shelfTogglerIcon",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hw.prototype,"dataChanged",null);_.d([_.Ux("showingMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hw.prototype,"onShowingMoreChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Hw);
_.u(Hw,"ytd-ticket-shelf-renderer",function(){if(jSL!==void 0)return jSL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jSL=e},{mode:1});var ygC;var cg2;var AgT=function(){return _.V.apply(this,arguments)||this};
_.U(AgT,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],AgT.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],AgT.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],AgT);
_.u(AgT,"ytd-comments-entry-point-message-renderer",function(){if(cg2!==void 0)return cg2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return cg2=e},{mode:1});var ZKL;var Uw=function(){return _.V.apply(this,arguments)||this};
_.U(Uw,_.V);_.lB.Object.defineProperties(Uw.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.teaserAvatar)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Uw.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Uw.prototype,"hasAvatar",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Uw);
_.u(Uw,"ytd-comments-entry-point-teaser-renderer",function(){if(ZKL!==void 0)return ZKL;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ZKL=e},{mode:1});var pfT;var eAL=function(){return _.V.apply(this,arguments)||this};
_.U(eAL,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eAL.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eAL.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],eAL);
_.u(eAL,"ytd-comments-simplebox-renderer",function(){if(pfT!==void 0)return pfT;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pfT=e},{mode:1});var vw=function(){var e=_.V.apply(this,arguments)||this;e.fullHeight=!_.M("comment_teaser_full_height_kill_switch")&&_.M("kevlar_watch_grid");return e};
_.U(vw,_.V);vw.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"}}}};
vw.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
vw.prototype.onTap=function(){var e=this.tapCommand;e&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(e))};
vw.prototype.onKeyUp=function(e){if(e.keyCode===13)this.onTap()};
_.lB.Object.defineProperties(vw.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.onTap)return this.data.onTap;var z,C;if(((z=this.data)==null?0:z.teaserContent)||((C=this.data)==null?0:C.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)!=null&&e.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
vw.prototype.onKeyUp=vw.prototype.onKeyUp;vw.prototype.onTap=vw.prototype.onTap;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],vw.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vw.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],vw.prototype,"fullHeight",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vw.prototype,"tapCommand",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vw.prototype,"simpleboxPlaceholder",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vw.prototype,"hasSimpleboxPlaceholder",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vw.prototype,"simpleboxAvatar",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vw.prototype,"teaserContent",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vw.prototype,"hasTeaserContent",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vw.prototype,"teaserAvatar",null);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vw.prototype,"hasTeaserAvatar",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vw.prototype,"messageText",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],vw.prototype,"contentRenderer",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vw.prototype,"hasContents",null);
_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vw.prototype,"hasContentRenderer",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],vw.prototype,"onTap",null);_.d([_.Qi("keypress"),_.B("design:type",Function),_.B("design:paramtypes",[_.ub]),_.B("design:returntype")],vw.prototype,"onKeyUp",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],vw);
_.u(vw,"ytd-comments-entry-point-header-renderer",function(){if(ygC!==void 0)return ygC;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ygC=e},{mode:1});var zAa;_.KU(_.ANh,"yt-animated-rolling-number",{props:{numberText:_.vh,numberValue:_.vh,heightPx:_.vh,fontSizeMultiplier:_.vh,shouldAnimate:_.vh,forceRollUp:_.vh}});var C7j=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),wHT={numberText:"",heightPx:2*C7j,shouldAnimate:!1},I1=function(){var e=_.V.apply(this,arguments)||this;e.usingAnimatedComponents=!0;e.wasDetailed=!1;e.JSC$23583_browserSupportsAnimation=_.M("web_supports_animations_api");e.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};e.detailed=!1;e.shouldAnimate=!1;e.viewCountProps=wHT;e.dateTextProps=
wHT;e.metadataBadgesInDescription=_.M("web_metadata_badges_in_description");return e};
_.U(I1,_.V);_.Y=I1.prototype;_.Y.attached=function(){var e=this;_.lh().resolve(_.gz).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(z){e.set("videoPrimaryInfoRenderer.subtitle",z)})};
_.Y.detached=function(){_.lh().resolve(_.gz).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.Y.resetAnimationState=function(){this.shouldAnimate=!1};
_.Y.updateDynamicMetadata=function(){if(this.JSC$23583_browserSupportsAnimation){if(!this.detailed){var e,z,C,w;var K=(e=this.videoPrimaryInfoRenderer)==null?void 0:(z=e.viewCount)==null?void 0:(C=z.videoViewCountRenderer)==null?void 0:(w=C.extraShortViewCount)==null?void 0:w.simpleText;var G,X,J,q;var T=(G=this.videoPrimaryInfoRenderer)==null?void 0:(X=G.viewCount)==null?void 0:(J=X.videoViewCountRenderer)==null?void 0:(q=J.shortViewCount)==null?void 0:q.simpleText}if(!T){var Q,m,a,n;K=(Q=this.videoPrimaryInfoRenderer)==
null?void 0:(m=Q.viewCount)==null?void 0:(a=m.videoViewCountRenderer)==null?void 0:(n=a.unlabeledViewCountValue)==null?void 0:n.simpleText;var H,I,L,h;T=(H=this.videoPrimaryInfoRenderer)==null?void 0:(I=H.viewCount)==null?void 0:(L=I.videoViewCountRenderer)==null?void 0:(h=L.viewCount)==null?void 0:h.simpleText}var E,N,D;e=Number((E=this.videoPrimaryInfoRenderer)==null?void 0:(N=E.viewCount)==null?void 0:(D=N.videoViewCountRenderer)==null?void 0:D.originalViewCount);var g,y;E=(g=this.videoPrimaryInfoRenderer)==
null?void 0:(y=g.relativeDateText)==null?void 0:y.simpleText;var Z;g=!((Z=this.videoPrimaryInfoRenderer)==null||!Z.relativeDateText);if(K&&T&&e&&(E||!g)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Z=T.split(new RegExp("("+K+")"));K=_.AO(Z[0]);var YN;T={numberText:(YN=Z[1])!=null?YN:"",numberValue:e,heightPx:2*C7j,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Jk;YN=((Jk=Z[2])!=null?Jk:"")+"  ";this.setViewCount(T,K,_.AO(YN));if(!this.detailed&&
g){K=E.split(/(\d+)/);Jk=_.AO(K[0]);var v1;YN={numberText:(v1=K[1])!=null?v1:"",heightPx:2*C7j,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var lg;v1=((lg=K[2])!=null?lg:"")+"  ";this.setDateText(YN,Jk,_.AO(v1))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.Y.setViewCount=function(e,z,C){_.Zd(z)!==_.Zd(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=z);this.viewCountProps.numberText!==(e==null?void 0:e.numberText)&&(this.viewCountProps=e||wHT);_.Zd(C)!==_.Zd(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=C)};
_.Y.setDateText=function(e,z,C){_.Zd(z)!==_.Zd(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=z);this.dateTextProps.numberText!==(e==null?void 0:e.numberText)&&(this.dateTextProps=e||wHT);_.Zd(C)!==_.Zd(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=C)};
_.Y.onYtUpdateViewershipAction=function(e){this.videoPrimaryInfoRenderer&&(_.r(e,R6l).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.r(e,R6l).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.r(e,R6l).viewCount)))};
_.Y.onYtUpdateDateTextAction=function(e){if(this.videoPrimaryInfoRenderer){e=_.r(e,_.W$L).dateText;this.shouldAnimate=!0;var z;((z=this.videoPrimaryInfoRenderer)==null?0:z.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",e):this.set("videoPrimaryInfoRenderer.dateText",e)}};
_.lB.Object.defineProperties(I1.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return mUC(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Zd(mUC(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Zd(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Zd(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Zd(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Zd(this.dateTextPostNumberText)].join("")}}});
I1.prototype.updateDynamicMetadata=I1.prototype.updateDynamicMetadata;I1.prototype.resetAnimationState=I1.prototype.resetAnimationState;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],I1.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],I1.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],I1.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],I1.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"detailed",void 0);_.d([_.F(),_.B("design:type",Object)],I1.prototype,"shouldAnimate",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"viewCountPreNumberText",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"viewCountProps",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"viewCountPostNumberText",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"dateTextPreNumberText",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"dateTextProps",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"dateTextPostNumberText",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],I1.prototype,"metadataBadgesInDescription",void 0);_.d([_.P("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.B("design:type",Object),_.B("design:paramtypes",[])],I1.prototype,"infoText",null);
_.d([_.P("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.B("design:type",String),_.B("design:paramtypes",[])],I1.prototype,"descriptionInfoTooltipText",null);_.d([_.P("detailed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],I1.prototype,"showDescriptionInfoTooltip",null);
_.d([_.P("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],I1.prototype,"animatedViewCountAccessibilityLabel",null);_.d([_.P("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.B("design:type",String),_.B("design:paramtypes",[])],I1.prototype,"animatedDateTextAccessibilityLabel",null);
_.d([_.mi("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I1.prototype,"resetAnimationState",null);_.d([_.mi("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],I1.prototype,"updateDynamicMetadata",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-watch-info-text"})],I1);
_.u(I1,"ytd-watch-info-text",function(){if(zAa!==void 0)return zAa;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zAa=e},{mode:1});var K62;var ozj="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Gqj=_.f(function(e){var z=e.data;var C=e.setTapCommand;_.sH(function(){var w=_.SQ(z().onTap);C(w)},"CLm0Xe");
return _.x("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO}),_.x("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.x("span",null,function(){return z().simpleboxText})))},"so");var Yk2=_.f(function(e){return _.x("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.x(_.l,{cond:function(){return _.r(e.data().avatar,_.NK)},
then:function(z){return _.x(_.lO,{data:z,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.x("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.x(_.U2,{text:function(){return e.data().teaserText}})))},"to");var b4Y=_.f(function(e){var z=e.data;var C=e.setTapCommand;_.sH(function(){var w=_.SQ(z().onTap);C(w)},"qxjCCd");
return _.x("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.x(_.PF,{data:function(){return z().teasers}},{commentsEntryPointTeaserViewModel:Yk2}))},"vo");var XHC=_.f(function(e){var z=e.data;var C=e.setTapCommand;_.sH(function(){var w=_.SQ(z().onTap);C(w)},"CRZByf");
return _.x("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.x(_.U2,{text:function(){return z().messageText}}))},"xo");var JOC=_.f(function(e){var z=e.data;var C=e.setTapCommand;var w=e.isDisabled;_.sH(function(){var K=(w==null?0:w())?void 0:_.SQ(z().onTap);C(K)},"GZxRqd");
return _.x("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.x(_.mB,{icon:function(){return z().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.x(_.l,{cond:function(){return z().image},
then:function(K){return _.x(_.Zf,{data:K,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.x(_.U2,{text:function(){return z().text},
className:function(){return z().image||z().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.x(_.PF,{data:function(){return z().button}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:w==null?void 0:w()}}})}}))},"zo");var kqj=_.f(function(e){var z=e.data;var C=e.itemIndex;var w=e.selectedIndex;var K=e.indexUpdatedCallback;var G=e.observer;e=e.title;var X=_.kI("yt-carousel-item-view-model",function(m){G&&G().observe(m)}),J=function(m){C()===w()&&K(m)},q=_.rG(ssT),T=_.rG(_.Xyh),Q=function(){var m,a,n,H,I;
return((m=z())==null?void 0:m.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!q()||((a=z())==null?void 0:a.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((n=T())==null?void 0:n.includes("PAposts_by_host"))||((H=z())==null?void 0:H.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((I=T())==null?void 0:I.includes("PAyouchat"))};
return _.x("yt-carousel-item-view-model",{el:X,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":e},_.x(_.PF,{data:function(){var m,a;return(a=(m=_.r(z().carouselItem,ZCC))==null?void 0:m.textCarousel)!=null?a:z().carouselItem}},{textCarouselItemViewModel:function(m){return _.x(JOC,{data:m.data,
setTapCommand:J,isDisabled:Q})},
commentTeaserCarouselItemViewModel:function(m){return _.x(b4Y,{data:m.data,setTapCommand:J})},
commentInputBoxCarouselItemViewModel:function(m){return _.x(Gqj,{data:m.data,setTapCommand:J})},
commentsEntryPointMessageViewModel:function(m){return _.x(XHC,{data:m.data,setTapCommand:J})}}))},"Ao");var qkw=_.f(function(e){var z=e.numDots;var C=e.activeIndex;return _.x("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.x(_.ui,{each:function(){return Array.from({length:z()})},
keyBy:"INDEX"},function(w,K){return _.x("div",{class:function(){var G={};return _.VA("ytCarouselDotsShapeDot",(G.ytCarouselDotsShapeDotActive=K===C(),G))}})}))},"Bo");var xqt=_.f(function(e){var z=e.data;var C=e.handleCarouselNavigation;var w=e.numItems;var K=e.selectedIndex;var G=function(){return{disabled:K()===0}},X=function(){return{disabled:K()===w()-1}};
return _.x("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.x("div",null,_.x("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return z().title}),_.x(_.l,{cond:function(){return z().subtitle},
then:function(J){return _.x("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return z().subtitleAccessibilityText}},J)}})),_.x(_.l,{cond:function(){return w()>1},
then:function(){return _.x("div",{class:"ytCarouselTitleViewModelNavigation"},_.x(qkw,{numDots:w,activeIndex:K}),_.x(_.l,{cond:function(){return z().previousButton},
then:function(J){return _.x(_.PF,{data:J},{buttonViewModel:function(q){return _.x(_.iz,{data:q.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return C(-1)},
buttonOverrides:G})}})}}),_.x(_.l,{cond:function(){return z().nextButton},
then:function(J){return _.x(_.PF,{data:J},{buttonViewModel:function(q){return _.x(_.iz,{data:q.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return C(1)},
buttonOverrides:X})}})}}))}}))},"Co");_.KU(_.f(function(e){var z=e.data;var C,w=_.kI("yt-video-metadata-carousel-view-model"),K=_.kI("div",function(g){var y=function(){var Z=g.offsetWidth*I(),YN=24*(I()-1);a(Z+YN)};
y();window.ResizeObserver&&(C=new ResizeObserver(y),C.observe(g))}),G=_.j5("HTML_DIR")==="rtl",X=!1,J=0,q=0;
e=_.b(_.II(0,void 0,"M49TDf"));var T=e.next().value,Q=e.next().value;e=_.b(_.II(0,void 0,"zLIok"));var m=e.next().value,a=e.next().value;e=_.b(_.II(!1,void 0,"bhelhc"));var n=e.next().value,H=e.next().value,I=function(){var g,y,Z;return(Z=(g=z())==null?void 0:(y=g.carouselTitles)==null?void 0:y.length)!=null?Z:0},L=function(){K.value&&K.value.scrollLeft!==J&&Q((G?K.value.scrollLeft<J:K.value.scrollLeft>J)?Math.min(T()+1,I()-1):Math.max(T()-1,0))},h;
window.IntersectionObserver&&(h=new IntersectionObserver(function(g){g=_.b(g);for(var y=g.next();!y.done;y=g.next())if(y.value.isIntersecting){if(X){X=!1;break}L()}else Q(q)},{threshold:.2}));
_.sH(function(){if(K.value){var g=(G?-1:1)*(m()/I()+12)*(n()&&h?q:T());typeof K.value.scrollTo==="function"?K.value.scrollTo({left:g,behavior:"smooth"}):K.value.scrollLeft=g;J=g;q=n()&&h?q:T()}},"s9rbgc");
var E,N=function(g){E=g};
_.BC(function(){var g;(g=C)==null||g.disconnect();var y;(y=h)==null||y.disconnect()});
var D=function(g){g=T()+g;g>=0&&g<I()&&(X=!0,Q(g))};
return _.x("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:w,"on:click":_.T9(function(g){if(_.S3(_.f7(g),w.value,["BUTTON".toString()])||!E)return!1;_.lh().resolve(_.ms).resolveCommand(E,{forceClickLogging:!0});return!1}),
"on:touchstart":_.T9(function(){H(!0);return!1}),
"on:touchend":_.T9(function(){h||L();H(!1);return!1}),
hidden:function(){var g,y;return!((g=z())==null?0:(y=g.carouselItems)==null?0:y.length)}},_.x("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.x(_.l,{cond:function(){return z().carouselTitles},
then:function(g){return _.x(_.PF,{data:function(){return g()[n()&&h?q:T()]}},{carouselTitleViewModel:function(y){return _.x(xqt,{data:y.data,
handleCarouselNavigation:D,numItems:I,selectedIndex:T})}})}})),_.x("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:K},_.x("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+m()+"px;"}},_.x(_.l,{cond:function(){return z().carouselItems},
then:function(g){return _.x(_.ui,{each:g},function(y,Z){return _.x(_.PF,{data:function(){return y}},{carouselItemViewModel:function(YN){return _.x(kqj,{data:YN.data,
itemIndex:Z,selectedIndex:T,indexUpdatedCallback:N,observer:h,title:function(){a:{var Jk=Z();var v1,lg=(v1=z())==null?void 0:v1.carouselTitles;if(lg&&(Jk=lg[Jk])){var M5;Jk=(M5=_.r(Jk,AXl))==null?void 0:M5.title;break a}Jk=void 0}return Jk}})}})})}}))))},"Eo"),"yt-video-metadata-carousel-view-model",{props:{data:_.vh}});var TkC=_.M("web_action_buttons_update_owner_width")?32:12,Ww=function(){var e=_.V.apply(this,arguments)||this;e.isHovering=!1;e.enableColorSampling=_.M("web_delhi_colorful_sd");e.metadataBadgesInDescription=_.M("web_metadata_badges_in_description");e.descriptionCollapsed=!0;e.useFadedScrimDescription=_.M("kevlar_enable_faded_scrim_on_description");e.skinnyMode=!1;e.playlist=!1;e.isDark=document.documentElement.hasAttribute("dark");e.disableVideoOwnerOnTap=_.M("swatchie_video_owner_on_tap_ks");e.swatcherooDelayLoad=
_.M("swatcheroo_enable_ghost_cards");e.primaryMenuWidth=0;e.videoId="";e.titleHeadlineXs=_.M("web_watch_typography_title_headline_xs");e.titleHeadlineS=_.M("web_watch_typography_title_headline_s");e.titleHeadlineM=_.M("web_watch_typography_title_headline_m");e.titleHashtagBlackLinkified=_.M("web_title_hashtag_black_linkified");e.titleHashtagGreyLinkified=_.M("web_title_hashtag_grey_linkified");e.actionButtonsUpdateOwnerWidth=_.M("web_action_buttons_update_owner_width");e.shouldForceIconOnly=!1;e.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};e.isFullscreen=!1;e.isTheaterMode=!1;return e};
_.U(Ww,_.V);_.Y=Ww.prototype;_.Y.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.Y.updateOwnerAndDescriptionPosition=function(){_.M("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.E1(this.bottomRowElement,this.ownerElement)):(_.E1(this.bottomRowElement,this.descriptionElement),_.E1(this.topRowElement,this.ownerElement)))};
_.Y.titleOnTap=function(e){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||this.handleExpandDescriptionCommands()}};
_.Y.videoOwnerOnTap=function(e){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.Y.detached=function(){var e=this,z;return _.k(function(C){(z=e.resizeObserver)==null||z.disconnect();_.E_(C)})};
_.Y.maybeAttachResizeObserver=function(){var e=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.lw(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){e.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.Y.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var e=this.hostElement.clientWidth,z=Math.max(this.largerItemWrap?400:350,e/2-TkC);_.M("web_action_buttons_update_owner_width")&&(z=this.ownerElement.clientWidth+TkC);this.actionsOnSeparateLine=this.primaryMenuWidth>e-z?!0:!1}};
_.Y.stripAttributedDescription=function(e){return{content:e.content.replace(/[\r\n]{2,}/g,"\n")}};
_.Y.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.M("web_modern_buttons"),forceIconButton:!_.M("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:!0},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"}}}};
_.Y.videoPrimaryInfoRendererChanged=function(){var e;if((e=this.videoPrimaryInfoRenderer)==null?0:e.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.Y.videoSecondaryInfoRendererChanged=function(){var e,z;(e=this.descriptionInlineExpander)==null||(z=e.collapse)==null||z.call(e);this.descriptionExpandClientVe=_.mT(110509);this.descriptionCollapseClientVe=_.mT(110510);e=_.Pr();z=_.Ip();e&&z&&(_.M("combine_ve_grafts")?(_.yQ(_.nm(),this.descriptionExpandClientVe,z),_.yQ(_.nm(),this.descriptionCollapseClientVe,z)):_.NL(e,z,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.Y.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.Y.updateTopLevelIconsOnly=function(){var e=this;_.M("top_level_update_killswitch")||this.menu&&_.c5.addLowPriorityJob(function(){e.menu.topLevelIconsOnly=e.skinnyMode},_.n0("swathceroo_delay_flexible_menu_update",100))};
_.Y.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=!0};
_.Y.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.Y.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.Y.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.Y.onYtTextInlineExpanderExpandedChanged=function(){if(!_.M("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var e,z;(z=(e=this.structuredDescriptionContentRendererElement).resize)==null||z.call(e)}};
_.Y.onRenderStamperFinished=function(e){(e==null?void 0:e.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.Y.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.Y.onYtExpanderLessTapped=function(){var e,z=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.showLessCommand;z&&this.ytComponentBehavior.resolveCommand(z)};
_.Y.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.Y.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.Y.onDescriptionClick=function(e){if(!_.zi(_.cJ(e)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var z;((z=window.getSelection())==null?0:z.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.M("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.Y.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.Y.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.Y.logCollapseClick=function(){var e=_.Pr();e&&this.descriptionCollapseClientVe&&_.gQ(e,this.descriptionCollapseClientVe)};
_.Y.logExpandClick=function(){var e=_.Pr();e&&this.descriptionExpandClientVe&&_.gQ(e,this.descriptionExpandClientVe)};
_.Y.collapseDescription=function(){this.descriptionCollapsed=!0};
_.Y.scrollToTopOfContainer=function(){_.eA(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.Y.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.Y.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.Y.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.Y.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var e,z;(z=(e=this.descriptionInlineExpander).resize)==null||z.call(e)}else _.AX(new _.uh("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var C;(C=this.menu)==null||C.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.Y.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var e,z,C,w,K=_.M("web_action_buttons_update_owner_width")?(C=(e=_.XC(this.menu).querySelector("#button-shape"))==null?void 0:e.clientWidth)!=null?C:0:(w=(z=_.XC(this.menu).querySelector("#button"))==null?void 0:z.clientWidth)!=null?w:0,G,X;e=((X=(G=_.XC(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:G.clientWidth)!=null?X:0)+8+K;var J,q;K=(q=(J=_.XC(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:J.children.length)!=null?q:2;e<=8*K||(this.primaryMenuWidth=e)}};
_.Y.onYtUpdateTitleAction=function(e){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.r(e,Ppy).title)};
_.Y.onYtUpdateDescriptionAction=function(e){if(e=_.r(e,_.y5g)){var z,C=!((z=this.videoSecondaryInfoRenderer)==null||!z.attributedDescription);e.isEmpty||!e.description&&!e.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):e.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",e.attributedDescription):e.description&&(C?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Em(e.description)):this.set("videoSecondaryInfoRenderer.description",e.description))}};
_.Y.onYtDarkModeToggledAction=function(e){this.isDark=e};
_.Y.registerPanel=function(){if(!_.M("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var e=_.M("web_watch_imax_theater_mode")&&this.isTheaterMode;e=_.M("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||e;var z=_.lh().resolve(_.kX);z&&!e&&z.registerPanel("engagement-panel-structured-description",this)}};
_.Y.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.Y.parseColorSamplingData=function(){var e;if(_.M("web_delhi_colorful_sd")&&((e=this.structuredDescriptionContentRenderer)==null?0:e.items)&&(e=this.structuredDescriptionContentRenderer.items.find(function(K){return!!_.r(K,Fi)}))){var z,C;
this.hoverColor={lightTheme:(z=_.r(e,Fi))==null?void 0:z.lightThemeColorPalette,darkTheme:(C=_.r(e,Fi))==null?void 0:C.darkThemeColorPalette};var w;this.hoverText=(w=_.r(e,Fi))==null?void 0:w.colorSampledDescriptionBodyText}};
_.Y.updateHoverColor=function(){if(_.M("web_delhi_colorful_sd")){var e=this.hoverColor,z={},C;e=(C=this.isDark?e==null?void 0:e.darkTheme:e==null?void 0:e.lightTheme)!=null?C:{};C=_.b(ozj);for(var w=C.next();!w.done;w=C.next()){w=w.value;var K=e[w];z["--yt-saturated-"+_.Xu(w)]=K?_.FN(K):"initial"}_.T8(this.hostElement,z)}};
_.Y.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.Y.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.Y.showPanel=function(e){this.expandDescription();var z=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;z.resize();var C,w=e==null?void 0:(C=e.sectionListEngagementPanelExtras)==null?void 0:C.scrollToItemSectionIdentifier;w?_.c5.addJob(function(){z==null||z.scrollToSection(w)},8):this.scrollToTopOfContainer()};
_.Y.isVisible=function(){return!this.descriptionCollapsed};
_.Y.getReloadContinuation=function(){};
_.Y.hidePanel=function(){};
_.Y.updatePanel=function(){};
_.lB.Object.defineProperties(Ww.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var e;return _.M("web_delhi_colorful_sd")&&(e=this.structuredDescriptionContentRenderer)!=null&&e.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(z){return!_.r(z,Fi)&&!_.r(z,OZL)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.structuredDescriptionContentRendererComputed)!=null&&e.items){var z;e=_.b((z=this.structuredDescriptionContentRendererComputed)==null?void 0:z.items);for(z=e.next();!z.done;z=e.next())if(z=_.r(z.value,_.i3a))return z}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.videoPrimaryInfoRenderer)==null?0:e.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!!((e=this.videoSecondaryInfoRenderer)==null?0:(z=e.owner)==null?0:(C=z.videoOwnerRenderer)==null?0:C.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var e,z;if((e=this.videoSecondaryInfoRenderer)==null?0:(z=e.attributedDescription)==null?0:z.content){var C,w;return(w=this.stripAttributedDescription((C=this.videoSecondaryInfoRenderer)==null?void 0:C.attributedDescription))!=null?w:{runs:[]}}}if(_.M("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var K,G,X,J;return(J=(X=(K=this.videoSecondaryInfoRenderer)==
null?void 0:K.description)!=null?X:(G=this.videoSecondaryInfoRenderer)==null?void 0:G.attributedDescription)!=null?J:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.headerRuns)!=null?z:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.commentsEntryPointHeaderRenderer)==null||!e.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.videoMetadataCarousel)==null||!e.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.n0("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var e,z,C=Object.assign({},(e=this.videoSecondaryInfoRenderer)==null?void 0:(z=e.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(C&&C.rows&&C.collapsedItemCount!==void 0&&!(C.rows.length<=C.collapsedItemCount))return C.rows=C.rows.slice(C.collapsedItemCount),C.collapsedItemCount=0,C}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var e,z,C=Object.assign({},(e=this.videoSecondaryInfoRenderer)==null?void 0:(z=e.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer);if(C&&C.rows&&C.collapsedItemCount!==void 0)return C.rows=C.rows.slice(0,C.collapsedItemCount),C.collapsedItemCount=C.rows.length,C}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!((e=this.structuredDescriptionContentRendererComputed)==null?0:(z=e.items)==null?0:z.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var e;return(e=this.videoSecondaryInfoRenderer)==null?void 0:e.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.videoSecondaryInfoRenderer)==null?0:(z=e.owner)==null?0:(C=z.videoOwnerRenderer)==null?0:C.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w;return!!((e=this.videoPrimaryInfoRenderer)==null?0:(z=e.videoActions)==null?0:(C=z.menuRenderer)==null?0:(w=C.flexibleItems)==null?0:w.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.yk(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.yk(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var e=this;if(_.M("web_title_hashtag_grey_delinkified")){var z,C=_.de.unsafeClone((z=this.videoPrimaryInfoRenderer)==null?void 0:z.title);(z=C==null?void 0:C.runs)&&z.forEach(function(w){if(w==null?0:w.navigationEndpoint)w.textColor=4284506208,e.isDark&&(w.textColor=4289374890)});
return C}return(C=this.videoPrimaryInfoRenderer)==null?void 0:C.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.M("web_title_hashtag_black_delinkified")||_.M("web_title_hashtag_grey_delinkified")}}});
Ww.prototype.updateHoverColor=Ww.prototype.updateHoverColor;Ww.prototype.parseColorSamplingData=Ww.prototype.parseColorSamplingData;Ww.prototype.resetDescriptionState=Ww.prototype.resetDescriptionState;Ww.prototype.registerPanel=Ww.prototype.registerPanel;Ww.prototype.onYtExpanderLessTapped=Ww.prototype.onYtExpanderLessTapped;Ww.prototype.onYtExpanderMoreTapped=Ww.prototype.onYtExpanderMoreTapped;Ww.prototype.onRenderStamperFinished=Ww.prototype.onRenderStamperFinished;
Ww.prototype.onYtTextInlineExpanderExpandedChanged=Ww.prototype.onYtTextInlineExpanderExpandedChanged;Ww.prototype.onYtTextInlineExpanderCollapseClicked=Ww.prototype.onYtTextInlineExpanderCollapseClicked;Ww.prototype.onYtTextInlineExpanderExpandClicked=Ww.prototype.onYtTextInlineExpanderExpandClicked;Ww.prototype.moveActionsElement=Ww.prototype.moveActionsElement;Ww.prototype.updateShouldForceIconOnly=Ww.prototype.updateShouldForceIconOnly;Ww.prototype.updateTopLevelIconsOnly=Ww.prototype.updateTopLevelIconsOnly;
Ww.prototype.structuredDescriptionContentRendererChanged=Ww.prototype.structuredDescriptionContentRendererChanged;Ww.prototype.videoSecondaryInfoRendererChanged=Ww.prototype.videoSecondaryInfoRendererChanged;Ww.prototype.videoPrimaryInfoRendererChanged=Ww.prototype.videoPrimaryInfoRendererChanged;Ww.prototype.maybeUpdateActionsOnSeparateLine=Ww.prototype.maybeUpdateActionsOnSeparateLine;Ww.prototype.updateOwnerAndDescriptionPosition=Ww.prototype.updateOwnerAndDescriptionPosition;
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ww.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Ww.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],Ww.prototype,"ytdReduxBehavior",void 0);_.d([_.nP("#above-the-fold"),_.B("design:type",HTMLElement)],Ww.prototype,"aboveTheFoldContainer",void 0);_.d([_.nP("#menu ytd-menu-renderer"),_.B("design:type",Object)],Ww.prototype,"menu",void 0);_.d([_.nP("#description-inline-expander"),_.B("design:type",Object)],Ww.prototype,"descriptionInlineExpander",void 0);
_.d([_.nP("#faded-structured-description"),_.B("design:type",Object)],Ww.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.d([_.nP("#structured-description"),_.B("design:type",Object)],Ww.prototype,"structuredDescriptionContentRendererElement",void 0);_.d([_.nP("#title"),_.B("design:type",HTMLElement)],Ww.prototype,"titleElement",void 0);_.d([_.nP("#description"),_.B("design:type",HTMLElement)],Ww.prototype,"descriptionElement",void 0);
_.d([_.nP("#description-interaction"),_.B("design:type",Object)],Ww.prototype,"descriptionInteraction",void 0);_.d([_.nP("#owner"),_.B("design:type",HTMLElement)],Ww.prototype,"ownerElement",void 0);_.d([_.nP("#top-row"),_.B("design:type",HTMLElement)],Ww.prototype,"topRowElement",void 0);_.d([_.nP("#bottom-row"),_.B("design:type",HTMLElement)],Ww.prototype,"bottomRowElement",void 0);_.d([_.nP("#actions"),_.B("design:type",HTMLElement)],Ww.prototype,"actionsElement",void 0);
_.d([_.nP("#bottom-actions"),_.B("design:type",HTMLElement)],Ww.prototype,"bottomActionsElement",void 0);_.d([_.nP("#ytd-watch-info-text"),_.B("design:type",Object)],Ww.prototype,"watchInfoTextElement",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"videoSecondaryInfoRenderer",void 0);
_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"commentsEntryPointHeaderRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"videoMetadataCarousel",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"structuredDescriptionContentRenderer",void 0);_.d([_.P("structuredDescriptionContentRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"structuredDescriptionContentRendererComputed",null);
_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"videoSummary",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"merchShelf",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"infoPanelBelowMetadata",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"hoverColor",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"hoverText",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"isHovering",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"enableColorSampling",void 0);_.d([_.P("structuredDescriptionContentRendererComputed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"productShelf",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"metadataBadgesInDescription",void 0);_.d([_.P("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"shouldHideBadges",null);
_.d([_.P("productShelf","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ww.prototype,"shouldShowProductShelf",null);_.d([_.F(),_.B("design:type",Boolean)],Ww.prototype,"isWatchFlexy",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"descriptionCollapsed",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ww.prototype,"useFadedScrimDescription",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"skinnyMode",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"largerItemWrap",null);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"playlist",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"clarifyBox",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"playerAds",void 0);
_.d([_.F(),_.B("design:type",Boolean)],Ww.prototype,"isDark",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Ww.prototype,"actionsOnSeparateLine",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"disableVideoOwnerOnTap",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"swatcherooDelayLoad",void 0);_.d([_.F(),_.B("design:type",Boolean)],Ww.prototype,"suppressTopLevelMetadataRows",void 0);
_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"primaryMenuWidth",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"videoId",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"titleHeadlineXs",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"titleHeadlineS",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"titleHeadlineM",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"titleHashtagBlackLinkified",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"titleHashtagGreyLinkified",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.d([_.F(),_.B("design:type",Object)],Ww.prototype,"shouldForceIconOnly",void 0);
_.d([_.Ux("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"updateOwnerAndDescriptionPosition",null);_.d([_.Ux("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.d([_.P("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"descriptionText",null);_.d([_.P("videoSecondaryInfoRenderer.headerRuns"),_.B("design:type",Array),_.B("design:paramtypes",[])],Ww.prototype,"headerRuns",null);
_.d([_.F({value:!1}),_.P("commentsEntryPointHeaderRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"hasTeaser",null);_.d([_.F({value:!1,reflectToAttribute:!0}),_.P("videoMetadataCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"hasTeaserCarousel",null);_.d([_.F({value:3}),_.P("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"descriptionMaxLines",null);
_.d([_.P("videoSecondaryInfoRenderer.metadataRowContainer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"collapsibleMetadataRows",null);_.d([_.P("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"alwaysVisibleMetadataRows",null);
_.d([_.P("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ww.prototype,"hasInlineStructuredDescription",null);_.d([_.P("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ww.prototype,"showInlineStructuredDescription",null);
_.d([_.P("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"descriptionExpandCommand",null);_.d([_.P("videoSecondaryInfoRenderer.owner"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"videoOwnerCommand",null);_.d([_.F({reflectToAttribute:!0}),_.P("videoPrimaryInfoRenderer.videoActions"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ww.prototype,"flexMenuEnabled",null);
_.d([_.F({selector:_.fU,reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"isFullscreen",void 0);_.d([_.F({selector:_.VC,reflectToAttribute:!0}),_.B("design:type",Object)],Ww.prototype,"isTheaterMode",void 0);_.d([_.P("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ww.prototype,"showAttributedStringDescription",null);
_.d([_.P("descriptionText","useFadedScrimDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ww.prototype,"showFormattedStringDescription",null);_.d([_.P("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Ww.prototype,"showFadedStructuredDescription",null);
_.d([_.Ux("videoPrimaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"videoPrimaryInfoRendererChanged",null);_.d([_.P("videoPrimaryInfoRenderer.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"videoTitle",null);_.d([_.P("videoPrimaryInfoRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ww.prototype,"noEndpoints",null);
_.d([_.Ux("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"videoSecondaryInfoRendererChanged",null);_.d([_.mi("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"structuredDescriptionContentRendererChanged",null);
_.d([_.mi("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"updateTopLevelIconsOnly",null);_.d([_.mi("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"updateShouldForceIconOnly",null);_.d([_.mi("skinnyMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"moveActionsElement",null);
_.d([_.Qi("yt-text-inline-expander-expand-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"onYtTextInlineExpanderExpandClicked",null);_.d([_.Qi("yt-text-inline-expander-collapse-clicked"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.d([_.Qi("yt-text-inline-expander-expanded-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Ww.prototype,"onRenderStamperFinished",null);
_.d([_.Qi("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"onYtExpanderMoreTapped",null);_.d([_.Qi("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"onYtExpanderLessTapped",null);
_.d([_.mi("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"registerPanel",null);_.d([_.mi("videoSecondaryInfoRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"resetDescriptionState",null);
_.d([_.mi("structuredDescriptionContentRenderer"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"parseColorSamplingData",null);_.d([_.mi("hoverColor","isDark"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ww.prototype,"updateHoverColor",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Ww);
_.u(Ww,"ytd-watch-metadata",function(){if(K62!==void 0)return K62;var e=document.createElement("template");_.v(e,'\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    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" 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="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return K62=e},{mode:2});_.rO2=function(e){_.Sn.call(this);this.JSC$23608_watchApi=e;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;$qg(this);ldy(this);QuL(this);mqa(this);ady(this);nzy(this);MJg(this)};
_.U(_.rO2,_.Sn);var QuL=function(e){var z=function(){_.M("kevlar_is_pupi_enabled")||Pw(e)};
e.JSC$23608_watchApi.getRoot().addEventListener("yt-player-updated",z);e.addOnDisposeCallback(function(){e.JSC$23608_watchApi.getRoot().removeEventListener("yt-player-updated",z)})},ady=function(e){if(_.M("kevlar_endscreen_auto_theater_mode")){var z=e.JSC$23608_watchApi.subscribeToActiveChanged(function(){H4Y(e)},!1);
e.addOnDisposeCallback(z)}},$qg=function(e){var z,C,w,K,G;
_.k(function(X){if(X.nextAddress==1)return X.yield(e.JSC$23608_watchApi.playerApi,2);z=X.yieldResult;C=function(J){J=!!J;Uqt(e)&&(J=J?2:1,_.fH.getInstance().setState(J,!0,!1))};
w=function(J){J&&_.Nay(_.eB().getState())&&(_.eA(e.JSC$23608_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),e.temporaryTheaterMode=!0)};
K=function(J){_.M("kevlar_player_update_autonav_on_new_data")&&J.type==="newdata"&&(_.M("kevlar_is_pupi_enabled")||Pw(e))};
G=function(J){e.onPlayerStateChange(J)};
_.M("kevlar_endscreen_auto_theater_mode")&&z.addEventListener("onAutonavCancelled",w);z.addEventListener("onAutonavChangeRequest",C);z.addEventListener("onVideoDataChange",K);z.addEventListener("onStateChange",G);e.addOnDisposeCallback(function(){z.removeEventListener("onAutonavChangeRequest",C);z.removeEventListener("onVideoDataChange",K);z.removeEventListener("onStateChange",G);_.M("kevlar_endscreen_auto_theater_mode")&&z.removeEventListener("onAutonavCancelled",w)});
_.E_(X)})},ldy=function(e){e.JSC$23608_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){e.autonavCancelledBySignal=!0;
_.M("kevlar_is_pupi_enabled")||Pw(e)});
e.JSC$23608_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(z,C,w){C&&Pw(e,w)});
e.JSC$23608_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Uqt(e)&&_.fH.getInstance().setState(2,!0,!0)});
e.JSC$23608_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Uqt(e)&&_.fH.getInstance().setState(1,!0,!0)});
e.addOnDisposeCallback(function(){e.JSC$23608_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");e.JSC$23608_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");e.JSC$23608_watchApi.unregisterActionHandler("yt-enable-autoplay-command");e.JSC$23608_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},mqa=function(e){var z=e.JSC$23608_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){MJg(e)}),C=e.JSC$23608_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){nzy(e)});
e.addOnDisposeCallback(function(){e.JSC$23608_watchApi.unsubscribeByKey(z);e.JSC$23608_watchApi.unsubscribeByKey(C)})},MJg=function(e){e.autonavCancelledBySignal=!1;
_.M("kevlar_is_pupi_enabled")||Pw(e)},nzy=function(e){var z=e.JSC$23608_watchApi.getWatchNextResponse(),C,w;
var K=(z=(w=_.r(z==null?void 0:(K=z.playerOverlays)==null?void 0:(C=K.playerOverlayRenderer)==null?void 0:C.autonavToggle,_.p$S))==null?void 0:w.enabled)?2:1;_.M("kevlar_is_pupi_enabled")?_.fH.getInstance().setState(K,!1,!1):Pw(e);_.M("web_persist_server_autonav_state_on_client")&&typeof z==="boolean"&&_.alg(K===2)},Uqt=function(e){if(e.autonavCancelledBySignal)return!1;
var z,C,w,K;return!!((z=e.JSC$23608_watchApi.getWatchNextResponse())==null?0:(C=z.contents)==null?0:(w=C.twoColumnWatchNextResults)==null?0:(K=w.autoplay)==null?0:K.autoplay)};
_.rO2.prototype.onPlayerStateChange=function(e){if(e===0){e=!_.fH.getInstance().isAutoplaySetExplicitly();var z=this.JSC$23608_watchApi.getWatchNextResponse(),C,w,K,G;z=_.r(z==null?void 0:(C=z.contents)==null?void 0:(w=C.twoColumnWatchNextResults)==null?void 0:(K=w.autoplay)==null?void 0:(G=K.autoplay)==null?void 0:G.autoplayExplicitChoiceDialogRenderer,_.mw6);Uqt(this)&&e&&z&&_.Tx.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:z},popupType:"DIALOG"}})}else H4Y(this)};
var H4Y=function(e){e.temporaryTheaterMode&&(e.temporaryTheaterMode=!1,_.eA(e.JSC$23608_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Pw=function(e,z){z=z===void 0?!1:z;
var C;_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23608_watchApi.playerApi,2);C=w.yieldResult;Uqt(e)?C.setAutonavState(_.fH.getInstance().getState(),z):C.setAutonavState(1,z);_.E_(w)})};var vzl={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.W6Y=function(e){_.Sn.call(this);var z=this;this.JSC$23613_watchApi=e;var C=this.JSC$23613_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Ida(z)});
this.addOnDisposeCallback(function(){z.JSC$23613_watchApi.unsubscribeByKey(C)});
Ida(this)};
_.U(_.W6Y,_.Sn);var Ida=function(e){var z=e.JSC$23613_watchApi.getPlayerResponse(),C=e.JSC$23613_watchApi.getWatchNextResponse();if(!_.sA8(z==null?void 0:z.playabilityStatus,C==null?void 0:C.playerOverlays)){var w;var K=z==null?void 0:(w=z.playabilityStatus)==null?void 0:w.errorScreen}e.JSC$23613_watchApi.provideRenderingData("ERROR_SCREEN",K)};var P7C=_.f(function(e){return _.x("yt-player-grid-renderer",{class:_.qT("ytPlayerGridRendererHost",e.className)},_.x(_.PF,{data:e.data},{lockupViewModel:function(z){return _.x(_.eI,{data:z.data,useOverlayStyling:!0})}}))},"Fo");var RA2=_.f(function(e){var z=e.data;e=_.M("web_watch_video_details_hide_subtitle");var C=_.M("web_watch_video_details_single_line_title"),w=_.T9(function(){var J=z().onTap;J&&_.lh().resolve(_.ms).resolveCommand(J)}),K={},G={},X={};
return _.x("yt-player-overlay-video-details-renderer",{class:_.qT("ytPlayerOverlayVideoDetailsRendererHost",(K.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.M("web_watch_video_details_transparent_background"),K)),"on:click":w,role:"button"},_.x("h2",{class:_.qT("ytPlayerOverlayVideoDetailsRendererTitle",(G.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return C},G))},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:_.qT("ytPlayerOverlayVideoDetailsRendererSubtitle",
(X.ytPlayerOverlayVideoDetailsRendererHideSubtitle=e,X))},_.x(_.U2,{text:function(){return z().subtitle}})))},"Go");var R1={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},L6j=_.f(function(e){var z=e.data;var C=_.rG(_.fU),w=_.M("web_watch_action_bar_resize_buttons"),K=_.M("web_watch_video_action_dsdvb"),G=_.M("delhi_modern_web_player_icons")&&!_.M("enable_web_delhi_icons");e=_.M("delhi_modern_web_player_disable_frosted_glass");var X=_.M("delhi_modern_web_player_compact_video_actions_controls"),
J=_.M("web_player_quick_action_buttons_icon_only"),q=function(){var Q=w&&!C(),m={};X?m.size="S":Q&&(m.size="M");J&&(m.iconPosition="icon-only");if(Object.keys(m).length!==0)return m},T={};
return _.x("yt-player-quick-action-buttons",{class:_.qT("ytPlayerQuickActionButtonsHost",(T.ytPlayerQuickActionButtonsHostCompactControls=function(){return!C()||X},T.ytPlayerQuickActionButtonsHostDisableBackdropFilter=e,T))},_.x(_.ui,{each:function(){var Q=z();
if(G){Q=JSON.parse(JSON.stringify(Q));for(var m=_.b(Q),a=m.next();!a.done;a=m.next()){var n=a.value,H=void 0;a=_.r((H=_.r(n,_.jo))==null?void 0:H.toggleButtonViewModel,_.v7);var I=void 0;H=_.r((I=_.r(n,_.yg))==null?void 0:I.toggleButtonViewModel,_.v7);I=_.r(n,_.H7);n=_.r(n,_.v7);if(a)H=_.r(a.defaultButtonViewModel,_.H7),a=_.r(a.toggledButtonViewModel,_.H7),H&&H.iconName&&(H.iconName=R1[H.iconName]),a&&a.iconName&&(a.iconName=R1[a.iconName]);else if(H)a=_.r(H.defaultButtonViewModel,_.H7),H=_.r(H.toggledButtonViewModel,
_.H7),a&&a.iconName&&(a.iconName=R1[a.iconName]),H&&H.iconName&&(H.iconName=R1[H.iconName]);else if(I)I.iconName&&(I.iconName=R1[I.iconName]);else if(n){a=_.r(n.defaultButtonViewModel,_.H7);H=_.r(n.toggledButtonViewModel,_.H7);n=void 0;if((n=a)==null?0:n.iconName)a.iconName=R1[a.iconName];a=void 0;if((a=H)==null?0:a.iconName)H.iconName=R1[H.iconName]}}}K&&(Q=azT(Q));return Q}},function(Q){return _.x(_.PF,{data:function(){return Q}},{buttonViewModel:function(m){return _.x(_.iz,{data:m.data,
buttonOverrides:q})},
likeButtonViewModel:function(m){return _.x(_.nT,{data:m.data,buttonShapeOverrideables:q})},
dislikeButtonViewModel:function(m){return _.x(_.aw,{data:m.data,buttonShapeOverrideables:q})},
toggleButtonViewModel:function(m){return _.x(_.XG,{data:m.data,buttonShapeOverrides:q})}})}))},"Ho");_.O4T=function(e){_.Sn.call(this);var z=this;this.JSC$23619_watchApi=e;e=_.b(_.II({},void 0,"OB6c5e"));this.quickActionsViewModel=e.next().value;this.setQuickActionsViewModel=e.next().value;e=_.b(_.II({},void 0,"ZCXW8c"));this.playerOverlayVideoDetailsRenderer=e.next().value;this.setPlayerOverlayVideoDetailsRenderer=e.next().value;e=_.b(_.II([],void 0,"A7tRk"));this.lockupViewModels=e.next().value;this.setLockupViewModels=e.next().value;var C=this.JSC$23619_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){hAg(z)});
this.addOnDisposeCallback(function(){z.JSC$23619_watchApi.unsubscribeByKey(C)});
hAg(this)};
_.U(_.O4T,_.Sn);
var hAg=function(e){var z,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h;_.k(function(E){if(E.nextAddress==1)return E.yield(e.JSC$23619_watchApi.playerApi,2);z=E.yieldResult;C=e.JSC$23619_watchApi.getWatchNextResponse();G=(w=C)==null?void 0:(K=w.playerOverlays)==null?void 0:K.playerOverlayRenderer;J=_.r((X=G)==null?void 0:X.fullscreenQuickActionsBar,_.phg);(T=(q=e).setQuickActionsViewModel)==null||T.call(q,J||{});J&&Ezt(e,z);a=(Q=G)==null?void 0:(m=Q.videoDetails)==null?void 0:m.playerOverlayVideoDetailsRenderer;(H=
(n=e).setPlayerOverlayVideoDetailsRenderer)==null||H.call(n,a||{});a&&F62(e,z);if(_.M("web_player_use_external_grid_component")){var N=[],D,g,y,Z,YN=C==null?void 0:(D=C.contents)==null?void 0:(g=D.twoColumnWatchNextResults)==null?void 0:(y=g.secondaryResults)==null?void 0:(Z=y.secondaryResults)==null?void 0:Z.results;if(YN)for(D=_.b(YN),g=D.next();!g.done;g=D.next())if(g=g.value,g.lockupViewModel)N.push(g);else if(y=void 0,(y=g.itemSectionRenderer)==null?0:y.contents)for(g=_.b(g.itemSectionRenderer.contents),
y=g.next();!y.done;y=g.next())y=y.value,y.lockupViewModel&&N.push(y);I=N;(h=(L=e).setLockupViewModels)==null||h.call(L,I||[]);VJg(e,z)}_.E_(E)})},Ezt=function(e,z){if(!e.quickActionButtonsContainer)if(z.setFullscreenQuickActions){e.quickActionButtonsContainer=document.createElement("div");
z.setFullscreenQuickActions(e.quickActionButtonsContainer);var C=function(){return e.quickActionsViewModel().quickActionButtons||[]},w=_.ii(e.quickActionButtonsContainer,function(){return _.x(L6j,{data:C})},"Io");
e.addOnDisposeCallback(function(){z.setFullscreenQuickActions(void 0);w()})}else _.AX(new _.uh("setFullscreenQuickActions not defined",{playerApi:Object.keys(z),
isReady:z.isReady(),appState:z.getAppState()}))},F62=function(e,z){if(!e.playerOverlayVideoDetailsRendererContainer)if(z.setPlayerOverlayVideoDetailsRenderer){e.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
z.setPlayerOverlayVideoDetailsRenderer(e.playerOverlayVideoDetailsRendererContainer);var C=_.ii(e.playerOverlayVideoDetailsRendererContainer,function(){return _.x(RA2,{data:e.playerOverlayVideoDetailsRenderer})},"Jo");
e.addOnDisposeCallback(function(){z.setPlayerOverlayVideoDetailsRenderer(void 0);C()})}else _.AX(new _.uh("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(z),
isReady:z.isReady(),appState:z.getAppState()}))},VJg=function(e,z){if(!e.gridRendererContainer)if(z.setFullscreenGrid){e.gridRendererContainer=document.createElement("div");
z.setFullscreenGrid(e.gridRendererContainer);var C=_.ii(e.gridRendererContainer,function(){return _.x(P7C,{data:e.lockupViewModels})},"Ko");
e.addOnDisposeCallback(function(){z.setFullscreenGrid(void 0);C()})}else _.AX(new _.uh("setFullscreenGrid not defined",{playerApi:Object.keys(z),
isReady:z.isReady(),appState:z.getAppState()}))};_.Le=function(e){_.Sn.call(this);var z=this;this.JSC$23625_watchApi=e;this.JSC$23625_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;e=_.K3(_.eB(),_.fU,function(C){z.onFullscreenChanged(C)});
this.addOnDisposeCallback(e);e=_.K3(_.eB(),_.Lf,function(C){z.onWatchScroll(C)});
this.addOnDisposeCallback(e);_.M("kevlar_watch_while_v2")&&(e=_.K3(_.eB(),_.V2,function(C){fdy(z,C)}),this.addOnDisposeCallback(e));
SkY(this);ung(this);dqY();this.onWatchScroll(_.Lf(_.eB().getState()));_.cR("START_IN_FULL_WINDOW_MODE")&&this.JSC$23625_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.U(_.Le,_.Sn);var SkY=function(e){e.JSC$23625_watchApi.registerActionHandler("yt-fullscreen-change-action",function(z){var C=e.JSC$23625_watchApi.isActive();z&&!C||_.eB().dispatch(_.Yz({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!z}}))});
e.addOnDisposeCallback(function(){e.JSC$23625_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},ung=function(e){var z,C;
_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23625_watchApi.playerApi,2);z=w.yieldResult;C=function(){e.onFullerscreenEduClicked()};
z.addEventListener("onFullerscreenEduClicked",C);e.addOnDisposeCallback(function(){z.removeEventListener("onFullerscreenEduClicked",C)});
_.E_(w)})};
_.Le.prototype.onFullscreenChanged=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return z.isFullscreen=!!_.yq(),w.yield(z.JSC$23625_watchApi.playerApi,2);C=w.yieldResult;z.JSC$23625_miniplayerActive||C.setFauxFullscreen(z.isFullscreen);if(e&&(z.JSC$23625_watchApi.focusOnPlayer(),!z.fullerscreenEduButtonShownThisPlayback)){z.fullerscreenEduButtonShownThisPlayback=!0;var K=_.PJ("yt-fullerscreen-edu-button-shown-count")||0;_.WJ("yt-fullerscreen-edu-button-shown-count",K+1,31536E3);
z.updateFullerscreenEduButtonSubtleModeState()}_.E_(w)})};
var fdy=function(e,z){var C;_.k(function(w){if(w.nextAddress==1)return e.JSC$23625_miniplayerActive=z,w.yield(e.JSC$23625_watchApi.playerApi,2);C=w.yieldResult;C.setFauxFullscreen(!e.JSC$23625_miniplayerActive&&e.isFullscreen);_.E_(w)})};
_.Le.prototype.onWatchScroll=function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1)return _.M("external_fullscreen_with_edu")?K.yield(z.JSC$23625_watchApi.playerApi,2):K.return();C=K.yieldResult;w=e<=0;z.shouldShowFullerscreenEdu!==w&&(z.shouldShowFullerscreenEdu=w,C.updateFullerscreenEduButtonVisibility(!z.shouldShowFullerscreenEdu));_.E_(K)})};
_.Le.prototype.onFullerscreenEduClicked=function(){this.JSC$23625_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var e=_.PJ("yt-fullerscreen-edu-button-click-count")||0;_.WJ("yt-fullerscreen-edu-button-click-count",e+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Le.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var e=this,z,C,w,K,G,X;return _.k(function(J){if(J.nextAddress==1)return z=_.PJ("yt-fullerscreen-edu-button-click-count")||0,C=_.PJ("yt-fullerscreen-edu-button-shown-count")||0,w=_.n0("external_fullscreen_button_click_threshold"),K=_.n0("external_fullscreen_button_shown_threshold"),G=z>=w||C>=K,J.yield(e.JSC$23625_watchApi.playerApi,2);X=J.yieldResult;X.updateFullerscreenEduButtonSubtleModeState(G);_.E_(J)})};
_.Le.prototype.disposeInternal=function(){_.Sn.prototype.disposeInternal.call(this);var e=_.yq();_.M("kevlar_exit_fullscreen_leaving_watch")&&e&&_.cr(e)};
var dqY=function(){if(_.M("web_watch_add_viewport_meta_tag")){var e=document.querySelector("meta[name=viewport]"),z=document.head;z&&!e&&(e=document.createElement("meta"),e.name="viewport",e.content="width=device-width, initial-scale=1.0, viewport-fit=cover",z.appendChild(e))}};_.i4g=function(e){_.Sn.call(this);var z=this;this.JSC$23628_watchApi=e;this.jobId=0;this.pendingRequestId=void 0;var C=this.JSC$23628_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){DqT(z)});
this.addOnDisposeCallback(function(){z.JSC$23628_watchApi.unsubscribeByKey(C)});
DqT(this)};
_.U(_.i4g,_.Sn);var Nk2=function(e){_.c5.cancelJob(e.jobId);e.pendingRequestId=void 0},DqT=function(e){Nk2(e);
var z=nOj(e.JSC$23628_watchApi.getWatchNextResponse());if(z){var C=250,w,K=(w=_.r(z,_.Zxa))==null?void 0:w.initialDelayMs;_.M("web_watch_updated_metadata_server_initial_delay")&&K&&(C=K);e.jobId=_.c5.addLowPriorityJob(function(){return e.fetchUpdatedMetadata(z)},C)}};
_.i4g.prototype.fetchUpdatedMetadata=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h;return _.k(function(E){switch(E.nextAddress){case 1:z&&(w={continuation:z});if(!_.M("web_get_updated_metadata_fantasy_panel_continuation_params")){E.jumpTo(2);break}K=_.lh().resolve(_.kX);G="PAsports_fantasy";return E.yield(K.isVisible(G,!0),3);case 3:E.yieldResult&&(T=(J=(X=K).getUpdatePanelContinuationData)==null?void 0:(q=J.call(X,G))==null?void 0:q.updatePanelContinuationRequest)&&(w||(w={}),w.clientParams=
{panelContinuationParams:{panelContinuation:T}});case 2:Q=_.lh().resolve(_.vJ);if(!Q)return _.yG(Error("kp")),E.return();m={};C.pendingRequestId=m;return E.yield(_.yC(Q,e,w),4);case 4:a=E.yieldResult;if(m!==C.pendingRequestId)return E.return();I=(n=a)==null?void 0:(H=n.continuation)==null?void 0:H.timedContinuationData;((L=I)==null?0:L.continuation)&&((h=I)==null?0:h.timeoutMs)&&(C.jobId=_.c5.addLowPriorityJob(function(){return C.fetchUpdatedMetadata(e,I.continuation)},I.timeoutMs));
_.E_(E)}})};
_.i4g.prototype.disposeInternal=function(){_.Sn.prototype.disposeInternal.call(this);Nk2(this)};var suT=_.f(function(e){var z=_.T9(function(){var w=e.data().videoId;if(e.active())w=_.wk(w),_.lh().resolve(_.ms).resolveCommand(w);else{var K=e.playerApi(),G=K.getAvailableAudioTracks(),X,J,q=(X=e.sourceVideoConfig().audioTracks)==null?void 0:(J=X.find(function(T){return T.isDefaultForSource}))==null?void 0:J.id;
if(G=G.find(function(T){return T.getLanguageInfo().getId()===q}))K.setAudioTrack(G,!0),K.setCompositeParam({activeVideoId:w}),e.setActiveSourceId(w)}}),C={};
return _.x("ytw-composite-source-video-overlay",{class:_.qT("ytwCompositeSourceVideoOverlayHost",(C.ytwCompositeSourceVideoOverlayActive=e.active,C.ytwCompositeSourceVideoOverlayInteracting=e.interacting,C)),style:_.QC({left:function(){var w;return((w=e.data().topLeftCornerX)!=null?w:0)*100+"%"},
top:function(){var w;return((w=e.data().topLeftCornerY)!=null?w:0)*100+"%"},
width:function(){var w;return((w=e.data().width)!=null?w:0)*100+"%"},
height:function(){var w;return((w=e.data().height)!=null?w:0)*100+"%"}}),
"on:click":z},_.x("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Lo");var BkC=_.f(function(e){var z=_.b(_.zx(function(){var X,J=(X=e.data().sources)==null?void 0:X.find(function(q){return q.isActive});
if(J)return J.videoId})),C=z.next().value,w=z.next().value;
z=_.b(_.II(!1,void 0,"rmRJ8d"));var K=z.next().value,G=z.next().value;return _.x("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.T9(function(){G(!0)}),
"on:mouseout":_.T9(function(){G(!1)})},_.x(_.l,{cond:function(){return e.data().sources},
then:function(X){return _.x(_.ui,{each:X},function(J){return _.x(suT,{data:J,active:function(){return J.videoId===C()},
setActiveSourceId:w,interacting:K,playerApi:e.playerApi,sourceVideoConfig:function(){return MuT(e.compositeVideoConfig(),J.videoId)}})})}}))},"Mo");_.ju2=function(e){_.Sn.call(this);this.JSC$23643_watchApi=e;e=_.b(_.II({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=e.next().value;this.setCompositeVideoOverlayRenderer=e.next().value;e=_.b(_.II({},void 0,"OlaJpc"));this.compositeVideoConfig=e.next().value;this.setCompositeVideoConfig=e.next().value;tJ2(this);gzj(this)};
_.U(_.ju2,_.Sn);var tJ2=function(e){var z=e.JSC$23643_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){gzj(e)});
e.addOnDisposeCallback(function(){e.JSC$23643_watchApi.unsubscribeByKey(z)})},yOL=function(e){var z;
return _.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$23643_watchApi.playerApi,2);z=C.yieldResult;z.setCompositeVideoOverlayRendererComponent(e.container);_.E_(C)})},cOC=function(e){var z;
return _.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$23643_watchApi.playerApi,2);z=C.yieldResult;z.setCompositeVideoOverlayRendererComponent(void 0);_.E_(C)})},AOj=function(e){var z,C;
return _.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23643_watchApi.playerApi,2);z=w.yieldResult;e.container=document.createElement("div");C=_.ii(e.container,function(){return _.x(BkC,{data:e.compositeVideoOverlayRenderer,compositeVideoConfig:e.compositeVideoConfig,playerApi:z})},"No");
e.addOnDisposeCallback(C);_.E_(w)})},gzj=function(e){var z,C,w,K,G,X,J,q;
_.k(function(T){return T.nextAddress==1?(z=e.JSC$23643_watchApi.getPlayerResponse(),G=_.r((C=z)==null?void 0:(w=C.overlay)==null?void 0:(K=w.playerControlsOverlayRenderer)==null?void 0:K.compositeVideoOverlay,aVj),q=(X=z)==null?void 0:(J=X.playerConfig)==null?void 0:J.compositeVideoConfig,G&&e.setCompositeVideoOverlayRenderer(G),q&&e.setCompositeVideoConfig(q),G&&q?e.container?T.jumpTo(6):T.yield(AOj(e),6):Z4l(e)?T.yield(cOC(e),0):T.jumpTo(0)):Z4l(e)?T.jumpTo(0):T.yield(yOL(e),0)})},Z4l=function(e){var z;
return!((z=e.container)==null||!z.parentElement)};
_.ju2.prototype.disposeInternal=function(){Z4l(this)&&cOC(this);_.Sn.prototype.disposeInternal.call(this)};_.wJl=function(e){_.Sn.call(this);var z=this;this.JSC$23649_watchApi=e;var C=this.JSC$23649_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var w=z.JSC$23649_watchApi.getPlayerResponse();if(w){var K,G;if(w=_.r((K=w.endscreen)==null?void 0:(G=K.endscreenRenderer)==null?void 0:G.hideButton,_.v7)){var X;(X=z.setEndscreenHideButton)==null||X.call(z,w);pHw(z)}}});
this.addOnDisposeCallback(function(){z.JSC$23649_watchApi.unsubscribeByKey(C)});
e=_.b(_.II({},void 0,"ER3tqb"));this.endscreenHideButton=e.next().value;this.setEndscreenHideButton=e.next().value;ekY(this);zkg(this);C6g(this)};
_.U(_.wJl,_.Sn);
var pHw=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return e.creatorEndscreenHideButtonContainer?w.return():w.yield(e.JSC$23649_watchApi.playerApi,2);z=w.yieldResult;e.creatorEndscreenHideButtonContainer=document.createElement("div");_.Gt(e.creatorEndscreenHideButtonContainer,!1);z.setCreatorEndscreenHideButton(e.creatorEndscreenHideButtonContainer);C=_.ii(e.creatorEndscreenHideButtonContainer,function(){return _.x(_.XG,{data:e.endscreenHideButton,useOutlinedIcon:!0})},"Oo");
e.addOnDisposeCallback(function(){C();var K;(K=z)==null||K.setCreatorEndscreenHideButton(void 0)});
_.E_(w)})},ekY=function(e){var z,C;
_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23649_watchApi.playerApi,2);z=w.yieldResult;C=function(){e.creatorEndscreenHideButtonContainer&&_.Gt(e.creatorEndscreenHideButtonContainer,!0)};
z.addEventListener("endscreenelementshown",C);e.addOnDisposeCallback(function(){var K;(K=z)==null||K.removeEventListener("endscreenelementshown",C)});
_.E_(w)})},zkg=function(e){var z=function(){e.creatorEndscreenHideButtonContainer&&_.Gt(e.creatorEndscreenHideButtonContainer,!1)},C=e.JSC$23649_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",z),w=e.JSC$23649_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",z);
e.addOnDisposeCallback(function(){e.JSC$23649_watchApi.unsubscribeByKey(C);e.JSC$23649_watchApi.unsubscribeByKey(w)})},C6g=function(e){e.JSC$23649_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(z){var C=_.r(z,xDL);
e.JSC$23649_watchApi.playerApi.then(function(w){w==null||w.setCreatorEndscreenVisibility(!!C.hide)})});
e.addOnDisposeCallback(function(){e.JSC$23649_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.o5C=function(e){_.Sn.call(this);this.JSC$23655_watchApi=e;KJl(this)};
_.U(_.o5C,_.Sn);var KJl=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23655_watchApi.playerApi,2);z=w.yieldResult;C=function(K){_.eB().dispatch(_.Yz({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:K}}))};
z.addEventListener("onRetroModeChanged",C);e.addOnDisposeCallback(function(){z.removeEventListener("onRetroModeChanged",C)});
_.E_(w)})};var RUt=0,O1=0,hUg=0;var GUy;GUy=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.hs=function(e){_.Sn.call(this);this.JSC$23660_watchApi=e;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;YGa(this)};
_.U(_.hs,_.Sn);
var YGa=function(e){var z,C,w;_.k(function(K){if(K.nextAddress==1)return K.yield(e.JSC$23660_watchApi.playerApi,2);z=K.yieldResult;if(e.isDisposed())return K.return();e.sessionStorage=_.mvo("yt-sleep-timer");e.sessionStorage||_.AX(new _.uh("SessionStorage for Sleep Timer is undefined."));((C=e.sessionStorage)==null?void 0:C.get("yt-sleep-timer"))==="true"&&(F1C(),(w=e.sessionStorage)==null||w.remove("yt-sleep-timer"),z.syncVolume());bWL(e,z);XJt(e,z);JUj(e,z);_.E_(K)})},bWL=function(e,z){var C=function(T){e.onSleepTimerSettingsChanged(T,
z)},w=function(T){e.onPlayerStateChange(T,z)},K=function(){e.onLoopChange(z)},G=function(){e.onCloseMiniplayer(z)},X=function(){PkT(z,(0,_.as)(),Vuy(z),e.selectedOption==="End of video",z.getPlayerState()!==1)},J=function(){e.onSeekComplete(z)},q=function(){_.c5.cancelJob(O1);
var T=z.getCurrentTime()>=z.getDuration(),Q=e.selectedOption==="End of video"||e.selectedOption==="End of playlist"&&!vOa(e.playlistId);T&&Q&&kUt(e,z)};
z.addEventListener("onSleepTimerSettingsChanged",C);z.addEventListener("onLoopChange",K);z.addEventListener("onLoopRangeChange",K);z.addEventListener("onStateChange",w);z.addEventListener("onCloseMiniplayer",G);z.addEventListener("onSleepTimerFeatureAvailable",X);z.addEventListener("SEEK_COMPLETE",J);z.addEventListener("onAdStart",q);e.addOnDisposeCallback(function(){z.removeEventListener("onSleepTimerSettingsChanged",C);z.removeEventListener("onLoopChange",K);z.removeEventListener("onLoopRangeChange",
K);z.removeEventListener("onStateChange",w);z.removeEventListener("onCloseMiniplayer",G);z.removeEventListener("onSleepTimerFeatureAvailable",X);z.removeEventListener("SEEK_COMPLETE",J);z.removeEventListener("onAdStart",q)})},XJt=function(e,z){var C=e.JSC$23660_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var w=z.getVideoData().video_id,K,G=(K=HCa(e.JSC$23660_watchApi))==null?void 0:K.playlistId;
e.pauseAutonavPlayback&&(z.pauseVideo(),z.syncVolume(),e.pauseAutonavPlayback=!1);if(e.selectedOption==="End of video"&&w!==e.videoId)Ow(e,z);else{if(e.selectedOption==="End of playlist"){K=vOa(e.playlistId);if(G!==e.playlistId){Ow(e,z);break a}K?K&&qGg(e,z):xpC(e,z)}e.videoId=w;e.playlistId=G}}});
e.addOnDisposeCallback(function(){e.JSC$23660_watchApi.unsubscribeByKey(C)})},JUj=function(e,z){var C=_.lh().resolve(_.Tr),w=_.K3(C,_.ur1,function(G){G&&e.selectedOption!=="Off"&&Ow(e,z)}),K=e.JSC$23660_watchApi.subscribeToActiveChanged(function(G){var X,J;
return _.k(function(q){if(q.nextAddress==1)return q.yield(_.C3().navigationFinishPromise,2);X=!_.QB6();J=_.lh().resolve(_.gh).isMiniplayerActive();G||!rXT(e.selectedOption)||J||X||Ow(e,z);_.E_(q)})},!1);
C=_.K3(C,function(G){return G.entities.playlistLoopStateEntity||{}},function(G){G=G===void 0?{}:G;
var X=UUy(e.JSC$23660_watchApi);if(X){var J;((J=G[X])==null?void 0:J.state)==="PLAYLIST_LOOP_STATE_ALL"&&rXT(e.selectedOption)&&Ow(e,z)}});
e.addOnDisposeCallback(w);e.addOnDisposeCallback(C);e.addOnDisposeCallback(K)};
_.hs.prototype.onSleepTimerSettingsChanged=function(e,z){switch(e){case "Off":this.selectedOption!=="Off"&&Ow(this,z);break;case "End of video":case "End of playlist":TPg(this,e,z);break;default:TPg(this,e,z,GUy.get(e))}};
_.hs.prototype.onLoopChange=function(e){(e.getLoopVideo()||e.getLoopRange())&&rXT(this.selectedOption)&&Ow(this,e)};
_.hs.prototype.onCloseMiniplayer=function(e){rXT(this.selectedOption)&&Ow(this,e)};
var TPg=function(e,z,C,w){$pl(e,C);e.selectedOption=z;e.videoId=C.getVideoData().video_id;e.playlistId="";var K;(K=e.sessionStorage)==null||K.set("yt-sleep-timer","true");e.adjustmentsCount++;PkT(C,(0,_.as)(),Vuy(C),e.selectedOption==="End of video");if(e.selectedOption==="End of video")xpC(e,C),lcw(e,C);else if(e.selectedOption==="End of playlist"){lcw(e,C);var G,X;e.playlistId=(X=(G=HCa(e.JSC$23660_watchApi))==null?void 0:G.playlistId)!=null?X:"";vOa(e.playlistId)||xpC(e,C)}else w&&(e.presetFadeSchedulerId=
_.Oz(_.c5,function(){OCj(C,15E3)},w-15E3),e.presetPauseSchedulerId=_.Oz(_.c5,function(){kUt(e,C)},w),L1y(C,(0,_.as)(),w))},kUt=function(e,z){if(e.JSC$23660_watchApi.isActive()){var C={dismissDialogEndpoint:{}};
var w={commandExecutorCommand:{commands:[C,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};C={buttonViewModel:{title:_.kk("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:C}}};w={buttonViewModel:{title:_.kk("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:w}}};var K={dialogHeaderViewModel:{headline:{content:_.kk("SLEEP_TIMER_ENDED_TITLE")}}},
G={basicContentViewModel:{paragraphs:[{text:{content:_.kk("SLEEP_TIMER_ENDED_TEXT")}}]}};C={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:K,content:G,footer:{panelFooterViewModel:{primaryButton:C,secondaryButton:w,shouldHideDivider:!0}}}}}}};_.lh().resolve(_.ms).resolveCommand(C,{form:{element:e}})}else F1C();Qgg(e,!1);mpL(e,z);z.pauseVideo();_.fH.getInstance().getState()===2&&z.getPlayerState()===5&&(e.pauseAutonavPlayback=!0)},Ow=function(e,z){Qgg(e,!0);
mpL(e,z);F1C()},mpL=function(e,z){$pl(e,z);
e.selectedOption="Off";e.videoId="";e.playlistId="";e.adjustmentsCount=0;var C;(C=e.sessionStorage)==null||C.remove("yt-sleep-timer");_.c5.cancelJob(RUt);z.resetSleepTimerMenuSettings()},Qgg=function(e,z){z={timer_length_adjustment_times_during_session:e.adjustmentsCount-1,
is_session_cancelled:z};switch(e.selectedOption){case "Off":z.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":z.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:z.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",z.option_duration_in_minutes=GUy.get(e.selectedOption)/6E4}_.gm("sleepTimerSessionFinishEvent",z)};
_.hs.prototype.onPlayerStateChange=function(e,z){e===1?PkT(z,(0,_.as)(),Vuy(z),this.selectedOption==="End of video"):e===0?(_.c5.cancelJob(O1),z.setVideoTimeLeft(W1t(0,0))):e===2&&_.c5.cancelJob(O1);this.selectedOption==="End of video"?e===0?kUt(this,z):e===2&&EO2(z):this.selectedOption!=="End of playlist"||vOa(this.playlistId)||(e===0?kUt(this,z):e===2&&EO2(z))};
_.hs.prototype.onSeekComplete=function(e){e.getPlayerState()===2&&PkT(e,(0,_.as)(),Vuy(e),this.selectedOption==="End of video",!0)};
_.hs.prototype.onCueRangeEnter=function(e,z){e==="sleep-timer-fade-audio"&&OCj(z,(z.getDuration()-z.getProgressState().current)*1E3)};
_.hs.prototype.onCueRangeExit=function(e,z){e==="sleep-timer-fade-audio"&&z.getPlayerState()!==0&&EO2(z,!0)};
var xpC=function(e,z){z.addCueRange("sleep-timer-fade-audio",z.getDuration()-15,z.getDuration());z.addEventListener("onCueRangeEnter",function(C){e.onCueRangeEnter(C,z)});
z.addEventListener("onCueRangeExit",function(C){e.onCueRangeExit(C,z)})},qGg=function(e,z){z.removeCueRange("sleep-timer-fade-audio");
z.removeEventListener("onCueRangeEnter",function(C){e.onCueRangeEnter(C,z)});
z.removeEventListener("onCueRangeExit",function(C){e.onCueRangeExit(C,z)})},$pl=function(e,z){rXT(e.selectedOption)?qGg(e,z):(_.c5.cancelJob(e.presetPauseSchedulerId),_.c5.cancelJob(e.presetFadeSchedulerId),e.presetPauseSchedulerId=0,e.presetFadeSchedulerId=0);
EO2(z,!0)},lcw=function(e,z){z.setLoop(!1);
z.setLoopVideo(!1);z.setLoopRange(null);(e=UUy(e.JSC$23660_watchApi))&&_.lh().resolve(_.Tr).dispatch(_.Rx("playlistLoopStateEntity",e,{key:e,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.HWY=function(e){_.Sn.call(this);var z=this;this.JSC$23663_watchApi=e;_.M("web_watch_force_start_in_theater_mode")&&acT(this,!0,!1);n5L(this);MBC(this);rUl(this);var C=this.JSC$23663_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.n0("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.E3.get("wide",void 0)==="1"&&_.FF("wide","1",_.n0("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){z.JSC$23663_watchApi.unsubscribeByKey(C)});
e=e.getRoot();if(e.is==="ytd-watch-flexy"||e.is==="ytd-watch-grid")e.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Bag();_.M("web_watch_log_theater_mode_cookie_state")&&_.E3.get("wide","0")==="1"&&_.hp7("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.U(_.HWY,_.Sn);var n5L=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23663_watchApi.playerApi,2);z=w.yieldResult;C=function(K){acT(e,!!K)};
z.addEventListener("SIZE_CLICKED",C);e.addOnDisposeCallback(function(){z.removeEventListener("SIZE_CLICKED",C)});
_.E_(w)})},MBC=function(e){e.JSC$23663_watchApi.registerActionHandler("yt-toggle-theater-mode",function(z,C){acT(e,z,C===void 0?!0:C)});
e.addOnDisposeCallback(function(){e.JSC$23663_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.HWY.prototype.getState=function(){return _.VC(_.eB().getState())};
var acT=function(e,z,C){C=C===void 0?!0:C;var w,K,G,X=_.M("enable_player_resize_transition")&&!!e.JSC$23663_watchApi.getWatchNextResponse()&&!((w=e.JSC$23663_watchApi.getWatchNextResponse())==null?0:(K=w.contents)==null?0:(G=K.twoColumnWatchNextResults)==null?0:G.conversationBar);_.pJL(function(){_.eB().dispatch(_.Yz({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:z}}));_.M("theater_mode_scroll_to_top_killswitch")||e.JSC$23663_watchApi.scrollWatchTo(0,!1);_.yq()&&_.M("external_fullscreen")&&_.cr(document.documentElement);
rUl(e);C&&_.FF("wide",z?"1":"0",_.n0("theater_mode_cookie_max_age_seconds",-1));_.eA(e.JSC$23663_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);e.JSC$23663_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:z});z&&_.Bag()},{shouldWrap:X})},rUl=function(e){var z;
_.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$23663_watchApi.playerApi,2);z=C.yieldResult;z.setSizeStyle(!0,e.getState());_.E_(C)})};var Ict=function(e){_.Sn.call(this);var z=this;this.playerApi=e;this.timeToPanelSyncKeyMap={};var C;if(e==null?0:(C=e.isReady)==null?0:C.call(e)){C=_.K3(_.lh().resolve(_.Tr),function(K){return K.entities.timedMarkersListSyncEntity||{}},function(K,G){K=K===void 0?{}:K;
G=G===void 0?{}:G;for(var X=_.b(Object.keys(G)),J=X.next();!J.done;J=X.next())J=J.value,K[J]!==G[J]&&UpL(z,G[J]);G=_.b(Object.keys(K));for(X=G.next();!X.done;X=G.next())X=X.value,J=K[X],z.timeToPanelSyncKeyMap[X]&&v5g(z,J)});
this.addOnDisposeCallback(C);var w=function(K){z.onCueRangeEnter(K)};
e.addEventListener("onCueRangeEnter",w);this.addOnDisposeCallback(function(){var K;(K=e.removeEventListener)==null||K.call(e,"onCueRangeEnter",w)})}};
_.U(Ict,_.Sn);
var v5g=function(e,z){var C,w;if((C=e.playerApi)==null?0:(w=C.isReady)==null?0:w.call(C)){var K;if((C=z==null?void 0:(K=z.timedListData)==null?void 0:K.sections)&&z!=null&&z.key)for(K=_.b(C),C=K.next();!C.done;C=K.next())if(C=C.value,C.timedSyncDataList&&C.sectionId)for(w=0;w<C.timedSyncDataList.length;w++){var G=C.timedSyncDataList[w];G.syncItemId&&e.playerApi.addCueRange(C.sectionId+"_"+z.key+"_"+G.syncItemId,Number(G.videoTimeMs)/1E3,w===C.timedSyncDataList.length-1?0x8000000000000:Number(C.timedSyncDataList[w+
1].videoTimeMs)/1E3)}}},UpL=function(e,z){var C,w;
if((C=e.playerApi)==null?0:(w=C.isReady)==null?0:w.call(C)){var K;if((C=z==null?void 0:(K=z.timedListData)==null?void 0:K.sections)&&z!=null&&z.key)for(K=_.b(C),C=K.next();!C.done;C=K.next())if(C=C.value,C.timedSyncDataList&&C.sectionId){w=_.b(C.timedSyncDataList);for(var G=w.next();!G.done;G=w.next())G=G.value,G.syncItemId&&e.playerApi.removeCueRange(C.sectionId+"_"+z.key+"_"+G.syncItemId)}}};
Ict.prototype.onCueRangeEnter=function(e){for(var z=_.b(Object.keys(this.timeToPanelSyncKeyMap)),C=z.next();!C.done;C=z.next()){C=C.value;var w=_.b(e.split("_"+C+"_")),K=w.next().value;w=w.next().value;if(K&&w){e=_.lh().resolve(_.Tr);z=this.timeToPanelSyncKeyMap[C];var G=_.nME(e.getState(),z);C=WJ2(C,K,w);if(C===-1)break;C={activeSyncId:w,activeItemIndex:C,activeSectionInfo:{sectionIdentifier:K}};G?e.dispatch(_.d$("markersEngagementPanelSyncEntity",z,C)):e.dispatch(_.Rx("markersEngagementPanelSyncEntity",
z,Object.assign({},{key:z},C)));break}}};
var WJ2=function(e,z,C){var w=_.lh().resolve(_.Tr),K,G;e=(K=SRY(w.getState(),e))==null?void 0:(G=K.timedListData)==null?void 0:G.sections;if(!e)return-1;K=0;G=_.b(e);for(e=G.next();!e.done;e=G.next()){e=e.value;w=e.timedSyncDataList||[];if(e.sectionId===z)return z=w.findIndex(function(X){return X.syncItemId===C}),z===-1?z:K+z;
K+=w.length}return-1};_.LJj=function(e){_.Sn.call(this);var z=this;this.JSC$23676_watchApi=e;this.unresolvedCommands=[];this.JSC$23676_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(C){P62(z,C)});
this.addOnDisposeCallback(function(){z.JSC$23676_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
RkL(this)};
_.U(_.LJj,_.Sn);var RkL=function(e){var z;_.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$23676_watchApi.playerApi,2);z=C.yieldResult;if(e.isDisposed())return C.return();e.timedSyncObserver=new Ict(z);e.unresolvedCommands.length&&(e.unresolvedCommands.forEach(function(w){return P62(e,w)}),e.unresolvedCommands=[]);
_.I4(e,e.timedSyncObserver);_.E_(C)})},P62=function(e,z){if(e.timedSyncObserver){var C=_.r(z,$Dy);
if(C&&C.timedSyncEntityKey&&C.panelSyncEntityKey){e=e.timedSyncObserver;z=C.timedSyncEntityKey;var w=C.panelSyncEntityKey;C=!!C.isEnabled;C=C===void 0?!0:C;var K=_.lh().resolve(_.Tr);K=SRY(K.getState(),z);C?e.timeToPanelSyncKeyMap[z]||(e.timeToPanelSyncKeyMap[z]=w,v5g(e,K)):(delete e.timeToPanelSyncKeyMap[z],UpL(e,K))}}else e.unresolvedCommands.push(z)};var hka=_.f(function(e){var z=e.data,C=e.maybeLogSmartSkipClientData,w=null,K=null,G=_.M("web_enable_auto_focus_for_timely_action_button"),X=function(){w=document.activeElement},J=function(){z().smartSkipMetadata&&(w=document.activeElement,_.z9Y(function(){return K}))},q=function(Q){if(z().smartSkipMetadata&&(!Q||Q.key!=="Enter")){w&&w.isConnected&&(_.z9Y(function(){return w}),w=null);
var m;(m=K)==null||m.blur()}};
e=_.T9(function(){C==null||C(!0,z());return!1});
var T=_.ej(_.Dh(function(){return z().rendererContext},{onTap:function(Q,m){m({disableClickTracking:!0})}}),_.aO({visibilityCallback:function(Q){if(G)Q?K&&z().smartSkipMetadata&&(J(),document.addEventListener("focusin",X)):(document.removeEventListener("focusin",X),q());
else if(Q){Q=_.u3(z().rendererContext);var m=Number(z().maxVisibleDurationMilliseconds),a,n=(a=_.r(z().rendererContext,_.Re))==null?void 0:a.label;Q&&m&&n&&(a={label:n,command:Q,durationMs:m},_.lh().resolve(_.EI).enqueue(a))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.Nm(function(){if(G){var Q;if((K=(Q=T.value)==null?void 0:Q.querySelector("button"))&&z().smartSkipMetadata){var m;(m=T.value)==null||m.addEventListener("keydown",q)}}});
_.BC(function(){G&&(K&&z().smartSkipMetadata&&K.removeEventListener("keydown",q),document.removeEventListener("focusin",X),q())});
return _.x("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:T,"on:click":e},_.x(_.PF,{data:function(){return z().content}},{buttonViewModel:_.iz}))},"Qo");var OWY=_.f(function(e){var z=e.data,C=e.playerApi,w=_.lh().resolve(_.V85);e=_.b(_.zx(function(){z()}));
var K=e.next().value,G=e.next().value,X=function(){return ueT(z(),K())},J=function(T,Q){var m,a,n=(m=_.r(Q==null?void 0:Q.rendererContext,_.MF))==null?void 0:(a=m.loggingDirectives)==null?void 0:a.trackingParams;
if((Q=Q==null?void 0:Q.smartSkipMetadata)&&Q.loggingData&&(a=Q.loggingData,Q=a.algorithmId,m=a.startMilliseconds,a=a.endMilliseconds,Q&&m!==void 0&&a!==void 0)){var H,I;T={smartSkipData:Object.assign({},{versionName:Q,startMediaTimeMs:m,endMediaTimeMs:a},T&&{userInteractionMediaTimeMs:(Math.floor(((H=_.ox())==null?void 0:(I=H.getPlayer())==null?void 0:I.getCurrentTime())||0)*1E3).toString()})};H=_.Pr();var L;n&&(L=_.v9(n));H&&L&&_.yu(H,L,T)}},q=function(T,Q){var m=ueT(z(),T);
if(m){var a=_.r(m,SOa),n;if(n=Q)n=C(),m=_.r(m,SOa),n=m!=null&&m.smartSkipMetadata?!(n==null?0:n.isSameMarkerTypeVisible((m==null?void 0:m.smartSkipMetadata.markerKey)||"")):!0;if(n){var H,I;(a==null?0:(H=a.smartSkipMetadata)==null?0:(I=H.loggingData)==null?0:I.isCounterfactual)||(J(!1,a),G(T))}else Q||K()!==T||G(void 0)}};
_.sH(function(){var T=z().timelyActions;if(T){T=_.b(T);for(var Q=T.next();!Q.done;Q=T.next()){Q=_.r(Q.value,SOa);var m=void 0;(m=Q)!=null&&m.cueRangeId&&w.timelyActionsMap.set(Q.cueRangeId,q)}_.BC(function(){w.timelyActionsMap.clear()})}},"l2RtC");
return _.x("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.x(_.PF,{data:X},{timelyActionViewModel:function(T){return _.x(hka,{data:T.data,maybeLogSmartSkipClientData:function(){J(!0,_.r(X(),SOa))}})}}))},"So");_.FJC=function(e){_.Sn.call(this);this.JSC$23688_watchApi=e;e=_.b(_.II({},void 0,"UN7k5e"));this.timelyActionsOverlay=e.next().value;this.setTimelyActionsOverlay=e.next().value;E5g(this)};
_.U(_.FJC,_.Sn);var E5g=function(e){var z,C,w,K;_.k(function(G){if(G.nextAddress==1)return VBL(e),fcY(e),e.timelyActionsContainer=document.createElement("div"),G.yield(e.JSC$23688_watchApi.playerApi,2);z=G.yieldResult;(w=(C=z).insertTimelyActionUi)==null||w.call(C,e.timelyActionsContainer);K=_.ii(e.timelyActionsContainer,function(){return _.x(OWY,{data:e.timelyActionsOverlay,playerApi:z})},"To");
e.addOnDisposeCallback(K);_.E_(G)})},fcY=function(e){var z=e.JSC$23688_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VBL(e)});
e.addOnDisposeCallback(function(){e.JSC$23688_watchApi.unsubscribeByKey(z)})},VBL=function(e){var z=e.JSC$23688_watchApi.getWatchNextResponse();
if(z){var C,w;if(z=_.r((C=z.playerOverlays)==null?void 0:(w=C.playerOverlayRenderer)==null?void 0:w.timelyActionsOverlayViewModel,lVC)){var K;(K=e.setTimelyActionsOverlay)==null||K.call(e,z)}}};_.uNy=function(e){_.Sn.call(this);this.JSC$23692_watchApi=e;SGy(this)};
_.U(_.uNy,_.Sn);var SGy=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23692_watchApi.playerApi,2);z=w.yieldResult;C=function(K){_.Tx.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.r(K,_.kNL)},popupType:"TOAST"}})};
z.addEventListener("onYtShowToast",C);e.addOnDisposeCallback(function(){z.removeEventListener("onYtShowToast",C)});
_.E_(w)})};var dpL,NPa,jg2,Dpy,iW2,g52,BP2,tBw,yUy,AUa;dpL=!1;_.sgC=function(e){_.Sn.call(this);this.JSC$23695_watchApi=e;this.fullscreen=this.theater=!1;Dpy(this);iW2(this);NPa(this)};
_.U(_.sgC,_.Sn);NPa=function(e){var z,C,w;_.k(function(K){if(K.nextAddress==1)return K.yield(e.JSC$23695_watchApi.playerApi,2);z=K.yieldResult;if(e.isDisposed())return K.return();C=e.JSC$23695_watchApi.getElement("CINEMATICS");if(!C)return K.return();e.JSC$23695_cinematicController=new _.aq(C,z);_.I4(e,e.JSC$23695_cinematicController);_.Ls2(e.JSC$23695_cinematicController);BP2(e,_.Ceh());w=e.JSC$23695_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(G){tBw(e,G)});
e.addOnDisposeCallback(function(){e.JSC$23695_watchApi.unsubscribeByKey(w)});
g52(e);tBw(e,e.JSC$23695_cinematicController.isAllowed());jg2(e);yUy(e);_.E_(K)})};
jg2=function(e){e.fullscreen=_.fU(_.eB().getState());e.theater=_.VC(_.eB().getState());_.cUy(e,e.fullscreen,e.theater);var z=_.K3(_.eB(),_.fU,function(w){e.fullscreen=w;_.cUy(e,e.fullscreen,e.theater)}),C=_.K3(_.eB(),_.VC,function(w){e.theater=w;
_.cUy(e,e.fullscreen,e.theater)});
e.addOnDisposeCallback(z);e.addOnDisposeCallback(C)};
Dpy=function(e){var z=e.JSC$23695_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){g52(e)});
e.addOnDisposeCallback(function(){e.JSC$23695_watchApi.unsubscribeByKey(z)})};
iW2=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23695_watchApi.playerApi,2);z=w.yieldResult;C=function(K){BP2(e,K)};
z.addEventListener("cinematicSettingsToggleChange",C);e.addOnDisposeCallback(function(){z.removeEventListener("cinematicSettingsToggleChange",C)});
_.E_(w)})};
g52=function(e){var z=e.JSC$23695_watchApi.getWatchNextResponse(),C;z=_.r(z==null?void 0:(C=z.pageVisualEffects)==null?void 0:C[0],_.pL);var w;(w=e.JSC$23695_cinematicController)==null||_.O0t(w,z)};
BP2=function(e,z){var C;(C=e.JSC$23695_cinematicController)==null||_.hyt(C,z);AUa(e)};
tBw=function(e,z){var C;_.k(function(w){if(w.nextAddress==1)return _.M("kevlar_watch_cinematics_invisible")&&(z=!1),w.yield(e.JSC$23695_watchApi.playerApi,2);C=w.yieldResult;C.updateCinematicSettings(z);AUa(e);_.E_(w)})};
yUy=function(e){var z=_.Tj();if(_.M("kevlar_measure_ambient_mode_idle")&&!z.getFlag(192)&&!dpL){dpL=!0;var C=_.Dz(_.c5,function(){_.lh().resolve(_.l6b).start(1E4)},5E3);
e.addOnDisposeCallback(function(){_.c5.cancelJob(C);_.lh().resolve(_.l6b).stop()})}};
_.cUy=function(e,z,C){e.fullscreen=z;e.theater=C;var w;(w=e.JSC$23695_cinematicController)==null||w.setFullscreen(e.fullscreen,e.theater);if(_.M("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(e.theater||e.fullscreen){var K;(K=e.JSC$23695_cinematicController)==null||_.EBT(K)}else if((e=e.JSC$23695_cinematicController)!=null){var G;(G=e.currentCinematicEffect)==null||G.pause()}};
AUa=function(e){var z;e.JSC$23695_watchApi.getRoot().toggleCinematicsActive(!((z=e.JSC$23695_cinematicController)==null||!z.isEnabled()))};_.zdg=function(e){_.Sn.call(this);var z=this;this.JSC$23698_watchApi=e;this.commentsReady=!1;this.setCommentsJobId=0;e=_.K3(_.eB(),_.Lf,function(){ZW2(z)});
this.addOnDisposeCallback(e);var C=this.JSC$23698_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){pJy(z)}),w=this.JSC$23698_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){pJy(z)});
this.addOnDisposeCallback(function(){z.JSC$23698_watchApi.unsubscribeByKey(C);z.JSC$23698_watchApi.unsubscribeByKey(w)});
var K=function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ed2(z,"false")};
this.JSC$23698_watchApi.getRoot().addEventListener("yt-page-data-will-update",K);this.addOnDisposeCallback(function(){z.JSC$23698_watchApi.getRoot().removeEventListener("yt-page-data-will-update",K)});
pJy(this)};
_.U(_.zdg,_.Sn);var pJy=function(e){e.commentsReady=!1;_.c5.cancelJob(e.setCommentsJobId);e.setCommentsJobId=_.Dz(_.c5,function(){ZW2(e)},1E3)},ZW2=function(e){if(!e.commentsReady){_.hg("cmi");
_.c5.cancelJob(e.setCommentsJobId);var z,C,w,K,G=(z=e.JSC$23698_watchApi.getWatchNextResponse())==null?void 0:(C=z.contents)==null?void 0:(w=C.twoColumnWatchNextResults)==null?void 0:(K=w.results)==null?void 0:K.results.contents;z=void 0;if(G&&G.length)for(G=_.b(G),C=G.next();!C.done;C=G.next())if(C=C.value,K=w=void 0,((w=C)==null?void 0:(K=w.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section"){_.M("web_watch_provide_undefined_comments")?z=C.itemSectionRenderer:e.JSC$23698_watchApi.provideRenderingData("COMMENTS",
C.itemSectionRenderer);ed2(e,"true");break}_.M("web_watch_provide_undefined_comments")&&e.JSC$23698_watchApi.provideRenderingData("COMMENTS",z);e.commentsReady=!0;e.JSC$23698_watchApi.dispatchEvent("yt-watch-comments-ready")}},ed2=function(e,z){var C;
(C=e.JSC$23698_watchApi.getElement("COMMENTS"))==null||C.setAttribute("canScheduleJobs",z)};_.G82=function(e){_.Sn.call(this);var z=this;this.JSC$23701_watchApi=e;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.M("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.M("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.M("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.n0("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)CEj(this);
else{var C=this.JSC$23701_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){wIy(z);Ew(z)}),w=this.JSC$23701_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Fj(z);
Ew(z)});
this.JSC$23701_watchApi.getRoot().is==="ytd-watch-grid"&&_.M("swatcheroo_pbs_load_grid")&&(KiL(this),o$g(this));this.addOnDisposeCallback(function(){z.JSC$23701_watchApi.unsubscribeByKey(C);z.JSC$23701_watchApi.unsubscribeByKey(w);_.c5.cancelJob(z.provideRichGridJobId)});
wIy(this);Fj(this)}};
_.U(_.G82,_.Sn);var CEj=function(e){var z=e.JSC$23701_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){e.providePlayerJobId=_.UQ(_.c5,function(){wIy(e);Ew(e)},e.provideAllDataDelayMs)}),C=e.JSC$23701_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){e.provideWatchNextJobId=_.UQ(_.c5,function(){Fj(e);
Ew(e)},e.provideAllDataDelayMs)}),w=e.JSC$23701_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){e.provideWatchNextJobId=_.UQ(_.c5,function(){Fj(e);
Ew(e)},e.provideAllDataDelayMs)});
e.JSC$23701_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Dz(_.c5,function(){wIy(e);Fj(e);Ew(e)},100)});
e.JSC$23701_watchApi.addPageDisposeJob(function(){_.c5.cancelJob(e.provideWatchNextJobId);_.c5.cancelJob(e.providePlayerJobId)});
e.addOnDisposeCallback(function(){e.JSC$23701_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");e.JSC$23701_watchApi.unsubscribeByKey(z);e.JSC$23701_watchApi.unsubscribeByKey(C);e.JSC$23701_watchApi.unsubscribeByKey(w);_.c5.cancelJob(e.providePlayerJobId);_.c5.cancelJob(e.provideWatchNextJobId)});
wIy(e);Fj(e)},wIy=function(e){var z=e.JSC$23701_watchApi.getPlayerResponse(),C,w,K=(w=z==null?void 0:(C=z.playabilityStatus)==null?void 0:C.messageRenderers)!=null?w:[],G,X;
z=(X=z==null?void 0:(G=z.playabilityStatus)==null?void 0:G.messages)!=null?X:[];G=_.b(z);for(X=G.next();!X.done;X=G.next())K.push({alertRenderer:{text:_.AO(X.value),type:"WARNING"}});e.JSC$23701_watchApi.provideRenderingData("ALERTS",K)},Fj=function(e){var z=[],C,w,K,G=e.JSC$23701_watchApi.getWatchNextResponse(),X,J,q,T,Q=G==null?void 0:(X=G.contents)==null?void 0:(J=X.twoColumnWatchNextResults)==null?void 0:(q=J.results)==null?void 0:(T=q.results)==null?void 0:T.contents;
if(Q)for(X=_.b(Q),J=X.next();!J.done;J=X.next())if(J=J.value,J.videoPrimaryInfoRenderer)var m=J;else if(J.videoSecondaryInfoRenderer){var a=J;T=q=void 0;J=Object.assign({},(q=J.videoSecondaryInfoRenderer)==null?void 0:(T=q.metadataRowContainer)==null?void 0:T.metadataRowContainerRenderer);if(J.rows&&J.collapsedItemCount!==void 0){J.rows=J.rows.slice(0,J.collapsedItemCount).filter(function(eE){return!!eE.richMetadataRowRenderer});
J.collapsedItemCount=J.rows.length;var n={metadataRowContainerRenderer:J}}}else if(J.merchandiseShelfRenderer)var H=J;else if(J.ticketShelfRenderer)var I=J;else if(J.expandableMetadataRenderer)var L=J;else if(J.itemSectionRenderer)if(q=J.itemSectionRenderer.contents,T=void 0,e.directlyProvideComments&&((T=J.itemSectionRenderer)==null?void 0:T.sectionIdentifier)==="comment-item-section")_.hg("cmi"),e.JSC$23701_watchApi.provideRenderingData("COMMENTS",J.itemSectionRenderer);else if(q)for(J=_.b(q),q=
J.next();!q.done;q=J.next())if(q=q.value,q.commentsEntryPointHeaderRenderer)var h=q;else if(q.clarificationRenderer||q.infoPanelContainerRenderer||q.infoPanelContentRenderer||q.emergencyOneboxRenderer){z.push(q);var E=E||!!a}else q.limitedStateMessageRenderer?w=q:q.videoMetadataCarouselViewModel&&(K=q);if(_.M("web_watch_merch_in_sd_when_ticket_shelf_present")&&H&&I){var N=H;H=void 0}if(e.provideWatchNextSecondaryResults){var D,g,y;e.JSC$23701_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
G==null?void 0:(D=G.contents)==null?void 0:(g=D.twoColumnWatchNextResults)==null?void 0:(y=g.secondaryResults)==null?void 0:y.secondaryResults)}if(e.JSC$23701_watchApi.getRoot().is==="ytd-watch-grid"){var Z,YN;e.JSC$23701_watchApi.provideRenderingData("LIVE_CHAT",G==null?void 0:(Z=G.contents)==null?void 0:(YN=Z.twoColumnWatchNextResults)==null?void 0:YN.conversationBar)}var Jk,v1,lg,M5;(D=G==null?void 0:(Jk=G.contents)==null?void 0:(v1=Jk.twoColumnWatchNextResults)==null?void 0:(lg=v1.secondaryResults)==
null?void 0:(M5=lg.secondaryResults)==null?void 0:M5.offerModule)&&(D.donationShelfRenderer||D.donationUnavailableRenderer)&&e.JSC$23701_watchApi.getRoot().is!=="ytd-watch-grid"&&(C=D);Jk=e.JSC$23701_watchApi.getPlayerResponse();if(!Jk||!_.sA8(Jk.playabilityStatus,G==null?void 0:G.playerOverlays)){var fo;if(G==null?0:(fo=G.contents)==null?0:fo.singleColumnWatchNextResults){var ug,sE;var w6=G==null?void 0:(ug=G.contents.singleColumnWatchNextResults.results)==null?void 0:(sE=ug.results)==null?void 0:
sE.contents}else{var qY,y1,Qa,Ha;fo=!!(Q==null?0:(qY=Q[0])==null?0:(y1=qY.itemSectionRenderer)==null?0:(Qa=y1.contents)==null?0:(Ha=Qa[0])==null?0:Ha.backgroundPromoRenderer);var OU,ab;qY=!!(G==null?0:(OU=G.contents)==null?0:(ab=OU.twoColumnWatchNextResults)==null?0:ab.secondaryResults);fo&&!qY&&(w6=Q)}}Q=z[0];OU=z[1];E&&z.length===1&&(OU=Q,Q=void 0);e.JSC$23701_watchApi.provideRenderingData("PRIMARY_INFO",m);e.JSC$23701_watchApi.provideRenderingData("SECONDARY_INFO",a);e.JSC$23701_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
h);e.JSC$23701_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",K);e.JSC$23701_watchApi.provideRenderingData("CLARIFICATION",Q);e.JSC$23701_watchApi.provideRenderingData("RICH_METADATA",n);e.JSC$23701_watchApi.provideRenderingData("MERCH_SHELF",H);_.M("web_watch_merch_in_sd_when_ticket_shelf_present")&&e.JSC$23701_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",N);e.JSC$23701_watchApi.provideRenderingData("TICKET_SHELF",I);e.JSC$23701_watchApi.provideRenderingData("LIMITED_STATE",w);e.JSC$23701_watchApi.getRoot().is!==
"ytd-watch-grid"&&e.JSC$23701_watchApi.provideRenderingData("DONATION_SHELF",C);e.JSC$23701_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",w6);e.JSC$23701_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",OU);e.JSC$23701_watchApi.provideRenderingData("EXPANDABLE_METADATA",L);if(e.swatcherooProvideAllDataOnScheduledJob){var Pa,$N,N5,$L,Ba,r6;m=G==null?void 0:(Pa=G.contents)==null?void 0:($N=Pa.twoColumnWatchNextResults)==null?void 0:(N5=$N.secondaryResults)==null?void 0:($L=N5.secondaryResults)==
null?void 0:(Ba=$L.results)==null?void 0:(r6=Ba[0])==null?void 0:r6.richGridRenderer;e.JSC$23701_watchApi.provideRenderingData("RICH_GRID_RENDERER",m)}};
_.G82.prototype.hasCompanionAds=function(e){var z,C;return(C=e==null?void 0:(z=e.adPlacements)==null?void 0:z.some(function(w){var K,G,X,J;return(w==null?void 0:(K=w.adPlacementRenderer)==null?void 0:(G=K.renderer)==null?void 0:G.actionCompanionAdRenderer)||(w==null?void 0:(X=w.adPlacementRenderer)==null?void 0:(J=X.renderer)==null?void 0:J.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?C:!1};
var Ew=function(e){if(!_.M("swaterdoo_ps_wn_handle_ks")){e.swatcherooProvideAllDataOnScheduledJob||o$g(e,3E3);var z=e.JSC$23701_watchApi.getPlayerResponse(),C,w,K,G,X,J=(C=e.JSC$23701_watchApi.getWatchNextResponse())==null?void 0:(w=C.contents)==null?void 0:(K=w.twoColumnWatchNextResults)==null?void 0:(G=K.secondaryResults)==null?void 0:(X=G.secondaryResults)==null?void 0:X.offerModule;z=e.hasCompanionAds(z);var q,T;C=(J==null?void 0:(q=J.tvfilmOfferModuleRenderer)==null?void 0:q.clientShouldSuppressIfCompanionAdDisplayed)||
(J==null?void 0:(T=J.unlimitedOfferModuleRenderer)==null?void 0:T.suppressIfCompanionAds);q=z&&C;e.JSC$23701_watchApi.getRoot().is==="ytd-watch-grid"&&e.JSC$23701_watchApi.provideRenderingData("OFFER_MODULE",q?void 0:J)}},o$g=function(e,z){_.M("swatcheroo_pbs_load_grid")&&(e.provideRichGridJobId&&_.c5.cancelJob(e.provideRichGridJobId),e.provideRichGridJobId=_.UQ(_.c5,function(){e.provideRichGridJobId=0;
var C,w,K,G,X,J,q,T=(C=e.JSC$23701_watchApi.getWatchNextResponse())==null?void 0:(w=C.contents)==null?void 0:(K=w.twoColumnWatchNextResults)==null?void 0:(G=K.secondaryResults)==null?void 0:(X=G.secondaryResults)==null?void 0:(J=X.results)==null?void 0:(q=J[0])==null?void 0:q.richGridRenderer;T&&e.JSC$23701_watchApi.provideRenderingData("RICH_GRID_RENDERER",T)},z))},KiL=function(e){var z,C;
_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23701_watchApi.playerApi,2);z=w.yieldResult;C=function(){e.onPlaybackStart()};
z.addEventListener("onPlaybackStartExternal",C);e.addOnDisposeCallback(function(){z.removeEventListener("onPlaybackStartExternal",C)});
_.E_(w)})};
_.G82.prototype.onPlaybackStart=function(){o$g(this)};_.bP2=function(e){_.Sn.call(this);var z=this;this.JSC$23713_watchApi=e;e.playerApi.then(function(C){z.player=C});
this.gestures=new _.X7(this.JSC$23713_watchApi.getRoot(),e.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.ipw(_.eB().getState())&&_.Lf(_.eB().getState())<=0)if(_.fU(_.eB().getState())){var C;(C=z.player)==null||C.toggleFullscreen()}else _.eA(z.JSC$23713_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Yxw(this)};
_.U(_.bP2,_.Sn);var Yxw=function(e){var z=_.K3(_.eB(),_.fU,function(C){e.onFullscreenChanged(C)});
e.addOnDisposeCallback(z);z=_.K3(_.eB(),_.Lf,function(C){e.gestures&&(C>0?e.gestures.detach():e.gestures.attach())});
e.addOnDisposeCallback(z)};
_.bP2.prototype.onFullscreenChanged=function(e){this.gestures&&this.gestures.update(e)};var XIL;XIL=["PLAYLIST"];_.k8g=function(e){_.Sn.call(this);var z=this;this.JSC$23716_watchApi=e;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(e.subscribeToActiveChanged(function(C){z.onActiveChanged(C)}));
JKL(this)};
_.U(_.k8g,_.Sn);var qx2=function(e){e.pageDisposalDataTypes=Object.values(vzl).filter(function(z){return!XIL.includes(z)})},JKL=function(e){if(_.M("swatcheroo_enable_ghost_cards")||_.M("web_watch_clear_data_on_page_dispose"))qx2(e),e.JSC$23716_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.c5.cancelJob(e.clearDataJobId);
e.clearDataJobId=0}),e.runPageDisposeJob=function(){var z=_.lh().resolve(_.wE).getDestinationPageType()==="watch";
e.clearDataJobId=_.UQ(_.c5,e.runClearDataJob,z?0:_.n0("web_watch_delay_page_dispose_ms",1E4))},e.runClearDataJob=function(){xHj(e)},e.runOnYtNavigateAwayFinish=function(){e.clearDataJobId&&(_.c5.cancelJob(e.clearDataJobId),e.clearDataJobId=0,xHj(e))},document.addEventListener("yt-navigate-finish",e.runOnYtNavigateAwayFinish),e.JSC$23716_watchApi.addPageDisposeJob(e.runPageDisposeJob),e.addOnDisposeCallback(function(){e.JSC$23716_watchApi.removePageDisposeJob(e.runPageDisposeJob);
e.JSC$23716_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",e.runOnYtNavigateAwayFinish)})},xHj=function(e){e.pageDisposalDataTypes.forEach(function(z){e.JSC$23716_watchApi.provideRenderingData(z,void 0)});
e.clearDataJobId=0};
_.k8g.prototype.onActiveChanged=function(e){e&&((e=document.querySelector("#watch-page-skeleton"))&&_.hA(e),TOC(this),document.body.removeAttribute("no-y-overflow"),_.cR("IS_SHELL_LOAD")&&_.Lal())};
var TOC=function(e){_.k(function(z){if(z.nextAddress==1)return z.yield(e.JSC$23716_watchApi.playerApi,2);_.c0();_.E_(z)})};var $HY;$HY=_.M("kevlar_watch_while_counterfactual")?0:.25;_.aL2=function(e){_.Sn.call(this);this.JSC$23719_watchApi=e;this.JSC$23719_watchWhileEnabled=_.M("kevlar_watch_while_v2");this.JSC$23719_watchPipEnabled=_.M("web_watch_pip");lL2(this);Q3y(this);mHy(this)};
_.U(_.aL2,_.Sn);var lL2=function(e){e.JSC$23719_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){n$j(e)});
e.addOnDisposeCallback(function(){e.JSC$23719_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Q3y=function(e){var z,C;
_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23719_watchApi.playerApi,2);z=w.yieldResult;C=function(K){K&&e.JSC$23719_watchPipEnabled?(K=_.lh().resolve(_.wE),_.C3().watchPipActivation=!0,_.HCZ(_.lh().resolve(_.gh),K.data)):n$j(e)};
z.addEventListener("onCollapseMiniplayer",C);e.addOnDisposeCallback(function(){z.removeEventListener("onCollapseMiniplayer",C)});
_.E_(w)})},mHy=function(e){var z=e.JSC$23719_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&z&&e.JSC$23719_watchWhileEnabled&&(e.playerIntersectionObserver=new IntersectionObserver(function(C){e.handleIntersect(C)},{threshold:[$HY]}),e.playerIntersectionObserver.observe(z),e.addOnDisposeCallback(function(){var C;
(C=e.playerIntersectionObserver)==null||C.disconnect()}))},n$j=function(e){var z,C,w;
_.k(function(K){if(K.nextAddress==1)return z=_.lh().resolve(_.wE),C=z.data,w=_.Ub7(C.response,C.playerResponse),_.C3().miniplayerButtonActivation=!0,_.lh().resolve(_.gh).collapse(),K.yield(_.C3().navigationFinishPromise,2);if(K.nextAddress!=3)return _.C3().currentEndpoint=w.watchEndpoint||null,K.yield(_.lh().resolve(_.gh).activate(e.JSC$23719_watchApi.getElement("PLAYER"),w,C),3);_.C3().userActivation=!0;_.E_(K)})};
_.aL2.prototype.handleIntersect=function(e){MLy(this,e[e.length-1])};
var MLy=function(e,z){e.watchWhileJobId&&_.c5.cancelJob(e.watchWhileJobId);e.watchWhileJobId=_.c5.addLowPriorityJob(function(){var C,w;return _.k(function(K){if(K.nextAddress==1)return e.watchWhileJobId=void 0,C=_.lh().resolve(_.gh),z.intersectionRatio>$HY?C.isMiniplayerActive()?K.yield(C.deactivate(),0):K.jumpTo(0):(w=!C.isMiniplayerActive())?K.yield(rKw(e),5):K.jumpTo(4);K.nextAddress!=4&&(w=K.yieldResult);if(!w)return K.jumpTo(0);_.C3().watchWhileActivation=!0;return K.yield(HPy(e),0)})},100)},
rKw=function(e){return _.k(function(z){return z.nextAddress==1?_.M("kevlar_watch_while_paused")?z.return(!0):z.yield(e.isPlayerPlaying(),2):z.return(z.yieldResult)})};
_.aL2.prototype.isPlayerPlaying=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$23719_watchApi.playerApi,2);z=C.yieldResult;return C.return(z.getPlayerStateObject().isPlaying)})};
var HPy=function(e){var z,C;return _.k(function(w){z=_.lh().resolve(_.wE).data;C=_.Ub7(z.response,z.playerResponse);_.C3().currentEndpoint=C.watchEndpoint||null;return w.yield(_.lh().resolve(_.gh).activate(e.JSC$23719_watchApi.getElement("PLAYER"),C,z),0)})};_.ILg=function(e){_.Sn.call(this);this.JSC$23723_watchApi=e;UHj(this);v$2(this)};
_.U(_.ILg,_.Sn);var v$2=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23723_watchApi.playerApi,2);z=w.yieldResult;C=function(K){var G;K.sessionData&&K.sessionData.itct&&(G=K.sessionData.itct);var X=K.watchEndpoint;if(X&&K.sessionData&&K.sessionData.autonav)X=_.B7g(X,G);else{var J;X=_.wk(K.videoId,(J=K.listId)!=null?J:void 0,G)}G={endpoint:X};K.sessionData&&(G.tempData=K.sessionData);e.JSC$23723_watchApi.dispatchEvent("yt-navigate",G)};
z.addEventListener("onPlayVideo",C);e.addOnDisposeCallback(function(){z.removeEventListener("onPlayVideo",C)});
_.E_(w)})},UHj=function(e){var z=function(C){e.onYtNavigate(C)};
e.JSC$23723_watchApi.getRoot().addEventListener("yt-navigate",z);e.addOnDisposeCallback(function(){e.JSC$23723_watchApi.getRoot().removeEventListener("yt-navigate",z)})};
_.ILg.prototype.onYtNavigate=function(e){var z=this,C,w,K,G,X,J,q,T,Q;return _.k(function(m){if(m.nextAddress==1){if(!((C=e.detail)==null?0:(w=C.endpoint)==null?0:w.watchEndpoint))return m.return();K=e.detail.endpoint.watchEndpoint;G=z.JSC$23723_watchApi.getWatchNextResponse();J=_.r((X=G)==null?void 0:X.currentVideoEndpoint,_.N$);if(!J)return m.return();if(K.videoId!==J.videoId||K.playlistId&&K.playlistId!==J.playlistId||typeof K.startTimeSeconds!=="number")return m.jumpTo(0);e.stopPropagation();
(q=_.M("kevlar_watch_while_v2")&&!_.M("kevlar_watch_while_counterfactual"))&&_.lh().resolve(_.gh).isMiniplayerActive()||z.JSC$23723_watchApi.scrollWatchTo(0,!0);return m.yield(z.JSC$23723_watchApi.playerApi,3)}T=m.yieldResult;Q=K.startTimeSeconds;T.seekTo(Q,void 0,void 0,void 0,84);T.wakeUpControls();Q<T.getDuration()&&T.playVideo();_.E_(m)})};_.PEY=function(e){_.Sn.call(this);var z=this;this.JSC$23726_watchApi=e;var C=this.JSC$23726_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WiL(z)});
this.addOnDisposeCallback(function(){z.JSC$23726_watchApi.unsubscribeByKey(C)});
WiL(this);_.M("enable_ai_companion")&&(e=this.JSC$23726_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.zdE(_.lh().resolve(_.T$),e,"WATCH")};
_.U(_.PEY,_.Sn);var WiL=function(e){var z=e.JSC$23726_watchApi.getWatchNextResponse();if(z){var C,w=[].concat(_.s_((C=z==null?void 0:z.engagementPanels)!=null?C:[]));_.M("web_watch_comments_visible_by_default")&&(C=w.find(function(K){var G;return((G=K.engagementPanelSectionListRenderer)==null?void 0:G.targetId)==="engagement-panel-comments-section"}),C==null?0:C.engagementPanelSectionListRenderer)&&(C.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
w.unshift.apply(w,_.s_(Rdy(z)));e.JSC$23726_watchApi.provideRenderingData("ENGAGEMENT_PANELS",w)}},Lig=function(e){var z,C,w,K=(z=e.engagementPanels)==null?void 0:(C=z.find(function(n){var H;
return((H=n.engagementPanelSectionListRenderer)==null?void 0:H.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(w=C.engagementPanelSectionListRenderer.content)==null?void 0:w.structuredDescriptionContentRenderer,G;
if(_.r(K==null?void 0:(G=K.items)==null?void 0:G.find(function(n){return!!_.r(n,EIC)}),EIC))return!0;
var X,J,q,T;if(e=(((X=e.contents)==null?void 0:(J=X.twoColumnWatchNextResults)==null?void 0:(q=J.results)==null?void 0:(T=q.results)==null?void 0:T.contents)||[]).find(function(n){return n.videoPrimaryInfoRenderer})){var Q,m,a;
return(((Q=e.videoPrimaryInfoRenderer)==null?void 0:(m=Q.videoActions)==null?void 0:(a=m.menuRenderer)==null?void 0:a.flexibleItems)||[]).some(function(n){n=_.r(n,_.nV6);if(!n)return!1;var H,I;n=(H=n.topLevelButton)==null?void 0:(I=H.buttonViewModel)==null?void 0:I.onTap;if(!n)return!1;H=_.SQ(n);if(!H)return!1;var L;return((L=_.r(H,_.Dr))==null?void 0:L.panelIdentifier)==="PAyouchat"})}return!1},Rdy=function(e){var z=[];
if(!_.M("web_watch_inject_placeholder_fantasy_panel_killswitch")){var C,w,K,G=(C=e.engagementPanels)==null?void 0:(w=C.find(function(J){var q;return((q=J.engagementPanelSectionListRenderer)==null?void 0:q.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(K=w.engagementPanelSectionListRenderer.content)==null?void 0:K.structuredDescriptionContentRenderer,X;
_.r(G==null?void 0:(X=G.items)==null?void 0:X.find(function(J){return!!_.r(J,JHw)}),JHw)&&(C=_.HLE("PAsports_fantasy"),C.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z.push(C))}Lig(e)&&(e=_.HLE("PAyouchat"),e.engagementPanelSectionListRenderer.targetId="PAyouchat",e.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",z.push(e));
return z};_.OPa=function(e){_.Sn.call(this);this.JSC$23729_watchApi=e;hdy(this)};
_.U(_.OPa,_.Sn);var hdy=function(e){e.JSC$23729_watchApi.registerActionHandler("yt-loop-command",function(z){E$j(e,z)});
e.JSC$23729_watchApi.registerActionHandler("yt-repeat-chapter-command",function(z){FiL(e,z)});
e.addOnDisposeCallback(function(){e.JSC$23729_watchApi.unregisterActionHandler("yt-loop-command");e.JSC$23729_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},E$j=function(e,z){var C;
_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23729_watchApi.playerApi,2);C=w.yieldResult;_.r(z,qcg).loop?(C.setLoopRange({startTimeMs:Number(_.r(z,qcg).startTimeMs),endTimeMs:Number(_.r(z,qcg).endTimeMs),postId:_.r(z,qcg).postId,type:"clips"}),C.playVideo()):C.setLoopRange(null);_.E_(w)})},FiL=function(e,z){var C,w;
_.k(function(K){if(K.nextAddress==1)return K.yield(e.JSC$23729_watchApi.playerApi,2);C=K.yieldResult;w=_.r(z,QOl).repeat;w==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(C.setLoopRange({startTimeMs:Number(_.r(z,QOl).startTimeMs),endTimeMs:Number(_.r(z,QOl).endTimeMs),type:"repeatChapter"}),C.playVideo()):w==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&C.setLoopRange(null);_.E_(K)})};_.fLj=function(e){_.Sn.call(this);this.JSC$23734_watchApi=e;VLj(this)};
_.U(_.fLj,_.Sn);var VLj=function(e){e.JSC$23734_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(z){Sxg(e,z)});
e.addOnDisposeCallback(function(){e.JSC$23734_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},Sxg=function(e,z){var C,w,K,G,X,J,q,T,Q,m,a;
_.k(function(n){if(n.nextAddress==1)return n.yield(e.JSC$23734_watchApi.playerApi,2);C=n.yieldResult;if(G=(K=(w=_.r(z,mD2))==null?void 0:w.highlightedMenuItemKey)!=null?K:"")(J=(X=C).highlightSettingsMenuItem)==null||J.call(X,G);if(Q=(T=(q=_.r(z,mD2))==null?void 0:q.openMenuItemKey)!=null?T:"")(a=(m=C).openSettingsMenuItem)==null||a.call(m,Q);_.E_(n)})};var uC2=_.qq("/youtube/app/watch/player_state","playerStateEntity");_.Vf=function(e){_.Sn.call(this);this.JSC$23737_watchApi=e;dHL(this)};
_.U(_.Vf,_.Sn);var DHY=function(e){switch(e){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"}},dHL=function(e){var z,C,w,K,G;
_.k(function(X){if(X.nextAddress==1)return X.yield(e.JSC$23737_watchApi.playerApi,2);z=X.yieldResult;if(e.isDisposed())return X.return();C=function(J){e.onPlayerStateChange(J)};
w=function(J){e.onAdStateChange(J)};
K=function(){e.onAdSkip()};
G=function(J){e.onVideoDataChange(J)};
z.addEventListener("onStateChange",C);z.addEventListener("onAdStateChange",w);z.addEventListener("onAdSkip",K);z.addEventListener("onVideoDataChange",G);e.addOnDisposeCallback(function(){z.removeEventListener("onStateChange",C);z.removeEventListener("onAdStateChange",w);z.removeEventListener("onAdSkip",K);z.removeEventListener("onVideoDataChange",G)});
_.E_(X)})},iP2=function(e){var z=_.AK(),C=z.dispatch;
a:switch(e.adsState){case -1:case 0:var w="ADS_STATE_NONE";break a;case 1:case 2:case 3:w="ADS_STATE_PLAYING";break a;default:w="ADS_STATE_UNKNOWN"}C.call(z,_.Rx("playerStateEntity",uC2,{key:uC2,playerState:DHY(e.playerState),adsState:w,videoId:e.videoId}))};
_.Vf.prototype.onPlayerStateChange=function(e){var z=this,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(z.JSC$23737_watchApi.playerApi,2);C=w.yieldResult;if(z.isDisposed())return w.return();z.playerState=e;z.videoId=C.getVideoData().video_id;iP2(z);_.E_(w)})};
_.Vf.prototype.onAdStateChange=function(e){this.adsState=e;iP2(this)};
_.Vf.prototype.onAdSkip=function(){this.adsState=0;iP2(this)};
_.Vf.prototype.onVideoDataChange=function(e){e.type==="newdata"&&(this.adsState=-1,iP2(this))};_.s3Y=function(e){_.Sn.call(this);var z=this;this.JSC$23741_watchApi=e;this.enableExternalPlaylistPanelInPlayer=_.M("delhi_web_player_use_external_playlist_panel");_.lh().resolve(_.Us).setPlayer(this.JSC$23741_watchApi.getElement("PLAYER"));e=this.JSC$23741_watchApi.subscribeToActiveChanged(function(C){z.onActiveChanged(C)});
this.addOnDisposeCallback(e);NOa(this)};
_.U(_.s3Y,_.Sn);var NOa=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return e.enableExternalPlaylistPanelInPlayer?w.yield(e.JSC$23741_watchApi.playerApi,2):w.return();z=w.yieldResult;C=function(){if(e.playlistPanelElement)e.playlistPanelElement.onToggleExpanded()};
z.addEventListener("onToggleExternalPlaylistPanel",C);e.addOnDisposeCallback(function(){z.removeEventListener("onToggleExternalPlaylistPanel",C)});
_.E_(w)})};
_.s3Y.prototype.onActiveChanged=function(e){var z=this,C=_.lh().resolve(_.Us),w=function(){BOw(z)};
e?(this.playlistPanelElement=this.JSC$23741_watchApi.getElement("PLAYLIST_PANEL"))?(C.setPlaylistComponent(this.playlistPanelElement),C.addEventListener("yt-playlist-data-updated",w),this.addOnDisposeCallback(function(){C.removeEventListener("yt-playlist-data-updated",w)}),BOw(this)):_.es(Error("lp")):(C.removeEventListener("yt-playlist-data-updated",w),C.cancelVideoSkip())};
var BOw=function(e){var z=_.lh().resolve(_.Us);e.JSC$23741_watchApi.provideRenderingData("PLAYLIST",z.getPlaylistData())};_.fe=function(e){_.Sn.call(this);var z=this;this.JSC$23744_watchApi=e;this.onPageScroll=function(){z.scrollThrottle.fire();z.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.lw(this.onThrottledScroll,200,this);_.I4(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.lw(this.onMastheadThrottledScroll,50,this);_.I4(this,this.mastheadScrollThrottle);this.animation=new _.FJ(function(C){z.JSC$23744_watchApi.getRoot().setScrollTop(C)});
e=_.K3(_.eB(),_.fU,function(){z.onFullscreenChanged()});
this.addOnDisposeCallback(e);tLl(this);g$2(this);this.onThrottledScroll()};
_.U(_.fe,_.Sn);
_.fe.prototype.onFullscreenChanged=function(){var e=this,z=this.JSC$23744_watchApi.getRoot();!this.pageScrollElement&&z.pageScrollElement?(this.pageScrollElement=z.pageScrollElement,z.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){e.pageScrollElement&&e.pageScrollElement.removeEventListener("scroll",e.onPageScroll)})):this.pageScrollElement&&!z.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var tLl=function(e){window.addEventListener("scroll",e.onPageScroll);e.addOnDisposeCallback(function(){window.removeEventListener("scroll",e.onPageScroll)})},g$2=function(e){e.JSC$23744_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(z){a:{var C;
if(C=e.JSC$23744_watchApi.getRoot().contains(z)&&!e.animation.isAnimating()){C=z.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var w,K,G=(z==null?void 0:(w=z.parentElement)==null?void 0:(K=w.parentElement)==null?void 0:K.id)==="fixed-secondary";C=!(C&&G)}if(C){if(_.M("kevlar_watch_scroll_manager_absolute_offset_killswitch"))w=z.offsetTop;else for(w=0,K=z;K!==null;)w+=K.offsetTop,w-=K.scrollTop,K=K.offsetParent;K=w;w=K-24;z=K+z.offsetHeight+24;K=e.JSC$23744_watchApi.getRoot().getPageScrollingElement();
C=e.JSC$23744_watchApi.getRoot().getScrollTop();G=C+K.clientHeight-56;if(w<C+56)z=w-56;else if(z>G)z-=K.clientHeight;else break a;e.scrollWatchTo(Math.max(0,z),!0)}}});
e.addOnDisposeCallback(function(){e.JSC$23744_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.fe.prototype.onThrottledScroll=function(){var e=_.eB(),z=e.dispatch,C=this.JSC$23744_watchApi.getRoot().getScrollTop();z.call(e,_.Yz({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:C}}))};
_.fe.prototype.onMastheadThrottledScroll=function(){this.JSC$23744_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23744_watchApi.getRoot().getScrollTop())};
_.fe.prototype.scrollWatchTo=function(e,z){(z===void 0?0:z)?this.animation.start(this.JSC$23744_watchApi.getRoot().getScrollTop(),Math.max(0,e),500):this.JSC$23744_watchApi.getRoot().setScrollTop(e)};_.cKj=function(e){_.Sn.call(this);var z=this;this.JSC$23747_watchApi=e;var C=this.JSC$23747_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){j3w(z)}),w=this.JSC$23747_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yKT(z)});
this.addOnDisposeCallback(function(){z.JSC$23747_watchApi.unsubscribeByKey(C);z.JSC$23747_watchApi.unsubscribeByKey(w)});
j3w(this);yKT(this)};
_.U(_.cKj,_.Sn);
var j3w=function(e){var z,C,w,K=(w=(z=e.JSC$23747_watchApi.getPlayerResponse())==null?void 0:(C=z.videoDetails)==null?void 0:C.title)!=null?w:"";e.JSC$23747_watchApi.dispatchEvent("yt-update-title",K)},yKT=function(e){var z,C,w,K,G,X,J,q=(J=((X=(z=e.JSC$23747_watchApi.getWatchNextResponse())==null?void 0:(C=z.contents)==null?void 0:(w=C.twoColumnWatchNextResults)==null?void 0:(K=w.results)==null?void 0:(G=K.results)==null?void 0:G.contents)!=null?X:[]).find(function(T){return!!T.videoPrimaryInfoRenderer}))==null?
void 0:J.videoPrimaryInfoRenderer;
(z=_.Zd(q==null?void 0:q.title))&&e.JSC$23747_watchApi.dispatchEvent("yt-update-title",z)};_.ZPL=function(e){_.Sn.call(this);this.JSC$23750_watchApi=e;AKw(this)};
_.U(_.ZPL,_.Sn);var AKw=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$23750_watchApi.playerApi,2);z=w.yieldResult;C=function(){e.onYpcContentRequest()};
z.addEventListener("onYpcContentRequest",C);e.addOnDisposeCallback(function(){z.removeEventListener("onYpcContentRequest",C)});
_.E_(w)})};
_.ZPL.prototype.onYpcContentRequest=function(){var e,z,C,w,K,G=(e=this.JSC$23750_watchApi.getWatchNextResponse())==null?void 0:(z=e.contents)==null?void 0:(C=z.twoColumnWatchNextResults)==null?void 0:(w=C.secondaryResults)==null?void 0:(K=w.secondaryResults)==null?void 0:K.offerModule,X,J,q,T;e=(T=(q=(J=(X=G==null?void 0:G.episodeOfferModuleRenderer)!=null?X:G==null?void 0:G.movieOfferModuleRenderer)!=null?J:G==null?void 0:G.unlimitedOfferModuleRenderer)!=null?q:G==null?void 0:G.liveOfferModuleRenderer)!=
null?T:G==null?void 0:G.tvfilmOfferModuleRenderer;var Q,m,a;G=(a=G==null?void 0:(Q=G.tvfilmOfferModuleRenderer)==null?void 0:(m=Q.actionButtons)==null?void 0:m.length)!=null?a:0;m=Math.max(G-1,0);var n,H,I;Q=(I=e==null?void 0:(n=e.offerButton)==null?void 0:n.buttonRenderer)!=null?I:e==null?void 0:(H=e.actionButtons)==null?void 0:H[m].buttonRenderer;var L,h;(n=(h=(L=Q==null?void 0:Q.navigationEndpoint)!=null?L:Q==null?void 0:Q.serviceEndpoint)!=null?h:Q==null?void 0:Q.command)&&_.Tx.instance.resolveCommand(n)};
}catch(e){_._DumpException(e)}
try{
var s3v,DHv,Sxa;_.dHo=function(){var e=_.de.clone(fLW),z;return(new _.RC(function(C,w){e.onSuccess=function(K){_.$Lm(K)?C(new Sxa(K)):w(new _.uC5("Request failed, status="+_.Hi(K),"net.badstatus",K))};
e.onError=function(K){w(new _.uC5("Unknown request error","net.unknown",K))};
e.onTimeout=function(K){w(new _.uC5("Request timed out","net.timeout",K))};
z=_.RX("//googleads.g.doubleclick.net/pagead/id",e)})).thenCatch(function(C){if(C instanceof _.g$){var w;
(w=z)==null||w.abort()}return _.R5(C)})};
_.iP5=function(e){a:{var z="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(z="EMBEDDED_PLAYER_MODE_PFL");var C=e.raw_embedded_player_response;if(!C&&(e=e.embedded_player_response))try{C=JSON.parse(e)}catch(K){break a}if(C)b:for(var w in DHv)if(DHv[w]==C.embeddedPlayerMode){z=DHv[w];break b}}return z==="EMBEDDED_PLAYER_MODE_PFL"};
_.NOZ=function(){if(_.M("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.eg8())return Error("wf");var e=_.j5("PLAYER_VARS",{});if(_.de.get(e,"privembed",!1)=="1")return Error("xf");if(_.iP5(e))return Error("yf")};
s3v=function(e){switch(e){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:_.ca(e,"unknown result type")}};
_.BOf=function(e,z,C){z=_.CO1[z];C={detected:e===0,source:z.vSX,detectionResult:s3v(e),contentCpn:C};_.gm("biscottiBasedDetection",C);_.JeT.increment(z.vSX,e);z.czP!==void 0&&_.g1("CATSTAT",_.eR1(e,z))};
_.tL$=function(e,z){var C={};C.key=e;C.value=z;return _.H9m().then(function(w){return new Promise(function(K,G){try{var X=w.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(C);X.onsuccess=function(){K()};
X.onerror=function(){G()}}catch(J){G(J)}})})};
_.j3f=function(){var e=_.n0("user_engagement_experiments_rate_limit_ms"),z=g$5.get("last-user-engagement-exp-trigger-timestamp");return!z||(0,_.as)()>=z+e?(g$5.set("last-user-engagement-exp-trigger-timestamp",(0,_.as)()),!0):!1};
_.Y9=function(e,z,C,w,K){z=z===void 0?null:z;C=C===void 0?null:C;w=w===void 0?null:w;K=K===void 0?null:K;e={youThereEventType:e};C&&(e.lactThresholdMs=C.lactThresholdMs,e.mediaPosSec=C.promptDelaySec,e.lactServerRequestMs=C.lactServerRequestMs,e.triggerReason=C.triggerReason);K!=null&&(e.renderingMediaPosSec=Math.round(K));z||(z=_.Pr());z&&(e.clientScreenNonce=z);w&&(e.clientPlaybackNonce=w);_.gm("youThere",e)};
DHv={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"};Sxa=function(e){this.xhr=e};
_.uC5=function(e,z,C){_.eh.call(this,e+", errorCode="+z);this.errorCode=z;this.xhr=C;this.name="PromiseAjaxError"};
_.U(_.uC5,_.eh);var fLW={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var g$5=new _.zE("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.VLW=function(e){return _.Yz({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:e})};
}catch(e){_._DumpException(e)}
try{
var N9,Ifg,PAj,R9Y,LOg,h9a,Epj,NoT,s5g,BoY,Oma,WOj,Smj,ffg,j5g;_.vpL=function(){var e=window.location.hash;e.charAt(0)==="#"&&(e=e.charAt(1)==="!"?e.substring(2):e.substring(1));return _.GN(e)};
N9=function(e,z,C){var w;return _.k(function(K){if(K.nextAddress==1)return K.yield(z(),2);w=K.yieldResult;C(w,e);_.E_(K)})};
Ifg=function(){return _.k(function(e){return e.nextAddress==1?e.yield((_.NOZ()!==void 0?_.R5(Error("zf")):_.dHo()).then(function(){return 1},function(z){if(z.message==="Biscotti id is disabled")return 3;
_.AX("Failed fetching bid");return 0}),2):e.return(e.yieldResult)})};
PAj=function(){var e=_.KW("LWVtYmVkLXBsYXllciNsbmJ1azA0N2c5c2p5dC1oYXZlbg=="),z=_.KW("ZnJhbWUjZjcwZWNmdnBhajRvaQ==");return document.querySelector(z+WOj+e)?0:1};
R9Y=function(){return _.Dd7(_.Os)};
LOg=function(){return _.iTg()===0?0:_.Ni7()};
h9a=function(){return _.jw1(_.bTE([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Epj=function(){return _.OTg(Oma)};
_.FOY=function(e){_.k(function(z){switch(z.nextAddress){case 1:return z.yield(N9("b.f_",Ifg,e),2);case 2:return z.yield(N9("j.s_",_.LlN,e),3);case 3:return z.yield(N9("r.s_",_.Wlo,e),4);case 4:return z.yield(N9("e.h_",Epj,e),5);case 5:if(!_.M("ab_det_sc_inj")){z.jumpTo(6);break}return z.yield(N9("s.i_",_.uk4,e),6);case 6:if(_.M("ab_deg_unex_thr")){z.jumpTo(8);break}return z.yield(N9("a.o_",_.f5g,e),8);case 8:if(_.M("ks_get_o_pp")){z.jumpTo(10);break}return z.yield(N9("g.o_",_.VG4,e),10);case 10:if(_.M("ks_det_gpbl")){z.jumpTo(12);
break}return z.yield(N9("p.i_",_.Flg,e),12);case 12:return z.yield(N9("f.i_",_.l5h,e),14);case 14:return z.yield(N9("a.b_",_.vX1,e),15);case 15:return z.yield(N9("p.m_",_.a5L,e),16);case 16:if(!_.M("ab_det_el_h_v2")){z.jumpTo(17);break}return z.yield(N9("n.h_",h9a,e),17);case 17:return z.yield(N9("o.p_",R9Y,e),19);case 19:return z.yield(N9("e.i_",PAj,e),20);case 20:if(_.M("ab_det_apm"))return z.yield(N9("o.a_",LOg,e),0);z.jumpTo(0)}})};
_.VQL=function(e,z){e={videoId:e};z&&(e.playlistId=z);return e};
_.uHj=function(){if(_.eg8()){var e=_.j5("PLAYER_VARS",{});if(_.de.get(e,"privembed",!1)!="1"&&!_.iP5(e)){var z=function(){ffg=!0;"google_ad_status"in window?_.g1("DCLKSTAT",1):_.g1("DCLKSTAT",2)};
try{_.Vq(_.Y_f,z)}catch(C){}Smj.push(_.c5.addLowPriorityJob(function(){if(!(ffg||"google_ad_status"in window)){try{_.t6m(_.Y_f.toString(),z)}catch(C){}ffg=!0;_.g1("DCLKSTAT",3)}},5E3))}}};
_.dFL=function(e,z,C){C=C===void 0?!1:C;var w=Math.max(e.width,_.VYl);if(_.M("kevlar_watch_feed_big_thumbs")&&e.width>=1550-_.cz()&&e.height>=800)w-=_.iZl;else if(e.width>=_.ff){var K=_.fVj+_.ScY+_.VU;_.M("kevlar_watch_feed_big_thumbs")&&(K=_.DDL);w-=K}else w-=_.fVj;w=Math.min(w,_.uLa);K=240;C&&(K=380);z<.5624||(!_.M("kevlar_watch_flexy_disable_small_window_sizing")&&(e.height<630&&e.width>=657||e.height>=630&&e.width>=_.ff&&e.width<1327)?K=360:!_.M("kevlar_watch_flexy_disable_large_window_sizing")&&
e.height>=630&&e.width>=1327&&(K=480));var G=Math.min(w*z,e.height-(56+_.F$l+_.dDy));G=Math.max(G,K);z<1?w=G/z:e.width>=_.ff&&(w=_.dFL(e,.5625,C).width);return new _.RM(Math.round(w),Math.round(G))};
_.DFl=function(e){var z=0;e.indexOf("h")!=-1&&(e=e.split("h"),z=e[0]*60*60,e=e[1]);e.indexOf("m")!=-1&&(e=e.split("m"),z=e[0]*60+z,e=e[1]);e.indexOf("s")!=-1?(e=e.split("s"),z=e[0]*1+z):z=e*1+z;return z};
_.imw=function(){_.n0("service_worker_push_logged_out_prompt_watches")!=-1&&_.wV("WatchCount").then(function(e){e>=100||_.tL$("WatchCount",e+1)})};
NoT=function(e){var z=e.externalVideoId||"";return z?e.isShortsEligible?"https://www.youtube.com/shorts/"+z:"https://www.youtube.com/watch?v="+z:""};
s5g=function(e){var z=[];e.viewCount&&z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:e.viewCount});e.likeCount&&z.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:e.likeCount});return z};
BoY=function(e){var z,C,w={"@context":"https://schema.org","@type":"VideoObject",description:_.Zd(e.description),duration:"PT"+(e.lengthSeconds||"0")+"S",embedUrl:e.embed?e.embed.iframeUrl:"",name:_.Zd(e.title),thumbnailUrl:((z=e.thumbnail)==null?void 0:(C=z.thumbnails)==null?void 0:C.map(function(Q){return Q&&Q.url||""}))||[],
uploadDate:e.publishDate};_.M("mweb_video_schema_id_killswitch")||(w["@id"]=NoT(e));z=s5g(e);z.length&&(w.interactionStatistic=z);e.category&&(w.genre=e.category);e.ownerChannelName&&(w.author=e.ownerChannelName);e.liveBroadcastDetails&&(w.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:e.liveBroadcastDetails.startTimestamp,endDate:e.liveBroadcastDetails.endTimestamp}]);if(e.learningResource){e=e.learningResource;w["@type"]=["VideoObject","LearningResource"];var K;if((K=e.learningResourceType)==
null?0:K.length)w.learningResourceType=e.learningResourceType[0];var G;if((G=e.educationalAlignment)==null?0:G.length)w.educationalAlignment={"@type":"AlignmentObject",targetName:e.educationalAlignment[0]};var X;if((X=e.educationalLevel)==null?0:X.length){K=e.educationalLevel[0];var J;if((J=e.educationalLevelCountry)==null?0:J.length)K+=" ("+e.educationalLevelCountry+")";w.educationalLevel=K}var q,T;if(((q=e.learningResourceType)==null?0:q.length)&&e.learningResourceType[0]==="Problem walkthrough"&&
((T=e.problemDescriptions)==null?0:T.length))for(w.hasPart=[],J=_.b(e.problemDescriptions),q=J.next();!q.done;q=J.next())K=q.value,q=K.problemDescriptionText,T=K.startOffset,K=K.url,q&&T!==void 0&&K&&w.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:q,text:q,startOffset:T,url:K})}return w};
_.tQt=function(e){return _.Yz({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:e}})};
Oma=[[["eSNxd3F4dXp3NDB6bTdwcmltYXI=",null,null],[null,["Y29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyIzJpbDBza2d1bWN2c3l0ZC10d28t","eWxlLXNjb3BlI3VuanUxM3FpZG92aXN0"],null],["c3RoZWFkLWFkI2t4b3FycG56YXE0MW1h",["aWQtcmVuZGVyZXIja3BncmZqeWdhMzF4eXRkLXJpY2gtZ3I="],null],[null,["aWQtcmVuZGVyZXIjbGx4cmJhM3RyNjhjeXRkLXJpY2gtZ3I=","eWxlLXNjb3BlI3I5MG5xc3dkY3FneXN0"],null],[null,["ZGVyZXIjMXVjYWMwb2JrOWt2eXRkLWJhbm5lci1wcm9tby1yZW4=","eWxlLXNjb3BlIzlsZm8yZmhoNGJrenN0"],null],[null,["ZC1zbG90LXJlbmRlcmVyIzllZmp0N251ZjBya3l0ZC1h"],
null]],[["Y2hwbGF5ZXItYWRzI3huNjN4bXNpYjI=",null,null]],[[null,null,"ZW5kZXJlciNrd2t6NXNodW4zcm95dGxyLWJhbm5lci1jdGEtcg=="]]];WOj="#";Smj=[];ffg=!1;_.gpC=["engagement-panel-ads"];j5g=new _.nN("updateSentimentBarStateCommand");_.yEa=new _.nN("showSurveyCommand");_.sw=new _.nN("changeMarkersVisibilityCommand");var AEg,Zm2,Cwg,ztl,eta,Bw;_.cEw=function(e,z){this.playerProvider_=e;this.actionSenderElement_=z;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.cEw.prototype.reset=function(){AEg(this);this.isUserPredictedAbsent_=!1};
AEg=function(e,z){!e.youThereData_||e.showWarningJob_||z!==void 0&&z||(_.Y9("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Pr(),e.youThereData_,e.clientPlaybackNonce_),_.ju());_.c5.cancelJob(e.showWarningJob_);e.showWarningJob_=0;_.c5.cancelJob(e.showBlockingWarningJob_);e.showBlockingWarningJob_=0;_.c5.cancelJob(e.pausePlaybackJob_);e.pausePlaybackJob_=0;e.youThereData_=null;e.clientPlaybackNonce_=void 0;e.inYouThereFlow_=!1};
_.p9l=function(e,z){var C,w,K;_.k(function(G){if(G.nextAddress==1)return e.reset(),G.yield(e.playerProvider_().getPlayerPromise(),2);C=G.yieldResult;e.clientPlaybackNonce_=C.getVideoData().cpn;e.youThereData_=z.configData.youThereData;if(!e.youThereData_)return G.return();if(e.youThereData_.triggerReason&&e.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.j3f())return _.Y9("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Pr(),e.youThereData_,e.clientPlaybackNonce_),G.return();w=e.youThereData_.promptDelaySec;
K=C.getCurrentTime();e.showWarningJob_=_.c5.addLowPriorityJob(function(){return _.k(function(X){e.showWarningJob_=0;return X.yield(Zm2(e),0)})},Math.max(w-K,0)*1E3);
_.E_(G)})};
Zm2=function(e){var z,C,w,K,G,X;return _.k(function(J){if(J.nextAddress==1)return J.yield(e.playerProvider_().getPlayerPromise(),2);if(J.nextAddress!=3)return z=J.yieldResult,C=z.getCurrentTime(),J.yield(eta(e),3);w=J.yieldResult;if(!w||!e.youThereData_)return J.return();if(_.M("check_user_lact_at_prompt_shown_time_on_web")&&(K=parseInt(e.youThereData_.lactThresholdMs,10),_.aC()<K))return _.Y9("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Pr(),e.youThereData_,e.clientPlaybackNonce_),J.return();if(e.youThereData_.playbackPauseDelayMs<=
0)return ztl(e),J.return();!_.M("external_fullscreen")&&(G=_.yq())&&(e.ignoreFullscreenExitUserActivity_=!0,_.c5.addLowPriorityJob(function(){e.ignoreFullscreenExitUserActivity_=!1},2E3),_.cr(G));
e.youThereData_.showToastWarningPrompt&&(Bw(e,e.youThereData_.showWarningActions),e.inYouThereFlow_=!0,_.Y9("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Pr(),e.youThereData_,e.clientPlaybackNonce_,C),_.Y9("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Pr(),e.youThereData_,e.clientPlaybackNonce_,C));X=0;e.youThereData_.blockingPromptDelayMs&&(X=e.youThereData_.blockingPromptDelayMs);e.showBlockingWarningJob_=_.c5.addLowPriorityJob(function(){return _.k(function(q){e.showBlockingWarningJob_=0;return q.yield(Cwg(e),
0)})},X);
_.E_(J)})};
Cwg=function(e){var z,C,w;return _.k(function(K){if(K.nextAddress==1)return K.yield(eta(e),2);z=K.yieldResult;if(!e.youThereData_)return K.return();z&&(e.youThereData_.showBlockingWarningAction&&(_.Y9("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Pr(),e.youThereData_,e.clientPlaybackNonce_),(C=_.r(e.youThereData_.showBlockingWarningAction,_.Gj))?Bw(e,C.commands):Bw(e,[e.youThereData_.showBlockingWarningAction]),e.inYouThereFlow_=!0),w=e.youThereData_.playbackPauseDelayMs,e.pausePlaybackJob_=
_.c5.addLowPriorityJob(function(){return _.k(function(G){e.pausePlaybackJob_=0;return G.yield(ztl(e),0)})},w));
_.E_(K)})};
ztl=function(e){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(eta(e),2);z=C.yieldResult;if(!e.youThereData_)return C.return();z&&(_.Y9("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Pr(),e.youThereData_,e.clientPlaybackNonce_),Bw(e,e.youThereData_.showPausedActions),e.inYouThereFlow_=!0);_.E_(C)})};
_.cEw.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var e=_.r(this.youThereData_.userActiveDuringFlowAction,_.Gj);e?Bw(this,e.commands):Bw(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.Y9("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Pr(),this.youThereData_,this.clientPlaybackNonce_),_.ju());AEg(this,!0)}_.wjj(this,!1)};
_.KBj=function(e){_.Y9("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Pr(),e.youThereData_,e.clientPlaybackNonce_)};
eta=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(e.playerProvider_().getPlayerPromise(),2);z=w.yieldResult;C=z.getPlayerState();return w.return(C==-1||C==1||C==3)})};
_.wjj=function(e,z){var C;_.k(function(w){if(w.nextAddress==1){if(e.isUserPredictedAbsent_==z)return w.jumpTo(0);e.isUserPredictedAbsent_=z;return w.yield(e.playerProvider_().getPlayerPromise(),3)}C=w.yieldResult;C.setUserEngagement(z);z&&_.Y9("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Pr(),e.youThereData_,e.clientPlaybackNonce_);_.E_(w)})};
Bw=function(e,z){if(_.M("handle_service_request_actions")||_.M("kevlar_youthere_service_endpoint_actions_killswitch"))_.KK(e.actionSenderElement_,z,e.actionSenderElement_);else{z=_.b(z);for(var C=z.next();!C.done;C=z.next())C=C.value,C.commandMetadata&&C.commandMetadata.webCommandMetadata&&C.commandMetadata.webCommandMetadata.sendPost?_.wQ(e.actionSenderElement_,[C]):_.KK(e.actionSenderElement_,[C],e.actionSenderElement_)}};var of2;var G9C;var ts=function(){var e=_.V.apply(this,arguments)||this;e.systemIcons=_.M("kevlar_system_icons");e.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return e};
_.U(ts,_.V);ts.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var e=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(e=this.data.percentIfLiked||0,this.activated=!0):(e=this.data.percentIfIndifferent||0,this.activated=!1);_.XC(this.hostElement).querySelector("#like-bar").style.width=e+"%"}};
ts.prototype.handleUpdateSentimentBarStateCommand=function(e){this.data&&this.set("data.likeStatus",_.r(e,j5g).likeStatus)};
ts.prototype.observeLikeStatus=ts.prototype.observeLikeStatus;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ts.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ts.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],ts.prototype,"activated",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ts.prototype,"systemIcons",void 0);_.d([_.mi("data.likeStatus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ts.prototype,"observeLikeStatus",null);_.d([_.SL({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],ts);
_.u(ts,"ytd-sentiment-bar-renderer",function(){if(G9C!==void 0)return G9C;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return G9C=e},{mode:1});var YTg;var gv=function(){var e=_.V.apply(this,arguments)||this;e.small=!0;return e};
_.U(gv,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],gv.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gv.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],gv.prototype,"small",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],gv);
_.u(gv,"ytd-video-view-count-renderer",function(){if(YTg!==void 0)return YTg;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return YTg=e},{mode:_.bA("kevlar_poly_si_batch_j080")?1:2});var jp=function(){var e=_.V.apply(this,arguments)||this;e.infoFormattedStrings=[];e.wrapVideoActions=_.M("kevar_watch_wrap_video_actions");e.hideSentimentBar=_.M("kevlar_watch_hide_sentiment_bar");e.actionMap={};return e};
_.U(jp,_.V);_.Y=jp.prototype;_.Y.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.M("web_modern_buttons"),forceIconButton:!_.M("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.Y.dataChanged=function(){_.M("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.Y.computeInfoFormattedStrings=function(e){if(!e)return[];var z=[];e.dateText&&z.push(e.dateText);e.stationName&&z.push(e.stationName);e.rating&&z.push(e.rating);e.startEndTimeTemplate&&e.startTimeUtcMillis&&e.endTimeUtcMillis&&z.push(_.AO(_.txL(_.Zd(e.startEndTimeTemplate),Number(e.startTimeUtcMillis),Number(e.endTimeUtcMillis))));e.upNextProgramText&&z.push(e.upNextProgramText);return z};
_.Y.scheduleInitialUpdatedMetadataRequest=function(){var e,z=(e=this.data)==null?void 0:e.updatedMetadataEndpoint;if(z){var C;e=Number((C=_.r(z,_.Zxa))==null?void 0:C.initialDelayMs);C=isNaN(e)?250:e;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),C)}};
_.Y.setSentimentBarWidth=function(){var e=this;_.T0(this,function(){var z=_.XC(e.hostElement).querySelector("ytd-menu-renderer");if(z){z=z.topLevelButtons;for(var C=0,w=0;w<z.length;w++){var K=z[w],G=e.get("toggleButtonSupportedData.toggleButtonIdData.id",K.data);if(G==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||G==="TOGGLE_BUTTON_ID_TYPE_LIKE")C+=K.clientWidth+8;else break}C&&(e.sentiment.style.width=C-8+" px")}})};
_.Y.fetchUpdatedMetadata=function(e){var z;e&&(z={continuation:e});var C;(e=(C=this.data)==null?void 0:C.updatedMetadataEndpoint)&&_.lh().resolve(_.ms).resolveCommand(e,{form:Object.assign({},z,{element:this.hostElement})})};
_.Y.onYtServiceRequestSent=function(e,z){z.endpoint&&_.r(z.endpoint,_.bt)&&(this.hasUpdateSentimentBarStateCommands()&&!_.M("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.r(z.endpoint,_.bt).status),this.setSentimentBarWidth())};
_.Y.hasUpdateSentimentBarStateCommands=function(){var e,z,C,w,K=(w=(e=this.data)==null?void 0:(z=e.videoActions)==null?void 0:(C=z.menuRenderer)==null?void 0:C.topLevelButtons)!=null?w:[];e=_.b(K);for(z=e.next();!z.done;z=e.next()){z=z.value;K=w=C=void 0;var G=(C=z.toggleButtonRenderer)==null?void 0:(w=C.toggleButtonSupportedData)==null?void 0:(K=w.toggleButtonIdData)==null?void 0:K.id;if(G==="TOGGLE_BUTTON_ID_TYPE_LIKE"||G==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){w=C=void 0;z=(w=_.r((C=z.toggleButtonRenderer)==
null?void 0:C.defaultServiceEndpoint,_.Gj))==null?void 0:w.commands;if(!z)break;z=_.b(z);for(C=z.next();!C.done;C=z.next())if(_.r(C.value,j5g))return!0}}return!1};
_.Y.onYtServiceRequestCompleted=function(e,z){var C;(e=(C=z.data)==null?void 0:C.loggingDirectives)&&_.AMg(_.nm(),e);this.get("continuation.timedContinuationData",z.data)&&this.data&&this.data.updatedMetadataEndpoint&&(z=z.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,z.continuation),z.timeoutMs))};
_.Y.computeHasDateText=function(e){return!!e&&!!e.dateText};
_.lB.Object.defineProperties(jp.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w;return!((w=(e=this.data)==null?void 0:(z=e.videoActions)==null?void 0:(C=z.menuRenderer)==null?void 0:C.flexibleItems)==null||!w.length)}}});
jp.prototype.onYtServiceRequestCompleted=jp.prototype.onYtServiceRequestCompleted;jp.prototype.onYtServiceRequestSent=jp.prototype.onYtServiceRequestSent;jp.prototype.dataChanged=jp.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],jp.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.LE.YtTaskEmitterBehavior),_.B("design:type",Object)],jp.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jp.prototype,"data",void 0);_.d([_.F({computed:"computeInfoFormattedStrings(data)"}),_.B("design:type",Array)],jp.prototype,"infoFormattedStrings",void 0);
_.d([_.F({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],jp.prototype,"hasDateText",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jp.prototype,"wrapVideoActions",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],jp.prototype,"hideSentimentBar",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jp.prototype,"flexMenuEnabled",null);
_.d([_.nP("#sentiment"),_.B("design:type",Object)],jp.prototype,"sentiment",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jp.prototype,"dataChanged",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],jp.prototype,"onYtServiceRequestSent",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],jp.prototype,"onYtServiceRequestCompleted",null);
_.u(jp,"ytd-video-primary-info-renderer",function(){if(of2===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);of2=e}e=of2;return e},{mode:1});var bUg;var yf=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return e};
_.U(yf,_.V);_.Y=yf.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){var e;this.descriptionToggled=!((e=this.data)==null||!e.defaultExpanded);var z;this.collapsed=this.descriptionAlwaysCollapsed||!((z=this.data)==null?0:z.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.mT(110509);this.showLessClientVe=_.mT(110510);e=_.Pr();z=_.Ip();e&&z&&_.NL(e,z,[this.showMoreClientVe,this.showLessClientVe])};
_.Y.onYtExpanderMoreTapped=function(){var e,z=(e=this.data)==null?void 0:e.showMoreCommand;z&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(z);(e=_.Pr())&&this.showMoreClientVe&&_.gQ(e,this.showMoreClientVe)};
_.Y.onYtExpanderLessTapped=function(){var e=_.Pr();e&&this.showLessClientVe&&_.gQ(e,this.showLessClientVe);var z;(e=(z=this.data)==null?void 0:z.showLessCommand)&&this.componentBehavior.resolveCommand(e)};
_.Y.handleUpdateDateTextAction=function(e){this.data&&this.data.dateText&&this.set("data.dateText",_.r(e,_.W$L).dateText)};
_.Y.handleUpdateDescriptionAction=function(e){if(e=_.r(e,_.y5g))e.isEmpty||!e.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Em(e.description)):this.set("data.description",e.description)};
_.Y.onYtChangeEngagementPanelVisibilityAction=function(e){if(_.M("web_structured_description_show_more")||_.M("web_engagement_panel_open_description")){var z,C=(z=_.r(e,_.y1s))==null?void 0:z.targetId,w;e=((w=_.r(e,_.y1s))==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";C==="engagement-panel-structured-description"&&e&&(this.descriptionToggled=!0)}};
_.Y.updateCollapsedFromBinding=function(e){this.collapsed=e.detail.value};
_.Y.updateDescriptionToggledFromBinding=function(e){this.descriptionToggled=e.detail.value};
_.Y.updateCanCollapseFromBinding=function(e){this.canCollapse=e.detail.value};
_.lB.Object.defineProperties(yf.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.metadataRowContainer)==null?void 0:z.metadataRowContainerRenderer;return!!C&&!!C.rows&&C.rows.length>C.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
yf.prototype.onYtExpanderLessTapped=yf.prototype.onYtExpanderLessTapped;yf.prototype.onYtExpanderMoreTapped=yf.prototype.onYtExpanderMoreTapped;yf.prototype.dataChanged=yf.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],yf.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],yf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],yf.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yf.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],yf.prototype,"collapsed",void 0);_.d([_.F(),_.B("design:type",Boolean)],yf.prototype,"descriptionToggled",void 0);
_.d([_.F(),_.B("design:type",Boolean)],yf.prototype,"canCollapse",void 0);_.d([_.F(),_.B("design:type",Object)],yf.prototype,"subscribeButtonData",void 0);_.d([_.F(),_.B("design:type",Number)],yf.prototype,"descriptionCollapsedHeight",void 0);_.d([_.F(),_.B("design:type",Object)],yf.prototype,"structuredDescriptionContentRenderer",void 0);_.d([_.F({value:function(){return _.M("web_watch_description_always_collapsed")}}),
_.B("design:type",Boolean)],yf.prototype,"descriptionAlwaysCollapsed",void 0);_.d([_.nP("#description"),_.B("design:type",HTMLDivElement)],yf.prototype,"description",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yf.prototype,"dataChanged",null);_.d([_.Qi("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yf.prototype,"onYtExpanderMoreTapped",null);
_.d([_.Qi("yt-expander-less-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yf.prototype,"onYtExpanderLessTapped",null);_.d([_.P("data.metadataRowContainer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yf.prototype,"metadataCollapsible",null);_.d([_.P("data","structuredDescriptionContentRenderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yf.prototype,"hasInlineStructuredDescription",null);
_.d([_.P("data.attributedDescription"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yf.prototype,"hasAttributedDescription",null);_.d([_.P("hasInlineStructuredDescription","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yf.prototype,"loadStructuredDescription",null);_.d([_.P("data","structuredDescriptionContentRenderer","collapsed"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yf.prototype,"showInlineStructuredDescription",null);
_.d([_.P("data","hasInlineStructuredDescription","metadataCollapsible"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yf.prototype,"descriptionAlwaysCollapsible",null);
_.u(yf,"ytd-video-secondary-info-renderer",function(){if(bUg===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);bUg=e}e=bUg;return e},{mode:2});var Xjl;var cw=function(){return _.V.apply(this,arguments)||this};
_.U(cw,_.V);cw.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:_.M("web_modern_buttons"),forceIconButton:!_.M("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
cw.prototype.activate=function(e){e.appendTo(this.player);e.getPlayerPromise().then(function(z){z.setMinimized(!0)});
this.active=!0};
cw.prototype.deactivate=function(){var e=this.player.firstElementChild;e.getPlayerPromise().then(function(z){z.setMinimized(!1)});
this.active=!1;return e};
cw.prototype.onScrollUpTap=function(){var e=_.lh().resolve(_.wE).getCurrentPage();e&&e.setScrollTop(0)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],cw.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cw.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],cw.prototype,"active",void 0);
_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.B("design:type",Boolean)],cw.prototype,"darkLaunch",void 0);_.d([_.nP("#player"),_.B("design:type",HTMLDivElement)],cw.prototype,"player",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],cw);
_.u(cw,"ytd-miniplayer-bar-renderer",function(){if(Xjl!==void 0)return Xjl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Xjl=e},{mode:1});_.KU(_.f(function(e){var z=_.kI("script");_.sH(function(){var C;if(C=JSON)C=BoY(e.data()),C=_.Yo(JSON.stringify(C).replace(/</g,"\\u003C"));var w=e.data(),K=_.Zd(w.title).trim().length===0,G=!w.publishDate||w.publishDate.trim().length===0,X,J,q,T,Q=!((X=w.thumbnail)==null?0:(J=X.thumbnails)==null?0:J.length)||!((q=w.thumbnail)==null?0:q.thumbnails[0].url)||((T=w.thumbnail)==null?void 0:T.thumbnails[0].url.trim().length)===0;z.value&&C&&!(K||G||Q)&&_.Xg(z.value,C)},"Vy9K7b");
return _.x("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.x("script",{el:z,type:"application/ld+json"}))},"Vo"),"player-microformat-renderer",{props:{data:_.z9}});
}catch(e){_._DumpException(e)}
try{
var e9Y,CAy;_.pIa=function(e){return e.watch.watchWindowSize};
e9Y=function(e,z,C,w){if(e.isLockupToWatchTransitionEnabled){if(z){var K={};K=(K["watch-next-appears"]="player-watch-next-loaded",K);K["lockup-to-watch"]=e.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";e.viewTransitionCoordinator.registerElement(z,K)}C&&(z={},e.viewTransitionCoordinator.registerElement(C,(z["lockup-to-watch"]="below-lockup-to-watch",z["watch-next-appears"]="below-watch-next-loaded",z)));w&&(C={},e.viewTransitionCoordinator.registerElement(w,
(C["watch-next-appears"]="secondary-watch-next-loaded",C)))}};
_.z92=function(e){return _.Yz({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:e}})};
CAy=new _.nN("webWatchNextResponseExtensionData");var KOL=function(e){_.Sn.call(this);var z=this;this.JSC$23754_watchApi=e;this.observer=null;var C=this.JSC$23754_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){w9L(z)});
this.addOnDisposeCallback(function(){z.JSC$23754_watchApi.unsubscribeByKey(C);z.observer&&(z.observer.disconnect(),z.observer=null)});
w9L(this)};
_.U(KOL,_.Sn);var w9L=function(e){var z,C,w,K,G;_.k(function(X){if(X.nextAddress==1){e.observer&&(e.observer.disconnect(),e.observer=null);z=e.JSC$23754_watchApi.getWatchNextResponse();if(!z)return X.return();C=_.r(z,CAy);return((w=C)==null?0:w.enableCreatorChatbot)&&C.creatorChannelId?_.M("enable_creator_chatbot_link_out")?X.yield((0,_.kV4)("NSzT5"),6):X.yield((0,_.kV4)("NSzT5"),5):X.jumpTo(0)}if(X.nextAddress!=6)return K=_.opg,K(C.creatorChannelId),X.jumpTo(0);G=_.GxY;G(C.creatorChannelId);_.E_(X)})};var Sp=function(e){_.Sn.call(this);this.JSC$23758_watchApi=e;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;YmT(this)};
_.U(Sp,_.Sn);var YmT=function(e){_.k(function(z){if(z.nextAddress==1)return z.yield(bm2(e),2);X9g(e);_.E_(z)})},bm2=function(e){var z,C,w,K,G,X,J,q,T;
return _.k(function(Q){if(Q.nextAddress==1)return Q.yield(e.JSC$23758_watchApi.playerApi,2);z=Q.yieldResult;e.JSC$23758_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){JEy(e)});
e.JSC$23758_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){e.isShelfVisible?kx2(e):uN(e)});
C=_.eB().subscribe(function(){e.isTheaterMode=_.VC(_.eB().getState());e.isTheaterMode?uN(e):qmL(e)});
w=e.JSC$23758_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){X9g(e)});
K=function(m){e.onCueRangeEnter(m)};
z.addEventListener("onCueRangeEnter",K);G=function(m){e.onCueRangeExit(m)};
z.addEventListener("onCueRangeExit",G);X=function(){e.isSeeking=!0};
z.addEventListener("SEEK_TO",X);J=function(){e.onSeekComplete()};
z.addEventListener("SEEK_COMPLETE",J);q=function(){e.onAdStart()};
z.addEventListener("onAdStart",q);T=function(){e.onAdComplete()};
z.addEventListener("onAdComplete",T);e.addOnDisposeCallback(function(){C();e.JSC$23758_watchApi.unsubscribeByKey(w);z.removeEventListener("onCueRangeEnter",K);z.removeEventListener("onCueRangeExit",G);z.removeEventListener("SEEK_TO",X);z.removeEventListener("SEEK_COMPLETE",J);z.removeEventListener("onAdStart",q);z.removeEventListener("onAdComplete",T)});
_.E_(Q)})},xFl=function(e){var z,C,w,K,G,X,J,q,T;
return(G=(z=e.contents)==null?void 0:(C=z.twoColumnWatchNextResults)==null?void 0:(w=C.results)==null?void 0:(K=w.results)==null?void 0:K.contents)==null?void 0:(X=G.find(function(Q){var m,a,n;return(m=Q.itemSectionRenderer)==null?void 0:(a=m.contents)==null?void 0:(n=a[0])==null?void 0:n.shoppingTimelyShelfViewModel}))==null?void 0:(J=X.itemSectionRenderer)==null?void 0:(q=J.contents)==null?void 0:(T=q[0])==null?void 0:T.shoppingTimelyShelfViewModel},X9g=function(e){var z;
_.k(function(C){if(C.nextAddress==1)return(z=e.JSC$23758_watchApi.getWatchNextResponse())?C.yield(JEy(e),2):C.return();e.shoppingTimelyShelfViewModel=xFl(z);Tot(e);$Fa(e);_.E_(C)})},Tot=function(e){var z,C=(z=e.shoppingTimelyShelfViewModel)==null?void 0:z.offerIdToVariants;
C&&(z=C.filter(function(w){return w.key&&w.value}).map(function(w){return[w.key,
w.value]}),e.variantsMap=new Map(z))},$Fa=function(e){var z,C,w,K,G,X;
_.k(function(J){if(J.nextAddress==1)return(C=(z=e.shoppingTimelyShelfViewModel)==null?void 0:z.cueRanges)?J.yield(e.JSC$23758_watchApi.playerApi,2):J.return();w=J.yieldResult;e.cueRanges=C;K=_.b(C);for(G=K.next();!G.done;G=K.next())X=G.value,X.startTime!==void 0&&X.endTime!==void 0&&X.id!==void 0&&w.addCueRange("shopping_timely_shelf"+X.id,lfa(X.startTime),lfa(X.endTime));_.E_(J)})},lfa=function(e){return Number(e.seconds||0)+(e.nanos||0)/1E9};
Sp.prototype.onCueRangeEnter=function(e){if(e.startsWith("shopping_timely_shelf")&&(this.activeCueId=e,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){e=e.substring(21);var z,C,w=(z=this.variantsMap)==null?void 0:(C=z.get(e))==null?void 0:C.shelf;w&&(this.JSC$23758_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",w),kx2(this))}};
Sp.prototype.onCueRangeExit=function(e){e.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||uN(this))};
Sp.prototype.onSeekComplete=function(){this.isSeeking=!1;qmL(this)};
var kx2=function(e){e.shoppingTimelyShelfViewModel&&(e.isShelfVisible=!0,_.G4.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},uN=function(e){e.shoppingTimelyShelfViewModel&&e.isShelfVisible&&(e.isShelfVisible=!1,_.G4.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},JEy=function(e){var z,C,w,K,G;
return _.k(function(X){if(X.nextAddress==1)return X.yield(e.JSC$23758_watchApi.playerApi,2);z=X.yieldResult;if(e.cueRanges)for(C=_.b(e.cueRanges),w=C.next();!w.done;w=C.next())K=w.value,K.id&&(G="shopping_timely_shelf"+K.id,z.removeCueRange(G));e.JSC$23758_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});uN(e);e.shoppingTimelyShelfViewModel=void 0;e.cueRanges=void 0;e.variantsMap=void 0;e.isSeeking=!1;e.activeCueId=void 0;_.E_(X)})};
Sp.prototype.onAdStart=function(){this.isAdPlaying=!0;uN(this)};
Sp.prototype.onAdComplete=function(){this.isAdPlaying=!1;qmL(this)};
var qmL=function(e){if(e.activeCueId)e.onCueRangeEnter(e.activeCueId);else uN(e)};var MQC=function(e){_.Sn.call(this);var z=this;this.JSC$23765_watchApi=e;e=_.K3(_.eB(),_.YI8,function(){Q5w(z)});
this.addOnDisposeCallback(e);e=_.K3(_.eB(),_.pIa,function(){Q5w(z)});
this.addOnDisposeCallback(e);mFw(this);afY(this);npa()};
_.U(MQC,_.Sn);var mFw=function(e){var z=function(w){_.eB().dispatch(_.gOT(w.matches))},C=window.matchMedia("(max-width: "+(999+_.cz())+"px)");
C.addListener(z);e.addOnDisposeCallback(function(){C.removeListener(z)});
z(C)},afY=function(e){e.JSC$23765_watchApi.registerActionHandler("yt-window-resized",function(){npa()});
e.addOnDisposeCallback(function(){e.JSC$23765_watchApi.unregisterActionHandler("yt-window-resized")})},npa=function(){var e=_.Mp();
_.eB().dispatch(_.Yz({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:e.width,height:e.height}}}))},Q5w=function(e){var z;
_.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$23765_watchApi.playerApi,2);z=C.yieldResult;z.setSize(NaN,NaN);_.E_(C)})};var rE2=function(e){_.Sn.call(this);var z=_.lh().resolve(_.b_);e9Y(z,e.getElement("PLAYER_CONTAINER"),e.getElement("BELOW_THE_PLAYER"),e.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var C=e.getElement("PLAYER_CONTAINER"),w=e.getElement("BELOW_THE_PLAYER"),K=e.getElement("SECONDARY");z.isLockupToWatchTransitionEnabled&&(C&&_.BF(z.viewTransitionCoordinator,C),w&&_.BF(z.viewTransitionCoordinator,w),K&&_.BF(z.viewTransitionCoordinator,K))})};
_.U(rE2,_.Sn);_.dv=function(e){_.X_.call(this);var z=this;this.rootElement=e;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(C){z.initOrDisposeActiveModules(C)}));
this.onAttached()};
_.U(_.dv,_.X_);_.Y=_.dv.prototype;_.Y.getRoot=function(){return this.rootElement};
_.Y.getElement=function(e){return this.rootElement.getElement(e)};
_.Y.setPlayerResponse=function(e){this.playerResponse=e;this.publish("PLAYER_RESPONSE_UPDATED",e)};
_.Y.getPlayerResponse=function(){return this.playerResponse};
_.Y.setWatchNextResponse=function(e){this.watchNextResponse===e?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=e,this.publish("WATCH_NEXT_RESPONSE_UPDATED",e))};
_.Y.getWatchNextResponse=function(){return this.watchNextResponse};
_.Y.registerActionHandler=function(e,z){var C=this;if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.YI(_.G4.getInstance(),(w[e]=z,w),this.getRoot())}else this.actionHandlers.has(e)||(this.actionHandlers.set(e,[]),w={},_.YI(_.G4.getInstance(),(w[e]=function(){var K=_.yL.apply(0,arguments);return(C.actionHandlers.get(e)||[]).map(function(G){return G.apply(null,_.s_(K))})},w),this.getRoot())),this.actionHandlers.get(e).push(z)};
_.Y.unregisterActionHandler=function(e){if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var z={};_.XL(_.G4.getInstance(),(z[e]=!0,z),this.getRoot())}else(z=this.actionHandlers.get(e))?(z.pop(),z.length===0&&(z={},_.XL(_.G4.getInstance(),(z[e]=!0,z),this.getRoot()),this.actionHandlers.delete(e))):_.AX(new _.uh("Attempted to unregister an action handler which is not registered.",e))};
_.Y.addPageDisposeJob=function(e){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.L7k(this.rootElement.pageDisposeJobs,e)};
_.Y.removePageDisposeJob=function(e){this.rootElement.pageDisposeJobs&&_.D8(this.rootElement.pageDisposeJobs,e)};
_.Y.dispatchEvent=function(e,z){_.pi(this.rootElement,e,z)};
_.Y.provideRenderingData=function(e,z){this.rootElement.provideRenderingData(e,z)};
_.Y.scrollWatchTo=function(e,z){var C;(C=this.watchScrollManager)==null||C.scrollWatchTo(e,z)};
_.Y.focusOnPlayer=function(){var e=this.getElement("PLAYER");_.T0(e,function(){if(e&&e.firstElementChild){var z=e.querySelector(".html5-video-player");z&&(_.VX(_.lh().resolve(_.UT)),z.focus())}else _.AX(Error("mp"))})};
_.Y.subscribeToActiveChanged=function(e,z){z=z===void 0?!0:z;var C=_.K3(_.eB(),_.ipw,function(w){e(w)});
z&&e(_.ipw(_.eB().getState()));return C};
_.Y.isActive=function(){return _.ipw(_.eB().getState())};
_.Y.onAttached=function(){var e=_.M("external_fullscreen");_.M("use_unified_flag_accessor")&&(e=_.lh().resolve(_.ARW).retriever.getFlag(_.VxX));(e||_.cR("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Hm2=function(e){return e.getRoot().is==="ytd-watch-flexy"||e.getRoot().is==="ytd-watch-grid"},Dx=function(e){return e.getRoot().is==="ytd-watch-fixie"};
_.dv.prototype.initPersistentModules=function(){if(Dx(this)||Hm2(this)&&_.M("kevlar_watch_flexy_theater_manager")){var e=new _.HWY(this);_.I4(this,e)}e=new _.k8g(this);_.I4(this,e);e=new _.Le(this);_.I4(this,e);e=new _.G82(this);_.I4(this,e);e=new _.Vf(this);_.I4(this,e);e=new _.hs(this);_.I4(this,e);if(Dx(this)||Hm2(this)&&_.M("kevlar_watch_flexy_playlist_manager"))e=new _.s3Y(this),_.I4(this,e);_.M("web_thumbnail_to_watch_transition")&&(e=new rE2(this),_.I4(this,e))};
_.dv.prototype.initOrDisposeActiveModules=function(e){e?(this.watchScrollManager=new _.fe(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.ILg(this)),_.M("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Sp(this)),this.activeModules.push(new _.rO2(this)),Dx(this)&&this.activeModules.push(new MQC(this)),this.activeModules.push(new _.cKj(this)),this.activeModules.push(new _.aL2(this)),(Dx(this)||_.M("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.W6Y(this)),this.activeModules.push(new _.OPa(this)),(Dx(this)||_.M("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.ZPL(this)),(Dx(this)||_.M("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.uNy(this)),_.o3("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.sgC(this),this.activeModules.push(this.watchCinematicManager)),_.M("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.fLj(this)),_.M("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.bP2(this)),e=_.M("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.M("kevlar_watch_flexy_comments_manager")&&!e&&this.activeModules.push(new _.zdg(this)),_.M("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.i4g(this)),this.activeModules.push(new _.LJj(this)),this.activeModules.push(new _.PEY(this)),_.M("web_enable_timely_actions")&&this.activeModules.push(new _.FJC(this)),_.M("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.wJl(this)),_.M("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ju2(this)),_.M("web_fullscreen_components")&&this.activeModules.push(new _.O4T(this)),_.M("web_player_rtr_ctrls")&&this.activeModules.push(new _.o5C(this)),(_.M("enable_creator_chatbot")||_.M("enable_creator_chatbot_link_out"))&&this.activeModules.push(new KOL(this))):(_.JA(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.dv.prototype.disposeInternal=function(){_.X_.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.lB.Object.defineProperties(_.dv.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Ohw,zz,E2g,Faj,fHy,SvL,Vng,uUg;Ohw=function(){var e=_.ld();e.info||(e.info={});return e.info};
zz=function(e){return Math.round(_.nK()+e)};
E2g=function(){var e;if(_.M("csi_use_performance_navigation_timing")){var z,C,w,K=_.aS==null?void 0:(e=_.aS.getEntriesByType)==null?void 0:(z=e.call(_.aS,"navigation"))==null?void 0:(C=z[0])==null?void 0:(w=C.toJSON)==null?void 0:w.call(C);K?(K.requestStart=zz(K.requestStart),K.responseEnd=zz(K.responseEnd),K.redirectStart=zz(K.redirectStart),K.redirectEnd=zz(K.redirectEnd),K.domainLookupEnd=zz(K.domainLookupEnd),K.connectStart=zz(K.connectStart),K.connectEnd=zz(K.connectEnd),K.responseStart=zz(K.responseStart),
K.secureConnectionStart=zz(K.secureConnectionStart),K.domainLookupStart=zz(K.domainLookupStart),K.isPerformanceNavigationTiming=!0,e=K):e=_.aS.timing}else e=_.M("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.aS.timing)):_.aS.timing;return e};
Faj=function(){if(_.aS.getEntriesByType){var e=_.aS.getEntriesByType("paint");if(e=_.OE(e,function(C){return C.name==="first-paint"}))return zz(e.startTime)}var z;
_.M("csi_use_performance_navigation_timing")?z=_.aS.getEntriesByType("first-paint")[0].startTime:z=_.aS.timing.msFirstPaint;return z?Math.max(0,z):0};
fHy=function(){var e=window.location.protocol,z=_.aS.getEntriesByType("resource");z=_.Q8(z,function(C){return C.name.indexOf(e+"//fonts.gstatic.com/s/")===0});
(z=Vng(z,function(C,w){return w.duration>C.duration?w:C}))&&z.startTime>0&&z.responseEnd>0&&(_.U6("wffs",zz(z.startTime)),_.U6("wffe",zz(z.responseEnd)))};
SvL=function(e,z){e=document.querySelector(e);if(!e)return!1;var C="",w=e.nodeName;w==="SCRIPT"?(C=e.src,C||(C=e.getAttribute("data-timing-href"))&&(C=window.location.protocol+C)):w==="LINK"&&(C=e.href);_.ov(document)&&e.setAttribute("nonce",_.ov(document));return C?(e=_.aS.getEntriesByName(C))&&e[0]&&(e=e[0],C=_.nK(),_.U6("rsf_"+z,C+Math.round(e.fetchStart)),_.U6("rse_"+z,C+Math.round(e.responseEnd)),e.transferSize!==void 0&&e.transferSize===0)?!0:!1:!1};
_.dGY=function(e,z){_.Z_(function(){_.mm("").info.actionType=e;z&&_.g1("TIMING_AFT_KEYS",z);_.g1("TIMING_ACTION",e);var C=_.BUL(_.j5("TIMING_INFO",{}));Object.keys(C).length>0&&_.vf(C);C={isNavigation:!0,actionType:_.hg7(_.j5("TIMING_ACTION"))};var w=_.j5("PREVIOUS_ACTION");w&&(C.previousAction=_.hg7(w));if(w=_.j5("CLIENT_PROTOCOL"))C.httpProtocol=w;if(w=_.j5("CLIENT_TRANSPORT"))C.transportProtocol=w;(w=_.Pr())&&w!=="UNDEFINED_CSN"&&(C.clientScreenNonce=w);w=_.sYh();if(w===1||w===-1)C.isVisible=!0;
w=_.HAo().loadType==="cold";var K=Ohw();w||(w=K.yt_lt==="cold");if(w){C.loadType="cold";w=Ohw();K=E2g();var G=_.nK(),X=_.j5("CSI_START_TIMESTAMP_MILLIS",0);X>0&&!_.M("embeds_web_enable_csi_start_override_killswitch")&&(G=X);G&&(_.U6("srt",K.responseStart),w.prerender!==1&&_.fl1(G));w=Faj();w>0&&_.U6("fpt",w);w=E2g();w.isPerformanceNavigationTiming&&_.vf({performanceNavigationTiming:!0},void 0);_.U6("nreqs",w.requestStart,void 0);_.U6("nress",w.responseStart,void 0);_.U6("nrese",w.responseEnd,void 0);
w.redirectEnd-w.redirectStart>0&&(_.U6("nrs",w.redirectStart,void 0),_.U6("nre",w.redirectEnd,void 0));w.domainLookupEnd-w.domainLookupStart>0&&(_.U6("ndnss",w.domainLookupStart,void 0),_.U6("ndnse",w.domainLookupEnd,void 0));w.connectEnd-w.connectStart>0&&(_.U6("ntcps",w.connectStart,void 0),_.U6("ntcpe",w.connectEnd,void 0));w.secureConnectionStart>=_.nK()&&w.connectEnd-w.secureConnectionStart>0&&(_.U6("nstcps",w.secureConnectionStart,void 0),_.U6("ntcpe",w.connectEnd,void 0));_.aS&&"getEntriesByType"in
_.aS&&fHy();w=[];if(document.querySelector&&_.aS&&_.aS.getEntriesByName)for(var J in uUg)uUg.hasOwnProperty(J)&&(K=uUg[J],SvL(J,K)&&w.push(K));if(w.length>0)for(C.resourceInfo=[],J=_.b(w),w=J.next();!w.done;w=J.next())C.resourceInfo.push({resourceCache:w.value})}_.vf(C);C=_.Qu();C.preLoggedGelInfos||(C.preLoggedGelInfos=[]);J=C.preLoggedGelInfos;C=_.vmk();w=void 0;for(K=0;K<J.length;K++)if(G=J[K],G.loadType){w=G.loadType;break}if(_.HAo().loadType==="cold"&&(C.loadType==="cold"||w==="cold")){w=_.UBg();
K=_.Qu();K=K.gelTicks?K.gelTicks:K.gelTicks={};for(var q in w)if(!(q in K))if(typeof w[q]==="number")_.U6(q,_.IS(q));else if(_.M("log_repeated_ytcsi_ticks"))for(G=_.b(w[q]),X=G.next();!X.done;X=G.next())X=X.value,_.U6(q.slice(1),X);q={};w=!1;J=_.b(J);for(K=J.next();!K.done;K=J.next())w=K.value,_.OX(C,w),_.OX(q,w),w=!0;w&&_.vf(q)}_.gmN(!0);q=_.j5("TIMING_ACTION");_.pd("ytglobal.timingready_")&&q&&_.Ct1()&&_.tO1()&&_.iAE()})()};
Vng=function(e,z){return Array.prototype.reduce.call(e,z,{duration:0})};
uUg={'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 DG2={};DG2.YtVisibilityRootBehavior=[_.h3a.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.XU(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.j5("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var e=_.j5("INNERTUBE_CLIENT_NAME")!=="WEB";_.M("kevlar_use_vimio_behavior")&&e&&_.pOY()}}];_.CF={};_.CF.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(e){e.detail.contextProvider=this;e.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
DG2.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.cj();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(e){var z=this;this.pageCount+=1;_.M("kevlar_use_vimio_behavior")&&(_.j5("INNERTUBE_CLIENT_NAME")==="WEB"?_.c5.addJob(function(){z.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(e)},
loadPage_:function(e){this.data=e},
ytPageBehaviorActiveObserver_:function(e){var z=this;_.M("kevlar_use_vimio_behavior")&&(e?_.j5("INNERTUBE_CLIENT_NAME")==="WEB"?_.c5.addJob(function(){z.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(e){if(!this.setScrollTopJobId_){var z=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){z.setScrollTopJobId_=0;var C=_.lh().resolve(_.$B(_.UT));C&&_.VX(C);this.getPageScrollingElement().scrollTop=e}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.BT(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var hvw;var ed=function(){var e=_.V.apply(this,arguments)||this;e.playerListenerConfig=null;e.actionMap={"yt-show-watch-page-survey":"openSurvey"};return e};
_.U(ed,_.V);_.Y=ed.prototype;_.Y.dataChanged=function(){var e=this,z=_.ox();z&&z.getPlayerPromise().then(function(w){e.maybeRemovePlayerListeners(w)});
var C=this.data&&this.data.survey;C&&((C=(C=C.singleOptionSurveyRenderer||C.checkboxSurveyRenderer||C.multiStageSurveyRenderer)&&C.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(z,C):this.openSurvey())};
_.Y.triggerWatchPageSurvey=function(e,z){var C=this,w,K,G,X,J,q,T,Q,m;return _.k(function(a){if(a.nextAddress==1)return e?a.yield(e.getPlayerPromise(),2):a.return();C.player=a.yieldResult;if(!C.player)return a.return();w={};K=_.b(z);for(G=K.next();!G.done;G=K.next())X=G.value,J=_.b(C.createEventListenerPair(X)),q=J.next().value,T=J.next().value,Q=q,m=T,Q&&m&&(w[Q]=m,C.ytPlayerListenerBehavior.listenToPlayerEvent(C.player,Q,m));C.playerListenerConfig=w;_.E_(a)})};
_.Y.createEventListenerPair=function(e){var z=e.playbackEventTrigger;return z?this.handlePlaybackTrigger(z):(e=e.watchTimeTrigger)?this.handleWatchTimeTrigger(e):[void 0,void 0]};
_.Y.handleWatchTimeTrigger=function(e){var z=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var C=e.videoWatchFraction,w=e.watchTimeSec;return w&&C?["onVideoProgress",function(){z.player&&z.isWatchTimeConditionMet(z.player,C,w)&&z.showSurvey()}]:[void 0,
void 0]};
_.Y.isWatchTimeConditionMet=function(e,z,C){var w=e.getProgressState(),K=w.current-this.lastKnownPlaybackPosition;K<5&&(this.accumulatedMediaTime+=K);this.lastKnownPlaybackPosition=w.current;w=Math.round(this.accumulatedMediaTime/w.duration*1E3)/1E3;return e.getPresentingPlayerType&&e.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>C||w>z)};
_.Y.handlePlaybackTrigger=function(e){var z=this;e=e.playbackEvent;if(e==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var C="onStateChange";var w=function(K){K===0&&z.showSurvey()}}else e==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(C="onVideoProgress",w=function(K){z.player&&z.player.getPresentingPlayerType&&z.player.getPresentingPlayerType()===1&&K&&z.showSurvey()}):e==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(C="onAdEnd",w=this.showSurvey);
return[C,w]};
_.Y.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.Y.openSurvey=function(){var e=this,z=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.VLW(!!z));_.c5.addJob(function(){e.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:z}})},0,0)};
_.Y.maybeRemovePlayerListeners=function(e){if(this.playerListenerConfig){for(var z=_.b(Object.keys(this.playerListenerConfig)),C=z.next();!C.done;C=z.next())C=C.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(e,C,this.playerListenerConfig[C]);this.playerListenerConfig=null}};
ed.prototype.dataChanged=ed.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],ed.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],ed.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ed.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],ed.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ed.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],ed.prototype,"playerListenerConfig",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],ed.prototype,"lastKnownPlaybackPosition",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],ed.prototype,"accumulatedMediaTime",void 0);_.d([_.F(),_.B("design:type",Object)],ed.prototype,"player",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ed.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ed);
_.u(ed,"ytd-survey-trigger-renderer",function(){if(hvw!==void 0)return hvw;var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return hvw=e},{mode:1});
}catch(e){_._DumpException(e)}
try{
var rE5;_.x9=function(e){var z=document.createElement("link");_.T6(z,e,"stylesheet");document.head.appendChild(z)};
_.TQ=function(e,z){var C,w;return _.k(function(K){C=document.createElement("div");C.id=e.id;e.className&&(C.className=e.className);w=e.element;if(!w)throw Error("hk");if(e.location==="prepend")w.prepend(C);else if(e.location==="appendChild")w.appendChild(C);else if(e.location==="after")w.after(C);else throw Error("ik");return K.return(_.ii(C,z,"mj"))})};
_.$9=function(e){var z;return _.k(function(C){(z=document.getElementById(e))&&z.remove();_.E_(C)})};
_.lx=function(e,z){var C=document.querySelector(e);C?z(C):setTimeout(function(){_.lx(e,z)},1E3)};
_.Hm5=function(e,z,C){var w;_.k(function(K){if(K.nextAddress==1)return(w=document.getElementById(e))?K.jumpTo(2):K.yield(rE5(e,z,C),2);if(w=document.getElementById(e))w.style.display="block";_.E_(K)})};
rE5=function(e,z,C){return _.k(function(w){return w.return(new Promise(function(K){_.lx("div #panels",function(G){_.TQ({element:G,location:"appendChild",id:e,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+C},z);K()})}))})};_.Q0=_.f(function(e){var z=e.text;var C=e.onClick;var w=e.color;var K=e.backgroundColor;var G=e.buttonSize;var X=e.disabled;var J=e.iconName;var q=e.iconSize;var T=e.className;var Q=e.iconClassName;e=e.ariaLabel;var m=_.T9(function(n){C(n)}),a={};
return _.x("button",{class:_.qT("ytpStandardButtonsHost",(a.ytpStandardButtonsLarge=function(){return(G==null?void 0:G())==="large"},a),T),
"on:click":m,style:_.QC({color:w,"background-color":K}),disabled:X,"aria-label":e},_.x(_.l,{cond:J,then:function(){return _.x(_.mB,{className:_.qT("ytpStandardButtonsIconContainer",Q),icon:J,size:q})}}),z)},"lj");_.UFY=_.f(function(e){var z,C,w={};return _.x("div",{class:_.qT("ytprototypesEngagementPanelComponentHost",(w.ytprototypesEngagementPanelComponentHostMweb=e.isMweb,w),e.className),id:e.id},_.x("div",{class:_.qT("ytprototypesEngagementPanelComponentEngagementPanelHeader",e.headerClassName)},_.x("div",null,e.header()),_.x("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.x("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(z=e.HeaderButton)==null?void 0:z.call(e)),
_.x(_.Q0,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var K;(K=e.onHide)==null||K.call(e);var G;if((G=e.preventDefault)==null||!G.call(e))if(K=e.id(),K=document.getElementById(K))K.style.display="none"}}))),_.x("div",{class:_.qT("ytprototypesEngagementPanelComponentEngagementPanelContent",e.contentClassName),
style:function(){var K,G;return"height: "+(((K=e.height)==null?0:K.call(e))||((G=e.isMweb)==null?0:G.call(e))?"100%":"800px")+";"}},e.content()),_.x("div",null,(C=e.Footer)==null?void 0:C.call(e)))},"nj");
}catch(e){_._DumpException(e)}
try{
var n2C=new _.nN("replaceFeedContentAction");var Mn2;var rAy;var HhC=function(){return _.V.apply(this,arguments)||this};
_.U(HhC,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],HhC.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],HhC.prototype,"data",void 0);_.d([_.SL({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],HhC);
_.u(HhC,"ytd-sub-feed-option-renderer",function(){if(rAy!==void 0)return rAy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return rAy=e},{mode:1});var UGT;var gl=function(){return _.V.apply(this,arguments)||this};
_.U(gl,_.V);gl.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gl.prototype,"ytRendererStamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gl.prototype,"data",void 0);_.d([_.SL({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],gl);
_.u(gl,"ytd-sub-feed-selector-renderer",function(){if(UGT!==void 0)return UGT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return UGT=e},{mode:1});var jH=function(){return _.V.apply(this,arguments)||this};
_.U(jH,_.V);
jH.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}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jH.prototype,"data",void 0);_.d([_.SL({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],jH);
_.u(jH,"ytd-browse-feed-actions-renderer",function(){if(Mn2!==void 0)return Mn2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Mn2=e},{mode:1});var v2T;var IHt;var y6=function(){return _.V.apply(this,arguments)||this};
_.U(y6,_.V);y6.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],y6.prototype,"data",void 0);_.d([_.SL({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],y6);
_.u(y6,"ytd-mini-channel-renderer",function(){if(IHt!==void 0)return IHt;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return IHt=e},{mode:1});var WaC;var cx=function(){return _.V.apply(this,arguments)||this};
_.U(cx,_.V);cx.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cx.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],cx);
_.u(cx,"ytd-vertical-channel-section-renderer",function(){if(WaC!==void 0)return WaC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return WaC=e},{mode:1});var Ao=function(){return _.V.apply(this,arguments)||this};
_.U(Ao,_.V);Ao.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ao.prototype,"data",void 0);_.d([_.SL({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Ao);
_.u(Ao,"ytd-browse-secondary-contents-renderer",function(){if(v2T!==void 0)return v2T;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return v2T=e},{mode:1});var PZ2;var Za=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};e.notActive=!1;e.isConstrainedList=!1;e.marginSettings=0;return e};
_.U(Za,_.V);_.Y=Za.prototype;
_.Y.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]]",marginSettings:"[[marginSettings]]"},matcher:function(e){var z;return(e==null?void 0:(z=e.webComponentHint)==null?void 0:z.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.Y.getPath=function(e,z){var C="data.tabs.#"+z+".";e.tabs[z].tabRenderer?C+="tabRenderer.":e.tabs[z].expandableTabRenderer&&(C+="expandableTabRenderer.");return C+"content.sectionListRenderer"};
_.Y.computeDisplayedContent=function(e){this.unlinkPaths("content");if(e&&e.tabs)for(var z=e.tabs.length,C=0;C<z;C++){var w=e.tabs[C].tabRenderer||e.tabs[C].expandableTabRenderer;if(w.selected&&w.content)return this.linkPaths("content",this.getPath(e,C)),w.content}return null};
_.Y.computeHasSecondaryColumnData=function(e){return!!e&&!!e.secondaryContents};
_.Y.onRetrieveLocation=function(e,z){z.locationRetrieved(z.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);e.stopPropagation()};
_.Y.onYtServiceRequestSent=function(e,z){_.M("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(z)};
_.Y.onYtServiceRequestCompleted=function(e,z){_.M("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(z)};
_.Y.onReplaceFeedContentAction=function(e){if(!_.M("replace_feed_content_action_killswitch")&&!this.notActive){var z;(e=(z=_.r(e,n2C))==null?void 0:z.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(e)}};
_.Y.handleServiceRequestActions=function(e){if(e=e.actions){e=_.b(e);for(var z=e.next();!z.done;z=e.next()){z=z.value;var C=void 0;((C=_.r(z,n2C))==null?0:C.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.r(z,n2C).items)}}};
Za.prototype.onYtServiceRequestCompleted=Za.prototype.onYtServiceRequestCompleted;Za.prototype.onYtServiceRequestSent=Za.prototype.onYtServiceRequestSent;Za.prototype.onRetrieveLocation=Za.prototype.onRetrieveLocation;_.d([_.W(_.MC),_.B("design:type",Object)],Za.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Za.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Za.prototype,"data",void 0);_.d([_.F({computed:"computeDisplayedContent(data)"}),_.B("design:type",Object)],Za.prototype,"content",void 0);
_.d([_.F({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Za.prototype,"hasSecondaryColumnData",void 0);_.d([_.F({value:function(){return window.outerHeight>1024?3:2}}),
_.B("design:type",Number)],Za.prototype,"initialCount",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Za.prototype,"pageSubtype",void 0);_.d([_.nP("ytd-section-list-renderer"),_.B("design:type",Object)],Za.prototype,"listRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],Za.prototype,"notActive",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Za.prototype,"isConstrainedList",void 0);
_.d([_.F(),_.B("design:type",String)],Za.prototype,"responsiveSizing",void 0);_.d([_.F(),_.B("design:type",Number)],Za.prototype,"marginSettings",void 0);_.d([_.Qi("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Za.prototype,"onRetrieveLocation",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],Za.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],Za.prototype,"onYtServiceRequestCompleted",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Za);
_.u(Za,"ytd-two-column-browse-results-renderer",function(){if(PZ2!==void 0)return PZ2;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return PZ2=e},{mode:2});
}catch(e){_._DumpException(e)}
try{
var JqL=function(e){if((e==null?void 0:e.value)===void 0||e==null||!e.unit)return"initial";a:{switch(e.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var z="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":z="%";break a}z=void 0}return z?""+e.value+z:"initial"};_.KU(_.f(function(e){var z=e.data;e=_.b(_.II(!1,void 0,"VotqNe"));var C=e.next().value,w=e.next().value;_.sg(function(){_.G4.getInstance().triggerAction("yt-request-timely-shelf-state")});
var K=_.hG(function(){var T,Q,m=(T=_.r(z().rendererContext,_.MF))==null?void 0:(Q=T.loggingDirectives)==null?void 0:Q.trackingParams;if(m)return _.v9(m)},void 0,"AvMXxb");
_.YI(_.G4.getInstance(),{"yt-hide-shopping-timely-shelf":function(){w(!1);var T=_.Pr(),Q=K();T&&Q&&_.tg(T,[Q])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){w(!0);var T=_.Pr(),Q=K();T&&Q&&_.Bf(T,[Q])})}});
var G=function(){var T;return(T=z().image)==null?void 0:T.image},X=function(){var T,Q;
return!!((T=G())==null?0:(Q=T.sources)==null?0:Q.some(function(m){var a;return!!(m==null?0:(a=m.clientResource)==null?0:a.imageName)}))},J=function(){var T;
return((T=z().image)==null?void 0:T.height)||40},q=function(){var T;
return(T=z().image)==null?void 0:T.backgroundColor};
e={};return _.x("yt-shopping-timely-shelf-content-view-model",{el:_.ej(_.Dh(function(){return z().rendererContext})),
class:_.qT("ytShoppingTimelyShelfContentViewModelHost",(e.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(z().image||z().avatar||z().line1)&&C()},e)),
style:_.QC({"--shopping-timely-shelf-content-padding-top":function(){var T;return JqL((T=z().padding)==null?void 0:T.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var T;return JqL((T=z().padding)==null?void 0:T.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var T;return JqL((T=z().padding)==null?void 0:T.start)},
"--shopping-timely-shelf-content-padding-end":function(){var T;return JqL((T=z().padding)==null?void 0:T.end)},
"--yt-shopping-timely-shelf-background-color":function(){return z().backgroundColor!==void 0?_.FN(z().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var T,Q;return((Q=(T=z().image)==null?void 0:T.cornerRadius)!=null?Q:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return q()!==void 0?_.FN(q()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var T;return(((T=z().image)==null?void 0:T.width)||40)+"px"}})},_.x(_.l,{cond:G,
then:function(T){var Q={};return _.x(_.Zf,{preserveHeight:!0,preserveWidth:!0,height:J,data:T,alt:"",className:_.qT("ytShoppingTimelyShelfContentViewModelImage",(Q.ytShoppingTimelyShelfContentViewModelIcon=X,Q))})}}),_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO}),_.x("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.x(_.PF,{data:function(){return z().line1}},{shoppingContentLineViewModel:function(T){return _.x(_.Eb,{data:T.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.x(_.PF,{data:function(){return z().line2}},{shoppingContentLineViewModel:function(T){return _.x(_.Eb,{data:T.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.x("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.x(_.PF,{data:function(){var T;
return(T=z().button)!=null?T:[]}},{buttonViewModel:function(T){var Q=T.data;
return _.x(_.iz,{data:Q,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(m){Q().onTap&&m.stopPropagation()}})}})))},"Wo"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.vh}});_.k9t={};
_.k9t.YtdWatchBehavior=[_.c.YtRendererBehavior,_.P$.YtPlayerListenerBehavior,_.Fr.YtRendererstamperBehavior,_.ch.YtActionHandlerBehavior,_.CF.YtPageBehavior,_.y5.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.cR("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.M("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 _.cR("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.M("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.n0("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.n0("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.M("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.M("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.M("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.M("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("swatcheroo_enable_ghost_cards")||_.M("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.M("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(e,z,C){return e&&(z||!C)},
computeShowGhostRelated_:function(e,z,C){return e&&(z||!C)},
monitorScroll:!0,configureRendererStamper:function(){var e={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.jb(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.jb(["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"||_.M("swa_prov_panels_ks")?e.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(e.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},e.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return e},
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 e=this;this.watchController=void 0;this.pageDisposeJobs=[function(){e.showMetadataPlaceholder_()},
function(){_.M("web_watch_dont_clear_comments")||e.clearComments_()},
function(){e.clearPlayerAds_()},
function(){e.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=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;_.M("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.M("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.cEw(function(){return _.K7(e)},this.hostElement);
this.pageDisposeJobs.push(function(){e.youThereManager_.reset()});
_.M("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){e.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.fr;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.M("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));_.M("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lE(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(e){e&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:e}),e.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(e){_.M("kevlar_watch_flexy_theater_manager")&&(this.theater=e,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(e){!_.M("kevlar_watch_while_v2")&&!_.M("web_watch_pip")||e||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(e){this.active!==void 0&&(this.fullscreen=e,_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(e){this.active!==void 0&&(_.pi(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(e>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(e){this.initCsi_();this.updatePageData_(e)},
updatePageData_:function(e){var z=this;if(e)if(this.data===e){this.onPageLoadWithSameData_();var C;(C=this.watchController)==null||C.setWatchNextResponse(this.data)}else this.data=e;this.playlist&&_.Pf({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.hg("nw");this.loading=!1;_.Dz(_.c5,function(){z.initDclkstatus_();var w,K=((w=z.player)==null?void 0:w.getVideoData().cpn)||"";_.FOY(function(G,X){_.BOf(G,X,K)})})},
onPageLoadWithSameData_:function(){_.M("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 e=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!e);this.set("loadingData.playlistLoading",e&&e!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),e=this.watchNextSkeletonEl_.firstElementChild;e;)e.classList.remove("hidden"),e=e.nextElementSibling;if(_.M("kevlar_watch_frame0_loading_state")){var z,C,w;e=(z=this.loadingData)==null?void 0:(C=z.endpoint)==null?void 0:(w=C.watchEndpoint)==null?void 0:w.videoId;var K;e&&(K="https://i.ytimg.com/vi/"+e+"/frame0.jpg");_.XC(this.hostElement).querySelector("#player").style.backgroundImage=K?"url("+K+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var e=_.XC(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&e&&(e.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var z,C;(C=(z=this.watchMetadata).updateSentimentBarWidth)==
null||C.call(z);var w,K;(K=(w=this.watchMetadata).resize)==null||K.call(w)}_.M("kevlar_watch_frame0_loading_state")&&(_.XC(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(e){var z=_.XC(this.hostElement).querySelector(e);z?_.Aw(z,!1):_.AX(new _.uh("Overscroll monitor not found for component: ",e))},
removeSplitScrollMouseTrap:function(e){var z=_.XC(this.hostElement).querySelector(e);z?_.ZP(z):_.AX(new _.uh("Disposal component for  overscroll monitoring not found: ",e))},
onLoadingChanged_:function(e){e?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.M("web_thumbnail_to_watch_transition")&&!_.mEq||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.M("web_thumbnail_to_watch_transition")&&!_.mEq||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(e){var z=this;e?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.c5.addLowPriorityJob(function(){z.onWindowResized_(_.Mp(!0))})},
updateTheaterModeState_:function(e){if(!_.M("kevlar_watch_flexy_theater_manager")){e=e||this.fullWindowMode_;if(this.theater!==void 0||e)this.theater=e;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();e&&_.Bag()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var e=this.fullBleedPlayer?_.XC(this.hostElement).querySelector("#player-full-bleed-container"):_.XC(this.hostElement).querySelector("#player-container-inner");var z=this.getPlayerContainer(),C=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip");z.parentElement!==e&&(C&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.K7(this).appendTo(e,z))},
updateErrorScreenLocation:function(){var e=_.XC(this.hostElement).querySelector("#error-screen"),z=this.fullBleedPlayer?_.XC(this.hostElement).querySelector("#player-full-bleed-container"):_.XC(this.hostElement).querySelector("#player");e.parentElement!==z&&z.appendChild(e)},
deactivateMiniplayerAndResetPlayer:function(){var e=this;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.lh().resolve(_.gh).deactivate(),2);e.updatePlayerLocation();_.E_(z)})},
updateCinematicsLocation:function(){var e=this.getElement("CINEMATICS");if(e){var z=this.getCinematicsLocationContainer();e.parentElement!==z&&z.appendChild(e)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.XC(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.XC(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(e,z,C){var w=document.documentElement.hasAttribute("dark"),K=!w&&this.cinematicLightTheme;return C||e&&w||z&&w||(z||e)&&K},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var e=this,z;(z=this.watchController)==null||z.setWatchNextResponse(this.data);_.M("kevlar_watch_flexy_comments_manager")||this.initComments_();_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.lh().resolve(_.Us).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.M("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.c5.addLowPriorityJob(function(){_.zj(e.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.M("web_watch_start_chat_in_theater_mode")){var C,w,K;if((C=this.data)==null?0:(w=C.contents)==null?0:(K=w.twoColumnWatchNextResults)==null?0:K.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var G,X;((G=this.data)==null?0:(X=G.contents)==null?0:X.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(e){var z;(z=this.watchController)==null||z.setPlayerResponse(this.playerData);e&&e.playabilityStatus&&(z=this.isVideoPlayable_(e.playabilityStatus,this.getPlayerOverlays_(this.data)),e=this.isLiveStreamOffline_(e.playabilityStatus),z&&!e||_.T0(this,function(){_.hg("pbu")}));
this.setPlayerAds_();_.zj(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(e,z){if((_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"))&&this.playerData&&z)return this.playerData.videoDetails},
watchPageActiveChanged_:function(e){_.eB().dispatch(_.z92(this.active));e?this.activate_():this.deactivate_()},
attached:function(){var e=this;this.watchController=new _.dv(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.M("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var z=_.K7(this);_.M("kevlar_disable_prepare_player")||
z.preparePlayer();_.M("kevlar_watch_flexy_playlist_manager")||_.lh().resolve(_.Us).setPlayer(z);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();z={"--ytd-watch-flexy-scrollbar-width":_.cz()+"px"};this.is==="ytd-watch-grid"&&(_.eB().dispatch(_.Yz({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),z["--ytd-watch-flexy-sidebar-width"]=_.ScY+"px",z["--ytd-watch-grid-horizontal-page-margins"]=_.VU+"px",z["--ytd-watch-grid-columns-top-margins"]=
_.F$l+"px",z["--ytd-watch-grid-min-player-height-medium"]="360px");!_.n0("kv_pl_mx_sz_ks")&&_.n0("kevlar_watch_max_player_width")&&(z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.uLa+"px");_.n0("kevlar_watch_flexy_metadata_height")&&(z["--ytd-watch-flexy-space-below-player"]=_.dDy+"px");this.safeUpdateStyles(z);_.M("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.X7(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return e.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.XC(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var e=_.cz(),z=_.ff+e,C=z;this.fixedPanels&&(z+=_.ScY);var w=657+e;e=1327+e;_.XC(this.hostElement).querySelector("#two-column-query").query="(min-width: "+z+"px)";_.XC(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(w+"px), (min-height: 630px) and (min-width: ")+(z+"px) and (max-width: ")+(e+"px)");_.XC(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(e+"px)");
_.XC(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+C+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var e=_.XC(this.hostElement).querySelector("#miniplayer-bar").firstChild,z=this.squeezeback&&!_.M("web_watch_squeezeback_player_size_killswitch");return e&&e.active||this.theater||_.M("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||z||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.RM(NaN,NaN):_.dFL(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.dFL(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.XU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var e=this;this.onWindowResized_(_.Mp());_.M("browse_skeleton_removal_on_watch_killswitch")||_.cR("IS_SHELL_LOAD")&&_.Lal();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var z=_.K7(this);z.addEventListener("yt-player-updated",_.lE(this,this.onPlayerUpdated_));z.getPlayerPromise().then(function(C){e.playerApiReady_(C)});
_.M("kevlar_watch_flexy_playlist_manager")||(z=_.lh().resolve(_.Us),_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&z.addEventListener("yt-navigate",_.lE(this,this.onYtNavigate_)),z.setPlaylistComponent(_.XC(this.hostElement).querySelector("#playlist")),z.addEventListener("yt-playlist-data-updated",_.lE(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.c5.addLowPriorityJob(function(){_.pi(e.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.K7(this).removeEventListener("yt-player-updated",_.lE(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.M("kevlar_watch_flexy_playlist_manager")){var e=_.lh().resolve(_.Us);_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&e.removeEventListener("yt-navigate",_.lE(this,this.onYtNavigate_));
e.cancelVideoSkip();e.removeEventListener("yt-playlist-data-updated",_.lE(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.pi(this.hostElement,"yt-autonav-pause-player",!1);e=_.yq();_.M("kevlar_exit_fullscreen_leaving_watch")&&e&&_.cr(e)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(e){this.player&&this.player.updateVideoData({rvs:e.rvs})},
getPageContents:function(e){return e&&e.contents&&e.contents.twoColumnWatchNextResults&&e.contents.twoColumnWatchNextResults.results&&e.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(e){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e)},
onRetrieveLocation_:function(e,z){z.hasComments?z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):z.locationRetrieved("/related_ajax",void 0);e.stopPropagation()},
onSubscriptionChanged_:function(e,z){this.player&&(z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.dGY("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.XC(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.XC(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(e){this.player=e;this.setPlayerState(e.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.M("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.M("kevlar_unified_player")||_.M("kevlar_player_new_bootstrap_adoption"))&&_.c0()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(e,z){z=z===void 0?!0:z;_.yq()&&_.M("external_fullscreen")&&_.cr(document.documentElement);this.theaterRequested_=e;z&&_.FF("wide",e?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.eA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.pi(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(e){_.Zz(e,typeof this.player),this.player&&_.Zz(e,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var e;((e=this.player)==null?0:e.isFullscreen())?this.player.toggleFullscreen():_.eA(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(e,z){return this.loading?z:!!Object.keys(e).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(e){if(e){e=_.b(e);for(var z=e.next();!z.done;z=e.next())z=z.value,z.youThereRenderer&&_.p9l(this.youThereManager_,z.youThereRenderer)}},
setPlaylistData_:function(e){return e||{}},
userEngagementConfigDataChanged_:function(e){if(e)if(e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var z=this.youThereManager_;_.aC()<e.lowEngagementThresholdMs||_.wjj(z,!0)}else e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.eA(this.hostElement,"yt-autonav-pause-user-engagement",[e])},
isPlayerUnavailable_:function(e,z,C){return!!e&&!this.isVideoPlayable_(e,C)&&!z},
getPlayerOverlays_:function(e){return(e==null?void 0:e.playerOverlays)||null},
isVideoPlayable_:function(e,z){if(!e)return!1;var C=e.status==="OK"||e.status==="LIVE_STREAM_OFFLINE",w=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",e)||this.get("errorScreen.ypcTrailerRenderer",e);e=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",e);var K;z=z==null?void 0:(K=z.playerOverlayRenderer)==null?void 0:K.gatedActionsOverlayRenderer;return!!C||!!w||!!e||!!z},
hasWatchNextResponseErrorRenderer:function(e){var z=this.getPageContents(e),C,w,K,G,X;return!(e==null?0:(C=e.contents)==null?0:(w=C.twoColumnWatchNextResults)==null?0:w.secondaryResults)&&!!((K=z[0])==null?0:(G=K.itemSectionRenderer)==null?0:(X=G.contents[0])==null?0:X.backgroundPromoRenderer)},
isLiveStreamOffline_:function(e){return e?e.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(e,z,C){var w=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z),K=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];K=_.M("web_no_skip_video_on_verification_checks")?(e==null?void 0:e.status)&&K.includes(e.status):e&&e.status==="AGE_CHECK_REQUIRED";var G=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",e);G==void 0&&(G=!0);!C||this.isVideoPlayable_(e,this.getPlayerOverlays_(z))||
w||K||!G||_.lh().resolve(_.Us).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.imw()},
onPlayerFeedbackStartRequest_:function(e){_.eA(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:e}])},
onPlayerFeedbackArticleRequest_:function(e){_.eA(this.hostElement,"yt-help-dialog-requested",[e])},
onPlayerYpcContentRequest_:function(){var e,z,C,w,K,G,X,J,q=((e=this.data)==null?NaN:(z=e.contents)==null?NaN:(C=z.twoColumnWatchNextResults)==null?NaN:(w=C.secondaryResults)==null?NaN:(K=w.secondaryResults)==null?NaN:(G=K.offerModule)==null?NaN:(X=G.tvfilmOfferModuleRenderer)==null?NaN:(J=X.actionButtons)==null?NaN:J.length)-1;e=[".offerButton.buttonRenderer.",".actionButtons."+(q>=0?q:0)+".buttonRenderer."];z=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(C=z.next();!C.done;C=z.next())for(C=C.value,w=_.b(e),K=w.next();!K.done;K=w.next())if(K="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+C+K.value,K=this.get(K+"navigationEndpoint",this.data)||this.get(K+"serviceEndpoint",this.data)||this.get(K+"command",this.data)){_.$p(K,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(e){_.pi(this.hostElement,"yt-autonav-pause-player",e)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(e){e()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.pi(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(e)},
setPlayerState:function(e){_.eB().dispatch(_.mjg(e))},
onPlayerSubscribe_:function(e){_.eA(this.hostElement,"yt-player-subscribe",[e])},
onPlayerUnsubscribe_:function(e){_.eA(this.hostElement,"yt-player-unsubscribe",[e])},
onPlayerAdYtShowToast_:function(e){_.eA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:e.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(e){if(e)return e},
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(e){return!_.o3("web_watch_move_summary_to_sd")&&!!e},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.M("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var e,z,C,w;this.watchNextSecondaryResults=(e=this.data)==null?void 0:(z=e.contents)==null?void 0:(C=z.twoColumnWatchNextResults)==null?void 0:(w=C.secondaryResults)==null?void 0:w.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var e,z=(e=this.data)==null?void 0:e.engagementPanels;if(z==null?0:z.length){e=null;z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=void 0;if(((w=C.engagementPanelSectionListRenderer)==null?void 0:w.targetId)==="engagement-panel-structured-description"){e=C;break}}var K,G,X;e=(K=e)==null?void 0:(G=K.engagementPanelSectionListRenderer)==null?void 0:(X=G.content)==null?void 0:X.structuredDescriptionContentRenderer;if(e==null?0:e.items){K=
[];G=_.b(e.items);for(X=G.next();!X.done;X=G.next()){X=X.value;if(!_.M("sd_horizontal_list_show_nav_killswitch")){var J=w=C=z=e=void 0,q=void 0,T=(e=X.horizontalCardListRenderer)==null?void 0:(z=e.header)==null?void 0:(C=z.richListHeaderRenderer)==null?void 0:(w=C.navigationButton)==null?void 0:(J=w.buttonRenderer)==null?void 0:(q=J.command)==null?void 0:q.commandExecutorCommand;T&&T.commands&&(T.commands=T.commands.filter(function(Q){return!_.r(Q,_.e6g)}))}(!X.expandableVideoDescriptionBodyRenderer&&
!X.videoDescriptionHeaderRenderer||_.M("web_delhi_colorful_sd"))&&K.push(X)}return{items:K}}}},
constructWarning_:function(e){return{text:_.AO(e),type:"WARNING"}},
isPlaShelfEnabled_:function(e){if((this.get("adPlacements",e)||[]).length)return!0;e=this.get("playerAds",e)||[];return!(!e.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",e[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var e=this;_.pi(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var z=this.getScrollTop()>0;this.gestures_&&(z?this.gestures_.detach():this.gestures_.attach());z!==this.showFullerscreenEdu_&&_.M("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=z,_.K7(this).getPlayerPromise().then(function(C){C.updateFullerscreenEduButtonVisibility(e.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.pi(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var e=this;this.commentsReady=!1;_.c5.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Dz(_.c5,function(){e.setComments_()},1E3)},
setComments_:function(){if(!_.M("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.hg("cmi");_.c5.cancelJob(this.setCommentsJobId_);var e=this.getPageContents(this.data);if(e&&e.length){e=_.b(e);for(var z=e.next();!z.done;z=e.next())if(z=z.value,this.get("itemSectionRenderer.sectionIdentifier",z)==="comment-item-section"){this.comments=z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.pi(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.hg("cmc")},
doRemoveComments_:function(){this.comments={};_.M("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.c5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.c5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(e,z){var C=_.r(z.endpoint,_.N$);C&&(!(z=this.get("data.currentVideoEndpoint.watchEndpoint"))||C.videoId!==z.videoId||C.playlistId&&C.playlistId!==z.playlistId||C.index!==void 0&&C.index!==z.index||typeof C.startTimeSeconds!=="number"||(e.stopPropagation(),this.setScrollTop(0),_.K7(this).getPlayerPromise().then(function(w){var K=C.startTimeSeconds;w.seekTo(K);w.wakeUpControls();K<w.getDuration()&&w.playVideo()})))},
updatePlayerStartTime_:function(){var e=_.vpL();"t"in e&&(e=_.DFl(e.t),this.player.seekTo(e,!0))},
updateTitleFromWatchNext:function(e){e=this.getPageContents(e);var z,C;(e=_.Zd(e==null?void 0:(z=e[0])==null?void 0:(C=z.videoPrimaryInfoRenderer)==null?void 0:C.title))&&_.pi(this.hostElement,"yt-update-title",e)},
updateTitle_:function(e){e=this.get("videoDetails.title",e)||"";_.pi(this.hostElement,"yt-update-title",e)},
syncWithRemoteVideo_:function(e,z,C){if(this.active&&this.player){var w=this.player.getVideoData();if(w.video_id===C&&(C=w.list,_.M("polymer_enable_mdx_queue")&&C&&C.startsWith("RQ")&&(C=void 0),w.video_id!==e||C!=z)){var K;_.M("kevlar_player_watch_endpoint_navigation")?K=_.B7g(_.VQL(e,z)):K=this.buildWatchEndpoint_(e,z);_.pi(this.hostElement,"yt-navigate",{endpoint:K,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(e,z,C){return _.wk(e,z,C)},
initDclkstatus_:function(){_.uHj()},
attachWatchPageSkeleton_:function(){var e=document.querySelector("#watch-page-skeleton");if(e){var z=e.querySelector("#primary-info"),C=e.querySelector("#secondary-info"),w=e.querySelector("#related");z&&_.XC(this.hostElement).querySelector("#info-skeleton").appendChild(z);C&&_.XC(this.hostElement).querySelector("#meta-skeleton").appendChild(C);w&&(_.XC(this.hostElement).querySelector("#related-skeleton").appendChild(w),this.watchNextSkeletonEl_=w);_.hA(e)}},
handlePlayerUpdated_:function(){_.K7(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(e,z){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof z!=="undefined"){var C=this.watchNextSkeletonEl_.children,w=e&&e.indexSplices.length?e.indexSplices[0].index:0;e=Math.min(this.watchNextShownItems.length,C.length);z||(w=0,e=C.length);if(!this.ghostCardsEnabled)for(z=w;z<e;z++)C[z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(e){_.M("external_fullscreen")||_.eA(this.hostElement,"yt-player-fullscreen",[e.fullscreen])},
onFullscreenChange_:function(e){this.fullscreen=e;this.gestures_&&this.gestures_.update(this.fullscreen);var z=_.K7(this);z.getPlayerPromise().then(function(C){C.setFauxFullscreen(!!_.yq())});
this.updateFullBleedElementLocations();e&&(z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(e,z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!z},
computeIsDonationShelfCollapsed_:function(e){return e},
computeShouldShowMerchShelf:function(e,z){return z&&!!e},
computeResponseHasComments:function(e){var z,C,w,K,G;return!!(e==null?0:(z=e.contents)==null?0:(C=z.twoColumnWatchNextResults)==null?0:(w=C.results)==null?0:(K=w.results)==null?0:(G=K.contents)==null?0:G.some(function(X){var J;return(X==null?void 0:(J=X.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(e,z,C,w){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&w?!1:!!e&&!!Object.keys(e).length&&!z},
identity:_.F4,onWindowResized_:function(e){this.windowSize_=e;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(e){var z=this;e&&e.type!=="dataloaded"&&e.type!=="dataupdated"||_.K7(this).getPlayerPromise().then(function(C){var w=C.getPlayerState();w!==5&&w!==0&&(C=1/C.getVideoAspectRatio(),z.videoHeightToWidthRatio_!==C&&(z.videoHeightToWidthRatio_=C))})},
schedulePlayerSizeUpdate_:function(e){var z=this,C=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"),w=function(){if(z.watchMetadata){var K,G;(G=(K=z.watchMetadata).resize)==null||G.call(K)}_.K7(z).getPlayerPromise().then(function(X){if(_.M("kevlar_set_internal_player_size")){if(!C||!z.isMiniplayerActive()){var J=z.calculateCurrentPlayerSize_();X.setInternalSize(J.width,J.height)}}else X.setSize(NaN,NaN);_.M("kevlar_watch_while")&&z.updateWatchWhileScrollThreshold_()})};
e?w():_.UQ(_.c5,w)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(e){this.set("data.survey",e.detail)},
onYtShowSurveyCommand_:function(e){this.set("data.survey",_.r(e,_.yEa).survey)},
onDownloadedVideoDeleted:function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1){if(!z.active||(C=z.playerData)==null||!C.offlineState||z.videoId!==e)return K.return();(w=z.player)==null||w.stopVideo();_.C3().navigatingAwayFromWatchDeletedVideo=!0;_.$p(_.Zz5,z.hostElement);return K.yield(_.C3().navigationFinishPromise,2)}_.C3().navigatingAwayFromWatchDeletedVideo=!1;_.E_(K)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var e;this.theater?e=_.NZ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):e=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==e&&(this.watchWhileScrollThreshold_=e,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var e=_.XC(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&e){var z=this.windowSize_.height>=624,C=this.active?this.getScrollTop():0;!e.active&&z&&C>=this.watchWhileScrollThreshold_?(e.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):e.active&&(!z||C<this.watchWhileScrollThreshold_&&!_.yq())&&(e.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var e=_.XC(this.hostElement).querySelector("#secondary-inner");if(e){var z=_.XC(this.hostElement).querySelector("#below"),C=_.XC(this.hostElement).querySelector("#secondary"),w=_.XC(this.hostElement).querySelector("#comments");w&&C&&z&&(this.defaultTwoColumnLayout?(e.appendChild(w),C.appendChild(e)):(z.appendChild(w),_.E1(z,e)))}}},
isTwoColumnsChanged_:function(e,z){if(e!==!0||z!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(e=_.XC(this.hostElement).querySelector("#secondary-inner"))){z=_.XC(this.hostElement).querySelector("#below");var C=_.XC(this.hostElement).querySelector("#secondary"),w=_.XC(this.hostElement).querySelector("#comments");w&&C&&z&&(this.isTwoColumns_?(e.appendChild(w),C.appendChild(e)):(z.appendChild(w),_.E1(z,e)))}}else{e=!_.M("web_watch_enable_fs_squeezeback_panels");
z=_.XC(this.hostElement).querySelector("#panels");var K=_.XC(this.hostElement).querySelector("#alerts"),G=_.XC(this.hostElement).querySelector("#shopping-timely-shelf");C=_.XC(this.hostElement).querySelector("#playlist");w=_.XC(this.hostElement).querySelector("#related");var X=_.XC(this.hostElement).querySelector("#donation-shelf"),J=_.XC(this.hostElement).querySelector("#comments"),q=_.XC(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(K=_.XC(this.hostElement).querySelector("#secondary-inner"),
e&&(K.appendChild(z),K.appendChild(C),this.aiCompanionEnabled&&q&&K.appendChild(q)),K.appendChild(X),K.appendChild(w)):(e&&(_.cT(z,K),_.cT(C,K),this.aiCompanionEnabled&&q&&_.cT(q,K),_.cT(G,C)),_.cT(X,K),J&&_.cT(w,J));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.M("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.M("web_watch_enable_fs_squeezeback_panels")&&_.M("web_watch_theater_chat")){var e=_.XC(this.hostElement).querySelector("#chat-container"),z=this.theater&&!this.fullscreen||_.M("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&z?(z=_.XC(this.hostElement).querySelector("#columns"),(e==null?void 0:e.parentElement)!==z&&z.append(e),this.fixedPanels=!0):(this.fixedPanels=
!1,z=_.XC(this.hostElement).querySelector("#playlist"),e&&z?_.AL(e,z):_.AX(new _.uh("Missing element when updating chat location",{"chatContainer defined":!!e,"playlist defined":!!z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(e,z){return _.M("sw_metadata_vis_toggle_ks")?!0:!!e||!!z},
computeForceDarkPanelTheme:function(e){return _.M("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&e:!1},
safeUpdateStyles:function(e){try{_.T8(this.hostElement,e)}catch(z){_.AX(z)}},
videoHeightToWidthRatioChanged_:function(e,z){z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(e){this.videoHeightToWidthRatio_=1/e},
computeIsVerticalVideo_:function(e){return e>=1},
computeIsFourThreeToSixteenNineVideo_:function(e){return e<=.7501&&e>=.5624},
computeIsExtraWideVideo_:function(e){return e<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.K7(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.K7(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.KBj(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(e){var z=_.PJ(e)||0;_.WJ(e,z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var e=_.PJ("yt-fullerscreen-edu-button-click-count")||0,z=_.PJ("yt-fullerscreen-edu-button-shown-count")||0,C=_.n0("external_fullscreen_button_shown_threshold"),w=e>=_.n0("external_fullscreen_button_click_threshold")||z>=C;_.K7(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonSubtleModeState(w)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(e,z){return z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.lh().resolve(_.Us).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var e=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.c5.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.c5.addLowPriorityJob(function(){e.fullHeightPanelPositionUpdateJobId=0;var z=_.XC(e.hostElement).querySelector("#secondary"),C=_.XC(e.hostElement).querySelector("#fixed-secondary");z=z.getBoundingClientRect();var w=z.width;e.swatcherooSqueezeback&&
(w+=_.VU);if(e.swatcherooSqueezeback){var K=_.XC(e.hostElement).querySelector("#squeezeback-constraining-container");K.style.width=w+"px";K.style.flex="0 0 "+w+"px"}C.style.width=w+"px";C.style.left=z.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var e=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.c5.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.c5.addLowPriorityJob(function(){e.panelMaxHeightUpdateJob_=0;var z;!e.isTwoColumns_||e.theater||e.fullscreen?z=460:z=e.calculateNormalPlayerSize_().height;var C=z+"px";_.M("live_chat_taller_height")&&!e.theater&&(C="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.M("live_chat_medium_height")&&!e.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.M("live_chat_scaled_height")&&!e.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 238px)");e.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":z+"px","--ytd-watch-flexy-chat-max-height":C,"--ytd-watch-flexy-structured-description-max-height":z+"px","--ytd-watch-flexy-comments-panel-max-height":z+"px","--ytd-comments-engagement-panel-content-height":z+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(e){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",e)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.KK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(e){var z=_.XC(this.hostElement).querySelector("#engagement-panel-scrim");e?z.addEventListener("tap",_.lE(this,this.onEngagementPanelScrimClick_)):z.removeEventListener("tap",_.lE(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(e){if(this.hostElement.contains(e)&&!this.scrollToAnimation_.isAnimating()){var z=e.offsetTop-24;e=e.offsetTop+e.offsetHeight+24;var C=this.getPageScrollingElement(),w=this.getScrollTop(),K=w+C.clientHeight-56;if(z<w+56)z-=56;else if(e>K)z=e-C.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtSignalActionScrollToComments:function(){var e=this.hostElement.querySelector("#comments");if(e&&!this.scrollToAnimation_.isAnimating()){e=e.offsetTop-56-24;if(_.M("kevlar_comment_teaser_scroll_to_midpoint")&&(e-=_.LJ().height/3,e<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtEngagementPanelVisibleChanged:function(e,z,C){if(this.active&&this.trackEngagementPanelVisibility&&!_.gpC.includes(C)){if(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.zj(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var w=_.lh().resolve(_.kX);this.visiblePanelIdentifiers_.forEach(function(K){K!==C&&w.hidePanel({identifier:K})})}this.visiblePanelIdentifiers_.add(C)}z!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(C);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(e){return e?"":"watch-active-metadata"},
computeNewMetadataClass:function(e){return e?"watch-active-metadata":""},
computeIsSingleColumn:function(e,z){return z&&!e},
computeFullBleedPlayer:function(e,z,C){return _.M("external_fullscreen")&&e||z||C},
computeDefaultLayout:function(e){return!e},
computeDefaultTwoColumnLayout:function(e,z){return!e&&z},
updatePanelsLocation:function(){if(_.M("web_watch_enable_fs_squeezeback_panels")){var e=_.XC(this.hostElement).querySelector("#below"),z=_.XC(this.hostElement).querySelector("#panels"),C=_.XC(this.hostElement).querySelector("#playlist"),w=_.XC(this.hostElement).querySelector("#chat-container"),K=_.XC(this.hostElement).querySelector("#panels-full-bleed-container"),G=_.XC(this.hostElement).querySelector("#secondary-inner"),X=_.XC(this.hostElement).querySelector("#shopping-timely-shelf"),J=_.XC(this.hostElement).querySelector("#persistent-panel-container");
if(e&&z&&C&&w&&K&&G&&X&&(this.aiCompanionEnabled?J:1)){var q=this.fullscreen||this.theater&&this.iMaxTheaterMode,T=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;T?(T=_.XC(this.hostElement).querySelector("#columns"),(w==null?void 0:w.parentElement)!==T&&T.append(w),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):q?K.appendChild(w):this.isTwoColumns_?_.E1(G,w):_.E1(e,w);q?(K.appendChild(z),K.appendChild(C),
this.aiCompanionEnabled&&J&&K.appendChild(J)):(this.isTwoColumns_?(_.E1(G,z),_.E1(G,C),this.aiCompanionEnabled&&J&&_.E1(G,J)):(_.E1(e,z),_.E1(e,C),this.aiCompanionEnabled&&J&&_.E1(e,J)),_.E1(e,X))}}},
swatcherooUpdatePanelsLocation:function(e,z,C,w,K,G){if(this.is==="ytd-watch-grid"){z=e&&!z;this.swatcherooSplitScroll&&(z?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));C=_.XC(this.hostElement).querySelector("#panels");var X=_.XC(this.hostElement).querySelector("#playlist"),J=_.XC(this.hostElement).querySelector("#persistent-panel-container"),
q=_.XC(this.hostElement).querySelector("#fixed-secondary"),T=_.XC(this.hostElement).querySelector("#fixed-below"),Q=_.XC(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),m=_.XC(this.hostElement).querySelector("#chat-container");G&&(e?(q.appendChild(C),this.aiCompanionEnabled&&J&&q.appendChild(J)):(T.appendChild(C),this.aiCompanionEnabled&&J&&T.appendChild(J)));K?e?q.appendChild(m):T.appendChild(m):_.AL(m,Q);w?e?q.appendChild(X):T.appendChild(X):_.AL(X,
Q);this.swatcherooSplitScroll&&(e=_.XC(this.hostElement).querySelector("#secondary"),w=_.XC(this.hostElement).querySelector("#columns"),K=_.XC(this.hostElement).querySelector("#fixed-columns-secondary"),z?K.appendChild(e):w.appendChild(e))}},
computeMetadataSkinnyMode:function(e,z,C){return this.is!=="ytd-watch-grid"?!1:e?C:z},
computeWatchWhilePanelsActive:function(e,z){return e||z},
computeNoBorderOnChat:function(e){return _.M("web_watch_theater_chat_no_border")&&e},
computeLiveChatPresentAndExpanded:function(e,z){return e&&!z},
computePanelExpanded:function(e,z,C){return e||z||C},
computeSqueezeback:function(e,z,C,w){if(_.M("web_watch_enable_fs_squeezeback_panels")){var K=this.iMaxTheaterMode&&this.theater,G=this.theater&&!this.iMaxTheaterMode;return(e||z||C)&&(K||w)||z&&G}},
computeSwatcherooSqueezeback:function(e,z,C){return this.is!=="ytd-watch-grid"||_.M("ww_squeezeback_killswitch")?!1:e&&z&&C},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(e){_.K7(this).getPlayerPromise().then(function(z){var C;(C=z.changeMarkerVisibility)==null||C.call(z,_.r(e,_.sw).isVisible||!1,_.r(e,_.sw).entityKeys||[],_.r(e,_.sw).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(e){this.liveChatCollapsed=e.detail;_.eB().dispatch(_.tQt(e.detail));if(!this.liveChatCollapsed&&this.squeezeback){var z=_.lh().resolve(_.kX);this.visiblePanelIdentifiers_.forEach(function(C){z.hidePanel({identifier:C})})}},
onSetPlaylistCollapsed:function(e){_.M("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!e)},
provideRenderingData:function(e,z){switch(e){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=z;break;case "PRIMARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=z);this.videoPrimaryInfoRendererValue=z==null?void 0:z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=z);this.videoSecondaryInfoRendererValue=z==null?void 0:z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
z;break;case "CLARIFICATION":this.clarifyBoxValue=z;break;case "LIVE_CHAT":this.conversationBar=z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=z;break;case "PLAYLIST":this.externalPlaylistData_=z!=null?z:{};break;case "MERCH_SHELF":this.merchShelfValue=z==null?void 0:z.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=z;break;case "TICKET_SHELF":this.ticket=z;break;case "OFFER_MODULE":this.offerModule=z;break;case "LIMITED_STATE":this.limitedStateValue=
z;break;case "DONATION_SHELF":this.donation=z;break;case "ALERTS":this.alertsValue=z;break;case "COMMENTS":this.comments=z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
z;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=z;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=z}},
toggleCinematicsActive:function(e){this.cinematicsActive=e},
isMiniplayerActive:function(){return _.lh().resolve(_.gh).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var cKW;_.yKb=function(e){if(!(0,_.UYs)(e))throw Error("K``"+String(e));};
_.AKf=function(e){return e.findIndex(function(z){return cKW.indexOf(z.tagName)>-1})>-1};
_.ZPo=function(){var e=_.lh().resolve(_.Cn);_.lfN(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(e.isFullscreenEnabled()?_.cr(document.documentElement):_.Y4m(document.documentElement))};
cKW=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.J9=new Map;_.J9.set(32,59972);_.J9.set(27,50765);_.J9.set(70,60102);_.J9.set(76,60221);_.J9.set(77,60222);_.J9.set(74,60223);_.J9.set(84,60224);_.J9.set(38,61941);_.J9.set(40,61942);_.J9.set(73,62521);_.J9.set(67,62522);_.J9.set(80,63390);_.J9.set(78,63397);_.J9.set(75,59972);_.J9.set(188,63385);_.J9.set(190,63384);_.J9.set(36,63387);
_.J9.set(35,63386);_.J9.set(37,63388);_.J9.set(39,63389);_.J9.set(79,63423);_.J9.set(87,63424);_.J9.set(107,63426);_.J9.set(109,63425);_.J9.set(65,63428);_.J9.set(83,63430);_.J9.set(68,63429);_.J9.set(221,63431);_.J9.set(219,63432);_.J9.set(97,63439);_.J9.set(98,63440);_.J9.set(99,63441);_.J9.set(100,63442);_.J9.set(101,63443);_.J9.set(102,63444);_.J9.set(103,63445);_.J9.set(104,63446);_.J9.set(105,63447);_.k9=new Map;_.k9.set(80,63390);_.k9.set(78,63397);_.k9.set(188,63400);_.k9.set(190,63401);
_.k9.set(191,60765);_.k9.set(13,247917);_.pIZ=new Map;_.e9v=new Map;
}catch(e){_._DumpException(e)}
try{
var JKo,xHW,TOq,$Hv;_.G8Y=function(e){return e.ui.guideIsVisibleButNotPersistent};
_.Yxf=function(e){return e.ui.tabGesturesIsActive};
_.bP5=function(){var e=_.Mv("service_worker_scope");try{return navigator.serviceWorker.getRegistration(e)}catch(z){return Promise.reject(z)}};
_.XIl=function(e){return!(!e||!e.pushManager)};
JKo=function(){return _.bP5().then(_.XIl).catch(function(){return!1})};
_.k8a=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?JKo():Promise.resolve(!1)};
_.qxY=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
xHW=function(){var e,z,C;return _.k(function(w){switch(w.nextAddress){case 1:return w.yield(_.kb.getInstance(),2);case 2:e=w.yieldResult;if(!e){z=void 0;w.jumpTo(3);break}return w.yield(e.get("lmqf"),4);case 4:z=w.yieldResult;case 3:switch((C=z)||(C="SD"),C){case "HD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return w.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
TOq=function(e){var z,C,w;return _.k(function(K){if(K.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.M("disable_av1_setting")){var G=window.localStorage["yt-player-av1-pref"];G=G==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":G==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else G="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(z=e===G)return K.jumpTo(2);w=C=e;return K.yield(xHW(),3)}K.nextAddress!=2&&(z=w===K.yieldResult);return K.return(z)})};var lLY;var Q33=_.pr.IronButtonState,mH3=(0,_.gu)(HTMLElement);
_.hK({_template:function(){if(lLY!==void 0)return lLY;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;$Hv===void 0&&($Hv=document.createElement("template"));var w=$Hv;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return lLY=e},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[Q33,_.Ap,_.eO,_.wU],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(e){var z=(0,_.fZ)(this);z.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:e});z.shadowRoot.appendChild(e);return mH3.prototype._attachDom.call(this,e)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},
get contentElement(){for(var e=_.mb(this.$.content).getDistributedNodes(),z=0,C=e.length;z<C;z++)if(e[z].nodeType===Node.ELEMENT_NODE)return e[z]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(e){this._setSelectedItem(e.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(e){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(e)===this&&this.open()},
_selectedItemChanged:function(e){var z="";e?z=e.label||e.getAttribute("label")||e.textContent.trim():z="";this.value=z;this._setSelectedItemLabel(z)},
_computeMenuVerticalOffset:function(e,z){return z?z:e?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var e=this.opened?"true":"false",z=this.contentElement;z&&z.setAttribute("aria-expanded",e)}});_.aL5=new _.nN("navigateAction");var n$W=new _.nN("formRenderer");var ZB=function(){var e=_.rO.apply(this,arguments)||this;e.showInput=!1;return e};
_.U(ZB,_.rO);_.Y=ZB.prototype;_.Y.detached=function(){this.showInput&&window.removeEventListener("click",_.lE(this,this.closeOnOutsideClick_))};
_.Y.stopPropagation_=function(e){this.showInput&&e.stopPropagation()};
_.Y.closeOnOutsideClick_=function(e){this.closeOnOutsideClickCondition(e)&&(this.showInput=!1,window.removeEventListener("click",_.lE(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.Y.closeOnOutsideClickCondition=function(){return!0};
_.Y.closeOnOutsideClickHandler=function(){};
_.Y.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.lE(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.Y.openOnClickHandler=function(){};
_.Y.showInputChanged=function(){};
_.Y.setShowInput=function(e){this.showInput=e};
ZB.prototype.setShowInput=ZB.prototype.setShowInput;ZB.prototype.showInputChanged=ZB.prototype.showInputChanged;ZB.prototype.openOnClickHandler=ZB.prototype.openOnClickHandler;ZB.prototype.openOnClick_=ZB.prototype.openOnClick_;ZB.prototype.closeOnOutsideClickHandler=ZB.prototype.closeOnOutsideClickHandler;ZB.prototype.closeOnOutsideClickCondition=ZB.prototype.closeOnOutsideClickCondition;ZB.prototype.closeOnOutsideClick_=ZB.prototype.closeOnOutsideClick_;ZB.prototype.stopPropagation_=ZB.prototype.stopPropagation_;
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],ZB.prototype,"showInput",void 0);_.d([_.Qi("click"),_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],ZB.prototype,"stopPropagation_",null);_.d([_.mi("showInput"),_.B("design:type",Function),_.B("design:paramtypes",[Boolean]),_.B("design:returntype")],ZB.prototype,"showInputChanged",null);_.d([_.HI()],ZB);_.MLL=[ZB.prototype];var rKf;var HPL;var pX=function(){return _.V.apply(this,arguments)||this};
_.U(pX,_.V);_.Y=pX.prototype;_.Y.computePreselectedOption=function(e,z){return z===this.itemSelected_?e:void 0};
_.Y.dataChanged_=function(){var e=this;this.preselectedSubreason=this.itemSelected_=-1;var z;(z=this.data)!=null&&z.key&&_.T0(this,function(){var C,w=Number((C=e.data)==null?void 0:C.key);!Number.isNaN(w)&&(e.itemSelected_=w,C=(C=(e.data.items||[])[w])&&C.optionSelectableItemRenderer&&C.optionSelectableItemRenderer.preselectedIndex)&&(e.preselectedSubreason=C)})};
_.Y.isSubReasonHidden_=function(e,z){return e!=z};
_.Y.onTopItemSelected_=function(e,z){for(var C=_.XC(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),w=0,K=C.length;w<K;w++)C[w].select(0);_.eA(this.hostElement,"yt-report-form-update",[z.item.value]);e.stopPropagation()};
_.Y.onItemSelected_=function(e,z){_.eA(this.hostElement,"yt-report-form-update",[z.item.value]);e.stopPropagation()};
_.Y.getItem_=function(e){return e.serviceItem?e.serviceItem:e.navigationItem?e.navigationItem:e.optionSelectableItemRenderer?e.optionSelectableItemRenderer:null};
_.Y.computeText_=function(e){return(e=this.getItem_(e))?this.ytRendererBehavior.getSimpleString(e.text):null};
_.Y.validate=function(){return this.itemSelected_!==-1};
_.Y.computeAriaLabel_=function(e){var z=_.Zd(e.text);(e=e.accessibility&&e.accessibility.accessibilityData&&e.accessibility.accessibilityData.label)&&(z+=". "+e);return z};
_.Y.computeItemSelected_=function(e){return e};
_.Y.preventSelection_=function(e){e.stopPropagation();this.tooltipTapped=!0};
_.Y.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.Y.updateItemSelectedFromBinding=function(e){this.itemSelected_=e.detail.value};
_.Y.save=function(){var e;this.validate()&&(e=this.data)!=null&&e.items&&(e=this.data.items[this.itemSelected_],e!=null&&e.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(e.optionSelectableItemRenderer.submitEndpoint)||_.wQ(this.hostElement,[e.optionSelectableItemRenderer.submitEndpoint])))};
pX.prototype.onPaperRippleTransitionEnd_=pX.prototype.onPaperRippleTransitionEnd_;pX.prototype.dataChanged_=pX.prototype.dataChanged_;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],pX.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],pX.prototype,"data",void 0);_.d([_.F({value:-1}),_.B("design:type",Number)],pX.prototype,"itemSelected_",void 0);
_.d([_.F({computed:"computeItemSelected_(itemSelected_)"}),_.B("design:type",Number)],pX.prototype,"value",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],pX.prototype,"restoreFocusOnClose",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],pX.prototype,"tooltipTapped",void 0);_.d([_.F({value:-1}),_.B("design:type",Number)],pX.prototype,"preselectedSubreason",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pX.prototype,"dataChanged_",null);_.d([_.Qi("transitionend"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pX.prototype,"onPaperRippleTransitionEnd_",null);_.d([_.fP({is:"yt-options-renderer",disableElementRegistration:!0})],pX);
_.u(pX,"yt-options-renderer",function(){if(HPL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;rKf===void 0&&(rKf=document.createElement("template"));var w=rKf;C.call(z,w.content.cloneNode(!0),e.content.firstChild);HPL=e}e=HPL;return e},{mode:2});var UHW;var v$Y;var ILa;var Wil;var PEv;var RdL;var er=function(){return _.V.apply(this,arguments)||this};
_.U(er,_.V);er.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
er.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
er.prototype.onTap=function(e){if(this.hostElement.classList.contains("selected")||_.CK(this.hostElement,"yt-share-panel-can-select-contact-action"))e&&e.detail&&(e.detail.x||e.detail.y)&&_.XC(this.hostElement).querySelector("#target").blur(),(e=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),e={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:e?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.eA(this.hostElement,"yt-share-panel-select-contact-action",[e])};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);_.d([_.F({observer:"onDataChanged"}),_.B("design:type",Object)],er.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],er.prototype,"componentTitle",void 0);_.d([_.nP("#thumbnail"),_.B("design:type",Object)],er.prototype,"thumbnail",void 0);_.d([_.fP({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],er);
_.u(er,"yt-enrolled-contact-renderer",function(){if(RdL===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;PEv===void 0&&(PEv=document.createElement("template"));var w=PEv;C.call(z,w.content.cloneNode(!0),e.content.firstChild);RdL=e}e=RdL;return e},{mode:2});var LiE;var hd3;var zQ=function(){return _.V.apply(this,arguments)||this};
_.U(zQ,_.V);zQ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
zQ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
zQ.prototype.onTap=function(e){if(this.hostElement.classList.contains("selected")||_.CK(this.hostElement,"yt-share-panel-can-select-contact-action"))e&&e.detail&&(e.detail.x||e.detail.y)&&_.XC(this.hostElement).querySelector("#target").blur(),(e=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),e={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:e?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.eA(this.hostElement,"yt-share-panel-select-contact-action",[e])};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.d([_.F({observer:"onDataChanged"}),_.B("design:type",Object)],zQ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.B("design:type",String)],zQ.prototype,"componentTitle",void 0);_.d([_.nP("#thumbnail"),_.B("design:type",Object)],zQ.prototype,"thumbnail",void 0);_.d([_.fP({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],zQ);
_.u(zQ,"yt-suggested-contact-renderer",function(){if(hd3===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;LiE===void 0&&(LiE=document.createElement("template"));var w=LiE;C.call(z,w.content.cloneNode(!0),e.content.firstChild);hd3=e}e=hd3;return e},{mode:2});var C6=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-share-panel-reset-action":"onReset"};return e};
_.U(C6,_.V);C6.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"}}}}}};
C6.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.eA(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
C6.prototype.onReset=function(){for(var e=_.XC(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),z=e.length-1;z>=0;z--)e[z].classList.toggle("selected")};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],C6.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({observer:"onDataChanged"}),_.B("design:type",Object)],C6.prototype,"data",void 0);
_.d([_.fP({is:"yt-contact-section-renderer",disableElementRegistration:!0})],C6);
_.u(C6,"yt-contact-section-renderer",function(){if(Wil===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;ILa===void 0&&(ILa=document.createElement("template"));var w=ILa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Wil=e}e=Wil;return e},{mode:2});var wZ=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return e};
_.U(wZ,_.V);_.Y=wZ.prototype;_.Y.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"}}}};
_.Y.onYtRefreshFormCommand=function(e){var z;(e=_.r((z=_.r(e,_.oKY))==null?void 0:z.formRenderer,n$W))&&this.set("data",e)};
_.Y.reset=function(){var e=_.XC(this.hostElement).querySelector("#fields").children;e=_.b(e);for(var z=e.next();!z.done;z=e.next())z=z.value,z.reset&&z.reset()};
_.Y.getForm=function(){var e={},z=_.XC(this.hostElement).querySelector("#fields").children;z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;if(!C.validate())return null;e[C.data.key]=C.value}return e};
_.Y.submitFormFields=function(){if(this.fields)for(var e=_.b(this.fields),z=e.next();!z.done;z=e.next())z=z.value,z.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?z.save():z.nodeName==="YT-OPTIONS-RENDERER"&&z.save()};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],wZ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wZ.prototype,"data",void 0);_.d([_.MH("#fields > *"),_.B("design:type",Array)],wZ.prototype,"fields",void 0);
_.d([_.fP({is:"yt-form-renderer",disableElementRegistration:!0})],wZ);
_.u(wZ,"yt-form-renderer",function(){if(v$Y===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;UHW===void 0&&(UHW=document.createElement("template"));var w=UHW;C.call(z,w.content.cloneNode(!0),e.content.firstChild);v$Y=e}e=v$Y;return e},{mode:2});var OPZ;var K6=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return e};
_.U(K6,_.V);K6.prototype.onCheckboxChange=function(e){this.data&&(e=(this.checked=_.AU(e).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})};
K6.prototype.handleUpdateCheckboxCommand=function(e){(e=_.r(e,_.rpg))&&this.data&&this.data.id===e.id&&(this.set("data.disabled",e.disabled),this.set("data.title",e.title))};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],K6.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],K6.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],K6.prototype,"checked",void 0);_.d([_.SL({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],K6);
_.u(K6,"ytd-settings-checkbox-renderer",function(){if(OPZ!==void 0)return OPZ;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return OPZ=e},{mode:1});var E$W;var of=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return e};
_.U(of,_.V);of.prototype.dataChanged=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return e.radio.removeAttribute("checked"),!e.data||!e.data.id||e.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.qxY()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(z=e.data&&e.data.id)?C.yield(TOq(e.data.id),4):C.jumpTo(3):(e.set("data.hidden",!0),C.jumpTo(0));C.nextAddress!=3&&(z=C.yieldResult);z&&_.eA(e.hostElement,"yt-select-settings-radio-option",[e.data.id]);_.E_(C)})};
of.prototype.onButtonChanged=function(e){_.AU(e).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.eA(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
of.prototype.onSelectOption=function(e){this.data&&this.data.id&&(this.data.id===e?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
of.prototype.dataChanged=of.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],of.prototype,"ytActionHandlerBehavior",void 0);_.d([_.nP("#radio"),_.B("design:type",Object)],of.prototype,"radio",void 0);_.d([_.F(),_.B("design:type",Object)],of.prototype,"data",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],of.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],of);
_.u(of,"ytd-settings-radio-option-renderer",function(){if(E$W!==void 0)return E$W;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return E$W=e},{mode:1});var Fio;var GQ=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return e};
_.U(GQ,_.V);
GQ.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"}}}};
GQ.prototype.handleUpdateTextCommand=function(e){(e=_.r(e,_.Hra))&&this.data&&this.data.id===e.id&&this.set("data",e)};
GQ.prototype.handleUpdateConnectedAppRendererCommand=function(e){if(_.r(e,_.I2a)&&this.data){var z,C;if(e=(z=_.r(e,_.I2a))==null?void 0:(C=z.newConnectedAppRenderer)==null?void 0:C.connectedAppRenderer)this.data=e}};
GQ.prototype.computeConnectedAppStyle=function(e){return e.style?e.style.toLowerCase().replace(/_/g,"-"):""};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GQ.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.B("design:type",String)],GQ.prototype,"connectedAppStyle",void 0);_.d([_.SL({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],GQ);
_.u(GQ,"ytd-connected-app-renderer",function(){if(Fio!==void 0)return Fio;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Fio=e},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.tA("iuT5Oc");

_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("NSzT5");
var WBL=function(){var e;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.lh().resolve(_.qK),2);(e=z.yieldResult)&&e.pauseVideo();_.E_(z)})};var Pwl=_.Kb(["https://portraits.google.com"]),Rt2=_.Kb(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),LBg=_.Kb(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),htt=_.nJ(Pwl),OU2=_.f(function(e){function z(Q){var m;if(Q=(m=Q.detail)==null?void 0:m.endpoint){m=_.r(Q,_.mJ);var a;m&&((a=m.browseId)==null?0:a.startsWith("UC"))&&m.browseId!==K()&&(_.$9("creator-chatbots-panel-persistent"),q.removeEventListener("yt-navigate-start",z))}}
var C=e.usePlayerHeight;var w=e.isPersistentPanel;var K=e.creatorChannelId;e=_.rG(_.b_m);console.log("isNarrow",e());var G=_.ej(function(Q){var m=K();m=_.nJ(Rt2,m);_.w5(Q,1,m)}),X=function(){var Q,m,a;
return _.k(function(n){return n.nextAddress==1?n.yield(_.lh().resolve(_.qK),2):(Q=n.yieldResult)?n.return({video_id:(a=(m=Q.getVideoData())==null?void 0:m.video_id)!=null?a:"",timestamp_sec:Q.getCurrentTime().toString()}):n.return({})})};
_.Qr("message",function(Q){var m,a,n,H,I,L;return _.k(function(h){if(h.nextAddress==1){if((m=w)==null?0:m())return h.return();if(Q.origin!==htt.toString())return console.warn("Received message from untrusted origin:",Q.origin),h.return();a=Q.data;if(typeof a!=="object"||a===null||!a.action)return h.return();if(a.action==="pause")return h.yield(WBL(),0);if(a.action!=="getYouTubeContext"||!Q.source)return h.jumpTo(0);n=Q.source;H=n.postMessage;I=JSON;L=I.stringify;return h.yield(X(),7)}H.call(n,L.call(I,
{youTubeContext:h.yieldResult}),{targetOrigin:Q.origin});return h.jumpTo(0)})});
var J=function(){var Q,m;(Q=G.value)==null||(m=Q.contentWindow)==null||m.postMessage("ep_closed",htt.toString())};
_.Qr("yt-page-type-changed",function(){if(w==null?0:w()){var Q;((Q=_.lh().resolve(_.wE).getCurrentPage())==null?void 0:Q.pageSubtype)!=="channels"&&(Q=document.getElementById("creator-chatbots-panel-persistent"))&&(Q.style.display="none")}});
var q=_.lh().resolve(_.cc),T;(T=q)==null||T.addEventListener("yt-navigate-start",z);_.BC(function(){var Q;(Q=q)==null||Q.removeEventListener("yt-navigate-start",z)});
T={};return _.x("div",{class:_.qT("ytprotoCreatorChatbotsAppHost",(T.ytprotoCreatorChatbotsAppHostSingleColumn=e,T)),style:_.QC({height:function(){return(C==null?0:C())?"var(--ytd-watch-flexy-panel-max-height)":"100%"}})},_.x(_.UFY,{id:function(){return(w==null?0:w())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:J,header:function(){return _.x("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.x("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.x(_.ri,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.x(_.Q0,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var Q=_.Ng("https://portraits.google.com/gallery?ytChannelId="+K());Q&&_.Kq(window,Q,"_blank");J()}})},
content:function(){return _.x("iframe",{el:G,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+htt.toString()})}}))},"Xo"),EfC=_.f(function(e){var z=e.creatorChannelId;
e=_.rG(_.b_m);var C=_.ej(function(G){var X=z();X=_.nJ(LBg,X);_.w5(G,1,X)}),w=_.a5(_.nm(),{veType:281629}),K={};
return _.x("div",{class:_.qT("ytprotoCreatorChatbotsAppHost",(K.ytprotoCreatorChatbotsAppHostSingleColumn=e,K)),style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.x(_.UFY,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.x("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.x("div",
{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.x(_.ri,{data:{text:"AI experiment",type:0}}))},
content:function(){return _.x("iframe",{el:C,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.x("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.x(_.Q0,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var G=_.Ng("https://portraits.google.com/gallery?ytChannelId="+z());G&&_.Kq(window,G,"_blank");WBL();w&&_.Bj(_.nm(),{visualElement:w})},
"client-ve-type":281629}),_.x("div",null,"This will take you to Google Portraits"))}}))},"Yo");var FBg,VjY;FBg=_.Kb(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);VjY=_.nJ(FBg);_.opg=function(e){e=e===void 0?"":e;_.$9("creator-chatbots-panel");_.x9(VjY);_.lx("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.Hm5("creator-chatbots-panel",function(){return _.x(OU2,{usePlayerHeight:!0,creatorChannelId:e})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.GxY=function(e){e=e===void 0?"":e;_.$9("creator-chatbots-panel");_.lx("ytd-watch-metadata #top-level-buttons-computed",function(){_.Hm5("creator-chatbots-panel",function(){return _.x(EfC,{creatorChannelId:e})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.Z0q=function(e,z){e=e===void 0?"":e;z=z===void 0?!1:z;var C;return _.k(function(w){C=document.getElementById("creator-chatbots-panel-persistent");return!z||C?(!z&&C&&C.style.display==="none"&&(C.style.display="block"),w.jumpTo(0)):w.yield(new Promise(function(K){_.lx("ytd-app",function(G){_.TQ({element:G,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.x(OU2,
{isPersistentPanel:!0,creatorChannelId:e})});
K()})}),0)})};
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("L3n37");
var mTT=function(e){return e.watch.isLearningJourneyActive},ae2=_.mT(115994),nfl=_.mT(115993),MjL=function(e,z,C){var w=this;
var K=C.dragDownAction;this.layer=0;this.JSC$23833_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.JSC$23833_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return w.dragDownAction()}}}};
this.fullscreen=!1;var G=_.nm();_.c7(G,ae2,this.layer);_.c7(G,nfl,this.layer);this.dragDownAction=function(){K();_.Bj(G,{visualElement:w.fullscreen?ae2:nfl})};
this.gesture=new _.rl(e,z,this.getConfig(!1),"pandown");this.attach()};
MjL.prototype.attach=function(){this.gesture.attach()};
MjL.prototype.detach=function(){this.gesture.detach()};
MjL.prototype.update=function(e){this.fullscreen=e;var z=this.gesture;e=this.getConfig(e);z.config=e};
MjL.prototype.getConfig=function(e){return e?this.JSC$23833_watchFullScreenConfig:this.JSC$23833_watchConfig};var rqL=function(e){_.X_.call(this);var z=this;this.rootElement=e;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return z.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(C){z.initOrDisposeActiveModules(C)}));
this.onAttached()};
_.U(rqL,_.X_);_.Y=rqL.prototype;_.Y.getRoot=function(){return this.rootElement};
_.Y.getElement=function(e){return this.rootElement.getElement(e)};
_.Y.setPlayerResponse=function(e){this.playerResponse=e;this.publish("PLAYER_RESPONSE_UPDATED",e)};
_.Y.getPlayerResponse=function(){return this.playerResponse};
_.Y.setWatchNextResponse=function(e){this.watchNextResponse===e?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=e,this.publish("WATCH_NEXT_RESPONSE_UPDATED",e))};
_.Y.getWatchNextResponse=function(){return this.watchNextResponse};
_.Y.registerActionHandler=function(e,z){var C=this;if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var w={};_.YI(_.G4.getInstance(),(w[e]=z,w),this.getRoot())}else this.actionHandlers.has(e)||(this.actionHandlers.set(e,[]),w={},_.YI(_.G4.getInstance(),(w[e]=function(){var K=_.yL.apply(0,arguments);return(C.actionHandlers.get(e)||[]).map(function(G){return G.apply(null,_.s_(K))})},w),this.getRoot())),this.actionHandlers.get(e).push(z)};
_.Y.unregisterActionHandler=function(e){if(_.M("web_watch_controller_reg_multiple_handlers_killswitch")){var z={};_.XL(_.G4.getInstance(),(z[e]=!0,z),this.getRoot())}else(z=this.actionHandlers.get(e))?(z.pop(),z.length===0&&(z={},_.XL(_.G4.getInstance(),(z[e]=!0,z),this.getRoot()),this.actionHandlers.delete(e))):_.AX(new _.uh("Attempted to unregister an action handler which is not registered.",e))};
_.Y.addPageDisposeJob=function(e){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.L7k(this.rootElement.pageDisposeJobs,e)};
_.Y.removePageDisposeJob=function(e){this.rootElement.pageDisposeJobs&&_.D8(this.rootElement.pageDisposeJobs,e)};
_.Y.dispatchEvent=function(e,z){_.pi(this.rootElement,e,z)};
_.Y.provideRenderingData=function(e,z){this.rootElement.provideRenderingData(e,z)};
_.Y.scrollWatchTo=function(e,z){var C;(C=this.watchScrollManager)==null||C.scrollWatchTo(e,z)};
_.Y.focusOnPlayer=function(){var e=this.getElement("PLAYER");_.T0(e,function(){if(e&&e.firstElementChild){var z=e.querySelector(".html5-video-player");z&&(_.VX(_.lh().resolve(_.UT)),z.focus())}else _.AX(Error("mp"))})};
var HUt=function(e){var z=!!e.rootElement.theater,C=!!e.rootElement.fullscreen,w;(w=e.watchCinematicManager)==null||_.cUy(w,C,z)};
_.Y=rqL.prototype;_.Y.subscribeToActiveChanged=function(e,z){z=z===void 0?!0:z;var C=_.K3(_.eB(),mTT,function(w){e(w)});
z&&e(mTT(_.eB().getState()));return C};
_.Y.isActive=function(){return mTT(_.eB().getState())};
_.Y.onAttached=function(){var e=_.M("external_fullscreen");_.M("use_unified_flag_accessor")&&(e=_.lh().resolve(_.ARW).retriever.getFlag(_.VxX));(e||_.cR("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.Y.initPersistentModules=function(){if(_.M("kevlar_watch_flexy_theater_manager")){var e=new _.HWY(this);_.I4(this,e)}e=new _.k8g(this);_.I4(this,e);e=new _.Le(this);_.I4(this,e);e=new _.G82(this);_.I4(this,e);e=new _.Vf(this);_.I4(this,e);e=new _.hs(this);_.I4(this,e);_.M("kevlar_watch_flexy_playlist_manager")&&(e=new _.s3Y(this),_.I4(this,e))};
_.Y.initOrDisposeActiveModules=function(e){e?(this.watchScrollManager=new _.fe(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.ILg(this)),this.activeModules.push(new _.rO2(this)),this.activeModules.push(new _.cKj(this)),this.activeModules.push(new _.aL2(this)),_.M("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.W6Y(this)),this.activeModules.push(new _.OPa(this)),_.M("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.ZPL(this)),
_.M("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.uNy(this)),_.o3("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.sgC(this),this.activeModules.push(this.watchCinematicManager),HUt(this)),_.M("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.fLj(this)),_.M("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.bP2(this)),e=_.M("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.M("kevlar_watch_flexy_comments_manager")&&
!e&&this.activeModules.push(new _.zdg(this)),_.M("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.i4g(this)),this.activeModules.push(new _.LJj(this)),this.activeModules.push(new _.PEY(this)),_.M("web_enable_timely_actions")&&this.activeModules.push(new _.FJC(this)),_.M("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.wJl(this)),_.M("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.ju2(this)),_.M("web_fullscreen_components")&&
this.activeModules.push(new _.O4T(this)),_.M("web_player_rtr_ctrls")&&this.activeModules.push(new _.o5C(this))):(_.JA(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.Y.disposeInternal=function(){_.X_.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.lB.Object.defineProperties(rqL.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var UTC={},vfY=["learning-journey-engagement-panel","PAlearning_chat"];
UTC.YtdLearningJourneyWatchBehavior=[_.c.YtRendererBehavior,_.P$.YtPlayerListenerBehavior,_.Fr.YtRendererstamperBehavior,_.ch.YtActionHandlerBehavior,_.CF.YtPageBehavior,_.y5.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.cR("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.M("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 _.cR("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 _.M("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.M("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.n0("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.n0("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.o3("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_rounded_player_large")||_.M("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.M("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.M("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("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 _.M("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.M("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.jb(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.jb(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var e=this;this.watchController=void 0;this.pageDisposeJobs=[function(){e.showMetadataPlaceholder_()},
function(){_.M("web_watch_dont_clear_comments")||e.clearComments_()},
function(){e.clearPlayerAds_()},
function(){e.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.M("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.M("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.cEw(function(){return _.K7(e)},
this.hostElement);
this.pageDisposeJobs.push(function(){e.youThereManager_.reset()});
_.M("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){e.resetFullerscreenEduButtonForNewPlayback_()}));
_.M("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.fr;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;_.M("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.M("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));_.M("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.lE(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(e){e&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:e}),e.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(e){_.M("kevlar_watch_flexy_theater_manager")&&(this.theater=e,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.M("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(e){!_.M("kevlar_watch_while_v2")&&!_.M("web_watch_pip")||e||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(e){this.active!==void 0&&(this.fullscreen=e,_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(e){this.active!==void 0&&(_.pi(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.M("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(e>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(e){this.initCsi_();this.updatePageData_(e)},
updatePageData_:function(e){var z=this;if(e)if(this.data===e){this.onPageLoadWithSameData_();var C;(C=this.watchController)==null||C.setWatchNextResponse(this.data)}else this.data=e;this.playlist&&_.Pf({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.hg("nw");this.loading=!1;_.Dz(_.c5,function(){z.initDclkstatus_();var w,K=((w=z.player)==null?void 0:w.getVideoData().cpn)||"";_.FOY(function(G,X){_.BOf(G,X,K)})})},
onPageLoadWithSameData_:function(){_.M("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 e=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!e);this.set("loadingData.playlistLoading",e&&e!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),e=this.watchNextSkeletonEl_.firstElementChild;e;)e.classList.remove("hidden"),e=e.nextElementSibling;var z,C,w;e=(z=this.loadingData)==null?void 0:(C=z.endpoint)==null?void 0:(w=C.watchEndpoint)==null?void 0:w.videoId;var K;e&&(K="https://i.ytimg.com/vi/"+e+"/frame0.jpg");_.XC(this.hostElement).querySelector("#player").style.backgroundImage=K?"url("+K+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var e=_.XC(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&e&&(e.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var z,C;(C=(z=this.watchMetadata).updateSentimentBarWidth)==
null||C.call(z);var w,K;(K=(w=this.watchMetadata).resize)==null||K.call(w)}_.XC(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(e){var z=_.XC(this.hostElement).querySelector(e);z?_.Aw(z,!1):_.AX(new _.uh("Overscroll monitor not found for component: ",e))},
removeSplitScrollMouseTrap:function(e){var z=_.XC(this.hostElement).querySelector(e);z?_.ZP(z):_.AX(new _.uh("Disposal component for  overscroll monitoring not found: ",e))},
onLoadingChanged_:function(e){e?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(e){var z=this;e?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.c5.addLowPriorityJob(function(){z.onWindowResized_(_.Mp(!0))})},
updateTheaterModeState_:function(e){if(!_.M("kevlar_watch_flexy_theater_manager")){e=e||this.fullWindowMode_;if(this.theater!==void 0||e)this.theater=e;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();e&&_.Bag()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var e=this.theater;_.M("external_fullscreen")&&this.fullscreen&&(e=!0);e=e?_.XC(this.hostElement).querySelector("#player-full-bleed-container"):_.XC(this.hostElement).querySelector("#player-container-inner");var z=this.getPlayerContainer(),C=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip");z.parentElement!==e&&(C&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.K7(this).appendTo(e,z),e.appendChild(_.XC(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var e=this;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.lh().resolve(_.gh).deactivate(),2);e.updatePlayerLocation();_.E_(z)})},
updateCinematicsLocation:function(){var e=this.getElement("CINEMATICS");if(e){var z=this.getCinematicsLocationContainer();e.parentElement!==z&&z.appendChild(e);var C;(C=this.watchController)==null||HUt(C)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.XC(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.XC(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(e,z){var C=document.documentElement.hasAttribute("dark"),w=!C&&this.cinematicLightTheme;return e&&C||z&&C||(z||e)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var e;(e=this.watchController)==null||e.setWatchNextResponse(this.data);_.M("kevlar_watch_flexy_comments_manager")||this.initComments_();_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.lh().resolve(_.Us).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.M("web_watch_start_chat_in_theater_mode")){var z,
C,w;if((z=this.data)==null?0:(C=z.contents)==null?0:(w=C.twoColumnWatchNextResults)==null?0:w.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var K,G;((K=this.data)==null?0:(G=K.contents)==null?0:G.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(e){var z;(z=this.watchController)==null||z.setPlayerResponse(this.playerData);e&&e.playabilityStatus&&(z=this.isVideoPlayable_(e.playabilityStatus,this.getPlayerOverlays_(this.data)),e=this.isLiveStreamOffline_(e.playabilityStatus),z&&!e||_.T0(this,function(){_.hg("pbu")}));
this.setPlayerAds_();_.zj(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(e){_.eB().dispatch(_.Yz({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));e?this.activate_():this.deactivate_()},
attached:function(){var e=this;this.watchController=new rqL(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.M("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var z=_.K7(this);_.M("kevlar_disable_prepare_player")||z.preparePlayer();_.M("kevlar_watch_flexy_playlist_manager")||_.lh().resolve(_.Us).setPlayer(z);this.updatePageMediaQueries();z={"--ytd-watch-flexy-scrollbar-width":_.cz()+
"px"};!_.n0("kv_pl_mx_sz_ks")&&_.n0("kevlar_watch_max_player_width")&&(z["--ytd-watch-flexy-max-player-width-wide-screen"]=_.uLa+"px");_.n0("kevlar_watch_flexy_metadata_height")&&(z["--ytd-watch-flexy-space-below-player"]=_.dDy+"px");this.safeUpdateStyles(z);_.M("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new MjL(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return e.onPlayerTouchPanDown_()}}));
_.M("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.XC(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var e=_.cz(),z=_.ff+e,C=z;this.fixedPanels&&(z+=_.ScY);var w=657+e;e=1327+e;_.XC(this.hostElement).querySelector("#two-column-query").query="(min-width: "+z+"px)";_.XC(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(w+"px), (min-height: 630px) and (min-width: ")+(z+"px) and (max-width: ")+(e+"px)");_.XC(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(e+"px)");
_.XC(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+C+"px)"},
calculateCurrentPlayerSize_:function(){var e=_.XC(this.hostElement).querySelector("#miniplayer-bar").firstChild;return e&&e.active||this.theater||_.M("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.RM(NaN,NaN):_.dFL(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.dFL(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.XU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var e=this;this.onWindowResized_(_.Mp());_.M("browse_skeleton_removal_on_watch_killswitch")||_.cR("IS_SHELL_LOAD")&&_.Lal();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var z=_.K7(this);z.addEventListener("yt-player-updated",_.lE(this,this.onPlayerUpdated_));z.getPlayerPromise().then(function(C){e.playerApiReady_(C)});
_.M("kevlar_watch_flexy_playlist_manager")||(z=_.lh().resolve(_.Us),_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&z.addEventListener("yt-navigate",_.lE(this,this.onYtNavigate_)),z.setPlaylistComponent(_.XC(this.hostElement).querySelector("#playlist")),z.addEventListener("yt-playlist-data-updated",_.lE(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.c5.addLowPriorityJob(function(){_.pi(e.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.K7(this).removeEventListener("yt-player-updated",_.lE(this,this.onPlayerUpdated_));if(!_.M("kevlar_watch_flexy_playlist_manager")){var e=_.lh().resolve(_.Us);_.M("kevlar_watch_observe_playlist_navigations_killswitch")&&e.removeEventListener("yt-navigate",_.lE(this,this.onYtNavigate_));e.cancelVideoSkip();e.removeEventListener("yt-playlist-data-updated",_.lE(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.M("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.pi(this.hostElement,"yt-autonav-pause-player",!1);e=_.yq();_.M("kevlar_exit_fullscreen_leaving_watch")&&e&&_.cr(e)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(e){this.player&&this.player.updateVideoData({rvs:e.rvs})},
getPageContents:function(e){return e&&e.contents&&e.contents.twoColumnWatchNextResults&&e.contents.twoColumnWatchNextResults.results&&e.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(e){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",e)},
onRetrieveLocation_:function(e,z){z.hasComments?z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):z.locationRetrieved("/related_ajax",void 0);e.stopPropagation()},
onSubscriptionChanged_:function(e,z){this.player&&(z?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.dGY("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.XC(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.XC(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(e){this.player=e;this.setPlayerState(e.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.M("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.M("kevlar_unified_player")||_.M("kevlar_player_new_bootstrap_adoption"))&&_.c0()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(e,z){z=z===void 0?!0:z;_.yq()&&_.M("external_fullscreen")&&_.cr(document.documentElement);this.theaterRequested_=e;z&&_.FF("wide",e?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.eA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.pi(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(e){_.Zz(e,typeof this.player),this.player&&_.Zz(e,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var e;((e=this.player)==null?0:e.isFullscreen())?this.player.toggleFullscreen():_.eA(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(e,z){return this.loading?z:!!Object.keys(e).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(e){if(e){e=_.b(e);for(var z=e.next();!z.done;z=e.next())z=z.value,z.youThereRenderer&&_.p9l(this.youThereManager_,z.youThereRenderer)}},
setPlaylistData_:function(e){return e||{}},
userEngagementConfigDataChanged_:function(e){if(e)if(e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var z=this.youThereManager_;_.aC()<e.lowEngagementThresholdMs||_.wjj(z,!0)}else e.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.eA(this.hostElement,"yt-autonav-pause-user-engagement",[e])},
isPlayerUnavailable_:function(e,z,C){return!!e&&!this.isVideoPlayable_(e,C)&&!z},
getPlayerOverlays_:function(e){return(e==null?void 0:e.playerOverlays)||null},
isVideoPlayable_:function(e,z){if(!e)return!1;var C=e.status==="OK"||e.status==="LIVE_STREAM_OFFLINE",w=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",e)||this.get("errorScreen.ypcTrailerRenderer",e);e=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",e);var K;z=z==null?void 0:(K=z.playerOverlayRenderer)==null?void 0:K.gatedActionsOverlayRenderer;return!!C||!!w||!!e||!!z},
hasWatchNextResponseErrorRenderer:function(e){var z=this.getPageContents(e),C,w,K,G,X;return!(e==null?0:(C=e.contents)==null?0:(w=C.twoColumnWatchNextResults)==null?0:w.secondaryResults)&&!!((K=z[0])==null?0:(G=K.itemSectionRenderer)==null?0:(X=G.contents[0])==null?0:X.backgroundPromoRenderer)},
isLiveStreamOffline_:function(e){return e?e.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(e,z,C){var w=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",z),K=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];K=_.M("web_no_skip_video_on_verification_checks")?(e==null?void 0:e.status)&&K.includes(e.status):e&&e.status==="AGE_CHECK_REQUIRED";var G=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",e);G==void 0&&(G=!0);!C||this.isVideoPlayable_(e,this.getPlayerOverlays_(z))||
w||K||!G||_.lh().resolve(_.Us).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.imw()},
onPlayerFeedbackStartRequest_:function(e){_.eA(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:e}])},
onPlayerFeedbackArticleRequest_:function(e){_.eA(this.hostElement,"yt-help-dialog-requested",[e])},
onPlayerYpcContentRequest_:function(){var e,z,C,w,K,G,X,J,q=((e=this.data)==null?NaN:(z=e.contents)==null?NaN:(C=z.twoColumnWatchNextResults)==null?NaN:(w=C.secondaryResults)==null?NaN:(K=w.secondaryResults)==null?NaN:(G=K.offerModule)==null?NaN:(X=G.tvfilmOfferModuleRenderer)==null?NaN:(J=X.actionButtons)==null?NaN:J.length)-1;e=[".offerButton.buttonRenderer.",".actionButtons."+(q>=0?q:0)+".buttonRenderer."];z=_.b(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(C=z.next();!C.done;C=z.next())for(C=C.value,w=_.b(e),K=w.next();!K.done;K=w.next())if(K="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+C+K.value,K=this.get(K+"navigationEndpoint",this.data)||this.get(K+"serviceEndpoint",this.data)||this.get(K+"command",this.data)){_.$p(K,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(e){_.pi(this.hostElement,"yt-autonav-pause-player",e)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(e){e()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(e){switch(e){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.pi(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(e)},
setPlayerState:function(e){_.eB().dispatch(_.mjg(e))},
onPlayerSubscribe_:function(e){_.eA(this.hostElement,"yt-player-subscribe",[e])},
onPlayerUnsubscribe_:function(e){_.eA(this.hostElement,"yt-player-unsubscribe",[e])},
onPlayerAdYtShowToast_:function(e){_.eA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:e.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(e){if(e)return e},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(e){return!_.o3("web_watch_move_summary_to_sd")&&!!e},
computeWatchMetadataRefresh:function(){return _.M("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var e,z,C,w;this.watchNextSecondaryResults=(e=this.data)==null?void 0:(z=e.contents)==null?void 0:(C=z.twoColumnWatchNextResults)==null?void 0:(w=C.secondaryResults)==null?void 0:w.secondaryResults}},
setRichGridRendererData:function(e){this.richGridRendererData=e},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var e,z=(e=this.data)==null?void 0:e.engagementPanels;if(z==null?0:z.length){e=null;z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=void 0;if(((w=C.engagementPanelSectionListRenderer)==null?void 0:w.targetId)==="engagement-panel-structured-description"){e=C;break}}var K,G,X;e=(K=e)==null?void 0:(G=K.engagementPanelSectionListRenderer)==null?void 0:(X=G.content)==null?void 0:X.structuredDescriptionContentRenderer;if(e==null?0:e.items){K=
[];G=_.b(e.items);for(X=G.next();!X.done;X=G.next()){X=X.value;if(!_.M("sd_horizontal_list_show_nav_killswitch")){var J=w=C=z=e=void 0,q=void 0,T=(e=X.horizontalCardListRenderer)==null?void 0:(z=e.header)==null?void 0:(C=z.richListHeaderRenderer)==null?void 0:(w=C.navigationButton)==null?void 0:(J=w.buttonRenderer)==null?void 0:(q=J.command)==null?void 0:q.commandExecutorCommand;T&&T.commands&&(T.commands=T.commands.filter(function(Q){return!_.r(Q,_.e6g)}))}X.expandableVideoDescriptionBodyRenderer||
X.videoDescriptionHeaderRenderer||K.push(X)}return{items:K}}}},
constructWarning_:function(e){return{text:_.AO(e),type:"WARNING"}},
isPlaShelfEnabled_:function(e){if((this.get("adPlacements",e)||[]).length)return!0;e=this.get("playerAds",e)||[];return!(!e.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",e[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var e=this;_.pi(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var z=this.getScrollTop()>0;this.gestures_&&(z?this.gestures_.detach():this.gestures_.attach());z!==this.showFullerscreenEdu_&&_.M("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=z,_.K7(this).getPlayerPromise().then(function(C){C.updateFullerscreenEduButtonVisibility(e.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.pi(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var e=this;this.commentsReady=!1;_.c5.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Dz(_.c5,function(){e.setComments_()},1E3)},
setComments_:function(){if(!_.M("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.hg("cmi");_.c5.cancelJob(this.setCommentsJobId_);var e=this.getPageContents(this.data);if(e&&e.length){e=_.b(e);for(var z=e.next();!z.done;z=e.next())if(z=z.value,this.get("itemSectionRenderer.sectionIdentifier",z)==="comment-item-section"){this.comments=z.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.pi(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.M("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.M("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.hg("cmc")},
doRemoveComments_:function(){this.comments={};_.M("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.c5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.c5.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(e,z){var C=_.r(z.endpoint,_.N$);C&&(!(z=this.get("data.currentVideoEndpoint.watchEndpoint"))||C.videoId!==z.videoId||C.playlistId&&C.playlistId!==z.playlistId||C.index!==void 0&&C.index!==z.index||typeof C.startTimeSeconds!=="number"||(e.stopPropagation(),this.setScrollTop(0),_.K7(this).getPlayerPromise().then(function(w){var K=C.startTimeSeconds;w.seekTo(K);w.wakeUpControls();K<w.getDuration()&&w.playVideo()})))},
updatePlayerStartTime_:function(){var e=_.vpL();"t"in e&&(e=_.DFl(e.t),this.player.seekTo(e,!0))},
updateTitleFromWatchNext:function(e){e=this.getPageContents(e);var z,C;(e=_.Zd(e==null?void 0:(z=e[0])==null?void 0:(C=z.videoPrimaryInfoRenderer)==null?void 0:C.title))&&_.pi(this.hostElement,"yt-update-title",e)},
updateTitle_:function(e){e=this.get("videoDetails.title",e)||"";_.pi(this.hostElement,"yt-update-title",e)},
syncWithRemoteVideo_:function(e,z,C){if(this.active&&this.player){var w=this.player.getVideoData();if(w.video_id===C&&(C=w.list,_.M("polymer_enable_mdx_queue")&&C&&C.startsWith("RQ")&&(C=void 0),w.video_id!==e||C!=z)){var K;_.M("kevlar_player_watch_endpoint_navigation")?K=_.B7g(_.VQL(e,z)):K=this.buildWatchEndpoint_(e,z);_.pi(this.hostElement,"yt-navigate",{endpoint:K,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(e,z,C){return _.wk(e,z,C)},
initDclkstatus_:function(){_.uHj()},
attachWatchPageSkeleton_:function(){var e=document.querySelector("#watch-page-skeleton");if(e){var z=e.querySelector("#primary-info"),C=e.querySelector("#secondary-info"),w=e.querySelector("#related");z&&_.XC(this.hostElement).querySelector("#info-skeleton").appendChild(z);C&&_.XC(this.hostElement).querySelector("#meta-skeleton").appendChild(C);w&&(_.XC(this.hostElement).querySelector("#related-skeleton").appendChild(w),this.watchNextSkeletonEl_=w);_.hA(e)}},
handlePlayerUpdated_:function(){_.K7(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(e,z){if(this.watchNextSkeletonEl_&&typeof z!=="undefined"){var C=this.watchNextSkeletonEl_.children,w=e&&e.indexSplices.length?e.indexSplices[0].index:0;e=Math.min(this.watchNextShownItems.length,C.length);z||(w=0,e=C.length);for(z=w;z<e;z++)C[z].classList.add("hidden")}},
onPlayerFullscreenChange_:function(e){_.M("external_fullscreen")||_.eA(this.hostElement,"yt-player-fullscreen",[e.fullscreen])},
onFullscreenChange_:function(e){this.fullscreen=e;this.gestures_&&this.gestures_.update(this.fullscreen);var z=_.K7(this);z.getPlayerPromise().then(function(C){C.setFauxFullscreen(!!_.yq())});
this.updateFullBleedElementLocations();e&&(z.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(e,z){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!z},
computeIsDonationShelfCollapsed_:function(e){return e},
computeShouldShowMerchShelf:function(e,z){return z&&!!e},
computeResponseHasComments:function(e){var z,C,w,K,G;return!!(e==null?0:(z=e.contents)==null?0:(C=z.twoColumnWatchNextResults)==null?0:(w=C.results)==null?0:(K=w.results)==null?0:(G=K.contents)==null?0:G.some(function(X){var J;return(X==null?void 0:(J=X.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(e,z){this.responseHasComments=this.computeResponseHasComments(this.data);return!!e&&!!Object.keys(e).length&&!z},
identity:_.F4,onWindowResized_:function(e){this.windowSize_=e;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.M("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(e){var z=this;e&&e.type!=="dataloaded"&&e.type!=="dataupdated"||_.K7(this).getPlayerPromise().then(function(C){var w=C.getPlayerState();w!==5&&w!==0&&(C=1/C.getVideoAspectRatio(),z.videoHeightToWidthRatio_!==C&&(z.videoHeightToWidthRatio_=C))})},
schedulePlayerSizeUpdate_:function(e){var z=this,C=_.M("kevlar_watch_while_v2")||_.M("web_watch_pip"),w=function(){if(z.watchMetadata){var K,G;(G=(K=z.watchMetadata).resize)==null||G.call(K)}_.K7(z).getPlayerPromise().then(function(X){if(_.M("kevlar_set_internal_player_size")){if(!C||!z.isMiniplayerActive()){var J=z.calculateCurrentPlayerSize_();X.setInternalSize(J.width,J.height)}}else X.setSize(NaN,NaN);_.M("kevlar_watch_while")&&z.updateWatchWhileScrollThreshold_()})};
e?w():_.UQ(_.c5,w)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(e){this.set("data.survey",e.detail)},
onYtShowSurveyCommand_:function(e){this.set("data.survey",_.r(e,_.yEa).survey)},
onDownloadedVideoDeleted:function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1){if(!z.active||(C=z.playerData)==null||!C.offlineState||z.videoId!==e)return K.return();(w=z.player)==null||w.stopVideo();_.C3().navigatingAwayFromWatchDeletedVideo=!0;_.$p(_.Zz5,z.hostElement);return K.yield(_.C3().navigationFinishPromise,2)}_.C3().navigatingAwayFromWatchDeletedVideo=!1;_.E_(K)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var e;this.theater?e=_.NZ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):e=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==e&&(this.watchWhileScrollThreshold_=e,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var e=_.XC(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&e){var z=this.windowSize_.height>=624,C=this.active?this.getScrollTop():0;!e.active&&z&&C>=this.watchWhileScrollThreshold_?(e.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):e.active&&(!z||C<this.watchWhileScrollThreshold_&&!_.yq())&&(e.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(e,z){if(e!==!0||z!==void 0){e=!_.M("live_chat_over_engagement_panels");z=_.XC(this.hostElement).querySelector("#chat-container");var C=_.XC(this.hostElement).querySelector("#plj-sidebar"),w=_.XC(this.hostElement).querySelector("#panels"),K=_.XC(this.hostElement).querySelector("#plj-panels"),G=_.XC(this.hostElement).querySelector("#plj-playlist"),X=_.XC(this.hostElement).querySelector("#alerts"),J=_.XC(this.hostElement).querySelector("#playlist"),q=_.XC(this.hostElement).querySelector("#related"),
T=_.XC(this.hostElement).querySelector("#donation-shelf"),Q=_.XC(this.hostElement).querySelector("#comments");this.isTwoColumns_?(X=_.XC(this.hostElement).querySelector("#secondary-inner"),X.appendChild(C),C.appendChild(G),G.appendChild(J),C.appendChild(K),e&&X.appendChild(w),_.M("web_watch_theater_chat")||X.appendChild(z),e||X.appendChild(w),X.appendChild(T),X.appendChild(q)):(e&&_.cT(w,X),_.cT(J,X),_.M("web_watch_theater_chat")||_.cT(z,X),e||_.cT(w,X),_.cT(T,X),Q&&(K&&_.cT(K,Q),_.cT(q,Q)));_.M("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.M("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.M("web_watch_theater_chat")){var e=_.XC(this.hostElement).querySelector("#chat-container"),z=this.theater&&!this.fullscreen||_.M("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&z?_.M("web_watch_theater_chat_beside_player")?(z=_.XC(this.hostElement).querySelector("#panels-full-bleed-container"),(e==null?void 0:e.parentElement)!==z&&z.append(e),this.panelsBesidePlayer=!0):_.M("web_watch_theater_fixed_chat")&&
(z=_.XC(this.hostElement).querySelector("#columns"),(e==null?void 0:e.parentElement)!==z&&z.append(e),this.fixedPanels=!0):(_.M("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.M("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),z=_.XC(this.hostElement).querySelector("#playlist"),e&&z?_.AL(e,z):_.AX(new _.uh("Missing element when updating chat location",{"chatContainer defined":!!e,"playlist defined":!!z})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(e,z){return _.M("sw_metadata_vis_toggle_ks")?!0:!!e||!!z},
computeForceDarkPanelTheme:function(e){return _.M("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&e:!1},
safeUpdateStyles:function(e){try{_.T8(this.hostElement,e)}catch(z){_.AX(z)}},
videoHeightToWidthRatioChanged_:function(e,z){z&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.M("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(e){this.videoHeightToWidthRatio_=1/e},
computeIsVerticalVideo_:function(e){return e>=1},
computeIsFourThreeToSixteenNineVideo_:function(e){return e<=.7501&&e>=.5624},
computeIsExtraWideVideo_:function(e){return e<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.K7(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.K7(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.KBj(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(e){var z=_.PJ(e)||0;_.WJ(e,z+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var e=_.PJ("yt-fullerscreen-edu-button-click-count")||0,z=_.PJ("yt-fullerscreen-edu-button-shown-count")||0,C=_.n0("external_fullscreen_button_shown_threshold"),w=e>=_.n0("external_fullscreen_button_click_threshold")||z>=C;_.K7(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonSubtleModeState(w)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(e,z){return z},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.lh().resolve(_.Us).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var e=this;this.panelMaxHeightUpdateJob_&&_.c5.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.c5.addLowPriorityJob(function(){e.panelMaxHeightUpdateJob_=0;var z;!e.isTwoColumns_||e.theater||e.fullscreen?z=460:z=e.calculateNormalPlayerSize_().height;var C=z+"px";_.M("live_chat_taller_height")&&!e.theater&&(C="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.M("live_chat_medium_height")&&
!e.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.M("live_chat_scaled_height")&&!e.theater&&(C="calc(100vh - var(--ytd-toolbar-height) - 238px)");e.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":z+"px","--ytd-watch-flexy-chat-max-height":C,"--ytd-watch-flexy-structured-description-max-height":z+"px","--ytd-watch-flexy-comments-panel-max-height":z+"px","--ytd-comments-engagement-panel-content-height":z+"px"})})},
onYtShowEngagementPanelScrimAction_:function(e){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",e)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.KK(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(e){var z=_.XC(this.hostElement).querySelector("#engagement-panel-scrim");e?z.addEventListener("tap",_.lE(this,this.onEngagementPanelScrimClick_)):z.removeEventListener("tap",_.lE(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(e){if(this.hostElement.contains(e)&&!this.scrollToAnimation_.isAnimating()){var z=e.offsetTop-24;e=e.offsetTop+e.offsetHeight+24;var C=this.getPageScrollingElement(),w=this.getScrollTop(),K=w+C.clientHeight-56;if(z<w+56)z-=56;else if(e>K)z=e-C.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,z),500)}},
onYtSignalActionScrollToComments:function(){var e=this.hostElement.querySelector("#comments");if(e&&!this.scrollToAnimation_.isAnimating()){e=e.offsetTop-56-24;if(_.M("kevlar_comment_teaser_scroll_to_midpoint")&&(e-=_.LJ().height/3,e<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,e),500)}},
onYtEngagementPanelVisibleChanged:function(e,z,C){this.active&&this.trackEngagementPanelVisibility&&!_.gpC.includes(C)&&(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(C),z!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(C),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(e){return e?"":"watch-active-metadata"},
computeNewMetadataClass:function(e){return e?"watch-active-metadata":""},
computeFullBleedPlayer:function(e,z){return e||z},
computeDefaultLayout:function(e){return!e},
computeDefaultTwoColumnLayout:function(e,z){return!e&&z},
computeWatchWhilePanelsActive:function(e,z){return e||z},
computeNoBorderOnChat:function(e){return _.M("web_watch_theater_chat_no_border")&&e},
computeLiveChatPresentAndExpanded:function(e,z){return e&&!z},
computePanelExpanded:function(e,z,C){return e||z||C},
onChangeMarkersVisibility:function(e){_.K7(this).getPlayerPromise().then(function(z){var C;(C=z.changeMarkerVisibility)==null||C.call(z,_.r(e,_.sw).isVisible||!1,_.r(e,_.sw).entityKeys||[],_.r(e,_.sw).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(e){this.liveChatCollapsed=e.detail;_.eB().dispatch(_.tQt(e.detail))},
provideRenderingData:function(e,z){switch(e){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=z;break;case "PRIMARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=z);this.videoPrimaryInfoRendererValue=z==null?void 0:z.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.M("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=z);this.videoSecondaryInfoRendererValue=z==null?void 0:z.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
z;break;case "CLARIFICATION":this.clarifyBoxValue=z;break;case "LIVE_CHAT":this.conversationBar=z;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=z;break;case "PLAYLIST":this.externalPlaylistData_=z!=null?z:{};break;case "MERCH_SHELF":this.merchShelfValue=z==null?void 0:z.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=z;break;case "OFFER_MODULE":this.offerModule=z;break;case "LIMITED_STATE":this.limitedStateValue=z;break;case "DONATION_SHELF":this.donation=z;break;
case "ALERTS":this.alertsValue=z;break;case "COMMENTS":this.comments=z;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=z;break;case "ENGAGEMENT_PANELS":this.engagementPanels=z;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=z;break;case "RICH_GRID_RENDERER":this.richGridRendererData=z;break;case "EXPANDABLE_METADATA":this.expandableMetadata=z;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=z}},
toggleCinematicsActive:function(e){this.cinematicsActive=e},
isMiniplayerActive:function(){return _.lh().resolve(_.gh).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(e){return vfY.map(function(z){return e.find(function(C){var w;return(C==null?void 0:(w=C.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===z})}).filter(function(z){return z!==void 0})},
getNonLearningJourneyEngagementPanels:function(e){return e.filter(function(z){var C;return!vfY.includes((z==null?void 0:(C=z.engagementPanelSectionListRenderer)==null?void 0:C.targetId)||"")})}}];var IeC;var pe=function(){var e=_.V.apply(this,arguments)||this;e.flexy=!0;e.learningJourney=!0;e.viewTransitionEnabled=_.M("enable_player_resize_transition");e.smallerChatMinHeight=_.M("live_chat_smaller_min_height");e.isDarkTheme=document.documentElement.hasAttribute("dark");e.theaterLargerPlayer=_.M("web_watch_theater_larger_player");e.defaultCollapsePlaylist=_.M("web_watch_default_collapse_playlist");e.enableCanvasLayout=_.M("web_enable_canvas_on_learning_journey");return e};
_.U(pe,_.V);_.Y=pe.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Y.ready=function(){var e=this,z=function(){e.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(e){_.M("web_watch_update_narrow_width_killswitch")||_.eB().dispatch(_.gOT(!e.detail.value));this.ytdWatchBehavior.isTwoColumns_=e.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(e){this.ytdWatchBehavior.flexySmallWindow_=e.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(e){this.ytdWatchBehavior.flexyLargeWindow_=e.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(e){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=e.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(e){this.ytdWatchBehavior.watchNextCanShowMore=e.detail.value};
_.Y.updateShownItemsFromBinding=function(e){e.detail.path?this.set(e.detail.path,e.detail.value):this.ytdWatchBehavior.watchNextShownItems=e.detail.value};
_.Y.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23842_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23842_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.lB.Object.defineProperties(pe.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(e=_.r(this.data.pageVisualEffects[z],_.pL))return z=void 0,(z=e.config)==null?void 0:z.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.learningJourneyEngagementPanels)==null?void 0:e.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var e,z=(e=this.learningJourneyEngagementPanels)==null?void 0:e.find(function(a){var n;return(a==null?void 0:(n=a.engagementPanelSectionListRenderer)==null?void 0:n.panelIdentifier)==="learning-journey-engagement-panel"});
if(z){var C,w,K,G,X,J,q,T,Q;if(e=(T=((q=(X=((G=z==null?void 0:(C=z.engagementPanelSectionListRenderer)==null?void 0:(w=C.content)==null?void 0:(K=w.sectionListRenderer)==null?void 0:K.contents)!=null?G:[])[0])==null?void 0:(J=X.itemSectionRenderer)==null?void 0:J.contents)!=null?q:[])[0])==null?void 0:(Q=T.accordionViewModel)==null?void 0:Q.onTitleTap){var m=_.SQ(e);if(m)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Tx.instance.resolveCommand(m)}}}}}}});
_.lB.Object.defineProperties(pe,{template:{configurable:!0,enumerable:!0,get:function(){if(IeC===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);IeC=e}e=IeC;return e}}});
pe.prototype.updateMiniplayerIsActiveValue=pe.prototype.updateMiniplayerIsActiveValue;pe.prototype.updateScrollTopValue=pe.prototype.updateScrollTopValue;pe.prototype.updateFullscreenValue=pe.prototype.updateFullscreenValue;pe.prototype.updateTheaterValue=pe.prototype.updateTheaterValue;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);
_.d([_.W(UTC.YtdLearningJourneyWatchBehavior),_.B("design:type",Object)],pe.prototype,"ytdWatchBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],pe.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],pe.prototype,"playerData",void 0);_.d([_.F(),_.B("design:type",Object)],pe.prototype,"browseData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pe.prototype,"flexy",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pe.prototype,"learningJourney",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pe.prototype,"viewTransitionEnabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pe.prototype,"smallerChatMinHeight",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pe.prototype,"isDarkTheme",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],pe.prototype,"theaterLargerPlayer",void 0);_.d([_.F(),_.B("design:type",Object)],pe.prototype,"defaultCollapsePlaylist",void 0);_.d([_.F(),_.B("design:type",Object)],pe.prototype,"enableCanvasLayout",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("playerData","browseData","enableCanvasLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pe.prototype,"showBrowseResponse",null);
_.d([_.F({reflectToAttribute:!0}),_.P("playerData","enableCanvasLayout"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],pe.prototype,"showWatchResponse",null);_.d([_.F({selector:_.VC}),_.B("design:type",Object)],pe.prototype,"theaterValue",void 0);_.d([_.F({selector:_.fU}),_.B("design:type",Object)],pe.prototype,"fullscreenValue",void 0);_.d([_.F({selector:_.Lf}),_.B("design:type",Object)],pe.prototype,"scrollTopValue",void 0);
_.d([_.F({selector:_.V2}),_.B("design:type",Object)],pe.prototype,"miniplayerIsActiveValue",void 0);_.d([_.nP("#ytd-plj-player"),_.B("design:type",HTMLElement)],pe.prototype,"ytdPlayer",void 0);_.d([_.nP("#playlist"),_.B("design:type",HTMLElement)],pe.prototype,"JSC$23842_ytdPlaylistPanelRenderer",void 0);_.d([_.bx("ytd-comments"),_.B("design:type",HTMLElement)],pe.prototype,"ytdComments",void 0);_.d([_.nP("#primary"),_.B("design:type",HTMLElement)],pe.prototype,"primary",void 0);
_.d([_.nP("#secondary"),_.B("design:type",HTMLElement)],pe.prototype,"secondary",void 0);_.d([_.nP("#player-container"),_.B("design:type",HTMLElement)],pe.prototype,"playerContainer",void 0);_.d([_.nP("#cinematics"),_.B("design:type",HTMLElement)],pe.prototype,"JSC$23842_cinematics",void 0);_.d([_.mi("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pe.prototype,"updateTheaterValue",null);
_.d([_.mi("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pe.prototype,"updateFullscreenValue",null);_.d([_.mi("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pe.prototype,"updateScrollTopValue",null);_.d([_.mi("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pe.prototype,"updateMiniplayerIsActiveValue",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pe.prototype,"cinematicLightTheme",null);_.d([_.F({reflectToAttribute:!0}),_.P("learningJourneyEngagementPanels"),_.B("design:type",Object),_.B("design:paramtypes",[])],pe.prototype,"hasLearningJourneyPanels",null);_.d([_.P("learningJourneyEngagementPanels"),_.B("design:type",Object),_.B("design:paramtypes",[])],pe.prototype,"backButtonData",null);_.d([_.SL({is:"ytd-watch-learning-journey"})],pe);_.mj.registerService(_.nrm,pe);
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("Tm0L3c");
var xTw;var TG2;var $Ty=function(){return _.V.apply(this,arguments)||this};
_.U($Ty,_.V);_.d([_.SL({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],$Ty);
_.u($Ty,"ytd-ghost-comments-renderer",function(){if(TG2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);TG2=e}e=TG2;return e},{mode:1});var le2;var Qoj=function(){return _.V.apply(this,arguments)||this};
_.U(Qoj,_.V);_.d([_.SL({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Qoj);
_.u(Qoj,"ytd-ghost-watch-metadata-renderer",function(){if(le2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);le2=e}e=le2;return e},{mode:1});var Zx=function(){var e=_.V.apply(this,arguments)||this;e.ghostGridRenderer={rows:6};e.smallerChatMinHeight=_.M("live_chat_smaller_min_height");e.darkerPanels=_.M("web_watch_darker_panels");e.isDarkTheme=document.documentElement.hasAttribute("dark");return e};
_.U(Zx,_.V);_.Y=Zx.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.Y.ready=function(){var e=this,z=function(){e.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(e){this.ytdWatchBehavior.isTwoColumns_=e.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(e){this.ytdWatchBehavior.flexySmallWindow_=e.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(e){this.ytdWatchBehavior.flexyLargeWindow_=e.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(e){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=e.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(e){this.ytdWatchBehavior.watchNextCanShowMore=e.detail.value};
_.Y.updateShownItemsFromBinding=function(e){_.M("swatcheroo_direct_use_rich_grid")||(e.detail.path?this.set(e.detail.path,e.detail.value):this.ytdWatchBehavior.watchNextShownItems=e.detail.value)};
_.Y.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23830_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23830_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.lB.Object.defineProperties(Zx.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(e=_.r(this.data.pageVisualEffects[z],_.pL))return z=void 0,(z=e.config)==null?void 0:z.enableInLightTheme;return!1}}});
Zx.prototype.updateMiniplayerIsActiveValue=Zx.prototype.updateMiniplayerIsActiveValue;Zx.prototype.updateScrollTopValue=Zx.prototype.updateScrollTopValue;Zx.prototype.updateFullscreenValue=Zx.prototype.updateFullscreenValue;Zx.prototype.updateTheaterValue=Zx.prototype.updateTheaterValue;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Zx.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.k9t.YtdWatchBehavior),_.B("design:type",Object)],Zx.prototype,"ytdWatchBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Zx.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Zx.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Zx.prototype,"ghostGridRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],Zx.prototype,"playerData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Zx.prototype,"smallerChatMinHeight",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Zx.prototype,"darkerPanels",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Zx.prototype,"isDarkTheme",void 0);_.d([_.F({selector:_.VC}),_.B("design:type",Object)],Zx.prototype,"theaterValue",void 0);_.d([_.F({selector:_.fU}),_.B("design:type",Object)],Zx.prototype,"fullscreenValue",void 0);_.d([_.F({selector:_.Lf}),_.B("design:type",Object)],Zx.prototype,"scrollTopValue",void 0);
_.d([_.F({selector:_.V2}),_.B("design:type",Object)],Zx.prototype,"miniplayerIsActiveValue",void 0);_.d([_.nP("#ytd-player"),_.B("design:type",HTMLElement)],Zx.prototype,"ytdPlayer",void 0);_.d([_.nP("#playlist"),_.B("design:type",HTMLElement)],Zx.prototype,"JSC$23830_ytdPlaylistPanelRenderer",void 0);_.d([_.nP("#ytd-comments"),_.B("design:type",HTMLElement)],Zx.prototype,"ytdComments",void 0);_.d([_.nP("#primary"),_.B("design:type",HTMLElement)],Zx.prototype,"primary",void 0);
_.d([_.nP("#secondary"),_.B("design:type",HTMLElement)],Zx.prototype,"secondary",void 0);_.d([_.nP("#player-container"),_.B("design:type",HTMLElement)],Zx.prototype,"playerContainer",void 0);_.d([_.nP("#cinematics"),_.B("design:type",HTMLElement)],Zx.prototype,"JSC$23830_cinematics",void 0);_.d([_.mi("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zx.prototype,"updateTheaterValue",null);
_.d([_.mi("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zx.prototype,"updateFullscreenValue",null);_.d([_.mi("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zx.prototype,"updateScrollTopValue",null);_.d([_.mi("miniplayerIsActiveValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zx.prototype,"updateMiniplayerIsActiveValue",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Zx.prototype,"cinematicLightTheme",null);
_.u(Zx,"ytd-watch-grid",function(){if(xTw===void 0){var e=document.createElement("template");_.v(e,'\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-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" 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-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" 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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);xTw=e}e=xTw;return e},{mode:2});_.mj.registerService(_.ax1,Zx);
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("CF909");
var qT2;var As=function(){var e=_.V.apply(this,arguments)||this;e.viewTransitionEnabled=_.M("enable_player_resize_transition");e.smallerChatMinHeight=_.M("live_chat_smaller_min_height");e.isDarkTheme=document.documentElement.hasAttribute("dark");e.defaultCollapsePlaylist=_.M("web_watch_default_collapse_playlist");e.respectAspectRatio=_.M("web_enable_aspect_ratio_fix");e.retroModeReduxValue=!1;e.persistentPanelVisibleValue=!1;return e};
_.U(As,_.V);_.Y=As.prototype;_.Y.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.Y.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.Y.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.Y.updateRetroModeReduxValue=function(){_.M("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.Y.updatePersistentPanelVisibleValue=function(){_.M("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.Y.ready=function(){var e=this,z=function(){e.onColumnScroll()};
this.primary.addEventListener("scroll",z);this.secondary.addEventListener("scroll",z)};
_.Y.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.Y.updateIsTwoColumnsFromBinding=function(e){_.M("web_watch_update_narrow_width_killswitch")||_.eB().dispatch(_.gOT(!e.detail.value));this.ytdWatchBehavior.isTwoColumns_=e.detail.value};
_.Y.updateFlexySmallWindowFromBinding=function(e){this.ytdWatchBehavior.flexySmallWindow_=e.detail.value};
_.Y.updateFlexyLargeWindowFromBinding=function(e){this.ytdWatchBehavior.flexyLargeWindow_=e.detail.value};
_.Y.updateWatchWhileWindowSizeSufficientFromBinding=function(e){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=e.detail.value};
_.Y.updateWatchNextCanShowMoreFromBinding=function(e){this.ytdWatchBehavior.watchNextCanShowMore=e.detail.value};
_.Y.updateShownItemsFromBinding=function(e){e.detail.path?this.set(e.detail.path,e.detail.value):this.ytdWatchBehavior.watchNextShownItems=e.detail.value};
_.Y.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23825_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23825_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.lB.Object.defineProperties(As.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.pageVisualEffects)return!1;for(var z=0;z<this.data.pageVisualEffects.length;z++)if(e=_.r(this.data.pageVisualEffects[z],_.pL))return z=void 0,(z=e.config)==null?void 0:z.enableInLightTheme;return!1}}});
_.lB.Object.defineProperties(As,{template:{configurable:!0,enumerable:!0,get:function(){if(qT2===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\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" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);qT2=e}e=qT2;return e}}});
As.prototype.updatePersistentPanelVisibleValue=As.prototype.updatePersistentPanelVisibleValue;As.prototype.updateRetroModeReduxValue=As.prototype.updateRetroModeReduxValue;As.prototype.updateScrollTopValue=As.prototype.updateScrollTopValue;As.prototype.updateFullscreenValue=As.prototype.updateFullscreenValue;As.prototype.updateTheaterValue=As.prototype.updateTheaterValue;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],As.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.k9t.YtdWatchBehavior),_.B("design:type",Object)],As.prototype,"ytdWatchBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],As.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],As.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],As.prototype,"playerData",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],As.prototype,"viewTransitionEnabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],As.prototype,"smallerChatMinHeight",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],As.prototype,"isDarkTheme",void 0);_.d([_.F(),_.B("design:type",Object)],As.prototype,"defaultCollapsePlaylist",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],As.prototype,"respectAspectRatio",void 0);
_.d([_.F({selector:_.VC}),_.B("design:type",Object)],As.prototype,"theaterValue",void 0);_.d([_.F({selector:_.fU}),_.B("design:type",Object)],As.prototype,"fullscreenValue",void 0);_.d([_.F({selector:_.Lf}),_.B("design:type",Object)],As.prototype,"scrollTopValue",void 0);_.d([_.F({selector:_.V2}),_.B("design:type",Object)],As.prototype,"miniplayerIsActive",void 0);_.d([_.F({selector:function(e){return e.watch.isWatchRetroMode}}),
_.B("design:type",Object)],As.prototype,"retroModeReduxValue",void 0);_.d([_.F({selector:_.cF.persistentPanelVisibleSelector}),_.B("design:type",Object)],As.prototype,"persistentPanelVisibleValue",void 0);_.d([_.bx("ytd-player"),_.B("design:type",HTMLElement)],As.prototype,"ytdPlayer",void 0);_.d([_.nP("#playlist"),_.B("design:type",HTMLElement)],As.prototype,"JSC$23825_ytdPlaylistPanelRenderer",void 0);_.d([_.bx("ytd-comments"),_.B("design:type",HTMLElement)],As.prototype,"ytdComments",void 0);
_.d([_.nP("#primary"),_.B("design:type",HTMLElement)],As.prototype,"primary",void 0);_.d([_.nP("#secondary"),_.B("design:type",HTMLElement)],As.prototype,"secondary",void 0);_.d([_.nP("#player-container"),_.B("design:type",HTMLElement)],As.prototype,"playerContainer",void 0);_.d([_.nP("#below"),_.B("design:type",HTMLElement)],As.prototype,"below",void 0);_.d([_.nP("#cinematics"),_.B("design:type",HTMLElement)],As.prototype,"JSC$23825_cinematics",void 0);
_.d([_.nP("#persistent-panel-container"),_.B("design:type",HTMLElement)],As.prototype,"persistentPanelContainer",void 0);_.d([_.mi("theaterValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],As.prototype,"updateTheaterValue",null);_.d([_.mi("fullscreenValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],As.prototype,"updateFullscreenValue",null);
_.d([_.mi("scrollTopValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],As.prototype,"updateScrollTopValue",null);_.d([_.mi("retroModeReduxValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],As.prototype,"updateRetroModeReduxValue",null);_.d([_.mi("persistentPanelVisibleValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],As.prototype,"updatePersistentPanelVisibleValue",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],As.prototype,"cinematicLightTheme",null);_.d([_.SL({is:"ytd-watch-flexy"})],As);_.mj.registerService(_.m9g,As);
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("nmfa2d");
var UF2;var iN=function(){var e=_.V.apply(this,arguments)||this;e.hidden=!1;e.errorScreen=null;e.playlistData={};return e};
_.U(iN,_.V);_.Y=iN.prototype;_.Y.getPlayer=function(){return this.ytdPlayer};
_.Y.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:_.jb(["aa","eocs"])}}};
_.Y.onActiveChanged=function(){_.eB().dispatch(_.z92(this.ytPageBehavior.active))};
_.Y.playerDataChanged=function(){var e;(e=this.watchController)==null||e.setPlayerResponse(this.playerData)};
_.Y.dataChanged=function(){var e;(e=this.watchController)==null||e.setWatchNextResponse(this.data)};
_.Y.sizeChanged=function(){var e,z;(z=(e=this.metadata).resize)==null||z.call(e)};
_.Y.attached=function(){this.watchController=new _.dv(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.Y.detached=function(){_.XU(this.watchController);this.watchController=void 0};
_.Y.getPlayerContainer=function(){return this.playerContainer};
_.Y.getElement=function(e){switch(e){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.Y.provideRenderingData=function(e,z){switch(e){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=z;break;case "ERROR_SCREEN":this.errorScreen=z!=null?z:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=z;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=z;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=z;break;case "RICH_METADATA":this.richMetadataRowContainer=z;break;case "CLARIFICATION":this.clarificationData=z;break;case "PLAYLIST":this.playlistData=
z!=null?z:{};break;case "MERCH_SHELF":this.merchShelf=z;break;case "TICKET_SHELF":this.ticketShelf=z;break;case "LIMITED_STATE":this.limitedState=z;break;case "DONATION_SHELF":this.donationShelf=z;break;case "ALERTS":this.alerts=z}};
_.lB.Object.defineProperties(iN.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return!this.hidden&&!!((e=this.data)==null?0:(z=e.contents)==null?0:(C=z.twoColumnWatchNextResults)==null?0:C.conversationBar)}}});
iN.prototype.sizeChanged=iN.prototype.sizeChanged;iN.prototype.dataChanged=iN.prototype.dataChanged;iN.prototype.playerDataChanged=iN.prototype.playerDataChanged;iN.prototype.onActiveChanged=iN.prototype.onActiveChanged;_.d([_.W(_.CF.YtPageBehavior),_.B("design:type",Object)],iN.prototype,"ytPageBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],iN.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],iN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],iN.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"playerData",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],iN.prototype,"hidden",void 0);_.d([_.nP("#ytd-player"),_.B("design:type",HTMLElement)],iN.prototype,"ytdPlayer",void 0);_.d([_.nP("#player-container"),_.B("design:type",HTMLElement)],iN.prototype,"playerContainer",void 0);_.d([_.nP("#metadata"),_.B("design:type",Object)],iN.prototype,"metadata",void 0);_.d([_.nP("#playlist"),_.B("design:type",HTMLElement)],iN.prototype,"playlistPanel",void 0);
_.d([_.F({selector:_.Nay,reflectToAttribute:!0}),_.B("design:type",Object)],iN.prototype,"fixie",void 0);_.d([_.F({selector:_.b_m,reflectToAttribute:!0}),_.B("design:type",Object)],iN.prototype,"singleColumn",void 0);_.d([_.F({selector:function(e){return _.VC(e)&&!_.fU(e)},
reflectToAttribute:!0}),_.B("design:type",Object)],iN.prototype,"theater",void 0);_.d([_.F({selector:_.fU,reflectToAttribute:!0}),_.B("design:type",Object)],iN.prototype,"fullscreen",void 0);_.d([_.F({selector:_.pIa}),_.B("design:type",Object)],iN.prototype,"windowSize",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"singleColumnContents",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"errorScreen",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"playlistData",void 0);
_.d([_.F(),_.B("design:type",Object)],iN.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"videoSecondaryInfoRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"richMetadataRowContainer",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"clarificationData",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"commentsEntryPointHeaderRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"ticketShelf",void 0);
_.d([_.F(),_.B("design:type",Object)],iN.prototype,"merchShelf",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"donationShelf",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"limitedState",void 0);_.d([_.F(),_.B("design:type",Object)],iN.prototype,"alerts",void 0);_.d([_.P("playlistData"),_.B("design:type",Object),_.B("design:paramtypes",[])],iN.prototype,"hasPlaylistData",null);
_.d([_.P("data","hidden"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iN.prototype,"hasChat",null);_.d([_.mi("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iN.prototype,"onActiveChanged",null);_.d([_.mi("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iN.prototype,"playerDataChanged",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iN.prototype,"dataChanged",null);_.d([_.mi("windowSize","singleColumn"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iN.prototype,"sizeChanged",null);
_.u(iN,"ytd-watch-fixie",function(){if(UF2===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);UF2=e}e=UF2;return e},{mode:1});_.mj.registerService(_.Q1E,iN);
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("xwEKAe");
var Fs2=function(e){e=e.command;var z=_.r(e,_.rP);return{command:e,reelPlayerOverlayRenderer:_.r(z==null?void 0:z.overlay,_.xwL),thumbnail:z==null?void 0:z.thumbnail,videoId:z.videoId}},VsT=function(e){e=e.command;
var z=_.r(e,_.lt);return{command:e,reelNonVideoContentRenderer:_.r(z==null?void 0:z.renderer,_.mu)}},f62=function(e){return e.entries?e.entries.map(function(z){return _.r(z==null?void 0:z.command,_.rP)?Fs2(z):VsT(z)}):[]},S3y=function(e){return e.prevEntries?e.prevEntries.map(function(z){return _.r(z==null?void 0:z.command,_.rP)?Fs2(z):VsT(z)}):[]},uFa=function(e){return _.xO(e)?e.getAttribute("jsname")==="coFSxe":!1},dvg=function(e,z){z.id||(z.id="ow"+_.c1(z));
e.setAttribute("jsowner",z.id);e.__owner=z;var C=_.j8(z,uFa);C&&(_.cwa.has(C)||_.cwa.set(C,[]),_.cwa.get(C).push(e));(C=_.ywc.get(z))||_.ywc.set(z,C=[]);C.includes(e)||C.push(e);z.setAttribute("__IS_OWNER",!0)},Dvt=function(){var e=_.W08(1);
e=_.q6(e,_.Ej1);if(!(_.IIg(e)||e[_.PYh]&&!e.__hasBeenSet))return e.value},i0y=function(e){return(e=_.o_4(e))?_.YYL(e):0},N3T=function(e){return e.shorts.isSmallScreenSqueezeback},sXC=function(e){return e.shorts.isPlaybackStarted},B3l=function(e){var z=_.Tj();
if(z.getFlag(202))z=z.getFlag(201);else{var C;z=(e==null?void 0:(C=e.config)==null?void 0:C.settingOnByDefault)!==void 0?e.config.settingOnByDefault:!_.o3("web_shorts_cinematics_disabled_by_default")}return z},tsj=function(e){var z=_.Tj();
_.$k(0,201,e);_.$k(0,202,!0);z.save()},yJ2=function(e){var z=_.W08(2),C=new Set;
_.BC(function(){return void C.forEach(function(w){return void w()})});
return function(w){var K=_.kJ(z);try{var G=gBw(jXT(e),w);C.add(G);return function(){G();C.delete(G)}}finally{_.kJ(K)}}},cJL=function(e){var z=e.children;
var C=e.root;_.Nm(function(){var w=yJ2(C)(z);_.BC(w)});
return document.createTextNode("")},gBw=function(e,z){var C=AJt(e);
(e=Dvt())&&dvg(C,e);_.Ug.setUp();z=_.b(_.Amo(z,!0));e=z.next().value;var w=z.next().value;z=_.b(e);for(e=z.next();!e.done;e=z.next())C.appendChild(e.value);_.Ug.log(C);_.Ug.tearDown();return function(){w();C.remove()}},jXT=function(e){if(typeof e==="string")return e=document.querySelector(e),_.yKb(e),e;
if(_.aV(e)&&e.nodeType===Node.ELEMENT_NODE)return e;if(!e.__value&&!e.__optional){var z=_.LbE.USE_ELEMENT_NOT_ASSIGNED(e.__expectedTagName);e.__hasErrored=!0;throw z;}return e.value},AJt=function(e){var z=document.createElementNS(e.namespaceURI,e.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return e.appendChild(z)},e_C=function(e,z,C,w){if(e)return w=w||e.likeStatus,z?{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:w==="LIKE",isDisabled:!e.likesAllowed,defaultIcon:{iconType:C},defaultText:w==="LIKE"?e.likeCountWithUnlikeText:e.likeCountText,toggledText:w==="LIKE"?e.likeCountText:e.likeCountWithLikeText,defaultNavigationEndpoint:Z0C(e,"LIKE"),defaultServiceEndpoint:piL(e,"LIKE"),toggledServiceEndpoint:piL(e,"INDIFFERENT"),defaultTooltip:_.Zd(e.likeCountTooltipText),toggledTooltip:_.Zd(e.likeCountTooltipText),targetId:e.targetId}:{style:{styleType:"STYLE_TEXT"},
toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:w==="DISLIKE",isDisabled:!e.likesAllowed,defaultIcon:{iconType:C},defaultText:w==="DISLIKE"?e.dislikeCountWithUndislikeText:e.dislikeCountText,toggledText:w==="DISLIKE"?e.dislikeCountText:e.dislikeCountWithDislikeText,defaultNavigationEndpoint:Z0C(e,"DISLIKE"),defaultServiceEndpoint:piL(e,"DISLIKE"),toggledServiceEndpoint:piL(e,"INDIFFERENT"),defaultTooltip:_.Zd(e.dislikeCountTooltipText),toggledTooltip:_.Zd(e.dislikeCountTooltipText)}},Z0C=
function(e,z){if(z==="LIKE")return e.likeCommand;
if(z==="DISLIKE")return e.dislikeNavigationEndpoint},piL=function(e,z){var C;
return(C=e.serviceEndpoints)==null?void 0:C.find(function(w){var K;return((K=_.r(w,_.bt))==null?void 0:K.status)===z})},z_Y=function(e,z,C,w){e=z-e;
C=w-C;return Math.sqrt(e*e+C*C)},CMl=function(e){var z=e>>8&255,C=e&255;
return"#"+(e>>16&255).toString(16).padStart(2,"0")+z.toString(16).padStart(2,"0")+C.toString(16).padStart(2,"0")},w52=function(e,z){e&&_.lh().resolve(_.ms).resolveCommand(e,{forceClickLogging:!0,
form:{element:z}})},K0w=function(){return _.lh().resolve(_.Cn).dismissedIndices},ojC=function(e,z){var C,w,K,G,X,J,q,T,Q;
return _.k(function(m){if(m.nextAddress==1){C=_.lh().resolve(_.p2);G=(w=C)==null?void 0:(K=w.reelWatchEndpointMap)==null?void 0:K.reelWatchSequence;J=(X=e.innertubeTransportService)!=null?X:_.lh().resolve(_.vJ);if(!G)return m.jumpTo(2);q=G();return(T=q.JSC$14340_getRequest(z,{}))?m.yield(_.Hc(J,T.innerTubeRequest,T.input,z.clickTrackingParams,T.config),4):m.jumpTo(2)}return m.nextAddress!=2?(Q=m.yieldResult,m.return(Q)):m.return(void 0)})},GT2=function(e,z,C){var w,K=(w=_.r(z,_.rP))==null?void 0:
w.videoId;
w=!(!K||!e.find(function(X){return X.videoId&&X.videoId===K}));
var G=!!e.find(function(X){var J;return((J=_.r(X.command,_.rP))==null?void 0:J.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
e=!!e.find(function(X){return!!_.r(X.command,_.lt)&&!!_.r(z,_.lt)&&X.command===z});
return C?w||e:w||G||e},YRC=function(e,z,C){var w=[].concat(_.s_(e)),K=0,G=C?f62(C):[];
C=C?S3y(C):[];G.length&&!GT2(e,G[0].command,!0)&&w.push.apply(w,_.s_(G));z&&!GT2(w,z.command)&&w.unshift(z);z&&C.length&&!GT2(e,C[0].command)&&(w.unshift.apply(w,_.s_(C.reverse())),K=C.length);return{newContentList:w,indexChange:K}},bpj=function(e){return _.Yz({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:e}})},X52=function(e){return _.Yz({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:e}})},Jfy=function(e){return _.Yz({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:e}})};var nf=function(e,z){if(e instanceof nf)this.array_=e.array_;else{var C;if(C=_.B1(e))a:{for(var w=C=0;w<e.length;w++){if(!_.B1(e[w])||C>0&&e[w].length!=C){C=!1;break a}for(var K=0;K<e[w].length;K++)if(typeof e[w][K]!=="number"){C=!1;break a}C==0&&(C=e[w].length)}C=C!=0}if(C)this.array_=_.ig(e);else if(e instanceof _.RM)this.array_=kTy(e.height,e.width);else if(typeof e==="number"&&typeof z==="number"&&e>0&&z>0)this.array_=kTy(e,z);else throw Error("$o");}this.size_=new _.RM(this.array_[0].length,
this.array_.length)},qRw=function(e,z,C){for(var w=0;w<e.getSize().height;w++)for(var K=0;K<e.getSize().width;K++)z.call(C,e.array_[w][K],w,K,e)},xEC=function(e,z){var C=new nf(e.getSize());
qRw(e,function(w,K,G){C.array_[K][G]=z.call(void 0,w,K,G,e)});
return C},kTy=function(e,z){for(var C=[],w=0;w<e;w++){C[w]=[];
for(var K=0;K<z;K++)C[w][K]=0}return C};
nf.prototype.add=function(e){if(!_.JJy(this.size_,e.getSize()))throw Error("ap");return xEC(this,function(z,C,w){return z+e.array_[C][w]})};
nf.prototype.equals=function(e,z){if(this.size_.width!=e.size_.width||this.size_.height!=e.size_.height)return!1;z=z||0;for(var C=0;C<this.size_.height;C++)for(var w=0;w<this.size_.width;w++)if(!_.Xit(this.array_[C][w],e.array_[C][w],z))return!1;return!0};
nf.prototype.getSize=function(){return this.size_};
var Mr=function(e,z,C){return z>=0&&z<e.size_.height&&C>=0&&C<e.size_.width?e.array_[z][C]:null};
nf.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Tal=function(e,z,C,w){if(!(z>=0&&z<e.size_.height&&C>=0&&C<e.size_.width))throw Error("bp`"+z+"`"+C+"`"+e.size_.height+"`"+e.size_.width);e.array_[z][C]=w};
nf.prototype.multiply=function(e){if(e instanceof nf){if(this.size_.width!=e.getSize().height)throw Error("cp");return $EY(this,e)}if(typeof e==="number")return lIy(this,e);throw Error("dp");};
var $EY=function(e,z){var C=new nf(e.size_.height,z.getSize().width);qRw(C,function(w,K,G){for(var X=w=0;X<this.size_.width;X++)w+=Mr(this,K,X)*Mr(z,X,G);Tal(C,K,G,w)},e);
return C},lIy=function(e,z){return xEC(e,function(C){return C*z})};var Qs2=new _.nN("inlineSurveyRenderer");var mEC=new _.nN("interstitialViewModel");var aIL=new _.nN("reelNavigateCommand");var njy=new _.nN("reelNonVideoContentDismissalCommand");var Mx2=new _.nN("showReelsCommentsOverlayCommand");var rfl=new _.nN("videoInteractionPopUpRenderer");var Hpt=new _.nN("pollChoiceData");var UEC;var vjC;var IIy;var rx=function(){var e=_.V.apply(this,arguments)||this;e.ctaVisualElement=null;e.currentCsn=null;return e};
_.U(rx,_.V);_.Y=rx.prototype;_.Y.onDataChanged=function(){this.maybeLogShows()};
_.Y.computeButtonShape=function(){var e=this;if(this.data)return{buttonText:_.Zd(this.data.text),state:"active",onTap:function(){e.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.Y.maybeCreateCtaVe=function(){var e;if((e=this.data)!=null&&e.badgeInteractionLogging){var z;if(e=(z=this.data.badgeInteractionLogging)==null?void 0:z.trackingParams)this.ctaVisualElement=_.v9(e)}};
_.Y.maybeLogClicks=function(){this.currentCsn=_.Pr(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.gQ(this.currentCsn,this.ctaVisualElement)};
_.Y.maybeLogShows=function(){this.currentCsn=_.Pr(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Bf(this.currentCsn,[this.ctaVisualElement])};
_.Y.onTap=function(){var e;if((e=this.data)!=null&&e.onClickCommand){var z;this.ytComponentBehavior.resolveCommand((z=this.data)==null?void 0:z.onClickCommand);this.maybeLogClicks()}};
rx.prototype.onDataChanged=rx.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],rx.prototype,"ytComponentBehavior",void 0);_.d([_.F({}),_.B("design:type",Object)],rx.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rx.prototype,"onDataChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],rx);
_.u(rx,"ytd-shopping-overlay-badge-renderer",function(){if(IIy!==void 0)return IIy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return IIy=e},{mode:1});var W0y;var Hg=function(){return _.V.apply(this,arguments)||this};
_.U(Hg,_.V);Hg.prototype.computeShouldButtonBeVertical=function(e,z){return e||z};
Hg.prototype.onYtServiceRequestSent=function(e,z){(e=_.r(z.endpoint,_.bt))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Rx("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:e.status})):this.handleLikeEndpoint(e))};
Hg.prototype.computelikeStatusEntityKey=function(e){return e==null?void 0:e.likeStatusEntityKey};
Hg.prototype.handleLikeEndpoint=function(e){e.status==="LIKE"?this.JSC$23008_ytdDislikeToggleButtonRenderer.toggle(!1):e.status==="DISLIKE"?this.JSC$23008_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$23008_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$23008_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.lB.Object.defineProperties(Hg.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var e;return e_C(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(e=this.likeStatusEntity)==null?void 0:e.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var e;if(this.data&&((e=this.data)==null||!e.hideDislikeButton)){var z;return e_C(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(z=this.likeStatusEntity)==null?void 0:z.likeStatus)}}}});
Hg.prototype.onYtServiceRequestSent=Hg.prototype.onYtServiceRequestSent;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Hg.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Hg.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Hg.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hg.prototype,"vertical",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Hg.prototype,"textTransform",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hg.prototype,"useShortsIcon",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hg.prototype,"underIconLabel",void 0);_.d([_.F({value:"left"}),_.B("design:type",String)],Hg.prototype,"buttonTooltipPosition",void 0);_.d([_.F(),_.B("design:type",Object)],Hg.prototype,"overrides",void 0);
_.d([_.nP("#like-button"),_.B("design:type",Object)],Hg.prototype,"JSC$23008_ytdLikeToggleButtonRenderer",void 0);_.d([_.nP("#dislike-button"),_.B("design:type",Object)],Hg.prototype,"JSC$23008_ytdDislikeToggleButtonRenderer",void 0);_.d([_.P("data","likeStatusEntity.likeStatus","useShortsIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hg.prototype,"likeButton",null);
_.d([_.P("data","likeStatusEntity.likeStatus","useShortsIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],Hg.prototype,"dislikeButton",null);_.d([_.F({computed:"computelikeStatusEntityKey(data)"}),_.B("design:type",String)],Hg.prototype,"likeStatusEntityKey",void 0);_.d([_.F({selectorArgs:["likeStatusEntityKey"],selector:_.uw}),_.B("design:type",Object)],Hg.prototype,"likeStatusEntity",void 0);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],Hg.prototype,"onYtServiceRequestSent",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Hg);
_.Yp()(Hg,"ytd-like-button-renderer",function(){if(W0y===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);W0y=e}e=W0y;return e},{mode:1});_.KU(_.mmE,"reel-sound-metadata-view-model",{props:{data:_.z9,overlayDensity:_.z9}});_.KU(_.XL5,"player-disclosure-view-model",{props:{data:_.vh,extractOverlay:_.vh}});_.KU(_.bwh,"pivot-button-view-model",{props:{data:_.z9,className:_.z9}});_.KU(_.XN4,"reel-action-bar-view-model",{props:{data:_.vh,buttonShapeOverrideables:_.vh}});_.KU(_.nOW,"yt-reel-metapanel-view-model",{props:{data:_.vh,overlayDensity:_.vh,extractOverlay:_.vh}});var PML=_.f(function(e){var z=e.children;var C=e.region;e=_.b(_.II(void 0,void 0,"flxBBc"));var w=e.next().value,K=e.next().value;e=_.b(_.II("0px",void 0,"IAR7k"));var G=e.next().value,X=e.next().value;e=_.b(_.II("0px",void 0,"QV4iWb"));var J=e.next().value,q=e.next().value;e=_.b(_.II(0,void 0,"Q2oK6b"));var T=e.next().value,Q=e.next().value;e=_.b(_.II(0,void 0,"hYKowe"));var m=e.next().value,a=e.next().value,n=function(){var N=w();if(N){var D;if(((D=_.n7())==null?void 0:D.getPlayerState())!==-1){N.style.display=
"inherit";var g;(g=_.n7())==null||g.removeEventListener("onStateChange",n)}else N.style.display="none";I()}},H=function(){var N;
return(N=_.ox())==null?void 0:N.querySelector("video")},I=function(){var N=H();
if(N){Q(N.getBoundingClientRect().width);a(N.getBoundingClientRect().height);var D;X((N==null?void 0:(D=N.style)==null?void 0:D.left)||"0px");var g;q((N==null?void 0:(g=N.style)==null?void 0:g.top)||"0px")}};
_.sH(function(){var N=w();if(N){var D,g,y;if(((D=_.n7())==null?void 0:D.getPlayerState())===-1&&Math.round(((y=(g=_.n7())==null?void 0:g.getVideoAspectRatio())!=null?y:0)*100)!==Math.round(T()/m()*100)){N.style.display="none";var Z,YN;a(T()/((YN=(Z=_.n7())==null?void 0:Z.getVideoAspectRatio())!=null?YN:1))}}},"N29KDe");
var L=function(){I()},h;
_.Nm(function(){I();var N;if(!(C==null?0:(N=C())==null?0:N.transformationMatrix))throw Error("hp");var D;(D=_.n7())==null||D.addEventListener("onStateChange",n);if(window.ResizeObserver){if(N=H())h=new ResizeObserver(L),h.observe(N)}else window.addEventListener("resize",I);_.BC(function(){var g;(g=_.n7())==null||g.removeEventListener("onStateChange",n);h?h.disconnect():window.removeEventListener("resize",I)})});
var E=function(){var N,D,g=(D=C==null?void 0:(N=C())==null?void 0:N.transformationMatrix)!=null?D:[];N=T();D=m();for(var y=[],Z=0,YN=-1;Z<g.length;Z++)Z%3===0&&(YN++,y[YN]=[]),y[YN].push(g[Z]);g=new nf(y);y=new nf([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);y=g.multiply(y);g=new nf([[0,0],[0,0],[0,0],[0,0]]);for(Z=0;Z<y.getSize().width;Z++){YN=Mr(y,0,Z);var Jk=Mr(y,1,Z);if(YN===null||Jk===null)throw Error("gp`"+(Z+1).toString());Tal(g,Z,0,YN*N);Tal(g,Z,1,Jk*D)}N=Mr(g,0,0);Z=Mr(g,1,0);D=Mr(g,0,1);YN=Mr(g,1,1);
if(N===null||Z===null||D===null||YN===null)throw Error("ep");y=z_Y(N,Z,D,YN);Jk=Mr(g,3,0);g=Mr(g,3,1);if(Jk===null||g===null)throw Error("fp");g=z_Y(N,Jk,D,g);YN=(Number((YN*-1).toFixed(2))-Number((D*-1).toFixed(2)))/(Number(Z.toFixed(2))-Number(N.toFixed(2)));Jk=Math.atan(YN)*180/Math.PI;Z=YN===Number.POSITIVE_INFINITY?-90:YN===Number.NEGATIVE_INFINITY?90:Object.is(YN,-0)?180:YN===0?0:YN>0?Jk*-1:N<Z?Jk*-1:Math.abs(Jk)+180;return"left:calc("+N+"px + "+G()+"); top:calc("+(D+"px + "+J()+"); width:")+
(y+"px; height:")+(g+"px; transform:rotate(")+(Z+"deg);\n        --sticker-width:"+y+";")};
return _.x(cJL,{root:"#sticker-layer"},function(){return _.x("yt-overlay-sticker",{el:_.ej(K),style:E,class:"ytOverlayStickerHost"},z)})},"Pn");var R_j=_.f(function(e){function z(){var n,H,I,L,h=(H=_.r((n=q())==null?void 0:n.command,_.u5g))==null?void 0:(I=H.item)==null?void 0:(L=I.notificationTextRenderer)==null?void 0:L.successResponseText;if(h)n=_.CW(h),_.eA(w.value,"yt-open-popup-action",[n,w.value]);else if(T())w52(T(),w.value);else{var E;w52((E=q())==null?void 0:E.command,w.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var C=e.data;var w=_.kI("svg"),K=_.b(_.II(!1,void 0,"e9onLe"));e=K.next().value;var G=K.next().value,X=_.b(_.II(!1,void 0,"ptnIQd"));K=X.next().value;var J=X.next().value,q=function(){var n;return _.r((n=C())==null?void 0:n.popUp,rfl)},T=function(){var n;
return(n=C())==null?void 0:n.command},Q=function(){return _.r(T(),_.L7)!==void 0};
X=_.T9(function(){z();return!1});
var m={},a={};return _.x("svg",{"on:mouseover":_.T9(function(){Q()&&G(!0);J(!0);return!1}),
"on:mouseout":_.T9(function(){G(!1);J(!1);return!1}),
"on:keydown":_.T9(function(n){n.key==="Enter"&&z();return!1}),
"on:focus":_.T9(function(){Q()&&G(!0);return!1}),
"on:blur":_.T9(function(){Q()&&G(!1);return!1}),
el:w,tabindex:0,"aria-label":function(){var n;return(n=C())==null?void 0:n.a11yString},
id:"player-overlay-video-interaction-svg",class:_.qT("ytPlayerOverlayInteractionInteractionsSvg",(m.ytPlayerOverlayInteractionInteractionsSvgHover=e,m),(a.ytPlayerOverlayInteractionInteractionsSvgHideOutline=K,a)),role:"button","on:click":X})},"Sn");_.KU(_.f(function(e){var z=e.data;_.Nm(function(){var C;if((C=z())==null?0:C.trackingParams){var w;_.nm().graftServerVe((w=z().trackingParams)!=null?w:"")}});
return _.x("yt-player-overlay-interaction",null,_.x(PML,{region:function(){var C,w;return(C=z())==null?void 0:(w=C.regions)==null?void 0:w[0]}},_.x(R_j,Object.assign({},e))))},"Rn"),"yt-player-overlay-interaction",{props:{data:_.vh}});var L0t=_.f(function(e){var z=e.data;var C=e.index;var w=e.selectedChoice;var K=function(){var G;return _.r((G=z())==null?void 0:G.renderer,Hpt)};
e={};return _.x("yt-overlay-poll-sticker-choice",{class:_.qT("ytOverlayPollStickerChoiceHost"),style:_.QC({"--displayed-percentage":function(){var G,X,J,q;return""+Math.ceil(Number((w==null?void 0:w())===C()?(G=K())==null?void 0:(X=G.selected)==null?void 0:X.progressBarWidth:(J=K())==null?void 0:(q=J.unselected)==null?void 0:q.progressBarWidth)*100)}})},_.x("div",{class:_.qT("ytOverlayPollStickerChoicePollChoice",(e.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(w==null?void 0:w())!==
void 0},e.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(w==null?void 0:w())===C()},e))},_.x("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var G;
return((G=K())==null?void 0:G.text)||""}),_.x("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(w==null?void 0:w())==="undefined")var G="";
else{var X,J,q,T;G=(w==null?void 0:w())===C()?(X=K())==null?void 0:(J=X.selected)==null?void 0:J.votePercentage:(q=K())==null?void 0:(T=q.unselected)==null?void 0:T.votePercentage}return G})))},"Tn");var h_l=_.f(function(e){var z=e.data;var C=e.enableDebuggingFeatures;var w=_.rG(function(G){var X,J=((X=z())==null?void 0:X.postPollStateEntityKey)||"";G=_.xz(G.entities,"postPollStateEntity",J);var q;return((q=z())==null?0:q.viewerIsOwner)?Object.assign({},G,{selectedOptionId:-1,voted:!0}):G}),K=_.lh().resolve(_.ms);
e={};return _.x("yt-overlay-poll-sticker",null,_.x(PML,{region:function(){var G,X;return(G=z())==null?void 0:(X=G.region)==null?void 0:X.interactionRegion}},_.x("div",{class:_.qT("ytOverlayPollStickerHost",(e.ytOverlayPollStickerDebugStyle=function(){return C==null?void 0:C()},e)),
style:_.QC({"--original-height":function(){var G;return""+(((G=z())==null?void 0:G.mainBodyHeight)||1)},
"--original-width":function(){var G;return""+(((G=z())==null?void 0:G.mainBodyWidth)||1)},
"--scaled-width":function(){var G;return""+(((G=z())==null?void 0:G.mainBodyWidth)||1)},
"--primary-surface":function(){var G,X;return CMl(((G=z())==null?void 0:(X=G.theme)==null?void 0:X.primarySurface)||0)},
"--raised-surface":function(){var G,X;return CMl(((G=z())==null?void 0:(X=G.theme)==null?void 0:X.raisedSurface)||0)},
"--secondary-surface":function(){var G,X;return CMl(((G=z())==null?void 0:(X=G.theme)==null?void 0:X.secondarySurface)||0)},
"--primary-text":function(){var G,X;return CMl(((G=z())==null?void 0:(X=G.theme)==null?void 0:X.primaryText)||0)},
"--secondary-text":function(){var G,X;return CMl(((G=z())==null?void 0:(X=G.theme)==null?void 0:X.secondaryText)||0)}})},_.x("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return z().questionText}," "),_.x(_.ui,{each:function(){return z().pollChoiceConfigs||[]}},function(G,X){return _.x("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.T9(function(){var J=X(),q;if((q=z())==null||!q.viewerIsOwner){var T,Q;q=(T=z())==null?void 0:(Q=T.pollChoiceConfigs)==null?void 0:Q[J];if(Q=(q==null?0:q.renderer)?_.r(q.renderer,Hpt):void 0){var m;T=((m=w())==null?void 0:m.selectedOptionId)!==J;var a;if(m=(a=T?Q.selectedPollCommand:Q.deselectedPollCommand)==null?void 0:a.innertubeCommand){K.resolveCommand(m);var n,H;_.AK().dispatch(_.Rx("postPollStateEntity",((n=w())==null?void 0:n.key)||"",{key:((H=w())==null?void 0:H.key)||"",selectedOptionId:T?
J:-1,voted:T}))}}}})},_.x(L0t,{data:G,
index:X,selectedChoice:function(){var J,q;return((J=w())==null?0:J.voted)?(q=w())==null?void 0:q.selectedOptionId:void 0}}))}),_.x("div",{class:"ytOverlayPollStickerVoteCount"},function(){var G,X;
return((G=w())==null?0:G.voted)&&((X=w())==null?void 0:X.selectedOptionId)!==-1?z().postVoteCountText:z().preVoteCountText}))))},"Un");_.KU(_.f(function(e){var z=e.data;e=_.hG(function(){var C;return _.M("enable_shorts_poll_stickers_web")?(((C=z())==null?void 0:C.stickers)||[]).filter(function(w){return w.pollSticker}):[]},void 0,"Cflxwb");
return _.x("yt-stickers-layer",null,_.x(_.ui,{each:e},function(C){return _.x(h_l,{data:C.pollSticker,enableDebuggingFeatures:function(){var w;return(w=z())==null?void 0:w.enableDebuggingFeatures}})}))},"Vn"),"yt-stickers-layer",{props:{data:_.vh}});var U1=function(){var e=_.V.apply(this,arguments)||this;e.showScrubber=!1;e.isWatchWhileMode=!1;e.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");e.enablePollStickers=_.M("enable_shorts_poll_stickers_web");e.enableShortsModernControls=_.M("web_shorts_modern_controls");e.anchoredPanelActive=!1;e.enableLivingroomLayout=_.M("reels_enable_livingroom_layout");e.enablePlayerMetadataContainer=_.M("reels_web_enable_metadata_container");e.enableSqueezebackPanels=_.M("web_shorts_enable_squeezeback_panels");
e.useAspectRatio=_.M("web_use_aspect_ratio");e.isSqueezebackActive=!1;e.smallScreenSqueezeback=!1;e.isPlayerStarted=!1;e.overlayDensity=0;e.extractOverlay=!1;e.extractActionBar=!1;e.isOverlay=!1;e.isImmersive=!1;e.isImmersiveHorizontal=!1;e.isFullscreen=!1;e.onWindowResized=function(){var z;e.set("isImmersive",((z=window.getComputedStyle(e.hostElement))==null?void 0:z.getPropertyValue("--immersive-mode-on"))==="1");e.set("isImmersiveHorizontal",e.isImmersive&&e.enableLivingroomLayout&&!e.isWatchWhileMode)};
return e};
_.U(U1,_.V);_.Y=U1.prototype;_.Y.updateIsOverlay=function(e){this.isOverlay=e.detail.value};
_.Y.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.Y.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.Y.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.Y.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.Y.onOverlayDensityChange=function(){var e=_.XC(this.hostElement).querySelector("ytd-info-panel-container-renderer");e&&(e.set("extractOverlay",this.extractOverlay),e.set("roundedContainer",this.extractOverlay))};
_.Y.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.Y.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.Y.ready=function(){(_.M("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.M("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.Mv("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.Mv("reels_action_justified_content")||"flex-start")};
_.Y.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.Y.setFakeLoadingButtons=function(){_.M("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.kk("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.kk("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.kk("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.kk("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.kk("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()};
_.Y.setEmptyOverlayMetadata=function(){_.M("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}))};
_.lB.Object.defineProperties(U1.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.infoPanel)}}});
U1.prototype.onOverlayDensityChange=U1.prototype.onOverlayDensityChange;U1.prototype.onIsActiveChanged=U1.prototype.onIsActiveChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],U1.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],U1.prototype,"ytdReduxBehavior",void 0);
_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],U1.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],U1.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],U1.prototype,"isActive",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],U1.prototype,"hidden",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],U1.prototype,"useShortsIcon",void 0);
_.d([_.F({value:"left"}),_.B("design:type",String)],U1.prototype,"buttonTooltipPosition",void 0);_.d([_.F({value:_.M("reels_enable_livingroom_layout")?"top":"left"}),_.B("design:type",String)],U1.prototype,"likeButtonTooltipPosition",void 0);_.d([_.F({value:"none"}),_.B("design:type",String)],U1.prototype,"textTransform",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"showScrubber",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"isWatchWhileMode",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.infoPanel"),_.B("design:type",Object),_.B("design:paramtypes",[])],U1.prototype,"hasInfoPanel",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"enableAnchoredPanel",void 0);_.d([_.F(),_.B("design:type",Object)],U1.prototype,"enablePollStickers",void 0);
_.d([_.F(),_.B("design:type",Object)],U1.prototype,"enableShortsModernControls",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"anchoredPanelActive",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"enableLivingroomLayout",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],U1.prototype,"enablePlayerMetadataContainer",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"enableSqueezebackPanels",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"useAspectRatio",void 0);_.d([_.F({selector:_.jt5,reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"isSqueezebackActive",void 0);_.d([_.F({selector:N3T,reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"smallScreenSqueezeback",void 0);
_.d([_.F({selector:sXC}),_.B("design:type",Object)],U1.prototype,"isPlayerStarted",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"overlayDensity",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"extractOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"extractActionBar",void 0);_.d([_.F(),_.B("design:type",Object)],U1.prototype,"isOverlay",void 0);
_.d([_.F(),_.B("design:type",Object)],U1.prototype,"isImmersive",void 0);_.d([_.F(),_.B("design:type",Object)],U1.prototype,"isImmersiveHorizontal",void 0);_.d([_.F({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.B("design:type",Boolean)],U1.prototype,"isShortsImmersive",void 0);_.d([_.F({computed:"computeButtonOverride(extractActionBar)"}),_.B("design:type",Object)],U1.prototype,"buttonOverride",void 0);
_.d([_.F({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.B("design:type",Object)],U1.prototype,"actionBarButtonOverride",void 0);_.d([_.F({selector:_.ks,reflectToAttribute:!0}),_.B("design:type",Object)],U1.prototype,"isFullscreen",void 0);_.d([_.mi("isActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U1.prototype,"onIsActiveChanged",null);
_.d([_.mi("extractOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U1.prototype,"onOverlayDensityChange",null);_.d([_.SL({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],U1);
_.u(U1,"ytd-reel-player-overlay-renderer",function(){if(vjC!==void 0)return vjC;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vjC=e},{mode:1});var Opg;var vg=function(){var e=_.V.apply(this,arguments)||this;e.videoDuration=0;e.playedTime=0;e.isActive=!1;e.JSC$23034_playerEvents=new Map;return e};
_.U(vg,_.V);_.Y=vg.prototype;_.Y.created=function(){this.JSC$23034_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$23034_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.Y.attached=function(){this.getPlayerAndInitializeListeners()};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23034_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.lE(this,this.onPageChanged))};
_.Y.getPlayerAndInitializeListeners=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return z=_.ox(),z?C.yield(z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lE(e,e.onPageChanged)),C.jumpTo(0));e.player=C.yieldResult;e.initializePlayerListeners();_.E_(C)})};
_.Y.onPageChanged=function(e){var z=this;return _.k(function(C){if(C.nextAddress==1)return e.detail.newPageType!=="ytd-shorts"?C.return():C.yield(_.Gi().getPlayerPromise(),2);z.player=C.yieldResult;z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lE(z,z.onPageChanged));_.E_(C)})};
_.Y.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23034_playerEvents)};
_.Y.onVideoDataChange=function(e){var z=this;return _.k(function(C){if(!z.player||e.type!=="newdata")return C.return();z.videoDuration=_.M("web_shorts_use_progress_state_for_gapless")?z.player.getProgressState(e.playertype).seekableEnd:z.player.getDuration(e.playertype);z.playedTime=0;_.E_(C)})};
_.Y.onVideoProgress=function(e){var z=this,C,w;return _.k(function(K){if(!z.player)return K.return();C=z.player.getPresentingPlayerType();w=z.player.getPlayerState();z.videoDuration=_.M("web_shorts_use_progress_state_for_gapless")?z.player.getProgressState(C).seekableEnd:z.player.getDuration(C);z.playedTime=w===0?z.videoDuration:e;_.E_(K)})};
_.Y.getPercentPlayed=function(e,z){return e?_.NZ(z/e,0,1):0};
_.lB.Object.defineProperties(vg.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 e="";return e=this.videoDuration&&this.playedTime?e+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):e+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],vg.prototype,"componentBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],vg.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vg.prototype,"player",void 0);_.d([_.F(),_.B("design:type",Object)],vg.prototype,"videoDuration",void 0);_.d([_.F(),_.B("design:type",Object)],vg.prototype,"playedTime",void 0);_.d([_.F(),_.B("design:type",Object)],vg.prototype,"isActive",void 0);
_.d([_.P("videoDuration","playedTime"),_.B("design:type",Number),_.B("design:paramtypes",[])],vg.prototype,"percentPlayed",null);_.d([_.P("videoDuration","playedTime"),_.B("design:type",Object),_.B("design:paramtypes",[])],vg.prototype,"percentPlayedStyle",null);_.d([_.P("videoDuration","isActive"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],vg.prototype,"hideProgressBar",null);
_.u(vg,"ytd-progress-bar-line",function(){if(Opg===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);Opg=e}e=Opg;return e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var EjL;_.KU(_.jOC,"ytm-closed-captioning-button",{props:{captionIconType:_.vh,onClick:_.z9,ariaLabel:_.vh,ariaPressed:_.vh,isOverlay:_.z9,isModern:_.z9}});_.KU(_.$UW,"desktop-shorts-volume-controls",{props:{orientation:_.vh}});var Iq=function(){var e=_.V.apply(this,arguments)||this;e.playerState=null;e.isMuted=!1;e.shortsModernControlsEnabled=_.M("web_shorts_modern_controls");e.volumeControlsOrientationState="horizontal_right";e.isOverlay=!0;e.isAdsOverlay=!1;e.captionIconType=-1;e.ariaLabel="";e.overlayDensity=0;e.JSC$23037_playerEvents=new Map;e.onClosedCaptionsButtonClick=function(){e.player&&_.F$$(e.player)&&(e.player.toggleSubtitles(),e.updateCaptionIconType())};
return e};
_.U(Iq,_.V);_.Y=Iq.prototype;_.Y.created=function(){this.JSC$23037_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$23037_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$23037_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.Y.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.mT(28662);this.playPauseButtonClientVE=_.mT(36842);this.fullscreenButtonToggleOffClientVE=_.mT(222256);this.fullscreenButtonToggleOnClientVE=_.mT(222257);var e=_.Pr(),z=_.Ip();e&&z&&(_.M("combine_ve_grafts")?(_.yQ(_.nm(),this.muteButtonClientVE,z),_.yQ(_.nm(),this.playPauseButtonClientVE,z)):_.NL(e,z,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.Y.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$23037_playerEvents),this.player=null)};
_.Y.updateCaptionIconType=function(){var e=-1,z=void 0,C=_.kk("CLOSED_CAPTIONS_DISABLED");this.player&&_.F$$(this.player)&&(_.VY$(this.player)?(z=!0,C=_.kk("CLOSED_CAPTIONS_ON"),e=1):(z=!1,C=_.kk("CLOSED_CAPTIONS_OFF"),e=0));this.captionIconType=e;this.ariaPressedState=z;this.ariaLabel=C};
_.Y.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.Y.getPlayerAndInitializeListeners=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return z=_.ox(),z?C.yield(z.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.lE(e,e.onPageChanged)),C.jumpTo(0));e.player=C.yieldResult;e.initializePlayerListeners();_.E_(C)})};
_.Y.onPageChanged=function(e){var z=this;return _.k(function(C){if(C.nextAddress==1)return e.detail.newPageType!=="ytd-shorts"?C.return():C.yield(_.Gi().getPlayerPromise(),2);z.player=C.yieldResult;z.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.lE(z,z.onPageChanged));_.E_(C)})};
_.Y.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$23037_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.Y.onPlayerStateChange=function(e){this.playerState=e};
_.Y.onPlayerVolumeChange=function(e){this.isMuted=e.muted};
_.Y.onPlayPauseButtonClick=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(_.Gi().getPlayerPromise(),2);z=w.yieldResult;(C=_.Pr())&&e.playPauseButtonClientVE&&_.gQ(C,e.playPauseButtonClientVE);z.getPlayerState()!==1?z.playVideo():z.pauseVideo();_.E_(w)})};
_.Y.computePlayPauseIcon=function(e){return e===2||e===-1||e===5?_.M("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.M("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.M("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.Y.computeFullscreenLabel=function(e){return e?_.kk("FULLSCREEN_EXIT_LABEL"):_.kk("FULLSCREEN_ENTER_LABEL")};
_.Y.computePlayPauseLabel=function(e){return e===1||e===3?_.kk("PLAYER_LABEL_PAUSE"):_.kk("PLAYER_LABEL_PLAY")};
_.Y.onMuteButtonClick=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(_.Gi().getPlayerPromise(),2);z=w.yieldResult;(C=_.Pr())&&e.muteButtonClientVE&&_.gQ(C,e.muteButtonClientVE);z.isMuted()?z.unMute(!0):z.mute(!0);_.E_(w)})};
_.Y.computeMuteIcon=function(e){return e?"miniplayer:volume-off":"miniplayer:volume-up"};
_.Y.computeMuteLabel=function(e){return e?_.kk("PLAYER_LABEL_UNMUTE"):_.kk("PLAYER_LABEL_MUTE")};
_.Y.onFullscreenButtonClick=function(){var e=_.Pr();e&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.gQ(e,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.gQ(e,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.ZPo()};
_.lB.Object.defineProperties(Iq.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var e=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(){e.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.M("web_shorts_modern_controls")?"player_full_exit_alt":_.M("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.M("web_shorts_modern_controls")?"player_full_enter_alt":_.M("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Iq.prototype,"componentBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],Iq.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Iq.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"player",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"playerState",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"isMuted",void 0);
_.d([_.F({computed:"computePlayPauseIcon(playerState)"}),_.B("design:type",String)],Iq.prototype,"playPauseIcon",void 0);_.d([_.F({computed:"computeMuteIcon(isMuted)"}),_.B("design:type",String)],Iq.prototype,"muteIcon",void 0);_.d([_.F({selector:_.ks}),_.B("design:type",Boolean)],Iq.prototype,"isFullscreen",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Iq.prototype,"shortsModernControlsEnabled",void 0);
_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"volumeControlsOrientationState",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"isOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Iq.prototype,"isAdsOverlay",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"captionIconType",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"ariaLabel",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"ariaPressedState",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Iq.prototype,"overlayDensity",void 0);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"data",void 0);_.d([_.F({computed:"computeActionBarButtonOverride()"}),_.B("design:type",Object)],Iq.prototype,"actionBarButtonOverride",void 0);_.d([_.P("playerState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iq.prototype,"playPauseButtonData",null);
_.d([_.P("isFullscreen"),_.B("design:type",Object),_.B("design:paramtypes",[])],Iq.prototype,"fullscreenButtonData",null);_.d([_.F(),_.B("design:type",Object)],Iq.prototype,"onClosedCaptionsButtonClick",void 0);_.d([_.P("isFullscreen"),_.B("design:type",String),_.B("design:paramtypes",[])],Iq.prototype,"fullscreenIcon",null);
_.u(Iq,"ytd-shorts-player-controls",function(){if(EjL===void 0){var e=document.createElement("template");_.v(e,'\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<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <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 orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n    </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <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>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);EjL=e}e=EjL;return e},{mode:1});var F0j;_.KU(_.eXl,"yt-interstitial-view-model",{props:{data:_.vh}});var Vxy=_.f(function(e){var z=e.data;return _.x("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.x("h1",{class:"reelWatchBreakViewModelHostTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x("h2",{class:"reelWatchBreakViewModelHostBody"},_.x(_.U2,{text:function(){return z().body},
isOverlay:!0})),_.x(_.PF,{data:function(){return z().buttons}},{buttonViewModel:function(C,w){return _.x("div",{class:function(){return w()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.x(_.iz,{data:C.data}))}}))},"Wn");
Vxy.idomCompat=!0;_.KU(Vxy,"reel-watch-break-view-model",{props:{data:_.vh}});var Wg=function(){return _.V.apply(this,arguments)||this};
_.U(Wg,_.V);Wg.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}}};
_.lB.Object.defineProperties(Wg.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.r((e=this.data)==null?void 0:e.renderer,Qs2)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var e;return!!_.r((e=this.data)==null?void 0:e.renderer,mEC)}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Wg.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Wg.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Wg.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wg.prototype,"isSurvey",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.renderer"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Wg.prototype,"isInterstitialViewModel",null);_.d([_.SL({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Wg);
_.u(Wg,"ytd-reel-non-video-content-renderer",function(){if(F0j!==void 0)return F0j;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return F0j=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var fIY;_.KU(_.Tmf,"desktop-shorts-player-controls",{});var Pg=function(){var e=_.V.apply(this,arguments)||this;e.isPlayerPaused=!1;e.isPlayerStarted=!1;e.showPlayerControls=!1;e.showScrubber=!1;e.autoHideJobId=0;e.overlayType=_.Mv("web_shorts_expanded_overlay_type");e.panelData=void 0;e.isWatchWhileMode=!1;e.hasError=!1;e.panelShowDelayMs=1;e.scrubberComponent={};e.isFullscreen=!1;e.shouldHideOverlay=!1;e.enableAnchoredPanel=_.M("desktop_shorts_v2_anchored_panel");e.enablePersistentAnchoredPanel=_.M("desktop_shorts_v2_persistent_anchored_panel");e.hideWatchWhilePanel=
_.M("web_shorts_hide_watch_while_panel");e.useAspectRatio=_.M("web_use_aspect_ratio");e.enableShortsModernControls=_.M("web_shorts_modern_controls");e.isPersistentPanelActive=!1;e.anchoredPanelActive=!1;e.isShortsPipActive=!1;e.smallScreenSqueezeback=!1;e.enableFlexibleOverlay=_.M("web_enable_flexible_overlay");e.overlayDensity=0;e.extractOverlay=!1;e.extractActionBar=!1;e.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
e.onWindowResized=function(){_.tK(e,"calculateOverlayDensity",function(){e.calculateOverlayDensity()},100)};
return e};
_.U(Pg,_.V);_.Y=Pg.prototype;_.Y.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.Y.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.Y.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var e=_.lh().resolve(_.kX);this.isWatchWhileMode&&_.c5.addJob(function(){e.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.Y.handleShowReelsCommentsOverlayCommand=function(e){e=_.r(e,Mx2);this.isActive&&(e==null?0:e.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))};
_.Y.updateEngagementPanelVisibility=function(e,z){e&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:z?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:e}})};
_.Y.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.Y.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.lh().resolve(_.Cn).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.Y.handleWatchWhilePanelScrimClick=function(){var e=_.lh().resolve(_.kX);this.activeWatchWhilePanel&&(e.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.Y.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.Y.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.Y.handlePlayerClick=function(e){var z=this,C,w;if((w=(C=window).matchMedia)!=null&&w.call(C,"(any-pointer: coarse)").matches||!e)this.showPlayerControls=!0,_.c5.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Dz(_.c5,function(){z.showPlayerControls=!1},4E3)};
_.Y.isFirstReel=function(){return this.index===0};
_.Y.handleMouseenter=function(){_.c5.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.Y.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.Y.handleScrubberEnter=function(){this.showScrubber=!0};
_.Y.handleScrubberLeave=function(){this.showScrubber=!1};
_.Y.maybeLogNonDefaultAspectRatio=function(){var e;(e=this.data)!=null&&e.thumbnail&&this.isActive&&.5625!==i0y(this.data.thumbnail)&&_.hp7("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.Y.calculateOverlayDensity=function(){var e=document.querySelector("#shorts-container");if(e){var z=!1,C,w=this.playerContainer.offsetWidth,K=this.playerContainer.offsetHeight;e=e.offsetWidth/2-w/2;e>=368?(e=1,z=C=!0):e>=72?(e=0,C=!0):(e=2,C=!1);w>=600&&K>=840?e=1:window.innerWidth<=599&&(e=2,C=z=!1);this.isPersistentPanelActive&&(e=0,z=!1);this.extractActionBar=C;_.M("web_enable_flexible_overlay")&&(this.overlayDensity=e,this.extractOverlay=z);var G;(G=this.onOverlayDensityChanged)==null||G.call(this,
this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}};
_.Y.onOverlayDensityChange=function(){var e;(e=this.onOverlayDensityChanged)==null||e.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(e=_.XC(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))e.set("overlayDensity",this.overlayDensity),e.set("extractOverlay",this.extractOverlay),e.set("extractActionBar",this.extractActionBar);if(e=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))e.overlayDensity=this.overlayDensity,e.extractOverlay=
this.extractOverlay,e.extractActionBar=this.extractActionBar};
_.Y.isVideoContent=function(e){_.lh().resolve(_.Cn);return!!_.r(e,_.rP)};
_.Y.isNonVideoContent=function(e){_.lh().resolve(_.Cn);return!!_.r(e,_.lt)};
_.Y.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.lB.Object.defineProperties(Pg.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.M("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var e;return!this.isActive||!this.isPlayerStarted||(e=this.data)!=null&&e.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.data)==null?0:e.command)&&this.isVideoContent(this.data.command)){var z,C;if(((z=this.data)==null?0:z.adsOverlay)&&Object.keys((C=this.data)==null?void 0:C.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var w,K;if(((w=this.data)==null?0:w.reelPlayerOverlayRenderer)&&Object.keys((K=this.data)==null?void 0:K.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Pg.prototype.onOverlayDensityChange=Pg.prototype.onOverlayDensityChange;Pg.prototype.calculateOverlayDensity=Pg.prototype.calculateOverlayDensity;Pg.prototype.maybeLogNonDefaultAspectRatio=Pg.prototype.maybeLogNonDefaultAspectRatio;Pg.prototype.onEngagementPanelsChanged=Pg.prototype.onEngagementPanelsChanged;Pg.prototype.onScrubberDataChange=Pg.prototype.onScrubberDataChange;Pg.prototype.updateShouldHideOverlay=Pg.prototype.updateShouldHideOverlay;
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Pg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Pg.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Pg.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],Pg.prototype,"index",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Pg.prototype,"isActive",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Pg.prototype,"isHiddenInDom",void 0);_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"isPlayerPaused",void 0);_.d([_.F({selector:sXC}),_.B("design:type",Object)],Pg.prototype,"isPlayerStarted",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"showPlayerControls",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"showScrubber",void 0);_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"autoHideJobId",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"overlayType",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Pg.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Pg.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"watchWhileEngagementPanels",void 0);_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"panelData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"isWatchWhileMode",void 0);_.d([_.F(),_.B("design:type",String)],Pg.prototype,"activeWatchWhilePanel",void 0);_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"hasError",void 0);_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"panelShowDelayMs",void 0);
_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"scrubberComponent",void 0);_.d([_.F({selector:_.ks,reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"isFullscreen",void 0);_.d([_.F(),_.B("design:type",Object)],Pg.prototype,"shouldHideOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"enableAnchoredPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"enablePersistentAnchoredPanel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"hideWatchWhilePanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"useAspectRatio",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"enableShortsModernControls",void 0);_.d([_.F({selector:_.jt5,reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"isPersistentPanelActive",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"anchoredPanelActive",void 0);_.d([_.F({selector:_.ql,reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"isShortsPipActive",void 0);_.d([_.F({selector:N3T,reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"smallScreenSqueezeback",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.adsOverlay"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pg.prototype,"isAdsOverlay",null);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"enableFlexibleOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"overlayDensity",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"extractOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Pg.prototype,"extractActionBar",void 0);_.d([_.F(),_.B("design:type",Function)],Pg.prototype,"onOverlayDensityChanged",void 0);
_.d([_.F(),_.P("isActive","hasError","isPlayerStarted"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pg.prototype,"shouldRenderPlayerElements",null);_.d([_.F(),_.P("isActive","isWatchWhileMode"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pg.prototype,"watchWhileOrPersistentActive",null);_.d([_.mi("isActive","hasError","showingExpandedOverlay"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pg.prototype,"updateShouldHideOverlay",null);
_.d([_.F({reflectToAttribute:!0}),_.P("isActive","isPlayerStarted","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pg.prototype,"shouldRenderScrubber",null);_.d([_.mi("shouldRenderScrubber"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pg.prototype,"onScrubberDataChange",null);_.d([_.P("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pg.prototype,"overlayComponent",null);
_.d([_.mi("watchWhileEngagementPanels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pg.prototype,"onEngagementPanelsChanged",null);_.d([_.nP("#player-container"),_.B("design:type",HTMLElement)],Pg.prototype,"playerContainer",void 0);_.d([_.nP("#cinematic-container"),_.B("design:type",HTMLElement)],Pg.prototype,"cinematicContainer",void 0);
_.d([_.mi("isPersistentPanelActive","data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pg.prototype,"maybeLogNonDefaultAspectRatio",null);_.d([_.mi("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pg.prototype,"calculateOverlayDensity",null);
_.d([_.mi("overlayDensity","extractOverlay","extractActionBar"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pg.prototype,"onOverlayDensityChange",null);_.d([_.SL({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Pg);
_.u(Pg,"ytd-reel-video-renderer",function(){if(fIY!==void 0)return fIY;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return fIY=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var Rq=function(){var e=_.V.apply(this,arguments)||this;e.isPreviousPageShorts=!1;e.index=0;e.delayedActiveIndex=0;e.playablePreviousIndex=null;e.isPlayerPaused=!1;e.isPlayerStarted=!1;e.intersectionObserverThreshold=.6;e.fitToVisibleBounds=!1;e.pageSubtype="shorts";e.enablePreviousContinuation=_.M("shorts_in_playlists_web");e.shortsPipEnabled=_.M("web_shorts_pip");e.isDark=document.documentElement.hasAttribute("dark");e.shortsViewTransitions=_.M("web_shorts_view_transitions");e.isFullscreen=!1;e.isShortsPipActive=
!1;e.buttonOverride={iconPosition:"icon-only",size:"XL"};e.anchoredPanelActive=!1;e.isActive=!1;e.smallScreenPersistentPanel=!1;e.isPersistentPanelActive=!1;e.smallScreenSqueezeBack=!1;e.enableScrollIntoViewCenter=_.M("web_scroll_into_view_center");e.enableFlexibleOverlay=_.M("web_enable_flexible_overlay");e.extractOverlay=!1;e.useAspectRatio=_.M("web_use_aspect_ratio");e.enableShortsSequenceRefactorUnify=_.M("web_enable_shorts_sequence_refactor_unify");e.continuationRequestPending=!1;e.carouselContainers=
[];e.isShortsInitialized=!1;e.shortsContentList=[];e.hasDataUpdated=!1;e.playerInPosition=!1;e.hidePreviousButtonImmediately=!1;e.showPreviousButtonImmediately=!1;e.endOfNextContinuation=!1;e.currentPlayerIndex=0;e.nextReelVe=_.mT(56921);e.prevReelVe=_.mT(56922);e.loopToggleOffVe=_.mT(198013);e.loopToggleOnVe=_.mT(198014);e.ambientModeToggleVe=_.mT(227860);e.reelPlayerPausedStateRendererVe=_.mT(141313);e.storedPlaybackSpeed=null;e.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction",
"yt-reel-navigate-command":"handleReelNavigateCommand","yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};e.onOverlayDensityChanged=function(z,C,w,K){z=e.getActiveReelVideo(z);e.extractOverlay=!!w;z==null||z.setAttribute("overlay-density",String(C));w===void 0||z!=null&&z.toggleAttribute("extract-overlay",w);K===void 0||z!=null&&z.toggleAttribute("extract-action-bar",K)};
return e};
_.U(Rq,_.V);_.Y=Rq.prototype;_.Y.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.Y.setShortsContentList=function(){var e=this;if(this.enableShortsSequenceRefactorUnify){var z=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.s_(this.shortsContentList)):[],C=this.firstShortsData;if(C){var w=this.reelWatchSequenceResponse;if(C=this.shortsController==null?void 0:YRC(z,C,w!=null?w:null)){var K=C.newContentList,G=C.indexChange;if(K.length!==z.length){var X;(X=this.intersectionObserver)==null||X.disconnect();_.UQ(_.c5,function(){e.shortsContentList=K});
G!==0&&(this.index=G,_.UQ(_.c5,function(){var J;(J=e.getActiveReelVideo(G))==null||J.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"});e.movePlayerToVideo(G)},100));
_.c5.addLowPriorityJob(function(){e.observeShorts()},500)}}}}};
_.Y.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.Y.onResize=function(){var e=_.eB(),z=e.dispatch,C=this.calculateIsSmallWidth();z.call(e,_.Yz({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:C}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.Y.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.Y.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var e=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,z=e,C=0;e<250&&(z=e+this.shortsInnerContainer.clientWidth,C=24);_.T8(this.hostElement,{"--ytd-shorts-header-width":z+"px","--ytd-shorts-top-spacing":C+"px"})}};
_.Y.isFirstShorts=function(e){return e&&!this.enableShortsSequenceRefactorUnify?this.index===-e.length:this.index===0};
_.Y.isActiveReel=function(e,z,C){C&&(z=this.calculatePrevIndex(z,C));return e===z};
_.Y.onFullscreenChange=function(){_.M("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.lh().resolve(_.gh).close(!0))};
_.Y.engagementPanelsChanged=function(){var e;this.watchWhileEngagementPanels=(e=this.data)==null?void 0:e.engagementPanels};
_.Y.unregisterPanels=function(){var e=_.lh().resolve(_.kX);if(this.watchWhileEngagementPanels)for(var z=_.b(this.watchWhileEngagementPanels),C=z.next();!C.done;C=z.next()){var w=C.value,K=void 0,G=void 0;C=(K=w.engagementPanelSectionListRenderer)==null?void 0:(G=K.identifier)==null?void 0:G.tag;w=this.getPanelIdentifier(w.engagementPanelSectionListRenderer);e&&(C&&e.panelMap.delete(C),w&&_.M("web_shorts_panel_caching_bugfix")&&(K=C=void 0,(K=(C=e).unregisterPanelContent)==null||K.call(C,w)))}};
_.Y.isVideoContent=function(e){return this.isVideoContentCommand(e==null?void 0:e.command)};
_.Y.getActiveReelVideo=function(e){return _.XC(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+e+'"]')};
_.Y.calculatePrevIndex=function(e,z){return z?e-((z==null?void 0:z.length)||0):-1};
_.Y.onKeydown=function(e){var z=_.cJ(e)||[];if(!_.AKf(z))if(e.code==="ArrowUp")e.preventDefault(),this.handlePrevButtonClick();else if(e.code==="ArrowDown")e.preventDefault(),this.handleNextButtonClick();else if(e.code==="KeyM")this.toggleMuteUnmuteVideo();else if(e.code==="KeyK"||e.code==="Space")this.togglePlayPauseVideo();else if((e.code==="KeyA"||e.code==="ArrowLeft")&&_.M("web_shorts_keyboard_enable_seek_shortcuts")){var C;(C=this.player)==null||C.seekBy(-5)}else if((e.code==="KeyD"||e.code===
"ArrowRight")&&_.M("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var w;(w=this.player)==null||w.seekBy(5)}};
_.Y.onServiceRequestCompleted=function(e,z){e=z.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,e.continuationEndpoint||e.prevContinuationEndpoint)this.reelWatchSequenceResponse=e}else e.continuationEndpoint&&e.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:e.entries,continuationEndpoint:e.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=e):e.prevContinuationEndpoint&&
e.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:e.prevEntries,prevContinuationEndpoint:e.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.Y.handleEngagementPanelVisibilityChanged=function(e,z){var C=_.lh().resolve(_.kX);if(e&&C){var w=this.getPanelIdentifier(e);if(z==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==w){C.hidePanel({identifier:this.activePanel});var K;this.activePanel=((K=e.identifier)==null?void 0:K.tag)||e.panelIdentifier}else this.isPersistentPanelActive=!0,_.eB().dispatch(bpj(!0)),this.anchoredPanelActive=!0,this.activePanel=w;else z==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===w&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.eB().dispatch(bpj(!1)))}};
_.Y.handlePanelScrimClick=function(){var e=_.lh().resolve(_.kX);this.activePanel&&(e.hidePanel({identifier:this.activePanel}),_.eB().dispatch(bpj(!1)))};
_.Y.getShortsLoopSetting=function(){var e,z,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:return _.M("kevlar_shorts_auto_advance")?G.yield(_.kb.getInstance(),2):G.return(!0);case 2:return(e=G.yieldResult)?G.yield(e.get("sfvles"),3):G.return(!0);case 3:return C=(z=G.yieldResult)!=null?z:!1,G.yield(e.get("sfvle"),4);case 4:return K=(w=G.yieldResult)!=null?w:!0,C?G.return(K):G.return(!0)}})};
_.Y.handleSignalActionToggleLoopShortsOff=function(){var e=this,z,C,w;return _.k(function(K){switch(K.nextAddress){case 1:if(!e.player)return K.return();e.player.setLoopVideo(!1);z=_.nm();_.Ai(z,e.loopToggleOffVe);return K.yield(_.kb.getInstance(),2);case 2:return(C=K.yieldResult)?K.yield(C.set("sfvle",!1),3):K.return();case 3:return K.yield(C.set("sfvles",!0),4);case 4:w=_.Tj(),_.$k(0,203,!1),_.$k(0,204,!0),w.save(),_.E_(K)}})};
_.Y.handleSignalActionToggleLoopShortsOn=function(){var e=this,z,C,w;return _.k(function(K){switch(K.nextAddress){case 1:if(!e.player)return K.return();e.player.setLoopVideo(!0);z=_.nm();_.Ai(z,e.loopToggleOnVe);return K.yield(_.kb.getInstance(),2);case 2:return(C=K.yieldResult)?K.yield(C.set("sfvle",!0),3):K.return();case 3:return K.yield(C.set("sfvles",!0),4);case 4:w=_.Tj(),_.$k(0,203,!0),_.$k(0,204,!0),w.save(),_.E_(K)}})};
_.Y.handleSignalActionToggleCinematicShortsOn=function(){tsj(!0);var e;(e=this.JSC$23061_cinematicController)==null||_.hyt(e,!0);_.Ai(_.nm(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.Y.handleSignalActionToggleCinematicShortsOff=function(){tsj(!1);var e;(e=this.JSC$23061_cinematicController)==null||_.hyt(e,!1);_.Ai(_.nm(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.Y.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.Y.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.Y.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var e=this.overlayContainer.querySelector("#experiment-overlay");e&&_.c5.addLowPriorityJob(function(){e.style.display="unset"},100)}else if(this.overlayContainer){var z;
((z=this.playerElement.getPlayer())==null?void 0:z.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.Y.getCurrentShort=function(){if(this.currentEndpoint){var e=this.currentEndpoint;if(this.isNonVideoContentCommand(e)){var z=_.r(e,_.lt);return{reelNonVideoContentRenderer:_.r(z==null?void 0:z.renderer,_.mu),command:e}}if(this.data){var C;z=(C=_.r(this.currentEndpoint,_.rP))==null?void 0:C.thumbnail;var w;C=(w=this.data.overlay)==null?void 0:w.reelPlayerOverlayRenderer;_.lh().resolve(_.Cn);e=this.data;var K,G;w=(K=e.overlay)==null?void 0:(G=K.shortsAdsRenderer)==null?void 0:G.adSlots;if(w!==void 0)w.length===
0?(_.Am("Shorts ads returned no ad slots."),e=void 0):(w.length>1&&_.Am("Shorts ads has more than one ad slots."),e=_.r(w[0],_.jZa));else{var X,J;e=_.r((X=e.overlay)==null?void 0:(J=X.shortsAdsRenderer)==null?void 0:J.overlay,_.jZa)}X=e;e=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.r(this.currentEndpoint,_.rP),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var q;return{reelPlayerOverlayRenderer:C,thumbnail:z,command:e,adsOverlay:X,
videoId:(q=_.r(this.currentEndpoint,_.rP))==null?void 0:q.videoId}}}};
_.Y.created=function(){var e=this;this.scrollToVideoThrottle=new _.lw(function(z,C){C=C===void 0?"smooth":C;var w;(w=e.getActiveReelVideo(z))==null||w.scrollIntoView({behavior:C,block:"nearest",inline:e.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.lh().resolve(_.Cn);this.maybeCreateIntersectionObserver()};
_.Y.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.Y.attached=function(){var e=this;_.lh().resolve(_.Cn).registerRootElement(this);this.pageScrollElement=_.XC(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.lE(this,this.processResetAction));_.M("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){e.maybeCreateIntersectionObserver();e.scrollToVideoThrottle.fire(e.activeIndex,"instant");e.shortsContainer.style.overflowY=
"scroll"}))};
_.Y.updateReelWatchSequenceResponse=function(){var e=this,z;if(_.M("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((z=_.r(this.currentEndpoint,_.rP))==null?0:z.sequenceParams)&&!this.reelWatchSequenceResponse){var C;(C=this.shortsController)==null||ojC(C,this.currentEndpoint).then(function(w){w&&(e.reelWatchSequenceResponse=w,e.cachedReelWatchSequenceResponse=w,_.c5.addLowPriorityJob(function(){e.observeShorts()}))})}};
_.Y.calculateSqueezebackPanelSize=function(){var e=this,z=window.innerWidth-456-(window.innerHeight-106)*.5625;_.c5.addLowPriorityJob(function(){z<360?(e.hostElement.style.setProperty("--anchored-panel-width","480px"),_.eB().dispatch(X52(!0))):(e.hostElement.style.setProperty("--anchored-panel-width",Math.min(z,480)+"px"),_.eB().dispatch(X52(!1)))})};
_.Y.detached=function(){var e=_.lh().resolve(_.Cn);e.rootElement=void 0;var z;(z=e.unsubscribeFromStore)==null||z.call(e);e.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.lE(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.Y.onResizeFinished=function(e,z){var C=this,w=new ResizeObserver(function(){C.shortsContainer.style.overflowY="hidden";_.c5.addLowPriorityJob(function(){z()},100)});
w.observe(e);return w};
_.Y.resetDocumentScrollTop=function(){var e,z;if((e=document)==null?0:(z=e.scrollingElement)==null?0:z.scrollTop)document.scrollingElement.scrollTop=0};
_.Y.loadPage_=function(e){var z=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),e){var C;if((C=_.r(this.currentEndpoint,_.rP))==null?0:C.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=e;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){z.isPlayerStarted&&
(z.handleOnPlaybackCommand(),z.afterPlayerStarted=function(){})};
this.registerPanel(e)}};
_.Y.afterPlayerStarted=function(){};
_.Y.handleOnPlaybackCommand=function(){if(_.M("web_shorts_comment_stickers")&&this.isPlayerStarted){var e,z=(e=_.r(this.currentEndpoint,_.rP))==null?void 0:e.onPlaybackCommand;z&&this.ytComponentBehavior.resolveCommand(z)}};
_.Y.maybeCreateIntersectionObserver=function(){var e=this,z=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==z){this.intersectionObserverThreshold=z;var C={rootMargin:"0px",threshold:z},w;(w=this.intersectionObserver)==null||w.disconnect();this.intersectionObserver=new IntersectionObserver(function(K){K=_.b(K);for(var G=K.next();!G.done;G=K.next())if(G=G.value,G.intersectionRatio>z){G=Number(G.target.id);if(isNaN(G))break;if(G===e.index)break;
_.ptN();e.loadVideo(G);_.Vu("r_vtc")}},C);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.Y.observeShorts=function(){var e,z,C,w=this.enableShortsSequenceRefactorUnify?((e=this.shortsContentList)==null?void 0:e.length)||0:(((z=this.shortsProcessedPrevSequence)==null?void 0:z.length)||0)+(((C=this.shortsProcessedSequence)==null?void 0:C.length)||0);if(this.carouselContainers.length<w&&(this.carouselContainers=[].concat(_.s_(_.XC(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(e=_.b(this.carouselContainers),z=e.next();!z.done;z=
e.next())z=z.value,C=void 0,(C=this.intersectionObserver)==null||C.observe(z);if(!this.enableShortsSequenceRefactorUnify)for(e=_.b(this.carouselContainers),z=e.next();!z.done;z=e.next())z=z.value,C=void 0,(C=this.intersectionObserver)==null||C.observe(z)};
_.Y.initCsi=function(){_.dGY("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var e={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"}},z,C;if((z=this.playerData)==null?0:(C=z.cacheMetadata)==null?0:C.isCacheHit)e.isCacheHit=!0;var w;if(z=(w=_.r(this.currentEndpoint,_.rP))==null?void 0:
w.prefetchTaskId)e.prefetchInfo={taskId:z};_.Pf(e)};
_.Y.isAd=function(){var e,z;return!!((e=_.r(this.currentEndpoint,_.rP))==null?0:(z=e.adClientParams)==null?0:z.isAd)};
_.Y.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.Y.getPlayerContainer=function(){var e;return(e=_.XC(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:e.playerContainer};
_.Y.onPlayerStateChange=function(e){var z=this;this.isPlayerPaused=e===2;e!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?e===1&&this.index===0&&(this.isPlayerStarted||_.eB().dispatch(Jfy(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.eB().dispatch(Jfy(!0)));this.player&&!this.player.getLoopVideo()&&_.c5.addLowPriorityJob(function(){z.getShortsLoopSetting().then(function(C){var w;(w=z.player)==null||w.setLoopVideo(C)})});
this.isPlayerPaused&&_.M("web_shorts_paused_state_logging")&&_.Bf(_.Pr(),[this.reelPlayerPausedStateRendererVe])};
_.Y.isShortPlayable=function(){if(_.M("kevlar_playable_short_killswitch"))return!0;var e;return(e=this.playerData)!=null&&e.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.Y.setNormalPlaybackSpeed=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(e.getPlayer().getPlayerPromise(),2);z=w.yieldResult;C=z.getPlaybackRate();C!==1&&(e.storedPlaybackSpeed=C,z.setPlaybackRate(1));_.E_(w)})};
_.Y.restorePlaybackSpeed=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1)return e.storedPlaybackSpeed===null?C.jumpTo(0):C.yield(e.getPlayer().getPlayerPromise(),3);z=C.yieldResult;z.setPlaybackRate(e.storedPlaybackSpeed);e.storedPlaybackSpeed=null;_.E_(C)})};
_.Y.playerDataChanged=function(){var e=this,z,C,w,K,G,X,J,q,T;return _.k(function(Q){if(Q.nextAddress==1){z=e.getPlayer();e.enableShortsSequenceRefactorUnify||(C=e.intersectionObserver)==null||C.disconnect();if(e.playerData){if(((w=e.playerData.videoDetails)==null?void 0:w.videoId)!==((K=z.getPlayer())==null?void 0:K.getVideoData().video_id)){G={};if(X=_.r(e.currentEndpoint,_.rP))G.watch_endpoint=X,X.endTimeSeconds&&(G.end=X.endTimeSeconds);z.loadVideoWithPlayerResponse(e.playerData,G)}}else return Q.return();
return e.player?Q.jumpTo(2):Q.yield(z.getPlayerPromise(),3)}Q.nextAddress!=2&&(e.player=Q.yieldResult,e.JSC$23061_playerStateChangeListener=e.onPlayerStateChange.bind(e),e.player.addEventListener("onStateChange",e.JSC$23061_playerStateChangeListener),_.M("kevlar_client_enable_shorts_player_bootstrap")&&_.c0(),e.scrollToVideoThrottle.fire(e.index),e.movePlayerToVideo(e.index),_.c5.addLowPriorityJob(function(){e.getShortsLoopSetting().then(function(m){var a;(a=e.player)==null||a.setLoopVideo(m)})}),
_.Y$h.resolve(e.player),e.player.syncVolume(),e.getPlayer().focusOnPlayer());
_.c5.addLowPriorityJob(function(){e.observeShorts()},100);
J=e.player.getPlayerState(e.player.getPresentingPlayerType());J!==1||e.isPlayerStarted||_.eB().dispatch(Jfy(!0));e.updateBackNavContainerWidth();q=_.r(e.currentEndpoint,_.rP);((T=q)==null?0:T.startTimeSeconds)&&e.player.seekTo(q.startTimeSeconds);if(e.JSC$23061_cinematicController||e.cinematicsInitializeJobId)return Q.return();e.cinematicsInitializeJobId=_.c5.addLowPriorityJob(function(){e.initCinematicController();e.cinematicsInitializeJobId=void 0});
_.E_(Q)})};
_.Y.onShortUndoDismiss=function(){var e=this,z=K0w().pop();z!==void 0&&(_.T0(this,function(){e.showCardWithIndex(z)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.Y.onShortsDismiss=function(e){if(e=e.detail.reelDismissalActionRenderer)(e=_.r(e.onDismissalCompletionRenderer,_.kNL))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:e}}}),this.scrollAndDismissCard()};
_.Y.processReelNonVideoContentDismissalCommand=function(e){var z=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);e=_.r(e,njy);this.activeDimissalTimeout=setTimeout(function(){z.scrollAndDismissCard()},Number(e==null?void 0:e.delayMs))};
_.Y.scrollAndDismissCard=function(){var e=this,z=this.index;K0w().push(z);_.T0(this,function(){var C=e.getPlayableNextIndex();C!==null&&(e.hideCardWithIndex(z),e.scrollToVideoThrottle.fire(C))})};
_.Y.hideCardWithIndex=function(e){if(e=this.getActiveReelVideo(e))e.hidden=!0};
_.Y.showCardWithIndex=function(e){if(e=this.getActiveReelVideo(e))e.hidden=!1};
_.Y.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.Y.activeChanged=function(e){_.eB().dispatch(_.Yz({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:e}}));if(e)document.addEventListener("keydown",_.lE(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var z;(z=this.player)==null||z.sendAbandonmentPing()}var C;(C=this.player)==null||C.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.lE(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.Y.graftClientVisualElements=function(){if(this.data){var e=_.nm();_.wPT(e,_.oS({response:this.reelWatchSequenceResponse}));_.yQ(e,this.nextReelVe);_.yQ(e,this.prevReelVe);_.M("kevlar_shorts_auto_advance")&&(_.yQ(e,this.loopToggleOffVe),_.yQ(e,this.loopToggleOnVe));_.yQ(e,this.ambientModeToggleVe);_.Bf(_.Pr(),[this.nextReelVe,this.prevReelVe]);_.M("web_shorts_paused_state_logging")&&_.yQ(e,this.reelPlayerPausedStateRendererVe)}};
_.Y.graftNvcRenderer=function(){var e,z,C,w,K,G,X=this.enableShortsSequenceRefactorUnify?(e=this.shortsContentList)==null?void 0:(z=e[this.index])==null?void 0:z.command:this.index<0?(C=this.shortsProcessedPrevSequence)==null?void 0:(w=C[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:w.command:(K=this.shortsProcessedSequence)==null?void 0:(G=K[this.index])==null?void 0:G.command;if(X&&this.isNonVideoContentCommand(X)){e=_.r(X,_.lt);var J,q;(e=(J=_.r(e==null?void 0:e.renderer,_.mu))==
null?void 0:(q=J.loggingDirectives)==null?void 0:q.trackingParams)&&_.nm().graftServerVe(e)}};
_.Y.setActiveIndex=function(){_.lh().resolve(_.Cn).setActiveIndex(this.index)};
_.Y.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.Y.lazyUpdateMiniplayerData=function(){var e=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.c5.addLowPriorityJob(function(){e.updateMiniplayerData();e.updateMiniplayerDataJobId=void 0}))};
_.Y.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.c5.cancelJob(this.updateMiniplayerDataJobId)};
_.Y.updateMiniplayerData=function(){var e,z,C,w=_.lh().resolve(_.gh),K={shortsData:this.getCurrentShort(),previousButtonDisabled:!((e=this.prevButtonData)==null||!e.isDisabled),nextButtonDisabled:!((z=this.nextButtonData)==null||!z.isDisabled),playabilityStatus:(C=this.playerData)==null?void 0:C.playabilityStatus};_.t$(w,K)};
_.Y.resetPlayerLocation=function(){var e=this.getPlayer();this.initialPlayerContainer&&e.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.Y.movePlayerToVideo=function(e,z){var C=this;z=z===void 0?!0:z;var w=this.getActiveReelVideo(e),K=this.getPlayer();if(w){this.overlayContainer?w.appendChild(this.overlayContainer):(this.overlayContainer=_.XC(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,w.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||K.appendTo(this.overlayContainer.playerContainer,void 0,!0));var G;(G=this.player)==null||G.setSize(NaN,NaN);this.isActive||_.Dz(_.c5,function(){C.isActive=
!0});
K.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.M("reels_web_disable_rtr_tick")||_.M("reels_web_use_pbs_first_shorts")&&e===0||_.hg("r_tr");this.currentPlayerIndex=e;w.appendChild(this.errorScreenContainer);var X;(X=this.JSC$23061_cinematicController)==null||_.EBT(X)}else z?_.c5.addLowPriorityJob(function(){C.movePlayerToVideo(C.index,!1)}):Math.random()<=_.n0("web_shorts_error_logging_threshold")&&_.cn(new _.uh("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:z,
index:e}))};
_.Y.getAspectRatio=function(e){return(e==null?0:e.thumbnail)&&i0y(e.thumbnail)?"--ytd-shorts-player-ratio: "+i0y(e.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.Y.getBackgroundImage=function(e){if(e!=null&&e.thumbnail)return(e=_.G9(e.thumbnail.thumbnails))?'background-image:url("'+e+'");':"background-color:black;"};
_.Y.onPersistentPanelActiveChanged=function(){var e=this.getCurrentShort();if(e&&(e==null?0:e.thumbnail)&&i0y(e.thumbnail)!==.5625){var z;(z=this.player)==null||z.setSize(NaN,NaN)}};
_.Y.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.Y.moveCinematicsToVideo=function(){var e=_.XC(this.hostElement).querySelector("ytd-reel-video-renderer");(e==null?0:e.cinematicContainer)&&e.cinematicContainer!==this.shortsCinematicContainer.parentElement&&e.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.Y.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.Y.updatePrevButtonData=function(){var e=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);e?this.prevButtonData=e=Object.assign({},e,{accessibility:{label:_.kk("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.kk("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=e=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.Y.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.Y.updateNextButtonData=function(){var e=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);e&&(this.nextButtonData=e=Object.assign({},e,{accessibility:{label:_.kk("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.kk("NEXT_VIDEO_LABEL")||""}))};
_.Y.getPlayablePreviousIndex=function(){for(var e,z=this.index-1;z>=-(((e=this.prevShortsSequence)==null?void 0:e.length)||0);z--)if(!K0w().includes(z))return z;return null};
_.Y.getIndexInSequence=function(e,z){return e.findIndex(function(C){var w;return((w=_.r(C.command,_.rP))==null?void 0:w.videoId)===z})};
_.Y.handlePrevButtonClick=function(e){var z=this,C,w;return _.k(function(K){C=z.getPlayablePreviousIndex();if(C===null)return K.return();z.gestureType=((w=e)==null?void 0:w.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";C===0&&(z.hidePreviousButtonImmediately=!0);if(z.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){z.scrollToVideoThrottle.fire(C,"auto")}),K.return();
z.scrollToVideoThrottle.fire(C);_.E_(K)})};
_.Y.getPlayableNextIndex=function(){for(var e,z,C=this.index+1;C<(this.enableShortsSequenceRefactorUnify?(e=this.shortsContentList)==null?void 0:e.length:((z=this.shortsProcessedSequence)==null?void 0:z.length)||0);C++)if(!K0w().includes(C))return C;return null};
_.Y.handleNextButtonClick=function(e,z){var C=this,w,K;return _.k(function(G){w=C.getPlayableNextIndex();if(w===null)return G.return();w===1&&(C.showPreviousButtonImmediately=!0);C.gestureType=((K=e)==null?void 0:K.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";z&&(C.gestureType=z);if(C.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){C.scrollToVideoThrottle.fire(w,"auto")}),G.return();
C.scrollToVideoThrottle.fire(w);_.E_(G)})};
_.Y.handleReelNavigateCommand=function(e,z,C){(e=_.r(e,aIL))&&z&&e.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(C)};
_.Y.loadVideo=function(e,z){z=z===void 0?!1:z;if(e!==this.currentPlayerIndex){_.eB().dispatch(Jfy(!1));if(this.isAd()&&!z){var C;(C=this.player)==null||C.notifyShortsAdSwipeEvent()}if((z=this.JSC$23061_cinematicController)!=null){var w;(w=z.currentCinematicEffect)==null||w.pause()}if((w=this.JSC$23061_cinematicController)!=null){var K;(K=w.currentCinematicEffect)==null||K.clear()}w=e>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(w));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var G,X,J,q,T,Q;K=this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:(X=G[e])==null?void 0:X.command:e<0?(J=this.shortsProcessedPrevSequence)==null?void 0:(q=J[this.shortsProcessedPrevSequence.length+e])==null?void 0:q.command:(T=this.shortsProcessedSequence)==null?void 0:(Q=T[e])==
null?void 0:Q.command;this.index=e;this.gestureType||(this.gestureType=w?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");K&&this.isVideoContentCommand(K)&&(this.ytComponentBehavior.resolveCommand(K,{form:{createScreenConfig:{clickedVisualElement:w?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(K&&this.isNonVideoContentCommand(K)){this.currentEndpoint=K;this.data=void 0;G=_.nm();X=_.r(K,_.lt);var m,a;(X=(m=
_.r(X==null?void 0:X.renderer,_.mu))==null?void 0:(a=m.screenLoggingData)==null?void 0:a.screenVeType)&&_.jk(G,X);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(m=this.getActiveReelVideo(e))&&m.appendChild(this.overlayContainer)}var n,H;m=this.enableShortsSequenceRefactorUnify?((n=this.shortsContentList)==null?NaN:n.length)-4<=e:((H=this.reelWatchSequenceResponse)==null?void 0:H.entries)&&e===this.reelWatchSequenceResponse.entries.length-1;var I;if(((I=this.reelWatchSequenceResponse)==
null?0:I.continuationEndpoint)&&m){var L,h;n={contentPlaybackContext:_.lH({},(h=_.r((L=this.currentEndpoint)==null?void 0:L.commandMetadata,_.XV))==null?void 0:h.url,window.location.href)};_.M("web_shorts_early_continuation")?this.continuationRequestPending||(this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:n}),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:n})}var E,
N;e=this.enableShortsSequenceRefactorUnify?e===0:e===-(((E=this.reelWatchSequenceResponse)==null?void 0:(N=E.prevEntries)==null?void 0:N.length)||0);var D,g;((D=this.reelWatchSequenceResponse)==null?0:D.prevContinuationEndpoint)&&((g=this.reelWatchSequenceResponse)==null?0:g.prevEntries)&&e&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.Y.setMiniplayerPreview=function(e){e=(e===void 0?0:e)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var z,C,w,K,G=_.lh().resolve(_.gh),X={shortsData:void 0,shortsPreviewThumbnail:e?this.enableShortsSequenceRefactorUnify?(z=this.shortsContentList)==null?void 0:(C=z[e])==null?void 0:C.thumbnail:(w=this.shortsProcessedSequence)==null?void 0:(K=w[e])==null?void 0:K.thumbnail:void 0};_.t$(G,X)};
_.Y.updateTitle=function(e){var z,C;e=(e==null?0:e.adSlots)?"":(C=e==null?void 0:(z=e.videoDetails)==null?void 0:z.title)!=null?C:"";_.pi(this.hostElement,"yt-update-title",e)};
_.Y.registerPanel=function(e){var z=_.lh().resolve(_.kX);if(z){e=_.b(e.engagementPanels||[]);for(var C=e.next();!C.done;C=e.next()){C=C.value;var w=this.getPanelIdentifier(C.engagementPanelSectionListRenderer),K=void 0,G=void 0;(G=(K=z).registerPanelContent)==null||G.call(K,w,C)}}};
_.Y.getPanelIdentifier=function(e){var z;return(e==null?void 0:(z=e.identifier)==null?void 0:z.tag)||(e==null?void 0:e.panelIdentifier)||(e==null?void 0:e.targetId)};
_.Y.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.eB().dispatch(Jfy(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.eB().dispatch(bpj(!1));var e;(e=this.shortsController)!=null&&(e.dismissedIndices=[]);var z;(z=this.shortsController)!=null&&z.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.lh().resolve(_.gh).close(!0)};
_.Y.processAppendReelWatchSequenceContinuationEntriesAction=function(e){var z=this,C;(C=this.intersectionObserver)==null||C.disconnect();e=e.appendReelWatchSequenceContinuationEntriesAction;if(e==null?0:e.entries){var w;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.s_(((w=this.reelWatchSequenceResponse)==null?void 0:w.entries)||[]),_.s_(e.entries)),continuationEndpoint:e.continuationEndpoint})}else if(e==null?0:e.prevEntries){var K;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.s_(((K=this.reelWatchSequenceResponse)==null?void 0:K.prevEntries)||[]),_.s_(e.prevEntries)),prevContinuationEndpoint:e.prevContinuationEndpoint});_.c5.addLowPriorityJob(function(){z.movePlayerToVideo(z.index);z.scrollToVideoThrottle.fire(z.index,"instant")})}else return;
_.c5.addLowPriorityJob(function(){z.observeShorts()},100)};
_.Y.processWatchSequence=function(e){var z=this;return e.map(function(C){C=C.command;if(z.isVideoContentCommand(C)){var w=_.r(C,_.rP);return{reelPlayerOverlayRenderer:_.r(w==null?void 0:w.overlay,_.xwL),thumbnail:w.thumbnail,command:C}}return z.isNonVideoContentCommand(C)?(w=_.r(C,_.lt),{reelNonVideoContentRenderer:_.r(w==null?void 0:w.renderer,_.mu),command:C}):{command:C}})};
_.Y.calculateIntersectionObserverThreshold=function(){var e=_.XC(this.hostElement).querySelector("ytd-reel-video-renderer"),z=1;(e==null?0:e.offsetHeight)&&(e==null?0:e.offsetWidth)&&(z=Math.min(e.offsetHeight,this.shortsContainer.offsetHeight)/e.offsetHeight*(Math.min(e.offsetWidth,this.shortsContainer.offsetWidth)/e.offsetWidth));return Math.round(z*.6*10)/10};
_.Y.isVideoContentCommand=function(e){_.lh().resolve(_.Cn);return!!_.r(e,_.rP)};
_.Y.isNonVideoContentCommand=function(e){_.lh().resolve(_.Cn);return!!_.r(e,_.lt)};
_.Y.initCinematicController=function(){var e=this;if(this.player&&this.shortsCinematicContainer){this.JSC$23061_cinematicController=new _.aq(this.shortsCinematicContainer,this.player);var z,C=_.r((z=this.data)==null?void 0:z.background,_.pL);_.O0t(this.JSC$23061_cinematicController,C);_.hyt(this.JSC$23061_cinematicController,B3l(C));_.Ls2(this.JSC$23061_cinematicController);_.c5.addLowPriorityJob(function(){e.moveCinematicsToVideo()})}};
_.Y.handleMiniplayerNavigateShorts=function(e){e==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():e==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.Y.handleSignalActionToggleShortsPictureInPicture=function(){if(_.lh().resolve(_.gh).pictureInPictureSupported()){var e=_.lh().resolve(_.Cn);if(_.M("web_shorts_pip")){var z=_.lh().resolve(_.gh);e.isShortsPipActive()?z.deactivate():z.isMiniplayerActive()||(_.C3().shortsPipActivation=!0,_.UUL(z))}}else(e=this.player)==null||e.togglePictureInPicture()};
_.lB.Object.defineProperties(Rq.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.reelWatchSequenceResponse)!=null&&e.prevEntries)return this.processWatchSequence([].concat(_.s_(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.s_(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.reelWatchSequenceResponse)!=null&&e.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var e=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var z;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((z=this.shortsProcessedSequence)==null?void 0:z.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var C;z=_.r((C=this.firstShortsData)==null?void 0:C.command,_.rP);if(z==null||!z.videoId)return this.shortsProcessedSequence;C=this.getIndexInSequence(this.shortsSequence,
z.videoId);if(C!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=C,_.c5.addLowPriorityJob(function(){e.scrollToVideoThrottle.fire(e.index,"auto");e.movePlayerToVideo(e.index)}));
return[].concat(_.s_(this.shortsSequence))}this.shortsProcessedPrevSequence||_.UQ(_.c5,function(){e.observeShorts()},100);
return[this.firstShortsData].concat(_.s_(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var e=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;e&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(e)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var e;return this.index===((e=this.shortsContentList)==null?NaN:e.length)-1}if(this.endOfNextContinuation){var z,C;return this.index===((z=this.reelWatchSequenceResponse)==null?void 0:(C=z.entries)==null?void 0:C.length)}var w;return!((w=this.reelWatchSequenceResponse)==null?0:w.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var e;(e=this.delayedActiveIndexUpdateDebouncer)==null||e.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return this.isShortPlayable()||((z=_.r((e=this.data)==null?void 0:e.watchStatus,_.ruY))==null?void 0:(C=z.style)==null?void 0:C.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var e=this,z=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),C;if((this.data||z)&&(((C=this.data)==null?0:C.engagementPanels)||this.isAd()||z)){z=!1;this.activePanel="shorts-comments-panel";var w;C=_.b(((w=this.data)==null?void 0:w.engagementPanels)||[]);for(w=C.next();!w.done;w=C.next())if(this.getPanelIdentifier(w.value.engagementPanelSectionListRenderer)===this.activePanel){z=!0;break}if(this.isPersistentPanelActive){var K=
_.lh().resolve(_.kX);_.Dz(_.c5,function(){K.showPanel({identifier:e.activePanel,target:null})},100)}var G;
w=[].concat(_.s_(Object.values(((G=this.data)==null?void 0:G.engagementPanels)||{})));G=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);C=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return G===void 0&&C===void 0||(G==null?0:G.isDisabled)||(C==null?void 0:C.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!z?(z=w==null?void 0:w.findIndex(function(X){var J,q;return((J=X.engagementPanelSectionListRenderer)==null?void 0:(q=J.identifier)==null?void 0:q.tag)==="shorts-comments-panel"}),z===-1||z===void 0||w!=null&&w.splice(z,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.kk("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.kk("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:_.kk("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.kk("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(_.s_(Object.values(w||
{})))):w}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var e=this,z,C,w;if((z=this.playerData)==null?0:(C=z.playabilityStatus)==null?0:(w=C.errorScreen)==null?0:w.playerInterstitialRenderer)return _.c5.addLowPriorityJob(function(){e.movePlayerToVideo(e.index)}),this.playerData.playabilityStatus.errorScreen;
var K,G;return((K=this.data)==null?void 0:K.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((G=this.data)==null?0:G.watchStatus)&&_.r(this.data.watchStatus,_.iAU)?(_.c5.addLowPriorityJob(function(){e.movePlayerToVideo(e.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.lB.Object.defineProperties(Rq,{template:{configurable:!0,enumerable:!0,get:function(){if(UEC===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" 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="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" 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    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);UEC=e}e=UEC;return e}}});
Rq.prototype.onNextButtonDataChange=Rq.prototype.onNextButtonDataChange;Rq.prototype.onPrevButtonDataChange=Rq.prototype.onPrevButtonDataChange;Rq.prototype.onPersistentPanelActiveChanged=Rq.prototype.onPersistentPanelActiveChanged;Rq.prototype.lazyUpdateMiniplayerData=Rq.prototype.lazyUpdateMiniplayerData;Rq.prototype.onShortsPipActiveChanged=Rq.prototype.onShortsPipActiveChanged;Rq.prototype.setActiveIndex=Rq.prototype.setActiveIndex;Rq.prototype.graftNvcRenderer=Rq.prototype.graftNvcRenderer;
Rq.prototype.graftClientVisualElements=Rq.prototype.graftClientVisualElements;Rq.prototype.onActiveChanged=Rq.prototype.onActiveChanged;Rq.prototype.onShortsDismiss=Rq.prototype.onShortsDismiss;Rq.prototype.onShortUndoDismiss=Rq.prototype.onShortUndoDismiss;Rq.prototype.playerDataChanged=Rq.prototype.playerDataChanged;Rq.prototype.afterPlayerStarted=Rq.prototype.afterPlayerStarted;Rq.prototype.updateReelWatchSequenceResponse=Rq.prototype.updateReelWatchSequenceResponse;
Rq.prototype.unhideCurrentOverlay=Rq.prototype.unhideCurrentOverlay;Rq.prototype.onServiceRequestCompleted=Rq.prototype.onServiceRequestCompleted;Rq.prototype.engagementPanelsChanged=Rq.prototype.engagementPanelsChanged;Rq.prototype.onFullscreenChange=Rq.prototype.onFullscreenChange;Rq.prototype.onResize=Rq.prototype.onResize;Rq.prototype.setShortsContentList=Rq.prototype.setShortsContentList;Rq.prototype.setFirstShortsData=Rq.prototype.setFirstShortsData;
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Rq.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.CF.YtPageBehavior),_.B("design:type",Object)],Rq.prototype,"ytPageBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Rq.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.oY),_.B("design:type",Object)],Rq.prototype,"ironResizableBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],Rq.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Rq.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Rq.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"playerData",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"reelWatchSequenceResponse",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"cachedReelWatchSequenceResponse",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"cachedSequenceParams",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"cachedSequenceProvider",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"currentEndpoint",void 0);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"nextButtonData",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"prevButtonData",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"isPreviousPageShorts",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"index",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"delayedActiveIndex",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"playablePreviousIndex",void 0);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"player",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"isPlayerPaused",void 0);_.d([_.F({selector:sXC}),_.B("design:type",Object)],Rq.prototype,"isPlayerStarted",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"intersectionObserver",void 0);_.d([_.F(),_.B("design:type",Number)],Rq.prototype,"cinematicsInitializeJobId",void 0);_.d([_.F(),_.B("design:type",Number)],Rq.prototype,"updateMiniplayerDataJobId",void 0);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"fitToVisibleBounds",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"pageSubtype",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Rq.prototype,"enablePreviousContinuation",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"shortsPipEnabled",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"isDark",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"shortsViewTransitions",void 0);_.d([_.F({selector:_.ks,reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"isFullscreen",void 0);_.d([_.F({selector:_.ql,reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"isShortsPipActive",void 0);_.d([_.nP("#shorts-inner-container"),_.B("design:type",HTMLElement)],Rq.prototype,"shortsInnerContainer",void 0);
_.d([_.nP("#back-nav-button ytd-button-renderer"),_.B("design:type",_.Sw)],Rq.prototype,"backNavButton",void 0);_.d([_.nP("#shorts-container"),_.B("design:type",HTMLElement)],Rq.prototype,"shortsContainer",void 0);_.d([_.bx("error-screen"),_.B("design:type",HTMLElement)],Rq.prototype,"errorScreenContainer",void 0);_.d([_.bx("player"),_.B("design:type",Object)],Rq.prototype,"playerElement",void 0);
_.d([_.bx("shorts-cinematic-container"),_.B("design:type",HTMLElement)],Rq.prototype,"shortsCinematicContainer",void 0);_.d([_.bx("initial-player-container"),_.B("design:type",HTMLElement)],Rq.prototype,"initialPlayerContainer",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"buttonOverride",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"anchoredPanelActive",void 0);_.d([_.F(),_.B("design:type",String)],Rq.prototype,"activePanel",void 0);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"isActive",void 0);_.d([_.F({selector:N3T,reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"smallScreenPersistentPanel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"isPersistentPanelActive",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"smallScreenSqueezeBack",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"enableScrollIntoViewCenter",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"enableFlexibleOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"extractOverlay",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"useAspectRatio",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Rq.prototype,"enableShortsSequenceRefactorUnify",void 0);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"continuationRequestPending",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"shortsController",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"panelContainer",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"overlayContainer",void 0);_.d([_.F(),_.B("design:type",Array)],Rq.prototype,"carouselContainers",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"isShortsInitialized",void 0);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"firstShortsData",void 0);_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"firstShortsDataModel",void 0);_.d([_.F(),_.B("design:type",Array)],Rq.prototype,"shortsContentList",void 0);_.d([_.P("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rq.prototype,"prevShortsSequence",null);
_.d([_.P("data","prevShortsSequence"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rq.prototype,"shortsProcessedPrevSequence",null);_.d([_.P("reelWatchSequenceResponse"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rq.prototype,"shortsSequence",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"setFirstShortsData",null);
_.d([_.mi("reelWatchSequenceResponse","firstShortsData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"setShortsContentList",null);_.d([_.P("data","shortsSequence","firstShortsData"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rq.prototype,"shortsProcessedSequence",null);
_.d([_.F({reflectToAttribute:!0}),_.P("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rq.prototype,"isUpArrowHidden",null);_.d([_.F({reflectToAttribute:!0}),_.P("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rq.prototype,"isDownArrowHidden",null);
_.d([_.F(),_.P("index"),_.B("design:type",Number),_.B("design:paramtypes",[])],Rq.prototype,"activeIndex",null);_.d([_.P("isShortPlayable","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rq.prototype,"shouldRenderOfflineContent",null);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onResize",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rq.prototype,"anchoredEngagementPanels",null);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"watchWhileEngagementPanels",void 0);_.d([_.mi("isFullscreen"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onFullscreenChange",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"engagementPanelsChanged",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],Rq.prototype,"onServiceRequestCompleted",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"unhideCurrentOverlay",null);_.d([_.mi("currentEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"updateReelWatchSequenceResponse",null);
_.d([_.mi("isPlayerStarted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"afterPlayerStarted",null);_.d([_.P("playerData","reelWatchSequenceResponse","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rq.prototype,"errorScreen",null);_.d([_.P("errorScreen"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rq.prototype,"hasError",null);
_.d([_.mi("playerData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Rq.prototype,"playerDataChanged",null);_.d([_.Qi("yt-dismissible-item-undo-feedback"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onShortUndoDismiss",null);_.d([_.Qi("yt-disable-lockup-interaction"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],Rq.prototype,"onShortsDismiss",null);
_.d([_.Ux("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onActiveChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"graftClientVisualElements",null);_.d([_.mi("currentPlayerIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"graftNvcRenderer",null);
_.d([_.mi("index"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"setActiveIndex",null);_.d([_.mi("isShortsPipActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onShortsPipActiveChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"lazyUpdateMiniplayerData",null);
_.d([_.F(),_.B("design:type",Object)],Rq.prototype,"onOverlayDensityChanged",void 0);_.d([_.mi("isPersistentPanelActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onPersistentPanelActiveChanged",null);_.d([_.mi("index","data","isUpArrowHidden"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onPrevButtonDataChange",null);
_.d([_.mi("index","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rq.prototype,"onNextButtonDataChange",null);_.d([_.SL({is:"ytd-shorts"})],Rq);_.mj.registerService(_.lx1,Rq);
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("JzFVk");
var FMC;var V52;var pF=function(){return _.V.apply(this,arguments)||this};
_.U(pF,_.V);pF.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
pF.prototype.computeBlueBottomLink=function(e){return e};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],pF.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.bottomIcon)"}),_.B("design:type",String)],pF.prototype,"bottomIcon",void 0);
_.d([_.F({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.B("design:type",Boolean)],pF.prototype,"enableBlueBottomLink",void 0);_.d([_.SL({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],pF);
_.u(pF,"ytd-web-answer-renderer",function(){if(V52!==void 0)return V52;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return V52=e},{mode:_.bA("kevlar_poly_si_batch_j035")?1:2});var f_l;var eF=function(){var e=_.V.apply(this,arguments)||this;e.hasChipBar=!1;return e};
_.U(eF,_.V);eF.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}}};
eF.prototype.computeHasChipBar=function(e){return!(e==null||!e.chipBar)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eF.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.B("design:type",Object)],eF.prototype,"hasChipBar",void 0);_.d([_.SL({is:"ytd-search-header-renderer",disableElementRegistration:!0})],eF);
_.u(eF,"ytd-search-header-renderer",function(){if(f_l!==void 0)return f_l;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return f_l=e},{mode:1});var Sga;var z3=function(){return _.V.apply(this,arguments)||this};
_.U(z3,_.V);z3.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],z3.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-page-continuation"})],z3);
_.u(z3,"ytd-page-continuation",function(){if(Sga!==void 0)return Sga;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Sga=e},{mode:1});var u1w;var dm2;var DmT;var idY=function(){return _.V.apply(this,arguments)||this};
_.U(idY,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],idY.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],idY.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],idY);
_.u(idY,"ytd-watch-card-one-vs-one-event",function(){if(DmT!==void 0)return DmT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return DmT=e},{mode:1});var N1y=function(){return _.V.apply(this,arguments)||this};
_.U(N1y,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],N1y.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],N1y.prototype,"data",void 0);_.d([_.SL({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],N1y);
_.u(N1y,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(dm2!==void 0)return dm2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return dm2=e},{mode:1});var sVL;var B1a=function(){return _.V.apply(this,arguments)||this};
_.U(B1a,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],B1a.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],B1a.prototype,"data",void 0);_.d([_.SL({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],B1a);
_.u(B1a,"ytd-banner-and-box-hero-image-renderer",function(){if(sVL!==void 0)return sVL;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return sVL=e},{mode:1});var t5g;var Cf=function(){var e=_.V.apply(this,arguments)||this;e.modern=_.M("web_modern_buttons");return e};
_.U(Cf,_.V);Cf.prototype.computeIcon=function(){var e,z,C=(e=this.data)==null?void 0:(z=e.icon)==null?void 0:z.iconType;if(C)return _.qF(C)};
Cf.prototype.computeButtonShape=function(){var e;return{buttonText:_.Zd((e=this.data)==null?void 0:e.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.lB.Object.defineProperties(Cf.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"}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Cf.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Cf.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Cf.prototype,"modern",void 0);_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.P("data.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],Cf.prototype,"buttonColor",null);
_.d([_.SL({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Cf);
_.u(Cf,"ytd-call-to-action-button-renderer",function(){if(t5g!==void 0)return t5g;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return t5g=e},{mode:1});var giY;var wx=function(){return _.V.apply(this,arguments)||this};
_.U(wx,_.V);wx.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.XC(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.oo(this.data.leftThumbnail.thumbnails,216)+")")};
wx.prototype.onLeftThumbnailChanged=wx.prototype.onLeftThumbnailChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wx.prototype,"data",void 0);_.d([_.mi("data.leftThumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wx.prototype,"onLeftThumbnailChanged",null);_.d([_.SL({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],wx);
_.u(wx,"ytd-collage-hero-image-renderer",function(){if(giY!==void 0)return giY;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return giY=e},{mode:1});var jVy;var Kf=function(){return _.V.apply(this,arguments)||this};
_.U(Kf,_.V);Kf.prototype.computeStyle=function(e){return e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Kf.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Kf.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.B("design:type",String)],Kf.prototype,"componentStyle",void 0);_.d([_.SL({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Kf);
_.u(Kf,"ytd-single-hero-image-renderer",function(){if(jVy!==void 0)return jVy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jVy=e},{mode:1});var yRy;var oq=function(){return _.V.apply(this,arguments)||this};
_.U(oq,_.V);_.Y=oq.prototype;
_.Y.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:_.M("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.Y.computeSubtitle=function(e){if(this.data){var z;if(this.data.upcomingEventData){e=_.Zd(e.subtitle);var C=Number(this.data.upcomingEventData.startTime);isNaN(C)||(z=_.AO(_.Ez(e,C)))}else z=e.subtitle;return z}};
_.Y.onHeroTap=function(e){e.preventDefault();var z=this.data&&this.data.navigationEndpoint;!z||!_.zi(_.cJ(e),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.zi(_.cJ(e),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.M("kevlar_watchcard_hero_video_renderer_killswitch")?_.pi(this.hostElement,"yt-navigate",{navigationEndpoint:z}):this.ytComponentBehavior.resolveCommand(z))};
_.Y.computeHeroTabIndex=function(e){return e&&e.simpleText?-1:0};
_.Y.computeHeroRole=function(e){return e&&e.simpleText?"":"link"};
_.Y.computeIsReminderButtonPresent=function(e){return!(!e||!e.reminderButton)};
_.Y.computeHideBottomItems=function(e){return!(this.computeIsReminderButtonPresent(e)||e.subtitle)};
_.Y.dataChanged=function(){var e=this.get("data.buttons.buttonRenderer.serviceEndpoint"),z;((z=_.r(e==null?void 0:e.commandMetadata,_.wA))==null?0:z.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(e)};
oq.prototype.dataChanged=oq.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],oq.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oq.prototype,"data",void 0);
_.d([_.F({computed:"computeSubtitle(data)"}),_.B("design:type",String)],oq.prototype,"subtitle",void 0);_.d([_.F({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],oq.prototype,"isReminderButtonPresent",void 0);_.d([_.F({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],oq.prototype,"hideBottomItems",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oq.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],oq);
_.u(oq,"ytd-watch-card-hero-video-renderer",function(){if(yRy!==void 0)return yRy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return yRy=e},{mode:1});var cRy;var G3=function(){return _.V.apply(this,arguments)||this};
_.U(G3,_.V);_.Y=G3.prototype;_.Y.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"}}}};
_.Y.computeTitleBadges=function(e){return e?[e]:[]};
_.Y.computeHeaderStyle=function(e){return e?e.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.Y.computeAvatarAriaLabel=function(e){if(e){var z,C,w,K;return(K=(z=e.avatar)==null?void 0:(C=z.accessibility)==null?void 0:(w=C.accessibilityData)==null?void 0:w.label)!=null?K:_.Zd(e==null?void 0:e.title)}};
_.Y.computeAvatarHeight=function(e){return e==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.Y.computeBadgeRowClass=function(e){return(e==null?0:e[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],G3.prototype,"data",void 0);_.d([_.F({computed:"computeTitleBadges(data.titleBadge)"}),_.B("design:type",Array)],G3.prototype,"titleBadges",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.B("design:type",String)],G3.prototype,"headerStyle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.B("design:type",String)],G3.prototype,"badgeRowClass",void 0);_.d([_.SL({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],G3);
_.u(G3,"ytd-watch-card-rich-header-renderer",function(){if(cRy!==void 0)return cRy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return cRy=e},{mode:1});var ARj;var Zdw;var Y4=function(){return _.V.apply(this,arguments)||this};
_.U(Y4,_.V);Y4.prototype.onMetadataTap=function(e){var z=this.data&&this.data.navigationEndpoint;z&&!_.zi(_.cJ(e),this.hostElement,["A".toString()])&&_.pi(this.hostElement,"yt-navigate",{endpoint:z})};
_.lB.Object.defineProperties(Y4.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 e;if(this.data.upcomingEventData){var z=_.Zd(this.data.subtitle),C=Number(this.data.upcomingEventData.startTime);isNaN(C)||(e=_.AO(_.Ez(z,C)))}else e=this.data.subtitle;return e}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Y4.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data.style"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Y4.prototype,"isCondensed",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Y4.prototype,"subtitle",null);
_.d([_.SL({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Y4);
_.u(Y4,"ytd-watch-card-compact-video-renderer",function(){if(Zdw!==void 0)return Zdw;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Zdw=e},{mode:1});var pRY;var eyL=function(){return _.V.apply(this,arguments)||this};
_.U(eyL,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eyL.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eyL.prototype,"data",void 0);_.d([_.SL({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],eyL);
_.u(eyL,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(pRY!==void 0)return pRY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pRY=e},{mode:1});var bP=function(){return _.V.apply(this,arguments)||this};
_.U(bP,_.V);bP.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}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bP.prototype,"ytRendererStamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bP.prototype,"data",void 0);_.d([_.SL({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],bP);
_.u(bP,"ytd-vertical-watch-card-list-renderer",function(){if(ARj!==void 0)return ARj;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ARj=e},{mode:1});var zyy;var Xi=function(){var e=_.V.apply(this,arguments)||this;e.ariaExpanded="false";return e};
_.U(Xi,_.V);_.Y=Xi.prototype;_.Y.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.Y.dataChanged=function(){var e;this.currentSeasonIndex=((e=this.data)==null?void 0:e.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.Y.computeEpisodesInfo=function(e,z,C){if(e!==void 0&&z.length===e.length)return e[C]};
_.Y.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.Y.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.Y.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.Y.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.Y.getUppercaseSimpleString=function(e){return this.ytRendererBehavior.getSimpleString(e).toUpperCase()};
_.Y.updateCurrentSeasonIndexFromBinding=function(e){this.currentSeasonIndex=e.detail.value};
Xi.prototype.onIronOverlayClosed=Xi.prototype.onIronOverlayClosed;Xi.prototype.currentSeasonIndexChanged=Xi.prototype.currentSeasonIndexChanged;Xi.prototype.dataChanged=Xi.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xi.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",String)],Xi.prototype,"label",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],Xi.prototype,"currentSeasonIndex",void 0);_.d([_.F({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.B("design:type",Object)],Xi.prototype,"episodesInfo",void 0);_.d([_.F({value:"false"}),_.B("design:type",Object)],Xi.prototype,"ariaExpanded",void 0);_.d([_.nP("#lists"),_.B("design:type",Object)],Xi.prototype,"lists",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xi.prototype,"dataChanged",null);_.d([_.Ux("currentSeasonIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xi.prototype,"currentSeasonIndexChanged",null);_.d([_.Qi("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Xi.prototype,"onIronOverlayClosed",null);
_.d([_.SL({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Xi);
_.u(Xi,"ytd-watch-card-section-dropdown-renderer",function(){if(zyy!==void 0)return zyy;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zyy=e},{mode:1});var Chy;var JM=function(){var e=_.V.apply(this,arguments)||this;e.isSearch=!1;return e};
_.U(JM,_.V);JM.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}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],JM.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],JM.prototype,"isSearch",void 0);_.d([_.SL({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],JM);
_.u(JM,"ytd-watch-card-section-sequence-renderer",function(){if(Chy!==void 0)return Chy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return Chy=e},{mode:1});var wia=_.f(function(e){return _.x("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.x(_.PF,{data:function(){return e.data().ctaButton}},{buttonViewModel:_.iz}),_.x(_.U2,{text:function(){return e.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Jn");
wia.idomCompat=!0;_.KU(wia,"ytd-button-banner-view-model",{props:{data:_.vh}});var k4=function(){var e=_.V.apply(this,arguments)||this;e.isSearch=!1;return e};
_.U(k4,_.V);
k4.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"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],k4.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],k4.prototype,"rounded",void 0);_.d([_.F(),_.B("design:type",Object)],k4.prototype,"isSearch",void 0);
_.d([_.SL({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],k4);
_.u(k4,"ytd-universal-watch-card-renderer",function(){if(u1w!==void 0)return u1w;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return u1w=e},{mode:1});var Ksy;_.KU(_.f(function(e){var z=e.data;var C;e=!((C=_.lh().resolve(_.$B(_.jQ)))==null||!C());C={};return _.x("overview-message-view-model",{class:_.qT("ytwOverviewMessageViewModelHost",(C.ytwOverviewMessageViewModelDarkBackground=e,C.ytwOverviewMessageViewModelLightBackground=!e,C))},_.x(_.l,{cond:function(){return z().primaryImage},
then:function(w){return _.x(_.Zf,{data:w,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.x(_.l,{cond:function(){return z().primaryText},
then:function(){return _.x("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.x(_.U2,{text:function(){return z().primaryText}}))}}),_.x(_.l,{cond:function(){return z().secondaryText},
then:function(){return _.x("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.x(_.U2,{text:function(){return z().secondaryText}}))}}))},"Kn"),"overview-message-view-model",{props:{data:_.vh}});_.KU(_.Ho5,"ytd-overview-answer-view-model",{props:{data:_.vh}});var qr=function(){return _.V.apply(this,arguments)||this};
_.U(qr,_.V);qr.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"}}}};
qr.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],qr.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qr.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],qr.prototype,"isSearch",void 0);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],qr);
_.u(qr,"ytd-secondary-search-container-renderer",function(){if(Ksy!==void 0)return Ksy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return Ksy=e},{mode:1});var oBw;var x4=function(){var e=_.V.apply(this,arguments)||this;e.renderSecondarySearchContainer=!1;e.isSearch=!1;return e};
_.U(x4,_.V);_.Y=x4.prototype;_.Y.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.Y.created=function(){var e=this;this.boundStampSecondarySearchContainerIfFits=function(){e.stampSecondarySearchContainerIfFits()};
_.g1("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.Y.computeIsSearchFrictionPage=function(e){var z,C,w,K,G;e=e==null?void 0:(z=e.primaryContents)==null?void 0:(C=z.sectionListRenderer)==null?void 0:(w=C.contents)==null?void 0:(K=w[0])==null?void 0:(G=K.itemSectionRenderer)==null?void 0:G.contents;if(!e)return!1;z=_.b(e);for(C=z.next();!C.done;C=z.next())if(w=void 0,(w=C.value)==null?0:w.searchFrictionViewModel)return!0;return!1};
_.Y.computeShowSecondaryColumn=function(e,z){return!!(z&&z.secondaryContents&&e)};
_.Y.activeChanged=function(){var e=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.lE(this,this.debounceStampSecondarySearchContainerIfFits)),_.BI(function(){e.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.lE(this,this.debounceStampSecondarySearchContainerIfFits))};
_.Y.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.Y.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.Y.debounceStampSecondarySearchContainerIfFits=function(){_.tK(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.Y.onRetrieveLocation=function(e,z){z.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);e.stopPropagation()};
_.Y.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
x4.prototype.dataChanged=x4.prototype.dataChanged;x4.prototype.onRetrieveLocation=x4.prototype.onRetrieveLocation;x4.prototype.persistentGuideChanged=x4.prototype.persistentGuideChanged;x4.prototype.activeChanged=x4.prototype.activeChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],x4.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.oY),_.B("design:type",Object)],x4.prototype,"ironResizableBehavior",void 0);_.d([_.F(),_.B("design:type",Boolean)],x4.prototype,"active",void 0);_.d([_.F(),_.B("design:type",Object)],x4.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.M("enable_desktop_search_bigger_thumbs")}}),
_.B("design:type",Boolean)],x4.prototype,"useBiggerThumbs",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.Mv("desktop_search_bigger_thumbs_style")}}),
_.B("design:type",String)],x4.prototype,"biggerThumbsStyle",void 0);_.d([_.F(),_.B("design:type",Object)],x4.prototype,"renderSecondarySearchContainer",void 0);_.d([_.F({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.B("design:type",Boolean)],x4.prototype,"showSecondaryColumn",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.B("design:type",Boolean)],x4.prototype,"isSearchFrictionPage",void 0);
_.d([_.F(),_.B("design:type",Object)],x4.prototype,"isSearch",void 0);_.d([_.mi("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x4.prototype,"activeChanged",null);_.d([_.mi("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x4.prototype,"persistentGuideChanged",null);
_.d([_.Qi("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],x4.prototype,"onRetrieveLocation",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x4.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],x4);
_.u(x4,"ytd-two-column-search-results-renderer",function(){if(oBw!==void 0)return oBw;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return oBw=e},{mode:1});var T3=function(){var e=_.V.apply(this,arguments)||this;e.hasSearchHeader=!1;e.hasSecondaryContent=!1;e.hasBiggerThumbs=_.M("enable_desktop_search_bigger_thumbs");e.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return e};
_.U(T3,_.V);_.Y=T3.prototype;_.Y.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:_.jb(["aa","eocs"])}}};
_.Y.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.Y.loadPage_=function(e){this.initCsi();e&&(this.data=e,_.g1("REFINEMENTS_TUPLE",["FromSearchResponse",e.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.qU(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.Y.initCsi=function(){_.dGY("results",["ol","cpt"])};
_.Y.updateTitle=function(){var e=_.ea(window.location.href,"q");e||(e=_.ea(window.location.href,"search_query"));_.pi(this.hostElement,"yt-update-title",e||"")};
_.Y.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.Y.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.M("web_srp_data_changed_terminate_imp_killswitch")||_.eA(this.hostElement,"yt-terminate-video-preview-action")};
_.Y.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.Y.computeHasSearchHeader=function(e){var z;e=e==null?void 0:(z=e.header)==null?void 0:z.searchHeaderRenderer;return!!e&&(!!e.searchFilterButton||!!e.chipBar)};
_.Y.computeHasSecondaryContent=function(e){var z,C;return!!(e==null?0:(z=e.contents)==null?0:(C=z.twoColumnSearchResultsRenderer)==null?0:C.secondaryContents)};
_.lB.Object.defineProperties(T3,{template:{configurable:!0,enumerable:!0,get:function(){if(FMC===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);FMC=e}e=FMC;return e}}});
T3.prototype.onReloadContinuationFinish=T3.prototype.onReloadContinuationFinish;T3.prototype.dataChanged=T3.prototype.dataChanged;_.d([_.W(_.CF.YtPageBehavior),_.B("design:type",Object)],T3.prototype,"ytPageBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],T3.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],T3.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],T3.prototype,"data",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],T3.prototype,"monitorScroll",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],T3.prototype,"hasSearchHeader",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],T3.prototype,"hasSecondaryContent",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],T3.prototype,"hasBiggerThumbs",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T3.prototype,"dataChanged",null);
_.d([_.Qi("yt-reload-continuation-finish"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],T3.prototype,"onReloadContinuationFinish",null);_.d([_.SL({is:"ytd-search"})],T3);_.mj.registerService(_.$91,T3);
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("h8y2qb");
var ihT=function(e){if(e=_.o_4(e)){var z;(z=e.sources)!=null&&z[0]?(z=_.YYL(e),z=z<1?"VERTICAL":z>1?"HORIZONTAL":"SQUARE"):z=void 0;return z}},wc=function(e){_.sV.call(this,"upload");
this.opts.query=e},s4Y=function(e,z){return _.x(N9T,{data:e,
onYtNavigate:z})},B9y=function(e,z){return _.xz(e.entities,"pageHeaderEntity",z)},g2L=function(e,z){return e.map(function(C){if(C.tabRenderer)return tnw(C.tabRenderer);
if(C.expandableTabRenderer&&z){var w=C.expandableTabRenderer;return{customTabRenderable:function(){return z(w)}}}return{}})},tnw=function(e){return{identifier:e.tabIdentifier,
aTagConfig:_.Df({innertubeCommand:e.endpoint,forceNewState:!0}),title:e.title,selected:e.selected,disabled:e.unselectable,icon:e.icon}},j4L=function(e){return _.Yz({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:e})},yAy=function(e){if(!_.b3(document,"gtm-noscript")){var z=document.createElement("noscript");
z.id="gtm-noscript";z.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+e+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(z)}};_.Tk(wc,_.sV);wc.prototype.JSC$10243_setLabel=function(e){wc.superClass_.JSC$10243_setLabel.call(this,e);return this};
wc.prototype.addUploadMetadata=function(e,z){wc.superClass_.addUploadMetadata.call(this,e,z);return this};var cAg=function(e){if(e!=="youtubebanner"&&e!=="youtube-channel-banner")throw Error("Wo");wc.call(this,e)};
_.U(cAg,wc);cAg.prototype.JSC$10243_setLabel=function(e){wc.prototype.JSC$10243_setLabel.call(this,e);return this};
cAg.prototype.addUploadMetadata=function(e,z){wc.prototype.addUploadMetadata.call(this,e,z);return this};var AA2=[_.oY,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(e){_.mb(e).path[0]!==this&&(this.resetLayout(),e.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var e=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.OJ(this._layoutDebouncer,_.P9,e);_.EJ(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var e=this;requestAnimationFrame(function(){e.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},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 ZhY=[_.q7X,{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(e,z){var C=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[e];if(!C)throw new ReferenceError(this._getUndefinedMsg(e));e=this._boundEffect(C,z||{});e.setUp();return e},
_effectsChanged:function(e,z,C){this._tearDownEffects();e&&C&&(e.split(" ").forEach(function(w){var K;w!==""&&((K=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[w])?this._effects.push(this._boundEffect(K,z[w])):console.warn(this._getUndefinedMsg(w)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(e,z){z=z||{};var C=parseFloat(z.startsAt||0),w=parseFloat(z.endsAt||1),K=w-C,G=function(){};
w=C===0&&w===1?e.run:function(X,J){e.run.call(this,Math.max(0,(X-C)/K),J)};
return{setUp:e.setUp?e.setUp.bind(this,z):G,run:e.run?w.bind(this):G,tearDown:e.tearDown?e.tearDown.bind(this):G}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(e){e.setUp()!==!1&&this._effectsRunFn.push(e.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(e){e.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(e,z){this._effectsRunFn&&this._effectsRunFn.forEach(function(C){C(e,z)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var e=this._clampedScrollTop;this._updateScrollState(e);this.threshold>0&&this._setThresholdTriggered(e>=this.threshold)}},
_getDOMRef:function(e){console.warn("_getDOMRef","`"+e+"` is undefined")},
_getUndefinedMsg:function(e){return"Scroll effect `"+e+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+e+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Xo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(e){var z={};e=parseFloat(e.scalar);z.background=this._getDOMRef("background");z.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");z.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");z.deltaBg=z.backgroundFrontLayer.offsetHeight-z.background.offsetHeight;z.deltaBg===0?(isNaN(e)&&(e=.8),z.deltaBg=(this._dHeight||0)*e):(isNaN(e)&&(e=
1),z.deltaBg*=e);this._fxParallaxBackground=z},
run:function(e){var z=this._fxParallaxBackground;this.transform("translate3d(0px, "+z.deltaBg*Math.min(1,e)+"px, 0px)",z.backgroundFrontLayer);z.backgroundRearLayer&&this.transform("translate3d(0px, "+z.deltaBg*Math.min(1,e)+"px, 0px)",z.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var pog;var eoy;var zog=function(){};
_.Y=zog.prototype;_.Y._scrollTargetChanged=function(){};
_.Y.scroll=function(){};
_.Y._isValidScrollTarget=function(){};
_.Y._toggleScrollListener=function(){};
_.Y.toggleScrollListener=function(){};
_.Y.createEffect=function(){};
_.Y._effectsChanged=function(){};
_.Y._layoutIfDirty=function(){};
_.Y._boundEffect=function(){};
_.Y._setUpEffect=function(){};
_.Y._tearDownEffects=function(){};
_.Y._runEffects=function(){};
_.Y._scrollHandler=function(){};
_.Y._scrollStateChanged=function(){};
_.Y._getUndefinedMsg=function(){};
_.Y.notifyResize=function(){};
_.Y.assignParentResizable=function(){};
_.Y.stopResizeNotificationsFor=function(){};
_.Y._subscribeIronResize=function(){};
_.Y._unsubscribeIronResize=function(){};
_.Y.resizerShouldNotify=function(){};
_.Y._onDescendantIronResize=function(){};
_.Y._fireResize=function(){};
_.Y._onIronRequestResizeNotifications=function(){};
_.Y._parentResizableChanged=function(){};
_.Y._notifyDescendant=function(){};
_.Y._requestResizeNotifications=function(){};
_.Y._findParent=function(){};
_.Y._appResetLayoutHandler=function(){};
_.Y.resetLayout=function(){};
_.Y._notifyLayoutChanged=function(){};
_.Y._notifyDescendantResize=function(){};
_.Y._setThresholdTriggered=function(){};
zog=_.hK({_template:function(){if(eoy!==void 0)return eoy;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;pog===void 0&&(pog=document.createElement("template"));var w=pog;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return eoy=e},
is:"tp-yt-app-header",behaviors:[ZhY,AA2],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 e=_.mb(this.$.slot).getDistributedNodes(),z=0,C;C=e[z];z++)if(C.nodeType===Node.ELEMENT_NODE)if(C.hasAttribute("sticky")){this._stickyElRef=C;break}else this._stickyElRef||(this._stickyElRef=C);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var e=this._clampedScrollTop,z=this._height===0||e===0,C=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;z||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();z?this._updateScrollState(e,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=C}},
_updateScrollState:function(e,z){if(this._height!==0){var C=0,w=this._top;var K=this._maxHeaderTop;var G=e-this._lastScrollTop,X=Math.abs(G),J=e>this._lastScrollTop,q=performance.now();this._mayMove()&&(C=this._clamp(this.reveals?w+G:e,0,K));e>=this._dHeight&&(C=this.condenses&&!this.fixed?Math.max(this._dHeight,C):C,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&X<100){if(q-this._initTimestamp>300||this._wasScrollingDown!==J)this._initScrollTop=e,this._initTimestamp=q;e>=K&&
(Math.abs(this._initScrollTop-e)>30||X>10?(J&&e>=K?C=K:!J&&e>=this._dHeight&&(C=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((C-w)/(G/(q-this._lastTimestamp)),0,300)+"ms"):C=this._top)}K=this._dHeight===0?e>0?1:0:C/this._dHeight;z||(this._lastScrollTop=e,this._top=C,this._wasScrollingDown=J,this._lastTimestamp=q);if(z||K!==this._progress||w!==C||e===0)this._progress=K,this._runEffects(K,C),this._transformHeader(C)}},
_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(e){this.translate3d(0,-e+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&e>=this._stickyElTop?Math.min(e,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(e,z,C){return Math.min(C,Math.max(z,e))},
_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),_.mb(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(e){switch(e){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.mb(this).querySelector("[main-title]");case "condensedTitle":return _.mb(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var C0l;var wCt;_.hK({_template:function(){if(wCt!==void 0)return wCt;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;C0l===void 0&&(C0l=document.createElement("template"));var w=C0l;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return wCt=e},
is:"tp-yt-app-header-layout",behaviors:[AA2],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.mb(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var e=this.header;if(this.isAttached&&e){this.$.wrapper.classList.remove("initializing");e.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)e.style.left="",e.style.right="";else{var z=this.getBoundingClientRect(),C=document.documentElement.clientWidth-z.right;e.style.left=z.left+"px";e.style.right=C+"px"}z=this.$.contentContainer.style;C=e.offsetHeight;e.fixed&&!e.condenses&&this.hasScrollingRegion?
(z.marginTop=C+"px",z.paddingTop=""):(z.paddingTop=C+"px",z.marginTop="")}}});var Kpt=new _.nN("alertCommand");var oJg=new _.nN("manageLabsStateCommand");var Gtg=new _.nN("inlineFormRenderer");var YHg=new _.nN("playlistSidebarPrimaryInfoRenderer");var bjw=new _.nN("productDetailsThumbnailRenderer"),XC2=new _.nN("productDetailsVariantRenderer"),JGl=new _.nN("productDetailsVariantOptionRenderer"),ktg=new _.nN("productDetailsOffersContainerRenderer"),qHy=new _.nN("productDetailsOfferRenderer");var x6C=new _.nN("shoppingFlaggingRenderer");var Tpy=new _.nN("playlistBylineRenderer");var $62=new _.nN("insertChannelTabCommand");var KF=function(){return _.rO.apply(this,arguments)||this};
_.U(KF,_.rO);_.Y=KF.prototype;_.Y.activeChanged=function(){if(this.active){var e=_.XC(this.hostElement).querySelector("#header");e&&_.pi(e,"iron-resize");window.addEventListener("scroll",_.lE(this,this.onScroll))}else window.removeEventListener("scroll",_.lE(this,this.onScroll)),_.pi(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.Y.guideVisibleChanged=function(){var e=_.XC(this.hostElement).querySelector("#header");e&&_.pi(e,"iron-resize")};
_.Y.onScroll=function(){var e=this;_.tK(this,"onScroll",function(){var z=_.XC(e.hostElement).querySelector("#header");z&&z.polymerController&&(z=z.polymerController.getScrollState().progress===1?"standard":"seamed",_.pi(e.hostElement,"yt-request-panel-mode-change",{mode:z}))},10)};
_.Y.tabsChanged=function(){if(this.tabs){for(var e=null,z=0,C=this.tabs.length;z<C;++z){var w=this.tabs[z].tabRenderer;if(w&&w.selected){e=z;break}}this.selected=e}};
_.Y.onTabsActivate=function(e){_.pi(this.hostElement,"yt-navigate",{endpoint:this.tabs[e.detail.selected].tabRenderer.endpoint})};
KF.prototype.tabsChanged=KF.prototype.tabsChanged;KF.prototype.guideVisibleChanged=KF.prototype.guideVisibleChanged;KF.prototype.activeChanged=KF.prototype.activeChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],KF.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.F(),_.B("design:type",Array)],KF.prototype,"tabs",void 0);
_.d([_.F(),_.B("design:type",Object)],KF.prototype,"selected",void 0);_.d([_.F(),_.B("design:type",Boolean)],KF.prototype,"active",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],KF.prototype,"disableHeaderFluidWidth",void 0);_.d([_.mi("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KF.prototype,"activeChanged",null);
_.d([_.mi("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KF.prototype,"guideVisibleChanged",null);_.d([_.mi("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KF.prototype,"tabsChanged",null);_.d([_.HI()],KF);var lKw=[_.c.YtRendererBehavior,_.H$.YtdGuideStateAwareBehavior,KF.prototype];var QI2=2/3,m6C=_.mT(130749),aKg=function(e,z){var C=this;this.element=e;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){C.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:QI2,moveAction:function(w){C.moveAction(w)},
triggerAction:function(){C.element.isReloading=!0;_.Bj(_.nm(),{visualElement:m6C});_.Tx.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:C.element}})}}}};
_.c7(_.nm(),m6C,this.layer);this.gesture=new _.rl(e,z,this.refreshConfig,"pan-down");this.attach()};
_.Y=aKg.prototype;_.Y.attach=function(){this.gesture.attach()};
_.Y.detach=function(){this.gesture.detach()};
_.Y.reset=function(){this.element.close()};
_.Y.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.Y.moveAction=function(e){this.element.rotation=e*360};var nJt=_.mT(130750),rGa=function(e,z,C,w,K){var G=this;this.element=e;this.parent=C;this.channelHeader=w;this.ytdReduxDispatch=K;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){G.tabsStartAtInPx=G.channelHeader.clientHeight-48;var X;(X=G.selectedTab)!=null&&X.title&&(X=_.lh().resolve(_.$B(_.wE)))&&(X=X.getCurrentPage(),G.lastVisitedTabScrollPosition=X.getScrollTop(),G.previousTab&&
((G.lastVisitedTabScrollPosition===void 0?0:G.lastVisitedTabScrollPosition<G.channelHeader.clientHeight-48)?G.scrollPositionForTabs.has(G.selectedTab.title)&&G.scrollPositionForTabs.delete(G.selectedTab.title):G.scrollPositionForTabs.set(G.selectedTab.title,X.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:MaC(),triggerAction:function(){G.navigate(G.previousTab)},
moveAction:function(X,J){G.moveAction(X,J)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-MaC(),triggerAction:function(){G.navigate(G.nextTab)},
moveAction:function(X,J){G.moveAction(X,J)}}}};
_.c7(_.nm(),nJt,this.layer);this.gesture=new _.rl(e,z,this.tabConfig);this.attach()};
_.Y=rGa.prototype;_.Y.attach=function(){this.gesture.attach()};
_.Y.detach=function(){this.gesture.detach()};
_.Y.tabsChanged=function(e){if(e){var z=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;e=_.b(e);for(var C=e.next();!C.done;C=e.next()){C=C.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=C);var w=void 0;if((w=C)==null?0:w.selected)this.previousTab=z,this.selectedTab=C;z=C}z=this.gesture;e=this.getConfig();z.config=e;this.scrollPositionNeedsUpdate=!0}};
_.Y.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.Y.moveAction=function(e,z){if(!this.tabsElement){var C;this.tabsElement=(C=this.parent.header)==null?void 0:C.tabsElement;z==="right"&&this.previousTab?(C=this.previousTab.endpoint,_.Q4f(_.lh().resolve(_.F9),C,{},"")):z==="left"&&this.nextTab&&(C=this.nextTab.endpoint,_.Q4f(_.lh().resolve(_.F9),C,{},""));if(!this.tabsElement)return}C=this.tabsElement._pos;z==="right"&&(e*=-1);this.tabsElement._positionBar(C.width,C.left*1+C.width*e)};
var MaC=function(){var e,z;return(z=(e=_.lh().resolve(_.wE).getCurrentPage())==null?void 0:e.clientWidth)!=null?z:0};
rGa.prototype.navigate=function(e){this.element.data=void 0;if(e=e==null?void 0:e.endpoint)this.ytdReduxDispatch(j4L(!0)),_.Bj(_.nm(),{visualElement:nJt}),_.Tx.instance.resolveCommand({navigateAction:{endpoint:e}},{form:{element:this.element}})};var Hjt;var U6T;var oA=function(){return _.V.apply(this,arguments)||this};
_.U(oA,_.V);oA.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oA.prototype,"data",void 0);_.d([_.SL({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],oA);
_.u(oA,"ytd-labs-edit-renderer",function(){if(U6T!==void 0)return U6T;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return U6T=e},{mode:1});var vJT;var Gz=function(){var e=_.V.apply(this,arguments)||this;e.dark=!1;e.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";e.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(Gz,_.V);Gz.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Gz.prototype.ready=function(){var e=document.documentElement.hasAttribute("dark");this.setBackgroundImage(e);this.dark=e};
Gz.prototype.onDarkModeToggledAction=function(e){this.setBackgroundImage(e);this.dark=e};
Gz.prototype.setBackgroundImage=function(e){_.T8(this.hostElement,{"--yt-labs-header-background":"url("+(e?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Gz.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Gz.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Gz.prototype,"dark",void 0);
_.d([_.SL({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Gz);
_.u(Gz,"ytd-labs-header-renderer",function(){if(vJT!==void 0)return vJT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vJT=e},{mode:1});var IKa;var Yx=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return e};
_.U(Yx,_.V);Yx.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"}}}}}};
Yx.prototype.onYtToggleButton=function(e){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",e.detail.toggled)};
Yx.prototype.onManageLabsState=function(e){if(e=_.r(e,oJg))e.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?e.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&e.labsItemId===this.data.labsItemId&&(e.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.eA(this.hostElement,"yt-check-labs-opted-in-state").some(function(z){return z})&&this.data.confirmationDialogCommand?_.KK(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.lh().resolve(_.ms).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&e.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.lh().resolve(_.ms).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Yx.prototype.onCheckLabsOptedInState=function(){var e=this.get("data.primaryButton.toggleButtonRenderer");return e?e.isToggled:!1};
_.lB.Object.defineProperties(Yx.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Yx.prototype.onYtToggleButton=Yx.prototype.onYtToggleButton;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Yx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Yx.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Yx.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Yx.prototype,"itemStyle",null);_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Yx.prototype,"onYtToggleButton",null);_.d([_.SL({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Yx);
_.u(Yx,"ytd-labs-item-renderer",function(){if(IKa!==void 0)return IKa;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return IKa=e},{mode:1});var Wpl;var P0Y;var Ro2=function(){return _.V.apply(this,arguments)||this};
_.U(Ro2,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ro2.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ro2.prototype,"data",void 0);_.d([_.SL({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Ro2);
_.u(Ro2,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(P0Y!==void 0)return P0Y;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return P0Y=e},{mode:1});var LpL;var be=function(){return _.V.apply(this,arguments)||this};
_.U(be,_.V);be.prototype.observeSuperchatChip=function(){if(this.data){var e={"--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)};_.T8(this.hostElement,e)}};
be.prototype.colorFromDecimal=function(e){return _.FN(Number(e||0))};
be.prototype.observeSuperchatChip=be.prototype.observeSuperchatChip;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],be.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],be.prototype,"observeSuperchatChip",null);_.d([_.SL({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],be);
_.u(be,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(LpL!==void 0)return LpL;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return LpL=e},{mode:1});var Xw=function(){return _.V.apply(this,arguments)||this};
_.U(Xw,_.V);Xw.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"}}}};
_.lB.Object.defineProperties(Xw.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.a0),_.B("design:type",Object)],Xw.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xw.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Xw.prototype,"hideMessageBlock",null);
_.d([_.SL({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Xw);
_.u(Xw,"ytd-live-chat-history-entry-renderer",function(){if(Wpl!==void 0)return Wpl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Wpl=e},{mode:1});var hoy;var Ojt=function(){return _.V.apply(this,arguments)||this};
_.U(Ojt,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ojt.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ojt.prototype,"data",void 0);_.d([_.SL({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Ojt);
_.u(Ojt,"ytd-channel-options-renderer",function(){if(hoy!==void 0)return hoy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return hoy=e},{mode:1});var EJj;var JZ=function(){return _.V.apply(this,arguments)||this};
_.U(JZ,_.V);JZ.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],JZ.prototype,"data",void 0);_.d([_.SL({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],JZ);
_.u(JZ,"ytd-settings-email-item-renderer",function(){if(EJj!==void 0)return EJj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return EJj=e},{mode:1});var Fp2;var kx=function(){return _.V.apply(this,arguments)||this};
_.U(kx,_.V);kx.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"}}}};
kx.prototype.getExpansionIcon=function(e){return e?"COLLAPSE":"EXPAND"};
kx.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.lB.Object.defineProperties(kx.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kx.prototype,"data",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],kx.prototype,"expanded",void 0);_.d([_.P("expanded"),_.B("design:type",String),_.B("design:paramtypes",[])],kx.prototype,"emailListExpanded",null);
_.d([_.nP("#options"),_.B("design:type",Object)],kx.prototype,"options",void 0);_.d([_.SL({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],kx);
_.u(kx,"ytd-settings-email-list-renderer",function(){if(Fp2!==void 0)return Fp2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Fp2=e},{mode:1});var Val;var qP=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return e};
_.U(qP,_.V);qP.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"}}}};
qP.prototype.handleSignalActionSubmitForm=function(){var e,z=(e=this.formRenderer)==null?void 0:e.getForm();z&&this.data.serviceEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},z,{element:this.hostElement})})};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],qP.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qP.prototype,"data",void 0);_.d([_.nP("yt-form-renderer"),_.B("design:type",Object)],qP.prototype,"formRenderer",void 0);
_.d([_.SL({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],qP);
_.u(qP,"ytd-settings-gaia-link-renderer",function(){if(Val!==void 0)return Val;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Val=e},{mode:1});var fKg;_.KU(_.Ub,"basic-content-view-model",{props:{data:_.z9,className:_.z9}});var xx=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return e};
_.U(xx,_.V);xx.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.qxY()&&this.set("data.hidden",!1)};
xx.prototype.onSwitchReady=function(){var e=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.M("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.k8a().then(function(z){z&&(Notification.permission==="default"?e.set("data.hidden",!1):Notification.permission==="granted"&&_.wV("NotificationsDisabled").then(function(C){C||_.eA(e.hostElement,"yt-toggle-settings-switch",[e.data.id,!C]);e.set("data.hidden",!1)}).catch(function(){}))})})};
xx.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
xx.prototype.handleUpdateOptionsCommand=function(e){(e=_.r(e,_.UVh))&&this.data&&this.data.id===e.id&&(this.set("data.hidden",e.hidden),e.text!==void 0&&this.set("data.text",e.text),e.clearOptions&&this.set("data.options",[]))};
xx.prototype.onSwitchReady=xx.prototype.onSwitchReady;xx.prototype.dataChanged=xx.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],xx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],xx.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xx.prototype,"data",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xx.prototype,"dataChanged",null);_.d([_.Qi("yt-settings-switch-ready"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xx.prototype,"onSwitchReady",null);_.d([_.SL({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],xx);
_.u(xx,"ytd-settings-options-renderer",function(){if(fKg!==void 0)return fKg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return fKg=e},{mode:1});var SHg;var Tz=function(){return _.V.apply(this,arguments)||this};
_.U(Tz,_.V);Tz.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Tz.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Tz.prototype.onYtExpanderMoreTapped=Tz.prototype.onYtExpanderMoreTapped;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Tz.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Tz.prototype,"data",void 0);
_.d([_.Qi("yt-expander-more-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tz.prototype,"onYtExpanderMoreTapped",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Tz);
_.u(Tz,"ytd-product-details-description-renderer",function(){if(SHg!==void 0)return SHg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return SHg=e},{mode:1});var uyg;var $x=function(){var e=_.V.apply(this,arguments)||this;e.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";e.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";e.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";e.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return e};
_.U($x,_.V);$x.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.lB.Object.defineProperties($x.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:(z=e.offerData)==null?void 0:z.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?void 0:e.purchaseButtonRenderers)!==void 0&&((z=this.data)==null?void 0:z.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.formattedFromMerchantText)&&(!((z=this.data)==null||!z.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],$x.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$x.prototype,"data",void 0);
_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],$x.prototype,"shippingIcon",void 0);_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],$x.prototype,"shippingAddressIcon",void 0);_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],$x.prototype,"googleGuaranteeIcon",void 0);
_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?String:void 0}),_.B("design:type",Object)],$x.prototype,"returnPolicyIcon",void 0);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$x.prototype,"showAdditionalFees",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$x.prototype,"showMultiPurchaseButtons",null);
_.d([_.P("data","showMultiPurchaseButtons"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],$x.prototype,"showPurchaseData",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],$x);
_.u($x,"ytd-product-details-hero-offer-renderer",function(){if(uyg!==void 0)return uyg;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return uyg=e},{mode:1});var d6w;var D6l;var le=function(){return _.V.apply(this,arguments)||this};
_.U(le,_.V);_.Y=le.prototype;_.Y.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.Y.onKeyDown=function(e){e=e.keyCode;e!==13&&e!==32||this.handleSelection()};
_.Y.onMouseEnterImage=function(){var e;((e=this.data)==null?void 0:e.thumbnailDetails)!==void 0&&_.zj(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.Y.onMouseLeaveImage=function(){_.zj(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.Y.handleSelection=function(){this.data&&_.pi(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.lB.Object.defineProperties(le.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.isSelected)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],le.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],le.prototype,"isSelected",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],le);
_.u(le,"ytd-product-details-thumbnail-renderer",function(){if(D6l!==void 0)return D6l;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return D6l=e},{mode:1});var Q7=function(){var e=_.V.apply(this,arguments)||this;var z={};e.actionMap=(z["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",z["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",z);e.selectedThumbnailIndex=0;e.selectItem=function(C){C.target.onKeyDown(C)};
return e};
_.U(Q7,_.V);_.Y=Q7.prototype;_.Y.handlePreviewImageSelect=function(e){this.hoverThumbnail=e};
_.Y.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.Y.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.Y.onThumbnailSelected=function(e,z){this.selectedThumbnailIndex=z};
_.Y.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.Y.updateOffset=function(){var e=_.XC(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-e));this.ytdHorizontalListBehavior.reposition_()};
_.lB.Object.defineProperties(Q7.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.imageRenderer){var z,C;return((z=this.data)==null?void 0:(C=z.imageRenderer)==null?void 0:C.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var e;if((e=this.data)==null?0:e.imageRenderer){var z;return(z=_.r(this.data.imageRenderer[this.selectedThumbnailIndex],bjw))==null?void 0:z.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var e=this,z,C,w,K=(w=(z=this.data)==null?void 0:(C=z.imageRenderer)==null?void 0:C.map(function(G,X){return{productDetailsThumbnailRenderer:Object.assign({},_.r(G,bjw),{index:X,isSelected:X===e.selectedThumbnailIndex})}}))!=null?w:[];
return Object.assign({},this.data,{imageRenderer:K})}}});
Q7.prototype.updateOffset=Q7.prototype.updateOffset;Q7.prototype.dataChanged=Q7.prototype.dataChanged;Q7.prototype.onThumbnailSelected=Q7.prototype.onThumbnailSelected;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.u2.YtdHorizontalListBehavior),_.B("design:type",Object)],Q7.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Q7.prototype,"componentBehavior",void 0);_.d([_.W([_.ch.YtActionHandlerBehavior]),_.B("design:type",Object)],Q7.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Q7.prototype,"data",void 0);_.d([_.F({value:"$.items.children"}),_.B("design:type",String)],Q7.prototype,"itemsPath",void 0);_.d([_.F({value:3}),_.B("design:type",Number)],Q7.prototype,"initialCount",void 0);
_.d([_.nP("#items"),_.B("design:type",Object)],Q7.prototype,"items",void 0);_.d([_.F(),_.B("design:type",Object)],Q7.prototype,"selectedThumbnailIndex",void 0);_.d([_.F(),_.B("design:type",Object)],Q7.prototype,"hoverThumbnail",void 0);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Q7.prototype,"showThumbnails",null);
_.d([_.Qi("ytd-product-details-thumbnail-renderer-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Number]),_.B("design:returntype")],Q7.prototype,"onThumbnailSelected",null);_.d([_.P("data","selectedThumbnailIndex","hoverThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q7.prototype,"thumbnailDetails",null);_.d([_.P("data","selectedThumbnailIndex"),_.B("design:type",Object),_.B("design:paramtypes",[])],Q7.prototype,"populatedData",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q7.prototype,"dataChanged",null);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Q7.prototype,"updateOffset",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Q7);
_.u(Q7,"ytd-product-details-image-carousel-renderer",function(){if(d6w!==void 0)return d6w;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return d6w=e},{mode:_.bA("kevlar_poly_si_batch_j079")?1:2});var ijT;var m4=function(){return _.V.apply(this,arguments)||this};
_.U(m4,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],m4.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],m4.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],m4);
_.u(m4,"ytd-product-details-offer-renderer",function(){if(ijT!==void 0)return ijT;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ijT=e},{mode:1});var NpL;var aA=function(){var e=_.V.apply(this,arguments)||this;e.isOffersHidden=!0;return e};
_.U(aA,_.V);aA.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var e,z=_.r((e=this.data)==null?void 0:e.viewOffersButton,_.a2);z&&this.ytRendererBehavior.logExplicitClick(z)};
aA.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.lB.Object.defineProperties(aA.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w;return(C=_.r((e=this.data)==null?void 0:(z=e.offers)==null?void 0:z[0],qHy))==null?void 0:(w=C.offerData)==null?void 0:w.vendorLogoUrl}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],aA.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],aA.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],aA.prototype,"isOffersHidden",void 0);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],aA.prototype,"firstOfferVendorLogoUrl",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],aA);
_.u(aA,"ytd-product-details-offers-container-renderer",function(){if(NpL!==void 0)return NpL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return NpL=e},{mode:1});var sIj;var BpY;var nF=function(){return _.V.apply(this,arguments)||this};
_.U(nF,_.V);nF.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
nF.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.zj(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
nF.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.zj(this,"ytd-product-details-variant-image-unselect")};
_.lB.Object.defineProperties(nF.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 e;return((e=this.data)==null?void 0:e.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?void 0:e.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((z=this.data)==null?void 0:z.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((C=this.data)==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var e;if(((e=this.data)==null?void 0:e.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var e,z;return this.isUnavailable?(e=this.data)==null?void 0:e.variantOptionUnavailableAccessibilityLabel:(z=this.data)==null?void 0:z.variantOptionAccessibilityLabel}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],nF.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],nF.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],nF.prototype,"displayType",void 0);
_.d([_.P("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],nF.prototype,"isImageButton",null);_.d([_.P("displayType","data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],nF.prototype,"isPillButton",null);_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],nF.prototype,"isActive",null);
_.d([_.P("data"),_.F({reflectToAttribute:!0}),_.B("design:type",Boolean),_.B("design:paramtypes",[])],nF.prototype,"isUnavailable",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],nF.prototype,"thumbnailDetails",null);_.d([_.P("isUnavailable","data"),_.B("design:type",Object),_.B("design:paramtypes",[])],nF.prototype,"accessibilityLabel",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],nF);
_.u(nF,"ytd-product-details-variant-option-renderer",function(){if(BpY!==void 0)return BpY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return BpY=e},{mode:1});var taT;var MP=function(){var e=_.V.apply(this,arguments)||this;e.variantsExpanded=!1;e.hideShowMoreLessVariantButton=!0;e.initialized=!1;e.computeVariantsDebouncer=null;e.computeVariants=function(z){z=z===void 0?!1:z;e.variantsExpanded||e.showOptions()||!z||(e.variantsExpanded=!0);if(e.variantsExpanded){z=_.b(e.items.children);for(var C=z.next();!C.done;C=z.next())C.value.hidden=!1}e.initialized=!0};
return e};
_.U(MP,_.V);_.Y=MP.prototype;_.Y.ready=function(){var e=this;setTimeout(function(){e.computeVariants(!0)})};
_.Y.showOptions=function(){for(var e=_.b(this.items.children),z=e.next();!z.done;z=e.next())z.value.hidden=!0;var C=this.container.getBoundingClientRect().width,w=0,K=e=0;z=!1;for(var G=_.b(this.items.children),X=G.next();!X.done;X=G.next()){X=X.value;X.hidden=!1;var J=X.getBoundingClientRect().width;if(w+J<C)w+=J;else if(++K<2)w=J;else break;e+=1;X.hasAttribute("is-active")&&(z=!0)}for(C=e;C<this.items.children.length;C++)this.items.children[C].hidden=!0;this.hideShowMoreLessVariantButton=e===this.items.children.length;
return z};
_.Y.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.OJ(this.computeVariantsDebouncer,_.aJ.after(100),this.computeVariants)};
_.Y.onShowMoreLessVariantsButtonClick=function(){var e;(e=this.data)!=null&&e.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.Y.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.lB.Object.defineProperties(MP.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.variantOptionRenderers)==null?void 0:z.find(function(G){return _.r(G,JGl).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),w,K;
return(K=(w=_.r(C,JGl))==null?void 0:w.name)!=null?K:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.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"}}}});
MP.prototype.debouncedComputeVariants=MP.prototype.debouncedComputeVariants;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],MP.prototype,"componentBehavior",void 0);_.d([_.W(_.oY),_.B("design:type",Object)],MP.prototype,"ironResizableBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],MP.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],MP.prototype,"variantsExpanded",void 0);_.d([_.F(),_.B("design:type",Object)],MP.prototype,"hideShowMoreLessVariantButton",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],MP.prototype,"initialized",void 0);_.d([_.nP("#items"),_.B("design:type",HTMLDivElement)],MP.prototype,"items",void 0);_.d([_.nP("#container"),_.B("design:type",HTMLDivElement)],MP.prototype,"container",void 0);
_.d([_.nP("#more-variants-button"),_.B("design:type",HTMLElement)],MP.prototype,"moreVariantsButton",void 0);_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],MP.prototype,"selectedOptionName",null);_.d([_.mi("data","variantsExpanded"),_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],MP.prototype,"debouncedComputeVariants",null);
_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],MP.prototype,"displayType",null);_.d([_.P("displayType"),_.B("design:type",Object),_.B("design:paramtypes",[])],MP.prototype,"variantItemsClassname",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],MP);
_.u(MP,"ytd-product-details-variant-renderer",function(){if(taT!==void 0)return taT;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return taT=e},{mode:1});var rc=function(){return _.V.apply(this,arguments)||this};
_.U(rc,_.V);
rc.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"}}}};
_.lB.Object.defineProperties(rc.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(z=_.r((e=this.data)==null?void 0:e.offersContainerRenderer,ktg))==null?void 0:z.offers;return C!==void 0&&(C==null?void 0:C.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 e,z,C;return((C=(e=this.data)==null?void 0:(z=e.variants)==null?void 0:z.map(function(w){var K,G;w=(G=(K=_.r(w,XC2))==null?void 0:K.variantOptionRenderers)==null?void 0:G.find(function(J){var q;return((q=_.r(J,JGl))==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var X;return(X=_.r(w,JGl))==null?void 0:X.name}).filter(function(w){return typeof w==="string"}))!=null?C:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var e,z,C,w=(z=_.r((e=this.data)==null?void 0:e.shoppingFlaggingRenderer,x6C))==null?void 0:(C=z.reportButton)==null?void 0:C.buttonRenderer;if(w)return{text:w.text,command:w.command,icon:{iconType:"FLAG"},accessibilityData:w.accessibilityData,trackingParams:w.trackingParams,loggingDirectives:w.loggingDirectives}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],rc.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rc.prototype,"data",void 0);_.d([_.nP("#image-carousel-renderer"),_.B("design:type",Object)],rc.prototype,"imageCarouselRenderer",void 0);
_.d([_.nP("#hero-offer-renderer"),_.B("design:type",Object)],rc.prototype,"productDetailsHeroOfferRenderer",void 0);_.d([_.nP("#variants"),_.B("design:type",Object)],rc.prototype,"productDetailsVariantRenderer",void 0);_.d([_.nP("#offers"),_.B("design:type",Object)],rc.prototype,"productDetailsOffersContainerRenderer",void 0);_.d([_.nP("#description-renderer"),_.B("design:type",Object)],rc.prototype,"productDetailsDescriptionRenderer",void 0);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rc.prototype,"showPurchaseData",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rc.prototype,"showHeroOfferRenderer",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rc.prototype,"showBrandText",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rc.prototype,"showOffers",null);
_.d([_.P("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rc.prototype,"showBuySeparator",null);_.d([_.P("showOffers","showPurchaseData"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],rc.prototype,"showBuyCard",null);_.d([_.P("data"),_.B("design:type",String),_.B("design:paramtypes",[])],rc.prototype,"selectedVariantsText",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],rc.prototype,"shoppingReportingButtonData",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],rc);
_.u(rc,"ytd-product-details-renderer",function(){if(sIj!==void 0)return sIj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return sIj=e},{mode:1});var gJy;var jIL;var yGT;var H4=function(){return _.V.apply(this,arguments)||this};
_.U(H4,_.V);H4.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.lB.Object.defineProperties(H4.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],H4.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],H4.prototype,"formattedAmount",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],H4.prototype,"ariaLabel",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],H4.prototype,"vcBalanceWidgetStyle",null);_.d([_.fP({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],H4);
_.u(H4,"yt-vc-balance-renderer",function(){if(yGT===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;jIL===void 0&&(jIL=document.createElement("template"));var w=jIL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);yGT=e}e=yGT;return e},{mode:2});_.hq("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var UF=function(){return _.V.apply(this,arguments)||this};
_.U(UF,_.V);_.lB.Object.defineProperties(UF.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:""}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],UF.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],UF.prototype,"data",void 0);_.d([_.F({selectorArgs:["data.vcBalanceEntityKey"],selector:function(e,z){return _.xz(e.entities,"vcBalanceEntity",z)}}),
_.B("design:type",Object)],UF.prototype,"vcBalanceEntity",void 0);_.d([_.P("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],UF.prototype,"formattedAmount",null);_.d([_.P("vcBalanceEntity"),_.B("design:type",String),_.B("design:paramtypes",[])],UF.prototype,"vcBalanceAriaLabel",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],UF);
_.u(UF,"ytd-vc-balance-renderer",function(){if(gJy!==void 0)return gJy;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return gJy=e},{mode:1});var cGj;var v4=function(){var e=_.V.apply(this,arguments)||this;e.rotation=0;e.isReloading=!1;return e};
_.U(v4,_.V);v4.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
v4.prototype.reset=function(){this.hostElement.style.opacity=""};
v4.prototype.close=function(){var e=this;return _.k(function(z){if(z.nextAddress==1)return z.yield(e.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);e.hostElement.style.opacity="0";_.E_(z)})};
v4.prototype.rotationChanged=v4.prototype.rotationChanged;_.d([_.F(),_.B("design:type",Object)],v4.prototype,"rotation",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],v4.prototype,"isReloading",void 0);_.d([_.nP("#icon"),_.B("design:type",HTMLElement)],v4.prototype,"icon",void 0);_.d([_.mi("rotation"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],v4.prototype,"rotationChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-refresh"})],v4);
_.u(v4,"ytd-refresh",function(){if(cGj!==void 0)return cGj;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return cGj=e},{mode:1});var AG2;var IA=function(){var e=_.V.apply(this,arguments)||this;e.useRaf=!_.M("web_use_raf_app_header_layout_killswitch");return e};
_.U(IA,_.V);IA.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"}}}};
IA.prototype.dataChanged=function(){if(this.data){var e=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var z=_.oo(this.data.banner.thumbnails,this.hostElement.clientWidth);z&&(z.indexOf("//")===0&&(z="https:"+z),this.hasBannerArt=!0,_.T8(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+z+")"}))}this.hasBannerArt!==e&&_.XC(this.hostElement).querySelector("#header").fire("iron-resize")}};
IA.prototype.updateSelectedFromBinding=function(e){this.selected=e.detail.value};
IA.prototype.dataChanged=IA.prototype.dataChanged;_.d([_.W(lKw),_.B("design:type",Object)],IA.prototype,"ytdTabbedHeaderBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.MC),_.B("design:type",Object)],IA.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],IA.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],IA.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],IA.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],IA.prototype,"selected",void 0);_.d([_.F(),_.B("design:type",Boolean)],IA.prototype,"active",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],IA.prototype,"hasBannerArt",void 0);_.d([_.F(),_.B("design:type",Object)],IA.prototype,"useRaf",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IA.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],IA);
_.u(IA,"ytd-interactive-tabbed-header-renderer",function(){if(AG2!==void 0)return AG2;var e=document.createElement("template");_.v(e,'\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 use-raf="[[useRaf]]" 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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return AG2=e},{mode:1});var Zj2;var W4=function(){return _.V.apply(this,arguments)||this};
_.U(W4,_.V);W4.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
W4.prototype.computeActionsAlignment=function(e){return(e==null?void 0:e.actionsAlignment)||""};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],W4.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.B("design:type",String)],W4.prototype,"actionsAlignment",void 0);
_.d([_.SL({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],W4);
_.u(W4,"ytd-page-footer-renderer",function(){if(Zj2!==void 0)return Zj2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Zj2=e},{mode:1});var pCy;var eGl;var P4=function(){var e=_.V.apply(this,arguments)||this;e.isEditing=!1;e.useSlot=!1;e.isMultiline=!1;return e};
_.U(P4,_.V);_.Y=P4.prototype;_.Y.onKeydown=function(e){if(e.keyCode===13&&!this.isMultiline)this.onSave();else if(e.keyCode===27)this.onCancel()};
_.Y.computeComponentStyle=function(e){return(e==null?0:e.style)?e.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.Y.computeisMultiline=function(e){if(this.multilineOverride!==void 0)return this.multilineOverride;var z,C;return!!(e==null?0:(z=e.formField)==null?0:(C=z.textInputFormFieldRenderer)==null?0:C.isMultiline)};
_.Y.computeTextDisplayed=function(e,z){if(e)return e;if(z)return z};
_.Y.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.Y.onSave=function(){if(this.textForm.validate()){this.textForm.save();var e=this.textForm.value;if(e)this.set("data.textDisplayed",_.AO(e));else{var z;((z=this.data)==null?0:z.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.R6("inline-form-changed",this.data));this.isEditing=!1}};
_.Y.onCancel=function(){var e=_.Zd(this.data.textDisplayed);e===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(e);this.isEditing=!1};
P4.prototype.onKeydown=P4.prototype.onKeydown;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],P4.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],P4.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],P4.prototype,"isEditing",void 0);_.d([_.F(),_.B("design:type",Object)],P4.prototype,"useSlot",void 0);_.d([_.F(),_.B("design:type",Boolean)],P4.prototype,"multilineOverride",void 0);_.d([_.F(),_.B("design:type",Boolean)],P4.prototype,"enableOverlayTheme",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.B("design:type",String)],P4.prototype,"componentStyle",void 0);
_.d([_.F({computed:"computeisMultiline(data)"}),_.B("design:type",Object)],P4.prototype,"isMultiline",void 0);_.d([_.nP("#text-form"),_.B("design:type",Object)],P4.prototype,"textForm",void 0);_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],P4.prototype,"onKeydown",null);_.d([_.SL({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],P4);
_.u(P4,"ytd-inline-form-renderer",function(){if(eGl!==void 0)return eGl;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return eGl=e},{mode:1});var zGL;var RA=function(){var e=_.V.apply(this,arguments)||this;e.previousSelectValue=void 0;e.selectedItemMessage=void 0;return e};
_.U(RA,_.V);RA.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
RA.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var e,z,C,w,K=(e=this.data)==null?void 0:(z=e.dropdown)==null?void 0:(C=z.dropdownRenderer)==null?void 0:(w=C.entries)==null?void 0:w.map(function(J){return J.privacyDropdownItemRenderer});
e=_.b(K!=null?K:[]);for(z=e.next();!z.done;z=e.next())if((z=z.value)&&z.int32Value===this.selectedValue){this.selectedItemMessage=z.itemMessage;break}}else this.selectedItemMessage=void 0;var G;(G=this.onValueChanged)==null||G.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var X;(X=this.data)!=null&&X.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
RA.prototype.onValueChangedForSelectedValue=function(e){this.selectedValue=e.detail.value};
RA.prototype.selectedValueChanged=RA.prototype.selectedValueChanged;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],RA.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],RA.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],RA.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],RA.prototype,"theme",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Number)],RA.prototype,"selectedValue",void 0);_.d([_.F(),_.B("design:type",Function)],RA.prototype,"onValueChanged",void 0);
_.d([_.Ux("selectedValue"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RA.prototype,"selectedValueChanged",null);_.d([_.SL({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],RA);
_.u(RA,"ytd-dropdown-form-field-renderer",function(){if(zGL!==void 0)return zGL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zGL=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var Ciy;var LF=function(){return _.V.apply(this,arguments)||this};
_.U(LF,_.V);_.lB.Object.defineProperties(LF.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var e=[],z=_.b(this.data||[]),C=z.next();!C.done;C=z.next())(C=_.r(C.value,Tpy))&&e.push(C);return e}}});
_.d([_.F(),_.B("design:type",Array)],LF.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],LF.prototype,"byline",null);_.d([_.SL({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],LF);
_.u(LF,"ytd-playlist-byline-renderer",function(){if(Ciy!==void 0)return Ciy;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Ciy=e},{mode:1});var wRj;var hZ=function(){var e=_.V.apply(this,arguments)||this;e.rtlBullet=_.M("web_playlist_stats_rtl_bullet_icon_killswitch");e.modern=_.M("web_modern_buttons");e.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return e};
_.U(hZ,_.V);_.Y=hZ.prototype;_.Y.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"}}}}};
_.Y.attached=function(){};
_.Y.computeIsCustomThumbnail=function(e){return e?!!e.playlistCustomThumbnailRenderer:!1};
_.Y.onYtNavigate=function(e,z){if(z&&z.actions&&z.actions.indexOf("shuffle")>-1){e=_.lh().resolve(_.Us);var C=z.tempData||{};C.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);z.tempData=C;e.isShuffleNextPlaylist=!0}};
_.Y.onUpdatePlaylistAction=function(e){var z;e=(z=_.r(e,_.eLs))==null?void 0:z.updatedRenderer;if(z=_.r(e,YHg))this.data=z};
_.Y.computeStyleType=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeThumbnailWidth=function(e){return e==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.Y.computeHideThumbnailAria=function(e){if(e==null?0:e.thumbnailOverlays)for(var z=0;z<e.thumbnailOverlays.length;z++){var C=void 0;if((C=e.thumbnailOverlays[z])==null?0:C.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
hZ.prototype.onYtNavigate=hZ.prototype.onYtNavigate;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],hZ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],hZ.prototype,"ytComponentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],hZ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],hZ.prototype,"rtlBullet",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.B("design:type",String)],hZ.prototype,"styleType",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.B("design:type",Number)],hZ.prototype,"thumbnailWidth",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],hZ.prototype,"modern",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.B("design:type",Boolean)],hZ.prototype,"isCustomThumbnail",void 0);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],hZ.prototype,"onYtNavigate",null);_.d([_.SL({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],hZ);
_.u(hZ,"ytd-playlist-sidebar-primary-info-renderer",function(){if(wRj!==void 0)return wRj;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return wRj=e},{mode:1});var KMC;var OF=function(){return _.V.apply(this,arguments)||this};
_.U(OF,_.V);OF.prototype.computeOwnerVisibility=function(e){return!(!e.videoOwner&&!e.button)};
OF.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],OF.prototype,"data",void 0);_.d([_.SL({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],OF);
_.u(OF,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(KMC!==void 0)return KMC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return KMC=e},{mode:1});var oil;var EF=function(){var e=_.V.apply(this,arguments)||this;e.expanded=!1;e.isCompact=!1;return e};
_.U(EF,_.V);_.Y=EF.prototype;_.Y.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.Y.dataChanged=function(){this.data&&_.ko(_.XC(this.text),_.Gma(_.XVT,_.Zd(this.data.text||null)))};
_.Y.computeAutoScrollEnabled=function(e,z){return e&&!z};
_.Y.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.Y.toggleOnTap=function(){this.expanded=!this.expanded};
EF.prototype.expandedChanged=EF.prototype.expandedChanged;EF.prototype.dataChanged=EF.prototype.dataChanged;_.d([_.W(_.pVj),_.B("design:type",Object)],EF.prototype,"ytdAutoScrollBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],EF.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],EF.prototype,"expanded",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],EF.prototype,"isCompact",void 0);_.d([_.F({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.B("design:type",Boolean)],EF.prototype,"autoScrollEnabled",void 0);_.d([_.nP("#text"),_.B("design:type",Object)],EF.prototype,"text",void 0);_.d([_.nP("#expander-icon"),_.B("design:type",Object)],EF.prototype,"expanderIcon",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EF.prototype,"dataChanged",null);_.d([_.mi("expanded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EF.prototype,"expandedChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],EF);
_.u(EF,"ytd-channel-legal-info-renderer",function(){if(oil!==void 0)return oil;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return oil=e},{mode:1});var GRT;var YgL=_.kk("DOWNLOAD",{},"Download"),bdL=_.kk("DOWNLOADING",{},"Downloading"),XR2=_.kk("DOWNLOADED",{},"Downloaded"),Fw=function(){var e=_.V.apply(this,arguments)||this;e.downloadProgress=0;e.isDownloadComplete=!1;e.transferState="TRANSFER_STATE_UNKNOWN";return e};
_.U(Fw,_.V);_.Y=Fw.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.Y.dataChanged=function(){var e;(e=this.data)!=null&&e.tooltip||(e=_.Dd(_.eB().getState(),this.playlistId),this.updateButtonState(e))};
_.Y.computePlaylistId=function(e){return e};
_.Y.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.Y.updateButtonState=function(e){if(this.data&&(this.data.tooltip!==bdL||!_.HH(e))){this.isDownloadComplete=!1;switch(e){case "TRANSFER_STATE_UNKNOWN":e=YgL;var z="OFFLINE_DOWNLOAD";var C="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":e=XR2;z="OFFLINE_PIN";C="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":e=bdL;z="OFFLINE_DOWNLOADING_ZERO";C="ACTION_REMOVE_WITH_PROMPT";
break;default:e=YgL,z="OFFLINE_DOWNLOAD",C="ACTION_ADD"}var w=Object.assign({},this.data);w.tooltip=e;w.accessibilityData={accessibilityData:{label:e}};w.icon={iconType:z};w.size="SIZE_DEFAULT";_.r(w.command,_.Uz)&&(_.r(w.command,_.Uz).action=C);this.set("data",w)}};
_.Y.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var e="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?e="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?e="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?e="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?e="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?e="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(e="OFFLINE_PIN",this.isDownloadComplete=!0);var z;e!==((z=this.data.icon)==null?void 0:z.iconType)&&(z=Object.assign({},this.data),z.tooltip=bdL,z.accessibilityData={accessibilityData:{label:bdL}},z.icon={iconType:e},_.r(z.command,_.Uz)&&(_.r(z.command,_.Uz).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",z))}};
Fw.prototype.updateProgress=Fw.prototype.updateProgress;Fw.prototype.onTransferStateChanged=Fw.prototype.onTransferStateChanged;Fw.prototype.dataChanged=Fw.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Fw.prototype,"ytdReduxBehavior",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Fw.prototype,"forceIconButton",void 0);
_.d([_.F({value:!0}),_.B("design:type",Boolean)],Fw.prototype,"forceIconOnly",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Fw.prototype,"overrides",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Fw.prototype,"buttonTooltipPosition",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Fw.prototype,"styleActionButton",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Fw.prototype,"disableTextTransform",void 0);
_.d([_.F({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.B("design:type",String)],Fw.prototype,"playlistId",void 0);_.d([_.F(),_.B("design:type",Object)],Fw.prototype,"data",void 0);_.d([_.F({selector:_.yY8,selectorArgs:["playlistId"]}),_.B("design:type",Object)],Fw.prototype,"downloadProgress",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Fw.prototype,"isDownloadComplete",void 0);
_.d([_.F({selector:_.Dd,selectorArgs:["playlistId"]}),_.B("design:type",String)],Fw.prototype,"transferState",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],Fw.prototype,"showTooltips",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],Fw.prototype,"sendCommandWhenDisabled",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Fw.prototype,"disabled",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fw.prototype,"dataChanged",null);_.d([_.Ux("transferState"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fw.prototype,"onTransferStateChanged",null);_.d([_.Ux("downloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Fw.prototype,"updateProgress",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Fw);
_.u(Fw,"ytd-download-playlist-button-renderer",function(){if(GRT!==void 0)return GRT;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return GRT=e},{mode:1});var JRy;_.KU(_.E8X,"thumbnail-overlay-button-view-model",{props:{data:_.vh,lockupExperiments:_.vh}});var V7=function(){var e=_.V.apply(this,arguments)||this;e.isSquare=!1;e.isVertical=!1;return e};
_.U(V7,_.V);V7.prototype.computeIsSquare=function(e){return e!=null&&e.thumbnail?ihT(e.thumbnail)==="SQUARE":!1};
V7.prototype.computeIsVertical=function(e){return e!=null&&e.thumbnail?ihT(e.thumbnail)==="VERTICAL":!1};
V7.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.B("design:type",Object)],V7.prototype,"isSquare",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.B("design:type",Object)],V7.prototype,"isVertical",void 0);
_.d([_.F(),_.B("design:type",Object)],V7.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],V7);
_.u(V7,"ytd-hero-playlist-thumbnail-renderer",function(){if(JRy!==void 0)return JRy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return JRy=e},{mode:1});var fF=function(){var e=_.V.apply(this,arguments)||this;e.isDarkTheme=!1;e.isUltraWide=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return e};
_.U(fF,_.V);_.Y=fF.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.lh();var e;(e=_.lh().resolve(_.$B(_.k_)))!=null&&(e.headerElement=this.hostElement)};
_.Y.detached=function(){var e;(e=_.lh().resolve(_.$B(_.k_)))!=null&&(e.headerElement=void 0)};
_.Y.onUpdateHeader=function(e){(e=e.detail)&&this.set("data",e)};
_.Y.computeTextDisplayed=function(e){if(e)return e.textDisplayed?e.textDisplayed:e.placeholder};
_.Y.gradientColorToLinearGradientStop=function(e){var z=this.isDarkTheme?e.darkThemeColor:e.lightThemeColor;return z?_.FN(z)+" "+((e==null?void 0:e.startLocation)||0)*100+"%":"transparent"};
_.Y.onWindowResize=function(){var e;((e=this.data)==null?0:e.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.Y.onIronResize=function(e){this.isUltraWide=!e.detail.value};
_.Y.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.onUpdatePlaylistName=function(e){var z=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},e.detail.value));_.T0(this,function(){var C;(C=z.editableTitle)==null||C.resize()})};
_.Y.onUpdatePlaylistDescription=function(e){var z=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},e.detail.value));_.T0(this,function(){var C;(C=z.editableDescriptionInlineExpander)==null||C.resize()})};
_.Y.getCinematicData=function(e){return _.r(e==null?void 0:e.cinematicContainer,_.pL)};
_.lB.Object.defineProperties(fF.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 e,z=(e=this.getCinematicData(this.data))==null?void 0:e.config;return(e=this.isDarkTheme?z==null?void 0:z.darkThemeBackgroundColor:z==null?void 0:z.lightThemeBackgroundColor)?"background-color:"+_.EG(e)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var e;return _.r((e=this.data)==null?void 0:e.descriptionForm,Gtg)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var e=this,z,C,w;return"background:linear-gradient(to bottom, "+(((w=(z=this.getCinematicData(this.data))==null?void 0:(C=z.gradientColorConfig)==null?void 0:C.map(function(K){return e.gradientColorToLinearGradientStop(K)}))==null?void 0:w.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var e;return _.Zd((e=this.data)==null?void 0:e.descriptionTapText)}}});
fF.prototype.onUpdateHeader=fF.prototype.onUpdateHeader;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],fF.prototype,"actionHandlerBehavior",void 0);_.d([_.nP("#description-inline-expander"),_.B("design:type",Object)],fF.prototype,"descriptionInlineExpander",void 0);
_.d([_.nP("#editable-description-inline-expander"),_.B("design:type",Object)],fF.prototype,"editableDescriptionInlineExpander",void 0);_.d([_.F(),_.B("design:type",Object)],fF.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],fF.prototype,"isUltraWide",void 0);_.d([_.nP("#editable-title-display"),_.B("design:type",Object)],fF.prototype,"editableTitle",void 0);_.d([_.P("isUltraWide"),_.B("design:type",Object),_.B("design:paramtypes",[])],fF.prototype,"maxDescriptionLines",null);
_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fF.prototype,"noCinematicData",null);_.d([_.Qi("yt-new-playlist-header"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fF.prototype,"onUpdateHeader",null);_.d([_.P("data","isDarkTheme"),_.B("design:type",Object),_.B("design:paramtypes",[])],fF.prototype,"backgroundStyle",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fF.prototype,"descriptionFormData",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fF.prototype,"getDropdownTheme",null);_.d([_.P("data","isDarkTheme"),_.B("design:type",String),_.B("design:paramtypes",[])],fF.prototype,"gradientStyle",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],fF.prototype,"descriptionTapText",null);
_.d([_.SL({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],fF);
_.u(fF,"ytd-playlist-header-renderer",function(){if(pCy!==void 0)return pCy;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pCy=e},{mode:_.bA("kevlar_poly_si_batch_j078")?1:2});var kR2;var qgC;var Sd=function(){return _.V.apply(this,arguments)||this};
_.U(Sd,_.V);Sd.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Sd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Sd.prototype,"data",void 0);_.d([_.SL({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Sd);
_.u(Sd,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(qgC!==void 0)return qgC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return qgC=e},{mode:1});var ue=function(){return _.V.apply(this,arguments)||this};
_.U(ue,_.V);
ue.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}}}}};
ue.prototype.computeUsePremiumShowStyle=function(e){if(!e||!e.items)return!1;for(var z=0;z<e.items.length;z++)if(_.r(e.items[z],YHg)){var C=void 0;return((C=_.r(e.items[z],YHg))==null?void 0:C.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ue.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.B("design:type",Boolean)],ue.prototype,"usePremiumShowStyle",void 0);
_.d([_.SL({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],ue);
_.u(ue,"ytd-playlist-sidebar-renderer",function(){if(kR2!==void 0)return kR2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return kR2=e},{mode:1});var xma;var T1L;var $my=function(e,z,C,w,K,G,X,J){this.minWidth=e;this.minHeight=z;this.recommendedWidth=C;this.recommendedHeight=w;this.JSC$22832_maxFileSize=K;this.title=G;this.bannerGalleryTitle=X;this.channelId=J;this.picker_=null;e=_.TH8("yt-banner");z=e.addView;C=(new cAg("youtubebanner")).addUploadMetadata("silo_id","19");C.opts.ytMaxFileSize=this.JSC$22832_maxFileSize;w=this.recommendedHeight;C.opts.ytRecWidth=this.recommendedWidth;C.opts.ytRecHeight=w;z.call(e,C);e.addView(new _.gq);z=e.addView;C=new _.gq;
C.opts.type="ytbanner";z.call(e,C.JSC$10243_setLabel(this.bannerGalleryTitle));z=e.setTitle(this.title).setSize(1E3);z.urlParamMap_.set("thumbs","orig");C=this.minWidth;w=this.minHeight;if(isNaN(C)||isNaN(w))throw Error("gb`"+C+"`"+w);z.urlParamMap_.set("minSize",C+"x"+w);z.urlParamMap_.set("cropMode","ytcb");this.builder_=e};
$my.prototype.open=function(){var e=this;return new _.RC(function(z,C){_.jO4(e.builder_,function(w){w.action=="picked"?z(w):w.action=="cancel"&&C(Error("Yo"))});
e.picker_&&e.picker_.dispose();e.picker_=e.builder_.build();e.picker_.setVisible(!0)})};
$my.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var l_L=function(e){this.channelId=e};
l_L.prototype.upload=function(e){var z="";e.viewToken&&(z=e.viewToken[2].type);var C=e.docs[0];e=C.crop;z={channel_id:this.channelId,fife_url:C.thumbnails[0].url,photo_id:C.id,is_gallery_image:z=="ytbanner"};e&&(z.crop_top=e.top,z.crop_right=e.right,z.crop_bottom=e.bottom,z.crop_left=e.left);return _.lno("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:z})};var dc=function(){var e=_.V.apply(this,arguments)||this;e.ariaLabel=null;return e};
_.U(dc,_.V);_.Y=dc.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.Y.detached=function(){this.picker&&this.picker.dispose()};
_.Y.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.Y.computeAriaLabel=function(e){return e};
_.Y.onTap=function(){var e=this,z;if((z=this.data)==null||!z.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new $my(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 C;(C=this.picker)==null||C.open().then(function(w){e.handleBannerPicked(w)},function(){})}};
_.Y.handleBannerPicked=function(e){var z=this;this.uploader||(this.uploader=new l_L(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(e).then(function(C){z.handleBannerUploadSucceeded(C)},function(C){z.handleBannerUploadFailed(C)})};
_.Y.handleBannerUploadSucceeded=function(e){e&&e.errors?this.handleBannerUploadFailed(e):(_.pi(this.hostElement,"yt-banner-updated",e),this.message=null)};
_.Y.handleBannerUploadFailed=function(e){this.message=e&&e.errors&&e.errors.length?e.errors[0]:null};
dc.prototype.dataChanged=dc.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],dc.prototype,"componentBehavior",void 0);_.d([_.W(_.Ym),_.B("design:type",Object)],dc.prototype,"ironButtonState",void 0);_.d([_.F(),_.B("design:type",Object)],dc.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.B("design:type",Object)],dc.prototype,"ariaLabel",void 0);
_.d([_.F(),_.B("design:type",Object)],dc.prototype,"message",void 0);_.d([_.F(),_.B("design:type",Object)],dc.prototype,"picker",void 0);_.d([_.F(),_.B("design:type",Object)],dc.prototype,"uploader",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dc.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],dc);
_.u(dc,"ytd-channel-banner-editor-renderer",function(){if(T1L!==void 0)return T1L;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return T1L=e},{mode:1});var QV2;var mmg=_.Kb(["#"]),D4=function(){return _.V.apply(this,arguments)||this};
_.U(D4,_.V);D4.prototype.computeHrefWithDefault=function(e){return this.ytComponentBehavior.computeHref_(e,!0)||_.$1m(mmg)};
D4.prototype.dataChanged=function(){var e=this.data;e&&e.targetId&&_.ZM(_.p3(),e.targetId,this.moreIcon)};
D4.prototype.dataChanged=D4.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],D4.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],D4.prototype,"data",void 0);_.d([_.nP("#more-icon"),_.B("design:type",Object)],D4.prototype,"moreIcon",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],D4.prototype,"dataChanged",null);
_.d([_.SL({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],D4);
_.u(D4,"ytd-channel-tagline-renderer",function(){if(QV2!==void 0)return QV2;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return QV2=e},{mode:1});var a_L;var ie=function(){return _.V.apply(this,arguments)||this};
_.U(ie,_.V);_.Y=ie.prototype;_.Y.ready=function(){var e=this;_.XC(this.hostElement).querySelector("#form").addEventListener("submit",function(z){e.onSubmit(z)})};
_.Y.onDataChanged=function(){var e;((e=this.data)==null?0:e.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.Y.onIconButtonKeydown=function(e){e.keyCode===13&&this.iconButton.click()};
_.Y.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.Y.openOnClickHandler=function(){this.input.focus()};
_.Y.onSubmit=function(e){e.preventDefault();return!1};
_.Y.submitOnEnterKeyUp=function(e){var z;if(e.keyCode===13&&((z=this.data)==null?0:z.expandedText)){e=this.data.endpoint;z=_.de.unsafeClone(e);var C;((C=_.r(z==null?void 0:z.commandMetadata,_.XV))==null?0:C.url)?(_.r(z.commandMetadata,_.XV).url=_.z4(_.r(z.commandMetadata,_.XV).url,"query",this.data.expandedText),_.r(z,_.mJ)&&(_.r(z,_.mJ).query=this.data.expandedText),_.pi(this.hostElement,"yt-navigate",{endpoint:z,tempData:{disableCache:!0}})):(C=new _.uh("Error: Trying to navigate to an endpoint without url",
e),_.yG(C))}};
_.Y.updateDataExpandedTextFromBinding=function(e){this.set("data.expandedText",e.detail.value)};
_.lB.Object.defineProperties(ie.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
ie.prototype.onDataChanged=ie.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.MLL),_.B("design:type",Object)],ie.prototype,"ytdExpandableInputBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ie.prototype,"data",void 0);_.d([_.nP("#input"),_.B("design:type",Object)],ie.prototype,"input",void 0);_.d([_.nP("#icon-button"),_.B("design:type",HTMLElement)],ie.prototype,"iconButton",void 0);
_.d([_.F(),_.B("design:type",String),_.B("design:paramtypes",[])],ie.prototype,"searchIcon",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ie.prototype,"onDataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],ie);
var N9T=_.Yp()(ie,"ytd-expandable-tab-renderer",function(){if(a_L===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);a_L=e}e=a_L;return e},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var niY;var NP=function(){var e=_.V.apply(this,arguments)||this;e.avatarSize=80;e.ariaLabel=_.kk("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return e};
_.U(NP,_.V);NP.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
NP.prototype.computeHref=function(e){var z;return((z=_.r(e,_.oO))==null?0:z.url)?this.componentBehavior.computeHref_(e):null};
NP.prototype.onTap=function(){var e,z;(e=this.data)==null||!e.editAvatarServiceEndpoint||((z=_.r(this.data.editAvatarServiceEndpoint,_.oO))==null?0:z.url)||_.lh().resolve(_.ms).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.d([_.W(_.Ym),_.B("design:type",Object)],NP.prototype,"ironButtonState",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],NP.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],NP.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],NP.prototype,"avatarSize",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],NP.prototype,"ariaLabel",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],NP);
_.u(NP,"ytd-channel-avatar-editor",function(){if(niY!==void 0)return niY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return niY=e},{mode:1});var M5g=_.f(function(e){var z=e.data;var C=e.noPadding;var w=e.enableBanner;var K=e.cinematicContainerTopbarOffset;var G=e.allowCinematicContainerOverflow;var X=e.displayAsSidebar;e=e.className;_.sH(function(){z().tagManagerId&&(_.oQ(z().tagManagerId,_.j5("GL")),yAy(z().tagManagerId))},"vUc8md");
var J=_.vF(B9y,function(){return z().pageHeaderEntityKey});
return _.x("yt-page-header-renderer",{class:_.qT("pageHeaderRendererHost",e)},_.x(_.PF,{data:function(){var q;return((q=J())==null?0:q.header)?J().header:(X==null?0:X())&&z().sidebarContent?z().sidebarContent:z().content}},{pageHeaderViewModel:function(q){return _.x(_.QmW,{data:q.data,
noPadding:C,enableBanner:w,cinematicContainerTopbarOffset:K,allowCinematicContainerOverflow:G,displayAsSidebar:function(){return(X==null?void 0:X())&&z().enableSidebarView}})}}))},"Gn");
M5g.idomCompat=!0;_.KU(M5g,"yt-page-header-renderer",{props:{data:_.vh,noPadding:_.vh,enableBanner:_.vh,cinematicContainerTopbarOffset:_.vh,allowCinematicContainerOverflow:_.vh,displayAsSidebar:_.vh,className:_.vh}});_.KU(_.L5,"yt-image-banner-view-model",{props:{data:_.vh,isPositionRelative:_.vh}});_.KU(_.f8b,"yt-tab-group-shape",{props:{shape:_.vh}});var rRt=_.cF.persistentPanelVisibleSelector,sF=function(){var e=_.V.apply(this,arguments)||this;e.expandableCustomTabRenderable=function(z){return s4Y(z,function(){return void e.onSearchNavigate()})};
e.isRichGrid=!1;e.isConstrainedList=!1;e.richGridMiniMode=!1;e.richGridStyle="RICH_GRID_STYLE_UNKNOWN";e.isRichGridShorts=!1;e.responsiveSizing="COMPACT";e.disableGridStateAware=!1;e.useRaf=!_.M("web_use_raf_app_header_layout_killswitch");e.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return e};
_.U(sF,_.V);_.Y=sF.prototype;_.Y.computeHeaderDisabled=function(e,z){return z||!e||this.tabsHidden};
_.Y.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.Y.computeIsRichGridShorts=function(e){return e==="RICH_GRID_STYLE_SHORTS_GRID"||e==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.Y.computeImageBannerViewModel=function(){var e,z;return _.r((z=_.r((e=this.data)==null?void 0:e.content,_.hVh))==null?void 0:z.banner,_.UCg)};
_.Y.computeHasCinematicContainer=function(){var e,z;return!((z=_.r((e=this.data)==null?void 0:e.content,_.hVh))==null||!z.background)};
_.Y.handleHeaderResize=function(){var e=_.XC(this.hostElement).querySelector("#header");e&&_.pi(e,"iron-resize")};
_.Y.handleInsertTabCommand=function(e){var z=_.r(e,$62);z&&(z.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(C){return C.tabRenderer&&C.tabRenderer.tabIdentifier===z.tabIdentifier})||this.splice("tabs",z.tabIndex||-1,0,z.tab))};
_.Y.handleRefreshChannelTabAction=function(e){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===e&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.Y.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.Y.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.T8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Y.observerRichGridSlimItemsPerRow=function(){_.T8(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.Y.updateCssVars=function(){this.richGridItemsPerRow&&_.T8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.n0("rich_grid_max_item_width",500))+16)-16+"px"})};
_.Y.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.T8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.Y.onDataChanged=function(){this.handleHeaderResize()};
_.Y.onWindowResize=function(){this.handleHeaderResize()};
_.Y.onFocusedChanged=function(e){(e=_.AU(e))&&e.is==="tp-yt-paper-tab"&&e.hasRipple()&&(e.getRipple().holdDown=!e.pointerDown&&e.focused)};
_.Y.updateSelectedFromBinding=function(e){this.ytdTabbedHeaderBehavior.selected=e.detail.value};
_.Y.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.lB.Object.defineProperties(sF.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:g2L(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.imageBannerViewModel)==null?void 0:e.style)==="IMAGE_BANNER_STYLE_INSET"}}});
sF.prototype.onDataChanged=sF.prototype.onDataChanged;sF.prototype.updateCssVarsForResponsiveGrid=sF.prototype.updateCssVarsForResponsiveGrid;sF.prototype.updateCssVars=sF.prototype.updateCssVars;sF.prototype.observerRichGridSlimItemsPerRow=sF.prototype.observerRichGridSlimItemsPerRow;sF.prototype.observerRichGridItemsPerRow=sF.prototype.observerRichGridItemsPerRow;sF.prototype.persistentPanelVisibleChanged=sF.prototype.persistentPanelVisibleChanged;
_.d([_.W(_.MC),_.B("design:type",Object)],sF.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.W(lKw),_.B("design:type",Object)],sF.prototype,"ytdTabbedHeaderBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],sF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],sF.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],sF.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],sF.prototype,"ytdReduxBehavior",void 0);_.d([_.nP("#tabs"),_.B("design:type",Object)],sF.prototype,"tabsElement",void 0);_.d([_.F(),_.B("design:type",Array)],sF.prototype,"tabs",void 0);_.d([_.F(),_.B("design:type",Object)],sF.prototype,"expandableCustomTabRenderable",void 0);
_.d([_.P("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],sF.prototype,"tabGroupShape",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sF.prototype,"isRichGrid",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sF.prototype,"isConstrainedList",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Object)],sF.prototype,"richGridMiniMode",void 0);_.d([_.F({selector:function(e){return e.ui.richGridStyle}}),
_.B("design:type",Object)],sF.prototype,"richGridStyle",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.B("design:type",Object)],sF.prototype,"isRichGridShorts",void 0);_.d([_.F({selector:_.Fn}),_.B("design:type",Number)],sF.prototype,"richGridItemsPerRow",void 0);_.d([_.F({selector:function(e){return e.ui.richGridContainerWidth}}),
_.B("design:type",Number)],sF.prototype,"richGridContainerWidth",void 0);_.d([_.F({selector:_.FF5}),_.B("design:type",Number)],sF.prototype,"richGridSlimItemsPerRow",void 0);_.d([_.F(),_.B("design:type",Object)],sF.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sF.prototype,"responsiveSizing",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],sF.prototype,"disableGridStateAware",void 0);
_.d([_.F({computed:"computeImageBannerViewModel(data)"}),_.B("design:type",Object)],sF.prototype,"imageBannerViewModel",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.B("design:type",Boolean)],sF.prototype,"hasCinematicContainer",void 0);_.d([_.F({selector:_.G8Y,reflectToAttribute:!0}),_.B("design:type",Boolean)],sF.prototype,"guideIsVisibleButNotPersistent",void 0);
_.d([_.F({selector:rRt}),_.B("design:type",Boolean)],sF.prototype,"persistentPanelVisible",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],sF.prototype,"hasBanner",null);_.d([_.F({reflectToAttribute:!0}),_.P("imageBannerViewModel"),_.B("design:type",Object),_.B("design:paramtypes",[])],sF.prototype,"hasInsetBanner",null);_.d([_.F(),_.B("design:type",Object)],sF.prototype,"useRaf",void 0);
_.d([_.F({computed:"computeTabsHidden(tabs)",value:!0}),_.B("design:type",Boolean)],sF.prototype,"tabsHidden",void 0);_.d([_.mi("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sF.prototype,"persistentPanelVisibleChanged",null);_.d([_.mi("richGridItemsPerRow","isRichGrid"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sF.prototype,"observerRichGridItemsPerRow",null);
_.d([_.mi("richGridSlimItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sF.prototype,"observerRichGridSlimItemsPerRow",null);_.d([_.mi("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sF.prototype,"updateCssVars",null);
_.d([_.mi("richGridContainerWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sF.prototype,"updateCssVarsForResponsiveGrid",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sF.prototype,"onDataChanged",null);_.d([_.SL({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],sF);
_.u(sF,"ytd-tabbed-page-header",function(){if(xma!==void 0)return xma;var e=document.createElement("template");_.v(e,'\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 use-raf="[[useRaf]]" 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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return xma=e},{mode:1});var Hdl;var B4=function(){return _.V.apply(this,arguments)||this};
_.U(B4,_.V);B4.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.T8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.lB.Object.defineProperties(B4.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var e,z;return this.componentBehavior.computeIcon_(((z=_.r((e=this.data)==null?void 0:e.badge,_.f2a))==null?void 0:z.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.badge,_.f2a))==null?void 0:z.label}}});
B4.prototype.observerRichGridItemsPerRow=B4.prototype.observerRichGridItemsPerRow;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],B4.prototype,"componentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],B4.prototype,"ytdReduxBehavior",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.Ek}),_.B("design:type",Boolean)],B4.prototype,"richGridMiniMode",void 0);
_.d([_.F({selector:_.Fn}),_.B("design:type",Number)],B4.prototype,"richGridItemsPerRow",void 0);_.d([_.F(),_.B("design:type",Object)],B4.prototype,"data",void 0);_.d([_.mi("richGridItemsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],B4.prototype,"observerRichGridItemsPerRow",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],B4.prototype,"badgeIconName",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],B4.prototype,"badgeLabel",null);_.d([_.SL({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],B4);
_.u(B4,"ytd-member-hub-profile-renderer",function(){if(Hdl!==void 0)return Hdl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Hdl=e},{mode:1});var Uml;var tZ=function(){return _.V.apply(this,arguments)||this};
_.U(tZ,_.V);tZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tZ.prototype,"data",void 0);_.d([_.SL({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],tZ);
_.u(tZ,"ytd-settings-sidebar-renderer",function(){if(Uml!==void 0)return Uml;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Uml=e},{mode:1});var viw;var jd=function(){var e=_.V.apply(this,arguments)||this;e.expandableCustomTabRenderable=function(z){return s4Y(z,function(){return void e.onSearchNavigate()})};
return e};
_.U(jd,_.V);jd.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
jd.prototype.onSearchNavigate=function(){this.selected=void 0};
jd.prototype.onTabsChange=function(){var e,z=(e=this.tabs)==null?void 0:e.findIndex(function(C){var w;return C==null?void 0:(w=C.tabRenderer)==null?void 0:w.selected});
z!==void 0&&(this.selected=z)};
jd.prototype.onTabsActive=function(e){if(this.tabs!==void 0){var z,C;(e=(z=this.tabs[e.detail.selected])==null?void 0:(C=z.tabRenderer)==null?void 0:C.endpoint)&&_.pi(this.hostElement,"yt-navigate",{endpoint:e})}};
_.lB.Object.defineProperties(jd.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:g2L(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
jd.prototype.onTabsChange=jd.prototype.onTabsChange;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.MC),_.B("design:type",Object)],jd.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],jd.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],jd.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Array)],jd.prototype,"tabs",void 0);_.d([_.F(),_.B("design:type",Number)],jd.prototype,"selected",void 0);_.d([_.P("tabs.*"),_.B("design:type",Object),_.B("design:paramtypes",[])],jd.prototype,"tabGroupShape",null);_.d([_.F(),_.B("design:type",Object)],jd.prototype,"expandableCustomTabRenderable",void 0);
_.d([_.P("tabs"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jd.prototype,"tabsEnabled",null);_.d([_.Ux("tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jd.prototype,"onTabsChange",null);_.d([_.SL({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],jd);
_.u(jd,"ytd-topic-channel-details-renderer",function(){if(viw!==void 0)return viw;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return viw=e},{mode:1});var I_C;var y7=function(){var e=_.V.apply(this,arguments)||this;e.disableGridStateAware=!1;return e};
_.U(y7,_.V);y7.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]]"}}}}}};
y7.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
y7.prototype.updateCssVars=function(){_.T8(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.n0("rich_grid_max_item_width",500))+16)-16+"px"})};
y7.prototype.updateCssVars=y7.prototype.updateCssVars;y7.prototype.activeChanged=y7.prototype.activeChanged;_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],y7.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],y7.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],y7.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Array)],y7.prototype,"tabs",void 0);_.d([_.F(),_.B("design:type",Boolean)],y7.prototype,"active",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],y7.prototype,"disableGridStateAware",void 0);
_.d([_.F({selector:_.Fn}),_.B("design:type",Number)],y7.prototype,"richGridItemsPerRow",void 0);_.d([_.F({selector:_.Ek}),_.B("design:type",Boolean)],y7.prototype,"richGridMiniMode",void 0);_.d([_.nP("ytd-carousel-item-renderer"),_.B("design:type",Object)],y7.prototype,"carousel",void 0);_.d([_.mi("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y7.prototype,"activeChanged",null);
_.d([_.mi("richGridItemsPerRow","richGridMiniMode"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],y7.prototype,"updateCssVars",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],y7);
_.u(y7,"ytd-carousel-header-renderer",function(){if(I_C!==void 0)return I_C;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return I_C=e},{mode:1});var WML;var Piy=_.Kb(["https://www.google-analytics.com/analytics.js"]),c4=function(){var e=_.V.apply(this,arguments)||this;e.scriptAnalyticsAdded=!1;return e};
_.U(c4,_.V);c4.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var e,z=(e=this.data)==null?void 0:e.tagManagerId;z&&(_.oQ(z,_.j5("GL")),yAy(z))};
c4.prototype.sendGoogleAnalyticsPageview=function(e){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var C=_.yL.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(C)};
var z=window.ga;z("set","page",window.location.pathname);z.l=+new Date;z("set","forceSSL",!0);z("create",e,"'auto'");z("send","pageview")};
c4.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var e=_.Lh("SCRIPT");e.name="ga-analytics";var z=_.nJ(Piy);_.Jn(e,z);e.async=!0;_.XC(this.hostElement).appendChild(e)};
c4.prototype.dataChanged=c4.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],c4.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c4.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],c4);
_.u(c4,"ytd-channel-metadata-renderer",function(){if(WML!==void 0)return WML;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return WML=e},{mode:1});var RGg;var LMC;var AZ=function(){var e=_.V.apply(this,arguments)||this;e.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"]);e.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"]);e.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return e};
_.U(AZ,_.V);_.Y=AZ.prototype;_.Y.attached=function(){this.requestElementsPerRow()};
_.Y.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_]]"}}}}}};
_.Y.onUpdateElementsPerRowAction=function(e){e&&this.elementsPerRow!==e&&(this.elementsPerRow=e)};
_.Y.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Y.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.Y.computeAlertStyle_=function(e){return e};
_.Y.observerElementsPerRow=function(){this.elementsPerRow&&_.T8(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.Y.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.Y.requestElementsPerRow=function(){_.pi(this.hostElement,"yt-request-elements-per-row")};
AZ.prototype.onIsVisibleChanged_=AZ.prototype.onIsVisibleChanged_;AZ.prototype.observerElementsPerRow=AZ.prototype.observerElementsPerRow;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],AZ.prototype,"actionHandlerBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],AZ.prototype,"data",void 0);_.d([_.F({value:6,reflectToAttribute:!0}),_.B("design:type",Number)],AZ.prototype,"elementsPerRow",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],AZ.prototype,"wrapButtons",void 0);_.d([_.F({value:_.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],AZ.prototype,"isMusic",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.B("design:type",String)],AZ.prototype,"alertStyle",void 0);_.d([_.F({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.B("design:type",Function)],AZ.prototype,"dismissBoundButtonTap_",void 0);_.d([_.F({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.B("design:type",Function)],AZ.prototype,"acceptBoundButtonTap_",void 0);_.d([_.mi("elementsPerRow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AZ.prototype,"observerElementsPerRow",null);_.d([_.mi("data.isVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AZ.prototype,"onIsVisibleChanged_",null);_.d([_.fP({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],AZ);
_.u(AZ,"yt-alert-with-actions-renderer",function(){if(LMC===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;RGg===void 0&&(RGg=document.createElement("template"));var w=RGg;C.call(z,w.content.cloneNode(!0),e.content.firstChild);LMC=e}e=LMC;return e},{mode:2});var hGC=_.f(function(e){var z={};return _.x(_.U2,{text:e.text,className:_.qT("ytPersonalGreetingViewModelHeadline",(z.ytPersonalGreetingViewModelHeadlineSmall=e.isSmallHeadline,z))})},"In");_.KU(_.f(function(e){var z=_.Dh(function(){var a;return(a=e.data())==null?void 0:a.rendererContext},void 0,void 0,void 0,!0),C=function(){return e.data().canvasPromoData},w=function(){var a;
return(a=e.data().bannerHeight)!=null?a:56},K=_.b(_.P0({throttleMs:100})),G=K.next().value;
K=K.next().value;var X=_.b(_.P0({throttleMs:100})),J=X.next().value;X=X.next().value;var q=_.b(_.P0({throttleMs:100})),T=q.next().value;q=q.next().value;var Q=function(){return J.width()-G.width()>1},m=function(){return w()===48};
return _.x("yt-personal-greeting-view-model",{el:_.ej(z,K),"aria-hidden":Q,class:_.qT(e.className,"ytPersonalGreetingViewModelHost"),style:_.QC({height:(0,_.rs)(function(){return Q()?0:w()})})},_.x(_.l,{cond:function(){return e.data().avatar&&!(T.width()+(e.data().avatar?48:0)-G.width()>1)},
then:function(){return _.x(_.PF,{data:function(){return e.data().avatar}},{decoratedAvatarViewModel:function(a){return _.x(_.Qh,{data:a.data,
className:_.qT("ytPersonalGreetingViewModelAvatar")})}})}}),_.x("h1",null,_.x(hGC,{text:function(){var a;
return(C==null?void 0:(a=C())==null?void 0:a.headline)||(T.width()+(e.data().avatar?48:0)-G.width()>1?e.data().shorterGreeting:e.data().greeting)},
isSmallHeadline:m})),_.x("span",{el:_.ej(q),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.x(hGC,{text:function(){return e.data().greeting},
isSmallHeadline:m})),_.x("span",{el:_.ej(X),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.x(hGC,{text:function(){return e.data().shorterGreeting},
isSmallHeadline:m})))},"Hn"),"yt-personal-greeting-view-model",{props:{data:_.vh,
className:_.vh}});var Z4=function(){var e=_.V.apply(this,arguments)||this;e.hidden=!1;e.isConstrainedList=!1;e.responsiveSizing="COMPACT";e.attachedPlayers=_.M("kevlar_channel_trailer_multi_attach")?[]:void 0;e.player=null;e.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return e};
_.U(Z4,_.V);_.Y=Z4.prototype;
_.Y.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.Y.created=function(){var e=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){e.disposeMastheadAd()}]};
_.Y.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new aKg(this.refresh,this.contents))};
_.Y.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.Y.activeChanged=function(){var e=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=e)};
_.Y.tabsChanged=function(){var e=this,z,C;if(this.pageSubtype==="channels"||_.M("kevlar_tab_gestures_for_tabbed_header_data")&&((z=this.data)==null?0:(C=z.header)==null?0:C.carouselHeaderRenderer))this.tabGestures=new rGa(this.contents,this.contents,this.hostElement,this.header,function(X){e.ytdReduxBehavior.dispatch(X)});
var w,K,G;z=(w=this.data)==null?void 0:(K=w.contents)==null?void 0:(G=K.twoColumnBrowseResultsRenderer)==null?void 0:G.tabs;this.tabGestures&&this.tabGestures.tabsChanged(z)};
_.Y.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.Y.engagementPanelsChanged=function(){var e=_.lh().resolve(_.kX);if(e){if(this.engagementPanels)for(var z=_.b(this.engagementPanels),C=z.next();!C.done;C=z.next()){var w=void 0;(C=(w=C.value.identifier)==null?void 0:w.tag)&&e.panelMap.delete(C)}this.engagementPanels=[];var K;z=_.b(((K=this.data)==null?void 0:K.panels)||[]);for(K=z.next();!K.done;K=z.next()){K=_.r(K.value,_.t82);var G=C=void 0,X=void 0,J=void 0;if(w=((C=K)==null?void 0:C.targetId)||((G=K)==null?void 0:G.panelIdentifier)||((X=K)==
null?void 0:(J=X.identifier)==null?void 0:J.tag))G=C=void 0,(G=(C=e).registerPanelContent)==null||G.call(C,w,{engagementPanelSectionListRenderer:K}),this.engagementPanels.push(K)}}};
_.Y.onStampFinished=function(){var e=this;_.T0(this,function(){if(e.tabGestures){var z=e.tabGestures;if(z.scrollPositionNeedsUpdate){var C=_.lh().resolve(_.$B(_.wE)),w;if((w=z.selectedTab)!=null&&w.title&&C&&(w=C.getCurrentPage())){if(z.scrollPositionForTabs.has(z.selectedTab.title)){var K,G;C=(G=(K=C.getCurrentPage())==null?void 0:K.clientHeight)!=null?G:0;K=z.scrollPositionForTabs.get(z.selectedTab.title);w.setScrollTop(K);C>K+100&&(z.scrollPositionNeedsUpdate=!1)}else w.setScrollTop(Math.min(z.lastVisitedTabScrollPosition!==
void 0?z.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,z.tabsStartAtInPx)),z.scrollPositionNeedsUpdate=!1;z.ytdReduxDispatch(j4L(!1))}}}})};
_.Y.loadPage_=function(e){this.initCsi();e&&(this.data=e);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.Y.getTitle=function(e){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",e))return this.get("microformat.microformatDataRenderer.title",e);if(this.get("header.feedTabbedHeaderRenderer.title",e))return _.Zd(this.get("header.feedTabbedHeaderRenderer.title",e));if(this.get("header.interactiveTabbedHeaderRenderer.title",e))return this.get("header.interactiveTabbedHeaderRenderer.title",e);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
e))return _.Zd(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",e));var z,C;return(e==null?0:(z=e.header)==null?0:(C=z.pageHeaderRenderer)==null?0:C.pageTitle)?e.header.pageHeaderRenderer.pageTitle:""};
_.Y.updateTitle=function(e){_.pi(this.hostElement,"yt-update-title",this.getTitle(e))};
_.Y.initCsi=function(){_.dGY(this.pageSubtype||"browse",["ol","cpt"])};
_.Y.getPlayer=function(){if(_.M("kevlar_channel_trailer_multi_attach")){for(var e=_.b(this.attachedPlayers),z=e.next();!z.done;z=e.next())if(z=z.value,z.isConnected||_.ph(this.hostElement,z))return z;return null}return this.player};
_.Y.getPlayerContainer=function(){return null};
_.Y.onPlayerAttached=function(e,z){_.M("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(z):this.player=z};
_.Y.onPlayerDetached=function(e,z){_.M("kevlar_channel_trailer_multi_attach")?(e=this.attachedPlayers.indexOf(z),e<0||this.attachedPlayers.splice(e,1)):this.player=null};
_.Y.getServiceTrackingParams=function(){var e,z;return((e=this.data)==null?void 0:(z=e.responseContext)==null?void 0:z.serviceTrackingParams)||[]};
_.Y.setMastheadAd=function(e){e&&e.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=e&&e.mastheadAd};
_.Y.dataChanged=function(){var e=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Lal();_.T0(this,function(){_.zj(e.hostElement,"ytd-update-grid-state-action")})};
_.Y.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.Y.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var e=this.data.alerts;return e&&e.find(function(z){return!!z.alertWithActionsRenderer})}};
_.Y.computeGreetingData=function(){if(this.data&&this.data.alerts){var e=this.data.alerts;return e&&e.find(function(z){return!!z.personalGreetingViewModel})}};
_.Y.computeHasMemberHubProfileRenderer=function(e){var z;return!!(e==null?0:(z=e.header)==null?0:z.memberHubProfileRenderer)};
_.Y.handleAlertCommand=function(e){this.get("alertCommand.alert.alertWithActionsRenderer",e)&&(e=_.r(e,Kpt),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",e.alert))};
_.Y.handleYtPlaylistDeletionRedirect=function(e){e=this.get("playlistDeletionRedirectCommand.redirectEndpoint",e);_.pi(this.hostElement,"yt-navigate",{endpoint:e})};
_.Y.computeFluidWidth=function(e,z,C){if(z==="mini_app"||C)return!0;var w,K,G;e=e==null?void 0:(w=e.contents)==null?void 0:(K=w.twoColumnBrowseResultsRenderer)==null?void 0:(G=K.tabs)==null?void 0:G.find(function(q){var T;return q==null?void 0:(T=q.tabRenderer)==null?void 0:T.selected});
if(!e)return!1;var X,J;return!!((X=e.tabRenderer)==null?0:(J=X.content)==null?0:J.richGridRenderer)&&!["channel","channels","playables"].includes(z)};
_.Y.computeHeaderFluidWidth=function(e){return e==="hashtag-landing-page"};
_.Y.computeHasSidebar=function(e){var z;return!!(e.sidebar||((z=e.header)==null?0:z.playlistHeaderRenderer))};
_.Y.computeHasPageHeaderSidebar=function(e){var z,C;return!!((z=e.header)==null?0:(C=z.pageHeaderRenderer)==null?0:C.enableSidebarView)};
_.Y.computeUseUnifiedShowPageLayout=function(e){if(!e||this.pageSubtype!=="show"||!e.sidebar||!e.sidebar.playlistSidebarRenderer)return!1;e=e.sidebar.playlistSidebarRenderer;if(!e.items)return!1;for(var z=0;z<e.items.length;z++)if(_.r(e.items[z],YHg)){var C=void 0;return((C=_.r(e.items[z],YHg))==null?void 0:C.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Y.computeIsConstrainedList=function(e){return _.M("web_enable_constrained_list_subscriptions_channels")&&e==="subscriptions-channels"};
_.Y.computeResponsiveSizing=function(e){return e==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.lB.Object.defineProperties(Z4.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var e,z;return((e=this.data)==null?0:(z=e.header)==null?0:z.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var e,z;if(!((e=this.data)==null?0:(z=e.sidebar)==null?0:z.playlistSidebarRenderer))return!1;var C;return(C=this.data)!=null&&C.header?!1:!0}}});
_.lB.Object.defineProperties(Z4,{template:{configurable:!0,enumerable:!0,get:function(){if(Hjt===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);Hjt=e}e=Hjt;return e}}});
Z4.prototype.dataChanged=Z4.prototype.dataChanged;Z4.prototype.onPlayerDetached=Z4.prototype.onPlayerDetached;Z4.prototype.onPlayerAttached=Z4.prototype.onPlayerAttached;Z4.prototype.onStampFinished=Z4.prototype.onStampFinished;Z4.prototype.engagementPanelsChanged=Z4.prototype.engagementPanelsChanged;Z4.prototype.scrollAtTopChanged=Z4.prototype.scrollAtTopChanged;Z4.prototype.tabsChanged=Z4.prototype.tabsChanged;Z4.prototype.activeChanged=Z4.prototype.activeChanged;
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Z4.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],Z4.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Z4.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.CF.YtPageBehavior),_.B("design:type",Object)],Z4.prototype,"ytPageBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],Z4.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Z4.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Z4.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Z4.prototype,"hidden",void 0);
_.d([_.F(),_.B("design:type",Object)],Z4.prototype,"mastheadAdData",void 0);_.d([_.F({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.B("design:type",Object)],Z4.prototype,"alertBannerData",void 0);_.d([_.F({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.B("design:type",Object)],Z4.prototype,"greetingData",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Z4.prototype,"pageSubtype",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.B("design:type",Boolean)],Z4.prototype,"hasMemberHubProfileRenderer",void 0);_.d([_.F({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Z4.prototype,"hasSidebar",void 0);_.d([_.F({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Z4.prototype,"hasPageHeaderSidebar",void 0);
_.d([_.F({reflectToAttribute:!0,value:!0}),_.B("design:type",Boolean)],Z4.prototype,"roundedContainer",void 0);_.d([_.F({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Z4.prototype,"useUnifiedShowPageLayout",void 0);_.d([_.F({computed:"computeIsConstrainedList(pageSubtype)"}),_.B("design:type",Object)],Z4.prototype,"isConstrainedList",void 0);
_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Z4.prototype,"usePlaylistHeaderRenderer",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Z4.prototype,"useOldPlaylistSidebarRenderer",null);_.d([_.F({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.B("design:type",Boolean)],Z4.prototype,"fluidWidth",void 0);_.d([_.F({selector:function(e){return e.ui.scrollAtTop}}),
_.B("design:type",Boolean)],Z4.prototype,"scrollAtTop",void 0);_.d([_.F({selector:_.Yxf}),_.B("design:type",Boolean)],Z4.prototype,"tabGesturesIsActive",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.B("design:type",Boolean)],Z4.prototype,"disableHeaderFluidWidth",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.B("design:type",String)],Z4.prototype,"responsiveSizing",void 0);
_.d([_.nP("ytd-two-column-browse-results-renderer"),_.B("design:type",HTMLElement)],Z4.prototype,"contents",void 0);_.d([_.nP("#header"),_.B("design:type",HTMLElement)],Z4.prototype,"header",void 0);_.d([_.nP("ytd-refresh"),_.B("design:type",Object)],Z4.prototype,"refresh",void 0);_.d([_.mi("active"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z4.prototype,"activeChanged",null);
_.d([_.mi("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z4.prototype,"tabsChanged",null);_.d([_.mi("scrollAtTop"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z4.prototype,"scrollAtTopChanged",null);_.d([_.F(),_.B("design:type",Object)],Z4.prototype,"engagementPanels",void 0);
_.d([_.mi("data.panels"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z4.prototype,"engagementPanelsChanged",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z4.prototype,"onStampFinished",null);_.d([_.Qi("yt-player-attached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],Z4.prototype,"onPlayerAttached",null);
_.d([_.Qi("yt-player-detached"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Element]),_.B("design:returntype")],Z4.prototype,"onPlayerDetached",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Z4.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-browse"})],Z4);_.mj.registerService(_.Tvg,Z4);
_.g9();
}catch(e){_._DumpException(e)}
try{
_.tA("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 mk,vpo,IfE,WOW,PAW,R9v,LOE,h9Z,OmZ,EpW,FOv,VQl,ffE,SmW,dFo,DF$,Nob,s5E,Bov,gpq,j5a,yEZ,cEf,af,ZmY,p9$,etZ,zt$,CwE,wjW,KBW,bUE,Jql,YTE,uHW,k9C,qT5,xTf,TGY,$TL,le5,QoW,nf$,Mjl,UTq,vfv,WBo,RtY,LBE,htC,Efq,Vjv,feL,STf,uWf,dT$,DTZ,iUv,NGq,soL,BGW,tjE,gfl,cq$,Aq3,ZUf,pjl,eha,zhC,C3f,wFl,oTo,GiW,Yza,b7a,XFv,Jm$,kiq,qzY,xK3,TEZ,$KZ,lhf,QxW,mKW,ahZ,nTq,M3$,rmW,H7o,UK$,vTl,Ih5,WTY,P33,rZ,RhW,LTL,V3o,BEL,yma,cmL,zPE,w0L,ePa,Z7E,JSf,xlW,aWf,Amv,$lo,kVY,Cna,M45,Ulb,W8f,vso,IW3,Pn3,OsC,L8Z,Esl,F8E,hPo,RPC,
V4a,If,isl,N$q,se3,Wd,B$$,t4W,gs5,p0L,eiv,Pd,Rf,CHY,zib,wM5,KUb,o3L,GOL,L6,ThC,h9,$ZW,lrZ,QnY,O0,HMv,ar$,r8v,UZb,n3Z,IrL,MoW,RiE,WUl,PHo,LUf,OMo,hif,frb,DZb,f6,Sr,u9E,Nh3,dZ3,iM$,ux,D1,ix,N0,kkq,z0a,T4Z,$IW,lsv,QP5,asl,c85,A8E,t9,pM$,s0,Bd,e0b,mIL,q7L,ZMo,jr,h0l,EdC,FDL,Ob3,WDb,fsq,dI$,vdL,Hb5,UIl,N4Y,Isf,A9,uXL,P5$,S7o,LDl,rdf,R0a,B4E,tvC,gdv,ydL,AdE,ZbY,pWW,ex$,CSo,zx5,KfW,olq,Yya,bVa,JLq,kvW,qyo,xJL,TJL,$JC,Q8$,lgL,mJL,M25,rLq,HV$,e7,UJa,vlf,Ig3,Wf5,PSZ,Rxo,Lf$,hxq,OV$,ElC,Ffb,fgl,Syf,uPf,dJE,
NJC,BJv,t2Y,j8Z,glY,yL3,cLa,ALb,ZVC,em5,zmf,Cbv,w2Z,KEY,oQZ,G15,YSL,bkC,X2f,JT$,TB$,$3$,qSq,x3L,k1C,lAv,aAq,QiZ,m3q,rTo,nQq,MlY,Hkb,U3v,vQb,IAY,PbE,Rmo,LEf,OkE,EQW,VlE,SSY,d3o,ikl,sif,tl3,jiE,cTZ,p2o,zlf,CGL,wq$,ouZ,KxE,YV5,bRq,XqZ,JQ3,Cl,kDa,qVl,x_b,vuW,WxY,PG$,ORE,oN,Euv,Fx3,VqW,SV3,f7$,uol,d_W,D_q,iRl,Nqb,hhL,sKC,Bqf,D33,tqv,gub,Pw$,jK3,yQ3,cQY,AQC,ZR$,pqv;
mk=function(e){if(!e)return"browse";var z=e.page,C=e.url,w,K,G,X=(w=e.response)==null?void 0:(K=w.responseContext)==null?void 0:(G=K.webResponseContextExtensionData)==null?void 0:G.pageTheme;if(X)z=X.toLowerCase().replace(/_/g,"-");else if(z!=="watch"&&z!=="learning_journey_watch"){var J,q;if((z==="browse"||z==="settings")&&((J=e.response)==null?0:(q=J.sidebar)==null?0:q.settingsSidebarRenderer))z="WEB_PAGE_TYPE_SETTINGS";else{var T,Q;z==="browse"&&((T=e.response)==null?0:(Q=T.metadata)==null?0:Q.channelMetadataRenderer)?
z="channel":C&&(z=_.b9N(C)||z)}}return z};
vpo=function(){return new Promise(function(e){var z=window;z.attmp!==void 0?e(z.attmp):(z.attmq===void 0&&(z.attmq=[]),z.attmq.push(function(C){e(C)}))})};
IfE=function(){var e=_.pd("yt.aba.att");return e?e:_.e$.instance!==void 0?_.e$.instance.e70.bind(_.e$.instance):null};
WOW=function(e,z){var C,w;return _.k(function(K){return K.nextAddress==1?_.M("attmusi")&&_.M("attmusi_ue")?K.yield(vpo(),3):K.jumpTo(2):K.nextAddress!=2?(C=K.yieldResult,K.return(C.s(e,z,6E4))):(w=IfE())?K.return(w(e,z,6E4)):K.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
PAW=function(e,z,C,w,K){z=z===void 0?[]:z;K=K?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:K}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.K4(e),dialogMessages:z.map(function(G){return _.K4(G)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K4(C),serviceEndpoint:K}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.K4(w)}}}}}};
R9v=function(e,z,C){C=C===void 0?!1:C;var w=_.C3(),K=!!_.Rl().queueProxy,G,X,J;e=e==null?void 0:(G=e.response)==null?void 0:(X=G.currentVideoEndpoint)==null?void 0:(J=X.watchEndpoint)==null?void 0:J.playlistId;if((K||e)&&!_.M("web_watch_disable_playlist_auto_miniplayer"))return C&&(w.playlistWatchPageActivation=!0),!0;switch(mk(z)){case "yts-products":return C&&(w.productDetailsPageActivation=!0),!0;case "mini_app":return C&&(w.miniAppPageActivation=!0),!0;case "playables":return C&&(w.playablesDestPageActivation=
!0),!0;case "companion-canvas":return C&&(w.companionCanvasActivation=!0),!0;default:return!1}};
LOE=function(e){e=_.YE1(e);e.length>0&&e[0].focus()};
h9Z=function(e,z,C){for(var w=typeof e==="string"?e.split(""):e,K=e.length-1;K>=0;--K)K in w&&z.call(C,w[K],K,e)};
OmZ=function(e,z){z=_.Pgg(e,z);z>=0&&_.hsE(e,z)};
EpW=function(e){return Array.prototype.concat.apply([],arguments)};
FOv=function(e){var z=0;z=z===void 0?0:z;if(!_.Kv(e))throw _.eS("uint64");var C=typeof e;switch(z){case 512:switch(C){case "string":return _.EL4(e);case "bigint":return String((0,_.Qo)(64,e));default:return _.hCg(e)}case 1024:switch(C){case "string":return _.Fcg(e);case "bigint":return _.SS((0,_.Qo)(64,e));default:return _.OgN(e)}case 0:switch(C){case "string":return _.EL4(e);case "bigint":return _.SS((0,_.Qo)(64,e));default:return _.Lco(e)}default:return _.ca(z,"Unknown format requested type for int64")}};
VQl=function(e,z,C){if(z)return _.m5(e);var w;return(w=_.Hl(e))!=null?w:C?"":void 0};
ffE=function(e){e!=null&&(e=e.JSC$8989_value_||"",e=typeof e==="string"?e:new Uint8Array(e));return e};
SmW=function(e,z){if(/-[a-z]/.test(z))return null;if(_.rAX&&e.dataset){if(_.a8N()&&!(z in e.dataset))return null;e=e.dataset[z];return e===void 0?null:e}return e.getAttribute("data-"+_.Xu(z))};
dFo=function(){var e=uHW;_.pd("yt.ads.biscotti.getId_")||_.lM("yt.ads.biscotti.getId_",e)};
DF$=function(e){_.lM("yt.ads.biscotti.lastId_",e)};
Nob=function(){var e={};for(_.Bi=new imf(e.handleError===void 0?_.cn:e.handleError,e.logEvent===void 0?_.gm:e.logEvent);_.tJ.length>0;)switch(e=_.tJ.shift(),e.type){case "ERROR":_.Bi.logError(e.payload);break;case "EVENT":_.Bi.logEvent(e.eventType,e.payload)}};
s5E=function(e,z,C){return _.Qu1(function(w){return C?w.userIdentifier!==void 0&&!e.includes(w.userIdentifier)&&C.includes(w.publicName):w.userIdentifier!==void 0&&!e.includes(w.userIdentifier)},z)};
Bov=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1)return z=_.f0("YtIdbMeta hasAnyMeta other"),w.yield(_.Qu1(function(K){return K.userIdentifier!==void 0&&K.userIdentifier!==z},e),2);
C=w.yieldResult;return w.return(C.length>0)})};
gpq=function(e,z){tQC||(tQC=_.c5.addLowPriorityJob(function(){var C,w,K,G,X;return _.k(function(J){switch(J.nextAddress){case 1:return J.yield(_.QZ(),2);case 2:C=J.yieldResult;if(!C)return J.return();w=!0;_.Iv(J,3);return J.yield(s5E(e,C,z),5);case 5:K=J.yieldResult;if(!K.length){w=!1;J.jumpTo(6);break}G=K[0];return J.yield(_.bM(G.actualName),7);case 7:return J.yield(_.kj(G.actualName,C),6);case 6:_.Yj(J,4);break;case 3:X=_.O_(J),_.g3(X),w=!1;case 4:_.c5.cancelJob(tQC),tQC=0,w&&gpq(e,z),_.E_(J)}})}))};
j5a=function(){var e;return _.k(function(z){return z.nextAddress==1?z.yield(_.QZ(),2):(e=z.yieldResult)?z.return(Bov(e)):z.return(!1)})};
yEZ=function(e){var z=100;z=z===void 0?500:z;var C,w,K,G,X,J;return _.k(function(q){return q.nextAddress==1?(C=_.j5("INNERTUBE_CONTEXT_CLIENT_NAME",0),w=[C,(0,_.as)()-2592E6],K=[C,(0,_.as)()],G=IDBKeyRange.bound(w,K),q.yield(_.s3o(e),2)):q.nextAddress!=3?(X=q.yieldResult,J=[],q.yield(_.Jf(X,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(T){J.length=0;return _.np(T.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:G,direction:"prev"},function(Q){if(Q.getValue()&&J.length<
z)return J.push(Q.getValue()),Q.delete().then(function(){return Q.continue()})})}),3)):q.return(J)})};
cEf=function(){var e;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.QZ(),2);e=z.yieldResult;if(!e||!_.Ss()&&!_.M("nwl_init_require_datasync_id_killswitch")||!_.X9h())return z.jumpTo(0);_.kx4=!0;_.JEg.isNwlInitialized=_.kx4;return z.yield(_.suh().awaitInitialization(),0)})};
af=function(e,z){_.PAs[e]=!0;var C=_.nC();C&&C.publish.apply(C,arguments);_.PAs[e]=!1};
ZmY=function(){if(_.o$h()&&!AEa){var e=function(C){C=C.data;if(C.op==="serializedGelBatch"){var w=_.Rt4.get(C.key);w&&(_.htk(C.serializedBatch,w.client,w.resolve,w.networklessOptions,w.isIsolated,w.useVSSEndpoint,w.dangerousLogToVisitorSession,w.requestsOutstanding),_.Rt4.delete(C.key))}},z=_.Ki1();
z&&(z.addEventListener("message",e),z.onerror=function(){_.Rt4.clear()});
AEa=!0}};
p9$=function(){this.relativeTimeStart_=_.xd()};
etZ=function(e,z){e!=null&&this.append.apply(this,arguments)};
zt$=function(){return _.EX("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
CwE=function(e,z,C){C=C===void 0?!1:C;var w,K,G,X,J;return _.k(function(q){switch(q.nextAddress){case 1:_.FF("SOCS",e,34128E3,"youtube.com",!0);if(_.HW)return K=fetch(z,{method:"POST",mode:_.dN(z),credentials:_.uY(z),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),G=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.dN("/upgrade_visitor_cookie?eom=1"),credentials:_.uY("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),q.yield(Promise.all([K,G]).then(function(T){return T[1]}),5);
fetch(z,{method:"POST",mode:_.dN(z),credentials:_.uY(z),cache:"no-store",headers:{"Content-Type":"text/plain"}});return q.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.dN("/upgrade_visitor_cookie?eom=1"),credentials:_.uY("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:w=q.yieldResult;q.jumpTo(3);break;case 5:w=X=q.yieldResult;case 3:if(!w.ok)throw Error("uf");return q.yield(w.text(),7);case 7:J=q.yieldResult,
!J.includes('"state_switch":true')&&!C||J.includes("skip_reload_for_test")||window.location.reload(),_.E_(q)}})};
wjW=function(e){return _.k(function(z){return z.nextAddress==1?z.yield(CwE(e.socsCookie,e.savePreferenceUrl,!0),2):z.return()})};
KBW=function(e){return _.k(function(z){return z.nextAddress==1?z.yield(CwE(e.socsCookie,e.savePreferenceUrl),2):z.return()})};
bUE=function(e){e=e.xhr.responseText;if(!_.om(e,")]}'"))throw new of5;e=JSON.parse(e.substr(4));if((e.type||1)>1)throw new of5;e=e.id;DF$(e);G9q=_.LH(e);YTE(18E5,2);return e};
Jql=function(e,z){z=new Xj$(z);DF$("");G9q=_.j$o(z);e>0&&YTE(12E4,e-1);throw z;};
YTE=function(e,z){_.U3(function(){_.dHo().then(bUE,function(C){return Jql(z,C)}).thenCatch(_.S2)},e)};
uHW=function(){var e=_.NOZ();if(e!==void 0)return _.R5(e);G9q||(G9q=_.dHo().then(bUE).thenCatch(function(z){return Jql(2,z)}));
return G9q};
k9C=function(){var e=document;return _.OE(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(z){return"on"+z.toLowerCase()in e})};
qT5=function(e){e.addEventListener("click",function(z){var C=z.target;C&&C.getAttribute("href")&&(C=C.getAttribute("href"),_.Kq(window,C,"_blank"),z.preventDefault(),z.stopImmediatePropagation())})};
xTf=function(e){var z,C,w,K=(w=(C=((z=e.mainDownloadsListEntity)!=null?z:{})[_.ISN])==null?void 0:C.refresh)!=null?w:"",G;e=(G=e.refresh)==null?void 0:G[K];K=e!=null?e:{};return(K==null?0:K.refreshTime)?Number(K==null?void 0:K.refreshTime):0};
TGY=function(e,z){var C=_.PH(e);return z.every(function(w){var K;w=w==null?void 0:(K=w.playbackDataEntity)==null?void 0:K.key;if(!w)return!1;K=_.qq(_.Xn(w).entityId,"mainVideoEntity");return!!C[K]})};
$TL=function(e){e=_.vH(e.entities);return _.D21(e).length};
le5=function(e,z){if(z){var C;e=(C=_.xz(e.entities,"downloadQualityPickerEntity",z))!=null?C:void 0}else e=void 0;return e};
QoW=function(e){var z=document.getElementsByTagName("ytd-enforcement-message-view-model");z.length===0||getComputedStyle(z[0]).display==="none"?e(0,"p.h_"):e(1,"p.h_")};
nf$=function(){mTb=0;var e=[_.Mp(!0)];aeY&&_.zj(aeY,"yt-window-resized",e)};
Mjl=function(){mTb||(mTb=_.c5.addLowPriorityJob(nf$,200))};
UTq=function(){rql=0;HUC=_.HJa(document);var e=[HUC];aeY&&_.zj(aeY,"yt-window-scrolled",e)};
vfv=function(){rql||(rql=_.c5.addLowPriorityJob(UTq,200))};
WBo=function(e){e=e===void 0?null:e;Ieq.push(_.lk(window,"resize",Mjl));Ieq.push(_.lk(window,"scroll",vfv));e&&(aeY=e)};
RtY=function(){var e=_.Ig.getLocalStorage();e&&Pw$(e,e.mechanism.__iterator__(!0))};
LBE=function(e){_.k(function(z){if(z.nextAddress==1)return z.yield(e.delete("yt-appshell-assets"),2);_.E_(z)})};
htC=function(e){return _.X0((0,_.Z5h)(),e)};
Efq=function(){var e;_.k(function(z){return z.nextAddress==1?z.yield(n6.getInstance(),2):(e=z.yieldResult)?z.yield(OUY(e),0):z.jumpTo(0)})};
Vjv=function(){var e;_.k(function(z){return z.nextAddress==1?z.yield(M0.getInstance(),2):(e=z.yieldResult)?z.yield(FBE(e),0):z.jumpTo(0)})};
feL=function(e){LBE(e);Efq();Vjv()};
STf=function(e){var z,C;return _.k(function(w){if(w.nextAddress==1)return w.yield(_.L9g(e),2);if(z=w.yieldResult){var K;a:{if(z.headers&&(K=z.headers.get("date"))&&(K=Date.parse(K),!isNaN(K))){K=Math.round((0,_.as)()-K);break a}K=-1}C=K;if(C>-1)return w.return(C)}return w.return(-1)})};
uWf=function(){var e=_.wL.caches,z=_.cR("IS_SHELL_LOAD"),C,w;_.k(function(K){if(K.nextAddress==1)return C=-1,z?K.yield(STf(e),3):(w=_.nK(),C=Math.round((0,_.as)()-w),K.jumpTo(2));K.nextAddress!=2&&(C=K.yieldResult);C>=0&&C<2147483648&&_.Pf({appInstallDataAgeMs:C});_.E_(K)})};
dT$=function(e){var z=_.Cj(_.wL.location.href),C={};"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(w){var K=z.JSC$10201_queryData_.getValues(w);if(K==null?0:K.length)C[w]=K});
return _.MX(e,new Map(Object.entries(C)))};
DTZ=function(e){e=e.match(/(.*)::.*::.*/);if(e!==null)return e[1]};
iUv=function(e){if(_.y_L()){var z=Object.keys(window.localStorage);z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=DTZ(C);w===void 0||e.includes(w)||self.localStorage.removeItem(C)}}};
NGq=function(){if(!_.y_L())return!1;var e=_.f0(),z=Object.keys(window.localStorage);z=_.b(z);for(var C=z.next();!C.done;C=z.next())if(C=DTZ(C.value),C!==void 0&&C!==e)return!0;return!1};
soL=function(e){return _.tL$("NotificationsDisabled",e)};
BGW=function(){return Notification.permission!="granted"?Promise.resolve():_.bP5().then(function(e){return e?e.pushManager.getSubscription().then(function(z){if(z)return Promise.resolve();z={userVisibleOnly:!0,applicationServerKey:_.po("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return e.pushManager.subscribe(z).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
tjE=function(e){return _.bP5().then(function(z){if(!z||!z.active)return Promise.reject(new _.uh("serviceworker.postMessage",e,z));try{return z.active.postMessage(e),Promise.resolve()}catch(C){return Promise.reject(C)}})};
gfl=function(){tjE({type:"notifications_register",data:_.j5("ID_TOKEN")})};
cq$=function(){var e={isWide:_.E3.get("wide","0")==="1"},z=_.Tj();if(z=z.getFlag(165)||z.getFlag(174))e.theme=_.i6(!0);if(_.xQE()){var C=_.Dc()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";e.systemTheme=C}!z&&_.M("parent_tools_enable_app_settings")&&_.YB(window.location.href).theme!==void 0&&(e.theme=_.i6());if((z=joC)?!_.de.equals(z,e):e)z={currentValue:e},yq3&&(z.timeSinceLastSnapshotSecs=Math.round(((0,_.as)()-yq3)/1E3)),joC&&(z.previousValue=joC),_.gm("appSettingsCaptured",z),joC=
e,yq3=(0,_.as)()};
Aq3=function(){if(!_.cR("LOGGED_IN"))return Promise.resolve(!1);var e=_.Mv("service_worker_push_force_notification_prompt_tag");return e?_.wV("PromptTags").then(function(z){if(!z)return!0;var C=[];try{C=JSON.parse(z)}catch(w){return!1}return C&&C.indexOf(e)==-1}):Promise.resolve(!1)};
ZUf=function(){var e=_.n0("service_worker_push_prompt_delay_microseconds");return e?_.wV("PromptTime").then(function(z){return Promise.resolve(Date.now()-e>(z||0))}):Promise.resolve(!0)};
pjl=function(){var e=_.n0("service_worker_push_logged_out_prompt_watches");return e==-1?Promise.resolve(!1):_.wV("WatchCount").then(function(z){return z>=e})};
eha=function(){var e=_.b3(document,"yt-push-prompt-modal-bg");e&&_.hA(e)};
zhC=function(){return _.n0("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.wV("PromptCount").then(function(e){e||(e=0);return Promise.resolve(e<_.n0("service_worker_push_prompt_cap"))})};
C3f=function(e){return _.cR("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.cR("LOGGED_IN")&&(e===void 0?0:e)?Aq3().then(function(z){if(z)return!0;z=[zhC(),ZUf()];_.cR("LOGGED_IN")||z.push(pjl());return Promise.all(z).then(function(C){return C.every(function(w){return w})})}):Promise.resolve(!1)};
wFl=function(){_.wV("PromptCount").then(function(e){return _.tL$("PromptCount",e+1)}).then(function(){return _.tL$("PromptTime",Date.now())}).then(function(){var e=_.Mv("service_worker_push_force_notification_prompt_tag");
if(e)return _.wV("PromptTags").then(function(z){var C=[];if(z)try{C=JSON.parse(z)}catch(w){return!1}C||(C=[]);C.push(e);return _.tL$("PromptTags",JSON.stringify(C))})})};
oTo=function(){KTa||eha()};
GiW=function(e){e.style.zIndex=2147483648;e.style.pointerEvents="auto";e.style.backgroundColor="rgba(0, 0, 0, 0.6)";e.style.width="100%";e.style.height="100vh";e.style.position="absolute";e.style.top="0";e.style.left="0";e.style.border="none"};
Yza=function(){var e=_.b3(document,"yt-push-prompt-modal-bg");KTa=_.M("service_worker_push_prompt_modal_ignore_click");e?GiW(e):(e=_.tL("div",{id:"yt-push-prompt-modal-bg"}),GiW(e),document.body.appendChild(e),_.Hm7(document,"click",oTo))};
b7a=function(){var e=arguments;_.M("service_worker_push_prompt_modal_enable")&&Yza();return Notification.requestPermission().then(function(z){eha();var C=document.getElementById("ticker");C&&(C.className=C.classList.remove("show"));if(z=="granted")return BGW().then(function(){soL(!1);gfl();return Promise.resolve(!0)});
z=="denied"&&gfl();return Promise.resolve(!1)}).catch(function(){eha();
return Promise.reject.apply(Promise,_.s_(e))})};
XFv=function(e){e=e===void 0?!1:e;var z=_.mQ7().client;if(z&&z.browserVersion){var C=z.browserVersion,w=z.browserName=="CHROME"&&_.Tg(C,"50.0.0")<0;z=z.browserName=="OPERA"&&_.Tg(C,"42.0.0")<0;if(w||z)return Promise.resolve()}return _.k8a().then(function(K){if(!K)return Promise.resolve();K=BGW().then(function(){return tjE({type:"notifications_check_registration",data:_.j5("ID_TOKEN")})});
return Notification.permission!="default"?K.catch(function(){}):K.then(function(){return C3f(e)}).then(function(G){if(G)return wFl(),b7a().then(function(){})}).catch(function(){})})};
Jm$=function(e){return _.XIl(e)?XFv():Promise.resolve()};
kiq=function(e){var z=e.installing||e.waiting;return e.active||!z?Promise.resolve(e):new Promise(function(C){var w=function(K){K=K.target;if(K.state==="activated"||K.state==="redundant")z.removeEventListener("statechange",w),C(e)};
z.addEventListener("statechange",w)})};
qzY=function(){var e=new _.Org("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.MZ(e,{mainAppWeb:_.tU()});var z=_.mfc;_.M("service_worker_forward_exp_params")&&(z=dT$(z));try{var C=_.MIg(z).catch(function(){_.rh(e,"FAILURE");return new Promise(function(){})});
_.M("service_worker_push_enabled")&&C.then(function(w){_.rh(e,"SUCCESS");return w}).then(kiq).then(Jm$)}catch(w){if(_.rh(e,"FAILURE"),w.name!=="SecurityError")throw w;
}};
xK3=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&qzY()};
TEZ=function(e,z){var C={};z&&(C.serializedYpcFamilyCreateLoggingParams=z);_.gm(e,C);_.ju()};
$KZ=function(e,z){var C={};C.serializedYpcRefundFlowLoggingParams=z;e&&(C.eventType=e);_.gm("ypcRefundFlowEvent",C);_.ju()};
lhf=function(e){e&&_.H$4("transactionFlowSucceeded",e)};
QxW=function(e){e&&_.g7("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",e,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
mKW=function(e){var z,C,w,K,G,X,J;_.k(function(q){if(q.nextAddress==1)return q.yield(_.G28(),2);if(q.nextAddress!=3){if(!q.yieldResult)return q.return(!1);z=[];return q.yield(_.Jq.keys(),3)}C=q.yieldResult;w=_.b(C);for(K=w.next();!K.done;K=w.next())G=K.value,X=_.Krg(G),J=X.datasyncId,!J||e.includes(J)||z.push(_.Jq.delete(G));return q.return(Promise.all(z).then(function(T){return T.some(function(Q){return Q})}))})};
ahZ=function(){var e,z,C,w,K,G,X;return _.k(function(J){if(J.nextAddress==1)return J.yield(_.G28(),2);if(J.nextAddress!=3){if(!J.yieldResult)return J.return(!1);e=_.f0("cache contains other");return J.yield(_.Jq.keys(),3)}z=J.yieldResult;C=_.b(z);for(w=C.next();!w.done;w=C.next())if(K=w.value,G=_.Krg(K),(X=G.datasyncId)&&X!==e)return J.return(!0);return J.return(!1)})};
nTq=function(){var e=_.lh().resolve(_.$B(_.QfT));return e?e.getCurrentTime():0};
M3$=function(){var e,z,C,w,K,G,X,J,q,T,Q,m,a,n;return _.k(function(H){switch(H.nextAddress){case 1:e={},z=_.Xz4(),C=_.b(Object.entries(z)),w=C.next();case 4:if(w.done){H.jumpTo(3);break}K=w.value;G=_.b(K);X=G.next().value;J=G.next().value;q=X;T=J;if(!T){H.jumpTo(5);break}return H.yield(T(),8);case 8:e[q]=H.yieldResult;case 5:w=C.next();H.jumpTo(4);break;case 2:Q=_.b(),m=Q.next();case 9:if(m.done){H.jumpTo(3);break}a=m.value;n=z[a];if(!n){H.jumpTo(10);break}return H.yield(n(),13);case 13:e[a]=H.yieldResult;
case 10:m=Q.next();H.jumpTo(9);break;case 3:return H.return(e)}})};
rmW=function(){var e;_.k(function(z){if(z.nextAddress==1)return z.yield(M3$(),2);e=z.yieldResult;return z.yield(navigator.clipboard.writeText(JSON.stringify(e,null,2)),0)})};
H7o=function(e,z){return _.xz(e.entities,"superThanksSelectedTierEntity",z)};
UK$=function(e,z){return{popup:{searchSuggestionReportDialog:{searchQuery:e,title:_.kk("SBOX_INAPPROPRIATE_TITLE"),suggestions:z,categoryLabel:_.kk("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.kk("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.kk("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.kk("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.kk("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.kk("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.kk("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.kk("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.kk("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.kk("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
vTl=function(e){var z,C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N;return _.k(function(D){switch(D.nextAddress){case 1:return D.yield(_.l7(),2);case 2:return(z=D.yieldResult)?D.yield(_.l41(z),3):D.return();case 3:C=D.yieldResult;if(!C)return D.return();K=((w=C.offlineVideos)==null?void 0:w.length)||0;X=((G=C.offlinePlaylists)==null?void 0:G.length)||0;if(K===0&&X===0)return D.return();J=0;if(C.offlineVideos)for(q=_.b(C.offlineVideos),T=q.next();!T.done;T=q.next())Q=T.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
Q.videoState&&(J+=1);e.offline_videos_count=K.toString();_.M("kevlar_log_offline_current_network_type_ks")||(e.offline_current_network_type=(m=_.gks())!=null?m:"CONN_INVALID");_.M("kevlar_log_updated_time_for_smart_downloads")&&(a=_.eB().getState().entities,n=_.Ok(a),H=xTf(a),e.offline_smart_downloads_last_sync_time_ms=n.toString(),e.offline_smart_downloads_next_sync_time_ms=H.toString());e.offline_videos_playable=J.toString();e.offline_playlists_count=X.toString();C.offlineVideos&&(I=C.offlineVideos.reduce(function(g,
y){y.downloadedBytes&&(g+=Number(y.downloadedBytes));return g},0).toString())&&(e.offline_used_disk_space_bytes=I);
if(!((L=navigator)==null?0:(h=L.storage)==null?0:h.estimate)){D.jumpTo(4);break}return D.yield(navigator.storage.estimate(),5);case 5:E=D.yieldResult,e.offline_free_disk_space_bytes=(((N=E)==null?void 0:N.quota)||0).toString();case 4:e.offline_client_state=JSON.stringify(C),_.E_(D)}})};
Ih5=function(e){e=e.match(/(.*)::.*::.*/);if(e!==null)return e[1]};
WTY=function(e){if(_.S1s()){var z=Object.keys(window.sessionStorage);z=_.b(z);for(var C=z.next();!C.done;C=z.next()){C=C.value;var w=Ih5(C);w===void 0||e.includes(w)||self.sessionStorage.removeItem(C)}}};
P33=function(){if(!_.S1s())return!1;var e=_.f0(),z=Object.keys(window.sessionStorage);z=_.b(z);for(var C=z.next();!C.done;C=z.next())if(C=Ih5(C.value),C!==void 0&&C!==e)return!0;return!1};
rZ=function(e,z,C){(_.M("desktop_keyboard_shortcut_usage_log")||C&&_.M("web_shorts_keyboard_shortcut_usage_log"))&&(z?_.k9.get(e):_.J9.get(e))&&(e=z?_.e9v.get(e):_.pIZ.get(e))&&_.gQ(_.Pr(),e)};
RhW=function(e,z){return e.findIndex(function(C){return C.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(z.keyCode):!1};
LTL=function(e,z){z.stack&&(e.stack+="\n"+z.stack);return e};
V3o=function(e){var z=hhL(e,"Content-Type");if(!z)return null;z=z.toLowerCase();if(z.startsWith("application/json"))return z.startsWith("application/json+protobuf")?new O73:new _.Er;if(z.startsWith("application/x-protobuf")){e=hhL(e,"Content-Transfer-Encoding");if(!e)return new ETo;if(e.toLowerCase()=="base64")return new FTv}return null};
BEL=function(e,z,C,w){var K=new fhl(function(J,q){return SzW.has(q)?J.sentinel==="gal"&&J.event!==void 0:!1},function(J){J.event?(J=uRf(J.event),J=!J||dKL(w,J)?!0:_.hd(e.lastEvent,Hd,2,U0)?!_.hd(J,vd,1,U0)&&!_.hd(J,Hd,2,U0):!_.hd(J,vd,1,U0)&&!_.hd(J,Hd,3,U0)):J=!0;
return J});
C=_.MX(e.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",DKo(C)]]));if(e.nestedOrigins!==void 0)for(var G=_.b(e.nestedOrigins),X=G.next();!X.done;X=G.next())C=_.MX(C,new Map([["origin",X.value]]));return i7b(K,C,z).then(function(J){J=NEf(J.event);if(_.hd(J,vd,1,U0)){var q,T=(q=_.BW(J,vd,1,U0))==null?void 0:_.i5(q,2);T&&w.JSC$19912_logErrorEvent(sxf(T));q=_.BW(J,vd,1,U0);_.i5(q,2)===4?(J=_.BW(J,vd,1,U0),J={statusCode:11,statusMessage:_.Ds(J,
3)}):(J=_.BW(J,vd,1,U0),J={statusCode:12,statusMessage:_.Ds(J,3)});return J}_.hd(J,Hd,3,U0)?(J=_.BW(J,Hd,3,U0),J={statusCode:1,consentLanguageKeys:_.Ds(J,2)}):J={statusCode:1};return J}).catch(function(J){return J.errorCode!==void 0?{statusCode:J.errorCode,
statusMessage:J.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
yma=function(e){var z={};if(e===void 0||e===null)return z;e.getToken()!==void 0&&t3b(e.getToken())&&t3b(e.getToken()).length>0&&(z.scopes=new Set(t3b(e.getToken())));e.getToken()!==void 0&&gTb(e.getToken())&&gTb(e.getToken()).length>0&&(z.capabilities=new Set(gTb(e.getToken())));_.Ds(e,3)!==void 0&&(z.consistencyKey=_.Ds(e,3));e.getName()!==void 0&&e.getName()!==""&&(z.linkName=e.getName());_.Lb(e,jx5,4)&&(e=_.ra(e,jx5,4),e=Object.assign({},_.Ds(e,1)&&{userId:_.Ds(e,1)},_.Ds(e,2)&&{displayName:_.Ds(e,
2)},_.Ds(e,3)&&{email:_.Ds(e,3)},_.Ds(e,5)&&{username:_.Ds(e,5)},_.Ds(e,4)&&{profilePicture:_.Ds(e,4)}),z.profile=e);return z};
cmL=function(e,z){var C=e.flowParams,w;return{serviceId:C.serviceId,sessionId:C.sessionId,currentFlow:e.currentFlow,googleScopesString:z,linkingSessionSerialized:e.session.serialize(),consentLanguageKeys:C.consentLanguageKeys,callerState:e.callerState,dynamicUrlParameters:C.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(w=C.partnerConfigMinReadTimestamp)==null?void 0:w.serialize()}};
zPE=function(e){var z=e.googleScopes!==void 0?Array.from(e.googleScopes).join(","):"";Amv(cmL(e,z),e.config.localStorage);z=Z7E(e);return z===null?Promise.resolve(pFC):z.start().then(function(C){var w,K=(w=C.link)==null?void 0:w.consistencyKey;return C.statusCode===1&&e.googleScopes!==void 0&&e.googleScopes.size>0&&K!==void 0?(w=e.flowParams,ePa(w.serviceId,w.sessionId,e.googleScopes,K,w.galService,e.config,C)):C})};
w0L=function(e){var z=Z7E(e);return z===null?Promise.resolve(Cna({statusCode:7,statusMessage:"Failed to create flow object"},e.callerState)):z.complete().then(function(C){var w,K=(w=C.link)==null?void 0:w.consistencyKey;return C.statusCode===1&&e.googleScopes!==void 0&&e.googleScopes.size>0&&K!==void 0?(w=e.flowParams,ePa(w.serviceId,w.sessionId,e.googleScopes,K,w.galService,e.config,C)):Cna(C,e.callerState)},function(C){return Cna({statusCode:12,
statusMessage:"Failed to complete the flow: "+C.message},e.callerState)})};
ePa=function(e,z,C,w,K,G,X){return K8q(K,{serviceId:e,sessionId:z,googleScopes:C,consistencyKey:w}).then(function(){return X},function(J){return K.deleteLink({serviceId:e,
sessionId:z,accountLinkingEntryPoint:G.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+J.message}},function(q){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+q.message}})})};
Z7E=function(e){switch(e.currentFlow){case 1:var z=e.flowParams;e=_.ra(e.session,osC,1);return GVa.createOAuthFlow(z,e);case 2:case 3:return z=e.flowParams,e=_.ra(e.session,YA3,6),bsv.createStreamlinedFlow(z,e);default:return null}};
JSf=function(e,z){e===2&&(e=3);var C=0;X0v.indexOf(e)!==-1&&(C=X0v.indexOf(e)+1);for(e=C;e<X0v.length;e++)if(z.has(X0v[e]))return X0v[e]};
xlW=function(e){var z=e.serviceId;var C=e.sessionId;var w=e.config;var K=e.galService;var G=e.capabilities;var X=e.scopes;var J=e.loginHint;var q=e.callerState;var T=e.consentLanguageKeys;var Q=e.linkName;var m=e.dynamicUrlParameters;var a=e.partnerConfigMinReadTimestamp;e=w.dataUsageNoticeConfig?w.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return K.startLinkingSession({serviceId:z,sessionId:C,capabilities:G,scopes:X,loginHint:J,callerState:q,supportedFlows:kVY(w.supportedFlows),completionUrl:w.completionUrl,
accountLinkingEntryPoint:w.accountLinkingEntryPoint,consentLanguageKeys:T,dataUsageNoticeConfig:e,linkName:Q,dynamicUrlParameters:m,partnerConfigMinReadTimestamp:a}).then(function(n){return new qAv(z,C,w,K,n,void 0,q,T,m,a)})};
aWf=function(e,z,C){var w=(new T$L(z.localStorage)).getSession(e);if(w===null)return Promise.resolve({statusCode:2});$lo(e,z.localStorage);var K=lWv(w.linkingSessionSerialized),G=w.googleScopesString!==""&&w.googleScopesString!==void 0?new Set(w.googleScopesString.split(",")):void 0,X=w.partnerConfigMinReadTimestampSerialized?Qea(w.partnerConfigMinReadTimestampSerialized):void 0;return mla(new qAv(e,w.sessionId,z,C,K,G,w.callerState,w.consentLanguageKeys,w.dynamicUrlParameters,X),w.currentFlow,w.consentLanguageKeys)};
Amv=function(e,z){z=new T$L(z);z.storage!==null&&z.storage.set("SAVED_SESSION",e)};
$lo=function(e,z){z=new T$L(z);if(z.storage!==null){var C=z.storage.get("SAVED_SESSION");C!==void 0&&C.serviceId===e&&z.storage.remove("SAVED_SESSION")}};
kVY=function(e){var z=new Set;e=_.b(e);for(var C=e.next();!C.done;C=e.next())C=C.value,C!==1&&nsL.has(C)&&z.add(nsL.get(C));return z};
Cna=function(e,z){z!==void 0&&(e.callerState=z);return e};
M45=function(e){switch(e){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
Ulb=function(e){return new rSY(e,new HsY(e))};
W8f=function(e,z){z=z===void 0?!1:z;var C=document.createElement("div");e&&(C.style.transform="scaleX(-1)");C.style.backgroundColor=z?"rgba(138,180,248,.24)":"#e8f0fe";C.style.height="4px";C.style.overflow="hidden";C.style.position="absolute";C.style.top="0";C.style.width="100%";C.style.zIndex="1500";C.setAttribute("aria-label","Loading");C.setAttribute("aria-live","polite");e=document.createElement("style");e.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  }";
C.appendChild(e);e=vso();e.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";e.style.left="-145.166611%";var w=IW3(z);w.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";e.appendChild(w);C.appendChild(e);e=vso();e.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";e.style.left="-54.888891%";z=IW3(z);z.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
e.appendChild(z);C.appendChild(e);return C};
vso=function(){var e=document.createElement("div");e.style.height="100%";e.style.position="absolute";e.style.transformOrigin="top left";e.style.width="100%";return e};
IW3=function(e){var z=document.createElement("span");z.style.borderTop=e?"4px solid #669df6":"4px solid #4285f4";z.style.display="inline-block";z.style.position="absolute";z.style.width="100%";return z};
Pn3=function(e){return e==null?void 0:_.Lao(e).valueOf()};
OsC=function(e){var z=document.body,C=!1,w=function(){C||(C=!0,RPC(K,G),setTimeout(function(){z.removeChild(G);z.removeChild(K)},150))},K=L8Z(e,getComputedStyle(z).direction==="rtl",w),G=hPo(w);
RPC(K,G);z.appendChild(G);z.appendChild(K);window.requestAnimationFrame(function(){G.style.opacity="1";K.style.opacity="1";K.style.transform="translate(-50%, -50%) scale(1)";K.children[0].focus()})};
L8Z=function(e,z,C){var w=document.createElement("div");w.style.position="fixed";w.style.alignItems="center";w.style.backgroundColor=e?"rgb(32, 33, 36)":"white";w.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";w.style.display="flex";w.style.flexDirection="column";w.style.justifyContent="center";w.style.left="50%";w.style.top="50%";w.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";w.style.zIndex="2002";document.body.clientWidth>=
660?(w.style.borderRadius="8px",w.style.minHeight="220px",w.style.maxHeight="90%",w.style.maxWidth="90%",w.style.minWidth="540px"):(w.style.height="100%",w.style.width="100%");w.setAttribute("aria-label","Error");w.setAttribute("aria-modal","true");w.setAttribute("role","alertdialog");w.addEventListener("keydown",function(G){G.key==="Escape"&&C()});
z=Esl(e,z,C);w.appendChild(F8E(z));w.appendChild(z);var K=document.createElement("img");K.src=e?"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";K.style.height="72px";K.style.width="72px";K.style.color="#9aa0a6";K.setAttribute("alt","");w.appendChild(K);K=document.createElement("h1");K.textContent="Something went wrong.  Try again.";
K.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";K.style.lineHeight="24px";K.style.fontSize="16px";K.style.textAlign="center";K.style.letterSpacing="0.1px";K.style.color=e?"rgb(232,234,237)":"#3c4043";w.appendChild(K);w.appendChild(F8E(z));return w};
Esl=function(e,z,C){var w=document.createElement("button");w.style.backgroundColor="transparent";w.style.border="none";w.style.borderRadius="50%";w.style.cursor="pointer";w.style.outline="none";w.style.padding="12px";w.setAttribute("aria-label","Close dialog");w.style.position="absolute";w.style.top="0";z?w.style.right="0":w.style.left="0";w.addEventListener("focus",function(){w.style.backgroundColor=e?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
w.addEventListener("blur",function(){w.style.backgroundColor="transparent"});
w.addEventListener("mouseenter",function(){w.style.backgroundColor=e?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
w.addEventListener("mouseleave",function(){w.style.backgroundColor="transparent"});
w.addEventListener("click",C);w.addEventListener("keydown",function(K){K.key!=="Enter"&&K.key!=="Space"||C()});
z=document.createElement("img");z.src=e?"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";z.style.display="block";z.style.height="24px";z.style.width="24px";z.setAttribute("alt","");w.appendChild(z);return w};
F8E=function(e){var z=document.createElement("div");z.setAttribute("tabindex","0");z.setAttribute("aria-hidden","true");z.addEventListener("focus",function(){return void e.focus()});
return z};
hPo=function(e){var z=document.createElement("div");z.style.backgroundColor="rgba(32,33,36,0.6)";z.style.bottom="0";z.style.left="0";z.style.position="fixed";z.style.right="0";z.style.top="0";z.style.transition=" opacity 150 ms linear";z.style.zIndex="2001";z.addEventListener("click",e);return z};
RPC=function(e,z){z.style.opacity="0";e.style.opacity="0";e.style.transform="translate(-50%, -50%) scale(0.8)"};
V4a=function(e,z){e.sandbox&&e.sandbox.add&&(e.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),e.sandbox.add("allow-downloads"));e.src=z};
If=function(e){fWW.call(this,e)};
isl=function(e,z){z=z===void 0?!1:z;this.parsedImageUrl_=null;e instanceof SA3||(uZL==void 0&&(uZL=new dll),e=uZL.parse(e.toString(),z));e=this.parsedImageUrl_=e;e.JSC$20125_parsedOptions_==void 0&&((z=e.getOptions())||(z=""),e.JSC$20125_parsedOptions_=(new DlE).parse(z));fWW.call(this,e.JSC$20125_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;e=this.parsedImageUrl_;z=e.uri_.JSC$10201_port_;this.JSC$20127_domain_=e.uri_.JSC$10201_domain_+(z?":"+z:"");this.JSC$20127_query_=
this.parsedImageUrl_.uri_.JSC$10201_queryData_.toString()};
N$q=function(e){this.mode=4;this.data=e;this.parsedData=[];e=0;for(var z=this.data.length;e<z;e++){var C=[],w=this.data.charCodeAt(e);w>65536?(C[0]=240|(w&1835008)>>>18,C[1]=128|(w&258048)>>>12,C[2]=128|(w&4032)>>>6,C[3]=128|w&63):w>2048?(C[0]=224|(w&61440)>>>12,C[1]=128|(w&4032)>>>6,C[2]=128|w&63):w>128?(C[0]=192|(w&1984)>>>6,C[1]=128|w&63):C[0]=w;this.parsedData.push(C)}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))};
se3=function(e){this.typeNumber=0;this.errorCorrectLevel=e===void 0?2:e;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Wd=function(e,z){if(e.length==void 0)throw Error("Qk`"+e.length+"`"+z);for(var C=0;C<e.length&&e[C]==0;)C++;this.num=Array(e.length-C+z);for(z=0;z<e.length-C;z++)this.num[z]=e[z+C]};
B$$=function(e,z){this.totalCount=e;this.dataCount=z};
t4W=function(){this.buffer=[];this.length=0};
gs5=function(){var e=!1;if(_.Ho7()){e=_.Q1();var z="";_.I81()?(z=/Windows (?:NT|Phone) ([0-9.]+)/,z=(e=z.exec(e))?e[1]:"0.0"):_.Lo()?(z=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,z=(e=z.exec(e))&&e[1].replace(/_/g,".")):_.vNo()?(z=/Mac OS X ([0-9_.]+)/,z=(e=z.exec(e))?e[1].replace(/_/g,"."):"10"):_.q5(_.Q1(),"KaiOS")?(z=/(?:KaiOS)\/(\S+)/i,z=(e=z.exec(e))&&e[1]):_.Ho7()?(z=/Android\s+([^\);]+)(\)|;)/,z=(e=z.exec(e))&&e[1]):_.W7h()&&(z=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,z=(e=z.exec(e))&&e[1]);e=
z||""}return e};
p0L=function(e,z){this.JSC$20150__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(z)for(var C in z)this.JSC$20150__htOption[C]=z[C];this.JSC$20150__htOption.useSVG&&(je$=ySY);this.JSC$20150__android=gs5();this.JSC$20150__el=e;this._oQRCode=null;this._oDrawing=new je$(this.JSC$20150__el,this.JSC$20150__htOption);this.JSC$20150__htOption.text&&(e=this.JSC$20150__htOption.text,this._oQRCode=new se3(this.JSC$20150__htOption.correctLevel),cSZ(this._oQRCode,
e),z=this._oQRCode,AS$(z,!1,Zsf(z)),this.JSC$20150__el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage())};
eiv=function(e,z,C,w,K){e.save();var G=new Path2D;G.roundRect(z,C,w*7,w*7,w*2);G.roundRect(z+w,C+w,w*5,w*5,w*1.3);G.roundRect(z+2*w,C+2*w,w*3,w*3,w);e.clip(G,"evenodd");e.fillStyle=K;e.fillRect(0,0,e.canvas.width,e.canvas.height);e.restore()};
Pd=function(e,z){if(typeof e!=="function")throw Error("Tk");return _.wL.setTimeout(function(){e()},z)};
Rf=function(){};
CHY=function(e,z,C,w,K){(new Rf).debug("TestLoadImageWithRetries: "+K);if(w==0)C(!1);else{var G=K||0;w--;zib(e,z,function(X){X?C(!0):_.wL.setTimeout(function(){CHY(e,z,C,w,G)},G)})}};
zib=function(e,z,C){var w=new Rf;w.debug("TestLoadImage: loading "+e);var K=new Image;K.onload=function(){try{w.debug("TestLoadImage: loaded"),wM5(K),C(!0)}catch(G){}};
K.onerror=function(){try{w.debug("TestLoadImage: error"),wM5(K),C(!1)}catch(G){}};
K.onabort=function(){try{w.debug("TestLoadImage: abort"),wM5(K),C(!1)}catch(G){}};
K.ontimeout=function(){try{w.debug("TestLoadImage: timeout"),wM5(K),C(!1)}catch(G){}};
_.wL.setTimeout(function(){if(K.ontimeout)K.ontimeout()},z);
K.src=e};
wM5=function(e){e.onload=null;e.onerror=null;e.onabort=null;e.ontimeout=null};
KUb=function(){this.front_=[];this.back_=[]};
o3L=function(e,z){this.action=e;this.params=z||{}};
GOL=function(e,z){_.Sn.call(this);this.delay_=new _.d9(this.JSC$20276_onTick_,0,this);_.I4(this,this.delay_);this.JSC$20274_interval_=5E3;this.nextTickTime_=0;if(typeof e==="function")z&&(e=(0,_.uZ)(e,z));else if(e&&typeof e.handleEvent==="function")e=(0,_.uZ)(e.handleEvent,e);else throw Error("ya");this.JSC$20276_listener_=e};
L6=function(e,z,C,w,K,G,X,J,q,T,Q,m,a,n,H){var I=this;C=C===void 0?!1:C;w=w===void 0?function(){return""}:w;
K=K===void 0?!1:K;G=G===void 0?!1:G;X=X===void 0?!1:X;J=J===void 0?function(){return _.oS({})}:J;
q=q===void 0?!1:q;Q=Q===void 0?!1:Q;m=m===void 0?!1:m;a=a===void 0?!1:a;n=n===void 0?!1:n;this.JSC$20277_pathPrefix_=e;this.defaultQueryParams_=z;this.pubsub_=new _.hJ;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!H)?H(function(){I.safeReconnect_()}):new GOL(this.safeReconnect_,this);
this.JSC$20277_channel_=null;this.JSC$20277_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20277_pendingMessages_=[];this.enableAsyncTest_=C;this.JSC$20277_getXsrfToken_=w;this.useAsyncBrowserChannelHandler_=G;this.getAuthorizationHeader_=J;this.getAuthorizationHeaderSync_=T;this.enableCachedUpdateAuthorizationHeader_=X;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.oS();this.enableLoungeTokenRefresh_=K;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
q;this.disableMdxAuthForNonPlaybackMessages_=Q;this.disableMdxAuthForAdMessages_=m;this.enableMdxAuthForConnectionOnly_=a;this.disableMdxAuthForShortsMessages_=n;this.JSC$20277_channelOpenedCounter=new YQo;this.JSC$20277_channelClosedCounter=new bMf;this.channelMessageSentCounter=new XMC;this.JSC$20277_channelMessageReceivedCounter=new J8o;this.JSC$20277_channelErrorCounter=new kOa;this.pendingMapsOnClosedCounter=new qQo;this.undeliveredMapsOnClosedCounter=new xZo};
ThC=function(e){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;e=e||document.location.href;var z=Number(_.JJ(e)[4]||null)||"";z&&(this.port=":"+z);this.domain=_.kB(e)||"";e=_.Q1();e.search("MSIE")>=0&&_.Tg(e.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
h9=function(e){e=e||{};this.name=e.name||"";this.id=e.id||e.screenId||"";this.token=e.token||e.loungeToken||"";this.uuid=e.uuid||e.dialId||"";this.idType=e.screenIdType||"normal";this.secret=e.screenIdSecret||""};
$ZW=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var z=Math.random()*16|0;return(e=="x"?z:z&3|8).toString(16)})};
lrZ=function(e){return _.i4(e,function(z){return{key:z.id,name:z.name}})};
QnY=function(e,z){return _.OE(e,function(C){return C||z?!C!=!z?!1:C.id==z.id:!0})};
O0=function(e,z){return _.OE(e,function(C){return mZL(C,z)})};
HMv=function(){var e=ar$(),z=n3Z();if(MoW()){var C=e,w=_.f8m(C,z);w<0&&_.ENg(C,-(w+1),0,z)}e=r8v(e);if(e.length==0)try{_.NQk("remote_sid")}catch(K){}else try{_.FF("remote_sid",e.join(","),-1)}catch(K){}};
ar$=function(){var e=_.PJ("yt-remote-connected-devices")||[];e.sort(_.Vhh);return e};
r8v=function(e){if(e.length==0)return[];var z=e[0].indexOf("#"),C=z==-1?e[0]:e[0].substring(0,z);return _.i4(e,function(w,K){return K==0?w:w.substring(C.length)})};
UZb=function(e){_.WJ("yt-remote-connected-devices",e,86400)};
n3Z=function(){if(v3C)return v3C;var e=_.PJ("yt-remote-device-id");e||(e=$ZW(),_.WJ("yt-remote-device-id",e,31536E3));for(var z=ar$(),C=1,w=e;_.Sh(z,w);)C++,w=e+"#"+C;return v3C=w};
IrL=function(){return _.PJ("yt-remote-session-browser-channel")};
MoW=function(){return _.PJ("yt-remote-session-screen-id")};
RiE=function(e){e.length>5&&(e=e.slice(e.length-5));var z=_.i4(WUl(),function(w){return w.loungeToken}),C=_.i4(e,function(w){return w.loungeToken});
_.te1(C,function(w){return!_.Sh(z,w)})&&PHo();
_.WJ("yt-remote-local-screens",e,31536E3)};
WUl=function(){return _.PJ("yt-remote-local-screens")||[]};
PHo=function(){_.WJ("yt-remote-lounge-token-expiration",!0,86400)};
LUf=function(e){e||(_.Rg("yt-remote-session-screen-id"),_.Rg("yt-remote-session-video-id"));HMv();e=ar$();_.D8(e,n3Z());UZb(e)};
OMo=function(){hif();return E0?!!E0.get("yt-remote-use-staging-server"):!1};
hif=function(){if(!E0){var e=_.s3();e&&(E0=new _.d3(e))}};
frb=function(e,z,C,w,K){C=C===void 0?function(){return""}:C;
var G=function(){return new L6(F_(e,"/bc"),z,!1,C,w)};
return _.M("enable_mdx_web_channel_desktop")?new E3v(function(){return new FUo(F_(e,"/wc"),z,C)}):new Vo5(G,K)};
DZb=function(){var e=SQW;u9E();V0.push(e);dZ3()};
f6=function(e,z){u9E();var C=iM$(e,String(z));V0.length==0?Nh3(C):(dZ3(),_.oX(V0,function(w){w(C)}))};
Sr=function(e){f6("CP",e)};
u9E=function(){V0||(V0=_.pd("yt.mdx.remote.debug.handlers_")||[],_.lM("yt.mdx.remote.debug.handlers_",V0))};
Nh3=function(e){var z=(snb+1)%50;snb=z;BhY[z]=e;tol||(tol=z==49)};
dZ3=function(){var e=V0;if(BhY[0]){var z=tol?snb:-1,C={};do C={record$jscomp$15:void 0},z=(z+1)%50,C.record$jscomp$15=BhY[z],_.oX(e,function(w){return function(K){K(w.record$jscomp$15)}}(C));
while(z!=snb);BhY=Array(50);snb=-1;tol=!1}};
iM$=function(e,z){var C=(Date.now()-g3E)/1E3;C.toFixed&&(C=C.toFixed(3));var w=[];w.push("[",C+"s","] ");w.push("[","yt.mdx.remote","] ");w.push(e+": "+z,"\n");return w.join("")};
ux=function(e){_.X_.call(this);this.JSC$20302_logName_=e;this.screens=[]};
D1=function(e){ux.call(this,"LocalScreenService");this.JSC$20309_http_=e;this.loungeTokenRefreshTimer_=NaN;dZ(this);this.info("Initializing with "+jnf(this.screens))};
ix=function(e,z){z=z===void 0?!1:z;ux.call(this,"ScreenService");this.JSC$20315_http_=e;this.disableAutomaticScreenCache_=z;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};y8q(this)};
N0=function(e,z,C){_.X_.call(this);this.JSC$20319_logName_=C;this.JSC$20319_screenService_=e;this.receiver_=z;this.screen_=null};
kkq=function(e,z,C){C.disableCastApi?s0("Cannot initialize because disabled by Mdx config."):c85()?A8E(e,C)&&(ZMo(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?pM$(z):(window.__onGCastApiAvailable=function(w,K){w?pM$(z):(Bd("Failed to load cast API: "+K),e0b(!1),ZMo(!1),_.Rg("yt-remote-cast-available"),_.Rg("yt-remote-cast-receiver"),z0a(),z(!1))},C.loadCastApiSetupScript?_.Vq(C5f):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
wWo()>=60&&KD3():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?odl():wWo()>=89?Gka():(Y7a(),bbl(XWo.map(JdL))))):s0("Cannot initialize because not running Chrome")};
z0a=function(){s0("dispose");var e=t9();e&&e.dispose();_.lM("yt.mdx.remote.cloudview.instance_",null);q7L(!1);_.R9o(xIl);xIl.length=0};
T4Z=function(){return!!_.PJ("yt-remote-cast-installed")};
$IW=function(){var e=_.PJ("yt-remote-cast-receiver");return e?e.friendlyName:null};
lsv=function(){s0("clearCurrentReceiver");_.Rg("yt-remote-cast-receiver")};
QP5=function(){return T4Z()?t9()?t9().getCastSession():(Bd("getCastSelector: Cast is not initialized."),null):(Bd("getCastSelector: Cast API is not installed!"),null)};
asl=function(e,z){mIL()?t9().setConnectedScreenStatus(e,z):Bd("setConnectedScreenStatus called before ready.")};
c85=function(){var e=_.Q1().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.U7||e};
A8E=function(e,z){var C=!1;t9()||(e=new gZ(e,z),e.subscribe("yt-remote-cast2-availability-change",function(w){_.WJ("yt-remote-cast-available",w);af("yt-remote-cast2-availability-change",w)}),e.subscribe("yt-remote-cast2-receiver-selected",function(w){s0("onReceiverSelected: "+w.friendlyName);
_.WJ("yt-remote-cast-receiver",w);af("yt-remote-cast2-receiver-selected",w)}),e.subscribe("yt-remote-cast2-receiver-resumed",function(w){s0("onReceiverResumed: "+w.friendlyName);
_.WJ("yt-remote-cast-receiver",w);af("yt-remote-cast2-receiver-resumed",w)}),e.subscribe("yt-remote-cast2-session-change",function(w){s0("onSessionChange: "+ndW(w));
w||_.Rg("yt-remote-cast-receiver");af("yt-remote-cast2-session-change",w)}),_.lM("yt.mdx.remote.cloudview.instance_",e),C=!0);
s0("cloudview.createSingleton_: "+C);return C};
t9=function(){return _.pd("yt.mdx.remote.cloudview.instance_")};
pM$=function(e){e0b(!0);ZMo(!1);t9().init(!1,function(z){z?(q7L(!0),_.LOh("yt-remote-cast2-api-ready")):(Bd("Failed to initialize cast API."),e0b(!1),_.Rg("yt-remote-cast-available"),_.Rg("yt-remote-cast-receiver"),z0a());e(z)})};
s0=function(e){f6("cloudview",e)};
Bd=function(e){f6("cloudview",e)};
e0b=function(e){s0("setCastInstalled_ "+e);_.WJ("yt-remote-cast-installed",e)};
mIL=function(){return!!_.pd("yt.mdx.remote.cloudview.apiReady_")};
q7L=function(e){s0("setApiReady_ "+e);_.lM("yt.mdx.remote.cloudview.apiReady_",e)};
ZMo=function(e){_.lM("yt.mdx.remote.cloudview.initializing_",e)};
jr=function(e){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(e)};
h0l=function(e){hif();if(!E0||!E0.get("yt-remote-disable-remote-module-for-dev")){e=_.j5("MDX_CONFIG")||e;RtY();HMv();Mv5||(Mv5=new ThC(e?e.loungeApiHost:void 0),OMo()&&(Mv5.basePath="/api/loungedev"));y0||(y0=_.pd("yt.mdx.remote.deferredProxies_")||[],_.lM("yt.mdx.remote.deferredProxies_",y0));rdf();var z=Hb5();if(!z){var C=new ix(Mv5,e?e.disableAutomaticScreenCache||!1:!1);_.lM("yt.mdx.remote.screenService_",C);z=Hb5();var w={};e&&(w={appId:e.appId,disableDial:e.disableDial,theme:e.theme,loadCastApiSetupScript:e.loadCastApiSetupScript,
disableCastApi:e.disableCastApi,enableDialLoungeToken:e.enableDialLoungeToken,enableCastLoungeToken:e.enableCastLoungeToken,forceMirroring:e.forceMirroring});_.lM("yt.mdx.remote.enableConnectWithInitialState_",e?e.enableConnectWithInitialState||!1:!1);kkq(C,function(G){G?UIl()&&asl(UIl(),"YouTube TV"):C.subscribe("onlineScreenChange",function(){af("yt-remote-receiver-availability-change")})},w)}if(e&&!_.pd("yt.mdx.remote.initialized_")){_.lM("yt.mdx.remote.initialized_",!0);
vdL("Initializing: "+(0,_.c2)(e));cd.push(_.Hn("yt-remote-cast2-api-ready",function(){af("yt-remote-api-ready")}));
cd.push(_.Hn("yt-remote-cast2-availability-change",function(){af("yt-remote-receiver-availability-change")}));
cd.push(_.Hn("yt-remote-cast2-receiver-selected",function(){Isf();af("yt-remote-auto-connect","cast-selector-receiver")}));
cd.push(_.Hn("yt-remote-cast2-receiver-resumed",function(){af("yt-remote-receiver-resumed","cast-selector-receiver")}));
cd.push(_.Hn("yt-remote-cast2-session-change",WDb));cd.push(_.Hn("yt-remote-connection-change",function(G){G?asl(UIl(),"YouTube TV"):P5$()||(asl(null,null),lsv())}));
cd.push(_.Hn("yt-remote-cast2-session-failed",function(){af("yt-remote-connection-failed")}));
w=R0a();e.isAuto&&(w.id+="#dial");var K=e.capabilities||[];K.length>0&&(w.capabilities=K);w.name=e.device;w.app=e.app;(e=e.theme)&&(w.theme=e);vdL(" -- with channel params: "+(0,_.c2)(w));w?(_.WJ("yt-remote-session-app",w.app),_.WJ("yt-remote-session-name",w.name)):(_.Rg("yt-remote-session-app"),_.Rg("yt-remote-session-name"));_.lM("yt.mdx.remote.channelParams_",w);z.start();UIl()||LDl()}}};
EdC=function(){var e=Hb5().instance_.$_gos();var z=Ob3();z&&A9()&&(QnY(e,z)||e.push(z));return lrZ(e)};
FDL=function(){var e=EdC(),z=Ob3();z||(z=P5$());return _.OE(e,function(C){return z&&mZL(z,C.key)?!0:!1})};
Ob3=function(){var e=UIl();if(!e)return null;var z=Hb5().getScreens();return O0(z,e)};
WDb=function(e){vdL("remote.onCastSessionChange_: "+ndW(e));if(e){var z=Ob3();if(z&&z.id==e.id){if(asl(z.id,"YouTube TV"),e.idType=="shortLived"&&(e=e.token))Vvv&&(Vvv.token=e),(z=A9())&&z.setLoungeToken(e)}else z&&fsq(),S7o(e,1)}else A9()&&fsq()};
fsq=function(){mIL()?t9().stopSession():Bd("stopSession called before API ready.");var e=A9();e&&(e.disconnect(1),uXL(null))};
dI$=function(){var e=A9();return e&&e.getProxyState()!=3?new Z1(A9(),void 0):null};
vdL=function(e){f6("remote",e)};
Hb5=function(){if(!DI3){var e=_.pd("yt.mdx.remote.screenService_");DI3=e?new ibE(e):null}return DI3};
UIl=function(){return _.pd("yt.mdx.remote.currentScreenId_")};
N4Y=function(e){_.lM("yt.mdx.remote.currentScreenId_",e)};
Isf=function(){_.lM("yt.mdx.remote.connectData_",null)};
A9=function(){return _.pd("yt.mdx.remote.connection_")};
uXL=function(e){var z=A9();Isf();e||N4Y("");_.lM("yt.mdx.remote.connection_",e);y0&&(_.oX(y0,function(C){C(e)}),y0.length=0);
z&&!e?af("yt-remote-connection-change",!1):!z&&e&&af("yt-remote-connection-change",!0)};
P5$=function(){var e=MoW();if(!e)return null;var z=Hb5();if(!z)return null;z=z.getScreens();return O0(z,e)};
S7o=function(e,z){sPZ?Vvv=e:(N4Y(e.id),e=new p6(Mv5,e,R0a(),_.pd("yt.mdx.remote.enableConnectWithInitialState_")||!1),e.connect(z,_.pd("yt.mdx.remote.connectData_")),e.subscribe("beforeDisconnect",function(C){af("yt-remote-before-disconnect",C)}),e.subscribe("beforeDispose",function(){A9()&&uXL(null)}),e.subscribe("browserChannelAuthError",function(){var C=Ob3();
C&&C.idType=="shortLived"&&(mIL()?t9().handleBrowserChannelAuthError():Bd("refreshLoungeToken called before API ready."))}),uXL(e))};
LDl=function(){var e=P5$();e?(vdL("Resume connection to: "+ndW(e)),S7o(e,0)):(LUf(),lsv(),vdL("Skipping connecting because no session screen found."))};
rdf=function(){var e=R0a();if(_.de.isEmpty(e)){e=n3Z();var z=_.PJ("yt-remote-session-name")||"",C=_.PJ("yt-remote-session-app")||"";e={device:"REMOTE_CONTROL",id:e,name:z,app:C,mdxVersion:3};e.authuser=String(_.j5("SESSION_INDEX","0"));(z=_.j5("DELEGATED_SESSION_ID"))&&(e.pageId=String(z));_.lM("yt.mdx.remote.channelParams_",e)}};
R0a=function(){return _.pd("yt.mdx.remote.channelParams_")||{}};
B4E=function(){var e,z;return _.k(function(C){if(C.nextAddress==1)return(_.qm1()||_.M("use_new_nwl"))&&_.bm4().isNetworkAvailable()?C.yield(_.QZ(),2):C.return();if(C.nextAddress!=3)return(e=C.yieldResult)?C.yield(yEZ(e),3):C.return();z=C.yieldResult;if(!z.length)return C.return();z.forEach(function(w){var K={timestamp:w.timestamp};w=w.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:w.appShellAssetLoadReport,options:K}:w.clientError?{payloadName:"clientError",payload:w.clientError,
options:K}:void 0;w&&_.gm(w.payloadName,w.payload,w.options)});
z.length===100&&_.c5.addLowPriorityJob(B4E);_.E_(C)})};
tvC=function(e){if(e.playerResponse){if(e=e.playerResponse,e.messages&&e.messages.length>0&&(e=e.messages.find(function(z){return!(!z||!z.mealbarPromoRenderer)}))&&e.mealbarPromoRenderer)return e.mealbarPromoRenderer}else if(e.response&&(e=e.response)&&e.overlay&&e.overlay.mealbarPromoRenderer)return e.overlay.mealbarPromoRenderer};
gdv=function(e){if(e.response){var z=e.response;if(z&&z.overlay&&z.overlay.tooltipRenderer)return z.overlay.tooltipRenderer}if(e.playerResponse&&(e=e.playerResponse,e.messages&&e.messages.length>0&&(e=e.messages.find(function(C){return!(!C||!C.tooltipRenderer)}))&&e.tooltipRenderer))return e.tooltipRenderer};
ydL=function(e){if(!jPb&&(e=e||_.j5("ZWIEBACK_PING_URLS"))&&e.length){jPb=!0;for(var z=0;z<e.length;z++)_.GE(e[z])}};
AdE=function(e){if(_.de.get(_.j5("PLAYER_VARS",{}),"privembed",!1)!="1"){e&&dFo();try{cd$().then(function(){},function(){}),_.U3(AdE,18E5)}catch(z){_.AR(z)}}};
ZbY=function(){var e=_.Tj(),z=e.getFlag(119),C=window.devicePixelRatio>1;document.body&&_.JQ(document.body,"exp-invert-logo")&&(C&&!_.JQ(document.body,"inverted-hdpi")?_.pm(document.body,"inverted-hdpi"):!C&&_.JQ(document.body,"inverted-hdpi")&&_.AE(document.body,"inverted-hdpi"));z!=C&&(_.$k(0,119,C),e.save())};
pWW=function(e){return e.filter(function(z){return"ypcGetCartEndpoint"in z||"ypcFixInstrumentEndpoint"in z})};
ex$=function(e){return e.filter(function(z){return!_.r(z,_.O9a)})};
CSo=function(e,z){var C,w,K,G,X,J,q;_.k(function(T){switch(T.nextAddress){case 1:C=_.BJ.getInstance();w=_.Tx.instance;K=_.tq.instance;if(!K)return zx5(e,w,z),T.return();_.Iv(T,2);e.onLoadingCommand&&w.resolveCommand(e.onLoadingCommand);return T.yield(C.getCurrentPositionFromGeolocation(),4);case 4:G=T.yieldResult;if(!e.resolveLocationCommand){T.jumpTo(5);break}X=C.createLocationInfo(G);return T.yield(_.yC(K,e.resolveLocationCommand,{locationInfo:X}),6);case 6:J=T.yieldResult;if(!J||"error"in J&&J.error||
J.errorMetadata)return zx5(e,w,z),T.return();var Q;if(J==null?0:(Q=J.onResponseReceivedActions)==null?0:Q.length){Q=_.b(J.onResponseReceivedActions);for(var m=Q.next();!m.done;m=Q.next())w.resolveCommand(m.value)}(_.r(e.onSuccessCommand,_.N$)||_.r(e.onSuccessCommand,_.mJ))&&_.pi(z.hostElement,"yt-navigate",{endpoint:e.onSuccessCommand,reload:!0});case 5:_.Yj(T,0);break;case 2:q=_.O_(T);if(q instanceof GeolocationPositionError&&q.code===GeolocationPositionError.PERMISSION_DENIED)return e.onDeniedCommand&&
w.resolveCommand(e.onDeniedCommand),T.return();zx5(e,w,z);_.E_(T)}})};
zx5=function(e,z,C){e.onFailureCommand&&(z.resolveCommand(e.onFailureCommand),_.eA(C.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
KfW=function(e,z){var C=_.r(e,_.zLa);if(C&&z){e=C.videoIds||[C.videoId];var w;z=(w=_.pi(z,"yt-lockup-requested",{videoIds:e}).detail)==null?void 0:w.returnValue;var K;C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?K=z?z:e.map(function(G){return{videoId:G,navigationEndpoint:C.videoCommand}}):z&&(K=z);
K&&(w=K.map(function(G){var X=Object,J=X.assign;var q=G.navigationEndpoint;if(!_.r(q,_.rP)){var T=_.r(q,_.N$);if(T){if(delete T.index,delete T.playlistId,T=_.r(q==null?void 0:q.commandMetadata,_.XV),T==null?0:T.url){var Q=T.url;Q=_.jy(Q,"list");Q=_.jy(Q,"index");T.url=Q}}else q=void 0}return J.call(X,{},G,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:q})}),wT$(w,C))}};
olq=function(e){var z=_.Rl();if(e=_.r(e,_.CLY))e.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&z.clearQueue(),e.closeMiniplayer&&_.lh().resolve(_.gh).close(!0)};
Yya=function(e){GvE(_.Rl(),e)};
bVa=function(e){var z;(e=(z=_.r(e,_.pms))==null?void 0:z.setVideoIds)&&e.forEach(function(C){_.yFa(_.Rl(),C)})};
JLq=function(e){XTZ(_.Rl(),e)};
kvW=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(e){return!1}};
qyo=function(e,z){var C=_.HNa(z,{},e,!0);return new Promise(function(w,K){C.listenOnce("n",function(){K(Error("El`"+C.JSC$30237_getErrorDescription()))});
C.listenOnce("l",function(){var G=C.getResponseCode();if(G!==200)K(Error("Fl`"+z+"`"+e.type+"`"+e.size+"`"+G));else try{w(JSON.parse(C.getResponseText()).encryptedBlobId)}catch(X){K(X)}});
C.run()})};
xJL=function(e){return e.substring(e.indexOf(":")+1,e.indexOf(";"))};
TJL=function(e){return new Promise(function(z,C){var w=new FileReader;w.onloadend=function(){try{var K=new Uint8Array(w.result);K.length<8&&C(void 0);var G=K.subarray(0,8);K="";for(var X=0;X<G.length;X++)K+=("0"+G[X].toString(16)).substr(-2);K.startsWith("ffd8ff")?z("image/jpeg"):K.startsWith("47494638")?z("image/gif"):K.startsWith("89504e470d0a1a0a")?z("image/png"):K.startsWith("424d")?z("image/bmp"):z(void 0)}catch(J){C(J)}};
w.onerror=C;w.readAsArrayBuffer(e)})};
$JC=function(e){return new Promise(function(z,C){var w=new Image;w.crossOrigin="anonymous";w.onload=function(){var K=document.createElement("canvas");K.width=w.naturalWidth;K.height=w.naturalHeight;var G=K.getContext("2d");if(!G)throw Error("Gl");G.drawImage(w,0,0);G=xJL(e);K.toBlob(function(X){X?z(X):C()},G)};
w.src=e})};
Q8$=function(e,z){var C;if(((C=_.r(e,_.rP))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var w;_.pi((w=z.hostElement)!=null?w:z,"yt-shorts-reset");_.T9q(_.lh().resolve(_.Cn),e).then(function(G){lgL(G,z,e)})}else{var K;
_.wQ((K=z.hostElement)!=null?K:z,[e]).then(function(G){G&&lgL(G.data,z,e)})}};
lgL=function(e,z,C){if(e){var w=_.r(e.replacementEndpoint,_.rP);if(w){e.sequenceContinuation&&(w.sequenceParams=e.sequenceContinuation);var K;_.pi((K=z.hostElement)!=null?K:z,"yt-navigate",{endpoint:e.replacementEndpoint})}else if((e==null?void 0:e.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(e==null?0:e.watchStatus)&&_.r(e.watchStatus,_.iAU)){var G;_.pi((G=z.hostElement)!=null?G:z,"yt-navigate",{endpoint:C})}}};
mJL=function(e){var z=_.lh().resolve(_.Tr),C=_.cF.currentPageTypeSelector(z.getState())||"";z=_.cF.currentPageSubTypeSelector(z.getState())||"";C=C==="ytd-browse"&&z==="home";return _.M("web_guide_entry_enable_cache_for_non_home_pages")?(e=(e==null?void 0:e.navigationEndpoint)&&_.Q$(e.navigationEndpoint)==="home",{disableCache:C&&e}):{disableCache:C}};
M25=function(e,z,C,w){if(e&&e.length){var K={};if(z){var G=void 0;C&&(G={commandContext:{onTap:{innertubeCommand:C||{}}}});K.header={panelHeaderViewModel:{title:_.Em(z),rendererContext:G}}}z=[];e=_.b(e);for(C=e.next();!C.done;C=e.next()){G=C.value;C=_.r(G,agZ);G=_.r(G,nl3);var X=void 0,J=void 0;if((X=G)==null?0:(J=X.expandableItems)==null?0:J.length)for(G=_.b(G.expandableItems),X=G.next();!X.done;X=G.next()){X=X.value.guideEntryRenderer;var q=J=void 0;if(((J=X)==null?void 0:(q=J.icon)==null?void 0:
q.iconType)==="VIEW_LIST_CAIRO"){C=X;break}}J=X=void 0;G=((X=C)==null?0:X.formattedTitle)?_.Em((J=C)==null?void 0:J.formattedTitle):void 0;X=void 0;J=(X=C)==null?void 0:X.isPrimary;if(C&&G&&!J){G={title:G};C.navigationEndpoint&&(G.rendererContext={commandContext:{onTap:{innertubeCommand:C.navigationEndpoint}}});X=[];q=J=void 0;if(((J=C)==null?0:(q=J.thumbnail)==null?0:q.thumbnails)&&C.thumbnail.thumbnails.length>0){J=_.b(C.thumbnail.thumbnails);for(q=J.next();!q.done;q=J.next())X.push({url:q.value.url});
G.leadingAccessory={avatarViewModel:{image:{sources:X},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(J=void 0,(J=C.icon)==null?0:J.iconType)X.push({clientResource:{imageName:C.icon.iconType||""}}),G.leadingImage={sources:X};J=X=void 0;((X=C)==null?0:(J=X.badges)==null?0:J.liveBroadcasting)?(G.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",G.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},G.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
C.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?G.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":C.count&&(G.trailingLabel={content:C.count.toString()});z.push({listItemViewModel:G})}}z.length!==0?(K.content={listViewModel:{listItems:z}},w===0&&(K.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):K=void 0;if(K)return z=void 0,w===0&&(z={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:K}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:z}}}}};
rLq=function(e,z,C,w){if(z!=null&&z.isPrimary){switch(w){case 1:if(z.serviceEndpoint)break;C=M25(C,z.formattedTitle,z.navigationEndpoint,w);if(!C)break;z.serviceEndpoint=C;z.navigationEndpoint=void 0;break;case 0:!z.mouseEnterEndpoint&&(C=M25(C,z.formattedTitle,void 0,w))&&(z.mouseEnterEndpoint=C,z.mouseLeaveEndpoint={hideSheetCommand:{}})}e.push({guideEntryRenderer:z})}};
HV$=function(e){if(!e)return!1;try{if(e.host&&e.host.tagName==="YT-FORMATTED-STRING"&&e.host.id==="contenteditable-textarea"||e.nodeType===Node.ELEMENT_NODE&&e.tagName==="YTD-COMMENT-INPUT")return!0}catch(z){return!1}return HV$(e.parentNode)};
e7=function(e){return e?e.tagName==="A"&&e.href&&e.classList.contains("yt-simple-endpoint"):!1};
UJa=function(e){return e?e.tagName==="IMG"&&e.classList.contains("emoji"):!1};
vlf=function(e,z,C){if(!e)return null;var w=e7(e);if(w&&C)return z=e.pathname.substring(e.pathname.indexOf("/channel/")+9),document.createTextNode("@"+z);if(w&&!C)return document.createTextNode("");if(UJa(e))return C=e.alt,e=e.dataset.emojiId,!e&&z&&(z=_.TV(z,C))&&z.isCustomEmoji&&(e=z.emojiId),e?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+e+">"):document.createTextNode(C);w=e.cloneNode(!1);for(var K=0;K<e.childNodes.length;++K){var G=vlf(e.childNodes[K],z,C);G&&w.appendChild(G)}return w};
Ig3=function(e){return e?e7(e)?e:Ig3(e.lastChild):null};
Wf5=function(e){return e?e7(e)?e:Wf5(e.firstChild):null};
PSZ=function(e){if(!e)return null;for(var z=e.previousSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.previousSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.previousSibling;else break;(z=Ig3(z))?e=z:e=(e=e.parentNode)?Ig3(e.previousElementSibling):null;return e};
Rxo=function(e){if(!e)return null;for(var z=e.nextSibling;z;)if(z.nodeType===Node.ELEMENT_NODE&&z.nodeName==="BR")z=z.nextSibling;else if(z.nodeType===Node.TEXT_NODE&&/\s+/.test(z.textContent))z=z.nextSibling;else break;return(z=Wf5(z))?z:Rxo(e.parentNode)};
Lf$=function(e){var z=_.ln(),C=z.JSC$11513_getStartNode();if(!HV$(C.parentNode))return null;z=z.JSC$11513_getStartOffset();if(C.nodeType===Node.TEXT_NODE){var w=_.j8(C,e7);if(w){if(e&&z===0||!e&&z===C.length)return w}else{if(e&&z===C.length)return!C||C.nodeName==="BR"||C.nextElementSibling&&_.Qz(C.nextElementSibling,"display")==="block"?null:Wf5(C.nextElementSibling);if(!e&&z===0)return C?Ig3(C.previousElementSibling):null}}if(C.nodeType===Node.ELEMENT_NODE)if(e){if(0<=z&&z<C.childNodes.length)return Wf5(C.childNodes[z])}else if(0<
z&&z<=C.childNodes.length)return Ig3(C.childNodes[z-1]);return null};
hxq=function(e,z,C){if(!e)return null;if(e.nodeType===Node.TEXT_NODE)if(C){var w=PSZ(e);if(w&&!/^\s+\S/.test(e.wholeText.substr(0,z)))return w}else if((w=Rxo(e))&&!/\S\s+/.test(e.wholeText.substr(z,e.wholeText.length)))return w;return e.nodeType===Node.ELEMENT_NODE?C?PSZ(e.childNodes[z]):Rxo(e.childNodes[z]):hxq(e.parentNode,z,C)};
OV$=function(e){if(e.hasChildNodes())switch(e.tagName){case "DIV":case "A":case "SPAN":var z="";for(e=e.firstChild;e;e=e.nextSibling)z+=OV$(e);return z;default:return""}else switch(e.nodeType){case 3:return e.textContent;default:return""}};
ElC=function(e){switch(e){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"}};
Ffb=function(e){return e.map(function(z){return{settingsRadioOptionRenderer:{title:_.Gq(z.name),asideText:_.Gq(z.approximateSize),id:ElC(z.format)}}})};
fgl=function(e){if(e&&e.length!==0)return e.filter(V2$()).map(function(z){return{settingsRadioOptionRenderer:{title:z.name,asideText:z.approximateSize,id:ElC(z.formatType)}}})};
Syf=function(e){if(e)return e.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
uPf=function(e,z){e=new Set(e!=null?e:[]);if(e.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(e.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(e.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(e.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(e.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(z)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
dJE=function(e){var z=e.indexOf("(");return z!==-1?e.substring(z+1,e.length-1):e};
_.iVZ=function(e,z,C,w,K){C||(C=DJq);var G;(G=_.r(C.commandMetadata,_.XV))!=null&&G.url||(C=Error("Ll`"+JSON.stringify(C)),_.yG(C),C=DJq);C=_.de.unsafeClone(C);G=_.z4(_.r(C.commandMetadata,_.XV).url,"search_query",e);_.ea(location.href,"sv")==="1"&&(_.r(C,_.ag).params="EgOAAgE%3D",G=_.z4(G,"sv","1"));_.r(C,_.ag)&&(_.r(C,_.ag).query=e);G=G.replace(/%20/g,"+");_.r(C.commandMetadata,_.XV).url=G;K=_.M("desktop_enable_entity_suggest")?{entityMid:K}:{};_.lh().resolve(_.ms).resolveCommand(C,{form:{tempData:Object.assign({},
{gs_l:z,oq:w!=null?w:e},K),isFromShorts:_.Cs()==="shorts"}})};
NJC=function(e){switch(e){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
BJv=function(e,z,C,w,K,G){var X=_.de.clone(s8f);X.locale=_.j5("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;X.report={description:K||"<empty>"};K=_.j5("SBOX_SETTINGS",{});z=z.join(",");var J=Date.now();e={choice_cc:w,choice_id_cc:C,choices_sc:z,gl:K.REQUEST_DOMAIN,hl:K.REQUEST_LANGUAGE,query:e,time:J};G&&(e.choice_additional_comment_cc=G);_.P1o(X,e)};
t2Y=function(e){var z=new Map;z.set("authuser",_.j5("SESSION_INDEX","0"));return _.MX(e,z)};
j8Z=function(e){var z;return _.k(function(C){switch(C.nextAddress){case 1:if(!e||!glY(e))return C.return(null);z=null;switch(_.j5("INNERTUBE_CLIENT_NAME")){case "WEB":return C.jumpTo(2);case "WEB_REMIX":z=e.getPlayer()}C.jumpTo(3);break;case 2:return C.yield(e.getPlayerPromise(),4);case 4:z=C.yieldResult;C.jumpTo(3);break;case 3:return C.return(z)}})};
glY=function(e){return["ytd-player","ytmusic-player"].includes(String(e.tagName||"").toLowerCase())};
yL3=function(e){e=Math.round(e);return e%2?e-1:e};
cLa=function(e){e=Math.round(e);return e%2===0?e-1:e};
ALb=function(e){var z=["h","m","s"],C=_.ig(z);C.reverse();var w={};e=(e.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(X){var J=(X.match(/[hms]/)||[""])[0];return J?(w[J]=parseInt(X.match(/\d+/)[0],10),!1):!0});
for(e.reverse();e.length&&C.length;){var K=C.shift();K in w||(w[K]=parseInt(e.shift(),10))}if(e.length||w.s>59||w.m>59||w.h>9)return null;var G="";z.forEach(function(X){w[X]&&(G+=""+w[X]+X)});
return G||null};
ZVC=function(e){var z,C,w;if(e=(z=e.createPlaylistDialogFormSchema)==null?void 0:(C=z.fieldSchemas)==null?void 0:(w=C.title)==null?void 0:w.validationSchema)for(z=[e.syncStep,e.asyncStep].filter(function(K){return K!==void 0}),z=_.b(z),C=z.next();!C.done;C=z.next()){C=C.value.rules;
if(!C)break;C=_.b(C);for(C=C.next();!C.done;C=C.next())return _.r(C.value,_.BMl)}};
em5=function(e){var z,C,w;if(e=(z=e.createPlaylistDialogFormSchema)==null?void 0:(C=z.fieldSchemas)==null?void 0:(w=C.visibility)==null?void 0:w.validationSchema)for(z=[e.syncStep,e.asyncStep].filter(function(K){return K!==void 0}),z=_.b(z),C=z.next();!C.done;C=z.next()){C=C.value.rules;
if(!C)break;C=_.b(C);for(w=C.next();!w.done;w=C.next())if(w=_.r(w.value,pTY))return z=void 0,(z=w.translations)==null?void 0:z.visibilityNotValidErrorMessage}};
zmf=function(){var e,z;return(z=(e=_.lh().resolve(_.$B(_.jQ)))==null?void 0:e())!=null?z:!1};
Cbv=function(e){var z=21;if(!e)return z;z+=e.headerTitle?27:0;z+=e.headerTitle&&e.hasHeaderActionHeader?4:0;return z+=e.headerTitle&&e.headerSubtitle?16:0};
w2Z=function(e){var z=0;if(!e)return z;z+=e.hasFooterPrimaryButton||e.hasFooterSecondaryButton?48:0;z+=e.footerTrailingLabel||e.footerLeadingLabel?30:0;return z+=e.hasFooterPrimaryButton||e.hasFooterSecondaryButton||!e.footerTrailingLabel&&!e.footerLeadingLabel?0:12};
KEY=function(e){var z=new _.hJ,C=e;return{subscribe:function(w){z.subscribe("changed",w)},
dispatch:function(w,K){var G=C;if(w==="Touch Start")C=Object.assign({},G,{isAnimating:!1,initialY:K.event.touches[0].clientY});else if(w==="Touch Move"){w=K.contentScrollable?-1*(G.initialY-24):0;var X,J=(X=K.headerDivHeight)!=null?X:Cbv(K.header),q;X=(q=K.footerDivHeight)!=null?q:w2Z(K.footer);q=Math.min(K.fullContentWrapperHeight,K.heightMap[K.contentWrapperId]+J-X);C=Object.assign({},G,{currentY:Math.max(w,K.event.touches[0].clientY-G.initialY),maxHeightForContentWrapper:Math.min(q,Math.max(0,
(G.isFullScreen?q:K.contentWrapperHeight)-G.currentY))})}else C=w==="Snap To Full Screen"?Object.assign({},G,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:K.maxHeight}):w==="Snap To Neutral Position"?Object.assign({},G,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:K.maxHeight}):w==="Close Sheet"?Object.assign({},G,{isAnimating:!0,currentY:K.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:K.maxHeight}):G;z.publish("changed",C)}}};
oQZ=function(){_.lh().resolve(_.qd).closeSheet()};
G15=function(e){var z,C,w,K,G,X,J,q,T,Q,m;return{headerTitle:(z=e.headerTitle)==null?void 0:z.call(e),headerSubtitle:(C=e.headerSubtitle)==null?void 0:C.call(e),headerActionHeader:e.headerActionHeader,footerPrimaryButton:e.footerPrimaryButton,footerSecondaryButton:e.footerSecondaryButton,footerButtonType:(w=e.footerButtonType)==null?void 0:w.call(e),footerLeadingLabel:(K=e.footerLeadingLabel)==null?void 0:K.call(e),footerTrailingLabel:(G=e.footerTrailingLabel)==null?void 0:G.call(e),shouldShowIcons:(X=
e.shouldShowIcons)==null?void 0:X.call(e),skipContentClick:(J=e.skipContentClick)==null?void 0:J.call(e),additionalClassName:(q=e.additionalClassName)==null?void 0:q.call(e),onClosedCallback:e.onClosedCallback,focusOnClose:(T=e.focusOnClose)==null?void 0:T.call(e),isDisabled:(Q=e.isDisabled)==null?void 0:Q.call(e),disabledCommand:(m=e.disabledCommand)==null?void 0:m.call(e),headerFn:e.headerFn,contentFn:e.contentFn,footerFn:e.footerFn,hasHeaderFn:e.hasHeaderFn(),hasContentFn:e.hasContentFn(),hasFooterFn:e.hasFooterFn(),
hasFooterPrimaryButton:e.hasFooterPrimaryButton(),hasFooterSecondaryButton:e.hasFooterSecondaryButton(),hasHeaderActionHeader:e.hasHeaderActionHeader()}};
YSL=function(e){switch(e){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""}};
bkC=function(e){switch(e){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""}};
X2f=function(e){switch(e){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""}};
JT$=function(e,z,C){z.forEach(function(w){_.Zw(_.lh().resolve(_.YV),w)});
_.eA(e,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",C])};
TB$=function(e,z,C,w){var K=_.r(C,_.I2).commandLifeCycleConfig;K&&K.onStartCommand&&_.KK(e,[K.onStartCommand],z);_.j4(z);var G=_.tq.instance;G&&_.jj(G,C)?_.yC(G,C,w).then(function(X){if(!X||(X==null?0:X.error))return X=_.r(C,_.I2).serializedTransactionFlowLoggingParams,_.yz(z),_.R5(new zF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",X));_.yz(z);return{data:X}}).then(function(X){_.yz(z);
k1C(X.data);var J=X.data.command;J&&_.KK(e,[J],z);J=qSq(C,X.data);if(!J){var q=X.data;X=!1;if(q&&q.command&&_.r(q.command,_.Gj)){var T;q=((T=_.r(q.command,_.Gj))==null?void 0:T.commands)||[];for(T=0;T<q.length;T++)if(_.r(q[T],_.xds)){X=!0;break}}X||_.Gr('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!J&&K&&K.onSuccessCommand?_.KK(e,[K.onSuccessCommand],z):J&&K&&K.onFailureCommand&&_.KK(e,[K.onFailureCommand],z)},function(){_.yz(z);
K&&K.onFailureCommand&&_.KK(e,[K.onFailureCommand],z);x3L(C)}):_.yG(Error("Xl"),"ERROR")};
$3$=function(e,z,C){var w=[z];C&&w.push(C);return _.wQ(e,w).then(function(K){var G=_.r(z,_.I2).serializedTransactionFlowLoggingParams,X=K.data,J=qSq(z,X);J?K=_.R5(new zF(J,G)):k1C(X);return K},function(){var K=_.r(z,_.I2).serializedTransactionFlowLoggingParams;
x3L(z);return _.R5(new zF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",K))})};
qSq=function(e,z){e=_.r(e,_.I2).serializedTransactionFlowLoggingParams;var C=null;switch(z.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":C="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":C="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":C="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}C?_.jB(C,e):lhf(e);return C};
x3L=function(e){_.jB("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.r(e,_.I2).serializedTransactionFlowLoggingParams)};
k1C=function(e){if(e.trackingParams){var z=_.Pr(),C=_.Ip();z&&C&&_.id(z,C,_.v9(e.trackingParams))}};
lAv=function(e,z,C){var w=_.tq.instance,K=_.uEE(_.j5("YPC_MB_URL")),G=(new _.fak).init(),X=_.SPs(),J=_.r(C,_.XUc).languageCode;J===void 0?_.yG(Error("Ji"),"ERROR"):_.tT([G,K]).then(function(){var q={ctk:_.Y3.payments.business.integration.ClientTokenFactory.createClientToken(J,X)};w&&_.jj(w,C)?_.yC(w,C,q).then(function(T){return{data:T}}).then(function(T){_.pi(z,"yt-service-request-completed",T);
T.code!=="ERROR"&&(T=T.data.command)&&_.KK(e,[T],z)}):_.yG(Error("Xl"),"ERROR")})};
aAq=function(e,z,C,w){var K=_.tq.instance;K&&_.jj(K,C)?_.yC(K,C,w).then(function(G){return{data:G}}).then(function(G){QiZ(e,z,C,G)},function(){m3q(C)}):(K=_.lh().resolve(_.$B(_.UG)))&&K.requestDataForServiceEndpoint(C,w).then(function(G){QiZ(e,z,C,G)},function(){m3q(C)})};
QiZ=function(e,z,C,w){_.pi(z,"yt-service-request-completed",w);if(w.code&&w.code=="ERROR")m3q(C);else{(w=w.data.commands)&&_.KK(e,w,z);var K;(e=(K=_.r(C,_.$dL))==null?void 0:K.serializedYpcPauseFlowLoggingParams)&&e&&_.g7("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",e)}};
m3q=function(e){var z;(e=(z=_.r(e,_.$dL))==null?void 0:z.serializedYpcPauseFlowLoggingParams)&&e&&_.g7("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",e,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
rTo=function(e,z,C){var w=_.tq.instance;w&&_.jj(w,C)?_.yC(w,C).then(function(K){return{data:K}}).then(function(K){nQq(e,z,C,K)},function(){MlY(C)}):(w=_.lh().resolve(_.$B(_.UG)))&&w.requestDataForServiceEndpoint(C).then(function(K){nQq(e,z,C,K)},function(){MlY(C)})};
nQq=function(e,z,C,w){_.pi(z,"yt-service-request-completed",w);w.code&&w.code=="ERROR"?MlY(C):((w=w.data.commands)&&_.KK(e,w,z),(e=_.r(C,_.l5S).serializedYpcResumeFlowLoggingParams)&&e&&_.g7("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",e))};
MlY=function(e){(e=_.r(e,_.l5S).serializedYpcResumeFlowLoggingParams)&&e&&_.g7("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",e,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Hkb=function(e){e=e===void 0?{}:e;_.lh().resolve(_.gaZ).showFeedbackDialog(e.customProductData,e.feedbackContent,e.onFeedbackSubmitted,e.bucket)};
U3v=function(e){e=e===void 0?{}:e;_.lh().resolve(_.gaZ).showHelpDialog(e.helpContext,e.articleId,e.productData)};
vQb=function(){U3v()};
IAY=function(){Hkb()};
PbE=function(e,z,C){var w,K,G,X,J,q,T;return _.k(function(Q){switch(Q.nextAddress){case 1:w=_.r(e,WEa);if((K=w)==null?0:K.productId){q={productId:w.productId,bucket:w.bucket,enableAnonymousFeedback:(J=w.enableAnonymousFeedback)!=null?J:!0,allowNonLoggedInFeedback:!0};T={feedbackChoice:C.feedbackChoice};if(!_.M("web_collect_offline_state")){Q.jumpTo(8);break}_.Iv(Q,9);return Q.yield(vTl(T),11)}X={bucket:(G=w)==null?void 0:G.bucket};if(!_.M("web_collect_offline_state")){Q.jumpTo(4);break}X.customProductData=
{};_.Iv(Q,5);return Q.yield(vTl(X.customProductData),7);case 7:_.Yj(Q,4);break;case 5:_.O_(Q);case 4:Hkb(X);Q.jumpTo(0);break;case 11:_.Yj(Q,8);break;case 9:_.O_(Q);case 8:_.Hwg(T),_.rD1("GFEEDBACK",T),w.productId==="5295751"&&(T.client_attestation=Number(_.j5("CATSTAT",0))),w.productId==="5295751"&&(T.client_time=Date.now()/1E3/3600),w.productId==="5295751"&&(T.original_playback_id=_.GYT||""),_.P1o(q,T),_.E_(Q)}})};
Rmo=function(e){if(e=_.r(e,_.RzE)){var z={bucket:e.bucketIdentifier};e.additionalDatas&&(z.customProductData={},e.additionalDatas.forEach(function(C){if(C=C.userFeedbackEndpointProductSpecificValueData)z.customProductData[C.key]=C.value}));
Hkb(z)}};
LEf=function(e){var z=_.G4.getInstance();var C=_.kk("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var w=_.kk("DELETE",void 0,"Delete"),K=_.kk("CANCEL",void 0,"Cancel");C=PAW(C,void 0,w,K,{signal:"DELETE_ALL_DOWNLOADS"});_.wu(z,[{openPopupAction:C}],e)};
OkE=function(){return _.k(function(e){return e.nextAddress==1?e.yield(_.lh().resolve(_.vy),2):e.yield(hm5(),0)})};
EQW=function(e){var z,C;return _.k(function(w){return w.nextAddress==1?(C=(z=_.r(e,_.wK))==null?void 0:z.targetId)?w.yield(_.lh().resolve(_.vy),3):w.jumpTo(0):w.yield(_.lh().resolve(_.UI).deleteVideo(C),0)})};
VlE=function(e){var z,C;return _.k(function(w){return w.nextAddress==1?(C=(z=_.r(e,_.wK))==null?void 0:z.targetId)?w.yield(_.lh().resolve(_.vy),3):w.jumpTo(0):w.yield(FEl(_.lh().resolve(_.UI),C),0)})};
SSY=function(e){var z,C;return _.k(function(w){return(C=(z=_.r(e,_.wK))==null?void 0:z.targetId)?w.yield(fAv(C),0):w.jumpTo(0)})};
d3o=function(){_.M("kevlar_woffle_refresh_dl_load_killswitch")||ubC()};
ikl=function(){_.M("kevlar_woffle")&&_.sG.instance&&D33()};
sif=function(e){var z;if((z=_.r(e,_.HF))==null||!z.videoId)return!1;NBY(_.lh().resolve(_.UI),_.r(e,_.HF),e.clickTrackingParams);return!0};
tl3=function(e){var z;if((z=_.r(e,_.Uz))==null||!z.playlistId)return!1;BBv(_.lh().resolve(_.UI),_.r(e,_.Uz),e.clickTrackingParams);return!0};
jiE=function(e){var z=_.r(e,_.eVS);(z==null?void 0:z.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(z==null?void 0:z.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||gQq(_.lh().resolve(_.UI),_.r(e,_.eVS))};
cTZ=function(e){e=_.r(e,_.ROT);var z;(e==null?0:(z=e.actions)==null?0:z.length)&&yTZ(e)};
p2o=function(e){var z,C;return _.k(function(w){z=_.r(e,ATl);return(C=z)!=null&&C.localWatchHistoryCommandType?w.yield(ZkL(z),0):w.return()})};
zlf=function(){return _.k(function(e){return _.M("kevlar_enable_download_to_mobile")?e.yield(elo(),0):e.return()})};
CGL=function(e){setTimeout(function(){requestAnimationFrame(e)},80)};
wq$=function(e){return Object.entries(e).map(function(z){return z.join(":")}).join(";")};
ouZ=function(e){var z,C,w;_.k(function(K){if(K.nextAddress==1)return K.yield(KxE(),2);z=K.yieldResult;C=_.Tx.instance;switch(z){case "granted":w=e.getLocationCommand;break;case "denied":w=e.openDeniedDialogAction;break;case "prompt":w=e.openCollectionDialogAction;break;default:w=e.openCollectionDialogAction}w&&C.resolveCommand(w);_.E_(K)})};
KxE=function(){var e,z;return _.k(function(C){if(C.nextAddress==1)return e="prompt",navigator.permissions?C.yield(navigator.permissions.query({name:"geolocation"}),3):C.jumpTo(2);C.nextAddress!=2&&(z=C.yieldResult,e=z.state);return C.return(e)})};
YV5=function(){_.k(function(e){return e.yield(_.GDL(),0)})};
bRq=function(){var e,z,C;return _.k(function(w){if(w.nextAddress==1)return e=_.lh().resolve(_.vJ),e?w.yield(_.yC(e,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.AX(Error("$l")),w.return(void 0));if(z=w.yieldResult){if(z.errorMetadata)return _.AX(Error("am`"+z.errorMetadata.status+"`"+z.error)),w.return(void 0);C=z.datasyncIds;_.Gmo=C.length;return w.return(C)}_.AX(Error("bm"));return w.return(void 0)})};
XqZ=function(){bRq().then(function(e){e&&(gpq(e),mKW(e),iUv(e),WTY(e))})};
JQ3=function(e){_.c5.addLowPriorityJob(function(){var z,C,w,K,G;return _.k(function(X){switch(X.nextAddress){case 1:if(_.M("ytidb_clear_optimizations_killswitch")){X.jumpTo(2);break}z=_.f0("clear");if(z.startsWith("V")&&z.endsWith("||")){var J=[z];gpq(J);mKW(J);iUv(J);WTY(J);return X.return()}C=NGq();w=P33();return X.yield(ahZ(),3);case 3:return K=X.yieldResult,X.yield(j5a(),4);case 4:if(G=X.yieldResult,!(C||w||K||G))return X.return();case 2:e.isNetworkAvailable()?XqZ():e.listenOnce("publicytnetworkstatus-online",
XqZ),_.E_(X)}})})};
Cl=function(e){e={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.AO(e)}}}};_.Tx.instance&&_.Tx.instance.resolveCommand(e)};
kDa=function(e){if(e){var z=_.nm();_.jk(z,3854,void 0,{layer:0,parentLayer:4});switch(e){case 1:var C=238708;break;case 2:C=238715;break;case 3:C=238710;break;case 6:C=238709}C&&(e=_.a5(z,{veType:C}))&&_.Ai(z,e)}};
qVl=function(e){if(e){var z=_.nm();_.jk(z,3854,void 0,{layer:0,parentLayer:4});switch(e){case 1:var C=238714;break;case 2:C=238711;break;case 8:C=238709;break;case 7:C=238713;break;case 3:case 4:case 5:C=238712}C&&(e=_.a5(z,{veType:C}))&&_.Ai(z,e)}};
x_b=function(e){switch(e.latencyType){case 0:_.LK("consent_primitive_flow");_.hg("cpit",e.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.hg("cpist",e.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.hg("cprtif",e.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.hg("cprtli",e.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.hg("cprt",e.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.hg("cpdt",e.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.hg("cpjct",e.timestampEpochMillis,"consent_primitive_flow")}};
vuW=function(e,z){var C,w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g;return _.k(function(y){switch(y.nextAddress){case 1:_.Iv(y,2);(w=(C=_.r(e,Tql))==null?void 0:C.serializedConsentRequest)||(w=(K=_.r(e,$_W))==null?void 0:K.serializedConsentRequest);w&&(G=l7f(_.po(w)));if(G===void 0)return y.return();X=QK$(G);X.latencyCallback=x_b;z&&m_C(X,function(){z.then(function(Z){Z.pauseVideo();(new a7v).increment()})});
return((J=_.r(e,Tql))==null?void 0:J.consentAction)==="CONSENT_ACTION_PREWARM"||((q=_.r(e,$_W))==null?void 0:q.consentAction)==="CONSENT_ACTION_PREWARM"?y.yield(nu3(X),5):y.yield(MqW(X),6);case 6:T=y.yieldResult;Q=_.E7(T,wT);if(Q===1){if(((m=_.BW(T,rQE,1,wT))==null?void 0:_.i5(m,1))===1||((a=_.BW(T,rQE,1,wT))==null?void 0:_.i5(a,1))===2||((n=_.BW(T,rQE,1,wT))==null?void 0:_.i5(n,1))===3)_.r(e,$_W)?Cl(_.kk("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Cl(_.kk("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));kDa((H=_.BW(T,rQE,1,wT))==null?void 0:_.i5(H,1),_.x2(T,HRf,3,_.T5()))}else Q===2?(((I=U_$(T))==null?void 0:_.i5(I,1))===5?_.r(e,$_W)?Cl(_.kk("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Cl(_.kk("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((L=U_$(T))==null?void 0:_.i5(L,1))===1||((h=U_$(T))==null?void 0:_.i5(h,1))===4?
Cl(_.kk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((E=U_$(T))==null?void 0:_.i5(E,1))===7&&((N=G)==null?void 0:(D=_.ra(N,Kl,4))==null?void 0:_.i5(D,4))!==1&&Cl(_.kk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),qVl((g=U_$(T))==null?void 0:_.i5(g,1))):Cl(_.kk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.Yj(y,0);break;case 2:_.O_(y),Cl(_.kk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.E_(y)}})};
WxY=function(){if(!I7Z.has("Worker")){I7Z.set("Worker",!0);var e={api:"BROWSER_API_WEB_WORKER"};e.available="Worker"in window?!0:!1;_.gm("apiTest",e)}};
PG$=function(e){return typeof e==="undefined"?"-1":String(Math.ceil(e/1048576))};
ORE=function(e,z){RlC(new Lxa(_.r(z,hlC).addToken,_.r(z,hlC).commonToken)).then(function(){_.pi(e,"yt-invoke-instrument-manager-action-completed")},function(C){_.pi(e,"yt-invoke-instrument-manager-action-error",C)})};
oN=function(){return _.j5("HTML_DIR")==="rtl"};
Euv=function(){var e,z;return(z=(e=window).matchMedia)==null?void 0:z.call(e,"(prefers-reduced-motion: reduce)").matches};
Fx3=function(e){var z=_.lh().resolve(_.$B(_.b_));if(z&&z.isAnyTransitionEnabled){var C={};z.viewTransitionCoordinator.registerElement(e,(C.slide="miniplayer-page-transition",C["lockup-to-watch"]="miniplayer-page-transition",C["learning-journey"]="miniplayer-page-transition",C))}};
VqW=function(e,z,C){return{horizontalAlignment:e.x+C.width/2<z.width/2?"west":"east",verticalAlignment:e.y+C.height/2<z.height/2?"north":"south"}};
SV3=function(e,z,C,w,K){K=K===void 0?new _.st(0,0):K;e=f7$(e,z,C,w,!1);return new _.st(e.x+K.x,e.y+K.y)};
f7$=function(e,z,C,w,K){K=(K===void 0?0:K)?400:0;return new _.st(e==="west"?16+(oN()?K:0):C.width-w.width-16-(oN()?0:K),z==="north"?16:C.height-w.height-16)};
uol=function(e,z){var C=0;e&&(C+=76);z&&(C+=285);return C};
d_W=function(e){return _.y8(e)};
D_q=function(e){var z=1;e=e.split(":");for(var C=[];z>0&&e.length;)C.push(e.shift()),z--;e.length&&C.push(e.join(":"));return C};
iRl=function(e){var z=new _.Ri;return _.td(z,11,e)};
Nqb=function(e){var z={};e=e.getAllResponseHeaders().split("\r\n");for(var C=0;C<e.length;C++)if(!_.bg(e[C])){var w=D_q(e[C]),K=w[0];w=w[1];if(typeof w==="string"){w=w.trim();var G=z[K]||[];z[K]=G;G.push(w)}}return _.de.map(z,function(X){return X.join(", ")})};
hhL=function(e,z){return e.JSC$9965_xhr_?e.JSC$9965_xhr_.getResponseHeader(z):null};
sKC=function(e,z){if(e.isDisposed())throw Error("Ea");e.ug.ej("n");var C=_.eq(e.ug,function(){return e.yUu([z.tZ,z.ztP,z.hz2,z.kfS])},"n");
e.ug.dQ0(C.length);e.ug.ea();return C};
Bqf=function(e,z,C){Array.isArray(C)||(C=[String(C)]);_.L1X(e.JSC$10201_queryData_,z,C);return e};
D33=function(){var e=_.sG.instance;_.k(function(z){return e.deferredInstallPrompt?z.yield(e.deferredInstallPrompt.prompt(),0):z.jumpTo(0)})};
tqv=function(e,z,C){if(_.B1(e))_.oX(e,z,C);else for(e=_.NQ4(e);;){var w=e.next();if(w.done)break;z.call(C,w.value,void 0,e)}};
gub=function(e,z){var C=[];tqv(z,function(w){try{var K=_.vA.prototype.getWrapper.call(this,w,!0)}catch(G){if(G=="Storage: Invalid value was encountered")return;throw G;}K===void 0?C.push(w):_.iKS(K)&&C.push(w)},e);
return C};
Pw$=function(e,z){gub(e,z).forEach(function(C){_.vA.prototype.remove.call(this,C)},e)};
jK3=function(e){var z=_.aY;z._minimumZ=Math.max(z._minimumZ,e)};
yQ3=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];cQY=function(e,z){_.XU(e.vm);e.vm=z};
AQC=function(e,z,C,w){e.setState(5);var K=!!e.w2e&&yQ3.includes(_.kB(e.w2e)||"");try{var G=new _.zD({program:z,globalName:C,wgG:{disable:!_.M("att_web_record_metrics")||!_.M("att_skip_metrics_for_cookieless_domains_ks")&&K,sC:"aGIf"}});G.bMn.then(function(){e.setState(6);w&&w(z)});
cQY(e,G)}catch(X){e.setState(7),X instanceof Error&&_.AX(X)}};
ZR$=function(e,z,C,w,K,G){var X=X===void 0?"trayride":X;C?(e.setState(2),_.Vq(_.iZ(C),function(){if(window[X])AQC(e,w,X,K);else{e.setState(3);var J=_.gKo(C),q=document.getElementById(J);q&&(_.OmN(J),q.parentNode.removeChild(q));_.AX(new _.uh("BL:ULB",C))}},G)):z?(G=_.Lh("SCRIPT"),z instanceof _.G6?_.Xg(G,z):G.textContent=z,G.nonce=_.ov(document),document.head.appendChild(G),document.head.removeChild(G),window[X]?AQC(e,w,X,K):(e.setState(4),_.AX(new _.uh("BL:ULBJ")))):_.AX(new _.uh("BL:ULV"))};
pqv=function(){this.state=1;this.vm=null;this.w2e=void 0};
_.Y=pqv.prototype;_.Y.initialize=function(e,z,C,w){this.w2e=w;if(e.program){var K;w=(K=e.interpreterUrl)!=null?K:null;if(e.interpreterSafeScript)K=_.ed7(e.interpreterSafeScript);else{var G;K=(G=e.interpreterScript)!=null?G:null}e.interpreterSafeUrl&&(w=_.Af(e.interpreterSafeUrl).toString());ZR$(this,K,w,e.program,z,C)}else _.AX(Error("sf"))};
_.Y.isInitialized=function(){return!!this.vm};
_.Y.getState=function(){return this.state};
_.Y.isLoading=function(){return this.state===2};
_.Y.invoke=function(e){e=e===void 0?{}:e;var z;this.vm?z=sKC(this.vm,{tZ:e}):z=null;return z};
_.Y.dispose=function(){cQY(this,null);this.setState(8)};
_.Y.setState=function(e){this.state=e};
var eSo=function(e,z){return e.vm.snapshot(z)},zSZ=function(e,z){var C=_.n0("botguard_async_snapshot_timeout_ms",3E3);
z=z===void 0?{}:z;C=C===void 0?3E3:C;return e.vm?new Promise(function(w,K){var G=!1,X=_.c5.addJob(function(){G=!0;K(Error("tf"))},1,C);
e.vm?eSo(e,{tZ:z}).then(function(J){_.c5.cancelJob(X);G||w(J)}).catch(function(J){_.c5.cancelJob(X);
G||K(J)}):(_.c5.cancelJob(X),w(null))}):Promise.resolve(null)},C1l=["att/log"],DJq;
DJq={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var wEW={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},Kzb=function(e,z){return _.au(e,{mode:"readwrite",enableRetries:!0},function(C){return _.vbk(C,z,"settingEntity")})},oGq=function(e,z,C){return _.au(e,{mode:"readonly",
enableRetries:!0},function(w){return _.DOY(w,z,C)})},GpL=function(e){if(!e.storage)return!1;
a:{if(e.storage){try{var z=e.storage.get("TLPQtimestamp")}catch(C){}e=Number(z);if(!isNaN(e))break a}e=void 0}return e?Date.now()-e<864E5:!1},YnW=function(e){if(e.storage){try{var z=e.storage.get("TLPQindex")}catch(C){}e=Number(z);
if(!isNaN(e))return e}},bNE=function(e,z){e.queueProxy&&z.forEach(function(C){if(C.videoId&&C.trackingParams&&e.queueProxy instanceof _.M2){var w=_.Pr();
e.queueProxy.attributionData.set(C.videoId,{enqueueingVe:_.v9(C.trackingParams).getAsJson(),enqueueingCsn:w?w:void 0,clientEnqueueingTimeMs:Math.floor((0,_.as)()).toString()})}})},XEL=function(e){var z=_.U7c(e);
z!=e.currentSnapState_&&(e.currentSnapState_=z,e.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},GF=function(e){this.JSC$13390_networkManager_=e;
this.partCallbacks_=[]};
GF.prototype.getCacheKeyForEndpoint=function(e){return _.xNo(e,!1)};
GF.prototype.onPartsCallback_=function(e){this.partCallbacks_.forEach(function(z){e&&z(e)})};
var Ye=function(e,z,C){GF.call(this,e);this.player_=z;this.autoplayData_=C};
_.U(Ye,GF);Ye.prototype.getCacheKeyForEndpoint=function(e){return _.xNo(e,!!this.autoplayData_)};
Ye.prototype.getTempData=function(e,z){z=z.timeBeforeNextVideo;e={itct:e.clickTrackingParams,lact:_.aC(),pbis:z,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(e.autonav=1);return e};
Ye.prototype.getXhrParams=function(e){return Object.assign({pbj:"prefetch"},e)};
Ye.prototype.getParams=function(e){e={frags:e.fragmentsRequested.join(",")};_.M("kevlar_droppable_prefetchable_requests")&&(e.prefetch=1);return e};
var JIL=function(e){e.playerEvents_.forEach(function(z){e.player.removeEventListener(z.eventName,z.callback)});
e.playerEvents_.length=0},kpa=function(e,z,C){this.player=e;
this.JSC$13400_taskManager=z;this.prefetchDelay=C;this.completionResolver_=null;this.playerEvents_=[]};
kpa.prototype.start=function(){var e=this;this.completionResolver_=_.cj();_.gB(this.completionResolver_.promise,function(){JIL(e);e.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var qnC=function(e,z,C){e.player.addEventListener(z,C);e.playerEvents_.push({eventName:z,callback:C})},xtW={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},TSq={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},$tW=function(e,z,C){kpa.call(this,e,z,C);this.cueId_="playbackTrigger-"+Math.random()};
_.U($tW,kpa);
$tW.prototype.prepareTrigger=function(e){var z=this,C=this.player.getDuration(),w=this.player.getVideoData(),K=w.isLive&&w.hasProgressBarBoundaries;if(K&&w.progressBarEndPositionUtcTimeMillis){var G=w.progressBarEndPositionUtcTimeMillis/1E3;isNaN(G)||(C=G)}var X=0;this.prefetchDelay>=0?K?w.progressBarStartPositionUtcTimeMillis&&(w=w.progressBarStartPositionUtcTimeMillis/1E3,isNaN(w)||(X=w+this.prefetchDelay)):X=this.prefetchDelay:X=C+this.prefetchDelay;K?this.player.addUtcCueRange(this.cueId_,X,C):
this.player.addCueRange(this.cueId_,X,C);_.gB(e.promise,function(){z.player.removeCueRange(z.cueId_)});
qnC(this,"onCueRangeEnter",function(J){J==z.cueId_&&e.resolve(C-X)})};
var lvq=function(e,z){e.fragmentConfiguration_[z].requiredKeys.every(function(C){return!!e.prefetchedData_[C]})&&(e.validatedFragments_.push(z),z=e.missingFragments_.indexOf(z),z!==-1&&e.missingFragments_.splice(z,1))},QZY=function(e){e.prefetchedFragments_.forEach(function(z){lvq(e,z)})},mt$=function(e,z,C){this.pageFragments_=e;
this.prefetchedFragments_=z;this.fragmentConfiguration_=TSq;this.prefetchedData_=C;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;QZY(this)},avl=function(){},nG5=function(e){this.JSC$13414_playlistManager_=e};
_.U(nG5,avl);nG5.prototype.getPrefetchEndpoint=function(){return this.JSC$13414_playlistManager_.getAutoplayEndpoint()};
var M_q=function(e){this.autonavEndpoints_=e};
_.U(M_q,avl);M_q.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var rI3=function(e,z,C,w,K){this.autonavEndpoints=e;this.foregroundTrigger=z;this.backgroundTrigger=C;this.pageType=w;this.isInPlaylist=K},HNl=function(e,z){if(e.webPrefetchData&&e.webPrefetchData.navigationEndpoints&&e.webPrefetchData.navigationEndpoints.length){e=e.webPrefetchData.navigationEndpoints;
var C=_.r(e[0],_.N$);if(C.watchEndpointSupportedPrefetchConfig&&C.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var w=C.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;C=w.playbackRelativeSecondsPrefetchCondition;C=typeof C==="number"&&Math.abs(C)<z.videoDuration?C:void 0;w=w.countdownUiRelativeSecondsPrefetchCondition;w=typeof w!=="number"||_.M("prefetch_job_config_cleanup_ks")&&z.inPlaylist?void 0:w;if(typeof w==="number")return new rI3(e,z.makeUpNextTrigger(w),z.makePlaybackTrigger(w),
"watch",z.inPlaylist);if(typeof C==="number")return new rI3(e,z.makePlaybackTrigger(C),null,"watch",z.inPlaylist)}}},UtW=function(e){return e.prefetchJobConfig_.backgroundTrigger?_.Z_(_.sYh)()==0?e.prefetchJobConfig_.backgroundTrigger:e.prefetchJobConfig_.foregroundTrigger:e.prefetchJobConfig_.foregroundTrigger},vGE=function(e){_.ib(document,"visibilitychange",e.onVisibilityChange_,!1,e)},bX=function(e){GF.call(this,e)};
_.U(bX,GF);bX.prototype.getCacheKeyForEndpoint=function(e){return GF.prototype.getCacheKeyForEndpoint.call(this,e)};
bX.prototype.getTempData=function(){return{}};
bX.prototype.getXhrParams=function(e){return e};
bX.prototype.getParams=function(){return{}};
var IvY=function(e,z,C){var w=e.prefetchDelay*1E3;if(Math.abs(w)>z)C.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var K=w,G=z-w;w<0&&(K=z+w,G=Math.abs(w));var X=e.JSC$13400_taskManager.addJob(function(){C.resolve(G/1E3)},10,K);
C.promise.thenCatch(function(){e.JSC$13400_taskManager.cancelJob(X)})}},WzL=function(e,z,C){kpa.call(this,e,z,C)};
_.U(WzL,kpa);WzL.prototype.prepareTrigger=function(e){var z=this;qnC(this,"onAutonavCoundownStarted",function(C){IvY(z,C,e)})};
var P1$=function(e){e.pendingPrefetchJob_&&(e.pendingPrefetchJob_.cancel(),e.pendingPrefetchJob_=null)},RSb=function(e,z,C){if(!e.triggeredTargets.has(z)){var w=_.NsX(e,z);
w.action=C;_.i5s(e,z,w)}},Lza=function(e){_.LPa();
_.zfk("cpt")&&_.AX(Error("lh"));_.wL.requestAnimationFrame(function(){_.wL.setTimeout(function(){_.hg("cpt");var z=_.fK("vpl"),C=_.fK("cpt");z&&C&&_.hg("ol",Math.max(z,C))})});
try{_.hg("fr_s"),e()}catch(z){_.yG(z)}_.wL.requestAnimationFrame(function(){_.hg("bcp")})},hS3=function(e,z){e.serviceEndpointHandlers.push(z)},ONE=function(e,z){z=e.pendingPages_.indexOf(z);
z>-1&&e.pendingPages_.splice(z,1)},EGb=function(e,z){var C=_.Kk4.indexOf(z);
C>-1&&_.Kk4.splice(C,1);e.targetPage_==z?(e.abort(),_.GQX(e)):ONE(e,z)},Fzf=function(e,z,C,w){z={challenge:z};
C&&(z.webResponse=C);return _.Hc(e.innertubeTransportService,z,_.zU(C1l),w)},V_Z=function(e,z,C){if(!z.challenge)throw Error("ri");
if(z.botguardData&&z.botguardData.program){var w=new pqv;w.initialize(z.botguardData,function(){zSZ(w,{atr_challenge:z.challenge}).then(function(K){if(!K)throw Error("si");return Fzf(e,z.challenge,K,C)}).catch(function(K){_.AX(K);
return Fzf(e,z.challenge,void 0,C)})},void 0)}else Fzf(e,z.challenge,void 0,C)},fvC=function(e,z,C){var w={};
z.ids&&(w.ids=[].concat(_.s_(z.ids)));z.engagementType&&(w.engagementType=z.engagementType);return _.Hc(e.innertubeTransportService,w,_.zU(_.wKa),C).then(function(K){if(!K)throw new _.uh("GetAttestationChallenge returned falsy");V_Z(e,K,C)}).thenCatch(function(K){_.yG(K)})},Sno=function(e,z,C){return new _.RC(function(w,K){var G;
return _.k(function(X){if(X.nextAddress==1){var J=X.yield,q=z.engagementType,T=z.ids,Q={};T=_.b(T!=null?T:[]);for(var m=T.next();!m.done;m=T.next())m=m.value,m.encryptedVideoId?Q.encryptedVideoId=m.encryptedVideoId:m.externalChannelId?Q.externalChannelId=m.externalChannelId:m.commentId?Q.commentId=m.commentId:m.externalOwnerId?Q.externalOwnerId=m.externalOwnerId:m.artistId?Q.artistId=m.artistId:m.playlistId?Q.playlistId=m.playlistId:m.externalPostId?Q.externalPostId=m.externalPostId:m.shareId&&(Q.shareId=
m.shareId);return J.call(X,WOW(q,Q),2)}G=X.yieldResult;if(!G.challenge)return _.AX(Error("ti")),fvC(e,z,C).then(w,K),X.return();J=G;q={challenge:J.challenge};q.webResponse=J.webResponse;q.engagementType=z.engagementType;q.ids=z.ids;_.Hc(e.innertubeTransportService,q,_.zU(C1l),C).then(w,K);_.E_(X)})})},XTZ=function(e,z){var C,w,K,G;
_.k(function(X){if(X.nextAddress==1){C=_.r(z,_.KhL);if(!(C&&C.listId&&e.response&&e.response.playingVideoId)||e.listId!==C.listId)return X.return();e.index===void 0&&(e.index=0);return X.yield(_.Iqa(e.JSC$13253_playlistNetworkManager,C.listId,e.index,e.response.playingVideoId),2)}w=X.yieldResult;if(!w)return X.return();K=w.playlistId;G=w.playlistPanelRenderer;e.setPlaylistData(K,G,w.autoplayRenderer);_.E_(X)})},u5v=function(e,z,C){var w=e.getParams(C),K=_.XFo(z,w),G=e.getTempData(z,C);
G.endpoint=JSON.stringify(z);_.M("enable_unknown_lact_fix_on_html5")&&(_.lh().resolve(_.UT),G.lact=_.aC());var X={headers:{"X-YouTube-STS":_.j5("STS"),"x-youtube-csoc":1}};_.gN(K,G);return new _.RC(function(J,q){var T=e.getXhrParams(w),Q;_.M("kevlar_cache_on_ttl_player")&&(Q=_.lh().resolve(_.F9));Q&&_.k5l(Q,z)?_.Q4f(Q,z,G,window.location.href).then(function(m){m?J(m):q()},q):_.eIg(e.JSC$13390_networkManager_,z,T,e.onPartsCallback_.bind(e),X).then(function(m){m?J(m):q()},q)})},dt3=function(e,z){e.triggerPromise_=
z.start();
e.triggerPromise_.then(function(C){var w=e.prefetchEndpointProvider_.getPrefetchEndpoint();if(w){var K=xtW[e.prefetchJobConfig_.pageType].prefetchedFragments;e.prefetchRequestPromise_=u5v(e.JSC$13426_networkPrefetchRequest_,w,{fragmentsRequested:K,timeBeforeNextVideo:C});e.prefetchResponseCacheKey_=e.JSC$13426_networkPrefetchRequest_.getCacheKeyForEndpoint(w);vGE(e);e.prefetchRequestPromise_.then(function(G){e.storePrefetchedDataCallback_(e.prefetchResponseCacheKey_,G);if(_.M("web_prefetch_preload_video")&&
K.length===1&&K[0]==="pl"&&G&&!G.playerAds&&!G.adPlacements){var X=_.r(w,_.rP),J=X!=null,q={raw_player_response:G,watch_endpoint:X};(G=_.lh().resolve(J?_.bac:_.qK))&&w&&G.then(function(T){J&&_.M("web_queue_preload_video")?(q.prefer_gapless=!0,T.queueNextVideo(q)):T.preloadVideoByPlayerVars(q)})}})}})},XB=function(e,z,C,w){this.prefetchEndpointProvider_=e;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=z;this.prefetchJobConfig_=C;this.JSC$13426_networkPrefetchRequest_=w;this.prefetchResponseCacheKey_=null};
XB.prototype.enqueue=function(){this.triggerPromise_||(dt3(this,UtW(this)),_.W9(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
XB.prototype.resolve=function(){this.cancel()};
XB.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.");vGE(this)};
XB.prototype.onVisibilityChange_=function(){var e=this;_.Z_(_.sYh)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){e.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||dt3(this,UtW(this))};
var Dtb=function(e,z,C,w,K){z&&(z==null?0:z.videoId)&&C&&C.entries&&_.M("kevlar_enable_shorts_prefetch_in_sequence")&&(P1$(e),z=C.entries.map(function(G){var X;return(X=_.r(G.command,_.rP))==null?void 0:X.videoId}).indexOf(z.videoId),C=C.entries[z+1],C!=null&&C.command&&!_.r(C==null?void 0:C.command,_.lt)&&(w=new rI3([C.command],new $tW(w,_.c5,1),null,"shorts",!1),e.pendingPrefetchJob_=new XB(new M_q(w.autonavEndpoints),function(){return!1},w,new bX(K)),e.pendingPrefetchJob_.enqueue()))},iN$=function(e,
z,C,w,K,G){var X=_.fH.getInstance();
if(!_.M("block_all_player_prefetch_requests")){P1$(e);var J=!!C.getPlaylistId(),q=C.getVideoData().isLive&&C.getVideoData().hasProgressBarBoundaries;if((X.getState()==2||J||q)&&(!C.getVideoData().isLive||q)){X={inPlaylist:J,videoDuration:C.getDuration(),makeUpNextTrigger:function(Q){return new WzL(C,_.c5,Q)},
makePlaybackTrigger:function(Q){return new $tW(C,_.c5,Q)}};
var T=HNl(z,X);T&&(e.pendingPrefetchJob_=new XB(T.isInPlaylist?new nG5(K):new M_q(T.autonavEndpoints),function(Q,m){m=new mt$(xtW[T.pageType].pageFragments,xtW[T.pageType].prefetchedFragments,m);return _.O5g(m)?(e.prefetchCache_.set(Q,m),!0):!1},T,new Ye(w,C,G,K)),e.pendingPrefetchJob_.enqueue())}}},NSW=function(){var e=_.Rl();
e.signals.parkOrScheduleJob(function(){var z=e.storage;if(z.storage)if(GpL(z)){var C=z.getPlaylistId();z=YnW(z);C=!!C&&z!==void 0}else z.clear(),C=!1;else C=!1;if(C){C=e.JSC$13253_pageManager.isOnWatch();a:{var w=e.storage;if(w.storage&&GpL(w)&&(z=w.getPlaylistId(),w=YnW(w),z&&w!==void 0)){C={recoverPlaylistCommand:{listId:z,index:w,openMiniplayer:!C,openListPanel:C,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}C=void 0}C&&_.wu(e.JSC$13253_actionRouter,[C],null)}},0,"ma")},sZ$=function(e,z,C,
w,K,G){var X=_.mT(7111);
_.yQ(e.JSC$18773_screenManager,X,G?_.v9(G):void 0);_.Ai(e.JSC$18773_screenManager,X,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:w,offlineId:z,offlineabilityFormatType:C,isDefaultFormatType:K==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:K}})},BS3=function(e,z,C,w,K){var G,X,J,q,T;
return _.k(function(Q){if(Q.nextAddress==1)return Q.yield(e.JSC$18773_playerApiPromise,2);G=Q.yieldResult;sZ$(e,z,C,"OFFLINE_OBJECT_TYPE_PLAYLIST",w,K);if(J=_.jB4[e.entityTypeMap.listEntityType])T={},X=(T[J]={maximumDownloadQuality:(q=C)!=null?q:void 0},T);return Q.yield(G.queueOfflineAction(z,e.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",X),0)})},t_Y=function(e,z){var C,w,K,G;
return _.k(function(X){if(X.nextAddress==1)return X.yield(e.JSC$18773_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){C=X.yieldResult;if(!C)return _.AX(new _.uh("PES is undefined")),X.return();w=_.qq(z,"downloadStatusEntity");return X.yield(oGq(C,w,"downloadStatusEntity"),3)}K=X.yieldResult;return X.return((G=K)==null?void 0:G.downloadState)})},gGf=function(e,z,C,w,K){var G,X,J,q,T,Q;
return _.k(function(m){switch(m.nextAddress){case 1:return m.yield(e.JSC$18773_playerApiPromise,2);case 2:G=m.yieldResult;sZ$(e,z,C,"OFFLINE_OBJECT_TYPE_VIDEO",w,K);if(J=_.jB4[e.entityTypeMap.singleEntityType])T={},X=(T[J]={maximumDownloadQuality:(q=C)!=null?q:void 0},T);return m.yield(t_Y(e,z),3);case 3:Q=m.yieldResult;if(Q!=="DOWNLOAD_STATE_USER_DELETED"){m.jumpTo(4);break}return m.yield(e.deleteVideo(z),4);case 4:return m.yield(G.queueOfflineAction(z,e.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
X),0)}})},jZo=function(e,z,C,w,K){return _.k(function(G){return G.nextAddress==1?G.yield(e.deleteVideo(z,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):G.yield(gGf(e,z,C,w,K),0)})},yIf=function(e,z,C){var w,K;
return _.k(function(G){if(G.nextAddress==1)return G.yield(e.JSC$18773_playerApiPromise,2);w=G.yieldResult;K=_.qq(z,"mainVideoDownloadStateEntity");return G.yield(w.updateDownloadState(K,C),0)})},fAv=function(e){var z=_.lh().resolve(_.UI);
return _.k(function(C){if(C.nextAddress==1)return z.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&z.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?C.jumpTo(2):C.yield(z.resumeVideoDownload(e),2);if(C.nextAddress!=4)return C.yield(yIf(z,e,z.previousDownloadStateForVideo[e]),4);delete z.previousDownloadStateForVideo[e];_.E_(C)})},FEl=function(e,z){var C;
return _.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$18773_playerApiPromise,2);C=w.yieldResult;return w.yield(C.queueOfflineAction(z,e.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},hm5=function(){var e=_.lh().resolve(_.UI),z,C;
return _.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$18773_playerApiPromise,2);if(w.nextAddress!=3)return z=w.yieldResult,C={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},w.yield(z.queueOfflineAction("!*$_ALL_ENTITIES_!*$",e.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",C),3);var K=e.JSC$18773_commandHandler,G=K.resolveCommand,X=_.kk("DELETING_ALL",void 0,"Downloads are being deleted");G.call(K,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.K4(X)}},
popupType:"TOAST"}});_.E_(w)})},cIo=function(e,z){var C,w,K,G,X,J;
return _.k(function(q){if(q.nextAddress==1)return q.yield(e.JSC$18773_persistentStorePromiseAccessor(),2);if(q.nextAddress!=3)return C=q.yieldResult,C?q.yield(oGq(C,_.Ru,"downloadsPageViewConfigurationEntity"),3):(_.AX(new _.uh("PES is undefined")),q.return());K=(w=q.yieldResult)!=null?w:{};J=(X=(G=K)==null?void 0:G.downloadsUpsellBannerVisibility)!=null?X:{};return J.visibleWithConnection?q.yield(z.refreshAllStaleEntities(0),0):q.jumpTo(0)})},AIW=function(e){var z,C;
return _.k(function(w){if(w.nextAddress==1)return w.yield(e.JSC$18773_prefStorage,2);z=w.yieldResult;return w.return((C=z)==null?void 0:C.get("sdois"))})},ZNE=function(e){var z,C,w,K,G,X;
return _.k(function(J){if(J.nextAddress==1)return J.yield(e.JSC$18773_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){z=J.yieldResult;if(!z)return _.AX(new _.uh("PES is undefined")),J.return();C=_.qq("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return J.yield(oGq(z,C,"settingEntity"),3)}w=J.yieldResult;return J.return((X=(K=w)==null?void 0:(G=K.settingOptionValue)==null?void 0:G.boolValue)!=null?X:!1)})},pEb=function(e,z){var C,w,K,G;
return _.k(function(X){switch(X.nextAddress){case 1:return((C=z)==null?void 0:C.formatType)===void 0?X.return():X.yield(e.JSC$18773_prefStorage,2);case 2:w=X.yieldResult;if(w===void 0)return X.return();if(((K=z)==null?void 0:K.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return X.yield(w.set("lmqf",z.formatType),8);if(((G=z)==null?void 0:G.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){X.jumpTo(0);break}return X.yield(w.set("lmqf",z.formatType),6);case 6:return X.yield(w.set("lmqflst",
Math.floor((0,_.as)())),0);case 8:return X.yield(w.remove("lmqflst"),0)}})},eTY=function(e){var z,C;
return _.k(function(w){switch(w.nextAddress){case 1:return w.yield(e.JSC$18773_prefStorage,2);case 2:z=w.yieldResult;if(!z){w.jumpTo(3);break}return w.yield(z.get("lmqflst"),4);case 4:if(C=w.yieldResult,C!==void 0)return w.return(C);case 3:return w.return(0)}})},zTo=function(e){var z,C,w;
return _.k(function(K){return K.nextAddress==1?K.yield(e.JSC$18773_prefStorage,2):K.nextAddress!=3?(z=K.yieldResult,K.yield((C=z)==null?void 0:C.get("ldtmes"),3)):K.return((w=K.yieldResult)!=null?w:!1)})},elo=function(){var e=_.lh().resolve(_.UI),z;
return _.k(function(C){if(C.nextAddress==1)return C.yield(e.JSC$18773_prefStorage,2);z=C.yieldResult;return z===void 0?C.return():C.yield(z.set("ldtmes",!0),0)})},Csb=function(e){var z,C;
return _.k(function(w){switch(w.nextAddress){case 1:return w.yield(e.JSC$18773_prefStorage,2);case 2:z=w.yieldResult;if(z===void 0){w.jumpTo(3);break}return w.yield(z.get("lmqf"),4);case 4:if(C=w.yieldResult,C!==void 0)return w.return(C);case 3:return w.return("SD")}})},BBv=function(e,z,C){var w,K,G,X,J,q,T,Q;
_.k(function(m){switch(m.nextAddress){case 1:return m.yield(pEb(e,(w=z)==null?void 0:w.actionParams),2);case 2:K=z.playlistId;if(!K)return m.return();if(z.action==="ACTION_ADD")return((X=z.actionParams)==null?0:X.formatType)?m.yield(BS3(e,K,z.actionParams.formatType,(Q=z.actionParams)==null?void 0:Q.settingsAction,C),0):m.yield(e.offlineWebClientEligibility,14);if(z.action==="ACTION_REMOVE_WITH_PROMPT"){var a=e.JSC$18773_commandHandler,n=a.resolveCommand,H=_.j5("INNERTUBE_CLIENT_NAME");var I=H===
"WEB_REMIX"?_.kk("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.kk("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=H==="WEB_REMIX"?[_.kk("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];H=H==="WEB_REMIX"?_.kk("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.kk("DELETE",void 0,"Delete");var h=_.kk("CANCEL",void 0,"Cancel");I=PAW(I,L,H,h,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:K});n.call(a,{openPopupAction:I});return m.return()}if(z.action===
"ACTION_REMOVE")return m.yield(FEl(e,K),0);if(z.action!=="ACTION_SYNC"){m.jumpTo(0);break}return m.yield(e.JSC$18773_playerApiPromise,9);case 9:return G=m.yieldResult,m.yield(G.queueOfflineAction(K,e.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return J=m.yieldResult,m.yield(Csb(e),15);case 15:return q=m.yieldResult,m.yield(eTY(e),16);case 16:T=m.yieldResult,z.onAddCommand&&e.JSC$18773_commandHandler.resolveCommand(z.onAddCommand,{form:{preferredFormatType:q,
offlineWebClientEligibility:J,lastOfflineQualitySettingsSavedMs:T.toString()}}),m.jumpTo(0)}})},NBY=function(e,z,C){var w,K,G,X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D,g,y;
_.k(function(Z){switch(Z.nextAddress){case 1:return Z.yield(pEb(e,(w=z)==null?void 0:w.actionParams),2);case 2:K=z.videoId;if(!K)return Z.return();if(z.action==="ACTION_REMOVE_WITH_PROMPT"){var YN=e.JSC$18773_commandHandler,Jk=YN.resolveCommand,v1=_.j5("INNERTUBE_CLIENT_NAME");var lg=v1==="WEB_REMIX"?_.kk("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.kk("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var M5=v1==="WEB_REMIX"?[_.kk("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];v1=v1==="WEB_REMIX"?_.kk("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.kk("DELETE",void 0,"Delete");var fo=_.kk("CANCEL",void 0,"Cancel");lg=PAW(lg,M5,v1,fo,{signal:"DELETE_DOWNLOAD",targetId:K});Jk.call(YN,{openPopupAction:lg});return Z.return()}if(z.action==="ACTION_ADD")return((E=z.actionParams)==null?0:E.formatType)?Z.yield(gGf(e,K,z.actionParams.formatType,(y=z.actionParams)==null?void 0:y.settingsAction,C),0):Z.yield(e.offlineWebClientEligibility,
28);if(z.action==="ACTION_RETRY")return Z.yield(Csb(e),24);if(z.action==="ACTION_PAUSE")return Z.yield(e.pauseVideoDownload(K),0);if(z.action==="ACTION_RESUME")return Z.yield(e.resumeVideoDownload(K),0);if(z.action==="ACTION_REMOVE")return Z.yield(t_Y(e,K),18);if(!_.M("kevlar_enable_download_to_mobile")){Z.jumpTo(0);break}G=_.r(z.onAddCommand,_.e3);J=(X=G)==null?void 0:X.isCrossDeviceDownload;if(!z.onAddCommand||!J){Z.jumpTo(0);break}q="HD";return Z.yield(eTY(e),16);case 16:return T=Z.yieldResult,
Z.yield(zTo(e),17);case 17:Q=Z.yieldResult;e.JSC$18773_commandHandler.resolveCommand(z.onAddCommand,{form:{preferredFormatType:q,lastOfflineQualitySettingsSavedMs:T.toString(),downloadToMobileEduShown:Q}});Z.jumpTo(0);break;case 18:return m=Z.yieldResult,e.previousDownloadStateForVideo[K]=(a=m)!=null?a:"DOWNLOAD_STATE_UNKNOWN",Z.yield(yIf(e,K,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(e.previousDownloadStateForVideo[K]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&e.previousDownloadStateForVideo[K]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){Z.jumpTo(20);break}return Z.yield(e.pauseVideoDownload(K),20);case 20:YN=_.kk("DELETED_VIDEO",void 0,"Video deleted from downloads.");Jk=_.kk("UNDO_ACTION",void 0,"Undo");lg=_.kk("CLOSE",void 0,"Close");n={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.K4(YN),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.K4(Jk),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:K}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:YN+" "+Jk}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:K}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:lg}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};e.JSC$18773_commandHandler.resolveCommand(n);
Z.jumpTo(0);break;case 24:H=Z.yieldResult;H==="UNKNOWN_FORMAT_TYPE"&&(H="SD");I="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((L=z.actionParams)==null?0:L.formatType)H=z.actionParams.formatType,I=(h=z.actionParams)==null?void 0:h.settingsAction;return Z.yield(jZo(e,K,H,I,C),25);case 25:return Z.return();case 28:return N=Z.yieldResult,Z.yield(Csb(e),29);case 29:return D=Z.yieldResult,Z.yield(eTY(e),30);case 30:g=Z.yieldResult,z.onAddCommand&&e.JSC$18773_commandHandler.resolveCommand(z.onAddCommand,
{form:{preferredFormatType:D,offlineWebClientEligibility:N,lastOfflineQualitySettingsSavedMs:g.toString()}}),Z.jumpTo(0)}})},wmf=function(e,z){var C,w,K,G,X,J,q;
return _.k(function(T){if(T.nextAddress==1)return T.yield(e.JSC$18773_persistentStorePromiseAccessor(),2);C=T.yieldResult;if(!C)return _.AX(new _.uh("PES is undefined")),T.return();if((w=z)==null||!w.settingItemId)return T.return();K=z;G=K.settingItemId;X=K.boolValue;J=_.qq(G,"settingEntity");q={key:J,settingOptionValue:{boolValue:X}};return T.yield(Kzb(C,q),0)})},KXl=function(e,z){var C,w,K,G,X,J,q;
return _.k(function(T){switch(T.nextAddress){case 1:return T.yield(e.JSC$18773_prefStorage,2);case 2:return C=T.yieldResult,w=_.Tj(),T.yield(e.JSC$18773_persistentStorePromiseAccessor(),3);case 3:return K=T.yieldResult,C?K?T.yield(C.get("sdois"),4):(_.AX(new _.uh("PES is undefined")),T.return()):(_.AX(new _.uh("prefStorage is undefined")),T.return());case 4:G=T.yieldResult;J=(X=z)==null?void 0:X.boolValue;J===void 0||_.M("kevlar_set_sd_enabled_flag_killswitch")||_.$k(0,197,!0);G===void 0&&J===void 0&&
(J=!1);if(J===void 0){T.jumpTo(0);break}return T.yield(C.set("sdois",J),6);case 6:return _.M("kevlar_set_sd_enabled_flag_killswitch")||(_.$k(0,196,J),w.save()),q={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:J},T.yield(wmf(e,q),0)}})},oPo=function(e,z,C){var w,K,G,X,J;
return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(AIW(e),2);case 2:return w=q.yieldResult,q.yield(KXl(e,C),3);case 3:return q.yield(AIW(e),4);case 4:return K=q.yieldResult,G=K!==w,q.yield(ZNE(e),5);case 5:X=q.yieldResult&&!_.M("kevlar_modern_downloads_page");if((J=!K&&!X)||G)return q.yield(z.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);q.jumpTo(0)}})},ubC=function(){var e=_.lh().resolve(_.UI),
z;
_.k(function(C){switch(C.nextAddress){case 1:return C.yield(e.JSC$18773_playerApiPromise,2);case 2:z=C.yieldResult;if(!_.M("kevlar_force_refresh_smart_downloads")){C.jumpTo(3);break}return C.yield(z.refreshAllStaleEntities(0),4);case 4:return C.return();case 3:return C.yield(z.refreshAllStaleEntities(),5);case 5:return C.yield(oPo(e,z),6);case 6:if(_.M("enable_download_pep_for_premium_countries_web"))return C.yield(cIo(e,z),0);C.jumpTo(0)}})},gQq=function(e,z){var C,w;
_.k(function(K){switch(K.nextAddress){case 1:return K.yield(e.JSC$18773_playerApiPromise,2);case 2:C=K.yieldResult;switch((w=z)==null?void 0:w.settingItemId){case "SMART_DOWNLOADS_ENABLED":return K.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return K.jumpTo(4)}K.jumpTo(0);break;case 3:return K.yield(oPo(e,C,z),6);case 6:K.jumpTo(0);break;case 4:return K.yield(wmf(e,z),7);case 7:K.jumpTo(0)}})},GaE=function(e,z){var C,w,K;
return _.k(function(G){if(G.nextAddress==1)return G.yield(e.JSC$18773_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3){C=G.yieldResult;if(!C)return _.AX(new _.uh("PES is undefined")),G.return(!1);if(!z)return G.return(!1);w=_.qq(z,"mainVideoEntity");return G.yield(oGq(C,w,"mainVideoEntity"),3)}K=G.yieldResult;return G.return(K!==void 0)})},yTZ=function(e){var z=_.lh().resolve(_.UI),C,w,K,G,X,J,q,T,Q,m,a;
_.k(function(n){switch(n.nextAddress){case 1:return n.yield(z.JSC$18773_playerApiPromise,2);case 2:C=n.yieldResult;K=(w=e)==null?void 0:w.actions;if(!K)return n.return();G=_.b(K);X=G.next();case 3:if(X.done){n.jumpTo(0);break}J=X.value;T=q=void 0;if(!(((q=J)==null?0:q.entityKey)&&((T=J)==null?0:T.actionType))){n.jumpTo(4);break}Q=_.Xn(J.entityKey);m=Q.entityId;a=Q.entityType;return n.yield(C.queueOfflineAction(m,a,J.actionType),4);case 4:X=G.next(),n.jumpTo(3)}})},YJL=function(e,z){var C,w,K,G,X;
return _.k(function(J){if(J.nextAddress==1)return J.yield(e.JSC$18773_prefStorage,2);if(J.nextAddress!=3)return(C=J.yieldResult)?J.yield(C.get("psi"),3):J.return();w=J.yieldResult;X={isPaused:z,lastSyncTimestamp:(G=(K=w)==null?void 0:K.lastSyncTimestamp)!=null?G:"0"};return J.yield(C.set("psi",X),0)})},ZkL=function(e){var z=_.lh().resolve(_.UI),C,w,K,G,X,J,q,T;
return _.k(function(Q){switch(Q.nextAddress){case 1:return Q.yield(z.JSC$18773_playerApiPromise,2);case 2:C=Q.yieldResult;K=((w=e)==null?void 0:w.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((J=e)==null?void 0:J.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":G="!*$_ALL_ENTITIES_!*$";X="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return Q.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return Q.jumpTo(4)}Q.jumpTo(5);break;case 3:return Q.yield(YJL(z,K),6);case 6:Q.jumpTo(5);break;case 4:return Q.yield(GaE(z,(q=e)==null?void 0:q.videoId),7);case 7:Q.yieldResult&&(G=(T=e)==null?void 0:T.videoId,X="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");Q.jumpTo(5);break;case 5:if(G&&X)return Q.yield(C.queueOfflineAction(G,"videoPlaybackPositionEntity",X),0);Q.jumpTo(0)}})},bc5=function(e,z,C){e.hasRegisteredHoverCallbacks=!0;
e.hoverEnterCallback=z!=null?z:void 0;e.hoverLeaveCallback=C!=null?C:void 0},Xmv=function(e,z){var C;
z!==1||((C=e.currentPersistentToast)==null?0:C.isOpened())?e.openToast():e.currentPersistentToast=void 0},J1l=function(e,z){var C;
return(C=e.transitionTasksMap.get(z))!=null?C:[]},kaC=function(e,z){var C=[];
e.elementTasksMap.forEach(function(w){(w=w.get(z))&&C.push(w)});
return C},qJZ=function(e,z,C,w,K){K=K===void 0?{}:K;
var G=z.defaultViewTransitionOptions;return Object.assign({},G,K,{beforeTransition:function(){w.forEach(function(T){T.beforeTransition()});
var X;(X=G.beforeTransition)==null||X.call(G);var J,q;(q=(J=K).beforeTransition)==null||q.call(J);C.forEach(function(T){T.beforeTransition()})},
afterTransition:function(){w.forEach(function(T){T.afterTransition()});
var X;(X=G.afterTransition)==null||X.call(G);var J,q;(q=(J=K).afterTransition)==null||q.call(J);C.forEach(function(T){T.afterTransition()})},
ignoredErrors:e.config.ignoredErrors})},xno=function(e,z,C){e.transitionTasksMap.has(z)?e.transitionTasksMap.get(z).push(C):(e=new _.uh("Transition task registered for unknown transition type",z),_.yG(e))},Tu3=function(e,z,C){if(e.transitionTasksMap.has(z)){var w=e.transitionTasksMap.get(z).filter(function(K){return K!==C});
e.transitionTasksMap.set(z,w)}},$nL=function(e,z){var C=J1l(e,z);
C=_.b(C);for(var w=C.next();!w.done;w=C.next())w=w.value,w.runOnce&&Tu3(e,z,w);e.elementTasksMap.forEach(function(K,G){K.forEach(function(X,J){X.runOnce&&z===J&&(K.delete(J),K.size===0&&e.elementTasksMap.delete(G))})})},loo=function(e,z,C){var w,K,G,X,J,q,T,Q,m;
_.k(function(a){if(a.nextAddress==1){if(e.config.disableAllTransitions)return a.return(z());if((w=C)==null||!w.transitionType)return a.return(_.pJL(z,Object.assign({},(K=C)==null?void 0:K.viewTransitionOptions,{ignoredErrors:e.config.ignoredErrors})));G=C;X=G.transitionType;J=G.viewTransitionOptions;q=e.config.transitionConfigs.get(X);if(!q)return a.return(z());T=J1l(e,X);Q=kaC(e,X);m=_.pJL(z,qJZ(e,q,T,Q,J));return a.yield(m,2)}$nL(e,X);_.E_(a)})},QJq=function(){var e,z,C,w;
return _.k(function(K){if(K.nextAddress==1)return e=navigator,(z=e.storage)!=null&&z.persisted?K.yield((C=e.storage)==null?void 0:C.persisted(),2):K.return("PERSISTED_STATE_NOT_SUPPORTED");w=K.yieldResult;return K.return(w?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},mnY=function(){var e,z,C,w;
return _.k(function(K){if(K.nextAddress==1)return e=navigator,(z=e.storage)!=null&&z.persist?K.yield((C=e.storage)==null?void 0:C.persist(),2):K.return("PERSISTED_STATE_NOT_SUPPORTED");w=K.yieldResult;return K.return(w?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},aoE=function(){var e,z;
return _.k(function(C){switch(C.nextAddress){case 1:return e="PERSISTED_STATE_NOT_SUPPORTED",_.Iv(C,2),C.yield(QJq(),4);case 4:e=C.yieldResult;if(e!=="PERSISTED_STATE_NOT_GRANTED"){C.jumpTo(5);break}return C.yield(mnY(),6);case 6:e=C.yieldResult;case 5:_.Yj(C,3);break;case 2:z=_.O_(C),z instanceof Error&&_.yG(z);case 3:return _.gm("persistentStorageStateChecked",{persistedState:e}),C.return(e)}})},nPE=function(e,z){var C=[],w=!1;
z=_.b(z);for(var K=z.next();!K.done;K=z.next()){K=e.moduleRegistry[K.value];var G=void 0,X=void 0;((G=K)==null?0:G.isFetching)&&((X=K)==null?0:X.resolver)?(C.push(K.resolver.promise),w=!0):(K=new _.x5,K.resolve(void 0),C.push(K.promise))}return w?Promise.all(C):void 0},M1L=function(e,z,C){if(e.isAnyTransitionEnabled){var w={beforeTransition:function(){C(!0);
z.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){z.style.viewTransitionName&&(z.style.viewTransitionName="",C(!1))}};
xno(e.viewTransitionCoordinator,"slide",w);xno(e.viewTransitionCoordinator,"lockup-to-watch",w);xno(e.viewTransitionCoordinator,"watch-next-appears",w);xno(e.viewTransitionCoordinator,"learning-journey",w)}},r1f=function(e,z){e.isBrowseTransitionEnabled?loo(e.viewTransitionCoordinator,z,{transitionType:"slide"}):(z(),Promise.resolve())},Hcv=function(e,z){e.isLockupToWatchTransitionEnabled?loo(e.viewTransitionCoordinator,z,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){e.registeredLockupThumbnail=void 0;e.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(z(),Promise.resolve())},UnY=function(e,z){e.isLockupToWatchTransitionEnabled?loo(e.viewTransitionCoordinator,z,{transitionType:"watch-next-appears"}):(z(),Promise.resolve())},vPo=function(e,z){e.isLearningJourneyTransitionEnabled?loo(e.viewTransitionCoordinator,z,{transitionType:"learning-journey"}):(z(),Promise.resolve())},IoL=function(e,z,C){if(e.isInitialized()){var w=
mk(C),K=w==="watch";
w=w==="shorts";var G=mk(z)==="watch";if(K)G||(e.backgroundPageData=z),e.watchPipMode&&G||e.deactivate(C.endpoint);else if(w){if(mk(z)!=="shorts"){var X;(X=e.getPlayerElement())==null||X.pause()}}else G&&!e.watchPipMode&&(R9v(z,C,!0)?(e.watchWhileMode&&_.hUa(e,!1),_.HCZ(e,z)):e.isMiniplayerActive()&&e.watchWhileMode&&e.deactivate());G&&_.EOY(e);e.shortsPipMode&&!w&&(window.focus(),e.deactivate());if(e.pictureInPictureEnabled())if(w&&e.shortsPipEnabled||K&&e.JSC$19193_watchPipEnabled)_.vxg(e.handleMediaSessionPipActivation);
else if(!e.isMiniplayerActive()&&(e.shortsPipEnabled||e.JSC$19193_watchPipEnabled)&&window.documentPictureInPicture&&_.W1()&&_.rk1("Chromium")>=120){e=_.UP1().mediaSession;try{e.setActionHandler("enterpictureinpicture",null)}catch(J){}}}},WXY=function(e,z){var C,w;
_.k(function(K){if(K.nextAddress==1){if(!e||!e.navigationEndpoint)return K.return();_.C3().lockupActivation=!0;var G;z?G=_.AO(_.kk("QUEUE",void 0,"Queue")):G=e.longBylineText;w=(C=G)&&e.title?{miniplayerTitle:e.title,miniplayerSubtitle:C,playlistData:null}:void 0;return K.yield(_.KNg(_.lh().resolve(_.gh),e.navigationEndpoint,!0,w),2)}_.C3().userActivation=!0;_.E_(K)})},GvE=function(e,z){var C,w,K,G,X,J;
_.k(function(q){if(q.nextAddress==1){C=_.r(z,_.wvs);if(!C||!C.listId)return q.return();e.index=C.index||e.index||0;w=e.response&&e.response.playingVideoId||void 0;return q.yield(_.Iqa(e.JSC$13253_playlistNetworkManager,C.listId,e.index,w),2)}K=q.yieldResult;if(!K)return q.return();G=K.playlistId;X=K.playlistPanelRenderer;!e.queueProxy&&G&&X&&G.startsWith("TLPQ")&&(e.queueProxy=new _.M2(e.JSC$13253_playlistNetworkManager,G,e.setPlaylistData.bind(e),e.clearQueue.bind(e),_.RV7(X),e.storage));if(C.openMiniplayer&&
(J=_.Lyk(X))&&!e.JSC$13253_pageManager.isOnWatch()){var T=J,Q=C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";e.isMiniplayerActive()?e.openToast(T):WXY(T,Q)}e.setPlaylistData(G,X,K.autoplayRenderer);_.E_(q)})},wT$=function(e,z){var C=_.Rl();
C.index===void 0&&(C.index=0);C.temporaryItems.push.apply(C.temporaryItems,_.s_(e));if((z.videoId||z.videoIds)&&C.index!==void 0&&z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!C.queueProxy){var w=[];if(C.response){var K=_.lh().resolve(_.gh).isMiniplayerActive();if(C.response.playlistPanelRenderer&&C.response.playlistId&&!C.response.playlistId.startsWith("TLPQ")){if(C.JSC$13253_pageManager.isOnWatch()||K)w=_.RV7(C.response.playlistPanelRenderer)}else C.response.playingVideoId&&!z.openMiniplayer?
w.push(C.response.playingVideoId):K&&C.response.playingVideoId&&z.openMiniplayer&&w.push(C.response.playingVideoId)}C.queueProxy=new _.M2(C.JSC$13253_playlistNetworkManager,"",C.setPlaylistData.bind(C),C.clearQueue.bind(C),w,C.storage);C.queueProxy.JSC$13199_setCurrentIndex(C.index)}C.queueProxy.addVideos(z.videoIds||[z.videoId],z)}bNE(C,e);C.response&&_.L3(C,_.hl(C,C.response.autoplayRenderer));C.JSC$13253_pageManager.isOnWatch()?C.isMiniplayerActive()&&C.openToast(e[0]):(e=e[0],z=z.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
C.isMiniplayerActive()?C.openToast(e):WXY(e,z))},PsW=function(e){var z=_.zL(e);
if(z=="object"||z=="array"){if(typeof e.clone==="function")return e.clone();if(typeof Map!=="undefined"&&e instanceof Map)return new Map(e);if(typeof Set!=="undefined"&&e instanceof Set)return new Set(e);z=z=="array"?[]:{};for(var C in e)z[C]=PsW(e[C]);return z}return e},JW=function(e,z){return _.nLk(_.RP(e,z,void 0,_.PW))},ke=function(e,z){return _.JC(_.RP(e,z,void 0,_.PW))},qR=function(e,z){return _.us7(_.RP(e,z,void 0,_.PW))},xe=function(e,z){return _.RP(e,z,void 0,_.PW,_.pg)},RTY=_.qg(function(e,
z,C,w){if(_.l5)return _.yt4(e,z,C,w);
if(e.nextWireType_!==0)return!1;_.Mg(z,C,w,_.nY(e.decoder_,_.sU));return!0},_.m2,_.pb),LXf=_.qg(function(e,z,C){if(_.l5)return _.ZYm(e,z,C);
if(e.nextWireType_!==1)return!1;var w=e.decoder_;e=_.cW(w);w=_.cW(w);e=_.io(e,w);_.xa(z,C,e);return!0},_.dgE,_.Tfh),hT5=_.qg(function(e,z,C){if(e.nextWireType_!==2)return!1;
e=_.ZgC(e);_.xa(z,C,e===_.h4()?void 0:e);return!0},_.Bwm,_.QbU),OcL=_.L2s(function(e,z,C){if(e.nextWireType_!==0&&e.nextWireType_!==2)return!1;
z=_.zy(z,z[_.GX]|0,C);e.nextWireType_==2?_.paC(e,d_W,z):z.push(_.y8(e.decoder_));return!0},function(e,z,C){z=_.Rjh(_.JC,z,!0);
if(z!=null&&z.length){C=_.oZs(e,C);for(var w=0;w<z.length;w++)_.fyh(e.encoder_,z[w]);_.GLg(e,C)}},_.maS),EPb=_.qg(function(e,z,C,w){if(e.nextWireType_!==0)return!1;
_.Mg(z,C,w,_.y8(e.decoder_));return!0},_.gaN,_.maS),FXZ=function(e){return e.previousElementSibling!==void 0?e.previousElementSibling:_.LIh(e.previousSibling,!1)},V1E=function(e,z){var C=[];
for(z=z||0;z<e.length;z+=2)_.aHS(e[z],e[z+1],C);return C.join("&")},foC=function(e,z){var C=arguments.length==2?V1E(arguments[1],0):V1E(arguments,1);
return _.mGa(e,C)},Qea=_.IT(_.DW),SJl=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(SJl,_.X2);SJl.prototype.getTypeName=function(){return _.Ds(this,1).split("/").pop()};
SJl.prototype.getValue=function(){var e=_.RP(this,2);if(Array.isArray(e)||e instanceof _.X2)throw Error("W");return _.O7(this,2)};
var uxb=[0,2,_.bS],YQo=function(){var e=_.XN();this.JSC$10086_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.ma("channel_type"))};
YQo.prototype.increment=function(e){this.JSC$10086_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",e)};
var bMf=function(){var e=_.XN();this.JSC$10089_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.ma("channel_type"))};
bMf.prototype.increment=function(e){this.JSC$10089_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",e)};
var J8o=function(){var e=_.XN();this.JSC$10092_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.ma("channel_type"))};
J8o.prototype.increment=function(e){this.JSC$10092_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",e)};
var XMC=function(){var e=_.XN();this.JSC$10095_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
XMC.prototype.increment=function(){this.JSC$10095_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var kOa=function(){var e=_.XN();this.JSC$10098_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.ma("channel_type"),_.ma("error_type"))};
kOa.prototype.increment=function(e,z){this.JSC$10098_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",e,z)};
var qQo=function(){var e=_.XN();this.JSC$10101_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
qQo.prototype.increment=function(){this.JSC$10101_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var xZo=function(){var e=_.XN();this.JSC$10104_streamzService=e;e.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
xZo.prototype.increment=function(){this.JSC$10104_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var a7v=function(){var e=_.XN();this.JSC$10110_streamzService=e;e.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
a7v.prototype.increment=function(){this.JSC$10110_streamzService.JSC$9956_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var dn5=function(e){return e.getCount&&typeof e.getCount=="function"?e.getCount():_.B1(e)||typeof e==="string"?e.length:_.de.getCount(e)},DnW=function(e,z){if(typeof e.every=="function")return e.every(z,void 0);
if(_.B1(e)||typeof e==="string")return Array.prototype.every.call(e,z,void 0);for(var C=_.Muh(e),w=_.aK(e),K=w.length,G=0;G<K;G++)if(!z.call(void 0,w[G],C&&C[G],e))return!1;return!0},icf=function(e,z,C,w){var K=new _.sX(null);
e&&_.nR(K,e);z&&_.M_(K,z);C&&_.rq(K,C);w&&_.Hq(K,w);return K},Nub=function(){var e=_.p0&&_.Tg(_.VCL,10)>=0,z;
if(z=_.wac)z=_.Tg(_.FAU,10)>=0;var C=_.U7&&_.Tg(_.VCL,85)>=0;return _.nb||e||z||C},sJY=function(e){var z=_.pVC(e);
return z&&Nub()?-e.scrollLeft:z&&_.ZH(e,"overflowX")!="visible"?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft},Buo=function(e,z){z=Math.max(z,0);
_.pVC(e)?Nub()?e.scrollLeft=-z:e.scrollLeft=e.scrollWidth-z-e.clientWidth:e.scrollLeft=z},tQC=0,AEa=!1;
p9$.prototype.set=function(e){this.relativeTimeStart_=e};
p9$.prototype.reset=function(){this.set(_.xd())};
p9$.prototype.get=function(){return this.relativeTimeStart_};
var t1E=null,gP$=function(){t1E||(t1E=new p9$)},jJl=function(){t1E||(t1E=new p9$)};
_.Tk(jJl,gP$);_.Y=etZ.prototype;_.Y.JSC$11522_buffer_="";_.Y.set=function(e){this.JSC$11522_buffer_=""+e};
_.Y.append=function(e,z,C){this.JSC$11522_buffer_+=String(e);if(z!=null)for(var w=1;w<arguments.length;w++)this.JSC$11522_buffer_+=arguments[w];return this};
_.Y.clear=function(){this.JSC$11522_buffer_=""};
_.Y.getLength=function(){return this.JSC$11522_buffer_.length};
_.Y.toString=function(){return this.JSC$11522_buffer_};
var y1Y=!1,Xj$=function(e){_.eh.call(this,e.message||e.description||e.name);this.isMissing=e instanceof of5;this.isTimeout=e instanceof _.uC5&&e.errorCode=="net.timeout";this.isCanceled=e instanceof _.g$};
_.U(Xj$,_.eh);Xj$.prototype.name="BiscottiError";var of5=function(){_.eh.call(this,"Biscotti ID is missing from server")};
_.U(of5,_.eh);of5.prototype.name="BiscottiMissingError";var G9q=null,cd$=function(){try{var e=_.pd("yt.ads.biscotti.getId_");return e?e():uHW()}catch(z){return _.R5(z)}},c1b=function(e,z){return _.Yz({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:e,command:z}})},A13=function(e){return _.Yz({type:"SET_GUIDE_IS_EXPANDED",
payload:e})},Zcf=function(e){return _.Yz({type:"SET_ONLINE_STATUS",
payload:e})},pmY=function(e,z){return _.Yz({type:"SET_TRANSCRIPTION_STATE",
payload:{high:e,low:z}})},eLY=function(e){return _.Yz({type:"SET_OVERLAY_STATE",
payload:e})},zLl=0,CLa=function(e,z,C){var w=this;
this.priority=z;this.delay=C;this.jobId=0;this.completionCallback=_.S2;this.wrappedJob=function(){e();w.completionCallback()};
this.id=++zLl};
CLa.prototype.enqueue=function(e){this.completionCallback=e;this.jobId=_.c5.addJob(this.wrappedJob,this.priority,this.delay)};
var TF=function(){_.Un.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.U(TF,_.Un);TF.prototype.addJob=function(e,z,C){e=new CLa(e,z,C);this.taskIdToTask.set(e.id,e);this.isActive?wvY(this,e):this.suspendedTasks.add(e);return e.id};
var wvY=function(e,z){e.scheduledTasks.add(z);z.enqueue(function(){e.scheduledTasks.delete(z)})};
TF.prototype.cancelJob=function(e){(e=this.taskIdToTask.get(e))&&(this.scheduledTasks.delete(e)?_.c5.cancelJob(e.jobId):this.suspendedTasks.delete(e))};
TF.prototype.pause=function(){var e=this;this.isActive=!1;this.scheduledTasks.forEach(function(z){_.c5.cancelJob(z.jobId);e.suspendedTasks.add(z)});
this.scheduledTasks.clear()};
TF.prototype.start=function(){var e=this;this.isActive=!0;this.suspendedTasks.forEach(function(z){wvY(e,z)});
this.suspendedTasks.clear()};
TF.prototype.reset=function(){this.scheduledTasks.forEach(function(e){_.c5.cancelJob(e.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var KhZ=function(e,z){this.JSC$13379_networkService_=e;this.pageRequestPromise=z};
KhZ.prototype.fetchData=function(e){oKa(this,this.JSC$13379_networkService_.fetchData(e))};
KhZ.prototype.postData=function(e,z){oKa(this,this.JSC$13379_networkService_.postData(e,z))};
KhZ.prototype.requestDataForServiceEndpoint=function(e,z){oKa(this,this.JSC$13379_networkService_.requestDataForServiceEndpoint(e,z))};
var oKa=function(e,z){z.then(e.pageRequestPromise.onSuccess,e.pageRequestPromise.onFailure,e.pageRequestPromise)};
KhZ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var GsE=function(e){this.buildNetworkRequest_=e;this.pendingRequests_=new Set};
GsE.prototype.reset=function(){this.pendingRequests_.forEach(function(e){e.cancel()});
this.pendingRequests_.clear()};
GsE.prototype.fetchData=function(e){var z=Yrf(this);z.fetchData(e);return z.pageRequestPromise};
GsE.prototype.postData=function(e,z){var C=Yrf(this);C.postData(e,z);return C.pageRequestPromise};
GsE.prototype.requestDataForServiceEndpoint=function(e,z){var C=Yrf(this);C.requestDataForServiceEndpoint(e,z);return C.pageRequestPromise};
var Yrf=function(e){var z=e.buildNetworkRequest_();e.pendingRequests_.add(z);var C=function(){e.pendingRequests_.delete(z)};
z.pageRequestPromise.then(C,C);return z},brW=function(e){var z=new TF;
this.JSC$13386_networkService_=e;this.JSC$13386_taskManager_=z;this.JSC$13386_networkManager_=new GsE(this.networkRequestFactory_.bind(this))};
_.Y=brW.prototype;_.Y.networkRequestFactory_=function(){return new KhZ(this.JSC$13386_networkService_,new _.j0(this.JSC$13386_taskManager_))};
_.Y.reset=function(){this.JSC$13386_taskManager_.reset();this.JSC$13386_networkManager_.reset()};
_.Y.start=function(){this.JSC$13386_taskManager_.start()};
_.Y.pause=function(){this.JSC$13386_taskManager_.pause()};
_.Y.getTaskManager=function(){return this.JSC$13386_taskManager_};
_.Y.getNetworkManager=function(){return this.JSC$13386_networkManager_};
var HUC=null,Ieq=[],mTb=0,rql=0,aeY=null,M0=function(e){this.token=e};
M0.getInstance=function(){var e;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.QZ(),2);e=z.yieldResult;if(!e)return z.return();M0.instance||(M0.instance=new M0(e));return z.return(M0.instance)})};
var FBE=function(e){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(htC(e.token),2);z=C.yieldResult;return C.return(z.clear("resource-manifest-assets"))})},n6=function(e){this.token=e};
n6.getInstance=function(){var e;return _.k(function(z){if(z.nextAddress==1)return z.yield(_.QZ(),2);e=z.yieldResult;if(!e)return z.return();n6.instance||(n6.instance=new n6(e));return z.return(n6.instance)})};
var OUY=function(e){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(htC(e.token),2);z=C.yieldResult;return C.yield(z.clear("auth"),0)})},XvW=!1,joC=null,yq3=void 0,KTa=!1,JpE=function(e){_.eh.call(this,e)};
_.U(JpE,_.ZOT);var wWo=function(){var e=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return e?parseInt(e[1],10):0},ksa=function(e){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+e)!=-1||document.currentScript.src.indexOf("&"+e)!=-1)},qrq=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},bbl=function(e){e.length?xVC(e.shift(),function(){bbl(e)}):odl()},JdL=function(e){return"chrome-extension://"+e+"/cast_sender.js"},xVC=function(e,
z,C){var w=document.createElement("script");
w.onerror=z;C&&(w.onload=C);_.Jn(w,_.iZ(e));(document.head||document.documentElement).appendChild(w)},TD3=function(){var e=wWo(),z=[];
if(e>1){var C=e-1;z.push("//www.gstatic.com/eureka/clank/"+e+"/cast_sender.js");z.push("//www.gstatic.com/eureka/clank/"+C+"/cast_sender.js")}return z},odl=function(){var e=qrq();
e&&e(!1,"No cast extension found")},Y7a=function(){if($VW){var e=2,z=qrq(),C=function(){e--;
e==0&&z&&z(!0)};
window.__onGCastApiAvailable=C;xVC("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",odl,C)}},KD3=function(){Y7a();
var e=TD3();e.push("//www.gstatic.com/eureka/clank/cast_sender.js");bbl(e)},Gka=function(){Y7a();
var e=TD3();e.push.apply(e,_.s_(XWo.map(JdL)));e.push("//www.gstatic.com/eureka/clank/cast_sender.js");bbl(e)},$VW=ksa("loadCastFramework")||ksa("loadCastApplicationFramework"),XWo=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var l2o=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(l2o,_.X2);var QrY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(QrY,_.X2);var mV5=function(){var e=new QrY;return _.g4(e,1,3)};var $e=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U($e,_.X2);var jx5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(jx5,_.X2);var a2Z=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(a2Z,_.X2);a2Z.prototype.getToken=function(){return _.Ds(this,1)};
a2Z.prototype.setToken=function(e){return _.ZW(this,1,e)};
var t3b=function(e){return _.cl(e,3,_.Hl,_.T5())},gTb=function(e){return _.cl(e,6,_.Hl,_.T5())};var lX=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(lX,_.X2);lX.prototype.getToken=function(){return _.ra(this,a2Z,2)};
lX.prototype.setToken=function(e){return _.PL(this,2,e)};
lX.prototype.getName=function(){return _.Ds(this,6)};
var nKa=_.IT(lX);var M6E=function(e,z,C){this.requestMessage=e;this.methodDescriptor=z;this.metadata=C};
M6E.prototype.getMetadata=function(){return this.metadata};var rpv=function(e,z){z=z===void 0?{}:z;this.responseMessage=e;this.metadata=z;this.status=null};
rpv.prototype.getMetadata=function(){return this.metadata};
rpv.prototype.getStatus=function(){return this.status};var Q9=function(e,z,C,w,K){this.name=e;this.methodType="unary";this.requestType=z;this.responseType=C;this.requestSerializeFn=w;this.responseDeserializeFn=K},Hro=function(e,z,C){C=C===void 0?{}:C;
return new M6E(z,e,C)};
Q9.prototype.getName=function(){return this.name};var mK=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(mK,_.X2);mK.prototype.getHeader=function(){return _.ra(this,$e,1)};
mK.prototype.setHeader=function(e){return _.PL(this,1,e)};
mK.prototype.hasHeader=function(){return _.Lb(this,$e,1)};var UVb=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(UVb,_.X2);var vKL=new Q9("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",mK,UVb,function(e){return e.serialize()},_.IT(UVb));var aN=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(aN,_.X2);aN.prototype.getHeader=function(){return _.ra(this,$e,1)};
aN.prototype.setHeader=function(e){return _.PL(this,1,e)};
aN.prototype.hasHeader=function(){return _.Lb(this,$e,1)};var I2l=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(I2l,_.X2);var Whl=new Q9("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",aN,I2l,function(e){return e.serialize()},_.IT(I2l));var nl=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(nl,_.X2);nl.prototype.getHeader=function(){return _.ra(this,$e,1)};
nl.prototype.setHeader=function(e){return _.PL(this,1,e)};
nl.prototype.hasHeader=function(){return _.Lb(this,$e,1)};var PLf=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(PLf,_.X2);PLf.prototype.getValues=function(e){return _.usc(this,1,e)};var RLv=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(RLv,_.X2);RLv.prototype.getLink=function(){return _.ra(this,lX,1)};var Lhv=new Q9("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",nl,RLv,function(e){return e.serialize()},_.IT(RLv));var MR=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(MR,_.X2);MR.prototype.getHeader=function(){return _.ra(this,$e,1)};
MR.prototype.setHeader=function(e){return _.PL(this,1,e)};
MR.prototype.hasHeader=function(){return _.Lb(this,$e,1)};var hLl=new Q9("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",MR,lX,function(e){return e.serialize()},nKa);var Or$=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Or$,_.X2);var EKb=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(EKb,_.X2);EKb.prototype.getUrl=function(){return _.Ds(this,2)};
EKb.prototype.setUrl=function(e){return _.ZW(this,2,e)};var Fha=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Fha,_.X2);var V6f=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(V6f,_.X2);var f2o=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(f2o,_.X2);var YA3=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(YA3,_.X2);var osC=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(osC,_.X2);var Sr5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Sr5,_.X2);var lWv=_.IT(Sr5);var uAv=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(uAv,_.X2);var dV5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(dV5,_.X2);_.Y=dV5.prototype;_.Y.getHeader=function(){return _.ra(this,$e,1)};
_.Y.setHeader=function(e){return _.PL(this,1,e)};
_.Y.hasHeader=function(){return _.Lb(this,$e,1)};
_.Y.getCompletionUrl=function(){return _.Ds(this,6)};
_.Y.getDeviceId=function(){return _.Ds(this,11)};var DVa=new Q9("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",dV5,Sr5,function(e){return e.serialize()},lWv);var irE=new Set(["SAPISIDHASH","APISIDHASH"]);var ND5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ND5,_.X2);ND5.prototype.getMessage=function(){return _.Ds(this,2)};
var srZ=_.IT(ND5);var t6b=function(e,z){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=e.nodeReadableStream;this.grpcResponseDeserializeFn=z;this.xhr=e.xhr;this.xhrNodeReadableStream&&BDo(this)},pva=function(e,z){var C=new gKv;
_.W9(e.xhr,"complete",function(){if(e.xhr.isSuccess()){var w=e.xhr.getResponseText();var K;if(K=z)K=e.xhr,K.JSC$9965_xhr_&&K.isComplete()?(K=K.JSC$9965_xhr_.getResponseHeader("Content-Type"),K=K===null?void 0:K):K=void 0,K=K==="text/plain";if(K){if(!atob)throw Error("jk");w=atob(w)}try{var G=e.grpcResponseDeserializeFn(w)}catch(J){jrZ(e,LTL(new _.yE(13,"Error when deserializing response data; error: "+J+(", response: "+w)),C));return}w=_.QX7(e.xhr.getStatus());ypL(e,cpv(e));w===0?Apo(e,G):jrZ(e,LTL(new _.yE(w,
"Xhr succeeded but the status code is not 200"),C))}else{w=e.xhr.getResponseText();G=cpv(e);if(w){var X=Zr5(e,w);w=X.code;K=X.details;X=X.metadata}else w=2,K="Rpc failed due to xhr error. uri: "+String(e.xhr.JSC$9965_lastUri_)+", error code: "+(e.xhr.JSC$9965_lastErrorCode_+", error: ")+e.xhr.getLastError(),X=G;ypL(e,G);jrZ(e,LTL(new _.yE(w,K,X),C))}})},BDo=function(e){e.xhrNodeReadableStream.on("data",function(z){if("1"in z){var C=z["1"];
try{var w=e.grpcResponseDeserializeFn(C)}catch(K){jrZ(e,new _.yE(13,"Error when deserializing response data; error: "+K+(", response: "+C)))}w&&Apo(e,w)}if("2"in z)for(z=Zr5(e,z["2"]),C=0;C<e.onStatusCallbacks.length;C++)e.onStatusCallbacks[C](z)});
e.xhrNodeReadableStream.on("end",function(){ypL(e,cpv(e));for(var z=0;z<e.onEndCallbacks.length;z++)e.onEndCallbacks[z]()});
e.xhrNodeReadableStream.on("error",function(){if(e.onErrorCallbacks.length!==0){var z=e.xhr.JSC$9965_lastErrorCode_;z!==0||e.xhr.isSuccess()||(z=6);var C=-1;switch(z){case 0:var w=2;break;case 7:w=10;break;case 8:w=4;break;case 6:C=e.xhr.getStatus();w=_.QX7(C);break;default:w=14}ypL(e,cpv(e));z=_.ARC(z)+", error: "+e.xhr.getLastError();C!==-1&&(z+=", http status code: "+C);jrZ(e,new _.yE(w,z))}})},cpv=function(e){var z={},C=Nqb(e.xhr);
Object.keys(C).forEach(function(w){z[w]=C[w]});
return z},Zr5=function(e,z){var C=2,w={};
try{var K=srZ(z);C=_.$2(K,1);var G=K.getMessage();_.x2(K,SJl,3,_.T5()).length&&(w["grpc-web-status-details-bin"]=z)}catch(X){e.xhr&&e.xhr.getStatus()===404?(C=5,G="Not Found: "+String(e.xhr.JSC$9965_lastUri_)):(C=14,G="Unable to parse RpcStatus: "+X)}return{code:C,details:G,metadata:w}};
t6b.prototype.on=function(e,z){e==="data"?this.onDataCallbacks.push(z):e==="metadata"?this.onMetadataCallbacks.push(z):e==="status"?this.onStatusCallbacks.push(z):e==="end"?this.onEndCallbacks.push(z):e==="error"&&this.onErrorCallbacks.push(z);return this};
var eg3=function(e,z){z=e.indexOf(z);z>-1&&e.splice(z,1)};
t6b.prototype.removeListener=function(e,z){e==="data"?eg3(this.onDataCallbacks,z):e==="metadata"?eg3(this.onMetadataCallbacks,z):e==="status"?eg3(this.onStatusCallbacks,z):e==="end"?eg3(this.onEndCallbacks,z):e==="error"&&eg3(this.onErrorCallbacks,z);return this};
t6b.prototype.cancel=function(){this.xhr.abort()};
var Apo=function(e,z){for(var C=0;C<e.onDataCallbacks.length;C++)e.onDataCallbacks[C](z)},ypL=function(e,z){for(var C=0;C<e.onMetadataCallbacks.length;C++)e.onMetadataCallbacks[C](z)},jrZ=function(e,z){for(var C=0;C<e.onErrorCallbacks.length;C++)e.onErrorCallbacks[C](z)},gKv=function(){var e=Error.call(this);
this.message=e.message;"stack"in e&&(this.stack=e.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.U(gKv,Error);var zgZ=function(e){this.JSC$19847_worker_=e.worker||null;this.JSC$19847_streamBinaryChunks_=e.streamBinaryChunks||!1;this.JSC$19847_credentialsMode_=void 0};
_.Tk(zgZ,_.a6E);zgZ.prototype.createInstance=function(){var e=new rT(this.JSC$19847_worker_,this.JSC$19847_streamBinaryChunks_);this.JSC$19847_credentialsMode_&&e.setCredentialsMode(this.JSC$19847_credentialsMode_);return e};
zgZ.prototype.setCredentialsMode=function(e){this.JSC$19847_credentialsMode_=e};
var rT=function(e,z){_.N3.call(this);this.JSC$19851_worker_=e;this.JSC$19851_streamBinaryChunks_=z;this.JSC$19851_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19851_responseHeaders_=null;this.JSC$19851_method_="GET";this.JSC$19851_url_="";this.inProgress_=!1;this.JSC$19851_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Tk(rT,_.N3);rT.prototype.open=function(e,z){if(this.readyState!=0)throw this.abort(),Error("kk");this.JSC$19851_method_=e;this.JSC$19851_url_=z;this.readyState=1;CKE(this)};
rT.prototype.send=function(e){if(this.readyState!=1)throw this.abort(),Error("lk");if(this.abortController_.signal.aborted)throw this.abort(),Error("mk");this.inProgress_=!0;var z={headers:this.requestHeaders_,method:this.JSC$19851_method_,credentials:this.JSC$19851_credentialsMode_,cache:void 0,signal:this.abortController_.signal};e&&(z.body=e);(this.JSC$19851_worker_||_.wL).fetch(new Request(this.JSC$19851_url_,z)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
rT.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,wtL(this));this.readyState=0};
rT.prototype.handleResponse_=function(e){if(this.inProgress_&&(this.fetchResponse_=e,this.JSC$19851_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19851_responseHeaders_=e.headers,this.readyState=2,CKE(this)),this.inProgress_&&(this.readyState=3,CKE(this),this.inProgress_)))if(this.responseType==="arraybuffer")e.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.wL.ReadableStream!==
"undefined"&&"body"in e){this.currentReader_=e.body.getReader();if(this.JSC$19851_streamBinaryChunks_){if(this.responseType)throw Error("nk");this.response=[]}else this.response=this.responseText="",this.JSC$19851_textDecoder_=new TextDecoder;KWE(this)}else e.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var KWE=function(e){e.currentReader_.read().then(e.handleDataFromStream_.bind(e)).catch(e.handleSendFailure_.bind(e))};
rT.prototype.handleDataFromStream_=function(e){if(this.inProgress_){if(this.JSC$19851_streamBinaryChunks_&&e.value)this.response.push(e.value);else if(!this.JSC$19851_streamBinaryChunks_){var z=e.value?e.value:new Uint8Array(0);if(z=this.JSC$19851_textDecoder_.decode(z,{stream:!e.done}))this.response=this.responseText+=z}e.done?wtL(this):CKE(this);this.readyState==3&&KWE(this)}};
rT.prototype.handleResponseText_=function(e){this.inProgress_&&(this.response=this.responseText=e,wtL(this))};
rT.prototype.handleResponseArrayBuffer_=function(e){this.inProgress_&&(this.response=e,wtL(this))};
rT.prototype.handleSendFailure_=function(){this.inProgress_&&wtL(this)};
var wtL=function(e){e.readyState=4;e.fetchResponse_=null;e.currentReader_=null;e.JSC$19851_textDecoder_=null;CKE(e)};
rT.prototype.setRequestHeader=function(e,z){this.requestHeaders_.append(e,z)};
rT.prototype.getResponseHeader=function(e){return this.JSC$19851_responseHeaders_?this.JSC$19851_responseHeaders_.get(e.toLowerCase())||"":""};
rT.prototype.getAllResponseHeaders=function(){if(!this.JSC$19851_responseHeaders_)return"";for(var e=[],z=this.JSC$19851_responseHeaders_.entries(),C=z.next();!C.done;)C=C.value,e.push(C[0]+": "+C[1]),C=z.next();return e.join("\r\n")};
rT.prototype.setCredentialsMode=function(e){this.JSC$19851_credentialsMode_=e};
var CKE=function(e){e.onreadystatechange&&e.onreadystatechange.call(e)};
Object.defineProperty(rT.prototype,"withCredentials",{get:function(){return this.JSC$19851_credentialsMode_==="include"},
set:function(e){this.setCredentialsMode(e?"include":"same-origin")}});var omW=function(e){var z="";_.de.forEach(e,function(C,w){z+=w;z+=":";z+=C;z+="\r\n"});
return z},GKv=function(e,z,C){if(_.de.isEmpty(C))return e;
C=omW(C);if(typeof e==="string")return _.YQ(e,_.K0(z),C);_.oI(e,z,C);return e};var Y4b=function(){this.isInputValid_=!0;this.JSC$19857_streamPos_=0;this.leftoverInput_=""};
Y4b.prototype.isInputValid=function(){return this.isInputValid_};
Y4b.prototype.decode=function(e){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ok`"+this.JSC$19857_streamPos_+"`stream already broken`"+e);this.leftoverInput_+=e;e=Math.floor(this.leftoverInput_.length/4);if(e==0)return null;try{var z=_.u8g(this.leftoverInput_.slice(0,e*4))}catch(C){throw z=this.leftoverInput_,e=C.message,this.isInputValid_=!1,Error("ok`"+this.JSC$19857_streamPos_+"`"+e+"`"+z);}this.JSC$19857_streamPos_+=e*4;this.leftoverInput_=this.leftoverInput_.slice(e*4);return z};var ETo=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19860_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
ETo.prototype.isInputValid=function(){return this.state_!=3};
var bAb=function(e,z,C,w){e.state_=3;e.errorMessage_="The stream is broken @"+e.JSC$19860_streamPos_+"/"+C+". Error: "+w+". With input:\n"+z;throw Error(e.errorMessage_);};
ETo.prototype.acceptsBinaryInput=function(){return!0};
ETo.prototype.parse=function(e){function z(q){q&128&&bAb(G,X,J,"invalid tag");(q&7)!=2&&bAb(G,X,J,"invalid wire type");G.tag_=q>>>3;G.tag_!=1&&G.tag_!=2&&G.tag_!=15&&bAb(G,X,J,"unexpected tag");G.state_=1;G.length_=0;G.countLengthBytes_=0}
function C(q){G.countLengthBytes_++;G.countLengthBytes_==5&&q&240&&bAb(G,X,J,"message length too long");G.length_|=(q&127)<<(G.countLengthBytes_-1)*7;q&128||(G.state_=2,G.countMessageBytes_=0,typeof Uint8Array!=="undefined"?G.messageBuffer_=new Uint8Array(G.length_):G.messageBuffer_=Array(G.length_),G.length_==0&&K())}
function w(q){G.messageBuffer_[G.countMessageBytes_++]=q;G.countMessageBytes_==G.length_&&K()}
function K(){if(G.tag_<15){var q={};q[G.tag_]=G.messageBuffer_;G.result_.push(q)}G.state_=0}
for(var G=this,X=e instanceof Array?e:new Uint8Array(e),J=0;J<X.length;){switch(G.state_){case 3:bAb(G,X,J,"stream already broken");break;case 0:z(X[J]);break;case 1:C(X[J]);break;case 2:w(X[J]);break;default:throw Error("pk`"+G.state_);}G.JSC$19860_streamPos_++;J++}e=G.result_;G.result_=[];return e.length>0?e:null};var FTv=function(){this.errorMessage_=null;this.JSC$19863_streamPos_=0;this.base64Decoder_=new Y4b;this.pbParser_=new ETo};
FTv.prototype.isInputValid=function(){return this.errorMessage_===null};
var XtE=function(e,z,C){e.errorMessage_="The stream is broken @"+e.JSC$19863_streamPos_+". Error: "+C+". With input:\n"+z;throw Error(e.errorMessage_);};
FTv.prototype.acceptsBinaryInput=function(){return!1};
FTv.prototype.parse=function(e){this.errorMessage_!==null&&XtE(this,e,"stream already broken");var z=null;try{var C=this.base64Decoder_.decode(e);z=C===null?null:this.pbParser_.parse(C)}catch(w){XtE(this,e,w.message)}this.JSC$19863_streamPos_+=e.length;return z};var O73=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19866_streamPos_=0;this.result_=[];this.statusParsed_=!1};
O73.prototype.isInputValid=function(){return this.errorMessage_===null};
O73.prototype.acceptsBinaryInput=function(){return!1};
O73.prototype.parse=function(e){function z(q){G.state_=6;G.errorMessage_="The stream is broken @"+G.JSC$19866_streamPos_+"/"+X+". Error: "+q+". With input:\n";throw Error(G.errorMessage_);}
function C(){G.jsonStreamParser_=new _.Er({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function w(q){if(q)for(var T=0;T<q.length;T++){var Q={};Q[1]=q[T];G.result_.push(Q)}}
function K(q){if(q){(G.statusParsed_||q.length>1)&&z("extra status: "+q);G.statusParsed_=!0;var T={};T[2]=q[0];G.result_.push(T)}}
for(var G=this,X=0;X<e.length;){var J;if(J=G.state_!==2){a:{for(;X<e.length;){if(!_.Or(e[X])){J=!0;break a}X++;G.JSC$19866_streamPos_++}J=!1}J=!J}if(J)return null;switch(G.state_){case 6:z("stream already broken");break;case 0:e[X]==="["?(G.state_=1,X++,G.JSC$19866_streamPos_++):z("unexpected input token");break;case 1:e[X]==="["?(G.state_=2,C()):e[X]===","||e.slice(X,X+5)=="null,"?G.state_=3:e[X]==="]"?(G.state_=5,X++,G.JSC$19866_streamPos_++):z("unexpected input token");break;case 2:J=G.jsonStreamParser_.parse(e.substring(X));
w(J);G.jsonStreamParser_.done()?(G.state_=3,J=G.jsonStreamParser_.JSC$11649_buffer_,G.JSC$19866_streamPos_+=e.length-X-J.length,e=J,X=0):(G.JSC$19866_streamPos_+=e.length-X,X=e.length);break;case 3:e[X]===","||e.slice(X,X+5)=="null,"?(G.state_=4,C(),G.jsonStreamParser_.parse("["),X+=e[X]===","?1:5,G.JSC$19866_streamPos_++):e[X]==="]"&&(G.state_=5,X++,G.JSC$19866_streamPos_++);break;case 4:J=G.jsonStreamParser_.parse(e.substring(X));K(J);G.jsonStreamParser_.done()?(G.state_=5,J=G.jsonStreamParser_.JSC$11649_buffer_,
G.JSC$19866_streamPos_+=e.length-X-J.length,e=J,X=0):(G.JSC$19866_streamPos_+=e.length-X,X=e.length);break;case 5:z("extra input after stream end")}}return G.result_.length>0?(e=G.result_,G.result_=[],e):null};var Jhf=function(e){this.JSC$19869_xhr_=e;this.JSC$19869_parser_=null;this.status_=this.JSC$19869_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19869_textDecoder_=null;this.JSC$19869_eventHandler_=new _.HA(this);this.JSC$19869_eventHandler_.listen(this.JSC$19869_xhr_,"readystatechange",this.JSC$19871_readyStateChangeHandler_)},H3=function(e,z){e.status_!=z&&(e.status_=z,e.statusHandler_&&e.statusHandler_())},kK$=function(e){e.JSC$19869_eventHandler_.removeAll();
if(e.JSC$19869_xhr_){var z=e.JSC$19869_xhr_;e.JSC$19869_xhr_=null;z.abort();z.dispose()}};
Jhf.prototype.getStatus=function(){return this.status_};
Jhf.prototype.JSC$19871_readyStateChangeHandler_=function(e){e=e.target;try{if(e==this.JSC$19869_xhr_)a:{var z=_.ZA(this.JSC$19869_xhr_),C=this.JSC$19869_xhr_.JSC$9965_lastErrorCode_,w=this.JSC$19869_xhr_.getStatus(),K=this.JSC$19869_xhr_.getResponseText();e=[];if(this.JSC$19869_xhr_.getResponse()instanceof Array){var G=this.JSC$19869_xhr_.getResponse();G.length>0&&G[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,e=G)}if(!(z<3||z==3&&!K&&e.length==0))if(w=w==200||w==206,z==4&&(C==8?H3(this,
7):C==7?H3(this,8):w||H3(this,3)),this.JSC$19869_parser_||(this.JSC$19869_parser_=V3o(this.JSC$19869_xhr_),this.JSC$19869_parser_==null&&H3(this,5)),this.status_>2)kK$(this);else{if(e.length>this.JSC$19869_pos_){var X=e.length;C=[];try{if(this.JSC$19869_parser_.acceptsBinaryInput())for(var J=0;J<X;J++){var q=this.JSC$19869_parser_.parse(Array.from(e[J]));q&&(C=C.concat(q))}else{q="";if(!this.JSC$19869_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("qk");this.JSC$19869_textDecoder_=
new TextDecoder}for(J=0;J<X;J++)q+=this.JSC$19869_textDecoder_.decode(e[J],{stream:z==4&&J==X-1});C=this.JSC$19869_parser_.parse(q)}e.splice(0,X);C&&this.dataHandler_(C)}catch(Q){H3(this,5);kK$(this);break a}}else if(K.length>this.JSC$19869_pos_){J=K.slice(this.JSC$19869_pos_);this.JSC$19869_pos_=K.length;try{var T=this.JSC$19869_parser_.parse(J);T!=null&&this.dataHandler_&&this.dataHandler_(T)}catch(Q){H3(this,5);kK$(this);break a}}z==4?(K.length!=0||this.hasStreamingResponseData_?H3(this,2):H3(this,
4),kK$(this)):H3(this,1)}}}catch(Q){H3(this,6),kK$(this)}};var q4f=function(e){e=this.xhrReader_=e;var z=(0,_.uZ)(this.onData_,this);e.dataHandler_=z;e=this.xhrReader_;z=(0,_.uZ)(this.onStatusChange_,this);e.statusHandler_=z;this.JSC$19873_callbackMap_={};this.callbackOnceMap_={}};
_.Y=q4f.prototype;_.Y.on=function(e,z){var C=this.JSC$19873_callbackMap_[e];C||(C=[],this.JSC$19873_callbackMap_[e]=C);C.push(z);return this};
_.Y.addListener=function(e,z){this.on(e,z);return this};
_.Y.removeListener=function(e,z){var C=this.JSC$19873_callbackMap_[e];C&&_.D8(C,z);(e=this.callbackOnceMap_[e])&&_.D8(e,z);return this};
_.Y.once=function(e,z){var C=this.callbackOnceMap_[e];C||(C=[],this.callbackOnceMap_[e]=C);C.push(z);return this};
_.Y.onData_=function(e){var z=this.JSC$19873_callbackMap_.data;z&&xBY(e,z);(z=this.callbackOnceMap_.data)&&xBY(e,z);this.callbackOnceMap_.data=[]};
var xBY=function(e,z){for(var C={},w=0;w<e.length;C={message$jscomp$1008:void 0},w++)C.message$jscomp$1008=e[w],z.forEach(function(K){return function(G){try{G(K.message$jscomp$1008)}catch(X){}}}(C))};
q4f.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:TUE(this,"readable");break;case 5:case 6:case 4:case 7:case 3:TUE(this,"error");break;case 8:TUE(this,"close");break;case 2:TUE(this,"end")}};
var TUE=function(e,z){var C=e.JSC$19873_callbackMap_[z];C&&C.forEach(function(w){try{w()}catch(K){}});
(C=e.callbackOnceMap_[z])&&C.forEach(function(w){w()});
e.callbackOnceMap_[z]=[]};var $BC=function(){var e={format:"jspb"};e=e===void 0?{}:e;this.suppressCorsPreflight=e.suppressCorsPreflight||_.pd("suppressCorsPreflight",e)||!1;this.withCredentials=e.withCredentials||_.pd("withCredentials",e)||!1;this.streamInterceptors=e.streamInterceptors||[];this.unaryInterceptors=e.unaryInterceptors||[];this.workerScope=e.workerScope;this.chunkedServerStreaming=e.useFetchDownloadStreams||!1},mBL=function(e,z,C,w,K,G){G=G===void 0?{}:G;
var X=z.substring(0,z.length-K.name.length),J,q=(J=G)==null?void 0:J.signal;return llf(function(T){return new Promise(function(Q,m){if(q==null?0:q.aborted){var a=new _.yE(1,"Aborted");a.cause=q.reason;m(a)}else{var n={},H=QYW(e,T,X);H.on("error",function(I){return void m(I)});
H.on("metadata",function(I){n=I});
H.on("data",function(I){var L=n;L=L===void 0?{}:L;Q(new rpv(I,L))});
q&&q.addEventListener("abort",function(){H.cancel();var I=new _.yE(1,"Aborted");I.cause=q.reason;m(I)})}})},e.unaryInterceptors).call(e,Hro(K,C,w)).then(function(T){return T.responseMessage})},al$=function(e,z,C,w,K,G){G=G===void 0?{}:G;
return mBL(e,z,C,w,K,G)};
$BC.prototype.serverStreaming=function(e,z,C,w){var K=this,G=e.substring(0,e.length-w.name.length);return nmY(function(X){var J=X.methodDescriptor,q=X.getMetadata(),T=MOa(K,!1);q=rhW(K,q,T,G+J.getName());var Q=HAv(T,J.responseDeserializeFn,!0);X=J.requestSerializeFn(X.requestMessage);T.send(q,"POST",X);return Q},this.streamInterceptors).call(this,Hro(w,z,C))};
var QYW=function(e,z,C){var w=z.methodDescriptor,K=z.getMetadata(),G=MOa(e,!0);e=rhW(e,K,G,C+w.getName());C=HAv(G,w.responseDeserializeFn,!1);pva(C,K["X-Goog-Encode-Response-If-Executable"]==="base64");z=w.requestSerializeFn(z.requestMessage);G.send(e,"POST",z);return C},MOa=function(e,z){z=e.chunkedServerStreaming&&!z;
return e.workerScope||z?new _.AT(new zgZ({worker:e.workerScope,streamBinaryChunks:z})):new _.AT},rhW=function(e,z,C,w){z["Content-Type"]="application/json+protobuf";
z["X-User-Agent"]="grpc-web-javascript/0.1";var K=z.Authorization;if(K&&irE.has(K.split(" ")[0])||e.withCredentials)C.JSC$9965_withCredentials_=!0;if(e.suppressCorsPreflight)w=GKv(w,"$httpHeaders",z);else for(e=_.b(Object.keys(z)),K=e.next();!K.done;K=e.next())K=K.value,C.headers.set(K,z[K]);return w},HAv=function(e,z,C){if(C){C=new Jhf(e);
var w=new q4f(C)}return new t6b({xhr:e,nodeReadableStream:w},z)},nmY=function(e,z){return z.reduce(function(C,w){return function(K){return w.intercept(K,C)}},e)},llf=function(e,z){return z.reduce(function(C,w){return function(K){return w.intercept(K,C)}},e)};var UBL=function(e){this.client_=new $BC;this.hostname_=e==void 0?e:e.replace(/\/+$/,"")};
_.Y=UBL.prototype;_.Y.JSC$19891_depositGoogleCredential=function(e,z,C){return al$(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",e,z||{},Whl,C)};
_.Y.deleteLink=function(e,z,C){return al$(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",e,z||{},vKL,C)};
_.Y.JSC$19891_finishOAuth=function(e,z,C){return al$(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",e,z||{},Lhv,C)};
_.Y.getLink=function(e,z,C){return al$(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",e,z||{},hLl,C)};
_.Y.startLinkingSession=function(e,z,C){return al$(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",e,z||{},DVa,C)};var vmC=[0,_.Yl,1,OcL,[0,_.kl,[0,_.XP,-1]],[0,hT5],[0,_.lS,-1],[0,hT5]];var Ilo=function(){this.storage=new Map},PKZ=function(e,z,C,w,K){if(!e.storage.has(z))return null;
e=_.b(e.storage.get(z));for(z=e.next();!z.done;z=e.next())if(z=z.value,!K||z.linkName===K)if(C&&z.scopes&&WWf(z.scopes,C)||w&&z.capabilities&&WWf(z.capabilities,w))return z;return null},RgE=function(e,z,C){if(!C)e.storage.delete(z);
else if(e.storage.has(z)){var w=e.storage.get(z).filter(function(K){return K.linkName!==C});
w.length>0?e.storage.set(z,w):e.storage.delete(z)}},WWf=function(e,z){z=_.b(z);
for(var C=z.next();!C.done;C=z.next())if(!e.has(C.value))return!1;return!0};var LWZ=function(){var e=_.j5("LINK_GAL_DOMAIN");this.alsDomain1p=_.j5("LINK_GAL_DOMAIN");this.alsDomain3p=e;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},hg5=function(e,z){e.apiKey=z;
return e};
LWZ.prototype.build=function(){var e={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("rk");e.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("sk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("tk");e.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(e.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)e.apiKey=
this.apiKey,e.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("uk");e.oauthToken=this.oauthToken;e.alsDomain=this.alsDomain3p}e.clientXd3=this.clientXd3;e.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(e.authUser=this.authUser);this.bucket!==void 0&&(e.bucket=this.bucket);this.completionUrl!==void 0&&(e.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(e.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(e.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(e.locale=this.locale);this.localStorage!==void 0&&(e.localStorage=this.localStorage);e.loggerType=this.loggerType;e.clientEnvironment=this.clientEnvironment;e.colorScheme=this.colorScheme;e.showCloseOption=this.showCloseOption;return e};var Hd=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Hd,_.X2);var OAo=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(OAo,_.X2);var Em$=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Em$,_.X2);var vd=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(vd,_.X2);var FWl=function(e){return _.i5(e,1)};var VOf=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(VOf,_.X2);var NEf=_.IT(VOf),U0=[1,2,3,4,5];var uRf=function(e){try{return NEf(e)}catch(z){return null}},flo=function(){},dKL=function(e,z){switch(_.E7(z,U0)){case 4:return(z=_.BW(z,Em$,4,U0))&&e.logStateTransition(_.i5(z,1)),!0;
case 5:return(z=_.BW(z,OAo,5,U0))&&e.logInternalEvent(_.i5(z,1)),!0}return!1},sxf=function(e){switch(e){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.ca(e)}};var fhl=function(e,z){var C=this;this.validator=e;this.messageListener=z;this.dismissCallback=function(){S4b(C,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19920_receiveMessage=function(w){w.type==="message"&&(w=w.event_,w!==null&&(new URL(C.iframe.src)).origin===w.origin&&C.validator(w.data,w.origin)&&!C.messageListener(w.data)&&(C.JSC$19920_resolveCb!==void 0&&C.JSC$19920_resolveCb(w.data),uSv(C)))}},i7b=function(e,z,C){e.uiHandler!==void 0&&S4b(e,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(w,K){e.JSC$19920_resolveCb=w;e.JSC$19920_rejectCb=K;e.iframe=document.createElement("iframe");_.Cq(e.iframe,z);e.uiHandler=C.displayContent(e.iframe,e.dismissCallback);_.W9(window,"message",e.JSC$19920_receiveMessage,!1,e)})},S4b=function(e,z){e.JSC$19920_rejectCb!==void 0&&e.JSC$19920_rejectCb(z);
uSv(e)},uSv=function(e){e.uiHandler!==void 0&&e.uiHandler.hideContent();
_.ib(window,"message",e.JSC$19920_receiveMessage,!1,e);e.JSC$19920_resolveCb=void 0;e.JSC$19920_rejectCb=void 0;e.uiHandler=void 0;e.iframe=void 0};var dBY=function(e){if(e===2){var z;e=((z=window)==null?0:z.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return e},DKo=function(e){e=dBY(e);
switch(e){case 0:return"light";case 1:return"dark";default:_.ca(e)}};var SzW=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),DBa=function(e,z){this.JSC$19932_linkingSession=e;this.noticeConfig=z;this.displayInfoMap=new Map;var C=new Map;if(_.Lb(this.JSC$19932_linkingSession,Fha,7))for(e=_.ra(this.JSC$19932_linkingSession,Fha,7),e=_.x2(e,EKb,1,_.T5()),e=_.b(e),z=e.next();!z.done;z=e.next())z=z.value,C.set(_.i5(z,1),_.EBm(_.ra(z,_.s9m,3)));if(C.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){z=this.noticeConfig.enabledDataUsageNoticeUis;e=z.has(0)?C.get(1):void 0;z=z.has(1)?C.get(2):void 0;C=e!==void 0&&z!==void 0?C.get(3):void 0;var w=this.noticeConfig.nestedOrigins;var K=new VOf;var G=new Hd;K=_.RT(K,2,U0,G);G=new VOf;var X=new Hd;G=_.RT(G,3,U0,X);X=[];e!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:e,lastEvent:K,nestedOrigins:w}]),X.push({trustedUrl:e,lastEvent:K,nestedOrigins:w}));z!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:z,lastEvent:G,nestedOrigins:w}]),X.push({trustedUrl:z,lastEvent:G,nestedOrigins:w}));C!==void 0?this.displayInfoMap.set(3,[{trustedUrl:C,lastEvent:G,nestedOrigins:w}]):this.displayInfoMap.set(3,X)}};var iAq=function(e){var z=new Ilo;this.galService=e;this.galCache=z};
iAq.prototype.getLink=function(e){var z=e.serviceId;var C=e.scopes;var w=e.capabilities;var K=e.linkName;var G=this,X;return _.k(function(J){if(w!==void 0&&C!==void 0)throw Error("vk");X=PKZ(G.galCache,z,C,w,K);return X!==null?J.return(X):J.return(G.galService.getLink({serviceId:z,sessionId:Math.floor(Math.random()*2147483648),scopes:C,capabilities:w,linkName:K}).then(function(q){q=yma(q);var T=G.galCache;T.storage.has(z)?T.storage.get(z).push(q):T.storage.set(z,[q]);return q}))})};
iAq.prototype.deleteLink=function(e,z,C){var w=this;return _.k(function(K){RgE(w.galCache,e,C);return K.return(w.galService.deleteLink({serviceId:e,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:z,linkName:C}).then(function(){return!0}))})};var sYE=function(e,z){var C=this;this.validator=e;this.msgHandler=z;this.closedPopupTimeout=this.JSC$19954_rejectCb=this.JSC$19954_resolveCb=this.popup=null;this.JSC$19954_receiveMessage=function(w){if(w!==null&&(w=w.event_,w.source===C.popup)){var K=w.data;if(C.validator(K,w.origin)){var G;(G=C.msgHandler)!=null&&G.call(C,K)||(C.JSC$19954_resolveCb!==null&&C.JSC$19954_resolveCb(K),NUE(C))}}}};
sYE.prototype.open=function(e,z){var C=this;this.popup!==null&&BUf(this);return new Promise(function(w,K){C.JSC$19954_resolveCb=w;C.JSC$19954_rejectCb=K;C.popup=_.Kq(window,e,"",z);_.W9(window,"message",C.JSC$19954_receiveMessage,!1,C);tOl(C)})};
var BUf=function(e,z){e.JSC$19954_rejectCb!==null&&e.JSC$19954_rejectCb(z);NUE(e)},NUE=function(e){e.closedPopupTimeout&&(e.closedPopupTimeout.cancel(),e.closedPopupTimeout=null);
e.popup&&e.popup.close();_.ib(window,"message",e.JSC$19954_receiveMessage,!1,e);e.popup=null;e.JSC$19954_resolveCb=null;e.JSC$19954_rejectCb=null},tOl=function(e){e.closedPopupTimeout=_.t5Y(100).then(function(){e.popup?e.popup.closed?gmZ(e):tOl(e):BUf(e,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},gmZ=function(e){e.closedPopupTimeout=_.t5Y(100).then(function(){BUf(e,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var jY3=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),yhC=function(e,z,C,w,K,G,X,J,q,T){var Q=this;this.serviceId=e;this.sessionId=z;this.galService=C;this.oauthDetails=w;this.galLogger=K;this.interactionMode=G;this.redirectServiceUrl=X;this.consentLanguageKeys=J;this.dynamicUrlParameters=q;this.partnerConfigMinReadTimestamp=T;this.started=!1;this.JSC$19960_dataValidator=function(m,
a){var n=jY3.has(a);n||Q.redirectServiceUrl===void 0||(n=Q.redirectServiceUrl===a);return n?m.sentinel==="gdi":!1}};
yhC.prototype.complete=function(){var e=this,z;return _.k(function(C){if(e.interactionMode!==1)return C.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));z=GVa.getRedirectStateFromUri();return z===null?C.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):C.return(chC(e,z))})};
yhC.prototype.start=function(){var e=this,z;return _.k(function(C){if(e.started)return C.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Ds(e.oauthDetails,1))return C.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(e.interactionMode===1)return GVa.setLocation(_.Ds(e.oauthDetails,1)),C.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));e.started=!0;e.galLogger.logStateTransition(5);
z=GVa.getPostMessagePopup(e.JSC$19960_dataValidator);return C.return(z.open(_.Ds(e.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(w){e.started=!1;var K=e.galLogger;if((w==null?void 0:w.error)!==void 0)throw K.logInternalEvent(59),Error("wk");if((w==null?void 0:w.redirect_state)===void 0)throw K.logInternalEvent(131),Error("xk");return chC(e,w.redirect_state)}).catch(function(w){e.started=
!1;
return w.errorCode!==void 0?{statusCode:w.errorCode,statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var chC=function(e,z){return _.k(function(C){return C.return(Aho(e.galService,{serviceId:e.serviceId,sessionId:e.sessionId,dynamicUrlParameters:e.dynamicUrlParameters,redirectState:z,consentLanguageKeys:e.consentLanguageKeys,partnerConfigMinReadTimestamp:e.partnerConfigMinReadTimestamp}).then(function(w){var K={statusCode:1,link:yma(w.getLink())};ffE(_.O7(w,3))!==void 0&&(K.callerState=ffE(_.O7(w,3)));_.f3E(w,4,PLf,VQl).size>0&&(K.redirectUriParams=new Map(Array.from(_.f3E(w,4,PLf,VQl).entries()).map(function(G){var X=
_.b(G);G=X.next().value;var J=X.next().value;X=[];var q=X.concat;J=_.cl(J,1,_.Hl,_.T5());return[G,q.call(X,_.s_(J))]})));
e.galLogger.logInternalEvent(134);return K}))})},GVa={getPostMessagePopup:function(e){return new sYE(e)},
getRedirectStateFromUri:function(){var e=_.Cj(GVa.getLocation()).fragment_;return(new _.Wq(e)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(e){_.vo1(window.location,_.gw(e))},
createOAuthFlow:function(e,z){return new yhC(e.serviceId,e.sessionId,e.galService,z,e.galLogger,e.interactionMode,e.redirectServiceUrl,e.consentLanguageKeys,e.dynamicUrlParameters,e.partnerConfigMinReadTimestamp)}};var ZAY=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(ZAY,_.X2);var ptZ=_.IT(ZAY);var efC=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),zfC=function(e,z,C,w,K,G,X,J,q){var T=this;this.serviceId=e;this.sessionId=z;this.galService=C;this.gsiWebFlowDetails=w;this.colorScheme=K;this.showCloseOption=G;this.galLogger=X;this.interactionMode=J;this.redirectServiceUrl=q;this.started=!1;this.JSC$19973_dataValidator=function(Q,m){var a=efC.has(m);a||T.redirectServiceUrl===
void 0||(a=T.redirectServiceUrl===m);return a?Q.sentinel==="gal":!1};
this.logEventProcessor=function(Q){return Q.result?(Q=uRf(Q.result))?dKL(T.galLogger,Q):!1:!1}};
zfC.prototype.complete=function(){var e=this,z,C;return _.k(function(w){if(e.interactionMode!==1)return w.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));z=bsv.getRedirectStateFromUri();if(z===void 0)return e.galLogger.JSC$19912_logErrorEvent(131),w.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return C=Cto(e,z),w.return(w7f(e,C))}catch(K){return w.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
zfC.prototype.start=function(){var e=this,z;return _.k(function(C){if(e.started)return C.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Ds(e.gsiWebFlowDetails,1))return C.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(e.interactionMode===1)return bsv.setLocation(Kuo(e,_.Ds(e.gsiWebFlowDetails,1))),C.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
e.started=!0;z=bsv.getPostMessagePopup(e.JSC$19973_dataValidator,e.logEventProcessor);return C.return(z.open(Kuo(e,_.Ds(e.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(w){e.started=!1;if((w==null?void 0:w.result)===void 0)throw e.galLogger.JSC$19912_logErrorEvent(131),Error("xk");w=Cto(e,w.result);return w7f(e,w)}).catch(function(w){e.started=!1;
return w.errorCode!==void 0?{statusCode:w.errorCode,statusMessage:w.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Kuo=function(e,z){e=["result_channel",e.interactionMode===1?"2":"1","color_scheme",DKo(e.colorScheme),"show_close_option",e.showCloseOption];return foC(z,e)},w7f=function(e,z){if(z!==null&&_.Lb(z,vd,2)){var C,w=z==null?void 0:(C=_.ra(z,vd,2))==null?void 0:_.i5(C,2);
w&&e.galLogger.JSC$19912_logErrorEvent(sxf(w));return FWl(_.ra(z,vd,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 e.galService.getLink({serviceId:e.serviceId,sessionId:e.sessionId,consistencyKey:_.Ds(z,1)}).then(function(K){K=yma(K);e.galLogger.logInternalEvent(134);return{statusCode:1,link:K}})},Cto=function(e,z){z=ptZ(z);
if(!_.Lb(z,vd,2)&&_.Ds(z,1)==="")throw e.galLogger.JSC$19912_logErrorEvent(5),Error("yk");return z},bsv={getPostMessagePopup:function(e,z){return new sYE(e,z)},
getRedirectStateFromUri:function(){return _.Kj(_.Cj(bsv.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(e){_.vo1(window.location,_.gw(e))},
createStreamlinedFlow:function(e,z){return new zfC(e.serviceId,e.sessionId,e.galService,z,e.colorScheme,e.showCloseOption,e.galLogger,e.interactionMode,e.redirectServiceUrl)}};var T$L=function(e){this.storage=(e=e?_.s3("GAL"):_.ZK1("GAL"))?new _.d3(e):null};
T$L.prototype.getSession=function(e){if(this.storage!==null)try{var z=this.storage.get("SAVED_SESSION");if(z===void 0)return null;if(z.serviceId===e)return z}catch(C){}return null};var oRv=function(){};
_.U(oRv,flo);oRv.prototype.logStateTransition=function(){};
oRv.prototype.logInternalEvent=function(){};
oRv.prototype.JSC$19912_logErrorEvent=function(){};var GCZ=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(GCZ,_.X2);GCZ.prototype.getCompletionUrl=function(){return _.Ds(this,15)};var UB=function(e,z,C,w,K,G){this.serviceId=e;this.environment=z;this.sessionId=C;this.colorSchemeSelected=w;this.colorThemeDisplayed=K;this.JSC$19986_transport=G;this.currentState=1};
_.U(UB,flo);UB.prototype.logStateTransition=function(e){var z=YfC(this);z=_.H5(z,3,this.currentState);z=_.H5(z,1,e);this.currentState=e;e=iRl(1);this.dispatch(z,e)};
UB.prototype.logInternalEvent=function(e){e=iRl(e);this.dispatch(YfC(this),e)};
UB.prototype.JSC$19912_logErrorEvent=function(e){var z=YfC(this);z=_.H5(z,1,10);e=iRl(e);this.dispatch(z,e)};
var YfC=function(e){var z=new GCZ;z=_.H5(z,1,e.currentState);z=_.Et(z,7,e.serviceId);var C,w;var K=((C=window)==null?0:(w=C.location)==null?0:w.href)?_.Cj(window.location.href).JSC$10201_domain_:"NO_PACKAGE_NAME";C=_.Et(z,8,K);C=_.H5(C,6,e.environment);C=_.Et(C,5,"100");C=_.H5(C,11,e.colorSchemeSelected);return _.H5(C,12,e.colorThemeDisplayed)};
UB.prototype.dispatch=function(e,z){z===void 0&&(z=new _.Ri);var C=z;e=e.serialize();C=_.Et(C,8,e);_.uk(C,12,this.sessionId);this.JSC$19986_transport.dispatch(z)};var bHC=function(e,z){this.loggerType=e;this.sessionIndex=z!=null?z:0},X75;
bHC.prototype.create=function(e,z,C,w,K){switch(this.loggerType){case 0:return new oRv;case 1:return X75||(X75=(new _.vo(555,this.sessionIndex.toString())).build()),new UB(e,z,C,w,K,X75);default:_.ca(this.loggerType,"unknown logger type")}};var X0v=[6,2,3,1],nsL=new Map([[4,1],[1,6],[2,2],[3,3]]),pFC={statusCode:7,statusMessage:"Failed to create flow object"},qAv=function(e,z,C,w,K,G,X,J,q,T){this.serviceId=e;this.sessionId=z;this.config=C;this.galService=w;this.JSC$19993_linkingSession=K;this.googleScopes=G;this.callerState=X;this.consentLanguageKeys=J;this.dynamicUrlParameters=q;this.partnerConfigMinReadTimestamp=T;this.currentFlow=0;w=this.JSC$19993_linkingSession;K=new Set;_.Lb(w,osC,1)&&K.add(1);_.Lb(w,f2o,2)&&_.Lb(w,YA3,6)&&K.add(2);
_.Lb(w,V6f,3)&&_.Lb(w,YA3,6)&&K.add(3);_.Lb(w,Or$,4)&&K.add(6);this.supportedFlows=K;w=C.loggerType;K=C.clientEnvironment;a:{G=C.colorScheme;switch(G){case 0:G=1;break a;case 1:G=2;break a;case 2:G=3;break a;default:_.ca(G)}G=void 0}a:{X=C.colorScheme;X=dBY(X);switch(X){case 0:X=1;break a;case 1:X=2;break a;default:_.ca(X)}X=void 0}this.galLogger=(new bHC(w,C.authUser)).create(e,K,z,G,X)},qf5=function(e){return new Promise(function(z){var C,w,K,G,X,J,q,T,Q,m;
return _.k(function(a){switch(a.nextAddress){case 1:C=JSf(e.currentFlow,e.supportedFlows),w=!1,K=new DBa(e.JSC$19993_linkingSession,e.config.dataUsageNoticeConfig);case 2:if(C===void 0){a.jumpTo(4);break}_.Iv(a,5);var n=K,H=C,I=void 0;w?H===1&&(I=n.displayInfoMap.get(2)):H===2||H===3?I=n.displayInfoMap.get(1):H===1&&(I=n.displayInfoMap.get(3));G=I?I:[];X=e.consentLanguageKeys;J=_.b(G);q=J.next();case 7:if(q.done)return e.currentFlow=C,a.yield(zPE(Jil(e,X)),11);T=q.value;return a.yield(BEL(T,e.config.dataUsageNoticeConfig.uiAdapter,
e.config.colorScheme,e.galLogger),10);case 10:Q=a.yieldResult;if(Q.statusCode!==1)return kC$(e),z(Cna({statusCode:Q.statusCode,statusMessage:Q.statusMessage},e.callerState)),a.return();Q.consentLanguageKeys!==void 0&&(X=Q.consentLanguageKeys);q=J.next();a.jumpTo(7);break;case 11:m=a.yieldResult;if(m.statusCode!==10)return m.statusCode!==6&&kC$(e),m.statusCode!==1&&e.callerState!==void 0&&(m.callerState=e.callerState),z(m),a.return();_.Yj(a,6);break;case 5:_.O_(a);case 6:C=JSf(e.currentFlow,e.supportedFlows);
w=!0;a.jumpTo(2);break;case 4:kC$(e),z(Cna({statusCode:12,statusMessage:"Linking failed"},e.callerState)),_.E_(a)}})})},kC$=function(e){$lo(e.serviceId,e.config.localStorage);
e.currentFlow=0},mla=function(e,z,C){e.currentFlow=z;
return w0L(Jil(e,C)).then(function(w){return w.statusCode===10&&e.config.interactionMode===1&&JSf(e.currentFlow,e.supportedFlows)!==void 0?qf5(e):w})},Jil=function(e,z){return{flowParams:{serviceId:e.serviceId,
sessionId:e.sessionId,galService:e.galService,galLogger:e.galLogger,interactionMode:e.config.interactionMode,redirectServiceUrl:e.config.redirectServiceUrl,colorScheme:e.config.colorScheme,consentLanguageKeys:z,dynamicUrlParameters:e.dynamicUrlParameters,showCloseOption:e.config.showCloseOption,partnerConfigMinReadTimestamp:e.partnerConfigMinReadTimestamp},currentFlow:e.currentFlow,config:e.config,session:e.JSC$19993_linkingSession,googleScopes:e.googleScopes,callerState:e.callerState}};var rSY=function(e,z){this.config=e;this.galService=z.getService();this.JSC$20006_galRepository=z.JSC$20024_galRepository};
rSY.prototype.getLink=function(e,z){return x4o(this,e,z)};
var x4o=function(e,z,C){return e.JSC$20006_galRepository.getLink({serviceId:z,scopes:void 0,capabilities:void 0,linkName:C}).then(function(w){return{statusCode:1,link:w}}).catch(function(w){return{statusCode:M45(w.code),
statusMessage:w.message}})};
rSY.prototype.deleteLink=function(e,z){return this.JSC$20006_galRepository.deleteLink(e,this.config.accountLinkingEntryPoint,z).then(function(){return{statusCode:1}}).catch(function(C){return{statusCode:M45(C.code),
statusMessage:C.message}})};
rSY.prototype.startLinkingSession=function(e){var z=e.serviceId;var C=e.sessionId;return xlW({serviceId:z,sessionId:C!==void 0?C:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:e.loginHint,callerState:e.callerState,consentLanguageKeys:e.consentLanguageKeys,linkName:e.linkName,dynamicUrlParameters:e.dynamicUrlParameters,partnerConfigMinReadTimestamp:e.partnerConfigMinReadTimestamp})};var v3=function(e,z,C,w,K,G,X){this.apiKey=z;this.authUser=C;this.oauthToken=w;this.bucket=K;this.locale=G;this.galSdkEventHandler=X;if(w===void 0){if(z===void 0)throw Error("zk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new UBL(e)};
v3.prototype.deleteLink=function(e){var z=e.serviceId;var C=e.sessionId;var w=e.accountLinkingEntryPoint;var K=e.linkName;var G=this,X;return _.k(function(J){var q=(new mK).setHeader(G.getHeader(C));var T=TA3({serviceId:z,linkName:K});q=_.PL(q,2,T);X=_.g4(q,3,w);return J.return(G.makeRequest(G.galServiceClient.deleteLink,X,[1,3],[2,4]))})};
var Aho=function(e,z){var C=z.serviceId;var w=z.sessionId;var K=z.dynamicUrlParameters;var G=z.redirectState;var X=z.consentLanguageKeys;var J=z.partnerConfigMinReadTimestamp;var q;return _.k(function(T){var Q=(new nl).setHeader(e.getHeader(w,K));Q=_.ZW(Q,2,C);q=_.ZW(Q,4,G);X!==void 0&&_.ZW(q,5,X);J!==void 0&&_.PL(q,6,J);return T.return(e.makeRequest(e.galServiceClient.JSC$19891_finishOAuth,q,[1,3],[2,4]))})};
v3.prototype.getLink=function(e){var z=e.serviceId;var C=e.sessionId;var w=e.scopes;var K=e.capabilities;var G=e.consistencyKey;var X=e.linkName;var J=this,q;return _.k(function(T){var Q=(new MR).setHeader(J.getHeader(C)),m=TA3({serviceId:z,scopes:w,capabilities:K,linkName:X});q=_.PL(Q,2,m);G!==void 0&&(Q=mV5(),Q=_.ZW(Q,2,G),_.PL(q,3,Q));return T.return(J.makeRequest(J.galServiceClient.getLink,q,[1,3],[2,4]))})};
var K8q=function(e,z){var C=z.serviceId;var w=z.sessionId;var K=z.googleScopes;var G=z.consistencyKey;var X;return _.k(function(J){var q=(new aN).setHeader(e.getHeader(w));q=_.ZW(q,2,C);var T=Array.from(K.values());q=_.pv(q,3,T,_.m5);T=mV5();T=_.ZW(T,2,G);X=_.PL(q,4,T);return J.return(e.makeRequest(e.galServiceClient.JSC$19891_depositGoogleCredential,X,[1,3],[2,4]))})};
v3.prototype.startLinkingSession=function(e){var z=e.serviceId;var C=e.sessionId;var w=e.scopes;var K=e.capabilities;var G=e.loginHint;var X=e.supportedFlows;var J=e.completionUrl;var q=e.usePingPong;var T=e.twoWayLinking;var Q=e.accountLinkingEntryPoint;var m=e.callerState;var a=e.consentLanguageKeys;var n=e.googleScopes;var H=e.dataUsageNoticeConfig;var I=e.linkName;var L=e.dynamicUrlParameters;var h=e.partnerConfigMinReadTimestamp;var E=this,N,D;return _.k(function(g){if(K!==void 0&&w!==void 0)throw Error("vk");
var y=(new dV5).setHeader(E.getHeader(C,L));N=_.ZW(y,2,z);I!==void 0&&_.ZW(N,14,I);if(K!==void 0){y=N;var Z=Array.from(K.values());_.pv(y,5,Z,_.m5)}else w!==void 0&&(y=N,Z=Array.from(w.values()),_.pv(y,3,Z,_.m5));J!==void 0&&_.ZW(N,6,J);q!==void 0&&_.Hr(N,15,q);X!==void 0&&(y=N,Z=Array.from(X.values()),_.pv(y,4,Z,_.GL));if(T!==void 0){if(T&&(!n||n.size===0))throw Error("Ak");_.Hr(N,8,T)}Q!==void 0&&_.g4(N,9,Q);G!==void 0&&_.ZW(N,13,G);m!==void 0&&(y=N,Z=(new TextEncoder).encode(m),_.eg(y,12,_.EU(Z,
!1),_.h4()));a!==void 0&&_.ZW(N,16,a);h!==void 0&&_.PL(N,18,h);if(H!==void 0&&H.size>0||n!==void 0&&n.size>0)D=new uAv,n!==void 0&&n.size>0&&(y=D,Z=Array.from(n.values()),_.pv(y,1,Z,_.m5)),H!==void 0&&(H.has(0)&&_.sbL(D,2,_.GL,1,_.YZ),H.has(1)&&_.sbL(D,2,_.GL,2,_.YZ)),_.PL(N,17,D);return g.return(E.makeRequest(E.galServiceClient.startLinkingSession,N,[1],[2]))})};
v3.prototype.getMetadata=function(){var e=this,z,C;return _.k(function(w){z={};e.useFpa?(z["X-Goog-Api-Key"]=e.apiKey,z["X-Goog-AuthUser"]=e.authUser!==void 0?e.authUser.toString():"0",(C=_.HPg([]))&&(z.Authorization=C)):z.Authorization="Bearer "+e.oauthToken;e.locale&&(z["accept-language"]=e.locale);return w.return(z)})};
v3.prototype.makeRequest=function(e,z,C,w){var K=this,G;return _.k(function(X){if(X.nextAddress==1)return X.yield(K.getMetadata(),2);G=X.yieldResult;$4a(K,C);return X.return(e.bind(K.galServiceClient)(z,G).finally(function(){$4a(K,w)}))})};
var $4a=function(e,z){e.galSdkEventHandler!==void 0&&z.forEach(function(C){e.galSdkEventHandler.onEvent(C)})};
v3.prototype.getHeader=function(e,z){var C=new $e;e=_.eg(C,2,_.XY(e),0);e=_.g4(e,5,3);z=_.pv(e,8,z,_.m5);this.bucket!==void 0&&_.ZW(z,1,this.bucket);return z};
var TA3=function(e){var z=e.serviceId;var C=e.scopes;var w=e.capabilities;e=e.linkName;if(w!==void 0&&C!==void 0)throw Error("vk");var K=new l2o;z=_.ZW(K,1,z);w!==void 0?(C=Array.from(w.values()),_.pv(z,5,C,_.m5)):C!==void 0&&(C=Array.from(C.values()),_.pv(z,3,C,_.m5));e!==void 0&&_.ZW(z,6,e);return z};var HsY=function(e){this.galService=new v3(e.alsDomain,e.apiKey,e.authUser,e.oauthToken,e.bucket,e.locale,e.galSdkEventHandler);this.JSC$20024_galRepository=new iAq(this.galService)};
HsY.prototype.getService=function(){return this.galService};var lwl=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(lwl,_.X2);var Q2C=function(e){var z=new lwl;return _.H5(z,1,e)};
lwl.prototype.setErrorMessage=function(e){return _.Et(this,2,e)};var m4l=[0,_.$l,_.bS,_.$l];var IN=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(IN,_.X2);var aw5=[0,[1,2,3],_.qJ,[0,_.vZC,_.cwl,-1],_.qJ,[0,LXf,-1],_.JL];var nRv=[0,_.o8,1,_.$l,_.bS,-1,1,_.xl,_.zv,_.$l,-1,aw5];var MkW=[0,_.$l,[0,_.xl,_.zv,[0,_.bS]],_.Gv,[0,_.$l,-1]];var Kl=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Kl,_.X2);var riL=[0,_.bS,_.$l,-2,_.o8,_.$l,_.o8,_.$l,-2,1,_.Gv];var HHL=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(HHL,_.X2);var U4$=[0,_.o8];var vRq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(vRq,_.X2);var Iw$=[0,_.$l,MkW,U4$,riL,nRv];var l7f=_.UC(vRq,Iw$);var Wul=[0,vmC];var HRf=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(HRf,_.X2);var Pt5=[0,[1,3],EPb,_.$l,EPb];var rQE=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(rQE,_.X2);var Rfb=[0,_.$l];var Lu3=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Lu3,_.X2);var U_$=function(e){return _.BW(e,lwl,2,wT)},hfb=function(e){var z=new Lu3;
return _.RT(z,2,wT,e)},wT=[1,
2];var OHq=[0,wT,_.qJ,Rfb,_.qJ,m4l,_.kl,Pt5,1,_.$l,Wul];var ER5=[0,1,[0,[1,2,3],_.qJ,[0],_.qJ,[0,uxb],_.qJ,[0,vmC]]];var FuW=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(FuW,_.X2);var fwo=function(e){var z=new FuW;return _.RT(z,3,Vkq,e)},Vkq=[2,
3];var Sfo=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Sfo,_.X2);var uD$=function(e,z){return _.PL(e,2,z)},d4Y=function(e,z){return _.PL(e,8,z)},D4C=function(e,z){return _.PL(e,3,z)};var iHC=[0,_.$l,OHq,Iw$,_.ai,[0,[5,6,7],[0,_.$l,-2],[0,_.o8,_.$l,_.bS],[0,aw5],[0,_.bS,_.$l,-1,_.mE,_.$l],_.qJ,[0,[0,_.o8],_.$l,-1],_.qJ,[0,[3,4],_.$l,-1,_.qJ,[0,[0,_.$l,_.Gv]],_.qJ,[0,[0,[0,[1,2,3],_.qJ,[0],_.qJ,[0],_.qJ,[0]]]]],_.qJ,[0,_.$l]],_.ai,-1,[0,Vkq,_.$l,_.qJ,Rfb,_.qJ,m4l,_.kl,Pt5,[0,vmC],ER5]];var NAZ=_.UC(Sfo,iHC),s2q=_.vL(iHC);var BAE=function(){_.Sn.call(this)};
_.U(BAE,_.Sn);BAE.prototype.init=function(){};
new BAE;var tk3=_.Kb(["data-"]),gRL=_.Kb(["aria-"]),j2l=_.Kb(["aria-"]),W3=function(e,z){this.isLatencyMeasurementExperiment=e===void 0?!1:e;this.enableDialogA11yFix=z===void 0?!1:z;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.T9U(_.wL.location.href)},m_C=function(e,z){e.onConsentPrimitiveShownCallback=z},yiv=function(e,z){return e.overriddenIframeLoadTimeout?e.overriddenIframeLoadTimeout:z!==void 0?z:5E3},nu3=function(e){if(e.prewarmPromise!==void 0)return e.prewarmPromise;
e.prewarmPromise=new Promise(function(z,C){P3(e,1);ciE(e,Aif(e,!0),ZHL(e));e.iframe?e.prewarmChannel||p7Z(e,e.iframe,z):C(Error("Bk"))});
e.prewarmPromise.finally(function(){e.prewarmPromise=void 0});
return e.prewarmPromise};
W3.prototype.showPrimitive=function(){var e=this;if(this.consentPromise!==void 0)return this.consentPromise;var z=Date.now();eKW(this,z);this.consentPromise=new Promise(function(C,w){P3(e,0,z);var K=e.isDarkTheme();e.isLatencyMeasurementExperiment||e.initialLoadingStrategy===1||e.initialLoadingStrategy===2||(e.loadingBar||(e.loadingBar=W8f(getComputedStyle(document.body).direction==="rtl",K),e.loadingBar.style.position="fixed",e.loadingBar.style.zIndex="15000"),document.body.appendChild(e.loadingBar));
ciE(e,Aif(e),ZHL(e));e.iframe?e.channel||zKL(e,e.iframe,C,w):(Cma(e),w(Error("Bk")))});
this.consentPromise.finally(function(){e.consentPromise=void 0});
return this.consentPromise};
var zKL=function(e,z,C,w){var K,G;_.k(function(X){switch(X.nextAddress){case 1:P3(e,3);K=!1;setTimeout(function(){if(!K){Cma(e);wcb(e);KS3(e);var J=Q2C(7).setErrorMessage("Timeout connecting to iframe");C(d4Y(uD$(new Sfo,hfb(J)),fwo(J)))}},yiv(e,ob$(e)));
if(!e.prewarmPromise){X.jumpTo(2);break}_.Iv(X,3);return X.yield(e.prewarmPromise,5);case 5:_.Yj(X,2);break;case 3:_.O_(X),G=Q2C(4).setErrorMessage("Error while prewarming."),C(d4Y(uD$(new Sfo,hfb(G)),fwo(G)));case 2:e.prewarmChannel&&e.prewarmChannel.send(s2q(D4C(new Sfo,e.consentPrimitiveRequest))),e.channel=_.a8({destination:e.win,iframe:z,origin:Gdl(e),channelName:"cpw",onEstablished:function(){K=!0;Cma(e);e.isLatencyMeasurementExperiment||(e.JSC$20053_previousBodyOverflow=document.body.style.overflow,
e.JSC$20053_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,e.JSC$20053_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",e.enableDialogA11yFix&&window.addEventListener("blur",e.focusChangeListener));var J=e.iframe;J.style.bottom="0";J.style.position="fixed";J.style.right="0";J.style.border="none";J.style.left="0";J.style.top=
"0";J.style.zIndex="5000";J.style.pointerEvents="";J.style.visibility="";e.initialLoadingStrategy===2||e.initialLoadingStrategy===3?P3(e,4):P3(e,6);var q;(q=e.onConsentPrimitiveShownCallback)==null||q.call(e)},
onMessage:function(J){J=NAZ(J.data);switch(_.i5(J,1)){case 1:wcb(e);var q=Pn3(_.ra(J,_.DW,7));q&&(e.initialLoadingStrategy!==2&&e.initialLoadingStrategy!==3||P3(e,6,q),P3(e,5,q));if(q=Pn3(_.ra(J,_.DW,6)))P3(e,7,q),P3(e,8);var T,Q;((T=_.ra(J,Lu3,2))==null?void 0:_.E7(T,wT))!==0&&((Q=_.ra(J,FuW,8))==null?void 0:_.E7(Q,Vkq))!==0||w(Error("Ck"));C(J);break;case 2:KS3(e)}}}),_.E_(X)}})},p7Z=function(e,z,C){e.prewarmChannel=_.a8({destination:e.win,
iframe:z,origin:Gdl(e),channelName:"pwcp",onEstablished:function(){P3(e,2);C()}})},Gdl=function(e){var z=_.F2(e.src).toString();
return z&&z.indexOf("://")<0&&z.indexOf("//")!==0?e.origin:_.T9U(z)},Aif=function(e,z){z=z===void 0?!1:z;
var C,w=new Map([["origin",e.origin],["hl",(C=YsW(e))!=null?C:null]]);z&&w.set("pw","1");z=_.b([["cpr",e.consentPrimitiveRequest.serialize()]]);for(C=z.next();!C.done;C=z.next()){var K=_.b(C.value);C=K.next().value;K=K.next().value;w.set(C,K)}e.isDarkTheme()&&w.set("color_scheme","dark");return _.MX(e.src,w)},Cma=function(e){e.isLatencyMeasurementExperiment||e.loadingBar&&document.body.removeChild(e.loadingBar)};
W3.prototype.getSrc=function(){var e=_.kB(this.origin),z;var C=(z=_.ra(this.consentPrimitiveRequest,HHL,3))==null?void 0:_.$2(z,1);z="consent.google.com";C=C?"/u/"+encodeURIComponent(C.toString()):"";(e==null?0:e.endsWith("youtube.com"))?z="consent.youtube.com":(e=e==null?void 0:e.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(z="consent.google."+((e[1]?"co.":"")+encodeURIComponent(e[2])));return _.EC("https://"+z+"/signedin"+C+"/landing")};
var ciE=function(e,z,C){e.iframe||(e.iframe=document.createElement("iframe"),e.iframe.style.width="100%",e.iframe.style.height="100%",C!==112496729&&(e.iframe.style.colorScheme="auto"),e.isLatencyMeasurementExperiment&&(e.iframe.style.display="none"),_.Cq(e.iframe,z),e.iframe.setAttribute("jsname","C5o1O"),b3W(e.iframe),document.body.appendChild(e.iframe))},b3W=function(e){e.style.bottom="-200vh";
e.style.position="fixed";e.style.right="-200vw";e.style.border="";e.style.left="";e.style.top="";e.style.zIndex="";e.style.pointerEvents="none";e.style.visibility="hidden"},wcb=function(e){e.iframe&&(e.isLatencyMeasurementExperiment||(e.JSC$20053_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=e.JSC$20053_previousHtmlOverscroll),e.JSC$20053_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=e.JSC$20053_previousBodyOverscroll),e.JSC$20053_previousBodyOverflow!==
void 0&&(document.body.style.overflow=e.JSC$20053_previousBodyOverflow),e.enableDialogA11yFix&&XcW(e,!1)),b3W(e.iframe))};
W3.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(XcW(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var XcW=function(e,z){var C,w,K=(C=e.iframe)==null?void 0:(w=C.parentElement)==null?void 0:w.children;if(K)for(C=0;C<K.length;C++)w=K[C],w!==e.iframe&&(z?(w.hasAttribute("aria-hidden")&&_.xo([_.Qb(tk3)],w,"data-old-aria-hidden",w.getAttribute("aria-hidden")),_.xo([_.Qb(gRL)],w,"aria-hidden","true")):(w.removeAttribute("aria-hidden"),w.hasAttribute("data-old-aria-hidden")&&(_.xo([_.Qb(j2l)],w,"aria-hidden",w.getAttribute("data-old-aria-hidden")),w.removeAttribute("data-old-aria-hidden"))))},P3=function(e,
z,C){var w;
(w=e.latencyCallback)==null||w.call(e,{latencyType:z,timestampEpochMillis:C!=null?C:Date.now()})};var Jlb=function(e,z,C){W3.call(this,z,C===void 0?!1:C);this.consentPrimitiveRequest=e;e=YsW(this);_.yKb(e);this.src=this.getSrc();var w;this.initialLoadingStrategy=(w=_.ra(this.consentPrimitiveRequest,Kl,4))==null?void 0:_.i5(w,4)},kdE;
_.U(Jlb,W3);var QK$=function(e){var z=_.M("enable_primitive_dialog_aria_hide_siblings");e={request:e,enableDialogA11yFix:z===void 0?!1:z};kdE||(kdE=new Jlb(e.request,e.isLatencyMeasurementExperiment||_.i5(e.request,1)===2,e.enableDialogA11yFix));return kdE},YsW=function(e){var z;
return(z=_.ra(e.consentPrimitiveRequest,Kl,4))==null?void 0:_.Ds(z,1)},eKW=function(e,z){if(!_.Lb(e.consentPrimitiveRequest,IN,5)){var C=e.consentPrimitiveRequest,w=new IN;
_.PL(C,5,w)}var K;if((K=_.ra(e.consentPrimitiveRequest,IN,5))==null||_.fTo(_.RP(K,8))==null){var G;(G=_.ra(e.consentPrimitiveRequest,IN,5))!=null&&_.uk(G,8,z)}},ZHL=function(e){var z;
return(z=_.ra(e.consentPrimitiveRequest,IN,5))==null?void 0:_.$2(z,1)};
Jlb.prototype.isDarkTheme=function(){var e;return((e=_.ra(this.consentPrimitiveRequest,Kl,4))==null?void 0:_.i5(e,2))===2};
var ob$=function(e){var z;return((z=_.ra(e.consentPrimitiveRequest,Kl,4))==null?void 0:_.$2(z,5))||void 0},KS3=function(e){e.channel=void 0;
e.prewarmChannel=void 0;e.iframe&&(document.body.contains(e.iframe)&&document.body.removeChild(e.iframe),e.iframe=void 0);kdE=void 0},MqW=function(e){return W3.prototype.showPrimitive.call(e).then(function(z){return _.ra(z,Lu3,2)})};for(var RN={},qsE=(RN[64]="ma",RN[73]="ogb",RN[89]="cr",RN[21]="test",RN[0]="unkn",RN[137]="con",RN[155]="hl",RN[78]="yt",RN[171]="lp",RN[172]="ap",RN[177]="amo",RN[178]="pqe",RN[74]="gg",RN[1]="gm",RN[140]="am",RN[193]="sc",RN),x2q=_.b(Object.keys(qsE)),TtC=x2q.next();!TtC.done;TtC=x2q.next());var $2C=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U($2C,_.X2);var lME=[0,[2,3,4],_.$l,RTY,EPb,_.JL];var Qlq=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(Qlq,_.X2);var m2a=_.UC(Qlq,[0,_.lS,_.bS,_.$l,_.bS,_.$l,lME]);var aME=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(aME,_.X2);aME.prototype.getCommand=function(){return _.i5(this,1)};
var nb$=function(){var e=new aME;return _.g4(e,1,0)};var M03=_.vL([0,_.lS,_.bS,[0,_.$l,_.bS,-1]]);var rlZ=new _.VE("s"),H3b=new _.VE("t"),U2a=new _.VE("u"),vbC=new _.VE("v"),IMZ=function(e,z,C){_.fk.call(this,rlZ);this.mediaKey=e;this.photoUrl=z;this.photoSource=C};
_.U(IMZ,_.fk);var WSb=function(){_.fk.call(this,H3b)};
_.U(WSb,_.fk);var PmE=function(e){e=e===void 0?!1:e;_.fk.call(this,U2a);this.isError=e};
_.U(PmE,_.fk);var RKq=function(){_.fk.call(this,vbC)};
_.U(RKq,_.fk);var LS3=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,FSZ=function(e){if(typeof e=="string"){if(e.charAt(0)==".")return hKf(e.substr(1));if(e.charAt(0)=="["){var z=LS3.exec(e);e=e.indexOf("=")==-1?void 0:z[3];return O3W(z[1],e)}return EbZ(e)}return e},hKf=function(e){return function(z){return z.getAttribute&&_.JQ(z,e)}},O3W=function(e,z){return function(C){return z!==void 0?C.getAttribute&&C.getAttribute(e)==z:C.hasAttribute&&C.hasAttribute(e)}},EbZ=function(e){e=e.toUpperCase();
return function(z){return(z=z.tagName)&&z.toUpperCase()==e}},V0E=function(){return!0};var Ll=function(e,z){this.JSC$20081_key_=e;this.JSC$20081_value_=z},fM3=function(e){throw Error("Dk`"+e.JSC$20081_key_);
},Ssl=function(e,z){return new TypeError("Ek`"+z+"`"+e.JSC$20081_key_+"`"+e.JSC$20081_value_+"`"+typeof e.JSC$20081_value_)};
Ll.prototype.string=function(e){return arguments.length==0?uz$(this):d2Y(this,e)};
var d2Y=function(e,z){var C;return(C=D2l(e))!=null?C:z},uz$=function(e){var z=D2l(e);
z===null&&fM3(e);return z},D2l=function(e){var z=e.JSC$20081_value_;
if(z==null)return null;if(typeof z==="string")return z;throw Ssl(e,"string");};
Ll.prototype.bool=function(e){if(arguments.length==0){var z=this.optionalBool();z===null&&fM3(this)}else{var C;z=(C=this.optionalBool())!=null?C:e}return z};
Ll.prototype.optionalBool=function(){var e=this.JSC$20081_value_;if(e==null)return null;if(typeof e==="boolean")return e;if(typeof e==="string"){e=e.toLowerCase();if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1}throw Ssl(this,"boolean");};
Ll.prototype.number=function(e){if(arguments.length==0){var z=i3l(this);z===null&&fM3(this)}else z=NtW(this,e);return z};
var NtW=function(e,z){var C;return(C=i3l(e))!=null?C:z},i3l=function(e){var z=e.JSC$20081_value_;
if(z==null)return null;if(typeof z==="number")return z;if(typeof z==="string"){var C=Number(z);if(!isNaN(C)&&(C!==0||z.trim().length!==0))return C}throw Ssl(e,"number");};
Ll.prototype.toString=function(){return uz$(this)};
Ll.prototype.enum=function(e,z){var C=!0,w=void 0,K;for(K in e){var G=e[K];C&&(C=!1,w=typeof G==="number"?NtW(this,z):d2Y(this,z));if(G==w)return w}JSON.stringify(e);return w};
Ll.prototype.array=function(e){if(arguments.length==0){var z=slZ(this);z===null&&fM3(this);return z}z=slZ(this);return z==null?e:z};
var slZ=function(e){var z=e.JSC$20081_value_;if(z==null)return null;Array.isArray(z)||(typeof z!=="string"?z=[z]:(z=z.trim(),z=z==""?[]:z.split(",").map(function(C){return C.trim()})));
return Bta(e,z)},Bta=function(e,z){var C=e.JSC$20081_key_+"[";
return Array.from(z,function(w,K){return new Ll(C+K+"]",w)})};
Ll.prototype.object=function(e){var z=this.JSC$20081_value_;if(z==null)return e===void 0&&fM3(this),e;if(typeof z==="object"&&z.constructor===Object){e={};var C=this.JSC$20081_key_+".",w;for(w in z)e[w]=new Ll(C+w,z[w]);return e}throw Ssl(this,"object");};var hW=function(e){this.list_=t05(e)},t05=function(e){if(e instanceof hW)e=e.list_;
else if(e[0]instanceof hW){for(var z=new Set,C=0;C<e.length;C++)for(var w=_.b(e[C].list_),K=w.next();!K.done;K=w.next())z.add(K.value);e=z}return[].concat(_.s_(e))};
_.Y=hW.prototype;_.Y.each=function(e,z,C){((C===void 0?0:C)?h9Z:_.oX)(this.list_,e,z);return this};
_.Y.size=function(){return this.list_.length};
_.Y.isEmpty=function(){return this.list_.length===0};
_.Y.get=function(e){return this.list_[e]||null};
_.Y.el=function(){return this.list_[0]||null};
_.Y.map=function(e,z){return _.i4(this.list_,e,z)};
_.Y.equals=function(e){return this===e||_.Z8(this.list_,e.list_)};
_.Y.first=function(){return this.list_.length==0?null:new OB(this.list_[0])};
_.Y.last=function(){return this.list_.length==0?null:new OB(this.list_[this.list_.length-1])};
_.Y.find=function(e){var z=[];this.each(function(C){C=C.querySelectorAll(String(e));for(var w=0;w<C.length;w++)z.push(C[w])});
return new hW(z)};
_.Y.parent=function(){var e=[];this.each(function(z){(z=z.parentElement||null)&&!_.Sh(e,z)&&e.push(z)});
return new hW(e)};
_.Y.children=function(){var e=[];this.each(function(z){z=_.Zg(z);for(var C=0;C<z.length;C++)e.push(z[C])});
return new hW(e)};
_.Y.filter=function(e){e=_.Q8(this.list_,FSZ(e));return new hW(e)};
_.Y.closest=function(e){var z=[],C=FSZ(e),w=function(K){return _.xO(K)&&C(K)};
this.each(function(K){(K=_.j8(K,w,!0))&&!_.Sh(z,K)&&z.push(K)});
return new hW(z)};
_.Y.next=function(e){return gbE(this,_.hnS,e)};
_.Y.prev=function(e){return gbE(this,FXZ,e)};
var gbE=function(e,z,C){var w=[];var K=C?FSZ(C):V0E;e.each(function(G){(G=z(G))&&K(G)&&w.push(G)});
return new hW(w)};
hW.prototype.setClass=function(e){return this.each(function(z){_.Xo(z,e)})};
var jlv=function(e,z){return e.each(function(C){_.pm(C,z)})},ylC=function(e,z){return e.each(function(C){_.AE(C,z)})};
hW.prototype.toggleClass=function(e,z){return z===!0?jlv(this,e):z===!1?ylC(this,e):this.each(function(C){_.JQ(C,e)?_.AE(C,e):_.pm(C,e)})};
hW.prototype.setText=function(e){return this.each(function(z){_.pV(z,e)})};
var clo=function(e){e.each(function(z){z.removeAttribute("aria-hidden")})};
hW.prototype.getStyle=function(e){if(this.list_.length>0){var z=this.list_[0],C=z.style[_.Jw(e)];return typeof C!=="undefined"?C:z.style[_.Bec(z,e)]||""}};
hW.prototype.getData=function(e){if(this.list_.length===0)return new Ll(e,null);var z=SmW(this.list_[0],e);return new Ll(e,z)};
hW.prototype.focus=function(e){try{e?this.el().focus(e):this.el().focus()}catch(z){}return this};
hW.prototype.click=function(){var e=_.t0(this.el());if(e.createEvent){var z=e.createEvent("MouseEvents");z.initMouseEvent("click",!0,!0,e.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(z)}else e=e.createEventObject(),e.clientX=0,e.clientY=0,e.screenX=0,e.screenY=0,e.altKey=!1,e.ctrlKey=!1,e.shiftKey=!1,e.button=0,this.el().fireEvent("onclick",e)};
var EB=function(e,z,C,w){function K(J,q,T){var Q=q;q&&q.parentNode&&(Q=q.cloneNode(!0));J(Q,T)}
w=w===void 0?!1:w;if(e.list_.length==1){var G=e.list_[0],X=function(J){return z(J,G)};
C instanceof hW?C.each(X,void 0,w):Array.isArray(C)?(w?h9Z:_.oX)(C,X):X(C);return e}return e.each(function(J){C instanceof hW?C.each(function(q){K(z,q,J)}):Array.isArray(C)?_.oX(C,function(q){K(z,q,J)}):K(z,C,J)})};
_.Y=hW.prototype;_.Y.append=function(e){return EB(this,function(z,C){z&&C.appendChild(z)},e)};
_.Y.appendTo=function(e){(new hW([e])).append(this);return this};
_.Y.remove=function(){return EB(this,function(e,z){_.hA(z)},null)};
_.Y.empty=function(){return EB(this,function(e,z){_.yx(z)},null)};
_.Y.after=function(e,z){return EB(this,function(C,w){C&&_.AL(C,w)},e,!(z===void 0||z))};
_.Y.before=function(e){return EB(this,function(z,C){z&&_.cT(z,C)},e)};
_.Y.replaceWith=function(e){return EB(this,function(z,C){z&&_.P4C(z,C)},e)};
_.Y.toggle=function(e){return this.each(function(z){_.Gt(z,e)})};
_.Y.show=function(){return this.toggle(!0)};
_.Y.hide=function(){return this.toggle(!1)};
_.Y.trigger=function(e,z,C,w){return All(this,e,z,C,w)};
var All=function(e,z,C,w,K){return e.each(function(G){_.UEE(_.t0(G)).triggerWizEventInternal(G,z,C,w,K)})},OB=function(e,z){e instanceof hW&&(z=e.list_,e=null);
this.list_=t05(e!=null?[e]:z)};
_.Tk(OB,hW);_.Y=OB.prototype;_.Y.children=function(){return new hW(Array.prototype.slice.call(_.Zg(this.list_[0])))};
_.Y.each=function(e,z){e.call(z,this.list_[0],0);return this};
_.Y.size=function(){return 1};
_.Y.el=function(){return this.list_[0]};
_.Y.first=function(){return this};var FB=function(e,z){z=z===void 0?window:z;this.hostId=e;this.win=z;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$20092_previousHtmlOverscroll=this.JSC$20092_previousBodyOverscroll=this.JSC$20092_previousBodyOverflow="";this.eventTarget=new _.N3;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},eOf=function(e){var z=
Z3C(Z3C(Z3C(new pcf(78),"po"),"hppp"),"hhc");
z.authUser=Number(_.j5("SESSION_INDEX","0"));z.colorScheme=e;return z};
FB.prototype.getOrigin=function(){return this.origin?this.origin:_.rq(_.M_(_.nR(new _.sX,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
FB.prototype.getTargetOrigin=function(){return _.rq(_.M_(_.nR(new _.sX,this.scheme),this.domain),this.port)};
FB.prototype.preloadIframe=function(e){var z=this;if(this.iframeLoadPromise===void 0){var C=document.createElement("iframe");this.iframe=C;V4a(C,e);this.iframeLoadPromise=new Promise(function(w,K){var G=!1,X=function(J){J.stopPropagation();C.removeEventListener("error",X);C.removeEventListener("securitypolicyviolation",X);K(Error("Fk",{cause:J}))};
C.addEventListener("error",X);C.addEventListener("securitypolicyviolation",X);setTimeout(function(){G||K(Error("Gk"))},3E4);
zOq(z,C,function(){G=!0;C.removeEventListener("error",X);C.removeEventListener("securitypolicyviolation",X);w()})});
Czl(this);e=this.getTargetOrigin().toString();C.setAttribute("allow","camera "+e+"; display-capture "+e);this.parentElement.appendChild(C)}return this.iframeLoadPromise};
var oq3=function(e,z){var C,w;return _.k(function(K){if(K.nextAddress==1)return C=W8f(getComputedStyle(e.parentElement).direction==="rtl"),e.parentElement.appendChild(C),document.activeElement instanceof HTMLElement&&(e.elementToFocusAfterClose=document.activeElement),_.Iv(K,2),K.yield(e.preloadIframe(z),4);if(K.nextAddress!=2){e.parentElement.removeChild(C);e.JSC$20092_previousBodyOverflow=e.parentElement.style.overflow;e.JSC$20092_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
e.JSC$20092_previousBodyOverscroll=e.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";e.parentElement.style.overscrollBehavior="contain";e.parentElement.style.overflow="hidden";var G=e.iframe;G.style.bottom="0";G.style.border="none";G.style.height="100%";G.style.left="0";G.style.position=e.iframePosition;G.style.right="0";G.style.top="0";G.style.width="100%";G.style.zIndex="2202";G.setAttribute("aria-hidden","false");G.setAttribute("aria-modal","true");
e.opened=!0;whE(e);return _.Yj(K,0)}w=_.O_(K);e.parentElement.removeChild(C);OsC(e.isDarkTheme());KFf(e,!1);throw Error("Hk",{cause:w});})},KFf=function(e,z){z=z===void 0?!0:z;
e.iframe!==void 0&&(Gr3(e),document.documentElement.style.overscrollBehavior=e.JSC$20092_previousHtmlOverscroll,e.parentElement.style.overscrollBehavior=e.JSC$20092_previousBodyOverscroll,e.parentElement.style.overflow=e.JSC$20092_previousBodyOverflow,e.elementToFocusAfterClose!==void 0&&(e.elementToFocusAfterClose.focus(),e.elementToFocusAfterClose=void 0),z?Czl(e):(e.parentElement.removeChild(e.iframe),e.iframe=void 0,e.iframeLoadPromise=void 0,e.mainChannel=void 0),e.opened=!1)},Gr3=function(e){e.backgroundElementsAriaHiddenIsNull&&
(clo(e.backgroundElementsAriaHiddenIsNull),e.backgroundElementsAriaHiddenIsNull=void 0);
e.backgroundElementsAriaHiddenIsFalse&&(e.backgroundElementsAriaHiddenIsFalse.each(function(z){z.setAttribute("aria-hidden","false")}),e.backgroundElementsAriaHiddenIsFalse=void 0);
e.backgroundElementsWithoutInert&&(e.backgroundElementsWithoutInert.each(function(z){z.removeAttribute("inert")}),e.backgroundElementsWithoutInert=void 0)},whE=function(e){e.backgroundElementsAriaHiddenIsNull=(new OB(e.iframe.parentElement)).children().filter(function(z){return z.getAttribute("aria-hidden")===null&&z!==e.iframe});
e.backgroundElementsAriaHiddenIsNull.each(function(z){z.setAttribute("aria-hidden","true")});
e.backgroundElementsAriaHiddenIsFalse=(new OB(e.iframe.parentElement)).children().filter(function(z){return z.getAttribute("aria-hidden")==="false"&&z!==e.iframe});
e.backgroundElementsAriaHiddenIsFalse.each(function(z){z.setAttribute("aria-hidden","true")});
e.backgroundElementsWithoutInert=(new OB(e.iframe.parentElement)).children().filter(function(z){return!z.hasAttribute("inert")&&z!==e.iframe});
e.backgroundElementsWithoutInert.each(function(z){z.setAttribute("inert","true")})},Czl=function(e){e=e.iframe;
e.style.bottom="-1000px";e.style.position="fixed";e.style.right="-1000px";e.style.border="";e.style.height="";e.style.left="";e.style.top="";e.style.width="";e.style.zIndex="";e.setAttribute("aria-hidden","true");e.setAttribute("aria-modal","false")};
FB.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var pcf=function(e,z){FB.call(this,qsE[e],z);this.options=[];this.style=""};
_.U(pcf,FB);var Y25=function(e){e.style="youtube";return e},bE3=function(e,z){e.eventTarget.listen(U2a,z);
return e},Xh5=function(e,z){e.eventTarget.listen(rlZ,z);
return e},Z3C=function(e,z){e.options.push(z);
return e},JYL=function(e){var z=[e.getOrigin()];
e.ancestorOrigins&&z.push.apply(z,_.s_(e.ancestorOrigins));var C=new _.sX(e.win.location.href),w=e.startUrl?e.startUrl:e.options.includes("po")?"profile-picture/art":"profile-picture";z=Bqf(_.Hq(e.getTargetOrigin(),w),"origin",z);e.startUrl&&_.oI(z,"startPath",e.startUrl);e.authUser>0&&_.oI(z,"authuser",e.authUser);e.pageId!==void 0&&_.oI(z,"pageId",e.pageId);_.oI(z,"hostId",e.hostId);e.jsMode!==void 0&&_.oI(z,"jsmode",e.jsMode);e.rectangleRatio!==void 0&&_.oI(z,"rectangleRatio",e.rectangleRatio);
e.options.length>0&&_.oI(z,"opts",e.options.join(","));try{for(var K=_.b(["utm_source","utm_medium","utm_campaign","utm_content"]),G=K.next();!G.done;G=K.next()){var X=G.value;_.Kj(C,X)&&_.oI(z,X,_.Kj(C,X))}var J,q=(J=e.hl)!=null?J:_.Kj(C,"hl");q!==void 0&&_.oI(z,"hl",q)}catch(T){if(!(T instanceof URIError))throw T;}e.colorScheme&&_.oI(z,"theme",e.colorScheme);e.style&&_.oI(z,"style",e.style);return z},krl=function(e,z){e.mainChannel=_.a8({destination:e.win,
iframe:z,origin:e.getTargetOrigin().toString(),channelName:"ow",onMessage:function(C){C=m2a(C.data);if(z===e.iframe)switch(_.i5(C,1)){case 1:e.eventTarget.dispatchEvent(new PmE);KFf(e);break;case 2:e.eventTarget.dispatchEvent(new IMZ(_.Ds(C,4),_.Ds(C,2),_.i5(C,5),_.ra(C,$2C,6)));break;case 0:var w;e.eventTarget.dispatchEvent(new WSb(_.Ds(C,2),(w=_.i5(C,3))!=null?w:0));break;case 3:e.eventTarget.dispatchEvent(new PmE(!0));KFf(e,!1);break;case 4:e.eventTarget.dispatchEvent(new RKq)}}})},zOq=function(e,
z,C){_.a8({destination:e.win,
iframe:z,origin:_.rq(_.M_(_.nR(new _.sX,e.scheme),e.domain),e.port).toString(),channelName:"owi",onMessage:function(w){z===e.iframe&&(C!==void 0&&C(),krl(e,z),e.opened&&e.mainChannel.send(M03(nb$())),w.reply(),zOq(e,z))}})};
pcf.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?FB.prototype.preloadIframe.call(this,JYL(this).toString()):this.iframeLoadPromise};
pcf.prototype.openPicker=function(e){var z=this;return _.k(function(C){if(C.nextAddress==1)return z.startUrl=e?e:z.options.includes("po")?"profile-picture/art":"profile-picture",C.yield(oq3(z,JYL(z).toString()),2);if(z.mainChannel){var w=z.mainChannel,K=w.send;var G=nb$();G=_.Et(G,2,z.startUrl);K.call(w,M03(G))}_.E_(C)})};var q2b=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(q2b,_.X2);_.Y=q2b.prototype;_.Y.getSize=function(){return ke(this,1)};
_.Y.setSize=function(e){return _.td(this,1,e)};
_.Y.getWidth=function(){return ke(this,12)};
_.Y.getHeight=function(){return ke(this,13)};
_.Y.setCenterCrop=function(e){return _.a4(this,20,e)};
_.Y.getHtml=function(){return _.Sv(this,4)};
_.Y.getToken=function(){return _.R4(this,24)};
_.Y.setToken=function(e){return _.Et(this,24,e)};
_.Y.getBackgroundColor=function(){return ke(this,87)};
_.Y.hasBackgroundColor=function(){return _.JC(_.RP(this,87))!=null};
_.Y.getStoryboardLevel=function(){return ke(this,109)};var V9=function(e){this.JSC$20100_value_=void 0;this.childNodes_={};if(e){var z=_.Muh(e);e=_.aK(e);for(var C=0;C<z.length;C++)this.set(z[C],e[C])}};
V9.prototype.set=function(e,z){xef(this,e,z,!1)};
V9.prototype.add=function(e,z){xef(this,e,z,!0)};
var xef=function(e,z,C,w){for(var K=0;K<z.length;K++){var G=z.charAt(K);e.childNodes_[G]||(e.childNodes_[G]=new V9);e=e.childNodes_[G]}if(w&&e.JSC$20100_value_!==void 0)throw Error("Ik`"+z);e.JSC$20100_value_=C},TXW=function(e,z){for(var C=0;C<z.length;C++)if(e=e.childNodes_[z.charAt(C)],!e)return;
return e};
V9.prototype.get=function(e){return(e=TXW(this,e))?e.JSC$20100_value_:void 0};
V9.prototype.getValues=function(){var e=[];$eE(this,e);return e};
var $eE=function(e,z){e.JSC$20100_value_!==void 0&&z.push(e.JSC$20100_value_);for(var C in e.childNodes_)$eE(e.childNodes_[C],z)};
V9.prototype.getKeys=function(e){var z=[];if(e){for(var C=this,w=0;w<e.length;w++){var K=e.charAt(w);if(!C.childNodes_[K])return[];C=C.childNodes_[K]}lSC(C,e,z)}else lSC(this,"",z);return z};
var lSC=function(e,z,C){e.JSC$20100_value_!==void 0&&C.push(z);for(var w in e.childNodes_)lSC(e.childNodes_[w],z+w,C)};
_.Y=V9.prototype;_.Y.containsKey=function(e){return this.get(e)!==void 0};
_.Y.containsValue=function(e){if(this.JSC$20100_value_===e)return!0;for(var z in this.childNodes_)if(this.childNodes_[z].containsValue(e))return!0;return!1};
_.Y.clear=function(){this.childNodes_={};this.JSC$20100_value_=void 0};
_.Y.remove=function(e){for(var z=this,C=[],w=0;w<e.length;w++){var K=e.charAt(w);if(!z.childNodes_[K])throw Error("Jk`"+e);C.push([z,K]);z=z.childNodes_[K]}e=z.JSC$20100_value_;for(delete z.JSC$20100_value_;C.length>0;)if(w=C.pop(),z=w[0],w=w[1],z.childNodes_[w].isEmpty())delete z.childNodes_[w];else break;return e};
_.Y.clone=function(){return new V9(this)};
_.Y.getCount=function(){return dn5(this.getValues())};
_.Y.isEmpty=function(){return this.JSC$20100_value_===void 0&&_.de.isEmpty(this.childNodes_)};var DlE=function(){if(!QQC){var e=QQC=new V9,z;for(z in meE)e.add(z,meE[z])}},QQC,fl=function(e,z){this.types=e;
this.setters=z},meE={a:new fl([3,
0],[function(e,z){_.a4(e,21,z)},
function(e,z){_.td(e,56,z)}]),
al:new fl([3],[function(e,z){_.a4(e,74,z)}]),
b:new fl([3,0],[function(e,z){_.a4(e,23,z)},
function(e,z){_.td(e,38,z)}]),
ba:new fl([0],[function(e,z){_.td(e,85,z)}]),
bc:new fl([0],[function(e,z){_.td(e,87,z)}]),
br:new fl([0],[function(e,z){_.td(e,86,z)}]),
c:new fl([3,0],[function(e,z){_.a4(e,2,z)},
function(e,z){_.td(e,39,z)}]),
cc:new fl([3],[function(e,z){_.a4(e,51,z)}]),
ci:new fl([3],[function(e,z){_.a4(e,32,z)}]),
ckm:new fl([3],[function(e,z){_.a4(e,104,z)}]),
cp:new fl([0],[function(e,z){_.td(e,92,z)}]),
cr:new fl([3],[function(e,z){_.a4(e,108,z)}]),
cv:new fl([0],[function(e,z){_.td(e,94,z)}]),
d:new fl([3],[function(e,z){_.a4(e,3,z)}]),
dc:new fl([5],[function(e,z){_.Et(e,99,z)}]),
df:new fl([3],[function(e,z){_.a4(e,80,z)}]),
dv:new fl([3],[function(e,z){_.a4(e,90,z)}]),
e:new fl([0],[function(e,z){_.td(e,15,z)}]),
em:new fl([0],[function(e,z){_.td(e,107,z)}]),
f:new fl([4],[function(e,z){_.Et(e,16,z)}]),
fg:new fl([3],[function(e,z){_.a4(e,34,z)}]),
fh:new fl([3],[function(e,z){_.a4(e,30,z)}]),
fm:new fl([3],[function(e,z){_.a4(e,84,z)}]),
fo:new fl([2],[function(e,z){_.UR(e,79,_.ZT(z))}]),
ft:new fl([3],[function(e,z){_.a4(e,50,z)}]),
fv:new fl([3],[function(e,z){_.a4(e,31,z)}]),
g:new fl([3],[function(e,z){_.a4(e,14,z)}]),
gce:new fl([4],[function(e,z){_.Et(e,112,z)}]),
gd:new fl([3],[function(e,z){_.a4(e,83,z)}]),
gm:new fl([3],[function(e,z){_.a4(e,105,z)}]),
h:new fl([3,0],[function(e,z){_.a4(e,4,z)},
function(e,z){_.td(e,13,z)}]),
i:new fl([3],[function(e,z){_.a4(e,22,z)}]),
ic:new fl([0],[function(e,z){_.td(e,71,z)}]),
id:new fl([3],[function(e,z){_.a4(e,70,z)}]),
il:new fl([3],[function(e,z){_.a4(e,96,z)}]),
ip:new fl([3],[function(e,z){_.a4(e,54,z)}]),
iv:new fl([0],[function(e,z){_.uk(e,75,z)}]),
j:new fl([1],[function(e,z){z=z==null?z:FOv(z);_.UR(e,29,z)}]),
k:new fl([3,0],[function(e,z){_.a4(e,17,z)},
function(e,z){_.td(e,42,z)}]),
l:new fl([0],[function(e,z){_.td(e,44,z)}]),
lf:new fl([3],[function(e,z){_.a4(e,65,z)}]),
lo:new fl([3],[function(e,z){_.a4(e,97,z)}]),
m:new fl([0],[function(e,z){_.td(e,63,z)}]),
md:new fl([3],[function(e,z){_.a4(e,91,z)}]),
mm:new fl([4],[function(e,z){_.Et(e,81,z)}]),
mo:new fl([3],[function(e,z){_.a4(e,73,z)}]),
mp:new fl([0],[function(e,z){_.td(e,115,z)}]),
mv:new fl([3],[function(e,z){_.a4(e,66,z)}]),
n:new fl([3],[function(e,z){e.setCenterCrop(z)}]),
nc:new fl([3],[function(e,z){_.a4(e,55,z)}]),
nd:new fl([3],[function(e,z){_.a4(e,53,z)}]),
ng:new fl([3],[function(e,z){_.a4(e,95,z)}]),
ngm:new fl([3],[function(e,z){_.a4(e,106,z)}]),
no:new fl([3],[function(e,z){_.a4(e,37,z)}]),
ns:new fl([3],[function(e,z){_.a4(e,40,z)}]),
nt0:new fl([4],[function(e,z){_.Et(e,36,z)}]),
ntm:new fl([3],[function(e,z){_.a4(e,114,z)}]),
nu:new fl([3],[function(e,z){_.a4(e,46,z)}]),
nw:new fl([3],[function(e,z){_.a4(e,48,z)}]),
o:new fl([1,3],[function(e,z){z=z==null?z:FOv(z);_.UR(e,7,z)},
function(e,z){_.a4(e,27,z)}]),
p:new fl([3,0],[function(e,z){_.a4(e,19,z)},
function(e,z){_.td(e,43,z)}]),
pa:new fl([3],[function(e,z){_.a4(e,61,z)}]),
pc:new fl([0],[function(e,z){_.td(e,88,z)}]),
pd:new fl([3],[function(e,z){_.a4(e,60,z)}]),
pf:new fl([3],[function(e,z){_.a4(e,67,z)}]),
pg:new fl([3],[function(e,z){_.a4(e,72,z)}]),
pi:new fl([2],[function(e,z){_.UR(e,76,_.ZT(z))}]),
pp:new fl([3],[function(e,z){_.a4(e,52,z)}]),
pt:new fl([4],[function(e,z){_.Et(e,111,z)}]),
q:new fl([4],[function(e,z){_.Et(e,28,z)}]),
r:new fl([3,0],[function(e,z){_.a4(e,6,z)},
function(e,z){_.td(e,26,z)}]),
ra:new fl([3],[function(e,z){_.a4(e,103,z)}]),
rf:new fl([3],[function(e,z){_.a4(e,100,z)}]),
rg:new fl([3],[function(e,z){_.a4(e,59,z)}]),
rh:new fl([3],[function(e,z){_.a4(e,49,z)}]),
rj:new fl([3],[function(e,z){_.a4(e,57,z)}]),
ro:new fl([2],[function(e,z){_.UR(e,78,_.ZT(z))}]),
rp:new fl([3],[function(e,z){_.a4(e,58,z)}]),
rw:new fl([3],[function(e,z){_.a4(e,35,z)}]),
rwa:new fl([3],[function(e,z){_.a4(e,64,z)}]),
rwu:new fl([3],[function(e,z){_.a4(e,41,z)}]),
s:new fl([3,0],[function(e,z){_.a4(e,33,z)},
function(e,z){e.setSize(z)}]),
sb:new fl([0],[function(e,z){_.td(e,110,z)}]),
sc:new fl([0],[function(e,z){_.td(e,89,z)}]),
sg:new fl([3],[function(e,z){_.a4(e,82,z)}]),
sl:new fl([0],[function(e,z){_.td(e,109,z)}]),
sm:new fl([3],[function(e,z){_.a4(e,93,z)}]),
t:new fl([4],[function(e,z){e.setToken(z)}]),
tm:new fl([3],[function(e,z){_.a4(e,113,z)}]),
u:new fl([3],[function(e,z){_.a4(e,18,z)}]),
ut:new fl([3],[function(e,z){_.a4(e,45,z)}]),
v:new fl([0],[function(e,z){_.td(e,62,z)}]),
vb:new fl([0],[function(e,z){_.uk(e,68,z)}]),
vf:new fl([4],[function(e,z){_.Et(e,102,z)}]),
vl:new fl([0],[function(e,z){_.uk(e,69,z)}]),
vm:new fl([3],[function(e,z){_.a4(e,98,z)}]),
w:new fl([0],[function(e,z){_.td(e,12,z)}]),
x:new fl([0],[function(e,z){_.td(e,9,z)}]),
y:new fl([0],[function(e,z){_.td(e,10,z)}]),
ya:new fl([2],[function(e,z){_.UR(e,77,_.ZT(z))}]),
z:new fl([0],[function(e,z){_.td(e,11,z)}])};
DlE.prototype.parse=function(e){var z=new q2b,C=new q2b;if(e=="")e=!0;else{e=e.split("-");for(var w=!0,K=0;K<e.length;K++){var G=e[K];if(G.length==0)w=!1;else{var X=G,J=!1;var q=X;var T=X.charAt(0);T!=T.toLowerCase()&&(J=!0,q=X.charAt(0).toLowerCase()+X.substring(1));var Q=QQC;for(T=1;T<=q.length;++T){var m=Q,a=q.substring(0,T);if(a.length==0?m.isEmpty():!TXW(m,a))break}q=T==1?null:(q=Q.get(q.substring(0,T-1)))?{option:X.substring(0,T-1),value:X.substring(T-1),signed:J,attributes:q}:null;if(q){X=
[];J=[];T=!1;for(Q=0;Q<q.attributes.types.length;Q++){m=q.attributes.types[Q];var n=q.value;a=K;if(q.signed&&m==1)for(var H=n.length;H<12&&a<e.length-1;)n+="-"+e[a+1],H=n.length,++a;else if(m==2)for(;a<e.length-1&&e[a+1].match(/^[\d\.]/);)n+="-"+e[a+1],++a;H=q.attributes.setters[Q];n=aSW(this,m)(q.option,n,z,C,H);if(n===null){T=!0;K=a;break}else X.push(m),J.push(n)}if(!T)for(q=0;q<J.length;q++)Q=X[q],n=J[q],nqW(this,Q)(G,n);w=w&&T}else w=!1}}e=w}return new Mfa(z,C,e)};
var rYf=function(e,z,C,w,K,G){K(C,z);e=e.charAt(0);G=G(e==e.toUpperCase());K(w,G)};
_.Y=DlE.prototype;_.Y.parseAndSetIntOption_=function(e,z,C,w,K){if(z=="")return 0;isFinite(z)&&(z=String(z));z=typeof z==="string"?/^\s*-?0x/i.test(z)?parseInt(z,16):parseInt(z,10):NaN;if(isNaN(z))return 1;rYf(e,z,C,w,K,Number);return null};
_.Y.logIntParseError_=function(){};
_.Y.parseAndSetFloatOption_=function(e,z,C,w,K){if(z=="")return 0;var G=Number(z);z=G==0&&_.bg(z)?NaN:G;if(isNaN(z))return 1;rYf(e,z,C,w,K,Number);return null};
_.Y.logFloatParseError_=function(){};
_.Y.parseAndSetBoolOption_=function(e,z,C,w,K){if(z!="")return 2;rYf(e,!0,C,w,K,Boolean);return null};
_.Y.logBoolParseError_=function(){};
_.Y.parseAndSetStringOption_=function(e,z,C,w,K){if(z=="")return 0;rYf(e,z,C,w,K,function(G){return G?"1":""});
return null};
_.Y.logStringParseError_=function(){};
_.Y.parseAndSetUint64Base64Option_=function(e,z,C,w,K){if(z=="")return 0;rYf(e,z,C,w,K,function(G){return G?1:0});
return null};
var aSW=function(e,z){switch(z){case 0:return(0,_.uZ)(e.parseAndSetIntOption_,e);case 2:return(0,_.uZ)(e.parseAndSetFloatOption_,e);case 3:return(0,_.uZ)(e.parseAndSetBoolOption_,e);case 4:return(0,_.uZ)(e.parseAndSetStringOption_,e);case 1:return(0,_.uZ)(e.parseAndSetUint64Base64Option_,e);default:return function(){}}},nqW=function(e,z){switch(z){case 0:return(0,_.uZ)(e.logIntParseError_,e);
case 2:return(0,_.uZ)(e.logFloatParseError_,e);case 3:return(0,_.uZ)(e.logBoolParseError_,e);case 4:case 1:return(0,_.uZ)(e.logStringParseError_,e);default:return function(){}}},Mfa=function(e,z,C){this.valueProto_=e;
this.signatureFlagProto_=z;this.JSC$20112_valid_=C};
Mfa.prototype.isValid=function(){return this.JSC$20112_valid_};var fWW=function(e){this.JSC$20113_parser_=null;this.JSC$20113_components_=[];this.JSC$20113_parsedOptions_=null;HEo(this,e)},Ueo=function(e){e.JSC$20113_parser_==null&&(e.JSC$20113_parser_=new DlE);
return e.JSC$20113_parser_},HEo=function(e,z){e.JSC$20113_parsedOptions_=z?typeof z==="string"?Ueo(e).parse(z):z:Ueo(e).parse("")},S7=function(e,z){return e==z?!1:!0};
_.Y=fWW.prototype;_.Y.JSC$20115_setCrop=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,_.Sv(C,2),_.Sv(z.signatureFlagProto_,2))&&_.a4(C,2,e);return this};
_.Y.JSC$20115_setCircleCrop=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,JW(C,51),JW(z.signatureFlagProto_,51))&&_.a4(C,51,e);return this};
_.Y.JSC$20115_setImageCrop=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,JW(C,32),JW(z.signatureFlagProto_,32))&&_.a4(C,32,e);return this};
_.Y.JSC$20115_setHeight=function(e){var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,C.getHeight(),z.signatureFlagProto_.getHeight())&&_.td(C,13,e);return this};
_.Y.setCenterCrop=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,_.Sv(C,20),_.Sv(z.signatureFlagProto_,20))&&C.setCenterCrop(e);return this};
_.Y.JSC$20115_setSmartCrop=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,_.Sv(C,19),_.Sv(z.signatureFlagProto_,19))&&_.a4(C,19,e);return this};
_.Y.JSC$20115_setPad=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,JW(C,60),JW(z.signatureFlagProto_,60))&&_.a4(C,60,e);return this};
_.Y.JSC$20115_setSmartCropUseFace=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,_.Sv(C,67),_.Sv(z.signatureFlagProto_,67))&&_.a4(C,67,e);return this};
_.Y.JSC$20115_setSmartCropNoClip=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,_.Sv(C,52),_.Sv(z.signatureFlagProto_,52))&&_.a4(C,52,e);return this};
_.Y.setSize=function(e){var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,C.getSize(),z.signatureFlagProto_.getSize())&&C.setSize(e);return this};
_.Y.setToken=function(e){e=e||void 0;var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,C.getToken(),z.signatureFlagProto_.getToken())&&C.setToken(e);return this};
_.Y.JSC$20115_setWidth=function(e){var z=this.JSC$20113_parsedOptions_,C=z.valueProto_;S7(e,C.getWidth(),z.signatureFlagProto_.getWidth())&&_.td(C,12,e);return this};
_.Y.clearOptions=function(){HEo(this,"");return this};
_.Y.build=function(){this.JSC$20113_components_.length=0;var e=this.JSC$20113_parsedOptions_,z=e.valueProto_;e=e.signatureFlagProto_;uX(this,"s",z.getSize(),e.getSize());uX(this,"w",z.getWidth(),e.getWidth());dT(this,"c",_.Sv(z,2),_.Sv(e,2));dT(this,"d",_.Sv(z,3),_.Sv(e,3));uX(this,"h",z.getHeight(),e.getHeight());dT(this,"s",JW(z,33),JW(e,33));dT(this,"h",z.getHtml(),e.getHtml());dT(this,"p",_.Sv(z,19),_.Sv(e,19));dT(this,"pp",_.Sv(z,52),_.Sv(e,52));dT(this,"pf",_.Sv(z,67),_.Sv(e,67));dT(this,"n",
_.Sv(z,20),_.Sv(e,20));uX(this,"r",ke(z,26),ke(e,26));dT(this,"r",_.Sv(z,6),_.Sv(e,6));dT(this,"o",JW(z,27),JW(e,27));var C=_.fb(z,7,_.PW);Du(this,"o",C,_.fb(e,7,_.PW));C=_.fb(z,29,_.PW);Du(this,"j",C,_.fb(e,29,_.PW));uX(this,"x",ke(z,9),ke(e,9));uX(this,"y",ke(z,10),ke(e,10));uX(this,"z",ke(z,11),ke(e,11));dT(this,"g",_.Sv(z,14),_.Sv(e,14));uX(this,"e",ke(z,15),ke(e,15));Du(this,"f",_.R4(z,16),_.R4(e,16));dT(this,"k",JW(z,17),JW(e,17));dT(this,"u",JW(z,18),!0);dT(this,"ut",JW(z,45),!0);dT(this,"i",
JW(z,22),!0);dT(this,"a",JW(z,21),JW(e,21));dT(this,"b",_.Sv(z,23),_.Sv(e,23));uX(this,"b",ke(z,38),ke(e,38));uX(this,"c",ke(z,39),ke(e,39),16,8);Du(this,"q",_.R4(z,28),_.R4(e,28));dT(this,"fh",JW(z,30),JW(e,30));dT(this,"fv",JW(z,31),JW(e,31));dT(this,"fg",_.Sv(z,34),_.Sv(e,34));dT(this,"ci",JW(z,32),JW(e,32));Du(this,"t",z.getToken(),e.getToken());Du(this,"nt0",_.R4(z,36),_.R4(e,36));dT(this,"rw",_.Sv(z,35),_.Sv(e,35));dT(this,"rwu",_.Sv(z,41),_.Sv(e,41));dT(this,"rwa",_.Sv(z,64),_.Sv(e,64));dT(this,
"nw",_.Sv(z,48),_.Sv(e,48));dT(this,"rh",_.Sv(z,49),_.Sv(e,49));dT(this,"no",_.Sv(z,37),_.Sv(e,37));dT(this,"ns",JW(z,40),JW(e,40));uX(this,"k",ke(z,42),ke(e,42));uX(this,"p",ke(z,43),ke(e,43));uX(this,"l",ke(z,44),ke(e,44));uX(this,"v",ke(z,62),ke(e,62));dT(this,"nu",JW(z,46),JW(e,46));dT(this,"ft",JW(z,50),JW(e,50));dT(this,"cc",JW(z,51),JW(e,51));dT(this,"nd",JW(z,53),JW(e,53));dT(this,"ip",JW(z,54),JW(e,54));dT(this,"nc",JW(z,55),JW(e,55));uX(this,"a",ke(z,56),ke(e,56));dT(this,"rj",JW(z,57),
JW(e,57));dT(this,"rp",JW(z,58),JW(e,58));dT(this,"rg",JW(z,59),JW(e,59));dT(this,"pd",JW(z,60),JW(e,60));dT(this,"pa",JW(z,61),JW(e,61));uX(this,"m",ke(z,63),ke(e,63));uX(this,"vb",qR(z,68),qR(e,68));uX(this,"vl",qR(z,69),qR(e,69));dT(this,"lf",JW(z,65),JW(e,65));dT(this,"mv",JW(z,66),JW(e,66));dT(this,"id",JW(z,70),JW(e,70));uX(this,"ic",ke(z,71),!0);dT(this,"pg",_.Sv(z,72),_.Sv(e,72));dT(this,"mo",JW(z,73),JW(e,73));dT(this,"al",JW(z,74),JW(e,74));uX(this,"iv",qR(z,75),qR(e,75));uX(this,"pi",xe(z,
76),xe(e,76));uX(this,"ya",xe(z,77),xe(e,77));uX(this,"ro",xe(z,78),xe(e,78));uX(this,"fo",xe(z,79),xe(e,79));dT(this,"df",JW(z,80),JW(e,80));Du(this,"mm",_.R4(z,81),_.R4(e,81));dT(this,"sg",JW(z,82),JW(e,82));dT(this,"gd",JW(z,83),JW(e,83));dT(this,"fm",JW(z,84),JW(e,84));uX(this,"ba",ke(z,85),ke(e,85));uX(this,"br",ke(z,86),ke(e,86));uX(this,"bc",z.getBackgroundColor(),e.getBackgroundColor(),16,8);uX(this,"pc",ke(z,88),ke(e,88),16,8);uX(this,"sc",ke(z,89),ke(e,89),16,8);dT(this,"dv",JW(z,90),JW(e,
90));dT(this,"md",JW(z,91),JW(e,91));uX(this,"cp",ke(z,92),ke(e,92));dT(this,"sm",JW(z,93),JW(e,93));uX(this,"cv",ke(z,94),ke(e,94));dT(this,"ng",JW(z,95),JW(e,95));dT(this,"il",JW(z,96),JW(e,96));dT(this,"lo",JW(z,97),JW(e,97));dT(this,"vm",JW(z,98),JW(e,98));Du(this,"dc",_.R4(z,99),_.R4(e,99));dT(this,"rf",JW(z,100),JW(e,100));Du(this,"vf",_.R4(z,102),_.R4(e,102));dT(this,"ra",_.Sv(z,103),_.Sv(e,103));dT(this,"ckm",JW(z,104),JW(e,104));dT(this,"gm",JW(z,105),JW(e,105));dT(this,"ngm",JW(z,106),JW(e,
106));uX(this,"em",ke(z,107),ke(e,107));dT(this,"cr",JW(z,108),JW(e,108));uX(this,"sl",z.getStoryboardLevel(),e.getStoryboardLevel());uX(this,"sb",ke(z,110),ke(e,110));Du(this,"pt",_.R4(z,111),_.R4(e,111));Du(this,"gce",_.R4(z,112),_.R4(e,112));dT(this,"tm",JW(z,113),JW(e,113));dT(this,"ntm",JW(z,114),JW(e,114));uX(this,"mp",ke(z,115),ke(e,115));return this.JSC$20113_components_.join("-")};
var uX=function(e,z,C,w,K,G){if(C!=null){var X=K==void 0||K!=10&&K!=16?10:K;C=Number(C).toString(X);K=new etZ;K.append(X==16?"0x":"");X=K.append;G==void 0?G="":(G-=C.length,G=G<=0?"":(0,_.lGU)("0",G));X.call(K,G);K.append(C);vqv(e,z,K.toString(),!!Number(w))}},dT=function(e,z,C,w){C&&vqv(e,z,"",!!w)},Du=function(e,z,C,w){C&&vqv(e,z,String(C),!!Number(w))},vqv=function(e,z,C,w){w&&(z=z.charAt(0).toUpperCase()+z.substring(1));
e.JSC$20113_components_.push(z+C)};_.Tk(If,fWW);_.Y=If.prototype;_.Y.JSC$20115_setCrop=function(e){e&&iX(this);return If.superClass_.JSC$20115_setCrop.call(this,e)};
_.Y.JSC$20115_setHeight=function(e){e=e==null||e<0?void 0:e;e!=null&&this.setSize();return If.superClass_.JSC$20115_setHeight.call(this,e)};
_.Y.JSC$20115_setImageCrop=function(e){e&&iX(this);return If.superClass_.JSC$20115_setImageCrop.call(this,e)};
_.Y.JSC$20115_setCircleCrop=function(e){e&&iX(this);return If.superClass_.JSC$20115_setCircleCrop.call(this,e)};
_.Y.setSize=function(e){_.gL(e)&&(e=Math.max(e.width,e.height));e=e==null||e<0?void 0:e;e!=null&&(this.JSC$20115_setWidth(),this.JSC$20115_setHeight());return If.superClass_.setSize.call(this,e)};
_.Y.JSC$20115_setSmartCrop=function(e){e&&iX(this);return If.superClass_.JSC$20115_setSmartCrop.call(this,e)};
_.Y.JSC$20115_setSmartCropNoClip=function(e){e&&iX(this);return If.superClass_.JSC$20115_setSmartCropNoClip.call(this,e)};
_.Y.JSC$20115_setSmartCropUseFace=function(e){e&&iX(this);return If.superClass_.JSC$20115_setSmartCropUseFace.call(this,e)};
_.Y.setCenterCrop=function(e){e&&iX(this);return If.superClass_.setCenterCrop.call(this,e)};
_.Y.JSC$20115_setPad=function(e){e&&iX(this);return If.superClass_.JSC$20115_setPad.call(this,e)};
_.Y.JSC$20115_setWidth=function(e){e=e==null||e<0?void 0:e;e!=null&&this.setSize();return If.superClass_.JSC$20115_setWidth.call(this,e)};
var ISZ=function(e){e.clearOptions();var z=e.JSC$20113_parsedOptions_,C=z.valueProto_;S7(!0,_.Sv(C,3),_.Sv(z.signatureFlagProto_,3))&&_.a4(C,3,!0);return e},iX=function(e){e.setCenterCrop();
e.JSC$20115_setCircleCrop();e.JSC$20115_setCrop();e.JSC$20115_setImageCrop();e.JSC$20115_setPad();e.JSC$20115_setSmartCrop();e.JSC$20115_setSmartCropNoClip();e.JSC$20115_setSmartCropUseFace()};
If.prototype.build=function(){var e=this.JSC$20113_parsedOptions_.valueProto_;JW(e,18)||JW(e,45)?e.getSize()||this.setSize(0):(e=this.JSC$20113_parsedOptions_.valueProto_,e.getSize()||e.getWidth()||e.getHeight()||(this.setSize(),this.JSC$20115_setHeight(),this.JSC$20115_setWidth(),iX(this)));return If.superClass_.build.call(this)};var WF5=/^[^\/]*\/\//,Pz5=function(e,z){z=z===void 0?!1:z;this.original_=e;this.originalPrefix_="";(e=this.original_.match(WF5))&&e[0]?(this.originalPrefix_=e[0],e=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):e="http://"+this.original_;this.uri_=_.Cj(e,!0);this.isFreeformUrl_=z;this.JSC$20119_valid_=!0;this.obfuscated_=!1},RO3=function(e,z){e.JSC$20121_pathPrefix_=e.JSC$20121_pathPrefix_?e.JSC$20121_pathPrefix_+("/"+z):z},NR=function(e){if(e.JSC$20121_components_==
void 0){var z=e.uri_.getPath().substring(1);
e.JSC$20121_pathPrefix_=null;if(e.isFreeformUrl_){e.JSC$20121_components_=[];if((z.match(/=/g)||[]).length>1)return e.JSC$20119_valid_=!1,e.JSC$20121_components_;var C=z.indexOf("=");C!=-1?(e.JSC$20121_components_.push(z.substr(0,C)),e.JSC$20121_components_.push(z.substr(C+1))):e.JSC$20121_components_.push(z);return e.JSC$20121_components_}e.JSC$20121_components_=z.split("/");z=e.JSC$20121_components_.length;z>2&&e.JSC$20121_components_[0]=="u"&&(RO3(e,e.JSC$20121_components_[0]+"/"+e.JSC$20121_components_[1]),
e.JSC$20121_components_.shift(),e.JSC$20121_components_.shift(),z-=2);if(z==0||z==4||z>7)return e.JSC$20119_valid_=!1,e.JSC$20121_components_;if(z==2)RO3(e,e.JSC$20121_components_[0]);else if(e.JSC$20121_components_[0]=="image")RO3(e,e.JSC$20121_components_[0]);else if(z==7||z==3)return e.JSC$20119_valid_=!1,e.JSC$20121_components_;if(z<=3){e.obfuscated_=!0;z==3&&(RO3(e,e.JSC$20121_components_[1]),e.JSC$20121_components_.shift(),--z);--z;C=e.JSC$20121_components_[z];var w=C.indexOf("=");w!=-1&&(e.JSC$20121_components_[z]=
C.substr(0,w),e.JSC$20121_components_.push(C.substr(w+1)))}}return e.JSC$20121_components_};
Pz5.prototype.isValid=function(){NR(this);return this.JSC$20119_valid_};
Pz5.prototype.isObfuscated=function(){NR(this);return this.obfuscated_};
var LFa=function(e){NR(e);return e.isFreeformUrl_},sB=function(e){NR(e);
e.JSC$20121_pathPrefix_==void 0&&(e.JSC$20121_pathPrefix_=null);return e.JSC$20121_pathPrefix_},hOv=function(e){switch(NR(e).length){case 7:return!0;
case 6:return sB(e)==null;case 5:return!1;case 3:return!0;case 2:return sB(e)==null;case 1:return!1;default:return!1}},B3=function(e,z){if(LFa(e))a:{switch(z){case 7:z=0;
break;case 4:if(!hOv(e)){e=null;break a}z=1;break;default:e=null;break a}e=NR(e)[z]}else if(e.isObfuscated())a:{var C=sB(e)!=null?1:0;switch(z){case 6:z=C;break;case 4:if(!hOv(e)){e=null;break a}z=1+C;break;default:e=null;break a}e=NR(e)[z]}else a:{C=sB(e)!=null?1:0;switch(z){case 0:z=C;break;case 1:z=1+C;break;case 2:z=2+C;break;case 3:z=3+C;break;case 4:if(!hOv(e)){e=null;break a}z=4+C;break;case 5:z=hOv(e)?1:0;z=4+C+z;break;default:e=null;break a}e=NR(e)[z]}return e};
Pz5.prototype.getOptions=function(){this.options_==void 0&&(this.options_=B3(this,4));return this.options_};var dll=function(){};
dll.prototype.parse=function(e,z){return new SA3(e,z===void 0?!1:z)};
var SA3=function(e,z){Pz5.call(this,e,z===void 0?!1:z)};
_.U(SA3,Pz5);_.Tk(isl,If);var uZL;isl.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
isl.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var e=isl.superClass_.build.call(this),z=[];sB(this.parsedImageUrl_)!=null&&z.push(sB(this.parsedImageUrl_));var C=LFa(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var w=this.parsedImageUrl_;w.obfuscatedData_==void 0&&(w.obfuscatedData_=B3(w,6));z.push(w.obfuscatedData_+(e?"="+e:""))}else if(C){w=z.push;var K=this.parsedImageUrl_;K.freeformUrlPath_===void 0&&(K.freeformUrlPath_=
B3(K,7));w.call(z,K.freeformUrlPath_);e&&z.push(e)}else w=z.push,K=this.parsedImageUrl_,K.obfuscatedGaiaId_==void 0&&(K.obfuscatedGaiaId_=B3(K,0)),w.call(z,K.obfuscatedGaiaId_),w=z.push,K=this.parsedImageUrl_,K.photoId_==void 0&&(K.photoId_=B3(K,1)),w.call(z,K.photoId_),w=z.push,K=this.parsedImageUrl_,K.imageVersion_==void 0&&(K.imageVersion_=B3(K,2)),w.call(z,K.imageVersion_),w=z.push,K=this.parsedImageUrl_,K.signature_==void 0&&(K.signature_=B3(K,3)),w.call(z,K.signature_),e&&z.push(e),e=z.push,
w=this.parsedImageUrl_,w.filename_==void 0&&(w.filename_=B3(w,5)),e.call(z,w.filename_);z=C?z.join("="):z.join("/");z=_.Cj(this.protocolPrefix_+this.JSC$20127_domain_+"/"+z+(this.JSC$20127_query_?"?"+this.JSC$20127_query_:"")).toString();z.startsWith("%3a//")&&(z=z.replace("%3a//","://"));return z};var OEf=_.Kb(["viewBox"]),EqY=_.Kb(["width"]),FFa=_.Kb(["height"]),VfC=_.Kb(["fill"]),fS3=_.Kb(["id"]),S2L=_.Kb(["x"]),uro=_.Kb(["y"]);N$q.prototype.getLength=function(){return this.parsedData.length};
N$q.prototype.write=function(e){for(var z=0,C=this.parsedData.length;z<C;z++)e.put(this.parsedData[z],8)};
var cSZ=function(e,z){var C=new N$q(z);e.dataList.push(C);C=e.errorCorrectLevel;var w=1,K=encodeURI(z).toString().replace(/%[0-9a-fA-F]{2}/g,"a");z=K.length+(K.length!=z?3:0);K=0;for(var G=tW.length;K<=G;K++){var X=0;switch(C){case 1:X=tW[K][0];break;case 0:X=tW[K][1];break;case 3:X=tW[K][2];break;case 2:X=tW[K][3]}if(z<=X)break;else w++}if(w>tW.length)throw Error("Sk");e.typeNumber=w;e.dataCache=null};
se3.prototype.isDark=function(e,z){if(e<0||this.moduleCount<=e||z<0||this.moduleCount<=z)throw Error("Kk`"+e+"`"+z);return this.modules[e][z]};
for(var AS$=function(e,z,C){e.moduleCount=e.typeNumber*4+17;e.modules=Array(e.moduleCount);for(var w=0;w<e.moduleCount;w++){e.modules[w]=Array(e.moduleCount);for(var K=0;K<e.moduleCount;K++)e.modules[w][K]=null}de$(e,0,0);de$(e,e.moduleCount-7,0);de$(e,0,e.moduleCount-7);w=DeL[e.typeNumber-1];for(K=0;K<w.length;K++)for(var G=0;G<w.length;G++){var X=w[K],J=w[G];if(e.modules[X][J]==null)for(var q=-2;q<=2;q++)for(var T=-2;T<=2;T++)e.modules[X+q][J+T]=q==-2||q==2||T==-2||T==2||q==0&&T==0?!0:!1}for(w=
8;w<e.moduleCount-8;w++)e.modules[w][6]==null&&(e.modules[w][6]=w%2==0);for(w=8;w<e.moduleCount-8;w++)e.modules[6][w]==null&&(e.modules[6][w]=w%2==0);w=e.errorCorrectLevel<<3|C;for(K=w<<10;gT(K)-gT(1335)>=0;)K^=1335<<gT(K)-gT(1335);w=(w<<10|K)^21522;for(K=0;K<15;K++)G=!z&&(w>>K&1)==1,K<6?e.modules[K][8]=G:K<8?e.modules[K+1][8]=G:e.modules[e.moduleCount-15+K][8]=G;for(K=0;K<15;K++)G=!z&&(w>>K&1)==1,K<8?e.modules[8][e.moduleCount-K-1]=G:K<9?e.modules[8][15-K-1+1]=G:e.modules[8][15-K-1]=G;e.modules[e.moduleCount-
8][8]=!z;if(e.typeNumber>=7){w=e.typeNumber;for(K=w<<12;gT(K)-gT(7973)>=0;)K^=7973<<gT(K)-gT(7973);w=w<<12|K;for(K=0;K<18;K++)G=!z&&(w>>K&1)==1,e.modules[Math.floor(K/3)][K%3+e.moduleCount-8-3]=G;for(K=0;K<18;K++)G=!z&&(w>>K&1)==1,e.modules[K%3+e.moduleCount-8-3][Math.floor(K/3)]=G}if(e.dataCache==null){K=e.typeNumber;G=e.dataList;z=e.errorCorrectLevel;w=iEb(K,z);if(w==void 0)throw Error("Rk`"+K+"`"+z);X=w.length/3;z=[];for(J=0;J<X;J++){q=w[J*3];T=w[J*3+1];for(var Q=w[J*3+2],m=0;m<q;m++)z.push(new B$$(T,
Q))}w=new t4W;for(X=0;X<G.length;X++)J=G[X],w.put(J.mode,4),w.put(J.getLength(),NXY(J.mode,K)),J.write(w);for(X=K=0;X<z.length;X++)K+=z[X].dataCount;if(w.length>K*8)throw Error("Lk`"+w.length+"`"+K*8);for(w.length+4<=K*8&&w.put(0,4);w.length%8!=0;)sQW(w,!1);for(;!(w.length>=K*8);){w.put(236,8);if(w.length>=K*8)break;w.put(17,8)}G=K=T=0;X=Array(z.length);J=Array(z.length);for(q=0;q<z.length;q++){m=z[q].dataCount;var a=z[q].totalCount-m;K=Math.max(K,m);G=Math.max(G,a);X[q]=Array(m);for(Q=0;Q<X[q].length;Q++)X[q][Q]=
255&w.buffer[Q+T];T+=m;Q=a;m=new Wd([1],0);for(a=0;a<Q;a++)m=m.multiply(new Wd([1,BXv(a)],0));Q=m;m=(new Wd(X[q],Q.getLength()-1)).mod(Q);J[q]=Array(Q.getLength()-1);for(Q=0;Q<J[q].length;Q++)a=Q+m.getLength()-J[q].length,J[q][Q]=a>=0?m.get(a):0}for(Q=w=0;Q<z.length;Q++)w+=z[Q].totalCount;w=Array(w);for(Q=T=0;Q<K;Q++)for(q=0;q<z.length;q++)Q<X[q].length&&(w[T++]=X[q][Q]);for(Q=0;Q<G;Q++)for(q=0;q<z.length;q++)Q<J[q].length&&(w[T++]=J[q][Q]);e.dataCache=w}z=e.dataCache;w=-1;K=e.moduleCount-1;G=7;X=
0;for(J=e.moduleCount-1;J>0;J-=2)for(J==6&&J--;;){for(q=0;q<2;q++)e.modules[K][J-q]==null&&(T=!1,X<z.length&&(T=(z[X]>>>G&1)==1),tfa(C,K,J-q)&&(T=!T),e.modules[K][J-q]=T,G--,G==-1&&(X++,G=7));K+=w;if(K<0||e.moduleCount<=K){K-=w;w=-w;break}}},de$=function(e,z,C){for(var w=-1;w<=7;w++)if(!(z+w<=-1||e.moduleCount<=z+w))for(var K=-1;K<=7;K++)C+K<=-1||e.moduleCount<=C+K||(e.modules[z+w][C+K]=0<=w&&w<=6&&(K==0||K==6)||0<=K&&K<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=K&&K<=4?!0:!1)},Zsf=function(e){for(var z=0,
C=0,w=0;w<8;w++){AS$(e,!0,w);
var K=e;for(var G=K.moduleCount,X=0,J=0;J<G;J++)for(var q=0;q<G;q++){for(var T=0,Q=K.isDark(J,q),m=-1;m<=1;m++)if(!(J+m<0||G<=J+m))for(var a=-1;a<=1;a++)q+a<0||G<=q+a||(m!=0||a!=0)&&Q==K.isDark(J+m,q+a)&&T++;T>5&&(X+=3+T-5)}for(J=0;J<G-1;J++)for(q=0;q<G-1;q++)if(T=0,K.isDark(J,q)&&T++,K.isDark(J+1,q)&&T++,K.isDark(J,q+1)&&T++,K.isDark(J+1,q+1)&&T++,T==0||T==4)X+=3;for(J=0;J<G;J++)for(q=0;q<G-6;q++)K.isDark(J,q)&&!K.isDark(J,q+1)&&K.isDark(J,q+2)&&K.isDark(J,q+3)&&K.isDark(J,q+4)&&!K.isDark(J,q+5)&&
K.isDark(J,q+6)&&(X+=40);for(q=0;q<G;q++)for(J=0;J<G-6;J++)K.isDark(J,q)&&!K.isDark(J+1,q)&&K.isDark(J+2,q)&&K.isDark(J+3,q)&&K.isDark(J+4,q)&&!K.isDark(J+5,q)&&K.isDark(J+6,q)&&(X+=40);for(q=T=0;q<G;q++)for(J=0;J<G;J++)K.isDark(J,q)&&T++;K=X+=Math.abs(100*T/G/G-50)/5*10;if(w==0||z>K)z=K,C=w}return C},DeL=[[],
[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]],gT=function(e){for(var z=0;e!=0;)z++,e>>>=1;return z},tfa=function(e,z,C){switch(e){case 0:return(z+C)%2==0;
case 1:return z%2==0;case 2:return C%3==0;case 3:return(z+C)%3==0;case 4:return(Math.floor(z/2)+Math.floor(C/3))%2==0;case 5:return z*C%2+z*C%3==0;case 6:return(z*C%2+z*C%3)%2==0;case 7:return(z*C%3+(z+C)%2)%2==0;default:throw Error("Mk`"+e);}},NXY=function(e,z){if(1<=z&&z<10)switch(e){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Nk`"+e);}else if(z<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Nk`"+e);}else if(z<41)switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Nk`"+e);}else throw Error("Ok`"+z);},jQL=function(e){if(e<1)throw Error("Pk`"+e);
return gql[e]},BXv=function(e){for(;e<0;)e+=255;
for(;e>=256;)e-=255;return j7[e]},j7=Array(256),gql=Array(256),yY3=0;yY3<8;yY3++)j7[yY3]=1<<yY3;
for(var y9=8;y9<256;y9++)j7[y9]=j7[y9-4]^j7[y9-5]^j7[y9-6]^j7[y9-8];for(var cYa=0;cYa<255;cYa++)gql[j7[cYa]]=cYa;Wd.prototype.get=function(e){return this.num[e]};
Wd.prototype.getLength=function(){return this.num.length};
Wd.prototype.multiply=function(e){for(var z=Array(this.getLength()+e.getLength()-1),C=0;C<this.getLength();C++)for(var w=0;w<e.getLength();w++)z[C+w]^=BXv(jQL(this.get(C))+jQL(e.get(w)));return new Wd(z,0)};
Wd.prototype.mod=function(e){if(this.getLength()-e.getLength()<0)return this;for(var z=jQL(this.get(0))-jQL(e.get(0)),C=Array(this.getLength()),w=0;w<this.getLength();w++)C[w]=this.get(w);for(w=0;w<e.getLength();w++)C[w]^=BXv(jQL(e.get(w))+z);return(new Wd(C,0)).mod(e)};
var AY$=[[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]],iEb=function(e,z){switch(z){case 1:return AY$[(e-1)*4];case 0:return AY$[(e-1)*4+1];case 3:return AY$[(e-1)*4+2];case 2:return AY$[(e-1)*4+3]}};
t4W.prototype.get=function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1};
t4W.prototype.put=function(e,z){for(var C=0;C<z;C++)sQW(this,(e>>>z-C-1&1)==1)};
var sQW=function(e,z){var C=Math.floor(e.length/8);e.buffer.length<=C&&e.buffer.push(0);z&&(e.buffer[C]|=128>>>e.length%8);e.length++},tW=[[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]],ySY=function(){var e=function(z,C){this.JSC$20147__el=z;this.JSC$20147__htOption=C};
e.prototype.draw=function(z){function C(Q,m){Q=document.createElementNS("http://www.w3.org/2000/svg",Q);for(var a in m)m.hasOwnProperty(a)&&(a==="href"?_.ed5(Q,m[a]):_.xo([_.Qb(OEf),_.Qb(EqY),_.Qb(FFa),_.Qb(VfC),_.Qb(fS3),_.Qb(S2L),_.Qb(uro)],Q,a,m[a]));return Q}
var w=this.JSC$20147__htOption,K=this.JSC$20147__el,G=z.moduleCount;this.clear();var X=C("svg",{viewBox:"0 0 "+String(G)+" "+String(G),width:"100%",height:"100%",fill:w.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});K.appendChild(X);X.appendChild(C("rect",{fill:w.colorLight,width:"100%",height:"100%"}));X.appendChild(C("rect",{fill:w.colorDark,width:"1",height:"1",id:"template"}));for(var J=0;J<G;J++)for(var q=0;q<G;q++)if(z.isDark(J,q)){var T=C("use",{x:String(J),y:String(q),href:"#template"});
X.appendChild(T)}};
e.prototype.clear=function(){for(;this.JSC$20147__el.hasChildNodes();)this.JSC$20147__el.removeChild(this.JSC$20147__el.lastChild)};
return e}(),je$=document.documentElement.tagName.toLowerCase()==="svg"?ySY:typeof CanvasRenderingContext2D!="undefined"?function(){var e=function(z,C){this._bIsPainted=!1;
gs5();this.JSC$20147__htOption=C;this._elCanvas=document.createElement("canvas");this._elCanvas.width=C.width;this._elCanvas.height=C.height;z.appendChild(this._elCanvas);this.JSC$20147__el=z;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$20147__el.appendChild(this._elImage);this._bSupportDataURI=null};
e.prototype._onMakeImage=function(){var z=this._elCanvas.toDataURL("image/png");this._elImage.src=z;this._elImage.style.display="block";this._elCanvas.style.display="none"};
e.prototype._safeSetDataURI=function(z,C){var w=this;w._fFail=C;w._fSuccess=z;w._bSupportDataURI===null?(z=_.Lh("IMG"),C=function(){w._bSupportDataURI=!1;w._fFail&&w._fFail.call(w)},z.onabort=C,z.onerror=C,z.onload=function(){w._bSupportDataURI=!0;
w._fSuccess&&w._fSuccess.call(w)},z.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):w._bSupportDataURI===!0&&w._fSuccess?w._fSuccess.call(w):w._bSupportDataURI===!1&&w._fFail&&w._fFail.call(w)};
e.prototype.draw=function(z){var C=this._oContext,w=this.JSC$20147__htOption,K=z.moduleCount,G=w.width/K,X=w.height/K,J=Math.round(G),q=Math.round(X);this._elImage.style.display="none";this.clear();for(var T=0;T<K;T++)for(var Q=0;Q<K;Q++){var m=z.isDark(T,Q),a=Q*G,n=T*X;C.strokeStyle=m?w.colorDark:w.colorLight;C.lineWidth=1;C.fillStyle=m?w.colorDark:w.colorLight;C.fillRect(a,n,G,X);C.strokeRect(Math.floor(a)+.5,Math.floor(n)+.5,J,q);C.strokeRect(Math.ceil(a)-.5,Math.ceil(n)-.5,J,q)}this._bIsPainted=
!0};
e.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
e.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
e.prototype.round=function(z){return z?Math.floor(z*1E3)/1E3:z};
return e}():function(){var e=function(z,C){this.JSC$20147__el=z;
this.JSC$20147__htOption=C};
e.prototype.draw=function(z){for(var C=this.JSC$20147__htOption,w=this.JSC$20147__el,K=z.moduleCount,G=Math.floor(C.width/K),X=Math.floor(C.height/K),J=['<table style="border:0;border-collapse:collapse;">'],q=0;q<K;q++){J.push("<tr>");for(var T=0;T<K;T++)J.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+G+"px;height:"+X+"px;background-color:"+(z.isDark(q,T)?C.colorDark:C.colorLight)+';"></td>');J.push("</tr>")}J.push("</table>");z=J.join("");z=_.Gma(_.bJa,z);_.ko(w,z);
z=w.childNodes[0];K=(C.width-z.offsetWidth)/2;G=(C.height-z.offsetHeight)/2;K>0&&G>0&&(z.style.margin=G+"px "+K+"px")};
e.prototype.clear=function(){this.JSC$20147__el.textContent=""};
return e}();
p0L.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$20150__android||this.JSC$20150__android>=3)&&this._oDrawing.makeImage()};
p0L.prototype.clear=function(){this._oDrawing.clear()};
_.wL.QRCode=p0L;var ZE3={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var phv=function(){};
phv.prototype.stringify=function(e){return _.wL.JSON.stringify(e,void 0)};
phv.prototype.parse=function(e){return _.wL.JSON.parse(e,void 0)};var eJY=function(){_.fk.call(this,"z")};
_.Tk(eJY,_.fk);var zJL=function(){_.fk.call(this,"y")};
_.Tk(zJL,_.fk);var C9$=null,wkv=function(){return C9$=C9$||new _.N3},Kja=function(e){_.fk.call(this,"serverreachability",e)};
_.Tk(Kja,_.fk);var oVZ=function(e){var z=wkv();z.dispatchEvent(new Kja(z,e))},GBL=function(e,z){_.fk.call(this,"statevent",e);
this.stat=z};
_.Tk(GBL,_.fk);var c3=function(e){var z=wkv();z.dispatchEvent(new GBL(z,e))},YWb=function(e,z,C,w){_.fk.call(this,"timingevent",e);
this.size=z;this.rtt=C;this.retries=w};
_.Tk(YWb,_.fk);var bx5=function(e,z,C){var w=wkv();w.dispatchEvent(new YWb(w,e,z,C))},XkL=function(e,z){if(typeof e!=="function")throw Error("Tk");
return _.wL.setTimeout(function(){e()},z)};var AW=function(){this.redactEnabled_=!0};
AW.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Ju$=function(e,z,C,w,K,G){e.info(function(){if(e.redactEnabled_)if(G){var X="";for(var J=G.split("&"),q=0;q<J.length;q++){var T=J[q].split("=");if(T.length>1){var Q=T[0];T=T[1];var m=Q.split("_");X=m.length>=2&&m[1]=="type"?X+(Q+"="+T+"&"):X+(Q+"=redacted&")}}}else X=null;else X=G;return"XMLHTTP REQ ("+w+") [attempt "+K+"]: "+z+"\n"+C+"\n"+X})},kBY=function(e,z,C,w,K,G,X){e.info(function(){return"XMLHTTP RESP ("+w+") [ attempt "+K+"]: "+z+"\n"+C+"\n"+G+" "+X})},Zu=function(e,z,C,w){e.info(function(){return"XMLHTTP TEXT ("+
z+"): "+qWE(e,C)+(w?" "+w:"")})},xwZ=function(e,z){e.info(function(){return"TIMEOUT: "+z})};
AW.prototype.debug=function(){};
AW.prototype.info=function(){};
AW.prototype.warning=function(){};
var qWE=function(e,z){if(!e.redactEnabled_)return z;if(!z)return null;try{var C=JSON.parse(z);if(C)for(var w=0;w<C.length;w++)if(Array.isArray(C[w])){var K=C[w];if(!(K.length<2)){var G=K[1];if(Array.isArray(G)&&!(G.length<1)){var X=G[0];if(X!="noop"&&X!="stop"&&X!="close")for(var J=1;J<G.length;J++)G[J]=""}}}return(0,_.c2)(C)}catch(q){return e.debug("Exception parsing expected JS array - probably was not JS"),z}};var pl=function(e,z,C,w,K){this.JSC$20172_channel_=e;this.JSC$20172_channelDebug_=z;this.sid_=C;this.JSC$20172_rid_=w;this.JSC$20172_retryId_=K||1;this.JSC$20172_eventHandler_=new _.HA(this);this.timeout_=45E3;this.JSC$20172_extraHeaders_=null;this.JSC$20172_successful_=!1;this.JSC$20172_postData_=this.JSC$20172_requestUri_=this.JSC$20172_baseUri_=this.JSC$20172_type_=this.JSC$20172_requestStartTime_=this.JSC$20172_watchDogTimeoutTime_=this.JSC$20172_watchDogTimerId_=null;this.JSC$20172_pendingMessages_=
[];this.JSC$20172_xmlHttp_=null;this.JSC$20172_xmlHttpChunkStart_=0;this.JSC$20172_lastError_=this.JSC$20172_verb_=null;this.JSC$20172_lastStatusCode_=-1;this.JSC$20172_cancelled_=!1;this.JSC$20172_readyStateChangeThrottleMs_=0;this.JSC$20172_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Tyq},Tyq=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},$wo=function(e,z){switch(e){case 0:return"Non-200 return code ("+z+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},lCE={},Q65={};
pl.prototype.setTimeout=function(e){this.timeout_=e};
var aCo=function(e,z,C){e.JSC$20172_type_=1;e.JSC$20172_baseUri_=_.RK(z.clone());e.JSC$20172_postData_=C;e.decodeChunks_=!0;mwf(e,null)},mwf=function(e,z){e.JSC$20172_requestStartTime_=Date.now();
nVf(e);e.JSC$20172_requestUri_=e.JSC$20172_baseUri_.clone();Bqf(e.JSC$20172_requestUri_,"t",e.JSC$20172_retryId_);e.JSC$20172_xmlHttpChunkStart_=0;var C=e.JSC$20172_channel_.JSC$20191_supportsCrossDomainXhrs_;e.fetchResponseState_=new Tyq;e.JSC$20172_xmlHttp_=MwY(e.JSC$20172_channel_,C?z:null,!e.JSC$20172_postData_);e.JSC$20172_readyStateChangeThrottleMs_>0&&(e.JSC$20172_readyStateChangeThrottle_=new _.lw((0,_.uZ)(e.JSC$20176_xmlHttpHandler_,e,e.JSC$20172_xmlHttp_),e.JSC$20172_readyStateChangeThrottleMs_));
e.JSC$20172_eventHandler_.listen(e.JSC$20172_xmlHttp_,"readystatechange",e.JSC$20176_readyStateChangeHandler_);z=e.JSC$20172_extraHeaders_?_.de.clone(e.JSC$20172_extraHeaders_):{};e.JSC$20172_postData_?(e.JSC$20172_verb_||(e.JSC$20172_verb_="POST"),z["Content-Type"]="application/x-www-form-urlencoded",e.JSC$20172_xmlHttp_.send(e.JSC$20172_requestUri_,e.JSC$20172_verb_,e.JSC$20172_postData_,z)):(e.JSC$20172_verb_="GET",e.JSC$20172_xmlHttp_.send(e.JSC$20172_requestUri_,e.JSC$20172_verb_,null,z));oVZ(1);
Ju$(e.JSC$20172_channelDebug_,e.JSC$20172_verb_,e.JSC$20172_requestUri_,e.JSC$20172_rid_,e.JSC$20172_retryId_,e.JSC$20172_postData_)};
pl.prototype.JSC$20176_readyStateChangeHandler_=function(e){e=e.target;var z=this.JSC$20172_readyStateChangeThrottle_;z&&_.ZA(e)==3?(this.JSC$20172_channelDebug_.debug("Throttling readystatechange."),z.fire()):this.JSC$20176_xmlHttpHandler_(e)};
pl.prototype.JSC$20176_xmlHttpHandler_=function(e){try{e==this.JSC$20172_xmlHttp_?rua(this):this.JSC$20172_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(z){this.JSC$20172_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Hxf(this)}finally{}};
var rua=function(e){var z=_.ZA(e.JSC$20172_xmlHttp_),C=e.JSC$20172_xmlHttp_.JSC$9965_lastErrorCode_,w=e.JSC$20172_xmlHttp_.getStatus();if(!(z<3||z==3&&!Hxf(e))){e.JSC$20172_cancelled_||z!=4||C==7||(C==8||w<=0?oVZ(3):oVZ(2));UwL(e);var K=e.JSC$20172_xmlHttp_.getStatus();e.JSC$20172_lastStatusCode_=K;C=vVZ(e);Hxf(e)||e.JSC$20172_channelDebug_.debug(function(){return"No response text for uri "+e.JSC$20172_requestUri_+" status "+K});
e.JSC$20172_successful_=K==200;kBY(e.JSC$20172_channelDebug_,e.JSC$20172_verb_,e.JSC$20172_requestUri_,e.JSC$20172_rid_,e.JSC$20172_retryId_,z,K);if(e.JSC$20172_successful_){if(e.decodeInitialResponse_&&!e.initialResponseDecoded_)if(w=ICY(e))Zu(e.JSC$20172_channelDebug_,e.JSC$20172_rid_,w,"Initial handshake response via X-HTTP-Initial-Response"),e.initialResponseDecoded_=!0,Wjl(e,w);else{e.JSC$20172_successful_=!1;e.JSC$20172_lastError_=3;c3(12);e.JSC$20172_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
e.JSC$20172_rid_+")");et(e);P9E(e);return}e.decodeChunks_?RJb(e,z,C):(Zu(e.JSC$20172_channelDebug_,e.JSC$20172_rid_,C,null),Wjl(e,C));z==4&&et(e);e.JSC$20172_successful_&&!e.JSC$20172_cancelled_&&(z==4?LjE(e.JSC$20172_channel_,e):(e.JSC$20172_successful_=!1,nVf(e)))}else Nqb(e.JSC$20172_xmlHttp_),K==400&&C.indexOf("Unknown SID")>0?(e.JSC$20172_lastError_=3,c3(12),e.JSC$20172_channelDebug_.warning("XMLHTTP Unknown SID ("+e.JSC$20172_rid_+")")):(e.JSC$20172_lastError_=0,c3(13),e.JSC$20172_channelDebug_.warning("XMLHTTP Bad status "+
K+" ("+e.JSC$20172_rid_+")")),et(e),P9E(e)}},ICY=function(e){return e.JSC$20172_xmlHttp_&&(e=hhL(e.JSC$20172_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.bg(e)?e:null},vVZ=function(e){if(!hJv(e))return e.JSC$20172_xmlHttp_.getResponseText();
var z=e.JSC$20172_xmlHttp_.getResponse();if(z==="")return"";var C="",w=z.length,K=_.ZA(e.JSC$20172_xmlHttp_)==4;if(!e.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return et(e),P9E(e),"";e.fetchResponseState_.textDecoder=new _.wL.TextDecoder}for(var G=0;G<w;G++)e.fetchResponseState_.responseArrivedForFetch=!0,C+=e.fetchResponseState_.textDecoder.decode(z[G],{stream:!(K&&G==w-1)});z.length=0;e.fetchResponseState_.responseBuffer+=C;e.JSC$20172_xmlHttpChunkStart_=0;return e.fetchResponseState_.responseBuffer},
Hxf=function(e){return e.JSC$20172_xmlHttp_?e.fetchResponseState_.responseArrivedForFetch?!0:!(!e.JSC$20172_xmlHttp_.getResponseText()&&!e.JSC$20172_xmlHttp_.getResponse()):!1},hJv=function(e){return e.JSC$20172_xmlHttp_?e.JSC$20172_verb_=="GET"&&e.JSC$20172_type_!=2&&e.JSC$20172_channel_.usesFetchStreams_:!1},RJb=function(e,z,C){for(var w=!0,K;!e.JSC$20172_cancelled_&&e.JSC$20172_xmlHttpChunkStart_<C.length;)if(K=OxL(e,C),K==Q65){z==4&&(e.JSC$20172_lastError_=4,c3(14),w=!1);
Zu(e.JSC$20172_channelDebug_,e.JSC$20172_rid_,null,"[Incomplete Response]");break}else if(K==lCE){e.JSC$20172_lastError_=4;c3(15);Zu(e.JSC$20172_channelDebug_,e.JSC$20172_rid_,C,"[Invalid Chunk]");w=!1;break}else Zu(e.JSC$20172_channelDebug_,e.JSC$20172_rid_,K,null),Wjl(e,K);hJv(e)&&e.JSC$20172_xmlHttpChunkStart_!=0&&(e.fetchResponseState_.responseBuffer=e.fetchResponseState_.responseBuffer.slice(e.JSC$20172_xmlHttpChunkStart_),e.JSC$20172_xmlHttpChunkStart_=0);z!=4||C.length!=0||e.fetchResponseState_.responseArrivedForFetch||
(e.JSC$20172_lastError_=1,c3(16),w=!1);e.JSC$20172_successful_=e.JSC$20172_successful_&&w;w?C.length>0&&!e.firstByteReceived_&&(e.firstByteReceived_=!0,z=e.JSC$20172_channel_,z.JSC$20191_backChannelRequest_==e&&z.detectBufferingProxy_&&!z.bpDetectionDone_&&(z.JSC$20191_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+C.length),EVL(z),z.bpDetectionDone_=!0,c3(11))):(Zu(e.JSC$20172_channelDebug_,e.JSC$20172_rid_,C,"[Invalid Chunked Response]"),et(e),P9E(e))},OxL=function(e,
z){var C=e.JSC$20172_xmlHttpChunkStart_,w=z.indexOf("\n",C);
if(w==-1)return Q65;C=Number(z.substring(C,w));if(isNaN(C))return lCE;w+=1;if(w+C>z.length)return Q65;z=z.slice(w,w+C);e.JSC$20172_xmlHttpChunkStart_=w+C;return z};
pl.prototype.cancel=function(){this.JSC$20172_cancelled_=!0;et(this)};
var nVf=function(e){e.JSC$20172_watchDogTimeoutTime_=Date.now()+e.timeout_;Fjo(e,e.timeout_)},Fjo=function(e,z){if(e.JSC$20172_watchDogTimerId_!=null)throw Error("Uk");
e.JSC$20172_watchDogTimerId_=XkL((0,_.uZ)(e.JSC$20176_onWatchDogTimeout_,e),z)},UwL=function(e){e.JSC$20172_watchDogTimerId_&&(_.wL.clearTimeout(e.JSC$20172_watchDogTimerId_),e.JSC$20172_watchDogTimerId_=null)};
pl.prototype.JSC$20176_onWatchDogTimeout_=function(){this.JSC$20172_watchDogTimerId_=null;var e=Date.now();e-this.JSC$20172_watchDogTimeoutTime_>=0?(xwZ(this.JSC$20172_channelDebug_,this.JSC$20172_requestUri_),this.JSC$20172_type_!=2&&(oVZ(3),c3(17)),et(this),this.JSC$20172_lastError_=2,P9E(this)):(this.JSC$20172_channelDebug_.warning("WatchDog timer called too early"),Fjo(this,this.JSC$20172_watchDogTimeoutTime_-e))};
var P9E=function(e){e.JSC$20172_channel_.state_==0||e.JSC$20172_cancelled_||LjE(e.JSC$20172_channel_,e)},et=function(e){UwL(e);
_.XU(e.JSC$20172_readyStateChangeThrottle_);e.JSC$20172_readyStateChangeThrottle_=null;e.JSC$20172_eventHandler_.removeAll();if(e.JSC$20172_xmlHttp_){var z=e.JSC$20172_xmlHttp_;e.JSC$20172_xmlHttp_=null;z.abort();z.dispose()}};
pl.prototype.getLastError=function(){return this.JSC$20172_lastError_};
var Wjl=function(e,z){try{var C=e.JSC$20172_channel_;if(C.state_!=0&&(C.JSC$20191_backChannelRequest_==e||VwW(C.forwardChannelRequestPool_,e)))if(!e.initialResponseDecoded_&&VwW(C.forwardChannelRequestPool_,e)&&C.state_==3){try{var w=C.wireCodec_.JSC$20186_parser_.parse(z)}catch(J){w=null}if(Array.isArray(w)&&w.length==3){z=w;if(z[0]==0)a:if(C.JSC$20191_channelDebug_.debug("Server claims our backchannel is missing."),C.JSC$20191_backChannelTimerId_)C.JSC$20191_channelDebug_.debug("But we are currently starting the request.");
else{if(C.JSC$20191_backChannelRequest_)if(C.JSC$20191_backChannelRequest_.JSC$20172_requestStartTime_+3E3<e.JSC$20172_requestStartTime_)fCq(C),SWY(C);else break a;else C.JSC$20191_channelDebug_.warning("We do not have a BackChannel established");uGL(C);c3(18)}else{C.JSC$20191_lastPostResponseArrayId_=z[1];var K=C.JSC$20191_lastPostResponseArrayId_-C.JSC$20191_lastArrayId_;if(0<K){var G=z[2];C.JSC$20191_channelDebug_.debug(G+" bytes (in "+K+" arrays) are outstanding on the BackChannel");G<37500&&
C.enableStreaming_&&C.JSC$20191_backChannelRetryCount_==0&&!C.JSC$20191_deadBackChannelTimerId_&&(C.JSC$20191_deadBackChannelTimerId_=XkL((0,_.uZ)(C.JSC$20193_onBackChannelDead_,C),6E3))}}if(dwv(C.forwardChannelRequestPool_)<=1&&C.forwardChannelFlushedCallback_){try{C.forwardChannelFlushedCallback_()}catch(J){}C.forwardChannelFlushedCallback_=void 0}}else C.JSC$20191_channelDebug_.debug("Bad POST response data returned"),zI(C,11)}else if((e.initialResponseDecoded_||C.JSC$20191_backChannelRequest_==
e)&&fCq(C),!_.bg(z)){var X=C.wireCodec_.JSC$20186_parser_.parse(z);C.onInput_(X,e)}oVZ(4)}catch(J){}};var DwE=function(e,z){this.JSC$20179_mapId=e;this.map=z;this.context=null};var ixf=function(e){this.maxPoolSizeConfigured_=e||10;_.wL.PerformanceNavigationTiming?(e=_.wL.performance.getEntriesByType("navigation"),e=e.length>0&&(e[0].nextHopProtocol=="hq"||e[0].nextHopProtocol=="h2")):e=!!(_.wL.chrome&&_.wL.chrome.loadTimes&&_.wL.chrome.loadTimes()&&_.wL.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$20182_maxSize_=e?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$20182_maxSize_>1&&(this.requestPool_=new Set);this.JSC$20182_request_=null;this.JSC$20182_pendingMessages_=
[]},Ny3=function(e){return e.JSC$20182_request_?!0:e.requestPool_?e.requestPool_.size>=e.JSC$20182_maxSize_:!1},dwv=function(e){return e.JSC$20182_request_?1:e.requestPool_?e.requestPool_.size:0},VwW=function(e,z){return e.JSC$20182_request_?e.JSC$20182_request_==z:e.requestPool_?e.requestPool_.has(z):!1},s6Z=function(e,z){e.requestPool_?e.requestPool_.add(z):e.JSC$20182_request_=z},ByC=function(e,z){e.JSC$20182_request_&&e.JSC$20182_request_==z?e.JSC$20182_request_=null:e.requestPool_&&e.requestPool_.has(z)&&
e.requestPool_.delete(z)};
ixf.prototype.cancel=function(){this.JSC$20182_pendingMessages_=twW(this);if(this.JSC$20182_request_)this.JSC$20182_request_.cancel(),this.JSC$20182_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var e=_.b(this.requestPool_.values()),z=e.next();!z.done;z=e.next())z.value.cancel();this.requestPool_.clear()}};
var twW=function(e){if(e.JSC$20182_request_!=null)return e.JSC$20182_pendingMessages_.concat(e.JSC$20182_request_.JSC$20172_pendingMessages_);if(e.requestPool_!=null&&e.requestPool_.size!==0){var z=e.JSC$20182_pendingMessages_;e=_.b(e.requestPool_.values());for(var C=e.next();!C.done;C=e.next())z=z.concat(C.value.JSC$20172_pendingMessages_);return z}return _.ig(e.JSC$20182_pendingMessages_)},gVY=function(e,z){e.JSC$20182_pendingMessages_=e.JSC$20182_pendingMessages_.concat(z)};var j6$=function(e,z){var C=new AW;C.debug("TestLoadImage: loading "+e);if(_.wL.Image){var w=new Image;w.onload=_.xk(CS,C,"TestLoadImage: loaded",!0,z,w);w.onerror=_.xk(CS,C,"TestLoadImage: error",!1,z,w);w.onabort=_.xk(CS,C,"TestLoadImage: abort",!1,z,w);w.ontimeout=_.xk(CS,C,"TestLoadImage: timeout",!1,z,w);_.wL.setTimeout(function(){if(w.ontimeout)w.ontimeout()},1E4);
w.src=e}else z(!1)},yuC=function(e,z){var C=new AW,w=new AbortController,K=setTimeout(function(){w.abort();
CS(C,"TestPingServer: timeout",!1,z)},1E4);
fetch(e,{signal:w.signal}).then(function(G){clearTimeout(K);G.ok?CS(C,"TestPingServer: ok",!0,z):CS(C,"TestPingServer: server error",!1,z)}).catch(function(){clearTimeout(K);
CS(C,"TestPingServer: error",!1,z)})},CS=function(e,z,C,w,K){try{e.debug(z),K&&(K.onload=null,K.onerror=null,K.onabort=null,K.ontimeout=null),w(C)}catch(G){}};var cu$=function(){this.JSC$20186_parser_=new phv};var Au5=function(e,z,C){return C&&C.internalChannelParams?C.internalChannelParams[e]||z:z},wR=function(e){this.serverVersion_=0;
this.JSC$20191_outgoingMaps_=[];this.JSC$20191_channelDebug_=new AW;this.JSC$20191_hostPrefix_=this.JSC$20191_backChannelUri_=this.JSC$20191_forwardChannelUri_=this.JSC$20191_path_=this.JSC$20191_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$20191_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$20191_extraHeaders_=null;this.JSC$20191_nextMapId_=this.JSC$20191_nextRid_=0;this.JSC$20191_failFast_=Au5("failFast",!1,e);this.enableStreaming_=this.JSC$20191_deadBackChannelTimerId_=
this.JSC$20191_backChannelTimerId_=this.JSC$20191_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$20191_lastPostResponseArrayId_=this.JSC$20191_lastArrayId_=-1;this.JSC$20191_backChannelAttemptId_=this.JSC$20191_backChannelRetryCount_=this.JSC$20191_forwardChannelRetryCount_=0;this.JSC$20191_baseRetryDelayMs_=Au5("baseRetryDelayMs",5E3,e);this.JSC$20191_retryDelaySeedMs_=Au5("retryDelaySeedMs",1E4,e);this.JSC$20191_forwardChannelMaxRetries_=
Au5("forwardChannelMaxRetries",2,e);this.JSC$20191_forwardChannelRequestTimeoutMs_=Au5("forwardChannelRequestTimeoutMs",2E4,e);this.JSC$20191_xmlHttpFactory_=e&&e.xmlHttpFactory||void 0;this.networkTestUrl_=e&&e.networkTestUrl||void 0;this.usesFetchStreams_=e&&e.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$20191_supportsCrossDomainXhrs_=e&&e.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new ixf(e&&e.concurrentRequestLimit);this.wireCodec_=new cu$;
this.fastHandshake_=e&&e.fastHandshake||!1;this.encodeInitMessageHeaders_=e&&e.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$20191_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=e&&e.blockingHandshake||!1;e&&e.disableRedact&&this.JSC$20191_channelDebug_.disableRedact();e&&e.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&e&&e.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.longPollingTimeout_=e.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
wR.prototype.JSC$20193_channelVersion_=8;wR.prototype.state_=1;
wR.prototype.connect=function(e,z,C,w){this.JSC$20191_channelDebug_.debug("connect()");c3(0);this.JSC$20191_path_=e;this.JSC$20191_extraParams_=z||{};C&&w!==void 0&&(this.JSC$20191_extraParams_.OSID=C,this.JSC$20191_extraParams_.OAID=w);this.enableStreaming_=this.allowStreamingMode_;this.JSC$20191_channelDebug_.debug("connectChannel_()");e=Zxo(this,null,this.JSC$20191_path_);this.JSC$20191_channelDebug_.debug("GetForwardChannelUri: "+e);this.JSC$20191_forwardChannelUri_=e;pkY(this)};
wR.prototype.disconnect=function(){this.JSC$20191_channelDebug_.debug("disconnect()");eVE(this);if(this.state_==3){var e=this.JSC$20191_nextRid_++,z=this.JSC$20191_forwardChannelUri_.clone();_.oI(z,"SID",this.sid_);_.oI(z,"RID",e);_.oI(z,"TYPE","terminate");zVa(this,z);e=new pl(this,this.JSC$20191_channelDebug_,this.sid_,e);e.JSC$20172_type_=2;e.JSC$20172_baseUri_=_.RK(z.clone());z=!1;if(_.wL.navigator&&_.wL.navigator.sendBeacon)try{z=_.wL.navigator.sendBeacon(e.JSC$20172_baseUri_.toString(),"")}catch(C){}!z&&
_.wL.Image&&((new Image).src=e.JSC$20172_baseUri_,z=!0);z||(e.JSC$20172_xmlHttp_=MwY(e.JSC$20172_channel_,null),e.JSC$20172_xmlHttp_.send(e.JSC$20172_baseUri_));e.JSC$20172_requestStartTime_=Date.now();nVf(e)}C23(this)};
var SWY=function(e){e.JSC$20191_backChannelRequest_&&(EVL(e),e.JSC$20191_backChannelRequest_.cancel(),e.JSC$20191_backChannelRequest_=null)},eVE=function(e){SWY(e);
e.JSC$20191_backChannelTimerId_&&(_.wL.clearTimeout(e.JSC$20191_backChannelTimerId_),e.JSC$20191_backChannelTimerId_=null);fCq(e);e.forwardChannelRequestPool_.cancel();e.JSC$20191_forwardChannelTimerId_&&(typeof e.JSC$20191_forwardChannelTimerId_==="number"&&_.wL.clearTimeout(e.JSC$20191_forwardChannelTimerId_),e.JSC$20191_forwardChannelTimerId_=null)};
wR.prototype.getState=function(){return this.state_};
var pkY=function(e){Ny3(e.forwardChannelRequestPool_)||e.JSC$20191_forwardChannelTimerId_||(e.JSC$20191_forwardChannelTimerId_=!0,_.B2(e.JSC$20193_onStartForwardChannelTimer_,e),e.JSC$20191_forwardChannelRetryCount_=0)},Kyf=function(e,z){if(dwv(e.forwardChannelRequestPool_)>=e.forwardChannelRequestPool_.JSC$20182_maxSize_-(e.JSC$20191_forwardChannelTimerId_?1:0))return!1;
if(e.JSC$20191_forwardChannelTimerId_)return e.JSC$20191_channelDebug_.debug("Use the retry request that is already scheduled."),e.JSC$20191_outgoingMaps_=z.JSC$20172_pendingMessages_.concat(e.JSC$20191_outgoingMaps_),!0;if(e.state_==1||e.state_==2||e.JSC$20191_forwardChannelRetryCount_>=(e.JSC$20191_failFast_?0:e.JSC$20191_forwardChannelMaxRetries_))return!1;e.JSC$20191_channelDebug_.debug("Going to retry POST");e.JSC$20191_forwardChannelTimerId_=XkL((0,_.uZ)(e.JSC$20193_onStartForwardChannelTimer_,
e,z),w$L(e,e.JSC$20191_forwardChannelRetryCount_));e.JSC$20191_forwardChannelRetryCount_++;return!0};
wR.prototype.JSC$20193_onStartForwardChannelTimer_=function(e){if(this.JSC$20191_forwardChannelTimerId_)if(this.JSC$20191_forwardChannelTimerId_=null,this.JSC$20191_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!e){this.JSC$20191_channelDebug_.debug("open_()");this.JSC$20191_nextRid_=Math.floor(Math.random()*1E5);e=this.JSC$20191_nextRid_++;var z=new pl(this,this.JSC$20191_channelDebug_,"",e),C=this.JSC$20191_extraHeaders_;this.initHeaders_&&(C?(C=_.de.clone(C),_.de.extend(C,this.initHeaders_)):
C=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(z.JSC$20172_extraHeaders_=C,C=null);var w;if(this.fastHandshake_)a:{for(var K=w=0;K<this.JSC$20191_outgoingMaps_.length;K++){b:{var G=this.JSC$20191_outgoingMaps_[K];if("__data__"in G.map&&(G=G.map.__data__,typeof G==="string")){G=G.length;break b}G=void 0}if(G===void 0)break;w+=G;if(w>4096){w=K;break a}if(w===4096||K===this.JSC$20191_outgoingMaps_.length-1){w=K+1;break a}}w=1E3}else w=1E3;w=oEC(this,z,w);
K=this.JSC$20191_forwardChannelUri_.clone();_.oI(K,"RID",e);_.oI(K,"CVER",22);this.httpSessionIdParam_&&_.oI(K,"X-HTTP-Session-Id",this.httpSessionIdParam_);zVa(this,K);C&&(this.encodeInitMessageHeaders_?w="headers="+_.K0(omW(C))+"&"+w:this.httpHeadersOverwriteParam_&&GKv(K,this.httpHeadersOverwriteParam_,C));s6Z(this.forwardChannelRequestPool_,z);this.blockingHandshake_&&_.oI(K,"TYPE","init");this.fastHandshake_?(_.oI(K,"$req",w),_.oI(K,"SID","null"),z.decodeInitialResponse_=!0,aCo(z,K,null)):aCo(z,
K,w);this.state_=2}}else this.state_==3&&(e?GA5(this,e):this.JSC$20191_outgoingMaps_.length==0?this.JSC$20191_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Ny3(this.forwardChannelRequestPool_)||(GA5(this),this.JSC$20191_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var GA5=function(e,z){var C;z?C=z.JSC$20172_rid_:C=e.JSC$20191_nextRid_++;var w=e.JSC$20191_forwardChannelUri_.clone();_.oI(w,"SID",e.sid_);_.oI(w,"RID",C);_.oI(w,"AID",e.JSC$20191_lastArrayId_);zVa(e,w);e.httpHeadersOverwriteParam_&&e.JSC$20191_extraHeaders_&&GKv(w,e.httpHeadersOverwriteParam_,e.JSC$20191_extraHeaders_);C=new pl(e,e.JSC$20191_channelDebug_,e.sid_,C,e.JSC$20191_forwardChannelRetryCount_+1);e.httpHeadersOverwriteParam_===null&&(C.JSC$20172_extraHeaders_=e.JSC$20191_extraHeaders_);
z&&(e.JSC$20191_outgoingMaps_=z.JSC$20172_pendingMessages_.concat(e.JSC$20191_outgoingMaps_));z=oEC(e,C,1E3);C.setTimeout(Math.round(e.JSC$20191_forwardChannelRequestTimeoutMs_*.5)+Math.round(e.JSC$20191_forwardChannelRequestTimeoutMs_*.5*Math.random()));s6Z(e.forwardChannelRequestPool_,C);aCo(C,w,z)},zVa=function(e,z){e.JSC$20191_extraParams_&&_.de.forEach(e.JSC$20191_extraParams_,function(C,w){_.oI(z,w,C)});
e.handler_&&_.de.forEach({},function(C,w){_.oI(z,w,C)})},oEC=function(e,z,C){C=Math.min(e.JSC$20191_outgoingMaps_.length,C);
var w=e.handler_?(0,_.uZ)(e.handler_.JSC$20197_badMapError,e.handler_,e):null;a:{for(var K=e.JSC$20191_outgoingMaps_,G=-1;;){var X=["count="+C];G==-1?C>0?(G=K[0].JSC$20179_mapId,X.push("ofs="+G)):G=0:X.push("ofs="+G);for(var J=!0,q=0;q<C;q++){var T=K[q].JSC$20179_mapId,Q=K[q].map;T-=G;if(T<0)G=Math.max(0,K[q].JSC$20179_mapId-100),J=!1;else try{T="req"+T+"_"||"";try{var m=Q instanceof Map?Q:Object.entries(Q);for(var a=_.b(m),n=a.next();!n.done;n=a.next()){var H=_.b(n.value),I=H.next().value,L=H.next().value,
h=L;_.gL(L)&&(h=(0,_.c2)(L));X.push(T+I+"="+encodeURIComponent(h))}}catch(E){throw X.push(T+"type="+encodeURIComponent("_badmap")),E;}}catch(E){w&&w(Q)}}if(J){m=X.join("&");break a}}m=void 0}e=e.JSC$20191_outgoingMaps_.splice(0,C);z.JSC$20172_pendingMessages_=e;return m},YZ3=function(e){e.JSC$20191_backChannelRequest_||e.JSC$20191_backChannelTimerId_||(e.JSC$20191_backChannelAttemptId_=1,_.B2(e.JSC$20193_onStartBackChannelTimer_,e),e.JSC$20191_backChannelRetryCount_=0)},uGL=function(e){if(e.JSC$20191_backChannelRequest_||
e.JSC$20191_backChannelTimerId_||e.JSC$20191_backChannelRetryCount_>=3)return!1;
e.JSC$20191_channelDebug_.debug("Going to retry GET");e.JSC$20191_backChannelAttemptId_++;e.JSC$20191_backChannelTimerId_=XkL((0,_.uZ)(e.JSC$20193_onStartBackChannelTimer_,e),w$L(e,e.JSC$20191_backChannelRetryCount_));e.JSC$20191_backChannelRetryCount_++;return!0};
wR.prototype.JSC$20193_onStartBackChannelTimer_=function(){this.JSC$20191_backChannelTimerId_=null;bB$(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$20191_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$20191_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$20191_backChannelRequest_+" "+this.handshakeRttMs_);else{var e=4*this.handshakeRttMs_;this.JSC$20191_channelDebug_.info("BP detection timer enabled: "+e);this.bpDetectionTimerId_=XkL((0,_.uZ)(this.onBpDetectionTimer_,
this),e)}};
wR.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$20191_channelDebug_.info("BP detection timeout reached.");if(this.JSC$20191_backChannelRequest_.JSC$20172_xmlHttp_!=null){var e=this.JSC$20191_backChannelRequest_.JSC$20172_xmlHttp_.getResponseText();e&&this.JSC$20191_channelDebug_.warning("Timer should have been cancelled : "+e)}this.JSC$20191_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;c3(10);SWY(this);bB$(this)}else this.JSC$20191_channelDebug_.warning("Invalid operation.")};
var EVL=function(e){e.bpDetectionTimerId_!=null&&(e.JSC$20191_channelDebug_.debug("Cancel the BP detection timer."),_.wL.clearTimeout(e.bpDetectionTimerId_),e.bpDetectionTimerId_=null)},bB$=function(e){e.JSC$20191_channelDebug_.debug("Creating new HttpRequest");
e.JSC$20191_backChannelRequest_=new pl(e,e.JSC$20191_channelDebug_,e.sid_,"rpc",e.JSC$20191_backChannelAttemptId_);e.httpHeadersOverwriteParam_===null&&(e.JSC$20191_backChannelRequest_.JSC$20172_extraHeaders_=e.JSC$20191_extraHeaders_);e.JSC$20191_backChannelRequest_.JSC$20172_readyStateChangeThrottleMs_=0;var z=e.JSC$20191_backChannelUri_.clone();_.oI(z,"RID","rpc");_.oI(z,"SID",e.sid_);_.oI(z,"AID",e.JSC$20191_lastArrayId_);_.oI(z,"CI",e.enableStreaming_?"0":"1");!e.enableStreaming_&&e.longPollingTimeout_&&
_.oI(z,"TO",e.longPollingTimeout_);_.oI(z,"TYPE","xmlhttp");zVa(e,z);e.httpHeadersOverwriteParam_&&e.JSC$20191_extraHeaders_&&GKv(z,e.httpHeadersOverwriteParam_,e.JSC$20191_extraHeaders_);e.backChannelRequestTimeoutMs_&&e.JSC$20191_backChannelRequest_.setTimeout(e.backChannelRequestTimeoutMs_);var C=e.JSC$20191_backChannelRequest_,w=e.JSC$20191_hostPrefix_;C.JSC$20172_type_=1;C.JSC$20172_baseUri_=_.RK(z.clone());C.JSC$20172_postData_=null;C.decodeChunks_=!0;mwf(C,w);e.JSC$20191_channelDebug_.debug("New Request created")};
wR.prototype.JSC$20193_onBackChannelDead_=function(){this.JSC$20191_deadBackChannelTimerId_!=null&&(this.JSC$20191_deadBackChannelTimerId_=null,SWY(this),uGL(this),c3(19))};
var fCq=function(e){e.JSC$20191_deadBackChannelTimerId_!=null&&(_.wL.clearTimeout(e.JSC$20191_deadBackChannelTimerId_),e.JSC$20191_deadBackChannelTimerId_=null)},LjE=function(e,z){e.JSC$20191_channelDebug_.debug("Request complete");
var C=null;if(e.JSC$20191_backChannelRequest_==z){fCq(e);EVL(e);e.JSC$20191_backChannelRequest_=null;var w=2}else if(VwW(e.forwardChannelRequestPool_,z))C=z.JSC$20172_pendingMessages_,ByC(e.forwardChannelRequestPool_,z),w=1;else return;if(e.state_!=0)if(z.JSC$20172_successful_)w==1?(bx5(z.JSC$20172_postData_?z.JSC$20172_postData_.length:0,Date.now()-z.JSC$20172_requestStartTime_,e.JSC$20191_forwardChannelRetryCount_),pkY(e)):YZ3(e);else{var K=z.JSC$20172_lastStatusCode_,G=z.getLastError();if(G==3||
G==0&&K>0)e.JSC$20191_channelDebug_.debug("Not retrying due to error type"),K>200&&(e.errorResponseStatusCode_=z.JSC$20172_lastStatusCode_);else{e.JSC$20191_channelDebug_.debug(function(){return"Maybe retrying, last error: "+$wo(G,e.errorResponseStatusCode_)});
if(w==1&&Kyf(e,z)||w==2&&uGL(e))return;e.JSC$20191_channelDebug_.debug("Exceeded max number of retries")}C&&C.length>0&&gVY(e.forwardChannelRequestPool_,C);e.JSC$20191_channelDebug_.debug("Error: HTTP request failed");switch(G){case 1:zI(e,5);break;case 4:zI(e,10);break;case 3:zI(e,6);break;default:zI(e,2)}}},w$L=function(e,z){var C=e.JSC$20191_baseRetryDelayMs_+Math.floor(Math.random()*e.JSC$20191_retryDelaySeedMs_);
e.isActive()||(e.JSC$20191_channelDebug_.debug("Inactive channel"),C*=2);return C*z};
wR.prototype.onInput_=function(e,z){for(var C=0;C<e.length;C++){var w=e[C],K=w[0];if(K<=this.JSC$20191_lastArrayId_)this.JSC$20191_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+K+", lastArrayId: "+this.JSC$20191_lastArrayId_);else if(K>this.JSC$20191_lastArrayId_+1&&this.JSC$20191_lastArrayId_>-1&&this.JSC$20191_channelDebug_.warning("Received non-consecutive message with arrayId: "+K+", lastArrayId: "+this.JSC$20191_lastArrayId_),this.JSC$20191_lastArrayId_=K,
w=w[1],this.state_==2)if(w[0]=="c"){this.sid_=w[1];this.JSC$20191_hostPrefix_=w[2];K=w[3];K!=null&&(this.JSC$20193_channelVersion_=K,this.JSC$20191_channelDebug_.info("VER="+this.JSC$20193_channelVersion_));K=w[4];K!=null&&(this.serverVersion_=K,this.JSC$20191_channelDebug_.info("SVER="+this.serverVersion_));w=w[5];w!=null&&typeof w==="number"&&w>0&&(this.backChannelRequestTimeoutMs_=w*=1.5,this.JSC$20191_channelDebug_.info("backChannelRequestTimeoutMs_="+w));if(w=z.JSC$20172_xmlHttp_){var G=hhL(w,
"X-Client-Wire-Protocol");G&&(K=this.forwardChannelRequestPool_,!K.requestPool_&&(_.X4(G,"spdy")||_.X4(G,"quic")||_.X4(G,"h2"))&&(K.JSC$20182_maxSize_=K.maxPoolSizeConfigured_,K.requestPool_=new Set,K.JSC$20182_request_&&(s6Z(K,K.JSC$20182_request_),K.JSC$20182_request_=null)));this.httpSessionIdParam_&&((w=hhL(w,"X-HTTP-Session-Id"))?(this.httpSessionId_=w,_.oI(this.JSC$20191_forwardChannelUri_,this.httpSessionIdParam_,w)):this.JSC$20191_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$20197_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-z.JSC$20172_requestStartTime_,this.JSC$20191_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));w=z;K=Zxo(this,this.JSC$20191_supportsCrossDomainXhrs_?this.JSC$20191_hostPrefix_:null,this.JSC$20191_path_);this.JSC$20191_channelDebug_.debug("GetBackChannelUri: "+K);this.JSC$20191_backChannelUri_=K;w.initialResponseDecoded_?(this.JSC$20191_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
ByC(this.forwardChannelRequestPool_,w),K=w,(G=this.backChannelRequestTimeoutMs_)&&K.setTimeout(G),K.JSC$20172_watchDogTimerId_&&(UwL(K),nVf(K)),this.JSC$20191_backChannelRequest_=w):YZ3(this);this.JSC$20191_outgoingMaps_.length>0&&pkY(this)}else w[0]!="stop"&&w[0]!="close"||zI(this,7);else this.state_==3&&(w[0]=="stop"||w[0]=="close"?w[0]=="stop"?zI(this,7):this.disconnect():w[0]!="noop"&&this.handler_&&this.handler_.JSC$20197_channelHandleArray(w),this.JSC$20191_backChannelRetryCount_=0)}};
var zI=function(e,z){e.JSC$20191_channelDebug_.info("Error code "+z);if(z==2){var C=(0,_.uZ)(e.testNetworkCallback_,e),w=e.networkTestUrl_,K=!w;w=new _.sX(w||"//www.google.com/images/cleardot.gif");_.wL.location&&_.wL.location.protocol=="http"||_.nR(w,"https");_.RK(w);K?j6$(w.toString(),C):yuC(w.toString(),C)}else c3(2);e.onError_(z)};
wR.prototype.testNetworkCallback_=function(e){e?(this.JSC$20191_channelDebug_.info("Successfully pinged google.com"),c3(2)):(this.JSC$20191_channelDebug_.info("Failed to ping google.com"),c3(1))};
wR.prototype.onError_=function(e){this.JSC$20191_channelDebug_.debug("HttpChannel: error - "+e);this.state_=0;this.handler_&&this.handler_.JSC$20197_channelError(e);C23(this);eVE(this)};
var C23=function(e){e.state_=0;e.nonAckedMapsAtChannelClose_=[];if(e.handler_){var z=twW(e.forwardChannelRequestPool_);if(z.length!=0||e.JSC$20191_outgoingMaps_.length!=0)e.JSC$20191_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+z.length+", outgoing: "+e.JSC$20191_outgoingMaps_.length}),_.tk(e.nonAckedMapsAtChannelClose_,z),_.tk(e.nonAckedMapsAtChannelClose_,e.JSC$20191_outgoingMaps_),e.forwardChannelRequestPool_.JSC$20182_pendingMessages_.length=0,_.ig(e.JSC$20191_outgoingMaps_),
e.JSC$20191_outgoingMaps_.length=0;
e.handler_.JSC$20197_channelClosed()}},X$Z=function(e){if(e.state_==0)return e.nonAckedMapsAtChannelClose_;
var z=[];_.tk(z,twW(e.forwardChannelRequestPool_));_.tk(z,e.JSC$20191_outgoingMaps_);return z},Zxo=function(e,z,C){var w=_.Cj(C);
w.JSC$10201_domain_!=""?(z&&_.M_(w,z+"."+w.JSC$10201_domain_),_.rq(w,w.JSC$10201_port_)):(w=_.wL.location,w=icf(w.protocol,z?z+"."+w.hostname:w.hostname,+w.port,C));z=e.httpSessionIdParam_;C=e.httpSessionId_;z&&C&&_.oI(w,z,C);_.oI(w,"VER",e.JSC$20193_channelVersion_);zVa(e,w);return w},MwY=function(e,z,C){if(z&&!e.JSC$20191_supportsCrossDomainXhrs_)throw Error("Vk");
z=e.usesFetchStreams_&&!e.JSC$20191_xmlHttpFactory_?new _.AT(new zgZ({streamBinaryChunks:C})):new _.AT(e.JSC$20191_xmlHttpFactory_);z.JSC$9965_withCredentials_=e.JSC$20191_supportsCrossDomainXhrs_;return z};
wR.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var J5L=function(){};
_.Y=J5L.prototype;_.Y.JSC$20197_channelOpened=function(){};
_.Y.JSC$20197_channelHandleArray=function(){};
_.Y.JSC$20197_channelError=function(){};
_.Y.JSC$20197_channelClosed=function(){};
_.Y.isActive=function(){return!0};
_.Y.JSC$20197_badMapError=function(){};var kAf=function(){},oF=function(e,z){_.N3.call(this);
this.JSC$20200_channel_=new wR(z);this.JSC$20200_url_=e;this.messageUrlParams_=z&&z.messageUrlParams||null;e=z&&z.messageHeaders||null;z&&z.clientProtocolHeaderRequired&&(e?_.de.set(e,"X-Client-Protocol","webchannel"):e=_.de.create("X-Client-Protocol","webchannel"));this.JSC$20200_channel_.JSC$20191_extraHeaders_=e;e=z&&z.initMessageHeaders||null;z&&z.messageContentType&&(e?_.de.set(e,"X-WebChannel-Content-Type",z.messageContentType):e=_.de.create("X-WebChannel-Content-Type",z.messageContentType));
z&&z.clientProfile&&(e?_.de.set(e,"X-WebChannel-Client-Profile",z.clientProfile):e=_.de.create("X-WebChannel-Client-Profile",z.clientProfile));this.JSC$20200_channel_.initHeaders_=e;(e=z&&z.httpHeadersOverwriteParam)&&!_.bg(e)&&(this.JSC$20200_channel_.httpHeadersOverwriteParam_=e);this.supportsCrossDomainXhr_=z&&z.supportsCrossDomainXhr||!1;this.sendRawJson_=z&&z.sendRawJson||!1;(z=z&&z.httpSessionIdParam)&&!_.bg(z)&&(this.JSC$20200_channel_.httpSessionIdParam_=z,_.de.containsKey(this.messageUrlParams_,
z)&&_.de.remove(this.messageUrlParams_,z));this.channelHandler_=new KS(this)};
_.Tk(oF,_.N3);oF.prototype.open=function(){this.JSC$20200_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$20200_channel_.JSC$20191_supportsCrossDomainXhrs_=!0);this.JSC$20200_channel_.connect(this.JSC$20200_url_,this.messageUrlParams_||void 0)};
oF.prototype.close=function(){this.JSC$20200_channel_.disconnect()};
oF.prototype.send=function(e){var z=this.JSC$20200_channel_;if(typeof e==="string"){var C={};C.__data__=e;e=C}else this.sendRawJson_&&(C={},C.__data__=(0,_.c2)(e),e=C);z.JSC$20191_outgoingMaps_.push(new DwE(z.JSC$20191_nextMapId_++,e));z.state_==3&&pkY(z)};
oF.prototype.disposeInternal=function(){this.JSC$20200_channel_.handler_=null;delete this.channelHandler_;this.JSC$20200_channel_.disconnect();delete this.JSC$20200_channel_;oF.superClass_.disposeInternal.call(this)};
var qZv=function(e){eJY.call(this);e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var z=e.__sm__;z?this.data=(this.metadataKey=_.de.getAnyKey(z))?_.de.get(z,this.metadataKey):z:this.data=e};
_.Tk(qZv,eJY);var xC$=function(e){zJL.call(this);this.status=1;this.errorCode=e};
_.Tk(xC$,zJL);var KS=function(e){this.JSC$20207_channel_=e};
_.Tk(KS,J5L);KS.prototype.JSC$20197_channelOpened=function(){this.JSC$20207_channel_.dispatchEvent("w")};
KS.prototype.JSC$20197_channelHandleArray=function(e){this.JSC$20207_channel_.dispatchEvent(new qZv(e))};
KS.prototype.JSC$20197_channelError=function(e){this.JSC$20207_channel_.dispatchEvent(new xC$(e))};
KS.prototype.JSC$20197_channelClosed=function(){this.JSC$20207_channel_.dispatchEvent("x")};
var Tna=function(e,z){this.transportChannel_=e;this.JSC$20210_channel_=z},$CC=function(e){return X$Z(e.JSC$20210_channel_).map(function(z){var C=e.transportChannel_;
z=z.map;"__data__"in z?(z=z.__data__,C=C.sendRawJson_?(0,_.cRX)(z):z):C=z;return C})};
Tna.prototype.commit=function(e){this.JSC$20210_channel_.forwardChannelFlushedCallback_=e};var GI=function(e){lkZ.dispatchEvent(new Q05(lkZ,e))},lkZ=new _.N3,Q05=function(e,z){_.fk.call(this,"statevent",e);
this.stat=z};
_.U(Q05,_.fk);var YF=function(e,z,C,w,K){this.JSC$20215_channel_=e;this.JSC$20215_channelDebug_=z;this.sid_=C;this.JSC$20215_rid_=w;this.JSC$20215_retryId_=K||1;this.timeout_=45E3;this.JSC$20215_eventHandler_=new _.HA(this);this.pollingTimer_=new _.rM;this.pollingTimer_.setInterval(250)};
_.Y=YF.prototype;_.Y.JSC$20217_extraHeaders_=null;_.Y.JSC$20217_successful_=!1;_.Y.JSC$20217_watchDogTimerId_=null;_.Y.JSC$20217_watchDogTimeoutTime_=null;_.Y.JSC$20217_requestStartTime_=null;_.Y.JSC$20217_type_=null;_.Y.JSC$20217_baseUri_=null;_.Y.JSC$20217_requestUri_=null;_.Y.JSC$20217_postData_=null;_.Y.JSC$20217_xmlHttp_=null;_.Y.JSC$20217_xmlHttpChunkStart_=0;_.Y.trident_=null;_.Y.JSC$20217_verb_=null;_.Y.JSC$20217_lastError_=null;_.Y.JSC$20217_lastStatusCode_=-1;_.Y.sendClose_=!0;
_.Y.JSC$20217_cancelled_=!1;_.Y.JSC$20217_readyStateChangeThrottleMs_=0;_.Y.JSC$20217_readyStateChangeThrottle_=null;var mCa=function(e,z){switch(e){case 0:return"Non-200 return code ("+z+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},akf={},nEq={};
YF.prototype.setTimeout=function(e){this.timeout_=e};
var r5$=function(e,z,C){e.JSC$20217_type_=1;e.JSC$20217_baseUri_=_.RK(z.clone());e.JSC$20217_postData_=C;e.decodeChunks_=!0;MNa(e,null)},HBq=function(e,z,C,w,K){e.JSC$20217_type_=1;
e.JSC$20217_baseUri_=_.RK(z.clone());e.JSC$20217_postData_=null;e.decodeChunks_=C;K&&(e.sendClose_=!1);MNa(e,w)},MNa=function(e,z){e.JSC$20217_requestStartTime_=Date.now();
UCv(e);e.JSC$20217_requestUri_=e.JSC$20217_baseUri_.clone();Bqf(e.JSC$20217_requestUri_,"t",e.JSC$20215_retryId_);e.JSC$20217_xmlHttpChunkStart_=0;e.JSC$20217_xmlHttp_=e.JSC$20215_channel_.JSC$20224_createXhrIo(e.JSC$20215_channel_.JSC$20224_shouldUseSecondaryDomains()?z:null);e.JSC$20217_readyStateChangeThrottleMs_>0&&(e.JSC$20217_readyStateChangeThrottle_=new _.lw((0,_.uZ)(e.JSC$20217_xmlHttpHandler_,e,e.JSC$20217_xmlHttp_),e.JSC$20217_readyStateChangeThrottleMs_));e.JSC$20215_eventHandler_.listen(e.JSC$20217_xmlHttp_,
"readystatechange",e.JSC$20217_readyStateChangeHandler_);z=e.JSC$20217_extraHeaders_?_.de.clone(e.JSC$20217_extraHeaders_):{};e.JSC$20217_postData_?(e.JSC$20217_verb_="POST",z["Content-Type"]="application/x-www-form-urlencoded",e.JSC$20217_xmlHttp_.send(e.JSC$20217_requestUri_,e.JSC$20217_verb_,e.JSC$20217_postData_,z)):(e.JSC$20217_verb_="GET",e.sendClose_&&!_.MI&&(z.Connection="close"),e.JSC$20217_xmlHttp_.send(e.JSC$20217_requestUri_,e.JSC$20217_verb_,null,z));e.JSC$20215_channel_.notifyServerReachabilityEvent(1);
z=e.JSC$20215_channelDebug_;var C=e.JSC$20217_postData_;if(C){var w="";C=C.split("&");for(var K=0;K<C.length;K++){var G=C[K].split("=");if(G.length>1){var X=G[0];G=G[1];var J=X.split("_");w=J.length>=2&&J[1]=="type"?w+(X+"="+G+"&"):w+(X+"=redacted&")}}}else w=null;z.info("XMLHTTP REQ ("+e.JSC$20215_rid_+") [attempt "+e.JSC$20215_retryId_+"]: "+e.JSC$20217_verb_+"\n"+e.JSC$20217_requestUri_+"\n"+w)};
YF.prototype.JSC$20217_readyStateChangeHandler_=function(e){e=e.target;var z=this.JSC$20217_readyStateChangeThrottle_;z&&_.ZA(e)==3?(this.JSC$20215_channelDebug_.debug("Throttling readystatechange."),z.fire()):this.JSC$20217_xmlHttpHandler_(e)};
YF.prototype.JSC$20217_xmlHttpHandler_=function(e){try{if(e==this.JSC$20217_xmlHttp_)a:{var z=_.ZA(this.JSC$20217_xmlHttp_),C=this.JSC$20217_xmlHttp_.JSC$9965_lastErrorCode_,w=this.JSC$20217_xmlHttp_.getStatus();if(_.MI&&!_.r4("420+")){if(z<4)break a}else if(z<3||z==3&&!this.JSC$20217_xmlHttp_.getResponseText())break a;this.JSC$20217_cancelled_||z!=4||C==7||(C==8||w<=0?this.JSC$20215_channel_.notifyServerReachabilityEvent(3):this.JSC$20215_channel_.notifyServerReachabilityEvent(2));vEY(this);var K=
this.JSC$20217_xmlHttp_.getStatus();this.JSC$20217_lastStatusCode_=K;var G=this.JSC$20217_xmlHttp_.getResponseText();G||this.JSC$20215_channelDebug_.debug("No response text for uri "+this.JSC$20217_requestUri_+" status "+K);this.JSC$20217_successful_=K==200;this.JSC$20215_channelDebug_.info("XMLHTTP RESP ("+this.JSC$20215_rid_+") [ attempt "+this.JSC$20215_retryId_+"]: "+this.JSC$20217_verb_+"\n"+this.JSC$20217_requestUri_+"\n"+z+" "+K);if(this.JSC$20217_successful_){z==4&&IkZ(this);if(this.decodeChunks_){for(e=
!0;!this.JSC$20217_cancelled_&&this.JSC$20217_xmlHttpChunkStart_<G.length;){var X=Wyo(this,G);if(X==nEq){z==4&&(this.JSC$20217_lastError_=4,GI(15),e=!1);P2v(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,null,"[Incomplete Response]");break}else if(X==akf){this.JSC$20217_lastError_=4;GI(16);P2v(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,G,"[Invalid Chunk]");e=!1;break}else P2v(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,X,null),RV5(this,X)}z==4&&G.length==0&&(this.JSC$20217_lastError_=
1,GI(17),e=!1);this.JSC$20217_successful_=this.JSC$20217_successful_&&e;e||(P2v(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,G,"[Invalid Chunked Response]"),IkZ(this),LyC(this))}else P2v(this.JSC$20215_channelDebug_,this.JSC$20215_rid_,G,null),RV5(this,G);this.JSC$20217_successful_&&!this.JSC$20217_cancelled_&&(z==4?this.JSC$20215_channel_.JSC$20224_onRequestComplete(this):(this.JSC$20217_successful_=!1,UCv(this)))}else K==400&&G.indexOf("Unknown SID")>0?(this.JSC$20217_lastError_=3,GI(13),this.JSC$20215_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$20215_rid_+")")):(this.JSC$20217_lastError_=0,GI(14),this.JSC$20215_channelDebug_.warning("XMLHTTP Bad status "+K+" ("+this.JSC$20215_rid_+")")),IkZ(this),LyC(this)}else this.JSC$20215_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(J){this.JSC$20215_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Wyo=function(e,z){var C=e.JSC$20217_xmlHttpChunkStart_,w=z.indexOf("\n",C);if(w==-1)return nEq;C=Number(z.substring(C,w));if(isNaN(C))return akf;w+=1;if(w+C>z.length)return nEq;z=z.slice(w,w+C);e.JSC$20217_xmlHttpChunkStart_=w+C;return z};
YF.prototype.cancel=function(){this.JSC$20217_cancelled_=!0;IkZ(this)};
var UCv=function(e){e.JSC$20217_watchDogTimeoutTime_=Date.now()+e.timeout_;hVb(e,e.timeout_)},hVb=function(e,z){if(e.JSC$20217_watchDogTimerId_!=null)throw Error("Uk");
e.JSC$20217_watchDogTimerId_=Pd((0,_.uZ)(e.JSC$20217_onWatchDogTimeout_,e),z)},vEY=function(e){e.JSC$20217_watchDogTimerId_&&(_.wL.clearTimeout(e.JSC$20217_watchDogTimerId_),e.JSC$20217_watchDogTimerId_=null)};
YF.prototype.JSC$20217_onWatchDogTimeout_=function(){this.JSC$20217_watchDogTimerId_=null;var e=Date.now();e-this.JSC$20217_watchDogTimeoutTime_>=0?(this.JSC$20215_channelDebug_.info("TIMEOUT: "+this.JSC$20217_requestUri_),this.JSC$20217_type_!=2&&this.JSC$20215_channel_.notifyServerReachabilityEvent(3),IkZ(this),this.JSC$20217_lastError_=2,GI(18),LyC(this)):(this.JSC$20215_channelDebug_.warning("WatchDog timer called too early"),hVb(this,this.JSC$20217_watchDogTimeoutTime_-e))};
var LyC=function(e){e.JSC$20215_channel_.JSC$20224_isClosed()||e.JSC$20217_cancelled_||e.JSC$20215_channel_.JSC$20224_onRequestComplete(e)},IkZ=function(e){vEY(e);
_.XU(e.JSC$20217_readyStateChangeThrottle_);e.JSC$20217_readyStateChangeThrottle_=null;e.pollingTimer_.stop();e.JSC$20215_eventHandler_.removeAll();if(e.JSC$20217_xmlHttp_){var z=e.JSC$20217_xmlHttp_;e.JSC$20217_xmlHttp_=null;z.abort();z.dispose()}e.trident_&&(e.trident_=null)};
YF.prototype.getLastError=function(){return this.JSC$20217_lastError_};
var RV5=function(e,z){try{e.JSC$20215_channel_.JSC$20224_onRequestData(e,z),e.JSC$20215_channel_.notifyServerReachabilityEvent(4)}catch(C){}};var P2v=function(e,z,C,w){var K=e.info;a:if(C&&C!="y2f%"){try{var G=JSON.parse(C);if(G)for(var X=0;X<G.length;X++)if(Array.isArray(G[X])){var J=G[X];if(!(J.length<2)){var q=J[1];if(Array.isArray(q)&&!(q.length<1)){var T=q[0];if(T!="noop"&&T!="stop")for(var Q=1;Q<q.length;Q++)q[Q]=""}}}var m=(0,_.c2)(G);break a}catch(a){e.debug("Exception parsing expected JS array - probably was not JS");m=C;break a}m=void 0}else m=C;K.call(e,"XMLHTTP TEXT ("+z+"): "+m+(w?" "+w:""))};
Rf.prototype.debug=function(e){this.info(e)};
Rf.prototype.info=function(){};
Rf.prototype.warning=function(){};var OBW=function(e,z){this.JSC$20222_channel_=e;this.JSC$20222_channelDebug_=z;this.JSC$20222_parser_=new phv};
_.Y=OBW.prototype;_.Y.JSC$20224_extraHeaders_=null;_.Y.JSC$20224_request_=null;_.Y.receivedIntermediateResult_=!1;_.Y.JSC$20224_path_=null;_.Y.state_=null;_.Y.JSC$20224_lastStatusCode_=-1;_.Y.JSC$20224_hostPrefix_=null;_.Y.blockedPrefix_=null;
_.Y.connect=function(e){this.JSC$20224_path_=e;e=EEl(this.JSC$20222_channel_,this.JSC$20224_path_);GI(3);Date.now();var z=this.JSC$20222_channel_.firstTestResults_;z!=null?(this.JSC$20224_hostPrefix_=z[0],(this.blockedPrefix_=z[1])?(this.state_=1,FyY(this)):(this.state_=2,VNl(this))):(Bqf(e,"MODE","init"),this.JSC$20224_request_=new YF(this,this.JSC$20222_channelDebug_),this.JSC$20224_request_.JSC$20217_extraHeaders_=this.JSC$20224_extraHeaders_,HBq(this.JSC$20224_request_,e,!1,null,!0),this.state_=
0)};
var FyY=function(e){var z=fkq(e.JSC$20222_channel_,e.blockedPrefix_,"/mail/images/cleardot.gif");_.RK(z);CHY(z.toString(),5E3,(0,_.uZ)(e.checkBlockedCallback_,e),3,2E3);e.notifyServerReachabilityEvent(1)};
OBW.prototype.checkBlockedCallback_=function(e){if(e)this.state_=2,VNl(this);else{GI(4);var z=this.JSC$20222_channel_;z.JSC$20225_channelDebug_.debug("Test Connection Blocked");z.JSC$20229_lastStatusCode_=z.connectionTest_.JSC$20224_lastStatusCode_;bu(z,9)}e&&this.notifyServerReachabilityEvent(2)};
var VNl=function(e){e.JSC$20222_channelDebug_.debug("TestConnection: starting stage 2");var z=e.JSC$20222_channel_.secondTestResults_;z!=null?(e.JSC$20222_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+z?"Buffered":"Unbuffered"),GI(5),z?(GI(11),SZq(e.JSC$20222_channel_,e,!1)):(GI(12),SZq(e.JSC$20222_channel_,e,!0))):(e.JSC$20224_request_=new YF(e,e.JSC$20222_channelDebug_),e.JSC$20224_request_.JSC$20217_extraHeaders_=e.JSC$20224_extraHeaders_,z=uqv(e.JSC$20222_channel_,
e.JSC$20224_hostPrefix_,e.JSC$20224_path_),GI(5),Bqf(z,"TYPE","xmlhttp"),HBq(e.JSC$20224_request_,z,!1,e.JSC$20224_hostPrefix_,!1))};
_.Y=OBW.prototype;_.Y.JSC$20224_createXhrIo=function(e){return this.JSC$20222_channel_.JSC$20224_createXhrIo(e)};
_.Y.abort=function(){this.JSC$20224_request_&&(this.JSC$20224_request_.cancel(),this.JSC$20224_request_=null);this.JSC$20224_lastStatusCode_=-1};
_.Y.JSC$20224_isClosed=function(){return!1};
_.Y.JSC$20224_onRequestData=function(e,z){this.JSC$20224_lastStatusCode_=e.JSC$20217_lastStatusCode_;if(this.state_==0)if(this.JSC$20222_channelDebug_.debug("TestConnection: Got data for stage 1"),z){try{var C=this.JSC$20222_parser_.parse(z)}catch(w){dCb(this.JSC$20222_channel_,this);return}this.JSC$20224_hostPrefix_=C[0];this.blockedPrefix_=C[1]}else this.JSC$20222_channelDebug_.debug("TestConnection: Null responseText"),dCb(this.JSC$20222_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(GI(7),Date.now()):z=="11111"?(GI(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$20224_lastStatusCode_=200,this.JSC$20224_request_.cancel(),this.JSC$20222_channelDebug_.debug("Test connection succeeded; using streaming connection"),GI(12),SZq(this.JSC$20222_channel_,this,!0)):(GI(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.Y.JSC$20224_onRequestComplete=function(){this.JSC$20224_lastStatusCode_=this.JSC$20224_request_.JSC$20217_lastStatusCode_;this.JSC$20224_request_.JSC$20217_successful_?this.state_==0?(this.JSC$20222_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,FyY(this)):(this.state_=2,VNl(this))):this.state_==2&&(this.JSC$20222_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$20222_channelDebug_.debug("Test connection succeeded; using streaming connection"),
GI(12),SZq(this.JSC$20222_channel_,this,!0)):(this.JSC$20222_channelDebug_.debug("Test connection failed; not using streaming"),GI(11),SZq(this.JSC$20222_channel_,this,!1))):(this.JSC$20222_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?GI(9):this.state_==2&&GI(10),dCb(this.JSC$20222_channel_,this,this.JSC$20224_request_.getLastError()))};
_.Y.JSC$20224_shouldUseSecondaryDomains=function(){return this.JSC$20222_channel_.JSC$20224_shouldUseSecondaryDomains()};
_.Y.isActive=function(){return this.JSC$20222_channel_.isActive()};
_.Y.notifyServerReachabilityEvent=function(e){this.JSC$20222_channel_.notifyServerReachabilityEvent(e)};var Xa=function(e,z,C){this.state_=1;this.JSC$20225_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$20225_channelDebug_=new Rf;this.JSC$20225_parser_=new phv;this.firstTestResults_=e||null;this.secondTestResults_=z!=null?z:null;this.asyncTest_=C||!1},DCY=function(e,z){this.JSC$20227_mapId=e;
this.map=z;this.context=null};
_.Y=Xa.prototype;_.Y.JSC$20229_extraHeaders_=null;_.Y.JSC$20229_extraParams_=null;_.Y.forwardChannelRequest_=null;_.Y.JSC$20229_backChannelRequest_=null;_.Y.JSC$20229_path_=null;_.Y.JSC$20229_forwardChannelUri_=null;_.Y.JSC$20229_backChannelUri_=null;_.Y.JSC$20229_hostPrefix_=null;_.Y.JSC$20229_nextRid_=0;_.Y.JSC$20229_nextMapId_=0;_.Y.handler_=null;_.Y.JSC$20229_forwardChannelTimerId_=null;_.Y.JSC$20229_backChannelTimerId_=null;_.Y.JSC$20229_deadBackChannelTimerId_=null;_.Y.connectionTest_=null;
_.Y.useChunked_=null;_.Y.JSC$20229_lastArrayId_=-1;_.Y.JSC$20229_lastPostResponseArrayId_=-1;_.Y.JSC$20229_lastStatusCode_=-1;_.Y.JSC$20229_forwardChannelRetryCount_=0;_.Y.JSC$20229_backChannelRetryCount_=0;_.Y.JSC$20229_channelVersion_=8;var iB5={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},NnC=function(e,z,C,w){_.fk.call(this,"timingevent",e);this.size=z;this.rtt=C;this.retries=w};
_.Tk(NnC,_.fk);var s0f=function(e){_.fk.call(this,"serverreachability",e)};
_.Tk(s0f,_.fk);Xa.prototype.connect=function(e,z,C,w,K){this.JSC$20225_channelDebug_.debug("connect()");GI(0);this.JSC$20229_path_=z;this.JSC$20229_extraParams_=C||{};w&&K!==void 0&&(this.JSC$20229_extraParams_.OSID=w,this.JSC$20229_extraParams_.OAID=K);this.asyncTest_?(Pd((0,_.uZ)(this.connectTest_,this,e),100),BnZ(this)):this.connectTest_(e)};
Xa.prototype.disconnect=function(){this.JSC$20225_channelDebug_.debug("disconnect()");tNo(this);if(this.state_==3){var e=this.JSC$20229_nextRid_++,z=this.JSC$20229_forwardChannelUri_.clone();_.oI(z,"SID",this.sid_);_.oI(z,"RID",e);_.oI(z,"TYPE","terminate");gEq(this,z);e=new YF(this,this.JSC$20225_channelDebug_,this.sid_,e);e.JSC$20217_type_=2;e.JSC$20217_baseUri_=_.RK(z.clone());(new Image).src=e.JSC$20217_baseUri_.toString();e.JSC$20217_requestStartTime_=Date.now();UCv(e)}j0$(this)};
Xa.prototype.connectTest_=function(e){this.JSC$20225_channelDebug_.debug("connectTest_()");this.connectionTest_=new OBW(this,this.JSC$20225_channelDebug_);this.connectionTest_.JSC$20224_extraHeaders_=this.JSC$20229_extraHeaders_;this.connectionTest_.JSC$20222_parser_=this.JSC$20225_parser_;this.connectionTest_.connect(e)};
var BnZ=function(e){e.JSC$20225_channelDebug_.debug("connectChannel_()");e.JSC$20229_ensureInState_(1,0);e.JSC$20229_forwardChannelUri_=EEl(e,e.JSC$20229_path_);y5v(e)},tNo=function(e){e.connectionTest_&&(e.connectionTest_.abort(),e.connectionTest_=null);
e.JSC$20229_backChannelRequest_&&(e.JSC$20229_backChannelRequest_.cancel(),e.JSC$20229_backChannelRequest_=null);e.JSC$20229_backChannelTimerId_&&(_.wL.clearTimeout(e.JSC$20229_backChannelTimerId_),e.JSC$20229_backChannelTimerId_=null);c5l(e);e.forwardChannelRequest_&&(e.forwardChannelRequest_.cancel(),e.forwardChannelRequest_=null);e.JSC$20229_forwardChannelTimerId_&&(_.wL.clearTimeout(e.JSC$20229_forwardChannelTimerId_),e.JSC$20229_forwardChannelTimerId_=null)},A5$=function(e,z){if(e.state_==0)throw Error("Xk");
e.JSC$20225_outgoingMaps_.length==1E3&&e.JSC$20225_parser_.stringify(z);e.JSC$20225_outgoingMaps_.push(new DCY(e.JSC$20229_nextMapId_++,z));e.state_!=2&&e.state_!=3||y5v(e)};
Xa.prototype.JSC$20224_isClosed=function(){return this.state_==0};
Xa.prototype.getState=function(){return this.state_};
var y5v=function(e){e.forwardChannelRequest_||e.JSC$20229_forwardChannelTimerId_||(e.JSC$20229_forwardChannelTimerId_=Pd((0,_.uZ)(e.JSC$20229_onStartForwardChannelTimer_,e),0),e.JSC$20229_forwardChannelRetryCount_=0)};
Xa.prototype.JSC$20229_onStartForwardChannelTimer_=function(e){this.JSC$20229_forwardChannelTimerId_=null;ZBo(this,e)};
var ZBo=function(e,z){e.JSC$20225_channelDebug_.debug("startForwardChannel_");if(e.state_==1){if(!z){e.JSC$20225_channelDebug_.debug("open_()");e.JSC$20229_nextRid_=Math.floor(Math.random()*1E5);z=e.JSC$20229_nextRid_++;var C=new YF(e,e.JSC$20225_channelDebug_,"",z);C.JSC$20217_extraHeaders_=e.JSC$20229_extraHeaders_;var w=p$E(e),K=e.JSC$20229_forwardChannelUri_.clone();_.oI(K,"RID",z);_.oI(K,"CVER","1");gEq(e,K);r5$(C,K,w);e.forwardChannelRequest_=C;e.state_=2}}else e.state_==3&&(z?eBv(e,z):e.JSC$20225_outgoingMaps_.length==
0?e.JSC$20225_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):e.forwardChannelRequest_||(eBv(e),e.JSC$20225_channelDebug_.debug("startForwardChannel_ finished, sent request")))},eBv=function(e,z){if(z)if(e.JSC$20229_channelVersion_>6){e.JSC$20225_outgoingMaps_=e.pendingMaps_.concat(e.JSC$20225_outgoingMaps_);
e.pendingMaps_.length=0;var C=e.JSC$20229_nextRid_-1;z=p$E(e)}else C=z.JSC$20215_rid_,z=z.JSC$20217_postData_;else C=e.JSC$20229_nextRid_++,z=p$E(e);var w=e.JSC$20229_forwardChannelUri_.clone();_.oI(w,"SID",e.sid_);_.oI(w,"RID",C);_.oI(w,"AID",e.JSC$20229_lastArrayId_);gEq(e,w);C=new YF(e,e.JSC$20225_channelDebug_,e.sid_,C,e.JSC$20229_forwardChannelRetryCount_+1);C.JSC$20217_extraHeaders_=e.JSC$20229_extraHeaders_;C.setTimeout(1E4+Math.round(1E4*Math.random()));e.forwardChannelRequest_=C;r5$(C,w,
z)},gEq=function(e,z){e.handler_&&(e=e.handler_.JSC$20236_getAdditionalParams())&&_.de.forEach(e,function(C,w){_.oI(z,w,C)})},p$E=function(e){var z=Math.min(e.JSC$20225_outgoingMaps_.length,1E3),C=["count="+z];
if(e.JSC$20229_channelVersion_>6&&z>0){var w=e.JSC$20225_outgoingMaps_[0].JSC$20227_mapId;C.push("ofs="+w)}else w=0;for(var K={},G=0;G<z;K={mapId$jscomp$3:void 0},G++){K.mapId$jscomp$3=e.JSC$20225_outgoingMaps_[G].JSC$20227_mapId;var X=e.JSC$20225_outgoingMaps_[G].map;K.mapId$jscomp$3=e.JSC$20229_channelVersion_<=6?G:K.mapId$jscomp$3-w;try{_.de.forEach(X,function(J){return function(q,T){C.push("req"+J.mapId$jscomp$3+"_"+T+"="+encodeURIComponent(q))}}(K))}catch(J){C.push("req"+K.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}e.pendingMaps_=e.pendingMaps_.concat(e.JSC$20225_outgoingMaps_.splice(0,z));
return C.join("&")},zBv=function(e){e.JSC$20229_backChannelRequest_||e.JSC$20229_backChannelTimerId_||(e.JSC$20229_backChannelAttemptId_=1,e.JSC$20229_backChannelTimerId_=Pd((0,_.uZ)(e.JSC$20229_onStartBackChannelTimer_,e),0),e.JSC$20229_backChannelRetryCount_=0)},wUW=function(e){if(e.JSC$20229_backChannelRequest_||e.JSC$20229_backChannelTimerId_||e.JSC$20229_backChannelRetryCount_>=3)return!1;
e.JSC$20225_channelDebug_.debug("Going to retry GET");e.JSC$20229_backChannelAttemptId_++;e.JSC$20229_backChannelTimerId_=Pd((0,_.uZ)(e.JSC$20229_onStartBackChannelTimer_,e),CTq(e,e.JSC$20229_backChannelRetryCount_));e.JSC$20229_backChannelRetryCount_++;return!0};
Xa.prototype.JSC$20229_onStartBackChannelTimer_=function(){this.JSC$20229_backChannelTimerId_=null;this.JSC$20225_channelDebug_.debug("Creating new HttpRequest");this.JSC$20229_backChannelRequest_=new YF(this,this.JSC$20225_channelDebug_,this.sid_,"rpc",this.JSC$20229_backChannelAttemptId_);this.JSC$20229_backChannelRequest_.JSC$20217_extraHeaders_=this.JSC$20229_extraHeaders_;this.JSC$20229_backChannelRequest_.JSC$20217_readyStateChangeThrottleMs_=0;var e=this.JSC$20229_backChannelUri_.clone();_.oI(e,
"RID","rpc");_.oI(e,"SID",this.sid_);_.oI(e,"CI",this.useChunked_?"0":"1");_.oI(e,"AID",this.JSC$20229_lastArrayId_);gEq(this,e);_.oI(e,"TYPE","xmlhttp");HBq(this.JSC$20229_backChannelRequest_,e,!0,this.JSC$20229_hostPrefix_,!1);this.JSC$20225_channelDebug_.debug("New Request created")};
var SZq=function(e,z,C){e.JSC$20225_channelDebug_.debug("Test Connection Finished");e.useChunked_=e.secondTestResults_==null?C:!e.secondTestResults_;e.JSC$20229_lastStatusCode_=z.JSC$20224_lastStatusCode_;e.asyncTest_||BnZ(e)},dCb=function(e,z){e.JSC$20225_channelDebug_.debug("Test Connection Failed");
e.JSC$20229_lastStatusCode_=z.JSC$20224_lastStatusCode_;bu(e,2)};
Xa.prototype.JSC$20224_onRequestData=function(e,z){if(this.state_!=0&&(this.JSC$20229_backChannelRequest_==e||this.forwardChannelRequest_==e))if(this.JSC$20229_lastStatusCode_=e.JSC$20217_lastStatusCode_,this.forwardChannelRequest_==e&&this.state_==3)if(this.JSC$20229_channelVersion_>7){try{var C=this.JSC$20225_parser_.parse(z)}catch(w){C=null}if(Array.isArray(C)&&C.length==3)if(z=C,z[0]==0)a:if(this.JSC$20225_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$20229_backChannelTimerId_)this.JSC$20225_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$20229_backChannelRequest_)if(this.JSC$20229_backChannelRequest_.JSC$20217_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$20217_requestStartTime_)c5l(this),this.JSC$20229_backChannelRequest_.cancel(),this.JSC$20229_backChannelRequest_=null;else break a;else this.JSC$20225_channelDebug_.warning("We do not have a BackChannel established");wUW(this);GI(19)}else this.JSC$20229_lastPostResponseArrayId_=z[1],e=this.JSC$20229_lastPostResponseArrayId_-this.JSC$20229_lastArrayId_,0<
e&&(z=z[2],this.JSC$20225_channelDebug_.debug(z+" bytes (in "+e+" arrays) are outstanding on the BackChannel"),z<37500&&this.useChunked_&&this.JSC$20229_backChannelRetryCount_==0&&!this.JSC$20229_deadBackChannelTimerId_&&(this.JSC$20229_deadBackChannelTimerId_=Pd((0,_.uZ)(this.JSC$20229_onBackChannelDead_,this),6E3)));else this.JSC$20225_channelDebug_.debug("Bad POST response data returned"),bu(this,11)}else z!="y2f%"&&(this.JSC$20225_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
bu(this,11));else this.JSC$20229_backChannelRequest_==e&&c5l(this),_.bg(z)||(e=this.JSC$20225_parser_.parse(z),this.onInput_(e))};
Xa.prototype.JSC$20229_onBackChannelDead_=function(){this.JSC$20229_deadBackChannelTimerId_!=null&&(this.JSC$20229_deadBackChannelTimerId_=null,this.JSC$20229_backChannelRequest_.cancel(),this.JSC$20229_backChannelRequest_=null,wUW(this),GI(20))};
var c5l=function(e){e.JSC$20229_deadBackChannelTimerId_!=null&&(_.wL.clearTimeout(e.JSC$20229_deadBackChannelTimerId_),e.JSC$20229_deadBackChannelTimerId_=null)};
Xa.prototype.JSC$20224_onRequestComplete=function(e){this.JSC$20225_channelDebug_.debug("Request complete");if(this.JSC$20229_backChannelRequest_==e){c5l(this);this.JSC$20229_backChannelRequest_=null;var z=2}else if(this.forwardChannelRequest_==e)this.forwardChannelRequest_=null,z=1;else return;this.JSC$20229_lastStatusCode_=e.JSC$20217_lastStatusCode_;if(this.state_!=0)if(e.JSC$20217_successful_)if(z==1){z=e.JSC$20217_postData_?e.JSC$20217_postData_.length:0;e=Date.now()-e.JSC$20217_requestStartTime_;
var C=lkZ;C.dispatchEvent(new NnC(C,z,e,this.JSC$20229_forwardChannelRetryCount_));y5v(this);this.handler_&&this.handler_.JSC$20236_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else zBv(this);else{C=e.getLastError();if(C==3||C==7||C==0&&this.JSC$20229_lastStatusCode_>0)this.JSC$20225_channelDebug_.debug("Not retrying due to error type");else{this.JSC$20225_channelDebug_.debug("Maybe retrying, last error: "+mCa(C,this.JSC$20229_lastStatusCode_));var w;if(w=z==1)this.forwardChannelRequest_||
this.JSC$20229_forwardChannelTimerId_||this.state_==1||this.JSC$20229_forwardChannelRetryCount_>=2?w=!1:(this.JSC$20225_channelDebug_.debug("Going to retry POST"),this.JSC$20229_forwardChannelTimerId_=Pd((0,_.uZ)(this.JSC$20229_onStartForwardChannelTimer_,this,e),CTq(this,this.JSC$20229_forwardChannelRetryCount_)),this.JSC$20229_forwardChannelRetryCount_++,w=!0);if(w||z==2&&wUW(this))return;this.JSC$20225_channelDebug_.debug("Exceeded max number of retries")}this.JSC$20225_channelDebug_.debug("Error: HTTP request failed");
switch(C){case 1:bu(this,5);break;case 4:bu(this,10);break;case 3:bu(this,6);break;case 7:bu(this,12);break;default:bu(this,2)}}};
var CTq=function(e,z){var C=5E3+Math.floor(Math.random()*1E4);e.isActive()||(e.JSC$20225_channelDebug_.debug("Inactive channel"),C*=2);return C*z};
Xa.prototype.onInput_=function(e){for(var z=0;z<e.length;z++){var C=e[z];this.JSC$20229_lastArrayId_=C[0];C=C[1];this.state_==2?C[0]=="c"?(this.sid_=C[1],this.JSC$20229_hostPrefix_=C[2],C=C[3],C!=null?this.JSC$20229_channelVersion_=C:this.JSC$20229_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$20236_channelOpened(),this.JSC$20229_backChannelUri_=uqv(this,this.JSC$20229_hostPrefix_,this.JSC$20229_path_),zBv(this)):C[0]=="stop"&&bu(this,7):this.state_==3&&(C[0]=="stop"?bu(this,7):
C[0]!="noop"&&this.handler_&&this.handler_.JSC$20236_channelHandleArray(C),this.JSC$20229_backChannelRetryCount_=0)}};
Xa.prototype.JSC$20229_ensureInState_=function(e){if(!_.Sh(arguments,this.state_))throw Error("Yk`"+this.state_);};
var bu=function(e,z){e.JSC$20225_channelDebug_.info("Error code "+z);if(z==2||z==9){var C=null;e.handler_&&(C=null);var w=(0,_.uZ)(e.testGoogleComCallback_,e);C||(C=new _.sX("//www.google.com/images/cleardot.gif"),_.RK(C));zib(C.toString(),1E4,w)}else GI(2);e.onError_(z)};
Xa.prototype.testGoogleComCallback_=function(e){e?(this.JSC$20225_channelDebug_.info("Successfully pinged google.com"),GI(2)):(this.JSC$20225_channelDebug_.info("Failed to ping google.com"),GI(1),this.onError_(8))};
Xa.prototype.onError_=function(e){this.JSC$20225_channelDebug_.debug("HttpChannel: error - "+e);this.state_=0;this.handler_&&this.handler_.JSC$20236_channelError(e);j0$(this);tNo(this)};
var j0$=function(e){e.state_=0;e.JSC$20229_lastStatusCode_=-1;if(e.handler_)if(e.pendingMaps_.length==0&&e.JSC$20225_outgoingMaps_.length==0)e.handler_.JSC$20236_channelClosed();else{e.JSC$20225_channelDebug_.debug("Number of undelivered maps, pending: "+e.pendingMaps_.length+", outgoing: "+e.JSC$20225_outgoingMaps_.length);var z=_.ig(e.pendingMaps_),C=_.ig(e.JSC$20225_outgoingMaps_);e.pendingMaps_.length=0;e.JSC$20225_outgoingMaps_.length=0;e.handler_.JSC$20236_channelClosed(z,C)}},EEl=function(e,
z){z=fkq(e,null,z);
e.JSC$20225_channelDebug_.debug("GetForwardChannelUri: "+z);return z},uqv=function(e,z,C){z=fkq(e,e.JSC$20224_shouldUseSecondaryDomains()?z:null,C);
e.JSC$20225_channelDebug_.debug("GetBackChannelUri: "+z);return z},fkq=function(e,z,C){var w=_.Cj(C);
if(w.JSC$10201_domain_!="")z&&_.M_(w,z+"."+w.JSC$10201_domain_),_.rq(w,w.JSC$10201_port_);else{var K=window.location;w=icf(K.protocol,z?z+"."+K.hostname:K.hostname,+K.port,C)}e.JSC$20229_extraParams_&&_.de.forEach(e.JSC$20229_extraParams_,function(G,X){_.oI(w,X,G)});
_.oI(w,"VER",e.JSC$20229_channelVersion_);gEq(e,w);return w};
Xa.prototype.JSC$20224_createXhrIo=function(e){if(e)throw Error("Vk");e=new _.AT;e.JSC$9965_withCredentials_=!1;return e};
Xa.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Xa.prototype.notifyServerReachabilityEvent=function(e){var z=lkZ;z.dispatchEvent(new s0f(z,e))};
Xa.prototype.JSC$20224_shouldUseSecondaryDomains=function(){return!1};
new jJl;var KlC=function(){};
_.Y=KlC.prototype;_.Y.JSC$20236_channelOpened=function(){};
_.Y.JSC$20236_channelHandleArray=function(){};
_.Y.JSC$20236_channelSuccess=function(){};
_.Y.JSC$20236_channelError=function(){};
_.Y.JSC$20236_channelClosed=function(){};
_.Y.JSC$20236_getAdditionalParams=function(){return{}};
_.Y.isActive=function(){return!0};var oXY=function(e){e.front_.length===0&&(e.front_=e.back_,e.front_.reverse(),e.back_=[])};
_.Y=KUb.prototype;_.Y.enqueue=function(e){this.back_.push(e)};
_.Y.peek=function(){oXY(this);return _.hk(this.front_)};
_.Y.getCount=function(){return this.front_.length+this.back_.length};
_.Y.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.Y.clear=function(){this.front_=[];this.back_=[]};
_.Y.contains=function(e){return _.Sh(this.front_,e)||_.Sh(this.back_,e)};
_.Y.remove=function(e){var z=this.front_;var C=Array.prototype.lastIndexOf.call(z,e,z.length-1);C>=0?(_.hsE(z,C),z=!0):z=!1;return z||_.D8(this.back_,e)};
_.Y.getValues=function(){for(var e=[],z=this.front_.length-1;z>=0;--z)e.push(this.front_[z]);z=this.back_.length;for(var C=0;C<z;++C)e.push(this.back_[C]);return e};var Jy=function(e){this.JSC$20240_map_=new _.fr;this.size=0;e&&this.addAll(e)},G$o=function(e){var z=typeof e;
return z=="object"&&e||z=="function"?"o"+_.c1(e):z.charAt(0)+e};
_.Y=Jy.prototype;_.Y.getCount=function(){return this.JSC$20240_map_.size};
_.Y.add=function(e){this.JSC$20240_map_.set(G$o(e),e);this.size=this.JSC$20240_map_.size};
_.Y.addAll=function(e){e=_.aK(e);for(var z=e.length,C=0;C<z;C++)this.add(e[C]);this.size=this.JSC$20240_map_.size};
_.Y.removeAll=function(e){e=_.aK(e);for(var z=e.length,C=0;C<z;C++)this.remove(e[C]);this.size=this.JSC$20240_map_.size};
_.Y.delete=function(e){e=this.JSC$20240_map_.remove(G$o(e));this.size=this.JSC$20240_map_.size;return e};
_.Y.remove=function(e){return this.delete(e)};
_.Y.clear=function(){this.JSC$20240_map_.clear();this.size=0};
_.Y.isEmpty=function(){return this.JSC$20240_map_.size===0};
_.Y.has=function(e){return this.JSC$20240_map_.containsKey(G$o(e))};
_.Y.contains=function(e){return this.JSC$20240_map_.containsKey(G$o(e))};
_.Y.getValues=function(){return this.JSC$20240_map_.getValues()};
_.Y.values=function(){return this.JSC$20240_map_.values()};
_.Y.clone=function(){return new Jy(this)};
_.Y.equals=function(e){return this.getCount()==dn5(e)&&Yjl(this,e)};
var Yjl=function(e,z){var C=dn5(z);if(e.getCount()>C)return!1;!(z instanceof Jy)&&C>5&&(z=new Jy(z));return DnW(e,function(w){var K=z;return K.contains&&typeof K.contains=="function"?K.contains(w):K.containsValue&&typeof K.containsValue=="function"?K.containsValue(w):_.B1(K)||typeof K==="string"?_.Sh(K,w):_.de.containsValue(K,w)})};
Jy.prototype.__iterator__=function(){return this.JSC$20240_map_.__iterator__(!1)};
Jy.prototype[Symbol.iterator]=function(){return this.values()};var bTq={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(e){return(this._clampValue(e)-this.min)/(this.max-this.min)},
_clampValue:function(e){return Math.min(this.max,Math.max(this.min,this._calcStep(e)))},
_calcStep:function(e){e=parseFloat(e);if(!this.step)return e;e=Math.round((e-this.min)/this.step);return this.step<1?e/(1/this.step)+this.min:e*this.step+this.min},
_validateValue:function(){var e=this._clampValue(this.value);this.value=this.oldValue=isNaN(e)?this.oldValue:e;return this.value!==e},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var XU5;var JBv;_.hK({_template:function(){if(JBv!==void 0)return JBv;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;XU5===void 0&&(XU5=document.createElement("template"));var w=XU5;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return JBv=e},
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(){_.T0(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(e){e.keyCode===27&&(e.preventDefault(),this.close())},
_track:function(e){if(!this.persistent&&!this.disableSwipe)switch(e.preventDefault(),e.detail.state){case "start":this._trackStart(e);break;case "track":this._trackMove(e);break;case "end":this._trackEnd(e)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var e=this.$.contentContainer.getBoundingClientRect();this._savedWidth=e.width;this._translateOffset=this.position==="left"?e.left:e.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(e){this._trackDetails&&(this._translateDrawer(e.detail.dx+this._translateOffset),this._trackDetails.push({dx:e.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(e){if(this._trackDetails){var z=e.detail.dx+this._translateOffset,C=this.getWidth();z=this.position==="left"?z>=0||z<=-C:z<=0||z>=C;if(!z){var w=this._trackDetails;this._trackDetails=null;this._flingDrawer(e,w);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}C/=2;e.detail.dx<-C?this.opened=this.position==="right":e.detail.dx>C&&(this.opened=this.position==="left");z?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(e,z){for(var C=Date.now(),w=C-100,K,G=0,X=z.length-1;G<=X;){var J=G+X>>1,q=z[J];q.timeStamp>=w?(K=q,X=J-1):G=J+1}return K?(e.detail.dx-K.dx)/(C-K.timeStamp||1):0},
_flingDrawer:function(e,z){z=this._calculateVelocity(e,z);if(!(Math.abs(z)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;e=e.detail.dx+this._translateOffset;var C=this.getWidth(),w=this.position==="left",K=z>0;K?(z=Math.max(z,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(z=Math.min(z,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");z=this._FLING_INITIAL_SLOPE*(!K&&w?-(e+C):K&&!w?C-e:-e)/z;this._styleTransitionDuration(z);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,z)}},
_styleTransitionDuration:function(e){this.style.transitionDuration=e+"ms";this.$.contentContainer.style.transitionDuration=e+"ms";this.$.scrim.style.transitionDuration=e+"ms"},
_styleTransitionTimingFunction:function(e){this.$.contentContainer.style.transitionTimingFunction=e;this.$.scrim.style.transitionTimingFunction=e},
_translateDrawer:function(e){var z=this.getWidth();this.position==="left"?(e=Math.max(-z,Math.min(e,0)),this.$.scrim.style.opacity=1+e/z):(e=Math.max(0,Math.min(e,z)),this.$.scrim.style.opacity=1-e/z);this.translate3d(e+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var e=this._drawerState;e===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;e!==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=""),e!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var e=_.mb(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"])');e.length>0?(this._firstTabStop=e[0],this._lastTabStop=e[e.length-1]):
this._lastTabStop=this._firstTabStop=null;(e=this.getAttribute("tabindex"))&&parseInt(e,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(e){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||e.keyCode!==9||(e.shiftKey?this._firstTabStop&&_.mb(e).localTarget===this._firstTabStop&&(e.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.mb(e).localTarget===this._lastTabStop&&(e.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(e,z){this.toggleClass("visible",e&&!z,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 k$L;var qjY;_.hK({_template:function(){if(qjY!==void 0)return qjY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;k$L===void 0&&(k$L=document.createElement("template"));var w=k$L;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return qjY=e},
is:"tp-yt-paper-progress",behaviors:[bTq],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(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},
_transformProgress:function(e,z){e.style.transform=e.style.webkitTransform="scaleX("+z/100+")"},
_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},
_progressChanged:function(e,z,C,w,K){e=this._clampValue(e);z=this._clampValue(z);var G=this._calcRatio(e)*100,X=this._calcRatio(z)*100;this._setSecondaryRatio(G);this._transformProgress(this.$.secondaryProgress,G);this._transformProgress(this.$.primaryProgress,X);this.secondaryProgress=e;K?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",z);this.setAttribute("aria-valuemin",C);this.setAttribute("aria-valuemax",w)},
_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},
_hideSecondaryProgress:function(e){return e===0}});var xdY;var TiZ;var $dZ=function(){};
_.Y=$dZ.prototype;_.Y.registered=function(){};
_.Y.addOwnKeyBinding=function(){};
_.Y.removeOwnKeyBindings=function(){};
_.Y.keyboardEventMatchesKeys=function(){};
_.Y._collectKeyBindings=function(){};
_.Y._prepKeyBindings=function(){};
_.Y._addKeyBinding=function(){};
_.Y._resetKeyEventListeners=function(){};
_.Y._listenKeyEventListeners=function(){};
_.Y._unlistenKeyEventListeners=function(){};
_.Y._onKeyBindingEvent=function(){};
_.Y._triggerKeyHandler=function(){};
_.Y._tapHandler=function(){};
_.Y._focusChanged=function(){};
_.Y._detectKeyboardFocus=function(){};
_.Y._userActivate=function(){};
_.Y._upHandler=function(){};
_.Y._spaceKeyDownHandler=function(){};
_.Y._spaceKeyUpHandler=function(){};
_.Y._asyncClick=function(){};
_.Y._pressedChanged=function(){};
_.Y._ariaActiveAttributeChanged=function(){};
_.Y._activeChanged=function(){};
_.Y._controlStateChanged=function(){};
_.Y._changedButtonState=function(){};
_.Y._focusBlurHandler=function(){};
_.Y._disabledChanged=function(){};
_.Y._changedControlState=function(){};
_.Y._buttonStateChanged=function(){};
_.Y._downHandler=function(){};
_.Y.ensureRipple=function(){};
_.Y.getRipple=function(){};
_.Y.hasRipple=function(){};
_.Y._noinkChanged=function(){};
_.Y._calcRatio=function(){};
_.Y._clampValue=function(){};
_.Y._calcStep=function(){};
_.Y._validateValue=function(){};
_.Y._update=function(){};
_.Y._setImmediateValue=function(){};
_.Y._setExpand=function(){};
_.Y._setDragging=function(){};
_.Y._setTransiting=function(){};
_.Y._setMarkers=function(){};
_.Y._setPressed=function(){};
_.Y._setPointerDown=function(){};
_.Y._setReceivedFocusFromKeyboard=function(){};
_.Y._setFocused=function(){};
_.Y._setRatio=function(){};
$dZ=_.hK({_template:function(){if(TiZ!==void 0)return TiZ;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;xdY===void 0&&(xdY=document.createElement("template"));var w=xdY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return TiZ=e},
is:"tp-yt-paper-slider",behaviors:[_.cv,_.eO,_.lAg,bTq],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.AH(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(e,z,C){this.setAttribute("aria-valuemin",z);this.setAttribute("aria-valuemax",C);this.setAttribute("aria-valuenow",e);this._positionKnob(this._calcRatio(e)*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(e){this._setImmediateValue(this._calcStep(this._calcKnobPosition(e)));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(e){return(this.max-this.min)*e/100+this.min},
_onTrack:function(e){e.stopPropagation();switch(e.detail.state){case "start":this._trackStart(e);break;case "track":this._trackX(e);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(e){this.dragging||this._trackStart(e);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,e.detail.dx*(this._isRTL?-1:1)));e=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(e);e=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(e+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var e=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;e.transform=e.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(e){this._expandKnob();e.preventDefault();this.focus()},
_bartrack:function(e){this._allowBarEvent(e)&&this._onTrack(e)},
_barclick:function(e){this._w=this.$.sliderBar.offsetWidth;var z=this.$.sliderBar.getBoundingClientRect();z=(e.detail.x-z.left)/this._w*100;this._isRTL&&(z=100-z);var C=this.ratio;this._setTransiting(!0);this._positionKnob(z);C===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
e.preventDefault();this.focus()},
_bardown:function(e){this._allowBarEvent(e)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(e))},
_knobTransitionEnd:function(e){e.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(e,z,C,w){w||this._setMarkers([]);z=Math.round((C-z)/this.step);z>e&&(z=e);if(z<0||!isFinite(z))z=0;this._setMarkers(Array(z))},
_mergeClasses:function(e){return Object.keys(e).filter(function(z){return e[z]}).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(e){return!this.ignoreBarTouch||e.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(e){this._isRTL?this._incrementKey(e):this._decrementKey(e)},
_rightKey:function(e){this._isRTL?this._decrementKey(e):this._incrementKey(e)},
_incrementKey:function(e){this.disabled||(e.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),e.preventDefault())},
_decrementKey:function(e){this.disabled||(e.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),e.preventDefault())},
_changeValue:function(e){this.value=e.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(e){e.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.$3o._createRipple.call(this)},
_focusedChanged:function(e){e&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=e?"":"none",this._ripple.holdDown=e)}});var l5E;var Qwa;var kF=null,mdq=function(){};
_.Y=mdq.prototype;_.Y.fit=function(){};
_.Y._discoverInfo=function(){};
_.Y.resetFit=function(){};
_.Y.refit=function(){};
_.Y.position=function(){};
_.Y.constrain=function(){};
_.Y._sizeDimension=function(){};
_.Y.__sizeDimension=function(){};
_.Y.center=function(){};
_.Y.__getNormalizedRect=function(){};
_.Y.__getOffscreenArea=function(){};
_.Y.__getPosition=function(){};
_.Y.notifyResize=function(){};
_.Y.assignParentResizable=function(){};
_.Y.stopResizeNotificationsFor=function(){};
_.Y._subscribeIronResize=function(){};
_.Y._unsubscribeIronResize=function(){};
_.Y.resizerShouldNotify=function(){};
_.Y._onDescendantIronResize=function(){};
_.Y._fireResize=function(){};
_.Y._onIronRequestResizeNotifications=function(){};
_.Y._parentResizableChanged=function(){};
_.Y._notifyDescendant=function(){};
_.Y._requestResizeNotifications=function(){};
_.Y._findParent=function(){};
_.Y.toggle=function(){};
_.Y.open=function(){};
_.Y.close=function(){};
_.Y.cancel=function(){};
_.Y.invalidateTabbables=function(){};
_.Y._ensureSetup=function(){};
_.Y._canceledChanged=function(){};
_.Y._withBackdropChanged=function(){};
_.Y._prepareRenderOpened=function(){};
_.Y._finishRenderOpened=function(){};
_.Y._finishRenderClosed=function(){};
_.Y._preparePositioning=function(){};
_.Y._finishPositioning=function(){};
_.Y._applyFocus=function(){};
_.Y._onCaptureClick=function(){};
_.Y._onCaptureFocus=function(){};
_.Y._onCaptureEsc=function(){};
_.Y._onCaptureTab=function(){};
_.Y._onIronResize=function(){};
_.Y._onNodesChange=function(){};
_.Y.__ensureFirstLastFocusables=function(){};
_.Y.__openedChanged=function(){};
_.Y.__deraf=function(){};
_.Y.__updateScrollObservers=function(){};
_.Y.__addScrollListeners=function(){};
_.Y.__removeScrollListeners=function(){};
_.Y.__isValidScrollAction=function(){};
_.Y.__onCaptureScroll=function(){};
_.Y.__saveScrollPosition=function(){};
_.Y.__restoreScrollPosition=function(){};
_.Y._setCanceled=function(){};
mdq=_.hK({_template:function(){if(Qwa!==void 0)return Qwa;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;l5E===void 0&&(l5E=document.createElement("template"));var w=l5E;C.call(z,w.content.cloneNode(!0),e.content.firstChild);return Qwa=e},
is:"tp-yt-paper-toast",behaviors:[_.MB],properties:{fitInto:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number,value:3E3},text:{type:String,value:""},label:{type:String,value:"",observer:"_onLabelChanged"},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0},noIronAnnounce:{type:Boolean,value:!1},announceLabelUpdates:{type:Boolean,value:!1}},listeners:{transitionend:"__onTransitionEnd"},
get visible(){_.cm._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.lK.requestAvailability()},
show:function(e){typeof e=="string"&&(e={text:e});for(var z in e)z.indexOf("_")===0?_.cm._warn('The property "'+z+'" is private and was not set.'):z in this?this[z]=e[z]:_.cm._warn('The property "'+z+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(e){e&&e.target===this&&e.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(kF&&kF!==this&&kF.close(),kF=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):kF===this&&(kF=null);_.nA._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(e){this.positionTarget=e},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var a5f=new _.nN("disablePersonalizationAction");var Tql=new _.nN("showDmaConsentFlowCommand");var $_W=new _.nN("showMmgNoticeCommand");var nXb=new _.nN("saveConsentAction");var MG5=function(e){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.u$(e)};
_.U(MG5,_.X2);var rBf=_.zX4(MG5);var HTl=new _.nN("updateTopbarAvatarAction");var Udb=new _.nN("channelHandleValidationResultRenderer");var vXo=new _.nN("generateHandleFromNameResultRenderer");var I5Z=new _.nN("channelHandleInputRenderer");var Wlv=new _.nN("copyLinkRenderer");var PT$=new _.nN("timedCommand");var RBL=new _.nN("clearCookieAction");var LlZ=new _.nN("getMultiPageMenuAction");var hB5=new _.nN("addToGuideSectionAction"),OTL=new _.nN("removeFromGuideSectionAction");var EXY=new _.nN("updateNotificationsUnseenCountAction");var Fl$=new _.nN("resetChannelUnreadCountCommand");var VGY=new _.nN("resetSubscriptionsUnreadDotCommand");var f5$=new _.nN("selectLanguageCommand");var WEa=new _.nN("sendFeedbackAction");var SjE=new _.nN("uploadImageToScottyCommand");var ukY=new _.nN("registerPromoCommand");var dd5=new _.nN("setPushNotificationsEnabledCommand");var Dd5=new _.nN("desktopTopbarRenderer");var iT$=new _.nN("surveyFollowUpRenderer");var Ni5=new _.nN("handlesClaimingRadioOptionRenderer");var swa=new _.nN("hotkeyDialogRenderer");var Bif=new _.nN("modifyReportFormCommand");var tGv=new _.nN("accountLinkCommand");var gXE=new _.nN("accountUnlinkCommand");var jwo=new _.nN("logAccountLinkingEventCommand");var nl3=new _.nN("guideCollapsibleEntryRenderer");var yBo=new _.nN("guideDownloadsEntryRenderer");var agZ=new _.nN("guideEntryRenderer");var cBa=new _.nN("getLocationCommand");var ABL=new _.nN("locationCollectionCommand");var ZTE=new _.nN("storiesItemViewModel");var pUo=new _.nN("addToRemoteQueueAction");var eRl=new _.nN("insertInRemoteQueueAction");var zRZ=new _.nN("removeFromRemoteQueueAction");var COo=new _.nN("notificationRenderer");var ATl=new _.nN("localWatchHistoryCommand");var wp3=new _.nN("pdgBuyFlowHeaderRenderer");var K9f=new _.nN("pdgColorSliderRenderer");var ovv=new _.nN("pdgCommentOptionRenderer");var Gha=new _.nN("pdgCommentPreviewRenderer");var YDl=new _.nN("superVodSelectableItemButtonRenderer");var b9Z=new _.nN("switchButtonRenderer");var XpY=new _.nN("upsellDialogRenderer");var J_Z=new _.nN("feedbackQuestionRenderer"),kh5=new _.nN("feedbackOptionRenderer");var qD5=new _.nN("sponsorshipsTierRenderer"),xNv=new _.nN("sponsorshipsPromotionChannelRenderer");var TH3=new _.nN("simpleSurveyMessageRenderer");var hlC=new _.nN("invokeInstrumentManagerAction");var $No=new _.nN("logYpcFlowDismissCommand");var lN$=new _.nN("logYpcFlowStartCommand");var Q$Z=new _.nN("unlimitedCreateFamilyEndpoint");var mNf=new _.nN("iconBadgeRenderer");var pTY=new _.nN("collaborativePlaylistVisibilityValidationRule");var aNl=function(e){_.fk.call(this,"channelMessage");this.message=e};
_.U(aNl,_.fk);var nvZ=function(e){_.fk.call(this,"channelError");this.error=e};
_.U(nvZ,_.fk);var MeE={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},r_o={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},H9b={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},UNY={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},q53={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var qW=function(e){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 _.fr;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;e&&(this.id=e.id||e.name,this.name=e.name,this.clientName=e.clientName?e.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=e.app,this.type=e.type||"REMOTE_CONTROL",this.username=e.user||"",this.avatar=e.userAvatarUri||"",this.obfuscatedGaiaId=e.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=e.ownerObfuscatedGaiaId||"",this.castUserId=e.castUserId||"",this.theme=e.theme||"u",xOC(this,e.capabilities||""),TCf(this,
e.compatibleSenderThemes||""),$Ol(this,e.experiments||""),this.remoteControllerUrl=e.remoteControllerUrl||"",this.localChannelEncryptionKey=e.localChannelEncryptionKey||"",this.deviceContext=e.deviceContext,this.brand=e.brand||"",this.model=e.model||"",this.year=e.year||0,this.os=e.os||"",this.osVersion=e.osVersion||"",this.chipset=e.chipset||"",this.mdxDialServerType=e.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=e.pairingType||"unknown",e=e.deviceInfo)&&(e=JSON.parse(e),this.brand=
e.brand||"",this.model=e.model||"",this.year=e.year||0,this.os=e.os||"",this.osVersion=e.osVersion||"",this.chipset=e.chipset||"",this.clientName=e.clientName?e.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=e.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
qW.prototype.copy=function(){var e={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&&(e.brand=this.brand);
this.model&&(e.model=this.model);this.year&&(e.year=this.year);this.os&&(e.os=this.os);this.osVersion&&(e.osVersion=this.osVersion);this.chipset&&(e.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(e.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(e.mdxDialServerType=this.mdxDialServerType);e=new qW(e);e.connected=this.connected;e.remoteControllerUrl=this.remoteControllerUrl;e.localChannelEncryptionKey=this.localChannelEncryptionKey;e.deviceContext=
this.deviceContext;e.castUserId=this.castUserId;return e};
qW.prototype.equals=function(e){return e?this.id==e.id:!1};
var xOC=function(e,z){e.capabilities.clear();_.Q8(z.split(","),_.xk(_.de.contains,MeE)).forEach(function(C){e.capabilities.add(C)})},TCf=function(e,z){e.compatibleSenderThemes.clear();
_.Q8(z.split(","),_.xk(_.de.contains,r_o)).forEach(function(C){e.compatibleSenderThemes.add(C)})},$Ol=function(e,z){e.experiments.clear();
z.split(",").forEach(function(C){e.experiments.add(C)})};_.Tk(GOL,_.Sn);_.Y=GOL.prototype;_.Y.JSC$20276_onTick_=function(){this.JSC$20274_interval_=Math.min(3E5,this.JSC$20274_interval_*2);this.JSC$20276_listener_();this.nextTickTime_&&this.start()};
_.Y.start=function(){var e=this.JSC$20274_interval_+15E3*Math.random(),z=this.delay_;z.isActive()||z.start(e);this.nextTickTime_=Date.now()+e};
_.Y.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.Y.isActive=function(){return this.delay_.isActive()};
_.Y.reset=function(){this.delay_.stop();this.JSC$20274_interval_=5E3};_.Tk(L6,KlC);_.Y=L6.prototype;_.Y.subscribe=function(e,z,C){return this.pubsub_.subscribe(e,z,C)};
_.Y.unsubscribe=function(e,z,C){return this.pubsub_.unsubscribe(e,z,C)};
_.Y.unsubscribeByKey=function(e){return this.pubsub_.unsubscribeByKey(e)};
_.Y.publish=function(e,z){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.Y.dispose=function(){this.JSC$20277_disposed_||(this.JSC$20277_disposed_=!0,_.XU(this.pubsub_),this.disconnect(),_.XU(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20277_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.oS({})})};
_.Y.isDisposed=function(){return this.JSC$20277_disposed_};
_.Y.connect=function(e,z,C){var w=this,K,G,X,J;return _.k(function(q){if(q.nextAddress==1)return _.Rv(q,2),w.useAsyncBrowserChannelHandler_?q.yield(w.connectPromise_,2):q.jumpTo(2);_.PZ(q);if(w.JSC$20277_disposed_||w.JSC$20277_channel_&&w.JSC$20277_channel_.getState()==2&&!w.isInitialReconnectTimer_)return q.return();w.sCookie_="";w.isInitialReconnectTimer_||w.reconnectTimer_.stop();w.connectionParams_=e||null;w.connectUi_=z||0;K=w.JSC$20277_pathPrefix_+"/test";G=w.JSC$20277_pathPrefix_+"/bind";X=
new Xa(C?C.firstTestResults:null,C?C.secondTestResults:null,w.enableAsyncTest_);if(J=w.JSC$20277_channel_)J.handler_=null;X.handler_=w;w.JSC$20277_channel_=X;if(w.useAsyncBrowserChannelHandler_)return w.connectPromise_=l9a(w).then(function(){return QBf(w,K,G,J,C)}),q.return(w.connectPromise_.then(function(){w.connectPromise_=_.oS()}));
QBf(w,K,G,J,C);return _.hn(q,0)})};
var QBf=function(e,z,C,w,K){mOv(e);if(e.JSC$20277_channel_){var G=_.j5("ID_TOKEN"),X=e.JSC$20277_channel_.JSC$20229_extraHeaders_||{};G?X["x-youtube-identity-token"]=G:delete X["x-youtube-identity-token"];e.JSC$20277_channel_.JSC$20229_extraHeaders_=X}a9f(e);w?(w.getState(),e.JSC$20277_channel_.connect(z,C,e.defaultQueryParams_,w.sid_,w.JSC$20229_lastArrayId_)):K?e.JSC$20277_channel_.connect(z,C,e.defaultQueryParams_,K.sessionId,K.arrayId):e.JSC$20277_channel_.connect(z,C,e.defaultQueryParams_);e.isInitialReconnectTimer_&&
!e.reconnectTimer_.isActive()&&e.reconnectTimer_.start()};
L6.prototype.disconnect=function(e){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.oS())}finally{this.disconnectUi_=e||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),mOv(this),this.JSC$20277_channel_&&(this.JSC$20277_channel_.getState()==3&&ZBo(this.JSC$20277_channel_),this.JSC$20277_channel_.disconnect()),this.disconnectUi_=0}};
L6.prototype.sendMessage=function(e,z){var C=this,w;return _.k(function(K){switch(K.nextAddress){case 1:_.Rv(K,2);if(!C.useAsyncBrowserChannelHandler_){K.jumpTo(2);break}return K.yield(C.connectPromise_,2);case 2:_.PZ(K);if(C.JSC$20277_disposed_)return K.return();w={_sc:e};z&&_.de.extend(w,z);if(C.reconnectTimer_.isActive()||(C.JSC$20277_channel_?C.JSC$20277_channel_.getState():0)==2){C.JSC$20277_pendingMessages_.push(w);K.jumpTo(6);break}if(!C.isChannelOpened()){K.jumpTo(6);break}_.Rv(K,8);if(!C.useAsyncBrowserChannelHandler_||
nA$(C,e)){K.jumpTo(8);break}return K.yield(l9a(C),8);case 8:_.PZ(K,0,0,1);C.isChannelOpened()&&(nA$(C,e)||a9f(C),mOv(C),A5$(C.JSC$20277_channel_,w));_.hn(K,6,1);break;case 6:_.hn(K,0)}})};
var nA$=function(e,z){return e.enableMdxAuthForConnectionOnly_?!0:e.disableMdxAuthForAdMessages_?Object.values(H9b).includes(z):e.disableMdxAuthForNonPlaybackMessages_?!Object.values(UNY).includes(z):e.disableMdxAuthForShortsMessages_?Object.values(q53).includes(z):!1};
L6.prototype.JSC$20236_channelOpened=function(){this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.XU(this.reconnectTimer_),this.reconnectTimer_=new GOL(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20277_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)MZ3(this);else{var e=this.JSC$20277_pendingMessages_;this.JSC$20277_pendingMessages_=[];var z=e.length;a9f(this);raE(this,
e,z);HQq(this)}else HQq(this)};
var MZ3=function(e){var z,C;_.k(function(w){if(w.nextAddress==1)return _.Rv(w,2),w.yield(l9a(e),2);_.PZ(w);z=e.JSC$20277_pendingMessages_;e.JSC$20277_pendingMessages_=[];C=z.length;raE(e,z,C);HQq(e);return _.hn(w,0)})},raE=function(e,z,C){for(var w=0;w<C;++w)A5$(e.JSC$20277_channel_,z[w]);
HQq(e)},HQq=function(e){e.publish("handlerOpened");
e.JSC$20277_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.Y=L6.prototype;_.Y.JSC$20236_channelError=function(e){var z=e==2&&this.JSC$20277_channel_.JSC$20229_lastStatusCode_==401;e==4||z||this.reconnectTimer_.start();this.publish("handlerError",e,z);z=Object.keys(iB5).find(function(C){return iB5[C]===e});
this.JSC$20277_channelErrorCounter.increment("BROWSER_CHANNEL",z!=null?z:"UNKNOWN")};
_.Y.JSC$20236_channelClosed=function(e,z){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(z)for(var C=z.length,w=0;w<C;++w){var K=z[w].map;K&&this.JSC$20277_pendingMessages_.push(K)}this.JSC$20277_channelClosedCounter.increment("BROWSER_CHANNEL");e&&this.pendingMapsOnClosedCounter.JSC$10101_streamzService.JSC$9956_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",e.length);z&&this.undeliveredMapsOnClosedCounter.JSC$10104_streamzService.JSC$9956_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
z.length)};
_.Y.JSC$20236_channelSuccess=function(e,z){z!=null&&e!=null&&this.channelMessageSentCounter.increment()};
_.Y.JSC$20236_getAdditionalParams=function(){var e={v:2};this.sCookie_&&(e.gsessionid=this.sCookie_);this.connectUi_!=0&&(e.ui=""+this.connectUi_);this.disconnectUi_!=0&&(e.ui=""+this.disconnectUi_);this.connectionParams_&&_.de.extend(e,this.connectionParams_);return e};
_.Y.JSC$20236_channelHandleArray=function(e){e[0]=="S"?this.sCookie_=e[1]:e[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20277_channel_.disconnect()):this.publish("handlerMessage",new o3L(e[0],e[1]));this.JSC$20277_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.Y.isChannelOpened=function(){return!!this.JSC$20277_channel_&&this.JSC$20277_channel_.getState()==3};
var mOv=function(e){if(e.JSC$20277_channel_){var z=e.JSC$20277_getXsrfToken_(),C=e.JSC$20277_channel_.JSC$20229_extraHeaders_||{};z?C["x-youtube-lounge-xsrf-token"]=z:delete C["x-youtube-lounge-xsrf-token"];e.JSC$20277_channel_.JSC$20229_extraHeaders_=C}},l9a=function(e){if(e.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.oS();
if(!e.enableCachedUpdateAuthorizationHeader_)return UOC(e);e.updateAuthorizationHeaderPromise_===null&&(e.updateAuthorizationHeaderPromise_=UOC(e));return e.updateAuthorizationHeaderPromise_},UOC=function(e){return _.gB(e.getAuthorizationHeader_().then(function(z){vAo(e,z)}).thenCatch(function(){}),function(){e.updateAuthorizationHeaderPromise_=null})},vAo=function(e,z){if(e.JSC$20277_channel_){var C=e.JSC$20277_channel_.JSC$20229_extraHeaders_||{};
z&&Object.keys(z).length>0?C=Object.assign({},C,z):delete C.Authorization;e.JSC$20277_channel_.JSC$20229_extraHeaders_=C}},a9f=function(e){e.getAuthorizationHeaderSync_&&!e.useAsyncBrowserChannelHandler_&&vAo(e,e.getAuthorizationHeaderSync_())};
_.Y=L6.prototype;_.Y.setLoungeToken=function(e){(this.defaultQueryParams_.loungeIdToken=e)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20277_channel_){var z=this.JSC$20277_channel_.JSC$20229_extraHeaders_||{};e?z["X-YouTube-LoungeId-Token"]=e:delete z["X-YouTube-LoungeId-Token"];this.JSC$20277_channel_.JSC$20229_extraHeaders_=z}};
_.Y.getDeviceId=function(){return this.defaultQueryParams_.id};
_.Y.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.Y.reconnect=function(){var e=this.reconnectTimer_;e.delay_.fire();e.start()};
_.Y.safeReconnect_=function(){var e=this.JSC$20277_channel_,z=0;e.JSC$20229_backChannelRequest_&&z++;e.forwardChannelRequest_&&z++;z==0&&this.connect(this.connectionParams_,this.connectUi_)};var F_=function(e,z){var C=e.basePath;e.supportCors&&(C=e.scheme+"://"+e.domain+e.port+e.basePath);return _.XF(C+z,{})};
ThC.prototype.sendRequest=function(e,z,C,w,K,G,X){e={format:G?"RAW":"JSON",method:e,context:this,timeout:5E3,withCredentials:!!X,onSuccess:_.xk(this.JSC$20283_onSuccess_,w,!G),onError:_.xk(this.onError_,K),onTimeout:_.xk(this.JSC$20283_onTimeout_,K)};C&&(e.postParams=C,e.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.RX(z,e)};
ThC.prototype.JSC$20283_onSuccess_=function(e,z,C,w){z?e(w):e({text:C.responseText})};
ThC.prototype.onError_=function(e,z){e(Error("Zk`"+z.status))};
ThC.prototype.JSC$20283_onTimeout_=function(e){e(Error("$k"))};var mZL=function(e,z){return!!z&&(e.id==z||e.uuid==z)},I9Z=function(e){return{name:e.name,
screenId:e.id,loungeToken:e.token,dialId:e.uuid,screenIdType:e.idType,screenIdSecret:e.secret}},WYY=function(e){return new h9(e)},PJW=function(e){return Array.isArray(e)?_.i4(e,WYY):[]},ndW=function(e){if(!e)return"null";
var z=e.token?".."+e.token.slice(-6):"-",C=e.uuid?".."+e.uuid.slice(-6):"-",w=e.secret?".."+e.secret.slice(-6):"-";return'{name:"'+e.name+'",id:'+e.id.substr(0,6)+"..,token:"+(z+",uuid:"+C+",idType:"+e.idType+",secret:")+(w+"}")},jnf=function(e){return Array.isArray(e)?"["+_.i4(e,ndW).join(",")+"]":"null"};var v3C="",E0=null;var Vo5=function(e,z){_.N3.call(this);var C=this;this.handler=e();this.handler.subscribe("handlerOpened",this.JSC$20290_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(w,K){C.onError(K)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=z};
_.U(Vo5,_.N3);_.Y=Vo5.prototype;_.Y.connect=function(e,z,C){this.handler.connect(e,z,C)};
_.Y.disconnect=function(e){this.handler.disconnect(e)};
_.Y.reconnect=function(){this.handler.reconnect()};
_.Y.getDeviceId=function(){return this.handler.getDeviceId()};
_.Y.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.Y.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.Y.JSC$20290_onOpened=function(){this.dispatchEvent("channelOpened");var e=this.handler,z=this.currentScreenId;_.WJ("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!e.JSC$20277_channel_.useChunked_,sessionId:e.JSC$20277_channel_.sid_,arrayId:e.JSC$20277_channel_.JSC$20229_lastArrayId_});_.WJ("yt-remote-session-screen-id",z);e=ar$();z=n3Z();_.Sh(e,z)||e.push(z);UZb(e);HMv()};
_.Y.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Y.onMessage=function(e){this.dispatchEvent(new aNl(e))};
_.Y.onError=function(e){this.dispatchEvent(new nvZ(e?1:0))};
_.Y.sendMessage=function(e,z){this.handler.sendMessage(e,z)};
_.Y.setLoungeToken=function(e){this.handler.setLoungeToken(e)};
_.Y.dispose=function(){this.handler.dispose()};var FUo=function(e,z,C){var w=this;C=C===void 0?function(){return""}:C;
var K=K===void 0?new kAf:K;var G=G===void 0?new _.hJ:G;this.pathPrefix=e;this.defaultQueryParams=z;this.getXsrfToken=C;this.JSC$20293_pubsub=G;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new GOL(function(){var X;((X=w.channel)==null?void 0:dwv((new Tna(X,X.JSC$20200_channel_)).JSC$20210_channel_.forwardChannelRequestPool_))===0&&w.connect(w.connectionParams,w.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20293_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20293_channelOpenedCounter=new YQo;this.JSC$20293_channelClosedCounter=new bMf;this.JSC$20293_channelMessageReceivedCounter=new J8o;this.JSC$20293_channelErrorCounter=new kOa};
FUo.prototype.connect=function(e,z){e=e===void 0?{}:e;z=z===void 0?0:z;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=e,this.connectUi=z,RFW(this),(e=_.j5("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=e: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 oF(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,LYZ(this))};
var LYZ=function(e){_.W9(e.channel,"w",function(){e.channelState=3;e.reconnectTimer.reset();e.connectionParams=null;e.connectUi=0;for(var z=_.b(e.nonAckedMessagesOnChannelClosed),C=z.next();!C.done;C=z.next())C=C.value,e.channel&&e.channel.send(C);e.nonAckedMessagesOnChannelClosed=[];e.publish("webChannelOpened");e.JSC$20293_channelOpenedCounter.increment("WEB_CHANNEL")});
_.W9(e.channel,"x",function(){e.channelState=0;e.reconnectTimer.isActive()||e.publish("webChannelClosed");var z,C=(z=e.channel)==null?void 0:$CC(new Tna(z,z.JSC$20200_channel_));C&&(e.nonAckedMessagesOnChannelClosed=[].concat(_.s_(C)));e.JSC$20293_channelClosedCounter.increment("WEB_CHANNEL")});
_.W9(e.channel,"z",function(z){var C=z.data;C[0]==="gracefulReconnect"?(e.reconnectTimer.start(),e.channel&&e.channel.close()):e.publish("webChannelMessage",new o3L(C[0],C[1]));e.lastStatusCode=z.statusCode;e.JSC$20293_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.W9(e.channel,"y",function(){e.lastStatusCode===401||e.reconnectTimer.start();e.publish("webChannelError");e.JSC$20293_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.Y=FUo.prototype;_.Y.disconnect=function(e){this.disconnectUi=e===void 0?0:e;this.reconnectTimer.stop();RFW(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.Y.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.Y.reconnect=function(){var e=this.reconnectTimer;e.delay_.fire();e.start()};
_.Y.sendMessage=function(e,z){this.channel&&(RFW(this),e=Object.assign({},{_sc:e},z),this.channel.send(e))};
_.Y.setLoungeToken=function(e){e||this.reconnectTimer.stop();e?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=e:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var RFW=function(e){var z=e.getXsrfToken();z?e.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=z:delete e.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.Y=FUo.prototype;_.Y.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.Y.publish=function(e){return this.JSC$20293_pubsub.publish.apply(this.JSC$20293_pubsub,[e].concat(_.s_(_.yL.apply(1,arguments))))};
_.Y.subscribe=function(e,z,C){return this.JSC$20293_pubsub.subscribe(e,z,C)};
_.Y.unsubscribe=function(e,z,C){return this.JSC$20293_pubsub.unsubscribe(e,z,C)};
_.Y.unsubscribeByKey=function(e){return this.JSC$20293_pubsub.unsubscribeByKey(e)};
_.Y.dispose=function(){this.JSC$20293_disposed||(this.JSC$20293_disposed=!0,_.XU(this.JSC$20293_pubsub),this.disconnect(),_.XU(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.Y.isDisposed=function(){return this.JSC$20293_disposed};var E3v=function(e){_.N3.call(this);this.webChannelService=e();this.webChannelService.subscribe("webChannelOpened",this.JSC$20301_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.U(E3v,_.N3);_.Y=E3v.prototype;_.Y.connect=function(e,z){this.webChannelService.connect(e,z)};
_.Y.disconnect=function(e){this.webChannelService.disconnect(e)};
_.Y.reconnect=function(){this.webChannelService.reconnect()};
_.Y.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.Y.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.Y.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.Y.JSC$20301_onOpened=function(){this.dispatchEvent("channelOpened")};
_.Y.onClosed=function(){this.dispatchEvent("channelClosed")};
_.Y.onMessage=function(e){this.dispatchEvent(new aNl(e))};
_.Y.onError=function(){this.dispatchEvent(new nvZ(this.webChannelService.lastStatusCode===401?1:0))};
_.Y.sendMessage=function(e,z){this.webChannelService.sendMessage(e,z)};
_.Y.setLoungeToken=function(e){this.webChannelService.setLoungeToken(e)};
_.Y.dispose=function(){this.webChannelService.dispose()};var g3E=Date.now(),V0=null,BhY=Array(50),snb=-1,tol=!1;_.Tk(ux,_.X_);ux.prototype.getScreens=function(){return this.screens};
ux.prototype.contains=function(e){return!!QnY(this.screens,e)};
ux.prototype.get=function(e){return e?O0(this.screens,e):null};
var hFo=function(e,z){var C=e.get(z.uuid)||e.get(z.id);if(C)return e=C.name,C.id=z.id||C.id,C.name=z.name,C.token=z.token,C.uuid=z.uuid||C.uuid,C.name!=e;e.screens.push(z);return!0},OQb=function(e,z){var C=e.screens.length!=z.length;
e.screens=_.Q8(e.screens,function(G){return!!QnY(z,G)});
for(var w=z.length,K=0;K<w;K++)C=hFo(e,z[K])||C;return C},EAb=function(e,z){var C=e.screens.length;
e.screens=_.Q8(e.screens,function(w){return!(w||z?!w!=!z?0:w.id==z.id:1)});
return e.screens.length<C};
ux.prototype.info=function(e){f6(this.JSC$20302_logName_,e)};var FYb=function(e,z,C,w,K){_.X_.call(this);this.JSC$20305_http_=e;this.pairingCode_=z;this.deviceId_=C;this.friendlyName_=w;this.enableShortLivedLoungeToken_=K;this.pollIndex_=0;this.JSC$20305_xhr_=null;this.JSC$20305_timer_=NaN};
_.U(FYb,_.X_);_.Y=FYb.prototype;_.Y.start=function(){!this.JSC$20305_xhr_&&isNaN(this.JSC$20305_timer_)&&this.poll_()};
_.Y.stop=function(){this.JSC$20305_xhr_&&(this.JSC$20305_xhr_.abort(),this.JSC$20305_xhr_=null);isNaN(this.JSC$20305_timer_)||(_.Wi(this.JSC$20305_timer_),this.JSC$20305_timer_=NaN)};
_.Y.disposeInternal=function(){this.stop();_.X_.prototype.disposeInternal.call(this)};
_.Y.poll_=function(){this.JSC$20305_timer_=NaN;this.JSC$20305_xhr_=_.RX(F_(this.JSC$20305_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.uZ)(this.JSC$20307_onSuccess_,this),onError:(0,_.uZ)(this.onError_,this),onTimeout:(0,_.uZ)(this.JSC$20307_onTimeout_,this)})};
_.Y.JSC$20307_onSuccess_=function(e,z){this.JSC$20305_xhr_=null;e=z.screen||{};e.dialId=this.deviceId_;e.name=this.friendlyName_;z=-1;this.enableShortLivedLoungeToken_&&e.shortLivedLoungeToken&&e.shortLivedLoungeToken.value&&e.shortLivedLoungeToken.refreshIntervalMs&&(e.screenIdType="shortLived",e.loungeToken=e.shortLivedLoungeToken.value,z=e.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new h9(e),z)};
_.Y.onError_=function(e){this.JSC$20305_xhr_=null;e.status&&e.status==404?this.pollIndex_>=VZC.length?this.publish("pairingFailed",Error("al")):(e=VZC[this.pollIndex_],this.JSC$20305_timer_=_.U3((0,_.uZ)(this.poll_,this),e),this.pollIndex_++):this.publish("pairingFailed",Error("bl`"+e.status))};
_.Y.JSC$20307_onTimeout_=function(){this.JSC$20305_xhr_=null;this.publish("pairingFailed",Error("cl"))};
var VZC=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Tk(D1,ux);_.Y=D1.prototype;_.Y.start=function(){dZ(this)&&this.publish("screenChange");!_.PJ("yt-remote-lounge-token-expiration")&&f9C(this);_.Wi(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.U3((0,_.uZ)(this.start,this),1E4)};
_.Y.add=function(e,z){dZ(this);hFo(this,e);S5Z(this,!1);this.publish("screenChange");z(e);e.token||f9C(this)};
_.Y.remove=function(e,z){var C=dZ(this);EAb(this,e)&&(S5Z(this,!1),C=!0);z(e);C&&this.publish("screenChange")};
_.Y.updateName=function(e,z,C,w){var K=dZ(this),G=this.get(e.id);G?(G.name!=z&&(G.name=z,S5Z(this,!1),K=!0),C(e)):w(Error("dl"));K&&this.publish("screenChange")};
_.Y.disposeInternal=function(){_.Wi(this.loungeTokenRefreshTimer_);D1.superClass_.disposeInternal.call(this)};
var f9C=function(e){if(e.screens.length){var z=_.i4(e.screens,function(w){return w.id}),C=F_(e.JSC$20309_http_,"/pairing/get_lounge_token_batch");
e.JSC$20309_http_.sendRequest("POST",C,{screen_ids:z.join(",")},(0,_.uZ)(e.handleLoungeTokens_,e),(0,_.uZ)(e.handleLoungeTokenError_,e))}};
D1.prototype.handleLoungeTokens_=function(e){dZ(this);var z=this.screens.length;e=e&&e.screens||[];for(var C=e.length,w=0;w<C;++w){var K=e[w],G=this.get(K.screenId);G&&(G.token=K.loungeToken,--z)}S5Z(this,!z);z&&f6(this.JSC$20302_logName_,"Missed "+z+" lounge tokens.")};
D1.prototype.handleLoungeTokenError_=function(e){f6(this.JSC$20302_logName_,"Requesting lounge tokens failed: "+e)};
var dZ=function(e){if(_.M("deprecate_pair_servlet_enabled"))return OQb(e,[]);var z=PJW(WUl());z=_.Q8(z,function(C){return!C.uuid});
return OQb(e,z)},S5Z=function(e,z){RiE(_.i4(e.screens,I9Z));
z&&PHo()};var xF=function(e,z){_.X_.call(this);this.getScreensToCheck_=z;z=(z=_.PJ("yt-remote-online-screen-ids")||"")?z.split(","):[];for(var C={},w=this.getScreensToCheck_(),K=w.length,G=0;G<K;++G){var X=w[G].id;C[X]=_.Sh(z,X)}this.screenIdSet_=C;this.JSC$20312_http_=e;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;umv("Initialized with "+(0,_.c2)(this.screenIdSet_))};
_.U(xF,_.X_);xF.prototype.isOnline=function(e){return!!this.screenIdSet_[e]};
xF.prototype.start=function(){var e=parseInt(_.PJ("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.xd()-144E5<e?0:e)?dOo(this):(this.fastCheckEndTime_=_.xd()+3E5,_.WJ("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
xF.prototype.isEmpty=function(){return _.de.isEmpty(this.screenIdSet_)};
xF.prototype.update=function(){umv("Updating availability on schedule.");var e=this.getScreensToCheck_(),z=_.de.filter(this.screenIdSet_,function(C,w){return C&&!!O0(e,w)},this);
DOa(this,z)};
var iQZ=function(e,z,C){var w=F_(e.JSC$20312_http_,"/pairing/get_screen_availability");e.JSC$20312_http_.sendRequest("POST",w,{lounge_token:z.token},(0,_.uZ)(function(K){K=K.screens||[];for(var G=K.length,X=0;X<G;++X)if(K[X].loungeToken==z.token){C(K[X].status=="online");return}C(!1)},e),(0,_.uZ)(function(){C(!1)},e))};
xF.prototype.disposeInternal=function(){_.Wi(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.X_.prototype.disposeInternal.call(this)};
var DOa=function(e,z){a:if(_.de.getCount(z)!=_.de.getCount(e.screenIdSet_))var C=!1;else{C=_.de.getKeys(z);for(var w=C.length,K=0;K<w;++K)if(!e.screenIdSet_[C[K]]){C=!1;break a}C=!0}C||(umv("Updated online screens: "+(0,_.c2)(e.screenIdSet_)),e.screenIdSet_=z,e.publish("screenChange"));NCv(e)},dOo=function(e){isNaN(e.refreshTimer_)||_.Wi(e.refreshTimer_);
e.refreshTimer_=_.U3((0,_.uZ)(e.requestScreenAvailability_,e),e.fastCheckEndTime_>0&&e.fastCheckEndTime_<_.xd()?2E4:1E4)};
xF.prototype.requestScreenAvailability_=function(){_.Wi(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var e=sB$(this);if(_.de.getCount(e)){var z=F_(this.JSC$20312_http_,"/pairing/get_screen_availability"),C={lounge_token:_.de.getKeys(e).join(",")};this.currentRequest_=this.JSC$20312_http_.sendRequest("POST",z,C,(0,_.uZ)(this.onScreenAvailability_,this,e),(0,_.uZ)(this.onScreenAvailabilityError_,this))}else DOa(this,{}),dOo(this)};
xF.prototype.onScreenAvailability_=function(e,z){this.currentRequest_=null;var C=_.de.getKeys(sB$(this));if(_.Z8(C,_.de.getKeys(e))){z=z.screens||[];C={};for(var w=z.length,K=0;K<w;++K)C[e[z[K].loungeToken]]=z[K].status=="online";DOa(this,C);dOo(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
xF.prototype.onScreenAvailabilityError_=function(e){this.warn_("Screen availability failed: "+e);this.currentRequest_=null;dOo(this)};
var umv=function(e){f6("OnlineScreenService",e)};
xF.prototype.warn_=function(e){f6("OnlineScreenService",e)};
var sB$=function(e){var z={};_.oX(e.getScreensToCheck_(),function(C){C.token?z[C.token]=C.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return z},NCv=function(e){e=_.de.getKeys(_.de.filter(e.screenIdSet_,function(z){return z}));
e.sort(_.Vhh);e.length?_.WJ("yt-remote-online-screen-ids",e.join(","),60):_.Rg("yt-remote-online-screen-ids")};_.Tk(ix,ux);_.Y=ix.prototype;_.Y.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.Y.add=function(e,z,C){this.localScreenService_.add(e,z,C)};
_.Y.remove=function(e,z,C){this.localScreenService_.remove(e,z,C);this.onlineScreenService_.update()};
_.Y.updateName=function(e,z,C,w){this.localScreenService_.contains(e)?this.localScreenService_.updateName(e,z,C,w):(e="Updating name of unknown screen: "+e.name,f6(this.JSC$20302_logName_,e),w(Error(e)))};
_.Y.getScreens=function(e){return e?this.screens:EpW(this.screens,_.Q8(this.automaticScreens_,function(z){return!this.contains(z)},this))};
_.Y.JSC$20317_getOnlineScreens=function(){return _.Q8(this.getScreens(!0),function(e){return this.onlineScreenService_.isOnline(e.id)},this)};
var tZW=function(e,z,C,w,K,G){e.info("getAutomaticScreenByIds "+C+" / "+z);C||(C=e.deviceToScreenId_[z]);var X=e.getScreens(),J=C?O0(X,C):null;C&&(e.disableAutomaticScreenCache_||J)||(J=O0(X,z));if(J){J.uuid=z;var q=TI(e,J);iQZ(e.onlineScreenService_,q,function(T){K(T?q:null)})}else C?BC3(e,C,(0,_.uZ)(function(T){var Q=TI(this,new h9({name:w,
screenId:C,loungeToken:T,dialId:z||""}));iQZ(this.onlineScreenService_,Q,function(m){K(m?Q:null)})},e),G):K(null)};
ix.prototype.JSC$20317_getScreenByPollingPairingCode=function(e,z,C,w,K,G){var X=this;this.info("getDialScreenByPairingCode "+e+" / "+z);var J=new FYb(this.JSC$20315_http_,e,z,C,w);J.subscribe("pairingComplete",function(q,T){_.XU(J);K(TI(X,q),T)});
J.subscribe("pairingFailed",function(q){_.XU(J);G(q)});
J.start();return(0,_.uZ)(J.stop,J)};
var gAa=function(e,z){for(var C=e.screens.length,w=0;w<C;++w)if(e.screens[w].name==z)return e.screens[w];return null};
ix.prototype.JSC$20317_getScreenByPairingCode=function(e,z,C,w){_.RX(F_(this.JSC$20315_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:e},timeout:5E3,onSuccess:(0,_.uZ)(function(K,G){K=new h9(G.screen||{});if(!K.name||gAa(this,K.name)){a:{G=K.name;for(var X=2,J=z(G,X);gAa(this,J);){X++;if(X>20)break a;J=z(G,X)}G=J}K.name=G}C(TI(this,K))},this),
onError:(0,_.uZ)(function(K){w(Error("el`"+K.status))},this),
onTimeout:(0,_.uZ)(function(){w(Error("fl"))},this)})};
var jBC=function(e,z,C){iQZ(e.onlineScreenService_,z,C)};
ix.prototype.disposeInternal=function(){_.XU(this.localScreenService_);_.XU(this.onlineScreenService_);ix.superClass_.disposeInternal.call(this)};
var BC3=function(e,z,C,w){e.info("requestLoungeToken_ for "+z);var K={postParams:{screen_ids:z},method:"POST",context:e,onSuccess:function(G,X){G=X&&X.screens||[];G[0]&&G[0].screenId==z?C(G[0].loungeToken):w(Error("gl"))},
onError:function(){w(Error("hl"))}};
_.RX(F_(e.JSC$20315_http_,"/pairing/get_lounge_token_batch"),K)},yao=function(e){e.screens=e.localScreenService_.getScreens();
for(var z=_.de.transpose(e.deviceToScreenId_),C=e.screens.length,w=0;w<C;++w){var K=e.screens[w];K.uuid=z[K.id]||""}e.info("Updated manual screens: "+jnf(e.screens))};
ix.prototype.handleScreenChange_=function(){yao(this);this.publish("screenChange");this.onlineScreenService_.update()};
var y8q=function(e){cav(e);e.localScreenService_=new D1(e.JSC$20315_http_);e.localScreenService_.subscribe("screenChange",(0,_.uZ)(e.handleScreenChange_,e));yao(e);e.disableAutomaticScreenCache_||(e.automaticScreens_=PJW(_.PJ("yt-remote-automatic-screen-cache")||[]));cav(e);e.info("Initializing automatic screens: "+jnf(e.automaticScreens_));e.onlineScreenService_=new xF(e.JSC$20315_http_,(0,_.uZ)(e.getScreens,e,!0));e.onlineScreenService_.subscribe("screenChange",(0,_.uZ)(function(){this.publish("onlineScreenChange")},
e))},TI=function(e,z){var C=e.get(z.id);
C?(C.uuid=z.uuid,z=C):((C=O0(e.automaticScreens_,z.uuid))?(C.id=z.id,C.token=z.token,z=C):e.automaticScreens_.push(z),e.disableAutomaticScreenCache_||AaZ(e));cav(e);e.deviceToScreenId_[z.uuid]=z.id;_.WJ("yt-remote-device-id-map",e.deviceToScreenId_,31536E3);return z},AaZ=function(e){e=_.Q8(e.automaticScreens_,function(z){return z.idType!="shortLived"});
_.WJ("yt-remote-automatic-screen-cache",_.i4(e,I9Z))},cav=function(e){e.deviceToScreenId_=_.PJ("yt-remote-device-id-map")||{}};
ix.prototype.dispose=ix.prototype.dispose;_.Tk(N0,_.X_);var $F=function(e,z){e.screen_=z;e.publish("sessionScreen",e.screen_)},ZQv=function(e,z){e.screen_&&(e.screen_.token=z,TI(e.JSC$20319_screenService_,e.screen_));
e.publish("sessionScreen",e.screen_)};
N0.prototype.onSessionStopped=function(e){this.isDisposed()||(e&&(lu(this,""+e),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
N0.prototype.info=function(e){f6(this.JSC$20319_logName_,e)};
var lu=function(e,z){f6(e.JSC$20319_logName_,z)};
N0.prototype.JSC$20321_getCastSession=function(){return null};
N0.prototype.setDisplayStatus=function(e){var z=this.receiver_;e?(z.displayStatus=new chrome.cast.ReceiverDisplayStatus(e,[]),z.displayStatus.showStop=!0):z.displayStatus=null;chrome.cast.setReceiverDisplayStatus(z,(0,_.uZ)(function(){this.info("Updated receiver status for "+z.friendlyName+": "+e)},this),(0,_.uZ)(function(){lu(this,"Failed to update receiver status for: "+z.friendlyName)},this))};
N0.prototype.disposeInternal=function(){this.setDisplayStatus("");N0.superClass_.disposeInternal.call(this)};var QN=function(e,z,C){N0.call(this,e,z,"CastSession");var w=this;this.config_=C;this.JSC$20324_session_=null;this.JSC$20324_boundSessionUpdate_=(0,_.uZ)(this.JSC$20326_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.uZ)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.U3(function(){pPo(w,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20324_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20324_isInitLoungeToken_=!1;this.JSC$20324_lastLoungeTokenRefreshError_="unknown"};
_.U(QN,N0);_.Y=QN.prototype;
_.Y.setCastSession=function(e){if(this.JSC$20324_session_){if(this.JSC$20324_session_==e)return;lu(this,"Overriding cast session with new session object");e5b(this);this.JSC$20324_isInitLoungeToken_=!1;this.JSC$20324_lastLoungeTokenRefreshError_="unknown";this.JSC$20324_session_.removeUpdateListener(this.JSC$20324_boundSessionUpdate_);this.JSC$20324_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20324_session_=e;this.JSC$20324_session_.addUpdateListener(this.JSC$20324_boundSessionUpdate_);this.JSC$20324_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);z5Z(this,"getMdxSessionStatus")};
_.Y.launchWithParams=function(e){this.info("launchWithParams no-op for Cast: "+(0,_.c2)(e))};
_.Y.stop=function(){if(this.JSC$20324_session_)this.JSC$20324_session_.stop((0,_.uZ)(function(){this.onSessionStopped()},this),(0,_.uZ)(function(){this.onSessionStopped(Error("il"))},this));
else this.onSessionStopped(Error("jl"))};
_.Y.setDisplayStatus=function(){};
_.Y.disposeInternal=function(){this.info("disposeInternal");e5b(this);this.JSC$20324_session_&&(this.JSC$20324_session_.removeUpdateListener(this.JSC$20324_boundSessionUpdate_),this.JSC$20324_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20324_session_=null;N0.prototype.disposeInternal.call(this)};
var wSE=function(e,z){_.Wi(e.getLoungeTokenTimeoutKey_);e.getLoungeTokenTimeoutKey_=0;z==0?C_3(e):e.getLoungeTokenTimeoutKey_=_.U3(function(){C_3(e)},z)},C_3=function(e){z5Z(e,"getLoungeToken");
_.Wi(e.onLoungeTokenTimeoutKey_);e.onLoungeTokenTimeoutKey_=_.U3(function(){KoE(e,null)},3E4)},z5Z=function(e,z){e.info("sendYoutubeMessage_: "+z+" "+(0,_.c2)(void 0));
var C={};C.type=z;e.JSC$20324_session_?e.JSC$20324_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",C,function(){},(0,_.uZ)(function(){lu(this,"Failed to send message: "+z+".")},e)):lu(e,"Sending yt message without session: "+(0,_.c2)(C))};
QN.prototype.onYoutubeMessage_=function(e,z){if(!this.isDisposed())if(z)if(z=(0,_.rN)(z),_.gL(z))switch(e=""+z.type,z=z.data||{},this.info("onYoutubeMessage_: "+e+" "+(0,_.c2)(z)),e){case "mdxSessionStatus":pPo(this,z);break;case "loungeToken":KoE(this,z);break;default:lu(this,"Unknown youtube message: "+e)}else lu(this,"Unable to parse message.");else lu(this,"No data in message.")};
var oDL=function(e,z){if(z)e.info("onConnectedScreenId_: Received screenId: "+z),e.screen_&&e.screen_.id==z||e.getScreen_(z,function(C){$F(e,C)},function(){return e.onSessionStopped()},5);
else e.onSessionStopped(Error("kl"))},Y$b=function(e,z,C){e.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(z));
var w=new h9(z);GSq(e,w,function(K){K?(e.JSC$20324_isInitLoungeToken_=!0,TI(e.JSC$20319_screenService_,w),$F(e,w),e.JSC$20324_lastLoungeTokenRefreshError_="unknown",wSE(e,C)):(_.AR(Error("ll`"+JSON.stringify(z))),e.onSessionStopped())},5)},pPo=function(e,z){_.Wi(e.sessionStatusTimeoutKey_);
e.sessionStatusTimeoutKey_=0;if(z)e.config_.enableCastLoungeToken&&z.loungeToken?z.deviceId?e.screen_&&e.screen_.uuid==z.deviceId||(z.loungeTokenRefreshIntervalMs?Y$b(e,{name:e.receiver_.friendlyName,screenId:z.screenId,loungeToken:z.loungeToken,dialId:z.deviceId,screenIdType:"shortLived"},z.loungeTokenRefreshIntervalMs):(_.AR(Error("nl`"+JSON.stringify(z))),oDL(e,z.screenId))):(_.AR(Error("ml`"+JSON.stringify(z))),oDL(e,z.screenId)):oDL(e,z.screenId);else e.onSessionStopped(Error("kl"))},KoE=function(e,
z){_.Wi(e.onLoungeTokenTimeoutKey_);
e.onLoungeTokenTimeoutKey_=0;var C=null;if(z)if(z.loungeToken){var w;((w=e.screen_)==null?void 0:w.token)==z.loungeToken&&(C="staleLoungeToken")}else C="missingLoungeToken";else C="noLoungeTokenResponse";C?(e.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(z)+", error: "+C)),e.JSC$20324_lastLoungeTokenRefreshError_=C,wSE(e,3E4)):(ZQv(e,z.loungeToken),e.JSC$20324_isInitLoungeToken_=!1,e.JSC$20324_lastLoungeTokenRefreshError_="unknown",wSE(e,z.loungeTokenRefreshIntervalMs))};
QN.prototype.getScreen_=function(e,z,C,w){_.Wi(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;tZW(this.JSC$20319_screenService_,this.receiver_.label,e,this.receiver_.friendlyName,(0,_.uZ)(function(K){K?z(K):w>=0?(lu(this,"Screen "+e+" appears to be offline. "+w+" retries left."),this.getScreenTimeoutKey_=_.U3((0,_.uZ)(this.getScreen_,this,e,z,C,w-1),300)):C(Error("ol"))},this),C)};
var GSq=function(e,z,C,w){_.Wi(e.JSC$20324_checkScreenAvailabilityTimeoutKey_);e.JSC$20324_checkScreenAvailabilityTimeoutKey_=0;jBC(e.JSC$20319_screenService_,z,function(K){K||w<0?C(K):e.JSC$20324_checkScreenAvailabilityTimeoutKey_=_.U3(function(){GSq(e,z,C,w-1)},300)})};
QN.prototype.JSC$20321_getCastSession=function(){return this.JSC$20324_session_};
QN.prototype.JSC$20326_onSessionUpdate_=function(e){this.isDisposed()||e||(lu(this,"Cast session died."),this.onSessionStopped())};
var e5b=function(e){_.Wi(e.getScreenTimeoutKey_);e.getScreenTimeoutKey_=0;_.Wi(e.JSC$20324_checkScreenAvailabilityTimeoutKey_);e.JSC$20324_checkScreenAvailabilityTimeoutKey_=0;_.Wi(e.sessionStatusTimeoutKey_);e.sessionStatusTimeoutKey_=0;_.Wi(e.onLoungeTokenTimeoutKey_);e.onLoungeTokenTimeoutKey_=0;_.Wi(e.getLoungeTokenTimeoutKey_);e.getLoungeTokenTimeoutKey_=0};var mw=function(e,z,C,w){N0.call(this,e,z,"DialSession");this.config_=w;this.JSC$20328_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20328_theme_=C;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20328_deferredLaunchDeadlineTimer_=NaN;this.JSC$20328_boundSessionUpdate_=(0,_.uZ)(this.JSC$20330_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20328_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20328_isInitLoungeToken_=!1;this.JSC$20328_lastLoungeTokenRefreshError_="unknown"};
_.U(mw,N0);mw.prototype.setCastSession=function(e){this.JSC$20328_session_=e;this.JSC$20328_session_.addUpdateListener(this.JSC$20328_boundSessionUpdate_)};
mw.prototype.launchWithParams=function(e){this.connectData_=e;this.deferredLaunch_()};
mw.prototype.stop=function(){ba5(this);if(this.JSC$20328_session_)this.JSC$20328_session_.stop((0,_.uZ)(this.onSessionStopped,this,null),(0,_.uZ)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
mw.prototype.disposeInternal=function(){ba5(this);this.JSC$20328_session_&&this.JSC$20328_session_.removeUpdateListener(this.JSC$20328_boundSessionUpdate_);this.JSC$20328_session_=null;N0.prototype.disposeInternal.call(this)};
var XSY=function(e){var z;return!!(e.config_.enableDialLoungeToken&&((z=e.JSC$20328_session_)==null?0:z.getDialAppInfo))},kSo=function(e){e.cancelPolling_=e.JSC$20319_screenService_.JSC$20317_getScreenByPollingPairingCode(e.reversePairingCode_,e.receiver_.label,e.receiver_.friendlyName,XSY(e),function(z,C){e.cancelPolling_=function(){};
e.JSC$20328_isInitLoungeToken_=!0;$F(e,z);z.idType=="shortLived"&&C>0&&JFl(e,C)},function(z){e.cancelPolling_=function(){};
e.onSessionStopped(z)})};
mw.prototype.JSC$20330_onSessionUpdate_=function(e){this.isDisposed()||e||(lu(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var q$Z=function(e){var z={};z.pairingCode=e.reversePairingCode_;z.theme=e.JSC$20328_theme_;OMo()&&(z.env_useStageMdx=1);return _.L0(z)},xjo=function(e){return new Promise(function(z){e.reversePairingCode_=$ZW();
if(e.connectData_){var C=new chrome.cast.DialLaunchResponse(!0,q$Z(e));z(C);kSo(e)}else e.deferredLaunch_=function(){_.Wi(e.JSC$20328_deferredLaunchDeadlineTimer_);e.deferredLaunch_=function(){};
e.JSC$20328_deferredLaunchDeadlineTimer_=NaN;var w=new chrome.cast.DialLaunchResponse(!0,q$Z(e));z(w);kSo(e)},e.JSC$20328_deferredLaunchDeadlineTimer_=_.U3(function(){e.deferredLaunch_()},100)})},$jl=function(e,z,C){e.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(z));
var w=new h9(z);return(new Promise(function(K){T_b(e,w,function(G){G?(e.JSC$20328_isInitLoungeToken_=!0,TI(e.JSC$20319_screenService_,w),$F(e,w),JFl(e,C)):_.AR(Error("ql`"+JSON.stringify(z)));K(G)},5)})).then(function(K){return K?new chrome.cast.DialLaunchResponse(!1):xjo(e)})},lqv=function(e,z){var C=e.launchData_.receiver.label,w=e.receiver_.friendlyName;
return(new Promise(function(K){tZW(e.JSC$20319_screenService_,C,z,w,function(G){G&&G.token&&$F(e,G);K(G)},function(G){lu(e,"Failed to get DIAL screen: "+G);
K(null)})})).then(function(K){return K&&K.token?new chrome.cast.DialLaunchResponse(!1):xjo(e)})},T_b=function(e,z,C,w){_.Wi(e.JSC$20328_checkScreenAvailabilityTimeoutKey_);
e.JSC$20328_checkScreenAvailabilityTimeoutKey_=0;jBC(e.JSC$20319_screenService_,z,function(K){K||w<0?C(K):e.JSC$20328_checkScreenAvailabilityTimeoutKey_=_.U3(function(){T_b(e,z,C,w-1)},300)})},JFl=function(e,z){e.info("getDialAppInfoWithTimeout_ "+z);
XSY(e)&&(_.Wi(e.getDialAppInfoTimeoutKey_),e.getDialAppInfoTimeoutKey_=0,z==0?Q_3(e):e.getDialAppInfoTimeoutKey_=_.U3(function(){Q_3(e)},z))},Q_3=function(e){XSY(e)&&e.JSC$20328_session_.getDialAppInfo(function(z){e.info("getDialAppInfo dialLaunchData: "+JSON.stringify(z));
z=z.extraData||{};var C=null;if(z.loungeToken){var w;((w=e.screen_)==null?void 0:w.token)==z.loungeToken&&(C="staleLoungeToken")}else C="missingLoungeToken";C?(e.JSC$20328_lastLoungeTokenRefreshError_=C,JFl(e,3E4)):(e.JSC$20328_isInitLoungeToken_=!1,e.JSC$20328_lastLoungeTokenRefreshError_="unknown",ZQv(e,z.loungeToken),JFl(e,z.loungeTokenRefreshIntervalMs))},function(z){e.info("getDialAppInfo error: "+z);
e.JSC$20328_lastLoungeTokenRefreshError_="noLoungeTokenResponse";JFl(e,3E4)})},ba5=function(e){_.Wi(e.JSC$20328_checkScreenAvailabilityTimeoutKey_);
e.JSC$20328_checkScreenAvailabilityTimeoutKey_=0;_.Wi(e.getDialAppInfoTimeoutKey_);e.getDialAppInfoTimeoutKey_=0;e.cancelPolling_();e.cancelPolling_=function(){};
_.Wi(e.JSC$20328_deferredLaunchDeadlineTimer_)};var aF=function(e,z){N0.call(this,e,z,"ManualSession");this.JSC$20332_deferredLaunchDeadlineTimer_=_.U3((0,_.uZ)(this.launchWithParams,this,null),150)};
_.U(aF,N0);aF.prototype.stop=function(){this.onSessionStopped()};
aF.prototype.setCastSession=function(){};
aF.prototype.launchWithParams=function(){_.Wi(this.JSC$20332_deferredLaunchDeadlineTimer_);this.JSC$20332_deferredLaunchDeadlineTimer_=NaN;var e=O0(this.JSC$20319_screenService_.getScreens(),this.receiver_.label);if(e)$F(this,e);else this.onSessionStopped(Error("rl"))};
aF.prototype.disposeInternal=function(){_.Wi(this.JSC$20332_deferredLaunchDeadlineTimer_);this.JSC$20332_deferredLaunchDeadlineTimer_=NaN;N0.prototype.disposeInternal.call(this)};var gZ=function(e,z){_.X_.call(this);this.config_=z;this.JSC$20335_screenService_=e;this.JSC$20335_appId_=z.appId||"233637DE";this.JSC$20335_theme_=z.theme||"cl";this.disableDial_=z.disableCastApi||!1;this.forceMirroring_=z.forceMirroring||!1;this.JSC$20335_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.uZ)(this.onReceiverAction_,this)};
_.U(gZ,_.X_);
gZ.prototype.init=function(e,z){chrome.cast.timeout.requestSession=3E4;var C=new chrome.cast.SessionRequest(this.JSC$20335_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.M("desktop_enable_cast_connect")&&(C.androidReceiverCompatible=!0);this.disableDial_||(C.dialRequest=new chrome.cast.DialRequest("YouTube"));var w=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;e=e||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var K=(0,_.uZ)(this.onReceiverUpdated_,
this);C=new chrome.cast.ApiConfig(C,(0,_.uZ)(this.onSessionEstablished_,this),K,w,e);C.customDialLaunchCallback=(0,_.uZ)(this.onDialLaunchRequested_,this);chrome.cast.initialize(C,(0,_.uZ)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),DZb(),this.JSC$20335_screenService_.subscribe("onlineScreenChange",(0,_.uZ)(this.JSC$20337_onScreenChange_,this)),this.customReceivers_=mjv(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.uZ)(function(G){this.warn_("Failed to set initial custom receivers: "+(0,_.c2)(G))},this)),this.publish("yt-remote-cast2-availability-change",aqZ(this)),z(!0))},this),(0,_.uZ)(function(G){this.warn_("Failed to initialize API: "+(0,_.c2)(G));
z(!1)},this))};
gZ.prototype.setConnectedScreenStatus=function(e,z){nS("Setting connected screen ID: "+e+" -> "+z);if(this.JSC$20335_session_){var C=this.JSC$20335_session_.screen_;if(!e||C&&C.id!=e)nS("Unsetting old screen status: "+this.JSC$20335_session_.receiver_.friendlyName),MW(this,null)}if(e&&z){if(!this.JSC$20335_session_){e=O0(this.JSC$20335_screenService_.getScreens(),e);if(!e){nS("setConnectedScreenStatus: Unknown screen.");return}if(e.idType=="shortLived"){nS("setConnectedScreenStatus: Screen with id type to be short lived.");
return}C=nDo(this,e);C||(nS("setConnectedScreenStatus: Connected receiver not custom..."),C=new chrome.cast.Receiver(e.uuid?e.uuid:e.id,e.name),C.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(C),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.uZ)(function(w){this.warn_("Failed to set initial custom receivers: "+(0,_.c2)(w))},this)));
nS("setConnectedScreenStatus: new active receiver: "+C.friendlyName);MW(this,new aF(this.JSC$20335_screenService_,C),!0)}this.JSC$20335_session_.setDisplayStatus(z)}else nS("setConnectedScreenStatus: no screen.")};
var nDo=function(e,z){return z?_.OE(e.customReceivers_,function(C){return mZL(z,C.label)},e):null};
gZ.prototype.setLaunchParams=function(e){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20335_session_?this.JSC$20335_session_.launchWithParams(e):this.warn_("Setting connection data without a session")};
gZ.prototype.JSC$20337_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20335_session_?(this.JSC$20335_session_.stop(),MW(this,null)):nS("Stopping non-existing session")};
gZ.prototype.requestSession=function(){chrome.cast.requestSession((0,_.uZ)(this.onSessionEstablished_,this),(0,_.uZ)(this.onSessionRequestFailed_,this))};
gZ.prototype.disposeInternal=function(){this.JSC$20335_screenService_.unsubscribe("onlineScreenChange",(0,_.uZ)(this.JSC$20337_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.D8(_.pd("yt.mdx.remote.debug.handlers_")||[],SQW);_.XU(this.JSC$20335_session_);_.X_.prototype.disposeInternal.call(this)};
var nS=function(e){f6("Controller",e)};
gZ.prototype.warn_=function(e){f6("Controller",e)};
var SQW=function(e){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(e)},aqZ=function(e){return e.hasCastReceiver_||!!e.customReceivers_.length||!!e.JSC$20335_session_},MW=function(e,z,C){z!=e.JSC$20335_session_&&(_.XU(e.JSC$20335_session_),(e.JSC$20335_session_=z)?(C?e.publish("yt-remote-cast2-receiver-resumed",z.receiver_):e.publish("yt-remote-cast2-receiver-selected",z.receiver_),z.subscribe("sessionScreen",(0,_.uZ)(e.onSessionScreen_,e,z)),z.subscribe("sessionFailed",
function(){return MRv(e,z)}),z.screen_?e.publish("yt-remote-cast2-session-change",z.screen_):C&&e.JSC$20335_session_.launchWithParams(null)):e.publish("yt-remote-cast2-session-change",null))},MRv=function(e,z){e.JSC$20335_session_==z&&e.publish("yt-remote-cast2-session-failed")};
_.Y=gZ.prototype;_.Y.onSessionScreen_=function(e,z){this.JSC$20335_session_==e&&(z||MW(this,null),this.publish("yt-remote-cast2-session-change",z))};
_.Y.onReceiverAction_=function(e,z){if(!this.isDisposed())if(e)switch(e.friendlyName=chrome.cast.unescape(e.friendlyName),nS("onReceiverAction_ "+e.label+" / "+e.friendlyName+"-- "+z),z){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20335_session_)if(this.JSC$20335_session_.receiver_.label!=e.label)nS("onReceiverAction_: Stopping active receiver: "+this.JSC$20335_session_.receiver_.friendlyName),this.JSC$20335_session_.stop();else{nS("onReceiverAction_: Casting to active receiver.");this.JSC$20335_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20335_session_.screen_);break}switch(e.receiverType){case chrome.cast.ReceiverType.CUSTOM:MW(this,new aF(this.JSC$20335_screenService_,e));break;case chrome.cast.ReceiverType.DIAL:MW(this,new mw(this.JSC$20335_screenService_,e,this.JSC$20335_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:MW(this,new QN(this.JSC$20335_screenService_,e,this.config_));break;default:this.warn_("Unknown receiver type: "+e.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20335_session_&&
this.JSC$20335_session_.receiver_.label==e.label?this.JSC$20335_session_.stop():this.warn_("Stopping receiver w/o session: "+e.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.Y.onDialLaunchRequested_=function(e){if(this.isDisposed())return Promise.reject(Error("sl"));var z=e.receiver;z.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+z.friendlyName),z.receiverType=chrome.cast.ReceiverType.DIAL);var C=this.JSC$20335_session_?this.JSC$20335_session_.receiver_:null;if(!C||C.label!=z.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+z.friendlyName),Promise.reject(Error("tl"));if(C&&C.label==z.label&&C.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20335_session_.screen_)return nS("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20335_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+C.receiverType+'" to "dial" for '+z.friendlyName);MW(this,new mw(this.JSC$20335_screenService_,z,this.JSC$20335_theme_,this.config_))}z=this.JSC$20335_session_;z.launchData_=e;z.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(e=z.launchData_.extraData||{},C=e.screenId||null,XSY(z)&&e.loungeToken?e.loungeTokenRefreshIntervalMs?e=$jl(z,{name:z.receiver_.friendlyName,screenId:e.screenId,loungeToken:e.loungeToken,dialId:z.launchData_.receiver.label,screenIdType:"shortLived"},e.loungeTokenRefreshIntervalMs):(_.AR(Error("pl`"+JSON.stringify(e))),e=lqv(z,C)):e=lqv(z,C)):e=xjo(z);return e};
_.Y.onSessionEstablished_=function(e){var z=this;if(!this.isDisposed()&&!this.forceMirroring_){nS("New cast session ID: "+e.sessionId);var C=e.receiver;if(C.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20335_session_)if(C.receiverType==chrome.cast.ReceiverType.CAST)nS("Got resumed cast session before resumed mdx connection."),C.friendlyName=chrome.cast.unescape(C.friendlyName),MW(this,new QN(this.JSC$20335_screenService_,C,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var w=this.JSC$20335_session_.receiver_,K=O0(this.JSC$20335_screenService_.getScreens(),w.label);K&&mZL(K,C.label)&&w.receiverType!=chrome.cast.ReceiverType.CAST&&C.receiverType==chrome.cast.ReceiverType.CAST&&(nS("onSessionEstablished_: manual to cast session change "+C.friendlyName),_.XU(this.JSC$20335_session_),this.JSC$20335_session_=new QN(this.JSC$20335_screenService_,C,this.config_),this.JSC$20335_session_.subscribe("sessionScreen",(0,_.uZ)(this.onSessionScreen_,this,this.JSC$20335_session_)),
this.JSC$20335_session_.subscribe("sessionFailed",function(){return MRv(z,z.JSC$20335_session_)}),this.JSC$20335_session_.launchWithParams(null));
this.JSC$20335_session_.setCastSession(e)}}};
_.Y.JSC$20337_getCastSession=function(){return this.JSC$20335_session_?this.JSC$20335_session_.JSC$20321_getCastSession():null};
_.Y.onSessionRequestFailed_=function(e){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.c2)(e)),e.code!=chrome.cast.ErrorCode.CANCEL&&MW(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.Y.onReceiverUpdated_=function(e){nS("Receiver availability updated: "+e);if(!this.isDisposed()){var z=aqZ(this);this.hasCastReceiver_=e==chrome.cast.ReceiverAvailability.AVAILABLE;aqZ(this)!=z&&this.publish("yt-remote-cast2-availability-change",aqZ(this))}};
var mjv=function(e){var z=e.JSC$20335_screenService_.JSC$20317_getOnlineScreens(),C=e.JSC$20335_session_&&e.JSC$20335_session_.receiver_;e=_.i4(z,function(w){C&&mZL(w,C.label)&&(C=null);var K=w.uuid?w.uuid:w.id,G=nDo(this,w);G?(G.label=K,G.friendlyName=w.name):(G=new chrome.cast.Receiver(K,w.name),G.receiverType=chrome.cast.ReceiverType.CUSTOM);return G},e);
C&&(C.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(C=new chrome.cast.Receiver(C.label,C.friendlyName),C.receiverType=chrome.cast.ReceiverType.CUSTOM),e.push(C));return e};
gZ.prototype.JSC$20337_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=mjv(this),nS("Updating custom receivers: "+(0,_.c2)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.uZ)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",aqZ(this)))};
gZ.prototype.setLaunchParams=gZ.prototype.setLaunchParams;gZ.prototype.setConnectedScreenStatus=gZ.prototype.setConnectedScreenStatus;gZ.prototype.stopSession=gZ.prototype.JSC$20337_stopSession;gZ.prototype.getCastSession=gZ.prototype.JSC$20337_getCastSession;gZ.prototype.requestSession=gZ.prototype.requestSession;gZ.prototype.init=gZ.prototype.init;gZ.prototype.dispose=gZ.prototype.dispose;var rFv=_.Kb(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),xIl=[],C5f=_.nJ(rFv);var Ha$=function(e){e.audioTrackId=null;e.trackData=null;e.playerState=-1;e.hasPrevious=!1;e.hasNext=!1;e.playerTime_=0;e.playerTimeAt_=_.xd();e.seekableStart_=0;e.seekableEnd_=0;e.duration_=0;e.loadedTime=0;e.liveIngestionTime_=NaN;e.isLive_=!1};
_.Y=jr.prototype;
_.Y.reset=function(e){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;e&&(this.index=e.index,this.listId=e.listId,this.videoId=e.videoId,this.playerState=e.playerState,this.volume=e.volume,this.muted=e.muted,this.audioTrackId=e.audioTrackId,this.trackData=e.trackData,this.hasPrevious=e.hasPrevious,this.hasNext=e.hasNext,this.playerTime_=e.playerTime,this.playerTimeAt_=e.playerTimeAt,this.seekableStart_=e.seekableStart,this.seekableEnd_=e.seekableEnd,this.duration_=e.duration,this.loadedTime=
e.loadedTime,this.liveIngestionTime_=e.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.Y.stopPlayer=function(){this.index=-1;this.videoId="";Ha$(this)};
_.Y.isPlaying=function(){return this.playerState==1};
_.Y.isBuffering=function(){return this.playerState==3};
_.Y.isAdPlaying=function(){return this.playerState==1081};
var rR=function(e,z){e.playerTime_=z;e.playerTimeAt_=_.xd()},Ujq=function(e){switch(e.playerState){case 1:case 1081:return(_.xd()-e.playerTimeAt_)/1E3+e.playerTime_;
case -1E3:return 0}return e.playerTime_};
jr.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.xd()-this.playerTimeAt_)/1E3:0):this.duration_};
var vD3=function(e,z,C){var w=e.videoId;e.videoId=z;e.index=C;z!=w&&Ha$(e)},Iqo=function(e){var z={};
z.index=e.index;z.listId=e.listId;z.videoId=e.videoId;z.playerState=e.playerState;z.volume=e.volume;z.muted=e.muted;z.audioTrackId=e.audioTrackId;z.trackData=_.de.unsafeClone(e.trackData);z.hasPrevious=e.hasPrevious;z.hasNext=e.hasNext;z.playerTime=e.playerTime_;z.playerTimeAt=e.playerTimeAt_;z.seekableStart=e.seekableStart_;z.seekableEnd=e.seekableEnd_;z.duration=e.duration_;z.loadedTime=e.loadedTime;z.liveIngestionTime=e.liveIngestionTime_;return z};
jr.prototype.clone=function(){return new jr(Iqo(this))};var Z1=function(e,z){_.X_.call(this);var C=this;this.state_=0;this.connection_=e;this.contextSubscriptions_=[];this.actionQueue_=new KUb;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.uZ)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.uZ)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.uZ)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.uZ)(this.onCloudviewAvailabilityChange_,this);var w=0;e?(w=e.getProxyState(),
w!=3&&(e.subscribe("proxyStateChange",this.setState_,this),WoY(this))):w=3;w!=0&&(z?this.setState_(w):_.U3(function(){C.setState_(w)},0));
(e=QP5())&&P_C(this,e);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.U(Z1,_.X_);Z1.prototype.getState=function(){return this.state_};
Z1.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Z1.prototype.reconnect=function(){this.connection_.reconnect()};
var HG=function(e){return new jr(e.connection_.getPlayerContextData())};
_.Y=Z1.prototype;_.Y.play=function(){Uh(this)?(this.castMedia_?this.castMedia_.play(null,_.S2,R5o(this,"play")):vG(this,"play"),Lo5(this,1,Ujq(HG(this))),this.publish("remotePlayerChange")):IF(this,this.play)};
_.Y.pause=function(){Uh(this)?(this.castMedia_?this.castMedia_.pause(null,_.S2,R5o(this,"pause")):vG(this,"pause"),Lo5(this,2,Ujq(HG(this))),this.publish("remotePlayerChange")):IF(this,this.pause)};
_.Y.seekTo=function(e){if(Uh(this)){if(this.castMedia_){var z=HG(this),C=new chrome.cast.media.SeekRequest;C.currentTime=e;z.isPlaying()||z.isBuffering()?C.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:C.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(C,_.S2,R5o(this,"seekTo",{newTime:e}))}else vG(this,"seekTo",{newTime:e});Lo5(this,3,e);this.publish("remotePlayerChange")}else IF(this,_.xk(this.seekTo,e))};
_.Y.stop=function(){if(Uh(this)){this.castMedia_?this.castMedia_.stop(null,_.S2,R5o(this,"stopVideo")):vG(this,"stopVideo");var e=HG(this);e.stopPlayer();WG(this,e);this.publish("remotePlayerChange")}else IF(this,this.stop)};
_.Y.setVolume=function(e,z){if(Uh(this)){var C=HG(this);if(this.castSession_){if(C.volume!=e){var w=Math.round(e)/100;this.castSession_.setReceiverVolumeLevel(w,(0,_.uZ)(function(){Sr("set receiver volume: "+w)},this),(0,_.uZ)(function(){this.warn_("failed to set receiver volume.")},this))}C.muted!=z&&this.castSession_.setReceiverMuted(z,(0,_.uZ)(function(){Sr("set receiver muted: "+z)},this),(0,_.uZ)(function(){this.warn_("failed to set receiver muted.")},this))}else{var K={volume:e,
muted:z};C.volume!=-1&&(K.delta=e-C.volume);vG(this,"setVolume",K)}C.muted=z;C.volume=e;WG(this,C)}else IF(this,_.xk(this.setVolume,e,z))};
_.Y.setAudioTrack=function(e,z){Uh(this)?(z=z.getLanguageInfo().getId(),vG(this,"setAudioTrack",{videoId:e,audioTrackId:z}),e=HG(this),e.audioTrackId=z,WG(this,e)):IF(this,_.xk(this.setAudioTrack,e,z))};
_.Y.addVideo=function(e){Uh(this)?vG(this,"addVideo",{videoId:e}):IF(this,_.xk(this.addVideo,e))};
_.Y.addPlaylist=function(e){Uh(this)?vG(this,"addVideos",{listId:e}):IF(this,_.xk(this.addPlaylist,e))};
_.Y.addVideos=function(e){e.length==0?this.warn_("Ignore add videos request due to empty list"):Uh(this)?vG(this,"addVideos",{videoIds:e.join(",")}):IF(this,_.xk(this.addVideos,e))};
_.Y.JSC$20347_removeVideo=function(e){Uh(this)?vG(this,"removeVideo",{videoId:e}):IF(this,_.xk(this.JSC$20347_removeVideo,e))};
_.Y.JSC$20347_insertVideo=function(e){Uh(this)?vG(this,"insertVideo",{videoId:e}):IF(this,_.xk(this.JSC$20347_insertVideo,e))};
_.Y.playVideo=function(e,z,C,w,K,G,X){w=w===void 0?null:w;K=K===void 0?null:K;G=G===void 0?null:G;X=X===void 0?null:X;var J=HG(this),q={videoId:e};C!==void 0&&(q.currentIndex=C);vD3(J,e,C||0);z!==void 0&&(rR(J,z),q.currentTime=z);w&&(q.listId=w);K&&(q.playerParams=K);G&&(q.clickTrackingParams=G);X&&(q.locationInfo=(0,_.c2)(X));vG(this,"setPlaylist",q);w||WG(this,J)};
_.Y.nextVideo=function(e,z){if(Uh(this)){if(e&&z){var C=HG(this);vD3(C,e,z);WG(this,C)}vG(this,"next")}else IF(this,_.xk(this.nextVideo,e,z))};
_.Y.clearPlaylist=function(){if(Uh(this)){vG(this,"clearPlaylist");var e=HG(this);e.reset();WG(this,e);this.publish("remotePlayerChange")}else IF(this,this.clearPlaylist)};
_.Y.dispose=function(){if(this.state_!=3){var e=this.state_;this.state_=3;this.publish("proxyStateChange",e,this.state_)}_.X_.prototype.dispose.call(this)};
_.Y.disposeInternal=function(){h5o(this);this.connection_=null;this.actionQueue_.clear();P_C(this,null);_.X_.prototype.disposeInternal.call(this)};
var WoY=function(e){_.oX("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(z){this.contextSubscriptions_.push(this.connection_.subscribe(z,_.xk(this.onProxyEvent_,z),this))},e)},h5o=function(e){_.oX(e.contextSubscriptions_,function(z){this.connection_.unsubscribeByKey(z)},e);
e.contextSubscriptions_.length=0},Uh=function(e){return e.getState()==1},IF=function(e,z){e.actionQueue_.getCount()<50&&e.actionQueue_.enqueue(z)},Lo5=function(e,z,C){var w=HG(e);
rR(w,C);w.playerState!=-1E3&&(w.playerState=z);WG(e,w)},vG=function(e,z,C){e.connection_.sendMessage(z,C)},WG=function(e,z){h5o(e);
e.connection_.setPlayerContextData(Iqo(z));WoY(e)};
Z1.prototype.setState_=function(e){if((e!=this.state_||e==2)&&this.state_!=3&&e!=0){var z=this.state_;this.state_=e;this.publish("proxyStateChange",z,e);if(e==1)for(;!this.actionQueue_.isEmpty();)e=this.actionQueue_,oXY(e),e.front_.pop().apply(this);else e==3&&this.dispose()}};
Z1.prototype.onProxyEvent_=function(e,z){this.publish(e,z)};
var P_C=function(e,z){e.castSession_&&(e.castSession_.removeUpdateListener(e.boundCastStatusListener_),e.castSession_.removeMediaListener(e.boundCastMediaListener_),e.onCastMediaChange_(null));e.castSession_=z;if(e.castSession_&&(Sr("Setting cast session: "+e.castSession_.sessionId),e.castSession_.addUpdateListener(e.boundCastStatusListener_),e.castSession_.addMediaListener(e.boundCastMediaListener_),e.castSession_.media.length))e.onCastMediaChange_(e.castSession_.media[0])};
Z1.prototype.onCastStatusUpdate_=function(e){if(!e)this.onCastMediaChange_(null),P_C(this,null);else if(this.castSession_.receiver.volume){e=this.castSession_.receiver.volume;var z=HG(this),C=Math.round(100*e.level||0);if(z.volume!=C||z.muted!=e.muted)Sr("Cast volume update: "+e.level+(e.muted?" muted":"")),z.volume=C,z.muted=!!e.muted,WG(this,z)}};
Z1.prototype.onCastMediaChange_=function(e){Sr("Cast media: "+!!e);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=e)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Oav(this),this.publish("remotePlayerChange")};
var Oav=function(e){var z=e.castMedia_.media,C=e.castMedia_.customData;if(z&&C){var w=HG(e);z.contentId!=w.videoId&&Sr("Cast changing video to: "+z.contentId);w.videoId=z.contentId;w.playerState=C.playerState;rR(w,e.castMedia_.getEstimatedTime());WG(e,w)}else Sr("No cast media video. Ignoring state update.")};
Z1.prototype.onCastMediaUpdate_=function(e){if(e)Oav(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Z1.prototype.onCloudviewAvailabilityChange_=function(){var e=QP5();e&&P_C(this,e)};
Z1.prototype.warn_=function(e){f6("CP",e)};
var R5o=function(e,z,C){return(0,_.uZ)(function(w){this.warn_("Failed to "+z+" with cast v2 channel. Error code: "+w.code);w.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+z+" using MDx browser channel."),vG(this,z,C))},e)};var p6=function(e,z,C,w){w=w===void 0?!1:w;_.X_.call(this);var K=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$20352_http_=e;this.enableConnectWithInitialState_=w;this.listeners_.push(_.lk(window,"beforeunload",function(){K.JSC$20355_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new jr;this.currentScreenId_=z.id;this.currentScreenIdType_=z.idType;this.channelService=frb(this.JSC$20352_http_,C,this.JSC$20355_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){EDo(K)});
this.channelService.listen("channelClosed",function(){PG("Channel closed");isNaN(K.connectTimerId_)?LUf(!0):LUf();K.dispose()});
this.channelService.listen("channelError",function(G){LUf();isNaN(K.getReconnectTimeout_())?(G==1&&K.currentScreenIdType_=="shortLived"&&K.publish("browserChannelAuthError",G),PG("Channel error: "+G+" without reconnection"),K.dispose()):(K.reconnecting_=!0,PG("Channel error: "+G+" with reconnection in "+K.getReconnectTimeout_()+" ms"),Fo$(K,2))});
this.channelService.listen("channelMessage",function(G){VRo(K,G)});
this.channelService.setLoungeToken(z.token);this.subscribe("remoteQueueChange",function(){var G=K.playerContext_.videoId;MoW()&&_.WJ("yt-remote-session-video-id",G)})};
_.U(p6,_.X_);
p6.prototype.connect=function(e,z){if(z){var C=z.listId,w=z.videoId,K=z.videoIds,G=z.playerParams,X=z.clickTrackingParams,J=z.index,q={videoId:w},T=z.currentTime,Q=z.locationInfo;z=z.loopMode;T!==void 0&&(q.currentTime=T<=5?0:T);G&&(q.playerParams=G);Q&&(q.locationInfo=Q);X&&(q.clickTrackingParams=X);C&&(q.listId=C);K&&K.length>0&&(q.videoIds=K.join(","));J!==void 0&&(q.currentIndex=J);this.enableConnectWithInitialState_&&(q.loopMode=z||"LOOP_MODE_OFF");C&&(this.playerContext_.listId=C);this.playerContext_.videoId=
w;this.playerContext_.index=J||0;this.playerContext_.state=3;rR(this.playerContext_,T);this.autoplayMode_="UNSUPPORTED";C=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";PG("Connecting with "+C+" and params: "+(0,_.c2)(q));this.channelService.connect({method:C,params:(0,_.c2)(q)},e,IrL())}else PG("Connecting without params"),this.channelService.connect({},e,IrL());fqq(this)};
p6.prototype.setLoungeToken=function(e){this.channelService.setLoungeToken(e)};
p6.prototype.dispose=function(){this.isDisposed()||(_.lM("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Fo$(this,3));_.X_.prototype.dispose.call(this)};
p6.prototype.disposeInternal=function(){S$Y(this);uQY(this);djf(this);_.Wi(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Wi(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.rE7(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.X_.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var DjZ=function(e){return _.OE(e.connectedDevices_,function(z){return z.type=="LOUNGE_SCREEN"})},PG=function(e){f6("conn",e)},Fo$=function(e,z){e.publish("proxyStateChange",z)},fqq=function(e){e.connectTimerId_=_.U3(function(){PG("Connecting timeout");
e.JSC$20355_disconnect_(1)},2E4)},S$Y=function(e){_.Wi(e.connectTimerId_);
e.connectTimerId_=NaN},djf=function(e){_.Wi(e.reconnectedCheckScreenTimeout_);
e.reconnectedCheckScreenTimeout_=NaN},N_Y=function(e){uQY(e);
e.playingSyncTimerId_=_.U3(function(){iaf(e,"getNowPlaying")},2E4)},uQY=function(e){_.Wi(e.playingSyncTimerId_);
e.playingSyncTimerId_=NaN},EDo=function(e){PG("Channel opened");
e.reconnecting_&&(e.reconnecting_=!1,djf(e),e.reconnectedCheckScreenTimeout_=_.U3(function(){PG("Timing out waiting for a screen.");e.JSC$20355_disconnect_(1)},15E3))},B_b=function(e,z){var C=null;
if(z){var w=DjZ(e);w&&(C={clientName:w.clientName,deviceMake:w.brand,deviceModel:w.model,osVersion:w.osVersion})}_.lM("yt.mdx.remote.remoteClient_",C);z&&(S$Y(e),djf(e));C=e.channelService.isChannelOpened()&&isNaN(e.connectTimerId_);z==C?z&&(Fo$(e,1),iaf(e,"getSubtitlesTrack")):z?(e.getOtherConnectedRemoteId_()&&e.playerContext_.reset(),Fo$(e,1),iaf(e,"getNowPlaying"),s_Z(e)):e.JSC$20355_disconnect_(1)},tRL=function(e,z){var C=z.params.videoId;
delete z.params.videoId;C==e.playerContext_.videoId&&(_.de.isEmpty(z.params)?e.playerContext_.trackData=null:e.playerContext_.trackData=z.params,e.publish("remotePlayerChange"))},gD$=function(e,z,C){var w=z.params.videoId||z.params.video_id,K=parseInt(z.params.currentIndex,10);
e.playerContext_.listId=z.params.listId||e.playerContext_.listId;vD3(e.playerContext_,w,K);e.publish("remoteQueueChange",C)},j_E=function(e,z){z.params=z.params||{};
gD$(e,z,"NOW_PLAYING_MAY_CHANGE");e.onStateChange_(z);e.publish("autoplayDismissed")};
p6.prototype.onStateChange_=function(e){var z=parseInt(e.params.currentTime||e.params.current_time,10);rR(this.playerContext_,isNaN(z)?0:z);z=parseInt(e.params.state,10);z=isNaN(z)?-1:z;z==-1&&this.playerContext_.playerState==-1E3&&(z=-1E3);this.playerContext_.playerState=z;z=Number(e.params.loadedTime);this.playerContext_.loadedTime=isNaN(z)?0:z;z=Number(e.params.duration);this.playerContext_.duration_=isNaN(z)?0:z;z=this.playerContext_;var C=Number(e.params.liveIngestionTime);z.liveIngestionTime_=
C;z.isLive_=isNaN(C)?!1:!0;z=this.playerContext_;C=Number(e.params.seekableStartTime);e=Number(e.params.seekableEndTime);z.seekableStart_=isNaN(C)?0:C;z.seekableEnd_=isNaN(e)?0:e;this.playerContext_.playerState==1?N_Y(this):uQY(this);this.publish("remotePlayerChange")};
p6.prototype.onAdStateChange_=function(e){if(this.playerContext_.playerState!=-1E3){var z=1085;switch(parseInt(e.params.adState,10)){case 1:z=1081;break;case 2:z=1084;break;case 0:z=1083}this.playerContext_.playerState=z;e=parseInt(e.params.currentTime,10);rR(this.playerContext_,isNaN(e)?0:e);this.publish("remotePlayerChange")}};
var yFl=function(e,z){var C=z.params.muted=="true";e.playerContext_.volume=parseInt(z.params.volume,10);e.playerContext_.muted=C;e.publish("remotePlayerChange")},cFl=function(e,z){e.autoplayVideoId_=z.params.videoId;
e.publish("nowAutoplaying",parseInt(z.params.timeout,10))},AFl=function(e,z){e.autoplayVideoId_=z.params.videoId||null;
e.publish("autoplayUpNext",e.autoplayVideoId_)},Zaf=function(e,z){e.autoplayMode_=z.params.autoplayMode;
e.publish("autoplayModeChange",e.autoplayMode_);e.autoplayMode_=="DISABLED"&&e.publish("autoplayDismissed")},pS5=function(e,z){var C=z.params.hasNext=="true";
e.playerContext_.hasPrevious=z.params.hasPrevious=="true";e.playerContext_.hasNext=C;e.publish("previousNextChange")};
p6.prototype.isCapabilitySupportedOnConnectedDevices_=function(e){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var z=_.b(this.connectedDevices_),C=z.next();!C.done;C=z.next())if(!C.value.capabilities.has(e))return!1;return!0};
var VRo=function(e,z){z=z.message;z.params?PG("Received: action="+z.action+", params="+(0,_.c2)(z.params)):PG("Received: action="+z.action+" {}");switch(z.action){case "loungeStatus":z=(0,_.rN)(z.params.devices);e.connectedDevices_=_.i4(z,function(w){return new qW(w)});
z=!!_.OE(e.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"});
B_b(e,z);z=e.isCapabilitySupportedOnConnectedDevices_("mlm");e.publish("multiStateLoopEnabled",z);break;case "loungeScreenDisconnected":OmZ(e.connectedDevices_,function(w){return w.type=="LOUNGE_SCREEN"});
B_b(e,!1);break;case "remoteConnected":var C=new qW((0,_.rN)(z.params.device));_.OE(e.connectedDevices_,function(w){return w.equals(C)})||_.L7k(e.connectedDevices_,C);
break;case "remoteDisconnected":C=new qW((0,_.rN)(z.params.device));OmZ(e.connectedDevices_,function(w){return w.equals(C)});
break;case "gracefulDisconnect":break;case "playlistModified":gD$(e,z,"QUEUE_MODIFIED");break;case "nowPlaying":j_E(e,z);break;case "onStateChange":e.onStateChange_(z);break;case "onAdStateChange":e.onAdStateChange_(z);break;case "onVolumeChanged":yFl(e,z);break;case "onSubtitlesTrackChanged":tRL(e,z);break;case "nowAutoplaying":cFl(e,z);break;case "autoplayDismissed":e.publish("autoplayDismissed");break;case "autoplayUpNext":AFl(e,z);break;case "onAutoplayModeChanged":Zaf(e,z);break;case "onHasPreviousNextChanged":pS5(e,
z);break;case "requestAssistedSignIn":e.publish("assistedSignInRequested",z.params.authCode);break;case "onLoopModeChanged":e.publish("loopModeChange",z.params.loopMode);break;default:PG("Unrecognized action: "+z.action)}};
_.Y=p6.prototype;_.Y.getProxyState_=function(){var e=3;this.isDisposed()||(e=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(e=1):e=2);return e};
_.Y.JSC$20355_disconnect_=function(e){PG("Disconnecting with "+e);_.lM("yt.mdx.remote.remoteClient_",null);S$Y(this);this.publish("beforeDisconnect",e);e==1&&LUf();this.channelService.disconnect(e);this.dispose()};
_.Y.getPlayerContextData_=function(){var e=this.playerContext_;this.clientVideoId_&&(e=this.playerContext_.clone(),vD3(e,this.clientVideoId_,e.index));return Iqo(e)};
_.Y.setPlayerContextData_=function(e){var z=this,C=new jr(e);C.videoId&&C.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=C.videoId,_.Wi(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.U3(function(){if(z.clientVideoId_){var K=z.clientVideoId_;z.clientVideoId_=null;z.playerContext_.videoId!=K&&iaf(z,"getNowPlaying")}},5E3));
var w=[];this.playerContext_.listId==C.listId&&this.playerContext_.videoId==C.videoId&&this.playerContext_.index==C.index||w.push("remoteQueueChange");this.playerContext_.playerState==C.playerState&&this.playerContext_.volume==C.volume&&this.playerContext_.muted==C.muted&&Ujq(this.playerContext_)==Ujq(C)&&(0,_.c2)(this.playerContext_.trackData)==(0,_.c2)(C.trackData)||w.push("remotePlayerChange");this.playerContext_.reset(e);_.oX(w,function(K){this.publish(K)},this)};
_.Y.getOtherConnectedRemoteId_=function(){var e=this.channelService.getDeviceId(),z=_.OE(this.connectedDevices_,function(C){return C.type=="REMOTE_CONTROL"&&C.id!=e});
return z?z.id:""};
_.Y.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.Y.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.Y.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.Y.JSC$20355_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var s_Z=function(e){_.Wi(e.idleDisconnectTimerId_);e.idleDisconnectTimerId_=_.U3(function(){e.JSC$20355_disconnect_(1)},864E5)},iaf=function(e,z,C){C?PG("Sending: action="+z+", params="+(0,_.c2)(C)):PG("Sending: action="+z);
e.channelService.sendMessage(z,C)};
p6.prototype.sendMessageWithUserAction_=function(e,z){iaf(this,e,z);s_Z(this)};
p6.prototype.JSC$20355_getXsrfToken_=function(){var e=_.E3.get("SAPISID","")||_.E3.get("__Secure-1PAPISID",void 0)||"",z=_.E3.get("__Secure-3PAPISID","")||"";if(!e&&!z)return"";e=_.FY(_.V4(e),2);z=_.FY(_.V4(z),2);return _.FY(_.V4(","+e+","+z),2)};
p6.prototype.subscribe=p6.prototype.subscribe;p6.prototype.unsubscribeByKey=p6.prototype.unsubscribeByKey;p6.prototype.getProxyState=p6.prototype.getProxyState_;p6.prototype.disconnect=p6.prototype.JSC$20355_disconnect_;p6.prototype.getPlayerContextData=p6.prototype.getPlayerContextData_;p6.prototype.setPlayerContextData=p6.prototype.setPlayerContextData_;p6.prototype.getOtherConnectedRemoteId=p6.prototype.getOtherConnectedRemoteId_;p6.prototype.getReconnectTimeout=p6.prototype.getReconnectTimeout_;
p6.prototype.getAutoplayMode=p6.prototype.getAutoplayMode_;p6.prototype.getAutoplayVideoId=p6.prototype.getAutoplayVideoId_;p6.prototype.reconnect=p6.prototype.JSC$20355_reconnect_;p6.prototype.sendMessage=p6.prototype.sendMessageWithUserAction_;p6.prototype.getXsrfToken=p6.prototype.JSC$20355_getXsrfToken_;p6.prototype.isCapabilitySupportedOnConnectedDevices=p6.prototype.isCapabilitySupportedOnConnectedDevices_;var ibE=function(e){ux.call(this,"ScreenServiceProxy");this.instance_=e;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.uZ)(this.JSC$20358_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.uZ)(this.onOnlineScreenChange_,this)))};
_.U(ibE,ux);_.Y=ibE.prototype;_.Y.getScreens=function(e){return this.instance_.$_gs(e)};
_.Y.contains=function(e){return!!this.instance_.$_c(e)};
_.Y.get=function(e){return this.instance_.$_g(e)};
_.Y.start=function(){this.instance_.$_st()};
_.Y.add=function(e,z,C){this.instance_.$_a(e,z,C)};
_.Y.remove=function(e,z,C){this.instance_.$_r(e,z,C)};
_.Y.updateName=function(e,z,C,w){this.instance_.$_un(e,z,C,w)};
_.Y.disposeInternal=function(){for(var e=this.subscriptionKeys_.length,z=0;z<e;++z)this.instance_.$_ubk(this.subscriptionKeys_[z]);this.subscriptionKeys_.length=0;this.instance_=null;ux.prototype.disposeInternal.call(this)};
_.Y.JSC$20358_onScreenChange_=function(){this.publish("screenChange")};
_.Y.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
ix.prototype.$_st=ix.prototype.start;ix.prototype.$_gspc=ix.prototype.JSC$20317_getScreenByPairingCode;ix.prototype.$_gsppc=ix.prototype.JSC$20317_getScreenByPollingPairingCode;ix.prototype.$_c=ix.prototype.contains;ix.prototype.$_g=ix.prototype.get;ix.prototype.$_a=ix.prototype.add;ix.prototype.$_un=ix.prototype.updateName;ix.prototype.$_r=ix.prototype.remove;ix.prototype.$_gs=ix.prototype.getScreens;ix.prototype.$_gos=ix.prototype.JSC$20317_getOnlineScreens;ix.prototype.$_s=ix.prototype.subscribe;
ix.prototype.$_ubk=ix.prototype.unsubscribeByKey;var Vvv=null,sPZ=!1,Mv5=null,y0=null,DI3=null,cd=[];var eq3=new _.zE("yt-menu"),zqq=function(){},wXW=function(e,z,C){e=z=="right-click"?C.rightClickMenuPopupHint:C.menuPopupHint;
if(!(CIl(z)>10))return z=z||"default",eq3.set(z+"-impression",CIl(z)+1),e},CIl=function(e){return parseInt(eq3.get((e||"default")+"-impression")||0,10)};
_.qI(zqq);var KC3=function(){this.contexts_=new WeakMap;this.JSC$20364_networkService_=this.activeContext_=null},o7Y=function(e,z,C){var w=e.contexts_.get(z);
w||(w=new brW(e.JSC$20364_networkService_),e.contexts_.set(z,w));e.activeContext_=w;C&&e.activeContext_.reset();e.activeContext_.start();return e.activeContext_};var RF=function(){};
RF.prototype.enqueue=function(){var e=this,z;return _.k(function(C){if(e.isCounterfactual())return(z=e.getCounterfactualData())&&e.shouldLogCounterfactualImpression()&&e.sendImpressionEndpoints(z),C.return();e.doEnqueue();_.E_(C)})};
RF.prototype.sendImpressionEndpoints=function(e){_.G4.getInstance().triggerOptionalAction("yt-service-request",{},e[0])};var LS=function(e,z){this.renderer=e;this.page=z};
_.U(LS,RF);LS.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
LS.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
LS.prototype.shouldLogCounterfactualImpression=function(){return!0};
LS.prototype.doEnqueue=function(){var e=_.K7(this.page);e&&e.pause();this.renderer.impressionCommand&&_.G4.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.wu(_.G4.getInstance(),[this.renderer.promoCommand],this.page)};var GY3=function(e,z){this.renderer=e;this.resolver=_.cj();this.JSC$20376_enforcementCounter=new _.aIa;z?this.JSC$20376_playerManager=_.K7(z):this.JSC$20376_playerManager=null;_.l6(1,!0)};
_.U(GY3,RF);_.Y=GY3.prototype;_.Y.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var e=[];this.renderer.impressionEndpoints.forEach(function(z){(z=_.SQ(z))&&e.push(z)});
return e}};
_.Y.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.Y.shouldLogCounterfactualImpression=function(){var e=_.OwL();e?(this.JSC$20376_enforcementCounter.increment("POPUP"),_.l6(3)):_.l6(2);return e};
_.Y.cancel=function(){this.resolver.promise.cancel()};
_.Y.doEnqueue=function(){var e=this;_.OwL()?(this.JSC$20376_enforcementCounter.increment("POPUP"),_.l6(3),YbZ(this)):this.JSC$20376_playerManager?(this.resolver.promise.then(function(){YbZ(e)}),b5v(this.resolver,this.JSC$20376_playerManager)):_.l6(2)};
var b5v=function(e,z){var C=_.cj();z.getPlayerPromise().then(function(w){C.resolve(w)});
C.promise.then(function(w){w.addEventListener("onAbnormalityDetected",e.resolve);_.gB(e.promise,function(){w.removeEventListener("onAbnormalityDetected",e.resolve)})});
e.promise.thenCatch(function(){C.promise.cancel()})},YbZ=function(e){_.l6(3);
var z={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:e.renderer}};z=_.G4.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:z},{});Promise.all(z).then(function(){XXY();e.JSC$20376_playerManager&&e.JSC$20376_playerManager.pause()})},XXY=function(){QoW(function(e,z){_.BOf(e,z);
e===0?_.l6(7):_.l6(4)})};var Je3=function(e,z){this.renderer=e;this.page=z;this.resolver=_.cj()};
_.U(Je3,RF);_.Y=Je3.prototype;_.Y.cancel=function(){this.resolver.promise.cancel()};
_.Y.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Y.isCounterfactual=function(){return!this.renderer.isVisible};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var e=this;this.resolver.promise.then(function(){var C={popup:{mealbarPromoRenderer:e.renderer},popupType:"MEALBAR"};_.G4.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var z=_.K7(this.page);z&&kYo(this.resolver,z)}break;default:this.resolver.resolve()}};
var kYo=function(e,z){var C=_.cj();z.getPlayerPromise().then(function(w){C.resolve(w)});
C.promise.then(function(w){w.addEventListener("onAdEnd",e.resolve);_.gB(e.promise,function(){w.removeEventListener("onAdEnd",e.resolve)})});
e.promise.thenCatch(function(){C.promise.cancel()})};var qbb=function(e,z){this.renderer=e;this.page=z};
_.U(qbb,RF);_.Y=qbb.prototype;_.Y.cancel=function(){this.JSC$20384_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20384_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20384_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Y.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.Y.isCounterfactual=function(){return!this.renderer.isVisible};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var e=this,z,C;((z=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(C=z.playbackUpsellDialogTriggerConditionData)==null?void 0:C.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20384_downloadedVideosCountSelectorUnsubscriber=_.K3(_.eB(),$TL,function(w,K){w>K&&(x7v(e),e.cancel())}):x7v(this)};
var x7v=function(e){var z={popup:{upsellDialogRenderer:e.renderer},popupType:"MODAL"};_.G4.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:z},{});(e=_.K7(e.page))&&e.pause()};var hy={},Tsv=(hy.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",hy.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",hy.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",hy.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",hy.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",hy.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",hy.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",hy),$7a=function(e,z){this.renderer=e;this.targetManager=
z};
_.U($7a,RF);_.Y=$7a.prototype;_.Y.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20391_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20391_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20391_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.Y.getCounterfactualData=function(){if(this.isCounterfactual()){var e;return(e=this.renderer.promoConfig)==null?void 0:e.impressionEndpoints}};
_.Y.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.Y.shouldLogCounterfactualImpression=function(){return!0};
_.Y.doEnqueue=function(){var e=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20391_downloadedVideosCountSelectorUnsubscriber=_.K3(_.eB(),$TL,function(z,C){e.renderer.targetId&&z>C&&(RSb(e.targetManager,e.renderer.targetId,lZC(e)),e.cancel())});
break;default:RSb(this.targetManager,this.renderer.targetId,lZC(this))}};
var lZC=function(e){var z;if((z=e.renderer.suggestedPosition)==null?0:z.type)var C=Tsv[e.renderer.suggestedPosition.type];C||(C="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:e.renderer},popupType:"HINT",position:C}}};var Qjl=function(){this.previousPage=null},m7b;
Qjl.prototype.registerPromoCommand=function(e,z){aZ$(this,void 0,void 0,_.r(e.roadblock,XpY),void 0,void 0,z)};
var aZ$=function(e,z,C,w,K,G,X){e.previousPage!==X&&e.pendingTooltipPromo&&e.pendingTooltipPromo.cancel();e.previousPage=X;K?(e.pendingEnforcementPromo&&e.pendingEnforcementPromo.cancel(),e.pendingEnforcementPromo=new GY3(K,X),e.pendingEnforcementPromo.enqueue()):G?(e.pendingCommandWrapperPromo=new LS(G,X),e.pendingCommandWrapperPromo.enqueue()):w?(e.pendingRoadblockPromo&&e.pendingRoadblockPromo.cancel(),e.pendingRoadblockPromo=new qbb(w,X),e.pendingRoadblockPromo.enqueue()):z?(e.pendingMealbarPromo&&
e.pendingMealbarPromo.cancel(),e.pendingMealbarPromo=new Je3(z,X),e.pendingMealbarPromo.enqueue()):C&&(e.pendingTooltipPromo&&e.pendingTooltipPromo.cancel(),e.pendingTooltipPromo=new $7a(C,_.p3()),e.pendingTooltipPromo.enqueue())},n75=function(){m7b||(m7b=new Qjl);
return m7b};var jPb=!1;var Lxa=function(e,z){var C=_.j5("SESSION_INDEX");this.actionToken_=e;this.commonToken_=z;this.sessionIndex_=C},RlC=function(e){var z=_.cj(),C=_.pd("payments.business.integration.bootstrap"),w=_.pd("payments.business.integration"),K=w.Style.create().withMaterialDesignStyle(),G=w.mashupMode.popup("instrument-manager");
C.asMashupMode(G).usingUserIndex(e.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(K).inStandaloneContext(w.standaloneContextAuthId.forUserId()).instrumentManager(e.actionToken_,e.commonToken_.length>0?e.commonToken_:void 0,function(X){var J=X.instrumentId;J?z.resolve(J):(J=_.pd("payments.business.integration.scenario.InstrumentManager"),z.reject(X.errorCode&&X.errorCode===J.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(X){_.AR(X);
z.reject("instrumentManagerLoadError")});
return z.promise};var zF=function(e,z,C){this.payloadName="transactionFlowFailed";this.payload={errorType:e,serializedTransactionFlowLoggingParams:z,isUserDismiss:C===void 0?!1:C}};
_.lM("yt.ypc.shared.YpcTransactionFlowError",zF);var Oh=function(){return _.rO.apply(this,arguments)||this};
_.U(Oh,_.rO);Oh.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Oh.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Oh.prototype.onErrorMessageDismiss=Oh.prototype.onErrorMessageDismiss;_.d([_.F({readOnly:!0,observer:"errorRendererChanged"}),_.B("design:type",Object)],Oh.prototype,"errorRenderer",void 0);_.d([_.Qi("yt-live-chat-error-message-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Oh.prototype,"onErrorMessageDismiss",null);_.d([_.HI()],Oh);var MzC=[Oh.prototype];var re5;var H5$;var U75=new _.zE("yt-live-chat"),v7E=new Map;v7E.set("timestamp_toggle","show-timestamps");v7E.set("reactions_toggle","allow-reactions");var Eh=function(){return _.V.apply(this,arguments)||this};
_.U(Eh,_.V);_.Y=Eh.prototype;_.Y.menuItemIdentifierChanged=function(){var e;(e=this.data)!=null&&e.menuItemIdentifier&&(e=v7E.get(this.data.menuItemIdentifier))&&(_.M("enable_lwe_web_mute")?(e=U75.get(e),this.isToggled=!(e===void 0?!this.data.isToggled:!e)):this.isToggled=U75.get(e))};
_.Y.onFocus=function(){this.toggleButton.focus()};
_.Y.onTap=function(){var e=this.data.command;e&&this.componentBehavior.resolveCommand(e)};
_.Y.computeText=function(e,z,C){return this.componentBehavior.getSimpleString(e?C:z)};
_.Y.computeIcon=function(e,z,C){return(e=e?C:z)&&e.iconType?_.qF(e.iconType):""};
Eh.prototype.onTap=Eh.prototype.onTap;Eh.prototype.onFocus=Eh.prototype.onFocus;Eh.prototype.menuItemIdentifierChanged=Eh.prototype.menuItemIdentifierChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Eh.prototype,"componentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Eh.prototype,"data",void 0);
_.d([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],Eh.prototype,"icon",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Eh.prototype,"isToggled",void 0);_.d([_.nP("tp-yt-paper-toggle-button"),_.B("design:type",Object)],Eh.prototype,"toggleButton",void 0);_.d([_.mi("data.menuItemIdentifier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eh.prototype,"menuItemIdentifierChanged",null);
_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eh.prototype,"onFocus",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eh.prototype,"onTap",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Eh);
_.u(Eh,"yt-live-chat-toggle-renderer",function(){if(H5$===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;re5===void 0&&(re5=document.createElement("template"));var w=re5;C.call(z,w.content.cloneNode(!0),e.content.firstChild);H5$=e}e=H5$;return e},{mode:0});var IZL=new _.Mt("NAVIGATION_PROGRESS_TOKEN");var WC3={},PIb={},RqZ=(PIb[ABL.name]=!0,PIb),Fa=function(){var e=_.rO.apply(this,arguments)||this;e._noAccessors=!0;e.tabGesturesIsActive=!1;e.actionRouterIsRoot=!0;e.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"};e.pageTitle="";e.titleSuffix="YouTube";e.unseenNotificationCount=
0;e.hasNavigated=!1;e.hasSetScrollTopForNavigation=!1;e.pagePreparer=null;e.zwiebackInitJobId=0;e.dataUpdatePromise=null;e.loadDepsPromise=_.oS();e.hasPendingNavigation=!1;e.pendingPlayerOnResponseReceivedActions=[];return e};
_.U(Fa,_.rO);Fa.prototype.attached=function(){LCq(this);document.addEventListener("yt-navigate-cache",_.lE(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var e=VN();e.init();e.dispatchElement=this.hostElement};
var LCq=function(e,z){z=z===void 0?0:z;var C=_.lh().resolve(_.$B(_.cc));if(C)hqY(e,C);else{if(z>=5)throw Error("ul");setTimeout(function(){LCq(e,z+1)},0)}},hqY=function(e,z){z.addEventListener("yt-navigate-start",_.lE(e,e.onYtNavigateStart));
z.addEventListener("yt-navigate-finish",_.lE(e,e.onYtNavigateFinish));z.addEventListener("yt-navigate-error",_.lE(e,e.onYtNavigateError));z.addEventListener("yt-page-data-fetched",_.lE(e,e.onYtPageDataFetched))};
_.Y=Fa.prototype;_.Y.detached=function(){var e=_.lh().resolve(_.cc);e.removeEventListener("yt-navigate-start",_.lE(this,this.onYtNavigateStart));e.removeEventListener("yt-navigate-finish",_.lE(this,this.onYtNavigateFinish));e.removeEventListener("yt-navigate-error",_.lE(this,this.onYtNavigateError));e.removeEventListener("yt-page-data-fetched",_.lE(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.lE(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.Y.setPageOffset=function(e,z){e?_.eA(this.hostElement,"yt-set-page-offset",[e,z]):_.yG(Error("vl"))};
_.Y.setPageOffsetForNavigation=function(e,z){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(e,z))};
_.Y.onYtNavigateSetPageOffset=function(e,z){this.setPageOffsetForNavigation(z.page,z.offset)};
_.Y.getPageOffset=function(){var e=_.XC(this.hostElement).querySelector("#page-manager").getCurrentPage(),z=0;e&&(z=_.eA(this.hostElement,"yt-get-page-offset",[e])[0]);return z};
_.Y.onYtHistoryPop=function(e,z){if(_.cR("DISABLE_WARM_LOADS"))e.preventDefault(),window.location.reload();else{var C=_.lh().resolve(_.cc);C.hasPendingNavigation()&&e.preventDefault();C.cancelPendingNavigation();_.zj(this.hostElement,"yt-pending-navigation-cancelled");z.errorMsg&&(e=z.errorMsg.split(" - "),z=Error(e[0]),e.length==2&&e[1]&&(_.Zz(z,e[1]),_.AX(z)),window.location.reload())}};
_.Y.onYtHistoryLoad=function(e,z){var C=this;if(_.cR("DISABLE_WARM_LOADS"))window.location.reload();else{(e=z.endpoint)&&Object.keys(e).length||(e=null);var w=z.historyEntry,K=_.lh().resolve(_.cc),G=_.lh().resolve(_.wE),X=null;w&&w.rootData&&(X=w.rootData);var J=X&&O5v(X);!X||J||X.filler?e?(K.navigate(e,!0),E7b(this,e)):(z.legacyBorder||J||(z.JSC$30934_savedComponentState==null&&X==null?_.AX(new _.uh("Incomplete history entry",z.forward)):_.cn(new _.uh("Malformed history entry",z.JSC$30934_savedComponentState,
z.forward,X))),window.location.reload()):(_.ptN({isHot:!0}),_.Pf({webInfo:{navigationReason:"h"}}),_.Uck(),_.hg("srt"),_.hg("pdc"),this.cancelPendingTasks(),FCa(this,z.forward,X),X.player&&(X.player.loaded=!1),E7b(this,e),_.il4(K,e||{},X,2,{},!1,z).then(function(){C.setPageOffset(G.getCurrentPage(),w.scrollTop||0)}))}};
_.Y.initHistoryManager=function(e){if(!this.hasNavigated){this.hasNavigated=!0;var z=_.XC(this.hostElement).querySelector("#page-manager").getCurrentData();e=isNaN(e)?this.getPageOffset():e;var C=_.lh().resolve(_.cc).currentEndpoint;this.replaceState(C,z,e)}};
_.Y.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.Y.onYtNavigateStart=function(e,z){this.cancelPendingTasks();z.noProgressBar||(e=_.lh().resolve(_.$B(IZL)))&&e.start();e=this.hasPendingNavigation?null:this.data;var C=_.lh().resolve(_.wE),w,K,G;_.M("kevlar_use_vimio_behavior")&&!((w=z.endpoint)==null?0:(K=w.commandMetadata)==null?0:(G=K.webCommandMetadata)==null?0:G.ignoreNavigation)&&(w=C.getCurrentPage())&&w.disconnectVisibilityRoot();C.prepareForNavigation(z.pageType,z.endpoint);_.M("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.O2(1,
"pcl"),_.E2(this.pagePreparer,C.preparePage.bind(C,z.pageType,z.endpoint)));w=this.getPageOffset();this.initHistoryManager(w);z.reload||this.hasPendingNavigation?(z.pageType==="shorts"&&z.reload&&_.pi(this.hostElement,"yt-shorts-reset"),this.replaceState(z.endpoint,e,w)):(e==null?void 0:e.page)==="watch"&&z.pageType==="watch"&&_.M("kevlar_replace_watch_to_watch_history_state")?this.replaceState(z.endpoint,e,w):(e==null?void 0:e.page)!=="shorts"||z.pageType!=="shorts"||z.endpoint.reelWatchEndpoint.sequenceParams||
_.M("short_to_short_back_nav_killswitch")?z.type!="navigate-back"&&z.type!="navigate-forward"&&(z.pageType==="shorts"&&_.pi(this.hostElement,"yt-shorts-reset"),this.saveAndPush(z.url,z.endpoint,e,w)):this.replaceState(z.endpoint,e,0);this.hasPendingNavigation=!0};
var Vz5=function(e){e.hasPendingNavigation=!1;(e=_.lh().resolve(_.$B(IZL)))&&e.finish()};
Fa.prototype.onYtNavigateError=function(e,z){Vz5(this);e=this.get("endpoint.commandMetadata.webCommandMetadata.url",z);var C=_.YB(window.location.href);e&&!C.pbjreload&&(z=z.navigationErrorReason||"10",_.M("kevlar_parent_on_pbjreload")&&(C={csn:_.Pr()},this.get("data.endpoint.clickTrackingParams")&&(C.itct=this.data.endpoint.clickTrackingParams),_.gN(e,C)),_.dP(_.bh(e,{pbjreload:z})))};
Fa.prototype.onYtNavigateCache=function(e,z){var C=this,w=z.url,K=z.endpoint,G=z.data;e=!!z.miniplayer;z=!!z.skipHistory;if(w&&K&&G){var X=this.getPageOffset(),J=this.data||null;z||this.saveAndPush(w,K,J,X);w=_.il4(_.lh().resolve(_.cc),K,G,e?4:3,{},e);e&&w.then(function(){C.dataUpdatePromise&&C.dataUpdatePromise.then(function(){var q=_.lh().resolve(_.wE);C.setPageOffset(q.getCurrentPage(),0)})})}};
Fa.prototype.onYtNavigateFinish=function(e,z){var C=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){fZL(C,z.fromHistory)})};
var fZL=function(e,z){Vz5(e);if(e.pendingPlayerOnResponseReceivedActions){for(var C=_.b(e.pendingPlayerOnResponseReceivedActions),w=C.next();!w.done;w=C.next())_.$p(w.value,e.hostElement);e.pendingPlayerOnResponseReceivedActions=[]}C=_.lh().resolve(_.wE);z||!e.hasNavigated||_.M("web_disable_scroll_on_navigate_finish")||((z=C.getCurrentPage())?z.is==="ytd-shorts"||e.tabGesturesIsActive||e.setPageOffsetForNavigation(z,0):_.AX(Error("wl")));_.BI(function(){_.BI(function(){_.hg("pda")})})};
Fa.prototype.onYtNavigate=function(e){if(!e.detail.endpoint){var z=new _.uh("Error: Missing yt-navigate endpoint from target:",e.target,e.target.nodeName);_.yG(z)}if(z=_.M("cold_missing_history"))z=VN(),z.init(!1),z=!(z.browserHistory.boundHistoryReplaceState&&z.browserHistory.boundHistoryPushState);if(z){_.g1("DISABLE_WARM_LOADS",!0);z=new _.uh("Failed to initialize history manager",this.getDebugString());var C=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
C?_.AX(z):_.yG(z)}z=e.detail.endpoint;var w,K;_.M("debug_forward_web_query_parameters")&&((w=z.commandMetadata)==null?0:(K=w.webCommandMetadata)==null?0:K.url)&&(z=JSON.parse(JSON.stringify(z)),z.commandMetadata.webCommandMetadata.url=_.HKk(z.commandMetadata.webCommandMetadata.url,window.location.search));e={type:0,command:z,form:{params:e.detail.params,tempData:e.detail.tempData||{},requestType:e.detail.type,createScreenConfig:e.detail.createScreenConfig,reload:e.detail.reload?e.detail.reload:!1,
requestForm:e.detail}};_.M("kevlar_yt_navigate_command_handler")?(w=_.lh().resolve(_.ms),e.form.skipDefaultElement=!0,w.resolveCommand(z,{form:e.form})):this.handleNavigate(e)};
Fa.prototype.handleNavigate=function(e){this.hasSetScrollTopForNavigation=!1;var z=_.lh().resolve(_.cc),C=e.form||{};z.navigate(e.command,C.reload,C.params,C.tempData,C.requestType,C.createScreenConfig,C.ignoreConfirmation,C.requestForm)&&E7b(this,e.command,C.tempData)};
Fa.prototype.onYtPageDataFetched=function(e,z){try{_.LPa().reset();this.data=z.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.lh().resolve(_.wE).updatePageData(this.data);var C=this.get("playerResponse.onResponseReceivedActions",this.data);C&&(C=Sb3(this,C));C&&_.KK(this.hostElement,C,this.hostElement);var w=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),K=this.get("response.responseContext.consistencyTokenJar",this.data);if(w||K){var G=_.Q7N(),X=(0,_.de.getValues)(G.tokenJars);w&&G.replace(X,w);K&&G.replace(X,K)}}catch(J){_.yG(J)}};
var E7b=function(e,z,C){try{e.onYtEndpointChangeHandler(z,C)}catch(w){_.yG(w)}};
_.Y=Fa.prototype;_.Y.onYtEndpointChangeHandler=function(){};
_.Y.setPageTitle=function(e){e=(this.pageTitle=e)?e+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+e};
_.Y.onYtUpdateTitle=function(e,z){this.setPageTitle(z)};
_.Y.setUnseenNotificationCount=function(e){this.unseenNotificationCount=e;this.setPageTitle(this.pageTitle)};
_.Y.handleUpdateNotificationsUnseenCountAction=function(e){_.r(e,EXY)&&((e=_.r(e,EXY).unseenCount)?this.setUnseenNotificationCount(e):this.setUnseenNotificationCount(0))};
_.Y.handleClearCookieAction=function(e){var z;(e=(z=_.r(e,RBL))==null?void 0:z.cookieName)&&_.NQk(e)};
_.Y.onYtUpdateUnseenNotificationCount=function(e,z){this.setUnseenNotificationCount(z)};
_.Y.loadData=function(e){var z=this;this.loadDepsPromise.then(function(){var C=_.lh().resolve(_.$B(_.cc));C||_.yG(Error("xl"));if(e&&e.response){if(!e.endpoint){var w=_.Sy(window.document.location.href)||"/",K="";if(w==="/"||w.startsWith("/?"))K="WEB_PAGE_TYPE_BROWSE";e.endpoint={commandMetadata:{webCommandMetadata:{url:w,webPageType:K,rootVe:3854}}}}_.il4(C,e.endpoint,e,5,{})}else e.endpoint?C.navigate(e.endpoint):C.navigate(_.wt);_.c5.cancelJob(z.zwiebackInitJobId);z.zwiebackInitJobId=_.c5.addLowPriorityJob(ydL)})};
var VN=function(){return _.lh().resolve(_.pB)};
Fa.prototype.getDebugString=function(){return VN().getDebugString()};
Fa.prototype.getThirdPartyManipulationSuspected=function(){return VN().getThirdPartyManipulationSuspected()};
Fa.prototype.replaceState=function(e,z,C){VN().saveAndReplace(e,z,C)};
Fa.prototype.saveAndPush=function(e,z,C,w){VN().saveAndPush(e,z,C,w)};
var O5v=function(e){return _.r(e.endpoint,_.N$)||_.r(e.endpoint,_.rP)?!0:!e||isNaN(e.expirationTime)?!1:(0,_.as)()>e.expirationTime},FCa=function(e,z,C){var w=e.get("response.trackingParams",C),K=_.Ip(),G=_.Pr();
if(w&&K&&G&&(w=e.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",C),!w&&C.rootVe&&(w=C.rootVe),K=z?"forwardButton":"backButton",z=e.get("playerResponse.topbar.desktopTopbarRenderer."+K+".buttonRenderer.command.clickTrackingParams",e.data),e=e.get("response.topbar.desktopTopbarRenderer."+K+".buttonRenderer.command.clickTrackingParams",e.data),z=(e=z||e)?_.v9(e):void 0,e=_.nm(),K=[_.oS(C)],_.jk(e,w,z,{dataPromises:K,csnToClone:C.csn}),C.graftedVes))for(C=
_.b(C.graftedVes),w=C.next();!w.done;w=C.next())_.yQ(e,w.value)};
Fa.prototype.onStoreGraftedVeAction=function(e){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(e)):_.AX(Error("yl"))};
var Sb3=function(e,z){return z.filter(function(C){for(var w in C)if(RqZ[w])return e.pendingPlayerOnResponseReceivedActions.push(C),!0;return!1})};
_.lB.Object.defineProperties(Fa.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Fa.prototype.onStoreGraftedVeAction=Fa.prototype.onStoreGraftedVeAction;Fa.prototype.loadData=Fa.prototype.loadData;Fa.prototype.onYtUpdateUnseenNotificationCount=Fa.prototype.onYtUpdateUnseenNotificationCount;Fa.prototype.handleClearCookieAction=Fa.prototype.handleClearCookieAction;Fa.prototype.handleUpdateNotificationsUnseenCountAction=Fa.prototype.handleUpdateNotificationsUnseenCountAction;Fa.prototype.setUnseenNotificationCount=Fa.prototype.setUnseenNotificationCount;
Fa.prototype.onYtUpdateTitle=Fa.prototype.onYtUpdateTitle;Fa.prototype.setPageTitle=Fa.prototype.setPageTitle;Fa.prototype.onYtEndpointChangeHandler=Fa.prototype.onYtEndpointChangeHandler;Fa.prototype.onYtPageDataFetched=Fa.prototype.onYtPageDataFetched;Fa.prototype.handleNavigate=Fa.prototype.handleNavigate;Fa.prototype.onYtNavigate=Fa.prototype.onYtNavigate;Fa.prototype.onYtNavigateFinish=Fa.prototype.onYtNavigateFinish;Fa.prototype.onYtNavigateCache=Fa.prototype.onYtNavigateCache;
Fa.prototype.onYtNavigateError=Fa.prototype.onYtNavigateError;Fa.prototype.onYtNavigateStart=Fa.prototype.onYtNavigateStart;Fa.prototype.cancelPendingTasks=Fa.prototype.cancelPendingTasks;Fa.prototype.initHistoryManager=Fa.prototype.initHistoryManager;Fa.prototype.onYtHistoryLoad=Fa.prototype.onYtHistoryLoad;Fa.prototype.onYtHistoryPop=Fa.prototype.onYtHistoryPop;Fa.prototype.onYtNavigateSetPageOffset=Fa.prototype.onYtNavigateSetPageOffset;Fa.prototype.setPageOffset=Fa.prototype.setPageOffset;
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Fa.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Fa.prototype,"data",void 0);_.d([_.Qi("yt-navigate-set-page-offset"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Fa.prototype,"onYtNavigateSetPageOffset",null);
_.d([_.Qi("yt-history-pop"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Fa.prototype,"onYtHistoryPop",null);_.d([_.Qi("yt-history-load"),_.B("design:type",Function),_.B("design:paramtypes",[Event,_.KKg]),_.B("design:returntype")],Fa.prototype,"onYtHistoryLoad",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Fa.prototype,"onYtNavigate",null);
_.d([_.Qi("yt-update-title"),_.B("design:type",Function),_.B("design:paramtypes",[Event,String]),_.B("design:returntype")],Fa.prototype,"onYtUpdateTitle",null);_.d([_.Qi("yt-update-unseen-notification-count"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Number]),_.B("design:returntype")],Fa.prototype,"onYtUpdateUnseenNotificationCount",null);_.d([_.HI()],Fa);WC3.YtdAppBehavior=[_.ch.YtActionHandlerBehavior,Fa.prototype];var fS=function(){var e=_.rO.apply(this,arguments)||this;e._noAccessors=!0;return e};
_.U(fS,_.rO);fS.prototype.ready=function(){var e=this;_.XC(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){e.onChange_()})};
fS.prototype.dataChanged_=function(){_.XC(this.hostElement).querySelector("#checkbox").checked=!1};
fS.prototype.onChange_=function(){var e=_.XC(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.pi(this.hostElement,"yt-dismissal-reason-"+e,this.data.feedbackToken)};
fS.prototype.dataChanged_=fS.prototype.dataChanged_;_.d([_.F(),_.B("design:type",Object)],fS.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fS.prototype,"dataChanged_",null);_.d([_.HI()],fS);var ucb=[fS.prototype];var St=function(){var e=_.rO.apply(this,arguments)||this;e.timeoutJobId=0;e.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return e};
_.U(St,_.rO);St.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
St.prototype.startTimeout=function(){var e=this,z=this.data&&this.data.displayDurationSeconds;z&&!this.timeoutJobId&&(this.timeoutJobId=_.Dz(_.c5,function(){_.eA(e.hostElement,"yt-close-popup-action",[e.is]);e.timeoutJobId=0},z*1E3))};
St.prototype.cancelTimeout=function(){_.c5.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
St.prototype.ytdHatsSurveyBehaviorDataChanged=St.prototype.ytdHatsSurveyBehaviorDataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],St.prototype,"ytActionHandlerBehavior",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],St.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.d([_.HI()],St);var d7$=[_.ch.YtActionHandlerBehavior,St.prototype];var D7a=function(e,z){var C;return((C=e.prefixMapping)==null?0:C[z])?e.prefixMapping[z]:e.SHARED_RENDERERS_.hasOwnProperty(z)?"yt":e.prefix},uu={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}};uu.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.M("kevlar_mealbar_above_player"),modern:!0,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"}};
uu.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};uu.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};uu.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
uu.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)"}};
uu.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};
uu.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};
uu.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};
uu.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.M("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
uu.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"}};uu.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};uu.TOAST={component:null,properties:{}};var i5Y=new function(e,z,C){this.supportedPopups=e;this.navigationEndpointPopupMap=z;this.popupTypeMap=C;this.supportedPopups=e;this.navigationEndpointPopupMap=z;this.popupTypeMap=C}({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:_.M("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"}),NsL=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!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$20442_popupConfig=uu;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 sj5=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.l2.getInstance()},dR=function(e,z){var C=e.pageNameToElement.get(z);
if(!C){switch(z){case "watch":var w=_.M("web_watch_force_learning_journey_for_testing")?_.hY("ytd-watch-learning-journey"):_.M("kevlar_watch_fixie")?_.hY("ytd-watch-fixie"):_.M("kevlar_watch_grid")?_.hY("ytd-watch-grid"):_.hY("ytd-watch-flexy");break;case "learning_journey_watch":w=_.hY("ytd-watch-learning-journey");break;case "shorts":w=_.hY("ytd-shorts");break;case "search":w=_.hY("ytd-search");break;case "channel":w=_.hY("ytd-browse");w.pageSubtype="channels";break;case "trending":w=_.hY("ytd-browse");
w.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":w=
_.hY("ytd-browse");w.pageSubtype=z;break;case "browse":w=_.hY("ytd-browse");break;default:_.AX(new _.uh("Error getting page element for type",z))}C=w;e.pageNameToElement.set(z,C)}return C};
sj5.prototype.preparePage=function(e,z,C){C&&(e=_.Q$(C)||e);if(e!=="watch"&&e!=="learning_journey_watch"){var w=this.elementPoolPopulator,K=e;K!=w.targetPage_&&w.pendingPages_.indexOf(K)>-1&&(w.targetPage_&&(w.pendingPages_.unshift(w.targetPage_),w.abort()),ONE(w,K),_.o9a(w,K))}if((w=dR(this,e))||!_.r(C,_.oO)){w.isAttached||w===z||(w.hidden=!0);if(!w.data&&(e!=="watch"&&e!=="learning_journey_watch"||!_.M("swatcheroo_page_pool_dont_provide_filler_data"))){var G;if(e=(G=_.j5("FILLER_DATA",{})[e])==
null?void 0:G.response)w.data=e}return w}};var Bsv=function(e){this.JSC$32916_clientRoot=e;this.playlistHandlerActionMap={"yt-add-to-playlist-command":KfW,"yt-end-playlist-command":olq,"yt-recover-playlist-command":Yya,"yt-refresh-playlist-command":JLq,"yt-playlist-remove-videos-action":bVa};_.YI(_.G4.getInstance(),this.playlistHandlerActionMap,this.JSC$32916_clientRoot);NSW()},tzv;var Db=function(e,z,C){this.apiKey=e;this.endpoint=z;this.confidenceThreshold=C===void 0?.5:C;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=z==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||z==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
z==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||z==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new kAf};
_.Y=Db.prototype;
_.Y.start=function(e){if(this.state===0)if(this.isOnline()){e.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=e.supportsHttpHeadersOverwriteParam);e.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=e.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.LK("voice_assistant");_.FV("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=e.languageCode||"en-US";this.supportsCrossDomainXhr=e.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=e.youtubeAssistantRequest||null;this.listeningHandler=e.listeningHandler||this.listeningHandler;this.audioDetectedHandler=e.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=e.stopHandler||this.stopHandler;this.completeHandler=e.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=e.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=e.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
e.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=e.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=e.accessToken;this.additionalHeaders=e.additionalHeaders||{};var z;this.prefetchResponseTimeoutMs=(z=e.prefetchResponseTimeoutMs)!=null?z:this.prefetchResponseTimeoutMs;g7$(this);this.startAudio();jj$(this)}else this.errorHandler("OFFLINE")};
_.Y.stop=function(e){var z=e===void 0?{}:e;e=z.logCancel===void 0?!0:z.logCancel;var C=z.logMicClosed===void 0?!0:z.logMicClosed;var w=z.handleError===void 0?!0:z.handleError;z=z.handleStop===void 0?!0:z.handleStop;this.state!==0&&(e&&iu("voz_cx"),NW(this,{logMicClosed:C,handleStop:z}),w&&this.errorHandler("ABORTED"))};
_.Y.getState=function(){return this.state};
_.Y.isSupported=function(){return!0};
_.Y.stopAudio=function(e){(e===void 0||e)&&iu("voz_mf")};
_.Y.startAudio=function(){iu("voz_vp");return _.oS(null)};
var yeC=function(e,z){e.channelOpen&&(e.state!==2&&(e.state=2,iu("voz_ss"),e.listeningHandler()),z=new Uint8Array(z),z='{ "audioIn": "'+_.FY(z)+'" }',e.channel.send(z))},NW=function(e,z){var C=z===void 0?{}:z;
z=C.logMicClosed===void 0?!0:C.logMicClosed;C=C.handleStop===void 0?!0:C.handleStop;e.vozEndOfDataTimeout>-1&&(clearTimeout(e.vozEndOfDataTimeout),e.vozEndOfDataTimeout=-1);ceL(e);e.stopAudio(z);e.channel&&(e.channelOpen=!1,e.manuallyClosedChannel=!0,e.channel.close(),e.channel=void 0);e.transcribedSpeechResults=[];e.state=0;C&&e.stopHandler()},g7$=function(e){var z={httpHeadersOverwriteParam:e.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},e.additionalHeaders,e.accessToken&&e.isUsingVoz?{Authorization:"Bearer "+e.accessToken}:{"x-goog-api-key":e.apiKey}),supportsCrossDomainXhr:e.supportsCrossDomainXhr};e.channel=new oF(e.endpoint,z);e.channel.open();_.W9(e.channel,"w",function(){var C=e.channel,w=C.send,K=e.isUsingVoz?"PLACEHOLDER":"example";K={config:{dialogStateIn:{languageCode:e.languageCode},deviceConfig:{deviceId:K,deviceModelId:K},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!e.isUsingVoz)K.config.requestType=4;else if(e.isUsingVoz&&e.youtubeAssistantRequest){var G=JSON.stringify(e.youtubeAssistantRequest);K.config.internalIn={youtubeAssistantS3InputJson:G}}w.call(C,K);e.channelOpen=!0;e.manuallyClosedChannel=!1});
_.W9(e.channel,"x",function(){e.manuallyClosedChannel||(e.channelOpen=!1,e.channel=void 0,NW(e))});
_.W9(e.channel,"z",function(C){if(C.data){ceL(e);for(var w=0;w<C.data.length;w++){var K=e,G=C.data[w],X=G.speechResults;if(X)a:{var J=[];G=[];var q=!1;X=_.b(X);for(var T=X.next();!T.done;T=X.next()){T=T.value;if(T.noSpeech){NW(K);K.errorHandler("NO_SPEECH");break a}T.transcript!==void 0&&T.stability!==void 0&&(T.stability<K.confidenceThreshold&&(q=!0),q?G.push(T.transcript):J.push(T.transcript))}if(J.length!==0||G.length!==0)J=J.join(" "),G=G.join(" "),K.receivedEndOfUtterance&&!K.isUsingVoz?K.isUsingVoz||
K.completeHandler([J,G]):(q=K,X=J,T=G,iu("voz_sf"),q.transcriptionUpdateHandler(X,T),q.transcribedSpeechResults=[X,T]),K.receivedEndOfUtterance&&(iu("voz_eou"),K.transcriptionCompleteHandler([J,G]),K.isUsingVoz&&(K.prefetchResponseTimeoutMs===0?NW(K,{logMicClosed:!1,handleStop:!0}):K.prefetchResponseTimeoutMs>0&&Aev(K)))}else K.isUsingVoz&&(G==null?0:G.internalOut)?(G=JSON.parse(G.internalOut.youtubeAssistantS3OutputJson),G.userHasOptedInToVaa||G.vaaConsent?K.vaaConsentUpdateHandler(!!G.userHasOptedInToVaa,
!!G.vaaConsent):(Z5b(K),G&&(J=K.transcribedSpeechResults,iu("voz_rqf"),K.completeHandler(J,G)))):G.eventType==="END_OF_UTTERANCE"?K.receivedEndOfUtterance=!0:(iu("voz_err"),K.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.AX(Error("zl")))}}});
_.W9(e.channel,"y",function(C){NW(e);switch(C.status){case 1:C="WEBCHANNEL_NETWORK_ERROR";break;case 2:C="WEBCHANNEL_SERVER_ERROR";break;default:C="WEBCHANNEL_UNKNOWN_ERROR"}e.errorHandler(C);e.logError(Error(C))})};
Db.prototype.logError=function(e){_.yG(e)};
Db.prototype.isOnline=function(){return!0};
var Aev=function(e){Z5b(e);e.prefetchResponseSetTimeoutId=setTimeout(function(){NW(e,{logMicClosed:!1,handleStop:!0})},e.prefetchResponseTimeoutMs)},Z5b=function(e){e.prefetchResponseSetTimeoutId>-1&&(clearTimeout(e.prefetchResponseSetTimeoutId),e.prefetchResponseSetTimeoutId=-1)},jj$=function(e){ceL(e);
e.noResponseReceivedTimeout=window.setTimeout(function(){NW(e);e.errorHandler("NO_SPEECH")},11E3)},ceL=function(e){e.noResponseReceivedTimeout>-1&&(window.clearTimeout(e.noResponseReceivedTimeout),e.noResponseReceivedTimeout=-1)},iu=function(e){_.hg(e,void 0,"voice_assistant")};var sh=function(){Db.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.U(sh,Db);sh.prototype.isSupported=function(){return kvW()};
sh.prototype.startAudio=function(){var e=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.R5(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(w){pXf(e,w)};
this.processor.connect(this.audioContext.destination);var z=function(w){e.stream=w;if(!e.audioContext)return _.oS(null);w=e.audioContext.createMediaStreamSource(w);e.processor&&w.connect(e.processor);return _.oS(null)},C={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?z(this.stream):(C=navigator.mediaDevices.getUserMedia(C))?C.then(z).catch(function(w){NW(e);w.name&&w.name==="NotAllowedError"?e.errorHandler("NO_MICROPHONE_PERMISSION"):(e.errorHandler("AUDIO_ERROR"),e.logError(w));return _.R5(null)}):(NW(this),this.errorHandler("AUDIO_ERROR"),_.AX(Error("Al")));
return Db.prototype.startAudio.call(this)};
sh.prototype.stopAudio=function(e){e=e===void 0?!0:e;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(z){z.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Db.prototype.stopAudio.call(this,e)};
sh.prototype.isOnline=function(){return navigator.onLine};
var pXf=function(e,z){if(e.audioContext)if(window.OfflineAudioContext){var C=e.audioContext.sampleRate,w=z.inputBuffer.getChannelData(0);z=new window.OfflineAudioContext(1,w.length,16E3);for(var K=z.createBuffer(1,w.length,C),G=K.getChannelData(0),X=0,J=0;J<w.length;J++)G[J]=w[J],X+=G[J]*G[J];!e.audioDetected&&Math.sqrt(X/w.length)>.01&&(e.audioDetected=!0,e.audioDetectedHandler());w=z.createBufferSource();w.buffer=K;w.connect(z.destination);w.start(0);z.oncomplete=function(q){q=q.renderedBuffer.getChannelData(0);
for(var T=Math.floor(16384E3/C),Q=new Int16Array(T),m=0;m<T;++m)Q[m]=Math.max(-1,Math.min(1,q[m]))*32767;yeC(e,Q.buffer)};
z.startRendering()}else eHY(e,z)},eHY=function(e,z){var C=e.audioContext.sampleRate,w=z.inputBuffer.getChannelData(0),K=Math.floor((C+8E3)/16E3);
C=w.length/K;z=new Float32Array(C);for(var G=0;G<C;++G)z[G]=w[G*K];w=new Int16Array(C);for(K=0;K<C;++K)w[K]=Math.max(-1,Math.min(1,z[K]))*32767;yeC(e,w.buffer)};var zHC={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var CFl=function(){this.JSC$20507_audioEnabled=!0;this.audioFeedbackHolder={}};
CFl.prototype.isPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2};
var wYl=function(e){for(var z=_.b(Object.values(zHC)),C=z.next();!C.done;C=z.next())C=C.value,e.audioFeedbackHolder[C]=new Audio,e.audioFeedbackHolder[C].src="/s/search/audio/"+C+".mp3",e.audioFeedbackHolder[C].load()},BG=function(e,z){if(e.JSC$20507_audioEnabled!==!1&&z in e.audioFeedbackHolder){for(var C=_.b(Object.values(e.audioFeedbackHolder)),w=C.next();!w.done;w=C.next())w=w.value,e.isPlaying(w)&&w.pause();
e.audioFeedbackHolder[z].currentTime=0;e.audioFeedbackHolder[z].play().catch(function(){})}};var KQZ=function(e,z){var C=this;this.store=e;this.service=z;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){C.setState("offline");C.stop()};
this.audioPlayer=new CFl;var w;(w=this.audioPlayer)==null||wYl(w)};
_.Y=KQZ.prototype;_.Y.getService=function(){return this.service};
_.Y.isEnabled=function(){return!!this.service};
_.Y.isSupported=function(){var e;return(e=this.service)==null?void 0:e.isSupported()};
_.Y.start=function(){var e=this,z,C,w,K,G,X,J,q,T,Q,m,a,n;return _.k(function(H){switch(H.nextAddress){case 1:e.store.dispatch(pmY("",""));if(!navigator.onLine)return e.setState("offline"),H.return();window.addEventListener("offline",e.handleOfflineEvent);e.stream=null;if(!e.permissionsSupported){H.jumpTo(2);break}_.Iv(H,3);return H.yield(o6q(e),5);case 5:z=H.yieldResult;if(!z)return(C=e.audioPlayer)==null||BG(C,"failure"),H.return();e.service.stream=e.stream;e.setState("listening");_.Yj(H,2);break;
case 3:_.O_(H),e.permissionsSupported=!1;case 2:w={context:_.ju7(_.ME())},w.youtubeAssistantParams={searchParams:{inlineSearchResponse:e.enableInlineSearchResponse}},K=function(I,L){e.store.dispatch(eLY("transcribing"));e.store.dispatch(pmY(I,L))},G=function(){var I;
(I=e.audioPlayer)==null||BG(I,"open");e.setState("listening")},X=function(){e.setState("transcribing")},J=function(I){e.setErrorState(I)},q=function(I,L){var h;
(h=e.audioPlayer)==null||BG(h,"success");L&&(_.M("kevlar_voice_search_inline_search")&&(e.responseProcessor=_.lh().resolve(_.PNh),e.responseProcessor&&(h=L.navigationAction,I=L.prefetchedSearchResponse,h&&I&&(h=(new _.La$).JSC$14347_getStoreKey(h),_.pM(e.responseProcessor,I,h)))),e.JSC$20525_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",L))},T=function(){window.removeEventListener("offline",e.handleOfflineEvent)},Q=_.wJg(!1),m=Q.Authorization!=null,a=e.enableFirstPartyAuth||
e.enableFPAForSignedInUsers&&m?Q:{"X-Goog-Visitor-Id":Q["X-Goog-Visitor-Id"]},n={completeHandler:q,
errorHandler:J,listeningHandler:G,audioDetectedHandler:X,stopHandler:T,transcriptionUpdateHandler:K,youtubeAssistantRequest:w,languageCode:Gcb(),additionalHeaders:a,supportsCrossDomainXhr:e.enableFirstPartyAuth||e.enableFPAForSignedInUsers&&m,supportsHttpHeadersOverwriteParam:!e.disableHttpHeadersOverwrite},e.service.start(n),_.E_(H)}})};
_.Y.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.Y.reset=function(){this.store.dispatch(_.Yz({type:"RESET_VOICE_SEARCH_STATE"}))};
_.Y.setState=function(e){this.store.dispatch(eLY(e))};
_.Y.setErrorState=function(e){switch(e){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var z;(z=this.audioPlayer)==null||BG(z,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)o6q(this);else{var C;(C=this.audioPlayer)==null||BG(C,"failure");this.setState("permission-denied")}break;case "ABORTED":var w;(w=this.audioPlayer)==null||BG(w,"no_input");break;default:var K;(K=this.audioPlayer)==
null||BG(K,"no_input");this.setState("timeout")}};
var o6q=function(e){var z,C;return _.k(function(w){switch(w.nextAddress){case 1:return w.yield(navigator.permissions.query({name:"microphone"}),2);case 2:z=w.yieldResult;if(z.state==="granted")return w.return(!0);if(z.state==="denied")return e.setState("permission-denied"),w.return(!1);e.setState("permission");C={audio:{sampleSize:16,channelCount:1},video:!1};_.Iv(w,3);return w.yield(navigator.mediaDevices.getUserMedia(C),5);case 5:return e.stream=w.yieldResult,w.return(!0);case 3:return _.O_(w),
e.setState("permission-denied"),w.return(!1)}})},Gcb=function(){var e=_.j5("INNERTUBE_CONTEXT_HL"),z=_.j5("INNERTUBE_CONTEXT_GL");
return e.indexOf("-")>-1?e:e+"-"+z};var YKo=function(e,z,C){KQZ.call(this,z,C);this.JSC$20525_actionRouter=e;this.enableInlineSearchResponse=_.M("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.M("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.M("kevlar_voice_search_enable_fpa_signedin_users")},b8L;
_.U(YKo,KQZ);
var XYY=function(){if(!b8L){var e="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.M("kevlar_voice_search_auth_enabled")||_.M("kevlar_voice_search_use_yt_endpoint")?e="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.M("kevlar_voice_search_use_fp_endpoint")&&(e="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");b8L=
new YKo(_.G4.getInstance(),_.eB(),new sh(_.j5("VOZ_API_KEY"),e,.5))}return b8L};var J6f=function(e){this.JSC$20529_clientRoot=e;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$20529_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));e=_.b(this.eventListeners);for(var z=e.next();!z.done;z=e.next()){var C=
_.b(z.value);z=C.next().value;C=C.next().value;C=_.b(C);for(var w=C.next();!w.done;w=C.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;z.addEventListener(w,K)}}_.YI(_.G4.getInstance(),this.autonavPauseActionMap,this.JSC$20529_clientRoot)},kcY,qKq=function(e){return _.M("kevlar_autonav_popup_filtering")?(e=_.AU(e))?e.hasAttribute("prevent-autonav"):!0:!0};
_.Y=J6f.prototype;_.Y.onIronOverlayOpened=function(e){qKq(e)&&(this.autonavPauseReasons.overlayOpen=!0,ty(this))};
_.Y.onIronOverlayClosed=function(e){qKq(e)&&(this.autonavPauseReasons.overlayOpen=!1,ty(this))};
_.Y.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;ty(this)};
_.Y.onYtAutonavPauseBlur=function(){var e=this;_.c5.addJob(function(){xf5()||(e.autonavPauseReasons.inputBoxFocus=!1,ty(e))},8,0)};
_.Y.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;ty(this)};
_.Y.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;ty(this)};
_.Y.onYtAutonavPauseScroll=function(){var e=_.lh().resolve(_.wE);e.isOnWatch()&&(e=e.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=e.getBoundingClientRect().top<-200,ty(this))};
_.Y.onYtAutonavPauseUserEngagement=function(e){var z=this;if(_.M("user_engagement_enable_autoplay_pause_feature")){var C=Number(e.lowEngagementThresholdMs);isNaN(C)||C<=0||e.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.Y9("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.lh().resolve(_.UT),_.aC()<C?_.Dz(_.c5,function(){_.Y9("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.j3f()?(this.userEngagementCsn=_.Pr(),_.Dz(_.c5,function(){_.Y9("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
z.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,ty(this)):_.Y9("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Gis(Error("Bl`"+JSON.stringify(e)))};
_.Y.onYtAutonavPausePlayer=function(e){this.autonavPauseReasons.requestedByPlayer=!!e.detail;ty(this)};
_.Y.onYtAutonavVisibilityChanged=function(){var e=this,z,C,w;return _.k(function(K){if(K.nextAddress==1)return(z=_.ox())?K.yield(z.getPlayerPromise(),2):K.return();C=K.yieldResult;w=C.isMuted()||C.getVolume()===0;e.autonavPauseReasons.backgroundAndMute=xf5()&&w;ty(e);_.E_(K)})};
_.Y.onYtAutonavPausePlayerEnded=function(){_.lh().resolve(_.UT);var e=144E5;_.M("user_engagement_enable_autoplay_pause_feature")||_.M("is_part_of_any_user_engagement_experiment")||(e=45E5);this.autonavPauseReasons.longIdle=_.aC()>e;Trq(this);ty(this)};
_.Y.onYtUserActivity=function(){var e=this;this.autonavPauseReasons.userEngagement&&(_.Dz(_.c5,function(){_.Y9("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",e.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,ty(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Dz(_.c5,function(){_.Y9("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",e.userEngagementCsn);_.ju()}),this.autonavPauseReasons.youthereLactExperiment=!1,ty(this));
this.autonavPauseReasons.longIdle&&!_.M("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,ty(this))};
var xf5=function(){var e=window.document.visibilityState;return!(!e||e==="visible")},ty=function(e){for(var z=!1,C=_.b(Object.values(e.autonavPauseReasons)),w=C.next();!w.done;w=C.next())w=w.value,z=z||w;
z?_.fH.getInstance().pause(e.autonavPauseReasons):(e=_.fH.getInstance(),e.autonavState_==3?(e.setState(2,!1,!1),e.autonavPauseReason_=void 0):e.autonavState_==1&&(e.disabledAutonavPauseReason_=void 0))},Trq=function(e){var z=!1;
if(_.M("enable_autoplay_pause_by_lact")){_.lh().resolve(_.UT);z=_.n0("autoplay_pause_by_lact_sec")*1E3;var C=_.n0("autoplay_pause_by_lact_sampling_fraction");(z=_.aC()>=z&&Math.random()<C)&&!_.j3f()&&(_.Dz(_.c5,function(){_.Y9("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),z=!1)}z!==e.autonavPauseReasons.youthereLactExperiment&&(e.autonavPauseReasons.youthereLactExperiment=z)&&(e.userEngagementCsn=_.Pr(),_.Dz(_.c5,function(){_.Y9("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",e.userEngagementCsn)}));
e.autonavPauseReasons.userEngagement&&_.Dz(_.c5,function(){_.Y9("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",e.userEngagementCsn)})};
J6f.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.Y9("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.ju(),this.autonavPauseReasons.youthereLactExperiment=!1,ty(this));this.autonavPauseReasons.userEngagement&&(_.Y9("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,ty(this))};
J6f.prototype.onYtEngagementPanelVisibleChanged=function(e){e.detail&&e.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=e.detail.visible,ty(this))};
J6f.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var $fC=_.cF.persistentPanelVisibleSelector,gR=function(){var e=_.V.apply(this,arguments)||this;e.miniGuideVisible=!1;e.guideOpened=_.M("disable_initial_guide_state_fix")?!1:e.canFitPersistentGuide(e.initialBodyClientWidth);e.guideUserStateOpened=e.getInitialGuideUserStateOpened();e.isFullscreenShorts=!1;e.miniGuideWidthThreshold=_.n0("kevlar_mini_guide_width_threshold",791);e.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
e.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");e.persistentGuideBlockedPagePathRegex=new RegExp(e.persistentGuideBlockedPagesPatterns.join("|"));e.animationTransitionDuration=0;e.lateDataResolver=_.cj();e.initialGuideDataFetchFailed=!1;e.initialLoad=!0;e.guideRenderers=new Set;e.isMouseOverGuide=!1;e.sessionUserManuallyExpandedGuideState=
!1;e.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return e};
_.U(gR,_.V);_.Y=gR.prototype;_.Y.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.Y.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.Y.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.Y.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.Y.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.Y.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.Y.ready=function(){_.lh().addProvider({provide:_.rn,useValue:this.hostElement})};
_.Y.attached=function(){var e=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.lE(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.lE(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.lE(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.lE(this,this.onYtGuideShow));_.T0(this,function(){e.animationTransitionDuration=200})};
_.Y.detached=function(){document.removeEventListener("yt-navigate-finish",_.lE(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.lE(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.lE(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.lE(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.lE(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.lE(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.lE(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.Y.getData=function(){return this.data};
_.Y.load=function(){var e=this,z,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=e.lateDataResolver.resolve.bind(e),G.return(e.lateDataResolver.promise);if(window.ytInitialGuideData)return z=_.cj(),z.resolve(window.ytInitialGuideData),G.return(z.promise);w=!1;_.Iv(G,2);return G.yield(e.fetchGuideData(),4);case 4:C=G.yieldResult;_.Yj(G,3);break;case 2:K=_.O_(G),K.message==="Returned error"&&(w=
!0);case 3:if(C)return G.return(C);e.onYtGuideClose();w||(e.initialGuideDataFetchFailed=!0);return G.return(e.lateDataResolver.promise)}})};
_.Y.fetchGuideData=function(){var e=this,z,C,w,K,G,X,J;return _.k(function(q){if(q.nextAddress==1)return z=_.lh(),e.guidePromise||(C=z.resolve(_.vJ),e.guidePromise=_.yC(C,wEW)),q.yield(e.guidePromise,2);if(q.nextAddress!=3)return w=q.yieldResult,K=z.resolve(_.lq),q.yield(K(),3);(G=q.yieldResult)&&((X=w)==null?void 0:(J=X.responseContext)==null?void 0:J.maxAgeSeconds)!==0&&G.put("service:guide:fallback",new _.yX({innertubeResponse:w}));return q.return(w)})};
_.Y.initializeGuideDataIfEmpty=function(){var e=this,z,C;return _.k(function(w){if(w.nextAddress==1){if(!e.initialGuideDataFetchFailed||e.data)return w.return();_.Iv(w,2);return w.yield(e.fetchGuideData(),4)}if(w.nextAddress!=2)return(z=w.yieldResult)&&e.lateDataResolver.resolve(z),_.Yj(w,0);C=_.O_(w);_.AX(C);_.E_(w)})};
_.Y.initializeGuideData=function(){var e=this,z,C;return _.k(function(w){switch(w.nextAddress){case 1:return _.MZ(zt$(),{mainAppWeb:_.tU()}),_.Iv(w,2),w.yield(e.load(),4);case 4:e.data=w.yieldResult;_.Yj(w,3);break;case 2:z=_.O_(w),_.rh(zt$(),"FAILURE"),_.AX(new _.uh("Guide data not present",{errorMessage:z.message}));case 3:C=e.data&&e.data.items&&e.data.items.length>0?"SUCCESS":"FAILURE",C==="FAILURE"&&_.AX(new _.uh("Guide data.items empty")),_.rh(zt$(),C),_.E_(w)}})};
_.Y.setGuideData=function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1)return z.disabled?K.return():z.data?(e.data=z.data,z.guideRenderers.add(e),K.return()):K.yield(z.initializeGuideData(),2);z.graftGuideToPage();C=_.cR("IS_HOMEPAGE_COLD")?"eop":void 0;_.M("disable_element_pool_populator")?z.setGuideDataAfterInit(e):(w=new _.O2(1,C),_.E2(w,z.setGuideDataAfterInit.bind(z,e)));_.E_(K)})};
_.Y.setGuideDataAfterInit=function(e){e.data=this.data;e.markDirty();this.guideRenderers.add(e);_.BI(function(){_.hg("gle")});
_.T0(this,function(){_.hg("gpe")})};
_.Y.graftGuideToPage=function(){if(this.data){var e=this.data&&this.data.trackingParams;e&&(e=_.v9(e),_.c7(_.nm(),e))}};
_.Y.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.lE(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.Y.onDrawerOpenedChanged=function(e,z){!z.value&&this.guideOpened&&(this.guideOpened=!1)};
_.Y.onYtGuideToggle=function(e){var z=this.guideOpened;this.guideOpened=!z;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var C=_.Tj();_.$k(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;C.save()}this.updateGuideDrawerElementState();if(this.guideElement){var w;this.guideOpened&&((w=e.detail)==null?0:w.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.lE(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.lE(this,this.onAppDrawerTransitioned))}z||this.initializeGuideDataIfEmpty()};
_.Y.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lE(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.qU(this.guideElement)};
_.Y.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.lE(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(A13(this.guideOpened))};
_.Y.guidePersistentAndVisibleChanged=function(){_.zj(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.Y.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.Y.miniGuideVisibleChanged=function(){_.zj(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.Y.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(A13(this.guideOpened)),this.initialLoad=!1);_.zj(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.Y.activeEndpointChanged=function(){_.zj(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.Y.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.pageType)if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.Y.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()};
_.Y.cachedClientWidthChanged=function(){this.updateGuideState()};
_.Y.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.Y.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var e=this.canFitPersistentGuide(this.cachedClientWidth);e?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=e}this.updateGuideDrawerElementState()};
_.Y.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.Y.getGuideOpened=function(){return this.guideOpened};
_.Y.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.Y.getActiveEndpoint=function(){return this.activeEndpoint};
_.Y.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.Y.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&&_.pi(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.Y.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.M("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.Y.handleGuideMouseLeave=function(){var e=this;!this.sessionUserManuallyExpandedGuideState&&_.M("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.tK(this,"handleGuideMouseLeave",function(){e.isMouseOverGuide||!e.guideOpened||e.miniGuideVisible||(e.guideOpened=!1,e.updateGuideDrawerElementState())},100))};
_.Y.computeGuidePersistentAndVisible=function(){var e=this;_.tK(this,"computeGuidePersistentAndVisible",function(){e.guidePersistentAndVisible=e.guideOpened&&e.guidePersistent;e.guideIsVisibleButNotPersistent=!(!e.guideOpened||e.guidePersistent)})};
_.Y.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.Y.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.Y.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.Y.startLoadingWatch=function(){this.closeGuide()};
_.Y.startLoadingShorts=function(){_.M("web_hide_guide_on_shorts")&&this.closeGuide()};
_.Y.onYtNavigateFinish=function(e,z){if(!_.aP||z){this.activeEndpoint=z.endpoint;this.pageType=z.pageType;this.pageUrl=z.response.url;var C,w;e=(w=_.r((C=z.endpoint)==null?void 0:C.commandMetadata,_.XV))==null?void 0:w.url;!this.pageUrl&&e&&(this.pageUrl=e);_.M("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.Y.getVisibleGuideRenderer=function(){for(var e=_.b(this.guideRenderers),z=e.next();!z.done;z=e.next())if(z=z.value,this.miniGuideVisible&&z.is==="ytd-mini-guide-renderer"||this.guideOpened&&z.is==="ytd-guide-renderer")return z;return null};
_.Y.markGuideRendererDirty=function(e){if(e){typeof e.markDirty==="function"&&e.markDirty();e=_.b([].concat(_.s_(_.XC(e).children)));for(var z=e.next();!z.done;z=e.next())this.markGuideRendererDirty(z.value)}};
_.Y.persistentGuideEnabled=function(e,z){if(!z||e==="watch"||e==="settings"||e==="shorts"&&this.isFullscreenShorts||_.M("reels_web_disable_persistent_guide_shorts")&&e==="shorts")return!1;var C=_.Pi(z)||"";return _.M("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(w){return C===w}):!this.persistentGuideBlockedPagePathRegex.test(C)};
_.Y.canFitPersistentGuide=function(e){var z=_.n0("kevlar_persistent_guide_width_threshold",1312);return z===-1||_.M("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:e>this.calculateGuideThreshold(z)};
_.Y.calculateGuideThreshold=function(e){return _.M("enable_ai_companion")?e+(this.persistentPanelVisible?400:0):e};
_.Y.canFitMiniGuide=function(e){return this.miniGuideWidthThreshold===-1?!1:e>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.Y.onResize=function(){var e=this;_.tK(this,"calculateGuideState",function(){e.onResizeDebounced()})};
_.Y.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.Y.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.Y.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.Y.getInitialGuideUserStateOpened=function(){return _.M("web_force_mini_guide_default")?!1:!_.Tj().getFlag(109)};
_.lB.Object.defineProperties(gR.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.j5("initialBodyClientWidth")||window.innerWidth}}});
gR.prototype.onResize=gR.prototype.onResize;gR.prototype.observeForMiniGuideVisible=gR.prototype.observeForMiniGuideVisible;gR.prototype.computeGuidePersistentAndVisible=gR.prototype.computeGuidePersistentAndVisible;gR.prototype.persistentPanelVisibleChanged=gR.prototype.persistentPanelVisibleChanged;gR.prototype.cachedClientWidthChanged=gR.prototype.cachedClientWidthChanged;gR.prototype.resetGuide=gR.prototype.resetGuide;gR.prototype.activeEndpointChanged=gR.prototype.activeEndpointChanged;
gR.prototype.guideOpenedChanged=gR.prototype.guideOpenedChanged;gR.prototype.miniGuideVisibleChanged=gR.prototype.miniGuideVisibleChanged;gR.prototype.guideIsVisibleButNotPersistentChanged=gR.prototype.guideIsVisibleButNotPersistentChanged;gR.prototype.guidePersistentAndVisibleChanged=gR.prototype.guidePersistentAndVisibleChanged;gR.prototype.onGuideElementChanged=gR.prototype.onGuideElementChanged;gR.prototype.onGuidePersistentChanged=gR.prototype.onGuidePersistentChanged;
gR.prototype.onRenderGuideChanged=gR.prototype.onRenderGuideChanged;gR.prototype.onActiveEndpointChanged=gR.prototype.onActiveEndpointChanged;gR.prototype.onMiniGuideVisibleChanged=gR.prototype.onMiniGuideVisibleChanged;gR.prototype.onGuideIsVisibleButNotPersistentChanged=gR.prototype.onGuideIsVisibleButNotPersistentChanged;gR.prototype.onGuidePersistendAndVisibleChanged=gR.prototype.onGuidePersistendAndVisibleChanged;
_.d([_.W(_.oY),_.B("design:type",Object)],gR.prototype,"ironResizableBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],gR.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],gR.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],gR.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gR.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Boolean)],gR.prototype,"disabled",void 0);_.d([_.F(),_.B("design:type",Boolean)],gR.prototype,"guidePersistentAndVisible",void 0);_.d([_.mi("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onGuidePersistendAndVisibleChanged",null);_.d([_.F(),_.B("design:type",Boolean)],gR.prototype,"guideIsVisibleButNotPersistent",void 0);
_.d([_.mi("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.d([_.F(),_.B("design:type",Object)],gR.prototype,"miniGuideVisible",void 0);_.d([_.mi("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onMiniGuideVisibleChanged",null);_.d([_.F(),_.B("design:type",Boolean)],gR.prototype,"forceMiniGuideClose",void 0);
_.d([_.F(),_.B("design:type",Object)],gR.prototype,"activeEndpoint",void 0);_.d([_.mi("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onActiveEndpointChanged",null);_.d([_.F(),_.B("design:type",Boolean)],gR.prototype,"renderGuide",void 0);_.d([_.mi("renderGuide"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onRenderGuideChanged",null);
_.d([_.F({selector:$fC}),_.B("design:type",Boolean)],gR.prototype,"persistentPanelVisible",void 0);_.d([_.F(),_.B("design:type",Object)],gR.prototype,"guideOpened",void 0);_.d([_.F(),_.B("design:type",Boolean)],gR.prototype,"guidePersistent",void 0);_.d([_.mi("guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onGuidePersistentChanged",null);_.d([_.F(),_.B("design:type",Object)],gR.prototype,"guideUserStateOpened",void 0);
_.d([_.F(),_.B("design:type",String)],gR.prototype,"pageUrl",void 0);_.d([_.F(),_.B("design:type",String)],gR.prototype,"pageType",void 0);_.d([_.F(),_.B("design:type",Number)],gR.prototype,"cachedClientWidth",void 0);_.d([_.F(),_.B("design:type",Object)],gR.prototype,"guideElement",void 0);_.d([_.F({selector:_.ks}),_.B("design:type",Object)],gR.prototype,"isFullscreenShorts",void 0);
_.d([_.mi("guideElement"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onGuideElementChanged",null);_.d([_.mi("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"guidePersistentAndVisibleChanged",null);
_.d([_.Ux("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"guideIsVisibleButNotPersistentChanged",null);_.d([_.mi("miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"miniGuideVisibleChanged",null);_.d([_.Ux("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"guideOpenedChanged",null);
_.d([_.mi("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"activeEndpointChanged",null);_.d([_.Ux("pageUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"resetGuide",null);_.d([_.Ux("cachedClientWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"cachedClientWidthChanged",null);
_.d([_.Ux("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"persistentPanelVisibleChanged",null);_.d([_.mi("guideOpened","guidePersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"computeGuidePersistentAndVisible",null);
_.d([_.Ux("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"observeForMiniGuideVisible",null);_.d([_.Qi("iron-resize"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gR.prototype,"onResize",null);_.d([_.SL({disableElementRegistration:!0,is:"yt-guide-manager"})],gR);
var lJZ=_.u(gR,"yt-guide-manager",void 0,{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var jt=function(){var e=_.V.apply(this,arguments)||this;e.JSC$20539_keyboardInUse=!1;e.boundHandleCapturedKeydownEvent=function(z){e.handleCapturedKeydownEvent(z)};
return e};
_.U(jt,_.V);_.Y=jt.prototype;_.Y.attached=function(){this.listenToDocument(document)};
_.Y.listenToDocument=function(e){e.addEventListener("keydown",_.lE(this,this.onKeyDownEvent));e.addEventListener("keyup",_.lE(this,this.onKeyUpEvent));e.addEventListener("mousedown",_.lE(this,this.onMouseDownEvent));_.M("desktop_keyboard_capture_keydown_killswitch")||e.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);e.addEventListener("yt-page-data-updated",_.lE(this,this.onPageUpdate))};
_.Y.detached=function(){this.unlistenFromDocument(document)};
_.Y.unlistenFromDocument=function(e){e.removeEventListener("keydown",_.lE(this,this.onKeyDownEvent));e.removeEventListener("keyup",_.lE(this,this.onKeyUpEvent));e.removeEventListener("mousedown",_.lE(this,this.onMouseDownEvent));_.M("desktop_keyboard_capture_keydown_killswitch")||e.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);e.removeEventListener("yt-page-data-updated",_.lE(this,this.onPageUpdate))};
_.Y.ready=function(){_.lh().addProvider({provide:_.V5,useValue:this})};
_.Y.isKeyBoardInUse=function(){return this.JSC$20539_keyboardInUse};
_.Y.handleCapturedKeydownEvent=function(e){if(e.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(e)};
_.Y.onMouseDownEvent=function(){this.JSC$20539_keyboardInUse=!1};
_.Y.onPageUpdate=function(){if(_.M("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.M("web_shorts_keyboard_shortcut_usage_log")){_.pIZ.clear();for(var e=_.b(_.J9),z=e.next();!z.done;z=e.next()){var C=_.b(z.value);z=C.next().value;C=C.next().value;C=_.mT(C);_.pIZ.set(z,C);_.id(_.Pr(),_.Ip(),C)}_.e9v.clear();e=_.b(_.k9);for(z=e.next();!z.done;z=e.next())C=_.b(z.value),z=C.next().value,C=C.next().value,C=_.mT(C),_.e9v.set(z,C),_.id(_.Pr(),_.Ip(),C);_.NL(_.Pr(),_.Ip(),[].concat(_.s_(_.e9v.values()),
_.s_(_.pIZ.values())));_.Bf(_.Pr(),[].concat(_.s_(_.e9v.values()),_.s_(_.pIZ.values())))}};
_.Y.onMiniplayerActiveChange=function(){var e;(e=_.lh().resolve(_.gh).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(e.document):this.unlistenFromDocument(e.document))};
_.Y.ignoreKeyEvent=function(e){if(e.ctrlKey||e.altKey)if(_.M("kevlar_macro_markers_keyboard_shortcut")){if(e.keyCode!==37&&e.keyCode!==39)return!0}else return!0;var z=_.cJ(e)||[];return _.AKf(z)?(_.M("web_button_or_anchor_list_item")&&RhW(z,e)&&(this.JSC$20539_keyboardInUse=!0),!0):e.defaultPrevented?(rZ(e.keyCode,e.shiftKey,this.isShortsPage),!0):e.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(e):!1};
_.Y.isSpacebarClick=function(e){var z=e||window.event;var C;z.composedPath&&typeof z.composedPath==="function"?C=z.composedPath():C=z.path;C&&C.length?z=C[0]:(z=z||window.event,z=z.target||z.srcElement,z.nodeType==3&&(z=z.parentNode));return z&&e.keyCode===32&&(e=z.tagName==="BUTTON"||z.tagName==="A"||z.tagName==="INPUT",z=(z=z.getAttribute("role"))&&(z==="option"||z==="button"||z.indexOf("menuitem")===0),e||z)?!0:!1};
_.Y.onKeyDownEvent=function(e){if(!this.ignoreKeyEvent(e)&&(e.keyCode===191&&(e.shiftKey||e.metaKey?e.repeat!=null&&e.repeat||(this.openHotkeyDialog(),rZ(e.keyCode,e.shiftKey,this.isShortsPage)):(this.focusSearchBox(),e.preventDefault())),!e.metaKey)){var z=_.lh().resolve(_.gh);switch(e.keyCode){case 9:this.JSC$20539_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(e);break;case 84:z.pipController.getWindow()&&window.focus();this.toggleTheaterMode(e.keyCode,e.shiftKey);break;case 73:z.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(e.keyCode,e.shiftKey);break;case 70:if(this.isShortsPage){_.ZPo();break}this.isMiniplayerActive()?z.pipController.getWindow()&&(z.close(!0),window.focus()):this.passEventToPlayer(e);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(e.keyCode,e.shiftKey):this.closeMiniplayer(e.keyCode,e.shiftKey)||this.passEventToPlayer(e);break;case 13:e.shiftKey&&_.lh().resolve(_.EI).activate(e);break;default:this.passEventToPlayer(e)}}};
_.Y.onKeyUpEvent=function(e){if(!this.ignoreKeyEvent(e))if(_.M("web_speedmaster_spacebar_control")&&e.keyCode===32)this.handlePlayerSpaceKey(e,!0);else{var z=this.getPlayerManager();z&&(z=z.getPlayer())&&z.handleGlobalKeyUp(e.keyCode,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code)}};
_.Y.getPlayerManager=function(){var e=_.ox(),z=_.lh().resolve(_.$B(_.wE));return e&&z&&z.isOnWatch()?e:null};
_.Y.passEventToPlayer=function(e,z){var C=this,w,K,G,X;return _.k(function(J){if(J.nextAddress==1){if(!_.M("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&C.isMiniplayerActive())w=_.lh().resolve(_.gh).getPlayerElement();else if(C.inlinePreviewIsActive){if(K=_.zj(C.hostElement,"yt-get-inline-preview-player-action"),(G=K)==null?0:G[0])w=K[0]}else w=_.ox();return w?J.yield(w.getPlayerPromise(),3):J.jumpTo(0)}X=J.yieldResult;z?X.handleGlobalKeyUp(e.keyCode,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,
e.key,e.code):X.handleGlobalKeyDown(e.keyCode,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code,e.repeat);e.keyCode!==38&&e.keyCode!==40&&rZ(e.keyCode,e.shiftKey,C.isShortsPage);_.E_(J)})};
_.Y.focusSearchBox=function(){_.pi(this.hostElement,"yt-focus-searchbox")};
_.Y.openHotkeyDialog=function(){_.pi(this.hostElement,"yt-open-hotkey-dialog")};
_.Y.isMiniplayerActive=function(){return _.lh().resolve(_.gh).isMiniplayerActive()};
_.Y.closeMiniplayer=function(e,z){return this.isMiniplayerActive()?(_.lh().resolve(_.gh).close(),rZ(e,z,this.isShortsPage),!0):!1};
_.Y.toggleTheaterMode=function(e,z){var C=_.VC(_.eB().getState()),w=this.getPlayerManager(),K=_.M("disable_theater_mode_keyboard")||_.cR("START_IN_FULL_WINDOW_MODE");w&&!K&&(C=!C,_.yq()&&_.M("external_fullscreen")&&(C=!0),_.eA(this.hostElement,"yt-toggle-theater-mode",[C]),rZ(e,z,this.isShortsPage))};
_.Y.toggleMiniplayer=function(e,z){var C=this.getPlayerManager();if(this.isMiniplayerActive()){var w;((w=_.lh().resolve(_.$B(_.wE)))==null?0:w.isOnWatch())?_.lh().resolve(_.gh).close(!0):_.N8(_.lh().resolve(_.gh));rZ(e,z,this.isShortsPage)}else C&&(_.eA(this.hostElement,"yt-activate-miniplayer-from-watch-action"),rZ(e,z,this.isShortsPage))};
_.Y.handlePlayerSpaceKey=function(e,z){var C=!!_.ox()||this.isMiniplayerActive();C=_.M("disable_space_scroll_fix")||C;_.M("global_spacebar_pause")&&!this.isKeyBoardInUse()&&C&&(e.preventDefault(),this.passEventToPlayer(e,z))};
_.Y.isPresentingTheaterMode=function(){return _.M("web_watch_enable_tm_esc_key")?_.VC(_.eB().getState())&&!_.yq():!1};
jt.prototype.onMiniplayerActiveChange=jt.prototype.onMiniplayerActiveChange;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],jt.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],jt.prototype,"ytdReduxBehavior",void 0);_.d([_.F({selector:_.deg}),_.B("design:type",Boolean)],jt.prototype,"inlinePreviewIsActive",void 0);_.d([_.F({selector:_.gY1}),_.B("design:type",Boolean)],jt.prototype,"isShortsPage",void 0);
_.d([_.F({selector:_.V2}),_.B("design:type",Boolean)],jt.prototype,"miniplayerIsActive",void 0);_.d([_.mi("miniplayerIsActive"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jt.prototype,"onMiniplayerActiveChange",null);_.d([_.SL({disableElementRegistration:!0,is:"yt-hotkey-manager"})],jt);_.u(jt,"yt-hotkey-manager",void 0,{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var yN=function(){var e=_.V.apply(this,arguments)||this;e.loopStateEntityKey_=null;e.playlistLoopStateEntity_=null;e.isShuffleNextPlaylist=!1;e.PLAYER_EVENTS_=new Map;e.playerListenersSetup_=!1;e.videoSkipJob_=0;e.canAutoAdvance_=!1;e.playerManager_=null;e.TEST_ONLY={};return e};
_.U(yN,_.V);_.Y=yN.prototype;_.Y.ready=function(){_.lh().addProvider({provide:_.Us,useValue:this.hostElement})};
_.Y.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.Y.attached=function(){document.addEventListener("yt-navigate-start",_.lE(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.lE(this,this.onYtNavigateFinish_))};
_.Y.detached=function(){document.removeEventListener("yt-navigate-start",_.lE(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.lE(this,this.onYtNavigateFinish_))};
_.Y.updatePlaylistEventListeners=function(e,z){z&&!this.playerListenersSetup_?(this.playerManager_=e,this.registerPlaylistEventListeners_(e)):!z&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(e))};
_.Y.setPlayer=function(e){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=e};
_.Y.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.Y.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.Y.registerPlaylistEventListeners_=function(e){var z=this;e.getPlayerPromise().then(function(C){z.playerListenersSetup_||(z.ytPlayerListenerBehavior.listenToPlayerEvents(C,z.PLAYER_EVENTS_),z.playerListenersSetup_=!0)})};
_.Y.removePlaylistEventListeners_=function(e){var z=this;e.getPlayerPromise().then(function(C){z.playerListenersSetup_&&(z.ytPlayerListenerBehavior.unlistenFromPlayerEvents(C,z.PLAYER_EVENTS_),z.playerListenersSetup_=!1)})};
_.Y.setPlaylistComponent=function(e){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.lE(this,this.onPlaylistYtNavigate_)),e&&(e.data&&this.playlistComponent.data&&e.data.playlistId==this.playlistComponent.data.playlistId?(e.loopOn=this.playlistComponent.loopOn,e.shuffleOn=this.playlistComponent.shuffleOn):(e.loopOn=!1,e.shuffleOn=!1),this.isShuffleNextPlaylist&&(e.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=e;this.playlistComponent.addEventListener("yt-navigate",
_.lE(this,this.onPlaylistYtNavigate_))};
_.Y.setAutoplayRenderer=function(e){this.autoplayData=e};
_.Y.setPlaylistData=function(e){this.currentPlaylistData_=e;_.pi(this.hostElement,"yt-playlist-data-updated");_.de.isEmpty(e)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(e)};
_.Y.setPlayerPlaybackControlData=function(e){this.playerManager_&&this.playerManager_.updatePlayerComponents(e.playlistPanelRenderer)};
_.Y.getPlaylistData=function(){return this.currentPlaylistData_};
_.Y.getTempData_=function(e,z){if(this.playlistComponent==null)return null;e={};this.playlistComponent.shuffleOn&&(e.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(e.loop_on=this.playlistComponent.loopOn);z&&(e.autonav="1",_.lh().resolve(_.UT),z=_.aC(),z>0&&(e.lact=z),this.playerManager_&&(z=this.playerManager_.getPlayer())&&z.shouldSendVisibilityState()&&(z=z.getVisibilityState(),z!=0&&(e.vis=z)));_.M("enable_unknown_lact_fix_on_html5")&&(_.lh().resolve(_.UT),e.lact=
_.aC());return e};
_.Y.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.Y.setLoopStateEntityKey_=function(e){var z;this.loopStateEntityKey_=((z=this.getPlaylistLoopData_(e))==null?void 0:z.playlistLoopStateEntityKey)||null};
_.Y.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.Y.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.Y.skipVideo=function(){var e=this,z=_.M("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||z)z=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Oz(_.c5,function(){e.onPlaylistNext();e.videoSkipJob_=0},z)};
_.Y.cancelVideoSkip=function(){this.videoSkipJob_&&(_.c5.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.Y.isInBackground_=function(){var e=window.document.visibilityState;return!(!e||e=="visible")};
_.Y.onPlaylistIndex_=function(e){this.playlistComponent&&(e=this.playlistComponent.data.contents[e].playlistPanelVideoRenderer.navigationEndpoint,_.pi(this.hostElement,"yt-navigate",{endpoint:e,tempData:this.getTempData_(e)}))};
_.Y.onPlayerStateChange_=function(e){if(e=e==0&&this.playlistComponent&&this.canAutoAdvance_)e=_.fH.getInstance(),e=!(e.autonavState_===3?e.autonavPauseReason_&&e.autonavPauseReason_.inputBoxFocus===!0:e.autonavState_===1&&e.disabledAutonavPauseReason_&&e.disabledAutonavPauseReason_.inputBoxFocus===!0);e&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.Y.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.Y.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.Y.navigateToAutoplayWatchEndpoint_=function(e,z,C){var w=this.playlistComponent.data.currentIndex,K=this.getNumPlayableVideos_();e=="NORMAL"&&z=="autoplayVideo"&&w+1>=K&&C||!(e=this.getVideoEndpoint_(e,z))||(C=this.getTempData_(e,C),_.pi(this.hostElement,"yt-navigate",{endpoint:e,tempData:C}))};
_.Y.getNumPlayableVideos_=function(){for(var e=0,z=_.b(this.playlistComponent.data.contents||[]),C=z.next();!C.done;C=z.next())C.value.playlistPanelVideoRenderer&&(e+=1);return e};
_.Y.getVideoEndpoint_=function(e,z){if(this.autoplayData&&this.autoplayData.sets)for(var C=0,w=this.autoplayData.sets.length;C<w;C++){var K=this.autoplayData.sets[C];if(K.mode==e){if(K[z])return K[z];break}}else e=new _.uh("AutoplayData is undefined in playlist manager","Mode: "+e+" endpoint: "+z),_.AX(e)};
_.Y.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.Y.onPlaylistYtNavigate_=function(e){if(e.detail.endpoint){e.stopPropagation();var z=e.detail;z.tempData=this.getTempData_(e.detail.endpoint);_.pi(this.hostElement,"yt-navigate",z)}};
_.Y.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.Y.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.Y.playlistLoopStateEntityChanged_=function(e){var z=this,C,w,K;return _.k(function(G){if(G.nextAddress==1){if(!e)return G.return();C=e.state==="PLAYLIST_LOOP_STATE_ONE";return z.playerManager_?G.yield(z.playerManager_.getPlayerPromise(),3):G.jumpTo(2)}G.nextAddress!=2&&(w=G.yieldResult,w.setLoopVideo(C));K=e.state==="PLAYLIST_LOOP_STATE_ALL";z.playlistComponent&&(z.playlistComponent.loopOn=K);_.E_(G)})};
_.Y.getPlaylistLoopData_=function(e){var z,C;if(e=e==null?void 0:(z=e.playlistButtons)==null?void 0:(C=z.menuRenderer)==null?void 0:C.topLevelButtons)for(z=_.b(e),C=z.next();!C.done;C=z.next())if(C=C.value,C.playlistLoopButtonRenderer)return C.playlistLoopButtonRenderer};
_.Y.getLoopStateCommand_=function(e){var z=this.getPlaylistData(),C;z=((C=this.getPlaylistLoopData_(z))==null?void 0:C.states)||[];var w;e=(w=_.r(z[e?1:2],_.uAg))==null?void 0:w.button;var K;return(K=_.r(e,_.a2))==null?void 0:K.command};
_.Y.onPlayerLoopChange_=function(e){this.playlistLoopStateEntity_&&(e?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(e=this.getLoopStateCommand_(e))&&this.ytComponentBehavior.resolveCommand(e)};
_.Y.onSleepTimerSettingsChanged_=function(e){this.canAutoAdvance_=e!=="End of video"};
yN.prototype.onPlaylistLoopStateEntityChanged=yN.prototype.onPlaylistLoopStateEntityChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],yN.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.P$.YtPlayerListenerBehavior),_.B("design:type",_.R0)],yN.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],yN.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yN.prototype,"loopStateEntityKey_",void 0);
_.d([_.F({selectorArgs:["loopStateEntityKey_"],selector:_.b9.playlistLoopStateEntitySelector}),_.B("design:type",Object)],yN.prototype,"playlistLoopStateEntity_",void 0);_.d([_.mi("playlistLoopStateEntity_"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yN.prototype,"onPlaylistLoopStateEntityChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"yt-playlist-manager"})],yN);_.u(yN,"yt-playlist-manager",void 0,{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var QRW,mf5=function(){if(QRW!==void 0)return QRW;var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return QRW=e};var cG=function(){var e=_.V.apply(this,arguments)||this;e.lastCallback=null;e.getAccountLinkPromises={};e.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);e.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return e};
_.U(cG,_.V);_.Y=cG.prototype;_.Y.getLocation=function(){return window.location.href};
_.Y.getCompletionUrl=function(){return _.tw(this.getLocation())};
_.Y.containsRedirectState=function(e){return(e=_.fM(_.mcL(e)))?(new URLSearchParams(e)).get("redirect_state")!==null:!1};
_.Y.createGalConfig=function(e,z){var C=new LWZ;e=C=z?this.getPopupOrRedirectSetting(C,_.j5("LINK_API_KEY"),_.j5("LINK_API_KEY_REDIRECT"),e):hg5(C,_.j5("LINK_API_KEY"));e.authUser=_.j5("SESSION_INDEX")||0;e.supportedFlows=new Set([4]);return e.build()};
_.Y.getPopupOrRedirectSetting=function(e,z,C,w){this.isGalInteractionPopupMode(w)?(e.interactionMode=0,e=hg5(e,z)):(e.interactionMode=1,z=this.getCompletionUrl(),e.completionUrl=z,e=hg5(e,C));return e};
_.Y.isGalInteractionPopupMode=function(e){if(this.redirectModeProviderAllowlist.has(e))switch(e){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.Y.getStatusEntityKeyForProviderId=function(e){return _.qq(e+":all","accountLinkStatusEntity")};
_.Y.findNestedPropValue=function(e,z){var C=!1,w=null;JSON.stringify(e,function(K,G){C||K!==z||(C=!0,w=G);return C?null:G});
return w};
_.Y.findAccountLinkButtonViewModel=function(e,z){var C=null,w=!1;JSON.stringify(e,function(K,G){w||G.accountLinkStatusEntityKey!==z||G.accountLinkStatusSecondaryEntityKey||(w=!0,C=G);return w?null:G});
return C};
_.Y.executeLinkingSuccessOrFailureCommands=function(e,z,C){var w=null,K;(z==null?0:(K=z.url)==null?0:K.includes("account_sharing"))?w=z==null?void 0:z.response:w=z==null?void 0:z.response;(z=this.findAccountLinkButtonViewModel(w,e))?(e=C?this.findNestedPropValue(z,"onSuccessCommand"):this.findNestedPropValue(z,"onFailureCommand"))?_.Yk([e],this.hostElement):_.es(Error("Cl")):_.es(Error("Dl`"+e))};
_.Y.handleInitializeRequest=function(e,z){var C=this,w=Ulb(this.createGalConfig(e,!0));this.containsRedirectState(this.getLocation())?aWf(e,w.config,w.galService).then(function(K){var G=C.getStatusEntityKeyForProviderId(e);if(K.statusCode===1)z&&C.executeLinkingSuccessOrFailureCommands(G,z,!0),K=C.getLocation().indexOf("#"),K!==-1&&window.history.pushState(null,"",C.getLocation().substring(0,K));else return z&&C.executeLinkingSuccessOrFailureCommands(G,z,!1),Promise.reject(Error(K.statusMessage))}).catch(function(K){_.AX(K);
_.gm("gamingAccountLinkStatusChanged",{serviceId:e,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(K)}):this.getAccountLinkPromises[e]=w.startLinkingSession({serviceId:e})};
_.Y.handleAccountLinkCommand=function(e){_.r(e,tGv)&&this.handleLinkRequest(_.r(e,tGv))};
_.Y.handleLinkRequest=function(e){var z=this,C=e.thirdPartyId;if(C)if(this.isGalInteractionPopupMode(C)){var w=function(){z.closeAndFire("ytd-gaming-account-link-setting-renderer",e.onFailureCommand)},K=function(){z.closeAndFire("ytd-gaming-account-link-setting-renderer",e.onSuccessCommand)};
this.lastCallback=K;this.getAccountLinkPromises[C].then(function(G){qf5(G).then(function(X){X.statusCode===1?K():w()})}).catch(function(){w()})}else this.getAccountLinkPromises[C].then(function(G){qf5(G).then(function(X){if(X.statusCode!==1)return Promise.reject(Error(X.statusMessage))})}).catch(function(G){_.AX(G);
_.gm("gamingAccountLinkStatusChanged",{serviceId:C,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(G)})};
_.Y.closeAndFire=function(e,z){_.eA(this.hostElement,"yt-close-popup-action",[e]);z&&_.Yk([z],this.hostElement)};
_.Y.handleAccountUnlinkCommand=function(e){_.r(e,gXE)&&this.handleUnlinkRequest(_.r(e,gXE))};
_.Y.handleUnlinkRequest=function(e){var z=this,C=e.thirdPartyId;if(C){var w=function(){z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",e.onFailureCommand)},K=function(){z.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",e.onSuccessCommand)};
this.lastCallback=K;var G=Ulb(this.createGalConfig(C,!1));this.unlinkUserGal(G,C).then(function(X){X.statusCode===1?K():w()}).catch(function(){w()})}};
_.Y.unlinkUserGal=function(e,z){return e.deleteLink(z)};
_.Y.handleLogAccountLinkingEventCommand=function(e){_.M("enable_gel_log_commands")&&_.r(e,jwo)&&(e=_.r(e,jwo).event)&&_.gm("gamingAccountLinkStatusChanged",e)};
_.lB.Object.defineProperties(cG,{template:{configurable:!0,enumerable:!0,get:function(){return mf5()}}});
_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],cG.prototype,"ytOpenPopupBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],cG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-third-party-manager"})],cG);_.u(cG,"ytd-third-party-manager",function(){return mf5()},{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var aJq,n6Y=function(){if(aJq!==void 0)return aJq;var e=document.createElement("template");_.v(e,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return aJq=e};var Ay=function(){var e=_.V.apply(this,arguments)||this;e.currentPage=void 0;e.renderLoadingStateJobId=0;e.updatePageDataJobId=0;e.pageDisposeJobsets=new WeakMap;e.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};e.shouldApplyLockupToWatchTransition=_.M("web_thumbnail_to_watch_transition");e.shouldApplySlideTransition=_.Mv("web_page_transition_type")==="slide"||_.M("enable_plj_landing_page");e.shouldApplyLearningJourneyTransition=_.M("enable_plj_landing_page");e.TEST_ONLY=void 0;return e};
_.U(Ay,_.V);_.Y=Ay.prototype;_.Y.ready=function(){var e=_.lh();e.addProvider({provide:_.wE,useValue:this});e.addProvider({provide:_.Jto,useValue:this})};
_.Y.created=function(){this.pagePool=new sj5;this.contextSwitcher=new KC3};
_.Y.attached=function(){_.pi(this.hostElement,"attached");var e=_.lh().resolve(_.$B(_.UG));e&&(this.contextSwitcher.JSC$20364_networkService_=e);this.viewTransitionManager=_.lh().resolve(_.b_)};
_.Y.getPageOffset=function(e){return e.getScrollTop()};
_.Y.setPageOffset=function(e,z){try{e.setScrollTop(z)}catch(C){}};
_.Y.setPageOffsetForNavigation=function(e,z){_.pi(this.hostElement,"yt-navigate-set-page-offset",{page:e,offset:z===void 0?0:z})};
_.Y.pauseActiveContext=function(){var e=this.contextSwitcher;e.activeContext_&&e.activeContext_.pause()};
_.Y.getModuleNameForType=function(e){return e==="watch"?_.M("kevlar_watch_fixie")?"watchFixie":_.M("kevlar_watch_grid")?"watchGrid":"watchFlexy":e==="shorts"||e==="search"?e:"browse"};
_.Y.attachPage=function(e){var z,C=!_.M("pc_is_attached_ks")&&(e==null?void 0:(z=e.polymerController)==null?void 0:z.isAttached);if(!e.isAttached&&!C)try{_.XC(this.hostElement).appendChild(e)}catch(K){var w;_.AX(new _.uh("Error attaching page element for component",{origin:(w=this.currentPage)==null?void 0:w.is,component:e.is}))}};
_.Y.setActivePage=function(e,z){var C=this,w=!1,K=function(){var G=C.isOnWatch(),X=C.currentPage;if(e)if(e!==C.currentPage){X&&(X.hidden=!0,X.active=!1,X.removeAttribute("role"));C.currentPage=e;var J,q=z!=null?z:_.Q$((J=C.data)==null?void 0:J.endpoint);X&&_.pi(C.hostElement,"yt-page-type-changed",{oldPageType:X.is,newPageType:e.is,newPageSubtype:q});_.AK().dispatch(_.Yz({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:e.is}));_.AK().dispatch(_.Yz({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:q||""}));
e.hidden=!1;C.attachPage(e);e.active=!0;e.setAttribute("role","main");X&&C.setPageOffsetForNavigation(e,0);_.M("kevlar_remove_page_dom_on_switch")&&!G&&X&&_.XC(C.hostElement).removeChild(X)}else w=!0;else C.handleMissingDestinationPage(X)};
this.shouldRunBrowseTransition(this.currentPage,e)?r1f(this.viewTransitionManager,K):this.shouldRunLearningJourneyTransition(this.currentPage,e)?vPo(this.viewTransitionManager,K):K();return w};
_.Y.handleMissingDestinationPage=function(e){if(this.isColdLoadForUnknownPage(e))_.AX(new _.uh("Cold load for unknown page"));else{var z;e=new _.uh("Unable to set active page",e?e.is:"unknown origin",(z=this.data)==null?void 0:z.endpoint);_.yG(e)}};
_.Y.isColdLoadForUnknownPage=function(e){return!e&&mk(this.data)==="unknown"};
_.Y.shouldRunBrowseTransition=function(e,z){return this.shouldApplySlideTransition&&(e==null?void 0:e.is)==="ytd-browse"&&(z==null?void 0:z.is)==="ytd-browse"&&e!==z};
_.Y.shouldRunLearningJourneyTransition=function(e,z){return this.shouldApplyLearningJourneyTransition&&(e==null?void 0:e.is)==="ytd-browse"&&((z==null?void 0:z.is)==="ytd-watch-learning-journey"||(z==null?void 0:z.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.Y.shouldRunWatchNextLoadedTransition=function(e,z){return this.viewTransitionManager&&e.is==="ytd-watch-flexy"&&z};
_.Y.updatePageData=function(e){var z=this,C=this.data;this.updatePageDataJobId&&_.c5.cancelJob(this.updatePageDataJobId);this.data=e;return new _.RC(function(w){var K=function(){e.filler?z.performDataUpdate(e,C):Lza(function(){z.performDataUpdate(e,C)});
var q=_.Il();_.Wc(q,"cr")||q.processSignal("cr");w()},G=function(){e&&(e.page==="watch"||_.M("web_shorts_delay_shorts_page_update")&&e.page==="shorts")?z.updatePageDataJobId=_.Oz(_.c5,K):K()};
if(_.M("kevlar_enable_mss_page_modules_client")&&e){var X=_.lh().resolve(_.A8),J=z.getModuleNameForType(e.page);(X=nPE(X,[J]))?X.then(G):G()}else G()})};
_.Y.isDownloadsPage=function(e){var z,C;return(e==null?void 0:(z=e.endpoint)==null?void 0:(C=z.browseEndpoint)==null?void 0:C.browseId)==="FEdownloads"};
_.Y.setPlayerSyncInterval=function(e){var z;return _.k(function(C){if(C.nextAddress==1)return C.yield(_.lh().resolve(_.qK),2);z=C.yieldResult;z.setUpPositionSyncInterval(e);_.E_(C)})};
_.Y.performDataUpdate=function(e,z){_.M("kevlar_early_popup_close")||_.eA(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var C=!e.filler;C&&(_.hg("lps"),_.M("config_age_report_killswitch")||uWf());var w=mk(e),K,G=!1;if(_.M("kevlar_remove_page_dom_on_switch")){var X=z&&mk(z);w===X&&(K=this.getCurrentPage())}K||(K=dR(this.pagePool,w));C&&EGb(this.pagePool.elementPoolPopulator,w);C&&!this.renderLoadingStateJobId&&(G=this.setActivePage(K));if(K){X=w==="watch";var J=
w==="shorts",q=w==="learning_journey_watch";_.M("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(K);if(X||J||q)K.playerData=e.playerResponse;if(J){e.reelWatchSequenceResponse?K.reelWatchSequenceResponse=e.reelWatchSequenceResponse:!K.cachedReelWatchSequenceResponse||K.reelWatchSequenceResponse||_.M("web_enable_delay_shorts_sequence_call_new")||(K.reelWatchSequenceResponse=K.cachedReelWatchSequenceResponse);e.reelWatchSequenceResponse&&(z==null?void 0:z.page)!=="shorts"&&
(K.cachedReelWatchSequenceResponse=e.reelWatchSequenceResponse);K.currentEndpoint=e.endpoint;var T;K.isPreviousPageShorts=!!(z==null?0:(T=z.endpoint)==null?0:T.reelWatchEndpoint)}T=this.isDownloadsPage(e);var Q=this.isDownloadsPage(z);T&&!Q?this.setPlayerSyncInterval(6E5):!T&&Q&&this.setPlayerSyncInterval();_.M("block_all_player_prefetch_requests")||this.preparePrefetchRequest(e,K,C,X,J,q);IoL(_.lh().resolve(_.gh),z,e);if(_.M("enable_ai_companion")){var m;(m=_.lh().resolve(_.$B(_.T$)))==null||_.D6$(m,
this.getPersistentPanelSurface(w))}_.VX(_.lh().resolve(_.UT));_.M("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(K);C?(C=typeof K.loadPage,C==="function"?(K.pageContext=o7Y(this.contextSwitcher,K,K.data!==e.response),C=function(){K.loadPage(e.response)},this.shouldApplySlideTransition&&K.is==="ytd-browse"&&G&&(w==="learning"||this.isDifferentBrowseId(e==null?void 0:e.endpoint,z==null?void 0:z.endpoint))?r1f(this.viewTransitionManager,C):this.shouldRunWatchNextLoadedTransition(K,
G)?UnY(this.viewTransitionManager,C):C()):_.cn(new _.uh("b/38014653 ",[w,
K.is,K.nodeName,C,K.isAttached,z&&mk(z),this.hostElement.children.length])),_.hg("pdl")):(K.hidden=!0,e.response.filler=!0,K.data=e.response,this.attachPage(K));_.pi(this.hostElement,"yt-page-data-updated",{pageType:w})}_.Dz(_.c5,function(){_.M("logging_avoid_blocking_during_navigation")&&_.EfE().transition("none");var a=n75(),n=K;if(e){var H=tvC(e),I=gdv(e),L;a:{if(e.playerResponse){var h=e.playerResponse,E;if((L=h.auxiliaryUi)==null?0:(E=L.messageRenderers)==null?0:E.upsellDialogRenderer){L=h.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(e.response&&(L=e.response,(h=L.overlay)==null?0:h.upsellDialogRenderer)){L=L.overlay.upsellDialogRenderer;break a}L=void 0}var N;var D;E=(N=e.playerResponse)==null?void 0:(D=N.auxiliaryUi)==null?void 0:D.messageRenderers;N=(E==null?void 0:E.enforcementMessageViewModel)||(E==null?void 0:E.bkaEnforcementMessageViewModel);N=(N==null?void 0:N.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?N:void 0;var g;a:{if(e.response&&(D=e.response,(g=D.overlay)==null?0:g.commandWrapperPromoRenderer)){g=
D.overlay.commandWrapperPromoRenderer;break a}g=void 0}aZ$(a,H,I,L,N,g,n)}})};
_.Y.preparePrefetchRequest=function(e,z,C,w,K,G){var X,J,q,T,Q,m,a,n,H,I,L,h,E,N,D;return _.k(function(g){if(g.nextAddress==1)return!C||!(w||K||G)||_.M("kevlar_disable_background_prefetch")&&_.Z_(_.sYh)()===0?g.return():(X=_.K7(z))?g.yield(X.getPlayerPromise(),2):g.return();J=g.yieldResult;q=_.lh().resolve(_.$B(_.UG));if(!q)return g.return();if(K)return T=_.bH(_.yJ),Dtb(T,(Q=e.endpoint)==null?void 0:Q.reelWatchEndpoint,z.reelWatchSequenceResponse,J,q),g.return();n=(m=e.response)==null?void 0:(a=m.responseContext)==
null?void 0:a.webResponseContextExtensionData;if(!n)return g.return();E=(H=e.response)==null?void 0:(I=H.contents)==null?void 0:(L=I.twoColumnWatchNextResults)==null?void 0:(h=L.autoplay)==null?void 0:h.autoplay;N=_.lh().resolve(_.Us);D=_.bH(_.yJ);iN$(D,n,J,q,N,E);_.E_(g)})};
_.Y.movePlayerToWatch=function(e){var z=this,C,w;return _.k(function(K){C=dR(z.pagePool,"watch");w=C.getPlayerContainer();e.appendTo(w);_.E_(K)})};
_.Y.movePlayerToShorts=function(e){var z=this,C,w,K;return _.k(function(G){C=dR(z.pagePool,"shorts");w=C.getPlayerContainer();(K=e)==null||K.appendTo(w,void 0,!0);_.E_(G)})};
_.Y.getPlayerFromWatch=function(){var e=dR(this.pagePool,"watch");return _.K7(e)};
_.Y.getPlayerFromShorts=function(){var e=dR(this.pagePool,"shorts");return _.K7(e)};
_.Y.startLoadingWatch=function(){var e=this,z=dR(this.pagePool,"watch");this.renderLoadingStateJobId?(_.c5.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.M("web_watch_transition_enable_start_loading_watch_callsite")?Hcv(this.viewTransitionManager,function(){e.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(z,"watch");
if(_.M("enable_ai_companion")){var C;(C=_.lh().resolve(_.$B(_.T$)))==null||_.D6$(C,this.getPersistentPanelSurface("watch"))}};
_.Y.startLoadingShorts=function(){var e=dR(this.pagePool,"shorts");this.setActivePage(e,"shorts")};
_.Y.startLoadingLearningJourney=function(){var e=dR(this.pagePool,"learning_journey_watch");this.setActivePage(e,"learning_journey_watch")};
_.Y.getCurrentPage=function(){return this.currentPage};
_.Y.getDestinationPageType=function(){return this.destinationPageType};
_.Y.getCurrentData=function(){return this.data};
_.Y.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.Y.isOnShorts=function(){var e;return((e=this.currentPage)==null?void 0:e.is)==="ytd-shorts"};
_.Y.isWatchPage=function(e){return!!e&&(e.is==="ytd-watch-flexy"||e.is==="ytd-watch-fixie"||e.is==="ytd-watch-grid")};
_.Y.preparePage=function(e,z){var C=this,w=function(){var X=C.pagePool.preparePage(e,C.currentPage,z);X&&C.attachPage(X)},K=function(X){_.Zz(X,z);
_.AX(X)};
if(_.M("kevlar_enable_mss_page_modules_client")){var G=this.getModuleNameForType(e);if(G=nPE(_.lh().resolve(_.A8),[G])){G.then(w.bind(this)).catch(K.bind(this));return}}try{w()}catch(X){K(X)}};
_.Y.lazyPrepareCriticalPages=function(e,z){e=_.Q$(z)||e;_.M("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(e).then(this.maybePrepareWatchPage.bind(this,e)):this.maybePrepareWatchPage(e)};
_.Y.maybePrepareWatchPage=function(e){e==="watch"||e==="learning_journey_watch"&&_.M("web_watch_learning_journey_disable_lazy_pages")||_.Dz(_.c5,this.preparePage.bind(this,"watch"))};
_.Y.downloadPageModules=function(e){e=this.getModuleNameForType(e);var z=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);z.delete(e);var C=_.lh().resolve(_.A8);C.JSC$19037_loadModules(e);return C.JSC$19037_loadModules.apply(C,_.s_(z))};
_.Y.renderPageLoadingState=function(e,z){this.preparePage(e,z);var C=dR(this.pagePool,e);C.loadingData&&(C.loadingData.endpoint=z);C.loading=!0;this.setActivePage(C,e);e!=="watch"&&e!=="learning_journey_watch"||_.pi(this.hostElement,"yt-guide-close")};
_.Y.prepareForNavigation=function(e,z){var C=this;if(this.currentPage&&this.data){var w=_.Q$(z)||e;this.destinationPageType=w;mk(this.data)==w&&_.pi(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((e==="watch"||e==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.c5.cancelJob(this.renderLoadingStateJobId);_.lh().resolve(_.gh).deactivate(z);_.UQ(_.c5,function(){var G=C.viewTransitionManager,X=C.currentPage;
if(G.isLockupToWatchTransitionEnabled&&G.isLockupThumbnailRegistrationEnabled&&X)if(G.registeredLockupThumbnail)G.lockupThumbnailRegisteredFromWatchEndpoint&&_.AX(new _.uh("Lockup thumbnail already registered from watch endpoint."));else{a:{var J=_.r(z,_.N$);if(J==null?0:J.videoId){var q="yt-lockup-view-model ."+_.pG8(J.videoId)+" yt-thumbnail-view-model";X=X.querySelectorAll(q);if(X.length===1){J=X[0];break a}X.length>1?_.AX(new _.uh("Multiple LockupViewModel thumbnails found for videoId: "+J.videoId+
". Selector: "+q)):_.M("web_thumbnail_to_watch_transition_debug")&&_.AX(new _.uh("No LockupViewModel thumbnail found for videoId: "+J.videoId+". Selector: "+q))}J=void 0}J&&(G.registeredLockupThumbnail=J,G.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.UEq(G,J))}});
var K=this.data;this.renderLoadingStateJobId=_.UQ(_.c5,function(){Hcv(C.viewTransitionManager,function(){if(C.data!=K){var G=dR(C.pagePool,e);C.setActivePage(G)}else C.renderPageLoadingState(e,z);C.renderLoadingStateJobId=0})},150)}};
_.Y.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var e=new _.O2(1);this.currentPage.pageDisposeJobs.forEach(function(z){_.E2(e,z)});
this.pageDisposeJobsets.set(this.currentPage,e)}};
_.Y.flushPageDisposeJobset=function(e){var z=this.pageDisposeJobsets.get(e);z&&(z.flushJobs(),this.pageDisposeJobsets.delete(e))};
_.Y.onYtStopOldPlayer=function(e,z){z=z===void 0?!1:z;var C,w=_.r3("kevlar_new_stop_old_player_logic_pages");if(_.M("kevlar_check_current_page_on_stop_old_player")&&(w.length===0||this.currentPage&&w.includes(this.currentPage.is)))if(this.data&&(C=mk(this.data)),mk(e)===C&&this.currentPage&&mk(this.currentPage.data)!==C)var K=_.K7(this.currentPage);else C=mk(this.data),K=dR(this.pagePool,C),K=_.K7(K);else this.data&&(C=mk(this.data),K=dR(this.pagePool,C),K=_.K7(K));if(K){w=mk(e);var G=dR(this.pagePool,
w);G=_.K7(G);if(K==G)z&&!_.M("kevlar_disable_preemptive_player_reset")&&K.resetForNewPlayback();else if(z=C==="watch"&&w!=="watch",!z||w==="shorts"||_.QB6()&&!R9v(this.data,e))e=_.lh().resolve(_.gh),z&&e.isMiniplayerActive()&&e.pipController.getWindow()||K.stop()}};
_.Y.isDifferentBrowseId=function(e,z){e=_.r(e,_.mJ);z=_.r(z,_.mJ);return(e==null?void 0:e.browseId)!==(z==null?void 0:z.browseId)};
_.Y.getPersistentPanelSurface=function(e){switch(e){case "watch":return"WATCH";default:return"APP"}};
_.lB.Object.defineProperties(Ay,{template:{configurable:!0,enumerable:!0,get:function(){return n6Y()}}});
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ay.prototype,"ytActionHandlerBehavior",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-page-manager"})],Ay);_.u(Ay,"ytd-page-manager",function(){return n6Y()},{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var MPq;var Zb=function(){var e=_.V.apply(this,arguments)||this;e.useListItemStyles=_.M("web_list_item_style_for_menu_items");e.systemIcons=_.M("kevlar_system_icons");return e};
_.U(Zb,_.V);_.Y=Zb.prototype;_.Y.ready=function(){this.hostElement.addEventListener("tap",_.lE(this,this.onEndpointTapExtra))};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){var e;(e=_.XC(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.Y.onEndpointTapExtra=function(e){_.pi(this.hostElement,"iron-activate");var z=this.data.navigationEndpoint;z&&_.r(z,_.RzE)&&(e.stopPropagation(),_.KK(this.hostElement,[z],this.hostElement))};
_.Y.computeIcon=function(e){return e&&e.iconType?_.qF(e.iconType):""};
_.Y.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.forceUpdateStylesOnLegacyBrowsers=function(){_.M("kevlar_legacy_browsers")&&_.T8(this.hostElement)};
Zb.prototype.forceUpdateStylesOnLegacyBrowsers=Zb.prototype.forceUpdateStylesOnLegacyBrowsers;Zb.prototype.onFocus=Zb.prototype.onFocus;_.d([_.W(_.VP),_.B("design:type",Object)],Zb.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.Vga.YtConditionalRendererBehavior),_.B("design:type",Object)],Zb.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.W(_.y5.YtEndpointBehavior),_.B("design:type",Object)],Zb.prototype,"ytEndpointBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],Zb.prototype,"data",void 0);_.d([_.F({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],Zb.prototype,"icon",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Zb.prototype,"useIcons",void 0);_.d([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Zb.prototype,"hasSeparator",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Zb.prototype,"useListItemStyles",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Zb.prototype,"systemIcons",void 0);_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zb.prototype,"onFocus",null);_.d([_.mi("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zb.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.u(Zb,"ytd-menu-navigation-item-renderer",function(){if(MPq===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);MPq=e}e=MPq;return e},{mode:1});var r6q;var H8f=_.AO(_.kk("DOWNLOAD",{},"Download")),Ufl=_.AO(_.kk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),v65=_.AO(_.kk("RETRY",{},"Retry")),IJE=_.AO(_.kk("PAUSE_DOWNLOADING",{},"Pause downloading")),WQ3=_.AO(_.kk("RESUME_DOWNLOAD",{},"Resume download")),pS=function(){var e=_.V.apply(this,arguments)||this;e.primaryText=H8f;e.primaryIconType="OFFLINE_DOWNLOAD";e.hasSecondaryContent=!1;e.hasSeparator=!1;e.transferState="TRANSFER_STATE_UNKNOWN";e.isVideoDeletedByUser=!1;e.isHidden=!1;e.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return e};
_.U(pS,_.V);_.Y=pS.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){this.primaryEntry.focus()};
_.Y.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.Y.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.Y.getRemoveAction=function(){return"ACTION_REMOVE"};
_.Y.sendOfflineAction=function(e){var z=this.data.serviceEndpoint;if(z){var C=_.r(z,_.HF);C&&e&&(C.action=e);this.ytComponentBehavior.resolveCommand(z)}};
_.Y.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=H8f,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=H8f;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=v65;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Ufl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=WQ3;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Ufl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
IJE;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Ufl;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Ufl;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=H8f,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.Y.showHideButton=function(){var e;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((e=this.playerStateEntity)==null?void 0:e.adsState)==="ADS_STATE_PLAYING"};
_.Y.isSecondaryEntryHidden=function(e,z){return e?!0:!z};
_.Y.computeHasSeparator=function(){var e;return!((e=this.data)==null||!e.hasSeparator)};
_.Y.computePlayerStateEntityKey=function(e){return e};
pS.prototype.showHideButton=pS.prototype.showHideButton;pS.prototype.onTransferStateChange=pS.prototype.onTransferStateChange;pS.prototype.onFocus=pS.prototype.onFocus;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],pS.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],pS.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],pS.prototype,"primaryText",void 0);_.d([_.F(),_.B("design:type",String)],pS.prototype,"primaryIconType",void 0);_.d([_.F(),_.B("design:type",String)],pS.prototype,"primaryAction",void 0);_.d([_.F(),_.B("design:type",Object)],pS.prototype,"secondaryText",void 0);_.d([_.F(),_.B("design:type",String)],pS.prototype,"secondaryIconType",void 0);
_.d([_.F(),_.B("design:type",String)],pS.prototype,"secondaryAction",void 0);_.d([_.F(),_.B("design:type",Object)],pS.prototype,"hasSecondaryContent",void 0);_.d([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Object)],pS.prototype,"hasSeparator",void 0);_.d([_.F({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.B("design:type",String)],pS.prototype,"playerStateEntityKey",void 0);
_.d([_.F({selector:_.xf,selectorArgs:["playerStateEntityKey"]}),_.B("design:type",Object)],pS.prototype,"playerStateEntity",void 0);_.d([_.F({selector:_.dk,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",String)],pS.prototype,"transferState",void 0);_.d([_.F({selector:_.Kj5,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],pS.prototype,"isVideoDeletedByUser",void 0);
_.d([_.F(),_.B("design:type",Object)],pS.prototype,"isHidden",void 0);_.d([_.F({selector:_.AYg,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.B("design:type",Object)],pS.prototype,"offlineabilityState",void 0);_.d([_.nP("#primary-entry"),_.B("design:type",Object)],pS.prototype,"primaryEntry",void 0);_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pS.prototype,"onFocus",null);
_.d([_.Ux("transferState","isVideoDeletedByUser"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pS.prototype,"onTransferStateChange",null);_.d([_.Ux("offlineabilityState","playerStateEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pS.prototype,"showHideButton",null);
_.u(pS,"ytd-menu-service-item-download-renderer",function(){if(r6q===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);r6q=e}e=r6q;return e},{mode:1});var PFY;var eT=function(){var e=_.V.apply(this,arguments)||this;e.useIcons=!1;e.systemIcons=_.M("kevlar_system_icons");e.useListItemStyles=_.M("web_list_item_style_for_menu_items");return e};
_.U(eT,_.V);_.Y=eT.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.Y.onFocus=function(){var e;(e=_.XC(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.Y.onTap=function(){_.zj(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var e=this.data.serviceEndpoint,z=this.data.command;if(e){var C,w=(C=this.data)==null?void 0:C.trackingParams;C=!!_.r(e,_.Uea);w&&C&&_.eB().dispatch(_.Yz({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:w}}));this.ytComponentBehavior.resolveCommand(e)||_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}})}z&&(this.ytComponentBehavior.resolveCommand(z)||_.KK(this.hostElement,
[z],this.hostElement))};
_.Y.computeIcon=function(e){return e&&e.iconType?_.qF(e.iconType):""};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.computeHasSeparator=function(){var e;return!((e=this.data)==null||!e.hasSeparator)};
_.Y.forceUpdateStylesOnLegacyBrowsers=function(){_.M("kevlar_legacy_browsers")&&_.T8(this.hostElement)};
_.Y.computeIsSelected=function(){var e;return!((e=this.data)==null||!e.isSelected)};
eT.prototype.forceUpdateStylesOnLegacyBrowsers=eT.prototype.forceUpdateStylesOnLegacyBrowsers;eT.prototype.onTap=eT.prototype.onTap;eT.prototype.onFocus=eT.prototype.onFocus;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],eT.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],eT.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.Vga.YtConditionalRendererBehavior),_.B("design:type",Object)],eT.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eT.prototype,"data",void 0);_.d([_.F({computed:"computeIcon(data.icon)",value:""}),_.B("design:type",String)],eT.prototype,"icon",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],eT.prototype,"useIcons",void 0);
_.d([_.F({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.B("design:type",Boolean)],eT.prototype,"hasSeparator",void 0);_.d([_.F({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.B("design:type",Boolean)],eT.prototype,"isSelected",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],eT.prototype,"systemIcons",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],eT.prototype,"useListItemStyles",void 0);
_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eT.prototype,"onFocus",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],eT.prototype,"onTap",null);_.d([_.mi("useIcons","hasSeparator"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eT.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.u(eT,"ytd-menu-service-item-renderer",function(){if(PFY===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);PFY=e}e=PFY;return e},{mode:2});var RHC;var zH=function(){return _.V.apply(this,arguments)||this};
_.U(zH,_.V);_.Y=zH.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onDataChanged=function(){var e=this;_.T0(this,function(){e.postbox.openDialog();e.focus();_.pi(e.hostElement,"yt-refit")})};
_.Y.focus=function(){this.postbox.focus()};
_.Y.closePopup=function(){_.eA(this.hostElement,"yt-close-popup-action")};
_.Y.onYtCommentboxDismiss=function(){this.closePopup()};
zH.prototype.onYtCommentboxDismiss=zH.prototype.onYtCommentboxDismiss;zH.prototype.onDataChanged=zH.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zH.prototype,"data",void 0);_.d([_.F({value:function(){return _.kk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],zH.prototype,"closeButtonAriaLabel",void 0);_.d([_.nP("#postbox"),_.B("design:type",Object)],zH.prototype,"postbox",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zH.prototype,"onDataChanged",null);_.d([_.Qi("yt-commentbox-dismiss"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zH.prototype,"onYtCommentboxDismiss",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],zH);
_.u(zH,"ytd-backstage-post-dialog-popup-renderer",function(){if(RHC!==void 0)return RHC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return RHC=e},{mode:1});var LQZ;var C1=function(){var e=_.V.apply(this,arguments)||this;e.modernModal=!0;return e};
_.U(C1,_.V);C1.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
C1.prototype.computeShouldHideOldButtons=function(){var e;return!((e=this.data)==null?0:e.button)};
_.lB.Object.defineProperties(C1.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var e,z;return(e=this.data)==null?void 0:(z=e.button)==null?void 0:z.buttonRenderer}}});
_.d([_.F(),_.B("design:type",Object)],C1.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],C1.prototype,"ytEventForwardingBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],C1.prototype,"modernModal",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],C1.prototype,"buttonRendererData",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],C1);
_.u(C1,"ytd-modal-with-title-and-button-renderer",function(){if(LQZ!==void 0)return LQZ;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return LQZ=e},{mode:1});var hH5;var wj=function(){return _.V.apply(this,arguments)||this};
_.U(wj,_.V);wj.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("page-changed",this.page))};
wj.prototype.pageChangedForBinding=wj.prototype.pageChangedForBinding;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wj.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],wj.prototype,"page",void 0);_.d([_.mi("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wj.prototype,"pageChangedForBinding",null);
_.d([_.SL({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],wj);
_.u(wj,"ytd-account-item-section-header-renderer",function(){if(hH5!==void 0)return hH5;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return hH5=e},{mode:1});var O8W;var K1=function(){return _.V.apply(this,arguments)||this};
_.U(K1,_.V);K1.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"}}}};
K1.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],K1.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],K1.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!1}),_.B("design:type",Function)],K1.prototype,"onAccountItemTap",void 0);
_.d([_.SL({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],K1);
_.u(K1,"ytd-account-item-section-renderer",function(){if(O8W!==void 0)return O8W;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return O8W=e},{mode:1});var E6C;var FQL;var VPE=function(){return _.V.apply(this,arguments)||this};
_.U(VPE,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],VPE.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],VPE.prototype,"data",void 0);_.d([_.SL({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],VPE);
_.u(VPE,"ytd-accounts-dialog-header-renderer",function(){if(FQL!==void 0)return FQL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return FQL=e},{mode:1});var fJE;var ot=function(){return _.V.apply(this,arguments)||this};
_.U(ot,_.V);ot.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ot.prototype,"data",void 0);_.d([_.SL({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],ot);
_.u(ot,"ytd-google-account-header-renderer",function(){if(fJE!==void 0)return fJE;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return fJE=e},{mode:1});var GH=function(){return _.V.apply(this,arguments)||this};
_.U(GH,_.V);GH.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"}}}};
GH.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("page-changed",this.page))};
GH.prototype.pageChangedForBinding=GH.prototype.pageChangedForBinding;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GH.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],GH.prototype,"page",void 0);
_.d([_.mi("page"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],GH.prototype,"pageChangedForBinding",null);_.d([_.SL({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],GH);
_.Yp()(GH,"ytd-account-section-list-renderer",function(){if(E6C===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);E6C=e}e=E6C;return e},{allowedProps:["data"],
mode:1});var SKb;var YY=function(){var e=_.V.apply(this,arguments)||this;e.enableHandlesAccountMenuSwitcher=_.M("enable_handles_account_menu_switcher");return e};
_.U(YY,_.V);YY.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
YY.prototype.dataChanged=YY.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],YY.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],YY.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.d([_.nP("#avatar"),_.B("design:type",Object)],YY.prototype,"avatar",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],YY.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],YY);
_.Yp()(YY,"ytd-active-account-header-renderer",function(){if(SKb===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);SKb=e}e=SKb;return e},{allowedProps:["data"],
mode:1});var uJf;var dfZ;var bD=function(){return _.V.apply(this,arguments)||this};
_.U(bD,_.V);bD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
bD.prototype.onBackTap=function(){_.pi(this.hostElement,"yt-menu-back-tapped")};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bD.prototype,"data",void 0);_.d([_.SL({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],bD);
_.Yp()(bD,"ytd-simple-menu-header-renderer",function(){if(dfZ===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);dfZ=e}e=dfZ;return e},{allowedProps:["data"],
mode:2});var Df5;var i8E=function(){return _.V.apply(this,arguments)||this};
_.U(i8E,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],i8E.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],i8E.prototype,"data",void 0);_.d([_.SL({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],i8E);
_.u(i8E,"ytd-comment-video-thumbnail-header-renderer",function(){if(Df5!==void 0)return Df5;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Df5=e},{mode:1});var NrY;var sRE=function(){return _.V.apply(this,arguments)||this};
_.U(sRE,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sRE.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],sRE.prototype,"data",void 0);_.d([_.SL({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],sRE);
_.u(sRE,"ytd-abuse-type-selector-renderer",function(){if(NrY!==void 0)return NrY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return NrY=e},{mode:1});var BrY;var tPE=(0,_.BcT)(_.sAT.reportChannelAbuse,{isVideoIdSelectedSelector:function(e,z){return z in e.selectedVideoIds},
additionalContextSelector:function(e){return e.additionalContext},
impersonatedChannelUrlSelector:function(e){return e.impersonatedChannelUrl},
reportChannelAbuseSelector:function(e){return e}});var Xp=function(){return _.V.apply(this,arguments)||this};
_.U(Xp,_.V);Xp.prototype.attached=function(){var e=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){e.additionalContextInput.focusTextInput()})};
Xp.prototype.handleAdditionalContextChanged=function(){var e=this;_.tK(this,"ytd-report-channel-additional-context-update",function(){e.ytdReduxBehavior.dispatch(_.Yz({type:"ADDITIONAL_CONTEXT_UPDATED",payload:e.additionalContext}))},300)};
Xp.prototype.updateAdditionalContextFromBinding=function(e){this.additionalContext=e.detail.value};
Xp.prototype.handleAdditionalContextChanged=Xp.prototype.handleAdditionalContextChanged;_.d([_.W(_.QX),_.B("design:type",Object)],Xp.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",String)],Xp.prototype,"additionalContext",void 0);_.d([_.F({selector:tPE.additionalContextSelector}),_.B("design:type",String)],Xp.prototype,"additionalContextRedux",void 0);_.d([_.F(),_.B("design:type",Object)],Xp.prototype,"data",void 0);
_.d([_.nP("yt-text-input-form-field-renderer"),_.B("design:type",Object)],Xp.prototype,"additionalContextInput",void 0);_.d([_.mi("additionalContext"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Xp.prototype,"handleAdditionalContextChanged",null);_.d([_.SL({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],Xp);
_.u(Xp,"ytd-report-channel-modal-additional-context-renderer",function(){if(BrY!==void 0)return BrY;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return BrY=e},{mode:1});var g6E;var JV=function(){var e=_.V.apply(this,arguments)||this;e.nextButtonDisabled=null;e.submitEndpoint=null;e.navigationEndpoint=null;e.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return e};
_.U(JV,_.V);_.Y=JV.prototype;_.Y.computeNextButtonData=function(e,z,C){var w={};z&&(w.navigationEndpoint=z);C&&(w.serviceEndpoint=C);e&&e.buttonRenderer&&_.de.extend(w,e.buttonRenderer);return w};
_.Y.handleReportChannelModalDisableNextButtonAction=function(e){this.setNextButtonIsDisabled(e)};
_.Y.handleReportFormEndpointUpdateAction=function(e){this.setNextButtonIsDisabled(!!e.disableSubmitButton);this.resetEndpointData();e.submitEndpoint?this.submitEndpoint=e.submitEndpoint:e.submitNavigationEndpoint&&(this.navigationEndpoint=e.submitNavigationEndpoint)};
_.Y.handleSignalActionSubmitForm=function(){var e,z=Object.keys(((e=this.reportChannelAbuseForm)==null?void 0:e.selectedVideoIds)||{}),C;e=((C=this.reportChannelAbuseForm)==null?void 0:C.additionalContext)||"";var w;C=((w=this.reportChannelAbuseForm)==null?void 0:w.impersonatedChannelUrl)||"";var K;if((K=this.data)==null?0:K.submitEndpoint){z={impersonated_channel_url:C,text:e,video_ids:z};var G;_.lh().resolve(_.ms).resolveCommand((G=this.data)==null?void 0:G.submitEndpoint,{form:Object.assign({},
z,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.Y.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.Y.onYtServiceRequestError=function(e){this.setNextButtonIsDisabled(!1);_.Zh(this.hostElement,e.detail.error.message)};
_.Y.setNextButtonIsDisabled=function(e){this.set("data.nextButton.buttonRenderer.isDisabled",e)};
_.Y.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
JV.prototype.onYtServiceRequestError=JV.prototype.onYtServiceRequestError;JV.prototype.onYtServiceRequestCompleted=JV.prototype.onYtServiceRequestCompleted;_.d([_.F(),_.B("design:type",Object)],JV.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],JV.prototype,"nextButtonDisabled",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],JV.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],JV.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],JV.prototype,"submitEndpoint",void 0);_.d([_.F(),_.B("design:type",Object)],JV.prototype,"navigationEndpoint",void 0);_.d([_.F({selector:tPE.reportChannelAbuseSelector}),_.B("design:type",Object)],JV.prototype,"reportChannelAbuseForm",void 0);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JV.prototype,"onYtServiceRequestCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JV.prototype,"onYtServiceRequestError",null);_.d([_.SL({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],JV);
_.u(JV,"ytd-report-channel-modal-footer-renderer",function(){if(g6E!==void 0)return g6E;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return g6E=e},{mode:1});var jRl;var kY=function(){var e=_.V.apply(this,arguments)||this;e.boundOnTapDismissButton=function(){e.closePopup()};
return e};
_.U(kY,_.V);kY.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
kY.prototype.handleDataChanged=function(){_.kO(this.hostElement)};
kY.prototype.closePopup=function(){_.eA(this.hostElement,"yt-close-popup-action")};
kY.prototype.handleDataChanged=kY.prototype.handleDataChanged;_.d([_.F(),_.B("design:type",Object)],kY.prototype,"boundOnTapDismissButton",void 0);_.d([_.F(),_.B("design:type",Object)],kY.prototype,"data",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kY.prototype,"handleDataChanged",null);_.d([_.SL({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],kY);
_.u(kY,"ytd-report-channel-modal-header-renderer",function(){if(jRl!==void 0)return jRl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jRl=e},{mode:1});var y6l;var qh=function(){var e=_.V.apply(this,arguments)||this;e.autoValidate=!1;e.invalid=!1;e.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return e};
_.U(qh,_.V);_.Y=qh.prototype;_.Y.attached=function(){var e=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){e.channelUrlInput.focusTextInput()})};
_.Y.disableNextButton=function(e){_.eA(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[e])};
_.Y.handleImpersonatedChannelUrlChanged=function(){var e=this;this.disableNextButton(!0);this.invalid=!1;_.tK(this,"ytd-report-channel-impersonated-channel-update",function(){var z=e.impersonatedChannelUrl.trim();e.ytdReduxBehavior.dispatch(_.Yz({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:z}));var C;((C=e.data)==null?0:C.submitEndpoint)&&z&&_.lh().resolve(_.ms).resolveCommand(e.data.submitEndpoint,{form:{impersonated_channel_url:z,element:e.hostElement}})},500)};
_.Y.handleModifyReportFormCommand=function(e){this.invalid=this.get("modifyReportFormCommand.action",e)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.Y.updateInvalidFromBinding=function(e){this.invalid=e.detail.value};
_.Y.updateImpersonatedChannelUrlFromBinding=function(e){this.impersonatedChannelUrl=e.detail.value};
qh.prototype.handleImpersonatedChannelUrlChanged=qh.prototype.handleImpersonatedChannelUrlChanged;_.d([_.W(_.QX),_.B("design:type",Object)],qh.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],qh.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qh.prototype,"autoValidate",void 0);_.d([_.F(),_.B("design:type",Object)],qh.prototype,"invalid",void 0);
_.d([_.F(),_.B("design:type",String)],qh.prototype,"impersonatedChannelUrl",void 0);_.d([_.F({selector:tPE.impersonatedChannelUrlSelector}),_.B("design:type",String)],qh.prototype,"impersonatedChannelUrlRedux",void 0);_.d([_.F(),_.B("design:type",Object)],qh.prototype,"data",void 0);_.d([_.nP("#text-input"),_.B("design:type",Object)],qh.prototype,"channelUrlInput",void 0);
_.d([_.mi("impersonatedChannelUrl"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qh.prototype,"handleImpersonatedChannelUrlChanged",null);_.d([_.SL({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],qh);
_.u(qh,"ytd-report-channel-modal-impersonation-renderer",function(){if(y6l!==void 0)return y6l;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return y6l=e},{mode:1});var c6l;var A6o;var xY=function(){return _.V.apply(this,arguments)||this};
_.U(xY,_.V);xY.prototype.onCheckboxToggled=function(e){var z,C,w=(C=_.r((z=this.data)==null?void 0:z.video,_.M4))==null?void 0:C.videoId;w&&this.ytdReduxBehavior.dispatch(e.target.checked?_.Yz({type:"VIDEO_SELECTED",payload:w}):_.Yz({type:"VIDEO_UNSELECTED",payload:w}))};
xY.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.lB.Object.defineProperties(xY.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var e,z=(e=this.data)==null?void 0:e.video;if(!z)return{};var C;e=(C=_.r(z,_.M4))==null?void 0:C.navigationEndpoint;if(!e)return z;_.r(e==null?void 0:e.commandMetadata,_.XV)&&(_.r(e.commandMetadata,_.XV).ignoreNavigation=!0);return z}}});
_.d([_.F({reflectToAttribute:!0,selector:tPE.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.B("design:type",Boolean)],xY.prototype,"checked",void 0);_.d([_.F(),_.B("design:type",Object)],xY.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],xY.prototype,"video",null);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],xY.prototype,"ytdReduxBehavior",void 0);_.d([_.SL({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],xY);
_.u(xY,"ytd-selectable-video-renderer",function(){if(A6o!==void 0)return A6o;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return A6o=e},{mode:1});var TH=function(){var e=_.V.apply(this,arguments)||this;e.monitorScroll=!0;return e};
_.U(TH,_.V);TH.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TH.prototype,"data",void 0);_.d([_.SL({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],TH);
_.u(TH,"ytd-selectable-video-list-renderer",function(){if(c6l!==void 0)return c6l;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return c6l=e},{mode:1});var Z83;_.hq("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var $Y=function(){return _.V.apply(this,arguments)||this};
_.U($Y,_.V);$Y.prototype.onChange=function(e){if(e=_.AU(e).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.M("kevlar_command_handler_migration_killswitch"))_.KK(this.hostElement,e,this.hostElement);else{e=_.b(e);for(var z=e.next();!z.done;z=e.next())this.ytComponentBehavior.resolveCommand(z.value)}};
$Y.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
$Y.prototype.updateDataToggledFromBinding=function(e){this.set("data.toggled",e.detail.value)};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],$Y.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$Y.prototype,"data",void 0);_.d([_.F({computed:"isEnabled(data)"}),_.B("design:type",Boolean)],$Y.prototype,"enabled",void 0);_.d([_.SL({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],$Y);
_.u($Y,"ytd-toggle-item-renderer",function(){if(Z83!==void 0)return Z83;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Z83=e},{mode:1});var pYl;var e3f;var z3v;var lD=function(){var e=_.V.apply(this,arguments)||this;e.setVisible=!1;e.boundOnSubmitButtonClick=function(){e.onSubmitButtonClick()};
e.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return e};
_.U(lD,_.V);lD.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}}}}}};
lD.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
lD.prototype.onSubmitButtonClick=function(){var e;((e=this.data)==null?0:e.submitEndpoint)&&!_.M("enable_ytc_refunds_submit_form_signal_action")&&_.wQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
lD.prototype.handleSignalActionSubmitForm=function(){var e;((e=this.data)==null?0:e.submitEndpoint)&&_.wQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.lB.Object.defineProperties(lD.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.hiddenByDefault)&&!this.setVisible}}});
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],lD.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lD.prototype,"setVisible",void 0);_.d([_.F(),_.B("design:type",Object)],lD.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],lD.prototype,"surveyFeedbackData",void 0);_.d([_.F(),_.B("design:type",Object)],lD.prototype,"boundOnSubmitButtonClick",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data","setVisible"),_.B("design:type",Object),_.B("design:paramtypes",[])],lD.prototype,"visibilityHidden",null);_.d([_.fP({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],lD);
_.u(lD,"yt-flow-footer-renderer",function(){if(z3v===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;e3f===void 0&&(e3f=document.createElement("template"));var w=e3f;C.call(z,w.content.cloneNode(!0),e.content.firstChild);z3v=e}e=z3v;return e},{mode:2});var CaE=(0,_.BcT)(_.sAT.ypc,{surveyFeedbackDataSelector:function(e){return e.surveyFeedbackData}});var QV=function(){return _.V.apply(this,arguments)||this};
_.U(QV,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],QV.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],QV.prototype,"data",void 0);_.d([_.F({selector:CaE.surveyFeedbackDataSelector}),_.B("design:type",Object)],QV.prototype,"surveyFeedbackData",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],QV);
_.u(QV,"ytd-flow-footer-renderer",function(){if(pYl!==void 0)return pYl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pYl=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var wB$;var K3E;var mL=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return e};
_.U(mL,_.V);_.Y=mL.prototype;_.Y.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.OT("multiPageMenuSectionItems")}}};
_.Y.handleHideEnclosingAction_=function(e){if(this.data&&this.data.items)for(var z=0;z<this.data.items.length;z++){var C=this.data.items[z].notificationRenderer;if(C&&C.notificationId==e.hideEnclosingAction.notificationId){this.splice("data.items",z,1);_.eA(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.Y.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.qH(this.hostElement,"hidden",!0)};
_.Y.updateMenu_=function(e){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&e&&!e.doNotRefreshInbox){e=this.data.continuations;for(var z=0;z<e.length;z++)if(e[z].invalidationContinuationData){var C=void 0;var w=(C=e[z].invalidationContinuationData)==null?void 0:C.continuation;break}e=_.de.clone(this.data.continuationUpdateEndpoint||null);e.continuation=w;e.click_tracking_params=this.data.trackingParams;_.wQ(this.hostElement,[e])}};
_.Y.onServiceRequestCompleted_=function(e,z){if(this.data&&(e=z.actions)){z=0;for(var C=e.length;z<C;z++){var w=_.r(e[z],_.jJa);if(!w)break;if((w.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||w.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&w.continuationItems&&this.data.items){var K=this.data.items.length-1;this.data.items[K].continuationItemRenderer&&(w=["data.items",K,1].concat(w.continuationItems),this.splice.apply(this,w))}}}};
mL.prototype.onServiceRequestCompleted_=mL.prototype.onServiceRequestCompleted_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],mL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],mL.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],mL.prototype,"data",void 0);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],mL.prototype,"onServiceRequestCompleted_",null);_.d([_.fP({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],mL);
_.Yp()(mL,"yt-multi-page-menu-section-renderer",function(){if(K3E===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;wB$===void 0&&(wB$=document.createElement("template"));var w=wB$;C.call(z,w.content.cloneNode(!0),e.content.firstChild);K3E=e}e=K3E;return e},{allowedProps:["data"],
mode:2});var ohL;var G7E;var at=function(){return _.V.apply(this,arguments)||this};
_.U(at,_.V);at.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.lB.Object.defineProperties(at.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.progress)==null?0:this.data.progress*100}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],at.prototype,"data",void 0);_.d([_.P("data.progress"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],at.prototype,"showProgressBar",null);
_.d([_.P("data.progress"),_.B("design:type",Number),_.B("design:paramtypes",[])],at.prototype,"progress",null);_.d([_.fP({is:"yt-flow-header-renderer",disableElementRegistration:!0})],at);
_.u(at,"yt-flow-header-renderer",function(){if(G7E===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;ohL===void 0&&(ohL=document.createElement("template"));var w=ohL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);G7E=e}e=G7E;return e},{mode:2});var Ypq;var buo;var n1=function(){return _.V.apply(this,arguments)||this};
_.U(n1,_.V);n1.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],n1.prototype,"data",void 0);_.d([_.fP({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],n1);
_.u(n1,"yt-post-confirmation-flow-step-renderer",function(){if(buo===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Ypq===void 0&&(Ypq=document.createElement("template"));var w=Ypq;C.call(z,w.content.cloneNode(!0),e.content.firstChild);buo=e}e=buo;return e},{mode:2});var XBq;var J3C;var Mh=function(){return _.V.apply(this,arguments)||this};
_.U(Mh,_.V);
Mh.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"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Mh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Mh.prototype,"data",void 0);_.d([_.fP({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Mh);
_.u(Mh,"yt-refund-confirmation-flow-step-renderer",function(){if(J3C===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;XBq===void 0&&(XBq=document.createElement("template"));var w=XBq;C.call(z,w.content.cloneNode(!0),e.content.firstChild);J3C=e}e=J3C;return e},{mode:2});var k7f=_.f(function(e){var z=e.data;return _.x("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.x("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.x(_.Zf,{data:function(){return{thumbnails:[{url:z().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.x("div",{class:"profileBadgeViewModelContent"},_.x("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return z().badgeDesc}),_.x(_.l,{cond:function(){return z().badgeSubtitle},
then:function(){return _.x("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return z().badgeSubtitle})}})))},"oj");
k7f.idomCompat=!0;var qpb=_.f(function(e){var z=e.data;return _.x("yt-comment-interaction-view-model",{el:_.ej(_.Dh(function(){return z().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.x("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return z().onTapA11yLabel},
"on:keydown":_.BTo(),tabindex:0},_.x("div",{class:"ytCommentInteractionViewModelHeader"},_.x("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return z().headerPrefix},' "',function(){return z().videoTitle}),_.x("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.x("div",{class:"ytCommentInteractionViewModelContent"},_.x("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return z().commentContent}),_.x("div",{class:"ytCommentInteractionViewModelChevron"},
_.x(_.Zf,{data:function(){return{thumbnails:[{url:z().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"pj");
qpb.idomCompat=!0;var xAC=_.f(function(e){var z=e.data;return _.x("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO}),_.x("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return z().channelName}))},"qj");
xAC.idomCompat=!0;var mA5=_.f(function(e){var z=e.data;e={};return _.x("yt-profile-info-view-model",{class:_.qT("ytProfileInfoViewModelHost",(e.ytProfileInfoViewModelWithVideoShelf=function(){return z().videosHorizontalShelf},e))},_.x(T2f,{profileInfo:z}),_.x(_.PF,{data:function(){return z().videosHorizontalShelf}},{horizontalShelfViewModel:function(C){return _.x("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.x(_.Rj,{data:C.data}))}}),_.x(_.l,{cond:function(){return z().comments},
then:function(){return _.x($Av,{profileInfo:z})}}),_.x(_.l,{cond:function(){return z().sharedSubscriptionsTitle},
then:function(){return _.x(_.l,{cond:function(){return z().subscriptionsAccessButtonCommand},
then:function(){return _.x(ltL,{profileInfo:z})},
else:function(){return _.x(QGl,{profileInfo:z})}})}}))},"rj");
mA5.idomCompat=!0;var $Av=_.f(function(e){var z=e.profileInfo;return _.x("div",{class:"ytProfileInfoViewModelActivity"},_.x("div",{class:"ytProfileInfoViewModelHeader"},_.x("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return z().commentsInteractionTitle})),_.x(_.PF,{data:function(){return z().comments}},{commentInteractionViewModel:function(C){return _.x("div",{class:"ytProfileInfoViewModelActivity"},_.x(qpb,{data:C.data}))}}))},"sj"),ltL=_.f(function(e){var z=e.profileInfo;
return _.x("div",{class:"ytProfileInfoViewModelSubSection"},_.x("div",{class:"ytProfileInfoViewModelSubHeader"},_.x(_.fE,{command:function(){return z().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.x("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return z().sharedSubscriptionsTitle}),_.x("div",null,_.x(_.PF,{data:function(){return z().subscriptionsAccessButton}},{buttonViewModel:_.iz})))),_.x(atv,{sharedSubscriptions:function(){var C;
return((C=z().sharedSubscriptions)==null?void 0:C.slice(0,5))||[]}}))},"tj"),QGl=_.f(function(e){var z=e.profileInfo;
return _.x("div",{class:"ytProfileInfoViewModelSubSection"},_.x("div",{class:"ytProfileInfoViewModelSubHeader"},_.x("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return z().sharedSubscriptionsTitle})),_.x(atv,{sharedSubscriptions:function(){var C;
return((C=z().sharedSubscriptions)==null?void 0:C.slice(0,5))||[]}}))},"uj"),atv=_.f(function(e){return _.x("div",{class:"ytProfileInfoViewModelSubs"},_.x(_.PF,{data:e.sharedSubscriptions},{sharedSubscriptionViewModel:function(z){return _.x("div",{class:"ytProfileInfoViewModelSub"},_.x(xAC,{data:z.data}))}}))},"vj"),T2f=_.f(function(e){var z=e.profileInfo;
return _.x("div",{class:"ytProfileInfoViewModelActivity"},_.x(_.ui,{each:function(){return[z().profileBadgeInfoYtWide,z().profileBadgeInfoChannelWide].filter(function(C){return!!C})},
keyBy:"INDEX"},function(C){return _.x(_.Qw,null,_.x("div",{class:"ytProfileInfoViewModelHeader"},_.x("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return C().profileSectionTitle}),_.x("div",{class:"ytProfileInfoViewModelSectionDesc"},_.x("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var w;
return(w=C().commentBadge)==null?void 0:w.commentDesc}),_.x(_.l,{cond:function(){var w;
return(w=C().commentBadge)==null?void 0:w.blackHeartDesc},
then:function(){return _.x("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.x("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.x(_.Zf,{data:function(){var w;
return{thumbnails:[{url:(w=C().commentBadge)==null?void 0:w.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.x("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var w;return(w=C().commentBadge)==null?void 0:w.blackHeartDesc}))),_.x("div",{class:"ytProfileInfoViewModelBadge"},_.x(_.ui,{each:function(){return C().badges||[]}},function(w){return _.x(k7f,{data:w})})))}))},"wj");var nhE=_.f(function(e){var z=e.data;var C=function(){return z().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.x("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.x(_.PF,{data:function(){return z().profileIdentityInfo}},{profileIdentityInfoViewModel:function(w){return _.x(_.Fm5,{data:w.data,
hideDivider:C,isChannelInfoCard:C})},
profileInfoViewModel:mA5}),_.x(_.PF,{data:function(){return z().profileInfo}},{profileIdentityInfoViewModel:_.Fm5,
profileInfoViewModel:mA5}))},"xj");
nhE.idomCompat=!0;_.KU(nhE,"yt-profile-card-view-model",{props:{data:_.vh}});var rj=function(){var e=_.V.apply(this,arguments)||this;e.enableFocusFix=_.M("music_web_enable_focus_on_setting_menu_fix")&&_.cR("IS_MOBILE_WEB",!1);e.covered=!1;e.hideMenu=!1;e.isCommentNotificationOnProfileCard=!1;e.scrolledByTouch=!1;e.disableBackdropFilter=_.M("web_disable_backdrop_filter");e.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return e};
_.U(rj,_.V);_.Y=rj.prototype;
_.Y.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"}}}};
_.Y.ready=function(){var e=this;this.JSC$20663_containerElement.addEventListener("scroll",function(){e.ytRendererBehavior.markDirty()})};
_.Y.attributeChanged=function(e,z){e==="menu-style"&&_.eA(this.hostElement,"yt-multi-page-menu-closed-action",[z])};
_.Y.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lE(this,this.focusOnStampFinished))};
_.Y.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.lE(this,this.focusOnStampFinished))};
_.Y.reset=function(){this.closeJobId&&(_.c5.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.Y.focusOnStampFinished=function(e){e.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.lE(this,this.focusOnStampFinished)),this.doFocus())};
_.Y.doFocus=function(){var e=_.cLY(this.sectionsElement);e.length&&e[0].focus()};
_.Y.computeMenuStyle=function(e){return e?e.toLowerCase().replace(/_/g,"-"):""};
_.Y.computeIsCommentNotificationOnProfileCard=function(e){return _.M("enable_profile_cards_on_comments")&&e.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.Y.computeHideMenu=function(e,z){return e||!(!z||!z.showLoadingSpinner)};
_.Y.onPopupClosed=function(){this.isPopUpOpen=!1;_.eA(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.Y.onPopupOpened=function(e,z){this.isPopUpOpen=!0;z.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.pi(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Yz({type:"CHANNEL_REPORT_RESET"})))};
_.Y.onYtNavigate=function(e,z){this.shouldCloseOnNavigateEvent(z.endpoint)&&_.eA(this.hostElement,"yt-close-all-popups-action")};
_.Y.handleEndpoint=function(e){e=_.r(e,_.TC);!this.isCommentNotificationOnProfileCard&&e&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20663_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.Y.handleActions=function(e){for(var z=0,C=e.length;z<C;z++){var w=_.r(e[z],LlZ);w&&this.handleGetMultiPageMenuAction(w);(w=_.r(e[z],_.jJa))&&this.handleAppendContinuationItemsAction(w)}};
_.Y.onServiceRequestSentOrCompleted=function(e,z){e.detail&&e.detail.endpoint&&this.handleEndpoint(e.detail.endpoint);z.actions&&this.handleActions(z.actions)};
_.Y.handleGetMultiPageMenuAction=function(e){var z=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.XC(this.submenuElement).appendChild(z);(e=e.menu.multiPageMenuRenderer)&&this.logSubmenu(e);z.data=e;z.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.Y.handleAppendContinuationItemsAction=function(e){if(this.data&&e.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&e.continuationItems&&this.data.sections){var z=this.data.sections.length-1;this.data.sections[z].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),z--);if(this.data.sections[z].multiPageMenuNotificationSectionRenderer&&e.continuationItems){e=_.b(e==null?void 0:e.continuationItems);for(var C=e.next();!C.done;C=e.next())if(C=C.value,_.r(C,COo)){var w=
void 0,K=void 0,G=void 0,X=void 0,J=void 0;((w=this)==null?0:(K=w.data)==null?0:(G=K.sections)==null?0:(X=G[z])==null?0:(J=X.multiPageMenuNotificationSectionRenderer)==null?0:J.items)&&this.push("data.sections."+z+".multiPageMenuNotificationSectionRenderer.items",C)}else if(_.r(C,_.Src)||_.r(C,_.GO))this.push("data.sections",C),z++}}};
_.Y.logSubmenu=function(e){if(!_.M("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var z=this.ytRendererBehavior.getScreenLayer(),C=_.Pr(z),w=_.Ip(z);if((e=e.trackingParams)&&C&&w){var K=_.v9(e);_.M("combine_ve_grafts")?_.nm().graftServerVe(e,w,z):_.id(C,w,K)}}};
_.Y.emptySubmenuContainer=function(){for(var e=_.XC(this.submenuElement);e.firstChild;)e.removeChild(e.firstChild)};
_.Y.onMenuBackTap=function(e){_.pi(this.hostElement,"yt-submenu-closed");e.stopPropagation()};
_.Y.onSubmenuClosed=function(e){_.AU(e)!==this.hostElement&&(this.covered=!1,_.pi(this.hostElement,"yt-refit"),e.stopPropagation())};
_.Y.onRetrieveLocation=function(e,z){z.hasComments&&(z.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),e.stopPropagation())};
_.Y.shouldCloseOnNavigateEvent=function(e){if(!e)return!0;if(_.r(e,_.QQ4)||_.r(e,_.meS)||_.r(e,_.lS4)||_.r(e,_.oO))return!1;var z;return((z=_.r(e==null?void 0:e.commandMetadata,_.XV))==null?0:z.ignoreNavigation)?!1:!0};
_.Y.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.Y.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.Y.refitAfterRender=function(){var e=this;_.T0(this,function(){_.pi(e.hostElement,"yt-refit")})};
rj.prototype.refitAfterRender=rj.prototype.refitAfterRender;rj.prototype.onRetrieveLocation=rj.prototype.onRetrieveLocation;rj.prototype.onSubmenuClosed=rj.prototype.onSubmenuClosed;rj.prototype.onMenuBackTap=rj.prototype.onMenuBackTap;rj.prototype.onServiceRequestSentOrCompleted=rj.prototype.onServiceRequestSentOrCompleted;rj.prototype.onYtNavigate=rj.prototype.onYtNavigate;rj.prototype.onPopupOpened=rj.prototype.onPopupOpened;rj.prototype.onPopupClosed=rj.prototype.onPopupClosed;
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],rj.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],rj.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rj.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],rj.prototype,"enableFocusFix",void 0);_.d([_.F(),_.B("design:type",Object)],rj.prototype,"covered",void 0);_.d([_.F({computed:"computeHideMenu(covered, data)"}),_.B("design:type",Object)],rj.prototype,"hideMenu",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.B("design:type",String)],rj.prototype,"menuStyle",void 0);
_.d([_.F({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.B("design:type",Object)],rj.prototype,"isCommentNotificationOnProfileCard",void 0);_.d([_.F(),_.B("design:type",Boolean)],rj.prototype,"isPopUpOpen",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],rj.prototype,"scrolledByTouch",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],rj.prototype,"disableBackdropFilter",void 0);
_.d([_.nP("#sections"),_.B("design:type",HTMLElement)],rj.prototype,"sectionsElement",void 0);_.d([_.nP("#spinner"),_.B("design:type",HTMLElement)],rj.prototype,"spinnerElement",void 0);_.d([_.nP("#header"),_.B("design:type",HTMLElement)],rj.prototype,"headerElement",void 0);_.d([_.nP("#container"),_.B("design:type",HTMLElement)],rj.prototype,"JSC$20663_containerElement",void 0);_.d([_.nP("#submenu"),_.B("design:type",HTMLElement)],rj.prototype,"submenuElement",void 0);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rj.prototype,"onPopupClosed",null);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],rj.prototype,"onPopupOpened",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],rj.prototype,"onYtNavigate",null);
_.d([_.Qi("yt-service-request-completed"),_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],rj.prototype,"onServiceRequestSentOrCompleted",null);_.d([_.Qi("yt-menu-back-tapped"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],rj.prototype,"onMenuBackTap",null);
_.d([_.Qi("yt-submenu-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],rj.prototype,"onSubmenuClosed",null);_.d([_.Qi("yt-retrieve-location"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],rj.prototype,"onRetrieveLocation",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rj.prototype,"refitAfterRender",null);
_.d([_.SL({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],rj);
_.u(rj,"ytd-multi-page-menu-renderer",function(){if(uJf!==void 0)return uJf;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return uJf=e},{mode:1});var M$l;var Hu=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return e};
_.U(Hu,_.V);_.Y=Hu.prototype;_.Y.created=function(){this.showTooltips=!0};
_.Y.computeAccessibility_=function(e){return this.get("accessibility.accessibilityData",e)||null};
_.Y.onTap=function(){var e=_.zj(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(e&&e.length===1&&e[0])_.eA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var z;if((z=this.data)==null?0:z.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var C;((C=this.data)==null?0:C.menuRequest)&&_.wQ(this.hostElement,[this.data.menuRequest])}}};
_.Y.handleTopbarMenuClosedAction=function(e){var z,C;(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(e)===((z=this.data)==null?void 0:(C=z.icon)==null?void 0:C.iconType)&&this.toggleIconState(!1)};
_.Y.toggleIconState=function(e){_.M("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=e)};
_.Y.handleUpdateTopbarAvatarAction=function(e){var z;e=(z=_.r(e,HTl))==null?void 0:z.avatarUrl;var C,w;z=(C=this.data)==null?void 0:(w=C.avatar)==null?void 0:w.thumbnails;e&&z&&(C={thumbnails:[Object.assign({},z[0],{url:e})]},this.set("data.avatar",C))};
_.lB.Object.defineProperties(Hu.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.XC(this.hostElement).querySelector("#button")}}});
Hu.prototype.onTap=Hu.prototype.onTap;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Hu.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],Hu.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.EMC.YtButtonBehavior),_.B("design:type",Object)],Hu.prototype,"ytButtonBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Hu.prototype,"data",void 0);
_.d([_.nP("yt-icon-button#button"),_.B("design:type",Object)],Hu.prototype,"iconButton",void 0);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hu.prototype,"onTap",null);_.d([_.SL({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Hu);
_.Yp()(Hu,"ytd-topbar-menu-button-renderer",function(){if(M$l===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);M$l=e}e=M$l;return e},{allowedProps:["data"],
mode:1});var r3l;var Uu=function(){return _.V.apply(this,arguments)||this};
_.U(Uu,_.V);Uu.prototype.getSelected=function(){return this.reasons.selected};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Uu.prototype,"data",void 0);_.d([_.nP("#reasons"),_.B("design:type",Object)],Uu.prototype,"reasons",void 0);_.d([_.SL({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Uu);
_.u(Uu,"ytd-ad-feedback-content",function(){if(r3l!==void 0)return r3l;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return r3l=e},{mode:1});var HuL;var vu=function(){return _.V.apply(this,arguments)||this};
_.U(vu,_.V);_.Y=vu.prototype;_.Y.onPopupOpened=function(){_.eA(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.Y.computeConfirmButton=function(e){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:e.confirmLabel}};
_.Y.computeCancelButton=function(e){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:e.cancelLabel}};
_.Y.onConfirmTap=function(){var e=this.content.getSelected();e!==void 0&&(e=this.data.reasons[e].endpoint)&&(_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}}),_.eA(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.Y.sendFeedbackSubmitToastAction=function(){var e;(e=this.data)!=null&&e.completionMessage&&(e=_.CW(this.data.completionMessage),_.eA(this.hostElement,"yt-open-popup-action",[e,this]))};
_.Y.onCancelTap=function(){_.eA(this.hostElement,"yt-close-popup-action")};
vu.prototype.onPopupOpened=vu.prototype.onPopupOpened;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vu.prototype,"data",void 0);_.d([_.nP("#content"),_.B("design:type",Object)],vu.prototype,"content",void 0);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],vu.prototype,"onPopupOpened",null);
_.d([_.SL({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],vu);
_.u(vu,"ytd-ad-feedback-renderer",function(){if(HuL!==void 0)return HuL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return HuL=e},{mode:1});var UAY;var vhL=function(){return _.V.apply(this,arguments)||this};
_.U(vhL,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],vhL.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vhL.prototype,"data",void 0);_.d([_.SL({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],vhL);
_.u(vhL,"ytd-ad-info-dialog-content",function(){if(UAY!==void 0)return UAY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return UAY=e},{mode:1});var Ita;var It=function(){return _.V.apply(this,arguments)||this};
_.U(It,_.V);It.prototype.computeConfirmButton=function(e){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:e.confirmLabel}};
It.prototype.onConfirmTap=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
It.prototype.computeShouldShowTitle=function(){var e;return!((e=this.data)==null||!e.title)};
It.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
It.prototype.onPopupClosed=It.prototype.onPopupClosed;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],It.prototype,"data",void 0);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],It.prototype,"onPopupClosed",null);_.d([_.SL({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],It);
_.u(It,"ytd-ad-info-dialog-renderer",function(){if(Ita!==void 0)return Ita;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Ita=e},{mode:1});var W3l;var Wu=function(){var e=_.V.apply(this,arguments)||this;e.actionButtonClass="action-button";e.dismissButtonId="dismiss-button";e.dialogDismiss=!0;return e};
_.U(Wu,_.V);_.Y=Wu.prototype;_.Y.computeInPlayer=function(e){return(e==null?void 0:e.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.Y.computedLogo=function(){var e,z;return this.isDarkTheme()?(e=this.data)==null?void 0:e.logoDark:(z=this.data)==null?void 0:z.logo};
_.Y.computedHeaderImage=function(){var e,z;return this.isDarkTheme()?(e=this.data)==null?void 0:e.headerImageDark:(z=this.data)==null?void 0:z.headerImage};
_.Y.computeLogoIconId=function(){var e,z,C,w=(e=this.computedLogo())==null?void 0:(z=e.sources)==null?void 0:(C=z[0])==null?void 0:C.height;return w&&w%31===0?"logo-icon-with-padding":"logo-icon"};
_.Y.computeLogoIconHeight=function(){var e,z,C,w=(e=this.computedLogo())==null?void 0:(z=e.sources)==null?void 0:(C=z[0])==null?void 0:C.height;return w&&w%31===0?"31":"24"};
_.Y.onPopupClosed=function(){_.lh().resolve(_.qA).dispose()};
_.Y.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.Y.onShow=function(){this.inPlayer&&_.l6(6);this.titleElement.focus()};
_.Y.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var e=0;e<this.data.impressionEndpoints.length;e++){var z=_.r(this.data.impressionEndpoints[e],_.fm);z&&this.ytComponentBehavior.resolveCommand(z)}};
_.Y.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.eA(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.lB.Object.defineProperties(Wu.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var e,z;return!((e=this.data)==null||!e.headerImageDark)&&!((z=this.data)==null||!z.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.secondaryButton)}}});
Wu.prototype.onPopupClosed=Wu.prototype.onPopupClosed;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Wu.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.nE.YtVisibilityBehavior),_.B("design:type",Object)],Wu.prototype,"ytVisibilityBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Wu.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],Wu.prototype,"actionButtonClass",void 0);_.d([_.F(),_.B("design:type",Object)],Wu.prototype,"dismissButtonId",void 0);_.d([_.F(),_.B("design:type",Object)],Wu.prototype,"dialogDismiss",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wu.prototype,"hasHeaderImage",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Wu.prototype,"hasPremiumButton",null);
_.d([_.F({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.B("design:type",Boolean)],Wu.prototype,"inPlayer",void 0);_.d([_.nP("#dismiss-button"),_.B("design:type",HTMLElement)],Wu.prototype,"dismissButton",void 0);_.d([_.nP("#title"),_.B("design:type",HTMLElement)],Wu.prototype,"titleElement",void 0);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Wu.prototype,"onPopupClosed",null);
_.d([_.SL({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Wu);
_.u(Wu,"ytd-enforcement-message-view-model",function(){if(W3l!==void 0)return W3l;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return W3l=e},{mode:1});var Pa$;var R3L;var Pu=function(){var e=_.V.apply(this,arguments)||this;e.TEST_ONLY={immediateValidation:function(){e.immediateValidation()},
onValidationResponse:function(z){e.onValidationResponse(z)},
onGenerateHandleFromNameResponse:function(z){e.onGenerateHandleFromNameResponse(z)}};
return e};
_.U(Pu,_.V);_.Y=Pu.prototype;_.Y.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.Y.validate=function(){this.immediateValidation()};
_.Y.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.Y.setHandleInputValue=function(e){this.handleDir=this.getHandleDir(e);this.handleInput.value=e;this.validationState={status:"PENDING"};this.immediateValidation()};
_.Y.getHandleDir=function(e){var z=e===""&&!1;return(z=_.xLg.test.call(_.xLg,e))?"rtl":"ltr"};
_.Y.onDataChanged=function(){var e,z;this.handleDir=this.getHandleDir((z=(e=this.data)==null?void 0:e.handle)!=null?z:"");var C;this.validationState=((C=this.data)==null?0:C.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var w;((w=this.data)==null?0:w.validateOnInit)&&this.immediateValidation()};
_.Y.stopPropagation=function(e){e.stopPropagation()};
_.Y.onInput=function(){var e;this.handleDir=this.getHandleDir((e=this.handleInput.value)!=null?e:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.Y.onFocusout=function(e){this.handleInput.contains(e.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.Y.delayedValidation=function(){var e,z;this.debouncedValidation((z=(e=this.data)==null?void 0:e.validationDelayMs)!=null?z:1E3)};
_.Y.immediateValidation=function(){this.debouncedValidation(0)};
_.Y.debouncedValidation=function(e){var z=this;_.tK(this,"debouncedValidation",function(){var C,w=z.staticValidation((C=z.handleInput.value)!=null?C:"");if(w!==void 0)z.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:w};else{var K;if((K=z.data)!=null&&K.validateChannelHandleCommand){z.validationState={status:"LOADING"};var G;z.ytComponentBehavior.resolveCommand(z.data.validateChannelHandleCommand,{form:{handle:(G=z.handleInput.value)!=null?G:""},commandController:{onSuccess:function(X,
J){z.onValidationResponse(J)},
onServerError:function(X,J){z.onValidationServerError(J)}}})}else z.handleUnexpectedValidationError(new _.uh("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",z.data))}},e)};
_.Y.staticValidation=function(e){var z;if(((z=this.data)==null?void 0:z.channelHandleStaticValidationParams)!==void 0){z=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(e)&&z.validValueRegexpErrorMessage!==void 0)return z.validValueRegexpErrorMessage;if(z.minLength!==void 0&&e.length<z.minLength&&z.minLengthErrorMessage!==void 0)return z.minLengthErrorMessage;if(z.maxLength!==void 0&&e.length>z.maxLength&&z.maxLengthErrorMessage!==void 0)return z.maxLengthErrorMessage}};
_.Y.onValidationResponse=function(e){var z=_.r(e.result,Udb);z===void 0?this.handleUnexpectedValidationError(new _.uh("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",e)):this.handleValidationResultRenderer(z)};
_.Y.onValidationServerError=function(e){this.handleUnexpectedValidationError(new _.uh("ValidateChannelHandle request failed.",e))};
_.Y.handleValidationResultRenderer=function(e){if(e.handle===void 0)this.handleUnexpectedValidationError(new _.uh("ChannelHandleValidationResultRenderer does not contain handle.",e));else if(e.handle===this.handleInput.value)switch(e.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:e.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:e.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.uh("Unrecognized ChannelHandleValidationResult",e));break;default:_.ca(e.result)}};
_.Y.handleUnexpectedValidationError=function(e){var z;this.validationState={status:"UNKNOWN",handle:(z=this.handleInput.value)!=null?z:""};_.AX(e)};
_.Y.stopEventPropagation=function(e){e.stopPropagation()};
_.Y.updateHandleOnChannelNameInputChange=function(e){if(!this.wasEdited){var z,C;this.debouncedGenerateHandleFromName(e,(C=(z=this.data)==null?void 0:z.validationDelayMs)!=null?C:1E3)}};
_.Y.debouncedGenerateHandleFromName=function(e,z){var C=this;_.tK(this,"debouncedGenerateHandleFromName",function(){var w;(w=C.data)!=null&&w.validateChannelHandleCommand?C.ytComponentBehavior.resolveCommand(C.data.validateChannelHandleCommand,{form:{name:e},commandController:{onSuccess:function(K,G){C.onGenerateHandleFromNameResponse(G)},
onServerError:function(K,G){_.AX(new _.uh("Error calling GenerateHandleFromName",G))}}}):_.AX(new _.uh("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",C.data))},z)};
_.Y.onGenerateHandleFromNameResponse=function(e){this.wasEdited||((e=_.r(e.result,vXo))?this.setHandleInputValue(e.handle):_.AX(new _.uh("Invalid results when generate handle from name")))};
_.lB.Object.defineProperties(Pu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var e;if(e=this.validationState)e=this.validationState,e=e.status==="OK"||e.status==="UNKNOWN";if(e)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var e;if(((e=this.validationState)==null?void 0:e.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 e,z=(e=this.channelHandleEntity)==null?void 0:e.handleEdit;this.handleDir=this.getHandleDir(z!=null?z:"");return z}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var e,z;if(((e=this.data)==null?void 0:(z=e.channelHandleStaticValidationParams)==null?void 0:z.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Pu.prototype.stopEventPropagation=Pu.prototype.stopEventPropagation;Pu.prototype.onDataChanged=Pu.prototype.onDataChanged;Pu.prototype.applyHandleEdit=Pu.prototype.applyHandleEdit;Pu.prototype.onValueChanged=Pu.prototype.onValueChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Pu.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Pu.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Pu.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Boolean)],Pu.prototype,"wasEdited",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],Pu.prototype,"handleDir",void 0);_.d([_.nP("#handle-input"),_.B("design:type",Object)],Pu.prototype,"handleInput",void 0);_.d([_.F(),_.P("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pu.prototype,"value",null);
_.d([_.mi("value"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pu.prototype,"onValueChanged",null);_.d([_.P("validationState"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pu.prototype,"errorIndicator",null);_.d([_.F({reflectToAttribute:!0}),_.P("errorIndicator"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Pu.prototype,"borderErrorIndicator",null);
_.d([_.F({selectorArgs:["data.channelHandleEntityKey"],selector:function(e,z){return _.xz(e.entities,"channelHandle",z)}}),
_.B("design:type",Object)],Pu.prototype,"channelHandleEntity",void 0);_.d([_.P("channelHandleEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pu.prototype,"handleEdit",null);_.d([_.mi("handleEdit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pu.prototype,"applyHandleEdit",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Pu.prototype,"onDataChanged",null);
_.d([_.P("data.channelHandleStaticValidationParams.validValueRegexp"),_.B("design:type",Object),_.B("design:paramtypes",[])],Pu.prototype,"validValueRegexp",null);_.d([_.Qi("yt-service-request-sent"),_.Qi("yt-service-request-completed"),_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Pu.prototype,"stopEventPropagation",null);_.d([_.SL({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Pu);
_.u(Pu,"ytd-channel-handle-input-renderer",function(){if(R3L!==void 0)return R3L;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return R3L=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var Rt=function(){var e=_.V.apply(this,arguments)||this;e.data=null;e.errorMessage=null;e.isLoading=!0;e.hideContainer=!1;e.enableNewChannelCreationOnIdForAll=_.M("enable_new_channel_creation_for_id4all");e.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"};e.testOnly={setErrorMessage:function(z){e.resetErrorState();
e.setErrorState(z)}};
return e};
_.U(Rt,_.V);_.Y=Rt.prototype;_.Y.created=function(){this.logScreenVe()};
_.Y.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")};
_.Y.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var e;((e=this.zeroStepErrorMessageEntity)==null?0:e.value)&&this.set("errorMessage",_.AO(this.zeroStepErrorMessageEntity.value))};
_.Y.onCreateTap=function(){var e=this;if(this.data&&this.data.channelCreationEndpoint){var z,C;if(!((z=this.data.createChannelButton)==null?0:(C=z.buttonRenderer)==null?0:C.isDisabled)){var w;if((w=this.nameInput)!=null&&w.value){this.setLoadingState();var K,G;z=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(K=this.handleInput)==null?void 0:K.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((G=this.handleInput)==null?void 0:G.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:z,commandController:{onSuccess:function(X,J){e.onChannelCreationEndpointSuccess(J);e.obakeImageSource&&_.gm("channelCreatedWithObakeImage",{imageSourceType:e.obakeImageSource})},
onServerError:function(){e.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.Y.endpointRequiresServiceRequestAction=function(e){return!!_.r(e,_.Dr)||!!_.r(e,HTl)};
_.Y.isNavigateAction=function(e){var z;return!!_.r(e,_.aL5)||!!_.r((z=_.r(e,PT$))==null?void 0:z.command,_.aL5)};
_.Y.isPlaylistAction=function(e){return!!_.r(e,_.$R)||!!_.r(e,_.rA)};
_.Y.onChannelCreationEndpointSuccess=function(e){if(e.createChannelError){var z;this.setErrorState((z=e.createChannelError)==null?void 0:z.errorMessage);this.handleInput&&this.handleInput.validate()}else{e.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(e.navigationEndpoint);if(e.actions){z=_.b(e.actions);for(var C=z.next();!C.done;C=z.next())if(C=C.value,this.endpointRequiresServiceRequestAction(C)&&this.ytComponentBehavior.resolveCommand(C),this.isNavigateAction(C)){var w=void 0;C=_.r((w=
_.r(C,PT$))==null?void 0:w.command,_.aL5);w=void 0;this.isPlaylistAction((w=C)==null?void 0:w.endpoint)&&(_.eA(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),w=void 0,this.ytComponentBehavior.resolveCommand((w=C)==null?void 0:w.endpoint))}}e.actions&&e.actions.some(function(K){var G;return _.r(K,_.aL5)||_.r((G=_.r(K,PT$))==null?void 0:G.command,_.aL5)})||_.eA(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.Y.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.Y.onCancelTap=function(){var e,z,C;if(!((e=this.data)==null?0:(z=e.cancelButton)==null?0:(C=z.buttonRenderer)==null?0:C.isDisabled)){var w,K,G;e=(w=this.data)==null?void 0:(K=w.cancelButton)==null?void 0:(G=K.buttonRenderer)==null?void 0:G.command;if(!e||!_.r(e,_.Pq4)){var X;this.nameInput&&((X=this.data)==null?0:X.name)&&(this.nameInput.value=this.data.name);var J;this.handleInput&&((J=this.data)==null?0:J.channelHandleInput)&&(this.handleInput.data=_.r(this.data.channelHandleInput,I5Z));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.Y.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.Y.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.Y.onClearProfilePhotoTap=function(){var e,z,C;((e=this.data)==null?0:(z=e.clearProfilePhotoButton)==null?0:(C=z.buttonRenderer)==null?0:C.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.Y.onEditAvatarTap=function(){var e,z,C;((e=this.data)==null?0:(z=e.editAvatarButton)==null?0:(C=z.buttonRenderer)==null?0:C.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.Y.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)};
_.Y.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var e;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((e=this.data)==null?0:e.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.Y.setErrorState=function(e){this.resetErrorState();if(e)this.set("errorMessage",e);else{var z;if((z=this.zeroStepErrorMessageEntity)==null?0:z.value)this.set("errorMessage",_.AO(this.zeroStepErrorMessageEntity.value));else{var C;((C=this.data)==null?0:C.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.Y.fetchImageBlobWithAlr=function(e,z){z=z===void 0?5:z;var C=this,w,K,G,X,J;return _.k(function(q){switch(q.nextAddress){case 1:return q.yield(fetch(e,{method:"GET",mode:"cors"}),2);case 2:w=q.yieldResult;if(w.ok){q.jumpTo(3);break}if(z===0)throw Error();K=C.addJitter(Math.pow(2,5-z));return q.yield(new Promise(function(T){setTimeout(T,K*1E3)}),4);
case 4:return q.return(C.fetchImageBlobWithAlr(e,z-1));case 3:if(!w.headers.get("content-type").split(";").some(function(T){return T.trim()==="text/plain"})){q.jumpTo(5);
break}G=C;X=G.fetchImageBlobWithAlr;return q.yield(w.text(),6);case 6:return q.return(X.call(G,q.yieldResult,z-1));case 5:return q.yield(w.blob(),7);case 7:return J=q.yieldResult,q.return(J)}})};
_.Y.addJitter=function(e){var z=e*.3*Math.random();Math.random()>.5&&(z*=-1);return e+z};
_.Y.openProfilePicturePicker=function(){var e=this,z,C,w,K,G,X;return _.k(function(J){if(J.nextAddress==1){z=e.data.scottyUploadUrl;if(!z)return J.return();C=document.documentElement.hasAttribute("dark");w=document.body.style.colorScheme;C&&(document.body.style.colorScheme="dark");K=bE3(Xh5(Y25(eOf(C?"dark":"light")),function(q){var T,Q,m,a,n;return _.k(function(H){if(H.nextAddress==1)return T=_.YQ(ISZ(new isl(q.photoUrl,!1)).build(),"alr","yes"),e.obakeImageSource=e.pictureChangeSourceToObakeImageSourceType(q.photoSource),
_.Iv(H,2),e.setLoadingState(),H.yield(e.fetchImageBlobWithAlr(T),4);if(H.nextAddress!=2)return Q=H.yieldResult,m=new FileReader,m.addEventListener("load",function(){var I,L,h,E,N,D;return _.k(function(g){if(g.nextAddress==1){if(Q.size>15728640)return e.setErrorState((I=e.data)==null?void 0:I.imageSizeErrorMessage),_.AX(Error("Hl")),g.return();if(!m.result)return e.setErrorState((L=e.data)==null?void 0:L.genericImageLoadErrorMessage),_.AX(Error("Il")),g.return();h=m.result;_.Iv(g,2);return g.yield(qyo(Q,
z),4)}if(g.nextAddress!=2)return E=g.yieldResult,e.handleImageUpdatedAction(h,E),e.resetErrorState(),_.Yj(g,0);N=_.O_(g);e.setErrorState((D=e.data)==null?void 0:D.uploadErrorMessage);if(N instanceof Error)_.yG(N);else{var y=new _.uh(JSON.stringify(N));_.yG(y)}_.E_(g)})}),m.readAsDataURL(Q),_.Yj(H,0);
a=_.O_(H);e.setErrorState((n=e.data)==null?void 0:n.genericImageLoadErrorMessage);a instanceof Error?_.yG(a):_.cn(new _.uh(JSON.stringify(a)));_.E_(H)})}),function(){e.hideContainer=!1;
document.body.style.colorScheme=w});
_.Iv(J,2);return((G=e.data)==null?0:G.shouldViewChannelCreationFormForSupex)?J.yield(K.openPicker("profile-picture/art-selection"),5):J.yield(K.openPicker(),5)}if(J.nextAddress!=2)return _.Yj(J,0);_.O_(J);e.setErrorState((X=e.data)==null?void 0:X.selectImageErrorMessage);_.E_(J)})};
_.Y.pictureChangeSourceToObakeImageSourceType=function(e){switch(e){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.Y.logScreenVe=function(){_.jk(_.nm(),124448)};
_.Y.graftServerVe=function(){var e=_.Ip(),z,C,w=(z=this.data)==null?void 0:(C=z.loggingDirectives)==null?void 0:C.trackingParams;w&&e&&(this.channelCreationFormVe=_.nm().graftServerVe(w,e),e={visualElement:this.channelCreationFormVe},_.mO().reportShown(e))};
_.Y.isNameChanged=function(e){var z;return((z=this.data)==null?void 0:z.name)!==e};
_.Y.isHandleChanged=function(e){var z,C=_.r((z=this.data)==null?void 0:z.channelHandleInput,I5Z);return C&&e?C.handle!==e:!1};
_.Y.handleImageUpdatedAction=function(e,z){this.hideContainer=!1;this.previewDataUrl=e;this.encryptedBlobId=z};
_.Y.handleImageSelectionErrorAction=function(e){this.hideContainer=!1;this.setErrorState(e)};
_.Y.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.Y.showContainer=function(){this.hideContainer=!1};
_.Y.maybeWipeZeroStepErrorMessage=function(){var e,z=(e=this.data)==null?void 0:e.zeroStepErrorMessageEntityKey,C;z&&((C=this.zeroStepErrorMessageEntity)==null?0:C.value)&&this.ytdReduxBehavior.dispatch(_.Rx("stringEntity",z,{key:z,value:""}))};
_.lB.Object.defineProperties(Rt.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 e;return((e=this.photoThumbnail)==null?0:e.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 e;return!((e=this.data)==null||!e.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.descriptionInfo}}});
Rt.prototype.dataChanged=Rt.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Rt.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Rt.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Rt.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Rt.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Rt.prototype,"errorMessage",void 0);
_.d([_.F(),_.B("design:type",Object)],Rt.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",String)],Rt.prototype,"previewDataUrl",void 0);_.d([_.F(),_.B("design:type",Number)],Rt.prototype,"obakeImageSource",void 0);_.d([_.F(),_.B("design:type",Object)],Rt.prototype,"hideContainer",void 0);_.d([_.nP("#title-input"),_.B("design:type",Object)],Rt.prototype,"nameInput",void 0);_.d([_.nP("#handle-input"),_.B("design:type",Object)],Rt.prototype,"handleInput",void 0);
_.d([_.F(),_.B("design:type",Boolean)],Rt.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.d([_.F({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.kG4}),_.B("design:type",Object)],Rt.prototype,"zeroStepErrorMessageEntity",void 0);_.d([_.P("data","data.isDefaultProfilePhoto","previewDataUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rt.prototype,"photoThumbnail",null);
_.d([_.P("data","data.isDefaultProfilePhoto","photoThumbnail"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rt.prototype,"userSetPhotoThumbnailUrl",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rt.prototype,"hideProfilePhotoButtonLayer",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Rt.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.d([_.Ux("data","zeroStepErrorMessageEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Rt.prototype,"dataChanged",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.descriptionInfo","zeroStepErrorMessageEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],Rt.prototype,"description",null);_.d([_.SL({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Rt);
_.u(Rt,"ytd-channel-creation-dialog-renderer",function(){if(Pa$!==void 0)return Pa$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Pa$=e},{mode:1});var L3$;var L1=function(){var e=_.V.apply(this,arguments)||this;e.isLoading=!1;e.isDisabled=!1;return e};
_.U(L1,_.V);L1.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
L1.prototype.updateDisabled=function(){var e;this.isDisabled=this.isLoading||((e=this.handleInput)==null?void 0:e.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
L1.prototype.onSaveClick=function(){var e=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var z;((z=this.data)==null?void 0:z.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 C;if((C=e.data)==null?0:C.nextEndpoint){var w;e.ytComponentBehavior.resolveCommand((w=e.data)==null?void 0:w.nextEndpoint)}else e.isLoading=
!1,e.closeDialog()},
onServerError:function(){e.isLoading=!1;e.handleInput.validate();var C;e.errorMessage=(C=e.data)==null?void 0:C.errorMessage}}}))}};
L1.prototype.closeDialog=function(){_.eA(this.hostElement,"yt-close-popup-action",[this.is])};
L1.prototype.updateDisabled=L1.prototype.updateDisabled;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],L1.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],L1.prototype,"data",void 0);_.d([_.nP("#handle-input"),_.B("design:type",Object)],L1.prototype,"handleInput",void 0);_.d([_.mi("isLoading"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],L1.prototype,"updateDisabled",null);
_.d([_.SL({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],L1);
_.u(L1,"ytd-channel-handle-edit-dialog-renderer",function(){if(L3$!==void 0)return L3$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return L3$=e},{mode:1});var h3o;var hV=function(){return _.V.apply(this,arguments)||this};
_.U(hV,_.V);hV.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hV.prototype,"data",void 0);_.d([_.SL({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],hV);
_.u(hV,"ytd-channel-switcher-footer-renderer",function(){if(h3o!==void 0)return h3o;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return h3o=e},{mode:1});var Ouf;var EhW;var Ou=function(){return _.V.apply(this,arguments)||this};
_.U(Ou,_.V);Ou.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Ou.prototype.onIronChange=Ou.prototype.onIronChange;_.d([_.F(),_.B("design:type",Object)],Ou.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!1}),_.B("design:type",Function)],Ou.prototype,"onDontAskAgainChanged",void 0);_.d([_.nP("#checkbox"),_.B("design:type",Object)],Ou.prototype,"checkbox",void 0);_.d([_.Qi("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ou.prototype,"onIronChange",null);
_.d([_.SL({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Ou);
_.u(Ou,"ytd-identity-prompt-footer-renderer",function(){if(EhW!==void 0)return EhW;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return EhW=e},{mode:1});var Eu=function(){var e=_.V.apply(this,arguments)||this;e.dontAskAgain=!1;e.showPopup=!1;e.boundDontAskAgainChanged=function(z){e.dontAskAgainChanged(z)};
e.boundOnAccountItemTap=function(z){e.onAccountItemTap(z)};
return e};
_.U(Eu,_.V);_.Y=Eu.prototype;
_.Y.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]]"}}}}}};
_.Y.ready=function(){var e=this;_.XC(this.hostElement).querySelector("#container").addEventListener("scroll",function(){e.ytRendererBehavior.markDirty()})};
_.Y.dontAskAgainChanged=function(e){this.dontAskAgain=e};
_.Y.onAccountItemTap=function(e){if(e){var z={};this.dontAskAgain&&(z={dont_ask_again:this.dontAskAgain});_.dP(e,z)}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.Y.redirectOnlyAccount=function(e){e.sections&&e.sections.length>0&&(e=_.r(e.sections[0],_.EGh),(e==null?0:e.contents)&&(e==null?void 0:e.contents.length)<=1?(e=_.YB(window.location.href),(e==null?0:e.next)&&_.zNg(e.next)?_.dP(e.next):_.dP("/")):this.showPopup=!0)};
Eu.prototype.dataChanged=Eu.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Eu.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!1}),_.B("design:type",Object)],Eu.prototype,"dontAskAgain",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Eu.prototype,"showPopup",void 0);_.d([_.F({reflectToAttribute:!1}),_.B("design:type",Object)],Eu.prototype,"boundDontAskAgainChanged",void 0);_.d([_.F({reflectToAttribute:!1}),_.B("design:type",Object)],Eu.prototype,"boundOnAccountItemTap",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Eu.prototype,"dataChanged",null);
_.d([_.SL({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],Eu);
_.u(Eu,"ytd-channel-switcher-renderer",function(){if(Ouf!==void 0)return Ouf;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Ouf=e},{mode:1});var F3L;var Fp=function(){return _.V.apply(this,arguments)||this};
_.U(Fp,_.V);_.lB.Object.defineProperties(Fp.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.d([_.F(),_.B("design:type",Object)],Fp.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Fp.prototype,"steps",null);_.d([_.SL({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Fp);
_.u(Fp,"ytd-channel-transfer-stepper-renderer",function(){if(F3L!==void 0)return F3L;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return F3L=e},{mode:1});var V$o;var VV=function(){var e=_.V.apply(this,arguments)||this;e.data=null;e.isError=!1;e.isLoading=!1;return e};
_.U(VV,_.V);_.Y=VV.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.Y.computeProfileName=function(e){return e?e.givenNameValue+" "+e.familyNameValue:""};
_.Y.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)};
_.Y.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)};
VV.prototype.onYtServiceRequestError=VV.prototype.onYtServiceRequestError;VV.prototype.onYtServiceRequestSent=VV.prototype.onYtServiceRequestSent;VV.prototype.dataChanged=VV.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],VV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],VV.prototype,"data",void 0);
_.d([_.F({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.B("design:type",String)],VV.prototype,"profileName",void 0);_.d([_.F(),_.B("design:type",Object)],VV.prototype,"isError",void 0);_.d([_.F(),_.B("design:type",Object)],VV.prototype,"isLoading",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],VV.prototype,"dataChanged",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],VV.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],VV.prototype,"onYtServiceRequestError",null);_.d([_.SL({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],VV);
_.u(VV,"ytd-channel-warm-welcome-cont-renderer",function(){if(V$o!==void 0)return V$o;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return V$o=e},{mode:1});var ftl;var f1=function(){var e=_.V.apply(this,arguments)||this;e.data=null;return e};
_.U(f1,_.V);f1.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
f1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],f1.prototype,"data",void 0);_.d([_.SL({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],f1);
_.u(f1,"ytd-channel-warm-welcome-renderer",function(){if(ftl!==void 0)return ftl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ftl=e},{mode:1});var Spo;var ST=function(){return _.V.apply(this,arguments)||this};
_.U(ST,_.V);_.lB.Object.defineProperties(ST.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.authorThumbnail)||{}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ST.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],ST.prototype,"thumbnailDetails",null);_.d([_.SL({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],ST);
_.u(ST,"ytd-comment-preview-renderer",function(){if(Spo!==void 0)return Spo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Spo=e},{mode:1});var u3$;var uD=function(){return _.V.apply(this,arguments)||this};
_.U(uD,_.V);uD.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.lB.Object.defineProperties(uD.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.submitButton}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uD.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],uD.prototype,"submitButton",null);_.d([_.SL({is:"ytd-notice-renderer",disableElementRegistration:!0})],uD);
_.u(uD,"ytd-notice-renderer",function(){if(u3$!==void 0)return u3$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return u3$=e},{mode:1});var dAY;var dj=function(){return _.V.apply(this,arguments)||this};
_.U(dj,_.V);dj.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],dj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],dj.prototype,"data",void 0);_.d([_.SL({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],dj);
_.u(dj,"ytd-preview-comment-dialog-content",function(){if(dAY!==void 0)return dAY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return dAY=e},{mode:1});var DA3;var D$=function(){return _.V.apply(this,arguments)||this};
_.U(D$,_.V);D$.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
D$.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],D$.prototype,"data",void 0);_.d([_.SL({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],D$);
_.u(D$,"ytd-preview-comment-dialog-renderer",function(){if(DA3!==void 0)return DA3;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return DA3=e},{mode:1});var iuL;var N25=_.M("web_button_rework")&&_.cR("BUTTON_REWORK")||_.M("web_button_rework_with_live"),iD=function(){var e=_.V.apply(this,arguments)||this;e.closeLabel=_.kk("CLOSE");e.selectedAmountIndex=1;e.privacyCheckboxValue=!1;e.useAmsterdamStyle=N25;e.amountPlaceholderIndex=-1;return e};
_.U(iD,_.V);_.Y=iD.prototype;_.Y.onAmountClick=function(e){this.selectedAmountIndex=_.XC(this.hostElement).querySelector("#amounts").indexForElement(e.currentTarget)};
_.Y.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.eA(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.Y.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.eA(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.eA(this.hostElement,"yt-close-popup-action",[this.is]);var e;(e=_.ox())==null||e.getPlayerPromise().then(function(z){z.pauseVideo()})}};
_.Y.donationCallback=function(e){e.success?(this.hostElement.hasAttribute("live-chat")&&e.response&&e.response.data&&e.response.data.actions&&_.eA(this.hostElement,"yt-live-chat-open-popup",[e.response.data.actions[0]]),_.eA(this.hostElement,"yt-close-popup-action",[this.is]),_.eA(this.hostElement,"yt-live-chat-close-buy-flow")):e.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(e.errorMessageRenderer)};
_.Y.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.XC(this.hostElement).querySelector("#custom-amount-input").focus()};
_.Y.updateConfirmationDialogTextWithAmount=function(e){var z=this.getConfirmDialogRuns();z&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(z),"text"],this.getFormattedAmount(e))};
_.Y.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.Y.getAmountPlaceholderIndex=function(e){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=e.findIndex(function(z){return z.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.Y.getFormattedAmount=function(e){var z;return(new _.tO(4,((z=this.data)==null?void 0:z.currencyCode)||"")).format(e)};
_.Y.isAmountValid=function(e){if(e==="")return!1;e=Number(e)*1E6;var z=this.get("minAmountMicros",this.data),C=this.get("maxAmountMicros",this.data);return z&&e<z||C&&e>C?!1:!0};
_.Y.setInputError=function(){this.shouldShowValidationError?_.XC(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.XC(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.Y.setInitialCheckboxValue=function(){var e;this.privacyCheckboxValue=!((e=this.data)==null||!e.privacyCheckboxInitialState)};
_.Y.updateCustomAmountInputFromBinding=function(e){this.customAmountInput=e.detail.value};
_.Y.updatePrivacyCheckboxValueFromBinding=function(e){this.privacyCheckboxValue=e.detail.value};
_.lB.Object.defineProperties(iD.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var e=this,z,C;return((z=this.data)==null?void 0:(C=z.suggestedAmounts)==null?void 0:C.map(function(w,K){return{buttonRenderer:{style:e.selectedAmountIndex===K?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:w.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 e;return!((e=this.data)==null||!e.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 e=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(e&&this.amountMicros!==null)return Object.assign({},e,{ypcGetCartEndpoint:Object.assign({},e.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 e=this.get("confirmLargeAmount",this.data);if(e&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),e}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var e=this.get("donateButton.buttonRenderer",this.data);if(e)return Object.assign({},e,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
iD.prototype.setInitialCheckboxValue=iD.prototype.setInitialCheckboxValue;iD.prototype.setInputError=iD.prototype.setInputError;iD.prototype.setFocusOnCustomAmountInput=iD.prototype.setFocusOnCustomAmountInput;_.d([_.W(MzC),_.B("design:type",Object)],iD.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iD.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],iD.prototype,"closeLabel",void 0);_.d([_.F(),_.B("design:type",Object)],iD.prototype,"selectedAmountIndex",void 0);_.d([_.F(),_.B("design:type",String)],iD.prototype,"customAmountInput",void 0);_.d([_.F(),_.B("design:type",Object)],iD.prototype,"privacyCheckboxValue",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],iD.prototype,"useAmsterdamStyle",void 0);_.d([_.mi("customAmount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iD.prototype,"setFocusOnCustomAmountInput",null);_.d([_.P("data","selectedAmountIndex"),_.B("design:type",Array),_.B("design:paramtypes",[])],iD.prototype,"suggestedAmountButtons",null);
_.d([_.P("data","selectedAmountIndex"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iD.prototype,"isCustomAmountSelected",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iD.prototype,"showPrivacyCheckbox",null);_.d([_.P("data","selectedAmountIndex","customAmount"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"amountMicros",null);
_.d([_.P("isCustomAmountSelected","customAmountInput"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"customAmount",null);_.d([_.P("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iD.prototype,"shouldShowValidationError",null);_.d([_.P("customAmount"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],iD.prototype,"isDonateButtonEnabled",null);
_.d([_.P("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"donateCommand",null);_.d([_.P("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"donateCommandWithConfirmation",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"largeDonationThreshold",null);
_.d([_.P("customAmount","donateCommand","amountMicros"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"confirmLargeAmountCommand",null);_.d([_.P("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.B("design:type",Object),_.B("design:paramtypes",[])],iD.prototype,"donateButtonRenderer",null);_.d([_.mi("shouldShowValidationError"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iD.prototype,"setInputError",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iD.prototype,"setInitialCheckboxValue",null);_.d([_.SL({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],iD);
_.u(iD,"ytd-donation-amount-picker-renderer",function(){if(iuL!==void 0)return iuL;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return iuL=e},{mode:1});var sGC;var B2o=function(){return _.V.apply(this,arguments)||this};
_.U(B2o,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],B2o.prototype,"ytComponentBehavior",void 0);_.d([_.F({}),_.B("design:type",Object)],B2o.prototype,"data",void 0);_.d([_.SL({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],B2o);
_.u(B2o,"ytd-donation-post-transaction-content",function(){if(sGC!==void 0)return sGC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return sGC=e},{mode:1});var t$L;var Nh=function(){return _.V.apply(this,arguments)||this};
_.U(Nh,_.V);Nh.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Nh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.d([_.F({}),_.B("design:type",Object)],Nh.prototype,"data",void 0);_.d([_.SL({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Nh);
_.u(Nh,"ytd-donation-post-transaction-renderer",function(){if(t$L!==void 0)return t$L;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return t$L=e},{mode:1});var ghl;var jGl;var su=function(){return _.V.apply(this,arguments)||this};
_.U(su,_.V);su.prototype.computeIsStreamingProvider=function(e){return!!e.isStreamingShelf};
su.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],su.prototype,"data",void 0);_.d([_.F({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],su.prototype,"isStreamingProvider",void 0);
_.d([_.SL({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],su);
_.u(su,"ytd-media-provider-renderer",function(){if(jGl!==void 0)return jGl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jGl=e},{mode:1});var y3f;var Bu=function(){return _.V.apply(this,arguments)||this};
_.U(Bu,_.V);Bu.prototype.observeLightsourcePalette=function(){var e,z=(e=this.data)==null?void 0:e.vibrantsourceColorPaletteData;z&&_.Ro(this.hostElement,z)};
Bu.prototype.observeLightsourcePalette=Bu.prototype.observeLightsourcePalette;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Bu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Bu.prototype,"data",void 0);
_.d([_.mi("data.vibrantsourceColorPaletteData"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Bu.prototype,"observeLightsourcePalette",null);_.d([_.SL({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Bu);
_.u(Bu,"ytd-streaming-pop-up-dialog",function(){if(y3f!==void 0)return y3f;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return y3f=e},{mode:1});var tV=function(){return _.V.apply(this,arguments)||this};
_.U(tV,_.V);tV.prototype.onPopupOpened_=function(){var e;((e=this.data)==null?0:e.serviceEndpoint)&&_.lh().resolve(_.ms).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
tV.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
tV.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"}}}}};
tV.prototype.onPopupOpened_=tV.prototype.onPopupOpened_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Ea),_.B("design:type",Object)],tV.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tV.prototype,"data",void 0);
_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tV.prototype,"onPopupOpened_",null);_.d([_.SL({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],tV);
_.u(tV,"ytd-brandconnect-popup-renderer",function(){if(ghl!==void 0)return ghl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ghl=e},{mode:1});var c3Y;var gj=function(){return _.V.apply(this,arguments)||this};
_.U(gj,_.V);_.Y=gj.prototype;_.Y.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){for(var e=0;e<this.getOptionRenderers().length;e++)this.notifyPath("data.options."+e+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+e+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.Y.updateSubmitButton=function(e){this.set("data.submitButton.buttonRenderer.isDisabled",!e)};
_.Y.computeAlt=function(e){return _.Zd(e)};
_.Y.onDismissTap=function(){_.eA(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.getOptionRenderers=function(e){return(e=e||this.data)&&e.options?e.options.reduce(function(z,C){C.checkboxSurveyOptionRenderer&&z.push(C.checkboxSurveyOptionRenderer);return z},[]):[]};
_.Y.onOptionChange=function(e){var z=this,C=!1;if(e.detail.checked)for(var w=this.getOptionRenderers().find(function(J){return J.value===e.detail.value}),K=this.getOptionRenderers(),G=0;G<K.length;G++){var X=K[G];
this.notifyPath("data.options."+G+".checkboxSurveyOptionRenderer.checked");X.checked&&((w==null?0:w.isExclusiveOption)?!X.isExclusiveOption:X.isExclusiveOption)?this.set("data.options."+G+".checkboxSurveyOptionRenderer.checked",!1):X.checked&&(C=!0)}else C=this.getOptionRenderers().some(function(J,q){z.notifyPath("data.options."+q+".checkboxSurveyOptionRenderer.checked");return J.checked});
this.updateSubmitButton(C)};
_.Y.onSubmitTap=function(){var e=this.getOptionRenderers().filter(function(G){return G.checked});
if(e.length!==0){var z=e.map(function(G){return G.responseEndpoint});
e=[];for(var C=1;C<z.length;C++){var w=void 0,K=(w=_.r(z[C],_.iH))==null?void 0:w.feedbackToken;K&&e.push(K)}z=[z[0]];e.length&&z.push({extra_feedback_tokens:e});_.wQ(this.hostElement,z);_.eA(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);e=this.data&&this.data.submitActions||[];if(_.M("kevlar_command_handler_migration_killswitch"))_.KK(this.hostElement,e,this.hostElement);else for(e=_.b(e),z=e.next();!z.done;z=e.next())this.ytComponentBehavior.resolveCommand(z.value)}};
gj.prototype.onOptionChange=gj.prototype.onOptionChange;gj.prototype.dataChanged=gj.prototype.dataChanged;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],gj.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],gj.prototype,"ytComponentBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.d([_.W(d7$),_.B("design:type",Object)],gj.prototype,"ytdHatsSurveyBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],gj.prototype,"data",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gj.prototype,"dataChanged",null);
_.d([_.Qi("ytd-checkbox-survey-option-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gj.prototype,"onOptionChange",null);_.d([_.SL({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],gj);
_.u(gj,"ytd-checkbox-survey-renderer",function(){if(c3Y!==void 0)return c3Y;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return c3Y=e},{mode:1});var A3o;var Zuv;var jT=function(){return _.V.apply(this,arguments)||this};
_.U(jT,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.d([_.W(ucb),_.B("design:type",Object)],jT.prototype,"ytdDismissalReasonBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jT.prototype,"data",void 0);_.d([_.SL({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],jT);
_.u(jT,"ytd-dismissal-reason-text-renderer",function(){if(Zuv!==void 0)return Zuv;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Zuv=e},{mode:1});var pB$;var yV=function(){return _.V.apply(this,arguments)||this};
_.U(yV,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.d([_.W(ucb),_.B("design:type",Object)],yV.prototype,"ytdDismissalReasonBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yV.prototype,"data",void 0);_.d([_.SL({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],yV);
_.u(yV,"ytd-dismissal-reason-video-renderer",function(){if(pB$!==void 0)return pB$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return pB$=e},{mode:1});var cu=function(){return _.V.apply(this,arguments)||this};
_.U(cu,_.V);_.Y=cu.prototype;_.Y.created=function(){this.selectedFeedbackTokens=new Jy};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.Y.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.Y.onDismissalReasonSelected=function(e,z){_.pi(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(z);this.hasReasonsSelected=!0};
_.Y.onDismissalReasonDeselected=function(e,z){_.pi(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(z);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.Y.onCancelTap=function(){_.eA(this.hostElement,"yt-close-popup-action")};
_.Y.onSubmitTap=function(){var e=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(e={feedback_tokens:e},_.lh().resolve(_.ms).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},e,{element:this.hostElement})}));_.eA(this.hostElement,"yt-close-popup-action")};
cu.prototype.onDismissalReasonDeselected=cu.prototype.onDismissalReasonDeselected;cu.prototype.onDismissalReasonSelected=cu.prototype.onDismissalReasonSelected;cu.prototype.dataChanged=cu.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cu.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Boolean)],cu.prototype,"hasReasonsSelected",void 0);_.d([_.F(),_.B("design:type",Jy)],cu.prototype,"selectedFeedbackTokens",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],cu.prototype,"dataChanged",null);_.d([_.Qi("yt-dismissal-reason-selected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],cu.prototype,"onDismissalReasonSelected",null);
_.d([_.Qi("yt-dismissal-reason-deselected"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,String]),_.B("design:returntype")],cu.prototype,"onDismissalReasonDeselected",null);_.d([_.SL({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],cu);
_.u(cu,"ytd-dismissal-follow-up-renderer",function(){if(A3o!==void 0)return A3o;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return A3o=e},{mode:1});var euZ;var AV=function(){return _.V.apply(this,arguments)||this};
_.U(AV,_.V);_.Y=AV.prototype;_.Y.onCheckedChange=function(){this.multiselect||_.pi(this.hostElement,"yt-feedback-single-select-changed");_.XC(this.hostElement).querySelector("#freeform").focus();_.pi(this.hostElement,"yt-refit")};
_.Y.showTextBox=function(e,z){return e&&z};
_.Y.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))};
_.Y.updateDataCheckedFromBinding=function(e){this.set("data.checked",e.detail.value)};
_.Y.updateDataResultTextFromBinding=function(e){this.set("data.resultText",e.detail.value)};
AV.prototype.dataChanged=AV.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],AV.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],AV.prototype,"multiselect",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],AV.prototype,"dataChanged",null);
_.d([_.SL({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],AV);
_.u(AV,"ytd-feedback-option-renderer",function(){if(euZ!==void 0)return euZ;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return euZ=e},{mode:1});var zu$;var Z$=function(){return _.V.apply(this,arguments)||this};
_.U(Z$,_.V);Z$.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Z$.prototype.onSingleSelectCheckedChanged=function(e){e=_.AU(e);for(var z=0;z<this.data.options.length;z++)if(e.data!==_.r(this.data.options[z],kh5)){var C="data.options."+z+".feedbackOptionRenderer.checked";this.notifyPath(C);this.set(C,!1)}};
Z$.prototype.onSingleSelectCheckedChanged=Z$.prototype.onSingleSelectCheckedChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Z$.prototype,"data",void 0);
_.d([_.Qi("yt-feedback-single-select-changed"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Z$.prototype,"onSingleSelectCheckedChanged",null);_.d([_.SL({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],Z$);
_.u(Z$,"ytd-feedback-question-renderer",function(){if(zu$!==void 0)return zu$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zu$=e},{mode:1});var CQb;var p1=function(){return _.V.apply(this,arguments)||this};
_.U(p1,_.V);p1.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
p1.prototype.getSelectedFeedbackResults=function(){for(var e={},z=0;z<this.data.questions.length;z++)for(var C=_.r(this.data.questions[z],J_Z),w=0;w<C.options.length;w++){var K=_.r(C.options[w],kh5);K&&K.checked&&(e[K.optionKey]=K.resultText)}return e};
p1.prototype.onKeyUp=function(){var e=this;_.XW(_.c5,function(){_.pi(e.hostElement,"yt-refit")});
_.c5.start()};
p1.prototype.submitSurvey=function(){var e=this.getSelectedFeedbackResults();Object.keys(e).length>0&&this.data.submitFeedbackEndpoint&&(e={survey_results:e,is_feedback_token_unencrypted:!0},_.lh().resolve(_.ms).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},e,{element:this.hostElement})}))};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],p1.prototype,"data",void 0);_.d([_.SL({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],p1);
_.u(p1,"ytd-feedback-survey-renderer",function(){if(CQb!==void 0)return CQb;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return CQb=e},{mode:1});var weE;var KPq;var eD=function(){return _.V.apply(this,arguments)||this};
_.U(eD,_.V);eD.prototype.computeAlt=function(e){return _.Zd(e)};
eD.prototype.submitResponse=function(){var e,z;(e=this.data)!=null&&e.feedbackToken&&((z=this.data)==null?void 0:z.nextStageIndex)!==void 0&&(_.zj(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.zj(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
eD.prototype.onClick=function(){this.submitResponse()};
eD.prototype.onClick=eD.prototype.onClick;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],eD.prototype,"vertical",void 0);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],eD.prototype,"onClick",null);
_.d([_.SL({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],eD);
_.u(eD,"ytd-single-select-answer-option-renderer",function(){if(KPq!==void 0)return KPq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return KPq=e},{mode:1});var o_Y;var zl=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return e};
_.U(zl,_.V);zl.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
zl.prototype.dataChanged=function(){var e,z;this.vertical=((z=(e=this.data)==null?void 0:e.answerOrientation)!=null?z:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
zl.prototype.submitFeedback=function(e){var z;((z=this.data)==null?0:z.responseEndpoint)&&e&&_.wQ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[e]}])};
zl.prototype.dataChanged=zl.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],zl.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],zl.prototype,"eventForwardingBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],zl.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],zl.prototype,"vertical",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zl.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],zl);
_.u(zl,"ytd-single-select-question-renderer",function(){if(o_Y!==void 0)return o_Y;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return o_Y=e},{mode:1});var Cz=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return e};
_.U(Cz,_.V);_.Y=Cz.prototype;_.Y.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"}}}};
_.Y.dataChanged=function(){this.jumpToStage(0)};
_.Y.jumpToStage=function(e){var z,C;if((z=this.data)==null?0:(C=z.stages)==null?0:C[e])this.currentStage=this.data.stages[e],this.refitAfterRender()};
_.Y.computeAlt=function(e){return _.Zd(e)};
_.Y.computeSimpleMessage=function(e){var z;return(z=_.r(e,TH3))==null?void 0:z.messageText};
_.Y.computeHideDismiss=function(e){var z;return(z=_.r(e,iT$))==null?void 0:z.hideParentDismissButton};
_.Y.onDismissTap=function(){_.eA(this.hostElement,"yt-close-popup-action");_.r(this.currentStage,TH3)||this.data.dismissalEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.Y.refitAfterRender=function(){var e=this;_.T0(this,function(){_.pi(e.hostElement,"yt-refit")})};
Cz.prototype.dataChanged=Cz.prototype.dataChanged;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],Cz.prototype,"eventForwardingBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Cz.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W(d7$),_.B("design:type",Object)],Cz.prototype,"ytdHatsSurveyBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Cz.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Cz.prototype,"currentStage",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cz.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Cz);
_.u(Cz,"ytd-multi-stage-survey-renderer",function(){if(weE!==void 0)return weE;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return weE=e},{mode:1});var Gul;var w0=function(){return _.V.apply(this,arguments)||this};
_.U(w0,_.V);w0.prototype.computeAlt=function(e){return _.Zd(e)};
w0.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.lh().resolve(_.ms).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.eA(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.VLW(!1)))};
w0.prototype.onTap=function(){this.vertical&&this.submitResponse()};
w0.prototype.onTap=w0.prototype.onTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],w0.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],w0.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],w0.prototype,"vertical",void 0);
_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],w0.prototype,"onTap",null);_.d([_.SL({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],w0);
_.u(w0,"ytd-single-option-survey-option-renderer",function(){if(Gul!==void 0)return Gul;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Gul=e},{mode:1});var YYf;var Kz=function(){return _.V.apply(this,arguments)||this};
_.U(Kz,_.V);_.Y=Kz.prototype;_.Y.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){var e,z;this.vertical=(((e=this.data)==null?void 0:(z=e.surveyOrientation)==null?void 0:z.type)||"HORIZONTAL")==="VERTICAL"};
_.Y.computeAlt=function(e){return _.Zd(e)};
_.Y.onDismissTap=function(){_.eA(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.lh().resolve(_.ms).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.VLW(!1))};
Kz.prototype.dataChanged=Kz.prototype.dataChanged;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],Kz.prototype,"eventForwardingBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(d7$),_.B("design:type",Object)],Kz.prototype,"ytdHatsSurveyBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],Kz.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Kz.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Kz.prototype,"vertical",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Kz.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],Kz);
_.u(Kz,"ytd-single-option-survey-renderer",function(){if(YYf!==void 0)return YYf;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return YYf=e},{mode:1});var b2C;var oW=function(){return _.V.apply(this,arguments)||this};
_.U(oW,_.V);oW.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oW.prototype.onDismissTap=function(){_.eA(this.hostElement,"yt-close-popup-action")};
oW.prototype.onNavigate=function(){_.eA(this.hostElement,"yt-close-popup-action")};
oW.prototype.onNavigate=oW.prototype.onNavigate;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],oW.prototype,"ytEventForwardingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oW.prototype,"data",void 0);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],oW.prototype,"onNavigate",null);
_.d([_.SL({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],oW);
_.u(oW,"ytd-survey-follow-up-renderer",function(){if(b2C!==void 0)return b2C;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return b2C=e},{mode:1});var Xeo;var JN$;var ku$;var Gl=function(){var e=_.V.apply(this,arguments)||this;e.polymer2="Element"in Polymer;return e};
_.U(Gl,_.V);_.Y=Gl.prototype;_.Y.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.Y.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.Y.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.Y.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("minutes-changed",this.minutes))};
_.Y.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("seconds-changed",this.seconds))};
_.Y.updateMinutesFromBinding=function(e){this.minutes=e.detail.value};
_.Y.updateSecondsFromBinding=function(e){this.seconds=e.detail.value};
Gl.prototype.secondsChangedForBinding=Gl.prototype.secondsChangedForBinding;Gl.prototype.minutesChangedForBinding=Gl.prototype.minutesChangedForBinding;Gl.prototype.secondsChanged=Gl.prototype.secondsChanged;_.d([_.F(),_.B("design:type",String)],Gl.prototype,"minutes",void 0);_.d([_.F(),_.B("design:type",String)],Gl.prototype,"seconds",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Gl.prototype,"polymer2",void 0);
_.d([_.nP("#seconds"),_.B("design:type",Object)],Gl.prototype,"secondsEl",void 0);_.d([_.mi("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gl.prototype,"secondsChanged",null);_.d([_.mi("minutes"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gl.prototype,"minutesChangedForBinding",null);
_.d([_.mi("seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Gl.prototype,"secondsChangedForBinding",null);_.d([_.fP({is:"yt-timestamp-input",disableElementRegistration:!0})],Gl);
_.u(Gl,"yt-timestamp-input",function(){if(ku$===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;JN$===void 0&&(JN$=document.createElement("template"));var w=JN$;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ku$=e}e=ku$;return e},{mode:2});var Y8=function(){return _.V.apply(this,arguments)||this};
_.U(Y8,_.V);_.Y=Y8.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20836_scroller.dialogElement=this.hostElement.parentNode};
_.Y.dataChanged=function(){var e=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Gi().getPlayerPromise().then(function(z){z=z.getCurrentTime();e.minutes=Math.floor(z/60).toString();e.seconds=(Math.floor(z)%60).toString()})};
_.Y.onTapSubmit=function(e){e.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(e={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(e.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(e.minutes=this.minutes,e.seconds=this.seconds),_.lh().resolve(_.ms).resolveCommand(this.serviceEndpoint,{form:Object.assign({},e,{element:this.hostElement})}))};
_.Y.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.Y.onYtServiceRequestCompleted=function(e,z){z=z.actions;if(Array.isArray(z))for(var C=0,w=z.length;C<w;C++)_.r(z[C],_.CH)&&(e.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(z[C]))};
_.Y.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.Y.toggleSubmitButton=function(e){this.set("submitButton.isDisabled",!e)};
_.Y.handleInput=function(){var e=this.issueType,z=this.affiliation,C=this.minutes,w=this.seconds;C=!this.showTimestamp||!!C&&!!w;this.toggleSubmitButton(!!this.descriptionText&&!!e&&!!z&&C)};
_.Y.computeServiceEndpoint=function(e){return this.get("submitButton.buttonRenderer.serviceEndpoint",e)};
_.Y.computeSubmitButton=function(e){(e=this.get("submitButton.buttonRenderer",e))&&(e=Object.assign({},e,{serviceEndpoint:void 0}));return e};
_.Y.computeShowTimestamp=function(e){return!!e};
_.Y.onValueChangedForIssueType=function(e){this.issueType=e.detail.value};
_.Y.onValueChangedForAffiliation=function(e){this.affiliation=e.detail.value};
_.Y.updateDescriptionTextFromBinding=function(e){this.descriptionText=e.detail.value};
_.Y.updateFullNameTextFromBinding=function(e){this.fullNameText=e.detail.value};
_.Y.updateMinutesFromBinding=function(e){this.minutes=e.detail.value};
_.Y.updateSecondsFromBinding=function(e){this.seconds=e.detail.value};
Y8.prototype.handleInput=Y8.prototype.handleInput;Y8.prototype.onYtServiceRequestError=Y8.prototype.onYtServiceRequestError;Y8.prototype.onYtServiceRequestCompleted=Y8.prototype.onYtServiceRequestCompleted;Y8.prototype.onYtServiceRequestSent=Y8.prototype.onYtServiceRequestSent;Y8.prototype.dataChanged=Y8.prototype.dataChanged;_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],Y8.prototype,"ytOpenPopupBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.d([_.nP("#scroller"),_.B("design:type",Object)],Y8.prototype,"JSC$20836_scroller",void 0);_.d([_.nP("#description"),_.B("design:type",HTMLInputElement)],Y8.prototype,"description",void 0);_.d([_.nP("#full-name"),_.B("design:type",Object)],Y8.prototype,"fullName",void 0);_.d([_.F(),_.B("design:type",Object)],Y8.prototype,"data",void 0);
_.d([_.F({computed:"computeShowTimestamp(data.timestampLabel)"}),_.B("design:type",Boolean)],Y8.prototype,"showTimestamp",void 0);_.d([_.F({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.B("design:type",Object)],Y8.prototype,"serviceEndpoint",void 0);_.d([_.F({computed:"computeSubmitButton(data)"}),_.B("design:type",Object)],Y8.prototype,"submitButton",void 0);_.d([_.F(),_.B("design:type",String)],Y8.prototype,"descriptionText",void 0);
_.d([_.F(),_.B("design:type",Number)],Y8.prototype,"issueType",void 0);_.d([_.F(),_.B("design:type",Number)],Y8.prototype,"affiliation",void 0);_.d([_.F(),_.B("design:type",String)],Y8.prototype,"fullNameText",void 0);_.d([_.F(),_.B("design:type",String)],Y8.prototype,"minutes",void 0);_.d([_.F(),_.B("design:type",String)],Y8.prototype,"seconds",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Y8.prototype,"dataChanged",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],Y8.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],Y8.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Y8.prototype,"onYtServiceRequestError",null);_.d([_.mi("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Y8.prototype,"handleInput",null);_.d([_.SL({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],Y8);
_.u(Y8,"ytd-legal-report-details-form-renderer",function(){if(Xeo!==void 0)return Xeo;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Xeo=e},{mode:1});var qY5;var bR=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return e};
_.U(bR,_.V);bR.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
bR.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var e=this.formRenderer.getForm();e&&this.data.submitEndpoint&&(_.lh().resolve(_.ms).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},e,{element:this.hostElement})}),_.eA(this.hostElement,"yt-close-popup-action"))}};
bR.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.eA(this.hostElement,"yt-close-popup-action"))};
bR.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
bR.prototype.onPopupClosed=bR.prototype.onPopupClosed;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],bR.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],bR.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);
_.d([_.nP("yt-form-renderer"),_.B("design:type",Object)],bR.prototype,"formRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],bR.prototype,"data",void 0);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bR.prototype,"onPopupClosed",null);_.d([_.SL({is:"ytd-form-popup-content",disableElementRegistration:!0})],bR);
_.u(bR,"ytd-form-popup-content",function(){if(qY5!==void 0)return qY5;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return qY5=e},{mode:1});var xiW;var X6=function(){return _.V.apply(this,arguments)||this};
_.U(X6,_.V);X6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
X6.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
X6.prototype.onPopupOpened=function(){_.pi(this.hostElement,"yt-invalidate-popup-tabbables")};
X6.prototype.onYtServiceRequestCompleted=function(e,z){z.data&&z.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.pi(this.hostElement,"yt-invalidate-popup-tabbables"))};
X6.prototype.onYtServiceRequestCompleted=X6.prototype.onYtServiceRequestCompleted;X6.prototype.onPopupOpened=X6.prototype.onPopupOpened;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],X6.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],X6.prototype,"data",void 0);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],X6.prototype,"onPopupOpened",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],X6.prototype,"onYtServiceRequestCompleted",null);_.d([_.SL({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],X6);
_.u(X6,"ytd-form-popup-renderer",function(){if(xiW!==void 0)return xiW;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return xiW=e},{mode:1});var Tzf;var JP=function(){var e=_.V.apply(this,arguments)||this;e.isLoading=!1;return e};
_.U(JP,_.V);_.Y=JP.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");qT5(this.hostElement)};
_.Y.onYtServiceRequestSent=function(){this.isLoading=!0};
_.Y.onYtServiceRequestCompleted=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.Y.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.KK(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.Y.closePopupHandler=function(){this.fireOnCloseActions()};
_.Y.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var e=this.get("data.headerImage.thumbnails");e&&(e=_.oo(e,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+e+")")}};
_.Y.onYtNavigate=function(e){(e=_.AU(e))&&e.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
JP.prototype.onYtNavigate=JP.prototype.onYtNavigate;JP.prototype.onHeaderImageChanged=JP.prototype.onHeaderImageChanged;JP.prototype.closePopupHandler=JP.prototype.closePopupHandler;JP.prototype.onYtServiceRequestCompleted=JP.prototype.onYtServiceRequestCompleted;JP.prototype.onYtServiceRequestSent=JP.prototype.onYtServiceRequestSent;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],JP.prototype,"ytEventForwardingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],JP.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],JP.prototype,"isLoading",void 0);_.d([_.nP("#header"),_.B("design:type",HTMLDivElement)],JP.prototype,"header",void 0);_.d([_.nP("#confirm-button"),_.B("design:type",_.Kx)],JP.prototype,"confirmButton",void 0);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JP.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JP.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],JP.prototype,"closePopupHandler",null);_.d([_.mi("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],JP.prototype,"onHeaderImageChanged",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],JP.prototype,"onYtNavigate",null);
_.d([_.SL({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],JP);
_.u(JP,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Tzf!==void 0)return Tzf;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Tzf=e},{mode:1});var $i$;var k8=function(){var e=_.V.apply(this,arguments)||this;e.isLoading=!1;return e};
_.U(k8,_.V);_.Y=k8.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);qT5(this.hostElement)};
_.Y.onYtServiceRequestCompleted=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.Y.onYtServiceRequestError=function(e){_.Zh(this.hostElement,e.detail.error.message)};
_.Y.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.Y.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.eA(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.Y.onDataChanged=function(){this.isLoading=!1;var e=this.get("data.headerImage.thumbnails");e&&(e=_.oo(e,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+e+")");e=_.Pr();var z=_.Ip(),C=this.get("data.trackingParams");C&&z&&e&&_.id(e,z,_.v9(C))};
_.lB.Object.defineProperties(k8.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
k8.prototype.onDataChanged=k8.prototype.onDataChanged;k8.prototype.onDomChange=k8.prototype.onDomChange;k8.prototype.onYtServiceRequestError=k8.prototype.onYtServiceRequestError;k8.prototype.onYtServiceRequestCompleted=k8.prototype.onYtServiceRequestCompleted;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],k8.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],k8.prototype,"isLoading",void 0);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],k8.prototype,"hasDescription",null);_.d([_.nP("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],k8.prototype,"scrollable",void 0);_.d([_.nP("#header"),_.B("design:type",HTMLElement)],k8.prototype,"header",void 0);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],k8.prototype,"onYtServiceRequestCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],k8.prototype,"onYtServiceRequestError",null);
_.d([_.Qi("dom-change"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],k8.prototype,"onDomChange",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],k8.prototype,"onDataChanged",null);_.d([_.SL({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],k8);
_.u(k8,"ytd-gaming-account-link-setting-renderer",function(){if($i$!==void 0)return $i$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return $i$=e},{mode:1});var lD$;var QD5;var qs=function(){var e=_.V.apply(this,arguments)||this;e.isHeader=!1;e.getEndpointForm=function(){return mJL(e.data)};
return e};
_.U(qs,_.V);_.Y=qs.prototype;_.Y.triggerHintActions=function(){var e=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var z=_.zj(e.hostElement,"yt-get-opened-popups-action");!(z&&z.length===1?z[0]:[]).some(function(C){C=C.openPopupAction.popupType;return C==="SURVEY"||C==="MEALBAR"||C==="HINT"})&&e.data.hintActions&&e.guideOpened&&(_.KK(e.hostElement,e.data.hintActions,e.hostElement),e.data.hintActions=void 0)})};
_.Y.getBadgeIconType=function(e){return e&&e.liveBroadcasting?"live":null};
_.Y.onDown=function(){this.interaction.triggerDown()};
_.Y.onUp=function(){this.interaction.triggerUp()};
_.Y.onTap=function(e){if(this.data.serviceEndpoint){var z;_.M("shorts_controller_retrieve_seedless_sequence_v2")&&((z=_.r(this.data.serviceEndpoint,_.rP))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Q8$(this.data.serviceEndpoint,this);e.preventDefault()}else this.data.navigationEndpoint&&!_.zi(_.cJ(e),this.hostElement,["A".toString()])&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.Y.computeActive=function(e,z){if(!e)return!1;var C=e.navigationEndpoint;e=e.serviceEndpoint;if(!C&&!e||!z)return!1;if(C){e=(e=_.Q$(z))&&["subscriptions","filteredsubscriptions"].includes(e);if(_.r(C,_.mJ)&&_.r(z,_.mJ)&&!e){var w=_.r(C,_.mJ).browseId;z=_.r(z,_.mJ).browseId;return w!==void 0&&z!==void 0&&(w===z||w==="VLWL"&&z==="FEwatch_later"||w==="FEwatch_later"&&z==="VLWL")}var K;C=(K=_.r(C.commandMetadata,_.XV))==null?void 0:K.url;z=(w=_.r(z.commandMetadata,_.XV))==null?void 0:w.url;return!(!C||
!z||C!==z&&C!==_.Pi(z))}return this.isActiveShortsTab(e,z)};
_.Y.isActiveShortsTab=function(e,z){z=!!_.r(z,_.rP)||!!_.r(z,_.lt);return(!!_.r(e,_.rP)||!!_.r(e,_.lt))&&z};
_.Y.computeIsPrimary=function(e){return!!e};
_.lB.Object.defineProperties(qs.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 e=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&e)return e}}});
qs.prototype.onTap=qs.prototype.onTap;qs.prototype.onUp=qs.prototype.onUp;qs.prototype.onDown=qs.prototype.onDown;qs.prototype.triggerHintActions=qs.prototype.triggerHintActions;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],qs.prototype,"componentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qs.prototype,"rendererBehavior",void 0);_.d([_.W(_.LE.YtTaskEmitterBehavior),_.B("design:type",Object)],qs.prototype,"taskEmitterBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],qs.prototype,"activeEndpoint",void 0);_.d([_.F(),_.B("design:type",Object)],qs.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],qs.prototype,"guideOpened",void 0);_.d([_.F(),_.B("design:type",String)],qs.prototype,"type",void 0);_.d([_.nP("yt-interaction"),_.B("design:type",Object)],qs.prototype,"interaction",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],qs.prototype,"isHeader",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data","activeEndpoint"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qs.prototype,"active",null);_.d([_.F({reflectToAttribute:!0}),_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],qs.prototype,"isPrimary",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.count","data.presentationStyle","data.badges.*"),_.B("design:type",String),_.B("design:paramtypes",[])],qs.prototype,"lineEndStyle",null);
_.d([_.P("lineEndStyle"),_.B("design:type",Object),_.B("design:paramtypes",[])],qs.prototype,"ariaLabel",null);_.d([_.mi("data.hintActions","guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qs.prototype,"triggerHintActions",null);_.d([_.Qi("down"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qs.prototype,"onDown",null);
_.d([_.Qi("up"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],qs.prototype,"onUp",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],qs.prototype,"onTap",null);_.d([_.SL({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],qs);
_.u(qs,"ytd-guide-entry-renderer",function(){if(QD5!==void 0)return QD5;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return QD5=e},{mode:1});var x8=function(){var e=_.V.apply(this,arguments)||this;e.userToggled=!1;return e};
_.U(x8,_.V);_.Y=x8.prototype;_.Y.getItemsPath=function(){return"data.expandableItems"};
_.Y.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.Y.onExpanderItemTapped=function(e){var z=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.M("kevlar_guide_expandable_items_killswitch")&&_.T0(this,function(){_.qU(z.expandableItems)});
e.preventDefault()};
_.Y.onCollapserItemTapped=function(e){var z=this;this._setExpanded(!1);this.userToggled=!0;e.preventDefault();this.expandableItems&&!_.M("kevlar_guide_collapsible_items_killswitch")&&_.T0(this,function(){_.kO(z.hostElement)})};
_.Y.observeActiveEndpoint=function(){for(var e=this.activeEndpoint,z=this.data,C=this.expandableItems.children,w=0,K=C.length;w<K;w++)C[w].activeEndpoint=e;z&&z.autoExpandCommand&&e&&!this.userToggled&&(C=this.data.autoExpandCommand,z=!(!_.r(C,_.mJ)||!_.r(e,_.mJ)||_.r(C,_.mJ).browseId!==_.r(e,_.mJ).browseId),e=this.get("commandMetadata.webCommandMetadata.url",e),C=this.get("commandMetadata.webCommandMetadata.url",C),z=z||!!(e&&C&&e.includes(C)),this._setExpanded(z),z&&this.ytLazyListBehavior.fillRemainingListItems())};
x8.prototype.observeActiveEndpoint=x8.prototype.observeActiveEndpoint;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],x8.prototype,"ytLazyListBehavior",void 0);_.d([_.nP("#expandable-items"),_.B("design:type",HTMLElement)],x8.prototype,"expandableItems",void 0);
_.d([_.F(),_.B("design:type",Object)],x8.prototype,"data",void 0);_.d([_.F({readOnly:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],x8.prototype,"expanded",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],x8.prototype,"initialCount",void 0);_.d([_.F(),_.B("design:type",Object)],x8.prototype,"activeEndpoint",void 0);_.d([_.mi("data","activeEndpoint","canShowMore"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],x8.prototype,"observeActiveEndpoint",null);
_.d([_.SL({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],x8);
_.u(x8,"ytd-guide-collapsible-entry-renderer",function(){if(lD$!==void 0)return lD$;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return lD$=e},{mode:_.bA("kevlar_poly_si_batch_j079")?1:2});var mi3;var aDE;var Tl=function(){var e=_.V.apply(this,arguments)||this;e.allVideosCount=0;e.renderGuideEntry=!1;return e};
_.U(Tl,_.V);Tl.prototype.observeRenderEntry=function(){var e;this.renderGuideEntry=!((e=this.data)==null||!e.alwaysShow)||!!this.allVideosCount};
Tl.prototype.observeRenderEntry=Tl.prototype.observeRenderEntry;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Tl.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Tl.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Tl.prototype,"activeEndpoint",void 0);_.d([_.F({selector:_.tf5}),_.B("design:type",Object)],Tl.prototype,"allVideosCount",void 0);
_.d([_.F(),_.B("design:type",Object)],Tl.prototype,"renderGuideEntry",void 0);_.d([_.Ux("allVideosCount","data.alwaysShow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Tl.prototype,"observeRenderEntry",null);_.d([_.SL({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Tl);
_.u(Tl,"ytd-guide-downloads-entry-renderer",function(){if(aDE===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);aDE=e}e=aDE;return e},{mode:1});var $8=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return e};
_.U($8,_.V);_.Y=$8.prototype;_.Y.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]]"}}}}}};
_.Y.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var e=this.sectionItems.children,z=0,C=e.length;z<C;z++)e[z].activeEndpoint=this.activeEndpoint}};
_.Y.handleAddToGuideSectionAction=function(e){var z=_.r(e,hB5);if(z&&this.data&&(e=z.items,z=z.handlerData,e&&z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(z)>-1)){z=0;for(var C=e.length;z<C;z++)e[z].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,e[z])}};
_.Y.handleRemoveFromGuideSectionAction=function(e){var z=_.r(e,OTL);z&&this.data&&(e=z.guideEntryId,z=z.handlerData,e&&z&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(z)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(e,this.data.sectionItems),this.removeFromCollapsedSection(e,this.data.sectionItems)))};
_.Y.removeFromExpandedSection=function(e,z){e=this.getEntryIndexMatchingId(e,z);e!==-1&&this.splice("data.sectionItems",e,1)};
_.Y.removeFromCollapsedSection=function(e,z){var C=z.findIndex(function(w){return!!_.r(w,nl3)});
C&&C!==-1&&z[C]&&_.r(z[C],nl3)&&(z=_.r(z[C],nl3).expandableItems)&&(e=this.getEntryIndexMatchingId(e,z),e!==-1&&this.splice("data.sectionItems."+C+".guideCollapsibleEntryRenderer.expandableItems",e,1))};
_.Y.getEntryIndexMatchingId=function(e,z){var C=this;return z.findIndex(function(w){return C.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===e})};
$8.prototype.activeEndpointChanged=$8.prototype.activeEndpointChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],$8.prototype,"actionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("#section-items"),_.B("design:type",HTMLDivElement)],$8.prototype,"sectionItems",void 0);
_.d([_.nP("#header-entry"),_.B("design:type",Object)],$8.prototype,"headerEntry",void 0);_.d([_.F(),_.B("design:type",Object)],$8.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],$8.prototype,"activeEndpoint",void 0);_.d([_.mi("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$8.prototype,"activeEndpointChanged",null);_.d([_.SL({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],$8);
_.u($8,"ytd-guide-collapsible-section-entry-renderer",function(){if(mi3===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);mi3=e}e=mi3;return e},{mode:1});var n_o;var MWq;var lR=function(){var e=_.V.apply(this,arguments)||this;e.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 e};
_.U(lR,_.V);_.Y=lR.prototype;
_.Y.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}}}}};
_.Y.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var e=_.zj(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);e&&e.length===1&&e[0]&&_.zj(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.Y.handleResetChannelUnreadCountCommand=function(e){var z;(e=(z=_.r(e,Fl$))==null?void 0:z.channelId)&&this.data&&this.data.items&&(z=this.getPathToEntryMatchingId(e))&&(this.set(z+".guideEntryRenderer.count",0),this.set(z+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Y.handleResetSubscriptionsUnreadDotCommand=function(e){var z,C=(z=_.r(e,VGY))==null?void 0:z.targetId,w;C&&(w=this.data)!=null&&w.items&&(e=this.data.items.findIndex(function(K){var G;return((G=K.guideEntryRenderer)==null?void 0:G.targetId)===C}),e<0||this.set("data.items."+e+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.Y.getPathToEntryMatchingId=function(e){if(this.data&&this.data.items){var z=this.getEntryIndexMatchingId(e,this.data.items);if(z>-1)return"data.items."+z;for(var C=0;C<this.data.items.length;C++)if(z=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[C]))if(z=this.getEntryIndexMatchingId(e,z),z>-1)return"data.items."+C+".guideCollapsibleEntryRenderer.expandableItems."+z}};
_.Y.handleAddToGuideSectionAction=function(e){var z=this;if(_.r(e,hB5)){var C=_.r(e,hB5).items;e=_.r(e,hB5).handlerData;var w,K;if(C&&e&&((w=this.data)==null?void 0:(K=w.handlerDatas)==null?void 0:K.indexOf(e))>-1){C=C.filter(function(X){return(X=z.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",X))&&!z.isGuideItemPresent(X)});
var G;if(e==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((G=this.data)==null?0:G.items)&&(w=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),w>-1)){this.splice.apply(this,["data.items",w+1,0].concat(_.s_(C)));return}this.unshift.apply(this,["data.items"].concat(_.s_(C)))}}};
_.Y.isGuideItemPresent=function(e){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(e,this.data.items)!==-1)return!0;var z=this.data.items.find(function(C){return!!C.guideCollapsibleEntryRenderer});
if((z==null?0:z.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(e,z.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.Y.getEntryIndexMatchingId=function(e,z){var C=this;return z.findIndex(function(w){return C.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===e})};
_.Y.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(e,z){var C=this;return z.findIndex(function(w){return C.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",w)===e})};
_.Y.handleRemoveFromGuideSectionAction=function(e){if(_.r(e,OTL)){var z=_.r(e,OTL).guideEntryId;e=_.r(e,OTL).handlerData;var C,w;z&&e&&((C=this.data)==null?void 0:(w=C.handlerDatas)==null?void 0:w.indexOf(e))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(z,this.data.items),this.removeFromCollapsedSection(z,this.data.items))}};
_.Y.removeFromExpandedSection=function(e,z){e=this.getEntryIndexMatchingId(e,z);e!==-1&&this.splice("data.items",e,1)};
_.Y.removeFromCollapsedSection=function(e,z){var C=z.findIndex(function(w){return!!w.guideCollapsibleEntryRenderer});
C!==-1&&(z=z[C].guideCollapsibleEntryRenderer.expandableItems)&&(e=this.getEntryIndexMatchingId(e,z),e!==-1&&this.splice("data.items."+C+".guideCollapsibleEntryRenderer.expandableItems",e,1))};
_.Y.activeEndpointChanged=function(){for(var e=_.XC(this.hostElement).querySelector("#items").children,z=0,C=e.length;z<C;z++)e[z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.Y.guideOpenedChanged=function(){for(var e=_.XC(this.hostElement).querySelector("#items").children,z=0,C=e.length;z<C;z++)e[z].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
lR.prototype.guideOpenedChanged=lR.prototype.guideOpenedChanged;lR.prototype.activeEndpointChanged=lR.prototype.activeEndpointChanged;lR.prototype.persistentGuideChanged=lR.prototype.persistentGuideChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],lR.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],lR.prototype,"ytLazyListBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],lR.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],lR.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lR.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",String)],lR.prototype,"type",void 0);_.d([_.F({value:20}),_.B("design:type",Number)],lR.prototype,"initialCount",void 0);_.d([_.F({value:10}),_.B("design:type",Number)],lR.prototype,"targetFramerate",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],lR.prototype,"autoFill",void 0);_.d([_.F({value:50}),_.B("design:type",Number)],lR.prototype,"renderDelay",void 0);
_.d([_.mi("guidePersistentAndVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lR.prototype,"persistentGuideChanged",null);_.d([_.Ux("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lR.prototype,"activeEndpointChanged",null);_.d([_.Ux("guideOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lR.prototype,"guideOpenedChanged",null);
_.d([_.SL({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],lR);
_.u(lR,"ytd-guide-section-renderer",function(){if(MWq!==void 0)return MWq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return MWq=e},{mode:_.bA("kevlar_poly_si_batch_j073")?1:2});var rN$;var QT=function(){return _.V.apply(this,arguments)||this};
_.U(QT,_.V);_.lB.Object.defineProperties(QT.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QT.prototype,"rendererBehaviors",void 0);_.d([_.F(),_.B("design:type",Object)],QT.prototype,"data",void 0);_.d([_.F(),_.P("data.signInButton.buttonRenderer.style"),_.B("design:type",Object),_.B("design:paramtypes",[])],QT.prototype,"alignByText",null);_.d([_.SL({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],QT);
_.u(QT,"ytd-guide-signin-promo-renderer",function(){if(rN$===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);rN$=e}e=rN$;return e},{mode:1});var me=function(){var e=_.V.apply(this,arguments)||this;e.showFooter=!1;return e};
_.U(me,_.V);me.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}}}}};
me.prototype.attached=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1){z=_.lh().resolve(_.$B(_.rn));if(!z)return C.jumpTo(0);z.setGuideData(e.hostElement);return C.yield(0,3)}e.ytLazyListBehavior.initialCount=2;return C.return()})};
me.prototype.onMouseExit=function(){_.M("web_guide_hover_expansion")&&_.zj(this.hostElement,"yt-guide-mouseleaved",[])};
me.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
me.prototype.dataChanged=me.prototype.dataChanged;me.prototype.onMouseExit=me.prototype.onMouseExit;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],me.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.SN.YtLazyListBehavior),_.B("design:type",Object)],me.prototype,"ytLazyListBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],me.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],me.prototype,"showFooter",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],me.prototype,"autoFill",void 0);_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],me.prototype,"onMouseExit",null);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],me.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-guide-renderer",disableElementRegistration:!0})],me);
_.u(me,"ytd-guide-renderer",function(){if(n_o!==void 0)return n_o;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return n_o=e},{mode:_.bA("kevlar_poly_si_batch_j073")?1:2});var H2f;var aW=function(){var e=_.V.apply(this,arguments)||this;e.systemIcons=_.M("kevlar_system_icons");e.frostedGlass=_.M("web_frosted_glass");e.onAllyMenuButtonClick=function(){var z=e.getShowSheetCommand();z&&e.ytComponentBehavior.resolveCommand(z)};
e.getEndpointForm=function(){return mJL(e.data)};
return e};
_.U(aW,_.V);_.Y=aW.prototype;_.Y.attached=function(){this.JSC$20889_sheetController=_.lh().resolve(_.qd)};
_.Y.onDown=function(){this.interaction.triggerDown()};
_.Y.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var e;(e=this.JSC$20889_sheetController)==null||bc5(e,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.Y.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.Y.isSeedlessReelCommand=function(e){var z;return!!e&&((z=_.r(e,_.rP))==null?void 0:z.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.Y.isShowSheetCommand=function(e){return!!e&&!!_.r(e,_.L7)};
_.Y.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.Y.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.Y.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.Y.onUp=function(){this.interaction.triggerUp()};
_.Y.onTap=function(e){if(this.data.serviceEndpoint){if(_.M("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var z;(z=this.JSC$20889_sheetController)==null||bc5(z,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));e.preventDefault();
return}Q8$(this.data.serviceEndpoint,this)}e.preventDefault()}else{var C;((C=this.data)==null?0:C.navigationEndpoint)&&!_.zi(_.cJ(e),this.hostElement,["A".toString()])&&_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Y.computeActive=function(e,z){if(!e)return!1;var C=e.navigationEndpoint;e=e.serviceEndpoint;if(!C&&!e||!z)return!1;if(C){e=_.r(C,_.mJ);var w=_.r(z,_.mJ);if(e&&w)return e.browseId===w.browseId&&e.params===w.params;var K;C=(K=_.r(C.commandMetadata,_.XV))==null?void 0:K.url;var G;z=(G=_.r(z.commandMetadata,_.XV))==null?void 0:G.url;return!(!C||!z||C!==z&&C!==_.Pi(z))}return this.isActiveShortsTab(e,z)};
_.Y.isActiveShortsTab=function(e,z){z=!!_.r(z,_.rP)||!!_.r(z,_.lt);return(!!_.r(e,_.rP)||!!_.r(e,_.lt))&&z};
_.Y.computeTitle=function(e,z){return z?"":_.Zd(e)};
_.Y.computeEndpoint=function(e){return this.isSeedlessReelCommand(e.serviceEndpoint)?e.serviceEndpoint:e.navigationEndpoint};
_.Y.computeAriaLabelTitle=function(e){return _.Zd(e)};
_.Y.computeAllyShowMenuOnTap=function(e){return this.isShowSheetCommand(e.mouseEnterEndpoint)||this.isShowSheetCommand(e.serviceEndpoint)};
_.lB.Object.defineProperties(aW.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
aW.prototype.onMouseLeave=aW.prototype.onMouseLeave;aW.prototype.onMouseEnter=aW.prototype.onMouseEnter;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],aW.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Ym),_.B("design:type",Object)],aW.prototype,"ironButtonState",void 0);_.d([_.F(),_.B("design:type",Object)],aW.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],aW.prototype,"activeEndpoint",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],aW.prototype,"noLabels",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.B("design:type",Boolean)],aW.prototype,"isActive",void 0);_.d([_.F({computed:"computeEndpoint(data)"}),_.B("design:type",Object)],aW.prototype,"computedEndpoint",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],aW.prototype,"systemIcons",void 0);_.d([_.nP("yt-interaction"),_.B("design:type",Object)],aW.prototype,"interaction",void 0);_.d([_.P("isActive"),_.B("design:type",Object),_.B("design:paramtypes",[])],aW.prototype,"ariaSelected",null);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],aW.prototype,"frostedGlass",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.B("design:type",Boolean)],aW.prototype,"allyShowMenuOnTap",void 0);_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],aW.prototype,"onMouseEnter",null);_.d([_.Qi("mouseleave"),_.B("design:type",Function),_.B("design:paramtypes",[MouseEvent]),_.B("design:returntype")],aW.prototype,"onMouseLeave",null);
_.d([_.SL({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],aW);
_.u(aW,"ytd-mini-guide-entry-renderer",function(){if(H2f!==void 0)return H2f;var e=document.createElement("template");_.v(e,'\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" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(computedEndpoint)]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\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="0" 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<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return H2f=e},{mode:_.bA("kevlar_poly_si_batch_j063")?1:2});var Uiq;var nz=function(){var e=_.V.apply(this,arguments)||this;e.allVideosCount=0;e.noLabels=_.M("kevlar_mini_guide_no_labels");e.frostedGlass=_.M("web_frosted_glass");return e};
_.U(nz,_.V);_.Y=nz.prototype;_.Y.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.Y.onMouseEnter=function(){_.M("web_guide_hover_expansion")&&_.zj(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.Y.visibleChanged=function(){if(this.visible&&!this.data){var e=_.lh().resolve(_.$B(_.rn));e&&e.setGuideData(this.hostElement);_.yQ(_.nm(),this.miniGuideVe);(e=_.Pr())&&this.miniGuideVe&&_.s6(e,this.miniGuideVe)}};
_.Y.dataChanged=function(){var e=_.M("kevlar_guide_menu_on_hover")&&_.M("kevlar_modern_mini_guide"),z=_.M("kevlar_guide_menu_on_click")&&_.M("kevlar_modern_mini_guide"),C;var w=(C=this.data)==null?void 0:C.items;C=this.allVideosCount;var K=[];e=e?0:z?1:void 0;z=e!==void 0;if(w){for(var G=[],X=_.b(w),J=X.next();!J.done;J=X.next())if(J=J.value,J.guideSubscriptionsSectionRenderer){var q=void 0;G=((q=J.guideSubscriptionsSectionRenderer)==null?void 0:q.items)||[]}w=_.b(w);for(X=w.next();!X.done;X=w.next())if(X=
X.value,J=void 0,(J=X.guideSectionRenderer)==null?0:J.items)for(J=void 0,X=_.b((J=X.guideSectionRenderer)==null?void 0:J.items),J=X.next();!J.done;J=X.next()){J=J.value;var T=void 0,Q=void 0;q=J.guideEntryRenderer||_.r((T=J)==null?void 0:(Q=T.guideCollapsibleSectionEntryRenderer)==null?void 0:Q.headerEntry,agZ);T=[];Q=[];var m=void 0;if(((m=q)==null?void 0:m.targetId)==="subscriptions-guide-item")T=G;else{var a=m=void 0;if((m=J)==null?0:(a=m.guideCollapsibleSectionEntryRenderer)==null?0:a.sectionItems)Q=
T=J.guideCollapsibleSectionEntryRenderer.sectionItems}rLq(K,q,z?T:[],e);if(Q.length>0)for(J=_.b(Q),q=J.next();!q.done;q=J.next())q=q.value,Q=_.r(q,yBo),T=void 0,Q=Q&&(Q.alwaysShow||C)?_.r((T=Q)==null?void 0:T.entryRenderer,agZ):_.r(q,agZ),rLq(K,Q,[])}}this.miniGuideItems=K};
_.Y.activeEndpointChanged=function(){for(var e=this.items.children,z=0;z<e.length;z++)e[z].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.Y.registerWithViewTransitionManager=function(){var e=this;_.Dz(_.c5,function(){var z=_.lh().resolve(_.$B(_.b_));if(z&&z.isAnyTransitionEnabled){var C={};z.viewTransitionCoordinator.registerElement(e.hostElement,(C.slide="mini-guide-page-transition",C))}})};
nz.prototype.activeEndpointChanged=nz.prototype.activeEndpointChanged;nz.prototype.dataChanged=nz.prototype.dataChanged;nz.prototype.visibleChanged=nz.prototype.visibleChanged;nz.prototype.onMouseEnter=nz.prototype.onMouseEnter;_.d([_.W(_.QX),_.B("design:type",Object)],nz.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],nz.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],nz.prototype,"ytComponentBehavior",void 0);_.d([_.nP("#items"),_.B("design:type",Object)],nz.prototype,"items",void 0);_.d([_.F(),_.B("design:type",Object)],nz.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Boolean)],nz.prototype,"visible",void 0);_.d([_.F(),_.B("design:type",Object)],nz.prototype,"miniGuideItems",void 0);_.d([_.F({selector:_.tf5}),_.B("design:type",Object)],nz.prototype,"allVideosCount",void 0);_.d([_.F({value:_.mT(283834)}),_.B("design:type",_.vr)],nz.prototype,"miniGuideVe",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nz.prototype,"noLabels",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],nz.prototype,"frostedGlass",void 0);_.d([_.Qi("mouseenter"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nz.prototype,"onMouseEnter",null);_.d([_.Ux("visible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nz.prototype,"visibleChanged",null);
_.d([_.Ux("data","allVideosCount"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nz.prototype,"dataChanged",null);_.d([_.Ux("activeEndpoint"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],nz.prototype,"activeEndpointChanged",null);_.d([_.SL({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],nz);
_.u(nz,"ytd-mini-guide-renderer",function(){if(Uiq===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);Uiq=e}e=Uiq;return e},{mode:1});var v_3;var IDY=/^[\x00-\x7F]+$/,Ms=function(){return _.V.apply(this,arguments)||this};
_.U(Ms,_.V);_.lB.Object.defineProperties(Ms.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var e,z=_.Zd((e=this.data)==null?void 0:e.handle);if(z)return _.AO("@"+z)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var e=_.Zd(this.displayHandle),z,C=_.Zd((z=this.data)==null?void 0:z.handleUrl);if(e&&C)return _.AO(C+e)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var e=_.Zd(this.displayHandle);if(e&&!IDY.test(e)){var z;return(z=this.data)==null?void 0:z.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var e=_.Zd(this.displayHandleUrl),z,C=_.Zd((z=this.data)==null?void 0:z.urlInfoText);if(e&&C)return _.AO(C+" "+e)}}});
_.d([_.F(),_.B("design:type",Object)],Ms.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ms.prototype,"displayHandle",null);_.d([_.P("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ms.prototype,"displayHandleUrl",null);_.d([_.P("displayHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ms.prototype,"warningText",null);
_.d([_.P("displayHandleUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],Ms.prototype,"urlInfoTextWithUrl",null);_.d([_.SL({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ms);
_.u(Ms,"ytd-handles-claiming-confirm-dialog-content",function(){if(v_3!==void 0)return v_3;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return v_3=e},{mode:1});var WPb;var r0=function(){var e=_.V.apply(this,arguments)||this;e.okButtonOverride={style:"mono",type:"outline",size:"M"};return e};
_.U(r0,_.V);r0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
r0.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],r0.prototype,"okButtonOverride",void 0);_.d([_.F(),_.B("design:type",Object)],r0.prototype,"data",void 0);_.d([_.SL({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],r0);
_.u(r0,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(WPb!==void 0)return WPb;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return WPb=e},{mode:1});var PQf;var Ruv=/^[\x00-\x7F]+$/,H8=function(){var e=_.V.apply(this,arguments)||this;e.isLoading=!1;return e};
_.U(H8,_.V);H8.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var e;this.selectedHandle=(e=this.handleInput)==null?void 0:e.value;this.onSelectedHandleChanged(this.selectedHandle);_.zj(this.hostElement,"yt-refit-popups-action")}};
_.lB.Object.defineProperties(H8.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var e;return(e=this.data)==null?void 0:e.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.AO("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.AO(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Ruv.test(this.selectedHandle)){var e;return(e=this.data)==null?void 0:e.warningText}}}});
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],H8.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],H8.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],H8.prototype,"selectedHandle",void 0);_.d([_.F(),_.B("design:type",Object)],H8.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Function)],H8.prototype,"onSelectedHandleChanged",void 0);_.d([_.nP("#channel-handle-input"),_.B("design:type",Object)],H8.prototype,"handleInput",void 0);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],H8.prototype,"handleUrlPrefix",null);_.d([_.P("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],H8.prototype,"displayHandle",null);_.d([_.P("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],H8.prototype,"displayHandleUrl",null);_.d([_.P("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],H8.prototype,"warningText",null);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.d([_.SL({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],H8);
_.u(H8,"ytd-handles-claiming-edit-dialog-content",function(){if(PQf!==void 0)return PQf;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return PQf=e},{mode:1});var LPl;var U9=function(){var e=_.V.apply(this,arguments)||this;e.actionButtonOverride={style:"mono",type:"filled",size:"M"};e.cancelButtonOverride={style:"mono",type:"text",size:"M"};e.selectButtonDisabled=!1;e.isLoading=!1;e.hasSelectedHandleEventListener=!1;e.selectedHandleChanged=function(z){e.selectedHandle=z};
return e};
_.U(U9,_.V);_.Y=U9.prototype;_.Y.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.Y.onDataChanged=function(){var e,z;this.selectedHandle=(z=_.r((e=this.data)==null?void 0:e.inputField,I5Z))==null?void 0:z.handle};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onCancel=function(){this.selectedHandle="";_.eA(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onSelectHandle=function(){var e=this;if(this.selectedHandle!==void 0){var z;((z=this.data)==null?void 0:z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(C,w){if(w.newHandleUpdateStatus!==void 0&&w.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&w.newHandleUpdateStatus.errorMessage)_.Zh(e.hostElement,_.Zd(w.newHandleUpdateStatus.errorMessage)),
e.isLoading=!1;else{var K;if((K=e.data)==null?0:K.onChannelUpdateSuccess){C=e.data.onChannelUpdateSuccess;var G,X;if(w=(G=_.r(C,_.CH))==null?void 0:(X=G.popup)==null?void 0:X.handlesClaimingConfirmDialogRenderer)w.handle=_.AO(e.selectedHandle);e.ytComponentBehavior.resolveCommand(C);_.eA(e.hostElement,"yt-close-popup-action",[e.is])}else e.isLoading=!1}},
onServerError:function(){var C;e.content&&((C=e.content)==null?0:C.handleInput)&&e.content.handleInput.validate();e.isLoading=!1;_.Zh(e.hostElement,_.kk("TRY_AGAIN_LATER"))}}}))}};
_.Y.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
U9.prototype.onDataChanged=U9.prototype.onDataChanged;U9.prototype.onSelectedHandleChanged=U9.prototype.onSelectedHandleChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],U9.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],U9.prototype,"actionButtonOverride",void 0);_.d([_.F(),_.B("design:type",Object)],U9.prototype,"cancelButtonOverride",void 0);_.d([_.F(),_.B("design:type",Object)],U9.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",String)],U9.prototype,"selectedHandle",void 0);_.d([_.F(),_.B("design:type",Object)],U9.prototype,"selectButtonDisabled",void 0);_.d([_.F(),_.B("design:type",Object)],U9.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Object)],U9.prototype,"hasSelectedHandleEventListener",void 0);_.d([_.F(),_.B("design:type",Object)],U9.prototype,"handleInput",void 0);
_.d([_.mi("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U9.prototype,"onSelectedHandleChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],U9.prototype,"onDataChanged",null);_.d([_.nP("ytd-handles-claiming-edit-dialog-content"),_.B("design:type",Object)],U9.prototype,"content",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.SL({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],U9);
_.u(U9,"ytd-handles-claiming-edit-dialog-renderer",function(){if(LPl!==void 0)return LPl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return LPl=e},{mode:1});var huq;var IW=function(){return _.V.apply(this,arguments)||this};
_.U(IW,_.V);_.lB.Object.defineProperties(IW.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null?0:e.handle){var z;return _.AO("@"+_.Zd((z=this.data)==null?void 0:z.handle))}}}});
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],IW.prototype,"formattedHandle",null);_.d([_.F(),_.B("design:type",Object)],IW.prototype,"data",void 0);_.d([_.SL({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],IW);
_.u(IW,"ytd-handles-claiming-radio-option-renderer",function(){if(huq!==void 0)return huq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return huq=e},{mode:1});var O2v;var E_E=/^[\x00-\x7F]+$/,W8=function(){var e=_.V.apply(this,arguments)||this;e.initialRadioIndex="-1";e.isLoading=!1;e.maybeSubmitFeedback=function(){e.feedbackSurveyRenderer.submitSurvey()};
return e};
_.U(W8,_.V);W8.prototype.updateSelectedHandleIndexFromBinding=function(e){this.selectedRadioIndex=+e.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(e)};
W8.prototype.selectedHandleChanged=function(e){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var z;this.selectedHandle=(z=this.handleInput)==null?void 0:z.value;this.onSelectedHandleChanged(e)}};
_.lB.Object.defineProperties(W8.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var e;return this.ytRendererBehavior.getSimpleString((e=this.data)==null?void 0:e.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.AO("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.AO(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!E_E.test(this.selectedHandle)){var e;return(e=this.data)==null?void 0:e.warningText}}}});
_.d([_.F(),_.B("design:type",Object)],W8.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],W8.prototype,"initialRadioIndex",void 0);_.d([_.F(),_.B("design:type",Number)],W8.prototype,"selectedRadioIndex",void 0);_.d([_.F(),_.B("design:type",String)],W8.prototype,"selectedHandle",void 0);_.d([_.F(),_.B("design:type",Object)],W8.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Function)],W8.prototype,"onSelectedHandleChanged",void 0);
_.d([_.F(),_.B("design:type",Function)],W8.prototype,"onSelectedRadioIndexChanged",void 0);_.d([_.nP("#channel-handle-input"),_.B("design:type",Object)],W8.prototype,"handleInput",void 0);_.d([_.nP("ytd-feedback-survey-renderer"),_.B("design:type",Object)],W8.prototype,"feedbackSurveyRenderer",void 0);_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],W8.prototype,"radioButtonLength",null);
_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],W8.prototype,"handleUrlPrefix",null);_.d([_.P("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],W8.prototype,"displayHandle",null);_.d([_.P("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],W8.prototype,"displayHandleUrl",null);_.d([_.P("selectedHandle"),_.B("design:type",Object),_.B("design:paramtypes",[])],W8.prototype,"warningText",null);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.d([_.SL({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],W8);
_.u(W8,"ytd-handles-claiming-select-dialog-content",function(){if(O2v!==void 0)return O2v;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return O2v=e},{mode:1});var FPl;var P8=function(){var e=_.V.apply(this,arguments)||this;e.actionButtonOverride={style:"mono",type:"filled",size:"M"};e.cancelButtonOverride={style:"mono",type:"text",size:"M"};e.initialRadioIndex="-1";e.selectButtonDisabled=!1;e.isLoading=!1;e.selectedRadioIndexChanged=function(z){e.selectedRadioIndex=Number(z.detail.value)};
e.selectedHandleChanged=function(z){e.selectedHandle=z.detail.value};
return e};
_.U(P8,_.V);_.Y=P8.prototype;_.Y.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.Y.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.Y.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.zj(this.hostElement,"yt-refit-popups-action")};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.eA(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onSelectHandle=function(){var e=this;if(this.selectedHandle!==void 0){var z;((z=this.data)==null?void 0:z.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(C,w){if(w.newHandleUpdateStatus!==void 0&&w.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&w.newHandleUpdateStatus.errorMessage)_.Zh(e.hostElement,_.Zd(w.newHandleUpdateStatus.errorMessage)),
e.isLoading=!1;else{var K;if((K=e.data)==null?0:K.onChannelUpdateSuccess){C=e.data.onChannelUpdateSuccess;w=_.r(C,_.CH);var G;if(w==null?0:(G=w.popup)==null?0:G.handlesClaimingConfirmDialogRenderer)w.popup.handlesClaimingConfirmDialogRenderer.handle=_.AO(e.selectedHandle);e.ytComponentBehavior.resolveCommand(C);_.eA(e.hostElement,"yt-close-popup-action",[e.is])}else e.isLoading=!1}},
onServerError:function(){if(e.selectedRadioIndex===e.radioButtonLength){var C;e.content&&((C=e.content)==null?0:C.handleInput)&&e.content.handleInput.validate()}e.isLoading=!1;_.Zh(e.hostElement,_.kk("TRY_AGAIN_LATER"))}}}))}};
_.Y.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var e,z;this.selectedHandle=(e=this.content)==null?void 0:(z=e.handleInput)==null?void 0:z.value}else this.selectedRadioIndex>=0&&((e=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(e==null?void 0:e.handle):this.selectedHandle=void 0)};
_.Y.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.Y.getRadioItem=function(e){if(this.radioButtonLength>e&&e>=0)return _.r(this.data.radioButton[e],Ni5)};
_.lB.Object.defineProperties(P8.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var e;return(((e=this.data)==null?void 0:e.radioButton)||[]).length}}});
P8.prototype.onSelectedHandleChanged=P8.prototype.onSelectedHandleChanged;P8.prototype.onSelectedHandleIndexChanged=P8.prototype.onSelectedHandleIndexChanged;P8.prototype.onDataChanged=P8.prototype.onDataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],P8.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],P8.prototype,"actionButtonOverride",void 0);_.d([_.F(),_.B("design:type",Object)],P8.prototype,"cancelButtonOverride",void 0);
_.d([_.F(),_.B("design:type",Object)],P8.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],P8.prototype,"initialRadioIndex",void 0);_.d([_.F(),_.B("design:type",Number)],P8.prototype,"selectedRadioIndex",void 0);_.d([_.F(),_.B("design:type",String)],P8.prototype,"selectedHandle",void 0);_.d([_.F(),_.B("design:type",Object)],P8.prototype,"selectButtonDisabled",void 0);_.d([_.F(),_.B("design:type",Object)],P8.prototype,"isLoading",void 0);
_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],P8.prototype,"radioButtonLength",null);_.d([_.nP("ytd-handles-claiming-select-dialog-content"),_.B("design:type",Object)],P8.prototype,"content",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],P8.prototype,"onDataChanged",null);
_.d([_.mi("selectedRadioIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],P8.prototype,"onSelectedHandleIndexChanged",null);_.d([_.mi("selectedHandle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],P8.prototype,"onSelectedHandleChanged",null);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.SL({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],P8);
_.u(P8,"ytd-handles-claiming-select-dialog-renderer",function(){if(FPl!==void 0)return FPl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return FPl=e},{mode:1});var VW$;var fDq;var RW=function(){return _.V.apply(this,arguments)||this};
_.U(RW,_.V);RW.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],RW.prototype,"data",void 0);_.d([_.SL({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],RW);
_.u(RW,"ytd-hotkey-dialog-section-option-renderer",function(){if(fDq!==void 0)return fDq;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return fDq=e},{mode:1});var SYq;var Lz=function(){return _.V.apply(this,arguments)||this};
_.U(Lz,_.V);Lz.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Lz.prototype,"data",void 0);_.d([_.SL({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Lz);
_.u(Lz,"ytd-hotkey-dialog-section-renderer",function(){if(SYq!==void 0)return SYq;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return SYq=e},{mode:1});var hP=function(){return _.V.apply(this,arguments)||this};
_.U(hP,_.V);hP.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hP.prototype,"data",void 0);_.d([_.SL({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],hP);
_.u(hP,"ytd-hotkey-dialog-content",function(){if(VW$!==void 0)return VW$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return VW$=e},{mode:1});var udl;var O9=function(){return _.V.apply(this,arguments)||this};
_.U(O9,_.V);O9.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var e=document.querySelector("ytd-hotkey-dialog-content #scrollable");e&&(e.dialogElement=this.hostElement.parentElement)};
O9.prototype.onCloseTap=function(){_.eA(this.hostElement,"yt-close-popup-action")};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],O9.prototype,"data",void 0);_.d([_.SL({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],O9);
_.u(O9,"ytd-hotkey-dialog-renderer",function(){if(udl!==void 0)return udl;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return udl=e},{mode:1});var diE;var E9=function(){return _.V.apply(this,arguments)||this};
_.U(E9,_.V);E9.prototype.onYtServiceRequestError=function(){if(this.blocked){var e;var z=(e=this.data)==null?void 0:e.defaultServiceEndpoint}else{var C;z=(C=this.data)==null?void 0:C.toggledServiceEndpoint}var w;(z=(w=_.r(z,_.sYS))==null?void 0:w.onFailureAction)&&this.ytComponentBehavior.resolveCommand(z);this.updateBlockState(!this.blocked)};
E9.prototype.onYtToggleButton=function(e){this.updateBlockState(e.detail.toggled)};
E9.prototype.updateBlockState=function(e){if(e!==this.blocked){var z=this.blockedEntityKey;z&&this.ytdReduxBehavior.dispatch(_.Rx("blockStateEntity",z,{key:z,blocked:e}));this.set("data.isToggled",e)}};
_.lB.Object.defineProperties(E9.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)}}});
E9.prototype.onYtToggleButton=E9.prototype.onYtToggleButton;E9.prototype.onYtServiceRequestError=E9.prototype.onYtServiceRequestError;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],E9.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],E9.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],E9.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],E9.prototype,"blockedEntityKey",void 0);
_.d([_.F({selectorArgs:["blockedEntityKey"],selector:function(e,z){return _.xz(e.entities,"blockStateEntity",z)}}),
_.B("design:type",Object)],E9.prototype,"blockStateEntity",void 0);_.d([_.P("data","blockStateEntity"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],E9.prototype,"blocked",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],E9.prototype,"onYtServiceRequestError",null);
_.d([_.Qi("yt-toggle-button"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],E9.prototype,"onYtToggleButton",null);_.d([_.SL({is:"ytd-block-button",disableElementRegistration:!0})],E9);
_.u(E9,"ytd-block-button",function(){if(diE!==void 0)return diE;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return diE=e},
{mode:1});var Di$;var i2Y;var F6=function(){return _.V.apply(this,arguments)||this};
_.U(F6,_.V);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],F6.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],F6.prototype,"data",void 0);_.d([_.SL({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],F6);
_.u(F6,"ytd-kids-blocklist-picker-item-renderer",function(){if(i2Y!==void 0)return i2Y;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return i2Y=e},{mode:1});var VT=function(){return _.V.apply(this,arguments)||this};
_.U(VT,_.V);VT.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],VT.prototype,"data",void 0);_.d([_.SL({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],VT);
_.u(VT,"ytd-kids-blocklist-picker-content",function(){if(Di$!==void 0)return Di$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Di$=
e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var Nzf;var fz=function(){var e=_.V.apply(this,arguments)||this;e.hasAnyRequestSucceeded=!1;e.hasAnyRequestFailed=!1;e.numPendingRequests=0;return e};
_.U(fz,_.V);_.Y=fz.prototype;_.Y.attached=function(){this.hostElement.setAttribute("dialog","")};
_.Y.onDoneButtonTap=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.Y.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.Y.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.Y.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.Y.onPopupClosed=function(e){var z,C;if(((z=e.detail)==null?void 0:(C=z.popup)==null?void 0:C.is)==="tp-yt-paper-dialog"){var w;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((w=this.data)==null?0:w.successfulToastActionMessage)&&(e=_.CW(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(e));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
fz.prototype.onPopupClosed=fz.prototype.onPopupClosed;fz.prototype.onYtServiceRequestError=fz.prototype.onYtServiceRequestError;fz.prototype.onYtServiceRequestCompleted=fz.prototype.onYtServiceRequestCompleted;fz.prototype.onYtServiceRequestSent=fz.prototype.onYtServiceRequestSent;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],fz.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],fz.prototype,"data",void 0);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fz.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fz.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],fz.prototype,"onYtServiceRequestError",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],fz.prototype,"onPopupClosed",null);_.d([_.SL({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],fz);
_.u(fz,"ytd-kids-blocklist-picker-renderer",function(){if(Nzf!==void 0)return Nzf;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Nzf=e},{mode:1});var sDC;var BzC;var SD=function(){return _.V.apply(this,arguments)||this};
_.U(SD,_.V);SD.prototype.setTip=function(e){var z=this;this.data&&(this.tip=wXW(zqq.getInstance(),e,this.data),_.T0(this,function(){_.pi(z.hostElement,"yt-refit")}))};
SD.prototype.clearTip=function(){this.tip=void 0};
SD.prototype.computeHidden=function(e){return!e};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],SD.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.B("design:type",Boolean)],SD.prototype,"hidden",void 0);_.d([_.F(),_.B("design:type",Object)],SD.prototype,"tip",void 0);_.d([_.SL({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],SD);
_.u(SD,"ytd-menu-popup-tip-renderer",function(){if(BzC!==void 0)return BzC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);
return BzC=e},{mode:1});var tWq;var uR=function(){var e=_.V.apply(this,arguments)||this;e.useIcons=!1;e.role="menuitem";e.systemIcons=_.M("kevlar_system_icons");return e};
_.U(uR,_.V);_.Y=uR.prototype;_.Y.onFocus=function(){var e;(e=_.XC(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.Y.onTap=function(){var e=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(e&&_.r(e,_.Gj))this.componentBehavior.resolveCommand(e),this.updateToggledStateInEntity();else if(e){this.componentBehavior.resolveCommand(e)||_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}});var z;((z=_.r(e,_.bd))==null?void 0:z.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.Y.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.Y.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.Y.updateToggledStateInEntity=function(){var e=this.data.toggleMenuServiceItemEntityKey,z=!this.data.isToggled;e&&this.ytdReduxBehavior.dispatch(_.Rx("toggleMenuServiceItemEntity",e,{key:e,isToggled:z}))};
_.Y.computeIcon=function(e,z,C){return(e=e?C:z)&&e.iconType?_.qF(e.iconType):""};
_.Y.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.Y.isIconActive=function(e){return!_.M("toggle_menu_active_icon_killswitch")&&e};
_.lB.Object.defineProperties(uR.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?0:e.isToggled)?(z=this.data)==null?void 0:z.toggledText:(C=this.data)==null?void 0:C.defaultText}}});
uR.prototype.toggledStateEntityChanged=uR.prototype.toggledStateEntityChanged;uR.prototype.onYtServiceRequestCompleted=uR.prototype.onYtServiceRequestCompleted;uR.prototype.onTap=uR.prototype.onTap;uR.prototype.onFocus=uR.prototype.onFocus;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],uR.prototype,"componentBehavior",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],uR.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],uR.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],uR.prototype,"useIcons",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],uR.prototype,"role",void 0);_.d([_.F({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.B("design:type",String)],uR.prototype,"icon",void 0);
_.d([_.F({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.b9.toggleMenuServiceItemEntitySelector}),_.B("design:type",Object)],uR.prototype,"toggleMenuServiceItemEntity",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],uR.prototype,"systemIcons",void 0);_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uR.prototype,"onFocus",null);
_.d([_.P("data.isToggled"),_.B("design:type",Object),_.B("design:paramtypes",[])],uR.prototype,"toggleButtonText",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uR.prototype,"onTap",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uR.prototype,"onYtServiceRequestCompleted",null);
_.d([_.mi("toggleMenuServiceItemEntity.isToggled","data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],uR.prototype,"toggledStateEntityChanged",null);_.d([_.SL({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],uR);
_.u(uR,"ytd-toggle-menu-service-item-renderer",function(){if(tWq!==void 0)return tWq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return tWq=e},{mode:1});var g_Y;var d0=function(){return _.V.apply(this,arguments)||this};
_.U(d0,_.V);d0.prototype.onFocus=function(){var e;(e=_.XC(this.hostElement).querySelector("tp-yt-paper-item"))==null||e.focus()};
_.lB.Object.defineProperties(d0.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.gw(this.data.iconUrl)}}});
d0.prototype.onFocus=d0.prototype.onFocus;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],d0.prototype,"rendererBehavior",void 0);_.d([_.W(_.y5.YtEndpointBehavior),_.B("design:type",Object)],d0.prototype,"ytEndpointBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],d0.prototype,"data",void 0);_.d([_.Qi("focus"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],d0.prototype,"onFocus",null);
_.d([_.P("data.iconUrl"),_.B("design:type",Object),_.B("design:paramtypes",[])],d0.prototype,"imageSource",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],d0);
_.u(d0,"ytd-menu-custom-icon-item-renderer",function(){if(g_Y!==void 0)return g_Y;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return g_Y=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});_.KU(_.Ij,"yt-list-item-view-model",{props:{data:_.vh,isMenuItem:_.vh,isCompact:_.vh,onTap:_.z9,trailingAccessory:_.z9,hideSelectionTextChevron:_.vh,disabled:_.vh,inPopup:_.vh,disableHorizontalPadding:_.vh,isOverlay:_.vh,isToggled:_.vh,ariaLabel:_.vh,ariaPressed:_.vh,shouldNotFillIcon:_.vh}});var Di=function(){var e=_.V.apply(this,arguments)||this;e.disableBackdropFilter=_.M("web_disable_backdrop_filter");return e};
_.U(Di,_.V);_.Y=Di.prototype;
_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.Y.computeAriaLabel=function(e){return e};
_.Y.onPopupOpened=function(){this.items.selected=0;for(var e=_.b(_.XC(this.items).children),z=e.next();!z.done;z=e.next())z.value.popupPositionTarget=this.positionTarget;if(e=this.popupTip||void 0)e.setTip(this.source||""),this.source=void 0;this.veData&&(e=_.Pr())&&_.Bf(e,[this.veData])};
_.Y.onPopupClosed=function(){var e=this.popupTip||void 0;e&&e.clearTip()};
_.Y.onIronActivate=function(e){this.shouldPersist(e)||_.eA(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(e=_.Pr())&&_.gQ(e,this.veData)};
_.Y.shouldPersist=function(e){var z,C;if(((z=e.detail)==null?void 0:z.selected)===void 0||(C=this.data)==null||!C.items)return!1;var w,K;return!((K=(w=this.data.items[e.detail.selected])==null?void 0:w.toggleMenuServiceItemRenderer)==null||!K.persistentOnMenuPopup)};
_.Y.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(e){return e.menuNavigationItemRenderer?!!e.menuNavigationItemRenderer.icon:e.menuServiceItemRenderer?!!e.menuServiceItemRenderer.icon:e.menuConditionalServiceItemRenderer?!!e.menuConditionalServiceItemRenderer.icon:e.menuConditionalNavigationItemRenderer?!!e.menuConditionalNavigationItemRenderer.icon:e.toggleMenuServiceItemRenderer?!!e.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Di.prototype.onPopupClosed=Di.prototype.onPopupClosed;Di.prototype.onPopupOpened=Di.prototype.onPopupOpened;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],Di.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],Di.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Di.prototype,"veData",void 0);_.d([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.B("design:type",String)],Di.prototype,"ariaLabel",void 0);_.d([_.F({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Di.prototype,"useIcons",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Di.prototype,"disableBackdropFilter",void 0);_.d([_.nP("#items"),_.B("design:type",Object)],Di.prototype,"items",void 0);_.d([_.nP("ytd-menu-popup-tip-renderer"),_.B("design:type",Object)],Di.prototype,"popupTip",void 0);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Di.prototype,"onPopupOpened",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Di.prototype,"onPopupClosed",null);_.d([_.SL({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Di);
_.u(Di,"ytd-menu-popup-renderer",function(){if(sDC!==void 0)return sDC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return sDC=e},{mode:1});var jDZ;var yNE=_.f(function(e){e=_.eQ(e,{icon:void 0});var z=e.data;e=e.icon;var C=function(){return z().iconBadgeText},w={},K=_.qT("yt-spec-icon-badge-shape",function(){a:switch(z().iconBadgeType){case "notification":var G="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":G="yt-spec-icon-badge-shape--type-cart";break a;default:G=""}return G},function(){a:switch(z().iconBadgeStyle){case "overlay":var G="yt-spec-icon-badge-shape--style-overlay";
break a;default:G=""}return G},(w["yt-spec-icon-badge-shape--text-size-small"]=function(){var G=C();
return!!((G==null?0:G.length)&&G.length>2)},w));
return _.x("yt-icon-badge-shape",null,_.x(_.l,{cond:e,then:function(G){return _.x("div",{class:K},_.x("div",{class:"yt-spec-icon-badge-shape__icon"},_.x(_.mB,{icon:G})),_.x(_.l,{cond:C,then:function(X){return _.x("div",{class:"yt-spec-icon-badge-shape__badge"},X)}}))}}))},"yj");
yNE.idomCompat=!0;_.KU(yNE,"yt-icon-badge-shape",{props:{data:_.vh,icon:_.vh}});var iR=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};e.unseenCount=0;e.isOverlay=!1;return e};
_.U(iR,_.V);_.Y=iR.prototype;_.Y.attached=function(){var e=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(z){e.onServiceWorkerMessage(z)})};
_.Y.onDataChanged=function(){this.isAttached&&!this.JSC$20976_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20976_lastData=this.data};
_.Y.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Y.computeIcon=function(){var e,z;return(e=this.data)==null?void 0:(z=e.icon)==null?void 0:z.iconType};
_.Y.onServiceWorkerMessage=function(e){e.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.Y.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.r(this.data.updateUnseenCountEndpoint,_.bd)&&_.r(this.data.updateUnseenCountEndpoint,_.bd).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.Y.handleUpdateNotificationsUnseenCountAction=function(e){var z=this;e=_.r(e,EXY);e!=null&&e.unseenCount&&e.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(e.unseenCount),_.c5.addLowPriorityJob(function(){z.data.updateUnseenCountEndpoint&&z.ytComponentBehavior.resolveCommand(z.data.updateUnseenCountEndpoint)},e.timeoutMs))};
_.Y.onClick=function(){_.pi(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var e=_.zj(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),z=this.data.menuRequest;e&&e.length===1&&e[0]?_.eA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):z&&this.ytComponentBehavior.resolveCommand(z)};
_.Y.handleTopbarMenuClosedAction=function(e){e==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.Y.toggleIconState=function(e){this.iconButton&&(this.iconButton.pressed=e)};
_.Y.sendUnseenCountRequest=function(e){var z=this;_.Dz(_.c5,function(){z.ytComponentBehavior.resolveCommand(e)})};
_.Y.updateCountUI=function(e){this.set("unseenCount",e<9?e:"9+")};
_.lB.Object.defineProperties(iR.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
iR.prototype.handleUpdateNotificationsUnseenCountAction=iR.prototype.handleUpdateNotificationsUnseenCountAction;iR.prototype.onDataChanged=iR.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],iR.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.VP),_.B("design:type",Object)],iR.prototype,"ytdOpenPopupBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],iR.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],iR.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],iR.prototype,"unseenCount",void 0);_.d([_.F(),_.B("design:type",Object)],iR.prototype,"isOverlay",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],iR.prototype,"showTooltips",void 0);_.d([_.nP("yt-icon-button"),_.B("design:type",Object)],iR.prototype,"iconButton",void 0);
_.d([_.P("unseenCount"),_.B("design:type",Object),_.B("design:paramtypes",[])],iR.prototype,"showNotificationCount",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],iR.prototype,"onDataChanged",null);_.d([_.Qi("yt-update-notifications-unseen-count-action"),_.B("design:type",Function),_.B("design:paramtypes",[Object]),_.B("design:returntype")],iR.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.d([_.SL({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],iR);
_.u(iR,"ytd-notification-topbar-button-renderer",function(){if(jDZ!==void 0)return jDZ;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return jDZ=e},{mode:_.bA("kevlar_poly_si_batch_j025")?1:2});var cNL;var Ns=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return e};
_.U(Ns,_.V);Ns.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}}}}}};
Ns.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Ns.prototype.onDarkModeToggled=function(e){this.dark=e};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ns.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ns.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ns.prototype,"data",void 0);_.d([_.F({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],Ns.prototype,"dark",void 0);
_.d([_.SL({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Ns);
_.u(Ns,"yt-pdg-buy-flow-header-renderer",function(){if(cNL!==void 0)return cNL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return cNL=e},{mode:1});var ANb;var Z2q;var s9=function(){var e=_.V.apply(this,arguments)||this;e.immediateValue=0;e.isDarkTheme=!1;e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(s9,_.V);_.Y=s9.prototype;_.Y.created=function(){_.lK.requestAvailability()};
_.Y.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.Y.dataChanged=function(){var e=_.XC(this.hostElement).querySelector("#color-slider");e.immediateValue&&this.updateSliderKnobAndGradientStyles(e.immediateValue);this.data.notches[0].knobColorArgb&&_.T8(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.FN(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.j5("HTML_DIR")==="rtl"&&_.XC(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.Y.onSliderImmediateChange=function(){var e=_.XC(this.hostElement).querySelector("#color-slider");e.dragging&&(e.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(e.immediateValue),this.updateSliderKnobAndGradientStyles(e.immediateValue)),this.updateSliderAria())};
_.Y.onSliderChange=function(){var e=_.XC(this.hostElement).querySelector("#color-slider");e.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(e.immediateValue),this.updateSliderKnobAndGradientStyles(e.immediateValue));this.updateSliderAria()};
_.Y.updateSliderAria=function(){var e=_.XC(this.hostElement).querySelector("#color-slider"),z=_.XC(this.hostElement).querySelector("#color-slider");z=_.Zd(this.data.notches[z.immediateValue].tierValue);_.m51()&&_.pi(this.hostElement,"iron-announce",{text:z});e.setAttribute("aria-valuetext",z)};
_.Y.updateSuperThanksSelectedTierEntity=function(e){if(e!==this.immediateValue){var z,C,w=this==null?void 0:(z=this.data)==null?void 0:(C=z.superThanksSelectedTierEntity)==null?void 0:C.key;w&&w.length>0&&this.ytdReduxBehavior.dispatch(_.Rx("superThanksSelectedTierEntity",w,{key:w,index:e}))}};
_.Y.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.updateSliderKnobAndGradientStyles=function(e){this.immediateValue=e;e=this.data.notches[e];if(e==null?0:e.knobColorArgb)var z={"--ytd-pdg-color-slider-knob-color":_.FN(e.knobColorArgb)};(e==null?0:e.linearGradientCssStyle)&&z!==null&&(z=Object.assign({},z,{"--ytd-pdg-color-slider-active-color":e==null?void 0:e.linearGradientCssStyle}));z!==null&&_.T8(this.hostElement,z)};
s9.prototype.onSliderChange=s9.prototype.onSliderChange;s9.prototype.onSliderImmediateChange=s9.prototype.onSliderImmediateChange;s9.prototype.dataChanged=s9.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],s9.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],s9.prototype,"immediateValue",void 0);_.d([_.F(),_.B("design:type",Number)],s9.prototype,"maxMarkers",void 0);
_.d([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:H7o}),_.B("design:type",Object)],s9.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],s9.prototype,"isDarkTheme",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],s9.prototype,"ytdReduxBehavior",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"dataChanged",null);
_.d([_.Qi("immediate-value-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"onSliderImmediateChange",null);_.d([_.Qi("change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],s9.prototype,"onSliderChange",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],s9);
_.u(s9,"ytd-pdg-color-slider-renderer",function(){if(Z2q!==void 0)return Z2q;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Z2q=e},{mode:1});var peE;var eMf;var B8=null;
_.hK({is:"ytd-comment-input",_template:function(){if(eMf!==void 0)return eMf;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return eMf=e},
behaviors:[_.oAo.YtHostElementBehavior,_.cv,_.Q5.YtComponentBehavior,_.Fr.YtRendererstamperBehavior,_.$0X.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 _.vk}},
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",_.lE(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;_.S1();this.focus()},
detached:function(){document.removeEventListener("tap",_.lE(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(e){e=e.detail;e=e.isCustomEmoji?e.shortcuts[0]:e.emojiId;var z=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(z,e);this.maybeUpdateTextDirection_();_.pi(this.hostElement,"input")},
getInputRange_:function(){var e=_.ln();if(e){e=e.getBrowserRangeObject();for(var z=e.commonAncestorContainer;z;){if(z===this.getEditableTextArea_())return e;z=z.parentNode}}e=this.getEditableTextArea_();e=_.XA(e,e.childNodes.length);e.select();return e.getBrowserRangeObject()},
insertTextWithEmojis_:function(e,z,C){(z=this.emojiManager.createDocumentFragment(z,!0,!1,C===void 0?!0:C))&&z.childNodes.length!==0&&(e.collapsed||e.deleteContents(),C=z.lastChild,e.insertNode(z),_.vfg(C).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var e=_.ln();if(e){var z=e.JSC$11513_getStartNode(),C=e.JSC$11513_getEndNode();if(HV$(z)&&HV$(C)){var w=e.JSC$11513_getStartOffset(),K;if(_.HW&&z.nodeType===Node.ELEMENT_NODE&&(K=_.nyU(z)))_.XA(K,0).select();else{K=e7(z)?z:_.j8(z,e7);var G=e7(C)?C:_.j8(C,e7);if(K||G)if(e.isCollapsed()){if(z.nodeType===Node.TEXT_NODE){e=!0;w===z.length&&(e=!1);if(B8==="end"||B8==="right")e=!1;z=z.parentNode;e=[].concat(_.s_(z.parentNode.childNodes)).indexOf(z)+(e?0:1);_.XA(z.parentNode,
e).select()}}else K?K.previousSibling&&K.previousSibling.length>0?_.Jp(C,e.JSC$11513_getEndOffset(),K.previousSibling,K.previousSibling.length-1).select():(z=document.createTextNode("\u200b"),K.parentNode.insertBefore(z,K),_.Jp(C,e.JSC$11513_getEndOffset(),z,0).select()):G&&(G.nextSibling&&G.nextSibling.length>0?_.Jp(z,e.JSC$11513_getStartOffset(),G.nextSibling,1).select():(C=document.createTextNode("\u200b"),G.parentNode.insertBefore(C,G.nextSibling),_.Jp(z,e.JSC$11513_getStartOffset(),C,C.length).select()));
B8=null}}else B8=null}else B8=null},
leftKeyPressed_:function(){B8="left"},
rightKeyPressed_:function(){B8="right"},
endKeyPressed_:function(){B8="end"},
maybeDeleteChip_:function(){var e=Lf$(!0);if(e){var z=_.ln(),C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();_.Kr(C,z,e,e.childNodes.length).select()}},
maybeBackspaceChip_:function(){var e=Lf$(!1);if(e){var z=_.ln(),C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();_.Kr(C,z,e,0).select()}},
maybeBackspaceChipWordMode_:function(e){var z=_.ln();if(z.isCollapsed()){var C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();var w=hxq(C,z,!0);w&&(_.Kr(C,z,w,0).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(e){var z=_.ln();if(z.isCollapsed()){var C=z.JSC$11513_getStartNode();z=z.JSC$11513_getStartOffset();var w=hxq(C,z,!1);w&&(_.Kr(C,z,w,w.childNodes.length).select(),document.execCommand("delete"),e.preventDefault(),e.stopImmediatePropagation())}},
onContentClick:function(e){e.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(e){e.defaultPrevented||e.currentTarget.tagName==="YTD-COMMENT-INPUT"&&e7(e.target)&&e.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.XC(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.XC(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(e,z){e=vlf(e,this.emojiManager,z).cloneNode(!0);for(z=e.firstChild;z;)if(z.nodeType!==1)z=z.nextSibling;else switch(z.tagName){case "BR":var C=_.gJ();_.P4C(C,z);z=C.nextSibling;break;case "DIV":(C=z.lastChild)&&z.nextSibling&&_.AL(_.gJ(),C);z.previousSibling&&(z.previousSibling.nodeType===1||z.previousSibling.nodeType===3&&!z.previousSibling.textContent.endsWith("\n"))&&_.cT(_.gJ(),z);C&&C.nodeName==="BR"&&_.hA(C);C=z;z.hasChildNodes()?(z=z.firstChild,
_.Rn4(C)):(z=z.nextSibling,_.hA(C));break;default:z=z.nextSibling}return OV$(e)},
setTextAreaValue:function(e){e||(e="");var z=this.getEditableFormattedString_();z.text="";this.getEditableTextArea_().innerText="";typeof e==="string"&&(e={runs:[{text:e}]});z.text=e},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();B8=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var e=this.getEditableTextArea_();e&&(_.XA(e,e.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.j5("HTML_DIR")==="rtl"){var e=this.getEditableTextArea_(),z=this.getTextAreaValue()!==""?"auto":"rtl";e.setAttribute("dir",z)}},
handleInputEvent_:function(){var e=null;if(this.isEmojiButtonDisplayed){var z=this.getInputRange_();z&&(e=this.emojiInput.retrieveTextBeforeRange(z))}this.insertText_(e,!0);this.updateCharCount_();e=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=e.scrollHeight>e.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var e=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:e})},
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(e){this.isEmojiButtonDisplayed&&(e.preventDefault(),e.stopImmediatePropagation(),e=e.clipboardData.getData("text/plain"),this.insertText_(e,!1,!1),_.pi(this.hostElement,"input"))},
insertText_:function(e,z,C){z=z===void 0?!1:z;C=C===void 0?!0:C;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&e){var w=this.getInputRange_().cloneRange();this.emojiManager&&w&&(z&&this.emojiInput.offsetStartOfRangeBy(w,e.length),this.insertTextWithEmojis_(w,e,C),UJa(this.getEditableTextArea_().lastChild)||(w=this.getInputRange_().cloneRange()),w&&(this.emojiInput.updateSuggestions(w,e),this.updateSuggestionOffset_(w)))}},
getSimpleString:_.Zd,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(e){return e?"focused":"not-focused"},
computePlaceholderText_:function(e){return this.getSimpleString(e)},
computeEditableText_:function(e){return this.getSimpleString(e)},
onPrefilledContentDismissed_:function(e){e.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(e,z){e?this.fire("yt-autonav-pause-focus"):z!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(e){var z=this.getEditableTextArea_();[].concat(_.s_(e.dataTransfer.items)).forEach(function(C){C.kind==="string"&&C.type.match("^text/plain")&&C.getAsString(function(w){z.appendChild(document.createTextNode(w))})});
e.preventDefault()},
preventDefault_:function(e){e.preventDefault()},
onSuggestionInsert_:function(e){this.insertTextWithEmojis_(e.detail.range,e.detail.text)},
onEmojiSuggestionClick_:function(e){this.emojiInput.insertSuggestion(e.detail)},
updateSuggestionOffset_:function(e){if(this.emojiInput&&_.XC(this.emojiInput).querySelector("#dropdown")){var z=this.getEditableTextArea_().getBoundingClientRect().bottom,C=e.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(z-C)+5;z=this.getEditableTextArea_().getBoundingClientRect().left;e=e.getBoundingClientRect().left-z;_.XC(this.emojiInput).querySelector("#dropdown").style.marginLeft=e+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.zE("yt-post"));return this.localStorage}});var tP=function(){var e=_.V.apply(this,arguments)||this;e.currentCommentOptionIndex=0;e.isEmojiPickerDisplayed=!1;e.emojiManager=_.vk;e.isUgcEmpty=!1;e.userGeneratedCommentChangedHandler=function(){_.pi(e.hostElement,"ytd-pdg-user-generated-comment-changed");e.isEmojiYtdCommentInputEnabled&&(e.isUgcEmpty=!e.ytdCommentInputEl.getTextAreaValue())};
e.pasteHandler=function(z){z.preventDefault();z.stopImmediatePropagation();var C;if(z=(C=z.clipboardData)==null?void 0:C.getData("text/plain"))C=document.getSelection().getRangeAt(0),C.collapsed||C.deleteContents(),z=document.createTextNode(z),C.insertNode(z),C.selectNodeContents(z),C.collapse(!1),z=window.getSelection(),z.removeAllRanges(),z.addRange(C)};
e.onDocumentClick=function(z){if(e.isEmojiPickerDisplayed){var C,w,K;!(z.target instanceof Node)||(C=z.composedPath())!=null&&C.includes(e.editableTextEl)||(w=z.composedPath())!=null&&w.includes(e.emojiButtonEl)||(K=z.composedPath())!=null&&K.includes(e.emojiPickerEl)||(e.isEmojiPickerDisplayed=!1)}};
return e};
_.U(tP,_.V);_.Y=tP.prototype;_.Y.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.Y.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.Y.detached=function(){var e;(e=this.contentEl)==null||e.removeEventListener("input",this.userGeneratedCommentChangedHandler);var z;(z=this.contentEl)==null||z.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.Y.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.Y.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var e;this.contentEl.textContent=this.rendererBehavior.getSimpleString((e=this.data)==null?void 0:e.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.Y.reloadEmojis=function(){this.emojiPickerEl&&_.r(this.emojiPicker,_.U4o)&&this.emojiPickerEl.updateEmojiCategories()};
_.Y.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.T8(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.Y.handleBackgroundColorStyling=function(){var e;if((e=this.currentCommentOption)==null?0:e.commentBackgroundColorArgb){var z;_.T8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.FN((z=this.currentCommentOption)==null?void 0:z.commentBackgroundColorArgb)})}else _.T8(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.Y.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var e;(e=this.contentEl)==null||e.focus()}};
_.Y.onEditButtonClick=function(e){var z=document.getSelection();z&&this.contentEl&&(e.stopPropagation(),e.preventDefault(),z.selectAllChildren(this.contentEl),z.collapseToEnd())};
_.Y.onContentDrop=function(e){var z=this;if(e.dataTransfer){e=_.b(e.dataTransfer.items);for(var C=e.next();!C.done;C=e.next())C=C.value,C.kind==="string"&&C.type.match("^text/plain")&&C.getAsString(function(w){var K;(K=z.contentEl)==null||K.appendChild(document.createTextNode(w))})}};
_.Y.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.Y.getUserGeneratedCommentText=function(){var e,z=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(e=this.contentEl)==null?void 0:e.textContent;return z?z.trim():""};
_.Y.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.Y.onEmojiSelect=function(e){this.ytdCommentInputEl.onEmojiSelect(e)};
_.lB.Object.defineProperties(tP.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.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 e;return!((e=this.currentCommentOption)==null||!e.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if(_.r((e=this.currentCommentOption)==null?void 0:e.chipRenderer,_.gqa)){var z;return _.r((z=this.currentCommentOption)==null?void 0:z.chipRenderer,_.gqa)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var e,z;return((e=this.data)==null?0:e.commentOptionRenderers)?_.r((z=this.data)==null?void 0:z.commentOptionRenderers[this.superThanksSelectedTierEntity.index],ovv):void 0}var C,w;return((C=this.data)==null?0:C.commentOptionRenderers)?_.r((w=this.data)==null?void 0:w.commentOptionRenderers[this.currentCommentOptionIndex],ovv):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var e;return this.rendererBehavior.getSimpleString((e=this.data)==null?void 0:e.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var e;return this.rendererBehavior.getSimpleString((e=this.data)==null?void 0:e.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.commentDialog,_.DnC))==null?void 0:z.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.commentDialog,_.DnC))==null?void 0:z.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=_.r((e=this.data)==null?void 0:e.commentDialog,_.DnC))==null?void 0:z.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(z=_.r((e=this.data)==null?void 0:e.commentDialog,_.DnC))==null?void 0:z.emojiPicker;if(!_.r(C,_.U4o)||!_.r(C,_.U4o).categories)return!1;e=function(G){return G.emojiPickerCategoryRenderer?G.emojiPickerCategoryRenderer.emojiIds&&G.emojiPickerCategoryRenderer.emojiIds.length>0:G.emojiPickerUpsellCategoryRenderer?G.emojiPickerUpsellCategoryRenderer.emojis&&G.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var w,K;return((w=_.r(C,_.U4o))==null?0:(K=w.categories)==null?0:K.find(e))?!0:!1}}});
tP.prototype.onEmojiSelect=tP.prototype.onEmojiSelect;tP.prototype.dataChanged=tP.prototype.dataChanged;tP.prototype.currentCommentOptionChanged=tP.prototype.currentCommentOptionChanged;_.d([_.W(_.QX),_.B("design:type",Object)],tP.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],tP.prototype,"rendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.nP("#content-dom-if"),_.B("design:type",_.Ex)],tP.prototype,"contentDomIfEl",void 0);_.d([_.nP("#content-no-emojis"),_.B("design:type",HTMLElement)],tP.prototype,"contentEl",void 0);_.d([_.nP("#container"),_.B("design:type",HTMLElement)],tP.prototype,"containerEl",void 0);_.d([_.nP("#comment-chip-container"),_.B("design:type",HTMLElement)],tP.prototype,"paidCommentChipContainerEl",void 0);_.d([_.nP("#text-input"),_.B("design:type",HTMLElement)],tP.prototype,"editableTextEl",void 0);
_.d([_.nP("#emoji-button"),_.B("design:type",HTMLElement)],tP.prototype,"emojiButtonEl",void 0);_.d([_.nP("#emoji-picker > yt-emoji-picker-renderer"),_.B("design:type",Object)],tP.prototype,"emojiPickerEl",void 0);_.d([_.nP("#text-input > ytd-comment-input"),_.B("design:type",Object)],tP.prototype,"ytdCommentInputEl",void 0);_.d([_.F(),_.B("design:type",Object)],tP.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],tP.prototype,"currentCommentOptionIndex",void 0);
_.d([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:H7o}),_.B("design:type",Object)],tP.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.F(),_.B("design:type",Object)],tP.prototype,"isEmojiPickerDisplayed",void 0);_.d([_.F(),_.B("design:type",Object)],tP.prototype,"emojiManager",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],tP.prototype,"isUgcEmpty",void 0);
_.d([_.mi("currentCommentOption"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tP.prototype,"currentCommentOptionChanged",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],tP.prototype,"dataChanged",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tP.prototype,"isEmojiYtdCommentInputEnabled",null);
_.d([_.P("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"title",null);_.d([_.P("data.authorText"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"channelName",null);_.d([_.P("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tP.prototype,"shouldShowPaidCommentChipRenderer",null);
_.d([_.P("data.commentOptionRenderers","currentCommentOption"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"paidCommentChipRenderer",null);_.d([_.P("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"currentCommentOption",null);
_.d([_.P("data.defaultCommentText","superThanksSelectedTierEntity"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"commentText",null);_.d([_.P("data.placeholderText"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"placeholderText",null);_.d([_.P("data.commentDialog.commentDialogRenderer.editableText"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"editableText",null);
_.d([_.P("data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"emojiButton",null);_.d([_.P("data.commentDialog.commentDialogRenderer.emojiPicker"),_.B("design:type",Object),_.B("design:paramtypes",[])],tP.prototype,"emojiPicker",null);
_.d([_.P("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],tP.prototype,"isEmojiButtonDisplayed",null);_.d([_.Qi("yt-emoji-select"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],tP.prototype,"onEmojiSelect",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],tP);
_.u(tP,"ytd-pdg-comment-preview-renderer",function(){if(peE!==void 0)return peE;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return peE=e},{mode:2});var zMZ;var g0=function(){var e=_.V.apply(this,arguments)||this;e.selected=!1;return e};
_.U(g0,_.V);_.Y=g0.prototype;_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.Y.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.Y.dataChanged=function(){this.data&&(_.JK(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.T8(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.FN(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.FN(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.Y.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.Y.onClick=function(){this.logClick()};
_.Y.onKeyboardSelect=function(){_.pi(this.hostElement,"tap");this.onClick()};
_.Y.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
g0.prototype.onClick=g0.prototype.onClick;g0.prototype.selectedChanged=g0.prototype.selectedChanged;g0.prototype.dataChanged=g0.prototype.dataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],g0.prototype,"componentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.cv),_.B("design:type",Object)],g0.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.W(_.jL),_.B("design:type",Object)],g0.prototype,"ironSelectableBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],g0.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],g0.prototype,"shownThumbnail",void 0);_.d([_.F(),_.B("design:type",Object)],g0.prototype,"basePriceText",void 0);_.d([_.F(),_.B("design:type",Object)],g0.prototype,"purchaseCommand",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],g0.prototype,"selected",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g0.prototype,"dataChanged",null);_.d([_.mi("selected"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g0.prototype,"selectedChanged",null);_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],g0.prototype,"onClick",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],g0);
_.u(g0,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(zMZ!==void 0)return zMZ;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return zMZ=e},{mode:1});var jD=function(){var e=_.V.apply(this,arguments)||this;e.selectedItemIndex=0;e.buyButtonDisabled=!1;return e};
_.U(jD,_.V);_.Y=jD.prototype;
_.Y.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]]"}}}}}};
_.Y.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var e;var z=(e=_.r(this.data.colorSlider,K9f))==null?void 0:e.notches[this.selectedItemIndex].purchaseCommand}else{var C;z=(C=_.r(this.data.selectableItemButtons[this.selectedItemIndex],YDl))==null?void 0:C.purchaseCommand}if(z){e=_.r(z,_.O9a);e.productData||(e.productData={});var w;e.productData={pdgData:{commentMessageText:(w=this.commentPreviewRenderer)==null?void 0:w.getUserGeneratedCommentText()}};
_.pi(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(z)}}};
_.Y.dataChanged=function(){if(this.data){_.vk.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.tXS(_.vk,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.vk.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var e;this.buyButtonDisabled=!((e=_.r(this.data.commentPreview,Gha))==null||!e.placeholderText);this.updatePriceSelectorStatus();var z;if((z=this.data)==null?0:z.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;e=[];this.data.preloadImages&&(e=this.data.preloadImages);
e=e.map(function(C){return _.oo(C.thumbnails,1920)});
e=_.b(e);for(z=e.next();!z.done;z=e.next())(z=z.value)&&_.ufs(z).thenCatch(function(){_.AX(Error("Jl"))})}};
_.Y.superThanksSelectedTierEntityChanged=function(){var e;(this==null?void 0:(e=this.superThanksSelectedTierEntity)==null?void 0:e.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.Y.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.Y.updatePriceSelectorStatus=function(){this.isColorSlider?(_.XC(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.XC(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.XC(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.XC(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.Y.closeBuyFlow=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.Y.onUserGeneratedContentChanged=function(){var e;this.buyButtonDisabled=!((e=this.commentPreviewRenderer)==null?0:e.getUserGeneratedCommentText())};
_.Y.updateSelectedItemIndexFromBinding=function(e){this.selectedItemIndex=e.detail.value};
_.lB.Object.defineProperties(jD.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var e;return!((e=this.data)==null||!e.disclaimerText)}}});
jD.prototype.onUserGeneratedContentChanged=jD.prototype.onUserGeneratedContentChanged;jD.prototype.closeBuyFlow=jD.prototype.closeBuyFlow;jD.prototype.selectedItemIndexChanged=jD.prototype.selectedItemIndexChanged;jD.prototype.superThanksSelectedTierEntityChanged=jD.prototype.superThanksSelectedTierEntityChanged;jD.prototype.dataChanged=jD.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],jD.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],jD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],jD.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],jD.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],jD.prototype,"selectedItemIndex",void 0);_.d([_.F(),_.B("design:type",Boolean)],jD.prototype,"isColorSlider",void 0);
_.d([_.F(),_.B("design:type",Object)],jD.prototype,"buyButtonDisabled",void 0);_.d([_.F({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:H7o}),_.B("design:type",Object)],jD.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.nP("ytd-pdg-comment-preview-renderer"),_.B("design:type",Object)],jD.prototype,"commentPreviewRenderer",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],jD.prototype,"ytdReduxBehavior",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jD.prototype,"dataChanged",null);_.d([_.mi("superThanksSelectedTierEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jD.prototype,"superThanksSelectedTierEntityChanged",null);_.d([_.mi("selectedItemIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jD.prototype,"selectedItemIndexChanged",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jD.prototype,"closeBuyFlow",null);_.d([_.Qi("ytd-pdg-user-generated-comment-changed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],jD.prototype,"onUserGeneratedContentChanged",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],jD.prototype,"isDisclaimerTextShown",null);
_.d([_.SL({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],jD);
_.u(jD,"yt-super-vod-buy-flow-content-renderer",function(){if(ANb!==void 0)return ANb;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return ANb=e},{mode:1});var Cv$;var yT=function(){var e=_.V.apply(this,arguments)||this;e.lottieAnimationRef={};return e};
_.U(yT,_.V);_.Y=yT.prototype;_.Y.created=function(){_.lK.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.lE(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.Y.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.pi(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.Y.detached=function(){this.autoCloseJobId&&_.c5.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.lE(this,this.onPopupIronOverlayOpened))};
_.Y.dataChanged=function(){var e=this;this.data&&this.data.autoCloseDelay&&(_.eA(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.XW(_.c5,function(){e.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.T8(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.Y.onDOMLoadedLottie=function(){var e=this,z,C,w=Number((z=this.data)==null?void 0:(C=z.autoCloseDelay)==null?void 0:C.seconds)||0;this.fadeOutJobId=_.XW(_.c5,function(){e.lottiePlayerEl.classList.add("fadeout")},(w-.25)*1E3);
this.autoCloseJobId=_.XW(_.c5,function(){e.closePopup()},w*1E3)};
_.Y.openPopup=function(){this.ironOverlayBehavior.open()};
_.Y.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.eA(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.KK(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.lh().resolve(_.ms).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.c5.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.c5.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.Y.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var e,z;(e=this.lottieAnimationRef)==null||(z=e.lottieEl)==null||z.destroy();e=this.data.lottie;var C,w;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:e.url+"_"+Math.random(),path:e.url,autoplay:!0,loop:(w=(C=e.settings)==null?void 0:C.loop)!=null?w:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.lB.Object.defineProperties(yT.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var e,z;return!!((e=this.data)==null?0:(z=e.lottie)==null?0:z.url)}}});
yT.prototype.maybeInitializeLottie=yT.prototype.maybeInitializeLottie;yT.prototype.dataChanged=yT.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yT.prototype,"rendererBehavior",void 0);_.d([_.W(_.MB),_.B("design:type",Object)],yT.prototype,"ironOverlayBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yT.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],yT.prototype,"lottiePlayerProps",void 0);
_.d([_.F(),_.B("design:type",Object)],yT.prototype,"lottieAnimationRef",void 0);_.d([_.nP("ytd-lottie-player"),_.B("design:type",HTMLElement)],yT.prototype,"lottiePlayerEl",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yT.prototype,"dataChanged",null);_.d([_.P("data"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],yT.prototype,"hasLottieAnimation",null);
_.d([_.mi("data.lottie.url"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yT.prototype,"maybeInitializeLottie",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],yT);
_.u(yT,"ytd-desktop-image-overlay-renderer",function(){if(Cv$!==void 0)return Cv$;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Cv$=e},{mode:1});var w_W;var c8=function(){return _.V.apply(this,arguments)||this};
_.U(c8,_.V);_.Y=c8.prototype;_.Y.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"}}}}};
_.Y.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",_.lE(this,this.closePopup))};
_.Y.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lE(this,this.closePopup))};
_.Y.dataChanged=function(){_.zj(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.r(this.data.header,wp3)&&(this.hasBackgroundBanner=!!_.r(this.data.header,wp3).backgroundBanner)};
_.Y.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.lE(this,this.closePopup))};
_.Y.closePopup=function(){this.data&&this.data.onCloseCommand&&_.wQ(this.hostElement,[this.data.onCloseCommand])};
c8.prototype.handleBuyflowSelectionSubmitted=c8.prototype.handleBuyflowSelectionSubmitted;c8.prototype.dataChanged=c8.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],c8.prototype,"data",void 0);
_.d([_.F({value:!0,reflectToAttribute:!0}),_.B("design:type",Boolean)],c8.prototype,"hasBackgroundBanner",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c8.prototype,"dataChanged",null);_.d([_.Qi("yt-pdg-buy-flow-selection-submitted"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],c8.prototype,"handleBuyflowSelectionSubmitted",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],c8);
_.u(c8,"ytd-pdg-buy-flow-renderer",function(){if(w_W!==void 0)return w_W;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return w_W=e},{mode:1});var KrL;var AP=function(){var e=_.V.apply(this,arguments)||this;e.isOpen=!1;e.isPlaylistCreated=!1;return e};
_.U(AP,_.V);_.Y=AP.prototype;_.Y.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.Y.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.pi(this.hostElement,"yt-refit")};
_.Y.onCreateTap=function(){var e=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.wQ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(z,C){if(!_.M("killswitch_ep_in_create_playlist_response")&&(C==null?0:C.actions))for(z=_.b(C.actions),C=z.next();!C.done;C=z.next())C=C.value,_.r(C,_.Dr)&&e.ytComponentBehavior.resolveCommand(C)}}]),this.isPlaylistCreated=!0)};
_.Y.onKeydown=function(e){if(e.keyCode===13)this.onCreateTap()};
_.Y.onServiceRequestCompleted=function(e){e.stopPropagation();_.eA(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Y.computePrivacyBadge=function(e){return e?[{metadataBadgeRenderer:e}]:[]};
AP.prototype.onServiceRequestCompleted=AP.prototype.onServiceRequestCompleted;AP.prototype.onKeydown=AP.prototype.onKeydown;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],AP.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],AP.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],AP.prototype,"isOpen",void 0);
_.d([_.F(),_.B("design:type",Object)],AP.prototype,"isPlaylistCreated",void 0);_.d([_.F({value:{REQUIRED_LABEL:_.kk("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.kk("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],AP.prototype,"addToStrings",void 0);_.d([_.F({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.B("design:type",Array)],AP.prototype,"privacyBadge",void 0);
_.d([_.nP("#privacy-input"),_.B("design:type",Object)],AP.prototype,"privacyInput",void 0);_.d([_.nP("#name-input"),_.B("design:type",Object)],AP.prototype,"nameInput",void 0);_.d([_.Qi("keydown"),_.B("design:type",Function),_.B("design:paramtypes",[KeyboardEvent]),_.B("design:returntype")],AP.prototype,"onKeydown",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],AP.prototype,"onServiceRequestCompleted",null);
_.d([_.SL({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],AP);
_.u(AP,"ytd-add-to-playlist-create-renderer",function(){if(KrL!==void 0)return KrL;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return KrL=e},{mode:1});var oMY;var G23;var Zi=function(){var e=_.V.apply(this,arguments)||this;e.transferState="TRANSFER_STATE_UNKNOWN";return e};
_.U(Zi,_.V);Zi.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Zi.prototype.onCheckboxChange=function(e){var z=this;this.data&&_.tK(this,"yt-playlist-checkbox-changed",function(){var C=_.AU(e).checked?z.data.addToPlaylistServiceEndpoint:z.data.removeFromPlaylistServiceEndpoint;C&&_.lh().resolve(_.ms).resolveCommand(C,{form:{element:z.hostElement}});_.M("dl_playlist_killswitch")||z.transferState!=="TRANSFER_STATE_UNKNOWN"&&z.transferState!=="TRANSFER_STATE_FAILED"&&z.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:z.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Zi.prototype.computeIconType=function(e){return e?"yt-icons:"+e.toLowerCase():null};
Zi.prototype.dataChanged=Zi.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Zi.prototype,"data",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],Zi.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Zi.prototype,"ytComponentBehavior",void 0);_.d([_.nP("#checkbox"),_.B("design:type",HTMLInputElement)],Zi.prototype,"checkbox",void 0);
_.d([_.F({selector:_.Dd,selectorArgs:["data.playlistId"]}),_.B("design:type",String)],Zi.prototype,"transferState",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Zi.prototype,"dataChanged",null);_.d([_.SL({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Zi);
_.u(Zi,"ytd-playlist-add-to-option-renderer",function(){if(G23!==void 0)return G23;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return G23=e},{mode:1});var YeC=_.f(function(e){var z=e.data;return _.x("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.x("div",null,_.x(_.U2,{text:function(){return z().title}})),_.x(_.l,{cond:function(){return z().subtitle},
then:function(C){return _.x("div",{class:"ytdMenuTitleRendererSubtitle"},_.x(_.U2,{text:C}))}}))},"zj");
YeC.idomCompat=!0;_.KU(YeC,"ytd-menu-title-renderer",{props:{data:_.vh}});var pz=function(){var e=_.V.apply(this,arguments)||this;e.addToStrings={ADD_TO_DROPDOWN_LABEL:_.kk("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};e.closeButtonAriaLabel=_.kk("SBOX_INAPPROPRIATE_CANCEL");e.dialog=_.M("desktop_add_to_playlist_renderer_dialog_popup");return e};
_.U(pz,_.V);_.Y=pz.prototype;_.Y.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"}}}};
_.Y.onPopupOpened=function(){_.k$(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.Y.onPopupClosed=function(){_.k$(this.playlists,"scrollable",!1)};
_.Y.computeAriaLabel=function(){var e;if(this==null?0:(e=this.data)==null?0:e.actions){e=_.b(this.data.actions);for(var z=e.next();!z.done;z=e.next())if(z=z.value,z.menuTitleRenderer)return _.Zd(z.menuTitleRenderer.title)}};
_.Y.onTapClose=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.lB.Object.defineProperties(pz.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var e;if(this==null?0:(e=this.data)==null?0:e.actions){e=_.b(this.data.actions);for(var z=e.next();!z.done;z=e.next())if(z=z.value,z.menuTitleRenderer)return z.menuTitleRenderer}return!1}}});
pz.prototype.onPopupClosed=pz.prototype.onPopupClosed;pz.prototype.onPopupOpened=pz.prototype.onPopupOpened;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],pz.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],pz.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],pz.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],pz.prototype,"addToStrings",void 0);_.d([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],pz.prototype,"ariaLabel",void 0);_.d([_.F(),_.B("design:type",String)],pz.prototype,"closeButtonAriaLabel",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],pz.prototype,"dialog",void 0);
_.d([_.nP("#playlists"),_.B("design:type",HTMLElement)],pz.prototype,"playlists",void 0);_.d([_.nP("ytd-add-to-playlist-create-renderer"),_.B("design:type",Object)],pz.prototype,"createRenderer",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],pz.prototype,"menuTitleRenderer",null);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pz.prototype,"onPopupOpened",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],pz.prototype,"onPopupClosed",null);_.d([_.SL({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],pz);
_.u(pz,"ytd-add-to-playlist-renderer",function(){if(oMY!==void 0)return oMY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return oMY=e},{mode:1});var bnZ;var e9=function(){var e=_.V.apply(this,arguments)||this;e.isPlaylistEditComplete=!1;e.isCollabEngagementDisabled=!1;e.closeButtonAriaLabel=_.kk("SBOX_INAPPROPRIATE_CANCEL");e.saveButton={title:_.kk("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"};e.onValueChanged=function(){e.updateSaveButtonState();e.computeCollabEngagementDisabled()};
return e};
_.U(e9,_.V);_.Y=e9.prototype;_.Y.attached=function(){this.JSC$21030_scroller&&(this.JSC$21030_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21030_scroller.attached&&typeof this.JSC$21030_scroller.attached==="function"&&this.JSC$21030_scroller.attached())};
_.Y.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.Y.onPopupClosed=function(){this.reset()};
_.Y.close=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.Y.onClickSave=function(){var e=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var z=[];this.nameInput.value!==null&&z.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&z.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var C=Number(this.privacyInput.value);isNaN(C)||z.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:C})}this.votingInput.value!==null&&(C=this.votingInput.value)&&z.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:C});if(z.length>0){var w;_.r((w=this.data)==null?void 0:w.updateSettingsEndpoint,_.$R).actions=z;var K;if((K=this.data)==null?0:K.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){e.close()}}}),this.isPlaylistEditComplete=!0}}};
_.Y.computePrivacyBadge=function(e){return e?[{metadataBadgeRenderer:e}]:[]};
_.Y.computeEditorData=function(e){var z,C;return e==null?void 0:(z=e.sections)==null?void 0:(C=z[0])==null?void 0:C.playlistSettingsEditorCasualSectionRenderer};
_.Y.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.Y.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}}}}}};
_.Y.computeAriaLabel=function(){var e,z,C,w=(e=this.data)==null?void 0:(z=e.sections)==null?void 0:(C=z[0])==null?void 0:C.playlistSettingsEditorCasualSectionRenderer;return _.Zd(w==null?void 0:w.title)};
_.Y.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"}))};
_.Y.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.Y.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.Y.isNameChanged=function(){var e,z,C;return(((e=this.editorData)==null?void 0:(z=e.name)==null?void 0:(C=z.textInputFormFieldRenderer)==null?void 0:C.value)||"")!==(this.nameInput.value||"")};
_.Y.isDescriptionChanged=function(){var e,z,C;return(((e=this.editorData)==null?void 0:(z=e.description)==null?void 0:(C=z.textInputFormFieldRenderer)==null?void 0:C.value)||"")!==(this.descriptionInput.value||"")};
_.Y.isPrivacyChanged=function(){var e,z,C,w,K,G,X,J;return((X=(e=this.editorData)==null?void 0:(z=e.privacy)==null?void 0:(C=z.dropdownFormFieldRenderer)==null?void 0:(w=C.dropdown)==null?void 0:(K=w.dropdownRenderer)==null?void 0:(G=K.entries)==null?void 0:G.find(function(q){var T;return q==null?void 0:(T=q.privacyDropdownItemRenderer)==null?void 0:T.isSelected}))==null?void 0:(J=X.privacyDropdownItemRenderer)==null?void 0:J.int32Value)!==this.privacyInput.value};
_.Y.isVotingChanged=function(){var e,z,C,w,K,G,X,J;return((X=(e=this.editorData)==null?void 0:(z=e.voting)==null?void 0:(C=z.dropdownFormFieldRenderer)==null?void 0:(w=C.dropdown)==null?void 0:(K=w.dropdownRenderer)==null?void 0:(G=K.entries)==null?void 0:G.find(function(q){var T;return q==null?void 0:(T=q.privacyDropdownItemRenderer)==null?void 0:T.isSelected}))==null?void 0:(J=X.privacyDropdownItemRenderer)==null?void 0:J.int32Value)!==this.votingInput.value};
e9.prototype.onPopupClosed=e9.prototype.onPopupClosed;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],e9.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],e9.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],e9.prototype,"data",void 0);_.d([_.F({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.B("design:type",Array)],e9.prototype,"privacyBadge",void 0);_.d([_.F({computed:"computeEditorData(data)"}),_.B("design:type",Object)],e9.prototype,"editorData",void 0);_.d([_.F(),_.B("design:type",Object)],e9.prototype,"isPlaylistEditComplete",void 0);_.d([_.F(),_.B("design:type",Object)],e9.prototype,"isCollabEngagementDisabled",void 0);
_.d([_.F({value:{REQUIRED_LABEL:_.kk("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.kk("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.B("design:type",Object)],e9.prototype,"addToStrings",void 0);_.d([_.F({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.B("design:type",String)],e9.prototype,"ariaLabel",void 0);_.d([_.F(),_.B("design:type",String)],e9.prototype,"closeButtonAriaLabel",void 0);
_.d([_.F(),_.B("design:type",Object)],e9.prototype,"saveButton",void 0);_.d([_.nP("#name-input"),_.B("design:type",Object)],e9.prototype,"nameInput",void 0);_.d([_.nP("#description-input"),_.B("design:type",Object)],e9.prototype,"descriptionInput",void 0);_.d([_.nP("#privacy-input"),_.B("design:type",Object)],e9.prototype,"privacyInput",void 0);_.d([_.nP("#voting-input"),_.B("design:type",Object)],e9.prototype,"votingInput",void 0);
_.d([_.nP("#scroller"),_.B("design:type",Object)],e9.prototype,"JSC$21030_scroller",void 0);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],e9.prototype,"onPopupClosed",null);_.d([_.F(),_.B("design:type",Object)],e9.prototype,"onValueChanged",void 0);_.d([_.SL({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],e9);
_.u(e9,"ytd-playlist-settings-editor-renderer",function(){if(bnZ===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);bnZ=e}e=bnZ;return e},{mode:1});var X_5;_.hq("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var zZ=function(){return _.V.apply(this,arguments)||this};
_.U(zZ,_.V);_.Y=zZ.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.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 e=this.get("data.nextButton.buttonRenderer.navigationEndpoint");e&&(this.nextNavigationEndpoint=e,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.Y.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 e={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",e)}}};
_.Y.onPopupOpened=function(e){e.detail!==this&&e.detail!==this.hostElement||!_.M("enable_premium_voluntary_pause")||_.eA(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.Y.onNextButtonTap=function(){var e=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);e&&this.ytdOpenPopupBehavior.openPopup(e)};
_.Y.updateSelectedResponseIndexFromBinding=function(e){this.selectedResponseIndex=e.detail.value};
zZ.prototype.onPopupOpened=zZ.prototype.onPopupOpened;zZ.prototype.onSelectedResponseIndexChange=zZ.prototype.onSelectedResponseIndexChange;zZ.prototype.dataChanged=zZ.prototype.dataChanged;_.d([_.W(_.VP),_.B("design:type",Object)],zZ.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zZ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],zZ.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],zZ.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],zZ.prototype,"selectedResponseIndex",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zZ.prototype,"dataChanged",null);_.d([_.mi("selectedResponseIndex"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],zZ.prototype,"onSelectedResponseIndexChange",null);
_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],zZ.prototype,"onPopupOpened",null);_.d([_.SL({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],zZ);
_.u(zZ,"ytd-red-cancel-survey-renderer",function(){if(X_5!==void 0)return X_5;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return X_5=e},{mode:1});var Jb$;var CO=function(){var e=_.V.apply(this,arguments)||this;e.closeButtonAriaLabel=_.kk("SBOX_INAPPROPRIATE_CANCEL");return e};
_.U(CO,_.V);CO.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
CO.prototype.onClickClose=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],CO.prototype,"rendererStamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],CO.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],CO.prototype,"closeButtonAriaLabel",void 0);_.d([_.SL({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],CO);
_.u(CO,"ytd-search-filter-options-dialog-renderer",function(){if(Jb$!==void 0)return Jb$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Jb$=e},{mode:1});var k2q;var V2$=function(){return function(e){e=e.availabilityType;return e===void 0||e==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||e==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var wd=function(){var e=_.V.apply(this,arguments)||this;e.qualityOptions=[];e.upsellOptions=[];e.showUpsellSection=!1;e.rememberSettingsChecked=!1;return e};
_.U(wd,_.V);_.Y=wd.prototype;_.Y.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}}}}};
_.Y.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.Y.updateQualityOptions=function(){if(this.formats===void 0)_.eA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var e=[],z=[];this.showUpsellSection=!1;for(var C=_.b(this.formats),w=C.next();!w.done;w=C.next())(w=w.value)&&(w.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?z.push(w):e.push(w));e.length&&(this.qualityOptions=Ffb(e));z.length&&(this.showUpsellSection=!0,this.upsellOptions=Ffb(z))}};
_.Y.updateRememberString=function(){if(this.downloadQualityPickerEntity)var e=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var z;e=(z=this.data)==null?void 0:z.premiumRememberSettingString}else{var C;e=(C=this.data)==null?void 0:C.rememberSettingString}e=e===void 0?_.kk("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):e;this.rememberSettingsCheckboxRenderer={title:_.K4(e),disabled:!1}};
_.Y.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.lB.Object.defineProperties(wd.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var e;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(e=this.data)==null?void 0:e.qualityFormats}}});
wd.prototype.updateRememberString=wd.prototype.updateRememberString;wd.prototype.updateQualityOptions=wd.prototype.updateQualityOptions;wd.prototype.dataChanged=wd.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],wd.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wd.prototype,"data",void 0);
_.d([_.W(_.QX),_.B("design:type",Object)],wd.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Boolean)],wd.prototype,"selectedUpsellQuality",void 0);_.d([_.F({computed:"computeIcon_(data.premiumIcon)",value:""}),_.B("design:type",String)],wd.prototype,"premiumIcon",void 0);_.d([_.F({selector:le5,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],wd.prototype,"downloadQualityPickerEntity",void 0);
_.d([_.F(),_.B("design:type",Array)],wd.prototype,"qualityOptions",void 0);_.d([_.F(),_.B("design:type",Array)],wd.prototype,"upsellOptions",void 0);_.d([_.F(),_.B("design:type",Object)],wd.prototype,"showUpsellSection",void 0);_.d([_.F(),_.B("design:type",Object)],wd.prototype,"rememberSettingsCheckboxRenderer",void 0);_.d([_.nP("#remember-settings"),_.B("design:type",HTMLInputElement)],wd.prototype,"rememberSettingsCheckbox",void 0);
_.d([_.F(),_.B("design:type",Object)],wd.prototype,"rememberSettingsChecked",void 0);_.d([_.F(),_.B("design:type",Function)],wd.prototype,"onRememberSettingsCheckedChanged",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wd.prototype,"dataChanged",null);_.d([_.mi("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wd.prototype,"updateQualityOptions",null);
_.d([_.mi("selectedUpsellQuality"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],wd.prototype,"updateRememberString",null);_.d([_.SL({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],wd);
_.u(wd,"ytd-download-quality-selector-content",function(){if(k2q!==void 0)return k2q;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return k2q=e},{mode:1});var qea;var KO=function(){var e=_.V.apply(this,arguments)||this;e.selectedUpsellQuality=!1;e.qualityOptions=[];e.useUpsellDismissAlternate=_.M("use_not_now_dl_upsell_dismiss_cta");e.shouldShowAlternateUpsellDimiss=!1;e.rememberSettings=!1;e.rememberSettingsChecked=!1;e.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};e.rememberSettingsCheckedChanged=function(z){e.rememberSettingsChecked=z};
return e};
_.U(KO,_.V);_.Y=KO.prototype;
_.Y.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K4(_.kk("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.K4(_.kk("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.K4(_.kk("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.K4(_.kk("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.Y.updateQualityOptions=function(){this.formats===void 0?_.eA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Ffb(this.formats)};
_.Y.onQualityOptionsSelect=function(e){if(this.qualityOptions&&e){e!==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 z=_.b(this.qualityOptions.entries()),C=z.next();!C.done;C=
z.next()){C=_.b(C.value);var w=C.next().value;C=C.next().value;var K=void 0,G=void 0;if(((K=C)==null?void 0:(G=K.settingsRadioOptionRenderer)==null?void 0:G.id)===e){this.selectedQualityIndex=w;e=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((e=this.formats[w])==null?void 0:e.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.Y.onClickSubmit=function(){var e;if((e=this.downloadButtonRenderer)==null||!e.isDisabled){var z,C;e=(C=(z=this.data)==null?void 0:z.onSubmitEndpoint)!=null?C:{};var w,K;if(this.formats&&(((w=_.r(e,_.HF))==null?0:w.videoId)||((K=_.r(e,_.Uz))==null?0:K.playlistId))){var G,X,J,q,T,Q;z={formatType:(q=(G=this.formats)==null?void 0:(X=G[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:X.format)!=null?q:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(T=this.getOfflineEndpoint(e))==null?void 0:(Q=T.actionParams)==null?void 0:Q.settingsAction)};this.getOfflineEndpoint(e).actionParams=z;this.ytComponentBehavior.resolveCommand(e)}_.eA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.Y.onClickUpsell=function(){var e;if((e=this.upsellButtonRenderer)==null||!e.isDisabled){var z,C;e=(C=(z=this.data)==null?void 0:z.upsellEndpoint)!=null?C:{};this.ytComponentBehavior.resolveCommand(e);_.eA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);z="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var w,K,G,X;z=(X=(w=this.formats)==null?void 0:(K=w[(G=this.selectedQualityIndex)!=null?G:0])==null?void 0:K.format)!=null?X:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:z}})}};
_.Y.onClickClose=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.Y.getOfflineSettingsAction=function(e,z){return e?z===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":z:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.Y.getOfflineEndpoint=function(e){return _.r(e,_.HF)?_.r(e,_.HF):_.r(e,_.Uz)};
_.lB.Object.defineProperties(KO.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.K4(_.kk("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var e;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(e=this.data)==null?void 0:e.qualityFormats}}});
KO.prototype.updateQualityOptions=KO.prototype.updateQualityOptions;KO.prototype.dataChanged=KO.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],KO.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],KO.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Number)],KO.prototype,"selectedQualityIndex",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"selectedUpsellQuality",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],KO.prototype,"ytdReduxBehavior",void 0);
_.d([_.F({selector:le5,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.B("design:type",Object)],KO.prototype,"downloadQualityPickerEntity",void 0);_.d([_.F(),_.B("design:type",Array)],KO.prototype,"qualityOptions",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],KO.prototype,"useUpsellDismissAlternate",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.d([_.F(),_.B("design:type",Object)],KO.prototype,"downloadButtonRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"upsellButtonRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"cancelButtonRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"upsellCancelButtonRenderer",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"rememberSettings",void 0);_.d([_.F(),_.B("design:type",Object)],KO.prototype,"rememberSettingsChecked",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KO.prototype,"dataChanged",null);_.d([_.mi("downloadQualityPickerEntity"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],KO.prototype,"updateQualityOptions",null);_.d([_.SL({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],KO);
_.u(KO,"ytd-download-quality-selector-renderer",function(){if(qea!==void 0)return qea;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return qea=e},{mode:1});var xSE;var oE=function(){return _.V.apply(this,arguments)||this};
_.U(oE,_.V);oE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
oE.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"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],oE.prototype,"data",void 0);_.d([_.F({computed:"computeIcon_(data.infoIcon)"}),_.B("design:type",Object)],oE.prototype,"infoIcon",void 0);
_.d([_.F({computed:"computeIcon_(data.warningIcon)"}),_.B("design:type",Object)],oE.prototype,"warningIcon",void 0);_.d([_.SL({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],oE);
_.u(oE,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(xSE!==void 0)return xSE;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return xSE=e},{mode:1});var TgC;var GZ=function(){return _.V.apply(this,arguments)||this};
_.U(GZ,_.V);GZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
GZ.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"}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GZ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GZ.prototype,"data",void 0);_.d([_.SL({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],GZ);
_.u(GZ,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(TgC!==void 0)return TgC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return TgC=e},{mode:1});var $Sb;var Yn=function(){return _.V.apply(this,arguments)||this};
_.U(Yn,_.V);Yn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Yn.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"}}}}};
Yn.prototype.onServiceRequestSentOrCompleted=function(e,z){z&&z.actions&&z.actions.length>0&&_.eA(this.hostElement,"yt-close-popup-action",[this.is])};
Yn.prototype.onServiceRequestSentOrCompleted=Yn.prototype.onServiceRequestSentOrCompleted;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Yn.prototype,"data",void 0);
_.d([_.Qi("yt-service-request-completed"),_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],Yn.prototype,"onServiceRequestSentOrCompleted",null);_.d([_.SL({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Yn);
_.u(Yn,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if($Sb!==void 0)return $Sb;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return $Sb=e},{mode:1});var lpZ;var bj=function(){var e=_.V.apply(this,arguments)||this;e.submitButtonDisabled=!0;return e};
_.U(bj,_.V);_.Y=bj.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.Y.onDataChanged=function(){var e,z,C;if(((e=this.data)==null?void 0:(z=e.confirmButton)==null?void 0:(C=z.buttonRenderer)==null?void 0:C.isDisabled)!==void 0){var w,K,G;this.submitButtonDisabled=(w=this.data)==null?void 0:(K=w.confirmButton)==null?void 0:(G=K.buttonRenderer)==null?void 0:G.isDisabled}};
_.Y.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.Y.updateSubmitButtonDisabledFromBinding=function(e){this.submitButtonDisabled=e.detail.value};
_.Y.updateSubmitButtonDisabledFromConfirmCheckbox=function(e){this.submitButtonDisabled=!e.detail.value};
bj.prototype.onDataChanged=bj.prototype.onDataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],bj.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],bj.prototype,"submitButtonDisabled",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],bj.prototype,"onDataChanged",null);_.d([_.SL({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],bj);
_.u(bj,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(lpZ!==void 0)return lpZ;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return lpZ=e},{mode:1});var QyE;var XM=function(){return _.V.apply(this,arguments)||this};
_.U(XM,_.V);_.lB.Object.defineProperties(XM.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var e,z,C;return((e=this.data)==null?void 0:e.title)+" "+((z=this.data)==null?void 0:z.metadataPrimary)+" "+((C=this.data)==null?void 0:C.metadataSecondary)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],XM.prototype,"data",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],XM.prototype,"ariaLabel",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],XM);
_.u(XM,"ytd-compact-product-list-item-renderer",function(){if(QyE!==void 0)return QyE;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return QyE=e},{mode:1});var mSa;var Jv=function(){return _.V.apply(this,arguments)||this};
_.U(Jv,_.V);Jv.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]]"}}}}}};
_.lB.Object.defineProperties(Jv.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Jv.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Jv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Jv.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Jv);
_.u(Jv,"ytd-compact-product-list-renderer",function(){if(mSa!==void 0)return mSa;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return mSa=e},{mode:1});var ap$;var kn=function(){return _.V.apply(this,arguments)||this};
_.U(kn,_.V);_.Y=kn.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Y.getBackgroundUrl=function(){var e=this.get("data.headerImage.thumbnails");return e?"url("+_.oo(e,this.hostElement.clientWidth)+")":""};
_.Y.onDataChanged=function(){var e=this.getBackgroundUrl();e&&(this.header.style.backgroundImage=e);e=_.Pr();var z=_.Ip(),C=this.get("data.trackingParams");C&&z&&e&&_.id(e,z,_.v9(C));e=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(z=e.next();!z.done;z=e.next())z.value.onShow()};
_.Y.onPopupClosed=function(e){_.AU(e).localName==="ytd-membership-post-cancel-renderer"&&_.eA(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
kn.prototype.onPopupClosed=kn.prototype.onPopupClosed;kn.prototype.onDataChanged=kn.prototype.onDataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kn.prototype,"data",void 0);_.d([_.nP("#header"),_.B("design:type",HTMLDivElement)],kn.prototype,"header",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],kn.prototype,"onDataChanged",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],kn.prototype,"onPopupClosed",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],kn);
_.u(kn,"ytd-membership-post-cancel-renderer",function(){if(ap$!==void 0)return ap$;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return ap$=e},{mode:1});var nMq;var qo=function(){return _.V.apply(this,arguments)||this};
_.U(qo,_.V);qo.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
qo.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],qo.prototype,"data",void 0);_.d([_.nP("ytd-feedback-survey-renderer"),_.B("design:type",Object)],qo.prototype,"feedbackSurveyRenderer",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],qo);
_.u(qo,"ytd-sponsorship-confirm-cancel-content",function(){if(nMq!==void 0)return nMq;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return nMq=e},{mode:1});var Mia;var xn=function(){var e=_.V.apply(this,arguments)||this;e.maybeSubmitFeedback=function(){e.content&&e.content.maybeSubmitFeedback()};
return e};
_.U(xn,_.V);_.Y=xn.prototype;_.Y.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.Y.onYtPopupOpened=function(e,z){z===this&&this.data&&this.data.onOpenCommands&&_.KK(this.hostElement,this.data.onOpenCommands,this.hostElement);_.eA(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.Y.onYtPopupClosed=function(e,z){(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.KK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestCompleted=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.Y.onYtServiceRequestError=function(e){_.Zh(this.hostElement,e.detail.error.message)};
_.Y.onDataChanged=function(){if(this.isAttached){var e=this.backgroundUrl;e&&(_.XC(this.hostElement).querySelector("#header").style.backgroundImage=e)}};
_.lB.Object.defineProperties(xn.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return e?"url("+_.oo(e,this.hostElement.clientWidth)+")":""}}});
xn.prototype.onDataChanged=xn.prototype.onDataChanged;xn.prototype.onYtServiceRequestError=xn.prototype.onYtServiceRequestError;xn.prototype.onYtServiceRequestCompleted=xn.prototype.onYtServiceRequestCompleted;xn.prototype.onYtPopupClosed=xn.prototype.onYtPopupClosed;xn.prototype.onYtPopupOpened=xn.prototype.onYtPopupOpened;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],xn.prototype,"data",void 0);_.d([_.F({value:function(){return _.kk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],xn.prototype,"closeButtonAriaLabel",void 0);_.d([_.nP("#scrollable"),_.B("design:type",Object)],xn.prototype,"scrollable",void 0);_.d([_.nP("ytd-sponsorship-confirm-cancel-content"),_.B("design:type",Object)],xn.prototype,"content",void 0);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],xn.prototype,"onYtPopupOpened",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],xn.prototype,"onYtPopupClosed",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xn.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xn.prototype,"onYtServiceRequestError",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],xn.prototype,"onDataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],xn);
_.u(xn,"ytd-sponsorship-confirm-cancel-renderer",function(){if(Mia!==void 0)return Mia;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Mia=e},{mode:_.bA("kevlar_poly_si_batch_j081")?1:2});var rba;var TZ=function(){return _.V.apply(this,arguments)||this};
_.U(TZ,_.V);TZ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],TZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TZ.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],TZ);
_.u(TZ,"ytd-sponsorships-celebration-content",function(){if(rba!==void 0)return rba;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return rba=
e},{mode:1});var Hnf;var USY=_.Kb(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),$n=function(){var e=_.V.apply(this,arguments)||this;e.scriptsAppended=!1;e.useFullWidthPrimaryButton=!1;e.buttonOverrides={type:"tonal",style:"overlay-dark"};return e};
_.U($n,_.V);_.Y=$n.prototype;_.Y.dataChanged=function(){var e;this.useFullWidthPrimaryButton=!((e=this.data)==null||!e.useFullWidthPrimaryButton)};
_.Y.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:_.M("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.onDataChanged=function(){var e;(e=this.header)==null||e.style.setProperty("background-color",this.backgroundColor);if(e=this.headerImageUrl){var z;(z=this.header)==null||z.style.setProperty("background-image",e)}z=_.Pr(4);e=_.Ip(4);var C=this.get("data.trackingParams");if(C&&e&&z){var w=_.v9(C);_.id(z,e,w);_.M("combine_ve_grafts")?_.nm().graftServerVe(C,e,4):_.id(z,e,w)}z=_.b(this.hostElement.querySelectorAll("yt-img-shadow"));for(e=z.next();!e.done;e=z.next())e.value.onShow();if(z=this.get("data.gtmId"))_.oQ(z,
_.j5("GL","")),this.setupConversionTracking()};
_.Y.setupConversionTracking=function(){if(!this.scriptsAppended){var e=document.createElement("script");_.Xg(e,_.Yo(USY.join("")));document.head.appendChild(e);e=document.createElement("noscript");e.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(e);this.scriptsAppended=!0}};
_.Y.onPopupClosed=function(e){if(_.AU(e).localName==="ytd-sponsorships-celebration-renderer"){_.eA(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var z;this.data&&((z=this.data)==null?0:z.dismissCommand)&&_.Tx.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.lB.Object.defineProperties($n.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.FN(e)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return e?"url("+_.oo(e,this.hostElement.getBoundingClientRect().width)+")":""}}});
$n.prototype.onPopupClosed=$n.prototype.onPopupClosed;$n.prototype.onDataChanged=$n.prototype.onDataChanged;$n.prototype.dataChanged=$n.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$n.prototype,"data",void 0);
_.d([_.nP("#header"),_.B("design:type",HTMLElement)],$n.prototype,"header",void 0);_.d([_.F(),_.B("design:type",Object)],$n.prototype,"scriptsAppended",void 0);_.d([_.F({type:Boolean,reflectToAttribute:!0}),_.B("design:type",Object)],$n.prototype,"useFullWidthPrimaryButton",void 0);_.d([_.F(),_.B("design:type",Object)],$n.prototype,"buttonOverrides",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$n.prototype,"dataChanged",null);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$n.prototype,"onDataChanged",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$n.prototype,"onPopupClosed",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],$n);
_.u($n,"ytd-sponsorships-celebration-renderer",function(){if(Hnf!==void 0)return Hnf;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return Hnf=e},{mode:1});var vM5;var lj=function(){var e=_.V.apply(this,arguments)||this;e.isToggleChecked=!1;return e};
_.U(lj,_.V);lj.prototype.onDataChanged=function(){var e;this.isToggleChecked=((e=this.data)==null?void 0:e.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
lj.prototype.close=function(){var e;((e=this.data)==null?0:e.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
lj.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var e,z=_.r((e=this.data)==null?void 0:e.switchButton,b9Z);z&&(this.isToggleChecked&&z.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(z.switchOnInnertubeCommand),!this.isToggleChecked&&z.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(z.switchOffInnertubeCommand))};
lj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lj.prototype.onDataChanged=lj.prototype.onDataChanged;_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],lj.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],lj.prototype,"isToggleChecked",void 0);_.d([_.F({value:_.kk("CLOSE")}),_.B("design:type",String)],lj.prototype,"closeButtonAriaLabel",void 0);
_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],lj.prototype,"onDataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],lj);
_.u(lj,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(vM5!==void 0)return vM5;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return vM5=e},{mode:1});var Ipb;var QO=function(){return _.V.apply(this,arguments)||this};
_.U(QO,_.V);_.Y=QO.prototype;_.Y.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"}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.detached=function(){this.playerElement.stop()};
_.Y.onYtServiceRequestCompleted=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.Y.onYtServiceRequestError=function(e){_.Zh(this.hostElement,e.detail.error.message)};
_.Y.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.Y.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.Y.getTier=function(e,z){return!e||!e.tiers||z<0?null:_.r(e.tiers[z],qD5)};
_.Y.moreThanOne=function(e){return!!(e&&e.length>1)};
_.Y.tierOverviewTap=function(e){var z=this;this.selectedTier=e.model.index;_.T0(this,function(){_.pi(z.hostElement,"yt-refit")})};
_.Y.computeSelectedClass=function(e,z){return this.isSelected(e,z)?"selected":""};
_.Y.computeButtonAriaPressed=function(e,z){return this.isSelected(e,z)?"true":"false"};
_.Y.isSelected=function(e,z){return e===z};
_.Y.onDataChanged=function(){_.XC(this.hostElement).querySelector("#header-overlay").style.visibility="";_.XC(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 e=_.b(this.hostElement.querySelectorAll("yt-img-shadow")),
z=e.next();!z.done;z=e.next())z.value.onShow();var C;this.set("selectedTier",(C=this.get("data.targetTierIndex"))!=null?C:0);var w;(e=(w=this.data)==null?void 0:w.onVisible)&&this.ytComponentBehavior.resolveCommand(e)};
_.Y.initializeVe=function(e){var z=_.Pr(),C=_.Ip(),w=this.get("data.trackingParams");C&&z&&(this.screenLayer=4,z=_.Z_(_.kCg)(void 0,69877,{clientScreenNonce:z,visualElement:C},void 0,void 0,void 0),_.Li(z,69877,4),C=_.Ip(4),w&&C&&(w=_.v9(w),_.id(z,C,w),e&&(this.offerVideoVe=_.mT(74659),_.id(z,w,this.offerVideoVe))))};
_.Y.setHeaderBackground=function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.XC(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.FN(e);if(e=this.getHeaderImage())e=_.oo(e,screen.width),_.XC(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+e+")"};
_.Y.getHeaderImage=function(){var e=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&e?e:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y.setupVideoPlayer=function(e){var z=this,C,w,K,G;return _.k(function(X){if(X.nextAddress==1)return C=z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),w=z.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.M("kevlar_player_update_killswitch")?z.playerElement.update({args:{autoplay:C,video_id:e,player_params:w}}):z.playerElement.loadVideoWithPlayerVars({autoplay:C,video_id:e,player_params:w}),
X.yield(z.playerElement.getPlayerPromise(),2);K=X.yieldResult;K.addEventListener("onStateChange",function(J){z.onPlayerStateChange(J)});
K.setScreenLayer(z.screenLayer);(G=_.Pr(4))&&z.offerVideoVe&&_.s6(G,z.offerVideoVe);C&&(z.pauseOtherPlayers(),z.playerElement.focusOnPlayer(),z.playerElement.getPlayer().hideControls(),_.Dz(_.c5,function(){z.fadeOutHeaderOverlay()},4E3));
_.E_(X)})};
_.Y.onPlayerStateChange=function(e){e===1?this.backgroundPlayerElement&&(e=this.backgroundPlayerElement.player_.getPlayerState(),e!==1&&e!==3||this.backgroundPlayerElement.pause()):e===0&&(_.XC(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.XC(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.Y.fadeOutHeaderOverlay=function(){_.XC(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.Y.onHeaderTap=function(){if(this.offerVideo){_.XC(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var e;((e=this.playerElement.player_)==null?void 0:e.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(e=_.Pr(4))&&this.offerVideoVe&&_.gQ(e,this.offerVideoVe)}};
_.Y.getBackgroundImageLayerClass=function(e){return e?"background-image-layer-with-video":""};
_.Y.getHeaderClass=function(e){return e?"header-with-video":""};
_.Y.getHeaderOverlayClass=function(e){return e?"header-overlay-with-video":""};
_.Y.getTitleContainerClass=function(e,z){return e?"title-container-with-video":z?"title-container-without-video-flexible":"title-container-without-video"};
_.Y.tierTitleDisplayStatus=function(e){return this.moreThanOne(e)?"hide":"show"};
_.Y.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.lh().resolve(_.gh).getPlayerElement():this.backgroundPlayerElement=_.ox();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var e=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=e===1||e===3;this.backgroundPlayerElement.pause()}};
_.Y.isMiniplayerActive=function(){return _.lh().resolve(_.gh).isMiniplayerActive()};
_.Y.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("selected-tier-changed",this.selectedTier))};
QO.prototype.selectedTierChangedForBinding=QO.prototype.selectedTierChangedForBinding;QO.prototype.onDataChanged=QO.prototype.onDataChanged;QO.prototype.onYtPopupClosed=QO.prototype.onYtPopupClosed;QO.prototype.onYtPopupOpened=QO.prototype.onYtPopupOpened;QO.prototype.onYtServiceRequestError=QO.prototype.onYtServiceRequestError;QO.prototype.onYtServiceRequestCompleted=QO.prototype.onYtServiceRequestCompleted;
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],QO.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],QO.prototype,"data",void 0);_.d([_.F({value:0}),_.B("design:type",Number)],QO.prototype,"selectedTier",void 0);
_.d([_.F({value:""}),_.B("design:type",String)],QO.prototype,"offerVideo",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],QO.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.d([_.F({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.c1(this)}}),
_.B("design:type",String)],QO.prototype,"playerId",void 0);_.d([_.nP("tp-yt-paper-dialog-scrollable"),_.B("design:type",Object)],QO.prototype,"scrollable",void 0);_.d([_.nP("ytd-sponsorships-tier-renderer"),_.B("design:type",Object)],QO.prototype,"tierRenderer",void 0);_.d([_.nP("#player"),_.B("design:type",Object)],QO.prototype,"playerElement",void 0);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QO.prototype,"onYtServiceRequestCompleted",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],QO.prototype,"onYtServiceRequestError",null);
_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QO.prototype,"onYtPopupOpened",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QO.prototype,"onYtPopupClosed",null);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QO.prototype,"onDataChanged",null);
_.d([_.mi("selectedTier"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],QO.prototype,"selectedTierChangedForBinding",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],QO);
_.u(QO,"ytd-sponsorships-offer-renderer",function(){if(Ipb!==void 0)return Ipb;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Ipb=e},{mode:_.bA("kevlar_poly_si_batch_j077")?1:2});var WrY;var mZ=function(){var e=_.V.apply(this,arguments)||this;e.buttonOverrides={type:"filled",style:"mono"};return e};
_.U(mZ,_.V);mZ.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}}}}}};
mZ.prototype.backgroundColorChanged=function(){var e,z,C,w=(z=_.r((e=this.data)==null?void 0:e.content,xNv))==null?void 0:(C=z.backgroundColor)==null?void 0:C.backgroundColor;w&&(e=_.EG(w),_.XC(this.hostElement).querySelector("#banner").style.backgroundColor=e,_.XC(this.hostElement).querySelector("#abstract-art").style.backgroundColor=e)};
mZ.prototype.attached=function(){this.JSC$21115_scroller&&(this.JSC$21115_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21115_scroller.attached&&typeof this.JSC$21115_scroller.attached==="function"&&this.JSC$21115_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mZ.prototype.backgroundColorChanged=mZ.prototype.backgroundColorChanged;_.d([_.F(),_.B("design:type",Object)],mZ.prototype,"data",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],mZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("#scroller"),_.B("design:type",Object)],mZ.prototype,"JSC$21115_scroller",void 0);_.d([_.F(),_.B("design:type",Object)],mZ.prototype,"buttonOverrides",void 0);
_.d([_.mi("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],mZ.prototype,"backgroundColorChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],mZ);
_.u(mZ,"ytd-sponsorships-promotion-celebration-renderer",function(){if(WrY!==void 0)return WrY;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return WrY=e},{mode:_.bA("kevlar_poly_si_batch_j077")?1:2});var PvW;var RML;var aE=function(){return _.V.apply(this,arguments)||this};
_.U(aE,_.V);aE.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
aE.prototype.computeIsInitiallyChecked=function(e){return e===1};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],aE.prototype,"data",void 0);_.d([_.nP("#checkbox"),_.B("design:type",Object)],aE.prototype,"checkbox",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],aE);
_.u(aE,"ytd-subscription-toggle-option-renderer",function(){if(RML!==void 0)return RML;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return RML=e},{mode:1});var nO=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return e};
_.U(nO,_.V);nO.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"}}}};
nO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nO.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var e=_.XC(this.hostElement).querySelector("#options").selected;e=this.data.options[e].subscriptionRadioOptionRenderer.serviceEndpoint;var z=_.XC(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");z&&e&&e.modifyChannelNotificationPreferenceEndpoint&&(z=z.getValue())&&(e.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[z]);_.lh().resolve(_.ms).resolveCommand(e,{form:{element:this.hostElement}});
_.eA(this.hostElement,"yt-close-popup-action")};
_.lB.Object.defineProperties(nO.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var e=this.data.options,z=0;z<e.length;z++){var C=e[z].subscriptionRadioOptionRenderer;if(C&&C.selected)return z}return null}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],nO.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],nO.prototype,"eventForwardingBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],nO.prototype,"data",void 0);_.d([_.P("data.options"),_.B("design:type",Object),_.B("design:paramtypes",[])],nO.prototype,"initialIndex",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],nO);
_.u(nO,"ytd-subscription-notification-options-renderer",function(){if(PvW!==void 0)return PvW;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return PvW=e},{mode:1});var Lr3;var hMa=function(){return _.V.apply(this,arguments)||this};
_.U(hMa,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],hMa.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],hMa.prototype,"data",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],hMa);
_.u(hMa,"ytd-tvfilm-offer-groups-renderer",function(){if(Lr3!==void 0)return Lr3;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Lr3=e},{mode:1});var Onv;var Mo=function(){return _.V.apply(this,arguments)||this};
_.U(Mo,_.V);_.Y=Mo.prototype;_.Y.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"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.Y.computeThumbnailClass=function(e){return e.thumbnailOverlays?e.isShow?"thumbnail-show":"thumbnail-movie":e.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.Y.computeCommerceSectionClass=function(e){return e.offers&&e.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.Y.computeTitleClass=function(e){return e.offers&&e.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.Y.onDataChanged=function(){[].concat(_.s_(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(e){e.onShow()})};
Mo.prototype.onDataChanged=Mo.prototype.onDataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Mo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Mo.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Mo.prototype,"onDataChanged",null);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Mo);
_.u(Mo,"ytd-ypc-offers-overlay-renderer",function(){if(Onv!==void 0)return Onv;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Onv=e},{mode:_.bA("kevlar_poly_si_batch_j028")?1:2});var EMW;var FrW=function(){this.usedMethods=new Set};
FrW.prototype.add=function(e){this.usedMethods.add(e)};
FrW.prototype.reset=function(){this.usedMethods.clear()};var ViL,fpC;
_.Se3=function(e,z){this.query=e;this.previousSearchQuery=z;this.id=ViL++;if(!fpC){z=_.j5("SBOX_SETTINGS");e="https://"+((z==null?void 0:z.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var C=z==null?void 0:z.REQUEST_LANGUAGE;C&&(e+="&hl="+C);(C=z==null?void 0:z.REQUEST_DOMAIN)&&(e+="&gl="+C);e+="&client=youtube&gs_ri=youtube";(C=z==null?void 0:z.SUGG_EXP_ID)&&(e+="&sugexp="+encodeURIComponent(C));(C=z==null?void 0:z.PSUGGEST_TOKEN)&&(e+="&tok="+C);(z=z==
null?void 0:z.SESSION_INDEX)&&(e+="&authuser="+z);_.M("desktop_enable_visual_suggest")&&(e+="&h=180&w=320&ytvs=1");fpC=e}};
_.uIY=function(e){var z="q="+encodeURIComponent(e.query);e.previousSearchQuery&&(z+="&pq="+encodeURIComponent(e.previousSearchQuery));return z};
_.dSv=function(){var e=_.j5("SBOX_SETTINGS"),z={};if(e==null?0:e.SEND_VISITOR_DATA)z["X-Goog-Visitor-Id"]=e==null?void 0:e.VISITOR_DATA;return z};
_.DSa=function(e){var z=fpC;z+="&gs_id="+e.id.toString(36);z+="&q="+encodeURIComponent(e.query);z+="&cp="+e.query.length;e.previousSearchQuery&&(z+="&pq="+encodeURIComponent(e.previousSearchQuery));(e=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(z+="&video_id="+e);return z};
ViL=0;fpC="";var inq=_.gV.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Ngq=_.gV.SEARCH_ENTITY_SUGGESTION_MOVIE,syf=_.gV.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,Bgf=_.gV.SEARCH_ENTITY_SUGGESTION_TV_SHOW,ti5=function(e,z){this.text=e;this.bold=z},gM$=function(e,z,C){this.input=z;
this.index=C;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=e[0];this.type=e[1];this.subtypes=e[2];var w;this.displayText=Syf((w=e[3])==null?void 0:w.b);var K;this.ignoredPrefix=Syf((K=e[3])==null?void 0:K.a);var G,X;this.hasNewVideo=((G=e[3])==null?void 0:(X=G.zam)==null?void 0:X.toString())==="true"?!0:!1;var J;this.visualSuggestUrl=(J=e[3])==null?void 0:J.zai;var q;this.entityType=Syf((q=e[3])==null?void 0:q.zap);var T;this.entityName=Syf((T=e[3])==null?void 0:T.zao);var Q;z=
Syf((Q=e[3])==null?void 0:Q.zaf);var m;this.entityMid=(m=e[3])==null?void 0:m.zae;Q=uPf(this.subtypes,this.entityMid);if(z&&Q){if(z){m="";switch(Q){case "YOUTUBE_ENTITY_TYPE_SONG":m=syf;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":m=inq;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":m=Bgf;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":m=Ngq}Q=Q==="YOUTUBE_ENTITY_TYPE_SONG"||Q==="YOUTUBE_ENTITY_TYPE_ALBUM"?m+" \u2022  \u2022 "+z:z}else Q="";this.entitySubtitle=Q}var a;this.externalChannelId=(a=e[3])==null?void 0:a.zav;
var n;this.entityThumbnailAttributionUrl=(n=e[3])==null?void 0:n.zaq},ybq=function(e,z){var C=[],w,K=(w=e.displayText)!=null?w:e.text;
(z==null?0:z.useEntityName)&&jyL(e)&&e.entityName&&(K=e.entityName);if(e.type===33)return C.push(new ti5(K,!1)),C;if(K.length>=e.input.length&&K.substring(0,e.input.length)===e.input)C.push(new ti5(e.input,!1)),C.push(new ti5(K.substring(e.input.length),!0));else{var G=new Set(e.input.split(/\s/)),X=K.split(/\s/);C=X.map(function(J,q){return new ti5(J.trim()+(q===X.length-1?"":" "),!G.has(J))})}return C},jyL=function(e){var z=!!uPf(e.subtypes);
e=!!e.entityMid;return z||e};_.cbl=function(e){this.rawResponse=["",[],{}];this.suggestions=[];try{var z=JSON.parse(dJE(e));if(typeof z==="object"&&z!==null)this.rawResponse=z;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(w){console.log("Suggest: Failed to parse SuggestResponse!");return}var C=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(w,K){return new gM$(w,C,K)})};var Ab5=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new FrW;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$21152_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Zna,p_f=function(){Zna||(Zna=new Ab5);
return Zna};
Ab5.prototype.updateSuggestions=function(e){var z=this;this.availableSuggestions.forEach(function(C){z.previousSuggestions[C]=!0});
this.availableSuggestions=e.map(function(C){var w=C.type.toString();C.subtypes.length>0&&(w+="i"+C.subtypes.join("i"),w+="k"+C.suggestionSources.COMPLETE_SERVER.toString());return w})};
var ezq=function(e,z){var C=Date.now();e.firstEditTime<0&&(e.firstEditTime=C);z&&(e.lastQueryBuildTime=C);e.lastEditTime=C};
Ab5.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$21152_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var zzC=function(e){var z="";e.availableSuggestions.forEach(function(K){delete e.previousSuggestions[K]});
for(var C=_.b(Object.keys(e.previousSuggestions)),w=C.next();!w.done;w=C.next())w=w.value,e.previousSuggestions[w]&&(z+=(z?"j":"")+w);return z},CrL=function(e,z){var C=[];
z&&(C[1]=z.toString());C[0]="youtube";C[7]=Date.now()-e.startTime;C[6]=e.sessionNumber;e.zeroPrefixSuggestionCount>=0&&(C[33]=e.zeroPrefixSuggestionCount);C[13]=e.outOfSyncResponseCount;if(e.availableSuggestions.length>0){for(var w=z="",K=0,G=_.b(e.availableSuggestions),X=G.next();!X.done;X=G.next())X=X.value,X!==w&&(K>1&&(z+="l"+K),z+=(w?"j":"")+X,K=0,w=X),K+=1;K>1&&(z+="l"+K);C[3]=z}C[35]=zzC(e);e.selectedSuggestionIndex>=0&&(C[2]=e.selectedSuggestionIndex);var J;if(z=(J=_.j5("SBOX_SETTINGS"))==
null?void 0:J.SUGG_EXP_ID)C[19]=e.normalize(z),J=0,e.experimentTriggeredBeforeFinal&&(J|=1),e.experimentTriggeredFinal&&(J|=2),C[20]=J;C[26]=Array.from(e.inputMethodsTracker.usedMethods).join("j");if(e.JSC$21152_totalRoundTripTime>0){C[15]=e.JSC$21152_totalRoundTripTime;C[14]=e.maxRoundTripTime;J=[];for(K=z=0;K<10;K++)w=e.roundTripTimeHistogram[K],w===0?z++:(z>1?J.push(K+"-"+w):z===1?J.push("0j"+w):J.push(w.toString()),z=0);J=J.join("j");C[16]=J}e.zeroPrefixRoundTripTime>0&&(C[36]=e.zeroPrefixRoundTripTime);
e.lastQueryBuildTime>0&&(C[18]=e.lastQueryBuildTime-e.startTime);e.firstEditTime>0&&(C[4]=e.firstEditTime-e.startTime);e.lastEditTime>0&&(C[5]=e.lastEditTime-e.startTime);return C.join(".")};
Ab5.prototype.normalize=function(e){return e.replaceAll(".","-")};
var w6v=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var rd=function(){var e=_.V.apply(this,arguments)||this;e.microphoneSpinnerActive=!1;e.noAnimations=!1;e.boundExitClick=function(){e.onExitButtonClick()};
e.speechOverlayClassName="";e.isLevelAnimating=!1;e.playCloseDialogAudioFeedback=!0;e.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return e};
_.U(rd,_.V);_.Y=rd.prototype;_.Y.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.Y.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=XYY()};
_.Y.dataChanged=function(){this.logDialog()};
_.Y.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var e;(e=this.manager.audioPlayer)!=null&&(e.JSC$20507_audioEnabled=!1)}this.manager.stop();(e=this.manager.audioPlayer)!=null&&(e.JSC$20507_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.Y.handleSpeechQueryCompleteAction=function(e){var z=e.navigationAction;z&&(e.trackingParams&&_.nm().graftServerVe(e.trackingParams,this.dialogVe,5),_.pi(this.hostElement,"yt-navigate",{endpoint:z,tempData:this.getNavigationParams(z),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.Y.onExitButtonClick=function(){this.closeDialog()};
_.Y.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var e;if((e=this.manager)!=null){var z;(z=e.audioPlayer)==null||BG(z,"failure");e.setState("microphone-off");e.stop()}}else(e=this.manager)==null||e.start()};
_.Y.transcriptionChanged=function(){var e,z;(((e=this.transcription)==null?0:e.low)||((z=this.transcription)==null?0:z.high))&&this.setState("transcribing",this.transcription)};
_.Y.stateChanged=function(){this.setState(this.state,this.transcription)};
_.Y.logDialog=function(){var e;(e=this.data)!=null&&e.trackingParams&&(e=_.nm(),_.jk(e,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=e.graftServerVe(this.data.trackingParams,void 0,5))};
_.Y.getNavigationParams=function(e){var z={};if(_.M("web_yt_searchbox")){var C=p_f();C.inputMethodsTracker.add(6);C=CrL(C,15);z.gs_l=C;var w;z.oq=((w=_.r(e,_.ag))==null?void 0:w.query)||""}else if(e=window.ytvoicesearchloggingparams){if(e=e())z.oq=e.oq,z.gs_l=e.gs_l}else _.es(Error("Kl"));return z};
_.Y.closeDialog=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.Y.setState=function(e,z){if(this.data){var C=this.data,w={};switch(e){case "listening":w={headerText:C.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:C.microphoneButtonAriaLabel};break;case "timeout":w={headerText:C.promptHeader,microphoneState:"try-again",microphoneLabel:C.promptMicrophoneLabel,microphoneAriaLabel:C.promptMicrophoneLabel};break;case "microphone-off":w={headerText:C.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:C.promptMicrophoneLabel,
microphoneAriaLabel:C.promptMicrophoneLabel};break;case "transcribing":(z==null?0:z.low)||(z==null?0:z.high)?w={transcriptionLow:z==null?void 0:z.low,transcriptionHigh:z==null?void 0:z.high,microphoneState:"speaking",microphoneAriaLabel:C.microphoneButtonAriaLabel}:w={headerText:C.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:C.microphoneButtonAriaLabel};break;case "processing":w={headerText:C.loadingHeader,microphoneState:"processing",microphoneAriaLabel:C.microphoneButtonAriaLabel};
break;case "offline":w={headerText:C.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:C.connectionErrorMicrophoneLabel,microphoneAriaLabel:C.connectionErrorMicrophoneLabel};break;case "permission":w={headerText:C.permissionsHeader,bodyLine1:C.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:C.permissionsSubtext};break;case "permission-denied":w={headerText:C.disabledHeader,bodyLine1:C.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:C.disabledSubtext}}w.className=
e;this.speechOverlayState=w;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.Y.setMicrophoneState=function(e){var z=this.isLevelAnimating;this.isLevelAnimating=e==="speaking";!z&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=e==="processing"&&!this.noAnimations};
_.Y.setClass=function(e){this.speechOverlayClassName&&_.k$(this.hostElement,this.speechOverlayClassName,!1);e&&(this.speechOverlayClassName=e,_.k$(this.hostElement,e,!0))};
_.Y.runLevelAnimation=function(){var e=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var z=1+Math.random()*.75,C=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+C/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+z+")");_.c5.addJob(function(){e.runLevelAnimation()},3,C)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
rd.prototype.stateChanged=rd.prototype.stateChanged;rd.prototype.transcriptionChanged=rd.prototype.transcriptionChanged;rd.prototype.onPopupClosed=rd.prototype.onPopupClosed;rd.prototype.dataChanged=rd.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],rd.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],rd.prototype,"rendererStamperBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],rd.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],rd.prototype,"eventForwardingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],rd.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],rd.prototype,"speechOverlayState",void 0);
_.d([_.F(),_.B("design:type",Object)],rd.prototype,"microphoneSpinnerActive",void 0);_.d([_.F({type:_.M("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.B("design:type",Object)],rd.prototype,"noAnimations",void 0);_.d([_.F({selector:function(e){var z;return(z=e.voiceSearch)==null?void 0:z.transcription}}),
_.B("design:type",Object)],rd.prototype,"transcription",void 0);_.d([_.F({selector:function(e){var z;return(z=e.voiceSearch)==null?void 0:z.overlay}}),
_.B("design:type",String)],rd.prototype,"state",void 0);_.d([_.F(),_.B("design:type",Object)],rd.prototype,"boundExitClick",void 0);_.d([_.nP("#microphone-levels"),_.B("design:type",HTMLElement)],rd.prototype,"level",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rd.prototype,"dataChanged",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rd.prototype,"onPopupClosed",null);
_.d([_.Ux("transcription"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rd.prototype,"transcriptionChanged",null);_.d([_.Ux("state"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],rd.prototype,"stateChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],rd);
_.u(rd,"ytd-voice-search-dialog-renderer",function(){if(EMW!==void 0)return EMW;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return EMW=e},{mode:1});var KH5;var Hb=function(){var e=_.V.apply(this,arguments)||this;e.isOverlay=!1;e.hidden=!1;return e};
_.U(Hb,_.V);_.Y=Hb.prototype;_.Y.onPopupClosed=function(){this.toggleIconState(!1)};
_.Y.computeIcon=function(){var e,z,C;return(z=_.r((e=this.data)==null?void 0:e.icon,mNf))==null?void 0:(C=z.icon)==null?void 0:C.iconType};
_.Y.computeIconBadgeShape=function(){var e;return{iconBadgeType:"cart",iconBadgeText:(e=this.iconBadgeEntity)==null?void 0:e.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.Y.onClick=function(){var e;(e=this.data)!=null&&e.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.Y.computeHidden=function(e){return!e};
_.Y.toggleIconState=function(e){this.iconButton&&(this.iconButton.pressed=e)};
Hb.prototype.onPopupClosed=Hb.prototype.onPopupClosed;_.d([_.W(_.QX),_.B("design:type",Object)],Hb.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Hb.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Hb.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Hb.prototype,"isOverlay",void 0);
_.d([_.F({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.B("design:type",Object)],Hb.prototype,"hidden",void 0);_.d([_.F({selectorArgs:["data.iconBadgeEntityKey"],selector:function(e,z){return _.xz(e.entities,"iconBadgeEntity",z)}}),
_.B("design:type",Object)],Hb.prototype,"iconBadgeEntity",void 0);_.d([_.nP("yt-icon-button"),_.B("design:type",HTMLButtonElement)],Hb.prototype,"iconButton",void 0);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hb.prototype,"onPopupClosed",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Hb);
_.u(Hb,"ytd-icon-badge-topbar-button-renderer",function(){if(KH5!==void 0)return KH5;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return KH5=e},{mode:1});var oSY;var vb=function(){var e=_.V.apply(this,arguments)||this;e.premiumOptions=[];return e};
_.U(vb,_.V);vb.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.lB.Object.defineProperties(vb.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],vb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],vb.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Array)],vb.prototype,"premiumOptions",void 0);_.d([_.P("premiumOptions"),_.B("design:type",Object),_.B("design:paramtypes",[])],vb.prototype,"hasPremiumOptions",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],vb);
_.u(vb,"ytd-offline-promo-content",function(){if(oSY!==void 0)return oSY;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return oSY=e},{mode:1});var GfE;var IE=function(){var e=_.V.apply(this,arguments)||this;e.premiumOptions=[];return e};
_.U(IE,_.V);IE.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var e;this.premiumOptions=fgl((e=this.data)==null?void 0:e.formats)};
IE.prototype.onClickSubmit=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var e;(e=_.ox())==null||e.pause()};
IE.prototype.attached=function(){this.JSC$21172_scroller&&(this.JSC$21172_scroller.dialogElement=this.hostElement.parentNode)};
_.lB.Object.defineProperties(IE.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
IE.prototype.dataChanged=IE.prototype.dataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],IE.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],IE.prototype,"data",void 0);
_.d([_.F({computed:"computeIcon_(data.headersIcon)",value:""}),_.B("design:type",String)],IE.prototype,"headersIcon",void 0);_.d([_.F(),_.B("design:type",Array)],IE.prototype,"premiumOptions",void 0);_.d([_.nP("#scroller"),_.B("design:type",Object)],IE.prototype,"JSC$21172_scroller",void 0);_.d([_.P("headersIcon"),_.B("design:type",Object),_.B("design:paramtypes",[])],IE.prototype,"showIcon",null);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],IE.prototype,"dataChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],IE);
_.u(IE,"ytd-offline-promo-renderer",function(){if(GfE!==void 0)return GfE;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return GfE=e},{mode:1});var Ylq;var Wb=function(){var e=_.V.apply(this,arguments)||this;e.playbackPauseInterval=NaN;e.isLoading=!1;e.hasError=!1;e.dialogClass="";e.youtubeLabel=_.kk("LOGO_ALT_LABEL",{},"YouTube Home");e.logoName="yt-logos-ext:yt-logo-updated";e.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return e};
_.U(Wb,_.V);_.Y=Wb.prototype;_.Y.onDataChange=function(){var e;if(this.showEOMV1Text=!((e=this.data)==null||!e.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.Y.attached=function(){this.pausePlayer()};
_.Y.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.Y.handleLangSelect=function(e){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[e.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.Y.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.Y.handleSaveConsent=function(e){var z=this;this.showLoadingSpinner();this.showLoadingSpinner();wjW(_.r(e,nXb)).catch(function(C){_.AX(new _.uh("Something went wrong when save consent "+(C.message?C.message:C)+"."));z.hideLoadingSpinner();z.showErrorMessage()})};
_.Y.handleDisablePersonalization=function(e){var z=this;this.showLoadingSpinner();KBW(_.r(e,a5f)).then(function(){z.dialog.close();z.resumePlayer()}).catch(function(C){_.AX(new _.uh("Something went wrong when disable personalization "+(C.message?C.message:C)+"."));
z.hideLoadingSpinner();z.showErrorMessage()})};
_.Y.showLoadingSpinner=function(){var e=this;this.showSpinnerJobId=_.c5.addLowPriorityJob(function(){e.isLoading=!0},500)};
_.Y.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.c5.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.Y.showErrorMessage=function(){var e=this;this.hasError=!0;_.c5.addLowPriorityJob(function(){e.hasError=!1},2E3)};
_.Y.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.vi(function(){try{var e=_.ox();e&&e.pause()}catch(z){}},100))};
_.Y.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var e=_.ox();e&&e.play()}catch(z){}};
_.lB.Object.defineProperties(Wb.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.eomV1Text)return[];e=[];for(var z=["SHIELD","WARNING","BAR_CHART"],C=this.data.eomV1Text.essentialCookieMsg.items,w=0;w<z.length&&w<C.length;w++)e.push({icon:z[w],text:C[w]});return e}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var e;if((e=this.data)==null||!e.eomV1Text)return[];e=[];for(var z=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],C=this.data.eomV1Text.nonEssentialCookieMsg.items,w=0;w<z.length&&w<C.length;w++)e.push({icon:z[w],text:C[w]});return e}}});
Wb.prototype.onDataChange=Wb.prototype.onDataChange;_.d([_.F(),_.B("design:type",Object)],Wb.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],Wb.prototype,"showEOMV1Text",void 0);_.d([_.F(),_.B("design:type",Object)],Wb.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Object)],Wb.prototype,"hasError",void 0);_.d([_.F(),_.B("design:type",Number)],Wb.prototype,"showSpinnerJobId",void 0);_.d([_.F(),_.B("design:type",Object)],Wb.prototype,"dialogClass",void 0);
_.d([_.nP("#dialog"),_.B("design:type",Object)],Wb.prototype,"dialog",void 0);_.d([_.nP("#cb-header"),_.B("design:type",HTMLElement)],Wb.prototype,"header",void 0);_.d([_.nP("#lang-select"),_.B("design:type",HTMLElement)],Wb.prototype,"langSelect",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Wb.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Wb.prototype,"ytComponentBehavior",void 0);
_.d([_.F(),_.B("design:type",String)],Wb.prototype,"youtubeLabel",void 0);_.d([_.F(),_.B("design:type",Object)],Wb.prototype,"logoName",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Wb.prototype,"onDataChange",null);_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Wb.prototype,"eomEssentialCookieMsgItems",null);
_.d([_.P("data"),_.B("design:type",Array),_.B("design:paramtypes",[])],Wb.prototype,"eomNonEssentialCookieMsgItems",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Wb);
_.u(Wb,"ytd-consent-bump-v2-lightbox",function(){if(Ylq!==void 0)return Ylq;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return Ylq=e},{mode:1});var bIE;var Pb=function(){return _.V.apply(this,arguments)||this};
_.U(Pb,_.V);Pb.prototype.ready=function(){if(!_.Vj()||y1Y)var e=!0;else y1Y=!0,e=!1;e||(e=document.querySelector("ytd-app"),e||(e=document.body),this.internalLightBox=_.XC(e).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.d([_.F(),_.B("design:type",Object)],Pb.prototype,"data",void 0);_.d([_.nP("#lightbox"),_.B("design:type",Object)],Pb.prototype,"lightBox",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Pb);
_.u(Pb,"ytd-consent-bump-v2-renderer",function(){if(bIE!==void 0)return bIE;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return bIE=e},{mode:1});var X6W;var JjZ;var kfq;var RE=function(){return _.V.apply(this,arguments)||this};
_.U(RE,_.V);_.Y=RE.prototype;_.Y.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Xmv(this.toastManager,this.toastType)};
_.Y.open=function(e){this.toast&&(this.ephemeralAction&&_.lh().resolve(_.EI).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=e!=null?e:0,this.toastManager.enqueue(this.toast,e)):this.toast.open())};
_.Y.close=function(e){var z;(z=this.toast)==null||z.close();this.toastManager&&e===1&&Xmv(this.toastManager,e)};
_.Y.refit=function(){var e;(e=this.toast)==null||e.refit()};
_.Y.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var e;(e=this.toast)==null||e.close()}};
_.Y.setVerticalOffset=function(e){this.toast&&(this.toast.verticalOffset=e,this.toast.fit())};
_.Y.computeButtonClass_=function(e){return e?"toast-button":""};
_.Y.computeText_=function(e){return _.Zd(e)};
_.Y.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.R6("toast-opened-changed",this.toastOpened))};
_.Y.updateToastOpenedFromBinding=function(e){this.toastOpened=e.detail.value};
_.lB.Object.defineProperties(RE.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var e,z,C=(e=this.data)==null?void 0:(z=e.actionButton)==null?void 0:z.buttonRenderer;return(C==null?void 0:C.command)||(C==null?void 0:C.serviceEndpoint)||(C==null?void 0:C.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var e=[],z;((z=this.data)==null?0:z.responseText)&&e.push(_.Zd(this.data.responseText));var C;((C=this.data)==null?0:C.subText)&&e.push(_.Zd(this.data.subText));var w,K;if((w=this.data)==null?0:(K=w.actionButton)==null?0:K.buttonRenderer){var G,X;e.push(((G=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(X=G.accessibilityData)==null?void 0:X.label)||_.Zd(this.data.actionButton.buttonRenderer.text))}return e.filter(function(J){return J}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var e,z;return(z=(e=this.toast)==null?void 0:e.opened)!=null?z:!1}}});
RE.prototype.toastOpenedChangedForBinding=RE.prototype.toastOpenedChangedForBinding;RE.prototype.toastOpenedChanged=RE.prototype.toastOpenedChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],RE.prototype,"ytEventForwardingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],RE.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],RE.prototype,"duration",void 0);
_.d([_.F(),_.B("design:type",Number)],RE.prototype,"toastType",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],RE.prototype,"useCloseButton",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],RE.prototype,"closeToastOnActionButtonClick",void 0);_.d([_.F({value:function(){return _.kk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.B("design:type",String)],RE.prototype,"closeButtonAriaLabel",void 0);_.d([_.F(),_.B("design:type",Boolean)],RE.prototype,"toastOpened",void 0);_.d([_.F(),_.B("design:type",Boolean)],RE.prototype,"hasOpened",void 0);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],RE.prototype,"command",null);_.d([_.P("labelText","command","duration"),_.B("design:type",Object),_.B("design:paramtypes",[])],RE.prototype,"ephemeralAction",null);
_.d([_.P("ephemeralAction"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],RE.prototype,"hasEphemeralAction",null);_.d([_.nP("#toast"),_.B("design:type",Object)],RE.prototype,"toast",void 0);_.d([_.F({value:function(){return{style:"call-to-action-inverse"}}}),
_.B("design:type",Object)],RE.prototype,"buttonOverrides",void 0);_.d([_.F({value:{style:"mono-inverse"}}),_.B("design:type",Object)],RE.prototype,"closeButtonOverrides",void 0);_.d([_.F({value:function(){return _.lh().resolve(_.$B(_.h$))}}),
_.B("design:type",Object)],RE.prototype,"toastManager",void 0);_.d([_.P("data.responseText","data.subText","data.actionButton"),_.B("design:type",Object),_.B("design:paramtypes",[])],RE.prototype,"labelText",null);_.d([_.mi("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RE.prototype,"toastOpenedChanged",null);
_.d([_.mi("toastOpened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],RE.prototype,"toastOpenedChangedForBinding",null);_.d([_.fP({is:"yt-notification-action-renderer",disableElementRegistration:!0})],RE);
_.u(RE,"yt-notification-action-renderer",function(){if(kfq===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;JjZ===void 0&&(JjZ=document.createElement("template"));var w=JjZ;C.call(z,w.content.cloneNode(!0),e.content.firstChild);kfq=e}e=kfq;return e},{mode:2});var LO=function(){var e=_.V.apply(this,arguments)||this;e.duration=4E3;e.downloadingCount=0;e.downloadedCount=0;e.downloadingOnlySmartDownloads=!1;e.sessionTotalDownloads=0;e.sessionDownloaded=0;e.previousSessionsDownloaded=0;e.totalDownloadPercentage=0;e.currentDownloadProgress=0;e.currentDownloadPercentage=0;e.isLeaderTab=!0;e.isFullScreen=!1;e.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};e.boundBeforeUnload=function(z){e.isLeaderTab&&e.downloadingCount>0&&(z.preventDefault(),
z.returnValue=!0)};
return e};
_.U(LO,_.V);_.Y=LO.prototype;
_.Y.open=function(){this.updateDownloadState();if(this.data){var e=this.sessionDownloaded+1,z=this.sessionTotalDownloads>1?_.kk("VIDEOS_DOWNLOADING_RATIO",{downloaded:e.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+e+"/"+this.sessionTotalDownloads):_.kk("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(z=this.sessionTotalDownloads>1?_.kk("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:e.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
e+"/"+this.sessionTotalDownloads):_.kk("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));e=this.isLeaderTab?_.kk("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Zd(this.data.responseText)!==z||_.Zd(this.data.subText)!==e)this.set("data.responseText",_.AO(z)),this.set("data.subText",_.AO(e)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.Y.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.Y.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.Y.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.Y.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var e=this.downloadedCount-this.previousSessionsDownloaded;e<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-e);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.Y.handleFullscreenChange=function(e){(this.isFullScreen=e)||this.updatePopup()};
LO.prototype.updateCurrentDownloadProgress=LO.prototype.updateCurrentDownloadProgress;LO.prototype.updatePopup=LO.prototype.updatePopup;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],LO.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],LO.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],LO.prototype,"actionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],LO.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],LO.prototype,"duration",void 0);_.d([_.F({selector:function(e){return _.Bt5(e.entities).length}}),
_.B("design:type",Object)],LO.prototype,"downloadingCount",void 0);_.d([_.F({selector:$TL}),_.B("design:type",Object)],LO.prototype,"downloadedCount",void 0);_.d([_.F({selector:function(e){var z=_.Bt5(e.entities);return TGY(e.entities,z)}}),
_.B("design:type",Object)],LO.prototype,"downloadingOnlySmartDownloads",void 0);_.d([_.F(),_.B("design:type",Object)],LO.prototype,"sessionTotalDownloads",void 0);_.d([_.F(),_.B("design:type",Object)],LO.prototype,"sessionDownloaded",void 0);_.d([_.F(),_.B("design:type",Object)],LO.prototype,"previousSessionsDownloaded",void 0);_.d([_.F(),_.B("design:type",Object)],LO.prototype,"totalDownloadPercentage",void 0);
_.d([_.F({selector:function(e){var z;e=(z=_.Bt5(e.entities))!=null?z:[];return e.length>0?_.EbN(e.slice(-1)):0}}),
_.B("design:type",Object)],LO.prototype,"currentDownloadProgress",void 0);_.d([_.F(),_.B("design:type",Object)],LO.prototype,"currentDownloadPercentage",void 0);_.d([_.F({selector:_.cY5}),_.B("design:type",Object)],LO.prototype,"isLeaderTab",void 0);_.d([_.nP("yt-notification-action-renderer"),_.B("design:type",Object)],LO.prototype,"notificationActionRenderer",void 0);
_.d([_.Ux("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LO.prototype,"updatePopup",null);_.d([_.Ux("currentDownloadProgress"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],LO.prototype,"updateCurrentDownloadProgress",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],LO);
_.u(LO,"ytd-video-download-toast-renderer",function(){if(X6W!==void 0)return X6W;var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return X6W=e},{mode:1});var qlY;var xyb;var hv=function(){return _.V.apply(this,arguments)||this};
_.U(hv,_.V);hv.prototype.computeIsRedLogo=function(e,z){!e&&z&&(e=z);return e==="YOUTUBE_RED_LOGO"||e==="YOUTUBE_PREMIUM_LOGO"};
hv.prototype.computeLogoName=function(e){e=this.componentBehavior.computeIcon_(e);return e===""?"yt-logos-ext:yt-logo-updated":e};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],hv.prototype,"componentBehavior",void 0);_.d([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.B("design:type",Boolean)],hv.prototype,"isRedLogo",void 0);_.d([_.F({computed:"computeLogoName(data)"}),_.B("design:type",String)],hv.prototype,"logoName",void 0);_.d([_.F({value:{}}),_.B("design:type",Object)],hv.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],hv.prototype,"logoType",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-logo"})],hv);
_.u(hv,"ytd-logo",function(){if(xyb!==void 0)return xyb;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return xyb=e},{mode:_.bA("kevlar_poly_si_batch_j074")?1:2});var OL=function(){var e=_.V.apply(this,arguments)||this;e.animationRef={};return e};
_.U(OL,_.V);_.Y=OL.prototype;_.Y.attached=function(){document.addEventListener("yt-navigate-finish",_.lE(this,this.logYoodle))};
_.Y.detached=function(){document.removeEventListener("yt-navigate-finish",_.lE(this,this.logYoodle))};
_.Y.logYoodle=function(){var e,z;if((e=this.data)==null?0:(z=e.loggingDirectives)==null?0:z.trackingParams)this.ytRendererBehavior.markDirty(),_.nm().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.Y.computeHideImg=function(e,z){return!!e||!!z};
_.Y.computeHideYtdLogo=function(e,z){return!e||!!z};
_.Y.computeHideLottie=function(e){return!e};
_.Y.computeIsRedLogo=function(e){return e==="YOUTUBE_RED_LOGO"||e==="YOUTUBE_PREMIUM_LOGO"};
_.Y.renderLogoEntity=function(){var e=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),z=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),C=this.getLogoTitleText(this.data),w=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==e&&(this.url=e);this.animatedUrl!==z&&(this.animatedUrl=z);this.logoTitleText!==C&&(this.logoTitleText=C);this.lottieUrl!==w&&(this.lottieUrl=w,this.lottiePlayerProps=this.computeLottiePlayerProps(w))};
_.Y.getSanitizedThumbnail=function(e){return e&&e.thumbnails?_.yNh(e.thumbnails,122)||"":""};
_.Y.getThumbnailUrl=function(e,z){if(!z)return"";var C,w;e=e?(C=z.darkThemeLogo)==null?void 0:C.thumbnail:(w=z.lightThemeLogo)==null?void 0:w.thumbnail;return this.getSanitizedThumbnail(e)};
_.Y.getAnimatedThumbnailUrl=function(e,z){return z?this.getSanitizedThumbnail(e?z.darkThemeAnimatedLogo:z.lightThemeAnimatedLogo):""};
_.Y.getLogoTitleText=function(e){if(e)return _.Zd(e.tooltipText)};
_.Y.computeLogoIcon=function(e,z){if(z){var C,w;return e?(C=z.darkThemeLogo)==null?void 0:C.icon:(w=z.lightThemeLogo)==null?void 0:w.icon}};
_.Y.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.Y.getLottieUrl=function(e,z){var C,w,K,G;return e?z==null?void 0:(C=z.darkThemeLogo)==null?void 0:(w=C.lottieAnimation)==null?void 0:w.url:z==null?void 0:(K=z.lightThemeLogo)==null?void 0:(G=K.lottieAnimation)==null?void 0:G.url};
_.Y.computeLottiePlayerProps=function(e){if(e){var z;if((z=this.animationRef)==null?0:z.lottieEl){var C;(C=this.animationRef)==null||C.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:e,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.Y.onLottieError=function(){this.data&&this.lottieUrl&&_.pi(this.hostElement,"yoodle-error")};
_.Y.onImgError=function(){this.data&&!this.lottieUrl&&_.pi(this.hostElement,"yoodle-error")};
OL.prototype.playAnimation=OL.prototype.playAnimation;OL.prototype.renderLogoEntity=OL.prototype.renderLogoEntity;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],OL.prototype,"data",void 0);_.d([_.F({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],OL.prototype,"hideImg",void 0);
_.d([_.F({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.B("design:type",Boolean)],OL.prototype,"hideYtdLogo",void 0);_.d([_.F({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.B("design:type",Boolean)],OL.prototype,"hideLottie",void 0);_.d([_.F({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.B("design:type",Boolean)],OL.prototype,"isRedLogo",void 0);
_.d([_.F(),_.B("design:type",Boolean)],OL.prototype,"useDarkThemeYoodle",void 0);_.d([_.F(),_.B("design:type",String)],OL.prototype,"url",void 0);_.d([_.F(),_.B("design:type",String)],OL.prototype,"animatedUrl",void 0);_.d([_.F(),_.B("design:type",String)],OL.prototype,"logoTitleText",void 0);_.d([_.F({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.B("design:type",Object)],OL.prototype,"logoIcon",void 0);_.d([_.F(),_.B("design:type",Object)],OL.prototype,"logoType",void 0);
_.d([_.F(),_.B("design:type",String)],OL.prototype,"lottieUrl",void 0);_.d([_.F(),_.B("design:type",Object)],OL.prototype,"lottiePlayerProps",void 0);_.d([_.F(),_.B("design:type",Object)],OL.prototype,"animationRef",void 0);_.d([_.mi("data"),_.mi("useDarkThemeYoodle"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],OL.prototype,"renderLogoEntity",null);
_.d([_.Qi("click"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],OL.prototype,"playAnimation",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],OL);
_.u(OL,"ytd-yoodle-renderer",function(){if(qlY!==void 0)return qlY;var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return qlY=e},{mode:_.bA("kevlar_poly_si_batch_j074")?1:2});var T8Y;var $y5;var lYY=_.cF.currentPageTypeSelector,QLC=_.cF.currentPageSubTypeSelector,EL=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return e};
_.U(EL,_.V);_.Y=EL.prototype;_.Y.onYoodleError=function(){_.M("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.Y.computeLogoName=function(e){e=this.componentBehavior.computeIcon_(e);return e===""?"yt-logos-ext:yt-logo-updated":e};
_.Y.computeTitle=function(e,z,C){return C&&(z==null?0:z.tooltipText)?_.Zd(z.tooltipText):_.Zd(e)};
_.Y.computeAriaLabel=function(e,z,C){return C&&(z==null?0:z.tooltipText)?_.Zd(e):""};
_.Y.computeShowYoodle=function(e,z,C){return!e||!z&&!!C&&!_.de.isEmpty(C)};
_.Y.onNavigateHomeAction=function(){if(_.M("kevlar_miniplayer_navigate_home_from_app_killswitch")){var e;(e=_.XC(this.hostElement).querySelector(".yt-simple-endpoint"))==null||e.click()}};
_.Y.computeLogoHref=function(e,z,C){var w;(C==null?0:C.onTapCommand)?w=this.componentBehavior.computeHref_(C.onTapCommand):e&&(w=this.componentBehavior.computeHref_(e));return w?w:z};
_.Y.computeCommand=function(e,z){return(z==null?void 0:z.onTapCommand)||e};
_.Y.getEndpointForm=function(){if(_.M("kevlar_topbar_disable_cache_only_home")){var e=_.lh().resolve(_.Tr),z=lYY(e.getState())||"";e=QLC(e.getState())||"";return{disableCache:z==="ytd-browse"&&e==="home"}}return{disableCache:!0}};
EL.prototype.onYoodleError=EL.prototype.onYoodleError;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],EL.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],EL.prototype,"componentBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],EL.prototype,"ytdReduxBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],EL.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],EL.prototype,"countryCode",void 0);_.d([_.F({selectorArgs:["data.overrideEntityKey"],selector:function(e,z){return _.xz(e.entities,"logoEntity",z)}}),
_.B("design:type",Object)],EL.prototype,"logoEntity",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.B("design:type",Boolean)],EL.prototype,"showYoodle",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],EL.prototype,"yoodleError",void 0);_.d([_.F({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],EL.prototype,"titleText",void 0);
_.d([_.F({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.B("design:type",String)],EL.prototype,"ariaLabelText",void 0);_.d([_.F({value:"/"}),_.B("design:type",String)],EL.prototype,"defaultEndpointUrl",void 0);_.d([_.F({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.B("design:type",String)],EL.prototype,"endpointUrl",void 0);
_.d([_.F({computed:"computeCommand(data.endpoint, logoEntity)"}),_.B("design:type",String)],EL.prototype,"command",void 0);_.d([_.F(),_.B("design:type",Object)],EL.prototype,"logoType",void 0);_.d([_.F({}),_.B("design:type",Boolean)],EL.prototype,"useDarkThemeYoodle",void 0);_.d([_.Qi("yoodle-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],EL.prototype,"onYoodleError",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],EL);
_.u(EL,"ytd-topbar-logo-renderer",function(){if($y5!==void 0)return $y5;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return $y5=e},{mode:_.bA("kevlar_poly_si_batch_j027")?1:2});var myW=0;var aY$=_.gV.SEARCH_APPEND_LABEL,nSf=_.gV.SUGGESTION_NEW_VIDEOS_TEXT,MX5=_.gV.SUGGESTION_THUMBNAIL_LABEL,rjo=_.gV.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,HI5=_.f(function(e){function z(CY){var nv,sq;return _.k(function(k2){if(k2.nextAddress==1)return nv=new Request(CY),_.Iv(k2,2),k2.yield(fetch(nv,{credentials:"include"}),4);if(k2.nextAddress!=2)return $N(!0),_.Yj(k2,0);sq=_.O_(k2);_.AX(sq);_.E_(k2)})}
var C=e.isHighlighted;var w=e.suggestion;var K=e.onClickCallback;var G=e.onHoverUpdateCallback;var X=e.labels;var J=e.queryBuilderFunction;var q=e.onRemoveCallback;var T=e.suggestionIndex;var Q=e.generateUniqueId;var m=e.highlightedId;var a=e.useScrollMargin;var n=e.isKeyboardMode;var H=null,I=null,L=null,h=_.kI("div"),E=_.kI("span");e=_.b(_.II(!1,void 0,"LafNkf"));var N=e.next().value,D=e.next().value,g=_.qD("a",function(CY){CY&&_.FZ(237477,CY,I,function(nv){I=nv})}),y=_.qD("button",function(CY){CY&&
_.FZ(237477,CY,I,function(nv){I=nv})}),Z=_.qD("div",function(CY){CY&&_.FZ(281939,CY,L,function(nv){L=nv})}),YN=_.T9(function(CY){if((CY==null?void 0:CY.button)===2)return CY.preventDefault(),!1;
var nv=_.Pr();nv&&H&&_.jA(nv,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var sq;K(CY,w().text,w().index,w().entityMid,CY==null?void 0:(sq=CY.detail)==null?void 0:sq.wasSelectedByKeyboard);return!1}),Jk=function(){return w().type===35},v1=function(){return _.M("desktop_enable_single_suggestion_highlight")},lg=function(){return _.n0("desktop_suggestions_panel_row_height")||0},M5=function(){var CY;
return _.M("desktop_enable_new_video_metadata")&&((CY=w())==null?void 0:CY.hasNewVideo)===!0},fo=function(){return _.M("desktop_enable_visual_suggest")},ug=function(){return _.M("desktop_enable_entity_suggest")&&jyL(w())},sE=function(){return w().entitySubtitle},w6=function(){return v1()?(C==null?void 0:C())||Ba()&&!(n==null?0:n()):(C==null?void 0:C())||Ba()},qY=function(){var CY=_.j5("SBOX_SETTINGS");
return Jk()&&!(CY==null?0:CY.HIDE_REMOVE_LINK)},y1=function(){return ybq(w(),{useEntityName:ug()})},Qa,Ha=!((Qa=_.lh().resolve(_.$B(_.jQ)))==null||!Qa()),OU=function(){return Jk()?_.M("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},ab=function(){return X==null?void 0:X().SUGGESTION_DISMISS_LABEL},Pa=function(){return X==null?void 0:X().SUGGESTION_DISMISSED_LABEL};
e=_.b(_.II(!1,void 0,"JyfUlf"));Qa=e.next().value;var $N=e.next().value;e=_.b(_.II(!1,void 0,"QKfAGe"));var N5=e.next().value,$L=e.next().value,Ba=N5,r6=_.T9(function(){J(E.value.innerText);return!1}),eE=_.T9(function(CY){CY.preventDefault();
return!1}),q1=_.T9(function(CY){var nv=w().text,sq=_.j5("SBOX_SETTINGS"),k2="https://"+(sq.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
k2+="&delq="+encodeURIComponent(nv);(nv=sq==null?void 0:sq.PSUGGEST_TOKEN)&&(k2+="&tok="+nv);(sq=sq==null?void 0:sq.SESSION_INDEX)&&(k2+="&authuser="+sq);z(k2);CY.preventDefault();(CY=_.Pr())&&I&&_.jA(CY,I,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");q(T==null?void 0:T());return!1}),g6=_.T9(function(){if(v1()&&(n==null?0:n()))return!1;
$L(!0);G(!0);return!1}),lo=_.T9(function(){$L(!1);
G(!1);return!1}),mc=_.T9(function(){D(!0);
return!1}),ob=_.T9(function(){D(!1);
return!1}),Ak=_.T9(function(CY){CY.preventDefault();
if(w().entityThumbnailAttributionUrl){L&&_.Ai(_.nm(),L);var nv=w().entityThumbnailAttributionUrl;CY=w().entityName;var sq={dismissDialogEndpoint:{}};nv={commandExecutorCommand:{commands:[sq,{urlEndpoint:{url:nv,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:nv}}}]}};sq={buttonViewModel:{title:_.kk("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:sq}}};nv={buttonViewModel:{title:_.kk("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:nv}}};CY={dialogHeaderViewModel:{headline:{content:CY!=null?CY:_.kk("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var k2={basicContentViewModel:{paragraphs:[{text:{content:_.kk("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};CY={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:CY,footer:{panelFooterViewModel:{primaryButton:nv,
secondaryButton:sq,shouldHideDivider:!0}},content:k2}}}}};_.lh().resolve(_.ms).resolveCommand(CY)}return!1});
e=_.b(_.II("",void 0,"MvIBn"));var wf=e.next().value,$a=e.next().value;_.Nm(function(){qY()&&$a(Q==null?void 0:Q(T==null?void 0:T()));h.value&&_.FZ(12453,h.value,H,function(CY){H=CY})});
return _.x(_.l,{cond:Qa,then:function(){var CY={};return _.x("div",{class:_.qT("ytSuggestionComponentRemovedText",(CY.ytSuggestionComponentLargerRemovedText=function(){return fo()},CY)),
style:function(){return lg()>0?"height: "+lg()+"px;":""},
role:"button"},Pa)},
else:function(){var CY={},nv={};return _.x("div",{class:_.qT("ytSuggestionComponentSuggestion",(CY.ytSuggestionComponentSuggestionHover=function(){return!v1()},CY.ytSuggestionComponentHighlighted=w6,CY.ytSuggestionComponentPersonalizedSuggestion=Jk,CY.ytSuggestionComponentMweb=!1,CY.ytSuggestionComponentLargerSuggestion=function(){return M5()||fo()},CY.ytSuggestionComponentThumbnailSuggestion=function(){return fo()},CY.ytSuggestionComponentRoundedSuggestion=function(){return _.M("desktop_enable_scrollable_suggestions_panel")&&
_.M("desktop_enable_suggestions_panel_padding")},CY.ytSuggestionComponentThumbnailPadding=function(){return fo()&&!Jk()},CY)),
style:function(){return lg()>0?"height: "+lg()+"px;":""},
role:"presentation","on:mousedown":YN,"on:mouseover":g6,"on:mouseout":lo,el:h},_.x("div",{class:_.qT("ytSuggestionComponentText",(nv.ytSuggestionComponentScrollMargin=a,nv)),"aria-label":function(){return M5()?w().text+" "+nSf:w().text},
id:function(){return Q==null?void 0:Q(T==null?void 0:T())},
"on:mousedown":YN,role:"option"},_.x(_.l,{cond:function(){return w().type!==33},
then:function(){return _.x(_.mB,{icon:OU,className:"ytSuggestionComponentIcon"})}}),_.x("div",{class:"ytSuggestionComponentLeftContainer"},_.x("span",{el:E,
role:"button",tabindex:0},_.x(_.ui,{each:y1},function(sq){return sq.bold?_.x("span",{class:"ytSuggestionComponentBold"},sq.text):_.x("span",null,sq.text)})),_.x(_.l,{cond:function(){return ug()&&!!w().entitySubtitle||M5()},
then:function(){return _.x("div",{class:"ytSuggestionComponentMetadataContainer"},_.x(_.l,{cond:function(){return ug()&&!!w().entitySubtitle},
then:function(){return _.x("div",{class:"ytSuggestionComponentEntitySubtitle"},sE)}}),_.x(_.l,{cond:function(){return M5()},
then:function(){return _.x("div",{class:"ytSuggestionComponentNewVideoContainer"},_.x("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.x("div",{class:"ytSuggestionComponentNewVideoText"},nSf))}}))}}))),_.x("div",{class:"ytSuggestionComponentRightContainer"},_.x(_.l,{cond:function(){return fo()&&w().visualSuggestUrl!==void 0},
then:function(){var sq={};return _.x("div",{class:"ytSuggestionComponentThumbnailContainer"},_.x("img",{"aria-label":MX5,class:_.qT("ytSuggestionComponentVisualSuggestThumbnail",(sq.ytSuggestionComponentCircularFrame=function(){return ug()&&w().subtypes.includes(790)},sq.ytSuggestionComponentEntitySuggestThumbnail=function(){return ug()},sq)),
src:function(){return w().visualSuggestUrl}}),_.x(_.l,{cond:function(){return ug()&&!!w().entityThumbnailAttributionUrl},
then:function(){var k2={};return _.x("span",{title:rjo,role:"tooltip"},_.x("div",{el:Z,"on:mouseover":mc,"on:mouseout":ob,"on:mousedown":Ak,class:_.qT("ytSuggestionComponentThumbnailOverlay",(k2.ytSuggestionComponentThumbnailOverlayHidden=function(){return!N()},k2))},_.x(_.mB,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.x(_.d1,null,_.x(_.fd,{when:function(){return fo()&&qY()}},function(){var sq={};
return _.x("button",{class:_.qT("ytSuggestionComponentRemoveLinkClearButton",(sq.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return wf()&&wf()===(m==null?void 0:m())},sq.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!w6()},sq)),
el:y,"on:mousedown":q1,"aria-label":ab,id:function(){return wf()}},_.x(_.mB,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.x(_.fd,{when:function(){return!(fo()&&w().visualSuggestUrl!==void 0)&&qY()}},function(){var sq={};
return _.x("a",{class:_.qT("ytSuggestionComponentRemoveLink",(sq.ytSuggestionComponentRemoveLinkDark=Ha,sq.ytSuggestionComponentRemoveLinkSelected=function(){return wf()&&wf()===(m==null?void 0:m())},sq)),
el:g,"on:mousedown":q1,"aria-label":ab,tabindex:0,role:"button",id:function(){return wf()}},ab)}),_.x(_.fd,{when:function(){return!1}},function(){return _.x("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":r6,"on:mousedown":eE,role:"button","aria-label":aY$},_.x(_.mB,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Bj");var UyL=_.Kb(["//www.google.com/textinputassistant/","/","_tia.js"]),vSv=_.f(function(){return _.x("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.x("button",{class:"ytdTextInputAssistantButton","on:click":_.T9(function(){p_f().inputMethodsTracker.add(3);var e,z=(e=_.j5("SBOX_SETTINGS"))==null?void 0:e.REQUEST_LANGUAGE;if(z)return _.Vq(_.nJ(UyL,14,z)),!1})},_.x("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Cj");var WH5;_.IYC=function(){this.cache=new Map};
WH5=function(e){for(var z=_.b(e.cache.entries()),C=z.next();!C.done;C=z.next()){var w=_.b(C.value);C=w.next().value;w=w.next().value;w.suggestions.some(function(K){return K.type===35})&&e.cache.delete(C)}};var PrC=_.gV.SEARCH,Rzq=_.gV.SEARCH_CLEAR_LABEL,LHf=new _.Mt("FAKE_SUGGEST_RESPONSE"),hzo=_.f(function(e){function z(){g6||(g6=setTimeout(function(){mc()},1E3))}
function C(Lg,Ih,gf){if(Lg.trim()){q1=Lg;_.g1("REFINEMENTS_TUPLE",void 0);r6=!0;var BL;Ih=CrL(Pa,Ih);var ng=(BL=e.searchEndpoint)==null?void 0:BL.call(e);_.iVZ(Lg,Ih,ng,Qa.value.value,gf);mc();Qa.value.value=Lg;Qa.value.blur();Pa.reset()}}
function w(Lg){return _.k(function(Ih){return Ih.return(new Promise(function(gf){var BL=new XMLHttpRequest;BL.open("GET",_.DSa(Lg),!0);BL.withCredentials=!0;var ng=_.j5("SBOX_SETTINGS");(ng==null?0:ng.SEND_VISITOR_DATA)&&BL.setRequestHeader("X-Goog-Visitor-Id",ng==null?void 0:ng.VISITOR_DATA);BL.onload=function(){gf(BL.responseText)};
BL.onerror=function(){_.AX(Error("Ml"));gf(null)};
setTimeout(function(){BL.abort()},1E4);
BL.send(null)}))})}
function K(Lg){var Ih,gf,BL,ng;return _.k(function(A0){switch(A0.nextAddress){case 1:return Ih={credentials:"include",headers:_.dSv()},window.AbortController&&(gf=new AbortController,setTimeout(function(){gf.abort("ytsbox-suggest-timeout")},1E4),Ih.signal=gf.signal),_.Iv(A0,2),A0.yield(fetch(_.DSa(Lg),Ih),4);
case 4:BL=A0.yieldResult.text();_.Yj(A0,3);break;case 2:return ng=_.O_(A0),ng!=="ytsbox-abort-last"&&ng!=="ytsbox-suggest-timeout"&&_.AX(ng),A0.return(null);case 3:return A0.return(BL)}})}
function G(Lg){var Ih,gf,BL;return _.k(function(ng){switch(ng.nextAddress){case 1:if(Ih=_.lh().resolve(_.$B(LHf)))return ng.return(Ih);gf=Date.now();z();return _.M("yt_searchbox_xhr")?ng.yield(w(Lg),5):ng.yield(K(Lg),4);case 4:BL=ng.yieldResult;ng.jumpTo(3);break;case 5:BL=ng.yieldResult;case 3:if(BL){g6&&(clearTimeout(g6),g6=null);var A0=Pa,yw=gf,tt=Lg.query.length===0;yw=Date.now()-yw;tt?A0.zeroPrefixRoundTripTime=yw:(A0.JSC$21152_totalRoundTripTime+=yw,A0.maxRoundTripTime=Math.max(A0.maxRoundTripTime,
yw),tt=Math.floor(yw/100),tt>=w6v.length?++A0.roundTripTimeHistogram[9]:++A0.roundTripTimeHistogram[w6v[tt]])}return ng.return(BL)}})}
function X(Lg){var Ih,gf,BL;return _.k(function(ng){if(ng.nextAddress==1)return(Ih=ab.cache.get(_.uIY(Lg)))?ng.return(Ih):ng.yield(G(Lg),2);gf=ng.yieldResult;if(gf===null)return ng.return(null);BL=new _.cbl(gf);Lg.query.length===0&&BL.suggestions.length===0||ab.cache.set(_.uIY(Lg),BL);return ng.return(BL)})}
function J(Lg){var Ih,gf;return _.k(function(BL){if(BL.nextAddress==1){eE=!1;var ng=q1;ng=_.Cs()==="search"?(_.ea(location.href,"search_query")||_.ea(location.href,"q"))===ng:!1;Ih=new _.Se3(Lg,ng?q1:null);return BL.yield(X(Ih),2)}gf=BL.yieldResult;if(gf===null)return BL.return();Ih.query.length===0&&(Pa.zeroPrefixSuggestionCount=gf.suggestions.length);if(Ih.id<=lo)return Pa.outOfSyncResponseCount++,BL.return();if(document.activeElement!==Qa.value)return BL.return();lo=Ih.id;var A0=Pa,yw=gf.rawResponse[2]||
{};A0.experimentTriggeredBeforeFinal||(A0.experimentTriggeredBeforeFinal=A0.experimentTriggeredFinal);A0.experimentTriggeredFinal=!!yw.e;Pa.updateSuggestions(gf.suggestions);L(-1);sE([]);gf.suggestions!==n()&&r9(gf.suggestions.length);H(gf.suggestions);YN(gf.suggestions.length>0&&gf.suggestions[0].type===33);OU&&(OU.hidden=gf.suggestions.length===0,Z()?(OU.style.minWidth="",A0=OU.style,yw=(ng=n()[0])==null?void 0:ng.ignoredPrefix,A0.marginLeft=(yw?Math.min(yw.length*6,Ha.value.offsetWidth):0).toString()+
"px"):(OU.style.minWidth=Ha.value.offsetWidth+"px",OU.style.marginLeft="0"),Fg());_.E_(BL)})}
function q(){if(!r6)return!1;var Lg=_.j5("REFINEMENTS_TUPLE");return Lg?(Lg=Lg[1].map(function(Ih,gf){return new gM$([Ih,0,[71]],Qa.value.value,gf)}),n()!==Lg&&r9(Lg.length),sE([]),H(Lg),Pa.updateSuggestions(Lg),r6=!1,OU.hidden=Lg.length===0,eE=Lg.length>0,!0):!1}
function T(){var Lg=Qa.value.value;(typeof Lg==="string"||Lg instanceof String)&&Lg!==""?D(!0):D(!1)}
function Q(){if(_.Cs()==="search"){var Lg=window.location.href;try{var Ih=_.ea(Lg,"search_query")||_.ea(Lg,"q")||""}catch(gf){Ih=""}Ih&&(Qa.value.value=Ih,D(!0))}}
var m=_.b(_.II([],void 0,"OC8EPc")),a=m.next().value;m=m.next().value;var n=a,H=m;a=_.b(_.II(-1,void 0,"t2tVQb"));var I=a.next().value,L=a.next().value;a=_.b(_.II(-1,void 0,"v0RZCe"));var h=a.next().value,E=a.next().value;a=_.b(_.II(!1,void 0,"rjAnI"));var N=a.next().value,D=a.next().value;a=_.b(_.II(!1,void 0,"SyGLvb"));var g=a.next().value,y=a.next().value;m=_.b(_.II(!1,void 0,"tL09Cb"));a=m.next().value;m=m.next().value;var Z=a,YN=m;m=_.b(_.II(!1,void 0,"FlH7mc"));a=m.next().value;var Jk=m.next().value;
m=_.b(_.II(!1,void 0,"ea3fwe"));var v1=m.next().value,lg=m.next().value;m=_.b(_.II(1,void 0,"vSK1xe"));var M5=m.next().value,fo=m.next().value;m=_.b(_.II([],void 0,"ijlw4b"));var ug=m.next().value,sE=m.next().value;m=_.b(_.II(!1,void 0,"HcRey"));var w6=m.next().value,qY=m.next().value;m=_.M("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var y1=_.kI("yt-searchbox"),Qa=_.kI("input"),Ha=_.kI("div"),OU,ab=
new _.IYC,Pa=p_f(),$N=_.lh().resolve(_.$B(_.jQ)),N5=function(){var Lg;return((Lg=e.forceDarkMode)==null?void 0:Lg.call(e))||!($N==null||!$N())},$L=function(){return _.M("desktop_enable_scrollable_suggestions_panel")},Ba="i"+myW++,r6=!1,eE=!1,q1="",g6=null,lo=-1,mc=function(){sE([]);
H([]);YN(!1);OU&&(OU.hidden=!0);g6&&(clearTimeout(g6),g6=null);L(-1)},ob=function(Lg,Ih){Lg.preventDefault();
qY(!0);OU&&(OU.hidden=!1);var gf=I();Lg=n();var BL=ug();Ih=NJC(Ih);gf+=Ih;for(gf>=Lg.length?gf=-1:gf<-1&&(gf=Lg.length-1);gf!==-1&&(BL.includes(gf)||gf>=Lg.length||gf<0);)gf+=Ih,gf>=Lg.length&&(gf=-1);L(gf);I()>=0&&(Qa.value.value=n()[I()].text,E(0),T(),Lg=I(),BL=h(),(BL=document.getElementById(MG[Lg][BL]))&&$L()&&(Lg===n().length-1?OU.scrollTop=OU.scrollHeight:BL.scrollIntoView({block:"nearest",inline:"start"})))},Ak=_.T9(function(Lg){if(!(Lg.relatedTarget instanceof Element&&Lg.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var Ih;(Ih=e.focusCallback)==null||Ih.call(e,!0);q()||(eE?OU.hidden=!1:(_.pi(y1.value,"yt-autonav-pause-focus",{}),J(Lg.target.value)))}}),wf=_.T9(function(Lg){if(!(Lg.relatedTarget instanceof Element&&Lg.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var Ih;(Ih=e.focusCallback)==null||Ih.call(e,!1);OU.scrollTop=0;OU.hidden=!0;_.pi(y1.value,"yt-autonav-pause-blur",{})}}),$a=function(Lg){Lg=NJC(Lg);
var Ih;((Ih=MG[I()])==null?0:Ih[h()+Lg])&&E(h()+Lg)},CY=_.T9(function(Lg){var Ih=Lg.keyCode,gf=Lg.target;
qY(!0);switch(Ih){case 13:Lg.preventDefault();var BL;if((BL=MG[I()])==null?0:BL[h()]){var ng;(ng=document.getElementById(MG[I()][h()]))==null||ng.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Lg=Lg.shiftKey?4:3;Ih=Pa;BL=I();Ih.selectedSuggestionIndex=BL;C(gf.value,Lg);break;case 27:OU&&(OU.hidden=!0);break;case 40:ob(Lg,40);break;case 38:ob(Lg,38);break;case 39:$a(39);break;case 37:$a(37);break;case 229:Pa.inputMethodsTracker.add(4);break;default:Pa.inputMethodsTracker.add(1),
ezq(Pa)}return!1}),nv=_.T9(function(Lg){J(Lg.target.value);
T();$L()&&OU&&(OU.scrollTop=0);return!1}),sq=_.T9(function(){Pa.inputMethodsTracker.add(2);
ezq(Pa);return!1});
_.Nm(function(){if(OU){Pa.reset();if(window.ResizeObserver){var Lg=new ResizeObserver(function(){Z()||(OU.style.minWidth=Ha.value.offsetWidth+"px")});
Lg.observe(Ha.value);(new ResizeObserver(function(){Fg()})).observe(OU);
_.BC(function(){Lg.disconnect()})}Q();
window.addEventListener("yt-navigate-finish",Q);window.addEventListener("yt-focus-searchbox",function(){Qa.value.focus()});
var Ih;Jk((Ih=_.j5("SBOX_SETTINGS"))==null?void 0:Ih.HAS_ON_SCREEN_KEYBOARD)}else _.yG(new _.uh("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var k2=_.T9(function(Lg){Lg.preventDefault();C(Qa.value.value,12);return!1}),aM=_.T9(function(Lg){Lg.preventDefault();
var Ih,gf;(Ih=Qa)==null||(gf=Ih.value)==null||gf.focus();var BL,ng;((BL=Qa)==null?void 0:(ng=BL.value)==null?void 0:ng.value)!==""&&(Qa.value.value="",Qa.value.dispatchEvent(new Event("input")));return!1}),jS=_.T9(function(){var Lg=UK$(Qa.value.value,n().filter(function(Ih){return Ih.type!==35}).map(function(Ih){return{label:Ih.text}}));
_.eA(y1.value,"yt-open-popup-action",[{openPopupAction:Lg},document.body]);return!1}),Wl=_.T9(function(){Qa.value.focus();
return!1}),b$=function(Lg,Ih,gf,BL,ng){Pa.selectedSuggestionIndex=gf;
C(Ih,ng?3:1,BL)},wp=function(Lg){Qa.value.value=Lg;
Qa.value.dispatchEvent(new Event("input"));Pa.inputMethodsTracker.add(5);ezq(Pa,!0)},MG=[[]],D0=function(Lg){var Ih="searchbox-suggestion"+_.e_(_.M7);
MG[Lg].push(Ih);return Ih},r9=function(Lg){if(n()){MG=[[]];
for(var Ih=0;Ih<Lg;Ih++)MG.push([])}},Fg=function(){if($L()){var Lg=OU,Ih=Lg.scrollTop;
Lg=Lg.scrollHeight-Lg.clientHeight;lg(Ih>=Lg);Ih=Math.abs(Lg-Ih);Ih<=40?fo(1-(40-Ih)/40):fo(1)}},ML=function(){return"opacity: "+M5()*100+"%"},P1=_.T9(function(){Fg();
return!1}),dL=_.T9(function(){qY(!1);
return!1}),jh,UU={},Uq={},fY={},Oq={};
return _.x("yt-searchbox",{class:_.qT("ytSearchboxComponentHost",(UU.ytSearchboxComponentMweb=!1,UU.ytSearchboxComponentDesktop=!0,UU["yt-searchbox-filled-query"]=function(){return N()},UU["ytd-masthead"]=function(){return!g()},UU.ytSearchboxComponentHostDark=N5,UU)),
role:"search",el:y1,"client-ve-type":10349},_.x("div",{el:Ha,"on:click":Wl,class:_.qT("ytSearchboxComponentInputBox",(Uq.ytSearchboxComponentInputBoxDark=N5,Uq.ytSearchboxComponentInputBoxHasFocus=g,Uq))},_.x("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":k2},_.x(_.l,{cond:g,then:function(){return _.x("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.x(_.mB,{icon:"SEARCH"}))}}),_.x("input",{el:Qa,
class:_.qT("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Ba,"aria-expanded":!((jh=OU)==null?0:jh.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":wf,"on:focus":Ak,"on:input":nv,"on:keydown":CY,"on:paste":sq,placeholder:e.placeholderText,"aria-activedescendant":function(){var Lg;return(Lg=MG[I()])==null?void 0:Lg[h()]},
"aria-autocomplete":"list",role:"combobox"})),_.x(_.l,{cond:a,then:function(){return _.x("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.x(vSv,null))}}),_.x(_.l,{cond:N,
then:function(){return _.x("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.x("button",{class:"ytSearchboxComponentClearButton","on:click":aM,"aria-label":e.clearButtonAriaLabel||Rzq},_.x(_.mB,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.x(_.Sf,{model:{}})))}})),_.x("button",{class:_.qT("ytSearchboxComponentSearchButton",(fY.ytSearchboxComponentSearchButtonDark=N5,fY)),
"on:click":k2,"aria-label":PrC,title:e.placeholderText},_.x(_.mB,{icon:"SEARCH"})),_.x(_.l,{cond:function(){if(kvW()&&_.M("mweb_voice_search")&&e.voiceSearchButton)return e.voiceSearchButton()},
then:function(Lg){var Ih={};return _.x("div",{class:_.qT("ytSearchboxComponentVoiceSearchWrapper",(Ih.ytSearchboxComponentHideVoiceSearchButton=function(){return N()},Ih))},_.x(_.PF,{data:Lg},{buttonRenderer:function(gf){return _.x(_.f9,{data:gf.data,
onButtonClickCallback:function(){}})}}))}}),_.x("div",{el:_.ej(function(Lg){return void(OU=Lg)}),
id:Ba,class:_.qT("ytSearchboxComponentSuggestionsContainer",(Oq.ytSearchboxComponentSuggestionsContainerDark=N5,Oq["yt-searchbox-suggestions-container"]=!1,Oq.ytSearchboxComponentSuggestionsContainerScrollable=$L(),Oq.ytSearchboxComponentSuggestionsContainerAnimated=m,Oq)),"on:scroll":P1,"on:mousemove":dL,role:"listbox",hidden:!0},_.x(_.ui,{each:n},function(Lg,Ih){return _.x(HI5,{suggestion:Lg,isHighlighted:function(){return Ih()===I()},
onClickCallback:b$,onHoverUpdateCallback:function(gf){if(_.M("desktop_enable_single_suggestion_highlight")){var BL=Ih();gf&&(E(0),L(BL))}},
onRemoveCallback:function(gf){WH5(ab);gf===void 0||gf<0||ug().includes(gf)||sE([].concat(_.s_(ug()),[gf]))},
labels:e.labels,queryBuilderFunction:wp,suggestionIndex:Ih,generateUniqueId:D0,highlightedId:function(){var gf;return(gf=MG[I()])==null?void 0:gf[h()]},
useScrollMargin:$L(),isKeyboardMode:w6})}),_.x(_.l,{cond:function(){return!Z()&&n().find(function(Lg){return Lg.type!==35})&&_.M("searchbox_reporting")},
then:function(){return _.x("button",{class:"ytSearchboxComponentReportButton","on:mousedown":jS},_.kk("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.x(_.l,{cond:function(){return!v1()&&$L()},
then:function(){return _.x("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.x("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:ML}))}})))},"Ej");
hzo.idomCompat={callbacks:{focusCallback:!0}};_.KU(hzo,"yt-searchbox",{props:{searchEndpoint:_.vh,placeholderText:_.vh,labels:_.vh,voiceSearchButton:_.vh,focusCallback:_.z9,clearButtonAriaLabel:_.vh,forceDarkMode:_.vh}});var FM=function(){var e=_.V.apply(this,arguments)||this;e.menuButtonTargetId="topbar-guide-menu";e.narrow=!1;e.menuStrings={BACK_ALT_LABEL:_.kk("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.kk("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.kk("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.kk("SBOX_PLACEHOLDER",void 0,"Search")};e.pageDarkTheme=document.documentElement.hasAttribute("dark");e.watchPageScrollTop=0;e.theater=!1;e.fullscreen=!1;e.disableFrostedGlassDuringViewTransition=
!1;e.desktopUnifiedSearchPanelMode=_.M("desktop_enable_unified_search_panel");e.aiCompanionEnabled=_.M("enable_ai_companion");e.ytSearchboxFocused=!1;e.searchboxLabels=_.j5("SBOX_LABELS");e.topbarIsAboveChipbar=!1;e.isDarkThemeForced=!1;e.areGhostCardsHidden=!1;e.guideKeyboardToggle=!1;e.voiceSearchManager=XYY();e.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};e.setYtSearchboxFocused=function(z){e.ytSearchboxFocused=z};
e.toggleFrostedGlassDuringViewTransition=function(z){e.disableFrostedGlassDuringViewTransition=z};
return e};
_.U(FM,_.V);_.Y=FM.prototype;_.Y.computeSimpleText=function(e){return _.Zd(e)};
_.Y.onDarkChanged=function(){for(var e=_.b(this.buttons||[]),z=e.next();!z.done;z=e.next())z.value.isOverlay=!!this.dark;e=_.b(this.buttonRenderers||[]);for(z=e.next();!z.done;z=e.next())z.value.overrides=this.computeButtonOverride()};
_.Y.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.Y.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var e=_.Wc(_.Il(),"aa");_.k$(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||e||(this.isDarkThemeForced=this.dark=!0);this.logoType?(e=this.hostElement.querySelector("#masthead-logo"))&&(_.M("polymer_on_demand_shady_dom")?e.setAttribute("slot","masthead-logo-old"):_.hA(e)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.lE(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.lE(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.Y.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.lE(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.lE(this,this.onSetTheaterModeEnabled))};
_.Y.dataChanged=function(){var e=this.data;e&&(this.voiceEnabled=e.voiceSearchButton?XYY().isSupported():!1,_.ZM(_.p3(),this.menuButtonTargetId,this.guideButton),e.onReceivedActions&&e.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.KK(this.hostElement,e.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&e&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.k$(this.hostElement,"dark",!1),_.k$(this.hostElement,"theater",!1),(e=
this.hostElement.querySelector("#masthead-logo"))&&(_.M("polymer_on_demand_shady_dom")?e.setAttribute("slot","masthead-logo-old"):_.hA(e))))};
_.Y.computeCenterHidden=function(){var e;return this.data&&!((e=this.data.searchbox)==null?0:e.fusionSearchboxRenderer)};
_.Y.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.k$(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.Y.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.Y.onWatchScroll=function(e){this.watchPageScrollTop=e.detail||0;this.updateMastheadBackgroundOpacity()};
_.Y.onFullscreenChangeAction=function(e){e||(this.watchPageScrollTop=0);this.fullscreen=e;this.updateMastheadBackgroundOpacity()};
_.Y.onSetTheaterModeEnabled=function(e){this.theater=e.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.Y.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.Y.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.Y.setBackgroundOpacity=function(e){e=this.calculateBackgroundOpacity(e);this.background.style.opacity=""+e};
_.Y.calculateBackgroundOpacity=function(e){var z=this.theater?.6:0,C=this.hostElement.clientHeight/2;return Math.min(Math.max(e,0),C)/C*(1-z)+z};
_.Y.shouldShowCinematicMastHead=function(){var e=_.M("kevlar_watch_grid")&&!_.M("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(e||this.pageDarkTheme)};
_.Y.focusGuide=function(){this.guideButton.focus()};
_.Y.onGuideToggleTap=function(){_.pi(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.Y.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.Y.onGuideToggleHover=function(){_.pi(this.hostElement,"yt-guide-hover")};
_.Y.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.Y.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.Y.closeOnOutsideClickCondition=function(e){for(e=_.cJ(e);e[0];){var z=e.shift();if(z instanceof Element&&z.id==="kbd")return!1}return!0};
_.Y.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.Y.pausePlayer=function(){var e;(e=_.ox())==null||e.pause();this.pauseMiniplayer()};
_.Y.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var e;(e=_.lh().resolve(_.gh).getPlayerElement())==null||e.pause()}};
_.Y.isMiniplayerActive=function(){return _.lh().resolve(_.gh).isMiniplayerActive()};
_.Y.updateNarrowFromBinding=function(e){this.narrow=e.detail.value};
_.Y.onYtSendFeedbackAction=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.registerWithViewTransitionManager=function(){M1L(_.lh().resolve(_.b_),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.lB.Object.defineProperties(FM.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.M("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var e;return!!(this.aiCompanionEnabled&&((e=this.data)==null?0:e.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var e;return(e=this.data)==null?void 0:e.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
FM.prototype.narrowChanged=FM.prototype.narrowChanged;FM.prototype.onWatchPageChange=FM.prototype.onWatchPageChange;FM.prototype.onRendererStamperFinished=FM.prototype.onRendererStamperFinished;FM.prototype.dataChanged=FM.prototype.dataChanged;FM.prototype.onDarkChanged=FM.prototype.onDarkChanged;_.d([_.W(_.oY),_.B("design:type",Object)],FM.prototype,"ironResizableBehavior",void 0);_.d([_.W(_.MLL),_.B("design:type",Object)],FM.prototype,"ytdExpandableInputBehavior",void 0);
_.d([_.W(_.H$.YtdGuideStateAwareBehavior),_.B("design:type",Object)],FM.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],FM.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],FM.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.QX),_.B("design:type",Object)],FM.prototype,"ytdReduxBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],FM.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],FM.prototype,"narrow",void 0);_.d([_.F(),_.B("design:type",Object)],FM.prototype,"logoType",void 0);_.d([_.F(),_.B("design:type",Boolean)],FM.prototype,"voiceEnabled",void 0);
_.d([_.F(),_.B("design:type",Object)],FM.prototype,"menuStrings",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],FM.prototype,"dark",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],FM.prototype,"pageDarkTheme",void 0);_.d([_.F(),_.B("design:type",Object)],FM.prototype,"watchPageScrollTop",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.S2g}),_.B("design:type",Boolean)],FM.prototype,"isWatchPage",void 0);
_.d([_.F({reflectToAttribute:!0,selector:_.ur1}),_.B("design:type",Boolean)],FM.prototype,"isShortsPage",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],FM.prototype,"theater",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],FM.prototype,"fullscreen",void 0);_.d([_.F({reflectToAttribute:!0,selector:_.NX4}),_.B("design:type",String)],FM.prototype,"frostedGlassMode",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],FM.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],FM.prototype,"aiCompanionEnabled",void 0);_.d([_.F(),_.B("design:type",Object)],FM.prototype,"ytSearchboxFocused",void 0);_.d([_.MH("#buttons > *"),_.B("design:type",Array)],FM.prototype,"buttons",void 0);_.d([_.MH("ytd-button-renderer"),_.B("design:type",Array)],FM.prototype,"buttonRenderers",void 0);
_.d([_.nP("#background"),_.B("design:type",HTMLDivElement)],FM.prototype,"background",void 0);_.d([_.nP("#guide-button"),_.B("design:type",Object)],FM.prototype,"guideButton",void 0);_.d([_.nP("#logo"),_.B("design:type",Object)],FM.prototype,"logo",void 0);_.d([_.F({computed:"computeButtonOverride(dark)"}),_.B("design:type",Object)],FM.prototype,"buttonOverrides",void 0);
_.d([_.Ux("dark"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FM.prototype,"onDarkChanged",null);_.d([_.F({value:function(){return this.onVoiceTap.bind(this)}}),
_.B("design:type",Function)],FM.prototype,"boundOnTapVoiceButton",void 0);_.d([_.F(),_.B("design:type",Object)],FM.prototype,"topbarIsAboveChipbar",void 0);_.d([_.F(),_.B("design:type",String),_.B("design:paramtypes",[])],FM.prototype,"guideIcon",null);_.d([_.P("voiceEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FM.prototype,"shouldShowVoiceSearchButton",null);
_.d([_.P("data.aiCompanionButton","aiCompanionEnabled"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],FM.prototype,"shouldShowAiCompanionButton",null);_.d([_.P("data"),_.B("design:type",Object),_.B("design:paramtypes",[])],FM.prototype,"voiceSearchButton",null);_.d([_.P("aiCompanionEnabled"),_.B("design:type",String),_.B("design:paramtypes",[])],FM.prototype,"narrowQuery",null);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FM.prototype,"dataChanged",null);_.d([_.Qi("yt-rendererstamper-finished"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FM.prototype,"onRendererStamperFinished",null);_.d([_.Ux("isWatchPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FM.prototype,"onWatchPageChange",null);
_.d([_.Ux("narrow"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],FM.prototype,"narrowChanged",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-masthead"})],FM);
_.u(FM,"ytd-masthead",function(){if(T8Y!==void 0)return T8Y;var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return T8Y=e},{mode:_.bA("kevlar_poly_si_batch_j036")?1:2});var OIo;var ESo={},FHq={},VXZ={},fYY={},SlW=(fYY.OFFLINE=(ESo["publicytnetworkstatus-online"]="BACK_ONLINE",ESo),fYY.ONLINE=(FHq["publicytnetworkstatus-offline"]="OFFLINE",FHq),fYY.BACK_ONLINE=(VXZ["publicytnetworkstatus-offline"]="OFFLINE",VXZ.TIMER_TRIGGER="ONLINE",VXZ),fYY),VO=function(){var e=_.V.apply(this,arguments)||this;e.currentState="ONLINE";e.scheduledJobId=0;e.bannerString="";e.bannerVe=null;e.networkStatusManagerInstance=new _.bk;return e};
_.U(VO,_.V);_.Y=VO.prototype;_.Y.attached=function(){var e=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){e.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){e.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Y.detached=function(){var e=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){e.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){e.stateChangeHandler("publicytnetworkstatus-offline")})};
_.Y.enterState=function(e){var z=this;this.scheduledJobId&&_.c5.cancelJob(this.scheduledJobId);e==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):e==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.kk("NO_INTERNET_CONNECTION",void 0,"No internet connection")):e==="BACK_ONLINE"&&(this.bannerString=_.kk("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Dz(_.c5,function(){z.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=e};
_.Y.stateChangeHandler=function(e){(e=SlW[this.currentState][e])&&this.enterState(e)};
_.Y.logVisibility=function(e){var z=_.Pr();this.createBannerVe(e);z&&this.bannerVe&&(e?_.Bf(z,[this.bannerVe]):_.tg(z,[this.bannerVe]))};
_.Y.createBannerVe=function(e){!this.bannerVe&&e&&(this.bannerVe=_.mT(37929),_.c7(_.nm(),this.bannerVe))};
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",String)],VO.prototype,"currentState",void 0);_.d([_.F(),_.B("design:type",Object)],VO.prototype,"scheduledJobId",void 0);_.d([_.F(),_.B("design:type",Object)],VO.prototype,"bannerString",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-network-status-banner"})],VO);
_.u(VO,"ytd-network-status-banner",function(){if(OIo!==void 0)return OIo;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return OIo=
e},{mode:1});var uTC;var fO=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};e.hidden=!0;e.frostedGlass=_.M("web_frosted_glass");return e};
_.U(fO,_.V);fO.prototype.computeHidden=function(e){return e&&e.status?!1:!0};
fO.prototype.handleUpdatePermissionRoleCommand=function(e){if(e=_.r(e,_.yYT))if(e=_.r(e.renderer,_.jQX))this.data=e};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],fO.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],fO.prototype,"componentBehavior",void 0);_.d([_.F({value:!0,computed:"computeHidden(data)"}),_.B("design:type",Object)],fO.prototype,"hidden",void 0);_.d([_.F(),_.B("design:type",Object)],fO.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],fO.prototype,"frostedGlass",void 0);
_.d([_.SL({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],fO);
_.u(fO,"ytd-permission-role-bottom-bar-renderer",function(){if(uTC!==void 0)return uTC;var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);return uTC=e},{mode:1});var dya;var DyC;var s8f={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var S9=function(){return _.V.apply(this,arguments)||this};
_.U(S9,_.V);_.Y=S9.prototype;_.Y.attached=function(){this.JSC$21270_scroller&&(this.JSC$21270_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21270_scroller.attached&&typeof this.JSC$21270_scroller.attached==="function"&&this.JSC$21270_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(C){C.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var e=_.XC(this.hostElement);e.querySelector("tp-yt-paper-radio-group").selected="";var z=e.querySelector("#reason-text");z&&(z.value="");e.querySelector("#description-text").value=""}};
_.Y.canSubmit=function(e,z){_.pi(this.hostElement,"yt-invalidate-popup-tabbables");return!(e&&z)};
_.Y.onCancel=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.Y.onSubmit=function(){var e=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(G){return G.active}).map(function(G){return G.innerText.trim()}),z=this.hostElement.querySelector("tp-yt-paper-radio-group"),C=z.selectedItem,w=C.name;
C=C.innerText.trim();var K=z.querySelector("#reason-text");z=void 0;K&&(z=K.value);(K=this.descriptionText.value)&&(K=K.trim());BJv(this.data.searchQuery,e,w,C,K,z);_.eA(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.Y.sendFormSubmitToast=function(){var e=_.wP(_.kk("SBOX_INAPPROPRIATE_TOAST"));_.eA(this.hostElement,"yt-open-popup-action",[e,this])};
_.Y.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(e){return e.active})};
_.Y.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
S9.prototype.onIronSelect=S9.prototype.onIronSelect;S9.prototype.onIronChange=S9.prototype.onIronChange;S9.prototype.dataChanged=S9.prototype.dataChanged;_.d([_.F(),_.B("design:type",Object)],S9.prototype,"data",void 0);_.d([_.F({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.B("design:type",Boolean)],S9.prototype,"submitDisabled",void 0);_.d([_.F(),_.B("design:type",Boolean)],S9.prototype,"suggestionSelected",void 0);
_.d([_.F(),_.B("design:type",Boolean)],S9.prototype,"catagorySelected",void 0);_.d([_.nP("#scroller"),_.B("design:type",Object)],S9.prototype,"JSC$21270_scroller",void 0);_.d([_.nP("#description-text"),_.B("design:type",Object)],S9.prototype,"descriptionText",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S9.prototype,"dataChanged",null);
_.d([_.Qi("iron-change"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S9.prototype,"onIronChange",null);_.d([_.Qi("iron-select"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],S9.prototype,"onIronSelect",null);_.d([_.SL({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],S9);
_.u(S9,"ytd-search-suggestion-report-dialog",function(){if(DyC!==void 0)return DyC;var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return DyC=e},{mode:1});var uj=function(e){var z=e.openPopupAction;var C=e.target;var w=e.container;var K=e.popupContainerConfig;var G=e.getElement;e=e.removeWhenClosed===void 0?!1:e.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=z;this.target=C;this.container=w;this.popupContainerConfig=K;this.getElement=G;this.JSC$21276_popupConfig=this.popupContainerConfig.JSC$20442_popupConfig[this.openPopupAction.popupType];this.rendererName=(z=this.getName())?_.qz4(z,D7a(this.popupContainerConfig,
z)):"";_.M("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=e);this.createPopup()};
uj.prototype.updatePopup=function(e){this.openPopupAction=e;this.JSC$21276_popupConfig=this.popupContainerConfig.JSC$20442_popupConfig[this.openPopupAction.popupType];iIv(this);_.M("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
uj.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var B8a=function(e,z,C){(z=z&&e.JSC$21276_popupConfig.narrowProperties?e.JSC$21276_popupConfig.narrowProperties:e.JSC$21276_popupConfig.properties)&&C!==void 0&&(z.isAriaModal=C);N8l(e,z);e.isRtl()&&N8l(e,e.JSC$21276_popupConfig.rtlProperties);sLL(e)};
uj.prototype.createPopup=function(){var e=this.JSC$21276_popupConfig.component;if(this.popupContent=tXE(this,this.rendererName)){if(e){this.popup=tXE(this,e);var z=this.popupContent;_.M("web_enable_wrapper_for_cow_component_in_popup")&&(z=document.createElement("div"),z.appendChild(this.popupContent));_.M("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21276_popupConfig.slotName&&z.setAttribute("slot",this.JSC$21276_popupConfig.slotName);e=this.popup;var C=this.container.tagName.toLowerCase();
_.o3("desktop_web_boolean_flag_with_counterfactual_study");var w=_.pW(z);_.YdE(_.z8(e),_.G8(z,C,w));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.M("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.XC(this.container).appendChild(this.popup)}};
var iIv=function(e){var z,C,w=(z=e.openPopupAction.accessibilityData)==null?void 0:(C=z.accessibilityData)==null?void 0:C.label;w&&(e.popup.ariaLabel=w);var K;((K=e.popupContent.polymerController)!=null?K:e.popupContent).data=(0,_.de.unsafeClone)(e.openPopupAction.popup[e.getName()]);e.popupContent.duration=gSq(e);e.popupContent.positionType=e.openPopupAction.position;var G=e.openPopupAction.properties;G&&Object.keys(G).forEach(function(X){e.popupContent[X]=G[X]})},N8l=function(e,z){if(z)for(var C=
_.b(Object.keys(z)),w=C.next();!w.done;w=C.next())w=w.value,e.popup[w]=z[w]},sLL=function(e){if(e.openPopupAction.position){var z=e.JSC$21276_popupConfig.positionalProperties&&e.JSC$21276_popupConfig.positionalProperties[e.openPopupAction.position],C=e.JSC$21276_popupConfig.rtlPositionalProperties&&e.JSC$21276_popupConfig.rtlPositionalProperties[e.openPopupAction.position];
z=e.isRtl()&&C?C:z;z.shiftedHorizontalOffset&&(C=e.popup.style.display,e.popup.style.display="block",e.popupContent&&e.popup.positionTarget&&e.popupContent.clientWidth>e.popup.positionTarget.clientWidth&&(z.horizontalOffset=e.popup.positionTarget.clientWidth/2-z.shiftedHorizontalOffset),e.popup.style.display=C);N8l(e,z)}},jLo=function(e,z,C){if(z){for(var w=_.b(Object.keys(z)),K=w.next();!K.done;K=w.next())K=K.value,e.popup.style[K]=z[K];
if(C)for(z=_.b(Object.keys(C)),w=z.next();!w.done;w=z.next())w=w.value,e.popup.style[w]=C[w]}};
uj.prototype.getName=function(){return _.BR(this.openPopupAction.popup,"renderer")||_.BR(this.openPopupAction.popup,"dialog")||_.BR(this.openPopupAction.popup,"model")||void 0};
var gSq=function(e){e=e.openPopupAction.durationHintMs;return e===0?e:Math.max(4E3,e||4E3)};
uj.prototype.isRtl=function(){return _.j5("HTML_DIR")==="rtl"};
var tXE=function(e,z){e=e.getElement(z,e.target);e==null&&_.AX(new _.uh("popup getElement returned null",z));return e};var yjo={};
yjo.YtPopupContainerBehavior=[_.Q5.YtComponentBehavior,_.ch.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Aw(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.ZP(this.hostElement)},
closePopup:function(e){var z=this.createCacheKey(void 0,e);this.popups_[z]&&this.handleClosePopupAction_(void 0,e)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.c5.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.c5.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(e){e.opened&&e.keepBelowPlayer&&this.ensurePopupBelowPlayer(e)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var e in this.popups_){var z=this.popups_[e];if(z.popup.scrollAction==="refit"){var C=z.popup.positionTarget.getBoundingClientRect(),w=z.popup;C=C.top;var K=z;if(!K.naturalHeight){K.popup.hidden=!1;K.popup.style.position="fixed";K.popup.style.top="0px";K.popup.style.left="0px";var G=K.popup.getBoundingClientRect();K.naturalHeight=G.bottom-G.top;K.popup.refit()}w.hidden=!(C>=K.naturalHeight+60);z.popupContent.clientHeight===0&&z.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(e){this.popupContainerConfig=e},
handleOpenPopupAction:function(e,z,C){var w=e.openPopupAction,K=_.lh().resolve(_.$B(_.h$))&&w.popupType==="TOAST";K&&!w.uniqueId&&(w.uniqueId=_.yR());if(!_.M("popup_container_parent_target_killswitch")){var G;z=(G=this.getParentTarget(z))!=null?G:z}var X=this.ensurePopup_(w,z);return new _.RC(function(J){X.then(function(q){if(!q)return J();this.maybeCreateNarrowMediaQuery_();var T=this.createCacheKey(q.rendererName,q.openPopupAction.uniqueId);if(w.showOncePerUniqueId){if(this.shownPopupKeys_.has(T))return J();
this.shownPopupKeys_.add(T)}T=this.popups_[T];var Q=!(!T||!T.openPopupAction.beReused);Q=!!w.reusePopup||Q;if(q.popup.opened&&!Q){K&&!q.openPopupAction.replacePopup||this.handleClosePopupAction_(q.rendererName,q.openPopupAction.uniqueId);Q=w.popupType==="DIALOG"&&!_.M("popup_container_dialog_reopen_killswitch");if(!K&&!Q&&T&&T.target==z&&(_.M("popup_container_event_target_check_killswitch")||T.target==C)&&!q.openPopupAction.replacePopup)return J();_.T0(q.popup,function(){this.completeOpenPopupAction_(w,
z,q);J()}.bind(this))}else q.popup.opened?q.updatePopup(w):this.completeOpenPopupAction_(w,z,q),J()}.bind(this))}.bind(this))},
getParentTarget:function(e){if(e&&e instanceof HTMLElement)for(var z=_.b(Object.entries(this.popups_)),C=z.next();!C.done;C=z.next())if(C=_.b(C.value),C.next(),C=C.next().value,this.popupClosesOnClick(C)&&C.popup.contains(e))return C.target},
popupClosesOnClick:function(e){return e.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(e.rendererName.toUpperCase())},
completeOpenPopupAction_:function(e,z,C){C.updatePopup(e);var w=this.narrowMediaQuery_.queryMatches,K=this.isAriaModal;e=this.expandToFullWidth;C.target=z;var G;z=((G=C.target.polymerController)!=null?G:C.target).popupPositionTarget||C.target;C.JSC$21276_popupConfig.targetContainer&&(z=C.container);C.popup.positionTarget=z;C.popupContent.positionTarget=z;sLL(C);C.JSC$21276_popupConfig.forceFocus&&(C.popupContent.style.outline="none");C.popupContent.tabIndex=-1;C.JSC$21276_popupConfig.narrowProperties&&
(C.popup.style.position="static");C.JSC$21276_popupConfig.preventAutonav&&C.popup.setAttribute("prevent-autonav",!0);C.JSC$21276_popupConfig.forceCloseOnOutsideClick&&C.popup.setAttribute("force-close-on-outside-click",!0);B8a(C,w,K);G={};G.width=e?"100%":"";jLo(C,C.JSC$21276_popupConfig.styles,G);C.isRtl()&&jLo(C,C.JSC$21276_popupConfig.rtlStyles,G);if(!C.openPopupAction.shouldStopParentSignal){var X;e=(X=C.target.polymerController)!=null?X:C.target;(C.popupContent.startForwardingEvents||C.popupContainerConfig.forwardingEnabledPopups.has(C.rendererName))&&
e.parentComponent!==C.popupContent&&C.popupContent!==C.target&&C.target!==document.body&&(C.popupContent.startForwardingEvents?C.popupContent.startForwardingEvents(C.popupContainerConfig.forwardedEvents,C.target):(C.JSC$21276_eventForwarder||(C.JSC$21276_eventForwarder=new _.mU(C.popupContent)),C.JSC$21276_eventForwarder.start(C.popupContainerConfig.forwardedEvents,C.target)))}C=C.popup;C.addEventListener("iron-overlay-opened",_.lE(this,this.onPopupIronOverlayOpened_));C.addEventListener("iron-overlay-closed",
_.lE(this,this.onPopupIronOverlayClosed_));C.addEventListener("iron-overlay-canceled",_.lE(this,this.onPopupIronOverlayCanceled_));C.addEventListener("yt-refit",_.lE(this,this.refitPopup_));C.addEventListener("yt-invalidate-popup-tabbables",_.lE(this,this.handleInvalidatePopupTabbables_));C.open()},
getPopupDurationMs_:function(e){return e.durationHintMs===0?e.durationHintMs:Math.max(4E3,e.durationHintMs||4E3)},
handleClosePopupAction_:function(e,z){var C=_.M("web_popup_cache_key_killswitch")||!!z;if(e||C){var w=this.createCacheKey(e,z);e=(e=this.popups_[w])&&e.popup}else e=_.pTs(_.aY);if(e&&e.close){if(z=_.lh().resolve(_.$B(_.V5)))e.restoreFocusOnClose=z.isKeyBoardInUse();if(e&&e.positionTarget&&!_.M("ytpopup_close_sibling_popups_killswitch")){z=_.b(Object.entries(this.popups_));for(C=z.next();!C.done;C=z.next()){var K=_.b(C.value);C=K.next().value;K=K.next().value;if(e.positionTarget==K.popupContent.positionTarget&&
K.popup&&K.popup.checkVisibility()){var G=void 0;(G=K.popup)==null||G.close();this.removePopup_(K.popup,C)}}e&&this.popups_[w]&&(e.close(),this.removePopup_(e,w))}else e.close(),this.removePopup_(e,w)}},
handleClosePopupCommand_:function(e){e.closePopupCommand&&e.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,e.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(e){var z={},C;for(C in this.popups_)if(z={key$jscomp$1233:z.key$jscomp$1233},z.key$jscomp$1233=C,!e||!e.some(function(G){return function(X){return X==G.key$jscomp$1233}}(z))){var w=this.popups_[z.key$jscomp$1233],K=w.popup;
_.lh().resolve(_.$B(_.h$))&&w.openPopupAction.popupType==="TOAST"||(K&&K.close&&K.close(),this.removePopup_(K,z.key$jscomp$1233))}},
handleClosePopupsAction_:function(e){e.forEach(function(z){var C=this.popups_[z];C&&((C=C.popup)&&C.close&&C.close(),this.removePopup_(C,z))}.bind(this))},
handleGetPopupOpenedAction_:function(e,z){return(z=this.createCacheKey(e,z))&&this.popups_[z]?this.popups_[e].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var e=[],z;for(z in this.popups_){var C=this.popups_[z];C.popup.opened&&e.push(C)}return e},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(e,z){_.M("ytpopup_disable_default_html_caching")&&e&&e.removeWhenClosed&&(_.XC(this.hostElement).removeChild(e),z&&this.popups_[z]&&delete this.popups_[z])},
shouldReusePopup_:function(e){return!(!e||!e.reusePopup)||!(!e||!e.beReused)},
ensurePopup_:function(e,z){this.maybeCreateNarrowMediaQuery_();var C=_.BR(e.popup,"renderer")||_.BR(e.popup,"dialog")||_.BR(e.popup,"model");if(!C)return _.oS();C=_.qz4(C,D7a(this.popupContainerConfig,C));return _.oS(this.getAndMaybeCreatePopup_(e,C,z))},
getAndMaybeCreatePopup_:function(e,z,C){var w=this.createCacheKey(z,e.uniqueId);if(this.popups_[w])return this.popups_[w];e=new uj({openPopupAction:e,target:C,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(z)});return this.popups_[w]=e},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(e){return _.M("ytpopup_disable_default_html_caching")?_.M("ytpopup_disable_cache_allowlist")?e&&this.doNotCacheList_.includes(e):e&&e.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",_.lE(this,this.openPopupQueryMatchesChanged_)),_.XC(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(e){e=e.detail.value;for(var z in this.popups_)B8a(this.popups_[z],e)},
onPopupIronOverlayClosed_:function(e){var z=e.currentTarget,C=_.Wqg(z);C=C.length>0?C[0]:z;if(C.is!=="ytd-reel-watch-while-dialog-renderer"||e.target.is!=="tp-yt-iron-dropdown"){e.detail.popup=z;e.detail.popupRenderer=C;var w,K={context:{openingElement:((w=this.popups_[(C==null?void 0:C.is)||""])==null?void 0:w.target)||void 0}};Object.assign(K,e.detail);var G;_.pi((G=C.hostElement)!=null?G:C,"yt-popup-closed",K);z.removeEventListener("yt-refit",_.lE(this,this.refitPopup_));z.removeEventListener("yt-invalidate-popup-tabbables",
_.lE(this,this.handleInvalidatePopupTabbables_));z.removeEventListener("iron-overlay-canceled",_.lE(this,this.onPopupIronOverlayCanceled_));z.removeEventListener("iron-overlay-closed",_.lE(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(z)}},
onPopupIronOverlayCanceled_:function(e,z){var C=e.currentTarget,w=_.Wqg(C);w=w.length>0?w[0]:C;if(w.is!=="ytd-reel-watch-while-dialog-renderer"||e.target.is!=="tp-yt-iron-dropdown"){var K;_.pi((K=w.hostElement)!=null?K:w,"yt-popup-canceled",e.detail);K=z?_.cJ(z):null;(!z||["click","tap"].includes(z.type))&&!C.hasAttribute("force-close-on-outside-click")&&C.positionTarget&&K&&K.includes(C.positionTarget)&&e.preventDefault();C.restoreFocusOnClose=_.cv.keyboardEventMatchesKeys(z,"esc")}},
onPopupIronOverlayOpened_:function(e){e=e.currentTarget;var z=_.Wqg(e);z=z.length>0?z[0]:e;var C,w;_.pi((C=z.hostElement)!=null?C:z,"yt-popup-opened",(w=z.hostElement)!=null?w:z);e.keepBelowPlayer&&(this.ensurePopupBelowPlayer(e,!0),this.dynamicallyPositionedElements_.add(e));C=_.lh().resolve(_.$B(_.V5));w=!!z.querySelector("#toast");C&&C.isKeyBoardInUse()&&!w&&(typeof z.focusFirstItem==="function"?z.focusFirstItem():(z=_.cLY(e),z.length&&z[0].focus()));e.removeEventListener("iron-overlay-opened",
_.lE(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(e){e=e.currentTarget;e.refit&&e.refit()},
refitPopups_:function(){for(var e in this.popups_)this.popups_[e].refit()},
handleInvalidatePopupTabbables_:function(e){e=e.currentTarget;e.invalidateTabbables&&e.invalidateTabbables()},
createCacheKey:function(e,z){return _.M("web_popup_cache_key_killswitch")?z?e+"#"+z:e:z?"#"+z:e},
openSheet:function(e,z,C){var w=e==null?void 0:e.openPopupActionCommand;if(!w&&(e==null?0:e.viewModel)){if(e.sheetPosition)a:switch(e.sheetPosition){case "SHEET_POSITION_RIGHT":w="OPEN_POPUP_POSITION_RIGHT";break a;default:w="OPEN_POPUP_POSITION_UNKNOWN"}else w=void 0;w={openPopupAction:{popup:{sheetViewModel:e.viewModel},popupType:"CONTEXTUAL_SHEET",position:w}}}if(w){var K;this.expandToFullWidth=(K=e==null?void 0:e.expandToFullWidth)!=null?K:!1;this.handleOpenPopupAction(w,z,C===void 0?z:C)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var e=this;return _.k(function(z){return z.return(e.handleGetOpenedPopupsAction_().filter(function(C){var w;return((w=C.openPopupAction)==null?void 0:w.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(e,z,C){if(_.M("web_dialog_utils_killswitch")){var w=e==null?void 0:e.openPopupActionCommand,K=(C==null?0:C.ariaLabel)?{accessibilityData:{accessibilityData:{label:C.ariaLabel}}}:void 0;!w&&(e==null?0:e.viewModel)&&(w={openPopupAction:Object.assign({},{popup:{dialogViewModel:e.viewModel},popupType:(C==null?0:C.isModal)?"MODAL":"DIALOG"},K&&K)});w&&this.handleOpenPopupAction(w,z)}else{if(K=e==null?void 0:e.viewModel){var G=C=C===void 0?{}:C;C=G.ariaLabel;K={popup:{dialogViewModel:K},
popupType:G.isModal?"MODAL":"DIALOG"};G={accessibilityData:{label:C}};C&&(K.accessibilityData=G);K={openPopupAction:K}}else K=void 0;if(K=(w=K)!=null?w:e==null?void 0:e.openPopupActionCommand)this.isAriaModal=_.M("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(K,z)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var e=this;return _.k(function(z){return z.return(e.handleGetOpenedPopupsAction_().filter(function(C){var w;return((w=C.openPopupAction)==null?void 0:w.popupType)==="DIALOG"}).length>0)})}}];var cj$;var AjW;var ZIl=_.Kb(["about:blank"]),dd=function(){var e=_.V.apply(this,arguments)||this;e.isMuted=!1;e.pageLoadTimeoutId=void 0;e.enableA11yFocusFix=_.M("enable_a11y_focus_fix_for_mac_panel_on_desktop");e.moveFocusToContent=function(){e.iframe.focus()};
return e};
_.U(dd,_.V);_.Y=dd.prototype;_.Y.dataChanged=function(){var e=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var z=this.data.url,C=_.Af(z);_.M("enable_yt_ata_iframe_authuser")?(C=_.Af(z),_.Cq(this.iframe,t2Y(C))):_.Cq(this.iframe,C);this.pageLoadTimeoutId=_.Dz(_.So(),function(){return void e.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.a8({destination:window,iframe:this.iframe,origin:_.T9U(C.toString()),channelName:"ataiframe",onMessage:_.MgC(MG5,function(w){rBf(w.data)?(w=_.cl(w.data,1,_.YZ,_.T5()),w.length!==1?_.AX(Error("Nl")):(w=w[0],w===3?(e.isMuted=!0,e.logStateChanged({adMuteRequested:!0})):w===1&&e.close())):_.AX(Error("Ol"))}),
onEstablished:function(){e.cancelPageLoadTimeout();e.logStateChanged({pageLoadSucceeded:!0})}})}};
_.Y.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.So().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.Y.logStateChanged=function(e){var z;if((z=this.data)==null?0:z.trackingParams)e={adsClientData:{aboutThisAdData:e}},_.nm().stateChanged(this.data.trackingParams,e)};
_.Y.close=function(){_.eA(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.handlesPopupClosed=function(e,z){var C=this,w,K;return _.k(function(G){if(G.nextAddress==1)return _.j5("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.eA(C.hostElement,"on-about-this-ad-popup-closed",[C.isMuted,z]),G.jumpTo(0)):e&&glY(e)?G.yield(j8Z(e),4):(C.isMuted&&_.eA(C.hostElement,"yt-mute-ad-action",[C.is,C]),G.jumpTo(0));if(w=G.yieldResult){var X=K=new _.lc(w),J=C.isMuted;X.getOptions().includes("onAboutThisAdPopupClosed")?_.R1a(X,"onAboutThisAdPopupClosed",{isMuted:J,layoutId:z}):_.Am("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.E_(G)})};
_.Y.onPopupClosed=function(e){var z=this,C,w;return _.k(function(K){C=_.nJ(ZIl);_.Cq(z.iframe,C);z.cancelPageLoadTimeout();if(!z.data)return K.jumpTo(0);z.ytRendererBehavior.markDirty();w=e.detail.context.openingElement;return K.yield(z.handlesPopupClosed(w,z.data.layoutId),0)})};
_.Y.detached=function(){this.cancelPageLoadTimeout()};
_.Y.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dd.prototype.onPopupClosed=dd.prototype.onPopupClosed;dd.prototype.dataChanged=dd.prototype.dataChanged;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.d([_.nP("#iframe"),_.B("design:type",HTMLIFrameElement)],dd.prototype,"iframe",void 0);_.d([_.F(),_.B("design:type",Object)],dd.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],dd.prototype,"dataChanged",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype",Promise)],dd.prototype,"onPopupClosed",null);_.d([_.fP({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],dd);
_.u(dd,"yt-about-this-ad-renderer",function(){if(AjW===void 0){var e=document.createElement("template");_.v(e,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;cj$===void 0&&(cj$=document.createElement("template"));var w=cj$;C.call(z,w.content.cloneNode(!0),e.content.firstChild);AjW=e}e=AjW;return e},{mode:2});var p6W;var eIv;var zIa=function(e){var z=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=z.message;"stack"in z&&(this.stack=z.stack);this.maxFileSizeMB=e;Object.setPrototypeOf(this,zIa.prototype)};
_.U(zIa,Error);var CqY=function(e,z){var C=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=C.message;"stack"in C&&(this.stack=C.stack);this.minWidth=e;this.minHeight=z;Object.setPrototypeOf(this,CqY.prototype)};
_.U(CqY,Error);var wyY=function(e){this.requirements=e;this.JSC$21304_maxFileSize=e.maxFileSizeMB*1024*1024},KGv=function(e,z){if(z.size>e.JSC$21304_maxFileSize)throw new zIa(e.requirements.maxFileSizeMB);
};var oHl=function(e,z){this.canvas=e;this.imageEditorBuilder=z};
oHl.prototype.addEventListeners=function(e){var z=function(K){GG$(e,K)};
this.JSC$21310_mouseDownEvent=z;var C=function(K){YI3(e,K)};
this.JSC$21310_mouseMoveEvent=C;var w=function(){b_b(e)};
this.JSC$21310_mouseUpEvent=w;this.canvas.addEventListener("mousedown",z);this.canvas.addEventListener("mousemove",C);document.addEventListener("mouseup",w)};
oHl.prototype.removeEventListeners=function(){this.JSC$21310_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21310_mouseDownEvent);this.JSC$21310_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21310_mouseMoveEvent);this.JSC$21310_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21310_mouseUpEvent)};
var XyE=function(e,z){e.removeEventListeners();return new Promise(function(C){var w=new Image;w.crossOrigin="anonymous";w.onload=function(){var K=e.imageEditorBuilder(e.canvas,w);e.addEventListeners(K);C(K)};
w.src=z})},DX=function(e,z,C,w,K,G,X,J){this.canvas=e;
this.image=z;this.requiredRatio=C;this.minImageCropDimension=w;this.minOutputImageResolution=K;this.component=G;this.styleFocusedCorner=J===void 0?!0:J;this.action=2;this.focusedCorner=this.resizeCorner=0;e=this.canvas.getContext("2d");if(!e)throw Error("Pl");this.ctx=e;this.canvasMargin=X!=null?X:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;X=this.image;e=this.canvasInnerWidth/X.width;X.height*e>912&&(e=X.width/X.height*912/X.width);X=e;this.scaledImageWidth=this.canvas.width%2?
cLa(this.image.width*X):yL3(this.image.width*X);this.scaledImageHeight=Math.round(this.image.height*X);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21313_overlayMarginBottom=this.JSC$21313_overlayMarginTop=this.canvasMargin;this.JSC$21313_overlayMarginRight=this.JSC$21313_overlayMarginLeft=this.horizontalMargin;this.JSC$21313_overlayWidth=this.scaledImageWidth;this.JSC$21313_overlayHeight=this.scaledImageHeight;
e=this.image.width/this.image.height;e>this.requiredRatio?(this.JSC$21313_overlayWidth=this.canvas.width%2?cLa(this.scaledImageHeight*this.requiredRatio):yL3(this.scaledImageHeight*this.requiredRatio),this.JSC$21313_overlayMarginRight=this.JSC$21313_overlayMarginLeft=(this.canvas.width-this.JSC$21313_overlayWidth)/2):e<this.requiredRatio&&(this.JSC$21313_overlayHeight=this.canvas.height%2?cLa(this.scaledImageWidth/this.requiredRatio):yL3(this.scaledImageWidth/this.requiredRatio),this.JSC$21313_overlayMarginBottom=
this.JSC$21313_overlayMarginTop=(this.canvas.height-this.JSC$21313_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*X,this.scaledImageWidth);J$E(this)};
DX.prototype.getContext=function(){return this.ctx};
var GG$=function(e,z){z={x:Math.round(z.pageX-e.canvas.getBoundingClientRect().left),y:Math.round(z.pageY-e.canvas.getBoundingClientRect().top)};e.dragStart=z;kGY(e,z)!==0?(e.action=1,qIq(e,z),e.resizeCorner=kGY(e,z)):z.x>e.JSC$21313_overlayMarginLeft&&z.x<e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth&&z.y>e.JSC$21313_overlayMarginTop&&z.y<e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight&&(e.action=0)},x8o=function(e,z){switch(z){case 1:return{x:e.JSC$21313_overlayMarginLeft,
y:e.JSC$21313_overlayMarginTop};case 2:return{x:e.JSC$21313_overlayMarginLeft,y:e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight};case 3:return{x:e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth,y:e.JSC$21313_overlayMarginTop};case 4:return{x:e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth,y:e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight};default:throw Error("Ql");}},$8$=function(e,z){if(e.focusedCorner!==0){e.dragStart=x8o(e,e.focusedCorner);
e.action=1;e.resizeCorner=e.focusedCorner;var C=e.dragStart.x,w=e.dragStart.y;switch(z){case 0:e.focusedCorner===1||e.focusedCorner===4?(C-=10,w-=10):(C-=10,w+=10);break;case 1:e.focusedCorner===1||e.focusedCorner===4?(C+=10,w+=10):(C+=10,w-=10);break;case 2:C=e.focusedCorner===1||e.focusedCorner===4?C-10:C+10;w-=10;break;case 3:C=e.focusedCorner===1||e.focusedCorner===4?C+10:C-10;w+=10;break;default:throw Error("Rl");}T7L(e,{x:C,y:w});J$E(e);e.action=2;e.dragStart=void 0}},YI3=function(e,z){z={x:Math.round(z.pageX-
e.canvas.getBoundingClientRect().left),
y:Math.round(z.pageY-e.canvas.getBoundingClientRect().top)};qIq(e,z);switch(e.action){case 1:T7L(e,z);break;case 0:e.dragStart&&(e.JSC$21313_overlayMarginLeft=Math.max(e.horizontalMargin,Math.min(e.JSC$21313_overlayMarginLeft-(e.dragStart.x-z.x),e.horizontalMargin+e.scaledImageWidth-e.JSC$21313_overlayWidth)),e.JSC$21313_overlayMarginRight=e.canvas.width-e.JSC$21313_overlayMarginLeft-e.JSC$21313_overlayWidth,e.JSC$21313_overlayMarginTop=Math.max(e.canvasMargin,Math.min(e.JSC$21313_overlayMarginTop-
(e.dragStart.y-z.y),e.scaledImageHeight-e.JSC$21313_overlayHeight+e.canvasMargin)),e.JSC$21313_overlayMarginBottom=e.canvas.height-(e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight));break;default:return}J$E(e);e.dragStart=z},b_b=function(e){e.action=2;
e.dragStart=void 0;document.body.style.cursor="auto"},qIq=function(e,z){switch(kGY(e,z)){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:e.action!==1&&(document.body.style.cursor="auto")}},kGY=function(e,z){var C=e.JSC$21313_overlayMarginLeft-5,w=e.JSC$21313_overlayMarginTop-5,K=e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth-5;
e=e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight-5;return lUf(z,{x:C,y:w})?1:lUf(z,{x:K,y:w})?3:lUf(z,{x:C,y:e})?2:lUf(z,{x:K,y:e})?4:0},lUf=function(e,z){return e.x>=z.x&&e.x<=z.x+10&&e.y>=z.y&&e.y<=z.y+10},T7L=function(e,z){if(e.dragStart)switch(e.resizeCorner){case 2:Math.abs((e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth-z.x)/(z.y-e.JSC$21313_overlayMarginTop))>=e.requiredRatio?QHY(e,z.x):m8v(e,z.y);
break;case 1:Math.abs((e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth-z.x)/(e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight-z.y))>=e.requiredRatio?aUW(e,z.x):m8v(e,z.y);break;case 4:Math.abs((z.x-e.JSC$21313_overlayMarginLeft)/(z.y-e.JSC$21313_overlayMarginTop))>=e.requiredRatio?QHY(e,z.x):nH$(e,z.y);break;case 3:Math.abs((z.x-e.JSC$21313_overlayMarginLeft)/(e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight-z.y))>=e.requiredRatio?aUW(e,z.x):nH$(e,z.y);break;default:throw Error("Sl");
}},QHY=function(e,z){var C=e.JSC$21313_overlayMarginTop;
e.JSC$21313_overlayMarginBottom=MbE(e,z);e.JSC$21313_overlayHeight=e.canvas.height-e.JSC$21313_overlayMarginBottom-C;e.JSC$21313_overlayWidth=Math.round(e.JSC$21313_overlayHeight*e.requiredRatio);r$$(e)},aUW=function(e,z){var C=e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight;
e.JSC$21313_overlayMarginTop=MbE(e,z);e.JSC$21313_overlayHeight=C-e.JSC$21313_overlayMarginTop;e.JSC$21313_overlayWidth=Math.round(e.JSC$21313_overlayHeight*e.requiredRatio);r$$(e)},r$$=function(e){switch(e.resizeCorner){case 2:case 1:e.JSC$21313_overlayMarginLeft=e.canvas.width-e.JSC$21313_overlayMarginRight-e.JSC$21313_overlayWidth;
break;case 4:case 3:e.JSC$21313_overlayMarginRight=e.canvas.width-e.JSC$21313_overlayMarginLeft-e.JSC$21313_overlayWidth;break;default:throw Error("Sl");}},m8v=function(e,z){var C=e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth;
e.JSC$21313_overlayMarginLeft=H_E(e,z);e.JSC$21313_overlayWidth=C-e.JSC$21313_overlayMarginLeft;e.JSC$21313_overlayHeight=Math.round(e.JSC$21313_overlayWidth/e.requiredRatio);U8l(e)},nH$=function(e,z){var C=e.JSC$21313_overlayMarginLeft;
e.JSC$21313_overlayMarginRight=H_E(e,z);e.JSC$21313_overlayWidth=e.canvas.width-e.JSC$21313_overlayMarginRight-C;e.JSC$21313_overlayHeight=Math.round(e.JSC$21313_overlayWidth/e.requiredRatio);U8l(e)},U8l=function(e){switch(e.resizeCorner){case 2:case 4:e.JSC$21313_overlayMarginBottom=e.canvas.height-e.JSC$21313_overlayMarginTop-e.JSC$21313_overlayHeight;
break;case 1:case 3:e.JSC$21313_overlayMarginTop=e.canvas.height-e.JSC$21313_overlayMarginBottom-e.JSC$21313_overlayHeight;break;default:throw Error("Sl");}},MbE=function(e,z){switch(e.resizeCorner){case 2:z=e.canvas.height-(e.JSC$21313_overlayMarginTop+vHL(e,z));
break;case 4:z=e.canvas.height-(e.JSC$21313_overlayMarginTop+IUq(e,z));break;case 1:z=e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight-vHL(e,z);break;case 3:z=e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight-IUq(e,z);break;default:throw Error("Sl");}return Math.max(z,e.canvasMargin)},vHL=function(e,z){z=e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth-Math.max(z,e.horizontalMargin);
z=z<0?e.JSC$21313_overlayWidth:Math.max(z,e.minOverlayWidth);return Math.round(z/e.requiredRatio)},IUq=function(e,z){z=e.canvas.width-Math.max(e.canvas.width-z,e.horizontalMargin)-e.JSC$21313_overlayMarginLeft;
z=z<0?e.JSC$21313_overlayWidth:Math.max(z,e.minOverlayWidth);return Math.round(z/e.requiredRatio)},H_E=function(e,z){switch(e.resizeCorner){case 2:z=e.canvas.width-e.JSC$21313_overlayMarginRight-WGC(e,z);
break;case 4:z=e.canvas.width-e.JSC$21313_overlayMarginLeft-WGC(e,z);break;case 1:z=e.canvas.width-e.JSC$21313_overlayMarginRight-PqY(e,z);break;case 3:z=e.canvas.width-e.JSC$21313_overlayMarginLeft-PqY(e,z);break;default:throw Error("Sl");}return Math.max(z,e.horizontalMargin)},WGC=function(e,z){z=e.canvas.height-Math.max(e.canvas.height-z,e.canvasMargin)-e.JSC$21313_overlayMarginTop;
return z<0?e.JSC$21313_overlayWidth:Math.max(Math.round(z*e.requiredRatio),e.minOverlayWidth)},PqY=function(e,z){z=e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight-Math.max(z,e.canvasMargin);
return z<0?e.JSC$21313_overlayWidth:Math.max(Math.round(z*e.requiredRatio),e.minOverlayWidth)},J$E=function(e){e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height);
e.ctx.drawImage(e.image,0,0,e.image.width,e.image.height,e.horizontalMargin,e.canvasMargin,e.canvas.width-2*e.horizontalMargin,e.scaledImageHeight);e.ctx.fillStyle="rgba(0, 0, 0, 0.7)";e.ctx.fillRect(e.horizontalMargin,e.JSC$21313_overlayMarginTop,e.JSC$21313_overlayMarginLeft-e.horizontalMargin,e.JSC$21313_overlayHeight);e.ctx.fillRect(e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth,e.JSC$21313_overlayMarginTop,e.JSC$21313_overlayMarginRight-e.horizontalMargin,e.JSC$21313_overlayHeight);e.ctx.fillRect(e.horizontalMargin,
e.canvasMargin,e.scaledImageWidth,e.JSC$21313_overlayMarginTop-e.canvasMargin);e.ctx.fillRect(e.horizontalMargin,e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight,e.scaledImageWidth,e.JSC$21313_overlayMarginBottom-e.canvasMargin);e.drawOverlay();e.component&&_.pi(e.component,"image-updated")};
DX.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21313_overlayMarginLeft,this.JSC$21313_overlayMarginTop,this.JSC$21313_overlayWidth,this.JSC$21313_overlayHeight);RIW(this)};
var RIW=function(e){var z=e.JSC$21313_overlayMarginLeft-5,C=e.JSC$21313_overlayMarginTop-5,w=e.JSC$21313_overlayMarginLeft+e.JSC$21313_overlayWidth-5,K=e.JSC$21313_overlayMarginTop+e.JSC$21313_overlayHeight-5;e.ctx.fillStyle="#FFF";e.ctx.fillRect(z,C,10,10);e.ctx.strokeRect(z,C,10,10);e.ctx.fillRect(w,C,10,10);e.ctx.strokeRect(w,C,10,10);e.ctx.fillRect(z,K,10,10);e.ctx.strokeRect(z,K,10,10);e.ctx.fillRect(w,K,10,10);e.ctx.strokeRect(w,K,10,10);if(e.focusedCorner!==0&&e.styleFocusedCorner){e.ctx.lineWidth=
4;e.ctx.strokeStyle="#3EA6FF";switch(e.focusedCorner){case 1:--z;--C;break;case 2:--z;C=K-1;break;case 3:z=w-1;--C;break;case 4:z=w-1;C=K-1;break;default:return}e.ctx.strokeRect(z,C,12,12)}};
DX.prototype.crop=function(e,z){z=z===void 0?!0:z;var C=this.image.width/this.scaledImageWidth,w=document.createElement("canvas"),K=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],G=this.JSC$21313_overlayWidth*C,X=this.JSC$21313_overlayHeight*C;w.width=Math.max(G,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);w.height=Math.max(X,K);e&&(w.width=Math.min(w.width,w.height),w.height=Math.min(w.width,w.height));
e=w.getContext("2d");if(!e)throw Error("Gl");K=(this.JSC$21313_overlayMarginLeft-this.horizontalMargin)*C;C*=this.JSC$21313_overlayMarginTop-this.canvasMargin;z||(e.fillStyle="white",e.fillRect(0,0,w.width,w.height));e.drawImage(this.image,K,C,G,X,0,0,w.width,w.height);return w};var LG3=function(e,z,C,w,K){DX.call(this,e,z,C,w,void 0,K,8,!1)};
_.U(LG3,DX);LG3.prototype.drawOverlay=function(){var e=this.getContext(),z=this.JSC$21313_overlayWidth,C=this.JSC$21313_overlayHeight,w=this.JSC$21313_overlayMarginTop,K=this.JSC$21313_overlayMarginLeft;e.lineWidth=2;e.strokeStyle="#3EA6FF";e.beginPath();e.arc(K+z/2,w+C/2,z/2,0,2*Math.PI);e.stroke();e.strokeRect(K,w,z,C);RIW(this)};
var hI$={maxFileSizeMB:15,minWidth:98,minHeight:98},O_f=["image/png","image/jpeg","image/gif"],ij=function(){var e=_.V.apply(this,arguments)||this;e.fileSelectorFocusListener=null;e.errorMessage=null;e.isLoading=!0;e.hideContainer=!0;e.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return e};
_.U(ij,_.V);_.Y=ij.prototype;_.Y.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.Y.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.Y.computePlaylistThumbnail=function(e){return e==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.Y.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.eA(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.Y.setErrorState=function(e){this.resetErrorState();e&&(this.errorMessage=e)};
_.Y.showPopup=function(){var e=this;this.hideContainer=!1;_.Dz(_.c5,function(){_.pi(e.hostElement,"yt-refit")});
this.isLoading=!1};
_.Y.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Y.closePopup=function(){this.resetFileSelector();_.eA(this.hostElement,"yt-close-popup-action",[this.is])};
_.Y.onCancelTap=function(){this.isPlaylistThumbnail||_.eA(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.Y.openFileSelector=function(){var e=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Dz(_.c5,function(){setTimeout(function(){if(!e.fileSelector.files||e.fileSelector.files.length===0)e.onCancelTap();e.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(z){z instanceof Error?_.yG(z):_.cn(new _.uh(JSON.stringify(z)))}};
_.Y.handleFileSelection=function(){var e=this,z,C,w,K,G,X;return _.k(function(J){switch(J.nextAddress){case 1:_.Iv(J,2);if(!e.fileSelector.files||!e.imageEditorCanvas)return e.onCancelTap(),J.return();z=e.fileSelector.files[0];KGv(e.imageChecker,z);_.Iv(J,4);return J.yield(TJL(z),6);case 6:e.mimeType=J.yieldResult;_.Yj(J,5,2);break;case 4:_.O_(J,2),_.eA(e.hostElement,"yt-image-selection-error-action",[(C=e.data)==null?void 0:C.genericImageLoadErrorMessage]),e.onCancelTap();case 5:w=new FileReader;
w.addEventListener("load",function(){var q,T;return _.k(function(Q){if(Q.nextAddress==1){if(!w.result)return _.AX(Error("Il")),Q.return();q=w.result;T=new Image;T.src=q;T.onload=function(){try{var m=e.imageChecker;if(T.width<m.requirements.minWidth||T.height<m.requirements.minHeight)throw new CqY(m.requirements.minWidth,m.requirements.minHeight);}catch(n){if(n instanceof CqY){var a;_.eA(e.hostElement,"yt-image-selection-error-action",[(a=e.data)==null?void 0:a.imageDimensionErrorMessage]);e.logImageDimensionErrorVe()}else n instanceof
Error?_.yG(n):(m=new _.uh(JSON.stringify(n)),_.yG(m));e.onCancelTap()}e.showPopup()};
T.onerror=function(){var m;_.eA(e.hostElement,"yt-image-selection-error-action",[(m=e.data)==null?void 0:m.genericImageLoadErrorMessage]);e.onCancelTap()};
return Q.yield(XyE(e.imageEditorCanvas,q),2)}e.imageEditor=Q.yieldResult;e.updatePositionOfAllCorners();e.addEventListeners(e.imageEditor);_.E_(Q)})},!1);
w.readAsDataURL(z);_.Yj(J,0);break;case 2:K=_.O_(J),K instanceof zIa?_.eA(e.hostElement,"yt-image-selection-error-action",[(G=e.data)==null?void 0:G.imageSizeErrorMessage]):(K instanceof Error?_.yG(K):_.cn(new _.uh(JSON.stringify(K))),_.eA(e.hostElement,"yt-image-selection-error-action",[(X=e.data)==null?void 0:X.genericImageLoadErrorMessage])),e.onCancelTap(),_.E_(J)}})};
_.Y.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var e=_.a5(_.nm(),{veType:232707,visualElement:_.mT(232707)});e&&(e={visualElement:e},_.mO().reportShown(e))}};
_.Y.handleImageSelectionErrorAction=function(e){this.isPlaylistThumbnail&&_.l$h(this.hostElement,e)};
_.Y.convertToImageFormatBundle=function(e){var z=this,C,w,K;return _.k(function(G){switch(G.nextAddress){case 1:return C=e.toDataURL(z.outputMimeType,1),G.yield($JC(C),2);case 2:w=G.yieldResult;_.Iv(G,3);KGv(z.imageChecker,w);_.Yj(G,4);break;case 3:K=_.O_(G);if(!(K instanceof zIa))throw K;_.AX(new _.uh("Output size is bigger than input size for image",z.mimeType,z.outputMimeType,w.size));C=e.toDataURL("image/jpeg",.95);return G.yield($JC(C),6);case 6:w=G.yieldResult;case 4:return G.return({dataUrl:C,
imageFile:w})}})};
_.Y.handleUploadImageToScottyCommand=function(e){var z=this,C,w,K,G,X,J,q,T,Q,m;return _.k(function(a){switch(a.nextAddress){case 1:if(!z.imageEditor||!_.r(e,SjE))return a.return();C=_.r(e,SjE).scottyUploadUrl;if(!C){var n=new _.uh("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.yG(n);return a.return()}_.Iv(a,2);z.setLoadingState();w=z.imageEditor.crop(!1,!1);return a.yield(z.convertToImageFormatBundle(w),4);case 4:return K=a.yieldResult,a.yield(qyo(K.imageFile,C),5);
case 5:G=a.yieldResult;((X=z.data)==null?0:X.onUploadEndpoint)?(J=z.buildUploadServiceEndpoint(G),z.ytComponentBehavior.resolveCommand(J),q=_.r(J,_.$R),((T=q)==null?0:T.params)?z.closePopup():z.resetFileSelector()):(_.eA(z.hostElement,"yt-image-updated-action",[K.dataUrl,G]),z.closePopup());_.Yj(a,0);break;case 2:Q=_.O_(a),z.setErrorState((m=z.data)==null?void 0:m.uploadErrorMessage),Q instanceof Error?_.yG(Q):(n=new _.uh(JSON.stringify(Q)),_.yG(n)),_.E_(a)}})};
_.Y.buildUploadServiceEndpoint=function(e){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",e),this.data.onUploadEndpoint):null};
_.Y.dataChanged=function(){var e=this,z;return _.k(function(C){if(C.nextAddress==1){if(!e.data||!e.canvasElement)return C.return();e.data.imageRatio&&e.data.minImageCropWidth||_.cn(new _.uh("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));z=function(w,K){return e.data.imageType==="IMAGE_TYPE_AVATAR"?new LG3(w,K,e.data.imageRatio,[e.data.minImageCropWidth,e.data.minImageCropWidth/e.data.imageRatio],e.hostElement):new DX(w,K,e.data.imageRatio,[e.data.minImageCropWidth,
e.data.minImageCropWidth/e.data.imageRatio],void 0,e.hostElement,8,!1)};
e.imageEditorCanvas=new oHl(e.canvasElement,z);return e.data.url?C.yield(XyE(e.imageEditorCanvas,e.data.url),3):(e.hideContainer=!0,e.openFileSelector(),C.jumpTo(0))}e.imageEditor=C.yieldResult;e.showPopup();e.addEventListeners(e.imageEditor);_.E_(C)})};
_.Y.addEventListeners=function(e){this.removeEventListeners();var z=function(K){GG$(e,K)};
this.JSC$21321_mouseDownEvent=z;var C=function(K){YI3(e,K)};
this.JSC$21321_mouseMoveEvent=C;var w=function(){b_b(e)};
this.JSC$21321_mouseUpEvent=w;this.topLeftCorner.addEventListener("mousedown",z);this.topLeftCorner.addEventListener("mousemove",C);this.topLeftCorner.addEventListener("mouseup",w);this.topRightCorner.addEventListener("mousedown",z);this.topRightCorner.addEventListener("mousemove",C);this.topRightCorner.addEventListener("mouseup",w);this.bottomLeftCorner.addEventListener("mousedown",z);this.bottomLeftCorner.addEventListener("mousemove",C);this.bottomLeftCorner.addEventListener("mouseup",w);this.bottomRightCorner.addEventListener("mousedown",
z);this.bottomRightCorner.addEventListener("mousemove",C);this.bottomRightCorner.addEventListener("mouseup",w)};
_.Y.removeEventListeners=function(){this.JSC$21321_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21321_mouseDownEvent));this.JSC$21321_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21321_mouseMoveEvent));this.JSC$21321_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21321_mouseUpEvent))};
_.Y.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var e=document.activeElement;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;switch(e){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};
_.Y.updatePositionOfCorner=function(e,z){var C=e.y-z.offsetHeight/2+4;z.style.left=e.x-z.offsetWidth/2+16+"px";z.style.top=C+"px"};
_.Y.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var e=_.b([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),z=e.next();!z.done;z=e.next()){z=z.value;var C=x8o(this.imageEditor,z.corner);this.updatePositionOfCorner(C,z.div)}};
_.Y.onLeft=function(e){this.imageEditor&&this.setFocusInImageEditor()&&($8$(this.imageEditor,0),this.updatePositionOfAllCorners(),e.preventDefault())};
_.Y.onRight=function(e){this.imageEditor&&this.setFocusInImageEditor()&&($8$(this.imageEditor,1),this.updatePositionOfAllCorners(),e.preventDefault())};
_.Y.onUp=function(e){this.imageEditor&&this.setFocusInImageEditor()&&($8$(this.imageEditor,2),this.updatePositionOfAllCorners(),e.preventDefault())};
_.Y.onDown=function(e){this.imageEditor&&this.setFocusInImageEditor()&&($8$(this.imageEditor,3),this.updatePositionOfAllCorners(),e.preventDefault())};
_.Y.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.lB.Object.defineProperties(ij.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&O_f.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var e,z,C;((z=this.data)==null?0:z.imageRatio)&&((C=this.data)==null?0:C.minImageCropWidth)?e={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:e=hI$;return new wyY(e)}}});
ij.prototype.updatePositionOfAllCorners=ij.prototype.updatePositionOfAllCorners;ij.prototype.dataChanged=ij.prototype.dataChanged;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],ij.prototype,"ytComponentBehavior",void 0);_.d([_.W(_.cv),_.B("design:type",Object)],ij.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.nP("#canvas"),_.B("design:type",HTMLCanvasElement)],ij.prototype,"canvasElement",void 0);_.d([_.nP("#file-selector"),_.B("design:type",HTMLInputElement)],ij.prototype,"fileSelector",void 0);_.d([_.nP("#top-left-corner"),_.B("design:type",HTMLDivElement)],ij.prototype,"topLeftCorner",void 0);_.d([_.nP("#top-right-corner"),_.B("design:type",HTMLDivElement)],ij.prototype,"topRightCorner",void 0);
_.d([_.nP("#bottom-left-corner"),_.B("design:type",HTMLDivElement)],ij.prototype,"bottomLeftCorner",void 0);_.d([_.nP("#bottom-right-corner"),_.B("design:type",HTMLDivElement)],ij.prototype,"bottomRightCorner",void 0);_.d([_.F(),_.B("design:type",Object)],ij.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],ij.prototype,"errorMessage",void 0);_.d([_.F(),_.B("design:type",Object)],ij.prototype,"isLoading",void 0);_.d([_.F(),_.B("design:type",Object)],ij.prototype,"hideContainer",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.B("design:type",Boolean)],ij.prototype,"isPlaylistThumbnail",void 0);_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],ij.prototype,"dataChanged",null);_.d([_.Qi("image-updated"),_.Qi("yt-refit"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],ij.prototype,"updatePositionOfAllCorners",null);
_.d([_.fP({is:"yt-image-editor-renderer",disableElementRegistration:!0})],ij);
_.u(ij,"yt-image-editor-renderer",function(){if(eIv===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;p6W===void 0&&(p6W=document.createElement("template"));var w=p6W;C.call(z,w.content.cloneNode(!0),e.content.firstChild);eIv=e}e=eIv;return e},{mode:2});var EHY;var FG$;var No=function(){return _.V.apply(this,arguments)||this};
_.U(No,_.V);No.prototype.updateMinutesFromBinding=function(e){this.handleMinutesChanged&&this.handleMinutesChanged(e)};
No.prototype.updateSecondsFromBinding=function(e){this.handleSecondsChanged&&this.handleSecondsChanged(e)};
No.prototype.updateDescriptionFromBinding=function(e){this.handleDescriptionChanged&&this.handleDescriptionChanged(e)};
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],No.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],No.prototype,"data",void 0);_.d([_.F(),_.B("design:type",String)],No.prototype,"minutes",void 0);_.d([_.F(),_.B("design:type",String)],No.prototype,"seconds",void 0);_.d([_.F(),_.B("design:type",String)],No.prototype,"description",void 0);_.d([_.F(),_.B("design:type",Function)],No.prototype,"handleMinutesChanged",void 0);
_.d([_.F(),_.B("design:type",Function)],No.prototype,"handleSecondsChanged",void 0);_.d([_.F(),_.B("design:type",Function)],No.prototype,"handleDescriptionChanged",void 0);_.d([_.F(),_.B("design:type",Number)],No.prototype,"characterLimit",void 0);_.d([_.F(),_.B("design:type",Number)],No.prototype,"textNumRows",void 0);_.d([_.fP({is:"yt-report-details-form-content",disableElementRegistration:!0})],No);
_.u(No,"yt-report-details-form-content",function(){if(FG$===void 0){var e=document.createElement("template");_.v(e,'\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>');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;EHY===void 0&&(EHY=document.createElement("template"));var w=EHY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);FG$=e}e=FG$;return e},{mode:2});var VbY;var fUL;var sL=function(){var e=_.V.apply(this,arguments)||this;e.updateMinutesFromBinding=function(z){e.minutes=z.detail.value};
e.updateSecondsFromBinding=function(z){e.seconds=z.detail.value};
e.updateDescriptionFromBinding=function(z){e.description=z.detail.value};
return e};
_.U(sL,_.V);_.Y=sL.prototype;_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.Y.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"}}}};
_.Y.ready=function(){_.XC(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.Y.onSubmitYtAction=function(e){var z=e.detail;z.actionName==="yt-service-request"&&(z=z.args[1],z.flagEndpoint&&(e.stopPropagation(),this.refireAction(z)))};
_.Y.refireAction=function(e){var z={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(z.vss_id=this.vssId);_.wQ(this.hostElement,[e,z]);this.submitDisabled=!0};
_.Y.dataChanged=function(){var e=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var z=_.ox();z&&z.getPlayerPromise().then(function(C){var w=C.getOption("cc","track")||C.getOption("captions","track");w&&(e.vssId=w.vss_id);C=C.getCurrentTime();e.minutes=Math.floor(C/60).toString();e.seconds=(Math.floor(C)%60).toString()})};
_.Y.updateSubmitButtonState=function(){var e;((e=this.data)==null?0:e.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==="")};
_.Y.onYtServiceRequestCompleted=function(){_.eA(this.hostElement,"yt-close-popup-action")};
_.Y.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.lB.Object.defineProperties(sL.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var e;return((e=this.data)==null?void 0:e.textNumRows)||4}}});
sL.prototype.onYtServiceRequestError=sL.prototype.onYtServiceRequestError;sL.prototype.onYtServiceRequestCompleted=sL.prototype.onYtServiceRequestCompleted;sL.prototype.updateSubmitButtonState=sL.prototype.updateSubmitButtonState;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);
_.d([_.F({observer:"dataChanged"}),_.B("design:type",Object)],sL.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Boolean)],sL.prototype,"submitDisabled",void 0);_.d([_.F(),_.B("design:type",String)],sL.prototype,"minutes",void 0);_.d([_.F(),_.B("design:type",String)],sL.prototype,"seconds",void 0);_.d([_.F(),_.B("design:type",String)],sL.prototype,"description",void 0);_.d([_.F(),_.B("design:type",String)],sL.prototype,"vssId",void 0);
_.d([_.F({value:_.j5("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.B("design:type",Boolean)],sL.prototype,"isMusic",void 0);_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],sL.prototype,"characterLimit",null);_.d([_.P("data"),_.B("design:type",Number),_.B("design:paramtypes",[])],sL.prototype,"textNumRows",null);
_.d([_.Ux("minutes","seconds","description","submitDisabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sL.prototype,"updateSubmitButtonState",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sL.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],sL.prototype,"onYtServiceRequestError",null);_.d([_.fP({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],sL);
_.u(sL,"yt-report-details-form-renderer",function(){if(fUL===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;VbY===void 0&&(VbY=document.createElement("template"));var w=VbY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);fUL=e}e=fUL;return e});var SIl;var ufW;var d8C;var D8Z;var Bb=function(){return _.V.apply(this,arguments)||this};
_.U(Bb,_.V);
Bb.prototype.onCheckedChanged_=function(){if(this.data){var e=_.XC(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.eA(this.hostElement,"yt-additional-detail-checkbox-update",[e]):this.data.identifier==="yt-hide-user-checkbox"?_.eA(this.hostElement,"yt-hide-user-checkbox-update",[e]):e&&this.data.enableCommand?_.eA(this.hostElement,"yt-modify-report-form-command",[_.r(this.data.enableCommand,Bif)]):!e&&this.data.disableCommand&&_.eA(this.hostElement,
"yt-modify-report-form-command",[_.r(this.data.enableCommand,Bif)])}};
Bb.prototype.onLabelTap_=function(e){e.target.tagName!="A"&&(_.XC(this.hostElement).querySelector("#checkbox").checked=!_.XC(this.hostElement).querySelector("#checkbox").checked)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Bb.prototype,"data",void 0);_.d([_.fP({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],Bb);
_.u(Bb,"yt-boolean-form-field-v2-renderer",function(){if(D8Z===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;d8C===void 0&&(d8C=document.createElement("template"));var w=d8C;C.call(z,w.content.cloneNode(!0),e.content.firstChild);D8Z=e}e=D8Z;return e});var tv=function(){var e=_.V.apply(this,arguments)||this;e.canShowAdditionalDetailCheckbox=!1;e.canShowCheckbox=!1;e.keepDropdownFocusedAfterSelection=!0;return e};
_.U(tv,_.V);tv.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}}}}};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],tv.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],tv.prototype,"canShowAdditionalDetailCheckbox",void 0);_.d([_.F(),_.B("design:type",Object)],tv.prototype,"canShowCheckbox",void 0);_.d([_.F(),_.B("design:type",Object)],tv.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.d([_.fP({is:"yt-report-form-modal-content",disableElementRegistration:!0})],tv);
_.u(tv,"yt-report-form-modal-content",function(){if(ufW===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;SIl===void 0&&(SIl=document.createElement("template"));var w=SIl;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ufW=e}e=ufW;return e},{mode:2});var i_L;var N75;var gd=function(){var e=_.V.apply(this,arguments)||this;e.submitting=!1;e.submitButtonDisabled=!0;e.command=null;e.canShowCheckbox=!1;e.canShowAdditionalDetailCheckbox=!1;e.canShowNextButton=!1;e.additionalDetailCheckboxChecked=!1;e.refitJob=0;e.keepDropdownFocusedAfterSelection=!0;e.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 e};
_.U(gd,_.V);_.Y=gd.prototype;_.Y.created=function(){this.refitJob=0};
_.Y.attached=function(){this.JSC$21344_scroller&&(this.JSC$21344_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21344_scroller.attached&&typeof this.JSC$21344_scroller.attached==="function"&&this.JSC$21344_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.dataChanged=function(e){e&&(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,e.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),e.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.Y.onYtPopupOpened=function(){var e=_.ox();e&&e.getPlayerPromise().then(function(z){z.pauseVideo()})};
_.Y.onYtNavigate=function(e){_.r(e.detail.endpoint,_.$nX)&&(e.stopPropagation(),this.hideReportForm=!0)};
_.Y.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.Y.onYtServiceRequestCompleted=function(e,z){var C=z.actions;if(C){if(C.length===1&&_.r(C[0],_.Gj)){var w;C=((w=_.r(C[0],_.Gj))==null?void 0:w.commands)||[]}w=0;for(var K=C.length;w<K;w++)_.r(C[w],_.CH)&&(e.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(C[w]))}if(z.data&&(e=this.get("feedbackResponses",z.data)))for(z=0;z<e.length;z++)if(e[z].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.Y.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.Y._onDescendantIronResize=function(e){e.stopPropagation();return!1};
_.Y.handleReportFormEndpointUpdateAction=function(e){if(e.submitEndpoint){var z=this.command=e.submitEndpoint;z=_.r(z,_.xBs);if(z==null?0:z.additionalDetailCheckboxChecked)z.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else e.submitNavigationEndpoint?(this.command=e.submitNavigationEndpoint,this.toggleSubmitButton(!1)):e.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:e.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;e.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",e));this.refit()};
_.Y.handleConfirmDialogCloseAction=function(e){e.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.Y.submitButtonDisabledChanged=function(){var e=this.hostElement.parentElement;e&&e.invalidateTabbables&&e.invalidateTabbables()};
_.Y.handleModifyReportFormCommand=function(e){e=this.get("action",e);e==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:e==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:e==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:e==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:e==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:e==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.Y.updateDialogStyling=function(){var e,z,C,w,K,G=((K=(e=this.data)==null?void 0:(z=e.optionsSupportedRenderers)==null?void 0:(C=z.optionsRenderer)==null?void 0:(w=C.items)==null?void 0:w.length)!=null?K:0)<=2?0:240;_.T8(this.hostElement,{"--yt-report-form-modal-renderer-min-width":G+"px"})};
_.Y.toggleSubmitButton=function(e){this.submitButtonDisabled=!e;this.submitButtonDisabled=e};
_.Y.computeSubmitButtonData=function(e,z){var C={};_.r(z,_.$nX)?C.navigationEndpoint=z:C.command=z||void 0;e&&e.buttonRenderer&&_.de.extend(C,e.buttonRenderer);return C};
_.Y.computeNextButtonData=function(e,z){var C={};if(!e||!e.buttonRenderer)return C;_.de.extend(C,e.buttonRenderer);if(!z)return C;if(_.r(z,_.$nX))C.navigationEndpoint=PsW(z);else if(C.command=PsW(z),e=_.r(C.command,_.xBs))e.legalCheckboxChecked=!0;return C};
_.Y.computeShowNextButton=function(e,z,C){return!!e&&z&&C};
_.Y.refit=function(){var e=this;this.refitJob||(this.refitJob=_.c5.addLowPriorityJob(function(){_.pi(e.hostElement,"yt-refit");e.refitJob=0}))};
_.Y.handleAdditionalDetailCheckboxUpdateAction=function(e){this.additionalDetailCheckboxChecked=e;_.r(this.command,_.xBs).additionalDetailCheckboxChecked=e};
_.lB.Object.defineProperties(gd,{template:{configurable:!0,enumerable:!0,get:function(){if(N75===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;i_L===void 0&&(i_L=document.createElement("template"));var w=i_L;C.call(z,w.content.cloneNode(!0),e.content.firstChild);N75=e}e=N75;return e}}});
gd.prototype.onYtServiceRequestError=gd.prototype.onYtServiceRequestError;gd.prototype.onYtServiceRequestCompleted=gd.prototype.onYtServiceRequestCompleted;gd.prototype.onYtServiceRequestSent=gd.prototype.onYtServiceRequestSent;gd.prototype.onYtNavigate=gd.prototype.onYtNavigate;gd.prototype.onYtPopupOpened=gd.prototype.onYtPopupOpened;_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],gd.prototype,"openPopupBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],gd.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],gd.prototype,"eventForwardingBehavior",void 0);_.d([_.W(_.oY),_.B("design:type",Object)],gd.prototype,"ironResizableBehavior",void 0);_.d([_.F({observer:"dataChanged"}),_.B("design:type",Object)],gd.prototype,"data",void 0);
_.d([_.F(),_.B("design:type",Object)],gd.prototype,"submitting",void 0);_.d([_.F({observer:"submitButtonDisabledChanged"}),_.B("design:type",Object)],gd.prototype,"submitButtonDisabled",void 0);_.d([_.F(),_.B("design:type",Object)],gd.prototype,"command",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],gd.prototype,"hideReportForm",void 0);_.d([_.F(),_.B("design:type",Object)],gd.prototype,"canShowCheckbox",void 0);
_.d([_.F(),_.B("design:type",Object)],gd.prototype,"canShowAdditionalDetailCheckbox",void 0);_.d([_.F(),_.B("design:type",Object)],gd.prototype,"canShowNextButton",void 0);_.d([_.F(),_.B("design:type",Object)],gd.prototype,"additionalDetailCheckboxChecked",void 0);_.d([_.F(),_.B("design:type",Object)],gd.prototype,"refitJob",void 0);_.d([_.F(),_.B("design:type",Object)],gd.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.d([_.nP("#scroller"),_.B("design:type",Object)],gd.prototype,"JSC$21344_scroller",void 0);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],gd.prototype,"onYtPopupOpened",null);_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gd.prototype,"onYtNavigate",null);
_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],gd.prototype,"onYtServiceRequestSent",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],gd.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],gd.prototype,"onYtServiceRequestError",null);_.d([_.fP({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],gd);var sHY;var B7L;var j9=function(){return _.V.apply(this,arguments)||this};
_.U(j9,_.V);_.Y=j9.prototype;_.Y.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.Y.onVisible=function(){var e,z;(z=_.lh().resolve(_.$B(_.EI)))==null||z.enqueue({label:_.Zd((e=this.data)==null?void 0:e.messageTitle),elementToFocus:this.hostElement})};
_.Y.onThumbnailLoaded=function(){_.pi(this.hostElement,"yt-refit")};
_.Y.onDismissTap=function(){_.eA(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.Y.computeAlternateIcon=function(e){return e?e==="BACKSTAGE_ARTWORK"?"backstage:artwork":e:null};
_.Y.computeFontFamily=function(e){return e==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.Y.computeBackgroundStyle=function(e,z){if(e=this.computeBackgroundImage(e,z))if(e=_.G9(e.thumbnails))return'background-image: url("'+e+'");'};
_.Y.computeHasFullHeightImage=function(e){return!(!(e&&e.thumbnails&&e.thumbnails.length>0)||this.modern)};
_.Y.isModernStyle=function(e){return e.style==="STYLE_MODERN"};
_.Y.computeIcon=function(e,z){if(e&&e.icon)return z?e.iconDark:e.icon};
_.Y.computeBackgroundImage=function(e,z){if(e&&e.backgroundImage)return z?e.backgroundImageDark:e.backgroundImage};
_.Y.computeLogo=function(e,z){if(e&&e.logo)return z?e.logoDark:e.logo};
_.Y.computeShouldShowModernIcon=function(e,z){return e&&!!z};
_.Y.getLogoContainerClassName=function(e){return this.logoWithPadding(e)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.Y.getLogoImageId=function(e){return this.logoWithPadding(e)?"mealbar-logo-with-padding":"mealbar-logo"};
_.Y.logoWithPadding=function(e){var z,C,w;return(e=(z=this.computeLogo(e,this.isDarkTheme))==null?void 0:(C=z.thumbnails)==null?void 0:(w=C[0])==null?void 0:w.height)&&e%31===0?!0:!1};
j9.prototype.onThumbnailLoaded=j9.prototype.onThumbnailLoaded;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.d([_.F({}),_.B("design:type",Object)],j9.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.B("design:type",Boolean)],j9.prototype,"modern",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],j9.prototype,"isDarkTheme",void 0);
_.d([_.F({computed:"computeIcon(data, isDarkTheme)"}),_.B("design:type",Object)],j9.prototype,"icon",void 0);_.d([_.F({computed:"computeLogo(data, isDarkTheme)"}),_.B("design:type",Object)],j9.prototype,"logo",void 0);_.d([_.F({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.B("design:type",Object)],j9.prototype,"backgroundStyle",void 0);_.d([_.F({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.B("design:type",Object)],j9.prototype,"alternateIcon",void 0);
_.d([_.F({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.B("design:type",Boolean)],j9.prototype,"hasFullHeightImage",void 0);_.d([_.F({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.B("design:type",Boolean)],j9.prototype,"useYoutubeSans",void 0);_.d([_.F({computed:"computeShouldShowModernIcon(modern, icon)"}),_.B("design:type",Boolean)],j9.prototype,"shouldShowModernIcon",void 0);
_.d([_.Qi("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],j9.prototype,"onThumbnailLoaded",null);_.d([_.fP({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],j9);
_.u(j9,"yt-mealbar-promo-renderer",function(){if(B7L===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;sHY===void 0&&(sHY=document.createElement("template"));var w=sHY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);B7L=e}e=B7L;return e},{mode:2});var tbl;var gHv;var yO=function(){return _.V.apply(this,arguments)||this};
_.U(yO,_.V);_.Y=yO.prototype;_.Y.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]]"}}}}}};
_.Y.computeHasButtons_=function(e){return!(!e.dismissButton&&!e.acceptButton)};
_.Y.computeStyle_=function(e){return e||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Y.observeImpressionEndpoints_=function(){var e=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(z){z.clickTrackingParams&&delete z.clickTrackingParams;_.wQ(e.hostElement,[z])})};
_.Y.onTap_=function(){_.eA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
yO.prototype.observeImpressionEndpoints_=yO.prototype.observeImpressionEndpoints_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],yO.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],yO.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],yO.prototype,"positionType",void 0);_.d([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],yO.prototype,"hasButtons_",void 0);_.d([_.F({value:function(){return this.onTap_.bind(this)}}),
_.B("design:type",Function)],yO.prototype,"boundOnTap_",void 0);_.d([_.F({value:{style:"mono-inverse"}}),_.B("design:type",Object)],yO.prototype,"buttonOverride",void 0);_.d([_.mi("data.promoConfig.impressionEndpoints"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],yO.prototype,"observeImpressionEndpoints_",null);_.d([_.fP({is:"yt-tooltip-renderer",disableElementRegistration:!0})],yO);
_.u(yO,"yt-tooltip-renderer",function(){if(gHv===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;tbl===void 0&&(tbl=document.createElement("template"));var w=tbl;C.call(z,w.content.cloneNode(!0),e.content.firstChild);gHv=e}e=gHv;return e},{mode:2});var jHC;var y$o;var c$v;var A$a;var cb=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-open-popup-action":"onOpen"};return e};
_.U(cb,_.V);_.Y=cb.prototype;_.Y.attached=function(){this.onOpen()};
_.Y.updateTimeSecs=function(e){this.currentTimeSecs=e};
_.Y.computeTimeString=function(e){e=e.toString();var z=Math.floor(Number(e)/3600),C=Math.floor(Number(e)%3600%60);return(z>0?z+":":"")+_.rJ(Math.floor(Number(e)%3600/60),z>0?2:1)+":"+_.rJ(C,2)};
_.Y.computeTimeStringA11y=function(e){return _.kB4({seconds:e})};
_.Y.getTimeParam=function(){return ALb(this.timeString)};
_.Y.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var e={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},z;_.Zw(_.nm(),(z=this.data)==null?void 0:z.trackingParams,e,7)};
_.Y.onChangeStartAtTimestamp=function(){for(var e=this.startAtTimestamp.value.split(":"),z=0,C=1,w=e.length-1;w>=0;w--)z+=Number(e[w])*C,C*=60;this.updateTimeSecs(z);this.setTimestamp()};
_.Y.onOpen=function(){var e=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var z=_.ox();z?z.getPlayerPromise().then(function(C){C=C.getCurrentTime();e.updateTimeSecs(C)}):nTq()&&this.updateTimeSecs(nTq())};
_.Y.setTimestamp=function(){var e=Math.floor(this.currentTimeSecs);_.eA(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!e,timestamp:e||""}])};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],cb.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],cb.prototype,"data",void 0);_.d([_.F({value:!1,notify:!0}),_.B("design:type",Boolean)],cb.prototype,"isStartAtChecked",void 0);_.d([_.F(),_.B("design:type",Number)],cb.prototype,"currentTimeSecs",void 0);
_.d([_.F({computed:"computeTimeString(currentTimeSecs)"}),_.B("design:type",String)],cb.prototype,"timeString",void 0);_.d([_.F({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.B("design:type",String)],cb.prototype,"timeStringA11y",void 0);_.d([_.nP("#start-at-timestamp"),_.B("design:type",Object)],cb.prototype,"startAtTimestamp",void 0);_.d([_.fP({is:"yt-start-at-renderer",disableElementRegistration:!0})],cb);
_.u(cb,"yt-start-at-renderer",function(){if(A$a===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;c$v===void 0&&(c$v=document.createElement("template"));var w=c$v;C.call(z,w.content.cloneNode(!0),e.content.firstChild);A$a=e}e=A$a;return e},{mode:2});var Z_b={},pyv=(Z_b.WEB_REMIX="music.youtube.com",Z_b),Av=function(){var e=_.V.apply(this,arguments)||this;e.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return e};
_.U(Av,_.V);_.Y=Av.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.created=function(){this.embedHost_=pyv[_.j5("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.Y.ready=function(){_.XC(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.Y.computeEmbedCode_=function(e,z,C,w,K){if(!e)return"";var G=e.videoId,X=e.fullListId,J=[];e.attributionId&&J.push("si="+e.attributionId);w||J.push("controls=0");C&&Number(z)>0&&J.push("start="+z);X&&(G="videoseries",J.push("list="+X));C="https://"+(K?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+G;e.clipId&&(J.push("clip="+e.clipId),J.push("clipt="+e.clipTiming));z=J.length>0?C+"?"+J.join("&amp;"):C;e.encryptedEmbedConfig&&J.push("embed_config="+JSON.stringify({enc:e.encryptedEmbedConfig}));
J=J.length>0?C+"?"+J.join("&amp;"):C;_.M("web_sharing_embed_preview_killswitch")?_.XC(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(J,e.previewWidth||854,e.previewHeight||480):(_.yx(this.videoPreviewContainer),_.XC(this.videoPreviewContainer).appendChild(this.buildIframeElement(J)));return this.getEmbedCode_(z,e.width||560,e.height||315)};
_.Y.buildIframeElement=function(e){var z=document.createElement("iframe"),C,w;z.width=""+((w=(C=this.data)==null?void 0:C.previewWidth)!=null?w:854);var K,G;z.height=""+((G=(K=this.data)==null?void 0:K.previewHeight)!=null?G:480);_.w5(z,2,e);z.title="YouTube video player";z.frameBorder="0";z.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";z.referrerPolicy="strict-origin-when-cross-origin";z.allowFullscreen=!0;return z};
_.Y.computeIsSquareAspectRatio_=function(e){return e.previewHeight&&e.previewWidth?e.previewHeight==e.previewWidth:!1};
_.Y.computeShowEmbedOptions_=function(e){return!!e.enablePrivacyModeOptionLabel||!!e.showPlayerControlsOptionLabel};
_.Y.getEmbedCode_=function(e,z,C){return'<iframe width="'+z+'" height="'+C+'" src="'+e+'" 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>'};
_.Y.handleSignalActionCopyShareEmbedUrl_=function(){_.XC(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.Y.handleSetTimestamp_=function(e){this.startAtTimeStamp_=(this.startAtChecked_=e.isSet)?e.timestamp:0};
_.Y.closePanel_=function(){_.eA(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.Y.onEmbedCode_=function(){_.XC(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.Y.onYtPopupClosed_=function(){_.yx(_.XC(this.hostElement).querySelector("#video-preview"))};
_.Y.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.r(this.data.actionButtons[0],_.a2)&&this.ytRendererBehavior.logExplicitClick(_.r(this.data.actionButtons[0],_.a2))};
Av.prototype.onYtPopupClosed_=Av.prototype.onYtPopupClosed_;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Av.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Av.prototype,"data",void 0);
_.d([_.F({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.B("design:type",String)],Av.prototype,"embedCode_",void 0);_.d([_.F({value:!0}),_.B("design:type",Boolean)],Av.prototype,"isPlayerControlsOptionChecked_",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],Av.prototype,"isPrivacyModeOptionChecked_",void 0);_.d([_.F({value:!1,notify:!0}),_.B("design:type",Boolean)],Av.prototype,"startAtChecked_",void 0);
_.d([_.F({value:0}),_.B("design:type",Number)],Av.prototype,"startAtTimeStamp_",void 0);_.d([_.F({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],Av.prototype,"isSquareAspectRatio_",void 0);_.d([_.nP("#video-preview"),_.B("design:type",HTMLElement)],Av.prototype,"videoPreviewContainer",void 0);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Av.prototype,"onYtPopupClosed_",null);
_.d([_.fP({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Av);
_.u(Av,"yt-sharing-embed-renderer",function(){if(y$o===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;jHC===void 0&&(jHC=document.createElement("template"));var w=jHC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);y$o=e}e=y$o;return e},{mode:2});var eZv;var zZo=function(){return _.V.apply(this,arguments)||this};
_.U(zZo,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zZo.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zZo.prototype,"data",void 0);_.d([_.fP({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],zZo);
_.u(zZo,"yt-sender-id-section-renderer",function(){if(eZv===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);eZv=e}e=
eZv;return e},{mode:1});var C8L;var wzf;var ZX=function(){return _.V.apply(this,arguments)||this};
_.U(ZX,_.V);ZX.prototype.closePopup=function(){_.eA(this.hostElement,"yt-close-popup-action")};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ZX.prototype,"data",void 0);_.d([_.fP({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],ZX);
_.u(ZX,"yt-community-post-section-renderer",function(){if(wzf===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;C8L===void 0&&(C8L=document.createElement("template"));var w=C8L;C.call(z,w.content.cloneNode(!0),e.content.firstChild);wzf=e}e=wzf;return e},{mode:2});var Knv;var oCZ;var GWL;var Yob;var bXv;var XzY;var JxL=function(){return _.V.apply(this,arguments)||this};
_.U(JxL,_.V);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],JxL.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],JxL.prototype,"data",void 0);_.d([_.fP({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],JxL);
_.u(JxL,"yt-share-start-time-with-context-renderer",function(){if(XzY===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;bXv===void 0&&(bXv=document.createElement("template"));var w=bXv;C.call(z,w.content.cloneNode(!0),e.content.firstChild);XzY=e}e=XzY;return e},{mode:2});var pO=function(){return _.V.apply(this,arguments)||this};
_.U(pO,_.V);pO.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],pO.prototype,"data",void 0);_.d([_.fP({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],pO);
_.u(pO,"yt-share-panel-title-v15-renderer",function(){if(Yob===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;GWL===void 0&&(GWL=document.createElement("template"));var w=GWL;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Yob=e}e=Yob;return e},{mode:2});var eM=function(){return _.V.apply(this,arguments)||this};
_.U(eM,_.V);eM.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],eM.prototype,"data",void 0);_.d([_.fP({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],eM);
_.u(eM,"yt-share-panel-header-renderer",function(){if(oCZ===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Knv===void 0&&(Knv=document.createElement("template"));var w=Knv;C.call(z,w.content.cloneNode(!0),e.content.firstChild);oCZ=e}e=oCZ;return e},{mode:2});var kW3;var qoZ;var xcL={};xcL.YtBindingExpressionsBehavior={identity:_.F4,msg:function(e,z){z=z===void 0?{}:z;return _.kk(e,z,e)},
msgPlural:function(e,z){return _.qL(e,z)},
getMusicIconFromType:function(e){return _.qF(e)}};var TVY;var $c$;var lBf;var Qa$=document.head,mcf=Qa$.appendChild,aB5;
if(lBf===void 0){var nCq=document.createElement("template");_.v(nCq,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><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>');lBf=
nCq}aB5=lBf;mcf.call(Qa$,aB5.content);var zJ=function(){var e=_.V.apply(this,arguments)||this;e.screenLayer=7;return e};
_.U(zJ,_.V);zJ.prototype.getScreenLayer=function(){return this.screenLayer};
zJ.prototype.onTap=function(e){e&&e.detail&&(e.detail.x||e.detail.y)&&_.XC(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.wQ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(e=this.getScreenLayer(),_.pi(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:e}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.lB.Object.defineProperties(zJ.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()}}});
zJ.prototype.onTap=zJ.prototype.onTap;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],zJ.prototype,"ytComponentBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],zJ.prototype,"data",void 0);_.d([_.P("data.title"),_.B("design:type",Object),_.B("design:paramtypes",[])],zJ.prototype,"title",null);
_.d([_.P("data.serviceName"),_.B("design:type",String),_.B("design:paramtypes",[])],zJ.prototype,"icon",null);_.d([_.Qi("tap"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],zJ.prototype,"onTap",null);_.d([_.fP({is:"yt-share-target-renderer",disableElementRegistration:!0})],zJ);
_.u(zJ,"yt-share-target-renderer",function(){if($c$===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;TVY===void 0&&(TVY=document.createElement("template"));var w=TVY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);$c$=e}e=$c$;return e},{mode:2});var MKo;var rxZ;var Cy=function(){var e=_.V.apply(this,arguments)||this;e.SHARE_TARGET_WIDTH=70;e.SHARE_TARGET_MARGIN_RIGHT=8;e.PAGE_SCROLL_SPEED=9;e.actionMap={"yt-share-panel-reset-action":"onReset_"};return e};
_.U(Cy,_.V);_.Y=Cy.prototype;_.Y.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.Y.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.XC(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.XC(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.Y.onReset_=function(){if(_.XC(this.hostElement).querySelector("#list")){var e=_.XC(this.hostElement).querySelector("#list");var z=_.XC(this.hostElement).querySelector("#list");var C=z.offsetLeft,w=z.offsetParent;w||_.gyT(z)!="fixed"||(w=_.t0(z).documentElement);if(w){if(_.nb&&!_.r4(58)){var K=_.zvL(w);C+=K.left}else Number(_.xYX)>=8&&!(Number(_.xYX)>=9)&&(K=_.zvL(w),C-=K.left);z=_.pVC(w)?w.clientWidth-(C+z.offsetWidth):C}else z=C;Buo(e,z);this.updateScrollButtons_()}};
_.Y.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.Y.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.Y.onScrollWheel_=function(e){e.stopPropagation();e.preventDefault();var z=sJY(_.XC(this.hostElement).querySelector("#list"));e=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;Buo(_.XC(this.hostElement).querySelector("#list"),z+e);this.updateScrollButtons_()};
_.Y.smoothScrollByOnePage_=function(e){var z=_.XC(this.hostElement).querySelector("#list"),C=(Math.floor(z.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,w=sJY(z),K=C*(e?1:-1),G=this.PAGE_SCROLL_SPEED,X=this.updateScrollButtons_.bind(this),J=0,q;(function Q(){J+=G;q=J/C*2;Buo(z,w+K*(q<1?q*q:-q*q+4*q-2));J<C?window.requestAnimationFrame(Q):X()})()};
_.Y.updateScrollButtons_=function(){var e=sJY(_.XC(this.hostElement).querySelector("#list")),z=_.XC(this.hostElement).querySelector("#list").scrollWidth-_.XC(this.hostElement).querySelector("#list").clientWidth;_.XC(this.hostElement).querySelector("#scroll-button-back").hidden=e<=0;_.XC(this.hostElement).querySelector("#scroll-button-forward").hidden=e>=z};
Cy.prototype.onScrollWheel_=Cy.prototype.onScrollWheel_;Cy.prototype.onDataChanged_=Cy.prototype.onDataChanged_;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Cy.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(xcL.YtBindingExpressionsBehavior),_.B("design:type",Object)],Cy.prototype,"ytBindingExpressionsBehavior",void 0);
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Cy.prototype,"data",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Cy.prototype,"onDataChanged_",null);_.d([_.Qi("wheel"),_.B("design:type",Function),_.B("design:paramtypes",[WheelEvent]),_.B("design:returntype")],Cy.prototype,"onScrollWheel_",null);
_.d([_.fP({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Cy);
_.u(Cy,"yt-third-party-share-target-section-renderer",function(){if(rxZ===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;MKo===void 0&&(MKo=document.createElement("template"));var w=MKo;C.call(z,w.content.cloneNode(!0),e.content.firstChild);rxZ=e}e=rxZ;return e},{mode:2});var wY=function(){return _.V.apply(this,arguments)||this};
_.U(wY,_.V);wY.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"}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],wY.prototype,"data",void 0);_.d([_.fP({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],wY);
_.u(wY,"yt-third-party-network-section-renderer",function(){if(qoZ===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;kW3===void 0&&(kW3=document.createElement("template"));var w=kW3;C.call(z,w.content.cloneNode(!0),e.content.firstChild);qoZ=e}e=qoZ;return e},{mode:2});var HXZ;_.KU(_.f(function(e){return _.x("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.x("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.x(_.PF,{data:function(){return e.data().firstPartyItems}},{listItemViewModel:_.Ij})))},"Fj"),"first-party-network-section-view-model",{props:{data:_.vh}});var UcC=_.Kb(["data:image/svg+xml;charset=UTF-8;base64,",""]),Ky=function(){var e=_.V.apply(this,arguments)||this;e.screenLayer=7;e.qrCodeEnabled=_.M("web_enable_sharing_qr_code");e.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return e};
_.U(Ky,_.V);_.Y=Ky.prototype;_.Y.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.Y.attached=function(){this.JSC$21396_scroller&&(this.JSC$21396_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21396_scroller.attached&&typeof this.JSC$21396_scroller.attached==="function"&&this.JSC$21396_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.Y.onDataChanged=function(){var e=this,z;(z=this.data)!=null&&z.contents&&(this.hostElement.setAttribute("links-only","true"),_.qH(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.T0(this,function(){_.pi(e.hostElement,"yt-refit");e.focusSharePanelHeader()}))};
_.Y.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.Y.handleSetTimestamp=function(e){var z=this.shortUrl();e.isSet&&(z=_.YQ(z,"t",e.timestamp));this.maybeRenderQrCode(z)};
_.Y.shortUrl=function(){var e,z=(e=this.data)==null?void 0:e.contents;if(z)for(e=0;e<z.length;e++){var C=void 0,w=void 0;if((C=z[e])==null?0:(w=C.thirdPartyNetworkSection)==null?0:w.copyLinkContainer){var K=w=C=void 0;return(K=_.r((C=z[e])==null?void 0:(w=C.thirdPartyNetworkSection)==null?void 0:w.copyLinkContainer,Wlv))==null?void 0:K.shortUrl}}};
_.Y.maybeRenderQrCode=function(e){var z=this,C,w,K,G,X,J,q,T,Q;return _.k(function(m){if(m.nextAddress==1){C=_.XC(z.hostElement).querySelector("#qr-code");if(!z.qrCodeEnabled||!e)return C&&(C.style.display="none"),m.return();w=_.sLg(_.lh().resolve(_.xp),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});K=document.createElement("div");return typeof w==="function"?(w(K),m.jumpTo(2)):m.yield(w,3)}m.nextAddress!=2&&(G=m.yieldResult,G(K));q=(X=K)==null?void 0:(J=X.firstChild)==null?void 0:J.firstChild;
T=document.createElement("img");Q=_.$1m(UcC,btoa(q.outerHTML));T.onload=function(){var a={canvas:C,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:T},n=new se3;cSZ(n,e);AS$(n,!1,Zsf(n));var H=n.modules,I=Object.assign({},ZE3,a);H=structuredClone(H);a=H.length;var L,h=(L=I.canvas)!=null?L:document.createElement("canvas");L=I.cellSize;n=I.logo;var E,N=(E=I.logoSize)!=null?E:Math.floor(a/4);a%2!==N%2&&N++;var D=I.logoPadding,g=I.backgroundColor;E=a*L;var y=
I.width,Z=0;y&&(Z=I.padding,Z=Math.ceil(Z*E/(y-Z*2)),h.style.width=y+"px",h.style.height=y+"px");h.width!==E+Z*2&&(h.width=E+Z*2);h.height!==E+Z*2&&(h.height=E+Z*2);E=h.getContext("2d");I.autoClear&&E.clearRect(0,0,h.width,h.height);E.fillStyle=g;E.beginPath();E.roundRect(0,0,h.width,h.height,I.borderRadius);E.fill();E.save();E.translate(Z,Z);if(n)for(h=Math.floor(a-N)/2-D,D=Math.floor(a+N)/2+D,g=h;g<D;g++)for(y=h;y<D;y++)H[g][y]=!1;for(h=0;h<a;h++)for(D=0;D<a;D++)(h<7&&D<7||h<7&&D>=a-7||h>=a-7&&
D<7)&&(H[h][D]=!1);var YN;h=(YN=I.markerColor)!=null?YN:I.color;eiv(E,0,0,L,h);eiv(E,L*(a-7),0,L,h);eiv(E,0,L*(a-7),L,h);switch(I.cellStyle){case 0:YN=H;H=YN.length;h=I.cellSize;E.beginPath();for(D=0;D<H;D++)for(g=0;g<H;g++)YN[D][g]&&E.rect(D*h,g*h,h,h);E.fillStyle=I.color;E.fill();break;case 1:YN=H;H=YN.length;h=I.cellSize;D=h*I.relativeCircleSize;E.fillStyle=I.color;E.beginPath();for(I=0;I<H;I++)for(g=0;g<H;g++)YN[I][g]&&(E.beginPath(),E.ellipse((I+.5)*h,(g+.5)*h,D/2,D/2,0,0,2*Math.PI),E.fill());
E.fill();break;case 2:YN=H;H=YN.length;h=I.cellSize;E.fillStyle=I.color;I=[[1,1],[-1,1],[-1,-1],[1,-1]];E.beginPath();for(D=0;D<H;D++)for(g=0;g<H;g++)if(YN[D][g])E.roundRect(D*h,g*h,h,h,h/2),D+1<H&&YN[D+1][g]&&E.rect(D*h+h/2,g*h,h,h),g+1<H&&YN[D][g+1]&&E.rect(D*h,g*h+h/2,h,h);else{y=D*h+h/2;Z=g*h+h/2;for(var Jk=0;Jk<4;Jk++){var v1=_.b(I[Jk]),lg=v1.next().value;v1=v1.next().value;D+lg>=0&&D+lg<H&&g+v1>=0&&g+v1<H&&YN[D+lg][g]&&YN[D][g+v1]&&YN[D+lg][g+v1]&&(lg=Jk*Math.PI/2,v1=h/2,E.moveTo(y+v1*Math.cos(lg),
Z+v1*Math.sin(lg)),E.arc(y,Z,h/2,lg,lg+Math.PI/2,!1),E.lineTo(y+v1*(Math.cos(lg)-Math.sin(lg)),Z+v1*(Math.cos(lg)+Math.sin(lg))),E.lineTo(y+v1*Math.cos(lg),Z+v1*Math.sin(lg)))}}E.fill()}n&&E.drawImage(n,(a-N)*L/2,(a-N)*L/2,N*L,N*L);E.restore();C.style.removeProperty("display")};
T.src=_.Dy(Q);_.E_(m)})};
_.Y.hasCommunityPostRenderer=function(){var e,z,C,w;return!!((e=this.data)==null?0:(z=e.header)==null?0:(C=z.sharePanelHeaderRenderer)==null?0:(w=C.communityPost)==null?0:w.communityPostSectionRenderer)};
_.Y.onTapClose=function(){_.eA(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.Y.getScreenLayer=function(){return this.screenLayer};
Ky.prototype.onDataChanged=Ky.prototype.onDataChanged;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Ky.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Ky.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Ky.prototype,"data",void 0);
_.d([_.F({value:_.kk("SBOX_INAPPROPRIATE_CANCEL")}),_.B("design:type",String)],Ky.prototype,"closeButtonAriaLabel",void 0);_.d([_.nP("yt-share-panel-header-renderer"),_.B("design:type",HTMLElement)],Ky.prototype,"header",void 0);_.d([_.F(),_.B("design:type",Object)],Ky.prototype,"qrCodeEnabled",void 0);_.d([_.nP("#scroller"),_.B("design:type",Object)],Ky.prototype,"JSC$21396_scroller",void 0);
_.d([_.Ux("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Ky.prototype,"onDataChanged",null);_.d([_.fP({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],Ky);
_.u(Ky,"yt-unified-share-panel-renderer",function(){if(HXZ===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-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 yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-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 yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);HXZ=e}e=HXZ;return e},{mode:1});var vC5={};
vC5.YtUnlimitedFamilyInterstitialBehavior=[_.jf.YtOpenPopupBehavior,_.ch.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(e){e=_.sML(_.AU(e),"yt-button-renderer");return e?e.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(e){this.dialogHistory_.push(e)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var e=this.popFromHistory();if(e){var z={openPopupAction:{popupType:"DIALOG",popup:{}}};z.openPopupAction.popup[e.renderer]=e.data;this.showingPreviousDialog_=!0;this.openPopup(z)}},
handleOpenPopupAction_:function(e){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var z=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(w){return!!e.openPopupAction.popup[w]}),C=this.getElementName_();
z&&this.data&&(this.pushToHistory({renderer:C,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(e){if(e=_.r(e,Q$Z))this.loading=!0,_.eA(this.hostElement,"yt-open-create-family-dialog",[e,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var e=this.hostElement.nodeName.split("-").slice(1).map(function(z){return""+z[0].toUpperCase()+z.slice(1).toLowerCase()}).join("");
return e[0].toLowerCase()+e.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var IBa;var Wnq;var od=function(){return _.V.apply(this,arguments)||this};
_.U(od,_.V);_.Y=od.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.eA(this.hostElement,"yt-register-create-family-dialog");_.XC(this.hostElement).querySelector("#thumbnail").onShow()};
_.Y.fireOnCloseCommand_=function(){var e;((e=this.data)==null?0:e.onCloseCommand)&&_.KK(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.Y.onYtServiceRequestSent_=function(e,z){z&&z.endpoint&&_.r(z.endpoint,_.bd)||(this.loading=!0)};
_.Y.onYtServiceRequestCompleted_=function(){var e=this.hostElement.parentElement;e.close&&e.close();this.loading=!1};
_.Y.openPopupHandler_=function(e){if(e.detail==this){var z;((z=this.data)==null?0:z.onOpenCommands)&&_.KK(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.Y.closePopupHandler_=function(e,z){this.fireOnCloseCommand_();if(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1){var C;((C=this.data)==null?0:C.onDismissCommands)&&_.KK(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.Y.dataChanged_=function(){this.loading=!1};
od.prototype.dataChanged_=od.prototype.dataChanged_;od.prototype.closePopupHandler_=od.prototype.closePopupHandler_;od.prototype.openPopupHandler_=od.prototype.openPopupHandler_;od.prototype.onYtServiceRequestCompleted_=od.prototype.onYtServiceRequestCompleted_;od.prototype.onYtServiceRequestSent_=od.prototype.onYtServiceRequestSent_;_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],od.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(vC5.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],od.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],od.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],od.prototype,"loading",void 0);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],od.prototype,"onYtServiceRequestSent_",null);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],od.prototype,"onYtServiceRequestCompleted_",null);
_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],od.prototype,"openPopupHandler_",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],od.prototype,"closePopupHandler_",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],od.prototype,"dataChanged_",null);
_.d([_.fP({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],od);
_.u(od,"yt-unlimited-family-message-interstitial-renderer",function(){if(Wnq===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;IBa===void 0&&(IBa=document.createElement("template"));var w=IBa;C.call(z,w.content.cloneNode(!0),e.content.firstChild);Wnq=e}e=Wnq;return e},{mode:2});var P8q;var RZY;var GJ=function(){return _.V.apply(this,arguments)||this};
_.U(GJ,_.V);GJ.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"}}}};
GJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XC(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(e){e.onShow()});
_.XC(this.hostElement).querySelector("#main-thumbnail").onShow()};
GJ.prototype.onButtonTap_=function(e){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(e)};
GJ.prototype.computeMainThumbnailWidth_=function(e){return e&&e.length!==0?72:96};
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.d([_.W(vC5.YtUnlimitedFamilyInterstitialBehavior),_.B("design:type",Object)],GJ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],GJ.prototype,"data",void 0);
_.d([_.F({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.B("design:type",Number)],GJ.prototype,"mainThumbnailWidth_",void 0);_.d([_.F({value:function(){return this.onButtonTap_.bind(this)}}),
_.B("design:type",Function)],GJ.prototype,"boundButtonTap_",void 0);_.d([_.fP({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],GJ);
_.u(GJ,"yt-unlimited-family-profile-interstitial-renderer",function(){if(RZY===void 0){var e=document.createElement("template");_.v(e,'\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>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;P8q===void 0&&(P8q=document.createElement("template"));var w=P8q;C.call(z,w.content.cloneNode(!0),e.content.firstChild);RZY=e}e=RZY;return e},{mode:2});var Lna;var hZf;var Yg=function(){var e=_.V.apply(this,arguments)||this;e.sliderAriaValueText_=null;e.selectedIndex_=0;e.messages={PAUSE_SLIDER:_.kk("PAUSE_SLIDER",void 0,"Pause Duration")};return e};
_.U(Yg,_.V);_.Y=Yg.prototype;_.Y.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_]]"}}}}}};
_.Y.onPopupOpened_=function(e){e.detail==this&&_.M("enable_premium_voluntary_pause")&&(_.eA(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y.setDialogData=function(e){this.data=e;this.resetSlider_()};
_.Y.dataChanged_=function(){this.data&&this.resetSlider_()};
_.Y.onSubmitTap_=function(){if(this.data.confirmCommand){var e=this.data.confirmCommand;_.r(e,_.$dL)&&_.wQ(this.hostElement,[e,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.Y.onExitButtonTap_=function(){_.eA(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.Y.closePopupHandler_=function(e,z){(z&&z.canceled===!0||z.canceled===!1&&z.confirmed===!1)&&this.handleOnDismissCommands_()};
_.Y.onSliderChange_=function(){this.selectedIndex_=_.XC(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.Y.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.Y.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.Y.resetSlider_=function(){if(this.data){var e=this.data.defaultEndOptionIndex||0,z=_.XC(this.hostElement).querySelector("#id-pause-slider");if(z.immediateValue<e)for(;z.immediateValue!=e;)z.increment();else if(e<z.immediateValue)for(;z.immediateValue!=e;)z.decrement();this.selectedIndex_=e;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.Y.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.KK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Y.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.KK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestSent=function(){this.loading=!0};
_.Y.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Yg.prototype.onYtServiceRequestCompleted=Yg.prototype.onYtServiceRequestCompleted;Yg.prototype.onYtServiceRequestSent=Yg.prototype.onYtServiceRequestSent;Yg.prototype.closePopupHandler_=Yg.prototype.closePopupHandler_;Yg.prototype.dataChanged_=Yg.prototype.dataChanged_;Yg.prototype.onPopupOpened_=Yg.prototype.onPopupOpened_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Yg.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Yg.prototype,"loading",void 0);_.d([_.F(),_.B("design:type",Number)],Yg.prototype,"selectIndexMax_",void 0);_.d([_.F(),_.B("design:type",Object)],Yg.prototype,"selectedData_",void 0);
_.d([_.F(),_.B("design:type",Object)],Yg.prototype,"sliderAriaValueText_",void 0);_.d([_.F({value:function(){return this.onSubmitTap_.bind(this)}}),
_.B("design:type",Function)],Yg.prototype,"onButtonTap_",void 0);_.d([_.F({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.B("design:type",Function)],Yg.prototype,"onSecondaryTap_",void 0);_.d([_.F(),_.B("design:type",Object)],Yg.prototype,"messages",void 0);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Yg.prototype,"onPopupOpened_",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Yg.prototype,"dataChanged_",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Yg.prototype,"closePopupHandler_",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],Yg.prototype,"onYtServiceRequestSent",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],Yg.prototype,"onYtServiceRequestCompleted",null);_.d([_.fP({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Yg);
_.u(Yg,"yt-unplugged-pause-membership-dialog-renderer",function(){if(hZf===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Lna===void 0&&(Lna=document.createElement("template"));var w=Lna;C.call(z,w.content.cloneNode(!0),e.content.firstChild);hZf=e}e=hZf;return e},{mode:2});var OXZ;var EC$;var by=function(){return _.V.apply(this,arguments)||this};
_.U(by,_.V);by.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.OT("vcBalanceRenderer")}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],by.prototype,"data",void 0);_.d([_.fP({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],by);
_.u(by,"yt-vc-offer-layout-header-renderer",function(){if(EC$===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;OXZ===void 0&&(OXZ=document.createElement("template"));var w=OXZ;C.call(z,w.content.cloneNode(!0),e.content.firstChild);EC$=e}e=EC$;return e},{mode:2});var Fnl;var VKf;var fBE;var So5;var Xl=function(){return _.V.apply(this,arguments)||this};
_.U(Xl,_.V);Xl.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.lB.Object.defineProperties(Xl.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)}}});
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.fTv.YtTappableItemBehavior),_.B("design:type",Object)],Xl.prototype,"ytTappableItemBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Xl.prototype,"data",void 0);
_.d([_.F({reflectToAttribute:!0}),_.P("data.accessibilityText"),_.B("design:type",String),_.B("design:paramtypes",[])],Xl.prototype,"ariaLabel",null);_.d([_.F({reflectToAttribute:!0}),_.P("data.style"),_.B("design:type",String),_.B("design:paramtypes",[])],Xl.prototype,"vcOfferStyle",null);_.d([_.P("data.style","data.titleText"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Xl.prototype,"showTitleText",null);_.d([_.fP({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Xl);
_.u(Xl,"yt-vc-offer-renderer",function(){if(So5===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;fBE===void 0&&(fBE=document.createElement("template"));var w=fBE;C.call(z,w.content.cloneNode(!0),e.content.firstChild);So5=e}e=So5;return e},{mode:2});var J7=function(){return _.V.apply(this,arguments)||this};
_.U(J7,_.V);J7.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}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],J7.prototype,"data",void 0);_.d([_.fP({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],J7);
_.u(J7,"yt-vc-offer-layout-renderer",function(){if(VKf===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Fnl===void 0&&(Fnl=document.createElement("template"));var w=Fnl;C.call(z,w.content.cloneNode(!0),e.content.firstChild);VKf=e}e=VKf;return e},{mode:2});var uvW;var dcv;var Dc3;var iX5;var kg=function(){return _.V.apply(this,arguments)||this};
_.U(kg,_.V);kg.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}}}}}};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],kg.prototype,"data",void 0);_.d([_.fP({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],kg);
_.u(kg,"yt-ypc-offers-modal-top-bar-renderer",function(){if(iX5===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;Dc3===void 0&&(Dc3=document.createElement("template"));var w=Dc3;C.call(z,w.content.cloneNode(!0),e.content.firstChild);iX5=e}e=iX5;return e},{mode:2});var qz=function(){return _.V.apply(this,arguments)||this};
_.U(qz,_.V);qz.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"}}}}};
qz.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
qz.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var e=this.scrollable;e.attached&&typeof e.attached==="function"&&e.attached()};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nP("#scrollable"),_.B("design:type",Object)],qz.prototype,"scrollable",void 0);_.d([_.F(),_.B("design:type",Object)],qz.prototype,"data",void 0);_.d([_.fP({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],qz);
_.u(qz,"yt-ypc-offers-modal-renderer",function(){if(dcv===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;uvW===void 0&&(uvW=document.createElement("template"));var w=uvW;C.call(z,w.content.cloneNode(!0),e.content.firstChild);dcv=e}e=dcv;return e},{mode:2});var NV3;var saC;var xg=function(){return _.V.apply(this,arguments)||this};
_.U(xg,_.V);_.Y=xg.prototype;_.Y.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}}}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XC(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.Y.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.eA(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.Y.onYtPopupOpened_=function(e,z){(z==null?void 0:z.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.KK(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.Y.onYtPopupClosed_=function(e,z){this.continueButtonTapped||z&&(z.canceled===!0||z.canceled===!1&&z.confirmed===!1)&&this.data.onDismissCommands&&_.KK(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.Y.onYtServiceRequestError_=function(e){this.set("showSpinner",!1);_.Zh(this.hostElement,e.detail.error.message)};
_.Y.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.M("enable_ypc_spinners")?_.eA(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
xg.prototype.onYtServiceRequestError_=xg.prototype.onYtServiceRequestError_;xg.prototype.onYtPopupClosed_=xg.prototype.onYtPopupClosed_;xg.prototype.onYtPopupOpened_=xg.prototype.onYtPopupOpened_;xg.prototype.onYtServiceRequestCompleted_=xg.prototype.onYtServiceRequestCompleted_;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],xg.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.F(),_.B("design:type",Object)],xg.prototype,"data",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],xg.prototype,"showSpinner",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],xg.prototype,"continueButtonTapped",void 0);_.d([_.F({value:function(){return this.onContinueTapped_.bind(this)}}),
_.B("design:type",Function)],xg.prototype,"bindOnContinueTapped_",void 0);_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xg.prototype,"onYtServiceRequestCompleted_",null);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],xg.prototype,"onYtPopupOpened_",null);
_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],xg.prototype,"onYtPopupClosed_",null);_.d([_.Qi("yt-service-request-error"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],xg.prototype,"onYtServiceRequestError_",null);_.d([_.fP({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],xg);
_.u(xg,"yt-ypc-upgrade-dialog-renderer",function(){if(saC===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;NV3===void 0&&(NV3=document.createElement("template"));var w=NV3;C.call(z,w.content.cloneNode(!0),e.content.firstChild);saC=e}e=saC;return e},{mode:2});var BVE;var tKW;var TJ=function(){return _.V.apply(this,arguments)||this};
_.U(TJ,_.V);TJ.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
TJ.prototype.computeHasButtons_=function(e){return!(!e.dismissButton&&!e.confirmButton)};
TJ.prototype.computeStyle_=function(e){return e||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],TJ.prototype,"ytEventForwardingBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],TJ.prototype,"data",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],TJ.prototype,"positionType",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.B("design:type",Boolean)],TJ.prototype,"hasButtons_",void 0);_.d([_.F({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.B("design:type",Boolean)],TJ.prototype,"style_",void 0);_.d([_.fP({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],TJ);
_.u(TJ,"yt-bubble-hint-renderer",function(){if(tKW===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;BVE===void 0&&(BVE=document.createElement("template"));var w=BVE;C.call(z,w.content.cloneNode(!0),e.content.firstChild);tKW=e}e=tKW;return e},{mode:2});var gCC;var ja3;var $g=function(){var e=_.Qt.apply(this,arguments)||this;e.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return e};
_.U($g,_.Qt);_.Y=$g.prototype;_.Y.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.Y.attached=function(){var e=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){e.$.thumbnail.onShow();e.$["header-image"].onShow()})};
_.Y.handleCheckBoxUpdateAction_=function(e){this.canShowCheckboxEnabledConfirmButton=e};
_.Y.computeUseOverlayForSpinner_=function(e,z){return!!e&&z};
_.Y.computeShowSpinner_=function(e,z){return e||!!z};
_.Y.fireOnCloseActions_=function(){var e,z=_.b(((e=this.data)==null?void 0:e.onClosedActions)||[]);for(e=z.next();!e.done;e=z.next())this.ytRendererBehavior.resolveCommand(e.value)};
_.Y.fireOnOpenCommands_=function(e){var z,C=(z=this.data)==null?void 0:z.onOpenCommands;if(C)for(e.stopImmediatePropagation(),e=_.b(C),z=e.next();!z.done;z=e.next())this.ytRendererBehavior.resolveCommand(z.value)};
_.Y.fireOnDismissCommands_=function(e){var z,C=(z=this.data)==null?void 0:z.onDismissCommands;if(C)for(e.stopImmediatePropagation(),e=_.b(C),z=e.next();!z.done;z=e.next())this.ytRendererBehavior.resolveCommand(z.value)};
_.Y.openPopupHandler_=function(e){e.detail==this&&this.fireOnOpenCommands_(e)};
_.Y.closePopupHandler_=function(e,z){_.zj(this,"yt-confirm-dialog-close-action",[z]);this.fireOnCloseActions_();(z&&z.canceled===!0||z&&z.canceled===!1&&z.confirmed===!1)&&this.fireOnDismissCommands_(e)};
_.Y.onHeaderImageChanged_=function(){var e;((e=this.data)==null?0:e.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.Y.computeHasHeaderImageWidth_=function(e){return e!=void 0};
_.Y.computeHasLoadingMessage=function(e){return!!e};
_.Y.onHeaderImageWidthChanged_=function(){var e,z=(e=this.data)==null?void 0:e.headerImageWidth;if(z){if(e=1.25*z*2+z,this.$.main.style.width=e+"px",z=this.$.scroller.firstElementChild)z.style.minWidth=e+"px"}else this.$.main.style.width="100%"};
_.Y.onThumbnailChanged_=function(){var e;((e=this.data)==null?0:e.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")};
_.Y.onYtNavigate_=function(e){e=_.AU(e);e instanceof Node&&_.JK(this.$["confirm-button"]).contains(e)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.Y.computePrimaryIsCancel_=function(e){return e};
_.Y.computeIsCancelButtonHidden_=function(e){return e.skipCancelButton||!e.cancelButton};
_.Y.computeIsCheckboxHidden_=function(e){return!e.checkbox};
_.Y.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.Y.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.Y.onYtServiceRequestCompleted_=function(){var e;((e=this.data)==null?0:e.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.lB.Object.defineProperties($g,{template:{configurable:!0,enumerable:!0,get:function(){if(ja3===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;gCC===void 0&&(gCC=document.createElement("template"));var w=gCC;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ja3=e}e=ja3;return e}}});
$g.prototype.onYtServiceRequestCompleted_=$g.prototype.onYtServiceRequestCompleted_;$g.prototype.onYtServiceRequestSent_=$g.prototype.onYtServiceRequestSent_;$g.prototype.onThumbnailLoaded_=$g.prototype.onThumbnailLoaded_;$g.prototype.onYtNavigate_=$g.prototype.onYtNavigate_;$g.prototype.onThumbnailChanged_=$g.prototype.onThumbnailChanged_;$g.prototype.onHeaderImageWidthChanged_=$g.prototype.onHeaderImageWidthChanged_;$g.prototype.onHeaderImageChanged_=$g.prototype.onHeaderImageChanged_;
$g.prototype.closePopupHandler_=$g.prototype.closePopupHandler_;$g.prototype.openPopupHandler_=$g.prototype.openPopupHandler_;_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],$g.prototype,"ytActionHandlerBehavior",void 0);_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);
_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],$g.prototype,"ytEventForwardingBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],$g.prototype,"data",void 0);_.d([_.F({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.B("design:type",Boolean)],$g.prototype,"primaryIsCancel",void 0);_.d([_.F({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],$g.prototype,"isCancelButtonHidden",void 0);
_.d([_.F({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.B("design:type",Boolean)],$g.prototype,"isCheckboxHidden",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],$g.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.d([_.F({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.B("design:type",Boolean)],$g.prototype,"useOverlayForSpinner_",void 0);
_.d([_.F({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.B("design:type",Boolean)],$g.prototype,"showSpinner_",void 0);_.d([_.F({value:!1}),_.B("design:type",Boolean)],$g.prototype,"isActionInProgress_",void 0);_.d([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.B("design:type",Boolean)],$g.prototype,"hasHeaderImageWidth_",void 0);
_.d([_.F({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.B("design:type",Boolean)],$g.prototype,"hasLoadingMessage",void 0);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],$g.prototype,"openPopupHandler_",null);_.d([_.Qi("yt-popup-closed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],$g.prototype,"closePopupHandler_",null);
_.d([_.mi("data.headerImage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"onHeaderImageChanged_",null);_.d([_.mi("data.headerImageWidth"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"onHeaderImageWidthChanged_",null);_.d([_.mi("data.thumbnail"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"onThumbnailChanged_",null);
_.d([_.Qi("yt-navigate"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],$g.prototype,"onYtNavigate_",null);_.d([_.Qi("yt-img-shadow-loaded"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],$g.prototype,"onThumbnailLoaded_",null);_.d([_.Qi("yt-service-request-sent"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.sT]),_.B("design:returntype")],$g.prototype,"onYtServiceRequestSent_",null);
_.d([_.Qi("yt-service-request-completed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,_.pU]),_.B("design:returntype")],$g.prototype,"onYtServiceRequestCompleted_",null);_.d([_.fP({is:"yt-confirm-dialog-renderer",noInjection:!0})],$g);var yxY;var cxW;var ly=function(){return _.V.apply(this,arguments)||this};
_.U(ly,_.V);ly.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XC(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
ly.prototype.computeConfirmButton_=function(e){var z={text:e.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};e.confirmNavigationEndpoint?z.navigationEndpoint=e.confirmNavigationEndpoint:e.confirmServiceEndpoint&&(z.serviceEndpoint=e.confirmServiceEndpoint);return z};
ly.prototype.computeShowTitle_=function(e){return!(e==null||!e.title)};
_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ly.prototype,"data",void 0);_.d([_.F({computed:"computeShowTitle_(data)"}),_.B("design:type",Boolean)],ly.prototype,"showTitle",void 0);_.d([_.fP({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ly);
_.u(ly,"yt-fancy-dismissible-dialog-renderer",function(){if(cxW===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;yxY===void 0&&(yxY=document.createElement("template"));var w=yxY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);cxW=e}e=cxW;return e});var AxE;var ZXY;var Qy=function(){var e=_.V.apply(this,arguments)||this;e.spinnerActive=!1;return e};
_.U(Qy,_.V);Qy.prototype.created=function(){jK3(2201)};
Qy.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Qy.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Qy.prototype.onIronOverlayClosed=Qy.prototype.onIronOverlayClosed;Qy.prototype.onIronOverlayOpened=Qy.prototype.onIronOverlayOpened;_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.MB),_.B("design:type",Object)],Qy.prototype,"tpYtIronOverlayBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],Qy.prototype,"data",void 0);_.d([_.F(),_.B("design:type",Object)],Qy.prototype,"spinnerActive",void 0);
_.d([_.Qi("iron-overlay-opened"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qy.prototype,"onIronOverlayOpened",null);_.d([_.Qi("iron-overlay-closed"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Qy.prototype,"onIronOverlayClosed",null);_.d([_.fP({is:"yt-loading-renderer",disableElementRegistration:!0})],Qy);
_.u(Qy,"yt-loading-renderer",function(){if(ZXY===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;AxE===void 0&&(AxE=document.createElement("template"));var w=AxE;C.call(z,w.content.cloneNode(!0),e.content.firstChild);ZXY=e}e=ZXY;return e},{mode:2});var pzY;var eQo;var m_=function(){var e=_.V.apply(this,arguments)||this;e.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);e.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);e.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";e.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return e};
_.U(m_,_.V);_.Y=m_.prototype;_.Y.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.Y.onDarkModeToggledAction=function(e){this.isDarkTheme=e};
_.Y.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.Y.openPopupHandler_=function(e){e.detail===this.hostElement&&this.hostElement.hidden&&_.eA(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.Y.onDismissButtonTap_=function(){var e;this.closeOnDismissButton_.has(((e=this.data)==null?void 0:e.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.eA(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Y.onAcceptButtonTap_=function(){var e;this.closeOnAcceptButton_.has(((e=this.data)==null?void 0:e.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.eA(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.Y.computeHasHeader_=function(e){return!!e.headerBackgroundImage};
_.Y.computeLayoutStyle_=function(e){return e};
_.Y.computePopupSize_=function(e){return e};
_.Y.computeIconType_=function(e){return e.dialogIcon&&e.dialogIcon.iconType?e.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":e.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":e.dialogIcon.iconType:""};
_.Y.computeIsLogo_=function(e){return!!e.dialogIcon&&!!e.dialogIcon.iconType&&(e.dialogIcon.iconType==="YOUTUBE_LOGO"||e.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||e.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.Y.computeHasCustomLogo=function(e){return!(e==null||!e.headerForegroundImage)};
_.Y.computeCustomLogo=function(e,z){if(e!=null&&e.headerForegroundImage)return e.headerForegroundImageDark?z?e.headerForegroundImageDark:e.headerForegroundImage:e.headerForegroundImage};
_.Y.computeHeaderBackgroundImage=function(e,z){if(e!=null&&e.headerBackgroundImage)return z&&(e==null?0:e.headerBackgroundImageDark)?e.headerBackgroundImageDark:e.headerBackgroundImage};
_.Y.shouldShowIconContainer=function(e,z){return e&&!z};
_.Y.shouldShowNonYouTubeIcon=function(e,z){return!e&&!z};
_.Y.getLogoImageId=function(e){var z,C,w;return(e=(z=this.computeCustomLogo(e,this.isDarkTheme))==null?void 0:(C=z.thumbnails)==null?void 0:(w=C[0])==null?void 0:w.height)&&e%31===0?"custom-logo-with-padding":"custom-logo"};
m_.prototype.openPopupHandler_=m_.prototype.openPopupHandler_;m_.prototype.dataChanged_=m_.prototype.dataChanged_;_.d([_.W(_.Fr.YtRendererstamperBehavior),_.B("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.d([_.F(),_.B("design:type",Boolean)],m_.prototype,"isDarkTheme",void 0);
_.d([_.F({computed:"computeCustomLogo(data, isDarkTheme)"}),_.B("design:type",Object)],m_.prototype,"customLogo",void 0);_.d([_.F({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.B("design:type",Object)],m_.prototype,"headerBackgroundImage",void 0);_.d([_.F(),_.B("design:type",Object)],m_.prototype,"data",void 0);_.d([_.F({computed:"computeHasHeader_(data)"}),_.B("design:type",Boolean)],m_.prototype,"hasHeader",void 0);
_.d([_.F({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.B("design:type",Object)],m_.prototype,"layoutStyle",void 0);_.d([_.F({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.B("design:type",Object)],m_.prototype,"popupSize",void 0);_.d([_.F({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],m_.prototype,"hasLogo",void 0);
_.d([_.F({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.B("design:type",Boolean)],m_.prototype,"hasCustomLogo",void 0);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],m_.prototype,"dataChanged_",null);_.d([_.Qi("yt-popup-opened"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],m_.prototype,"openPopupHandler_",null);
_.d([_.fP({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],m_);
_.u(m_,"yt-upsell-dialog-renderer",function(){if(eQo===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;pzY===void 0&&(pzY=document.createElement("template"));var w=pzY;C.call(z,w.content.cloneNode(!0),e.content.firstChild);eQo=e}e=eQo;return e},{mode:2});var zQ5=_.f(function(e){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.x(_.l,{cond:e.title,then:function(z){return _.x("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},z)}}))},"Gj"),CxW=_.f(function(e){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.x(_.PF,{data:e.closeButton},{buttonViewModel:function(z){return _.x("div",null,_.x(_.iz,{data:z.data}))}}))},"Hj"),wd3=_.f(function(e){var z=e.data;
return _.x(_.Qw,null,_.x("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.x("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.x(_.l,{cond:function(){return!!z().image&&!!z().title},
then:function(){return _.x(_.Zf,{data:function(){return z().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.x("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.x(_.l,{cond:function(){return z().title},
then:function(C){return _.x("h3",{class:"miniAppGameInfoDialogViewModelTitle"},C)}}),_.x(_.l,{cond:function(){return z().primaryGenre},
then:function(C){return _.x("span",{class:"miniAppGameInfoDialogViewModelGenre"},C)}}))),_.x(_.l,{cond:function(){var C=z().description;
return C&&C.length<=150},
then:function(){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.x("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return z().description}))}}))},"Ij"),KkC=_.f(function(e){e=e.infoRows;
var z=_.lh().resolve(_.Vl),C=_.M("enable_displaying_ppn");return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.x(_.ui,{each:e},function(w){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.x(_.l,{cond:function(){return w.label},
then:function(K){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},K)}}),_.x(_.l,{cond:function(){return w.attributedLabel},
then:function(K){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.x(_.U2,{text:K,noPreWrap:!0}))}}),_.x(_.l,{cond:function(){return w.value},
then:function(K){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},K)}}),_.x(_.l,{cond:function(){return w.attributedValue},
then:function(K){return _.x("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.x(_.U2,{text:K,noPreWrap:!0}))}}))}),_.x(_.l,{cond:function(){return C&&z.clientData.has("post_play_nonce")},
then:function(){return _.x("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.x("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.x("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},z.getData("post_play_nonce")))}}))},"Jj"),o9o=_.f(function(e){var z=e.data;
return _.x("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.x(zQ5,{title:function(){return z().dialogTitle}}),_.x(wd3,{data:z}),_.x(_.l,{cond:function(){return z().infoRow},
then:function(C){return _.x(KkC,{infoRows:C})}}),_.x(CxW,{closeButton:function(){return z().closeButton}}))},"Kj");
o9o.idomCompat=!0;_.KU(o9o,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;return _.x("yt-gulp-triggering-dialog-view-model",{class:_.qT("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.x(_.Zf,{data:function(){return z().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.x("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.x("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.x("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x(_.l,{cond:function(){return z().bodyText},
then:function(C){return _.x(_.ui,{each:C},function(w){return _.x("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.x(_.U2,{text:w}))})}})),_.x("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.x(_.PF,{data:function(){return z().dismissButton}},{buttonViewModel:function(C){return _.x("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.x(_.iz,{data:C.data}))}}),_.x(_.PF,{data:function(){return z().actionButton}},{buttonViewModel:function(C){return _.x("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.x(_.iz,{data:C.data}))}}))))},"Lj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.vh}});var GQL=_.f(function(e){var z=e.data;e=_.pP(function(){return z().agreements},[]);
return _.x("installment-agreements-view-model",{class:_.qT("ytInstallmentAgreementsViewModelHost")},_.x(_.ui,{each:e},function(C){return _.x("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.x("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.x(_.U2,{text:C.label})),_.x("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.x(_.PF,{data:function(){return C.openButton}},{buttonViewModel:_.iz})))}))},"Mj");
GQL.idomCompat=!0;var Y0E=_.f(function(e){var z=_.b(_.zx(function(){var y,Z;return((y=e.data().createPlaylistDialogFormSchema)==null?0:(Z=y.initialValues)==null?0:Z.title)?e.data().createPlaylistDialogFormSchema.initialValues.title:""})),C=z.next().value,w=z.next().value;
z=_.b(_.zx(function(){e.data();return!1}));
var K=z.next().value,G=z.next().value;z=_.b(_.zx(function(){e.data();return!1}));
var X=z.next().value,J=z.next().value;z=_.b(_.zx(function(){var y,Z;return(y=e.data().createPlaylistDialogFormSchema)==null?void 0:(Z=y.initialValues)==null?void 0:Z.visibility}));
var q=z.next().value,T=z.next().value;z=_.b(_.zx(function(){e.data();return!1}));
var Q=z.next().value,m=z.next().value;z=_.b(_.zx(function(){var y,Z;return(y=e.data().createPlaylistDialogFormSchema)==null?void 0:(Z=y.initialValues)==null?void 0:Z.isCollaborative}));
var a=z.next().value,n=z.next().value,H=_.kI("div");_.sH(function(){var y=H.value.querySelector("textarea");y&&(y.value=C())},"axFRaf");
_.sg(function(){var y;_.ZZf((y=e.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var Z=C();var YN=q(),Jk=a(),v1=e.data();Z={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Z,privacyStatus:YN,videoIds:v1.videoIds,sourcePlaylistId:v1.sourcePlaylistId,params:Jk?v1.createPlaylistParamsCollaborationEnabled:v1.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.lh().resolve(_.ms).resolveCommand(Z)},
isValid:function(){return K()&&!X()&&!Q()}})});
var I=function(y){if(y!==void 0&&(w(y),!K()&&y.length>0&&G(!0),K())){var Z=ZVC(e.data());if(Z){var YN=Z.minLength;Z=Z.maxLength;YN&&y.length<YN?J(!0):Z&&y.length>Z?J(!0):J(!1)}}},L=function(){var y=!(!a()||q()!=="PRIVATE");
m(y)},h=function(y){y!==void 0&&(T(y),L())},E=function(){if(Q())return em5(e.data())},N=function(){n(!a());
L()},D=function(){return{validate:function(y){if(K()){var Z=ZVC(e.data());
if(Z){var YN=Z.minLength;Z=Z.translations;if(YN&&y.length<YN)return Z==null?void 0:Z.minLengthErrorMessage}}}}},g=function(){var y=ZVC(e.data()),Z=y==null?void 0:y.maxLength,YN;
y=y==null?void 0:(YN=y.translations)==null?void 0:YN.maxLengthErrorMessage;if(Z&&y)return{maxChars:Z,errorMessage:y}};
return _.x("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.x("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:H},_.x(_.PF,{data:function(){return e.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.x(_.JUW,{data:y.data,
text:C,onInput:I,validation:D,characterLimit:g})},
textFieldViewModel:function(y){return _.x(_.XJC,{data:y.data,text:C,onInput:I,validation:D,characterLimit:g})}})),_.x("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.x(_.PF,{data:function(){return e.data().playlistVisibility}},{dropdownViewModel:function(y){return _.x(_.n5o,{data:y.data,
onSelected:h,error:E})}})),_.x(_.l,{cond:function(){return!!e.data().playlistCollaborate},
then:function(){return _.x("div",null,_.x(_.PF,{data:function(){return e.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.x(_.OeY,{data:y.data,
onTap:N})}}))}}))},"Oj");var b6l=_.f(function(e){var z=e.data;return _.x("upsell-offer-table-cell-content-view-model",null,_.x("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.x(_.d1,null,_.x(_.fd,{when:function(){var C;return(C=z().icon)==null?void 0:C.iconType}},function(){return _.x("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.x(_.mB,{icon:function(){var C;
return(C=z().icon)==null?void 0:C.iconType.toString()}}))}),_.x(_.fd,{when:function(){return z().title}},function(){return _.x(_.U2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return z().title}})}),_.x(_.fd,{when:function(){return z().subtitle}},function(){return _.x(_.U2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return z().subtitle}})}),_.x(_.fd,{when:function(){return z().infoText}},function(){return _.x(_.U2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return z().infoText}})}),_.x(_.fd,{when:function(){return z().featureDescription}},function(){return _.x(_.U2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return z().featureDescription}})}),_.x(_.fd,{when:function(){return z().note}},function(){return _.x(_.U2,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return z().note}})})),_.x(_.l,{cond:function(){var C;
return(C=z().icon)==null?void 0:C.iconAccessibilityText},
then:function(){return _.x("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var C;return(C=z().icon)==null?void 0:C.iconAccessibilityText})}})))},"Pj");
b6l.idomCompat=!0;var XdZ=_.f(function(e){var z=e.data;var C=e.cellIndex;var w=e.rowIndex;return _.x("upsell-offer-table-cell-view-model",null,_.x("div",{class:_.qT("ytUpsellOfferTableCellViewModelCellWrapper",function(){return z().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":z().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var K,G;return"cell-"+((K=w==null?void 0:w())!=null?K:0)+"-"+((G=C==null?void 0:C())!=null?G:0)},
role:function(){return z().isFirstRow?"columnHeader":z().isFirstColumn?"rowheader":"gridcell"}},_.x(_.PF,{data:function(){return z().contents}},{upsellOfferTableCellContentViewModel:b6l})))},"Qj");
XdZ.idomCompat=!0;var J9L=_.f(function(e){var z=e.data;var C=e.upsellTableIsFirstRow;var w=e.rowIndex;var K=function(){return(C==null?0:C())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},G=function(){return(C==null?0:C())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.x("ytm-upsell-offer-table-row-view-model",null,_.x("div",{class:function(){return(C==null?0:C())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(w==null?void 0:w())+"-1 cell-"+(w==null?void 0:w())+"-2"}},_.x(_.PF,{data:function(){return z().rowHeaderCell}},{upsellOfferTableCellViewModel:function(X){return _.x("div",{class:K},_.x(XdZ,{data:X.data,
cellIndex:0,rowIndex:w}))}}),_.x("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.x(_.PF,{data:function(){return z().contentCells}},{upsellOfferTableCellViewModel:function(X,J){return _.x("div",{class:G},_.x(XdZ,{data:X.data,
cellIndex:function(){return J()+1},
rowIndex:w}))}}))))},"Rj");
J9L.idomCompat=!0;var kQq=_.f(function(e){var z=e.data;return _.x("ytm-upsell-offer-table-view-model",null,_.x("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.x("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.x(_.PF,{data:function(){return z().rows}},{upsellOfferTableRowViewModel:function(C,w){return _.x(J9L,{data:C.data,
upsellTableIsFirstRow:function(){return w()===0},
rowIndex:w})}}))))},"Sj");
kQq.idomCompat=!0;var q0L=_.f(function(e){var z=function(){return e.data()},C=_.pP(e.noPadding,!1),w=function(){var G,X;
return(X=(G=z().logo.accessibilityData)==null?void 0:G.label)!=null?X:""},K={};
return _.x("upsell-view-model",{class:_.qT("ytUpsellViewModelHost",(K.ytUpsellViewModelHostNoPadding=function(){return C()},K.ytUpsellViewModelHostWide=function(){return z().offerTable!==void 0},K))},_.x("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.x(_.l,{cond:function(){return _.yA(z().logo)},
then:function(G){return _.x(_.Zf,{data:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:w})}})),_.x("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.x(_.U2,{text:function(){return z().title}})),_.x("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.x(_.ui,{each:function(){var G;
return(G=z().subtitles)!=null?G:[]},
keyBy:"INDEX"},function(G){var X={};return _.x("div",{class:_.qT("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(X.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return z().offerTable!==void 0},X))},_.x(_.U2,{text:G}))})),_.x("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.x(_.ui,{each:function(){var G;
return(G=z().benefitInfos)!=null?G:[]},
keyBy:"INDEX"},function(G){return _.x(_.l,{cond:function(){return G().info},
then:function(X){return _.x("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.x(_.mB,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.x(_.U2,{text:X}))}})})),_.x(_.l,{cond:function(){return z().offerTable!==void 0},
then:function(){return _.x("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.x(_.PF,{data:function(){return z().offerTable}},{upsellOfferTableViewModel:function(G){return _.x(kQq,{data:G.data})}}))}}),_.x("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.x(_.ui,{each:function(){var G;
return(G=z().legalInfos)!=null?G:[]},
keyBy:"INDEX"},function(G){var X={};return _.x("div",{class:_.qT("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(X.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return z().offerTable!==void 0},X))},_.x(_.U2,{text:G}))})))},"Tj");var x0b=_.f(function(e){var z=e.data;e={};e=(e.ytMiniAppScoreChallengeViewModelScoreRadial=!0,e.ytMiniAppScoreChallengeViewModelDarkScoreRadial=zmf(),e);return _.x("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.x("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return z().title}),_.x("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return z().subtitle}),_.x("div",{class:_.VA(e)},_.x("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return z().score})),_.x("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return z().prompt}))},"Uj");var TZo=function(){this.store=_.AK();this.formId=""};
TZo.prototype.onInit=function(e){e.formId&&(this.formId=e.formId,this.store.dispatch(_.Yz({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
TZo.prototype.cleanup=function(){this.store.dispatch(_.Yz({type:"RESET_COMMAND_MAP"}))};var $0L=_.f(function(e){function z(J){if(J&&(J=_.r(J,_.hm)))return Object.assign({},J,{isSelected:G()})}
var C=_.b(_.zx(function(){var J,q;return(q=(J=_.r(e.data().option,_.hm))==null?void 0:J.isSelected)!=null?q:!1})),w=C.next().value,K=C.next().value,G=w;
_.sg(function(){var J;_.ZZf((J=e.data().formSchema)==null?void 0:J.id,{onSubmit:function(){var q=_.lh().resolve(_.ms),T=!!e.data().selectedCommand,Q=!!e.data().unselectedCommand;if(G()){if(T)var m=e.data().selectedCommand}else Q&&(m=e.data().unselectedCommand);m=_.SQ(m);z(e.data().option)&&!m?(q="",!T&&Q?q="selected ":T&&!Q&&(q="unselected "),T=new _.uh("No "+q+"command found for SelectionListItemFormViewModel"),_.yG(T)):m&&q.resolveCommand(m)},
isValid:function(){return!0}})});
var X=function(){K(!G())};
_.BC(function(){var J,q,T=(J=e.data())==null?void 0:(q=J.formSchema)==null?void 0:q.id;T&&_.Ix()().delete(T)});
return _.x("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.x("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.x(_.U2,{text:function(){return e.data().paragraph}})),_.x(_.l,{cond:function(){return z(e.data().option)},
then:function(J){return _.x(_.Ij,{data:J,isCompact:!0,hideSelectionTextChevron:!0,onTap:X,disableHorizontalPadding:!0})}}))},"Vj");var l1Z=_.f(function(e){var z=e.data;var C=e.disablePadding;var w=e.className;var K=_.kI("yt-dialog-header-view-model"),G=function(){var q=z().imageBanner;a:switch(z().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var T="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:T="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:q,style:T,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},X=function(){return z().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
J=function(){return z().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.sg(function(){var q=function(){_.eA(K.value,"yt-refit-popups-action")},T;
(T=K.value)==null||T.addEventListener("image-loaded",q);_.BC(function(){var Q;(Q=K.value)==null||Q.removeEventListener("image-loaded",q)})});
e={};return _.x("yt-dialog-header-view-model",{el:K,class:_.qT(w,(e.ytDialogHeaderViewModelHost=!0,e.ytDialogHeaderViewModelHostDisablePadding=C,e.ytDialogHeaderViewModelHostCentered=J,e))},_.x(_.l,{cond:function(){return z().imageBanner},
then:function(){var q={};return _.x("div",{class:_.qT(w,(q.ytDialogHeaderViewModelBanner=!0,q.ytDialogHeaderViewModelBannerFullBleed=X,q)),style:_.QC({"max-height":function(){return z().assetContainerMaxHeight!==void 0?z().assetContainerMaxHeight+"px":void 0}})},_.x(_.gH,{data:G,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.x(_.l,{cond:function(){return z().headerBlock},
then:function(){var q={};return _.x("div",{class:_.qT("ytDialogHeaderViewModelHeaderBlock",(q.ytDialogHeaderViewModelHeaderBlockCentered=J,q))},_.x(_.PF,{data:function(){return z().headerBlock}},{contentPreviewImageViewModel:function(T){return _.x(_.gH,{data:T.data,
notifyOnLoaded:!0})}}))}}),_.x(_.l,{cond:function(){return z().customBanner},
then:function(q){var T={};return _.x("div",{class:_.qT("ytDialogHeaderViewModelCustomAssetContainer",(T.ytDialogHeaderViewModelCustomAssetContainerCentered=J,T))},_.x(_.PF,{data:q},{avatarStackViewModel:_.m9}))}}),_.x(_.l,{cond:function(){return z().headline},
then:function(q){return _.x("h2",null,_.x(_.U2,{text:q,className:"ytDialogHeaderViewModelText"}))}}))},"Wj");
l1Z.idomCompat=!0;var Qf3=_.f(function(e){var z=_.$0g(function(){return e.data().formId}),C=z.submitForm,w=z.isValid;
return _.x("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.x(_.PF,{data:function(){return e.data().panelFooter}},{panelFooterViewModel:function(K){return _.x(_.i8,{data:K.data,
disablePadding:!0,disablePrimaryButton:function(){return!w()},
onClickPrimaryButton:function(){C()}})}}))},"Xj");var m0W=_.f(function(e){var z=function(){var C,w;return(w=(C=_.r(e.data().rendererContext,_.Re))==null?void 0:C.label)!=null?w:""};
return _.x("yt-dialog-image-content-view-model",{class:_.qT("ytDialogImageContentViewModelHost",e.className)},_.x(_.l,{cond:function(){return _.yA(e.data().image)},
then:function(C){var w={};return _.x("div",{style:_.QC((w.width=(0,_.rs)(function(){var K;return(K=e.data().imageMaxWidth)!=null?K:""}),w)),
class:"ytDialogImageContentViewModelImage"},_.x(_.Zf,{data:C,alt:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.x(_.U2,{text:function(){return e.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Yj");var Mra=_.f(function(e){var z=_.eQ(e,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),C=z.elRefCallback;e=z.Icon;var w=z.Asset,K=z.assetType,G=z.Title,X=z.LeadingActionHeader,J=z.TrailingActionHeader,q=z.headerPosition,T=z.Content,Q=z.buttonLayout,m=z.buttonStyle,a=z.primaryButtonWiz,n=z.secondaryButtonWiz,H=z.contentAlignment,I=z.isFullscreen,L=z.width,h=z.maxHeight,E=z.isHeaderWizDefined,N=z.Header,D=z.isFooterWizDefined,
g=z.Footer;z=_.kI("dialog-layout",function(fo){C==null||C(fo)});
var y=a?function(){var fo={};return a({buttonOverrides:function(){return{style:(m==null?void 0:m())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.qT((fo["yt-spec-dialog-layout__dialog-layout-button"]=!0,fo["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Q==null?void 0:Q())===0||(Q==null?void 0:Q())===2},fo))})}:void 0,Z=n?function(){var fo={};
return n({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.qT((fo["yt-spec-dialog-layout__dialog-layout-button"]=!0,fo["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(Q==null?void 0:Q())===0||(Q==null?void 0:Q())===2},fo))})}:void 0,YN=function(){return(!!G||!!X||!!J)&&q()===0},Jk={},v1={},lg={},M5={};
return _.x("dialog-layout",{el:z,class:_.qT((Jk["yt-spec-dialog-layout"]=!0,Jk["yt-spec-dialog-layout--dialog-layout-fullscreen"]=I,Jk["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!I()},Jk["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return h()===1},Jk["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(K==null?void 0:K())===1},Jk)),
style:function(){return(L==null?void 0:L())!==void 0?"width: "+L()+"px;":""}},e?_.x("div",{class:_.qT((v1["yt-spec-dialog-layout__dialog-layout-icon"]=!0,v1["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!w&&q()===1},v1["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return H()===1},v1))},_.x(e,null)):null,_.x(_.l,{cond:E,
then:function(){return N?_.x("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.x(N,null)):null},
else:function(){return _.x(_.Qw,null,_.x(_.l,{cond:YN,then:function(){return _.x(a1E,{contentAlignment:H,LeadingActionHeader:X,TrailingActionHeader:J,Title:G,isAboveAsset:!!w})}}),w?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.x(w,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.x("div",{class:_.qT((lg["yt-spec-dialog-layout__dialog-layout-container"]=!0,lg["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(H==null?void 0:H())===1},
lg["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!G&&!(N&&E())||!!w&&(q==null?void 0:q())===0},lg))},_.x(_.l,{cond:function(){return G&&!N&&(q==null?void 0:q())===1},
then:function(){return _.x(a1E,{contentAlignment:H,LeadingActionHeader:X,TrailingActionHeader:J,Title:G,isAboveAsset:!1})}}),T?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.x(T,null))):null,_.x(_.l,{cond:D,
then:function(){return g?_.x("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.x(g,null)):null}}),y||Z?_.x(n9q,{footerClasses:_.qT((M5["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,M5["yt-spec-dialog-layout__dialog-layout-footer"]=!0,M5["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(Q==null?void 0:Q())===2},M5["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(Q==null?void 0:Q())===1},M5)),
PrimaryButton:y,SecondaryButton:Z}):null))},"Zj"),a1E=_.f(function(e){var z=_.eQ(e,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),C=z.contentAlignment,w=z.LeadingActionHeader;e=z.Title;var K=z.TrailingActionHeader,G=z.isAboveAsset,X=z.enableLeadingActionHeader;z={};return _.x("div",{class:_.qT((z["yt-spec-dialog-layout__dialog-header-container"]=!0,z["yt-spec-dialog-layout__dialog-header"]=!0,z["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=G,z["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(C==null?void 0:C())===1&&X()},z))},_.x(_.l,{cond:function(){return X()},
then:function(){return w?_.x("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.x(w,null)):null}}),e?_.x("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.x(e,null)):null,K?_.x("div",null,_.x(K,null)):null)},"$j"),n9q=_.f(function(e){var z=e.footerClasses;
var C=e.PrimaryButton;e=e.SecondaryButton;return _.x("div",{class:z},e?_.x(e,null):null,C?_.x(C,null):null)},"ak");var r95=new _.Mt("TIME_PICKER_VIEW_MODEL_TOKEN");var H6v=_.f(function(e){var z=e.data;return _.x("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.x("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.x(_.PF,{data:function(){return z().avatar}},{avatarViewModel:_.lO})),_.x("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x(_.U2,{text:function(){return z().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"bk");var U0l=_.f(function(e){return _.x("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.x(_.U2,{text:function(){return e.data().inviteMessage}})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.x(_.U2,{text:function(){return e.data().attributedAccountSectionHeaderText}})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.x(_.PF,{data:function(){return e.data().accountAvatar}},{avatarViewModel:_.lO}),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.x(_.U2,{text:function(){return e.data().accountName}}),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.x(_.U2,{text:function(){return e.data().handle}}))),_.x(_.PF,{data:function(){return e.data().trailingButton}},{buttonViewModel:_.iz})),_.x("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.x(_.U2,{text:function(){return e.data().termsOfService}})))},"ck");var v9Z=_.f(function(e){var z=e.data;return _.x("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.x("div",{class:"ytAccessConfirmationViewModelContent"},_.x(_.PF,{data:function(){var C;return(C=z().avatar)!=null?C:z().dualAvatar}},{dualAvatarViewModel:function(C){return _.x(_.MgW,{data:C.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(C){return _.x(_.Qh,{data:C.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.x("h2",{class:"ytAccessConfirmationViewModelTitle"},_.x(_.U2,{text:function(){return z().title}})),_.x(_.U2,{text:function(){return z().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"dk");var I1C=_.f(function(e){var z=function(){return e.data().checkboxGroup},C=_.b(_.zx(function(){var X;
return(X=_.r(z(),_.$Lb))==null?void 0:X.defaultSelectedKeys})),w=C.next().value,K=C.next().value;
_.sH(function(){var X=e.data().formSchema,J=X==null?void 0:X.submitConfig;X&&J&&_.AH5(X.id,{isValid:function(){var q;return((q=w())!=null?q:[]).length>0},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:w()||[]}}},
submitConfig:J})},"BJejnc");
var G=function(X,J){K(J)};
return _.x("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.x(_.PF,{data:z},{checkboxGroupViewModel:function(X){return _.x(_.GU3,{data:X.data,onItemTap:G,controlledMode:!1})}}))},"fk");var Wkv=_.f(function(e){var z=e.data;var C=void 0;e=_.b(_.zx(function(){var Q;return((Q=_.r(z().content,_.lEL))==null?void 0:Q.defaultSelectedKey)||""}));
var w=e.next().value,K=e.next().value,G,X=function(){K("");var Q;(Q=C)==null||Q.cleanup()};
_.sg(function(){C=new TZo;window.addEventListener("yt-popup-closed",X)});
_.sH(function(){if(C&&G!==z().formId&&(C.onInit(z()),(G=z().formId)&&w())){var Q=C,m={key:w()};m.command&&Q.store.dispatch(c1b(G,m.command))}},"bo7oA");
_.BC(function(){window.removeEventListener("yt-popup-closed",X)});
var J=function(Q,m,a){m.key&&a&&m.key!==w()&&(K(m.key),C&&m.command&&C.store.dispatch(c1b(a,m.command)))},q=function(){if(_.r(z().content,_.lEL))return!(w==null?0:w())},T=_.lh().resolve(_.$B(r95));
return _.x("yt-dialog-view-model",{class:_.qT("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.x(Mra,{Header:function(){return _.x(_.PF,{data:function(){return z().header}},{dialogHeaderViewModel:function(Q){return _.x(l1Z,{data:Q.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!z().header},
Content:function(){return _.x(_.PF,{data:function(){return z().customContent?z().customContent:z().content}},Object.assign({},{basicContentViewModel:_.Ub,
createPlaylistDialogFormViewModel:Y0E,collaborativePlaylistInviteMessageViewModel:U0l,preferredLanguageSettingsPanelViewModel:I1C,miniAppScoreChallengeViewModel:x0b,radioButtonGroupViewModel:function(Q){var m=Q.data;return _.x(_.KJ$,{data:m,selectedKey:w,onSelected:J,groupName:function(){return m().formId}})},
selectionListItemFormViewModel:$0L,upsellViewModel:function(Q){return _.x(q0L,{data:Q.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:H6v,installmentAgreementsViewModel:GQL,accessConfirmationViewModel:v9Z,listViewModel:function(Q){return _.x(_.D9U,{data:Q.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:m0W},T&&{timePickerViewModel:T}))},
Footer:function(){return _.x(_.PF,{data:function(){return z().footer}},{panelFooterViewModel:function(Q){return _.x(_.i8,{data:Q.data,
disablePadding:!0,disablePrimaryButton:q})},
formPanelFooterViewModel:Qf3,formFooterViewModel:function(Q){return _.x(_.tJ5,{data:Q.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!z().footer}}))},"hk");
Wkv.idomCompat=!0;_.KU(Wkv,"yt-dialog-view-model",{props:{data:_.vh},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Px5=_.f(function(e){var z=e.data;return _.x("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.x(_.l,{cond:function(){return z().title},
then:function(C){return _.x("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.x(_.U2,{text:C,className:"ytPanelHeaderViewModelTitle"}))}}),_.x(_.l,{cond:function(){return z().subtitle},
then:function(C){return _.x(_.U2,{text:C,className:"ytPanelHeaderViewModelSubtitle"})}}))},"ik"),RQE=_.f(function(e){var z=e.data;
var C=_.t94(function(){return z().rendererContext});
e={};return _.x("yt-panel-header-view-model",{class:_.qT("ytPanelHeaderViewModelHost",(e.ytPanelHeaderViewModelHostHideDivider=function(){return!!z().shouldHideDivider},e.ytPanelHeaderViewModelHostCompact=function(){return!!z().subtitle},e)),
"aria-label":function(){var w;return(w=C())==null?void 0:w.label}},_.x(_.l,{cond:function(){return _.dE(z().rendererContext)},
then:function(){return _.x(_.HeS,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.u3(z().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.x(Px5,{data:z}))},
else:function(){return _.x(Px5,{data:z})}}),_.x("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.x(_.PF,{data:function(){return z().trailingButtons}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
className:"ytPanelHeaderViewModelButton"})}})))},"jk");
RQE.idomCompat=!0;var Lkb=_.f(function(e){var z=_.T9(function(G){var X;if((X=e.skipContentClick)==null?0:X.call(e))return!1;e.onContentWrapperClick(G);return!0}),C,w,K;
return _.x("div",{class:_.qT("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return e.isAnimating()?"transform: translateY("+e.currentY()+"px);transition: 0.2s":""}},(C=e.header)==null?void 0:C.call(e),_.x("div",{id:e.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.QC({"max-height":(0,_.rs)(e.maxHeightForContentWrapper)}),"on:scroll":_.T9(function(G){return e.onScroll(G),!1}),
"on:touchmove":_.T9(function(G){return G.stopPropagation(),!1})},_.x("div",{el:_.ej(e.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":z},(w=e.body)==null?void 0:w.call(e))),(K=e.footer)==null?void 0:K.call(e))},"kk");
Lkb.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var hQ$=_.f(function(e){var z=_.pP(e.leadingLabel),C=_.pP(e.trailingLabel),w=_.pP(e.footerButtonType),K=function(){return z()||C()||e.hasPrimaryButton()||e.hasSecondaryButton()},G={},X=_.qT("yt-spec-bottom-sheet-layout__primary-button",(G["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return w()===0&&e.hasPrimaryButton()},G["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return w()===1&&e.hasPrimaryButton()},G["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return w()===2&&e.hasPrimaryButton()},G["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return w()===3&&e.hasPrimaryButton()},G));
G={};var J=_.qT("yt-spec-bottom-sheet-layout__secondary-button",(G["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return w()===1&&e.hasSecondaryButton()},G["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return w()===2&&e.hasSecondaryButton()},G["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return w()===3&&e.hasPrimaryButton()},G));
return _.x(_.l,{cond:e.hasFooterOverride,then:function(){var q;return _.x(_.Qw,null,(q=e.footerOverride)==null?void 0:q.call(e))},
else:function(){return _.x(_.l,{cond:K,then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.x(_.l,{cond:function(){return z()||C()},
then:function(){var q={};return _.x("div",{class:_.qT("yt-spec-bottom-sheet-layout__footer-label-wrapper",(q["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!e.hasPrimaryButton()},q))},_.x(_.l,{cond:z,
then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},z)}}),_.x(_.l,{cond:C,
then:function(){return _.x("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},C)}}))}}),_.x(_.l,{cond:function(){return e.hasPrimaryButton()||e.hasSecondaryButton()},
then:function(){var q={};return _.x("div",{class:_.qT("yt-spec-bottom-sheet-layout__footer-button-wrapper",(q["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.miT,q))},_.x(_.l,{cond:function(){return e.hasSecondaryButton()&&w()!==0},
then:function(){var T;return _.x("div",{class:J},(T=e.secondaryButton)==null?void 0:T.call(e))}}),_.x(_.l,{cond:e.hasPrimaryButton,
then:function(){var T;return _.x("div",{class:X},(T=e.primaryButton)==null?void 0:T.call(e))}}))}}))}})}})},"lk");
hQ$.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var O6$=_.f(function(e){var z=_.pP(e.title),C=_.pP(e.subtitle);return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:e.headerId,"on:touchstart":_.T9(function(w){var K;(K=e.touchstart)==null||K.call(e,w);return!1}),
"on:touchmove":_.T9(function(w){var K;(K=e.touchmove)==null||K.call(e,w);return!1}),
"on:touchend":_.T9(function(w){var K;(K=e.touchend)==null||K.call(e,w);return!1})},_.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.x(_.l,{cond:e.hasHeaderOverride,
then:function(){var w;return _.x(_.Qw,null,(w=e.headerOverride)==null?void 0:w.call(e))},
else:function(){var w={};return _.x("div",{class:_.qT((w["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,w["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=z,w))},_.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.x(_.l,{cond:z,then:function(){return _.x(_.Qw,null,_.x("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},z),_.x(_.l,{cond:C,then:function(){return _.x("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
C)}}))}})),_.x(_.l,{cond:function(){return z()&&e.hasActionHeader()},
then:function(){var K;return _.x("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(K=e.actionHeader)==null?void 0:K.call(e))}}))}}))},"mk");
O6$.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.f(function(e){function z(YN){if(!N&&typeof MutationObserver!=="undefined"){var Jk={childList:!0};"MutationObserver"in window&&(N=new MutationObserver(C.bind(void 0,YN)),N.observe(YN,Jk))}}
function C(YN){typeof N!=="undefined"&&(D["content-wrapper"]===void 0&&(D["content-wrapper"]=YN.children[0].clientHeight),I(D["content-wrapper"]),H()>L()||h(H()))}
function w(){n(window.innerHeight);H()>L()||h(H());g.isFullScreen[0]()&&H()>L()?y().dispatch("Snap To Full Screen",{maxHeight:E()}):y().dispatch("Snap To Neutral Position",{maxHeight:L()})}
function K(YN){document.body.style.overscrollBehavior="none";YN.preventDefault();y().dispatch("Touch Start",{event:YN})}
function G(YN){YN.preventDefault();y().dispatch("Touch Move",{event:YN,contentScrollable:H()>L(),fullContentWrapperHeight:E(),contentWrapperHeight:L(),heightMap:D,contentWrapperId:"content-wrapper",header:G15(e),footer:G15(e),headerDivHeight:D["bottom-sheet-header"],footerDivHeight:D["bottom-sheet-footer"]})}
function X(){document.body.style.overscrollBehavior="";g.isFullScreen[0]()?g.currentY[0]()>=60?y().dispatch("Snap To Neutral Position",{maxHeight:L()}):y().dispatch("Snap To Full Screen",{maxHeight:E()}):g.currentY[0]()>=60?J():g.currentY[0]()<=-60&&H()>L()?y().dispatch("Snap To Full Screen",{maxHeight:E()}):y().dispatch("Snap To Neutral Position",{maxHeight:L()})}
function J(){y().dispatch("Close Sheet",{clientHeight:a(),maxHeight:0});setTimeout(function(){oQZ()},250)}
var q=_.kI("div"),T=_.kI("div"),Q=_.b(_.II(window.innerHeight,void 0,"CmOsU")),m=Q.next().value;Q=Q.next().value;var a=m,n=Q;Q=_.b(_.II(0,void 0,"p0Flhb"));m=Q.next().value;Q=Q.next().value;var H=m,I=Q;Q=_.b(_.zx(function(){var YN=G15(e);return.6*a()-Cbv(YN)-w2Z(YN)}));
m=Q.next().value;Q=Q.next().value;var L=m,h=Q,E=function(){var YN=G15(e),Jk=a(),v1=D["bottom-sheet-header"],lg=D["bottom-sheet-footer"];return Jk-(YN.hasHeaderFn&&v1!==void 0?v1:Cbv(YN))-(YN.hasFooterFn&&lg!==void 0?lg:w2Z(YN))-24-24},N=null,D={},g={initialY:_.II(0,void 0,"sxdESd"),
currentY:_.II(0,void 0,"GZzqeb"),isAnimating:_.II(!1,void 0,"vJBupc"),isFullScreen:_.II(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.zx(L)},y=function(){var YN=null;return function(){if(!YN){var Jk={initialY:g.initialY[0](),currentY:g.currentY[0](),isAnimating:g.isAnimating[0](),isFullScreen:g.isFullScreen[0](),maxHeightForContentWrapper:g.maxHeightForContentWrapper[0]()};YN=KEY(Jk)}return YN}}();
_.sg(function(){window.addEventListener("resize",w);y().subscribe(function(YN){g.initialY[1](YN.initialY);g.currentY[1](YN.currentY);g.isAnimating[1](YN.isAnimating);g.isFullScreen[1](YN.isFullScreen);g.maxHeightForContentWrapper[1](YN.maxHeightForContentWrapper)});
requestAnimationFrame(function(){q.value&&(D["bottom-sheet-header"]=q.value.clientHeight);T.value&&(D["bottom-sheet-footer"]=T.value.clientHeight)})});
_.BC(function(){window.removeEventListener("resize",w);N&&(N.disconnect(),N=null)});
var Z=_.qT({"bottom-sheet-content-without-icon":function(){var YN;return!((YN=e.shouldShowIcons)==null?0:YN.call(e))}});
return _.x("bottom-sheet-layout",null,_.x(Lkb,{contentWrapperId:"content-wrapper",isAnimating:function(){return g.isAnimating[0]()},
currentY:function(){return g.currentY[0]()},
maxHeightForContentWrapper:function(){return g.maxHeightForContentWrapper[0]()},
shouldShowIcons:e.shouldShowIcons,skipContentClick:e.skipContentClick,onScroll:function(){var YN=document.getElementById("bottom-sheet-header"),Jk=document.getElementById("content-wrapper");if(YN&&Jk){var v1={};v1=(v1["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,v1["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,v1);YN.className=Jk.scrollTop>1?_.VA(v1):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:oQZ,contentWrapperEl:function(YN){z(YN);requestAnimationFrame(function(){C(YN)})},
header:function(){return _.x("div",{el:q},_.x(O6$,{touchstart:K,touchmove:G,touchend:X,title:e.headerTitle,subtitle:e.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:e.headerFn,hasHeaderOverride:e.hasHeaderFn,actionHeader:e.headerActionHeader,hasActionHeader:e.hasHeaderActionHeader}))},
footer:function(){return _.x("div",{el:T},_.x(hQ$,{footerButtonType:e.footerButtonType,leadingLabel:e.footerLeadingLabel,trailingLabel:e.footerTrailingLabel,primaryButton:e.footerPrimaryButton,hasPrimaryButton:e.hasFooterPrimaryButton,secondaryButton:e.footerSecondaryButton,hasSecondaryButton:e.hasFooterSecondaryButton,footerOverride:e.footerFn,hasFooterOverride:e.hasFooterFn}))},
body:function(){return _.x(_.l,{cond:e.hasContentFn,then:function(){var YN;return _.x("div",{class:Z},(YN=e.contentFn)==null?void 0:YN.call(e))}})}}))},"nk").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var E9L=_.f(function(e){var z=_.lh().resolve(_.qd);return _.x("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.T9(function(){return void z.closeSheet()})},_.x(_.l,{cond:function(){return!!e.header},
then:function(){return _.x("div",{class:"ytContextualSheetLayoutHeaderContainer"},e.header())}}),_.x(_.l,{cond:function(){return!!e.content},
then:function(){return _.x("div",{class:"ytContextualSheetLayoutContentContainer"},e.content())}}),_.x(_.l,{cond:function(){return!!e.footer},
then:function(){return _.x("div",{class:"ytContextualSheetLayoutFooterContainer"},e.footer())}}))},"ok");
E9L.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Fko=_.f(function(e){var z=e.data;var C=_.lh().resolve(_.ms),w=_.kI("yt-sheet-view-model",function(K){if(_.M("web_focus_first_element_sheet")||!_.M("sheet_focus_first_killswitch"))return K.addEventListener("focus",function(){LOE(K)}),function(){K.removeEventListener("focus",function(){LOE(K)})}});
e={};return _.x("yt-sheet-view-model",{"on:mousedown":_.T9(function(K){_.M("sheet_focus_first_killswitch")||K.currentTarget!==K.target&&K.preventDefault()}),
"on:focus":_.T9(function(){_.M("sheet_focus_first_killswitch")||LOE(w.value)}),
"on:mouseleave":_.T9(function(){var K,G=z==null?void 0:(K=z())==null?void 0:K.rendererContext,X;(K=(X=_.r(G,_.i3))==null?void 0:X.onHoverEnd)&&C.resolveCommand(K)}),
class:_.qT("ytSheetViewModelHost",(e.ytSheetViewModelContextual=!0,e.ytSheetViewModelDisableBackdropFilter=_.M("web_disable_backdrop_filter"),e)),el:w,tabindex:-1},_.x(_.l,{cond:z,then:function(K){return _.x(E9L,{header:function(){return _.x(_.PF,{data:function(){return K().header}},{panelHeaderViewModel:RQE})},
content:function(){return _.x(_.PF,{data:function(){return K().content}},{listViewModel:function(G){return _.x(_.D9U,{data:G.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:q0L,miniAppScoreChallengeViewModel:x0b})},
footer:function(){return _.x(_.PF,{data:function(){return K().footer}},{panelFooterViewModel:_.i8})}})}}))},"pk");
Fko.idomCompat=!0;_.KU(Fko,"yt-sheet-view-model",{props:{data:_.vh}});var f15=_.f(function(e){var z=function(){var C;return(C=e.data().enableDebuggingFeatures)!=null?C:!1};
return _.x("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.x(_.ui,{each:function(){var C;return(C=e.data().stickers)!=null?C:[]}},function(C){return _.x(Vr5,{data:function(){return C},
debugMode:z})}))},"qk"),Vr5=_.f(function(e){var z=_.eQ(e,{debugMode:!1}).debugMode,C=_.pP(function(){var q;
return(q=e.data().region)==null?void 0:q.w},0),w=_.pP(function(){var q;
return(q=e.data().region)==null?void 0:q.h},0),K=_.pP(function(){var q;
return(q=e.data().region)==null?void 0:q.x},0),G=_.pP(function(){var q;
return(q=e.data().region)==null?void 0:q.y},0),X=_.T9(function(){var q=e.data().onTap;
q&&_.NF(q)}),J={};
return _.x("div",{class:_.qT("ytStoriesStickerLayerViewModelSticker",(J.ytStoriesStickerLayerViewModelDebugMode=z,J)),style:_.QC({width:function(){return 100*C()+"%"},
height:function(){return 100*w()+"%"},
left:function(){return 100*K()+"%"},
top:function(){return 100*G()+"%"},
"flex-direction":function(){return YSL(e.data().flexDirection)},
"justify-content":function(){return bkC(e.data().justifyContent)},
"align-items":function(){return X2f(e.data().alignItems)}}),
"on:click":X},_.x(_.PF,{data:function(){return e.data().button||e.data().toggleButton}},{buttonViewModel:function(q){return _.x(_.iz,{data:q.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(q){return _.x(_.XG,{data:q.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"rk");var u_v=_.f(function(e){var z=function(){return e.data()},C={},w=_.b(_.II(!1,void 0,"SegA3d")),K=w.next().value,G=w.next().value,X=_.pP(function(){return z().backgroundColor},0);
w=_.pP(function(){return z().actionButtons},[]);
var J=_.pP(function(){return z().stickerLayer},{}),q=function(){var Q,m;
return{animationRef:C,animationConfig:{autoplay:!1,loop:!1,path:(m=(Q=z().foregroundAnimation)==null?void 0:Q.url)!=null?m:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){G(!0)},
complete:function(){e.navigateToNextItemOnLottieComplete()}}}},T=function(){var Q,m,a,n,H,I,L,h;
return{animationConfig:{autoplay:(I=(Q=z().backgroundAnimation)==null?void 0:(m=Q.settings)==null?void 0:m.autoplay)!=null?I:!1,loop:(L=(a=z().backgroundAnimation)==null?void 0:(n=a.settings)==null?void 0:n.loop)!=null?L:!1,path:(h=(H=z().backgroundAnimation)==null?void 0:H.url)!=null?h:"",name:"stories_item_background_animation"}}};
_.sH(function(){if(e.isVisible()&&K()){var Q;(Q=C.lottieEl)==null||Q.play();e.animationRef()&&(e.animationRef().lottieEl=C.lottieEl)}else{var m;(m=C.lottieEl)==null||m.stop()}},"MxM2wb");
return _.x("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.QC({"background-color":function(){return _.FN(X())+";"}})},_.x("div",{class:"ytStoriesItemViewModelAssetContent"},_.x(_.l,{cond:function(){return!!z().backgroundAnimation},
then:function(){return _.x(_.AY,{data:T,animationName:function(){return T().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.x(_.l,{cond:function(){return!!z().backgroundImage},
then:function(){return _.x(_.Zf,{data:function(){return z().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.x(_.l,{cond:function(){return!!z().foregroundAnimation},
then:function(){return _.x(_.AY,{data:q,animationName:function(){return q().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.x(_.l,{cond:function(){return!!z().foregroundImage},
then:function(){return _.x(_.Zf,{data:function(){return z().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.x("div",{class:"ytStoriesItemViewModelTopShadow"}),_.x(_.PF,{data:function(){return J()}},{storiesStickerLayerViewModel:f15})),_.x("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.QC({"background-color":function(){return _.FN(X())}})},_.x("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.x(_.ui,{each:w},function(Q){return _.x(S0q,{data:function(){return Q},
pauseAutoNavigation:e.pauseAutoNavigation})}))))},"tk"),d0L={style:"overlay",
type:"outline"},S0q=_.f(function(e){var z={};return _.x("div",{class:_.qT("ytStoriesItemViewModelActionButton",(z.ytStoriesItemViewModelStretchedActionButton=function(){return e.data().size==="STORIES_BUTTON_SIZE_STRETCH"},z)),
"on:click":_.T9(e.pauseAutoNavigation)},_.x(_.PF,{data:function(){return e.data().button}},{buttonViewModel:function(C){return _.x(_.iz,{data:C.data,
buttonOverrides:d0L})}}))},"uk");var D0f={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.KU(_.f(function(e){var z=function(){var lg;return(lg=e.data().startIndex)!=null?lg:0},C=_.b(_.zx(z)),w=C.next().value,K=C.next().value;
C=_.b(_.II(!1,void 0,"sjy7s"));var G=C.next().value,X=C.next().value,J=function(){var lg;return(lg=e.data().storyItems)!=null?lg:[]},q={},T=_.kI("yt-stories-viewer-view-model"),Q=function(){return e.data().dismissButton},m=function(){var lg;
return _.SQ((lg=_.r(Q(),_.H7))==null?void 0:lg.onTap)},a=_.kI("div"),n,H,I=!1,L=function(){var lg;
(lg=n)==null||lg.cancel();n=h(w()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});n.onfinish=function(){var M5=_.r(J()[w()],ZTE),fo,ug;M5!=null&&M5.foregroundAnimation&&((M5==null?0:(fo=M5.foregroundAnimation)==null?0:fo.url)||(M5==null?0:(ug=M5.foregroundAnimation)==null?0:ug.payload))||(w()!==J().length-1?(K(w()+1),L()):m()&&_.uA(m()))}},h=function(lg){return a.value.children[lg].children[0]},E=function(){for(var lg=0;lg<w();lg++)h(lg).style.transform=
"scaleX(1)"},N=function(){I||(G()?X(!1):(w()===J().length-1&&m()&&_.uA(m()),h(w()).style.transform="scaleX(1)",w()!==J().length-1&&(K(w()+1),L())))},D=function(){I||(G()?X(!1):(h(w()).style.transform="scaleX(0)",w()!==0&&K(w()-1),L()))},g=function(){X(!0)},y=function(){h(w()).style.transform="scaleX(1)";
w()!==J().length-1?(K(w()+1),L()):m()&&_.uA(m())};
C=function(){I=!1;H=setTimeout(function(){X(!0);I=!0},300)};
var Z=function(){clearTimeout(H);I&&G()&&X(!1)};
_.sH(function(){if(G()){var lg;(lg=n)==null||lg.pause();var M5;(M5=q.lottieEl)==null||M5.pause()}else{var fo;(fo=n)==null||fo.play();var ug;(ug=q.lottieEl)==null||ug.play()}},"vAvZob");
_.sH(function(){E();w()===z()&&L()},"uSlfE");
var YN=function(lg){lg.key==="ArrowLeft"?D():lg.key==="ArrowRight"&&N()},Jk=function(lg){if(lg.target===T.value){(lg=m())&&_.uA(lg);
clearTimeout(H);var M5;(M5=n)==null||M5.cancel();var fo;(fo=q.lottieEl)==null||fo.stop();window.removeEventListener("keydown",YN);window.removeEventListener("yt-popup-closed",Jk)}},v1=function(lg){if(lg.target===T.value){var M5;
(M5=q.lottieEl)==null||M5.play();window.addEventListener("keydown",YN);window.addEventListener("yt-popup-closed",Jk)}};
_.sg(function(){E();L();window.addEventListener("yt-popup-opened",v1)});
return _.x("yt-stories-viewer-view-model",{el:T,class:_.qT("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.x("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.x("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.T9(D),"on:mousedown":_.T9(C),"on:mouseup":_.T9(Z),"on:mouseleave":_.T9(Z)}),_.x("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.T9(N),"on:mousedown":_.T9(C),"on:mouseup":_.T9(Z),"on:mouseleave":_.T9(Z)})),
_.x("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.x(_.PF,{data:J},{storiesItemViewModel:function(lg,M5){var fo=lg.data;return _.x(_.l,{cond:function(){return Math.abs(M5()-w())<=1},
then:function(){var ug={};return _.x("div",{class:_.qT("ytStoriesViewerViewModelStoryItem",(ug.ytStoriesViewerViewModelActiveStoryItem=function(){return M5()===w()},ug))},_.x(u_v,{data:fo,
pauseAutoNavigation:g,navigateToNextItemOnLottieComplete:y,isVisible:function(){return M5()===w()},
animationRef:q}))}})}})),_.x("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:a},_.x(_.ui,{each:J},function(){return _.x("div",{class:"ytStoriesViewerViewModelProgressBar"},_.x("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.x("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.x(_.Zf,{data:D0f,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.x("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.x(_.PF,{data:function(){return e.data().menuButton}},{buttonViewModel:function(lg){return _.x(_.iz,{data:lg.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.x(_.PF,{data:function(){return e.data().muteButton}},{toggleButtonViewModel:function(lg){return _.x(_.XG,{data:lg.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.x(_.PF,{data:Q},{buttonViewModel:function(lg){return _.x(_.iz,{data:lg.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"xk"),"yt-stories-viewer-view-model",{props:{data:_.vh}});_.KU(_.f(function(e){var z=e.data;var C=_.kI("yt-gen-ai-feedback-form-view-model"),w=[];return _.x("yt-gen-ai-feedback-form-view-model",{el:C,class:"ytGenAiFeedbackFormViewModelHost"},_.x(_.U2,{text:function(){return z().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.x("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.x(_.PF,{data:function(){return z().feedbackChips}},{toggleButtonViewModel:function(K){var G=K.data;
return _.x(_.XG,{data:G,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(X){var J=G();J=_.r(J,_.v7);J=_.r(J==null?void 0:J.defaultButtonViewModel,_.H7).trackingParams;X?w.push(J):(X=w.indexOf(J),X>-1&&w.splice(X,1))}})}})),_.x(_.U2,{text:function(){return z().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.x("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.x(_.PF,{data:function(){return z().submitButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){JT$(C.value,w,z().uniqueId)}})}}),_.x(_.PF,{data:function(){return z().moreFeedbackButton}},{buttonViewModel:function(K){return _.x(_.iz,{data:K.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"yk"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.vh},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ad=function(){return _.V.apply(this,arguments)||this};
_.U(ad,_.V);ad.prototype.created=function(){jK3(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(NsL);var e=_.lh().resolve(_.fKa);e&&(e.container=this.ytPopupContainerBehavior);if(e=_.lh().resolve(_.qd))e.container=this.ytPopupContainerBehavior;if(e=_.lh().resolve(_.xX)){var z=this.ytPopupContainerBehavior;e.containerWasInjected?_.AX(Error("rj")):e.container=z}};
ad.prototype.ensurePopupBelowPlayer=function(e,z){var C=_.lh().resolve(_.$B(_.wE));if(!C||!C.isOnWatch()||!_.ox())return!1;C=C.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Mp().height>C+this.getPopupHeight(e,z)?(e.style.top="auto",e.style.bottom="0px"):(e.style.top=C+"px",e.style.bottom="auto");return!0};
ad.prototype.getPopupHeight=function(e,z){z&&(e.cachedPopupHeight=0);if(!e.cachedPopupHeight){z=0;var C=e.clientHeight,w=window.getComputedStyle(e);z+=parseInt(w.marginTop,10);z+=parseInt(w.marginBottom,10);e.cachedPopupHeight=C+z}return e.cachedPopupHeight};
ad.prototype.getElement=function(e){return document.createElement(e)};
_.d([_.W(yjo.YtPopupContainerBehavior),_.B("design:type",Object)],ad.prototype,"ytPopupContainerBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.d([_.SL({disableElementRegistration:!0,is:"ytd-popup-container"})],ad);
_.u(ad,"ytd-popup-container",function(){if(dya!==void 0)return dya;var e=document.createElement("template");_.v(e,"\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");e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);return dya=e},{mode:1});var i6Y;var NZC={};NZC.YtLogYpcFlowCommandsBehavior=[_.ch.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(e){_.r(e,lN$)&&(e=_.r(e,lN$))&&(e.serializedTransactionFlowLoggingParams?_.UQ5(e.serializedTransactionFlowLoggingParams):e.serializedYpcCancelFlowLoggingParams?(e=e.serializedYpcCancelFlowLoggingParams)&&_.g7("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",e):e.serializedYpcResumeFlowLoggingParams?(e=e.serializedYpcResumeFlowLoggingParams)&&_.g7("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",e):e.serializedYpcPauseFlowLoggingParams?(e=e.serializedYpcPauseFlowLoggingParams)&&
_.g7("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",e):e.serializedYpcRefundFlowLoggingParams?(e=e.serializedYpcRefundFlowLoggingParams)&&$KZ("YPC_EVENT_TYPE_START",e):e.serializedYpcDeactivateFlowLoggingParams?(e=e.serializedYpcDeactivateFlowLoggingParams)&&_.g7("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",e):e.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(e=e.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.g7("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",e))},
handleLogYpcFlowDismiss_:function(e){_.r(e,$No)&&(e=_.r(e,$No),e.serializedTransactionFlowLoggingParams?_.vU8(e.serializedTransactionFlowLoggingParams):e.serializedYpcCancelFlowLoggingParams?(e=e.serializedYpcCancelFlowLoggingParams)&&_.g7("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",e):e.serializedYpcResumeFlowLoggingParams?(e=e.serializedYpcResumeFlowLoggingParams)&&_.g7("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",e):e.serializedYpcPauseFlowLoggingParams?(e=
e.serializedYpcPauseFlowLoggingParams)&&_.g7("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",e):e.serializedYpcRefundFlowLoggingParams&&(e=e.serializedYpcRefundFlowLoggingParams)&&$KZ("YPC_EVENT_TYPE_CANCEL",e))}}];var sfZ={};sfZ.YtCancelRecurrenceBehavior=[_.Q5.YtComponentBehavior,_.x8a,{attached:function(){var e=this;hS3(this,function(z,C){return e.ypcCancelRecurrenceHandler(z,C)})},
ypcCancelRecurrenceHandler:function(e,z){var C=this;if(!z||!z.ypcCancelRecurrenceEndpoint)return!1;if(!z.ypcCancelRecurrenceEndpoint.params)return _.AR(Error("Tl")),!0;_.j4(this.hostElement);var w=_.tq.instance,K=_.lh().resolve(_.$B(_.UG));w&&_.jj(w,z)?_.yC(w,z).then(function(G){C.ypcCancelRecurrenceSuccess_(e,z,{data:G})},function(G){C.ypcCancelRecurrenceFailure_(e,z,G)}).thenCatch(function(){_.AR(Error("Ul"))}):K?K.requestDataForServiceEndpoint(z).then(function(G){C.ypcCancelRecurrenceSuccess_(e,
z,G)},function(G){C.ypcCancelRecurrenceFailure_(e,z,G)}).thenCatch(function(){_.AR(Error("Ul"))}):_.AR(Error("Vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(e,z,C){_.yz(this.hostElement);C.data||(C={data:C});C.data&&C.data.actions&&_.KK(this.hostElement,C.data.actions,this.hostElement);C.data.messageRenderer?QxW(z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(z=z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.g7("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",z);_.pi(e,"yt-service-request-completed",C)},
ypcCancelRecurrenceFailure_:function(e,z,C){_.yz(this.hostElement);QxW(z.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.pi(e,"yt-service-request-error",{error:C,params:[e,z]})}}];var BZY=function(e,z){_.eh.call(this,z)};
_.U(BZY,JpE);var trb={};trb.YtCompleteTransactionBehavior=[_.Q5.YtComponentBehavior,_.x8a,{attached:function(){var e=this;hS3(this,function(z,C){return e.ypcCompleteTransactionHandler(z,C)})},
completeTransaction:function(e,z){var C=this;z={payments_payload:window.btoa(z.integratorData),buybucket_params:e.data.buybucketParams,offer_params:e.data.offerParams};var w=_.lh().resolve(_.UG),K=e.data.completeTransactionEndpoint,G=this.get("ypcCompleteTransactionEndpoint.actions",K);G&&_.KK(this.hostElement,G,this.hostElement);return(G=_.tq.instance)&&_.jj(G,K)?_.yC(G,K,z).then(function(X){return!X||(X==null?0:X.error)?(X=C.get("data.serializedTransactionFlowLoggingParams",e),_.R5(new zF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
X))):{data:X}}).then(function(X){return C.handleCompleteTransactionSuccess_(X,e)},function(){return C.handleCompleteTransactionFailure_(e)}):w.requestDataForServiceEndpoint(K,z).then(function(X){return C.handleCompleteTransactionSuccess_(X,e)},function(){return C.handleCompleteTransactionFailure_(e)})},
handleCompleteTransactionSuccess_:function(e,z){e.data||(e={data:e});if(e.data.messageRenderer)return _.R5(new BZY(e.data.messageRenderer));if(e.data.trackingParams){var C=_.Pr(),w=_.Ip();C&&w&&_.id(C,w,_.v9(e.data.trackingParams))}z=this.get("data.serializedTransactionFlowLoggingParams",z);lhf(z);return _.oS(e)},
handleCompleteTransactionFailure_:function(e){e=this.get("data.serializedTransactionFlowLoggingParams",e);_.jB("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",e);return _.R5(new zF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",e))},
ypcCompleteTransactionHandler:function(e,z){var C=this;if(!z.ypcCompleteTransactionEndpoint)return!1;if(!z.ypcCompleteTransactionEndpoint.transactionParams)return _.AR(Error("Wl")),!0;z.ypcCompleteTransactionEndpoint&&z.ypcCompleteTransactionEndpoint.gtmData&&_.Gr(z.ypcCompleteTransactionEndpoint.gtmData);var w=_.lh().resolve(_.$B(_.UG));if(w){_.j4(this.hostElement);var K=_.tq.instance;K&&_.jj(K,z)?_.yC(K,z).then(function(G){return!G||(G==null?0:G.error)?(G=C.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
z),_.R5(new zF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",G))):{data:G}}).then(function(G){_.pi(e,"yt-service-request-completed");
C.ypcCompleteTransactionSuccess_(z,G)},function(){return C.ypcCompleteTransactionFailure_(z)}):w.requestDataForServiceEndpoint(z).then(function(G){_.pi(e,"yt-service-request-completed");
C.ypcCompleteTransactionSuccess_(z,G)},function(){return C.ypcCompleteTransactionFailure_(z)})}return!0},
ypcCompleteTransactionSuccess_:function(e,z){_.yz(this.hostElement);z.data||(z={data:z});_.eA(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);z.data.messageRenderer||z.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(e):(_.Gr('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",e));z.data.actions&&(e=pWW(z.data.actions),z=ex$(z.data.actions),e.length&&_.wQ(this.hostElement,
e),z.length&&_.KK(this.hostElement,z,this.hostElement))},
ypcCompleteTransactionFailure_:function(e){_.yz(this.hostElement);_.eA(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",e,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(e,z,C){if(z=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",z))z={serializedTransactionFlowLoggingParams:z},C&&(z.errorType=C),_.gm(e,z),_.ju()}}];var g9C={};g9C.YtEndpointHandlerWithYpcBehavior=[_.x8a,_.ch.YtActionHandlerBehavior,[{openWalletDialog:function(e,z,C,w,K,G,X){var J=this,q=_.cj();z=z.replace(/-/g,"+").replace(/_/g,"/");var T=_.Tj().get("hl");_.iLg(_.bH(_.y$),z,q.resolve,K,function(Q){G&&G();q.reject(Q)},T,function(Q){return J.onServerBackendAnalyticEvent_(e,C,Q)},this.onDialogClose_.bind(this),w,X);
return q.promise},
openFixFlowDialog:function(e,z,C,w){e=e.replace(/-/g,"+").replace(/_/g,"/");_.bH(_.y$).openFixFlowDialog(e,z,C,w)},
onDialogClose_:function(){_.eA(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(e,z,C){_.pi(e,"yt-commerce-action-init-done");z&&_.wQ(this.hostElement,[z,{backend_analytics:C}])}}],
_.jf.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(e,z){e=this.get("data.nativeFlowEndpoint",z);z=this.get("data.fallbackEndpoint",z);e?_.wQ(this.hostElement,[e]):z&&_.pi(this.hostElement,"yt-navigate",{endpoint:z})}}],
sfZ.YtCancelRecurrenceBehavior,trb.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 e=this;hS3(this,function(z,C,w){return e.handleYPCEndpoint(z,C,w)});
this.ypcRegisterActionMapJobId_=_.Dz(_.c5,function(){e.registerActionMap(e.buyFlowActionMap_)})},
detached:function(){var e=this;_.c5.cancelJob(this.ypcRegisterActionMapJobId_);_.Dz(_.c5,function(){e.unregisterActionMap(e.buyFlowActionMap_)})},
handleYPCEndpoint:function(e,z,C){var w=z.ypcGetCartEndpoint;if(w){_.LK("commerce_transaction");var K=w.gtmId;K&&_.oQ(K);(w=w.gtmData)&&_.Gr(w)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",z)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(e,z),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",z)!=null?(this.handleYPCFixInstrumentEndpoint_(e,z),!0):z.ypcPauseSubscriptionCommand?(aAq(this.hostElement,e,z,C),
!0):z.ypcResumeSubscriptionCommand?(rTo(this.hostElement,e,z),!0):z.getPaymentInstrumentsParamsCommand?(lAv(this.hostElement,e,z),!0):z.ypcHandleTransactionEndpoint?(TB$(this.hostElement,e,z,C),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(e,z){var C=this;_.hg("ttcr",void 0,"commerce_transaction");z=z.ypcGetCartEndpoint;var w=z.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,K=w.encryptedPurchaseParams,G=w.serializedTransactionFlowLoggingParams,X=w.serializedPaymentsClientParams,J=this.createGetCartResponseFromParams_(w,z.offerParams,G);this.changeButtonState(e,!0);_.gB(this.openWalletDialog(e,K,w.ypcLogWalletAnalyticDataEndpoint,G,function(){C.changeButtonState(e,!1)},function(){C.changeButtonState(e,
!1)},X).then(function(q){return C.handleBuyFlowCompleteCallback_(e,J,q)},function(){return C.handleOnLoadError(J)}).then(function(q){return void C.handlePostPurchaseSuccess_(e,J,q)},function(q){return void C.handlePostPurchaseError_(q)}),function(){C.changeButtonState(e,!1);
e instanceof Element&&_.pi(e,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(e,z,C){var w=e.completeTransactionEndpoint,K=e.handleTransactionEndpoint;z={data:{offerParams:window.btoa(z),serializedTransactionFlowLoggingParams:C}};K?z.data.handleTransactionEndpoint=K:z.data.completeTransactionEndpoint=w;e.onCartDismissCommand&&(z.data.onCartDismissCommand=e.onCartDismissCommand);return z},
onGetCartServiceRequestCompleted_:function(e,z){var C=this,w=e.target;if(z&&z.data&&z.data.messageRenderer)_.yz(this.hostElement),this.handleMessageRenderer_(z.data.messageRenderer),this.changeButtonState(w,!1);else{var K=this.get("data.encryptedPurchaseParams",z),G=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",z),X=this.get("data.ypcLogWalletAnalyticDataEndpoint",z),J=this.get("data.serializedPaymentsClientParams",z),q=this.getLoggingParams_(z);if(q||K||G)e.stopPropagation(),_.hg("ttcr",
void 0,"commerce_transaction"),K||_.yz(this.hostElement),this.changeButtonState(w,!1),G?_.eA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.j5("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:G}}},this]):K&&(this.changeButtonState(w,!0),e=null,e=this.openWalletDialog(w,K,X,q,function(){_.yz(C.hostElement);C.changeButtonState(w,!1)},function(){_.yz(C.hostElement);
C.changeButtonState(w,!1)},J),_.gB(e.then(function(T){return C.handleBuyFlowCompleteCallback_(w,z,T)},function(){return C.handleOnLoadError(z)}).then(function(T){return C.handlePostPurchaseSuccess_(w,z,T)},function(T){return C.handlePostPurchaseError_(T)}),function(){C.changeButtonState(w,!1);
_.pi(w,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(e,z){z&&z.endpoint&&z.endpoint.ypcGetCartEndpoint&&!z.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",z.endpoint.ypcGetCartEndpoint)&&_.KK(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",z.endpoint.ypcGetCartEndpoint)],e.target),_.j4(this.hostElement),this.changeButtonState(e.target,!0))},
onServiceRequestError_:function(e,z){if(z&&z.params&&z.params.length){z=_.b(z.params);for(var C=z.next();!C.done;C=z.next())if((C=C.value)&&C.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",C.ypcGetCartEndpoint)&&_.KK(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",C.ypcGetCartEndpoint)],e.target);_.yz(this.hostElement);this.changeButtonState(e.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(e,z,C){var w=C.integratorData;return w==null||w===""||C.error!=null?(w=this.getLoggingParams_(z),String(C.error)==="-1"?(z.data.onCartDismissCommand&&_.KK(this.hostElement,[z.data.onCartDismissCommand],e),_.R5(new zF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",w,!0))):_.R5(new zF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",w))):z.data.handleTransactionEndpoint?$3$(this.hostElement,z.data.handleTransactionEndpoint,{payments_payload:w,funds_guarantee_callback_client_data:C.integratorClientCallbackData}):
this.completeTransaction(z,C)},
handlePostPurchaseSuccess_:function(e,z,C){z=C.data;var w=!1,K,G;if(z&&((K=z.command)==null?0:(G=K.commandExecutorCommand)==null?0:G.commands)){var X,J;K=(X=z.command)==null?void 0:(J=X.commandExecutorCommand)==null?void 0:J.commands;for(X=0;X<K.length;X++)if(_.r(K[X],_.xds)){w=!0;break}}w||(z&&z.gtmDatas&&z.gtmDatas.length?_.Gr(z.gtmDatas[0]):_.Gr('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));C.data&&C.data.actions&&(z=pWW(C.data.actions),C=ex$(C.data.actions),z.length&&
_.wQ(this.hostElement,z),C.length&&_.KK(this.hostElement,C,e))},
handlePostPurchaseError_:function(e){e&&e.payload&&e.payload.isUserDismiss||_.yG(Error("Yl"))},
handleOnLoadError:function(e){e=this.getLoggingParams_(e);return _.R5(new zF("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",e))},
getLoggingParams_:function(e){return this.get("data.serializedTransactionFlowLoggingParams",e)},
handleMessageRenderer_:function(e){var z=_.BR(e,"renderer"),C=_.j5("openPopupConfig");z==="confirmDialogRenderer"&&C&&_.eA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:C.popupTypeMap[z],popup:e}},this])},
handleYPCFixInstrumentEndpoint_:function(e,z){var C=this,w=z.ypcFixInstrumentEndpoint;z=w.encryptedFixInstrumentParameters;this.logFixFopEvent_(w,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(e,!0);this.openFixFlowDialog(z,function(K,G){C.onFixFlowCompleteCallback_(w,K,G)},function(){return C.changeButtonState(e,!1)},function(){C.changeButtonState(e,!1);
C.logFixFopEvent_(w,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(e,z,C){var w=_.pd("payments.business.integration.scenario.FixInstrument");if(z==w.IntegratorCallbackType.ON_COMPLETE){z="FIX_FOP_EVENT_TYPE_CANCEL";var K=null;C.error!=null?C.error!=w.OnCompleteCallbackError.USER_CANCELLED&&(_.KK(this.hostElement,[e.errorAction],this.hostElement),z="FIX_FOP_EVENT_TYPE_FAILURE",K="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.KK(this.hostElement,[e.successAction],this.hostElement),z="FIX_FOP_EVENT_TYPE_SUCCESS");_.KK(this.hostElement,[e.onFinishAction],
this.hostElement);this.logFixFopEvent_(e,z,K)}},
logFixFopEvent_:function(e,z,C){(e=e.serializedFixFopLoggingParams)?(z={eventType:z,serializedFixFopLoggingParams:e},C!=null&&(z.errorType=C),_.gm("fixFopFlow",z),_.ju()):_.yG(Error("Zl"))},
changeButtonState:function(e,z){_.M("enable_ypc_spinners")&&e&&(e.is==="yt-button-renderer"||e.is==="ytd-button-renderer")&&(e.disabled=z)}}];var jfq=function(e){this.JSC$33207_clientRoot=e;this.feedbackCollectorActionMap={"yt-help-dialog-requested":U3v,"yt-feedback-dialog-requested":Hkb,"yt-signal-action-help":vQb,"yt-signal-action-send-feedback":IAY,"yt-send-feedback-action":PbE,"yt-user-feedback-endpoint":Rmo};_.YI(_.G4.getInstance(),this.feedbackCollectorActionMap,this.JSC$33207_clientRoot)},y9v;var c9W=function(e){this.JSC$33212_clientRoot=e;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":LEf.bind(null,this.JSC$33212_clientRoot),"yt-signal-action-delete-all-downloads":OkE,"yt-signal-action-delete-download":EQW,"yt-signal-action-delete-playlist-download":VlE,"yt-signal-action-install-pwa":ikl,"yt-signal-action-refresh-downloads":d3o,"yt-offline-video-endpoint":sif,"yt-offline-playlist-endpoint":tl3,"yt-update-local-app-setting-command":jiE,"yt-offline-orchestration-action-command":cTZ,
"yt-signal-action-undo-delete-download":SSY,"yt-local-watch-history-command":p2o,"yt-signal-action-mark-download-to-mobile-edu-shown":zlf};_.YI(_.G4.getInstance(),this.downloadManagerActionMap,this.JSC$33212_clientRoot);_.sG.instance=new _.sG},A95;var ny=function(){var e=_.V.apply(this,arguments)||this;e.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_"};e.remoteApi_=null;return e};
_.U(ny,_.V);_.Y=ny.prototype;
_.Y.ready=function(){_.M("polymer_enable_mdx")&&(h0l({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.M("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.M("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.M("enable_cast_short_lived_lounge_token")}),_.Hn("yt-remote-connection-change",this.handleConnectionChange_,this),_.Hn("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=dI$())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.Y.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.Y.handleConnectionChange_=function(e){(this.mdxConnected=e)?(e=FDL(),!e&&T4Z()&&$IW()&&(e={key:"cast-selector-receiver",name:$IW()}),e=e.name):e=null;this.receiverName=e;_.XU(this.remoteApi_);(this.remoteApi_=dI$())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.Y.handleReceiverAvailabilityChange_=function(){var e=EdC();T4Z()&&_.PJ("yt-remote-cast-available")&&e.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=e.length>0};
_.Y.handleRemoteQueueChange_=function(){var e=this.currentVideoId_,z=this.currentListId_,C=HG(this.remoteApi_);this.currentVideoId_=C.videoId;this.currentListId_=C.listId;this.currentVideoId_&&_.eA(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.M("polymer_enable_mdx_queue")?this.currentListId_:null,e,z])};
_.Y.handleAddToQueueAction_=function(e){e=_.r(e,pUo);this.remoteApi_&&(e.videoId?this.remoteApi_.addVideo(e.videoId):e.playlistId&&this.remoteApi_.addPlaylist(e.playlistId))};
_.Y.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.Y.handleInsertInQueueAction_=function(e){e=_.r(e,eRl);this.remoteApi_&&e.videoId&&this.remoteApi_.JSC$20347_insertVideo(e.videoId)};
_.Y.handleRemoveFromQueueAction_=function(e){e=_.r(e,zRZ);this.remoteApi_&&e.videoId&&this.remoteApi_.JSC$20347_removeVideo(e.videoId)};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],ny.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F(),_.B("design:type",Object)],ny.prototype,"appId",void 0);_.d([_.F(),_.B("design:type",Boolean)],ny.prototype,"mdxConnected",void 0);_.d([_.F(),_.B("design:type",Boolean)],ny.prototype,"receiverAvailable",void 0);_.d([_.F(),_.B("design:type",Object)],ny.prototype,"receiverName",void 0);_.d([_.F(),_.B("design:type",Object)],ny.prototype,"currentVideoId_",void 0);
_.d([_.F(),_.B("design:type",Object)],ny.prototype,"currentListId_",void 0);_.d([_.fP({is:"yt-mdx-manager",disableElementRegistration:!0})],ny);_.u(ny,"yt-mdx-manager",void 0,{mode:2});var Z6o;var pdq;var Mz=function(){var e=_.V.apply(this,arguments)||this;e.APP_IDS={ytr:3,ytm:5};e.JSC$21585_timeoutId_=0;e.actionMap={"yt-open-create-family-dialog":"open"};return e};
_.U(Mz,_.V);_.Y=Mz.prototype;_.Y.created=function(){jK3(2200)};
_.Y.detached=function(){this.observer_&&this.observer_.disconnect()};
_.Y.open=function(e,z){var C=this,w=e.serializedYpcFamilyCreateLoggingParams;this.JSC$21585_timeoutId_=setTimeout(this.abort_.bind(this,e.postFlowErrorEndpoint,w),3E4);z&&(this.onReadyCallback_=z);var K=_.XC(this.hostElement).querySelector("#unicorn-iframe");w&&w&&TEZ("ypcFamilyCreateFlowStarted",w);_.xB4("family_creation",function(){var G=_.pd("gapi.family_creation.render");_.pd("gapi.config.update")("iframes/family_creation/url",C.getFamilyCreationUrlWithUnicornParams_());var X=3;e.appId&&e.appId in
C.APP_IDS&&(X=C.APP_IDS[e.appId]);X={authUser:_.j5("SESSION_INDEX")||0,clientId:X,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.j5("HL"),initialflow:[4,5,6,7],m:C.isMobile?1:0,onFlowComplete:C.onUnicornFlowComplete_.bind(C,e.postFlowSuccessEndpoint,w),onError:C.onUnicornFlowError_.bind(C,e.postFlowErrorEndpoint,w),onReady:C.onUnicornFlowReady_.bind(C,e.referencePcidParams)};G(K,X)})};
_.Y.close=function(){_.XC(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.Y.onUnicornFlowComplete_=function(e,z){this.close();z&&z&&TEZ("ypcFamilyCreateFlowSucceeded",z);_.pi(this.hostElement,"yt-navigate",{endpoint:e})};
_.Y.onUnicornFlowError_=function(e,z){this.close();z&&TEZ("ypcFamilyCreateFlowCancelled",z);_.pi(this.hostElement,"yt-navigate",{endpoint:e})};
_.Y.onUnicornFlowReady_=function(e){var z=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();e&&_.pd("gapi.family_creation.setConfig")(0,e);this.observer_=new MutationObserver(function(){_.XC(z.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.XC(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.XC(this.hostElement).querySelector("#dialog").open()};
_.Y.getFamilyCreationUrlWithUnicornParams_=function(){return _.j5("YTR_FAMILY_CREATION_URL")};
_.Y.getCurrentUrl_=function(){return document.location.href};
_.Y.abort_=function(e,z){this.clearTimeout_();this.onUnicornFlowError_(e,z)};
_.Y.clearTimeout_=function(){clearTimeout(this.JSC$21585_timeoutId_)};
_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Mz.prototype,"ytActionHandlerBehavior",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Mz.prototype,"isMobile",void 0);_.d([_.F(),_.B("design:type",Object)],Mz.prototype,"onReadyCallback_",void 0);_.d([_.F(),_.B("design:type",Object)],Mz.prototype,"observer_",void 0);_.d([_.fP({is:"yt-create-family-dialog",disableElementRegistration:!0})],Mz);
_.u(Mz,"yt-create-family-dialog",function(){if(pdq===void 0){var e=document.createElement("template");_.v(e,'\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');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);var z=e.content,C=z.insertBefore;Z6o===void 0&&(Z6o=document.createElement("template"));var w=Z6o;C.call(z,w.content.cloneNode(!0),e.content.firstChild);pdq=e}e=pdq;return e},{mode:2});var epl;var zpC;var rY=function(){var e=_.V.apply(this,arguments)||this;e.STEP=1;e.BLOCK_ON=80;e.MIN_PROGESS=0;e.MAX_PROGESS=100;return e};
_.U(rY,_.V);_.Y=rY.prototype;_.Y.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.Y.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));_.lh().addProvider({provide:IZL,useValue:this})};
_.Y.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.Y.finish=function(){var e=this;this.progress=this.MAX_PROGESS;CGL(function(){e.progress==e.MAX_PROGESS&&(e.hostElement.hidden=!0)})};
_.Y.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.lB.Object.defineProperties(rY.prototype,{progress:{configurable:!0,enumerable:!0,set:function(e){this.progress_=e;var z="scaleX("+e/this.MAX_PROGESS+")",C=_.XC(this.hostElement).querySelector("#progress").style;C.transform=z;C.webkitTransform=z;this.hostElement.setAttribute("aria-valuenow",String(e))},
get:function(){return this.progress_}}});
_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],rY.prototype,"ytComponentBehavior",void 0);_.d([_.fP({is:"yt-page-navigation-progress",disableElementRegistration:!0})],rY);
_.u(rY,"yt-page-navigation-progress",function(){if(zpC===void 0){var e=document.createElement("template");_.v(e,'\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');e.content.insertBefore(_.t().content.cloneNode(!0),
e.content.firstChild);var z=e.content,C=z.insertBefore;epl===void 0&&(epl=document.createElement("template"));var w=epl;C.call(z,w.content.cloneNode(!0),e.content.firstChild);zpC=e}e=zpC;return e},{mode:2});var CXY={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"},w3a={"font-size":"12px","font-style":"italic"},KKv={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.GDL=function(){return _.k(function(e){_.E_(e)})};var oev=_.f(function(e){var z=function(){return e.data().subtext},C={};
return _.x("snackbar-view-model",{class:_.qT("snackbarViewModelHost",e.className)},_.x("div",{class:_.qT("snackbarViewModelEngagementBarWrapper",e.className)},_.x(_.l,{cond:function(){return e.data().image},
then:function(w){return _.x(_.Zf,{data:w,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.x(_.l,{cond:function(){return e.data().imageContent},
then:function(){return _.x("div",{class:"snackbarViewModelAvatarContainer"},_.x(_.PF,{data:function(){return e.data().imageContent}},{decoratedAvatarViewModel:_.Qh}))}}),_.x("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.x("div",{class:_.qT((C.snackbarViewModelTitle=!0,C.snackbarViewModelTitleWithSubtext=z,C))},_.x(_.U2,{text:function(){return e.data().text}})),_.x(_.l,{cond:z,
then:function(){return _.x("div",{class:"snackbarViewModelSubtext"},_.x(_.U2,{text:function(){return z()}}))}})),_.x(_.l,{cond:function(){return e.data().buttons},
then:function(){return _.x("div",{class:"snackbarViewModelButtonClassWrapper"},_.x(_.PF,{data:function(){return e.data().buttons}},{buttonViewModel:function(w){return _.x(_.iz,{data:w.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:e.target})}}))}})))},"zk");_.KU(_.f(function(){function e(E,N,D){H(E);L(D);a("in");Q(!0);z(E,N);X=setTimeout(function(){C()},N)}
function z(E,N){var D,g=(D=E.text)==null?void 0:D.content;E=_.u3(E.rendererContext);g&&(N={label:g,command:E,durationMs:N},_.lh().resolve(_.EI).enqueue(N))}
function C(E){a("out");E&&clearTimeout(X)}
function w(){C(!0)}
function K(E){if(E){var N=E.snackbarViewModel,D=E.durationMs,g=E.target;D||(D=3E3);N&&(E=_.lh().resolve(_.$B(_.h$)))&&E.enqueue({isOpened:T,open:function(){e(N,D,g)},
close:C},0)}}
var G=_.qD("snackbar-container"),X=void 0,J=_.b(_.II(!1,void 0,"mDc5N")),q=J.next().value;J=J.next().value;var T=q,Q=J;q=_.b(_.II("out",void 0,"FpOs5e"));var m=q.next().value,a=q.next().value;q=_.b(_.II(void 0,void 0,"jIDRob"));var n=q.next().value,H=q.next().value;q=_.b(_.II(void 0,void 0,"kOA3Mb"));var I=q.next().value,L=q.next().value,h=_.T9(function(){if(m()==="out"){Q(!1);H(void 0);L(void 0);var E=_.lh().resolve(_.$B(_.h$));E&&Xmv(E,0)}});
_.sg(function(){var E=_.lh().resolve(_.$B(_.EyZ));E&&(E.showSnackbarFn=K,E.closeSnackbarFn=w)});
return _.x("snackbar-container",{class:"ytSnackbarContainerHost",el:G},_.x(_.l,{cond:function(){return T()&&!!n()},
then:function(){var E={};return _.x("div",{class:_.qT("ytSnackbarContainerSnackbarContainer",(E.ytSnackbarContainerMobile=!1,E.ytSnackbarContainerPivotBar=function(){var N;return!((N=_.lh().resolve(_.$B(_.FI3)))==null||!N())},E.ytSnackbarContainerOpened=function(){return T()&&m()==="in"},E.ytSnackbarContainerClosed=function(){return T()&&m()==="out"},E)),
"on:animationend":h},_.x(oev,{data:function(){return n()},
target:function(){return I()}}))}}))},"Ak"),"snackbar-container");_.KU(_.X_c,"yt-tooltip");var GFb=_.m6q.ephemeralActionSelector;_.KU(_.f(function(){var e=_.rG(GFb);return _.x("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var z;return(z=e())==null?void 0:z.announcement})},"Bk"),"yt-ephemeral-actions");var I7Z=new Map;var imf=function(e,z){var C=this;this.handleError=e;this.logEventInternal=z;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){C.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
imf.prototype.logError=function(e){this.handleError(e)};
imf.prototype.logEvent=function(e,z){switch(e){case "IDB_DATA_CORRUPTED":_.M("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",z);break;case "IS_SUPPORTED_COMPLETED":_.M("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",z);break;case "QUOTA_EXCEEDED":YBa(this,z);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":e=Object.assign({},z,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",e)}};
var YBa=function(e,z){_.Vc.getInstance().estimate().then(function(C){C=Object.assign({},z,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:PG$(C==null?void 0:C.usage),deviceStorageQuotaMbytes:PG$(C==null?void 0:C.quota)});e.logEventInternal("idbQuotaExceeded",C)})};var bll=_.f(function(e){var z=_.kI("yt-draggable"),C=e.onDrag,w=e.onDragStart,K=e.onDragEnd,G=_.eQ(e,{allowClicks:!1,dragThreshold:5}),X=G.dragThreshold,J=G.allowClicks;e=G.children;G=G.className;var q=void 0,T=void 0,Q=new _.st(0,0),m=!1;_.sg(function(){q=new _.KN(z.value);T=new _.ak(n);a(q,T);if(J()){_.skU(q,X());var I;(I=z.value)==null||I.addEventListener("click",H,{capture:!0})}_.BC(function(){var L;(L=q)==null||L.dispose();if(J()){var h;(h=z.value)==null||h.removeEventListener("click",H,{capture:!0})}})});
var a=function(I,L){_.W9(I,"earlycancel",function(){J()&&(m=!1)});
_.W9(I,"start",function(h){w==null||w(h);h.defaultPrevented||J()&&(m=!0)});
_.W9(I,"beforedrag",function(h){q&&T&&(h.preventDefault(),Q=new _.st(h.clientX-q.startX,h.clientY-q.startY),T.start())});
_.W9(I,"end",function(){L.stop();K==null||K();Q=new _.st(0,0)})},n=function(){Q&&C(Q)},H=function(I){m&&(m=!1,I.stopPropagation(),I.preventDefault())};
return _.x("yt-draggable",{el:z,class:_.qT("ytDraggableComponentHost",G)},e)},"Ck");var X35=_.f(function(e){var z=_.b(_.II(0,void 0,"Qf0tbc")),C=z.next().value,w=z.next().value;z=function(K){var G={},X={};return _.x(bll,{className:_.qT("ytdMiniplayerComponentResizer",(G.ytdMiniplayerComponentResizerDisabled=function(){return K===e.horizontalAlignment()||K===e.verticalAlignment()},G.ytdMiniplayerComponentResizerNorth=K==="north",G.ytdMiniplayerComponentResizerEast=K==="east",G.ytdMiniplayerComponentResizerSouth=K==="south",G.ytdMiniplayerComponentResizerWest=K==="west",G)),
onDragStart:function(){w(e.currentMiniplayerSize());if(e.onResizeStart)e.onResizeStart()},
onDrag:function(J){K!=="north"&&K!=="west"||J.scale(-1);var q;J=(q=K==="north"||K==="south")?J.y:J.x;var T=e.currentAspectRatio();q&&T>=1?J*=T:!q&&T<1&&(J/=T);q=J;e.onResize(C()+q)}},_.x("div",{class:_.qT("ytdMiniplayerComponentResizerCorner",(X.ytdMiniplayerComponentResizerNorthCorner=K==="north",X.ytdMiniplayerComponentResizerEastCorner=K==="east",X.ytdMiniplayerComponentResizerSouthCorner=K==="south",X.ytdMiniplayerComponentResizerWestCorner=K==="west",X))}))};
return _.x("div",{class:"ytdMiniplayerComponentResizers"},z("north"),z("east"),z("south"),z("west"))},"Dk");var JWa=16/9;_.KU(_.f(function(){var e=_.kI("ytd-miniplayer"),z=_.b(_.II(new _.RM(NaN,NaN),void 0,"NHaFyc")),C=z.next().value,w=z.next().value;z=_.b(_.II(!1,void 0,"a0rwG"));var K=z.next().value,G=z.next().value;z=_.b(_.II(!1,void 0,"f1jSeb"));var X=z.next().value,J=z.next().value;z=_.b(_.II(!1,void 0,"JojXKc"));var q=z.next().value,T=z.next().value;z=_.b(_.II(!1,void 0,"FjS8Db"));var Q=z.next().value,m=z.next().value;z=_.b(_.II(!1,void 0,"z5WG9e"));var a=z.next().value,n=z.next().value;z=_.b(_.II(!1,void 0,"eUzZd"));
var H=z.next().value,I=z.next().value;z=_.b(_.II(JWa,void 0,"XsBIy"));var L=z.next().value,h=z.next().value,E=_.b(_.II(!1,void 0,"FJSvse"));z=E.next().value;var N=E.next().value;E=_.b(_.II(!1,void 0,"VDUFL"));var D=E.next().value,g=E.next().value;E=_.b(_.II(void 0,void 0,"nFeh4b"));var y=E.next().value,Z=E.next().value;E=_.b(_.II(oN()?"west":"east",void 0,"T7co7c"));var YN=E.next().value,Jk=E.next().value;E=_.b(_.II("south",void 0,"QDUsLb"));var v1=E.next().value,lg=E.next().value;E=_.b(_.II(400,
void 0,"F7Vdze"));var M5=E.next().value,fo=E.next().value,ug=_.lh().resolve(_.gh).miniplayerPropSignalMap[0],sE=ug.data,w6=ug.externalPlaylistData;E=ug.toastData;var qY=ug.playabilityStatus,y1=ug.isReadyToResume,Qa=ug.isDisabled,Ha=ug.watchWhile,OU=ug.playerVe,ab=ug.expandVe,Pa=ug.closeVe,$N=ug.readyToResumeVe,N5=ug.readyToResumeCloseVe,$L=ug.repositionVe,Ba=ug.resizeVe;ug=_.b(_.zx(y1));var r6=ug.next().value,eE=ug.next().value,q1=_.rG(_.cF.persistentPanelVisibleSelector),g6=!1,lo=!1,mc;_.sg(function(){w(_.Mp());
e.value.addEventListener("animationend",function(jS){jS.target===e.value&&(n(!1),I(!1))});
Fx3(e.value)});
_.JH("yt-window-resized",function(jS){jS&&w(jS)});
var ob=function(){mc&&h(mc.getVideoAspectRatio())},Ak=function(){if(mc){var jS=mc.getPlayerState()===1;
r6()&&jS&&eE(!1)}},wf=function(){var jS=ab();
if(jS){var Wl=_.Pr(3);Wl&&_.gQ(Wl,jS)}},$a=function(){var jS=Pa(),Wl=N5();
jS&&_.gQ(_.Pr(3),jS);y1()&&Wl&&_.gQ(_.Pr(3),Wl)};
_.JH("yt-activate-miniplayer",function(jS){var Wl;return _.k(function(b$){if(b$.nextAddress==1)return K()?b$.return():b$.yield((Wl=_.lh().resolve(_.gh).getPlayerElement())==null?void 0:Wl.getPlayerPromise(),2);mc=b$.yieldResult;if(!mc)return b$.return();!D()&&_.M("kevlar_watch_while_v2")&&(lg(jS&&!_.M("kevlar_watch_while_bottom_align")?"north":"south"),Jk(oN()?"west":"east"));var wp=mc;wp.addEventListener("onVideoDataChange",ob);wp.addEventListener("onStateChange",Ak);wp.addEventListener("onExpandMiniplayer",
wf);wp.addEventListener("onCloseMiniplayer",$a);h(mc.getVideoAspectRatio());G(!0);Euv()||n(!0);_.E_(b$)})});
_.JH("yt-deactivate-miniplayer",function(jS,Wl){return _.k(function(b$){if(!K())return b$.return();G(!1);eE(!1);I(jS);m(!1);J(!1);if(mc){var wp=mc;wp.removeEventListener("onVideoDataChange",ob);wp.removeEventListener("onStateChange",Ak);wp.removeEventListener("onExpandMiniplayer",wf);wp.removeEventListener("onCloseMiniplayer",$a)}Euv()||Wl?Wl&&n(!1):n(!0);_.E_(b$)})});
var CY=function(){return!(Ha()&&_.M("kevlar_watch_while_modern"))},nv=function(){var jS;
return!((jS=w6())==null||!jS.contents)},sq=function(){var jS=M5();
var Wl=C();Wl=Math.min(Math.min(Wl.width,Wl.height)-32,720);var b$=L(),wp=CY(),MG=nv()&&X(),D0=Math.min(jS,Wl);jS=new _.RM(192,wp?116:192);b$=new _.RM(MG?JWa:b$,1);D0=new _.RM(D0,wp?D0-76:D0);D0=b$.aspectRatio()>D0.aspectRatio()?D0.width/b$.width:D0.height/b$.height;b$=b$.scale(D0);jS.width<=b$.width&&jS.height<=b$.height||(jS=b$.aspectRatio()<=jS.aspectRatio()?jS.width/b$.width:jS.height/b$.height,b$.scale(jS),b$.width=Math.min(b$.width,Wl),b$.height=Math.min(b$.height,Wl));return new _.RM(b$.width,
_.NZ(192,b$.height+uol(wp,MG),720))},k2=function(){var jS=sq(),Wl=CY(),b$=nv()&&X();
return new _.RM(jS.width,jS.height-uol(Wl,b$))},aM=function(){var jS=function(Wl){Wl.target===e.value&&Q()&&(m(!1),e.value.removeEventListener("transitionend",jS))};
Euv()||(e.value.addEventListener("transitionend",jS),m(!0));J(!X())};
_.sH(function(){var jS=OU(),Wl=_.Pr(3),b$=_.Ip(3);if(Wl&&b$&&jS){_.id(Wl,b$,jS);b$=$L();var wp=Ba(),MG=ab(),D0=Pa(),r9=N5();MG&&D0&&r9&&(_.NL(Wl,jS,[MG,D0,r9]),_.Bf(Wl,[MG,D0]));b$&&wp&&_.NL(Wl,jS,[b$,wp])}},"UBpUDd");
_.sH(function(){var jS=$N();if(jS){var Wl=_.Pr(0),b$=_.Ip(0);Wl&&b$&&(_.id(Wl,b$,jS),_.Bf(Wl,[jS]))}},"fQpBzb");
ug={};return _.x("ytd-miniplayer",{el:e,class:_.qT("ytdMiniplayerComponentHost",(ug.ytdMiniplayerComponentVisible=function(){return(K()||a())&&!(Ha()&&_.M("kevlar_watch_while_counterfactual"))},ug.ytdMiniplayerComponentAnimatingSnap=q,ug.ytdMiniplayerComponentAnimatingPlaylistExpand=Q,ug.ytdMiniplayerComponentAnimatingFade=a,ug),function(){if(a()){var jS=v1();
var Wl=K(),b$=H();jS=Wl?jS==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":b$?jS==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":jS==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else jS="";return jS}),
style:_.QC({top:function(){return v1()==="north"?"16px":""},
right:function(){var jS=YN(),Wl=q1();Wl=(Wl===void 0?0:Wl)&&!oN()?400:0;return jS==="east"?16+Wl+"px":""},
bottom:function(){return v1()==="south"?"16px":""},
left:function(){var jS=YN(),Wl=q1();Wl=(Wl===void 0?0:Wl)&&oN()?400:0;return jS==="west"?16+Wl+"px":""},
width:function(){return sq().width+"px"},
height:function(){return sq().height+"px"},
transform:function(){var jS=y();return jS?"translate("+jS.x+"px, "+jS.y+"px)":""}})},_.x("div",{class:"ytdMiniplayerComponentContent"},_.x(bll,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(jS){var Wl=SV3(YN(),v1(),C(),sq(),y()),b$=k2();Math.abs(jS.clientY-(Wl.y+b$.height))>15?(N(!0),jS=_.Pr(3),Wl=$L(),g6||(g6=!0,jS&&Wl&&_.Bf(jS,[Wl])),jS&&Wl&&_.gQ(jS,Wl)):jS.preventDefault()},
onDrag:function(jS){Z(jS)},
onDragEnd:function(){var jS=VqW(SV3(YN(),v1(),C(),sq(),y()),C(),sq()),Wl=f7$(YN(),v1(),C(),sq(),q1()),b$=f7$(jS.horizontalAlignment,jS.verticalAlignment,C(),sq(),q1());b$=new _.st(b$.x-Wl.x,b$.y-Wl.y);var wp;Wl=Wl.y+(((wp=y())==null?void 0:wp.y)||0)+sq().height/2;var MG=function(){YN()===jS.horizontalAlignment&&v1()===jS.verticalAlignment||g(!0);Jk(jS.horizontalAlignment);lg(jS.verticalAlignment);Z(void 0)},D0=function(r9){r9.target===e.value&&q()&&(T(!1),MG(),e.value.removeEventListener("transitionend",
D0))};
N(!1);v1()==="south"&&Wl>C().height?(MG(),_.lh().resolve(_.gh).close()):(e.value.addEventListener("transitionend",D0),T(!0),Z(b$))}},_.x(_.l,{cond:K,
then:function(){return _.x(_.PMo,{isDisabled:Qa,playabilityStatus:qY,size:k2})}}),_.x(_.l,{cond:CY,
then:function(){return _.x(_.IIL,{isReadyToResume:r6,data:sE,expanded:X,onExpandClick:aM,playlistData:w6})}}),_.x(_.l,{cond:z,
then:function(){return _.x("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.x(_.l,{cond:function(){return nv()&&X()||Q()},
then:function(){return _.x(_.F2l,{className:"ytdMiniplayerComponentPlaylistPanel",data:w6,hideHeaderText:!0,withinMiniplayer:!0})}}),_.x("div",{class:"ytdMiniplayerComponentToast"},_.x(_.R_W,{toastData:E}))),_.x(X35,{onResize:function(jS){fo(_.NZ(192,jS,720))},
onResizeStart:function(){var jS=_.Pr(3),Wl=Ba();lo||(lo=!0,jS&&Wl&&_.Bf(jS,[Wl]));jS&&Wl&&_.gQ(jS,Wl)},
currentAspectRatio:L,currentMiniplayerSize:M5,horizontalAlignment:YN,verticalAlignment:v1}))},"Gk"),"ytd-miniplayer",{});var kFq=_.cF.persistentPanelVisibleSelector,Hs=function(){var e=_.V.apply(this,arguments)||this;e.tabGesturesIsActive=!1;e.persistentPanelEnabled=_.M("enable_ai_companion");e.hasDelegation=!1;e.isFrostedGlassInitialized=!1;e.frostedGlassExp=_.M("web_frosted_glass");e.hasPendingWatchNavigation=!1;e.mastheadHiddenFocusWithinKillswitch=_.M("web_masthead_hidden_focus_within_killswitch");e.clientOnlyWizTooltipsEnabled=_.M("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
e.scrollAtTop=!0;e.guideScrollTop=0;e.isTheaterModeSession=_.cR("START_IN_THEATER_MODE");e.iMaxTheaterMode=_.M("web_watch_imax_theater_mode");e.isFullWindowSession=_.cR("START_IN_FULL_WINDOW_MODE");e.hasCreateFamilyDialog=!1;e.mastheadHeight=56;e.networkStatusManager=new _.bk;e.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction",
"yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};e.dynamicActionMap={"yt-run-attestation-command":function(z){var C=_.nof.instance,w=_.r(z,_.RSh);return w?_.M("use_rta_manager_for_async")&&
(_.M("attmusi")&&_.M("attmusi_ue")?window.attmp:IfE())?Sno(C,w,z.clickTrackingParams):fvC(C,w,z.clickTrackingParams):_.R5(Error("qi"))}};
e.isFrostedGlassDisabled=!1;e.isChannelOrPlaylistPage=!1;return e};
_.U(Hs,_.V);_.Y=Hs.prototype;_.Y.created=function(){var e=_.lh();_.M("kevlar_clear_duplicate_pref_cookie")&&_.Dz(_.c5,function(){var z=_.E3.get("PREF");z&&!/f\d=/.test(z)&&(z=_.Mv("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=z?"PREF=null;domain="+z+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.M("gzip_gel_with_worker")&&_.XI1();_.M("jspb_serialize_with_worker")&&ZmY();_.M("web_worker_availability_check")&&WxY();_.M("nwl_init_killswitch")||cEf().then(function(){_.c5.addLowPriorityJob(B4E)});
this.pageManagerAttachedPromise=_.cj();this.ytdAppBehavior.loadDepsPromise=_.tT([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.lw(this.onThrottledScroll,200,this);_.M("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Nob();XvW=!!_.pd("ytappsettings.initialized");joC=_.pd("ytappsettings.previousValue");yq3=_.pd("ytappsettings.previousSnapshotTime");XvW||(XvW=!0,cq$());AdE();ZbY();_.g1("DEFERRED_DETACH",
_.M("kevlar_tuner_should_defer_detach"));_.g1("REUSE_COMPONENTS",!0);_.g1("STAMPER_STABLE_LIST",!0);_.g1("SCHEDULED_LAZY_LIST",!0);_.g1("openPopupConfig",i5Y);_.g1("useClickHandler",!0);_.M("kevlar_shell_cleanup")&&_.c5.addLowPriorityJob(feL.bind(this,_.wL.caches));_.cR("IS_SHELL_LOAD")&&_.Pf({shellStartupDurationMs:Math.round((0,_.as)()-_.nK())});JQ3(this.networkStatusManager);_.M("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",wq$(CXY)),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!",
wq$(w3a)),console.log("%cVisit http://go/join-youtube-web to apply today.",wq$(KKv)));_.yw5(e.resolve(_.FMq),1E3)};
_.Y.ready=function(){var e=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var z=k9C();z&&!_.M("external_fullscreen_killswitch")&&document.addEventListener(z,this.setFullscreen.bind(this));(z=window.matchMedia("(prefers-color-scheme: dark)"))&&z.addEventListener&&z.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(z=_.lh().resolve(_.$B(_.Iuh)))z.subscribe("navigation-start",
function(C){C.destinationPageSubtype==="watch"&&(e.hasPendingWatchNavigation=!0)}),z.subscribe("navigation-end",function(C){C.destinationPageSubtype==="watch"&&(e.hasPendingWatchNavigation=!1)})};
_.Y.attached=function(){var e=this;_.Il().processSignal("ci");_.M("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.$gh?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.rh(_.EKm(),"SUCCESS");this.updateIconSet();_.Aw(this.guideInnerContent,!1);_.p3().initVisibilityObserver();this.guideService.guideElement=this.guide;var z=document.createElement("ytd-miniplayer"),C=_.XC(this.hostElement).querySelector("#content");
_.XC(this.hostElement).insertBefore(z,C);_.Il().processSignal("ma");_.lh().resolve(_.gh).init(z);this.persistentPanelEnabled&&_.zdE(_.lh().resolve(_.T$),this.persistentPanelContainer,"APP");_.cR("IS_SHELL_LOAD")&&(C=document.createElement("ytd-network-status-banner"),_.XC(this.hostElement).insertBefore(C,z));_.M("kevlar_right_click_on_lockups")&&_.aY._onCaptureClick&&document.addEventListener("contextmenu",_.aY._onCaptureClick.bind(_.aY),!0);var w=function(){var K=_.hY("yt-page-navigation-progress");
_.XC(e.hostElement).appendChild(K)};
setTimeout(function(){_.Il().parkOrScheduleJob(w,0,"eocs",16)},0);
_.M("service_worker_push_enabled")&&_.Dz(_.c5,xK3);_.YI(_.G4.getInstance(),this.dynamicActionMap,this.hostElement);_.pi(this.hostElement,"ytd-app-attached");_.Il().processSignal("aa");WBo(this.hostElement);_.lM("gapi.load",_.xB4);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Dz(_.c5,
function(){var K=document.createElement("ytd-video-preview");_.XC(_.XC(e.hostElement).querySelector("#video-preview")).appendChild(K)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Dz(_.c5,function(){YV5();e.registerWithViewTransitionManager()});
if(_.Np()&&this.isAppDarkTheme()!==_.Dc())this.onDarkModeToggledAction();else z=_.i6()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==z&&(_.M("enable_dark_theme_only_on_shorts")?_.dP(_.M("enable_dark_theme_only_on_shorts_control")?window.location.href:_.bh(window.location.href,{theme:"dark"})):_.AX(new _.uh("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(tzv=new Bsv(this.hostElement)),A95=new c9W(this.hostElement),y9v=new jfq(this.hostElement),kcY=new J6f(this.hostElement)};
_.Y.getThemeSettingsToLog=function(){var e=_.i6()==="USER_INTERFACE_THEME_DARK";e=_.Np()?_.Dc()?"os-dark":"os-light":e?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:e,cookiesEnabled:_.Vj()}};
_.Y.detached=function(){_.ZP(this.guideInnerContent);_.c5.cancelJob(mTb);mTb=0;_.c5.cancelJob(rql);rql=0;_.rE7(Ieq);Ieq.length=0;HUC=_.kh7=null;_.p3().dispose();_.M("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.XL(_.G4.getInstance(),tzv.playlistHandlerActionMap,tzv.JSC$32916_clientRoot);_.XL(_.G4.getInstance(),A95.downloadManagerActionMap,A95.JSC$33212_clientRoot);_.XL(_.G4.getInstance(),y9v.feedbackCollectorActionMap,y9v.JSC$33207_clientRoot);
for(var e=_.b(kcY.eventListeners),z=e.next();!z.done;z=e.next()){var C=_.b(z.value);z=C.next().value;C=C.next().value;C=_.b(C);for(var w=C.next();!w.done;w=C.next()){var K=_.b(w.value);w=K.next().value;K=K.next().value;z.removeEventListener(w,K)}}_.XL(_.G4.getInstance(),kcY.autonavPauseActionMap,kcY.JSC$20529_clientRoot)};
_.Y.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Tj().getFlag(186)};
_.Y.computeIsInlinePreviewEnabled=function(e,z,C){return!C&&_.d$5({miniplayerIsActive:e,miniplayerPlaybackState:z})};
_.Y.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_FROSTED_GLASS_MODE",payload:!_.M("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"}))};
_.Y.computeIsFrostedGlassDisabled=function(e,z,C,w){return e||z||C||w&&_.M("web_frosted_glass_disable_watch")};
_.Y.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.M("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.Y.computeIsHomePage=function(e,z){if(!e||z==null||!z.endpoint)return!1;var C;return((C=_.r(z.endpoint,_.mJ))==null?void 0:C.browseId)==="FEwhat_to_watch"};
_.Y.updateIsChannelOrPlaylistPage=function(){if(_.M("web_frosted_glass")){var e,z,C=(z=(e=_.lh().resolve(_.$B(_.wE)))==null?void 0:e.getCurrentPage())==null?void 0:z.pageSubtype;this.isChannelOrPlaylistPage=C?["channel","channels","playlist"].includes(C):!1}};
_.Y.scheduleFrostedGlassInitialization=function(){var e=this;_.M("web_frosted_glass")&&_.Il().parkOrScheduleJob(function(){e.isFrostedGlassInitialized=!0},0,_.jb(["eocs",
"cr"]),300)};
_.Y.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.lqg(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Yz({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.Y.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Zcf(!0))};
_.Y.onYtSignalActionRequestPersistentStorage=function(){if(!_.M("request_persistent_storage_killswitch")){var e=_.lh().resolve(_.oi$);e.cachedPersistStatePromise||(e.cachedPersistStatePromise=aoE())}};
_.Y.handleYtChannelCreationFormEndpoints=function(e){e&&this.ytComponentBehavior.resolveCommand(e)};
_.Y.handleShowEngagementPanelEndpoint=function(e){e&&this.ytComponentBehavior.resolveCommand(e)};
_.Y.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Zcf(!1))};
_.Y.initIconDefs=function(e,z){var C=document.createElement("iron-iconset-svg");C.name=e;e=document.createElementNS("http://www.w3.org/2000/svg","svg");C.appendChild(e);e.appendChild(z);document.body.appendChild(C);return C};
_.Y.onWindowResized=function(){_.eA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var e=_.ss.getInstance();e.documentWidth_=document.body.clientWidth;XEL(e)};
_.Y.onWindowScrolled=function(){var e=_.lh().resolve(_.wE).getCurrentPage();if(e!=null&&e.getScrollTop){var z=this.ytdReduxBehavior,C=z.dispatch;e=e.getScrollTop()<=0;C.call(z,_.Yz({type:"SET_SCROLL_AT_TOP",payload:e}))}};
_.Y.guideIsVisibleButNotPersistentSelectorChanged=function(){var e=_.lh().resolve(_.wE).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=e.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"),
e.setScrollTop(this.guideScrollTop));_.zj(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.Y.getCurrentPageScrollableElementType=function(){var e=_.lh().resolve(_.wE).getCurrentPage();if(e&&e.getPageScrollingElement())return e.getPageScrollingElement().nodeName};
_.Y.observeGuideVisibility=function(){var e=_.ss.getInstance(),z=this.miniGuideVisible;e.guidePersistentAndVisible_=this.guidePersistentAndVisible;e.miniGuideVisible_=z;XEL(e)};
_.Y.observePersistentPanelVisibility=function(){var e=_.ss.getInstance();e.persistentPanelVisible_=this.persistentPanelVisible;XEL(e)};
_.Y.handleEduDismissAction=function(e){e&&e.eduDismissAction&&(_.eA(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.n7c.getInstance(),_.DM.set(e.eduDismissAction.key+"-dismissed",!0))};
_.Y.handleEduImpressionAction=function(e){if(e&&e.eduImpressionAction){var z=_.n7c.getInstance();e=e.eduImpressionAction.key;z.JSC$13351_eduDisplayedThisLoad_[_.aZo[e].setKey||e]=!0;_.DM.set(e+"-impression",parseInt(_.DM.get(e+"-impression")||0,10)+1)}};
_.Y.onYtSignalActionConfirmMentionsEdu=function(){_.eA(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.tl.getInstance();_.Bc.set("edu-dismissed",!0)};
_.Y.onYtSignalActionRecordMentionsEduImpression=function(){_.tl.getInstance();var e=_.Bc.set,z=parseInt(_.Bc.get("edu-impressions"),10);e.call(_.Bc,"edu-impressions",(isFinite(z)?z:0)+1)};
_.Y.onYtPageManagerAttached=function(e){var z;((z=_.AU(e))==null?void 0:z.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.Y.onInvokeInstrumentManagerAction=function(e,z){ORE(z,e)};
_.Y.updateIconSet=function(){var e=this.hostElement.querySelector("#masthead");if(e){var z=_.JK(e),C=z.querySelector("g#yt-logo-updated");C&&(e=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(C.cloneNode(!0)),(z=z.querySelector("g#yt-logo-red-updated"))&&e.appendChild(z.cloneNode(!0)),this.initIconDefs("yt-logos-ext",e))}};
_.Y.updateMastheadData=function(){var e=this,z,C,w,K,G;return _.k(function(X){if(X.nextAddress==1){z=e.data;C=e.hostElement.querySelector("#masthead");if(!C)return X.return();_.T0(e,function(){C.data=e.topbarData});
if(!e.get("response.topbar",z)||e.get("response.topbar.responseContext.maxAgeSeconds",z)===0)return X.jumpTo(0);if(w=_.lh().resolve(_.lq))return X.yield(w(),6);K=_.lh().resolve(_.jN);return X.yield(K.put("service:topbar:fallback",new _.yX({innertubeResponse:e.get("response.topbar",z)})),0)}return(G=X.yieldResult)?X.yield(G.put("service:topbar:fallback",new _.yX({innertubeResponse:e.get("response.topbar",z)})),0):X.jumpTo(0)})};
_.Y.computeTopbarData=function(e){if(!e)return null;var z;return this.isShortsPage&&this.topbarData&&!_.r((z=e.response)==null?void 0:z.topbar,Dd5)?this.topbarData:e.response&&"topbar"in e.response?_.r(e.response.topbar,Dd5)||null:null};
_.Y.onSetTheaterModeEnabled=function(e,z){this.isTheaterModeSession=z.enabled;this.setTheaterModeStyles(z.enabled)};
_.Y.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.Y.onDarkModeToggledAction=function(){var e=_.Pi(window.location.href);if(!_.Tb5(e)){(e=!!_.YB(window.location.href).themeRefresh)&&_.AX(new _.uh("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!e){cq$();e={themeRefresh:1};var z=_.lh().resolve(_.wE);if(z.isOnWatch()){var C,w;z=((C=z.getPlayerFromWatch())==null?void 0:(w=C.getPlayer())==null?void 0:w.getCurrentTime())||0;z>=1&&(e.time_continue=Math.floor(z))}_.Vj()||_.i6()!=="USER_INTERFACE_THEME_DARK"||(e.theme="dark");_.dP(_.bh(window.location.href,
e))}_.M("web_appshell_refresh_trigger")&&_.wL.caches&&this.refreshAppShellResponse();C=_.Sy(window.location.href);_.Zk(_.lh().resolve(_.pB),_.jy(C,"theme"))}};
_.Y.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.Y.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.Y.onPlayerFullscreen=function(e){_.yq();this.playerFullscreen=e};
_.Y.setRestrictedMode=function(e){var z=_.Tj();_.$k(0,58,e);z.save();_.lh().resolve(_.cc).reload()};
_.Y.onPageChanged=function(e){e.detail.newPageType==="ytd-watch-flexy"||e.detail.newPageType==="ytd-watch-fixie"||e.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.uH("WEB_PAGE_TYPE_WATCH")):e.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.uH("WEB_PAGE_TYPE_SHORTS")):e.detail.newPageType==="ytd-browse"&&e.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.uH("WEB_PAGE_TYPE_MINI_APP")):_.M("web_frosted_glass")&&e.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.uH("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.uH("WEB_PAGE_TYPE_UNKNOWN"));e.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.Y.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.Y.onGuideToggleTap=function(){_.pi(this.hostElement,"yt-guide-toggle")};
_.Y.onGuideToggleHover=function(){_.pi(this.hostElement,"yt-guide-hover")};
_.Y.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.Y.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y.setMastheadTheme=function(){var e=_.JK(this.hostElement).querySelector("#masthead");e&&(e.dark=e.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),e.isDarkThemeForced=!1)};
_.Y.onRequestPanelModeChange=function(e,z){this.hideHeaderShadow=z.mode!=="seamed"};
_.Y.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.Y.onDrawerIronSelect=function(e){_.AU(e).id==="guide"&&this.processDrawerIronSelect()};
_.Y.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var e="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(e="opened"));_.pi(this.hostElement,"yt-autonav-pause-guide-"+e)};
_.Y.onAddElementToApp=function(e){_.XC(this.hostElement).appendChild(e.detail)};
_.Y.onThrottledScroll=function(){var e=_.lh().resolve(_.wE).getCurrentPage();e&&(this.scrollAtTop=e.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.Y.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.Y.setFullscreen=function(){if(_.M("external_fullscreen")||!this.isWatchPage){var e=_.M("kevlar_fullerscreen_root_only_killswitch")?!!_.yq():!!_.yq()&&_.yq()===document.documentElement;e=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(e||this.isFullWindowSession);this.fullscreen!==e&&((this.fullscreen=e)&&_.zj(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.eB().dispatch(_.KoS(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.eA(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.Y.setFullscreenLoggingForShorts=function(e){var z,C,w;return _.k(function(K){if(K.nextAddress==1)return K.yield((z=_.ox())==null?void 0:z.getPlayerPromise(),2);C=K.yieldResult;(w=C)==null||w.setAppFullscreen(e);_.E_(K)})};
_.Y.updateMastheadCssHeight=function(){var e=this.mastheadHeight;this.fullscreen&&(e=0);_.T8(this.hostElement,{"--ytd-masthead-height":e+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.Y.updateNetworkStatusBannerDisplayStatus=function(){var e="unset";this.fullscreen&&(e="none");_.T8(this.hostElement,{"--ytd-network-status-banner-display":e})};
_.Y.updateNetworkStatusBannerCssHeight=function(){var e="unset";this.fullscreen&&(e="0px");_.T8(this.hostElement,{"--ytd-network-status-banner-max-height":e})};
_.Y.updateScrollAndMasthead=function(e,z,C,w){this.iMaxTheaterMode||(w=!1);var K=_.lh().resolve(_.wE).getCurrentPage();e||z||w?(document.body.classList.add("no-scroll"),K.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.lE(this,this.onScroll)),K.setScrollTop(0),_.T8(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.cz()+"px"})):C?_.pi(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.pi(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
K.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.lE(this,this.onScroll)));this.mastheadHidden=e||z||C;this.updateMastheadCssHeight();_.M("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.Y.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.Y.onYtNavigateAction=function(e){e=this.get("navigateAction.endpoint",e);_.pi(this.hostElement,"yt-navigate",{endpoint:e})};
_.Y.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var e=document.createElement("yt-create-family-dialog");_.XC(this.hostElement).appendChild(e);this.hasCreateFamilyDialog=!0}};
_.Y.onSetPushNotificationsEnabledCommand=function(e){var z=this,C=_.r(e,dd5);C&&typeof C.enabled==="boolean"&&(Notification.permission!=="granted"?b7a().then(function(){Notification.permission==="granted"?(soL(!C.enabled).then(gfl),C.successAction&&_.wQ(z.hostElement,[C.successAction])):C.failureAction&&_.wQ(z.hostElement,[C.failureAction])}):(soL(!C.enabled).then(gfl),C.successAction&&_.wQ(this.hostElement,[C.successAction])))};
_.Y.onYtSignalActionEnableChromeNotifications=function(){XFv(!0)};
_.Y.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.r(this.topbarData.hotkeyDialog,swa)}}})};
_.Y.onYtSignalActionShowKeyboardShortcutDialog=function(){_.eA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.Y.onYtEndpointChangeHandler=function(e,z){var C=_.bH(_.yJ);C.pendingPrefetchJob_&&(z=!(!z||z.autonav!="1"),C.pendingPrefetchJob_.resolve(e&&_.qD7(e)?_.xNo(e,z):""),C.pendingPrefetchJob_=null);_.eA(this.hostElement,"yt-pause-active-page-context");_.eA(this.hostElement,"ytd-log-youthere-nav");_.eA(this.hostElement,"yt-prepare-page-dispose")};
_.Y.handleCommandWithCommandHandler=function(e,z){_.Tx.instance.resolveCommand(e,{form:{element:z}})};
_.Y.onYtTimedCommand=function(e){var z=this;e=_.r(e,PT$);var C=e.command;C&&_.UQ(_.c5,function(){var w=_.r(C,_.OxX);w?(_.Tx.instance.resolveCommand(C),z.maybeLogGetAnswerRequestTick(w)):_.KK(z.hostElement,[C],z.hostElement)},e.timeoutMs||0)};
_.Y.maybeLogGetAnswerRequestTick=function(e){e&&e.isFirstRequest&&(_.LK("search_overview_answer"),_.hg("so_rq",void 0,"search_overview_answer"))};
_.Y.onYtSignalActionSkipNavigation=function(){var e=_.lh().resolve(_.wE).getCurrentPage();_.qU(e)};
_.Y.onYtSignalActionCopyDebugData=function(){rmW()};
_.Y.handleEntityUpdateCommand=function(e){_.m6(_.r(e,_.pvY).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.Y.logFlowLoggingEventCommand=function(e){if(e=_.r(e,_.jR1))if(e.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var z=e.flowEventNamespace,C=e.flowEventType,w=e.flowType;w&&z&&C&&_.K9L(_.TU(z,C,e.flowEventMetadata),w)}else{z=_.$5();C=e.flowEventNamespace;w=e.flowEventType;var K=e.flowType;K&&C&&w&&z.logFlowEvent(_.TU(C,w,e.flowEventMetadata),K,e.flowNonce)}};
_.Y.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.Y.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.Y.onTouchStart=function(){var e=_.ef();_.Pr()&&_.Bj(e.JSC$13473_screenManager,{visualElement:e.ve})};
_.Y.handleSelectLanguageCommand=function(e){if(e=_.r(e,f5$).hl){var z=_.Tj();z.set("hl",e);z.save();_.lh().resolve(_.cc).reload()}};
_.Y.handleConfirmDialogEndpoint=function(e){(e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(e))&&this.ytOpenPopupBehavior.openPopup(e)};
_.Y.handleOpenPopupNavigationEndpoints=function(e,z){(e=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(e))&&this.ytOpenPopupBehavior.openPopup(e,z)};
_.Y.handleSaveCommandToSessionStorage=function(e){if(e=_.r(e,_.V_L)){var z=e.key;z&&e.command&&window.sessionStorage.setItem(z,JSON.stringify(e.command))}};
_.Y.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(e){e&&e.active&&e.active.postMessage({type:"refresh_shell"})}).catch(function(e){e.name!=="SecurityError"&&_.yG(e)})};
_.Y.onDeviceThemeChanged=function(){var e=_.Dc();_.$k(_.Tj(),185,e);_.Tj().save()};
_.Y.handleYtRegisterPromoCommand=function(e){if(_.r(e,ukY)){var z=_.lh().resolve(_.wE).getCurrentPage()||this.hostElement;n75().registerPromoCommand(_.r(e,ukY),z)}};
_.Y.onYtNavigateHomeAction=function(){if(!_.M("kevlar_miniplayer_navigate_home_from_app_killswitch")){var e,z,C,w,K=(w=(e=this.topbarData)==null?void 0:(z=e.logo)==null?void 0:(C=z.topbarLogoRenderer)==null?void 0:C.endpoint)!=null?w:_.wt;this.ytComponentBehavior.resolveCommand(K)}};
_.Y.onYtLocationCollectionCommand=function(e){ouZ(_.r(e,ABL))};
_.Y.onYtGetLocationCommand=function(e){CSo(_.r(e,cBa),this)};
_.Y.updateRenderGuideFromBinding=function(e){this.renderGuide=e.detail.value};
_.Y.updateGuidePersistentAndVisibleFromBinding=function(e){this.guidePersistentAndVisible=e.detail.value};
_.Y.updateMiniGuideVisibleFromBinding=function(e){this.miniGuideVisible=e.detail.value};
_.Y.onThemeSelected=function(e,z){var C=_.Tj(),w=e||z?e:_.Dc(),K=(w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Tb5(_.Pi(window.location.href));_.$k(0,165,e);_.$k(0,174,z);C.save();K&&_.eA(this.hostElement,"yt-dark-mode-toggled-action",[w]);_.eA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Y.getCurrentTheme=function(){return _.Np()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.i6()};
_.Y.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.Y.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.Y.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.Y.handleShowConsentPrimitive=function(e){var z=this,C,w;return _.k(function(K){if(K.nextAddress==1){try{C=(w=_.ox())==null?void 0:w.getPlayerPromise()}catch(G){}return K.yield(vuW(e,C),2)}_.eA(z.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.E_(K)})};
_.Y.handleSelectActiveIdentityEndpointInternal=function(e){_.SB();e=_.r(e,_.yu4);if(e!=null&&e.supportedTokens){e=_.b(e.supportedTokens);for(var z=e.next();!z.done;z=e.next())z=z.value,z.accountSigninToken&&_.dP(z.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.Y.handleUpdatePermissionRoleCommand=function(e){if(e=_.r(e,_.yYT)){var z;this.hasDelegation=!((z=_.r(e.renderer,_.jQX))==null||!z.status)}};
_.Y.registerWithViewTransitionManager=function(){var e=_.lh().resolve(_.$B(_.b_));if(e){var z,C=(z=this.guide)==null?void 0:z.querySelector("#scrim"),w;z=(w=this.guide)==null?void 0:w.querySelector("#contentContainer");C&&z&&e.isAnyTransitionEnabled&&(w={},e.viewTransitionCoordinator.registerElement(C,(w.slide="app-drawer-scrim-page-transition",w["lockup-to-watch"]="app-drawer-scrim-page-transition",w["learning-journey"]="app-drawer-scrim-page-transition",w)),C={},e.viewTransitionCoordinator.registerElement(z,
(C.slide="app-drawer-container-page-transition",C["lockup-to-watch"]="app-drawer-container-page-transition",C["learning-journey"]="app-drawer-container-page-transition",C)))}};
_.lB.Object.defineProperties(Hs.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.M("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.lB.Object.defineProperties(Hs,{template:{configurable:!0,enumerable:!0,get:function(){if(i6Y===void 0){var e=document.createElement("template");_.v(e,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
e.content.insertBefore(_.t().content.cloneNode(!0),e.content.firstChild);i6Y=e}e=i6Y;return e}}});
Hs.prototype.onOpenHotkeyDialog=Hs.prototype.onOpenHotkeyDialog;Hs.prototype.setFullscreen=Hs.prototype.setFullscreen;Hs.prototype.onAddElementToApp=Hs.prototype.onAddElementToApp;Hs.prototype.onDrawerIronSelect=Hs.prototype.onDrawerIronSelect;Hs.prototype.onGuideOpenButtonHover=Hs.prototype.onGuideOpenButtonHover;Hs.prototype.onRequestPanelModeChange=Hs.prototype.onRequestPanelModeChange;Hs.prototype.onPageDataUpdated=Hs.prototype.onPageDataUpdated;Hs.prototype.onPageChanged=Hs.prototype.onPageChanged;
Hs.prototype.onSetTheaterModeEnabled=Hs.prototype.onSetTheaterModeEnabled;Hs.prototype.updateMastheadData=Hs.prototype.updateMastheadData;Hs.prototype.onYtPageManagerAttached=Hs.prototype.onYtPageManagerAttached;Hs.prototype.observePersistentPanelVisibility=Hs.prototype.observePersistentPanelVisibility;Hs.prototype.observeGuideVisibility=Hs.prototype.observeGuideVisibility;Hs.prototype.guideIsVisibleButNotPersistentSelectorChanged=Hs.prototype.guideIsVisibleButNotPersistentSelectorChanged;
Hs.prototype.isInlinePreviewEnabledChanged=Hs.prototype.isInlinePreviewEnabledChanged;Hs.prototype.isWatchPageChanged=Hs.prototype.isWatchPageChanged;Hs.prototype.dispatchFrostedGlassMode=Hs.prototype.dispatchFrostedGlassMode;_.d([_.W(_.QX),_.B("design:type",Object)],Hs.prototype,"ytdReduxBehavior",void 0);_.d([_.W(_.Yv.YtEventForwardingBehavior),_.B("design:type",Object)],Hs.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.W(_.jf.YtOpenPopupBehavior),_.B("design:type",Object)],Hs.prototype,"ytOpenPopupBehavior",void 0);_.d([_.W(_.ch.YtActionHandlerBehavior),_.B("design:type",Object)],Hs.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.W({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.G4.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.M("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var e;((e=this.actionRouterNode.hostElement)!=null?e:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var e;((e=this.actionRouterNode.hostElement)!=null?e:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(e){this.actionRouter_.handleAction(e.detail)}}),
_.B("design:type",Object)],Hs.prototype,"ytActionRouterBehavior",void 0);_.d([_.W(WC3.YtdAppBehavior),_.B("design:type",Object)],Hs.prototype,"ytdAppBehavior",void 0);_.d([_.W(_.y5.YtEndpointBehavior),_.B("design:type",Object)],Hs.prototype,"ytEndpointBehavior",void 0);_.d([_.W(g9C.YtEndpointHandlerWithYpcBehavior),_.B("design:type",Object)],Hs.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.d([_.W(NZC.YtLogYpcFlowCommandsBehavior),_.B("design:type",Object)],Hs.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.d([_.W(_.c.YtRendererBehavior),_.B("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.d([_.W(_.Q5.YtComponentBehavior),_.B("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);_.d([_.F({selector:_.Yxf}),_.B("design:type",Object)],Hs.prototype,"tabGesturesIsActive",void 0);_.d([_.F(),_.B("design:type",Boolean)],Hs.prototype,"renderGuide",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"guidePersistentAndVisible",void 0);_.d([_.F({selector:_.G8Y}),_.B("design:type",Boolean)],Hs.prototype,"guideIsVisibleButNotPersistent",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"standalone",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"miniGuideVisible",void 0);
_.d([_.F(),_.B("design:type",Object)],Hs.prototype,"persistentPanelEnabled",void 0);_.d([_.F({selector:kFq,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"persistentPanelVisible",void 0);_.d([_.F({selector:_.iEm}),_.B("design:type",Number)],Hs.prototype,"miniplayerPlaybackState",void 0);_.d([_.F({selector:_.V2,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"miniplayerIsActive",void 0);
_.d([_.F({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.B("design:type",Boolean)],Hs.prototype,"isInlinePreviewEnabled",void 0);_.d([_.F(),_.B("design:type",Boolean)],Hs.prototype,"isInlinePreviewDisabled",void 0);_.d([_.F({reflectToAttribute:!0,value:function(){return _.cR("START_IN_FULL_WINDOW_MODE")}}),
_.B("design:type",Boolean)],Hs.prototype,"mastheadHidden",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"playerFullscreen",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"fullscreen",void 0);_.d([_.F({value:!1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"hideHeaderShadow",void 0);
_.d([_.F({value:{GUIDE_ALT_LABEL:_.kk("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.B("design:type",Object)],Hs.prototype,"menuStrings",void 0);_.d([_.F({computed:"computeTopbarData(data)"}),_.B("design:type",Object)],Hs.prototype,"topbarData",void 0);_.d([_.F({selector:_.S2g,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"isWatchPage",void 0);_.d([_.F({selector:_.ur1,reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"isShortsPage",void 0);
_.d([_.F({selector:function(e){return _.f4(e)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.B("design:type",Boolean)],Hs.prototype,"isMiniAppPage",void 0);_.d([_.F({selector:function(e){return _.f4(e)==="WEB_PAGE_TYPE_BROWSE"}}),
_.B("design:type",Boolean)],Hs.prototype,"isBrowsePage",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Boolean)],Hs.prototype,"scrolling",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"hasDelegation",void 0);_.d([_.F({reflectToAttribute:!0,value:!1}),_.B("design:type",Boolean)],Hs.prototype,"guideScrolledByTouch",void 0);_.d([_.F(),_.B("design:type",Object)],Hs.prototype,"isFrostedGlassInitialized",void 0);
_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"frostedGlassExp",void 0);_.d([_.F({selector:function(e){return e.ui.chipBarIsSticky}}),
_.B("design:type",Boolean)],Hs.prototype,"chipBarIsSticky",void 0);_.d([_.F({computed:"computeIsHomePage(isBrowsePage, data)"}),_.B("design:type",Boolean)],Hs.prototype,"isHomePage",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"hasPendingWatchNavigation",void 0);_.d([_.F({reflectToAttribute:!0}),_.B("design:type",Object)],Hs.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.d([_.F(),_.B("design:type",Object)],Hs.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.d([_.bx("guide"),_.B("design:type",Object)],Hs.prototype,"guide",void 0);_.d([_.bx("guide-service"),_.B("design:type",lJZ)],Hs.prototype,"guideService",void 0);_.d([_.bx("guide-inner-content"),_.B("design:type",HTMLDivElement)],Hs.prototype,"guideInnerContent",void 0);_.d([_.nP("#persistent-panel-container"),_.B("design:type",HTMLElement)],Hs.prototype,"persistentPanelContainer",void 0);
_.d([_.F({selector:_.NX4}),_.B("design:type",String)],Hs.prototype,"frostedGlassMode",void 0);_.d([_.mi("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"dispatchFrostedGlassMode",null);_.d([_.F({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.B("design:type",Object)],Hs.prototype,"isFrostedGlassDisabled",void 0);
_.d([_.mi("isWatchPage"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"isWatchPageChanged",null);_.d([_.P("isHomePage","chipBarIsSticky"),_.B("design:type",Boolean),_.B("design:paramtypes",[])],Hs.prototype,"applyFrostedGlassToChipBar",null);_.d([_.F(),_.B("design:type",Object)],Hs.prototype,"isChannelOrPlaylistPage",void 0);
_.d([_.Ux("isInlinePreviewEnabled"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"isInlinePreviewEnabledChanged",null);_.d([_.mi("guideIsVisibleButNotPersistent"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.d([_.mi("guidePersistentAndVisible","miniGuideVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"observeGuideVisibility",null);_.d([_.mi("persistentPanelVisible"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"observePersistentPanelVisibility",null);
_.d([_.Qi("attached"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Hs.prototype,"onYtPageManagerAttached",null);_.d([_.mi("data"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype",Promise)],Hs.prototype,"updateMastheadData",null);_.d([_.Qi("yt-set-theater-mode-enabled"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent,Object]),_.B("design:returntype")],Hs.prototype,"onSetTheaterModeEnabled",null);
_.d([_.Qi("yt-page-type-changed"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hs.prototype,"onPageChanged",null);_.d([_.Qi("yt-page-data-updated"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"onPageDataUpdated",null);_.d([_.Qi("yt-request-panel-mode-change"),_.B("design:type",Function),_.B("design:paramtypes",[Event,Object]),_.B("design:returntype")],Hs.prototype,"onRequestPanelModeChange",null);
_.d([_.Qi("yt-guide-hover"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"onGuideOpenButtonHover",null);_.d([_.Qi("app-drawer-transitioned"),_.B("design:type",Function),_.B("design:paramtypes",[Event]),_.B("design:returntype")],Hs.prototype,"onDrawerIronSelect",null);_.d([_.Qi("yt-add-element-to-app"),_.B("design:type",Function),_.B("design:paramtypes",[CustomEvent]),_.B("design:returntype")],Hs.prototype,"onAddElementToApp",null);
_.d([_.Qi("yt-set-fullerscreen-styles"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"setFullscreen",null);_.d([_.Qi("yt-open-hotkey-dialog"),_.B("design:type",Function),_.B("design:paramtypes",[]),_.B("design:returntype")],Hs.prototype,"onOpenHotkeyDialog",null);_.d([_.SL({is:"ytd-app"})],Hs);_.Il().processSignal("eor");
_.g9();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
